Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
4 | 3 | 1 | 0.971 | ExpressionStatement |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 4 | 140 | Closure/closure/goog/math/size.js |
2 | 4 | 161 | Closure/closure/goog/math/size.js |
3 | 4 | 172 | Closure/closure/goog/math/size.js |
| ||||
/** * Clamps the width and height parameters upward to integer values. * @return {goog.math.Size} This size with ceil'd components. */ goog.math.Size.prototype.ceil= function ( ) { this.width= Math.ceil(this.width); this.height= Math.ceil(this.height); return this ; } ; |
| ||||
/** * Clamps the width and height parameters downward to integer values. * @return {goog.math.Size} This size with floored components. */ goog.math.Size.prototype.floor= function ( ) { this.width= Math.floor(this.width); this.height= Math.floor(this.height); return this ; } ; |
| ||||
/** * Rounds the width and height parameters to integer values. * @return {goog.math.Size} This size with rounded components. */ goog.math.Size.prototype.round= function ( ) { this.width= Math.round(this.width); this.height= Math.round(this.height); return this ; } ; |
| |||
/** * Rounds the width and height parameters to integer values. * @return {goog.math.Size} This size with rounded components. */ /** * Clamps the width and height parameters downward to integer values. * @return {goog.math.Size} This size with floored components. */ /** * Clamps the width and height parameters upward to integer values. * @return {goog.math.Size} This size with ceil'd components. */ goog.math.Size.prototype. [[#variable402a8f00]]= function ( ) { this.width=Math. [[#variable402a8f00]](this.width); this.height=Math. [[#variable402a8f00]](this.height); return this ; } ; |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#402a8f00]] | round |
1 | 2 | [[#402a8f00]] | floor |
1 | 3 | [[#402a8f00]] | ceil |