<commit_before><?php

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

class CreateForumsTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('forums', function (Blueprint $table) {
            $table->smallInteger('id', true);
            $table->smallInteger('parent_id')->nullable();
            $table->string('name', 50);
            $table->string('path', 50);
            $table->string('title', 200)->nullable();
            $table->string('description', 255);
            $table->string('section', 50)->nullable();
            $table->string('url', 200)->nullable();
            $table->mediumInteger('topics')->default(0);
            $table->mediumInteger('posts')->default(0);
            $table->smallInteger('order');
            $table->integer('last_post_id')->nullable();
            $table->tinyInteger('is_locked')->default(0);
            $table->tinyInteger('require_tag')->default(0);
            $table->tinyInteger('enable_prune')->default(0);
            $table->tinyInteger('enable_reputation')->default(1);
            $table->smallInteger('prune_days')->nullable();
            $table->integer('prune_last')->nullable();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::drop('forums');
    }
}
<commit_msg>dodatkowa kolumna: zezwalaj anonimowym uzytkownikom na pisanie na tym forum<commit_after><?php

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

class CreateForumsTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('forums', function (Blueprint $table) {
            $table->smallInteger('id', true);
            $table->smallInteger('parent_id')->nullable();
            $table->string('name', 50);
            $table->string('path', 50);
            $table->string('title', 200)->nullable();
            $table->string('description', 255);
            $table->string('section', 50)->nullable();
            $table->string('url', 200)->nullable();
            $table->mediumInteger('topics')->default(0);
            $table->mediumInteger('posts')->default(0);
            $table->smallInteger('order');
            $table->integer('last_post_id')->nullable();
            $table->tinyInteger('is_locked')->default(0);
            $table->tinyInteger('require_tag')->default(0);
            $table->tinyInteger('enable_prune')->default(0);
            $table->tinyInteger('enable_reputation')->default(1);
            $table->tinyInteger('enable_anonymous')->default(1);
            $table->smallInteger('prune_days')->nullable();
            $table->integer('prune_last')->nullable(); // timestamp
        });
    }

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

{'fraction_non_alphanumeric': 0.17829204693611472, 'fraction_numerical': 0.014015645371577574, 'mean_word_length': 2.4444444444444446, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 67, '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': '3520943', 'n_tokens_mistral': 869, 'n_tokens_neox': 862, 'n_words': 121}