<commit_before><?php
/**
 * Created by PhpStorm.
 * User: sgraupner
 * Date: 04/01/2017
 * Time: 14:39.
 */

namespace OParl\Spec\Commands;

class InitializeCommand extends Command
{
    protected $signature = 'oparl:init';

    public function handle()
    {
        $this->call('oparl:init:schema');

        $this->call('oparl:update:specification');
        $this->call('oparl:update:downloads', ['~1.0']);
        $this->call('oparl:update:downloads', ['master']);
    }
}<commit_msg>Update intialize command to use constraints<commit_after><?php
/**
 * Created by PhpStorm.
 * User: sgraupner
 * Date: 04/01/2017
 * Time: 14:39.
 */

namespace OParl\Spec\Commands;

class InitializeCommand extends Command
{
    protected $signature = 'oparl:init';

    public function handle()
    {
        $this->call('oparl:init:schema');

        $this->call('oparl:update:specification');

        collect(config('oparl.downloads.specification'))
            ->map(function ($downloadVersionConstraint) {
                $this->call('oparl:update:downloads', [$downloadVersionConstraint]);
            });
    }
}
{'fraction_non_alphanumeric': 0.16050495942290352, 'fraction_numerical': 0.023444544634806132, 'mean_word_length': 3.2857142857142856, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 11, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 6, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1199691', 'n_tokens_mistral': 363, 'n_tokens_neox': 342, 'n_words': 62}