<commit_before><?php
namespace Minify;

class Core {
	protected $minify_javascript;
	protected $minify_css;
	protected $cache_bust;
	
	protected $javascript_files = array();
	protected $css_files = array();
	
	public function __construct(Array $config) {
		$this->minify_javascript = $config['javascript'];
		$this->minify_css = $config['css'];
		$this->cache_bust = $config['cache_bust'];
	}
	
	public function add_css($file_path) {
		$this->css_files[] = $file_path;
	}
	
	public function add_js($file_path) {
		$this->javascript_files[] = $file_path;
	}
	
	public function js_html() {
		$result = '';
		if($this->minify_javascript) {
			$query = '';	
			for($i = 0; $i < count($this->javascript_files); $i++) {
				$query .= 'f[]='.$this->javascript_files[$i].'&';
			}
			$result = '<script type="text/javascript" src="/min?'.$query.'"></script>'."\n";
		} else {
			for($i = 0; $i < count($this->javascript_files); $i++) {
				$result .= '<script type="text/javascript" src="'.$this->javascript_files[$i].($this->cache_bust?'?cb='.time():'').'"></script>'."\n";
			}
		}
		return $result;
	}
	
	public function css_html() {
		$result = '';
		for($i = 0; $i < count($this->css_files); $i++) {
			$result .= '<link type="text/css" href="'.$this->css_files[$i]($this->cache_bust?'?cb='.time():'').'" rel="stylesheet" />'."\n";
		}
		return $result;
	}
}<commit_msg>rm extensions<commit_after><?php
namespace Minify;

class Core {
	protected $minify_javascript;
	protected $minify_css;
	protected $cache_bust;
	
	protected $javascript_files = array();
	protected $css_files = array();
	
	public function __construct(Array $config) {
		$this->minify_javascript = $config['javascript'];
		$this->minify_css = $config['css'];
		$this->cache_bust = $config['cache_bust'];
	}
	
	public function add_css($file_path) {
		$this->css_files[] = $file_path;
	}
	
	public function add_js($file_path) {
		$this->javascript_files[] = $file_path;
	}
	
	public function js_html() {
		$result = '';
		if($this->minify_javascript) {
			$query = '';	
			for($i = 0; $i < count($this->javascript_files); $i++) {
				$query .= 'f[]='.$this->javascript_files[$i].'&';
			}
			$result = '<script type="text/javascript" src="/min?'.$query.'"></script>'."\n";
		} else {
			for($i = 0; $i < count($this->javascript_files); $i++) {
				$result .= '<script type="text/javascript" src="'.$this->javascript_files[$i].($this->cache_bust?'?cb='.time():'').'"></script>'."\n";
			}
		}
		return $result;
	}
	
	public function css_html() {
		$result = '';
		for($i = 0; $i < count($this->css_files); $i++) {
			$result .= '<link type="text/css" href="'.$this->css_files[$i].($this->cache_bust?'?cb='.time():'').'" rel="stylesheet" />'."\n";
		}
		return $result;
	}
}
{'fraction_non_alphanumeric': 0.23510054844606948, 'fraction_numerical': 0.0021937842778793418, 'mean_word_length': 4.354207436399217, 'pattern_counts': {'":': 0, '<': 21, '<?xml version=': 0, '>': 41, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2599132', 'n_tokens_mistral': 1086, 'n_tokens_neox': 990, 'n_words': 167}