<commit_before>bun
===

Bun Framework

## Installation
Install via composer
    {
        "require": {
            "bun/bun": "master-dev"
        }
    }

## Creating application
First you need to have base directory hierarchy:
    /
    -- app // web root
    -- -- public // web static files
    -- -- index.php // application start file
    -- src // application sources
    -- var // application files
    -- vendor // installed vendors

You can use any directory's names. Default names defined as constants in Bun\\Core\\Application class
You can redefine any of them in your own application index file. Create your application class:
    -- src/AppName/Application.php

    <?php
    namespace AppName;

    class Application extends Bun\Core\Application
    {

    }

Now in app/index.php file run you application.

    -- app/index.php
    <?php

    define('ENV', 'dev');
    $app = new AppName\Application(ENV);
    $app->run();

Your application is ready to development now.

## Templates
Bun Framework controller allows to use native phtml templates, Twig templates and Smarty2 templates. To use last ones you need to install Twig and Smatry2 packages in your application by yourself.<commit_msg>code block fix<commit_after>bun
===

Bun Framework

## Installation
Install via composer
    {
        "require": {
            "bun/bun": "master-dev"
        }
    }

## Creating application
First you need to have base directory hierarchy:
    <?php
    /*
    -- app // web root
    -- -- public // web static files
    -- -- index.php // application start file
    -- src // application sources
    -- var // application files
    -- vendor // installed vendors
    */

You can use any directory's names. Default names defined as constants in Bun\\Core\\Application class
You can redefine any of them in your own application index file. Create your application class:

    <?php
    # src/AppName/Application.php
    namespace AppName;

    class Application extends Bun\Core\Application
    {

    }

Now in app/index.php file run you application.

    <?php
    # app/index.php

    define('ENV', 'dev');
    $app = new AppName\Application(ENV);
    $app->run();

Your application is ready to development now.

## Templates
Bun Framework controller allows to use native phtml templates, Twig templates and Smarty2 templates. To use last ones you need to install Twig and Smatry2 packages in your application by yourself.
{'fraction_non_alphanumeric': 0.09158110882956878, 'fraction_numerical': 0.0016427104722792608, 'mean_word_length': 2.5718475073313782, 'pattern_counts': {'":': 4, '<': 8, '<?xml version=': 0, '>': 5, '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': '2290639', 'n_tokens_mistral': 655, 'n_tokens_neox': 640, 'n_words': 266}