File path: /jruby-1.4.0/src/org/jruby/RubyBigDecimal.java | File path: /jruby-1.4.0/src/org/jruby/RubyBigDecimal.java | |||
Method name: IRubyObject floatingPointValue(String)
|
Method name: IRubyObject floatingPointValue(String)
|
|||
Number of AST nodes: 7 | Number of AST nodes: 7 | |||
1 | while (index < whole.length()) {↵ | 1 | while (index < after.length()) {↵ | |
2 | int next = index + groups(arg);↵ | 2 | int next = index + groups(arg);↵ | |
3 | if (next > whole.length()) {↵ | 3 | if (next > after.length()) {↵ | |
4 | next = whole.length();↵ | 4 | next = after.length();↵ | |
5 | }↵ | 5 | }↵ | |
6 | build.append(sep).append(whole.substring(index, next));↵ | 6 | build.append(sep).append(after.substring(index, next));↵ | |
7 | sep = " ";↵ | 7 | sep = " ";↵ | |
8 | index += groups(arg);↵ | 8 | index += groups(arg);↵ | |
9 | } | 9 | } | |
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.3 |
Clones location | Clones are in the same method |
Number of node comparisons | 29 |
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) | 2.2 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
17 | while (index < whole.length()) |
| 28 | while (index < after.length()) | ||||||||||
18 | int next = index + groups(arg); | 29 | int next = index + groups(arg); | |||||||||||
19 | if (next > whole.length()) |
| 30 | if (next > after.length()) | ||||||||||
20 | next = whole.length(); |
| 31 | next = after.length(); | ||||||||||
21 | build.append(sep).append(whole.substring(index, next)); |
| 32 | build.append(sep).append(after.substring(index, next)); | ||||||||||
22 | sep = " "; | 33 | sep = " "; | |||||||||||
23 | index += groups(arg); | 34 | index += groups(arg); |
Row | Violation |
---|