CloneSet209


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
15220.967StatementList[2]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
115377
Closure/closure/goog/structs/avltree.js
215434
Closure/closure/goog/structs/avltree.js
Clone Instance
1
Line Count
15
Source Line
377
Source File
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;
           }
                       }


Clone Instance
2
Line Count
15
Source Line
434
Source File
Closure/closure/goog/structs/avltree.js

  // 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;
           }
                       }


Clone AbstractionParameter Count: 2Parameter Bindings

// 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 Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#61b50280]]
left 
12[[#61b50280]]
right 
21[[#5a125080]]
right 
22[[#5a125080]]
left