CloneSet958


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
8420.991statement_sequence_member
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
18339
plugins/org.eclipse.jdt.core/codeassist/org/eclipse/jdt/internal/codeassist/complete/CompletionScanner.java
28354
plugins/org.eclipse.jdt.core/codeassist/org/eclipse/jdt/internal/codeassist/complete/CompletionScanner.java
38402
plugins/org.eclipse.jdt.core/codeassist/org/eclipse/jdt/internal/codeassist/complete/CompletionScanner.java
48522
plugins/org.eclipse.jdt.core/codeassist/org/eclipse/jdt/internal/codeassist/complete/CompletionScanner.java
Clone Instance
1
Line Count
8
Source Line
339
Source File
plugins/org.eclipse.jdt.core/codeassist/org/eclipse/jdt/internal/codeassist/complete/CompletionScanner.java

                                                        // relocate if finding another quote fairly close: thus unicode '/u000D' will be fully consumed
                                                        for (int lookAhead = 0; lookAhead < 3; lookAhead++) {
                                                                if (this.currentPosition + lookAhead == this.source.length)
                                                                        break;
                                                                if (this.source[this.currentPosition + lookAhead] == '\n')
                                                                        break;
                                                                if (this.source[this.currentPosition + lookAhead] == '\'') {
                                                                        this.currentPosition += lookAhead + 1;
                                                                        break;
                                                                }
                                                        }


Clone Instance
2
Line Count
8
Source Line
354
Source File
plugins/org.eclipse.jdt.core/codeassist/org/eclipse/jdt/internal/codeassist/complete/CompletionScanner.java

                                                // relocate if finding another quote fairly close: thus unicode '/u000D' will be fully consumed
                                                for (int lookAhead = 0; lookAhead < 3; lookAhead++) {
                                                        if (this.currentPosition + lookAhead == this.source.length)
                                                                break;
                                                        if (this.source[this.currentPosition + lookAhead] == '\n')
                                                                break;
                                                        if (this.source[this.currentPosition + lookAhead] == '\'') {
                                                                this.currentPosition += lookAhead + 1;
                                                                break;
                                                        }
                                                }


Clone Instance
3
Line Count
8
Source Line
402
Source File
plugins/org.eclipse.jdt.core/codeassist/org/eclipse/jdt/internal/codeassist/complete/CompletionScanner.java

                                        // relocate if finding another quote fairly close: thus unicode '/u000D' will be fully consumed
                                        for (int lookAhead = 0; lookAhead < 20; lookAhead++) {
                                                if (this.currentPosition + lookAhead == this.source.length)
                                                        break;
                                                if (this.source[this.currentPosition + lookAhead] == '\n')
                                                        break;
                                                if (this.source[this.currentPosition + lookAhead] == '\'') {
                                                        this.currentPosition += lookAhead + 1;
                                                        break;
                                                }
                                        }


Clone Instance
4
Line Count
8
Source Line
522
Source File
plugins/org.eclipse.jdt.core/codeassist/org/eclipse/jdt/internal/codeassist/complete/CompletionScanner.java

                                                        // relocate if finding another quote fairly close: thus unicode '/u000D' will be fully consumed
                                                        for (int lookAhead = 0; lookAhead < 50; lookAhead++) {
                                                                if (this.currentPosition + lookAhead == this.source.length)
                                                                        break;
                                                                if (this.source[this.currentPosition + lookAhead] == '\n')
                                                                        break;
                                                                if (this.source[this.currentPosition + lookAhead] == '\"') {
                                                                        this.currentPosition += lookAhead + 1;
                                                                        break;
                                                                }
                                                        }


Clone AbstractionParameter Count: 2Parameter Bindings

// relocate if finding another quote fairly close: thus unicode '/u000D' will be fully consumed
for (int lookAhead = 0; lookAhead <  [[#variablea189aa60]]; lookAhead++) {
  if (this.currentPosition + lookAhead == this.source.length)
    break;
  if (this.source[this.currentPosition + lookAhead] == '\n')
    break;
  if (this.source[this.currentPosition + lookAhead] == [[#variablea189aa00]]) {
    this.currentPosition += lookAhead + 1;
    break;
  }
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#a189aa60]]
50 
12[[#a189aa60]]
20 
13[[#a189aa60]]
3 
14[[#a189aa60]]
3 
21[[#a189aa00]]
'\"' 
22[[#a189aa00]]
'\'' 
23[[#a189aa00]]
'\'' 
24[[#a189aa00]]
'\''