<commit_before>Mongrate Bundle
===============

A Symfony bundle for [Mongrate](https://github.com/amyboyd/mongrate).

Installation
============

Mongrate Bundle is available [via Composer](https://packagist.org/packages/amyboyd/mongrate-bundle).

Set your configuration in your Symfony application's config.yml:

    mongrate:
        mongodb_server: 'mongodb://localhost:27017'
        mongodb_db: my_database
        migrations_directory: "%kernel.root_dir%/../migrations"

As always, you can use settings from `parameters.yml` with `%...%`. For example:

    mongrate:
        mongodb_server: %mongodb_server%
        mongodb_db: %mongodb_db%_prod

Usage
=====

See the commands available by running `app/console list mongrate`

Contributing
============

Please submit pull requests on GitHub:
* [MongrateBundle](https://github.com/amyboyd/mongrate-bundle/pulls)
* [Mongrate](https://github.com/amyboyd/mongrate/pulls)

Install [PHP-CS-Fixer](https://github.com/fabpot/PHP-CS-Fixer):

    sudo curl http://get.sensiolabs.org/php-cs-fixer.phar -o /usr/local/bin/php-cs-fixer

Install the Git pre-commit hook:

    ln -s ../../resources/pre-commit .git/hooks/pre-commit
    chmod a+x .git/hooks/pre-commit<commit_msg>Update README and add composer install command.<commit_after>Mongrate Bundle
===============

A Symfony bundle for [Mongrate](https://github.com/amyboyd/mongrate).

Installation
============

Mongrate Bundle is available [via Composer](https://packagist.org/packages/amyboyd/mongrate-bundle).

```sh
composer require "amyboyd/mongrate"
```

Set your configuration in your Symfony application's config.yml:

```yml
mongrate:
    mongodb_server: 'mongodb://localhost:27017'
    mongodb_db: my_database
    migrations_directory: "%kernel.root_dir%/../migrations"
```

As always, you can use settings from `parameters.yml` with `%...%`. For example:

```yml
mongrate:
    mongodb_server: %mongodb_server%
    mongodb_db: %mongodb_db%_prod
```

Usage
=====

See the commands available by running 

```sh
app/console list mongrate
```

Contributing
============

Please submit pull requests on GitHub:
* [MongrateBundle](https://github.com/amyboyd/mongrate-bundle/pulls)
* [Mongrate](https://github.com/amyboyd/mongrate/pulls)

Install [PHP-CS-Fixer](https://github.com/fabpot/PHP-CS-Fixer):

```sh
sudo curl http://get.sensiolabs.org/php-cs-fixer.phar -o /usr/local/bin/php-cs-fixer
```

Install the Git pre-commit hook:

```sh
ln -s ../../resources/pre-commit .git/hooks/pre-commit
chmod a+x .git/hooks/pre-commit
```
{'fraction_non_alphanumeric': 0.16739044611133044, 'fraction_numerical': 0.0039478878799842085, 'mean_word_length': 4.268191268191268, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 10, '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': '1929092', 'n_tokens_mistral': 900, 'n_tokens_neox': 845, 'n_words': 180}