Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
4 | 2 | 3 | 0.959 | ExpressionStatement |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 4 | 184 | Closure/closure/goog/math/size.js |
2 | 4 | 130 | Closure/closure/goog/math/vec2.js |
| ||||
/** * Scales the size uniformly by a factor. * @param {number} s The scale factor. * @return {goog.math.Size} This Size object after scaling. */ goog.math.Size.prototype.scale= function (s){ this.width *= s; this.height *= s; return this ; } ; |
| ||||
/** * Scales the current vector by a constant. * @param {number} s The scale factor. * @return {!goog.math.Vec2} The scaled vector. */ goog.math.Vec2.prototype.scale= function (s){ this.x *= s; this.y *= s; return this ; } ; |
| |||
/** * Scales the size uniformly by a factor. * @param {number} s The scale factor. * @return {goog.math.Size} This Size object after scaling. */ /** * Scales the current vector by a constant. * @param {number} s The scale factor. * @return {!goog.math.Vec2} The scaled vector. */ goog.math. [[#variable630baa80]].prototype.scale= function (s) { this. [[#variable630baa20]]*= s; this. [[#variable630ba980]]*= s; return this ; } ; |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#630baa80]] | Size |
1 | 2 | [[#630baa80]] | Vec2 |
2 | 1 | [[#630baa20]] | width |
2 | 2 | [[#630baa20]] | x |
3 | 1 | [[#630ba980]] | height |
3 | 2 | [[#630ba980]] | y |