| Previous CloneSet | Next CloneSet | Back to Main Report |
| Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
|---|---|---|---|---|
| 16 | 2 | 3 | 0.966 | Cases[3] |
| Clone Abstraction | Parameter Bindings |
| Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
|---|---|---|---|
| 1 | 16 | 628 | Closure/closure/goog/i18n/numberformat.js |
| 2 | 16 | 600 | Closure/closure/goog/locale/numberformat.js |
| ||||
case goog.i18n.NumberFormat.PATTERN_PERCENT_:
if (this.multiplier_!= 1) {
throw Error('Too many percent/permill');
}
this.multiplier_= 100;
affix+= goog.i18n.NumberFormatSymbols.PERCENT;
break;
case goog.i18n.NumberFormat.PATTERN_PER_MILLE_:
if (this.multiplier_!= 1) {
throw Error('Too many percent/permill');
}
this.multiplier_= 1000;
affix+= goog.i18n.NumberFormatSymbols.PERMILL;
break;
default:
affix+= ch;
|
| ||||
case goog.locale.NumberFormat.PATTERN_PERCENT_:
if (this.multiplier_!= 1) {
throw Error('Too many percent/permill');
}
this.multiplier_= 100;
affix+= this.symbols_.PERCENT;
break;
case goog.locale.NumberFormat.PATTERN_PER_MILLE_:
if (this.multiplier_!= 1) {
throw Error('Too many percent/permill');
}
this.multiplier_= 1000;
affix+= this.symbols_.PERMILL;
break;
default:
affix+= ch;
|
| |||
case goog. [[#variable583c1a40]].NumberFormat.PATTERN_PERCENT_:
if (this.multiplier_!=1)
{ throw Error('Too many percent/permill');
}
this.multiplier_=100;
affix+= [[#variable5cc1b100]]. [[#variable583c1920]].PERCENT;
break;
case goog. [[#variable583c1a40]].NumberFormat.PATTERN_PER_MILLE_:
if (this.multiplier_!=1)
{ throw Error('Too many percent/permill');
}
this.multiplier_=1000;
affix+= [[#variable5cc1b100]]. [[#variable583c1920]].PERMILL;
break;
default:
affix+=ch;
|
| CloneAbstraction |
| Parameter Index | Clone Instance | Parameter Name | Value |
|---|---|---|---|
| 1 | 1 | [[#583c1a40]] | locale |
| 1 | 2 | [[#583c1a40]] | i18n |
| 2 | 1 | [[#5cc1b100]] | this |
| 2 | 2 | [[#5cc1b100]] | goog.i18n |
| 3 | 1 | [[#583c1920]] | symbols_ |
| 3 | 2 | [[#583c1920]] | NumberFormatSymbols |