File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/visualizers/GraphVisualizer.java | File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/visualizers/DistributionGraphVisualizer.java | |||
Method name: void init()
|
Method name: void init()
|
|||
Number of AST nodes: 10 | Number of AST nodes: 8 | |||
1 | this.setLayout(new BorderLayout());↵ | 1 | this.setLayout(new BorderLayout());↵ | |
2 | // MAIN PANEL↵ | 2 | // MAIN PANEL↵ | |
3 | Border margin = new EmptyBorder(10, 10, 5, 10);↵ | 3 | Border margin = new EmptyBorder(10, 10, 5, 10);↵ | |
4 | this.setBorder(margin);↵ | 4 | this.setBorder(margin);↵ | |
5 | // Set up the graph with header, footer, Y axis and graph display↵ | 5 | // Set up the graph with header, footer, Y axis and graph display↵ | |
6 | JPanel graphPanel = new JPanel(new BorderLayout());↵ | 6 | JPanel lgraphPanel = new JPanel(new BorderLayout());↵ | |
7 | graphPanel.add(createYAxis(), BorderLayout.WEST);↵ | 7 | ↵ | |
8 | graphPanel.add(createChoosePanel(), BorderLayout.NORTH);↵ | |||
9 | graphPanel.add(createGraphPanel(), BorderLayout.CENTER);↵ | 8 | lgraphPanel.add(createGraphPanel(), BorderLayout.CENTER);↵ | |
10 | graphPanel.add(createGraphInfoPanel(), BorderLayout.SOUTH);↵ | 9 | lgraphPanel.add(createGraphInfoPanel(), BorderLayout.SOUTH);↵ | |
11 | // Add the main panel and the graph↵ | 10 | // Add the main panel and the graph↵ | |
12 | this.add(makeTitlePanel(), BorderLayout.NORTH);↵ | 11 | this.add(makeTitlePanel(), BorderLayout.NORTH);↵ | |
13 | this.add(graphPanel, BorderLayout.CENTER); | 12 | this.add(lgraphPanel, BorderLayout.CENTER); | |
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 different classes having the same super class |
Number of node comparisons | 64 |
Number of mapped statements | 8 |
Number of unmapped statements in the first code fragment | 2 |
Number of unmapped statements in the second code fragment | 0 |
Time elapsed for statement mapping (ms) | 0.0 |
Clone type | Type 3 |
ID | Statement | ID | Statement | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | this.setLayout(new BorderLayout()); | 1 | this.setLayout(new BorderLayout()); | |||||||||||
2 | Border margin = new EmptyBorder(10, 10, 5, 10); | 2 | Border margin = new EmptyBorder(10, 10, 5, 10); | |||||||||||
3 | this.setBorder(margin); | 3 | this.setBorder(margin); | |||||||||||
4 | JPanel graphPanel = new JPanel(new BorderLayout()); |
| 4 | JPanel lgraphPanel = new JPanel(new BorderLayout()); | ||||||||||
5 | graphPanel.add(createYAxis(), BorderLayout.WEST); | | ||||||||||||
6 | graphPanel.add(createChoosePanel(), BorderLayout.NORTH); | | ||||||||||||
7 | graphPanel.add(createGraphPanel(), BorderLayout.CENTER); |
| 5 | lgraphPanel.add(createGraphPanel(), BorderLayout.CENTER); | ||||||||||
8 | graphPanel.add(createGraphInfoPanel(), BorderLayout.SOUTH); |
| 6 | lgraphPanel.add(createGraphInfoPanel(), BorderLayout.SOUTH); | ||||||||||
9 | this.add(makeTitlePanel(), BorderLayout.NORTH); | 7 | this.add(makeTitlePanel(), BorderLayout.NORTH); | |||||||||||
10 | this.add(graphPanel, BorderLayout.CENTER); |
| 8 | this.add(lgraphPanel, BorderLayout.CENTER); |
Row | Violation |
---|---|
1 | Clone fragment #1 returns variables graphPanel , while Clone fragment #2 returns variables |