<commit_before>import _ from 'lodash'
import util from '../util'

import { TASK_TYPE_LIST } from '../constants/task-type'

// task definition function
var list = function(path) {
  var type = TASK_TYPE_LIST

  var res = {
    type,
    params: {
    }
  }

  if (path !== undefined) {
    res['params']['path'] = path
  }
}

export default list<commit_msg>Use object destructuring for list path.<commit_after>import _ from 'lodash'
import util from '../util'

import { TASK_TYPE_LIST } from '../constants/task-type'

// task definition function
var list = function(path) {
  var type = TASK_TYPE_LIST

  return {
    type,
    params: {
      path
    }
  }
}

export default list
{'fraction_non_alphanumeric': 0.12352941176470589, 'fraction_numerical': 0.0, 'mean_word_length': 2.9593023255813953, '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': '5853826', 'n_tokens_mistral': 225, 'n_tokens_neox': 221, 'n_words': 63}