Variable cv = s.getNewVariable(); // SSS FIXME: Is this correct? s.addInstr(new GET_CONST_Instr(cv, s.getSelf(), node.getName())); return cv;
IRubyObject self = binding.getSelf(); binding.getFrame().setSelf(self); return self;
Clone fragments detected by clone detection tool
File path: /jruby-1.4.0/src/org/jruby/compiler/ir/IR_Builder.java File path: /jruby-1.4.0/src/org/jruby/runtime/CompiledBlock19.java
Method name: Operand buildColon3(Colon3Node, IR_Scope) Method name: IRubyObject prepareSelf(Binding)
Number of AST nodes: 3 Number of AST nodes: 3
1
Variable cv = s.getNewVariable();
2
        // SSS FIXME: Is this correct?
3
        s.addInstr(new GET_CONST_Instr(cv, s.getSelf(), node.getName()));
1
IRubyObject self = binding.getSelf();
2
        binding.getFrame().setSelf(self);
3
        
4
        return cv;
4
        return self;
Summary
Number of common nesting structure subtrees1
Number of refactorable cases0
Number of non-refactorable cases1
Time elapsed for finding largest common nesting structure subtrees (ms)0.0
Clones locationClones are in different classes
Number of node comparisons9
  1. {Non-refactorable}
    Mapping Summary
    Number of mapped statements0
    Number of unmapped statements in the first code fragment0
    Number of unmapped statements in the second code fragment0
    Time elapsed for statement mapping (ms)0.0
    Clone typeUnknown type
    Mapped Statements
    ID Statement ID Statement
    Precondition Violations (0)
    Row Violation