CloneSet1696


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
2220.972ExpressionStatement
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
1281
Closure/closure/goog/structs/trie.js
2292
Closure/closure/goog/structs/trie.js
Clone Instance
1
Line Count
2
Source Line
81
Source File
Closure/closure/goog/structs/trie.js

/**
 * Sets the given key/value pair in the trie.  O(L), where L is the length
 * of the key.
 * @param {string} key The key.
 * @param {*} value The value.
 */
goog.structs.Trie.prototype.set=  function (key, value){
  this.setOrAdd_(key, value, false);
                                                       } ;


Clone Instance
2
Line Count
2
Source Line
92
Source File
Closure/closure/goog/structs/trie.js

/**
 * Adds the given key/value pair in the trie.  Throw an exception if the key
 * already exists in the trie.  O(L), where L is the length of the key.
 * @param {string} key The key.
 * @param {*} value The value.
 */
goog.structs.Trie.prototype.add=  function (key, value){
  this.setOrAdd_(key, value, true);
                                                       } ;


Clone AbstractionParameter Count: 2Parameter Bindings

/**
 * Adds the given key/value pair in the trie.  Throw an exception if the key
 * already exists in the trie.  O(L), where L is the length of the key.
 * @param {string} key The key.
 * @param {*} value The value.
 */
/**
 * Sets the given key/value pair in the trie.  O(L), where L is the length
 * of the key.
 * @param {string} key The key.
 * @param {*} value The value.
 */
goog.structs.Trie.prototype. [[#variable3cf84be0]]= function (key,value)
                                                    { this.setOrAdd_(key,value, [[#variable3cf84ae0]]);
                                                    } ;
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#3cf84be0]]
add 
12[[#3cf84be0]]
set 
21[[#3cf84ae0]]
true 
22[[#3cf84ae0]]
false