c.insets = new Insets(0, 4, 0, 4); add(currentMemoryTextField, c); JLabel currentMemoryKBLabel = new JLabel("KB"); c.gridx = 2; c.insets = new Insets(0, 0, 0, 0); add(currentMemoryKBLabel, c);
c.insets = new Insets(4, 4, 0, 4); add(maxMemoryTextField, c); JLabel maxMemoryKBLabel = new JLabel("KB"); c.gridx = 2; c.insets = new Insets(0, 0, 0, 0); add(maxMemoryKBLabel, c);
Clone fragments detected by clone detection tool
File path: /columba-1.4-src/core/src/main/java/org/columba/core/gui/util/AboutDialog.java File path: /columba-1.4-src/core/src/main/java/org/columba/core/gui/util/AboutDialog.java
Method name: void initComponents() Method name: void initComponents()
Number of AST nodes: 6 Number of AST nodes: 6
1
c.insets = new Insets(0, 4, 0, 4);
1
c.insets = new Insets(4, 4, 0, 4);
2
			add(currentMemoryTextField, c);
2
			add(maxMemoryTextField, c);
3
			JLabel currentMemoryKBLabel = new JLabel("KB");
3
			JLabel maxMemoryKBLabel = new JLabel("KB");
4
			c.gridx = 2;
4
			c.gridx = 2;
5
			c.insets = new Insets(0, 0, 0, 0);
5
			c.insets = new Insets(0, 0, 0, 0);
6
			add(currentMemoryKBLabel, c);
6
			add(maxMemoryKBLabel, c);
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 comparisons26
  1. {Refactorable}
    Mapping Summary
    Number of mapped statements6
    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
    14
    c.insets = new Insets(0, 4, 0, 4);
    14
    c.insets = new Insets(0, 4, 0, 4);
    42
    c.insets = new Insets(4, 4, 0, 4);
    Differences
    Expression1Expression2Difference
    04LITERAL_VALUE_MISMATCH
    42
    c.insets = new Insets(4, 4, 0, 4);
    15
    add(currentMemoryTextField, c);
    15
    add(currentMemoryTextField, c);
    43
    add(maxMemoryTextField, c);
    Differences
    Expression1Expression2Difference
    currentMemoryTextFieldmaxMemoryTextFieldVARIABLE_NAME_MISMATCH
    43
    add(maxMemoryTextField, c);
    16
    JLabel currentMemoryKBLabel = new JLabel("KB");
    16
    JLabel currentMemoryKBLabel = new JLabel("KB");
    44
    JLabel maxMemoryKBLabel = new JLabel("KB");
    Differences
    Expression1Expression2Difference
    currentMemoryKBLabelmaxMemoryKBLabelVARIABLE_NAME_MISMATCH
    44
    JLabel maxMemoryKBLabel = new JLabel("KB");
    17
    c.gridx = 2;
    45
    c.gridx = 2;
    18
    c.insets = new Insets(0, 0, 0, 0);
    46
    c.insets = new Insets(0, 0, 0, 0);
    19
    add(currentMemoryKBLabel, c);
    19
    add(currentMemoryKBLabel, c);
    47
    add(maxMemoryKBLabel, c);
    Differences
    Expression1Expression2Difference
    currentMemoryKBLabelmaxMemoryKBLabelVARIABLE_NAME_MISMATCH
    47
    add(maxMemoryKBLabel, c);
    Precondition Violations (0)
    Row Violation