CloneSet226


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
13230.972method_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
1946
E:/TSE/Projects-CloneDR/apache-ant-1.7.0/src/tests/junit/org/apache/tools/ant/taskdefs/SubAntTest.java
21359
E:/TSE/Projects-CloneDR/apache-ant-1.7.0/src/tests/junit/org/apache/tools/ant/taskdefs/SubAntTest.java
Next
Last
Clone Instance
1
Line Count
9
Source Line
46
Source File
E:/TSE/Projects-CloneDR/apache-ant-1.7.0/src/tests/junit/org/apache/tools/ant/taskdefs/SubAntTest.java

// target must be specified
public void testgenericantfile() {
  File dir1 = project.resolveFile(".");
  File dir2 = project.resolveFile("subant/subant-test1");
  File dir3 = project.resolveFile("subant/subant-test2");
  testBaseDirs("testgenericantfile", new String[] {
                                                    dir1.getAbsolutePath(),
                                                    dir2.getAbsolutePath(),
                                                    dir3.getAbsolutePath()
                                                  } );
}


First
Previous
Clone Instance
2
Line Count
13
Source Line
59
Source File
E:/TSE/Projects-CloneDR/apache-ant-1.7.0/src/tests/junit/org/apache/tools/ant/taskdefs/SubAntTest.java

public void testantfile() {
  File dir1 = project.resolveFile(".");
  // basedir of subant/subant-test1/subant.xml is ..
  // therefore we expect here the subant/subant-test1 subdirectory
  File dir2 = project.resolveFile("subant/subant-test1");
  // basedir of subant/subant-test2/subant.xml is ..
  // therefore we expect here the subant subdirectory
  File dir3 = project.resolveFile("subant");
  testBaseDirs("testantfile", new String[] {
                                             dir1.getAbsolutePath(),
                                             dir2.getAbsolutePath(),
                                             dir3.getAbsolutePath()
                                           } );
}


Clone AbstractionParameter Count: 3Parameter Bindings

// target must be specified
public void [[#variable131a3ce0]]() {
  File dir1 = project.resolveFile(".");
  // basedir of subant/subant-test1/subant.xml is ..
  // therefore we expect here the subant/subant-test1 subdirectory
  File dir2 = project.resolveFile("subant/subant-test1");
  // basedir of subant/subant-test2/subant.xml is ..
  // therefore we expect here the subant subdirectory
  File dir3 = project.resolveFile( [[#variable131a3c80]]);
  testBaseDirs( [[#variable131a3c00]], new String[] {
                                                      dir1.getAbsolutePath(),
                                                      dir2.getAbsolutePath(),
                                                      dir3.getAbsolutePath()
                                                    } );
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#131a3ce0]]
testgenericantfile 
12[[#131a3ce0]]
testantfile 
21[[#131a3c80]]
"subant/subant-test2" 
22[[#131a3c80]]
"subant" 
31[[#131a3c00]]
"testgenericantfile" 
32[[#131a3c00]]
"testantfile"