<commit_before>// ==UserScript==
// @name        Armies Generation Avg
// @namespace   http://github.com/Nasga/hyperiums-greasemonkey/
// @require     http://ajax.googleapis.com/ajax/libs/jquery/2.0.3/jquery.min.js
// @include    http://hyp2.hyperiums.com/servlet/Fleets?pagetype=factories
// @version     12
// @grant       none
// ==/UserScript==

/* global $:false */

"use strict";


var GaGenSum = 0;
var planets = 0;
var race = {
  human: {
    sum:0,
    avg:0,
    planets:0
  },
  azterk: {
    sum:0,
    avg:0,
    planets:0
  },
  xillor: {
    sum:0,
    avg:0,
    planets:0
  }
};
var spans = $( "span" );
$('body')
  .find("TD:contains('- Human -') SPAN.highlight")
  .each(function(idx, elt) {
    GaGenSum += parseFloat($(elt).text());
    planets++;
    race.human.planets ++;
    race.human.sum += parseFloat($(elt).text());
  }
);

// filter(function(){ return $(this).text().toLowerCase() === 'test';})
var Aobjs=
$('body')
    .find("TD:contains('- Azterk -') SPAN.highlight")
    .each(function(idx, elt) {
      GaGenSum += parseInt($(elt).text());
      planets++;
      race.azterk.planets ++;
      race.azterk.sum += parseInt($(elt).text());
    }
);
$('body')
  .find("TD:contains('- Xillor -') SPAN.highlight")
  .each(function(idx, elt) {
    GaGenSum += parseInt($(elt).text());
    planets++;
    race.xillor.planets ++;
    race.xillor.sum += parseInt($(elt).text());
  }
);

if (race.human.sum > 0) {
  race.human.avg = Math.round((race.human.sum / race.human.planets)*10)/10;
}<commit_msg>removed '- ' in front of race<commit_after>// ==UserScript==
// @name        Armies Generation Avg
// @namespace   http://github.com/Nasga/hyperiums-greasemonkey/
// @require     http://ajax.googleapis.com/ajax/libs/jquery/2.0.3/jquery.min.js
// @include    http://hyp2.hyperiums.com/servlet/Fleets?pagetype=factories
// @version     13
// @grant       none
// ==/UserScript==

/* global $:false */

"use strict";


var GaGenSum = 0;
var planets = 0;
var race = {
  human: {
    sum:0,
    avg:0,
    planets:0
  },
  azterk: {
    sum:0,
    avg:0,
    planets:0
  },
  xillor: {
    sum:0,
    avg:0,
    planets:0
  }
};
var spans = $( "span" );
$('body')
  .find("TD:contains('Human -') SPAN.highlight")
  .each(function(idx, elt) {
    GaGenSum += parseFloat($(elt).text());
    planets++;
    race.human.planets ++;
    race.human.sum += parseFloat($(elt).text());
  }
);

// filter(function(){ return $(this).text().toLowerCase() === 'test';})
var Aobjs=
$('body')
    .find("TD:contains('Azterk -') SPAN.highlight")
    .each(function(idx, elt) {
      GaGenSum += parseInt($(elt).text());
      planets++;
      race.azterk.planets ++;
      race.azterk.sum += parseInt($(elt).text());
    }
);
$('body')
  .find("TD:contains('Xillor -') SPAN.highlight")
  .each(function(idx, elt) {
    GaGenSum += parseInt($(elt).text());
    planets++;
    race.xillor.planets ++;
    race.xillor.sum += parseInt($(elt).text());
  }
);

if (race.human.sum > 0) {
  race.human.avg = Math.round((race.human.sum / race.human.planets)*10)/10;
}
{'fraction_non_alphanumeric': 0.22142390594382758, 'fraction_numerical': 0.014369693011103853, 'mean_word_length': 2.8479899497487438, 'pattern_counts': {'":': 0, '<': 3, '<?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': '4893747', 'n_tokens_mistral': 1207, 'n_tokens_neox': 1187, 'n_words': 185}