CloneSet1218


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
3230.960ExpressionStatement
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
13291
Closure/closure/goog/structs/heap.js
23303
Closure/closure/goog/structs/heap.js
Clone Instance
1
Line Count
3
Source Line
291
Source File
Closure/closure/goog/structs/heap.js

/**
 * Whether the heap contains the given value.
 * @param {Object} val The value to check for.
 * @return {boolean} Whether the heap contains the value.
 */
goog.structs.Heap.prototype.containsValue=  function (val){
  return goog.array.some(this.nodes_, function (node){
    return node.getValue( )== val;
                                                     } );
                                                          } ;


Clone Instance
2
Line Count
3
Source Line
303
Source File
Closure/closure/goog/structs/heap.js

/**
 * Whether the heap contains the given key.
 * @param {Object} key The key to check for.
 * @return {boolean} Whether the heap contains the key.
 */
goog.structs.Heap.prototype.containsKey=  function (key){
  return goog.array.some(this.nodes_, function (node){
    return node.getKey( )== key;
                                                     } );
                                                        } ;


Clone AbstractionParameter Count: 3Parameter Bindings

/**
 * Whether the heap contains the given key.
 * @param {Object} key The key to check for.
 * @return {boolean} Whether the heap contains the key.
 */
/**
 * Whether the heap contains the given value.
 * @param {Object} val The value to check for.
 * @return {boolean} Whether the heap contains the value.
 */
goog.structs.Heap.prototype. [[#variable20dd8940]]= function ( [[#variable20dd88e0]])
                                                    { return goog.array.some(this.nodes_, function (node)
                                                                                          { return node. [[#variable20dd8880]]( )== [[#variable20dd88e0]];
                                                                                          } );
                                                    } ;
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#20dd8940]]
containsKey 
12[[#20dd8940]]
containsValue 
21[[#20dd88e0]]
key 
22[[#20dd88e0]]
val 
31[[#20dd8880]]
getKey 
32[[#20dd8880]]
getValue