<commit_before><?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateCtdailyqcTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('ctdailyqc', function (Blueprint $table) {
            $table->increments('id');
            $table->integer('machine_id')->unsigned()->nullable();
            $table->date('qcdate')->nullable();
            $table->enum('scan_type', ['A', 'H'])->nullable();
            $table->float('water_hu', 4, 1)->nullable();
            $table->float('water_sd', 4, 1)->nullable();
            $table->boolean('artifacts')->nullable();
            $table->text('notes')->nullable();
            $table->softDeletes();
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('ctdailyqc');
    }
}
<commit_msg>Add indexes to CT daily QC migration<commit_after><?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateCtdailyqcTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('ctdailyqc', function (Blueprint $table) {
            $table->increments('id');
            $table->integer('machine_id')->unsigned()->nullable();
            $table->date('qcdate')->nullable();
            $table->enum('scan_type', ['A', 'H'])->nullable();
            $table->float('water_hu', 4, 1)->nullable();
            $table->float('water_sd', 4, 1)->nullable();
            $table->boolean('artifacts')->nullable();
            $table->text('notes')->nullable();
            $table->index(['machine_id', 'id']);
            $table->index('qcdate');
            $table->softDeletes();
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('ctdailyqc');
    }
}

{'fraction_non_alphanumeric': 0.17832957110609482, 'fraction_numerical': 0.0036117381489841984, 'mean_word_length': 2.2976190476190474, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 41, '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': '980917', 'n_tokens_mistral': 650, 'n_tokens_neox': 653, 'n_words': 105}