for (int i = 0; i < SampleEvent.getVarCount(); i++){ text.append(VARIABLE_NAME_QUOTE_CHAR); text.append(SampleEvent.getVarName(i)); text.append(VARIABLE_NAME_QUOTE_CHAR); text.append(delim); }
if(firstMultipart) { output.write(DASH_DASH); output.write(boundaryString.getBytes(HTTP_ENCODING)); output.write(CRLF); }
Clone fragments detected by clone detection tool
File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/save/CSVSaveService.java File path: /jakarta-jmeter-2.3.2/test/src/org/apache/jmeter/protocol/http/sampler/PostWriterTest.java
Method name: String printableFieldNamesToString(SampleSaveConfiguration) Method name: byte[] createExpectedFormdataOutput(String, String, String, String, String, String, boolean, boolean)
Number of AST nodes: 5 Number of AST nodes: 4
1
for (int i = 0; i < SampleEvent.getVarCount(); i++){
2
        	text.append(VARIABLE_NAME_QUOTE_CHAR);
3
        	text.append(SampleEvent.getVarName(i));
4
        	text.append(VARIABLE_NAME_QUOTE_CHAR);
5
            text.append(delim
1
if(firstMultipart) {
2
            output.write(DASH_DASH);
3
            output.write(boundaryString.getBytes(HTTP_ENCODING));
6
);
4
            output.write(CRLF);
7
        }
5
        }
Summary
Number of common nesting structure subtrees0
Number of refactorable cases0
Number of non-refactorable cases0
Time elapsed for finding largest common nesting structure subtrees (ms)0.0
Clones locationClones are in different classes
Number of node comparisons1