assertEquals("Center point on the axis should geometric mean of the bounds.", plotArea.getX() + (plotArea.getWidth() / 2), this.axis.valueToJava2D(Math.sqrt(this.axis.getLowerBound() * this.axis.getUpperBound()), plotArea, edge), EPSILON);
assertEquals("Center point on the axis should geometric mean of the " + "bounds.", Math.sqrt(this.axis.getUpperBound() * this.axis.getLowerBound()), this.axis.java2DToValue( plotArea.getX() + (plotArea.getWidth() / 2), plotArea, edge), EPSILON);
Clone fragments detected by clone detection tool
File path: /jfreechart-1.0.10/tests/org/jfree/chart/axis/junit/LogarithmicAxisTests.java File path: /jfreechart-1.0.10/tests/org/jfree/chart/axis/junit/LogarithmicAxisTests.java
Method name: void checkPointsToJava2D(RectangleEdge, Rectangle2D) Method name: void checkPointsToValue(RectangleEdge, Rectangle2D)
Number of AST nodes: 1 Number of AST nodes: 1
1
assertEquals("Center point on the axis should geometric mean of the bounds.", 
1
assertEquals("Center point on the axis should geometric mean of the "
2
                  plotArea.getX() + (plotArea.getWidth() / 2), 
2
                 + "bounds.", Math.sqrt(this.axis.getUpperBound() 
3
                  this.axis.valueToJava2D(Math.sqrt(this.axis.getLowerBound() 
3
                 * this.axis.
4
                  * this.axis.getUpperBound()
4
getLowerBound()), this.axis.java2DToValue(
5
), plotArea, edge), 
5
                 plotArea.getX() + (plotArea.getWidth() / 2), plotArea, edge), 
6
EPSILON);
6
                 EPSILON);
Summary
Number of common nesting structure subtrees1
Number of refactorable cases1
Number of non-refactorable cases0
Time elapsed for finding largest common nesting structure subtrees (ms)0.0
Clones locationClones are declared in the same class
Number of node comparisons1
  1. {Refactorable}
    Mapping Summary
    Number of mapped statements1
    Number of unmapped statements in the first code fragment0
    Number of unmapped statements in the second code fragment0
    Time elapsed for statement mapping (ms)0.0
    Clone typeType 2
    Mapped Statements
    ID Statement ID Statement
    3
    assertEquals("Center point on the axis should geometric mean of the bounds.", plotArea.getX() + (plotArea.getWidth() / 2), this.axis.valueToJava2D(Math.sqrt(this.axis.getLowerBound() * this.axis.getUpperBound()), plotArea, edge), EPSILON);
    3
    assertEquals("Center point on the axis should geometric mean of the bounds.", plotArea.getX() + (plotArea.getWidth() / 2), this.axis.valueToJava2D(Math.sqrt(this.axis.getLowerBound() * this.axis.getUpperBound()), plotArea, edge), EPSILON);
    3
    assertEquals("Center point on the axis should geometric mean of the " + "bounds.", Math.sqrt(this.axis.getUpperBound() * this.axis.getLowerBound()), this.axis.java2DToValue(plotArea.getX() + (plotArea.getWidth() / 2), plotArea, edge), EPSILON);
    Differences
    Expression1Expression2Difference
    "Center point on the axis should geometric mean of the bounds.""Center point on the axis should geometric mean of the " + "bounds."TYPE_COMPATIBLE_REPLACEMENT
    plotArea.getX() + (plotArea.getWidth() / 2)Math.sqrt(this.axis.getUpperBound() * this.axis.getLowerBound())TYPE_COMPATIBLE_REPLACEMENT
    Math.sqrt(this.axis.getLowerBound() * this.axis.getUpperBound())plotArea.getX() + (plotArea.getWidth() / 2)TYPE_COMPATIBLE_REPLACEMENT
    valueToJava2Djava2DToValueMETHOD_INVOCATION_NAME_MISMATCH
    3
    assertEquals("Center point on the axis should geometric mean of the " + "bounds.", Math.sqrt(this.axis.getUpperBound() * this.axis.getLowerBound()), this.axis.java2DToValue(plotArea.getX() + (plotArea.getWidth() / 2), plotArea, edge), EPSILON);
    Precondition Violations (0)
    Row Violation