Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
5 | 2 | 2 | 0.988 | statement_sequence[2] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 5 | 77 | plugins/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/util/Strings.java |
2 | 5 | 366 | plugins/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/util/Strings.java |
| ||||
String result[] = new String[size]; for (int i = 0; i < size; i++) { IRegion region = tracker.getLineInformation(i); int offset = region.getOffset(); result[i] = input.substring(offset, offset + region.getLength()); } |
| ||||
String lines[] = new String[size]; for (int i = 0; i < size; i++) { IRegion region = tracker.getLineInformation(i); int offset = region.getOffset(); lines[i] = source.substring(offset, offset + region.getLength()); } |
| |||
String [[#variable97e86220]][] = new String[size]; for (int i = 0; i < size; i++) { IRegion region = tracker.getLineInformation(i); int offset = region.getOffset(); [[#variable97e86220]][i] = [[#variable5fde44e0]].substring(offset, offset + region.getLength()); } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#97e86220]] | result |
1 | 2 | [[#97e86220]] | lines |
2 | 1 | [[#5fde44e0]] | input |
2 | 2 | [[#5fde44e0]] | source |