CloneSet310


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
12230.951statement_sequence[3]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
116266
E:/TSE/Projects-CloneDR/apache-ant-1.7.0/src/tests/junit/org/apache/tools/ant/DirectoryScannerTest.java
212294
E:/TSE/Projects-CloneDR/apache-ant-1.7.0/src/tests/junit/org/apache/tools/ant/DirectoryScannerTest.java
Next
Last
Clone Instance
1
Line Count
16
Source Line
266
Source File
E:/TSE/Projects-CloneDR/apache-ant-1.7.0/src/tests/junit/org/apache/tools/ant/DirectoryScannerTest.java

for (int i = 0; i < included.length; i++) {
  if (included[i].equals("zip")) {
    haveZipPackage = true;
  }
  else
    if (included[i].equals("ThisIsALink" + File.separator + "taskdefs")) {
      haveTaskdefsPackage = true;
    }
}
// if we followed the symlink we just made we should
// bypass the excludes.
assertTrue("(1) zip package included", haveZipPackage);
assertTrue("(1) taskdefs package included", haveTaskdefsPackage);


First
Previous
Clone Instance
2
Line Count
12
Source Line
294
Source File
E:/TSE/Projects-CloneDR/apache-ant-1.7.0/src/tests/junit/org/apache/tools/ant/DirectoryScannerTest.java

for (int i = 0; i < included.length; i++) {
  if (included[i].equals("zip")) {
    haveZipPackage = true;
  }
  else
    if (included[i].equals("ThisIsALink" + File.separator + "taskdefs")) {
      haveTaskdefsPackage = true;
    }
}
assertTrue("(2) zip package included", haveZipPackage);
assertTrue("(2) taskdefs package not included", !haveTaskdefsPackage);


Clone AbstractionParameter Count: 3Parameter Bindings

for (int i = 0; i < included.length; i++) {
  if (included[i].equals("zip")) {
    haveZipPackage = true;
  }
  else
    if (included[i].equals("ThisIsALink" + File.separator + "taskdefs")) {
      haveTaskdefsPackage = true;
    }
}
// if we followed the symlink we just made we should
// bypass the excludes.
assertTrue( [[#variable100d5b40]], haveZipPackage);
assertTrue( [[#variable100d5c00]],  [[#variable100d5ba0]]);
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#100d5b40]]
"(1) zip package included" 
12[[#100d5b40]]
"(2) zip package included" 
21[[#100d5c00]]
"(1) taskdefs package included" 
22[[#100d5c00]]
"(2) taskdefs package not included" 
31[[#100d5ba0]]
haveTaskdefsPackage 
32[[#100d5ba0]]
!haveTaskdefsPackage