| Previous CloneSet | Next CloneSet | Back to Main Report |
| Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
|---|---|---|---|---|
| 7 | 2 | 4 | 0.979 | StatementList[3] |
| Clone Abstraction | Parameter Bindings |
| Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
|---|---|---|---|
| 1 | 7 | 171 | Closure/closure/goog/color/alpha.js |
| 2 | 7 | 191 | 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));
|
| ||||
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));
|
| |||
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 Index | Clone Instance | Parameter Name | Value |
|---|---|---|---|
| 1 | 1 | [[#3ccb1e20]] | r |
| 1 | 2 | [[#3ccb1e20]] | h |
| 2 | 1 | [[#3ccb0980]] | g |
| 2 | 2 | [[#3ccb0980]] | s |
| 3 | 1 | [[#5ce74160]] | b |
| 3 | 2 | [[#5ce74160]] | l |
| 4 | 1 | [[#5ce74100]] | '") is not a valid RGBA color' |
| 4 | 2 | [[#5ce74100]] | '") is not a valid HSLA color' |