<commit_before>#! /usr/bin/env php
<?php
/**
 * New application
 *
 * usage:
 *
 * $ php bin/new_app.php MyApp
 *
 * test:
 *
 * cd apps/MyApp;
 * phpunit
 *
 * run:
 *
 * cd public;
 * php web.php get /
 * php -S localhost:8088 web.php
 */
$appName = isset($argv[1]) ? ucwords($argv[1]) : 'NewApp';

$composerPath = dirname(__DIR__) . '/composer.phar';
if (!file_exists($composerPath)) {
    $composerCmd = 'curl -s https://getcomposer.org/installer | php';
    passthru($composerCmd);
    $composerPath = dirname(__DIR__) . '/composer.phar';
}
$dir = dirname(__DIR__) . '/apps';
$cmd = "php {$composerPath} create-project --dev bear/skeleton {$dir}/$appName";
passthru($cmd);<commit_msg>add skeleton version<commit_after>#! /usr/bin/env php
<?php
/**
 * New application
 *
 * usage:
 *
 * $ php bin/new_app.php MyApp
 *
 * test:
 *
 * cd apps/MyApp;
 * phpunit
 *
 * run:
 *
 * cd public;
 * php web.php get /
 * php -S localhost:8088 web.php
 */

$skeletonVersion = "0.7.2";
$appName = isset($argv[1]) ? ucwords($argv[1]) : 'NewApp';

$composerPath = dirname(__DIR__) . '/composer.phar';
if (!file_exists($composerPath)) {
    $composerCmd = 'curl -s https://getcomposer.org/installer | php';
    passthru($composerCmd);
    $composerPath = dirname(__DIR__) . '/composer.phar';
}
$dir = dirname(__DIR__) . '/apps';
$cmd = "php {$composerPath} create-project --dev bear/skeleton {$dir}/{$appName} {$skeletonVersion}";
passthru($cmd);
{'fraction_non_alphanumeric': 0.19790940766550522, 'fraction_numerical': 0.010452961672473868, 'mean_word_length': 3.7549668874172184, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '6150737', 'n_tokens_mistral': 572, 'n_tokens_neox': 550, 'n_words': 110}