<commit_before><?php defined('DIRECT') OR exit('No direct script access allowed');
/**
 * Asset Plugin
 * 
 * <NAME> - <<EMAIL>>
 */

class Asset
{
	// Asset Selector
	public $asset = [];

	/**
	 * Set CSS files.
	 * @param 	$css_file 	string	(file path or url)
	 * @param 	$source 	string	(local|remote)
	 * @return 	void
	 */
	public function set_css($css_file, $source = 'local')
	{
		if($source == 'remote') {
			$url = $css_file;
			$this->asset['header']['css'][]	= '<link rel="stylesheet" type="text/css" href="' . $url . '">';
		} else {
			$url = 'public/css/' . $css_file;

			// Check is file exists
			if(!file_exists(ROOT_DIR . $url)) {
				$code	= 1005;
				$text	= "CSS Style dosyası bulunamadı: {$url}";
				require_once 'app/views/errors/error_system.php';
				die();
			}

			$this->asset['header']['css'][]	= '<link rel="stylesheet" type="text/css" href="' . base_url($url) . '">';
		}		
	}<commit_msg>updated set_css() method in Asset plugin<commit_after><?php defined('DIRECT') OR exit('No direct script access allowed');
/**
 * Asset Plugin
 * 
 * <NAME> - <<EMAIL>>
 */

class Asset
{
	// Asset Selector
	public $asset = [];

	/**
	 * Set CSS files.
	 * @param 	$css_file 	string	(file path or url)
	 * @param 	$source 	string	(local|remote)
	 * @return 	void
	 */
	public function set_css($css_file, $source = 'local')
	{
		if($source == 'remote') {
			$url = $css_file;
			$this->asset['header']['css'][]	= '<link rel="stylesheet" type="text/css" href="' . $url . '">';
		} else {
			$part 	= explode('.css', $css_file);
			$url 	= 'public/css/' . $part[0] . '.css' . $part[1];

			// Check is file exists
			if(!file_exists(ROOT_DIR . 'public/css/' . $part[0] . '.css')) {
				$code	= 1005;
				$text	= "CSS Style dosyası bulunamadı: {$url}";
				require_once 'app/views/errors/error_system.php';
				die();
			}

			$this->asset['header']['css'][]	= '<link rel="stylesheet" type="text/css" href="' . base_url($url) . '">';
		}		
	}
{'fraction_non_alphanumeric': 0.21501532175689478, 'fraction_numerical': 0.0056179775280898875, 'mean_word_length': 3.203862660944206, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 17, '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': '5076528', 'n_tokens_mistral': 826, 'n_tokens_neox': 727, 'n_words': 164}