<commit_before>Util = {
  //delete prop from obj
  //prop can be something like "obj.3.badprop
  deepDelete: function(obj, prop){
    return Utilities.deepDo(obj, prop, function(obj, prop){
      delete obj[prop];
    });
  },
  deepSet: function(obj, prop, value){
    return Utilities.deepDo(obj, prop, function(obj, prop){
      obj[prop] = value;
    });
  },
  //returns the object that CONTAINS the last property
  deepFind: function(obj, prop){
    path = path.split('.');
    for (i = 0; i < path.length - 1; i++)
      obj = obj[path[i]];

    return obj;
  },
  //executes closure(obj, prop) where prop might be a string of properties and array indices
  deepDo: function(obj, path, closure){
    path = path.split('.');
    for (i = 0; i < path.length - 1; i++)<commit_msg>change misspelled utils-name<commit_after>Util = {
  //delete prop from obj
  //prop can be something like "obj.3.badprop
  deepDelete: function(obj, prop){
    return Util.deepDo(obj, prop, function(obj, prop){
      delete obj[prop];
    });
  },
  deepSet: function(obj, prop, value){
    return Util.deepDo(obj, prop, function(obj, prop){
      obj[prop] = value;
    });
  },
  //returns the object that CONTAINS the last property
  deepFind: function(obj, prop){
    path = path.split('.');
    for (i = 0; i < path.length - 1; i++)
      obj = obj[path[i]];

    return obj;
  },
  //executes closure(obj, prop) where prop might be a string of properties and array indices
  deepDo: function(obj, path, closure){
    path = path.split('.');
    for (i = 0; i < path.length - 1; i++)
{'fraction_non_alphanumeric': 0.1519389701207883, 'fraction_numerical': 0.006357279084551812, 'mean_word_length': 2.974747474747475, 'pattern_counts': {'":': 0, '<': 7, '<?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': '6571181', 'n_tokens_mistral': 525, 'n_tokens_neox': 517, 'n_words': 167}