<commit_before><?php

class WorkbenchConfig {

    const INSTANCE = "WORKBENCH_CONFIG";

    private $config;

    /**
     * @static
     * @return WorkbenchConfig
     */
    static function get() {
        if (!isset($GLOBALS[self::INSTANCE])) {
            $GLOBALS[self::INSTANCE] = new WorkbenchConfig();
        }

        return $GLOBALS[self::INSTANCE];
    }

    function __construct() {
        // initialize in case load issues
        $config = array();

        //load default config values
        require 'defaults.php';

        // load file-based config overrides
        if (is_file('overrides.php')) {
            require 'overrides.php';
        }

        // load legecy file-based config-overrides
        if (is_file('../configOverrides.php')) {
            /** @noinspection PhpIncludeInspection */
            require '../configOverrides.php';
        }

        // unset from global namespace
        $this->config = $config;
        unset($config);

        // load environment variable based overrides
        $configNamespace = "forceworkbench";
        $configDelim = "__";
        foreach ($_ENV as $envKey => $envValue) {
            if (strpos($envKey, $configNamespace) !== 0) {
                continue;
            }
        
            $envKey = str_replace("___DOT___", ".", $envKey);
        
            $envKeyParts = explode($configDelim, $envKey);
        <commit_msg>fix file path to config/overrides.php<commit_after><?php

class WorkbenchConfig {

    const INSTANCE = "WORKBENCH_CONFIG";

    private $config;

    /**
     * @static
     * @return WorkbenchConfig
     */
    static function get() {
        if (!isset($GLOBALS[self::INSTANCE])) {
            $GLOBALS[self::INSTANCE] = new WorkbenchConfig();
        }

        return $GLOBALS[self::INSTANCE];
    }

    function __construct() {
        // initialize in case load issues
        $config = array();

        //load default config values
        require 'defaults.php';

        // load file-based config overrides
        if (is_file('config/overrides.php')) {
            /** @noinspection PhpIncludeInspection */
            require 'config/overrides.php';
        }

        // load legecy file-based config-overrides
        if (is_file('configOverrides.php')) {
            /** @noinspection PhpIncludeInspection */
            require 'configOverrides.php';
        }

        // unset from global namespace
        $this->config = $config;
        unset($config);

        // load environment variable based overrides
        $configNamespace = "forceworkbench";
        $configDelim = "__";
        foreach ($_ENV as $envKey => $envValue) {
            if (strpos($envKey, $configNamespace) !== 0) {
                continue;
            }
        
            $envKey = str_replace("___DOT___", ".", $envKey);
        
            $envKeyParts = explode($configDelim, $envKey);
        
{'fraction_non_alphanumeric': 0.12422786547700755, 'fraction_numerical': 0.0006863417982155113, 'mean_word_length': 1.8494623655913978, 'pattern_counts': {'":': 0, '<': 5, '<?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': '1350078', 'n_tokens_mistral': 803, 'n_tokens_neox': 805, 'n_words': 176}