<commit_before><?php

use MyPhpmig\Police\Migration;

class AddHiddenCategories extends Migration
{
    /**
     * Do the migration
     */
    public function up()
    {
        $this->_queries = "ALTER TABLE `contacts_categories` ADD `hidden` TINYINT(1)  NOT NULL  DEFAULT '0'  AFTER `published`;";
        $this->_queries .= "UPDATE `contacts_categories` SET `hidden` = '1' WHERE `contacts_category_id` IN ('24', '34');";

        parent::up();

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

        $this->_queries = "ALTER TABLE `fr-fr_contacts_categories` ADD `hidden` TINYINT(1)  NOT NULL  DEFAULT '0'  AFTER `published`;";
        $this->_queries .= "UPDATE `fr-fr_contacts_categories` SET `hidden` = '1' WHERE `contacts_category_id` IN ('24', '34');";

        parent::up();
    }

    /**
     * Undo the migration
     */
    public function down()
    {
        $this->_query = "ALTER TABLE `contacts_categories` DROP `hidden`;";

        parent::down();

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

        $this->_queries = "ALTER TABLE `fr-fr_contacts_categories` DROP `hidden`;";

        parent::down();
    }
}
<commit_msg>re #838 - Typo<commit_after><?php

use MyPhpmig\Police\Migration;

class AddHiddenCategories extends Migration
{
    /**
     * Do the migration
     */
    public function up()
    {
        $this->_queries = "ALTER TABLE `contacts_categories` ADD `hidden` TINYINT(1)  NOT NULL  DEFAULT '0'  AFTER `published`;";
        $this->_queries .= "UPDATE `contacts_categories` SET `hidden` = '1' WHERE `contacts_category_id` IN ('24', '34');";

        parent::up();

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

        $this->_queries = "ALTER TABLE `fr-fr_contacts_categories` ADD `hidden` TINYINT(1)  NOT NULL  DEFAULT '0'  AFTER `published`;";
        $this->_queries .= "UPDATE `fr-fr_contacts_categories` SET `hidden` = '1' WHERE `contacts_category_id` IN ('24', '34');";

        parent::up();
    }

    /**
     * Undo the migration
     */
    public function down()
    {
        $this->_queries = "ALTER TABLE `contacts_categories` DROP `hidden`;";

        parent::down();

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

        $this->_queries = "ALTER TABLE `fr-fr_contacts_categories` DROP `hidden`;";

        parent::down();
    }
}

{'fraction_non_alphanumeric': 0.1684545093365117, 'fraction_numerical': 0.013905442987683751, 'mean_word_length': 2.79788838612368, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 27, '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': '2893600', 'n_tokens_mistral': 845, 'n_tokens_neox': 806, 'n_words': 192}