<commit_before>'use strict';

angular.module('noCAPTCHA', [])
  .service('googleGrecaptcha', ['$q', '$window', '$document', function GoogleGrecaptchaService($q, $window, $document) {
    var deferred = $q.defer();

    $window.recaptchaOnloadCallback = function () {
      deferred.resolve();
    };

    var s = $document.createElement('script');
    s.src = 'https://www.google.com/recaptcha/api.js?onload=recaptchaOnloadCallback&render=explicit';
    $document.body.appendChild(s);

    return deferred.promise;
  }])
  .provider('noCAPTCHA', function NoCaptchaProvider() {
    var siteKey,
      theme;

    this.setSiteKey = function(_siteKey){
      siteKey = _siteKey;
    };

    this.setTheme = function(_theme){
      theme = _theme;
    };

    this.$get = [function NoCaptchaFactory() {
      return {<commit_msg>$document is an array -- grab first element<commit_after>'use strict';

angular.module('noCAPTCHA', [])
  .service('googleGrecaptcha', ['$q', '$window', '$document', function GoogleGrecaptchaService($q, $window, $document) {
    var deferred = $q.defer();

    $window.recaptchaOnloadCallback = function () {
      deferred.resolve();
    };

    var s = $document[0].createElement('script');
    s.src = 'https://www.google.com/recaptcha/api.js?onload=recaptchaOnloadCallback&render=explicit';
    $document[0].body.appendChild(s);

    return deferred.promise;
  }])
  .provider('noCAPTCHA', function NoCaptchaProvider() {
    var siteKey,
      theme;

    this.setSiteKey = function(_siteKey){
      siteKey = _siteKey;
    };

    this.setTheme = function(_theme){
      theme = _theme;
    };

    this.$get = [function NoCaptchaFactory() {
      return {
{'fraction_non_alphanumeric': 0.1583629893238434, 'fraction_numerical': 0.0011862396204033216, 'mean_word_length': 3.609289617486339, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 2, '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': '4500806', 'n_tokens_mistral': 555, 'n_tokens_neox': 533, 'n_words': 92}