<commit_before>import moment from 'moment';

let ComponentHelpers = {

  bindAll: function(scope, arr){
    arr.forEach(function(method){
      scope[method] = scope[method].bind(scope);
    })
  },

  // 'DRIVER_NOT_RUNNING' => 'Driver not running'
  humanizeText: function(string){
    if (!string){
      return '';
    }
    string = string.replace(/_/g, ' ');
    string = string.toLowerCase();
    string = string[0].toUpperCase() + string.substr(1)
    return string
  },

  // 12345 => 12 seconds
  timestampDuration: function (timestamp){<commit_msg>use underscore instead<commit_after>import moment from 'moment';

let ComponentHelpers = {

  // 'DRIVER_NOT_RUNNING' => 'Driver not running'
  humanizeText: function(string){
    if (!string){
      return '';
    }
    string = string.replace(/_/g, ' ');
    string = string.toLowerCase();
    string = string[0].toUpperCase() + string.substr(1)
    return string
  },

  // 12345 => 12 seconds
  timestampDuration: function (timestamp){
{'fraction_non_alphanumeric': 0.1492985971943888, 'fraction_numerical': 0.018036072144288578, 'mean_word_length': 3.4008810572687223, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '1882848', 'n_tokens_mistral': 319, 'n_tokens_neox': 309, 'n_words': 67}