if (noLegendYet) { gbc.gridx = 0; gbc.gridy = compCount++; gbc.anchor = GridBagConstraints.WEST; gbc.weightx = 1.0; gbc.insets = new Insets(0, 10, 0, 0); JLabel totalTimeLabel = new JLabel("Total time - " + oneSample.toString()); totalTimeLabel.setForeground(currColor); gridBag.setConstraints(totalTimeLabel, gbc); legendPanel.add(totalTimeLabel); }
if (noLegendYet) { gbc.gridx = 0; gbc.gridy = compCount++; gbc.anchor = GridBagConstraints.WEST; gbc.weightx = 1.0; gbc.insets = new Insets(0, 10, 0, 0); JLabel mainTimeLabel = new JLabel(oneSample.toString()); mainTimeLabel.setForeground(currColor); gridBag.setConstraints(mainTimeLabel, gbc); legendPanel.add(mainTimeLabel); }
Clone fragments detected by clone detection tool
File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/visualizers/GraphAccum.java File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/visualizers/GraphAccum.java
Method name: void drawSample(int, SampleResult, Graphics) Method name: void drawSample(int, SampleResult, Graphics)
Number of AST nodes: 10 Number of AST nodes: 10
1
if (noLegendYet) {
1
if (noLegendYet) {
2
			gbc.gridx = 0;
2
			gbc.gridx = 0;
3
			gbc.gridy = compCount++;
3
			gbc.gridy = compCount++;
4
			gbc.anchor = GridBagConstraints.WEST;
4
			gbc.anchor = GridBagConstraints.WEST;
5
			gbc.weightx = 1.0;
5
			gbc.weightx = 1.0;
6
			gbc.insets = new Insets(0, 10, 0, 0);
6
			gbc.insets = new Insets(0, 10, 0, 0);
7
			JLabel totalTimeLabel = new JLabel("Total time - " + oneSample.toString());
7
			JLabel mainTimeLabel = new JLabel(oneSample.toString());
8
			totalTimeLabel.setForeground(currColor);
8
			mainTimeLabel.setForeground(currColor);
9
			gridBag.setConstraints(totalTimeLabel, gbc);
9
			gridBag.setConstraints(mainTimeLabel, gbc);
10
			legendPanel.add(totalTimeLabel);
10
			legendPanel.add(mainTimeLabel);
11
		}
11
		}
Summary
Number of common nesting structure subtrees1
Number of refactorable cases1
Number of non-refactorable cases0
Time elapsed for finding largest common nesting structure subtrees (ms)0.1
Clones locationClones are in the same method
Number of node comparisons100
  1. {Refactorable}
    Mapping Summary
    Number of mapped statements10
    Number of unmapped statements in the first code fragment0
    Number of unmapped statements in the second code fragment0
    Time elapsed for statement mapping (ms)5.7
    Clone typeType 2
    Mapped Statements
    ID Statement ID Statement
    26
    if (noLegendYet)
    45
    if (noLegendYet)
    27
    gbc.gridx = 0;
    46
    gbc.gridx = 0;
    28
    gbc.gridy = compCount++;
    47
    gbc.gridy = compCount++;
    29
    gbc.anchor = GridBagConstraints.WEST;
    48
    gbc.anchor = GridBagConstraints.WEST;
    30
    gbc.weightx = 1.0;
    49
    gbc.weightx = 1.0;
    31
    gbc.insets = new Insets(0, 10, 0, 0);
    50
    gbc.insets = new Insets(0, 10, 0, 0);
    32
    JLabel totalTimeLabel = new JLabel("Total time - " + oneSample.toString());
    32
    JLabel totalTimeLabel = new JLabel("Total time - " + oneSample.toString());
    51
    JLabel mainTimeLabel = new JLabel(oneSample.toString());
    Differences
    Expression1Expression2Difference
    totalTimeLabelmainTimeLabelVARIABLE_NAME_MISMATCH
    "Total time - " + oneSample.toString()oneSample.toString()TYPE_COMPATIBLE_REPLACEMENT
    51
    JLabel mainTimeLabel = new JLabel(oneSample.toString());
    33
    totalTimeLabel.setForeground(currColor);
    33
    totalTimeLabel.setForeground(currColor);
    52
    mainTimeLabel.setForeground(currColor);
    Differences
    Expression1Expression2Difference
    totalTimeLabelmainTimeLabelVARIABLE_NAME_MISMATCH
    52
    mainTimeLabel.setForeground(currColor);
    34
    gridBag.setConstraints(totalTimeLabel, gbc);
    34
    gridBag.setConstraints(totalTimeLabel, gbc);
    53
    gridBag.setConstraints(mainTimeLabel, gbc);
    Differences
    Expression1Expression2Difference
    totalTimeLabelmainTimeLabelVARIABLE_NAME_MISMATCH
    53
    gridBag.setConstraints(mainTimeLabel, gbc);
    35
    legendPanel.add(totalTimeLabel);
    35
    legendPanel.add(totalTimeLabel);
    54
    legendPanel.add(mainTimeLabel);
    Differences
    Expression1Expression2Difference
    totalTimeLabelmainTimeLabelVARIABLE_NAME_MISMATCH
    54
    legendPanel.add(mainTimeLabel);
    Precondition Violations (0)
    Row Violation