Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
2 | 2 | 3 | 0.960 | ExpressionStatement |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 2 | 546 | Closure/closure/goog/color/color.js |
2 | 2 | 576 | Closure/closure/goog/color/color.js |
| ||||
/** * Converts from h,s,l values to a hex string * @param {number} h Hue, in [0, 360]. * @param {number} s Saturation, in [0, 1]. * @param {number} l Luminosity, in [0, 1]. * @return {string} hex representation of the color. */ goog.color.hslToHex= function (h, s, l){ return goog.color.rgbArrayToHex(goog.color.hslToRgb(h, s, l)); } ; |
| ||||
/** * Converts from h,s,v values to a hex string * @param {number} h Hue, in [0, 1]. * @param {number} s Saturation, in [0, 1]. * @param {number} v Value, in [0, 255]. * @return {string} hex representation of the color. */ goog.color.hsvToHex= function (h, s, v){ return goog.color.rgbArrayToHex(goog.color.hsvToRgb(h, s, v)); } ; |
| |||
/** * Converts from h,s,v values to a hex string * @param {number} h Hue, in [0, 1]. * @param {number} s Saturation, in [0, 1]. * @param {number} v Value, in [0, 255]. * @return {string} hex representation of the color. */ /** * Converts from h,s,l values to a hex string * @param {number} h Hue, in [0, 360]. * @param {number} s Saturation, in [0, 1]. * @param {number} l Luminosity, in [0, 1]. * @return {string} hex representation of the color. */ goog.color. [[#variable20ffece0]]= function (h,s, [[#variable20ffec80]]) { return goog.color.rgbArrayToHex(goog.color. [[#variable20ffec20]](h,s, [[#variable20ffec80]])); } ; |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#20ffece0]] | hsvToHex |
1 | 2 | [[#20ffece0]] | hslToHex |
2 | 1 | [[#20ffec80]] | v |
2 | 2 | [[#20ffec80]] | l |
3 | 1 | [[#20ffec20]] | hsvToRgb |
3 | 2 | [[#20ffec20]] | hslToRgb |