CloneSet714


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
3230.954ExpressionStatement
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
13662
Closure/closure/goog/color/color.js
23678
Closure/closure/goog/color/color.js
Clone Instance
1
Line Count
3
Source Line
662
Source File
Closure/closure/goog/color/color.js

/**
 * Adds black to the specified color, darkening it
 * @param {Array.<number>} rgb Color represented by a 3-element array with
 *     red, green, and blue values respectively, in the range [0, 255].
 * @param {number} factor Number in the range [0, 1]. 0 will do nothing, while
 *     1 will return black. If less than 0, factor will be set to 0. If greater
 *     than 1, factor will be set to 1.
 * @return {!Array.<number>} Combined color represented by a 3-element array
 *     with red, green, and blue values respectively, in the range [0, 255].
 */
goog.color.darken=  function (rgb, factor){
  var black=  [0, 0, 0];
  return goog.color.blend(black, rgb, factor);
                                          } ;


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

/**
 * Adds white to the specified color, lightening it
 * @param {Array.<number>} rgb Color represented by a 3-element array with
 *     red, green, and blue values respectively, in the range [0, 255].
 * @param {number} factor Number in the range [0, 1].  0 will do nothing, while
 *     1 will return white. If less than 0, factor will be set to 0. If greater
 *     than 1, factor will be set to 1.
 * @return {!Array.<number>} Combined color represented by a 3-element array
 *     with red, green, and blue values respectively, in the range [0, 255].
 */
goog.color.lighten=  function (rgb, factor){
  var white=  [255, 255, 255];
  return goog.color.blend(white, rgb, factor);
                                           } ;


Clone AbstractionParameter Count: 3Parameter Bindings

/**
 * Adds white to the specified color, lightening it
 * @param {Array.<number>} rgb Color represented by a 3-element array with
 *     red, green, and blue values respectively, in the range [0, 255].
 * @param {number} factor Number in the range [0, 1].  0 will do nothing, while
 *     1 will return white. If less than 0, factor will be set to 0. If greater
 *     than 1, factor will be set to 1.
 * @return {!Array.<number>} Combined color represented by a 3-element array
 *     with red, green, and blue values respectively, in the range [0, 255].
 */
/**
 * Adds black to the specified color, darkening it
 * @param {Array.<number>} rgb Color represented by a 3-element array with
 *     red, green, and blue values respectively, in the range [0, 255].
 * @param {number} factor Number in the range [0, 1]. 0 will do nothing, while
 *     1 will return black. If less than 0, factor will be set to 0. If greater
 *     than 1, factor will be set to 1.
 * @return {!Array.<number>} Combined color represented by a 3-element array
 *     with red, green, and blue values respectively, in the range [0, 255].
 */
goog.color. [[#variable3b1f2460]]= function (rgb,factor)
                                   { var [[#variable3b1f23c0]]=[ [[#variable3b1f2360]], [[#variable3b1f2360]], [[#variable3b1f2360]]];
                                     return goog.color.blend( [[#variable3b1f23c0]],rgb,factor);
                                   } ;
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#3b1f2460]]
lighten 
12[[#3b1f2460]]
darken 
21[[#3b1f23c0]]
white 
22[[#3b1f23c0]]
black 
31[[#3b1f2360]]
255 
32[[#3b1f2360]]
0