<commit_before>export default function(obj) {
  // non-recursive for the moment
  return Object.keys(obj).reduce(function(prev, item, i, arr) {
    if (obj[item] !== null) {
      return { ...prev, ...{ [item]: obj[item] } };
    }
    return prev;
  }, {});
}<commit_msg>Don't clone prev, there's no need<commit_after>export default function(obj) {
  // non-recursive for the moment
  return Object.keys(obj).reduce(function(prev, item, i, arr) {
    if (obj[item] !== null) {
      prev[item] = obj[item];
    }
    return prev;
  }, {});
}
{'fraction_non_alphanumeric': 0.18450184501845018, 'fraction_numerical': 0.0, 'mean_word_length': 3.145038167938931, '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': '5977774', 'n_tokens_mistral': 190, 'n_tokens_neox': 184, 'n_words': 45}