CloneSet55


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
19230.983class_body_declarations[2]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
119154
E:/TSE/Projects-CloneDR/apache-ant-1.7.0/src/tests/junit/org/apache/tools/ant/DirectoryScannerTest.java
219200
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
19
Source Line
154
Source File
E:/TSE/Projects-CloneDR/apache-ant-1.7.0/src/tests/junit/org/apache/tools/ant/DirectoryScannerTest.java

public void testPatternsDifferInCaseScanningSensitive() {
  DirectoryScanner ds = new DirectoryScanner();
  ds.setBasedir(new File(getProject().getBaseDir(), "tmp"));
  ds.setIncludes(new String[] {
                                "alpha/",
                                "ALPHA/"
                              } );
  ds.scan();
  compareFiles(ds, new String[] {
                                  "alpha/beta/beta.xml",
                                  "alpha/beta/gamma/gamma.xml"
                                }, new String[] {
                                                  "alpha",
                                                  "alpha/beta",
                                                  "alpha/beta/gamma"
                                                } );
}

public void testPatternsDifferInCaseScanningInsensitive() {
  DirectoryScanner ds = new DirectoryScanner();
  ds.setBasedir(new File(getProject().getBaseDir(), "tmp"));
  ds.setIncludes(new String[] {
                                "alpha/",
                                "ALPHA/"
                              } );
  ds.setCaseSensitive(false);
  ds.scan();
  compareFiles(ds, new String[] {
                                  "alpha/beta/beta.xml",
                                  "alpha/beta/gamma/gamma.xml"
                                }, new String[] {
                                                  "alpha",
                                                  "alpha/beta",
                                                  "alpha/beta/gamma"
                                                } );
}


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

public void testParentDiffersInCaseScanningSensitive() {
  DirectoryScanner ds = new DirectoryScanner();
  ds.setBasedir(new File(getProject().getBaseDir(), "tmp"));
  ds.setIncludes(new String[] {
                                "alpha/",
                                "ALPHA/beta/"
                              } );
  ds.scan();
  compareFiles(ds, new String[] {
                                  "alpha/beta/beta.xml",
                                  "alpha/beta/gamma/gamma.xml"
                                }, new String[] {
                                                  "alpha",
                                                  "alpha/beta",
                                                  "alpha/beta/gamma"
                                                } );
}

public void testParentDiffersInCaseScanningInsensitive() {
  DirectoryScanner ds = new DirectoryScanner();
  ds.setBasedir(new File(getProject().getBaseDir(), "tmp"));
  ds.setIncludes(new String[] {
                                "alpha/",
                                "ALPHA/beta/"
                              } );
  ds.setCaseSensitive(false);
  ds.scan();
  compareFiles(ds, new String[] {
                                  "alpha/beta/beta.xml",
                                  "alpha/beta/gamma/gamma.xml"
                                }, new String[] {
                                                  "alpha",
                                                  "alpha/beta",
                                                  "alpha/beta/gamma"
                                                } );
}


Clone AbstractionParameter Count: 3Parameter Bindings

public void [[#variablefd230e0]]() {
  DirectoryScanner ds = new DirectoryScanner();
  ds.setBasedir(new File(getProject().getBaseDir(), "tmp"));
  ds.setIncludes(new String[] {
                                "alpha/",
                                 [[#variablef71d740]]
                              } );
  ds.scan();
  compareFiles(ds, new String[] {
                                  "alpha/beta/beta.xml",
                                  "alpha/beta/gamma/gamma.xml"
                                }, new String[] {
                                                  "alpha",
                                                  "alpha/beta",
                                                  "alpha/beta/gamma"
                                                } );
}

public void [[#variablefd22f60]]() {
  DirectoryScanner ds = new DirectoryScanner();
  ds.setBasedir(new File(getProject().getBaseDir(), "tmp"));
  ds.setIncludes(new String[] {
                                "alpha/",
                                 [[#variablef71d740]]
                              } );
  ds.setCaseSensitive(false);
  ds.scan();
  compareFiles(ds, new String[] {
                                  "alpha/beta/beta.xml",
                                  "alpha/beta/gamma/gamma.xml"
                                }, new String[] {
                                                  "alpha",
                                                  "alpha/beta",
                                                  "alpha/beta/gamma"
                                                } );
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#fd230e0]]
testPatternsDifferInCaseScanningSensitive 
12[[#fd230e0]]
testParentDiffersInCaseScanningSensitive 
21[[#f71d740]]
"ALPHA/" 
22[[#f71d740]]
"ALPHA/beta/" 
31[[#fd22f60]]
testPatternsDifferInCaseScanningInsensitive 
32[[#fd22f60]]
testParentDiffersInCaseScanningInsensitive