CloneSet434


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
20230.951block
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
1223410
E:/TSE/Projects-CloneDR/jfreechart-1.0.10/src/org/jfree/chart/plot/CategoryPlot.java
2203442
E:/TSE/Projects-CloneDR/jfreechart-1.0.10/src/org/jfree/chart/plot/CategoryPlot.java
Next
Last
Clone Instance
1
Line Count
22
Source Line
3410
Source File
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;
}


First
Previous
Clone Instance
2
Line Count
20
Source Line
3442
Source File
E:/TSE/Projects-CloneDR/jfreechart-1.0.10/src/org/jfree/chart/plot/CategoryPlot.java

{
  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;
}


Clone AbstractionParameter Count: 3Parameter Bindings

{
  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 Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#1a9a9f80]]
datasetIndex 
12[[#1a9a9f80]]
i 
21[[#1a982040]]
datasetToDomainAxisMap 
22[[#1a982040]]
datasetToRangeAxisMap 
31[[#1a982000]]
axisIndex 
32[[#1a982000]]
index