<commit_before><?php

use yii\db\Schema;
use yii\db\Migration;

class m160815_223711_sw_metadata extends Migration
{

    public function safeUp()
    {
        $this->createTable('{{%sw_metadata}}', [
            'workflow_id' => $this->string(32)->notNull(),
            'status_id' => $this->string(32)->notNull(),
            'key' => $this->string(64)->notNull(),
            'value' => $this->string(255)->null()->defaultValue(null),
        ], 'ENGINE=InnoDB');
        $this->createIndex('workflow_status_id', '{{%sw_metadata}}', ['workflow_id', 'status_id'], true);
    }

    public function safeDown()
    {
        $this->dropIndex('workflow_status_id', '{{%sw_metadata}}');
        $this->dropTable('{{%sw_metadata}}');
    }

}<commit_msg>fix index<commit_after><?php

use yii\db\Schema;
use yii\db\Migration;

class m160815_223711_sw_metadata extends Migration
{

    public function safeUp()
    {
        $this->createTable('{{%sw_metadata}}', [
            'workflow_id' => $this->string(32)->notNull(),
            'status_id' => $this->string(32)->notNull(),
            'key' => $this->string(64)->notNull(),
            'value' => $this->string(255)->null()->defaultValue(null),
        ], 'ENGINE=InnoDB');
        $this->createIndex('workflow_status_id', '{{%sw_metadata}}', ['workflow_id', 'status_id', 'key'], true);
    }

    public function safeDown()
    {
        $this->dropIndex('workflow_status_id', '{{%sw_metadata}}');
        $this->dropTable('{{%sw_metadata}}');
    }

}
{'fraction_non_alphanumeric': 0.20742213386348576, 'fraction_numerical': 0.027833001988071572, 'mean_word_length': 3.2061281337047354, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 37, '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': '3861655', 'n_tokens_mistral': 535, 'n_tokens_neox': 509, 'n_words': 68}