<commit_before>/* Column module */

function getNestedValue (obj, keys) {
  if (keys.length == 1) {
    return obj[keys[0]];
  }
  return getNestedValue(obj[keys[0]], keys.splice(1));
}

function getKeyFromObject(obj, key) {
  var value = obj[key];

  if ((!_.include(obj, key) && _.string.include(key, '.'))) {
    var keys = key.split(".");

    value = getNestedValue(obj, keys);
  }

  return value;<commit_msg>Fix: getKeyFromObject was failing if key had dot in name<commit_after>/* Column module */

function getNestedValue (obj, keys) {
  if (keys.length == 1) {
    return obj[keys[0]];
  }
  return getNestedValue(obj[keys[0]], keys.splice(1));
}

function getKeyFromObject(obj, key) {
  var value = obj[key];

  if ((!_.has(obj, key) && _.string.include(key, '.'))) {
    var keys = key.split(".");

    value = getNestedValue(obj, keys);
  }

  return value;
{'fraction_non_alphanumeric': 0.1806674338319908, 'fraction_numerical': 0.009205983889528193, 'mean_word_length': 3.7282608695652173, 'pattern_counts': {'":': 0, '<': 3, '<?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': '1866392', 'n_tokens_mistral': 320, 'n_tokens_neox': 308, 'n_words': 74}