<commit_before><?php

namespace Frontman;

/**
 * Frontman proxy class
 *
 * @package    Frontman
 * @author     <NAME> <<EMAIL>>
 * @link       https://github.com/hassankhan/frontman/
 * @license    MIT
 * @since      0.1
 */
class Proxy
{

    /**
     * @var array
     */
    protected static $rootClasses = array();

    /**
     * Since we don't need a constructor for the proxy class, we just set its
     * visibility to private
     */
    private function __construct() {}

    /**
     * This method calls the root class with `$arguments` as parameters and
     * returns its' result
     *
     * @param  string $method
     * @param  mixed  $arguments
     *
     * @return mixed
     *
     * @throws BadMethodCallException If an undefined method is called
     */
    public static function __callStatic($method, $arguments)
    {
        $realClass = static::getRealClass();
        if (!isset(self::$rootClasses[$realClass])) {
            self::$rootClasses[$realClass] = new $realClass;
        }


        $objectMethod = array(self::$rootClasses[$realClass], $method);
        if (is_callable($objectMethod)) {
            return call_user_func_array($objectMethod, $arguments);
        }

        throw new \BadMethodCallException("Method $method does not exist");
    }

}
<commit_msg>Fixed variable name for consistency<commit_after><?php

namespace Frontman;

/**
 * Frontman proxy class
 *
 * @package    Frontman
 * @author     <NAME> <<EMAIL>>
 * @link       https://github.com/hassankhan/frontman/
 * @license    MIT
 * @since      0.1
 */
class Proxy
{

    /**
     * @var array
     */
    protected static $realClasses = array();

    /**
     * Since we don't need a constructor for the proxy class, we just set its
     * visibility to private
     */
    private function __construct() {}

    /**
     * This method calls the root class with `$arguments` as parameters and
     * returns its' result
     *
     * @param  string $method
     * @param  mixed  $arguments
     *
     * @return mixed
     *
     * @throws BadMethodCallException If an undefined method is called
     */
    public static function __callStatic($method, $arguments)
    {
        $realClass = static::getRealClass();
        if (!isset(self::$realClasses[$realClass])) {
            self::$realClasses[$realClass] = new $realClass;
        }


        $objectMethod = array(self::$realClasses[$realClass], $method);
        if (is_callable($objectMethod)) {
            return call_user_func_array($objectMethod, $arguments);
        }

        throw new \BadMethodCallException("Method $method does not exist");
    }

}

{'fraction_non_alphanumeric': 0.11902956785443518, 'fraction_numerical': 0.001516300227445034, 'mean_word_length': 2.3963963963963963, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 9, 'https://': 2, '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': '3773108', 'n_tokens_mistral': 749, 'n_tokens_neox': 742, 'n_words': 208}