add(currentMemoryLabel, c); currentMemoryTextField.setColumns(5); currentMemoryTextField.setEditable(false); c.gridx = 1; 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); JLabel totalMemoryLabel = new JLabel("Total:"); c.gridx = 3;
add(totalMemoryLabel, c); totalMemoryTextField.setColumns(5); totalMemoryTextField.setEditable(false); c.gridx = 4; c.insets = new Insets(0, 4, 0, 4); add(totalMemoryTextField, c); JLabel totalMemoryKBLabel = new JLabel("KB"); c.gridx = 5; c.insets = new Insets(0, 0, 0, 0); add(totalMemoryKBLabel, c); JLabel maxMemoryLabel = new JLabel("VM Max:"); c.gridx = 0;
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: 12 Number of AST nodes: 12
1
add(currentMemoryLabel, c);
1
add(totalMemoryLabel, c);
2
			currentMemoryTextField.setColumns(5);
2
			totalMemoryTextField.setColumns(5);
3
			currentMemoryTextField.setEditable(false);
3
			totalMemoryTextField.setEditable(false);
4
			c.gridx = 1;
4
			c.gridx = 4;
5
			c.insets = new Insets(0, 4, 0, 4);
5
			c.insets = new Insets(0, 4, 0, 4);
6
			add(currentMemoryTextField, c);
6
			add(totalMemoryTextField, c);
7
			JLabel currentMemoryKBLabel = new JLabel("KB");
7
			JLabel totalMemoryKBLabel = new JLabel("KB");
8
			c.gridx = 2;
8
			c.gridx = 5;
9
			c.insets = new Insets(0, 0, 0, 0);
9
			c.insets = new Insets(0, 0, 0, 0);
10
			add(currentMemoryKBLabel, c);
10
			add(totalMemoryKBLabel, c);
11
			JLabel totalMemoryLabel = new JLabel("Total:");
11
			JLabel maxMemoryLabel = new JLabel("VM Max:");
12
			c.gridx = 3;
12
			c.gridx = 0;
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 comparisons103
  1. {Refactorable}
    Mapping Summary
    Number of mapped statements12
    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
    10
    add(currentMemoryLabel, c);
    10
    add(currentMemoryLabel, c);
    23
    add(totalMemoryLabel, c);
    Differences
    Expression1Expression2Difference
    currentMemoryLabeltotalMemoryLabelVARIABLE_NAME_MISMATCH
    23
    add(totalMemoryLabel, c);
    11
    currentMemoryTextField.setColumns(5);
    11
    currentMemoryTextField.setColumns(5);
    24
    totalMemoryTextField.setColumns(5);
    Differences
    Expression1Expression2Difference
    currentMemoryTextFieldtotalMemoryTextFieldVARIABLE_NAME_MISMATCH
    24
    totalMemoryTextField.setColumns(5);
    12
    currentMemoryTextField.setEditable(false);
    12
    currentMemoryTextField.setEditable(false);
    25
    totalMemoryTextField.setEditable(false);
    Differences
    Expression1Expression2Difference
    currentMemoryTextFieldtotalMemoryTextFieldVARIABLE_NAME_MISMATCH
    25
    totalMemoryTextField.setEditable(false);
    13
    c.gridx = 1;
    13
    c.gridx = 1;
    26
    c.gridx = 4;
    Differences
    Expression1Expression2Difference
    14LITERAL_VALUE_MISMATCH
    26
    c.gridx = 4;
    14
    c.insets = new Insets(0, 4, 0, 4);
    27
    c.insets = new Insets(0, 4, 0, 4);
    15
    add(currentMemoryTextField, c);
    15
    add(currentMemoryTextField, c);
    28
    add(totalMemoryTextField, c);
    Differences
    Expression1Expression2Difference
    currentMemoryTextFieldtotalMemoryTextFieldVARIABLE_NAME_MISMATCH
    28
    add(totalMemoryTextField, c);
    16
    JLabel currentMemoryKBLabel = new JLabel("KB");
    16
    JLabel currentMemoryKBLabel = new JLabel("KB");
    29
    JLabel totalMemoryKBLabel = new JLabel("KB");
    Differences
    Expression1Expression2Difference
    currentMemoryKBLabeltotalMemoryKBLabelVARIABLE_NAME_MISMATCH
    29
    JLabel totalMemoryKBLabel = new JLabel("KB");
    17
    c.gridx = 2;
    17
    c.gridx = 2;
    30
    c.gridx = 5;
    Differences
    Expression1Expression2Difference
    25LITERAL_VALUE_MISMATCH
    30
    c.gridx = 5;
    18
    c.insets = new Insets(0, 0, 0, 0);
    31
    c.insets = new Insets(0, 0, 0, 0);
    19
    add(currentMemoryKBLabel, c);
    19
    add(currentMemoryKBLabel, c);
    32
    add(totalMemoryKBLabel, c);
    Differences
    Expression1Expression2Difference
    currentMemoryKBLabeltotalMemoryKBLabelVARIABLE_NAME_MISMATCH
    32
    add(totalMemoryKBLabel, c);
    20
    JLabel totalMemoryLabel = new JLabel("Total:");
    20
    JLabel totalMemoryLabel = new JLabel("Total:");
    33
    JLabel maxMemoryLabel = new JLabel("VM Max:");
    Differences
    Expression1Expression2Difference
    totalMemoryLabelmaxMemoryLabelVARIABLE_NAME_MISMATCH
    "Total:""VM Max:"LITERAL_VALUE_MISMATCH
    33
    JLabel maxMemoryLabel = new JLabel("VM Max:");
    21
    c.gridx = 3;
    21
    c.gridx = 3;
    34
    c.gridx = 0;
    Differences
    Expression1Expression2Difference
    30LITERAL_VALUE_MISMATCH
    34
    c.gridx = 0;
    Precondition Violations (0)
    Row Violation