| Previous CloneSet | Next CloneSet | Back to Main Report |
| Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
|---|---|---|---|---|
| 20 | 2 | 1 | 0.998 | StatementList[7] |
| Clone Abstraction | Parameter Bindings |
| Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
|---|---|---|---|
| 1 | 19 | 100 | Closure/closure/goog/i18n/numberformat.js |
| 2 | 20 | 756 | 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.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_;
}
|
| ||||
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_;
}
|
| |||
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 Index | Clone Instance | Parameter Name | Value |
|---|---|---|---|
| 1 | 1 | [[#5de84040]] | locale |
| 1 | 2 | [[#5de84040]] | i18n |