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 |
| |
See real code fragment | See real code fragment |
Number of common nesting structure subtrees | 1 |
Number of refactorable cases | 0 |
Number of non-refactorable cases | 1 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.0 |
Clones location | Clones are in the same method |
Number of node comparisons | 25 |
Number of mapped statements | 5 |
Number of unmapped statements in the first code fragment | 0 |
Number of unmapped statements in the second code fragment | 0 |
Time elapsed for statement mapping (ms) | 0.0 |
Clone type | Type 1 |
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]; |
Row | Violation |
---|---|
1 | Clone fragment #1 returns variables topHeight, bottomHeight, leftWidth, rightWidth , while Clone fragment #2 returns variables topHeight, leftWidth, rightWidth, bottomHeight |