String getFilename() { return getPropertyAsString(FILENAME); } public void setFilename(String newFilename) { this.setProperty(FILENAME, newFilename); } public String getScript() { return this.getPropertyAsString(SCRIPT); } public void setScript(String newScript) { this.setProperty(SCRIPT, newScript); } public String getParameters() { return this.getPropertyAsString(PARAMETERS); } public void setParameters(String newScript) { this.setProperty(PARAMETERS, newScript); } public String getScriptLanguage() { return this.getPropertyAsString(LANGUAGE); } public void setScriptLanguage(String lang) { this.setProperty(LANGUAGE, lang);
String getYAxis() { return getPropertyAsString(REPORT_CHART_Y_AXIS); } public void setYAxis(String scale) { setProperty(REPORT_CHART_Y_AXIS,scale); } public String getXLabel() { return getPropertyAsString(REPORT_CHART_X_LABEL); } /** * The X data labels should be either the filename, date or some * other series of values * @param label */ public void setXLabel(String label) { setProperty(REPORT_CHART_X_LABEL,label); } public String getYLabel() { return getPropertyAsString(REPORT_CHART_Y_LABEL); } public void setYLabel(String label) { setProperty(REPORT_CHART_Y_LABEL,label); } /** * The title is a the name for the chart. A page link will * be generated using the title. The title will also be * used for a page index. * @return chart title */ public String getTitle() { return getPropertyAsString(REPORT_CHART_TITLE); } /** * The title is a the name for the chart. A page link will * be generated using the title. The title will also be * used for a page index. * @param title */ public void setTitle(String title) { setProperty(REPORT_CHART_TITLE,title);
Clone fragments detected by clone detection tool
File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/protocol/java/sampler/BSFSampler.java File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/testelement/AbstractChart.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
String getFilename() {
1
String getYAxis() {
2
		return getPropertyAsString(FILENAME);
2
    	return getPropertyAsString(
3
	}
4
	
3
REPORT_CHART_Y_AXIS);
4
    }
5
    
5
public void setFilename(String newFilename) {
6
    public void set
6
		this.setProperty(FILENAME, newFilename);
7
	
7
YAxis(String scale) {
8
    	setProperty(REPORT_CHART_Y_AXIS,scale);
8
}
9
    }
9
	public String getScript() {
10
    public String getXLabel() {
10
		return this.getPropertyAsString(SCRIPT);
11
    	return getPropertyAsString(
11
	}
12
	
12
REPORT_CHART_X_LABEL);
13
    }
14
    
15
    /**
16
     * The X data labels should be either the filename, date or some
17
     * other series of values
18
     * @param label
19
     */
13
public void setScript(String newScript) {
20
    public void setXLabel(String 
14
		this.setProperty(SCRIPT, newScript);
15
	}
16
	
21
label) {
22
    	setProperty(REPORT_CHART_X_LABEL,label);
23
    }
24
    
17
public String getParameters() {
25
    public String getYLabel() {
18
		return this.getPropertyAsString(PARAMETERS);
26
    	return getPropertyAsString(
19
	}
20
	
27
REPORT_CHART_Y_LABEL);
28
    }
29
    
21
public void setParameters(String newScript) {
30
    public void set
22
		this.setProperty(PARAMETERS, newScript);
23
	}
24
	
31
YLabel(String label) {
32
    	setProperty(REPORT_CHART_Y_LABEL,label);
33
    }
34
    
35
    /**
36
     * The title is a the name for the chart. A page link will
37
     * be generated using the title. The title will also be
38
     * used for a page index.
39
     * @return chart title
40
     */
25
public String getScriptLanguage() {
41
    public String getTitle() {
26
		return this.getPropertyAsString(LANGUAGE);
42
    	return getPropertyAsString(
27
	}
28
	
43
REPORT_CHART_TITLE);
44
    }
45
    
46
    /**
47
     * The title is a the name for the chart. A page link will
48
     * be generated using the title. The title will also be
49
     * used for a page index.
50
     * @param title
51
     */
29
public void setScriptLanguage(String lang) {
52
    public void setTitle(String 
30
		this.setProperty(LANGUAGE, lang);
31
	
53
title) {
54
    	setProperty(REPORT_CHART_TITLE,title);
55
    
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 location
Number of node comparisons0