<commit_before><?php

namespace Mist\Helpers;

/*
 * Configurations - application environment configurations
 *
 * @author <NAME> - <EMAIL>
 * @version 1.0.0
 * @date June 15th, 2015
 */

class Configurations {

    /**
     * conf
     * 
     * @access private
     * @static
     * @var mixed  
     */
    private static $conf;

    /**
     * constructor
     */
    private function __construct() {
        
    }

    /**
     * 
     */
    private function __clone() {
        
    }

    /**
     * init
     * 
     * initialize the configuration from config file
     * 
     * @param string $conf file path for configuration file
     * @return void
     */
    public static function init($conf) {
        if (is_readable($conf)) {
            include_once $conf;
        } else {
            die('config.php not found in config/config.php at ' . $conf);
        }

        //change the php error reporting according to coding environment
        if (isset($config['app']['env'])) {
            switch ($config['app']['env']) {
                case 'dev':
                    error_reporting(E_ALL);
                    break;
                case 'prod':<commit_msg>added documentation<commit_after><?php

namespace Mist\Helpers;

/*
 * Configurations - application environment configurations
 *
 * @author <NAME> - <EMAIL>
 * @version 1.0.0
 * @date June 15th, 2015
 */

class Configurations {

    /**
     * conf
     * 
     * @access private
     * @static
     * @var mixed  
     */
    private static $conf;

    /**
     * constructor
     */
    private function __construct() {
        
    }

    /**
     * clone
     */
    private function __clone() {
        
    }

    /**
     * init
     * 
     * initialize the configuration from config file
     * 
     * @param string $conf file path for configuration file
     * @return void
     */
    public static function init($conf) {
        if (is_readable($conf)) {
            include_once $conf;
        } else {
            die('config.php not found in config/config.php at ' . $conf);
        }

        //change the php error reporting according to coding environment
        if (isset($config['app']['env'])) {
            switch ($config['app']['env']) {
                case 'dev':
                    error_reporting(E_ALL);
                    break;
                case 'prod':
{'fraction_non_alphanumeric': 0.11883691529709228, 'fraction_numerical': 0.007585335018963337, 'mean_word_length': 1.5692640692640694, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 7, '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': '2214453', 'n_tokens_mistral': 676, 'n_tokens_neox': 634, 'n_words': 173}