<commit_before>/* global app, _, sidebarApp*/
/**
 * Talkilla utilities.
 */
(function(app, _) {
  "use strict";

  /**
   * Returns a human readable format.
   *
   * @param {Integer} size Size in bytes.
   */
  app.utils.humanSize = function(size) {
    var units = ['B', 'KB', 'MB', 'GB', 'TB', 'PB', 'EB', 'ZB', 'YB'];
    var i = 0;
    while(size >= 1024) {
      size /= 1024;
      ++i;
    }
    return size.toFixed(1) + ' ' + units[i];
  };

  /**
   * Simple audio library.
   *
   * Usage:
   *
   *   var audioLibrary = new AudioLibrary({foo: 'foo.ogg', bar: 'bar.ogg'});
   *   audioLibrary.play('foo'); // plays foo.ogg
   *   audioLibrary.play('bar'); // plays bar.ogg
   *   audioLibrary.play('foo', 'bar'); // plays foo.ogg and bar.ogg<commit_msg>Utils: fix minor coding style typo<commit_after>/* global app, _, sidebarApp*/
/**
 * Talkilla utilities.
 */
(function(app, _) {
  "use strict";

  /**
   * Returns a human readable format.
   *
   * @param {Integer} size Size in bytes.
   */
  app.utils.humanSize = function(size) {
    var units = ['B', 'KB', 'MB', 'GB', 'TB', 'PB', 'EB', 'ZB', 'YB'];
    var i = 0;
    while (size >= 1024) {
      size /= 1024;
      ++i;
    }
    return size.toFixed(1) + ' ' + units[i];
  };

  /**
   * Simple audio library.
   *
   * Usage:
   *
   *   var audioLibrary = new AudioLibrary({foo: 'foo.ogg', bar: 'bar.ogg'});
   *   audioLibrary.play('foo'); // plays foo.ogg
   *   audioLibrary.play('bar'); // plays bar.ogg
   *   audioLibrary.play('foo', 'bar'); // plays foo.ogg and bar.ogg
{'fraction_non_alphanumeric': 0.20425257731958762, 'fraction_numerical': 0.01288659793814433, 'mean_word_length': 2.4282560706401766, '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': '1503699', 'n_tokens_mistral': 592, 'n_tokens_neox': 557, 'n_words': 139}