| Previous CloneSet | Next CloneSet | Back to Main Report |
| Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
|---|---|---|---|---|
| 8 | 2 | 5 | 0.953 | IfStatement |
| Clone Abstraction | Parameter Bindings |
| Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
|---|---|---|---|
| 1 | 8 | 1058 | Closure/closure/goog/ui/serverchart.js |
| 2 | 6 | 1075 | Closure/closure/goog/ui/serverchart.js |
| ||||
if (goog.isDef(opt_legendText)) {
goog.array.forEach(
opt_legendText,
goog.bind( function (legend){
this.setLegendTexts_.push(legend);
} ,this ));
this.uri_.setParameterValue(goog.ui.ServerChart.UriParam.LEGEND_TEXTS,
this.setLegendTexts_.join('|'));
}
|
| ||||
if (goog.isDef(opt_colors)) {
goog.array.forEach(opt_colors, goog.bind( function (color){
this.setColors_.push(color);
} ,this ));
this.uri_.setParameterValue(goog.ui.ServerChart.UriParam.DATA_COLORS,
this.setColors_.join(','));
}
|
| |||
if (goog.isDef( [[#variable201a9040]]))
{ goog.array.forEach( [[#variable201a9040]],goog.bind( function ( [[#variable201a8fa0]])
{ this. [[#variable201a8f20]].push( [[#variable201a8fa0]]);
} ,this ));
this.uri_.setParameterValue(goog.ui.ServerChart.UriParam. [[#variable201a8ec0]],this. [[#variable201a8f20]].join( [[#variable201a8e60]]));
}
|
| CloneAbstraction |
| Parameter Index | Clone Instance | Parameter Name | Value |
|---|---|---|---|
| 1 | 1 | [[#201a9040]] | opt_legendText |
| 1 | 2 | [[#201a9040]] | opt_colors |
| 2 | 1 | [[#201a8fa0]] | legend |
| 2 | 2 | [[#201a8fa0]] | color |
| 3 | 1 | [[#201a8f20]] | setLegendTexts_ |
| 3 | 2 | [[#201a8f20]] | setColors_ |
| 4 | 1 | [[#201a8ec0]] | LEGEND_TEXTS |
| 4 | 2 | [[#201a8ec0]] | DATA_COLORS |
| 5 | 1 | [[#201a8e60]] | '|' |
| 5 | 2 | [[#201a8e60]] | ',' |