Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
9 | 3 | 1 | 0.950 | statement_sequence[6] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 9 | 77 | E:/TSE/Projects-CloneDR/jfreechart-1.0.10/src/org/jfree/chart/renderer/RendererUtilities.java |
2 | 8 | 105 | E:/TSE/Projects-CloneDR/jfreechart-1.0.10/src/org/jfree/chart/renderer/RendererUtilities.java |
3 | 8 | 189 | 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); |
| |||||
// 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); |
| |||||
// 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); |
| |||
// 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 Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#1a9ee5c0]] | lowValue >= xLow |
1 | 2 | [[#1a9ee5c0]] | lowValue <= xHigh |
1 | 3 | [[#1a9ee5c0]] | lowValue < xLow |