<commit_before><?php

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

class CreateNewsPosts extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('news_posts', function (Blueprint $table) {
            $table->bigIncrements('id');
            $table->string('version')->nullable();
            $table->string('slug')->unique();
            $table->string('hash')->unique()->nullable();
            $table->string('tumblr_id')->nullable();
            $table->text('page')->nullable();
            $table->timestampsTz();
            $table->timestampTz('published_at')->nullable();

            $table->index('slug');
            $table->index('published_at');
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::drop('news_posts');
    }
}<commit_msg>Remove redundant index (from unique constraint)<commit_after><?php

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

class CreateNewsPosts extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('news_posts', function (Blueprint $table) {
            $table->bigIncrements('id');
            $table->string('version')->nullable();
            $table->string('slug')->unique();
            $table->string('hash')->unique()->nullable();
            $table->string('tumblr_id')->nullable();
            $table->text('page')->nullable();
            $table->timestampsTz();
            $table->timestampTz('published_at')->nullable();

            $table->index('published_at');
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::drop('news_posts');
    }
}
{'fraction_non_alphanumeric': 0.16806722689075632, 'fraction_numerical': 0.0, 'mean_word_length': 2.2964169381107493, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 36, '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': '1215720', 'n_tokens_mistral': 561, 'n_tokens_neox': 573, 'n_words': 88}