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.971 | ExpressionStatement |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 2 | 98 | Closure/closure/goog/math/size.js |
2 | 2 | 106 | Closure/closure/goog/math/size.js |
| ||||
/** * @return {number} The longer of the two dimensions in the size. */ goog.math.Size.prototype.getLongest= function ( ) { return Math.max(this.width, this.height); } ; |
| ||||
/** * @return {number} The shorter of the two dimensions in the size. */ goog.math.Size.prototype.getShortest= function ( ) { return Math.min(this.width, this.height); } ; |
| |||
/** * @return {number} The shorter of the two dimensions in the size. */ /** * @return {number} The longer of the two dimensions in the size. */ goog.math.Size.prototype. [[#variable3bf9dc20]]= function ( ) { return Math. [[#variable3bf9dae0]](this.width,this.height); } ; |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#3bf9dc20]] | getShortest |
1 | 2 | [[#3bf9dc20]] | getLongest |
2 | 1 | [[#3bf9dae0]] | min |
2 | 2 | [[#3bf9dae0]] | max |