CloneSet397


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
21220.988method_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
122695
E:/TSE/Projects-CloneDR/jfreechart-1.0.10/src/org/jfree/chart/plot/FastScatterPlot.java
221727
E:/TSE/Projects-CloneDR/jfreechart-1.0.10/src/org/jfree/chart/plot/FastScatterPlot.java
Next
Last
Clone Instance
1
Line Count
22
Source Line
695
Source File
E:/TSE/Projects-CloneDR/jfreechart-1.0.10/src/org/jfree/chart/plot/FastScatterPlot.java

/**
 * Calculates the X data range.
 *
 * @param data  the data (<code>null</code> permitted).
 *
 * @return The range.
 */
private Range calculateXDataRange(float[][] data) {
  Range result = null;
  if (data != null) {
    float lowest = Float.POSITIVE_INFINITY;
    float highest = Float.NEGATIVE_INFINITY;
    for (int i = 0; i < data[0].length; i++) {
      float v = data[0][i];
      if (v < lowest) {
        lowest = v;
      }
      if (v > highest) {
        highest = v;
      }
    }
    if (lowest <= highest) {
      result = new Range(lowest, highest);
    }
  }
  return result;
}


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

/**
 * Calculates the Y data range.
 *
 * @param data  the data (<code>null</code> permitted).
 *
 * @return The range.
 */
private Range calculateYDataRange(float[][] data) {
  Range result = null;
  if (data != null) {
    float lowest = Float.POSITIVE_INFINITY;
    float highest = Float.NEGATIVE_INFINITY;
    for (int i = 0; i < data[0].length; i++) {
      float v = data[1][i];
      if (v < lowest) {
        lowest = v;
      }
      if (v > highest) {
        highest = v;
      }
    }
    if (lowest <= highest) {
      result = new Range(lowest, highest);
    }
  }
  return result;
}


Clone AbstractionParameter Count: 2Parameter Bindings

/**
     * Calculates the Y data range.
     *
     * @param data  the data (<code>null</code> permitted).
     *
     * @return The range.
     */
/**
     * Calculates the X data range.
     *
     * @param data  the data (<code>null</code> permitted).
     *
     * @return The range.
     */
private Range  [[#variable1a97e3e0]](float[][] data) {
  Range result = null;
  if (data != null) {
    float lowest = Float.POSITIVE_INFINITY;
    float highest = Float.NEGATIVE_INFINITY;
    for (int i = 0; i < data[0].length; i++) {
      float v = data[ [[#variable1a97e3c0]]][i];
      if (v < lowest) {
        lowest = v;
      }
      if (v > highest) {
        highest = v;
      }
    }
    if (lowest <= highest) {
      result = new Range(lowest, highest);
    }
  }
  return result;
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#1a97e3e0]]
calculateXDataRange 
12[[#1a97e3e0]]
calculateYDataRange 
21[[#1a97e3c0]]
0 
22[[#1a97e3c0]]
1