<commit_before><?php
namespace Grav\Common;

trait GravTrait
{
    /**
     * @var Grav
     */
    protected static $grav;

    /**
     * @return Grav
     */
    public function getGrav()
    {
        if (!self::$grav) {
            self::$grav = Grav::instance();
        }
        return self::$grav;
    }

    /**
     * @param Grav $grav
     */
    public static function setGrav(Grav $grav)
    {
        self::$grav = $grav;
    }<commit_msg>changed getGrav() to static<commit_after><?php
namespace Grav\Common;

trait GravTrait
{
    /**
     * @var Grav
     */
    protected static $grav;

    /**
     * @return Grav
     */
    public static function getGrav()
    {
        if (!self::$grav) {
            self::$grav = Grav::instance();
        }
        return self::$grav;
    }

    /**
     * @param Grav $grav
     */
    public static function setGrav(Grav $grav)
    {
        self::$grav = $grav;
    }
{'fraction_non_alphanumeric': 0.14854682454251883, 'fraction_numerical': 0.0, 'mean_word_length': 1.664756446991404, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, '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': '7470214', 'n_tokens_mistral': 304, 'n_tokens_neox': 291, 'n_words': 66}