| Previous CloneSet | Next CloneSet | Back to Main Report |
| Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
|---|---|---|---|---|
| 7 | 2 | 2 | 0.980 | IterationStatement |
| Clone Abstraction | Parameter Bindings |
| Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
|---|---|---|---|
| 1 | 7 | 149 | Closure/closure/goog/structs/trie.js |
| 2 | 7 | 237 | Closure/closure/goog/structs/trie.js |
| ||||
for (var characterPosition= 0; characterPosition< key.length;
characterPosition++) {
var currentCharacter= key.charAt(characterPosition);
if (!node.childNodes_[currentCharacter]) {
return undefined;
}
node= node.childNodes_[currentCharacter];
}
|
| ||||
for (var characterPosition= 0; characterPosition< opt_prefix.length;
characterPosition++) {
var currentCharacter= opt_prefix.charAt(characterPosition);
if (!node.childNodes_[currentCharacter]) {
return [ ];
}
node= node.childNodes_[currentCharacter];
}
|
| |||
for (var characterPosition=0; characterPosition< [[#variable20c9fe20]].length; characterPosition++)
{ var currentCharacter= [[#variable20c9fe20]].charAt(characterPosition);
if (!node.childNodes_[currentCharacter])
{ return [[#variable20c9fdc0]];
}
node=node.childNodes_[currentCharacter];
}
|
| CloneAbstraction |
| Parameter Index | Clone Instance | Parameter Name | Value |
|---|---|---|---|
| 1 | 1 | [[#20c9fe20]] | opt_prefix |
| 1 | 2 | [[#20c9fe20]] | key |
| 2 | 1 | [[#20c9fdc0]] | [ ] |
| 2 | 2 | [[#20c9fdc0]] | undefined |