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

namespace WyriHaximus\Travis\Resource\Sync;

use WyriHaximus\ApiClient\Resource\CallAsyncTrait;
use WyriHaximus\Travis\Resource\Job as BaseJob;

class Job extends BaseJob
{
    /**
     * @return array
     */
    public function annotations(): array
    {
        return $this->wait($this->observableToPromise($this->callAsync('annotations')->toArray()));
    }
    use CallAsyncTrait;

    public function refresh(): Job
    {
        return $this->wait($this->callAsync('refresh'));
    }
}<commit_msg>Use trait at the top of a class<commit_after><?php
declare(strict_types=1);

namespace WyriHaximus\Travis\Resource\Sync;

use WyriHaximus\ApiClient\Resource\CallAsyncTrait;
use WyriHaximus\Travis\Resource\Job as BaseJob;

class Job extends BaseJob
{
    use CallAsyncTrait;

    /**
     * @return array
     */
    public function annotations(): array
    {
        return $this->wait($this->observableToPromise($this->callAsync('annotations')->toArray()));
    }

    public function refresh(): Job
    {
        return $this->wait($this->callAsync('refresh'));
    }
}
{'fraction_non_alphanumeric': 0.13535173642030277, 'fraction_numerical': 0.0017809439002671415, 'mean_word_length': 3.625514403292181, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 15, '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': '88225', 'n_tokens_mistral': 357, 'n_tokens_neox': 348, 'n_words': 67}