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.974 | ExpressionStatement |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 2 | 131 | Closure/closure/goog/structs/set.js |
2 | 2 | 158 | Closure/closure/goog/structs/set.js |
| ||||
/** * Removes the given element from this set. * @param {*} element The primitive or object to remove. * @return {boolean} Whether the element was found and removed. */ goog.structs.Set.prototype.remove= function (element){ return this.map_.remove(goog.structs.Set.getKey_(element)); } ; |
| ||||
/** * Tests whether this set contains the given element. * @param {*} element The primitive or object to test for. * @return {boolean} True if this set contains the given element. */ goog.structs.Set.prototype.contains= function (element){ return this.map_.containsKey(goog.structs.Set.getKey_(element)); } ; |
| |||
/** * Tests whether this set contains the given element. * @param {*} element The primitive or object to test for. * @return {boolean} True if this set contains the given element. */ /** * Removes the given element from this set. * @param {*} element The primitive or object to remove. * @return {boolean} Whether the element was found and removed. */ goog.structs.Set.prototype. [[#variable1f8a1320]]= function (element) { return this.map_. [[#variable1f8a12c0]](goog.structs.Set.getKey_(element)); } ; |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#1f8a1320]] | contains |
1 | 2 | [[#1f8a1320]] | remove |
2 | 1 | [[#1f8a12c0]] | containsKey |
2 | 2 | [[#1f8a12c0]] | remove |