441-1-2

public DefaultIntervalXYDataset createSampleDataset1() { DefaultIntervalXYDataset d = new DefaultIntervalXYDataset(); double[] x1 = new double[] {1.0, 2.0, 3.0}; double[] x1Start = new double[] {0.9, 1.9, 2.9}; double[] x1End = new double[] {1.1, 2.1, 3.1}; double[] y1 = new double[] {4.0, 5.0, 6.0}; double[] y1Start = new double[] {1.09, 2.09, 3.09}; double[] y1End = new double[] {1.11, 2.11, 3.11}; double[][] data1 = new double[][] {x1, x1Start, x1End, y1, y1Start, y1End}; d.addSeries("S1", data1); double[] x2 = new double[] {11.0, 12.0, 13.0}; double[] x2Start = new double[] {10.9, 11.9, 12.9}; double[] x2End = new double[] {11.1, 12.1, 13.1}; double[] y2 = new double[] {14.0, 15.0, 16.0}; double[] y2Start = new double[] {11.09, 12.09, 13.09}; double[] y2End = new double[] {11.11, 12.11, 13.11}; double[][] data2 = new double[][] {x2, x2Start, x2End, y2, y2Start, y2End}; d.addSeries("S2", data2); return d;
public DefaultIntervalXYDataset createSampleDataset1() { DefaultIntervalXYDataset d = new DefaultIntervalXYDataset(); double[] x1 = new double[] {1.0, 2.0, 3.0}; double[] x1Start = new double[] {0.9, 1.9, 2.9}; double[] x1End = new double[] {1.1, 2.1, 3.1}; double[] y1 = new double[] {4.0, 5.0, 6.0}; double[] y1Start = new double[] {1.09, 2.09, 3.09}; double[] y1End = new double[] {1.11, 2.11, 3.11}; double[][] data1 = new double[][] {x1, x1Start, x1End, y1, y1Start, y1End}; d.addSeries("S1", data1); double[] x2 = new double[] {11.0, 12.0, 13.0}; double[] x2Start = new double[] {10.9, 11.9, 12.9}; double[] x2End = new double[] {11.1, 12.1, 13.1}; double[] y2 = new double[] {14.0, 15.0, 16.0}; double[] y2Start = new double[] {11.09, 12.09, 13.09}; double[] y2End = new double[] {11.11, 12.11, 13.11}; double[][] data2 = new double[][] {x2, x2Start, x2End, y2, y2Start, y2End}; d.addSeries("S2", data2); return d;

Clone fragments detected by clone detection tool
File path: /jfreechart-1.0.10/tests/org/jfree/chart/renderer/xy/junit/ClusteredXYBarRendererTests.java |  | File path: /jfreechart-1.0.10/tests/org/jfree/data/xy/junit/DefaultIntervalXYDatasetTests.java
Method name: `` |  | Method name: ``
Number of AST nodes: 0 |  | Number of AST nodes: 0

1

    public DefaultIntervalXYDataset createSampleDataset1() {↵

1

    public DefaultIntervalXYDataset createSampleDataset1() {↵

2

            DefaultIntervalXYDataset d = new DefaultIntervalXYDataset();↵

2

            DefaultIntervalXYDataset d = new DefaultIntervalXYDataset();↵

3

            double[] x1 = new double[] {1.0, 2.0, 3.0};↵

3

            double[] x1 = new double[] {1.0, 2.0, 3.0};↵

4

            double[] x1Start = new double[] {0.9, 1.9, 2.9};↵

4

            double[] x1Start = new double[] {0.9, 1.9, 2.9};↵

5

            double[] x1End = new double[] {1.1, 2.1, 3.1};↵

5

            double[] x1End = new double[] {1.1, 2.1, 3.1};↵

6

            double[] y1 = new double[] {4.0, 5.0, 6.0};↵

6

            double[] y1 = new double[] {4.0, 5.0, 6.0};↵

7

            double[] y1Start = new double[] {1.09, 2.09, 3.09};↵

7

            double[] y1Start = new double[] {1.09, 2.09, 3.09};↵

8

            double[] y1End = new double[] {1.11, 2.11, 3.11};↵

8

            double[] y1End = new double[] {1.11, 2.11, 3.11};↵

9

            double[][] data1 = new double[][] {x1, x1Start, x1End, y1, y1Start,↵

9

            double[][] data1 = new double[][] {x1, x1Start, x1End, y1, y1Start,↵

10

                    y1End};↵

10

                    y1End};↵

11

            d.addSeries("S1", data1);↵

11

            d.addSeries("S1", data1);↵

12

            double[] x2 = new double[] {11.0, 12.0, 13.0};↵

12

            double[] x2 = new double[] {11.0, 12.0, 13.0};↵

13

            double[] x2Start = new double[] {10.9, 11.9, 12.9};↵

13

            double[] x2Start = new double[] {10.9, 11.9, 12.9};↵

14

            double[] x2End = new double[] {11.1, 12.1, 13.1};↵

14

            double[] x2End = new double[] {11.1, 12.1, 13.1};↵

15

            double[] y2 = new double[] {14.0, 15.0, 16.0};↵

15

            double[] y2 = new double[] {14.0, 15.0, 16.0};↵

16

            double[] y2Start = new double[] {11.09, 12.09, 13.09};↵

16

            double[] y2Start = new double[] {11.09, 12.09, 13.09};↵

17

            double[] y2End = new double[] {11.11, 12.11, 13.11};↵

17

            double[] y2End = new double[] {11.11, 12.11, 13.11};↵

18

            double[][] data2 = new double[][] {x2, x2Start, x2End, y2, y2Start,↵

18

            double[][] data2 = new double[][] {x2, x2Start, x2End, y2, y2Start,↵

19

                    y2End};↵

19

                    y2End};↵

20

            d.addSeries("S2", data2);↵

20

            d.addSeries("S2", data2);↵

21

            return d;↵

21

            return d;↵

22

22

See real code fragment |  | See real code fragment

Summary
Number of common nesting structure subtrees | 0
Number of refactorable cases | 0
Number of non-refactorable cases | 0
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.0
Clones location |
Number of node comparisons | 0