for (long i = value; i >= end; i += diff) { block.yield(context, RubyFixnum.newFixnum(runtime, i)); }
for (long i = value; i <= end; i += diff) { block.yield(context, RubyFixnum.newFixnum(runtime, i)); }
Clone fragments detected by clone detection tool
File path: /jruby-1.4.0/src/org/jruby/RubyNumeric.java File path: /jruby-1.4.0/src/org/jruby/RubyNumeric.java
Method name: void fixnumStep(ThreadContext, Ruby, long, long, long, Block) Method name: void fixnumStep(ThreadContext, Ruby, long, long, long, Block)
Number of AST nodes: 2 Number of AST nodes: 2
1
for (long i = value; i &gt;= end; i += diff) {
1
for (long i = value; i &lt;= end; i += diff) {
2
                block.yield(context, RubyFixnum.newFixnum(runtime, i));
2
                block.yield(context, RubyFixnum.newFixnum(runtime, i));
3
            }
3
            }
Summary
Number of common nesting structure subtrees0
Number of refactorable cases0
Number of non-refactorable cases0
Time elapsed for finding largest common nesting structure subtrees (ms)0.1
Clones locationClones are in the same method
Number of node comparisons1