CloneSet12


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
68220.963executable_statement
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
168268
E:/TSE/Projects-CloneDR/jEdit-4.2/src/bsh/Primitive.java
268345
E:/TSE/Projects-CloneDR/jEdit-4.2/src/bsh/Primitive.java
Next
Last
Clone Instance
1
Line Count
68
Source Line
268
Source File
E:/TSE/Projects-CloneDR/jEdit-4.2/src/bsh/Primitive.java

switch (kind) {
  // boolean
  case LT:
  case LTX:
    return new Boolean(lhs < rhs);
  case GT:
  case GTX:
    return new Boolean(lhs > rhs);
  case EQ:
    return new Boolean(lhs == rhs);
  case LE:
  case LEX:
    return new Boolean(lhs <= rhs);
  case GE:
  case GEX:
    return new Boolean(lhs >= rhs);
  case NE:
    return new Boolean(lhs != rhs);
  // arithmetic
  case PLUS:
    return new Long(lhs + rhs);
  case MINUS:
    return new Long(lhs - rhs);
  case STAR:
    return new Long(lhs * rhs);
  case SLASH:
    return new Long(lhs / rhs);
  case MOD:
    return new Long(lhs % rhs);
  // bitwise
  case LSHIFT:
  case LSHIFTX:
    return new Long(lhs << rhs);
  case RSIGNEDSHIFT:
  case RSIGNEDSHIFTX:
    return new Long(lhs >> rhs);
  case RUNSIGNEDSHIFT:
  case RUNSIGNEDSHIFTX:
    return new Long(lhs >>> rhs);
  case BIT_AND:
  case BIT_ANDX:
    return new Long(lhs&rhs);
  case BIT_OR:
  case BIT_ORX:
    return new Long(lhs|rhs);
  case XOR:
    return new Long(lhs^rhs);
  default:
    throw new InterpreterError("Unimplemented binary long operator");
}


First
Previous
Clone Instance
2
Line Count
68
Source Line
345
Source File
E:/TSE/Projects-CloneDR/jEdit-4.2/src/bsh/Primitive.java

switch (kind) {
  // boolean
  case LT:
  case LTX:
    return new Boolean(lhs < rhs);
  case GT:
  case GTX:
    return new Boolean(lhs > rhs);
  case EQ:
    return new Boolean(lhs == rhs);
  case LE:
  case LEX:
    return new Boolean(lhs <= rhs);
  case GE:
  case GEX:
    return new Boolean(lhs >= rhs);
  case NE:
    return new Boolean(lhs != rhs);
  // arithmetic
  case PLUS:
    return new Integer(lhs + rhs);
  case MINUS:
    return new Integer(lhs - rhs);
  case STAR:
    return new Integer(lhs * rhs);
  case SLASH:
    return new Integer(lhs / rhs);
  case MOD:
    return new Integer(lhs % rhs);
  // bitwise
  case LSHIFT:
  case LSHIFTX:
    return new Integer(lhs << rhs);
  case RSIGNEDSHIFT:
  case RSIGNEDSHIFTX:
    return new Integer(lhs >> rhs);
  case RUNSIGNEDSHIFT:
  case RUNSIGNEDSHIFTX:
    return new Integer(lhs >>> rhs);
  case BIT_AND:
  case BIT_ANDX:
    return new Integer(lhs&rhs);
  case BIT_OR:
  case BIT_ORX:
    return new Integer(lhs|rhs);
  case XOR:
    return new Integer(lhs^rhs);
  default:
    throw new InterpreterError("Unimplemented binary integer operator");
}


Clone AbstractionParameter Count: 2Parameter Bindings

switch (kind) {
  // boolean
  case LT:
  case LTX:
    return new Boolean(lhs < rhs);
  case GT:
  case GTX:
    return new Boolean(lhs > rhs);
  case EQ:
    return new Boolean(lhs == rhs);
  case LE:
  case LEX:
    return new Boolean(lhs <= rhs);
  case GE:
  case GEX:
    return new Boolean(lhs >= rhs);
  case NE:
    return new Boolean(lhs != rhs);
  // arithmetic
  case PLUS:
    return new [[#variablec2549c0]](lhs + rhs);
  case MINUS:
    return new [[#variablec2549c0]](lhs - rhs);
  case STAR:
    return new [[#variablec2549c0]](lhs * rhs);
  case SLASH:
    return new [[#variablec2549c0]](lhs / rhs);
  case MOD:
    return new [[#variablec2549c0]](lhs % rhs);
  // bitwise
  case LSHIFT:
  case LSHIFTX:
    return new [[#variablec2549c0]](lhs << rhs);
  case RSIGNEDSHIFT:
  case RSIGNEDSHIFTX:
    return new [[#variablec2549c0]](lhs >> rhs);
  case RUNSIGNEDSHIFT:
  case RUNSIGNEDSHIFTX:
    return new [[#variablec2549c0]](lhs >>> rhs);
  case BIT_AND:
  case BIT_ANDX:
    return new [[#variablec2549c0]](lhs&rhs);
  case BIT_OR:
  case BIT_ORX:
    return new [[#variablec2549c0]](lhs|rhs);
  case XOR:
    return new [[#variablec2549c0]](lhs^rhs);
  default:
    throw new InterpreterError( [[#variablec254920]]);
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#c2549c0]]
Long 
12[[#c2549c0]]
Integer 
21[[#c254920]]
"Unimplemented binary long operator" 
22[[#c254920]]
"Unimplemented binary integer operator"