<commit_before>Installation
============

Step 1: Download the Bundle
---------------------------

Open a command console, enter your project directory and execute the
following command to download the latest stable version of this bundle:

```console
$ composer require wearejust/sonata-theme-bundle "~1"
```

This command requires you to have Composer installed globally, as explained
in the [installation chapter](https://getcomposer.org/doc/00-intro.md)
of the Composer documentation.

Step 2: Enable the Bundle
-------------------------

Then, enable the bundle by adding it to the list of registered bundles
in the `app/AppKernel.php` file of your project:

```php
<?php
// app/AppKernel.php

// ...
class AppKernel extends Kernel
{
    public function registerBundles()
    {
        $bundles = array(
            // ...

            new Just\SonataThemeBundle\JustSonataThemeBundle(),
        );

        // ...
    }

    // ...
}
```

Also, enable the [pixSortableBehaviorBundle](https://github.com/pix-digital/pixSortableBehaviorBundle) by following their [installation guide](https://github.com/pix-digital/pixSortableBehaviorBundle).

Step 3: Add extra config (optional)
-------------------------

It's possible to override the config we provide, you can specify an custom yml file ```(as Resources/config/theme.yml)``` the following way:

```yml
just_sonata_theme:
    custom_theme: /path/to/custom/yml

```
As well as override our [config](https://github.com/wearejust/sonata-theme-bundle/blob/master/Resources/config/theme.yml) as well as specify an extra ```extra_css``` or ```extra_js``` key in your yml.

```yml
# example.yml

extra_css:
    - /path/to/extra/css.css

extra_js:
    - /path/to/extra/js.js
    
```
<commit_msg>Feature: Update readme with new controller settings<commit_after>Installation
============

Step 1: Download the Bundle
---------------------------

Open a command console, enter your project directory and execute the
following command to download the latest stable version of this bundle:

```console
$ composer require wearejust/sonata-theme-bundle "~1"
```

This command requires you to have Composer installed globally, as explained
in the [installation chapter](https://getcomposer.org/doc/00-intro.md)
of the Composer documentation.

Step 2: Enable the Bundle
-------------------------

Then, enable the bundle by adding it to the list of registered bundles
in the `app/AppKernel.php` file of your project:

```php
<?php
// app/AppKernel.php

// ...
class AppKernel extends Kernel
{
    public function registerBundles()
    {
        $bundles = array(
            // ...

            new Just\SonataThemeBundle\JustSonataThemeBundle(),
        );

        // ...
    }

    // ...
}
```

Also, enable the [pixSortableBehaviorBundle](https://github.com/pix-digital/pixSortableBehaviorBundle) by following their [installation guide](https://github.com/pix-digital/pixSortableBehaviorBundle).

Also, add routing in your ```routing.yml```

```yml
// routing.yml
_wearejust_sonata_theme:
    resource: "@JustSonataThemeBundle/Resources/config/routing.yml"
```

Step 3: Add extra config (optional)
-------------------------

It's possible to override the config we provide, you can specify an custom yml file ```(as Resources/config/theme.yml)``` the following way:

```yml
just_sonata_theme:
    custom_theme: /path/to/custom/yml

```
As well as override our [config](https://github.com/wearejust/sonata-theme-bundle/blob/master/Resources/config/theme.yml) as well as specify an extra ```extra_css``` or ```extra_js``` key in your yml.

```yml
# example.yml

extra_css:
    - /path/to/extra/css.css

extra_js:
    - /path/to/extra/js.js
    
```

{'fraction_non_alphanumeric': 0.16057405903059843, 'fraction_numerical': 0.003249390739236393, 'mean_word_length': 2.997835497835498, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, 'https://': 8, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4343474', 'n_tokens_mistral': 1128, 'n_tokens_neox': 1051, 'n_words': 327}