| Previous CloneSet | Next CloneSet | Back to Main Report |
| Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
|---|---|---|---|---|
| 2 | 2 | 2 | 0.972 | ExpressionStatement |
| Clone Abstraction | Parameter Bindings |
| Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
|---|---|---|---|
| 1 | 2 | 81 | Closure/closure/goog/structs/trie.js |
| 2 | 2 | 92 | 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);
} ;
|
| ||||
/**
* 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);
} ;
|
| |||
/**
* 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 Index | Clone Instance | Parameter Name | Value |
|---|---|---|---|
| 1 | 1 | [[#3cf84be0]] | add |
| 1 | 2 | [[#3cf84be0]] | set |
| 2 | 1 | [[#3cf84ae0]] | true |
| 2 | 2 | [[#3cf84ae0]] | false |