Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
10 | 2 | 2 | 0.971 | Block |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 10 | 169 | Closure/closure/goog/structs/avltree.js |
2 | 10 | 180 | Closure/closure/goog/structs/avltree.js |
| ||||
{ retNode= node.left; if (node.left== null) { var newNode= new goog.structs.AvlTree.Node(value, node); node.left= newNode; if (node== this.minNode_) { this.minNode_= newNode; } retStatus= true; // Value was added to tree this.balance_(node); // Maintain the AVL-tree balance } } |
| ||||
{ retNode= node.right; if (node.right== null) { var newNode= new goog.structs.AvlTree.Node(value, node); node.right= newNode; if (node== this.maxNode_) { this.maxNode_= newNode; } retStatus= true; // Value was added to tree this.balance_(node); // Maintain the AVL-tree balance } } |
| |||
{ retNode=node. [[#variable1e5f0bc0]]; if (node. [[#variable1e5f0bc0]]==null) { var newNode=new goog.structs.AvlTree.Node(value,node); node. [[#variable1e5f0bc0]]=newNode; if (node==this. [[#variable1e5f0c20]]) { this. [[#variable1e5f0c20]]=newNode; } retStatus= true; // Value was added to tree this.balance_(node); // Maintain the AVL-tree balance } } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#1e5f0bc0]] | right |
1 | 2 | [[#1e5f0bc0]] | left |
2 | 1 | [[#1e5f0c20]] | maxNode_ |
2 | 2 | [[#1e5f0c20]] | minNode_ |