CloneSet163


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
28220.983IfStatement
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
128256
Closure/closure/goog/i18n/numberformat.js
228221
Closure/closure/goog/locale/numberformat.js
Clone Instance
1
Line Count
28
Source Line
256
Source File
Closure/closure/goog/i18n/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;
           }


Clone Instance
2
Line Count
28
Source Line
221
Source File
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==  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;
           }


Clone AbstractionParameter Count: 2Parameter Bindings

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 Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#5e0d3080]]
goog.i18n 
12[[#5e0d3080]]
this 
21[[#5e0d3000]]
NumberFormatSymbols 
22[[#5e0d3000]]
symbols_