File path: /jfreechart-1.0.10/src/org/jfree/chart/renderer/xy/XYBoxAndWhiskerRenderer.java | File path: /jfreechart-1.0.10/src/org/jfree/chart/renderer/xy/XYBoxAndWhiskerRenderer.java | |||
Method name: void drawHorizontalItem(Graphics2D, Rectangle2D, PlotRenderingInfo, XYPlot, ValueAxis, ValueAxis, XYDataset, int, int, CrosshairState, int)
|
Method name: void drawVerticalItem(Graphics2D, Rectangle2D, PlotRenderingInfo, XYPlot, ValueAxis, ValueAxis, XYDataset, int, int, CrosshairState, int)
|
|||
Number of AST nodes: 7 | Number of AST nodes: 7 | |||
1 | int itemCount = boxAndWhiskerData.getItemCount(series);↵ | 1 | int itemCount = boxAndWhiskerData.getItemCount(series);↵ | |
2 | exactBoxWidth = dataAreaX / itemCount * 4.5 / 7;↵ | 2 | exactBoxWidth = dataAreaX / itemCount * 4.5 / 7;↵ | |
3 | if (exactBoxWidth < 3) {↵ | 3 | if (exactBoxWidth < 3) {↵ | |
4 | width = 3;↵ | 4 | width = 3;↵ | |
5 | }↵ | 5 | } ↵ | |
6 | else if (exactBoxWidth > maxBoxWidth) {↵ | 6 | else if (exactBoxWidth > maxBoxWidth) {↵ | |
7 | width = maxBoxWidth;↵ | 7 | width = maxBoxWidth;↵ | |
8 | }↵ | 8 | } ↵ | |
9 | else {↵ | 9 | else {↵ | |
10 | width = exactBoxWidth;↵ | 10 | width = exactBoxWidth;↵ | |
11 | } | 11 |
| |
See real code fragment | See real code fragment |
Number of common nesting structure subtrees | 1 |
Number of refactorable cases | 1 |
Number of non-refactorable cases | 0 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.4 |
Clones location | Clones are declared in the same class |
Number of node comparisons | 25 |
Number of mapped statements | 7 |
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) | 9.9 |
Clone type | Type 1 |
ID | Statement | ID | Statement | |
---|---|---|---|---|
28 | int itemCount = boxAndWhiskerData.getItemCount(series); | 30 | int itemCount = boxAndWhiskerData.getItemCount(series); | |
29 | exactBoxWidth = dataAreaX / itemCount * 4.5 / 7; | 31 | exactBoxWidth = dataAreaX / itemCount * 4.5 / 7; | |
30 | if (exactBoxWidth < 3) | 32 | if (exactBoxWidth < 3) | |
31 | width = 3; | 33 | width = 3; | |
32 | else if (exactBoxWidth > maxBoxWidth) | 34 | else if (exactBoxWidth > maxBoxWidth) | |
33 | width = maxBoxWidth; | 35 | width = maxBoxWidth; | |
else | else | |||
34 | width = exactBoxWidth; | 36 | width = exactBoxWidth; |
Row | Violation |
---|