CloneSet108


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
24220.989StatementList[5]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
124171
Closure/closure/goog/i18n/numberformat.js
224135
Closure/closure/goog/locale/numberformat.js
Clone Instance
1
Line Count
24
Source Line
171
Source File
Closure/closure/goog/i18n/numberformat.js

  var gotPositive=  text.indexOf(this.positivePrefix_, pos[0])==  pos[0];
  var gotNegative=  text.indexOf(this.negativePrefix_, pos[0])==  pos[0];

  // check for the longest match
  if (gotPositive
      &&             gotNegative) {
    if (this.positivePrefix_.length>  this.negativePrefix_.length) {
      gotNegative=  false;
                                                                   }
    else   if (this.positivePrefix_.length<  this.negativePrefix_.length) {
      gotPositive=  false;
                                                                          }
                                  }
  if (gotPositive) {
    pos[0]+=  this.positivePrefix_.length;
                   }
  else   if (gotNegative) {
    pos[0]+=  this.negativePrefix_.length;
                          }
  // process digits or Inf, find decimal position
  if (text.indexOf(goog.i18n.NumberFormatSymbols.INFINITY, pos[0])==  pos[0]) {
    pos[0]+=  goog.i18n.NumberFormatSymbols.INFINITY.length;
    ret=  Infinity;
                                                                              }
  else   {
    ret=  this.parseNumber_(text, pos);
         }


Clone Instance
2
Line Count
24
Source Line
135
Source File
Closure/closure/goog/locale/numberformat.js

  var gotPositive=  text.indexOf(this.positivePrefix_, pos[0])==  pos[0];
  var gotNegative=  text.indexOf(this.negativePrefix_, pos[0])==  pos[0];

  // check for the longest match
  if (gotPositive
      &&             gotNegative) {
    if (this.positivePrefix_.length>  this.negativePrefix_.length) {
      gotNegative=  false;
                                                                   }
    else   if (this.positivePrefix_.length<  this.negativePrefix_.length) {
      gotPositive=  false;
                                                                          }
                                  }
  if (gotPositive) {
    pos[0]+=  this.positivePrefix_.length;
                   }
  else   if (gotNegative) {
    pos[0]+=  this.negativePrefix_.length;
                          }
  // process digits or Inf, find decimal position
  if (text.indexOf(this.symbols_.INFINITY, pos[0])==  pos[0]) {
    pos[0]+=  this.symbols_.INFINITY.length;
    ret=  Infinity;
                                                              }
  else   {
    ret=  this.parseNumber_(text, pos);
         }


Clone AbstractionParameter Count: 2Parameter Bindings

var gotPositive=text.indexOf(this.positivePrefix_,pos[0])==pos[0];
var gotNegative=text.indexOf(this.negativePrefix_,pos[0])==pos[0];
// check for the longest match
if (gotPositive
    && gotNegative)
  { if (this.positivePrefix_.length>this.negativePrefix_.length)
      { gotNegative= false;
      }
    else
      if (this.positivePrefix_.length<this.negativePrefix_.length)
        { gotPositive= false;
        }
  }
if (gotPositive)
  { pos[0]+=this.positivePrefix_.length;
  }
else
  if (gotNegative)
    { pos[0]+=this.negativePrefix_.length;
    }
// process digits or Inf, find decimal position
if (text.indexOf( [[#variable611827c0]]. [[#variable462eeaa0]].INFINITY,pos[0])==pos[0])
  { pos[0]+= [[#variable611827c0]]. [[#variable462eeaa0]].INFINITY.length;
    ret=Infinity;
  }
else
  { ret=this.parseNumber_(text,pos);
  }
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#611827c0]]
this 
12[[#611827c0]]
goog.i18n 
21[[#462eeaa0]]
symbols_ 
22[[#462eeaa0]]
NumberFormatSymbols