File f = new File(file); is = new FileInputStream(f); p.load(is);
File infile = new File(local); res.setBytes((int)infile.length()); input = new FileInputStream(infile);
Clone fragments detected by clone detection tool
File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/util/JMeterUtils.java File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/protocol/ftp/sampler/FTPSampler.java
Method name: void loadJMeterProperties(String) Method name: SampleResult sample(Entry)
Number of AST nodes: 3 Number of AST nodes: 3
1
File f = new File(file);
1
File infile = new File(
2
			is = new FileInputStream(f
2
local);
3
);
3
	                        res.setBytes((int)infile.length());
4
            p.load(is);
4
	                        input = new FileInputStream(infile);
Summary
Number of common nesting structure subtrees1
Number of refactorable cases0
Number of non-refactorable cases1
Time elapsed for finding largest common nesting structure subtrees (ms)0.0
Clones locationClones are in different classes
Number of node comparisons6
  1. {Non-refactorable}
    Mapping Summary
    Number of mapped statements2
    Number of unmapped statements in the first code fragment1
    Number of unmapped statements in the second code fragment1
    Time elapsed for statement mapping (ms)0.0
    Clone typeType 3
    Mapped Statements
    ID Statement ID Statement
    4
    File f = new File(file);
    4
    File f = new File(file);
    31
    File infile = new File(local);
    Differences
    Expression1Expression2Difference
    finfileVARIABLE_NAME_MISMATCH
    filelocalVARIABLE_NAME_MISMATCH
    31
    File infile = new File(local);
                                                                                  
    32
    res.setBytes((int)infile.length());
    5
    is = new FileInputStream(f);
    5
    is = new FileInputStream(f);
    33
    input = new FileInputStream(infile);
    Differences
    Expression1Expression2Difference
    isinputVARIABLE_NAME_MISMATCH
    finfileVARIABLE_NAME_MISMATCH
    33
    input = new FileInputStream(infile);
    Precondition Violations (1)
    Row Violation
    1Clone fragment #1 returns variables is , while Clone fragment #2 returns variables infile, input