CloneSet96


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
19301.000statement_sequence[13]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
119165
E:/TSE/Projects-CloneDR/jakarta-jmeter-2.3.2/test/src/org/apache/jmeter/protocol/http/control/TestHTTPMirrorThread.java
219255
E:/TSE/Projects-CloneDR/jakarta-jmeter-2.3.2/test/src/org/apache/jmeter/protocol/http/control/TestHTTPMirrorThread.java
319309
E:/TSE/Projects-CloneDR/jakarta-jmeter-2.3.2/test/src/org/apache/jmeter/protocol/http/control/TestHTTPMirrorThread.java
Next
Last
Clone Instance
1
Line Count
19
Source Line
165
Source File
E:/TSE/Projects-CloneDR/jakarta-jmeter-2.3.2/test/src/org/apache/jmeter/protocol/http/control/TestHTTPMirrorThread.java

outputStream.write(secondChunk);
// Read the response
response = new ByteArrayOutputStream();
buffer = new byte[1024];
length = 0;
while ((length = inputStream.read(buffer)) != -1) {
  response.write(buffer, 0, length);
}
response.close();
mirroredResponse = getMirroredResponse(response.toByteArray());
// The content sent
bos = new ByteArrayOutputStream();
bos.write(firstChunk);
bos.write(secondChunk);
bos.close();
// Check that the request and response matches
checkArraysHaveSameContent(bos.toByteArray(), mirroredResponse);
// Close the connection
clientSocket.close();


Next
Previous
Clone Instance
2
Line Count
19
Source Line
255
Source File
E:/TSE/Projects-CloneDR/jakarta-jmeter-2.3.2/test/src/org/apache/jmeter/protocol/http/control/TestHTTPMirrorThread.java

outputStream.write(secondChunk);
// Read the response
response = new ByteArrayOutputStream();
buffer = new byte[1024];
length = 0;
while ((length = inputStream.read(buffer)) != -1) {
  response.write(buffer, 0, length);
}
response.close();
mirroredResponse = getMirroredResponse(response.toByteArray());
// The content sent
bos = new ByteArrayOutputStream();
bos.write(firstChunk);
bos.write(secondChunk);
bos.close();
// Check that the request and response matches
checkArraysHaveSameContent(bos.toByteArray(), mirroredResponse);
// Close the connection
clientSocket.close();


First
Previous
Clone Instance
3
Line Count
19
Source Line
309
Source File
E:/TSE/Projects-CloneDR/jakarta-jmeter-2.3.2/test/src/org/apache/jmeter/protocol/http/control/TestHTTPMirrorThread.java

outputStream.write(secondChunk);
// Read the response
response = new ByteArrayOutputStream();
buffer = new byte[1024];
length = 0;
while ((length = inputStream.read(buffer)) != -1) {
  response.write(buffer, 0, length);
}
response.close();
mirroredResponse = getMirroredResponse(response.toByteArray());
// The content sent
bos = new ByteArrayOutputStream();
bos.write(firstChunk);
bos.write(secondChunk);
bos.close();
// Check that the request and response matches       
checkArraysHaveSameContent(bos.toByteArray(), mirroredResponse);
// Close the connection
clientSocket.close();


Clone AbstractionParameter Count: 0Parameter Bindings

outputStream.write(secondChunk);
// Read the response
response = new ByteArrayOutputStream();
buffer = new byte[1024];
length = 0;
while ((length = inputStream.read(buffer)) != -1) {
  response.write(buffer, 0, length);
}
response.close();
mirroredResponse = getMirroredResponse(response.toByteArray());
// The content sent
bos = new ByteArrayOutputStream();
bos.write(firstChunk);
bos.write(secondChunk);
bos.close();
// Check that the request and response matches       
// Check that the request and response matches
checkArraysHaveSameContent(bos.toByteArray(), mirroredResponse);
// Close the connection
clientSocket.close();
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
None