int[] dimensions = adjustDockingAreasToFit( size, topHeight, leftWidth, bottomHeight, rightWidth, topButtonHeight, leftButtonWidth, bottomButtonHeight, rightButtonWidth, _topToolbars, _bottomToolbars); topHeight = dimensions[0]; leftWidth = dimensions[1]; bottomHeight = dimensions[2]; rightWidth = dimensions[3];
int[] dimensions = adjustDockingAreasToFit( size, topHeight, leftWidth, bottomHeight, rightWidth, topButtonHeight, leftButtonWidth, bottomButtonHeight, rightButtonWidth, _topToolbars, _bottomToolbars); topHeight = dimensions[0]; leftWidth = dimensions[1]; bottomHeight = dimensions[2]; rightWidth = dimensions[3];
Clone fragments detected by clone detection tool
File path: /jEdit-4.2/src/org/gjt/sp/jedit/gui/DockableWindowManager.java File path: /jEdit-4.2/src/org/gjt/sp/jedit/gui/DockableWindowManager.java
Method name: void layoutContainer(Container) Method name: void layoutContainer(Container)
Number of AST nodes: 5 Number of AST nodes: 5
1
int[] dimensions = adjustDockingAreasToFit(
1
int[] dimensions = adjustDockingAreasToFit(
2
					size,
2
					size,
3
					topHeight,
3
					topHeight,
4
					leftWidth,
4
					leftWidth,
5
					bottomHeight,
5
					bottomHeight,
6
					rightWidth,
6
					rightWidth,
7
					topButtonHeight,
7
					topButtonHeight,
8
					leftButtonWidth,
8
					leftButtonWidth,
9
					bottomButtonHeight,
9
					bottomButtonHeight,
10
					rightButtonWidth,
10
					rightButtonWidth,
11
					_topToolbars,
11
					_topToolbars,
12
					_bottomToolbars);
12
					_bottomToolbars);
13
				topHeight = dimensions[0];
13
				topHeight = dimensions[0];
14
				leftWidth = dimensions[1];
14
				leftWidth = dimensions[1];
15
				bottomHeight = dimensions[2];
15
				bottomHeight = dimensions[2];
16
				rightWidth = dimensions[3];
16
				rightWidth = dimensions[3];
Summary
Number of common nesting structure subtrees1
Number of refactorable cases0
Number of non-refactorable cases1
Time elapsed for finding largest common nesting structure subtrees (ms)0.0
Clones locationClones are in the same method
Number of node comparisons25
  1. {Non-refactorable}
    Mapping Summary
    Number of mapped statements5
    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 1
    Mapped Statements
    ID Statement ID Statement
    37
    int[] dimensions = adjustDockingAreasToFit(size, topHeight, leftWidth, bottomHeight, rightWidth, topButtonHeight, leftButtonWidth, bottomButtonHeight, rightButtonWidth, _topToolbars, _bottomToolbars);
    57
    int[] dimensions = adjustDockingAreasToFit(size, topHeight, leftWidth, bottomHeight, rightWidth, topButtonHeight, leftButtonWidth, bottomButtonHeight, rightButtonWidth, _topToolbars, _bottomToolbars);
    38
    topHeight = dimensions[0];
    58
    topHeight = dimensions[0];
    39
    leftWidth = dimensions[1];
    59
    leftWidth = dimensions[1];
    40
    bottomHeight = dimensions[2];
    60
    bottomHeight = dimensions[2];
    41
    rightWidth = dimensions[3];
    61
    rightWidth = dimensions[3];
    Precondition Violations (1)
    Row Violation
    1Clone fragment #1 returns variables topHeight, bottomHeight, leftWidth, rightWidth , while Clone fragment #2 returns variables topHeight, leftWidth, rightWidth, bottomHeight