<commit_before><?php

namespace Alfredoem\Ragnarok\Environment;

use Illuminate\Support\Facades\Session;

trait EnvironmentTrait
{

    public function getName()
    {
        return self::ENVIRONMENT_NAME;
    }

    /**
     * Retrieve session object
     * @return string|null
     */
    public static function retrieveAll()
    {
        if (self::check()) {
            return Session::get(self::ENVIRONMENT_NAME);
        }

        return null;
    }

    /**
     * Check if the session exists
     * @return bool
     */
    public static function check()
    {
        if (Session::has(self::ENVIRONMENT_NAME)) {
            return true;
        }

        Session::forget(self::ENVIRONMENT_NAME);
        return false;
    }<commit_msg>- Comment environment trait<commit_after><?php

namespace Alfredoem\Ragnarok\Environment;

use Illuminate\Support\Facades\Session;

trait EnvironmentTrait
{
    /**
     * Get the name for the session
     * @return string
     */
    public function getName()
    {
        return self::ENVIRONMENT_NAME;
    }

    /**
     * Retrieve session object
     * @return string|null
     */
    public static function retrieveAll()
    {
        if (self::check()) {
            return Session::get(self::ENVIRONMENT_NAME);
        }

        return null;
    }

    /**
     * Check if the session exists
     * @return bool
     */
    public static function check()
    {
        if (Session::has(self::ENVIRONMENT_NAME)) {
            return true;
        }

        Session::forget(self::ENVIRONMENT_NAME);
        return false;
    }
{'fraction_non_alphanumeric': 0.10675931775110549, 'fraction_numerical': 0.0, 'mean_word_length': 2.0403071017274472, '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': '4220205', 'n_tokens_mistral': 466, 'n_tokens_neox': 462, 'n_words': 101}