<commit_before><?php

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

class CreateWalletOrdersTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('wallet_orders', function (Blueprint $table) {
            $table->increments('id');
            $table->integer('owner_id')->unsigned()->comment('记录所属者');
            $table->string('target_type')->comment('目标类型');
            $table->string('target_id')->comment('目标标识');
            $table->string('title')->comment('订单标题');
            $table->text('body')->nullable()->default(null)->comment('详情');
            $table->tinyInteger('type', 1)->comment('1：入账、-1：支出');
            $table->integer('amount')->unsigned()->comment('订单金额');
            $table->tinyInteger('state', 1)->nullable()->default(0)->comment('订单状态，0: 等待，1：成功，-1: 失败')
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('wallet_orders');
    }
}<commit_msg>fix: Fixed wallet_orders table migration Unexpected '$table' (T_VARIABLE) on line 26<commit_after><?php

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

class CreateWalletOrdersTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('wallet_orders', function (Blueprint $table) {
            $table->increments('id');
            $table->integer('owner_id')->unsigned()->comment('记录所属者');
            $table->string('target_type')->comment('目标类型');
            $table->string('target_id')->comment('目标标识');
            $table->string('title')->comment('订单标题');
            $table->text('body')->nullable()->default(null)->comment('详情');
            $table->tinyInteger('type', 1)->comment('1：入账、-1：支出');
            $table->integer('amount')->unsigned()->comment('订单金额');
            $table->tinyInteger('state', 1)->nullable()->default(0)->comment('订单状态，0: 等待，1：成功，-1: 失败');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('wallet_orders');
    }
}
{'fraction_non_alphanumeric': 0.18933224755700326, 'fraction_numerical': 0.007328990228013029, 'mean_word_length': 2.73972602739726, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 51, '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': '2015678', 'n_tokens_mistral': 752, 'n_tokens_neox': 797, 'n_words': 102}