c.weightx = 0.1; c.gridwidth = GridBagConstraints.RELATIVE; layout.setConstraints(draftsLabel, c); folderPanel.add(draftsLabel); c.gridwidth = GridBagConstraints.REMAINDER; c.weightx = 0.9; layout.setConstraints(draftsButton, c); folderPanel.add(draftsButton);
c.weightx = 0.1; c.gridwidth = GridBagConstraints.RELATIVE; layout.setConstraints(sentLabel, c); folderPanel.add(sentLabel); c.gridwidth = GridBagConstraints.REMAINDER; c.weightx = 0.9; layout.setConstraints(sentButton, c); folderPanel.add(sentButton);
Clone fragments detected by clone detection tool
File path: /columba-1.4-src/mail/src/main/java/org/columba/mail/gui/config/account/SpecialFoldersPanel.java File path: /columba-1.4-src/mail/src/main/java/org/columba/mail/gui/config/account/SpecialFoldersPanel.java
Method name: void layoutComponents() Method name: void layoutComponents()
Number of AST nodes: 8 Number of AST nodes: 8
1
c.weightx = 0.1;
1
c.weightx = 0.1;
2
		c.gridwidth = GridBagConstraints.RELATIVE;
2
		c.gridwidth = GridBagConstraints.RELATIVE;
3
		layout.setConstraints(draftsLabel, c);
3
		layout.setConstraints(sentLabel, c);
4
		folderPanel.add(draftsLabel);
4
		folderPanel.add(sentLabel);
5
		c.gridwidth = GridBagConstraints.REMAINDER;
5
		c.gridwidth = GridBagConstraints.REMAINDER;
6
		c.weightx = 0.9;
6
		c.weightx = 0.9;
7
		layout.setConstraints(draftsButton, c);
7
		layout.setConstraints(sentButton, c);
8
		folderPanel.add(draftsButton);
8
		folderPanel.add(sentButton);
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.0
Clones locationClones are in the same method
Number of node comparisons64
  1. {Refactorable}
    Mapping Summary
    Number of mapped statements8
    Number of unmapped statements in the first code fragment0
    Number of unmapped statements in the second code fragment0
    Time elapsed for statement mapping (ms)0.0
    Clone typeType 2
    Mapped Statements
    ID Statement ID Statement
    32
    c.weightx = 0.1;
    48
    c.weightx = 0.1;
    33
    c.gridwidth = GridBagConstraints.RELATIVE;
    49
    c.gridwidth = GridBagConstraints.RELATIVE;
    34
    layout.setConstraints(draftsLabel, c);
    34
    layout.setConstraints(draftsLabel, c);
    50
    layout.setConstraints(sentLabel, c);
    Differences
    Expression1Expression2Difference
    draftsLabelsentLabelVARIABLE_NAME_MISMATCH
    50
    layout.setConstraints(sentLabel, c);
    35
    folderPanel.add(draftsLabel);
    35
    folderPanel.add(draftsLabel);
    51
    folderPanel.add(sentLabel);
    Differences
    Expression1Expression2Difference
    draftsLabelsentLabelVARIABLE_NAME_MISMATCH
    51
    folderPanel.add(sentLabel);
    36
    c.gridwidth = GridBagConstraints.REMAINDER;
    52
    c.gridwidth = GridBagConstraints.REMAINDER;
    37
    c.weightx = 0.9;
    53
    c.weightx = 0.9;
    38
    layout.setConstraints(draftsButton, c);
    38
    layout.setConstraints(draftsButton, c);
    54
    layout.setConstraints(sentButton, c);
    Differences
    Expression1Expression2Difference
    draftsButtonsentButtonVARIABLE_NAME_MISMATCH
    54
    layout.setConstraints(sentButton, c);
    39
    folderPanel.add(draftsButton);
    39
    folderPanel.add(draftsButton);
    55
    folderPanel.add(sentButton);
    Differences
    Expression1Expression2Difference
    draftsButtonsentButtonVARIABLE_NAME_MISMATCH
    55
    folderPanel.add(sentButton);
    Precondition Violations (0)
    Row Violation