<commit_before><?php
	namespace MinimalStats;

	require_once 'config/config.php';
		
	/**
	* MS
	* Parent class which provides standard functions
	*/
	
	class MS {
	
		protected $db = null;
		protected $config = array();
		
		private $outputPage;
		
		static function echoOrReturn($string, $echo = false) {
			if ($echo) {
				echo $string;
			} else {
				return $string;
			}
		}
		
		function __construct($installer = null, $outputPage = true) {
						
			$this->outputPage = $outputPage;
			
			ob_start();
			
			$this->config = parse_ini_file('config/config.ini');
			
			if (false === $this->config && true !== $installer) {
				$this->outputPage = false;
				die();
			}
			
			if (isset($this->config['DB_HOST']) && isset($this->config['DB_USER']) && isset($this->config['DB_PASSWORD']) &&  isset($this->config['DB_NAME'])) {
				$db = new DB;
				
				try {
					$db->connect($this->config['DB_HOST'], $this->config['DB_USER'], $this->config['DB_PASSWORD'], $this->config['DB_NAME']);
				}
				catch (Exception $e) {
					if (true !== $installer) {
						error_log('Connect Error: ' . $e->message."\n".$e->code);
						$this->outputPage = false;
						die();
					}
				}
			} else if (true !== $installer) {
				$this->outputPage = false;
				die();
			}
		}
		
		function __destruct() {
			
			if (null !== $this->db) {
				$this->db->close();
			}
			
			$output = ob_get_contents();
			ob_end_clean();
						
			if ($this->outputPage) {
				include 'templates/basicpage.php';
			} else {
				echo $output;
			}
		}
		
	}
<commit_msg>Changes default config var to false<commit_after><?php
	namespace MinimalStats;

	require_once 'config/config.php';
		
	/**
	* MS
	* Parent class which provides standard functions
	*/
	
	class MS {
	
		protected $db = null;
		protected $config = false;
		
		private $outputPage;
		
		static function echoOrReturn($string, $echo = false) {
			if ($echo) {
				echo $string;
			} else {
				return $string;
			}
		}
		
		function __construct($installer = null, $outputPage = true) {
						
			$this->outputPage = $outputPage;
			
			ob_start();
			
			$this->config = parse_ini_file('config/config.ini');
			
			if (false === $this->config && true !== $installer) {
				$this->outputPage = false;
				die();
			}
			
			if (isset($this->config['DB_HOST']) && isset($this->config['DB_USER']) && isset($this->config['DB_PASSWORD']) &&  isset($this->config['DB_NAME'])) {
				$db = new DB;
				
				try {
					$db->connect($this->config['DB_HOST'], $this->config['DB_USER'], $this->config['DB_PASSWORD'], $this->config['DB_NAME']);
				}
				catch (Exception $e) {
					if (true !== $installer) {
						error_log('Connect Error: ' . $e->message."\n".$e->code);
						$this->outputPage = false;
						die();
					}
				}
			} else if (true !== $installer) {
				$this->outputPage = false;
				die();
			}
		}
		
		function __destruct() {
			
			if (null !== $this->db) {
				$this->db->close();
			}
			
			$output = ob_get_contents();
			ob_end_clean();
						
			if ($this->outputPage) {
				include 'templates/basicpage.php';
			} else {
				echo $output;
			}
		}
		
	}

{'fraction_non_alphanumeric': 0.18613607188703465, 'fraction_numerical': 0.0, 'mean_word_length': 2.632867132867133, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 45, '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': '1599043', 'n_tokens_mistral': 1384, 'n_tokens_neox': 1051, 'n_words': 205}