<commit_before><?php

namespace SKE\Composer;

class Script
{
    public static function install()
    {
        $dirs = array(
            'resources/cache',
            'resources/log',
        );

        foreach($dirs as $dir) {
            if (!file_exists($dir))
                mkdir($dir, 0755, true);
            else
                chmod($dir, 0755);
        }

        $console = 'console';

        $code = <<<HEREDOC
#!/usr/bin/env php
<?php

require_once __DIR__.'/vendor/autoload.php';

\$app = new Silex\Application();
<commit_msg>Update now creates tmp git ignored dir<commit_after><?php

namespace SKE\Composer;

class Script
{
    public static function install()
    {
        $dirs = array(
            'resources/cache',
            'resources/log',
            'tmp',
        );

        foreach($dirs as $dir) {
            if (!file_exists($dir))
                mkdir($dir, 0755, true);
            else
                chmod($dir, 0755);
        }

        $console = 'console';

        $code = <<<HEREDOC
#!/usr/bin/env php
<?php

require_once __DIR__.'/vendor/autoload.php';

\$app = new Silex\Application();

{'fraction_non_alphanumeric': 0.1394736842105263, 'fraction_numerical': 0.014035087719298246, 'mean_word_length': 1.7166666666666666, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 3, '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': '7121059', 'n_tokens_mistral': 378, 'n_tokens_neox': 349, 'n_words': 79}