Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
12 | 2 | 3 | 0.962 | block |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 12 | 317 | E:/TSE/Projects-CloneDR/apache-ant-1.7.0/src/tests/junit/org/apache/tools/ant/DirectoryScannerTest.java |
2 | 12 | 331 | E:/TSE/Projects-CloneDR/apache-ant-1.7.0/src/tests/junit/org/apache/tools/ant/DirectoryScannerTest.java |
| |||||
{ DirectoryScanner ds = new DirectoryScanner(); ds.setBasedir(new File(getProject().getBaseDir(), "tmp")); ds.setIncludes(new String[] { "**/*.xml" } ); ds.setExcludes(new String[] { "alpha/beta/b*xml" } ); ds.scan(); compareFiles(ds, new String[] { "alpha/beta/gamma/gamma.xml" }, new String[] { } ); } |
| |||||
{ DirectoryScanner ds = new DirectoryScanner(); ds.setBasedir(new File(getProject().getBaseDir(), "tmp")); ds.setIncludes(new String[] { "alpha/**" } ); ds.setExcludes(new String[] { "alpha/**" } ); ds.scan(); compareFiles(ds, new String[] { }, new String[] { } ); } |
| |||
{ DirectoryScanner ds = new DirectoryScanner(); ds.setBasedir(new File(getProject().getBaseDir(), "tmp")); ds.setIncludes(new String[] { [[#variable131bb580]] } ); ds.setExcludes(new String[] { [[#variable131bb4e0]] } ); ds.scan(); compareFiles(ds, new String[] [[#variable131bb520]], new String[] { } ); } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#131bb580]] | "**/*.xml" |
1 | 2 | [[#131bb580]] | "alpha/**" |
2 | 1 | [[#131bb4e0]] | "alpha/beta/b*xml" |
2 | 2 | [[#131bb4e0]] | "alpha/**" |
3 | 1 | [[#131bb520]] | { "alpha/beta/gamma/gamma.xml" } |
3 | 2 | [[#131bb520]] | { } |