CloneSet 507

# CloneSet507

Previous CloneSet | Next CloneSet | Back to Main Report

Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length]
--- | --- | --- | --- | ---
11 | 2 | 3 | 0.965 | statement_sequence[9]

Clone Abstraction | Parameter Bindings

Clone Instance (Click to see clone) | Line Count | Source Line | Source File
--- | --- | --- | ---

1

11

209

    E:/TSE/Projects-CloneDR/jfreechart-1.0.10/tests/org/jfree/data/time/junit/TimePeriodValuesCollectionTests.java

2

11

235

    E:/TSE/Projects-CloneDR/jfreechart-1.0.10/tests/org/jfree/data/time/junit/TimePeriodValuesCollectionTests.java

Next
Last

Clone Instance
1

Line Count
11

Source Line
209

Source File

    E:/TSE/Projects-CloneDR/jfreechart-1.0.10/tests/org/jfree/data/time/junit/TimePeriodValuesCollectionTests.java

    // check dataset with one time period
    TimePeriodValues s1 = new TimePeriodValues("S1");
    s1.add(new SimpleTimePeriod(1000L, 2000L), 1.0);
    dataset.addSeries(s1);
    r = dataset.getDomainBounds(false);
    assertEquals(1500.0, r.getLowerBound(), EPSILON);
    assertEquals(1500.0, r.getUpperBound(), EPSILON);
    // check dataset with two time periods
    s1.add(new SimpleTimePeriod(1500L, 3000L), 2.0);
    r = dataset.getDomainBounds(false);
    assertEquals(1500.0, r.getLowerBound(), EPSILON);

First
Previous

Clone Instance
2

Line Count
11

Source Line
235

Source File

    E:/TSE/Projects-CloneDR/jfreechart-1.0.10/tests/org/jfree/data/time/junit/TimePeriodValuesCollectionTests.java

    // check dataset with one time period
    TimePeriodValues s1 = new TimePeriodValues("S1");
    s1.add(new SimpleTimePeriod(1000L, 2000L), 1.0);
    dataset.addSeries(s1);
    r = dataset.getDomainBounds(true);
    assertEquals(1000.0, r.getLowerBound(), EPSILON);
    assertEquals(2000.0, r.getUpperBound(), EPSILON);
    // check dataset with two time periods
    s1.add(new SimpleTimePeriod(1500L, 3000L), 2.0);
    r = dataset.getDomainBounds(true);
    assertEquals(1000.0, r.getLowerBound(), EPSILON);

Clone Abstraction | Parameter Count: 3 | Parameter Bindings

    // check dataset with one time period
    TimePeriodValues s1 = new TimePeriodValues("S1");
    s1.add(new SimpleTimePeriod(1000L, 2000L), 1.0);
    dataset.addSeries(s1);
    r = dataset.getDomainBounds( [[#variable1a9fce20]]);
    assertEquals( [[#variable1a9fce00]], r.getLowerBound(), EPSILON);
    assertEquals( [[#variable1a9fd7c0]], r.getUpperBound(), EPSILON);
    // check dataset with two time periods
    s1.add(new SimpleTimePeriod(1500L, 3000L), 2.0);
    r = dataset.getDomainBounds( [[#variable1a9fce20]]);
    assertEquals( [[#variable1a9fce00]], r.getLowerBound(), EPSILON);

CloneAbstraction

Parameter Bindings
Parameter Index | Clone Instance | Parameter Name | Value
--- | --- | --- | ---

1

1

`[[#1a9fce20]]`

    false

1

2

`[[#1a9fce20]]`

    true

2

1

`[[#1a9fce00]]`

    1500.0

2

2

`[[#1a9fce00]]`

    1000.0

3

1

`[[#1a9fd7c0]]`

    1500.0

3

2

`[[#1a9fd7c0]]`

    2000.0