<commit_before><?php


/**
 * Aitsu Config Ini
 *
 * @author <NAME>, webtischlerei.de
 * @author <NAME>, w3concepts AG
 * @copyright Copyright &copy; 2010, webtischlerei.de
 *
 * {@id $Id: Ini.php 17778 2010-07-27 17:44:55Z akm $}
 */

class Aitsu_Config_Ini {

	protected function __construct() {
	}

	public static function getInstance($ini) {

		$env = (getenv("AITSU_ENV") == '' ? 'live' : getenv("AITSU_ENV"));

		$config = new Zend_Config_Ini('application/configs/config.ini', $env, array (
			'allowModifications' => true
		));

		if ($ini != 'backend') {
			$client_config = new Zend_Config_Ini('application/configs/' . $ini . '.ini', $env, array (
				'allowModifications' => true
			));

			$config->merge($client_config);
		}
		
		if (substr_count ($_SERVER['HTTP_ACCEPT_ENCODING'], 'gzip') == 0) {
			Aitsu_Registry :: get()->config->output->gzhandler = false;
		}

		return $config;
	}
}<commit_msg>Added isset check to suppress notice.<commit_after><?php


/**
 * @author <NAME>, webtischlerei.de
 * @author <NAME>, w3concepts AG
 * @copyright Copyright &copy; 2010, webtischlerei.de
 */

class Aitsu_Config_Ini {

	protected function __construct() {
	}

	public static function getInstance($ini) {

		$env = (getenv("AITSU_ENV") == '' ? 'live' : getenv("AITSU_ENV"));

		$config = new Zend_Config_Ini('application/configs/config.ini', $env, array (
			'allowModifications' => true
		));

		if ($ini != 'backend') {
			$client_config = new Zend_Config_Ini('application/configs/' . $ini . '.ini', $env, array (
				'allowModifications' => true
			));

			$config->merge($client_config);
		}
		
		if (!isset($_SERVER['HTTP_ACCEPT_ENCODING']) || substr_count ($_SERVER['HTTP_ACCEPT_ENCODING'], 'gzip') == 0) {
			Aitsu_Registry :: get()->config->output->gzhandler = false;
		}

		return $config;
	}
}
{'fraction_non_alphanumeric': 0.1778023191606847, 'fraction_numerical': 0.017117614577581448, 'mean_word_length': 4.1331444759206795, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 19, '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': '3281701', 'n_tokens_mistral': 737, 'n_tokens_neox': 633, 'n_words': 128}