Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
3 | 3 | 5 | 0.980 | statement_sequence[3] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 5 | 118 | administrator/components/com_search/helpers/search.php |
2 | 3 | 132 | libraries/joomla/filter/filteroutput.php |
3 | 3 | 135 | libraries/joomla/filter/filteroutput.php |
| ||||
// strips tags won't remove the actual jscript $text= preg_replace("'<script[^>]*>.*?</script>'si", "", $text); $text= preg_replace('/{.+?}/', '', $text); //$text = preg_replace('/<a\s+.*?href="([^"]+)"[^>]*>([^<]+)<\/a>/is','\2', $text); // replace line breaking tags with whitespace $text= preg_replace("'<(br[^/>]*?/|hr[^/>]*?/|/(div|h[1-6]|li|p|td))>'si", ' ', $text); |
| ||||
$text= preg_replace("'<script[^>]*>.*?</script>'si", '', $text); $text= preg_replace('/<a\\s+.*?href="([^"]+)"[^>]*>([^<]+)<\\/a>/is','\\2 (\\1)',$text); $text= preg_replace('/<!--.+?-->/', '', $text); |
| ||||
$text= preg_replace('/{.+?}/', '', $text); $text= preg_replace('/ /', ' ', $text); $text= preg_replace('/&/', ' ', $text); |
| |||
// strips tags won't remove the actual jscript $text=preg_replace( [[#variable22b88c80]],'',$text); $text=preg_replace( [[#variable22b88ba0]], [[#variable22b88b60]],$text); //$text = preg_replace('/<a\s+.*?href="([^"]+)"[^>]*>([^<]+)<\/a>/is','\2', $text); // replace line breaking tags with whitespace $text=preg_replace( [[#variable5244e9e0]], [[#variable22b889a0]],$text); |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#22b88c80]] | '/{.+?}/' |
1 | 2 | [[#22b88c80]] | "'<script[^>]*>.*?</script>'si" |
1 | 3 | [[#22b88c80]] | "'<script[^>]*>.*?</script>'si" |
2 | 1 | [[#22b88ba0]] | '/ /' |
2 | 2 | [[#22b88ba0]] | '/<a\\s+.*?href="([^"]+)"[^>]*>([^<]+)<\\/a>/is' |
2 | 3 | [[#22b88ba0]] | '/{.+?}/' |
3 | 1 | [[#22b88b60]] | ' ' |
3 | 2 | [[#22b88b60]] | '\\2 (\\1)' |
3 | 3 | [[#22b88b60]] | '' |
4 | 1 | [[#5244e9e0]] | '/&/' |
4 | 2 | [[#5244e9e0]] | '/<!--.+?-->/' |
4 | 3 | [[#5244e9e0]] | "'<(br[^/>]*?/|hr[^/>]*?/|/(div|h[1-6]|li|p|td))>'si" |
5 | 1 | [[#22b889a0]] | ' ' |
5 | 2 | [[#22b889a0]] | '' |
5 | 3 | [[#22b889a0]] | ' ' |