| Previous CloneSet | Next CloneSet | Back to Main Report |
| Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
|---|---|---|---|---|
| 8 | 2 | 2 | 0.988 | ExpressionStatement |
| Clone Abstraction | Parameter Bindings |
| Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
|---|---|---|---|
| 1 | 8 | 260 | Closure/closure/goog/structs/heap.js |
| 2 | 8 | 275 | Closure/closure/goog/structs/heap.js |
| ||||
/**
* Gets the values of the heap.
* @return {Array} The values in the heap.
*/
goog.structs.Heap.prototype.getValues= function ( )
{
var nodes= this.nodes_;
var rv= [ ];
var l= nodes.length;
for (var i= 0; i< l; i++) {
rv.push(nodes[i].getValue( ));
}
return rv;
} ;
|
| ||||
/**
* Gets the keys of the heap.
* @return {Array} The keys in the heap.
*/
goog.structs.Heap.prototype.getKeys= function ( )
{
var nodes= this.nodes_;
var rv= [ ];
var l= nodes.length;
for (var i= 0; i< l; i++) {
rv.push(nodes[i].getKey( ));
}
return rv;
} ;
|
| |||
/**
* Gets the keys of the heap.
* @return {Array} The keys in the heap.
*/
/**
* Gets the values of the heap.
* @return {Array} The values in the heap.
*/
goog.structs.Heap.prototype. [[#variable1f358de0]]= function ( )
{ var nodes=this.nodes_;
var rv=[ ];
var l=nodes.length;
for (var i=0; i<l; i++)
{ rv.push(nodes[i]. [[#variable1f358d60]]( ));
}
return rv;
} ;
|
| CloneAbstraction |
| Parameter Index | Clone Instance | Parameter Name | Value |
|---|---|---|---|
| 1 | 1 | [[#1f358de0]] | getKeys |
| 1 | 2 | [[#1f358de0]] | getValues |
| 2 | 1 | [[#1f358d60]] | getKey |
| 2 | 2 | [[#1f358d60]] | getValue |