CloneSet158


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
2530.952ExpressionStatement
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
12208
Closure/closure/goog/color/alpha.js
22219
Closure/closure/goog/color/alpha.js
32230
Closure/closure/goog/color/alpha.js
42285
Closure/closure/goog/color/alpha.js
52446
Closure/closure/goog/color/alpha.js
Clone Instance
1
Line Count
2
Source Line
208
Source File
Closure/closure/goog/color/alpha.js

/**
 * Converts a color from RGBA to hex representation.
 * @param {Array.<number>} rgba Array of [r, g, b, a], with r, g, b in [0, 255]
 *     and a in [0, 1].
 * @return {string} hex representation of the color.
 */
goog.color.alpha.rgbaArrayToHex=  function (rgba){
  return goog.color.alpha.rgbaToHex(rgba[0], rgba[1], rgba[2], rgba[3]);
                                                 } ;


Clone Instance
2
Line Count
2
Source Line
219
Source File
Closure/closure/goog/color/alpha.js

/**
 * Converts a color from HSLA to hex representation.
 * @param {Array.<number>} hsla Array of [h, s, l, a], where h is an integer in
 *     [0, 360], s and l are integers in [0, 100], and a is in [0, 1].
 * @return {string} hex representation of the color, such as '#af457eff'.
 */
goog.color.alpha.hslaArrayToHex=  function (hsla){
  return goog.color.alpha.hslaToHex(hsla[0], hsla[1], hsla[2], hsla[3]);
                                                 } ;


Clone Instance
3
Line Count
2
Source Line
230
Source File
Closure/closure/goog/color/alpha.js

/**
 * Converts a color from HSLA to an RGBA style string.
 * @param {Array.<number>} hsla Array of [h, s, l, a], where h is and integer in
 *     [0, 360], s and l are integers in [0, 100], and a is in [0, 1].
 * @return {string} An 'rgba(r,g,b,a)' string ready for use in a CSS rule.
 */
goog.color.alpha.hslaArrayToRgbaStyle=  function (hsla){
  return goog.color.alpha.hslaToRgbaStyle(hsla[0], hsla[1], hsla[2], hsla[3]);
                                                       } ;


Clone Instance
4
Line Count
2
Source Line
285
Source File
Closure/closure/goog/color/alpha.js

/**
 * Converts a color from RGBA color space to HSLA color space.
 * @param {Array.<number>} rgba [r, g, b, a] values for the color, each in
 *     [0, 255].
 * @return {Array.<number>} [h, s, l, a] values for the color, with h in
 *     [0, 360] and s, l and a in [0, 1].
 */
goog.color.alpha.rgbaArrayToHsla=  function (rgba){
  return goog.color.alpha.rgbaToHsla(rgba[0], rgba[1], rgba[2], rgba[3]);
                                                  } ;


Clone Instance
5
Line Count
2
Source Line
446
Source File
Closure/closure/goog/color/alpha.js

/**
 * Converts from an HSVA array to a hex string
 * @param {Array} hsva Array of [h, s, v, a] in
 *     [[0, 1], [0, 1], [0, 255], [0, 1]].
 * @return {string} hex representation of the color.
 */
goog.color.alpha.hsvaArrayToHex=  function (hsva){
  return goog.color.alpha.hsvaToHex(hsva[0], hsva[1], hsva[2], hsva[3]);
                                                 } ;


Clone AbstractionParameter Count: 3Parameter Bindings

/**
 * Converts from an HSVA array to a hex string
 * @param {Array} hsva Array of [h, s, v, a] in
 *     [[0, 1], [0, 1], [0, 255], [0, 1]].
 * @return {string} hex representation of the color.
 */
/**
 * Converts a color from RGBA color space to HSLA color space.
 * @param {Array.<number>} rgba [r, g, b, a] values for the color, each in
 *     [0, 255].
 * @return {Array.<number>} [h, s, l, a] values for the color, with h in
 *     [0, 360] and s, l and a in [0, 1].
 */
/**
 * Converts a color from HSLA to an RGBA style string.
 * @param {Array.<number>} hsla Array of [h, s, l, a], where h is and integer in
 *     [0, 360], s and l are integers in [0, 100], and a is in [0, 1].
 * @return {string} An 'rgba(r,g,b,a)' string ready for use in a CSS rule.
 */
/**
 * Converts a color from HSLA to hex representation.
 * @param {Array.<number>} hsla Array of [h, s, l, a], where h is an integer in
 *     [0, 360], s and l are integers in [0, 100], and a is in [0, 1].
 * @return {string} hex representation of the color, such as '#af457eff'.
 */
/**
 * Converts a color from RGBA to hex representation.
 * @param {Array.<number>} rgba Array of [r, g, b, a], with r, g, b in [0, 255]
 *     and a in [0, 1].
 * @return {string} hex representation of the color.
 */
goog.color.alpha. [[#variable5f15e0c0]]= function ( [[#variable5ce90000]])
                                         { return goog.color.alpha. [[#variable5f15fee0]]( [[#variable5ce90000]][0], [[#variable5ce90000]][1], [[#variable5ce90000]][2], [[#variable5ce90000]][3]);
                                         } ;
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#5f15e0c0]]
hsvaArrayToHex 
12[[#5f15e0c0]]
rgbaArrayToHsla 
13[[#5f15e0c0]]
hslaArrayToRgbaStyle 
14[[#5f15e0c0]]
hslaArrayToHex 
15[[#5f15e0c0]]
rgbaArrayToHex 
21[[#5ce90000]]
hsva 
22[[#5ce90000]]
rgba 
23[[#5ce90000]]
hsla 
24[[#5ce90000]]
hsla 
25[[#5ce90000]]
rgba 
31[[#5f15fee0]]
hsvaToHex 
32[[#5f15fee0]]
rgbaToHsla 
33[[#5f15fee0]]
hslaToRgbaStyle 
34[[#5f15fee0]]
hslaToHex 
35[[#5f15fee0]]
rgbaToHex