Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
15 | 2 | 5 | 0.954 | statement_sequence[6] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 15 | 4868 | plugins/org.eclipse.jdt.core/codeassist/org/eclipse/jdt/internal/codeassist/CompletionEngine.java |
2 | 15 | 5177 | plugins/org.eclipse.jdt.core/codeassist/org/eclipse/jdt/internal/codeassist/CompletionEngine.java |
| ||||
if (PROPOSE_MEMBER_TYPES) { if (this.assistNodeIsClass) { if ( !localType.isClass()) continue next; } else if (this.assistNodeIsInterface) { if ( !localType.isInterface() && !localType.isAnnotationType()) continue next; } else if (this.assistNodeIsAnnotation) { if ( !localType.isAnnotationType()) continue next; } } int relevance = computeBaseRelevance(); relevance += computeRelevanceForInterestingProposal(); relevance += computeRelevanceForCaseMatching(typeName, localType.sourceName); relevance += computeRelevanceForExpectingType(localType); relevance += computeRelevanceForException(localType.sourceName); |
| ||||
if (PROPOSE_MEMBER_TYPES) { if (this.assistNodeIsClass) { if ( !refBinding.isClass()) continue next; } else if (this.assistNodeIsInterface) { if ( !refBinding.isInterface() && !refBinding.isAnnotationType()) continue next; } else if (this.assistNodeIsAnnotation) { if ( !refBinding.isAnnotationType()) continue next; } } int relevance = computeBaseRelevance(); relevance += computeRelevanceForInterestingProposal(); relevance += computeRelevanceForCaseMatching(token, typeName); relevance += computeRelevanceForExpectingType(refBinding); relevance += computeRelevanceForQualification(isQualified); |
| |||
if (PROPOSE_MEMBER_TYPES) { if (this.assistNodeIsClass) { if ( ! [[#variable55392fc0]].isClass()) continue next; } else if (this.assistNodeIsInterface) { if ( ! [[#variable55392fc0]].isInterface() && ! [[#variable55392fc0]].isAnnotationType()) continue next; } else if (this.assistNodeIsAnnotation) { if ( ! [[#variable55392fc0]].isAnnotationType()) continue next; } } int relevance = computeBaseRelevance(); relevance += computeRelevanceForInterestingProposal(); relevance += computeRelevanceForCaseMatching( [[#variable55392ec0]], [[#variable55392e40]]); relevance += computeRelevanceForExpectingType( [[#variable55392fc0]]); relevance += [[#variable55392e60]]( [[#variable55392ce0]]); |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#55392fc0]] | refBinding |
1 | 2 | [[#55392fc0]] | localType |
2 | 1 | [[#55392ec0]] | token |
2 | 2 | [[#55392ec0]] | typeName |
3 | 1 | [[#55392e40]] | typeName |
3 | 2 | [[#55392e40]] | localType.sourceName |
4 | 1 | [[#55392e60]] | computeRelevanceForQualification |
4 | 2 | [[#55392e60]] | computeRelevanceForException |
5 | 1 | [[#55392ce0]] | isQualified |
5 | 2 | [[#55392ce0]] | localType.sourceName |