<commit_before>const { cond, is, compose, map, join, T, toString } = require('ramda')
const { fromCharCode: char } = String

// Text formatters
const formatArgs = (arg, i) => `${char(i + 97)}: ${formatPred(arg)}`
const formatPred = cond([
  [is(Function), toString],
  [is(Object), ({ args, ret }) => `(${args.map(formatArgs)}) => ${JSON.stringify(ret)}`],
  [T, JSON.stringify]<commit_msg>🐛 Fix bug with no args for output function<commit_after>const { cond, is, compose, map, join, T, toString } = require('ramda')
const { fromCharCode: char } = String

// Text formatters
const formatArgs = (arg, i) => `${char(i + 97)}: ${formatPred(arg)}`
const formatPred = cond([
  [is(Function), toString],
  [is(Object), ({ args, ret }) => `(${[].concat(args).map(formatArgs)}) => ${JSON.stringify(ret)}`],
  [T, JSON.stringify]
{'fraction_non_alphanumeric': 0.21707317073170732, 'fraction_numerical': 0.004878048780487805, 'mean_word_length': 5.315384615384615, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, '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': '782670', 'n_tokens_mistral': 285, 'n_tokens_neox': 280, 'n_words': 75}