Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
6 | 2 | 4 | 0.963 | statement_sequence[4] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 6 | 136 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/java/JavaStringAutoIndentStrategy.java |
2 | 5 | 87 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/javadoc/JavaDocAutoIndentStrategy.java |
| ||||
// find start of line int adjustedOffset = (offset == document.getLength() ? offset - 1: offset); IRegion line = document.getLineInformationOfOffset(adjustedOffset); int start = line.getOffset(); // find white spaces int end = findEndOfWhiteSpace(document, start, offset); |
| ||||
int p = (offset == d.getLength() ? offset - 1: offset); IRegion line = d.getLineInformationOfOffset(p); int lineOffset = line.getOffset(); int firstNonWS = findEndOfWhiteSpace(d, lineOffset, offset); |
| |||
// find start of line int [[#variable63cc3460]]= (offset == [[#variable50b4c820]].getLength() ? offset - 1: offset); IRegion line = [[#variable50b4c820]].getLineInformationOfOffset( [[#variable63cc3460]]); int [[#variable63cc3360]]= line.getOffset(); // find white spaces int [[#variable63cc3300]]= findEndOfWhiteSpace( [[#variable50b4c820]], [[#variable63cc3360]], offset); |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#63cc3460]] | adjustedOffset |
1 | 2 | [[#63cc3460]] | p |
2 | 1 | [[#50b4c820]] | document |
2 | 2 | [[#50b4c820]] | d |
3 | 1 | [[#63cc3360]] | start |
3 | 2 | [[#63cc3360]] | lineOffset |
4 | 1 | [[#63cc3300]] | end |
4 | 2 | [[#63cc3300]] | firstNonWS |