CloneSet472


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
9310.950statement_sequence[6]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
1977
E:/TSE/Projects-CloneDR/jfreechart-1.0.10/src/org/jfree/chart/renderer/RendererUtilities.java
28105
E:/TSE/Projects-CloneDR/jfreechart-1.0.10/src/org/jfree/chart/renderer/RendererUtilities.java
38189
E:/TSE/Projects-CloneDR/jfreechart-1.0.10/src/org/jfree/chart/renderer/RendererUtilities.java
Next
Last
Clone Instance
1
Line Count
9
Source Line
77
Source File
E:/TSE/Projects-CloneDR/jfreechart-1.0.10/src/org/jfree/chart/renderer/RendererUtilities.java

// for data in ascending order by x-value, we are (broadly) looking
// for the index of the highest x-value that is less that xLow
int low = 0;
int high = itemCount - 1;
int mid = (low + high) / 2;
double lowValue = dataset.getXValue(series, low);
if (lowValue >= xLow) {
  // special case where the lowest x-value is >= xLow
  return low;
}
double highValue = dataset.getXValue(series, high);


Next
Previous
Clone Instance
2
Line Count
8
Source Line
105
Source File
E:/TSE/Projects-CloneDR/jfreechart-1.0.10/src/org/jfree/chart/renderer/RendererUtilities.java

// when the x-values are sorted in descending order, the lower
// bound is found by calculating relative to the xHigh value
int low = 0;
int high = itemCount - 1;
int mid = (low + high) / 2;
double lowValue = dataset.getXValue(series, low);
if (lowValue <= xHigh) {
  return low;
}
double highValue = dataset.getXValue(series, high);


First
Previous
Clone Instance
3
Line Count
8
Source Line
189
Source File
E:/TSE/Projects-CloneDR/jfreechart-1.0.10/src/org/jfree/chart/renderer/RendererUtilities.java

// when the x-values are descending, the upper bound is found by
// comparing against xLow
int low = 0;
int high = itemCount - 1;
int mid = (low + high) / 2;
double lowValue = dataset.getXValue(series, low);
if (lowValue < xLow) {
  return low;
}
double highValue = dataset.getXValue(series, high);


Clone AbstractionParameter Count: 1Parameter Bindings

// for data in ascending order by x-value, we are (broadly) looking
// for the index of the highest x-value that is less that xLow
// when the x-values are sorted in descending order, the lower
// bound is found by calculating relative to the xHigh value
// when the x-values are descending, the upper bound is found by
// comparing against xLow
int low = 0;
int high = itemCount - 1;
int mid = (low + high) / 2;
double lowValue = dataset.getXValue(series, low);
if ( [[#variable1a9ee5c0]]) {
  // special case where the lowest x-value is >= xLow
  return low;
}
double highValue = dataset.getXValue(series, high);
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#1a9ee5c0]]
lowValue >= xLow 
12[[#1a9ee5c0]]
lowValue <= xHigh 
13[[#1a9ee5c0]]
lowValue < xLow