if (RubyInstanceConfig.FASTEST_COMPILE_ENABLED || noFrame()) { return CallConfiguration.FrameNoneScopeNone; } else { return CallConfiguration.FrameBacktraceScopeNone; }
if (RubyInstanceConfig.FASTEST_COMPILE_ENABLED || noFrame()) { return CallConfiguration.FrameNoneScopeDummy; } else { return CallConfiguration.FrameBacktraceScopeDummy; }
Clone fragments detected by clone detection tool
File path: /jruby-1.4.0/src/org/jruby/compiler/ASTInspector.java File path: /jruby-1.4.0/src/org/jruby/compiler/ASTInspector.java
Method name: CallConfiguration getCallConfig() Method name: CallConfiguration getCallConfig()
Number of AST nodes: 3 Number of AST nodes: 3
1
if (RubyInstanceConfig.FASTEST_COMPILE_ENABLED || noFrame()) {
1
if (RubyInstanceConfig.FASTEST_COMPILE_ENABLED || noFrame()) {
2
                        return CallConfiguration.FrameNoneScopeNone;
2
                        return CallConfiguration.FrameNoneScopeDummy;
3
                    } else {
3
                    } else {
4
                        return CallConfiguration.FrameBacktraceScopeNone;
4
                        return CallConfiguration.FrameBacktraceScopeDummy;
5
                    }
5
                    }
Summary
Number of common nesting structure subtrees1
Number of refactorable cases1
Number of non-refactorable cases0
Time elapsed for finding largest common nesting structure subtrees (ms)0.3
Clones locationClones are in the same method
Number of node comparisons9
  1. {Refactorable}
    Mapping Summary
    Number of mapped statements3
    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.8
    Clone typeType 2
    Mapped Statements
    ID Statement ID Statement
    15
    if (RubyInstanceConfig.FASTEST_COMPILE_ENABLED || noFrame())
    12
    if (RubyInstanceConfig.FASTEST_COMPILE_ENABLED || noFrame())
    16
    return CallConfiguration.FrameNoneScopeNone;
    16
    return CallConfiguration.FrameNoneScopeNone;
    13
    return CallConfiguration.FrameNoneScopeDummy;
    Differences
    Expression1Expression2Difference
    FrameNoneScopeNoneFrameNoneScopeDummyVARIABLE_NAME_MISMATCH
    13
    return CallConfiguration.FrameNoneScopeDummy;
    else
    else
    17
    return CallConfiguration.FrameBacktraceScopeNone;
    17
    return CallConfiguration.FrameBacktraceScopeNone;
    14
    return CallConfiguration.FrameBacktraceScopeDummy;
    Differences
    Expression1Expression2Difference
    FrameBacktraceScopeNoneFrameBacktraceScopeDummyVARIABLE_NAME_MISMATCH
    14
    return CallConfiguration.FrameBacktraceScopeDummy;
    Precondition Violations (0)
    Row Violation