<commit_before><?php
declare(strict_types=1);

namespace WyriHaximus\Travis\Resource\Async;

use React\Promise\PromiseInterface;
use function React\Promise\reject;
use function React\Promise\resolve;
use WyriHaximus\Travis\Resource\EnvironmentVariable as BaseEnvironmentVariable;

class EnvironmentVariable extends BaseEnvironmentVariable
{
    public function refresh() : PromiseInterface
    {
        return $this->getTransport()->request('settings/env_vars?repository_id=' . $this->repositoryId())->then(function ($json) {
            foreach ($json['env_vars'] as $envVar) {
                if ($envVar['id'] != $this->id()) {
                    continue;
                }

                return resolve($this->getTransport()->getHydrator()->hydrate('EnvironmentVariable', $envVar));
            }

            return reject();
        });
    }
}
<commit_msg>Fixed line length<commit_after><?php
declare(strict_types=1);

namespace WyriHaximus\Travis\Resource\Async;

use React\Promise\PromiseInterface;
use function React\Promise\reject;
use function React\Promise\resolve;
use WyriHaximus\Travis\Resource\EnvironmentVariable as BaseEnvironmentVariable;

class EnvironmentVariable extends BaseEnvironmentVariable
{
    public function refresh() : PromiseInterface
    {
        return $this->getTransport()->request(
            'settings/env_vars?repository_id=' . $this->repositoryId()
        )->then(function ($json) {
            foreach ($json['env_vars'] as $envVar) {
                if ($envVar['id'] != $this->id()) {
                    continue;
                }

                return resolve($this->getTransport()->getHydrator()->hydrate(
                    'EnvironmentVariable',
                    $envVar
                ));
            }

            return reject();
        });
    }
}

{'fraction_non_alphanumeric': 0.12417582417582418, 'fraction_numerical': 0.001098901098901099, 'mean_word_length': 2.5776031434184676, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 19, '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': '5820049', 'n_tokens_mistral': 482, 'n_tokens_neox': 464, 'n_words': 87}