<commit_before><?php
class Vps_Setup
{
    public static function createConfig()
    {
        if (preg_match('#/www/usr/([0-9a-z]+)/#', $_SERVER['SCRIPT_FILENAME'], $m)) {
            $user = $m[1];
        } else if (substr(__FILE__, 0, strlen('/www/public/')) == '/www/public/') {
            $user = 'vivid';
        } else {
            $user = 'production';
        }
        $webConfig = new Zend_Config_Ini('application/config.ini', $user);

        $vpsConfig = new Zend_Config_Ini(VPS_PATH.'/config.ini', $user,
                        array('allowModifications'=>true));
        $vpsConfig->merge($webConfig);

        return $vpsConfig;
    }

}<commit_msg>dev subdomain berücksichtigen (todo: passwortschutz)<commit_after><?php
class Vps_Setup
{
    public static function createConfig()
    {
        if (preg_match('#/www/usr/([0-9a-z]+)/#', $_SERVER['SCRIPT_FILENAME'], $m)) {
            $section = $m[1];
        } else if (substr(__FILE__, 0, strlen('/www/public/')) == '/www/public/') {
            $section = 'vivid';
        } else if (isset($_SERVER['HTTP_HOST']) && substr($_SERVER['HTTP_HOST'], 0, 4)=='dev.') {
            $section = 'dev';
        } else {
            $section = 'production';
        }
        $webConfig = new Zend_Config_Ini('application/config.ini', $section);

        $vpsConfig = new Zend_Config_Ini(VPS_PATH.'/config.ini', $section,
                        array('allowModifications'=>true));
        $vpsConfig->merge($webConfig);

        return $vpsConfig;
    }

}
{'fraction_non_alphanumeric': 0.17960526315789474, 'fraction_numerical': 0.006578947368421052, 'mean_word_length': 2.350220264317181, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 6, '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': '6221019', 'n_tokens_mistral': 506, 'n_tokens_neox': 487, 'n_words': 84}