| Previous CloneSet | Next CloneSet | Back to Main Report |
| Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
|---|---|---|---|---|
| 28 | 2 | 2 | 0.983 | IfStatement |
| Clone Abstraction | Parameter Bindings |
| Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
|---|---|---|---|
| 1 | 28 | 256 | Closure/closure/goog/i18n/numberformat.js |
| 2 | 28 | 221 | Closure/closure/goog/locale/numberformat.js |
| ||||
if (ch== exponentChar.charAt(0)) {
if (sawExponent) {
break;
}
normalizedText+= 'E';
sawExponent= true;
}
else
if (ch== '+'
|| ch== '-') {
normalizedText+= ch;
}
else
if (ch== goog.i18n.NumberFormatSymbols.PERCENT.charAt(0)) {
if (scale!= 1) {
break;
}
scale= 100;
if (sawDigit) {
pos[0]++; // eat this character if parse end here
break;
}
}
else
if (ch== goog.i18n.NumberFormatSymbols.PERMILL.charAt(0)) {
if (scale!= 1) {
break;
}
scale= 1000;
if (sawDigit) {
pos[0]++; // eat this character if parse end here
break;
}
}
else
{
break;
}
|
| ||||
if (ch== exponentChar.charAt(0)) {
if (sawExponent) {
break;
}
normalizedText+= 'E';
sawExponent= true;
}
else
if (ch== '+'
|| ch== '-') {
normalizedText+= ch;
}
else
if (ch== this.symbols_.PERCENT.charAt(0)) {
if (scale!= 1) {
break;
}
scale= 100;
if (sawDigit) {
pos[0]++; // eat this character if parse end here
break;
}
}
else
if (ch== this.symbols_.PERMILL.charAt(0)) {
if (scale!= 1) {
break;
}
scale= 1000;
if (sawDigit) {
pos[0]++; // eat this character if parse end here
break;
}
}
else
{
break;
}
|
| |||
if (ch==exponentChar.charAt(0))
{ if (sawExponent)
{ break;
}
normalizedText+='E';
sawExponent= true;
}
else
if (ch=='+'
|| ch=='-')
{ normalizedText+=ch;
}
else
if (ch== [[#variable5e0d3080]]. [[#variable5e0d3000]].PERCENT.charAt(0))
{ if (scale!=1)
{ break;
}
scale=100;
if (sawDigit)
{ pos[0]++; // eat this character if parse end here
break;
}
}
else
if (ch== [[#variable5e0d3080]]. [[#variable5e0d3000]].PERMILL.charAt(0))
{ if (scale!=1)
{ break;
}
scale=1000;
if (sawDigit)
{ pos[0]++; // eat this character if parse end here
break;
}
}
else
{ break;
}
|
| CloneAbstraction |
| Parameter Index | Clone Instance | Parameter Name | Value |
|---|---|---|---|
| 1 | 1 | [[#5e0d3080]] | goog.i18n |
| 1 | 2 | [[#5e0d3080]] | this |
| 2 | 1 | [[#5e0d3000]] | NumberFormatSymbols |
| 2 | 2 | [[#5e0d3000]] | symbols_ |