<commit_before>ValidationBundle
=============

This Symfony2 bundle includes bad words validation based on blacklists. The english blacklist provided comes from [here](http://photos.ramseym.com/pictures/blog/badwords_for_facebook_pages.txt).

Installation
------------

Use Composer to install: ``tuxone/validation-bundle``.

In your ``composer.json`` you should have:

``` yaml
    {
        "require": {
            "tuxone/validation-bundle": "dev-master"
        }
    }

Usage
------------

Using validation.yml 

``` yaml
Acme\DemoBundle\Entity\Message:
  getters:
    text:
      - TuxOne\ValidationBundle\Validator\Constraints\ContainsBadWords: ~<commit_msg>README details<commit_after>ValidationBundle
=============

This Symfony2 bundle includes bad words validation based on blacklists. The english blacklist provided comes from [here](http://photos.ramseym.com/pictures/blog/badwords_for_facebook_pages.txt).

Installation
------------

Use Composer to install: ``tuxone/validation-bundle``.

In your ``composer.json`` you should have:

``` yaml
    {
        "require": {
            "tuxone/validation-bundle": "dev-master"
        }
    }
```

Usage
------------

Using validation.yml 

``` yaml
Acme\DemoBundle\Entity\Message:
  getters:
    text:
      - TuxOne\ValidationBundle\Validator\Constraints\ContainsBadWords: ~
```
{'fraction_non_alphanumeric': 0.15958240119313946, 'fraction_numerical': 0.0014914243102162564, 'mean_word_length': 3.1677018633540373, 'pattern_counts': {'":': 4, '<': 3, '<?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': '692325', 'n_tokens_mistral': 415, 'n_tokens_neox': 388, 'n_words': 85}