CloneSet125


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
20210.998StatementList[7]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
119100
Closure/closure/goog/i18n/numberformat.js
220756
Closure/closure/goog/locale/numberformat.js
Clone Instance
1
Line Count
19
Source Line
100
Source File
Closure/closure/goog/i18n/numberformat.js

  var pos=  [0];

  this.positivePrefix_=  this.parseAffix_(pattern, pos);
  var trunkStart=  pos[0];
  this.parseTrunk_(pattern, pos);
  var trunkLen=  pos[0]-  trunkStart;
  this.positiveSuffix_=  this.parseAffix_(pattern, pos);
  if (pos[0]<  pattern.length
      &&pattern.charAt(pos[0])==  goog.i18n.NumberFormat.PATTERN_SEPARATOR_)
                                                                           {
    pos[0]++;
    this.negativePrefix_=  this.parseAffix_(pattern, pos);
    // we assume this part is identical to positive part.
    // user must make sure the pattern is correctly constructed.
    pos[0]+=  trunkLen;
    this.negativeSuffix_=  this.parseAffix_(pattern, pos);
                                                                           }
  else   {
    // if no negative affix specified, they share the same positive affix
    this.negativePrefix_=  this.positivePrefix_+  this.negativePrefix_;
    this.negativeSuffix_+=  this.positiveSuffix_;
         }


Clone Instance
2
Line Count
20
Source Line
756
Source File
Closure/closure/goog/locale/numberformat.js

  var pos=  [0];

  this.positivePrefix_=  this.parseAffix_(pattern, pos);
  var trunkStart=  pos[0];
  this.parseTrunk_(pattern, pos);
  var trunkLen=  pos[0]-  trunkStart;
  this.positiveSuffix_=  this.parseAffix_(pattern, pos);

  if (pos[0]<  pattern.length
      &&pattern.charAt(pos[0])==  goog.locale.NumberFormat.PATTERN_SEPARATOR_)
                                                                             {
    pos[0]++;
    this.negativePrefix_=  this.parseAffix_(pattern, pos);
    // we assume this part is identical to positive part.
    // user must make sure the pattern is correctly constructed.
    pos[0]+=  trunkLen;
    this.negativeSuffix_=  this.parseAffix_(pattern, pos);
                                                                             }
  else   {
    // if no negative affix specified, they share the same positive affix
    this.negativePrefix_=  this.positivePrefix_+  this.negativePrefix_;
    this.negativeSuffix_+=  this.positiveSuffix_;
         }


Clone AbstractionParameter Count: 1Parameter Bindings

var pos=[0];
this.positivePrefix_=this.parseAffix_(pattern,pos);
var trunkStart=pos[0];
this.parseTrunk_(pattern,pos);
var trunkLen=pos[0]-trunkStart;
this.positiveSuffix_=this.parseAffix_(pattern,pos);
if (pos[0]<pattern.length
    && pattern.charAt(pos[0])==goog. [[#variable5de84040]].NumberFormat.PATTERN_SEPARATOR_)
  { pos[0]++;
    this.negativePrefix_=this.parseAffix_(pattern,pos);
    // we assume this part is identical to positive part.
    // user must make sure the pattern is correctly constructed.
    pos[0]+=trunkLen;
    this.negativeSuffix_=this.parseAffix_(pattern,pos);
  }
else
  {
    // if no negative affix specified, they share the same positive affix
    this.negativePrefix_=this.positivePrefix_+this.negativePrefix_;
    this.negativeSuffix_+=this.positiveSuffix_;
  }
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#5de84040]]
locale 
12[[#5de84040]]
i18n