Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
3 | 2 | 3 | 0.960 | ExpressionStatement |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 3 | 291 | Closure/closure/goog/structs/heap.js |
2 | 3 | 303 | 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; } ); } ; |
| ||||
/** * 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; } ); } ; |
| |||
/** * 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 Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#20dd8940]] | containsKey |
1 | 2 | [[#20dd8940]] | containsValue |
2 | 1 | [[#20dd88e0]] | key |
2 | 2 | [[#20dd88e0]] | val |
3 | 1 | [[#20dd8880]] | getKey |
3 | 2 | [[#20dd8880]] | getValue |