<commit_before><?php

use MyPhpmig\Police\Migration;

class ZeroViolations extends Migration
{
    /**
     * Do the migration
     */
    public function up()
    {

        $this->_queries = "ALTER TABLE `traffic` CHANGE `in_violation` `in_violation` INT(11) NOT NULL;";

        parent::up();

        // All the Multilingual speaking zones.
        $this->getZones()->reset()->where('language', '=', 3);

        $this->_queries = "ALTER TABLE `be-fr_traffic` CHANGE `in_violation` `in_violation` INT(11) NOT NULL;";

        parent::up();

        // All the Multilingual speaking zones.
        $this->getZones()->reset()->where('language', '=', 7);

        $this->_queries = "ALTER TABLE `be-de_traffic` CHANGE `in_violation` `in_violation` INT(11) NOT NULL;";

        parent::up();
    }

    /**
     * Undo the migration
     */
    public function down()
    {

        $this->_queries = "ALTER TABLE `traffic` CHANGE `in_violation` `in_violation` INT(11) NULL;";

        parent::down();

        // All the Multilingual speaking zones.
        $this->getZones()->reset()->where('language', '=', 3);

        $this->_queries = "ALTER TABLE `be-fr_traffic` CHANGE `in_violation` `in_violation` INT(11) NULL;";

        parent::down();

        // All the Multilingual speaking zones.
        $this->getZones()->reset()->where('language', '=', 7);

        $this->_queries = "ALTER TABLE `be-de_traffic` CHANGE `in_violation` `in_violation` INT(11) NULL;";

        parent::down();
    }
}<commit_msg>#176 - Allow zero violations<commit_after><?php

use MyPhpmig\Police\Migration;

class ZeroViolations extends Migration
{
    /**
     * Do the migration
     */
    public function up()
    {

        $this->_queries = "ALTER TABLE `traffic` CHANGE `in_violation` `in_violation` INT(11) NOT NULL;";
        $this->_queries = "ALTER TABLE `traffic` CHANGE `controlled` `controlled` INT(11) NOT NULL;";

        parent::up();

        // All the Multilingual speaking zones.
        $this->getZones()->reset()->where('language', '=', 3);

        $this->_queries = "ALTER TABLE `be-fr_traffic` CHANGE `in_violation` `in_violation` INT(11) NOT NULL;";
        $this->_queries = "ALTER TABLE `be-fr_traffic` CHANGE `controlled` `controlled` INT(11) NOT NULL;";

        parent::up();

        // All the Multilingual speaking zones.
        $this->getZones()->reset()->where('language', '=', 7);

        $this->_queries = "ALTER TABLE `be-de_traffic` CHANGE `in_violation` `in_violation` INT(11) NOT NULL;";
        $this->_queries = "ALTER TABLE `be-de_traffic` CHANGE `controlled` `controlled` INT(11) NOT NULL;";

        parent::up();
    }

    /**
     * Undo the migration
     */
    public function down()
    {

        $this->_queries = "ALTER TABLE `traffic` CHANGE `in_violation` `in_violation` INT(11) NULL;";
        $this->_queries = "ALTER TABLE `traffic` CHANGE `controlled` `controlled` INT(11) NULL;";

        parent::down();

        // All the Multilingual speaking zones.
        $this->getZones()->reset()->where('language', '=', 3);

        $this->_queries = "ALTER TABLE `be-fr_traffic` CHANGE `in_violation` `in_violation` INT(11) NULL;";
        $this->_queries = "ALTER TABLE `be-fr_traffic` CHANGE `controlled` `controlled` INT(11) NULL;";

        parent::down();

        // All the Multilingual speaking zones.
        $this->getZones()->reset()->where('language', '=', 7);

        $this->_queries = "ALTER TABLE `be-de_traffic` CHANGE `in_violation` `in_violation` INT(11) NULL;";
        $this->_queries = "ALTER TABLE `be-de_traffic` CHANGE `controlled` `controlled` INT(11) NULL;";

        parent::down();
    }
}
{'fraction_non_alphanumeric': 0.1675306957708049, 'fraction_numerical': 0.012824010914051841, 'mean_word_length': 2.9041533546325877, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 45, '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': '4739970', 'n_tokens_mistral': 1276, 'n_tokens_neox': 1173, 'n_words': 280}