<commit_before><?php

namespace UncleCheese\Green;

use \Object;
use \Injector;
use \Config;

/**
 * Class Green
 * A utility class for dealing with global concerns of the Green module
 *
 * @package UncleCheese\Green
 * @author UncleCheese <<EMAIL>>
 */
class Green extends Object
{


    /**
     * Gets the default data type, e.g. "json"
     * @return string
     */
    public static function default_data_type()
    {
        return self::config()->default_data_type;
    }


    /**
     * @return Green
     */
    public static function inst()
    {
        return Injector::inst()->get(__CLASS__);
    }


    public static function install()
    {
		if(!self::config()->public_access) return;

		$routes = Config::inst()->get('Director','routes');
		foreach(self::inst()->getDesignModules() as $module) {<commit_msg>BUGFIX: Director rules, not routes.<commit_after><?php

namespace UncleCheese\Green;

use \Object;
use \Injector;
use \Config;

/**
 * Class Green
 * A utility class for dealing with global concerns of the Green module
 *
 * @package UncleCheese\Green
 * @author UncleCheese <<EMAIL>>
 */
class Green extends Object
{


    /**
     * Gets the default data type, e.g. "json"
     * @return string
     */
    public static function default_data_type()
    {
        return self::config()->default_data_type;
    }


    /**
     * @return Green
     */
    public static function inst()
    {
        return Injector::inst()->get(__CLASS__);
    }


    public static function install()
    {
		if(!self::config()->public_access) return;

		$routes = Config::inst()->get('Director','rules');
		foreach(self::inst()->getDesignModules() as $module) {
{'fraction_non_alphanumeric': 0.14029850746268657, 'fraction_numerical': 0.0, 'mean_word_length': 2.971563981042654, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 17, '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': '1918000', 'n_tokens_mistral': 508, 'n_tokens_neox': 497, 'n_words': 136}