<commit_before><?php
class DB{
     private static $_instance = null;
	 static $_pdo,
	        $_error = false,
			$_results,
			$_count = 0;
}//class DB<commit_msg>DB.php updated<commit_after><?php
class DB{
     private static $_instance = null;
	 static $_pdo,
	        $_error = false,
			$_results,
			$_count = 0;
	 
	 
	 //uses singleton pattern to instantiate DB objects
	 private function __construct(){
	     try{
		     $this->_pdo = new PDO('mysql:host='.Config::get('mysql/host').';dbname='.Config::get('mysql/db'), Config::get('mysql/username'), Config::get('mysql/password'));
		 }//try
		 catch(PDOException $e){
		     exit($e->getMessage());
		 }//catch
	 }//__construct()
	 
	 
	 public static function getInstance(){
	     if(!isset(selft::$_instance)){
		     self::$_instance = new DB();
		 }//if
		 return self::$_instance;
	 }//getInstance()
}//class DB
{'fraction_non_alphanumeric': 0.17445838084378562, 'fraction_numerical': 0.002280501710376283, 'mean_word_length': 3.102803738317757, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '3895649', 'n_tokens_mistral': 309, 'n_tokens_neox': 264, 'n_words': 66}