<commit_before>module.exports = (list, key, value, walk) => {
  let i = 0
  let depth = 1
  let ref = {}
  // optimize the shallowness as much as possible
  while (i < walk.length) {
    if (!list[walk[i]]) {
      i = 2 * depth
      depth++
    } else {
      ref = list[walk[i]]
      i++
    }
  }
  if (!ref.dependencies) ref.dependencies = {}
  ref.dependencies[key] = value
}<commit_msg>add ToDo comment<commit_after>module.exports = (list, key, value, walk) => {
  let i = 0
  let depth = 1
  let ref = {}
  // optimize the shallowness as much as possible
  // @ToDo should check the version as well
  while (i < walk.length) {
    if (!list[walk[i]]) {
      i = 2 * depth
      depth++
    } else {
      ref = list[walk[i]]
      i++
    }
  }
  if (!ref.dependencies) ref.dependencies = {}
  ref.dependencies[key] = value
}
{'fraction_non_alphanumeric': 0.1497005988023952, 'fraction_numerical': 0.00718562874251497, 'mean_word_length': 2.3306772908366535, 'pattern_counts': {'":': 0, '<': 5, '<?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': '3175333', 'n_tokens_mistral': 302, 'n_tokens_neox': 288, 'n_words': 85}