compareFiles(ds, new String[] {"alpha/beta/beta.xml", "alpha/beta/gamma/gamma.xml"}, new String[] {"alpha", "alpha/beta", "alpha/beta/gamma"});
compareFiles(ds, new String[] {"alpha/beta/beta.xml", "alpha/beta/gamma/gamma.xml"}, new String[] {"alpha", "alpha/beta", "alpha/beta/gamma"});
Clone fragments detected by clone detection tool
File path: /apache-ant-1.7.0/src/tests/junit/org/apache/tools/ant/DirectoryScannerTest.java File path: /apache-ant-1.7.0/src/tests/junit/org/apache/tools/ant/taskdefs/optional/net/FTPTest.java
Method name: void test2ButCaseInsensitive() Method name: void test3()
Number of AST nodes: 1 Number of AST nodes: 1
1
compareFiles(ds, new String[] {"alpha/beta/beta.xml",
1
compareFiles(ds, new String[] {"alpha/beta/beta.xml",
2
                                       "alpha/beta/gamma/gamma.xml"},
2
                                               "alpha/beta/gamma/gamma.xml"},
3
                     new String[] {"alpha", "alpha/beta",
3
                    new String[] {"alpha", "alpha/beta",
4
 "alpha/beta/gamma"});
4
                                  "alpha/beta/gamma"});
Summary
Number of common nesting structure subtrees1
Number of refactorable cases1
Number of non-refactorable cases0
Time elapsed for finding largest common nesting structure subtrees (ms)0.0
Clones locationClones are in different classes having the same super class
Number of node comparisons1
  1. {Refactorable}
    Mapping Summary
    Number of mapped statements1
    Number of unmapped statements in the first code fragment0
    Number of unmapped statements in the second code fragment0
    Time elapsed for statement mapping (ms)0.0
    Clone typeType 2
    Mapped Statements
    ID Statement ID Statement
    6
    compareFiles(ds, new String[] {"alpha/beta/beta.xml", "alpha/beta/gamma/gamma.xml"}, new String[] {"alpha", "alpha/beta", "alpha/beta/gamma"});
    6
    compareFiles(ds, new String[] {"alpha/beta/beta.xml", "alpha/beta/gamma/gamma.xml"}, new String[] {"alpha", "alpha/beta", "alpha/beta/gamma"});
    6
    compareFiles(ds, new String[] {"alpha/beta/beta.xml", "alpha/beta/gamma/gamma.xml"}, new String[] {"alpha", "alpha/beta", "alpha/beta/gamma"});
    Differences
    Expression1Expression2Difference
    org.apache.tools.ant.DirectoryScannerorg.apache.tools.ant.taskdefs.optional.net.FTP.FTPDirectoryScannerSUBCLASS_TYPE_MISMATCH
    6
    compareFiles(ds, new String[] {"alpha/beta/beta.xml", "alpha/beta/gamma/gamma.xml"}, new String[] {"alpha", "alpha/beta", "alpha/beta/gamma"});
    Precondition Violations (0)
    Row Violation