c.gridx = 1; c.gridy = 1; g.setConstraints(count, c); JLabel min = new JLabel("Min: " + df.format(new Float(minValue))); c.gridx = 1; c.gridy = 2; g.setConstraints(min, c); JLabel max = new JLabel("Max: " + df.format(new Float(maxValue))); c.gridx = 1; c.gridy = 3; g.setConstraints(max, c);
c.gridx = 1; c.gridy = 2; g.setConstraints(min, c); JLabel max = new JLabel("Max: " + df.format(new Float(maxValue))); c.gridx = 1; c.gridy = 3; g.setConstraints(max, c); JLabel average = new JLabel("Average: " + df.format(new Float(averageValue))); c.gridx = 1; c.gridy = 4; g.setConstraints(average, c);
Clone fragments detected by clone detection tool
File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/reporters/FileReporter.java File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/reporters/FileReporter.java
Method name: JPanel getStats() Method name: JPanel getStats()
Number of AST nodes: 11 Number of AST nodes: 11
1
c.gridx = 1;
2
		c.gridy = 1;
3
		g.setConstraints(count, c);
4
		JLabel min = new JLabel("Min: " + df.format(new Float(minValue)));
5
		c.gridx = 1;
1
c.gridx = 1;
6
		c.gridy = 2;
2
		c.gridy = 2;
7
		g.setConstraints(min, c);
3
		g.setConstraints(min, c);
8
		JLabel max = new JLabel("Max: " + df.format(new Float(maxValue)));
4
		JLabel max = new JLabel("Max: " + df.format(new Float(maxValue)));
9
		c.gridx = 1;
5
		c.gridx = 1;
10
		c.gridy = 3;
6
		c.gridy = 3;
11
		g.setConstraints(max, c);
7
		g.setConstraints(max, c);
8
		JLabel average = new JLabel("Average: " + df.format(new Float(averageValue)));
9
		c.gridx = 1;
10
		c.gridy = 4;
11
		g.setConstraints(average, c);
Summary
Number of common nesting structure subtrees1
Number of refactorable cases0
Number of non-refactorable cases1
Time elapsed for finding largest common nesting structure subtrees (ms)0.0
Clones locationClones are in the same method
Number of node comparisons55
  1. {Non-refactorable}
    Mapping Summary
    Number of mapped statements11
    Number of unmapped statements in the first code fragment0
    Number of unmapped statements in the second code fragment1
    Time elapsed for statement mapping (ms)0.0
    Clone typeType 3
    Mapped Statements
    ID Statement ID Statement
    25
    c.gridx = 1;
    29
    c.gridx = 1;
    26
    c.gridy = 1;
    26
    c.gridy = 1;
    30
    c.gridy = 2;
    Differences
    Expression1Expression2Difference
    12LITERAL_VALUE_MISMATCH
    30
    c.gridy = 2;
    27
    g.setConstraints(count, c);
    27
    g.setConstraints(count, c);
    31
    g.setConstraints(min, c);
    Differences
    Expression1Expression2Difference
    countminVARIABLE_NAME_MISMATCH
    31
    g.setConstraints(min, c);
    28
    JLabel min = new JLabel("Min: " + df.format(new Float(minValue)));
    28
    JLabel min = new JLabel("Min: " + df.format(new Float(minValue)));
    32
    JLabel max = new JLabel("Max: " + df.format(new Float(maxValue)));
    Differences
    Expression1Expression2Difference
    minmaxVARIABLE_NAME_MISMATCH
    "Min: ""Max: "LITERAL_VALUE_MISMATCH
    minValuemaxValueVARIABLE_NAME_MISMATCH
    32
    JLabel max = new JLabel("Max: " + df.format(new Float(maxValue)));
    29
    c.gridx = 1;
    29
    c.gridx = 1;
    30
    c.gridy = 2;
    30
    c.gridy = 2;
    34
    c.gridy = 3;
    Differences
    Expression1Expression2Difference
    23LITERAL_VALUE_MISMATCH
    34
    c.gridy = 3;
    31
    g.setConstraints(min, c);
    31
    g.setConstraints(min, c);
    35
    g.setConstraints(max, c);
    Differences
    Expression1Expression2Difference
    minmaxVARIABLE_NAME_MISMATCH
    35
    g.setConstraints(max, c);
    32
    JLabel max = new JLabel("Max: " + df.format(new Float(maxValue)));
    32
    JLabel max = new JLabel("Max: " + df.format(new Float(maxValue)));
    36
    JLabel average = new JLabel("Average: " + df.format(new Float(averageValue)));
    Differences
    Expression1Expression2Difference
    maxaverageVARIABLE_NAME_MISMATCH
    "Max: ""Average: "LITERAL_VALUE_MISMATCH
    maxValueaverageValueVARIABLE_NAME_MISMATCH
    36
    JLabel average = new JLabel("Average: " + df.format(new Float(averageValue)));
    33
    c.gridx = 1;
    33
    c.gridx = 1;
                                
    37
    c.gridx = 1;
    Preondition Violations
    Unmatched statement c.gridx=1; cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted
    37
    c.gridx = 1;
    34
    c.gridy = 3;
    34
    c.gridy = 3;
    38
    c.gridy = 4;
    Differences
    Expression1Expression2Difference
    34LITERAL_VALUE_MISMATCH
    38
    c.gridy = 4;
    35
    g.setConstraints(max, c);
    35
    g.setConstraints(max, c);
    39
    g.setConstraints(average, c);
    Differences
    Expression1Expression2Difference
    maxaverageVARIABLE_NAME_MISMATCH
    39
    g.setConstraints(average, c);
    Precondition Violations (2)
    Row Violation
    1Unmatched statement c.gridx=1; cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted
    2Clone fragment #1 returns variables min, max , while Clone fragment #2 returns variables max, average