<commit_before>import traverse from 'traverse'
import isPromise from 'is-promise'

export default deepResolve

function deepResolve (obj) {
  var t = traverse(obj);
  var promises = t.paths()
    .map(path => ({path, node: t.get(path)}))
    .filter(({path, node}) => isPromise(node))<commit_msg>src/index.js - export arrow function<commit_after>import traverse from 'traverse'
import isPromise from 'is-promise'

export default obj => {
  var t = traverse(obj);
  var promises = t.paths()
    .map(path => ({path, node: t.get(path)}))
    .filter(({path, node}) => isPromise(node))
{'fraction_non_alphanumeric': 0.15979381443298968, 'fraction_numerical': 0.0, 'mean_word_length': 4.552380952380952, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 8, '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': '5579252', 'n_tokens_mistral': 193, 'n_tokens_neox': 190, 'n_words': 53}