CloneSet1644


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
15230.978statement_sequence[7]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
1152961
plugins/org.eclipse.jdt.core/codeassist/org/eclipse/jdt/internal/codeassist/CompletionEngine.java
2153036
plugins/org.eclipse.jdt.core/codeassist/org/eclipse/jdt/internal/codeassist/CompletionEngine.java
Clone Instance
1
Line Count
15
Source Line
2961
Source File
plugins/org.eclipse.jdt.core/codeassist/org/eclipse/jdt/internal/codeassist/CompletionEngine.java

                        char[] completionName = CharOperation.concat(
                                        field.declaringClass.qualifiedPackageName(), 
                                        '.', 
                                        field.declaringClass.qualifiedSourceName(), 
                                        '.', 
                                        field.name                  );

                        completionName = CharOperation.concat(completionName, SEMICOLON);

                        int relevance = computeBaseRelevance();
                        relevance += computeRelevanceForInterestingProposal();
                        relevance += computeRelevanceForCaseMatching(fieldName, field.name);
                        relevance += computeRelevanceForRestrictions(IAccessRule.K_ACCESSIBLE);

                        this.noProposal = false;


Clone Instance
2
Line Count
15
Source Line
3036
Source File
plugins/org.eclipse.jdt.core/codeassist/org/eclipse/jdt/internal/codeassist/CompletionEngine.java

                        char[] completionName = CharOperation.concat(
                                        method.declaringClass.qualifiedPackageName(), 
                                        '.', 
                                        method.declaringClass.qualifiedSourceName(), 
                                        '.', 
                                        method.selector             );

                        completionName = CharOperation.concat(completionName, SEMICOLON);

                        int relevance = computeBaseRelevance();
                        relevance += computeRelevanceForInterestingProposal();
                        relevance += computeRelevanceForCaseMatching(methodName, method.selector);
                        relevance += computeRelevanceForRestrictions(IAccessRule.K_ACCESSIBLE);

                        this.noProposal = false;


Clone AbstractionParameter Count: 3Parameter Bindings

char[] completionName = CharOperation.concat( [[#variable52a3c7c0]].declaringClass.qualifiedPackageName(), '.',  [[#variable52a3c7c0]].declaringClass.qualifiedSourceName(), '.',  [[#variable52a3c7c0]]. [[#variable53356200]]);
completionName = CharOperation.concat(completionName, SEMICOLON);
int relevance = computeBaseRelevance();
relevance += computeRelevanceForInterestingProposal();
relevance += computeRelevanceForCaseMatching( [[#variable5b568180]],  [[#variable52a3c7c0]]. [[#variable53356200]]);
relevance += computeRelevanceForRestrictions(IAccessRule.K_ACCESSIBLE);
this.noProposal = false;
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#52a3c7c0]]
field 
12[[#52a3c7c0]]
method 
21[[#53356200]]
name 
22[[#53356200]]
selector 
31[[#5b568180]]
fieldName 
32[[#5b568180]]
methodName