<commit_before><?php

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

class AddForeignKeys extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::table('files', function (Blueprint $table)
        {
            $table->foreign('candidate_id')->references('id')->on('candidates')->onDelete('cascade');
        });
        Schema::table('sectors', function (Blueprint $table)
        {
            $table->foreign('candidate_id')->references('id')->on('candidates')->onDelete('cascade');
        });
        Schema::table('countries', function (Blueprint $table)
        {
            $table->foreign('candidate_id')->references('id')->on('candidates')->onDelete('cascade');
        });
        Schema::table('regions', function (Blueprint $table)
        {
            $table->foreign('country_id')->references('id')->on('countries')->onDelete('cascade');
        });
        Schema::table('salaries', function (Blueprint $table)
        {
            $table->foreign('candidate_id')->references('id')->on('candidates')->onDelete('cascade');
        });
        Schema::table('sectors', function (Blueprint $table)
        {
            $table->foreign('candidate_id')->references('id')->on('candidates')->onDelete('cascade');
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        //
    }
}<commit_msg>[bug] fixed foreign keys<commit_after><?php

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

class AddForeignKeys extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::table('files', function (Blueprint $table)
        {
            $table->foreign('candidate_id')->references('id')->on('candidates')->onDelete('cascade');
        });
        Schema::table('sectors', function (Blueprint $table)
        {
            $table->foreign('candidate_id')->references('id')->on('candidates')->onDelete('cascade');
        });
        Schema::table('countries', function (Blueprint $table)
        {
            $table->foreign('candidate_id')->references('id')->on('candidates')->onDelete('cascade');
        });
        Schema::table('regions', function (Blueprint $table)
        {
            $table->foreign('country_id')->references('id')->on('countries')->onDelete('cascade');
        });
        Schema::table('salaries', function (Blueprint $table)
        {
            $table->foreign('candidate_id')->references('id')->on('candidates')->onDelete('cascade');
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        //
    }
}
{'fraction_non_alphanumeric': 0.18370944992947813, 'fraction_numerical': 0.0, 'mean_word_length': 2.559598494353827, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 47, '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': '2273186', 'n_tokens_mistral': 810, 'n_tokens_neox': 795, 'n_words': 108}