| Previous CloneSet | Next CloneSet | Back to Main Report |
| Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
|---|---|---|---|---|
| 7 | 2 | 4 | 0.965 | Block |
| Clone Abstraction | Parameter Bindings |
| Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
|---|---|---|---|
| 1 | 7 | 942 | Closure/closure/goog/base.js |
| 2 | 7 | 973 | Closure/closure/goog/base.js |
| ||||
{
var boundArgs= Array.prototype.slice.call(arguments, 2);
return function ( )
{
// Prepend the bound arguments to the current arguments.
var newArgs= Array.prototype.slice.call(arguments);
Array.prototype.unshift.apply(newArgs, boundArgs);
return fn.apply(context, newArgs);
} ;
}
|
| ||||
{
var args= Array.prototype.slice.call(arguments, 1);
return function ( )
{
// Prepend the bound arguments to the current arguments.
var newArgs= Array.prototype.slice.call(arguments);
newArgs.unshift.apply(newArgs, args);
return fn.apply(this, newArgs);
} ;
}
|
| |||
{ var [[#variable20ed6320]]=Array.prototype.slice.call(arguments, [[#variable20ed6200]]);
return function ( )
{
// Prepend the bound arguments to the current arguments.
var newArgs=Array.prototype.slice.call(arguments);
[[#variable20ed61c0]].unshift.apply(newArgs, [[#variable20ed6320]]);
return fn.apply( [[#variable20ed6180]],newArgs);
} ;
}
|
| CloneAbstraction |
| Parameter Index | Clone Instance | Parameter Name | Value |
|---|---|---|---|
| 1 | 1 | [[#20ed6320]] | args |
| 1 | 2 | [[#20ed6320]] | boundArgs |
| 2 | 1 | [[#20ed6200]] | 1 |
| 2 | 2 | [[#20ed6200]] | 2 |
| 3 | 1 | [[#20ed61c0]] | newArgs |
| 3 | 2 | [[#20ed61c0]] | Array.prototype |
| 4 | 1 | [[#20ed6180]] | this |
| 4 | 2 | [[#20ed6180]] | context |