CloneSet140


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
20220.986statement_sequence[4]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
12073
E:/TSE/Projects-CloneDR/apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/optional/sos/SOSCheckin.java
22062
E:/TSE/Projects-CloneDR/apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/optional/sos/SOSCheckout.java
Next
Last
Clone Instance
1
Line Count
20
Source Line
73
Source File
E:/TSE/Projects-CloneDR/apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/optional/sos/SOSCheckin.java

commandLine = new Commandline();
// If we find a "file" attribute then act on a file otherwise act on a project
if (getFilename() != null) {
  // add -command CheckInFile to the commandline
  commandLine.createArgument().setValue(SOSCmd.FLAG_COMMAND);
  commandLine.createArgument().setValue(SOSCmd.COMMAND_CHECKIN_FILE);
  // add -file xxxxx to the commandline
  commandLine.createArgument().setValue(SOSCmd.FLAG_FILE);
  commandLine.createArgument().setValue(getFilename());
}
else {
  // add -command CheckInProject to the commandline
  commandLine.createArgument().setValue(SOSCmd.FLAG_COMMAND);
  commandLine.createArgument().setValue(SOSCmd.COMMAND_CHECKIN_PROJECT);
  // look for a recursive option
  commandLine.createArgument().setValue(getRecursive());
}
getRequiredAttributes();
getOptionalAttributes();


First
Previous
Clone Instance
2
Line Count
20
Source Line
62
Source File
E:/TSE/Projects-CloneDR/apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/optional/sos/SOSCheckout.java

commandLine = new Commandline();
// If we find a "file" attribute then act on a file otherwise act on a project
if (getFilename() != null) {
  // add -command CheckOutFile to the commandline
  commandLine.createArgument().setValue(SOSCmd.FLAG_COMMAND);
  commandLine.createArgument().setValue(SOSCmd.COMMAND_CHECKOUT_FILE);
  // add -file xxxxx to the commandline
  commandLine.createArgument().setValue(SOSCmd.FLAG_FILE);
  commandLine.createArgument().setValue(getFilename());
}
else {
  // add -command CheckOutProject to the commandline
  commandLine.createArgument().setValue(SOSCmd.FLAG_COMMAND);
  commandLine.createArgument().setValue(SOSCmd.COMMAND_CHECKOUT_PROJECT);
  // look for a recursive option
  commandLine.createArgument().setValue(getRecursive());
}
getRequiredAttributes();
getOptionalAttributes();


Clone AbstractionParameter Count: 2Parameter Bindings

commandLine = new Commandline();
// If we find a "file" attribute then act on a file otherwise act on a project
if (getFilename() != null) {
  // add -command CheckOutFile to the commandline
  // add -command CheckInFile to the commandline
  commandLine.createArgument().setValue(SOSCmd.FLAG_COMMAND);
  commandLine.createArgument().setValue(SOSCmd. [[#variablefe0c540]]);
  // add -file xxxxx to the commandline
  commandLine.createArgument().setValue(SOSCmd.FLAG_FILE);
  commandLine.createArgument().setValue(getFilename());
}
else {
  // add -command CheckOutProject to the commandline
  // add -command CheckInProject to the commandline
  commandLine.createArgument().setValue(SOSCmd.FLAG_COMMAND);
  commandLine.createArgument().setValue(SOSCmd. [[#variablefe0c460]]);
  // look for a recursive option
  commandLine.createArgument().setValue(getRecursive());
}
getRequiredAttributes();
getOptionalAttributes();
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#fe0c540]]
COMMAND_CHECKIN_FILE 
12[[#fe0c540]]
COMMAND_CHECKOUT_FILE 
21[[#fe0c460]]
COMMAND_CHECKIN_PROJECT 
22[[#fe0c460]]
COMMAND_CHECKOUT_PROJECT