CloneSet419


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
10220.971Block
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
110169
Closure/closure/goog/structs/avltree.js
210180
Closure/closure/goog/structs/avltree.js
Clone Instance
1
Line Count
10
Source Line
169
Source File
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
                             }
                                                 }


Clone Instance
2
Line Count
10
Source Line
180
Source File
Closure/closure/goog/structs/avltree.js

                                                       {
      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
                              }
                                                       }


Clone AbstractionParameter Count: 2Parameter Bindings

{ 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 Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#1e5f0bc0]]
right 
12[[#1e5f0bc0]]
left 
21[[#1e5f0c20]]
maxNode_ 
22[[#1e5f0c20]]
minNode_