Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
21 | 2 | 2 | 0.979 | statement_sequence[8] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 21 | 3076 | plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/core/compiler/CharOperation.java |
2 | 21 | 3132 | plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/core/compiler/CharOperation.java |
| ||||
int wordCount = 1; for (int i = 0; i < length; i++) if (array[i] == divider) wordCount++; char[][] split = new char[wordCount][]; int last = 0, currentWord = 0; for (int i = 0; i < length; i++) { if (array[i] == divider) { split[currentWord] = new char[i - last]; System.arraycopy( array, last, split[currentWord++ ], 0, i - last); last = i + 1; } } split[currentWord] = new char[length - last]; System.arraycopy(array, last, split[currentWord], 0, length - last); return split; |
| ||||
int wordCount = 1; for (int i = start; i < end; i++) if (array[i] == divider) wordCount++; char[][] split = new char[wordCount][]; int last = start, currentWord = 0; for (int i = start; i < end; i++) { if (array[i] == divider) { split[currentWord] = new char[i - last]; System.arraycopy( array, last, split[currentWord++ ], 0, i - last); last = i + 1; } } split[currentWord] = new char[end - last]; System.arraycopy(array, last, split[currentWord], 0, end - last); return split; |
| |||
int wordCount = 1; for (int i = [[#variableb7863720]]; i < [[#variableb8aed4e0]]; i++) if (array[i] == divider) wordCount++; char[][] split = new char[wordCount][]; int last = [[#variableb7863720]], currentWord = 0; for (int i = [[#variableb7863720]]; i < [[#variableb8aed4e0]]; i++) { if (array[i] == divider) { split[currentWord] = new char[i - last]; System.arraycopy(array, last, split[currentWord++ ], 0, i - last); last = i + 1; } } split[currentWord] = new char[ [[#variableb8aed4e0]] - last]; System.arraycopy(array, last, split[currentWord], 0, [[#variableb8aed4e0]] - last); return split; |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#b7863720]] | start |
1 | 2 | [[#b7863720]] | 0 |
2 | 1 | [[#b8aed4e0]] | end |
2 | 2 | [[#b8aed4e0]] | length |