<commit_before><?php

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

class ReplacePokeTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('pokes_replacement', function (Blueprint $table) {
            $table->increments('id');
            $table->date('date')->unique()->index();
            $table->integer('pokes')->default(0);
        });

        $dates = DB::table('pokes')->select(DB::raw('count(*) as pokes, date(created_at) as date'))
            ->groupBy('date')
            ->get();

        $dates = ($dates->map(function ($date) {
            return (array) $date;
        }));

        DB::table('pokes_replacement')->insert($dates->toArray());

        Schema::dropIfExists('pokes');
        Schema::rename('pokes_replacement', 'pokes');
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        // 
    }
}<commit_msg>Apply fixes from StyleCI<commit_after><?php

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

class ReplacePokeTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('pokes_replacement', function (Blueprint $table) {
            $table->increments('id');
            $table->date('date')->unique()->index();
            $table->integer('pokes')->default(0);
        });

        $dates = DB::table('pokes')->select(DB::raw('count(*) as pokes, date(created_at) as date'))
            ->groupBy('date')
            ->get();

        $dates = ($dates->map(function ($date) {
            return (array) $date;
        }));

        DB::table('pokes_replacement')->insert($dates->toArray());

        Schema::dropIfExists('pokes');
        Schema::rename('pokes_replacement', 'pokes');
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        //
    }
}
{'fraction_non_alphanumeric': 0.1692032229185318, 'fraction_numerical': 0.0008952551477170994, 'mean_word_length': 2.3408071748878925, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 27, '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': '826385', 'n_tokens_mistral': 663, 'n_tokens_neox': 669, 'n_words': 113}