1823-2-8

dataset.add(new BoxAndWhiskerItem(new Double(1.0), null, new Double(0.0), new Double(4.0), new Double(0.5), new Double(4.5), new Double(-0.5), new Double(5.5), null), "S1", "C1"); CategoryPlot plot = new CategoryPlot(dataset, new CategoryAxis("Category"), new NumberAxis("Value"), new BoxAndWhiskerRenderer());
dataset.add(new BoxAndWhiskerItem(new Double(1.0), new Double(2.0), new Double(3.0), new Double(4.0), new Double(5.0), new Double(6.0), null, new Double(8.0), new ArrayList()), "ROW1", "COLUMN1"); dataset.add(new BoxAndWhiskerItem(new Double(1.0), new Double(2.0), new Double(3.0), new Double(4.0), new Double(5.0), new Double(6.0), new Double(7.0), null, new ArrayList()), "ROW1", "COLUMN2");

Clone fragments detected by clone detection tool
File path: /jfreechart-1.0.10/tests/org/jfree/chart/renderer/category/junit/BoxAndWhiskerRendererTests.java |  | File path: /jfreechart-1.0.10/tests/org/jfree/data/statistics/junit/DefaultBoxAndWhiskerCategoryDatasetTests.java
Method name: `void testDrawWithNullMedian()` |  | Method name: `void test1701822()`
Number of AST nodes: 2 |  | Number of AST nodes: 2

1

    dataset.add(new BoxAndWhiskerItem(new Double(1.0), null,↵

1

    dataset.add(new BoxAndWhiskerItem(new Double(1.0), new Double(2.0), ↵

2

                        new Double(0.0), new Double(4.0), new Double(0.5),↵

2

                        new Double(3.0), new Double(4.0), new Double(5.0), ↵

3

                        new Double(4.5), new Double(-0.5), new Double(5.5),↵

3

                        new Double(6.0), null, new Double(8.0),↵

4

                        null), "S1", "C1");↵

4

                        new ArrayList()), "ROW1", "COLUMN1");↵

5

                CategoryPlot plot = new CategoryPlot(dataset,↵

5

                dataset.add(new BoxAndWhiskerItem(new Double(1.0), new Double(2.0), ↵

6

                        new CategoryAxis("Category"), new NumberAxis("Value"),↵

6

                        new Double(3.0), new Double(4.0), new Double(5.0), ↵

7

                        new BoxAndWhiskerRenderer()↵

7

                        new Double(6.0), new Double(7.0), null,↵

8

    );

8

                        new ArrayList()), "ROW1", "COLUMN2");

See real code fragment |  | See real code fragment

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

1. {Refactorable}

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

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

   4

       dataset.add(new BoxAndWhiskerItem(new Double(1.0), null, new Double(0.0), new Double(4.0), new Double(0.5), new Double(4.5), new Double(-0.5), new Double(5.5), null), "S1", "C1");

   4 | dataset.add(new BoxAndWhiskerItem(new Double(1.0), null, new Double(0.0), new Double(4.0), new Double(0.5), new Double(4.5), new Double(-0.5), new Double(5.5), null), "S1", "C1");
   4 | dataset.add(new BoxAndWhiskerItem(new Double(1.0), new Double(2.0), new Double(3.0), new Double(4.0), new Double(5.0), new Double(6.0), new Double(7.0), null, new ArrayList()), "ROW1", "COLUMN2");

   Differences
   Expression1 | Expression2 | Difference
   --- | --- | ---
   null | new Double(2.0) | TYPE_COMPATIBLE_REPLACEMENT
   0.0 | 3.0 | LITERAL_VALUE_MISMATCH
   0.5 | 5.0 | LITERAL_VALUE_MISMATCH
   4.5 | 6.0 | LITERAL_VALUE_MISMATCH
   -0.5 | 7.0 | TYPE_COMPATIBLE_REPLACEMENT
   new Double(5.5) | null | TYPE_COMPATIBLE_REPLACEMENT
   null | new ArrayList() | TYPE_COMPATIBLE_REPLACEMENT
   "S1" | "ROW1" | LITERAL_VALUE_MISMATCH
   "C1" | "COLUMN2" | LITERAL_VALUE_MISMATCH

   4

       dataset.add(new BoxAndWhiskerItem(new Double(1.0), new Double(2.0), new Double(3.0), new Double(4.0), new Double(5.0), new Double(6.0), new Double(7.0), null, new ArrayList()), "ROW1", "COLUMN2");

   Precondition Violations (0)
   Row | Violation
   --- | ---