<commit_before>(function() {
  scripts = [
    'components/lodash/index.js',
    'components/jquery/index.js',
    'components/iscroll/index.js',
    'components/iscroll-sticky/index.js',
    'components/angular/index.js',
    'components/angular-ui-router/index.js',
    'dist/bradypodion.js'
  ];

  if (typeof module !== 'undefined' && module.exports) {
    module.exports.scripts = scripts;
  } else {

    scripts = scripts.map(function (script) {
      return '../../../../'+script;
    });

    if (!/phantom/i.test(navigator.userAgent) && document.location.protocol !== 'file:') {
      scripts.push(window.location.protocol + '//' + window.location.hostname + ':35729/livereload.js');
    } else {
      console.warn('Bradypodion: "Serve this site from a webserver to enable livereload."');
    }

    (function load(i){
      var s  = document.createElement('script');
      s.type = 'text/javascript';
      s.src  = scripts[i];
      s.addEventListener('load', function(e){
        i++;
        if (scripts[i]) {
          load(i);
        } else if (typeof finalLoad === 'function'){
          finalLoad();
        }
      });
      if (/livereload/.test(scripts[i])) {
        s.addEventListener('error', function(e){
          console.warn('Bradypodion: "Run `grunt dev` in your terminal to enable livereload."');
          if (typeof finalLoad === 'function'){
            finalLoad();
          }<commit_msg>chore(deps): extract path from document<commit_after>(function() {
  scripts = [
    'components/lodash/index.js',
    'components/jquery/index.js',
    'components/iscroll/index.js',
    'components/iscroll-sticky/index.js',
    'components/angular/index.js',
    'components/angular-ui-router/index.js',
    'dist/bradypodion.js'
  ];

  if (typeof module !== 'undefined' && module.exports) {
    module.exports.scripts = scripts;
  } else {

    var pathDeepness = document.querySelector('script').attributes.src.nodeValue.replace('deps.js','');
    scripts = scripts.map(function (script) {
      return pathDeepness+script;
    });

    if (!/phantom/i.test(navigator.userAgent) && document.location.protocol !== 'file:') {
      scripts.push(window.location.protocol + '//' + window.location.hostname + ':35729/livereload.js');
    } else {
      console.warn('Bradypodion: "Serve this site from a webserver to enable livereload."');
    }

    (function load(i){
      var s  = document.createElement('script');
      s.type = 'text/javascript';
      s.src  = scripts[i];
      s.addEventListener('load', function(e){
        i++;
        if (scripts[i]) {
          load(i);
        } else if (typeof finalLoad === 'function'){
          finalLoad();
        }
      });
      if (/livereload/.test(scripts[i])) {
        s.addEventListener('error', function(e){
          console.warn('Bradypodion: "Run `grunt dev` in your terminal to enable livereload."');
          if (typeof finalLoad === 'function'){
            finalLoad();
          }
{'fraction_non_alphanumeric': 0.16924110141034251, 'fraction_numerical': 0.0033579583613163196, 'mean_word_length': 2.6373626373626373, 'pattern_counts': {'":': 0, '<': 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': '2151316', 'n_tokens_mistral': 929, 'n_tokens_neox': 897, 'n_words': 167}