CloneSet393


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
7240.979StatementList[3]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
17171
Closure/closure/goog/color/alpha.js
27191
Closure/closure/goog/color/alpha.js
Clone Instance
1
Line Count
7
Source Line
171
Source File
Closure/closure/goog/color/alpha.js

  var intAlpha=  Math.floor(a*  255);
  if (isNaN(intAlpha)
      ||                 intAlpha<  0
      ||                                 intAlpha>  255) {
    // TODO: The CSS spec says the value should be clamped.
    throw Error('"('+  r+  ','+  g+  ','+  b+  ','+  a+
        '") is not a valid RGBA color');
                                                         }
  var hexA=  goog.color.prependZeroIfNecessary_(intAlpha.toString(16));


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

  var intAlpha=  Math.floor(a*  255);
  if (isNaN(intAlpha)
      ||                 intAlpha<  0
      ||                                 intAlpha>  255) {
    // TODO: The CSS spec says the value should be clamped.
    throw Error('"('+  h+  ','+  s+  ','+  l+  ','+  a+
        '") is not a valid HSLA color');
                                                         }
  var hexA=  goog.color.prependZeroIfNecessary_(intAlpha.toString(16));


Clone AbstractionParameter Count: 4Parameter Bindings

var intAlpha=Math.floor(a*255);
if (isNaN(intAlpha)
    || intAlpha<0
    || intAlpha>255)
  {
    // TODO: The CSS spec says the value should be clamped.
    throw Error('"('+ [[#variable3ccb1e20]]+','+ [[#variable3ccb0980]]+','+ [[#variable5ce74160]]+','+a+ [[#variable5ce74100]]);
  }
var hexA=goog.color.prependZeroIfNecessary_(intAlpha.toString(16));
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#3ccb1e20]]
r 
12[[#3ccb1e20]]
h 
21[[#3ccb0980]]
g 
22[[#3ccb0980]]
s 
31[[#5ce74160]]
b 
32[[#5ce74160]]
l 
41[[#5ce74100]]
'") is not a valid RGBA color' 
42[[#5ce74100]]
'") is not a valid HSLA color'