| Previous CloneSet | Next CloneSet | Back to Main Report |
| Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
|---|---|---|---|---|
| 5 | 2 | 5 | 0.955 | statement_sequence[2] |
| Clone Abstraction | Parameter Bindings |
| Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
|---|---|---|---|
| 1 | 5 | 348 | plugins/org.eclipse.jdt.core/formatter/org/eclipse/jdt/internal/formatter/comment/CommentRegion.java |
| 2 | 6 | 41 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/spelling/engine/DefaultSpellChecker.java |
| ||||
for (int index = 0; index < token.length(); index++) {
if (ScannerHelper.isLetterOrDigit(token.charAt(index)))
return false;
}
return true;
|
| ||||
for (int index = 0; index < word.length(); index++) {
if (Character.isDigit(word.charAt(index)))
return true;
}
return false;
|
| |||
for (int index = 0; index < [[#variableb1ae4be0]].length(); index++) {
if ( [[#variableb1ae4ae0]]. [[#variableb1ae4b00]]( [[#variableb1ae4be0]].charAt(index)))
return [[#variableb1ae4a40]];
}
return [[#variableb1ae49e0]];
|
| CloneAbstraction |
| Parameter Index | Clone Instance | Parameter Name | Value |
|---|---|---|---|
| 1 | 1 | [[#b1ae4be0]] | token |
| 1 | 2 | [[#b1ae4be0]] | word |
| 2 | 1 | [[#b1ae4ae0]] | ScannerHelper |
| 2 | 2 | [[#b1ae4ae0]] | Character |
| 3 | 1 | [[#b1ae4b00]] | isLetterOrDigit |
| 3 | 2 | [[#b1ae4b00]] | isDigit |
| 4 | 1 | [[#b1ae4a40]] | false |
| 4 | 2 | [[#b1ae4a40]] | true |
| 5 | 1 | [[#b1ae49e0]] | true |
| 5 | 2 | [[#b1ae49e0]] | false |