CloneSet201


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
6330.961method_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
1640
E:/TSE/Projects-CloneDR/apache-ant-1.7.0/src/tests/junit/org/apache/tools/ant/util/regexp/RegexpTest.java
2648
E:/TSE/Projects-CloneDR/apache-ant-1.7.0/src/tests/junit/org/apache/tools/ant/util/regexp/RegexpTest.java
3656
E:/TSE/Projects-CloneDR/apache-ant-1.7.0/src/tests/junit/org/apache/tools/ant/util/regexp/RegexpTest.java
Next
Last
Clone Instance
1
Line Count
6
Source Line
40
Source File
E:/TSE/Projects-CloneDR/apache-ant-1.7.0/src/tests/junit/org/apache/tools/ant/util/regexp/RegexpTest.java

public void testSubstitution() {
  Regexp reg = (Regexp) getReg();
  reg.setPattern(pattern);
  assertTrue(reg.matches(test));
  assertEquals("abedcfg-abcdefg", reg.substitute(test, "ab\\2d\\1f", Regexp.MATCH_DEFAULT));
}


Next
Previous
Clone Instance
2
Line Count
6
Source Line
48
Source File
E:/TSE/Projects-CloneDR/apache-ant-1.7.0/src/tests/junit/org/apache/tools/ant/util/regexp/RegexpTest.java

public void testReplaceFirstSubstitution() {
  Regexp reg = (Regexp) getReg();
  reg.setPattern(pattern);
  assertTrue(reg.matches(test));
  assertEquals("abedcfg-abcdefg", reg.substitute(test, "ab\\2d\\1f", Regexp.REPLACE_FIRST));
}


First
Previous
Clone Instance
3
Line Count
6
Source Line
56
Source File
E:/TSE/Projects-CloneDR/apache-ant-1.7.0/src/tests/junit/org/apache/tools/ant/util/regexp/RegexpTest.java

public void testReplaceAllSubstitution() {
  Regexp reg = (Regexp) getReg();
  reg.setPattern(pattern);
  assertTrue(reg.matches(test));
  assertEquals("abedcfg-abedcfg", reg.substitute(test, "ab\\2d\\1f", Regexp.REPLACE_ALL));
}


Clone AbstractionParameter Count: 3Parameter Bindings

public void [[#variable111eb680]]() {
  Regexp reg = (Regexp) getReg();
  reg.setPattern(pattern);
  assertTrue(reg.matches(test));
  assertEquals( [[#variable111eb5e0]], reg.substitute(test, "ab\\2d\\1f", Regexp. [[#variable111eb380]]));
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#111eb680]]
testSubstitution 
12[[#111eb680]]
testReplaceFirstSubstitution 
13[[#111eb680]]
testReplaceAllSubstitution 
21[[#111eb5e0]]
"abedcfg-abcdefg" 
22[[#111eb5e0]]
"abedcfg-abcdefg" 
23[[#111eb5e0]]
"abedcfg-abedcfg" 
31[[#111eb380]]
MATCH_DEFAULT 
32[[#111eb380]]
REPLACE_FIRST 
33[[#111eb380]]
REPLACE_ALL