<commit_before><?php

/**
 * @copyright 2017 <NAME>
 * @license   https://github.com/allejo/stakx/blob/master/LICENSE.md MIT
 */

namespace allejo\stakx;

abstract class Service
{
    protected static $workingDirectory;
    protected static $parameters;

    public static function getParameter($key)
    {
        return self::$parameters[$key];
    }

    public static function setParameter($key, $value)
    {
        return (self::$parameters[$key] = $value);
    }

    public static function getWorkingDirectory()
    {
        return self::$workingDirectory;
    }

    public static function setWorkingDirectory($directory)
    {
        self::$workingDirectory = $directory;
    }
}
<commit_msg>Default to getcwd() when working dir not set<commit_after><?php

/**
 * @copyright 2017 <NAME>
 * @license   https://github.com/allejo/stakx/blob/master/LICENSE.md MIT
 */

namespace allejo\stakx;

abstract class Service
{
    protected static $workingDirectory;
    protected static $parameters;

    public static function getParameter($key)
    {
        return self::$parameters[$key];
    }

    public static function setParameter($key, $value)
    {
        return (self::$parameters[$key] = $value);
    }

    public static function getWorkingDirectory()
    {
        if (!self::$workingDirectory)
            return getcwd();

        return self::$workingDirectory;
    }

    public static function setWorkingDirectory($directory)
    {
        self::$workingDirectory = $directory;
    }
}

{'fraction_non_alphanumeric': 0.1172962226640159, 'fraction_numerical': 0.005301524188204109, 'mean_word_length': 3.0053050397877983, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 5, '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': '2107354', 'n_tokens_mistral': 430, 'n_tokens_neox': 419, 'n_words': 99}