<commit_before>/* jshint node: true */
'use strict';

module.exports = {
  name: 'ember-cli-doorbell',
  contentFor: function(type, config) {
    var apiKey = config.APP.DOORBELL_APIKEY

    if (apiKey && type === 'body-footer') {
      return '<script type="text/javascript">' +
        'window.doorbellOptions = { appKey: apiKey };' +
        '(function(w, d, t) {' +
        ' function l() { window.doorbellOptions.windowLoaded = true;' +
        ' var g = d.createElement(t);g.id = \'doorbellScript\';g.type = \'text/javascript\';' +
        ' g.async = true;g.src = \'https://embed.doorbell.io/button/3744?t=\'+(new Date().getTime());' +
        ' (d.getElementsByTagName(\'head\')[0]||d.getElementsByTagName(\'body\')[0]).appendChild(g); }' +
        ' if (w.attachEvent) { w.attachEvent(\'onload\', l); } else if (w.addEventListener) { ' +
        ' w.addEventListener(\'load\', l, false); } else { l(); }' +
        '}(window, document, \'script\'));' +
      '</script>';
    }
  }
};<commit_msg>apiKey is a variable<commit_after>/* jshint node: true */
'use strict';

module.exports = {
  name: 'ember-cli-doorbell',
  contentFor: function(type, config) {
    var apiKey = config.APP.DOORBELL_APIKEY

    if (apiKey && type === 'body-footer') {
      return '<script type="text/javascript">' +
        'window.doorbellOptions = { appKey: ' + apiKey + ' };' +
        '(function(w, d, t) {' +
        ' function l() { window.doorbellOptions.windowLoaded = true;' +
        ' var g = d.createElement(t);g.id = \'doorbellScript\';g.type = \'text/javascript\';' +
        ' g.async = true;g.src = \'https://embed.doorbell.io/button/3744?t=\'+(new Date().getTime());' +
        ' (d.getElementsByTagName(\'head\')[0]||d.getElementsByTagName(\'body\')[0]).appendChild(g); }' +
        ' if (w.attachEvent) { w.attachEvent(\'onload\', l); } else if (w.addEventListener) { ' +
        ' w.addEventListener(\'load\', l, false); } else { l(); }' +
        '}(window, document, \'script\'));' +
      '</script>';
    }
  }
};
{'fraction_non_alphanumeric': 0.2222222222222222, 'fraction_numerical': 0.005925925925925926, 'mean_word_length': 2.896153846153846, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 2, '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': '386699', 'n_tokens_mistral': 721, 'n_tokens_neox': 704, 'n_words': 119}