Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
14 | 2 | 3 | 0.954 | method_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 14 | 1164 | E:/TSE/Projects-CloneDR/apache-ant-1.7.0/src/org/apache/tools/ant/DirectoryScanner.java |
2 | 14 | 1264 | E:/TSE/Projects-CloneDR/apache-ant-1.7.0/src/org/apache/tools/ant/DirectoryScanner.java |
| |||||
/** * Test whether or not a name matches against at least one include * pattern. * * @param name The name to match. Must not be <code>null</code>. * @return <code>true</code> when the name matches against at least one * include pattern, or <code>false</code> otherwise. */ protected boolean isIncluded(String name) { ensureNonPatternSetsReady(); if (isCaseSensitive() ? includeNonPatterns.contains(name): includeNonPatterns.contains(name.toUpperCase())) { return true; } for (int i = 0; i < includePatterns.length; i++) { if (matchPath(includePatterns[i], name, isCaseSensitive())) { return true; } } return false; } |
| |||||
/** * Test whether or not a name matches against at least one exclude * pattern. * * @param name The name to match. Must not be <code>null</code>. * @return <code>true</code> when the name matches against at least one * exclude pattern, or <code>false</code> otherwise. */ protected boolean isExcluded(String name) { ensureNonPatternSetsReady(); if (isCaseSensitive() ? excludeNonPatterns.contains(name): excludeNonPatterns.contains(name.toUpperCase())) { return true; } for (int i = 0; i < excludePatterns.length; i++) { if (matchPath(excludePatterns[i], name, isCaseSensitive())) { return true; } } return false; } |
| |||
/** * Test whether or not a name matches against at least one exclude * pattern. * * @param name The name to match. Must not be <code>null</code>. * @return <code>true</code> when the name matches against at least one * exclude pattern, or <code>false</code> otherwise. */ /** * Test whether or not a name matches against at least one include * pattern. * * @param name The name to match. Must not be <code>null</code>. * @return <code>true</code> when the name matches against at least one * include pattern, or <code>false</code> otherwise. */ protected boolean [[#variable131a07e0]](String name) { ensureNonPatternSetsReady(); if (isCaseSensitive() ? [[#variable131a0780]].contains(name): [[#variable131a0780]].contains(name.toUpperCase())) { return true; } for (int i = 0; i < [[#variable131a0700]].length; i++) { if (matchPath( [[#variable131a0700]][i], name, isCaseSensitive())) { return true; } } return false; } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#131a07e0]] | isIncluded |
1 | 2 | [[#131a07e0]] | isExcluded |
2 | 1 | [[#131a0780]] | includeNonPatterns |
2 | 2 | [[#131a0780]] | excludeNonPatterns |
3 | 1 | [[#131a0700]] | includePatterns |
3 | 2 | [[#131a0700]] | excludePatterns |