<commit_before><?php
/*
* @name l18n
* @description A small l18n class for easy localization.
* @author Kevin (http://www.xn--fundstcke-im-netz-72b.de/)
* @version 1.0
* @source https://github.com/Reflic/l18n
*/

class l18n {

	private static $language = 'en';
	private static $country = 'GB';
	private static $langcode = 'en_GB';
	private static $path = 'template/lang/';
	public static $lines = array();

	private static $log = true;  
	private static $debug = false;


	public static function set_lang($langcode){
		$part = explode('_', $langcode);
		self::$language = $part[0];
		self::$country = $part[1];
		self::$langcode = $langcode;
	}

	public static function get_country(){
		return self::$country;
	}

	public static function get_language(){
		return self::$language;
	}

	public static function get_langcode(){
		return self::$langcode;
	}
<commit_msg>Added function for setting the path.<commit_after><?php
/*
* @name l18n
* @description A small l18n class for easy localization.
* @author Kevin (http://www.xn--fundstcke-im-netz-72b.de/)
* @version 1.1
* @source https://github.com/Reflic/l18n
*/

class l18n {

	private static $language = 'en';
	private static $country = 'GB';
	private static $langcode = 'en_GB';
	private static $path = 'lang/';
	public static $lines = array();

	private static $log = true;  
	private static $debug = false;

	public static function set_path($path){
		$this->path = $path;
	}

	
	public static function set_lang($langcode){
		$part = explode('_', $langcode);
		self::$language = $part[0];
		self::$country = $part[1];
		self::$langcode = $langcode;
	}

	public static function get_country(){
		return self::$country;
	}

	public static function get_language(){
		return self::$language;
	}

	public static function get_langcode(){
		return self::$langcode;
	}

{'fraction_non_alphanumeric': 0.15388858246001103, 'fraction_numerical': 0.015444015444015444, 'mean_word_length': 4.257971014492754, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 4, 'https://': 2, 'lorem ipsum': 0, 'www.': 2, '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': '6128140', 'n_tokens_mistral': 645, 'n_tokens_neox': 614, 'n_words': 169}