<commit_before><?php

require_once __DIR__ . '/../Configs/ConsoleDirs.php';

function requireAll($directory) {

    $files = scandir($directory);

    foreach ($files as $file) {

        if ($file != '.' && $file != '..' && $file != 'index.php') {

            if (is_file(CONSOLE_LIB_FOLDER . '/' . $file))
                require_once CONSOLE_LIB_FOLDER . '/' . $file;
            else
                requireAll(CONSOLE_LIB_FOLDER . '/' . $file);
        }
    }
}

function getOptions(){

    return array(
           'bundle:create',
           'bundle:delete',
           'exit'
        );
}

requireAll(CONSOLE_LIB_FOLDER);

if (!isset($_SERVER['SERVER_NAME'])) {
    $console = new Console();

    echo 'Welcome to Genesis console generator, please choose an option and proceed with the onscreen instructions.';
    $console->linebreak(1);

    while (true) {

        $console->showAllOptions(getOptions());

        echo 'Enter choice: ';

        $line = $console->readUser();

        $args = explode('--', $line);

        $args[0] = explode(':', $args[0]);

        if ($args[0][0] == 'bundle') {

            $bundle = new Bundle('console');

            switch ($args[0][1]) {

                case 'create':
                    $bundle->createBundle();
                    break;
                case 'delete':
                    $bundle->deleteBundle();
                    break;
                case '0':
                case 'exit':
                    exit(0);
                    break;
            }
        } else {

            if ($args[0][0] == 'exit')
                exit;

            $console->unknownOption();
        }
    }
}
else{

    echo '<h3>Welcome to Genesis CRUD generator, please choose an option and proceed with the onscreen instructions.</h3>';

        $options = getOptions();

        $bundle = new Bundle('html');

        if(isset($_POST['submitOption'])){

            $option = $_POST['option'];

            $args = explode(':', $option[0]);

            if ($args[0] == 'bundle') {

                $bundle->name = ($_POST['bundleName'][0] ? $_POST['bundleName'][0] : $_POST['bundle'] );

                switch ($args[1]) {
<commit_msg>Minor fix<commit_after><?php

require_once __DIR__ . '/../Configs/ConsoleDirs.php';

function requireAll($directory) {

    $files = scandir($directory);

    foreach ($files as $file) {

        if ($file != '.' && $file != '..' && $file != 'index.php') {

            if (is_file(CONSOLE_LIB_FOLDER . '/' . $file))
                require_once CONSOLE_LIB_FOLDER . '/' . $file;
            else
                requireAll(CONSOLE_LIB_FOLDER . '/' . $file);
        }
    }
}

function getOptions(){

    return array(
           'bundle:create',
           'bundle:delete',
           'exit'
        );
}

requireAll(CONSOLE_LIB_FOLDER);

if (!isset($_SERVER['SERVER_NAME'])) {
    $console = new Console();

    echo 'Welcome to Genesis console generator, please choose an option and proceed with the onscreen instructions.';
    $console->linebreak(1);

    while (true) {

        $console->showAllOptions(getOptions());

        echo 'Enter choice: ';

        $line = $console->readUser();

        $args = explode('--', $line);

        $args[0] = explode(':', $args[0]);

        if ($args[0][0] == 'bundle') {

            $bundle = new Bundle('console');

            switch ($args[0][1]) {

                case 'create':
                    $bundle->createBundle();
                    break;
                case 'delete':
                    $bundle->deleteBundle();
                    break;
                case '0':
                case 'exit':
                    exit(0);
                    break;
            }
        } else {

            if ($args[0][0] == 'exit')
                exit;

            $console->unknownOption();
        }
    }
}
else{

    echo '<h3>Welcome to Genesis CRUD generator, please choose an option and proceed with the onscreen instructions.</h3>';

        $options = getOptions();

        $bundle = new Bundle('html');

        if(isset($_POST['submitOption'])){

            $option = $_POST['option'];

            $args = explode(':', $option[0]);

            if ($args[0] == 'bundle') {

                $bundle->name = ($_POST['bundle'] ? $_POST['bundle'] : $_POST['bundleName'][0] );

                switch ($args[1]) {

{'fraction_non_alphanumeric': 0.1630509248686915, 'fraction_numerical': 0.007992692395524092, 'mean_word_length': 1.6577669902912622, 'pattern_counts': {'":': 0, '<': 9, '<?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': '6788243', 'n_tokens_mistral': 1316, 'n_tokens_neox': 1224, 'n_words': 271}