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;
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;
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(totalMemoryLabel, c);
1
add(currentMemoryLabel, c);
2
			totalMemoryTextField.setColumns(5);
2
			currentMemoryTextField.setColumns(5);
3
			totalMemoryTextField.setEditable(false);
3
			currentMemoryTextField.setEditable(false);
4
			c.gridx = 4;
4
			c.gridx = 1;
5
			c.insets = new Insets(0, 4, 0, 4);
5
			c.insets = new Insets(0, 4, 0, 4);
6
			add(totalMemoryTextField, c);
6
			add(currentMemoryTextField, c);
7
			JLabel totalMemoryKBLabel = new JLabel("KB");
7
			JLabel currentMemoryKBLabel = new JLabel("KB");
8
			c.gridx = 5;
8
			c.gridx = 2;
9
			c.insets = new Insets(0, 0, 0, 0);
9
			c.insets = new Insets(0, 0, 0, 0);
10
			add(totalMemoryKBLabel, c);
10
			add(currentMemoryKBLabel, c);
11
			JLabel maxMemoryLabel = new JLabel("VM Max:");
11
			JLabel totalMemoryLabel = new JLabel("Total:");
12
			c.gridx = 0;
12
			c.gridx = 3;
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
    23
    add(totalMemoryLabel, c);
    23
    add(totalMemoryLabel, c);
    10
    add(currentMemoryLabel, c);
    Differences
    Expression1Expression2Difference
    totalMemoryLabelcurrentMemoryLabelVARIABLE_NAME_MISMATCH
    10
    add(currentMemoryLabel, c);
    24
    totalMemoryTextField.setColumns(5);
    24
    totalMemoryTextField.setColumns(5);
    11
    currentMemoryTextField.setColumns(5);
    Differences
    Expression1Expression2Difference
    totalMemoryTextFieldcurrentMemoryTextFieldVARIABLE_NAME_MISMATCH
    11
    currentMemoryTextField.setColumns(5);
    25
    totalMemoryTextField.setEditable(false);
    25
    totalMemoryTextField.setEditable(false);
    12
    currentMemoryTextField.setEditable(false);
    Differences
    Expression1Expression2Difference
    totalMemoryTextFieldcurrentMemoryTextFieldVARIABLE_NAME_MISMATCH
    12
    currentMemoryTextField.setEditable(false);
    26
    c.gridx = 4;
    26
    c.gridx = 4;
    13
    c.gridx = 1;
    Differences
    Expression1Expression2Difference
    41LITERAL_VALUE_MISMATCH
    13
    c.gridx = 1;
    27
    c.insets = new Insets(0, 4, 0, 4);
    14
    c.insets = new Insets(0, 4, 0, 4);
    28
    add(totalMemoryTextField, c);
    28
    add(totalMemoryTextField, c);
    15
    add(currentMemoryTextField, c);
    Differences
    Expression1Expression2Difference
    totalMemoryTextFieldcurrentMemoryTextFieldVARIABLE_NAME_MISMATCH
    15
    add(currentMemoryTextField, c);
    29
    JLabel totalMemoryKBLabel = new JLabel("KB");
    29
    JLabel totalMemoryKBLabel = new JLabel("KB");
    16
    JLabel currentMemoryKBLabel = new JLabel("KB");
    Differences
    Expression1Expression2Difference
    totalMemoryKBLabelcurrentMemoryKBLabelVARIABLE_NAME_MISMATCH
    16
    JLabel currentMemoryKBLabel = new JLabel("KB");
    30
    c.gridx = 5;
    30
    c.gridx = 5;
    17
    c.gridx = 2;
    Differences
    Expression1Expression2Difference
    52LITERAL_VALUE_MISMATCH
    17
    c.gridx = 2;
    31
    c.insets = new Insets(0, 0, 0, 0);
    18
    c.insets = new Insets(0, 0, 0, 0);
    32
    add(totalMemoryKBLabel, c);
    32
    add(totalMemoryKBLabel, c);
    19
    add(currentMemoryKBLabel, c);
    Differences
    Expression1Expression2Difference
    totalMemoryKBLabelcurrentMemoryKBLabelVARIABLE_NAME_MISMATCH
    19
    add(currentMemoryKBLabel, c);
    33
    JLabel maxMemoryLabel = new JLabel("VM Max:");
    33
    JLabel maxMemoryLabel = new JLabel("VM Max:");
    20
    JLabel totalMemoryLabel = new JLabel("Total:");
    Differences
    Expression1Expression2Difference
    maxMemoryLabeltotalMemoryLabelVARIABLE_NAME_MISMATCH
    "VM Max:""Total:"LITERAL_VALUE_MISMATCH
    20
    JLabel totalMemoryLabel = new JLabel("Total:");
    34
    c.gridx = 0;
    34
    c.gridx = 0;
    21
    c.gridx = 3;
    Differences
    Expression1Expression2Difference
    03LITERAL_VALUE_MISMATCH
    21
    c.gridx = 3;
    Precondition Violations (0)
    Row Violation