Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
5 | 2 | 2 | 0.987 | ExpressionStatement |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 5 | 104 | Closure/closure/goog/structs/set.js |
2 | 5 | 117 | Closure/closure/goog/structs/set.js |
| ||||
/** * Adds all the values in the given collection to this set. * @param {Array|Object} col A collection containing the elements to add. */ goog.structs.Set.prototype.addAll= function (col){ var values= goog.structs.getValues(col); var l= values.length; for (var i= 0; i< l; i++) { this.add(values[i]); } } ; |
| ||||
/** * Removes all values in the given collection from this set. * @param {Array|Object} col A collection containing the elements to remove. */ goog.structs.Set.prototype.removeAll= function (col){ var values= goog.structs.getValues(col); var l= values.length; for (var i= 0; i< l; i++) { this.remove(values[i]); } } ; |
| |||
/** * Removes all values in the given collection from this set. * @param {Array|Object} col A collection containing the elements to remove. */ /** * Adds all the values in the given collection to this set. * @param {Array|Object} col A collection containing the elements to add. */ goog.structs.Set.prototype. [[#variable3ed662a0]]= function (col) { var values=goog.structs.getValues(col); var l=values.length; for (var i=0; i<l; i++) { this. [[#variable3ed66200]](values[i]); } } ; |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#3ed662a0]] | removeAll |
1 | 2 | [[#3ed662a0]] | addAll |
2 | 1 | [[#3ed66200]] | remove |
2 | 2 | [[#3ed66200]] | add |