<commit_before><?php

namespace Padam87\CronBundle\Util;

use Padam87\CronBundle\Annotation\Job;

class Tab implements \ArrayAccess
{
    /**
     * @var Job[]
     */
    protected $jobs = [];

    /**
     * {@inheritdoc}
     */
    public function offsetExists($offset)
    {
        return isset($this->jobs[$offset]);
    }

    /**
     * {@inheritdoc}
     *
     * @return Job
     */
    public function offsetGet($offset)
    {
        return $this->jobs[$offset];
    }

    /**
     * {@inheritdoc}
     */
    public function offsetSet($offset, $value)
    {
        if (!$value instanceof Job) {
            throw new \UnexpectedValueException(
                sprintf(
                    'The crontab should only contain instances of "%s", "%s" given',
                    'Padam87\CronBundle\Annotation\Job',
                    get_class($value)
                )
            );
        }

        if (is_null($offset)) {
            $this->jobs[] = $value;
        } else {
            $this->jobs[$offset] = $value;
        }
    }

    /**
     * {@inheritdoc}
     */
    public function offsetUnset($offset)
    {
        unset($this->jobs[$offset]);
    }

    /**
     * @return string
     */
    public function __toString()
    {
        return implode(PHP_EOL, $this->jobs);
    }

    /**
     * @return Job[]
     */
    public function getJobs()
    {
        return $this->jobs;
    }
}<commit_msg>Added EOL to the end of dumped file<commit_after><?php

namespace Padam87\CronBundle\Util;

use Padam87\CronBundle\Annotation\Job;

class Tab implements \ArrayAccess
{
    /**
     * @var Job[]
     */
    protected $jobs = [];

    /**
     * {@inheritdoc}
     */
    public function offsetExists($offset)
    {
        return isset($this->jobs[$offset]);
    }

    /**
     * {@inheritdoc}
     *
     * @return Job
     */
    public function offsetGet($offset)
    {
        return $this->jobs[$offset];
    }

    /**
     * {@inheritdoc}
     */
    public function offsetSet($offset, $value)
    {
        if (!$value instanceof Job) {
            throw new \UnexpectedValueException(
                sprintf(
                    'The crontab should only contain instances of "%s", "%s" given',
                    'Padam87\CronBundle\Annotation\Job',
                    get_class($value)
                )
            );
        }

        if (is_null($offset)) {
            $this->jobs[] = $value;
        } else {
            $this->jobs[$offset] = $value;
        }
    }

    /**
     * {@inheritdoc}
     */
    public function offsetUnset($offset)
    {
        unset($this->jobs[$offset]);
    }

    /**
     * @return string
     */
    public function __toString()
    {
        return implode(PHP_EOL, $this->jobs) . PHP_EOL;
    }

    /**
     * @return Job[]
     */
    public function getJobs()
    {
        return $this->jobs;
    }
}
{'fraction_non_alphanumeric': 0.1433011049723757, 'fraction_numerical': 0.004143646408839779, 'mean_word_length': 1.5082251082251081, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 17, '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': '7337275', 'n_tokens_mistral': 898, 'n_tokens_neox': 859, 'n_words': 166}