Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
15 | 2 | 2 | 0.967 | StatementList[2] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 15 | 377 | Closure/closure/goog/structs/avltree.js |
2 | 15 | 434 | Closure/closure/goog/structs/avltree.js |
| ||||
// Traverse the tree and call func on each traversed node's value var node= startNode, prev= startNode.left ? startNode.left : startNode; while (node!= null) { if (node.left!= null && node.left!= prev && node.right!= prev) { node= node.left; } else { if (node.right!= prev) { if (func(node.value)) { return; } } var temp= node; node= node.right!= null && node.right!= prev ?node.right :node.parent; prev= temp; } } |
| ||||
// Traverse the tree and call func on each traversed node's value var node= startNode, prev= startNode.right ? startNode.right : startNode; while (node!= null) { if (node.right!= null && node.right!= prev && node.left!= prev) { node= node.right; } else { if (node.left!= prev) { if (func(node.value)) { return; } } var temp= node; node= node.left!= null && node.left!= prev ?node.left :node.parent; prev= temp; } } |
| |||
// Traverse the tree and call func on each traversed node's value var node=startNode, prev=startNode. [[#variable61b50280]] ?startNode. [[#variable61b50280]] :startNode; while (node!=null) { if (node. [[#variable61b50280]]!=null && node. [[#variable61b50280]]!=prev && node. [[#variable5a125080]]!=prev) { node=node. [[#variable61b50280]]; } else { if (node. [[#variable5a125080]]!=prev) { if (func(node.value)) { return; } } var temp=node; node=node. [[#variable5a125080]]!=null && node. [[#variable5a125080]]!=prev ?node. [[#variable5a125080]] :node.parent; prev=temp; } } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#61b50280]] | left |
1 | 2 | [[#61b50280]] | right |
2 | 1 | [[#5a125080]] | right |
2 | 2 | [[#5a125080]] | left |