<commit_before><?php

namespace PandaLove\Console\Commands\Halo5;

use Illuminate\Console\Command;

class batchHalo5Metadata extends Command
{
    /**
     * The name and signature of the console command.
     *
     * @var string
     */
    protected $signature = 'halo5:batch-metadata';

    /**
     * The console command description.
     *
     * @var string
     */
    protected $description = 'Pulls down ALL metadata (with some sleep in-between)';

    /**
     * Create a new command instance.
     *
     * @return void
     */
    public function __construct()
    {
        parent::__construct();
    }

    /**
     * Execute the console command.
     *
     * @return mixed
     */
    public function handle()
    {
        $commands = [
            'halo5:gametypes-update',
            'halo5:playlist-update',
            'halo5:weapons-update',
            'halo5:season-update',
            'halo5:teams-update',
            'halo5:medal-update',
            'halo5:rank-update',
            'halo5:maps-update',
            'halo5:csr-update',
            'halo5:enemies-update',
            'halo5:impulses-update',
            'halo5:vehicles-update',
        ];

        foreach ($commands as $command) {
            $exitCode = \Artisan::call($command);

            $this->info('Ran command ('.$command.') with output of: '.$exitCode);

            $randomSleep = mt_rand(1, 8);
            $this->info('Sleeping for '.$randomSleep.' seconds before next command.');
            sleep($randomSleep);
        }

        $caches = [
            'vehicles-metadata',
            'gametypes-metadata',<commit_msg>[H5] Update meta data to output more info<commit_after><?php

namespace PandaLove\Console\Commands\Halo5;

use Illuminate\Console\Command;

class batchHalo5Metadata extends Command
{
    /**
     * The name and signature of the console command.
     *
     * @var string
     */
    protected $signature = 'halo5:batch-metadata';

    /**
     * The console command description.
     *
     * @var string
     */
    protected $description = 'Pulls down ALL metadata (with some sleep in-between)';

    /**
     * Create a new command instance.
     *
     * @return void
     */
    public function __construct()
    {
        parent::__construct();
    }

    /**
     * Execute the console command.
     *
     * @return mixed
     */
    public function handle()
    {
        $commands = [
            'halo5:gametypes-update',
            'halo5:playlist-update',
            'halo5:weapons-update',
            'halo5:season-update',
            'halo5:teams-update',
            'halo5:medal-update',
            'halo5:rank-update',
            'halo5:maps-update',
            'halo5:csr-update',
            'halo5:enemies-update',
            'halo5:impulses-update',
            'halo5:vehicles-update',
        ];

        foreach ($commands as $command) {
            $exitCode = \Artisan::call($command);
            $this->info(\Artisan::output());

            $this->info('Ran command ('.$command.') with output of: '.$exitCode);

            $randomSleep = mt_rand(1, 8);
            $this->info('Sleeping for '.$randomSleep.' seconds before next command.');
            sleep($randomSleep);
        }

        $caches = [
            'vehicles-metadata',
            'gametypes-metadata',
{'fraction_non_alphanumeric': 0.1312406576980568, 'fraction_numerical': 0.01046337817638266, 'mean_word_length': 1.8094038623005877, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 8, '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': '5037766', 'n_tokens_mistral': 1009, 'n_tokens_neox': 987, 'n_words': 203}