<commit_before><?php

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

class ChangeDefaultLabelToNullable extends Migration
{
    /**
     * Run the migrations.
     * 
     * This is stupid because it has a default valuye of 0 so it *should* 
     * default to 0, but it doesn't on some versions of MySQL. 
     *
     * @return void
     */
    public function up()
    {
        Schema::table('nullable', function (Blueprint $table) {
            Schema::table('status_labels', function (Blueprint $table) {
                $table->boolean('default_label')->nullable()->default(0);
                $table->boolean('show_in_nav')->nullable()->default(0);
            });
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::table('nullable', function (Blueprint $table) {
            //
        });
    }
}<commit_msg>Forgot the ->change() method<commit_after><?php

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

class ChangeDefaultLabelToNullable extends Migration
{
    /**
     * Run the migrations.
     * 
     * This is stupid because it has a default valuye of 0 so it *should* 
     * default to 0, but it doesn't on some versions of MySQL. 
     *
     * @return void
     */
    public function up()
    {

        Schema::table('status_labels', function (Blueprint $table) {
            $table->boolean('default_label')->nullable()->default(0)->change();
            $table->boolean('show_in_nav')->nullable()->default(0)->change();
        });

    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        //
    }
}
{'fraction_non_alphanumeric': 0.13145029875067898, 'fraction_numerical': 0.0043454644215100485, 'mean_word_length': 2.283422459893048, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 18, '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': '3405006', 'n_tokens_mistral': 528, 'n_tokens_neox': 527, 'n_words': 127}