<commit_before>/** @module Helpers
 * Define some useful helpers that are used throughout the game.
 */
var Helpers = (function() {
  'use strict';
  /** Load a file (usually JSON).
   */
  var loadFile = function(filename) {
    var res;
    $.ajax({
      async: false,
      url : filename,
      success : function(data) {
        res = data;
      }
    });
    return res;
  };

  /** Format a number with proper postfix.
   */
  var formatNumberPostfix = function(number) {
    if (typeof number !== "number") {
      return -123;
    }
    var abs = Math.abs(number);
    if (abs >= Math.pow(10, 12)) {
      number = (number / Math.pow(10, 12)).toFixed(1) + "T";<commit_msg>Makes more sense this way.<commit_after>/** @module Helpers
 * Define some useful helpers that are used throughout the game.
 */
var Helpers = (function() {
  'use strict';
  /** Load a file (usually JSON).
   */
  var loadFile = function(filename) {
    var res;
    $.ajax({
      async: false,
      url : filename,
      success : function(data) {
        res = data;
      }
    });
    return res;
  };

  /** Format a number with proper postfix.
   */
  var formatNumberPostfix = function(number) {
    if (typeof number !== "number") {
      return 0;
    }
    var abs = Math.abs(number);
    if (abs >= Math.pow(10, 12)) {
      number = (number / Math.pow(10, 12)).toFixed(1) + "T";
{'fraction_non_alphanumeric': 0.14970930232558138, 'fraction_numerical': 0.015988372093023256, 'mean_word_length': 2.302158273381295, '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': '7168513', 'n_tokens_mistral': 456, 'n_tokens_neox': 435, 'n_words': 135}