Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
20 | 2 | 3 | 0.951 | block |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 22 | 3410 | E:/TSE/Projects-CloneDR/jfreechart-1.0.10/src/org/jfree/chart/plot/CategoryPlot.java |
2 | 20 | 3442 | E:/TSE/Projects-CloneDR/jfreechart-1.0.10/src/org/jfree/chart/plot/CategoryPlot.java |
| |||||
{ List result = new ArrayList(); for (int datasetIndex = 0; datasetIndex < this.datasets.size(); datasetIndex++) { Object dataset = this.datasets.get(datasetIndex); if (dataset != null) { Integer m = (Integer) this.datasetToDomainAxisMap.get(datasetIndex); if (m == null) { // a dataset with no mapping is assigned to // axis 0 if (axisIndex == 0) { result.add(dataset); } } else { if (m.intValue() == axisIndex) { result.add(dataset); } } } } return result; } |
| |||||
{ List result = new ArrayList(); for (int i = 0; i < this.datasets.size(); i++) { Object dataset = this.datasets.get(i); if (dataset != null) { Integer m = (Integer) this.datasetToRangeAxisMap.get(i); if (m == null) { // a dataset with no mapping is assigned to // axis 0 if (index == 0) { result.add(dataset); } } else { if (m.intValue() == index) { result.add(dataset); } } } } return result; } |
| |||
{ List result = new ArrayList(); for (int [[#variable1a9a9f80]]= 0; [[#variable1a9a9f80]] < this.datasets.size(); [[#variable1a9a9f80]]++) { Object dataset = this.datasets.get( [[#variable1a9a9f80]]); if (dataset != null) { Integer m = (Integer) this. [[#variable1a982040]].get( [[#variable1a9a9f80]]); if (m == null) { // a dataset with no mapping is assigned to // axis 0 if ( [[#variable1a982000]]== 0) { result.add(dataset); } } else { if (m.intValue() == [[#variable1a982000]]) { result.add(dataset); } } } } return result; } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#1a9a9f80]] | datasetIndex |
1 | 2 | [[#1a9a9f80]] | i |
2 | 1 | [[#1a982040]] | datasetToDomainAxisMap |
2 | 2 | [[#1a982040]] | datasetToRangeAxisMap |
3 | 1 | [[#1a982000]] | axisIndex |
3 | 2 | [[#1a982000]] | index |