<commit_before>VividCortex reCaptcha AngularJS Directive
=========================================

Use this directive to be able to submit with XHR a form that contains a reCaptcha.


Demo
----

See [the demo file](demo/usage.html) for an usage example.

Keep in mind that the captcha only works when used from a real domain and with a valid re-captcha key, so this file won't work if you just load it in your browser.


Usage
-----

First, you need to get a valid public key for your domain. See http://www.google.com/recaptcha.

Then, include the reCaptcha [API](https://developers.google.com/recaptcha/docs/display#AJAX) using this script in your HTML:

```html
<script src="https://www.google.com/recaptcha/api.js?onload=vcRecapthaApiLoaded&render=explicit" async defer></script>
```

_As you can see, we are specifying a __onload__ callback, wich will notify the angular service once the api is ready for usage._

Also include the vc-recaptcha script and make your angular app depend on the `vcRecaptcha` module.

```html<commit_msg>Fixed typo<commit_after>VividCortex reCaptcha AngularJS Directive
=========================================

Use this directive to be able to submit with XHR a form that contains a reCaptcha.


Demo
----

See [the demo file](demo/usage.html) for an usage example.

Keep in mind that the captcha only works when used from a real domain and with a valid re-captcha key, so this file won't work if you just load it in your browser.


Usage
-----

First, you need to get a valid public key for your domain. See http://www.google.com/recaptcha.

Then, include the reCaptcha [API](https://developers.google.com/recaptcha/docs/display#AJAX) using this script in your HTML:

```html
<script src="https://www.google.com/recaptcha/api.js?onload=vcRecapthaApiLoaded&render=explicit" async defer></script>
```

_As you can see, we are specifying a __onload__ callback, which will notify the angular service once the api is ready for usage._

Also include the vc-recaptcha script and make your angular app depend on the `vcRecaptcha` module.

```html
{'fraction_non_alphanumeric': 0.12042389210019268, 'fraction_numerical': 0.0, 'mean_word_length': 4.494708994708994, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 4, 'lorem ipsum': 0, 'www.': 4, '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': '6552978', 'n_tokens_mistral': 626, 'n_tokens_neox': 591, 'n_words': 264}