<!DOCTYPE html>
<html>
	<head>
		<link href="template.files/style.css" rel="stylesheet" type="text/css" />
		<script type="text/javascript" src="template.files/jquery-1.11.1.min.js"></script>
		<script type="text/javascript" src="template.files/script.js"></script>
		<title>470-1-4</title>
	</head>
	<body>
		<div id="invisible">
		</div>
		<div id="sourcecode">
			<div><textarea></textarea></div>
			<div><button id="closecode">Close</button></div>
		</div>
		<div id="centeralize">
			<div id="firstCode">public void testReplaceDataset() {
        Number[][] data = new Integer[][]
            {{new Integer(-30), new Integer(-20)},
             {new Integer(-10), new Integer(10)},
             {new Integer(20), new Integer(30)}};

        CategoryDataset newData = DatasetUtilities.createCategoryDataset(
                "S", "C", data);
        LocalListener l = new LocalListener();
        this.chart.addChangeListener(l);
        CategoryPlot plot = (CategoryPlot) this.chart.getPlot();
        plot.setDataset(newData);
        assertEquals(true, l.flag);
        ValueAxis axis = plot.getRangeAxis();
        Range range = axis.getRange();
        assertTrue("Expecting the lower bound of the range to be around -30: "
                   + range.getLowerBound(), range.getLowerBound() &lt;= -30);
        assertTrue("Expecting the upper bound of the range to be around 30: "
                   + range.getUpperBound(), range.getUpperBound() &gt;= 30);
</div>
			<div id="secondCode">public void testReplaceDataset() {

        // create a dataset...
        Number[][] data = new Integer[][]
            {{new Integer(-30), new Integer(-20)},
             {new Integer(-10), new Integer(10)},
             {new Integer(20), new Integer(30)}};

        CategoryDataset newData = DatasetUtilities.createCategoryDataset("S", 
                "C", data);

        LocalListener l = new LocalListener();
        this.chart.addChangeListener(l);
        CategoryPlot plot = (CategoryPlot) this.chart.getPlot();
        plot.setDataset(newData);
        assertEquals(true, l.flag);
        ValueAxis axis = plot.getRangeAxis();
        Range range = axis.getRange();
        assertTrue("Expecting the lower bound of the range to be around -30: "
                   + range.getLowerBound(), range.getLowerBound() &lt;= -30);
        assertTrue("Expecting the upper bound of the range to be around 30: "
                   + range.getUpperBound(), range.getUpperBound() &gt;= 30);
</div>
			<div id="textualdiff">
				<table>
					<caption>Clone fragments detected by clone detection tool</caption>
					<tbody>	
						<tr>
							<td colspan="2">
								<span class="bold">File path:</span> <!-- a href="file:////jfreechart-1.0.10/tests/org/jfree/chart/junit/AreaChartTests.java" target="_blank" -->/jfreechart-1.0.10/tests/org/jfree/chart/junit/AreaChartTests.java<!-- /a-->
							</td>
							<td></td>
							<td colspan="2">
								<span class="bold">File path:</span> <!--  a href="file:////jfreechart-1.0.10/tests/org/jfree/chart/junit/LineChart3DTests.java" target="_blank" -->/jfreechart-1.0.10/tests/org/jfree/chart/junit/LineChart3DTests.java<!--  /a -->
							</td>
						</tr>
						<tr>
							<td colspan="2">
								<span class="bold">Method name:</span> <code></code>
							</td>
							<td></td>
							<td colspan="2">
								<span class="bold">Method name:</span> <code></code>
							</td>
						</tr>	
						<tr>
							<td colspan="2">
								<span class="bold">Number of AST nodes:</span> 0
							</td>
							<td></td>
							<td colspan="2">
								<span class="bold">Number of AST nodes:</span> 0
							</td>
						</tr>
						<tr class="sectionsdivider"><td colspan="5"></td></tr>
						<!-- tr>
							<td colspan="5">
								<span class="caption">Textual Diff</span>
							</td>
						</tr-->
					</tbody>
					<tbody class="code">		
						<tr class="coderow"><td class="lines ">1</td><td class=""><pre><span class="normal">public void testReplaceDataset() {</span><span class="carr">&crarr;</span></pre></td><td class="separator"></td><td class="lines ">1</td><td class=""><pre><pre><span class="normal">public void testReplaceDataset() {</span><span class="carr">&crarr;</span></pre></pre></td></tr>
<tr class="coderow"><tr class="coderow"><td class="lines gap"></td><td class="gap"><pre></pre></td><td class="separator"></td><td class="lines changed">2</td><td class="changed"><pre><pre><span class="inserted">        // create a dataset...</span><span class="carr">&crarr;</span></pre></pre></td></tr>
<tr class="coderow"><td class="lines ">2</td><td class=""><pre><span class="normal">        Number[][] data = new Integer[][]</span><span class="carr">&crarr;</span></pre></td><td class="separator"></td><td class="lines ">3</td><td class=""><pre><pre><span class="normal">        Number[][] data = new Integer[][]</span><span class="carr">&crarr;</span></pre></pre></td></tr>
<tr class="coderow"><td class="lines ">3</td><td class=""><pre><span class="normal">            {{new Integer(-30), new Integer(-20)},</span><span class="carr">&crarr;</span></pre></td><td class="separator"></td><td class="lines ">4</td><td class=""><pre><pre><span class="normal">            {{new Integer(-30), new Integer(-20)},</span><span class="carr">&crarr;</span></pre></pre></td></tr>
<tr class="coderow"><td class="lines ">4</td><td class=""><pre><span class="normal">             {new Integer(-10), new Integer(10)},</span><span class="carr">&crarr;</span></pre></td><td class="separator"></td><td class="lines ">5</td><td class=""><pre><pre><span class="normal">             {new Integer(-10), new Integer(10)},</span><span class="carr">&crarr;</span></pre></pre></td></tr>
<tr class="coderow"><td class="lines ">5</td><td class=""><pre><span class="normal">             {new Integer(20), new Integer(30)}};</span><span class="carr">&crarr;</span></pre></td><td class="separator"></td><td class="lines ">6</td><td class=""><pre><pre><span class="normal">             {new Integer(20), new Integer(30)}};</span><span class="carr">&crarr;</span></pre></pre></td></tr>
<tr class="coderow"><tr class="coderow"><td class="lines ">6</td><td class=""><pre><span class="normal">        CategoryDataset newData = DatasetUtilities.createCategoryDataset(</span><span class="carr">&crarr;</span></pre></td><td class="separator"></td><td class="lines changed">7</td><td class="changed"><pre><pre><span class="normal">        CategoryDataset newData = DatasetUtilities.createCategoryDataset(</span><span class="inserted">"S", </span><span class="carr">&crarr;</span></pre></pre></td></tr>
<tr class="coderow"><td class="lines changed">7</td><td class="changed"><pre><span class="normal">               </span><span class="deleted"> "S",</span><span class="normal"> "C", data);</span><span class="carr">&crarr;</span></pre></td><td class="separator"></td><td class="lines ">8</td><td class=""><pre><pre><span class="normal">               </span><span class="normal"> "C", data);</span><span class="carr">&crarr;</span></pre></pre></td></tr>
<tr class="coderow"><tr class="coderow"><td class="lines ">8</td><td class=""><pre><span class="normal">        LocalListener l = new LocalListener();</span><span class="carr">&crarr;</span></pre></td><td class="separator"></td><td class="lines ">9</td><td class=""><pre><pre><span class="normal">        LocalListener l = new LocalListener();</span><span class="carr">&crarr;</span></pre></pre></td></tr>
<tr class="coderow"><td class="lines ">9</td><td class=""><pre><span class="normal">        this.chart.addChangeListener(l);</span><span class="carr">&crarr;</span></pre></td><td class="separator"></td><td class="lines ">10</td><td class=""><pre><pre><span class="normal">        this.chart.addChangeListener(l);</span><span class="carr">&crarr;</span></pre></pre></td></tr>
<tr class="coderow"><td class="lines ">10</td><td class=""><pre><span class="normal">        CategoryPlot plot = (CategoryPlot) this.chart.getPlot();</span><span class="carr">&crarr;</span></pre></td><td class="separator"></td><td class="lines ">11</td><td class=""><pre><pre><span class="normal">        CategoryPlot plot = (CategoryPlot) this.chart.getPlot();</span><span class="carr">&crarr;</span></pre></pre></td></tr>
<tr class="coderow"><td class="lines ">11</td><td class=""><pre><span class="normal">        plot.setDataset(newData);</span><span class="carr">&crarr;</span></pre></td><td class="separator"></td><td class="lines ">12</td><td class=""><pre><pre><span class="normal">        plot.setDataset(newData);</span><span class="carr">&crarr;</span></pre></pre></td></tr>
<tr class="coderow"><td class="lines ">12</td><td class=""><pre><span class="normal">        assertEquals(true, l.flag);</span><span class="carr">&crarr;</span></pre></td><td class="separator"></td><td class="lines ">13</td><td class=""><pre><pre><span class="normal">        assertEquals(true, l.flag);</span><span class="carr">&crarr;</span></pre></pre></td></tr>
<tr class="coderow"><td class="lines ">13</td><td class=""><pre><span class="normal">        ValueAxis axis = plot.getRangeAxis();</span><span class="carr">&crarr;</span></pre></td><td class="separator"></td><td class="lines ">14</td><td class=""><pre><pre><span class="normal">        ValueAxis axis = plot.getRangeAxis();</span><span class="carr">&crarr;</span></pre></pre></td></tr>
<tr class="coderow"><td class="lines ">14</td><td class=""><pre><span class="normal">        Range range = axis.getRange();</span><span class="carr">&crarr;</span></pre></td><td class="separator"></td><td class="lines ">15</td><td class=""><pre><pre><span class="normal">        Range range = axis.getRange();</span><span class="carr">&crarr;</span></pre></pre></td></tr>
<tr class="coderow"><td class="lines ">15</td><td class=""><pre><span class="normal">        assertTrue("Expecting the lower bound of the range to be around -30: "</span><span class="carr">&crarr;</span></pre></td><td class="separator"></td><td class="lines ">16</td><td class=""><pre><pre><span class="normal">        assertTrue("Expecting the lower bound of the range to be around -30: "</span><span class="carr">&crarr;</span></pre></pre></td></tr>
<tr class="coderow"><td class="lines ">16</td><td class=""><pre><span class="normal">                   + range.getLowerBound(), range.getLowerBound() &lt;= -30);</span><span class="carr">&crarr;</span></pre></td><td class="separator"></td><td class="lines ">17</td><td class=""><pre><pre><span class="normal">                   + range.getLowerBound(), range.getLowerBound() &lt;= -30);</span><span class="carr">&crarr;</span></pre></pre></td></tr>
<tr class="coderow"><td class="lines ">17</td><td class=""><pre><span class="normal">        assertTrue("Expecting the upper bound of the range to be around 30: "</span><span class="carr">&crarr;</span></pre></td><td class="separator"></td><td class="lines ">18</td><td class=""><pre><pre><span class="normal">        assertTrue("Expecting the upper bound of the range to be around 30: "</span><span class="carr">&crarr;</span></pre></pre></td></tr>
<tr class="coderow"><td class="lines ">18</td><td class=""><pre><span class="normal">                   + range.getUpperBound(), range.getUpperBound() &gt;= 30);</span></pre></td><td class="separator"></td><td class="lines ">19</td><td class=""><pre><pre><span class="normal">                   + range.getUpperBound(), range.getUpperBound() &gt;= 30);</span></pre></pre></td></tr>

					</tbody>
					<tbody>
						<tr class="copylinks">
							<td colspan="2"><a id="firstCodeShow" class="codeShow" href="#">See real code fragment</a></td>
							<td></td>
							<td colspan="2"><a id="secondCodeShow" class="codeShow" href="#">See real code fragment</a></td>
						</tr>					
					</tbody>
				</table>
			</div>
			<div></div>
			<div id="summary">
				<table>
					<caption>Summary</caption>
					<tbody>

						<tr>
							<td>Number of common nesting structure subtrees</td><td class="right"><span class="bold">0</span></td>
						</tr>
						<tr>
							<td>Number of <a href="#refactorablelist">refactorable cases</a></td><td class="right"><span class="bold">0</span></td>
						</tr>
						<tr>
							<td>Number of <a href="#notrefactorablelist">non-refactorable cases</a></td><td class="right"><span class="bold">0</span></td>
						</tr>
						<tr>
							<td>Time elapsed for finding largest common nesting structure subtrees (ms)</td><td class="right"><span class="bold">0.0</span></td> 
						</tr>
						<tr>
							<td>Clones location</td><td class="right"><span class="bold"></span></td> 
						</tr>
						<tr>
							<td>Number of node comparisons</td><td class="right"><span class="bold">0</span></td> 
						</tr>
					</tbody>
				</table>	
			</div>
			<div></div>
			<ol id="refactorablelist">
			
			</ol>
			<ol id="notrefactorablelist">
			
			</ol>
			
		</div>
	</body>
</html>