Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
7 | 3 | 5 | 0.955 | statement_sequence[2] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 6 | 529 | plugins/org.eclipse.jdt.core/antadapter/org/eclipse/jdt/core/JDTCompilerAdapter.java |
2 | 6 | 74 | plugins/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/SourceRange.java |
3 | 7 | 693 | plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/code/ExtractTempRefactoring.java |
| ||||
//we need the directories sorted, longest first,since sub directories can //override encodings for their parent directories Comparator comparator = new Comparator() { public int compare(Object o1, Object o2) { return ((String) o2).length() - ((String) o1).length(); } }; Arrays.sort(encodedDirs, comparator); |
| ||||
Comparator comparator = new Comparator() { public int compare(Object o1, Object o2) { return ((ISourceRange) o2).getOffset() - ((ISourceRange) o1).getOffset(); } }; Arrays.sort(ranges, comparator); |
| ||||
Comparator comparator = new Comparator() { public int compare(Object o1, Object o2) { return ((IASTFragment) o1).getStartPosition() - ((IASTFragment) o2).getStartPosition(); } }; Arrays.sort(nodesToReplace, comparator); |
| |||
//we need the directories sorted, longest first,since sub directories can //override encodings for their parent directories Comparator comparator = new Comparator() { public int compare(Object o1, Object o2) { return (( [[#variable77a37960]]) [[#variable77a37920]]). [[#variable77a378e0]]() - (( [[#variable77a37960]]) [[#variable77a37840]]). [[#variable77a378e0]](); } }; Arrays.sort( [[#variable77a377c0]], comparator); |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#77a37960]] | IASTFragment |
1 | 2 | [[#77a37960]] | ISourceRange |
1 | 3 | [[#77a37960]] | String |
2 | 1 | [[#77a37920]] | o1 |
2 | 2 | [[#77a37920]] | o2 |
2 | 3 | [[#77a37920]] | o2 |
3 | 1 | [[#77a378e0]] | getStartPosition |
3 | 2 | [[#77a378e0]] | getOffset |
3 | 3 | [[#77a378e0]] | length |
4 | 1 | [[#77a37840]] | o2 |
4 | 2 | [[#77a37840]] | o1 |
4 | 3 | [[#77a37840]] | o1 |
5 | 1 | [[#77a377c0]] | nodesToReplace |
5 | 2 | [[#77a377c0]] | ranges |
5 | 3 | [[#77a377c0]] | encodedDirs |