<commit_before><?php

/*
|--------------------------------------------------------------------------
| Register The Laravel Class Loader
|--------------------------------------------------------------------------
|
| In addition to using Composer, you may use the Laravel class loader to
| load your controllers and models. This is useful for keeping all of
| your classes in the "global" namespace without Composer updating.
|
*/

ClassLoader::addDirectories(
    [

        app_path() . '/commands',
        app_path() . '/controllers',
        app_path() . '/models',
        app_path() . '/database/seeds',

    ]
);

/*
|--------------------------------------------------------------------------
| Application Error Logger
|--------------------------------------------------------------------------
|
| Here we will configure the error logger setup for the application which
| is built on top of the wonderful Monolog library. By default we will
| build a basic log file setup which creates a single file for logs.
|
*/

Log::useDailyFiles(storage_path('logs') . DIRECTORY_SEPARATOR . 'laravel.log', 3, Config::get('app.log_level'));

/*
|--------------------------------------------------------------------------
| Application Error Handler
|--------------------------------------------------------------------------
|
| Here you may handle any errors that occur in your application, including
| logging them or displaying custom views for specific errors. You may
| even register several error handlers to handle different types of
| exceptions. If nothing is returned, the default error view is
| shown, which includes a detailed stack trace during debug.
|
*/

App::error(
    function (Exception $exception, $code) {
        Log::error($exception);
    }
);

/*
|--------------------------------------------------------------------------
| Maintenance Mode Handler
|--------------------------------------------------------------------------
|
| The "down" Artisan command gives you the ability to put an application
| into maintenance mode. Here, you will define what is displayed back
| to the user if maintenance mode is in effect for the application.
|
*/

App::down(
    function () {
        return Response::make("Be right back!", 503);
    }
);

// forms:
\Form::macro('ffText', function ($name, $value = null, array $options = []) {
    return \Firefly\Form\Form::ffText($name, $value, $options);
});
\Form::macro('ffSelect', function ($name, array $list = [], $selected = null, array $options = []) {
    return \Firefly\Form\Form::ffSelect($name, $list, $selected, $options);
});
\Form::macro('ffInteger', function ($name, $value = null, array $options = []) {
    return \Firefly\Form\Form::ffInteger($name, $value, $options);
});
\Form::macro('ffAmount', function ($name, $value = null, array $options = []) {
    return \Firefly\Form\Form::ffAmount($name, $value, $options);
});
\Form::macro('ffDate', function ($name, $value = null, array $options = []) {
    return \Firefly\Form\Form::ffDate($name, $value, $options);
});
\Form::macro('ffTags', function ($name, $value = null, array $options = []) {
    return \Firefly\Form\Form::ffTags($name, $value, $options);
});
\Form::macro('ffCheckbox',function ($name, $value = 1, $checked = null, $options = []) {
    return \Firefly\Form\Form::ffCheckbox($name, $value, $checked, $options);
});
\Form::macro('ffOptionsList',function ($type, $name) {
    return \Firefly\Form\Form::ffOptionsList($type, $name);
});


/*
|--------------------------------------------------------------------------
| Require The Filters File
|--------------------------------------------------------------------------
|
| Next we will load the filters file for the application. This gives us
| a nice separate location to store our route and application filter
| definitions instead of putting them all in the main routes file.
|
*/

require app_path() . '/filters.php';
<commit_msg>Code formatting and a reference to a new form element.<commit_after><?php

/*
|--------------------------------------------------------------------------
| Register The Laravel Class Loader
|--------------------------------------------------------------------------
|
| In addition to using Composer, you may use the Laravel class loader to
| load your controllers and models. This is useful for keeping all of
| your classes in the "global" namespace without Composer updating.
|
*/

ClassLoader::addDirectories(
    [

        app_path() . '/commands',
        app_path() . '/controllers',
        app_path() . '/models',
        app_path() . '/database/seeds',

    ]
);

/*
|--------------------------------------------------------------------------
| Application Error Logger
|--------------------------------------------------------------------------
|
| Here we will configure the error logger setup for the application which
| is built on top of the wonderful Monolog library. By default we will
| build a basic log file setup which creates a single file for logs.
|
*/

Log::useDailyFiles(storage_path('logs') . DIRECTORY_SEPARATOR . 'laravel.log', 3, Config::get('app.log_level'));

/*
|--------------------------------------------------------------------------
| Application Error Handler
|--------------------------------------------------------------------------
|
| Here you may handle any errors that occur in your application, including
| logging them or displaying custom views for specific errors. You may
| even register several error handlers to handle different types of
| exceptions. If nothing is returned, the default error view is
| shown, which includes a detailed stack trace during debug.
|
*/

App::error(
    function (Exception $exception, $code) {
        Log::error($exception);
    }
);

/*
|--------------------------------------------------------------------------
| Maintenance Mode Handler
|--------------------------------------------------------------------------
|
| The "down" Artisan command gives you the ability to put an application
| into maintenance mode. Here, you will define what is displayed back
| to the user if maintenance mode is in effect for the application.
|
*/

App::down(
    function () {
        return Response::make("Be right back!", 503);
    }
);

// forms:
\Form::macro(
    'ffText', function ($name, $value = null, array $options = []) {
        return \Firefly\Form\Form::ffText($name, $value, $options);
    }
);
\Form::macro(
    'ffSelect', function ($name, array $list = [], $selected = null, array $options = []) {
        return \Firefly\Form\Form::ffSelect($name, $list, $selected, $options);
    }
);
\Form::macro(
    'ffInteger', function ($name, $value = null, array $options = []) {
        return \Firefly\Form\Form::ffInteger($name, $value, $options);
    }
);
\Form::macro(
    'ffAmount', function ($name, $value = null, array $options = []) {
        return \Firefly\Form\Form::ffAmount($name, $value, $options);
    }
);
\Form::macro(
    'ffBalance', function ($name, $value = null, array $options = []) {
        return \Firefly\Form\Form::ffBalance($name, $value, $options);
    }
);
\Form::macro(
    'ffDate', function ($name, $value = null, array $options = []) {
        return \Firefly\Form\Form::ffDate($name, $value, $options);
    }
);
\Form::macro(
    'ffTags', function ($name, $value = null, array $options = []) {
        return \Firefly\Form\Form::ffTags($name, $value, $options);
    }
);
\Form::macro(
    'ffCheckbox', function ($name, $value = 1, $checked = null, $options = []) {
        return \Firefly\Form\Form::ffCheckbox($name, $value, $checked, $options);
    }
);
\Form::macro(
    'ffOptionsList', function ($type, $name) {
        return \Firefly\Form\Form::ffOptionsList($type, $name);
    }
);


/*
|--------------------------------------------------------------------------
| Require The Filters File
|--------------------------------------------------------------------------
|
| Next we will load the filters file for the application. This gives us
| a nice separate location to store our route and application filter
| definitions instead of putting them all in the main routes file.
|
*/

require app_path() . '/filters.php';

{'fraction_non_alphanumeric': 0.3016978136069378, 'fraction_numerical': 0.0012214486380847686, 'mean_word_length': 1.8205304857044438, 'pattern_counts': {'":': 0, '<': 5, '<?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': '3700631', 'n_tokens_mistral': 2063, 'n_tokens_neox': 1994, 'n_words': 693}