<commit_before><?php

class OC_Search_Provider_File extends OC_Search_Provider{
	function search($query){
		$files=OC_Filesystem::search($query);
		$results=array();
		foreach($files as $file){
			if(OC_Filesystem::is_dir($file)){
				$results[]=new OC_Search_Result(basename($file),$file,OC_Helper::linkTo( 'files', 'index.php?dir='.$file ),'Files');
			}else{
				$results[]=new OC_Search_Result(basename($file),$file,OC_Helper::linkTo( 'files', 'download.php?file='.$file ),'Files');
			}
		}
		return $results;
	}
}<commit_msg>dont show the full path for the files in search results<commit_after><?php

class OC_Search_Provider_File extends OC_Search_Provider{
	function search($query){
		$files=OC_Filesystem::search($query);
		$results=array();
		foreach($files as $file){
			if(OC_Filesystem::is_dir($file)){
				$results[]=new OC_Search_Result(basename($file),'',OC_Helper::linkTo( 'files', 'index.php?dir='.$file ),'Files');
			}else{
				$results[]=new OC_Search_Result(basename($file),'',OC_Helper::linkTo( 'files', 'download.php?file='.$file ),'Files');
			}
		}
		return $results;
	}
}
{'fraction_non_alphanumeric': 0.1912568306010929, 'fraction_numerical': 0.0, 'mean_word_length': 7.021897810218978, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7292549', 'n_tokens_mistral': 428, 'n_tokens_neox': 384, 'n_words': 62}