<commit_before><?php
use Phinx\Db\Table\Column;
use Phinx\Migration\AbstractMigration;

class CreateFilters extends AbstractMigration
{
    /**
     * Migrate up
     */
    public function up()
    {
        $table = $this->table('ff_filters');
        $table->addColumn('plugin', 'string', ['limit' => 255, 'null' => true, 'default' => null])
            ->addColumn('controller', 'string', ['limit' => 255, 'null' => false])
            ->addColumn('action', 'string', ['limit' => 255, 'null' => false])
            ->addColumn('slug', 'string', ['limit' => 14, 'null' => false])
            ->addColumn('filter_data', 'text', ['null' => false])
            ->addColumn('created', 'datetime', ['null' => false, 'default' => '0000-00-00 00:00']);
        $table->addIndex('slug', ['name' => 'BY_SLUG', 'unique' => true]);
        $table->create();

        $id = new Column();
        $id->setIdentity(true)
            ->setType('integer')
            ->setOptions(['limit' => 11, 'signed' => false, 'null' => false]);

        $table->changeColumn('id', $id)->save();
    }

    /**
     * Migrate down
     */
    public function down() {
        $this->table('ff_filters')->drop();
    }
}<commit_msg>use CURRENT_TIMESTAMP instead of 0000-00-00 00:00<commit_after><?php
use Phinx\Db\Table\Column;
use Phinx\Migration\AbstractMigration;

class CreateFilters extends AbstractMigration
{
    /**
     * Migrate up
     */
    public function up()
    {
        $table = $this->table('ff_filters');
        $table->addColumn('plugin', 'string', ['limit' => 255, 'null' => true, 'default' => null])
            ->addColumn('controller', 'string', ['limit' => 255, 'null' => false])
            ->addColumn('action', 'string', ['limit' => 255, 'null' => false])
            ->addColumn('slug', 'string', ['limit' => 14, 'null' => false])
            ->addColumn('filter_data', 'text', ['null' => false])
            ->addColumn('created', 'datetime', ['null' => false, 'default' => 'CURRENT_TIMESTAMP']);
        $table->addIndex('slug', ['name' => 'BY_SLUG', 'unique' => true]);
        $table->create();

        $id = new Column();
        $id->setIdentity(true)
            ->setType('integer')
            ->setOptions(['limit' => 11, 'signed' => false, 'null' => false]);

        $table->changeColumn('id', $id)->save();
    }

    /**
     * Migrate down
     */
    public function down() {
        $this->table('ff_filters')->drop();
    }
}
{'fraction_non_alphanumeric': 0.21868625050999593, 'fraction_numerical': 0.02039983680130559, 'mean_word_length': 2.6325925925925926, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 69, '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': '6981445', 'n_tokens_mistral': 792, 'n_tokens_neox': 750, 'n_words': 160}