CloneSet184


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
28230.952statement_sequence[8]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
128436
E:/TSE/Projects-CloneDR/jfreechart-1.0.10/src/org/jfree/chart/renderer/category/BoxAndWhiskerRenderer.java
228576
E:/TSE/Projects-CloneDR/jfreechart-1.0.10/src/org/jfree/chart/renderer/category/BoxAndWhiskerRenderer.java
Next
Last
Clone Instance
1
Line Count
28
Source Line
436
Source File
E:/TSE/Projects-CloneDR/jfreechart-1.0.10/src/org/jfree/chart/renderer/category/BoxAndWhiskerRenderer.java

BoxAndWhiskerCategoryDataset bawDataset = (BoxAndWhiskerCategoryDataset) dataset;
double categoryEnd = domainAxis.getCategoryEnd(column, getColumnCount(), dataArea, plot.getDomainAxisEdge());
double categoryStart = domainAxis.getCategoryStart(column, getColumnCount(), dataArea, plot.getDomainAxisEdge());
double categoryWidth = Math.abs(categoryEnd - categoryStart);
double yy = categoryStart;
int seriesCount = getRowCount();
int categoryCount = getColumnCount();
if (seriesCount > 1) {
  double seriesGap = dataArea.getHeight() * getItemMargin() / (categoryCount * (seriesCount - 1));
  double usedWidth = (state.getBarWidth() * seriesCount) + (seriesGap * (seriesCount - 1));
  // offset the start of the boxes if the total width used is smaller
  // than the category width
  double offset = (categoryWidth - usedWidth) / 2;
  yy = yy + offset + (row * (state.getBarWidth() + seriesGap));
}
else {
  // offset the start of the box if the box width is smaller than
  // the category width
  double offset = (categoryWidth - state.getBarWidth()) / 2;
  yy = yy + offset;
}


First
Previous
Clone Instance
2
Line Count
28
Source Line
576
Source File
E:/TSE/Projects-CloneDR/jfreechart-1.0.10/src/org/jfree/chart/renderer/category/BoxAndWhiskerRenderer.java

BoxAndWhiskerCategoryDataset bawDataset = (BoxAndWhiskerCategoryDataset) dataset;
double categoryEnd = domainAxis.getCategoryEnd(column, getColumnCount(), dataArea, plot.getDomainAxisEdge());
double categoryStart = domainAxis.getCategoryStart(column, getColumnCount(), dataArea, plot.getDomainAxisEdge());
double categoryWidth = categoryEnd - categoryStart;
double xx = categoryStart;
int seriesCount = getRowCount();
int categoryCount = getColumnCount();
if (seriesCount > 1) {
  double seriesGap = dataArea.getWidth() * getItemMargin() / (categoryCount * (seriesCount - 1));
  double usedWidth = (state.getBarWidth() * seriesCount) + (seriesGap * (seriesCount - 1));
  // offset the start of the boxes if the total width used is smaller
  // than the category width
  double offset = (categoryWidth - usedWidth) / 2;
  xx = xx + offset + (row * (state.getBarWidth() + seriesGap));
}
else {
  // offset the start of the box if the box width is smaller than the
  // category width
  double offset = (categoryWidth - state.getBarWidth()) / 2;
  xx = xx + offset;
}


Clone AbstractionParameter Count: 3Parameter Bindings

BoxAndWhiskerCategoryDataset bawDataset = (BoxAndWhiskerCategoryDataset) dataset;
double categoryEnd = domainAxis.getCategoryEnd(column, getColumnCount(), dataArea, plot.getDomainAxisEdge());
double categoryStart = domainAxis.getCategoryStart(column, getColumnCount(), dataArea, plot.getDomainAxisEdge());
double categoryWidth = [[#variable1aadf320]];
double  [[#variable1aae19e0]]= categoryStart;
int seriesCount = getRowCount();
int categoryCount = getColumnCount();
if (seriesCount > 1) {
  double seriesGap = dataArea. [[#variable1aae6d80]]() * getItemMargin() / (categoryCount * (seriesCount - 1));
  double usedWidth = (state.getBarWidth() * seriesCount) + (seriesGap * (seriesCount - 1));
  // offset the start of the boxes if the total width used is smaller
  // than the category width
  double offset = (categoryWidth - usedWidth) / 2;
   [[#variable1aae19e0]]= [[#variable1aae19e0]] + offset + (row * (state.getBarWidth() + seriesGap));
}
else {
  // offset the start of the box if the box width is smaller than
  // the category width
  // offset the start of the box if the box width is smaller than the
  // category width
  double offset = (categoryWidth - state.getBarWidth()) / 2;
   [[#variable1aae19e0]]= [[#variable1aae19e0]] + offset;
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#1aadf320]]
Math.abs(categoryEnd - categoryStart) 
12[[#1aadf320]]
categoryEnd - categoryStart 
21[[#1aae19e0]]
yy 
22[[#1aae19e0]]
xx 
31[[#1aae6d80]]
getHeight 
32[[#1aae6d80]]
getWidth