<commit_before><?php

namespace Intervention\Zodiac\Laravel;

use Illuminate\Foundation\Application;
use Intervention\Zodiac\AbstractZodiac;
use Intervention\Zodiac\Calculator;

class Resolver
{
    protected $app;

    public function __construct(Application $app)
    {
        $this->app = $app;
    }

    public function make($date): AbstractZodiac
    {
        return $this->getTranslatableCalculator($app)->getZodiac($date);
    }

    private function getTranslatableCalculator($app): Calculator
    {
        return (new Calculator())->setTranslator($this->app['translator']);
    }
}<commit_msg>Bugfix<commit_after><?php

namespace Intervention\Zodiac\Laravel;

use Illuminate\Foundation\Application;
use Intervention\Zodiac\AbstractZodiac;
use Intervention\Zodiac\Calculator;

class Resolver
{
    protected $app;

    public function __construct(Application $app)
    {
        $this->app = $app;
    }

    public function make($date): AbstractZodiac
    {
        return $this->getTranslatableCalculator()->getZodiac($date);
    }

    private function getTranslatableCalculator(): Calculator
    {
        return (new Calculator())->setTranslator($this->app['translator']);
    }
}
{'fraction_non_alphanumeric': 0.11862990810359231, 'fraction_numerical': 0.0, 'mean_word_length': 3.8502024291497974, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 13, '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': '5596852', 'n_tokens_mistral': 379, 'n_tokens_neox': 364, 'n_words': 64}