<commit_before>traverse = require 'traverse'

module.exports = (KONFIG) ->

  traverse.forEach KONFIG, (node) ->
    return  if typeof node is 'object'

    if val = process.env["KONFIG_#{@path.join '_'}"]
      try val = JSON.parse val

    return val or node<commit_msg>inheritEnvVars: KONFIG path toUpperCase<commit_after>traverse = require 'traverse'

module.exports = (KONFIG) ->

  traverse.forEach KONFIG, (node) ->
    return  if typeof node is 'object'

    if val = process.env["KONFIG_#{@path.join '_'}".toUpperCase()]
      try val = JSON.parse val

    return val or node
{'fraction_non_alphanumeric': 0.1267123287671233, 'fraction_numerical': 0.0, 'mean_word_length': 3.4656488549618323, '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': '5497254', 'n_tokens_mistral': 199, 'n_tokens_neox': 196, 'n_words': 53}