<commit_before><?php
namespace G4\Tasker;

use G4\Tasker\Model\Mapper\Mysql\Recurring as RecurringMapper;
use G4\Tasker\Model\Mapper\Mysql\Task as TaskMapper;
use G4\Tasker\Model\Domain\Task as TaskDomain;

class Injector
{
    public function run()
    {
        $recuringMapper = new RecurringMapper();

        $this->_data = $recuringMapper->getNextTasks();

        if(empty($this->_data)) {
            return false;
        }

        $taskMapper = new TaskMapper();

        foreach ($this->_data as $item) {

            $expression = \Cron\CronExpression::factory($item->getFrequency());
            $ts = strtotime($expression->getNextRunDate()->format('Y-m-d H:i:s'));

            $domain = new TaskDomain();
            $domain
                ->setRecurringId($item->getId())
                ->setTask($item->getTask())
                ->setData($item->getData())
                ->setStatus(Consts::STATUS_PENDING)
                ->setPriority($item->getPriority())
                ->setCreatedTs($ts)
                ->setStartedTime(0)
                ->setExecTime(0);

            $taskMapper->insert($domain);
        }
    }
}<commit_msg>Injector.php sets identifier explicitly to empty string<commit_after><?php
namespace G4\Tasker;

use G4\Tasker\Model\Mapper\Mysql\Recurring as RecurringMapper;
use G4\Tasker\Model\Mapper\Mysql\Task as TaskMapper;
use G4\Tasker\Model\Domain\Task as TaskDomain;

class Injector
{
    public function run()
    {
        $recuringMapper = new RecurringMapper();

        $this->_data = $recuringMapper->getNextTasks();

        if(empty($this->_data)) {
            return false;
        }

        $taskMapper = new TaskMapper();

        foreach ($this->_data as $item) {

            $expression = \Cron\CronExpression::factory($item->getFrequency());
            $ts = strtotime($expression->getNextRunDate()->format('Y-m-d H:i:s'));

            $domain = new TaskDomain();
            $domain
                ->setRecurringId($item->getId())
                ->setTask($item->getTask())
                ->setData($item->getData())
                ->setIdentifier('')
                ->setStatus(Consts::STATUS_PENDING)
                ->setPriority($item->getPriority())
                ->setCreatedTs($ts)
                ->setStartedTime(0)
                ->setExecTime(0);

            $taskMapper->insert($domain);
        }
    }
}
{'fraction_non_alphanumeric': 0.14541666666666667, 'fraction_numerical': 0.005, 'mean_word_length': 2.039240506329114, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 44, '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': '3693624', 'n_tokens_mistral': 726, 'n_tokens_neox': 694, 'n_words': 113}