<commit_before># Step2: Setup ReCaptcha Validation

## Config
Add the following to your config.
```yml
# app/config/config.yml
otten_validation:
    recaptcha:
        enabled: true #default true
        site_key: "your_recaptcha_site_key"
        secret_key: "your_recaptcha_secret_key"
```

## Usage
When creating a new form class add the following line to create the field:

```php
<?php<commit_msg>fix recaptcha usage doc<commit_after># Step2: Setup ReCaptcha Validation

## Config
Add the following to your config.
```yml
# app/config/config.yml
otten_validation:
    recaptcha:
        enabled: true #default true
        site_key: "your_recaptcha_site_key"
        secret_key: "your_recaptcha_secret_key"
```

## Usage
add `HasRecaptcha` trait to entity.
```php
// src/AppBundle/Entity/Task.php
namespace AppBundle\Entity;

use Otten\Bundle\ValidationBundle\Entity\Traits\HasRecaptcha;

class Task
{
    use HasRecaptcha;

    protected $task;

    public function getTask()
    {
        return $this->task;
    }

    public function setTask($task)
    {
        $this->task = $task;
    }
}
```

When creating a new form class add the following line to create the field:

```php
<?php
{'fraction_non_alphanumeric': 0.09966499162479062, 'fraction_numerical': 0.0016750418760469012, 'mean_word_length': 3.4756554307116105, 'pattern_counts': {'":': 0, '<': 5, '<?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': '2216428', 'n_tokens_mistral': 399, 'n_tokens_neox': 376, 'n_words': 111}