<commit_before><?php
namespace Ackintosh\Snidel\Task;

use Ackintosh\Snidel\Result\Result;
use Bernard\Message\AbstractMessage;

class Task extends AbstractMessage implements TaskInterface
{
    /** @var callable */
    private $callable;

    /** @var array */
    private $args;

    /** @var string */
    private $tag;

    /**
     * @param   callable    $callable
     * @param   array       $args
     * @param   string      $tag
     */
    public function __construct($callable, $args, $tag)
    {
        $this->callable     = $callable;
        $this->args         = $args;
        $this->tag          = $tag;
    }

    /**
     * {@inheritdoc}
     */
    public function getName()
    {
        return 'Task';
    }

    /**
     * @return  callable
     */
    public function getCallable()
    {
        return $this->callable;
    }

    /**
     * @return  mixed
     */
    public function getArgs()
    {
        return $this->args;
    }

    /**
     * @return  string|null
     */
    public function getTag()
    {
        return $this->tag;
    }

    /**
     * @return  \Ackintosh\Snidel\Result\Result
     */
    public function execute()
    {<commit_msg>Add type hints for Task<commit_after><?php
namespace Ackintosh\Snidel\Task;

use Ackintosh\Snidel\Result\Result;
use Bernard\Message\AbstractMessage;

class Task extends AbstractMessage implements TaskInterface
{
    /** @var callable */
    private $callable;

    /** @var array */
    private $args;

    /** @var string */
    private $tag;

    /**
     * @param   callable    $callable
     * @param   mixed       $args
     * @param   string      $tag
     */
    public function __construct(callable $callable, $args, ?string $tag)
    {
        $this->callable     = $callable;
        $this->args         = $args;
        $this->tag          = $tag;
    }

    /**
     * {@inheritdoc}
     */
    public function getName(): string
    {
        return 'Task';
    }

    /**
     * @return  callable
     */
    public function getCallable(): callable
    {
        return $this->callable;
    }

    /**
     * @return  mixed
     */
    public function getArgs()
    {
        return $this->args;
    }

    /**
     * @return  string|null
     */
    public function getTag(): ?string
    {
        return $this->tag;
    }

    /**
     * @return  \Ackintosh\Snidel\Result\Result
     */
    public function execute(): Result
    {
{'fraction_non_alphanumeric': 0.13168724279835392, 'fraction_numerical': 0.0, 'mean_word_length': 1.6743674367436743, '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': '3361702', 'n_tokens_mistral': 763, 'n_tokens_neox': 747, 'n_words': 164}