<commit_before>#!/usr/bin/env php
<?php

/**
 * Load correct autoloader depending on install location.
 */
if (file_exists(__DIR__.'/../vendor/autoload.php')) {
    require __DIR__.'/../vendor/autoload.php';
} else {
    require __DIR__.'/../../../autoload.php';
}

use Ptondereau\PackMe\Commands\CreateCommand;
use Silly\Edition\PhpDi\Application;

/*
 * Application bootstrap.
 */
$version = '2.0.0';

$app = new Application('Laravel PackMe', $version);

/*
 * Inject dependencies.
 */
$container = $app->getContainer();
$container->set(
    \Symfony\Component\Console\Helper\HelperSet::class,
    DI\object()->constructor(['question' => new \Symfony\Component\Console\Helper\QuestionHelper()])
);
$container->set(\Ptondereau\PackMe\Crafters\Crafter::class, DI\object(\Ptondereau\PackMe\Crafters\PHPCrafter::class));

/*
 * Create the package with user's answers.
 */
$app->command('create [dir]', [CreateCommand::class, 'handle'])
    ->descriptions('Create your package with a given directory', ['dir' => 'Your directory name']);

/*
 * Run the application.
 */
$app->run();
<commit_msg>Update packme.php<commit_after>#!/usr/bin/env php
<?php

/**
 * Load correct autoloader depending on install location.
 */
if (file_exists(__DIR__.'/../vendor/autoload.php')) {
    require __DIR__.'/../vendor/autoload.php';
} else {
    require __DIR__.'/../../../autoload.php';
}

use Ptondereau\PackMe\Commands\CreateCommand;
use Silly\Edition\PhpDi\Application;

/*
 * Application bootstrap.
 */
$version = '2.0.2';

$app = new Application('Laravel PackMe', $version);

/*
 * Inject dependencies.
 */
$container = $app->getContainer();
$container->set(
    \Symfony\Component\Console\Helper\HelperSet::class,
    DI\object()->constructor(['question' => new \Symfony\Component\Console\Helper\QuestionHelper()])
);
$container->set(\Ptondereau\PackMe\Crafters\Crafter::class, DI\object(\Ptondereau\PackMe\Crafters\PHPCrafter::class));

/*
 * Create the package with user's answers.
 */
$app->command('create [dir]', [CreateCommand::class, 'handle'])
    ->descriptions('Create your package with a given directory', ['dir' => 'Your directory name']);

/*
 * Run the application.
 */
$app->run();

{'fraction_non_alphanumeric': 0.19350411710887466, 'fraction_numerical': 0.0027447392497712718, 'mean_word_length': 4.244604316546763, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 21, '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': '3985510', 'n_tokens_mistral': 739, 'n_tokens_neox': 722, 'n_words': 133}