for (int i = 0; i < input.length(); i++) { if (input.charAt(i) > 127) { return true; } }
for (int i = 0; i < capabilities.length; i++) { if (capabilities[i].startsWith(command)) { list.add(capabilities[i]); } }
Clone fragments detected by clone detection tool
File path: /columba-1.4-src/mail/src/main/java/org/columba/mail/composer/MessageComposer.java File path: /columba-1.4-src/mail/src/main/java/org/columba/mail/imap/IMAPServer.java
Method name: boolean needQPEncoding(String) Method name: String[] getCapas(String)
Number of AST nodes: 3 Number of AST nodes: 3
1
for (int i = 0; i < input.length(); i++) {
1
for (int i = 0; i < capabilities.length; i++) {
2
			if (input.charAt(i) > 127) {
2
			if (
3
				return true
3
capabilities[i].startsWith(command)) {
4
;
4
				list.add(capabilities[i]);
5
			}
5
			}
6
		}
6
		}
Summary
Number of common nesting structure subtrees0
Number of refactorable cases0
Number of non-refactorable cases0
Time elapsed for finding largest common nesting structure subtrees (ms)0.1
Clones locationClones are in different classes
Number of node comparisons1