CloneSet329


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
7230.985ExpressionStatement
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
1789
Closure/closure/goog/color/alpha.js
27106
Closure/closure/goog/color/alpha.js
Clone Instance
1
Line Count
7
Source Line
89
Source File
Closure/closure/goog/color/alpha.js

/**
 * Gets the hex color part of an alpha hex color. For example, from '#abcdef55'
 * return '#abcdef'.
 * @param {string} colorWithAlpha The alpha hex color to get the hex color from.
 * @return {string} The hex color where the alpha part has been stripped off.
 */
goog.color.alpha.extractHexColor=  function (colorWithAlpha){
  if (goog.color.alpha.isValidAlphaHexColor_(colorWithAlpha)) {
    var fullColor=  goog.color.prependPoundIfNecessary_(colorWithAlpha);
    var normalizedColor=  goog.color.alpha.normalizeAlphaHex_(fullColor);
    return normalizedColor.substring(0, 7);
                                                              }
  else   {
    throw Error(colorWithAlpha+  ' is not a valid 8-hex color string');
         }
                                                            } ;


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

/**
 * Gets the alpha color part of an alpha hex color. For example, from
 * '#abcdef55' return '55'. The result is guaranteed to be two characters long.
 * @param {string} colorWithAlpha The alpha hex color to get the hex color from.
 * @return {string} The hex color where the alpha part has been stripped off.
 */
goog.color.alpha.extractAlpha=  function (colorWithAlpha){
  if (goog.color.alpha.isValidAlphaHexColor_(colorWithAlpha)) {
    var fullColor=  goog.color.prependPoundIfNecessary_(colorWithAlpha);
    var normalizedColor=  goog.color.alpha.normalizeAlphaHex_(fullColor);
    return normalizedColor.substring(7, 9);
                                                              }
  else   {
    throw Error(colorWithAlpha+  ' is not a valid 8-hex color string');
         }
                                                         } ;


Clone AbstractionParameter Count: 3Parameter Bindings

/**
 * Gets the alpha color part of an alpha hex color. For example, from
 * '#abcdef55' return '55'. The result is guaranteed to be two characters long.
 * @param {string} colorWithAlpha The alpha hex color to get the hex color from.
 * @return {string} The hex color where the alpha part has been stripped off.
 */
/**
 * Gets the hex color part of an alpha hex color. For example, from '#abcdef55'
 * return '#abcdef'.
 * @param {string} colorWithAlpha The alpha hex color to get the hex color from.
 * @return {string} The hex color where the alpha part has been stripped off.
 */
goog.color.alpha. [[#variable61671f60]]= function (colorWithAlpha)
                                         { if (goog.color.alpha.isValidAlphaHexColor_(colorWithAlpha))
                                             { var fullColor=goog.color.prependPoundIfNecessary_(colorWithAlpha);
                                               var normalizedColor=goog.color.alpha.normalizeAlphaHex_(fullColor);
                                               return normalizedColor.substring( [[#variable61671f00]], [[#variable61671e80]]);
                                             }
                                           else
                                             { throw Error(colorWithAlpha+' is not a valid 8-hex color string');
                                             }
                                         } ;
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#61671f60]]
extractAlpha 
12[[#61671f60]]
extractHexColor 
21[[#61671f00]]
7 
22[[#61671f00]]
0 
31[[#61671e80]]
9 
32[[#61671e80]]
7