<commit_before><?php

class ConfigSingleton
{
      protected function __construct()
      {
        require_once(__DIR__."/config.php");
        $this->config = $config;
      }

      private function __close()
      {

      }
      private function __wakeup()
      {

      }

      public function __get($name)
      {
        if(array_key_exists($name,$this->config))
        {
          return $this->config[$name];
        }
        else
        {
          return null;
        }
      }

      public static function Instance()
      {
        static $instance = null;
        if($instance === null)
        {
          $instance = new ConfigSingleton();
        }
        return $instance;
      }
}
<commit_msg>Adding array to config singleton setup<commit_after><?php

class ConfigSingleton
{
      protected function __construct()
      {
        $config[] = array();
        require_once(__DIR__."/config.php");
        $this->config = $config;
      }

      private function __close()
      {

      }
      private function __wakeup()
      {

      }

      public function __get($name)
      {
        if(array_key_exists($name,$this->config))
        {
          return $this->config[$name];
        }
        else
        {
          return null;
        }
      }

      public static function Instance()
      {
        static $instance = null;
        if($instance === null)
        {
          $instance = new ConfigSingleton();
        }
        return $instance;
      }
}

{'fraction_non_alphanumeric': 0.11251664447403462, 'fraction_numerical': 0.0, 'mean_word_length': 1.4679802955665024, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 9, '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': '7624409', 'n_tokens_mistral': 418, 'n_tokens_neox': 411, 'n_words': 83}