1364-5-6

DefaultIntervalXYDataset d = createSampleDataset1(); assertEquals(1.09, d.getStartYValue(0, 0), EPSILON); assertEquals(2.09, d.getStartYValue(0, 1), EPSILON); assertEquals(3.09, d.getStartYValue(0, 2), EPSILON); assertEquals(11.09, d.getStartYValue(1, 0), EPSILON); assertEquals(12.09, d.getStartYValue(1, 1), EPSILON); assertEquals(13.09, d.getStartYValue(1, 2), EPSILON);
DefaultIntervalXYDataset d = createSampleDataset1(); assertEquals(1.11, d.getEndYValue(0, 0), EPSILON); assertEquals(2.11, d.getEndYValue(0, 1), EPSILON); assertEquals(3.11, d.getEndYValue(0, 2), EPSILON); assertEquals(11.11, d.getEndYValue(1, 0), EPSILON); assertEquals(12.11, d.getEndYValue(1, 1), EPSILON); assertEquals(13.11, d.getEndYValue(1, 2), EPSILON);

Clone fragments detected by clone detection tool
File path: /jfreechart-1.0.10/tests/org/jfree/data/xy/junit/DefaultIntervalXYDatasetTests.java |  | File path: /jfreechart-1.0.10/tests/org/jfree/data/xy/junit/DefaultIntervalXYDatasetTests.java
Method name: `void testGetStartYValue()` |  | Method name: `void testGetEndYValue()`
Number of AST nodes: 7 |  | Number of AST nodes: 7

1

    DefaultIntervalXYDataset d = createSampleDataset1();↵

1

    DefaultIntervalXYDataset d = createSampleDataset1();↵

2

            assertEquals(1.09, d.getStartYValue(0, 0), EPSILON);↵

2

            assertEquals(1.11, d.getEndYValue(0, 0), EPSILON);↵

3

            assertEquals(2.09, d.getStartYValue(0, 1), EPSILON);↵

3

            assertEquals(2.11, d.getEndYValue(0, 1), EPSILON);↵

4

            assertEquals(3.09, d.getStartYValue(0, 2), EPSILON);↵

4

            assertEquals(3.11, d.getEndYValue(0, 2), EPSILON);↵

5

            assertEquals(11.09, d.getStartYValue(1, 0), EPSILON);↵

5

            assertEquals(11.11, d.getEndYValue(1, 0), EPSILON);↵

6

            assertEquals(12.09, d.getStartYValue(1, 1), EPSILON);↵

6

            assertEquals(12.11, d.getEndYValue(1, 1), EPSILON);↵

7

            assertEquals(13.09, d.getStartYValue(1, 2), EPSILON);

7

            assertEquals(13.11, d.getEndYValue(1, 2), EPSILON);

See real code fragment |  | See real code fragment

Summary
Number of common nesting structure subtrees | 1
Number of refactorable cases | 0
Number of non-refactorable cases | 1
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.0
Clones location | Clones are declared in the same class
Number of node comparisons | 49

1. {Non-refactorable}

   Mapping Summary
   Number of mapped statements | 7
   Number of unmapped statements in the first code fragment | 0
   Number of unmapped statements in the second code fragment | 0
   Time elapsed for statement mapping (ms) | 0.0
   Clone type | Type 2

   Mapped Statements
   ID | Statement |  | ID | Statement
   --- | --- | --- | --- | ---

   1

       DefaultIntervalXYDataset d = createSampleDataset1();

   1

       DefaultIntervalXYDataset d = createSampleDataset1();

   2

       assertEquals(1.09, d.getStartYValue(0, 0), EPSILON);

   2 | assertEquals(1.09, d.getStartYValue(0, 0), EPSILON);
   2 | assertEquals(1.11, d.getEndYValue(0, 0), EPSILON);

   Differences
   Expression1 | Expression2 | Difference
   --- | --- | ---
   1.09 | 1.11 | LITERAL_VALUE_MISMATCH
   getStartYValue | getEndYValue | METHOD_INVOCATION_NAME_MISMATCH

   Preondition Violations
   Expression d.getStartYValue(0,0) cannot be parameterized, because it has dependencies to/from statements that will be extracted
   Expression d.getEndYValue(0,0) cannot be parameterized, because it has dependencies to/from statements that will be extracted

   2

       assertEquals(1.11, d.getEndYValue(0, 0), EPSILON);

   3

       assertEquals(2.09, d.getStartYValue(0, 1), EPSILON);

   3 | assertEquals(2.09, d.getStartYValue(0, 1), EPSILON);
   3 | assertEquals(2.11, d.getEndYValue(0, 1), EPSILON);

   Differences
   Expression1 | Expression2 | Difference
   --- | --- | ---
   2.09 | 2.11 | LITERAL_VALUE_MISMATCH
   getStartYValue | getEndYValue | METHOD_INVOCATION_NAME_MISMATCH

   Preondition Violations
   Expression d.getStartYValue(0,1) cannot be parameterized, because it has dependencies to/from statements that will be extracted
   Expression d.getEndYValue(0,1) cannot be parameterized, because it has dependencies to/from statements that will be extracted

   3

       assertEquals(2.11, d.getEndYValue(0, 1), EPSILON);

   4

       assertEquals(3.09, d.getStartYValue(0, 2), EPSILON);

   4 | assertEquals(3.09, d.getStartYValue(0, 2), EPSILON);
   4 | assertEquals(3.11, d.getEndYValue(0, 2), EPSILON);

   Differences
   Expression1 | Expression2 | Difference
   --- | --- | ---
   3.09 | 3.11 | LITERAL_VALUE_MISMATCH
   getStartYValue | getEndYValue | METHOD_INVOCATION_NAME_MISMATCH

   Preondition Violations
   Expression d.getStartYValue(0,2) cannot be parameterized, because it has dependencies to/from statements that will be extracted
   Expression d.getEndYValue(0,2) cannot be parameterized, because it has dependencies to/from statements that will be extracted

   4

       assertEquals(3.11, d.getEndYValue(0, 2), EPSILON);

   5

       assertEquals(11.09, d.getStartYValue(1, 0), EPSILON);

   5 | assertEquals(11.09, d.getStartYValue(1, 0), EPSILON);
   5 | assertEquals(11.11, d.getEndYValue(1, 0), EPSILON);

   Differences
   Expression1 | Expression2 | Difference
   --- | --- | ---
   11.09 | 11.11 | LITERAL_VALUE_MISMATCH
   getStartYValue | getEndYValue | METHOD_INVOCATION_NAME_MISMATCH

   Preondition Violations
   Expression d.getStartYValue(1,0) cannot be parameterized, because it has dependencies to/from statements that will be extracted
   Expression d.getEndYValue(1,0) cannot be parameterized, because it has dependencies to/from statements that will be extracted

   5

       assertEquals(11.11, d.getEndYValue(1, 0), EPSILON);

   6

       assertEquals(12.09, d.getStartYValue(1, 1), EPSILON);

   6 | assertEquals(12.09, d.getStartYValue(1, 1), EPSILON);
   6 | assertEquals(12.11, d.getEndYValue(1, 1), EPSILON);

   Differences
   Expression1 | Expression2 | Difference
   --- | --- | ---
   12.09 | 12.11 | LITERAL_VALUE_MISMATCH
   getStartYValue | getEndYValue | METHOD_INVOCATION_NAME_MISMATCH

   Preondition Violations
   Expression d.getStartYValue(1,1) cannot be parameterized, because it has dependencies to/from statements that will be extracted
   Expression d.getEndYValue(1,1) cannot be parameterized, because it has dependencies to/from statements that will be extracted

   6

       assertEquals(12.11, d.getEndYValue(1, 1), EPSILON);

   7

       assertEquals(13.09, d.getStartYValue(1, 2), EPSILON);

   7 | assertEquals(13.09, d.getStartYValue(1, 2), EPSILON);
   7 | assertEquals(13.11, d.getEndYValue(1, 2), EPSILON);

   Differences
   Expression1 | Expression2 | Difference
   --- | --- | ---
   13.09 | 13.11 | LITERAL_VALUE_MISMATCH
   getStartYValue | getEndYValue | METHOD_INVOCATION_NAME_MISMATCH

   Preondition Violations
   Expression d.getStartYValue(1,2) cannot be parameterized, because it has dependencies to/from statements that will be extracted
   Expression d.getEndYValue(1,2) cannot be parameterized, because it has dependencies to/from statements that will be extracted

   7

       assertEquals(13.11, d.getEndYValue(1, 2), EPSILON);

   Precondition Violations (12)
   Row | Violation
   --- | ---
   1 | Expression d.getStartYValue(0,0) cannot be parameterized, because it has dependencies to/from statements that will be extracted
   2 | Expression d.getEndYValue(0,0) cannot be parameterized, because it has dependencies to/from statements that will be extracted
   3 | Expression d.getStartYValue(0,1) cannot be parameterized, because it has dependencies to/from statements that will be extracted
   4 | Expression d.getEndYValue(0,1) cannot be parameterized, because it has dependencies to/from statements that will be extracted
   5 | Expression d.getStartYValue(0,2) cannot be parameterized, because it has dependencies to/from statements that will be extracted
   6 | Expression d.getEndYValue(0,2) cannot be parameterized, because it has dependencies to/from statements that will be extracted
   7 | Expression d.getStartYValue(1,0) cannot be parameterized, because it has dependencies to/from statements that will be extracted
   8 | Expression d.getEndYValue(1,0) cannot be parameterized, because it has dependencies to/from statements that will be extracted
   9 | Expression d.getStartYValue(1,1) cannot be parameterized, because it has dependencies to/from statements that will be extracted
   10 | Expression d.getEndYValue(1,1) cannot be parameterized, because it has dependencies to/from statements that will be extracted
   11 | Expression d.getStartYValue(1,2) cannot be parameterized, because it has dependencies to/from statements that will be extracted
   12 | Expression d.getEndYValue(1,2) cannot be parameterized, because it has dependencies to/from statements that will be extracted