<commit_before>clone = (data) ->
  if data instanceof Array
    copy = (v for v in data)
  else
    copy = {}
    copy[k] = v for k,v of data
  copy

getArgumentNames = (fn=->) ->
  args = fn.toString().match ///
    function    # start with 'function'
    [^(]*       # any character but not '('
    \(          # open bracket = '(' character
      ([^)]*)   # any character but not ')'
    \)          # close bracket = ')' character
  ///
  return [] if not args? or (args.length < 2)<commit_msg>support String.trim method for older browsers<commit_after>clone = (data) ->
  if data instanceof Array
    copy = (v for v in data)
  else
    copy = {}
    copy[k] = v for k,v of data
  copy

# support older browsers
if not String::trim?
  String::trim = -> @replace(/^\s\s*/, '').replace(/\s\s*$/, '')

getArgumentNames = (fn=->) ->
  args = fn.toString().match ///
    function    # start with 'function'
    [^(]*       # any character but not '('
    \(          # open bracket = '(' character
      ([^)]*)   # any character but not ')'
    \)          # close bracket = ')' character
  ///
  return [] if not args? or (args.length < 2)
{'fraction_non_alphanumeric': 0.17162872154115585, 'fraction_numerical': 0.0017513134851138354, 'mean_word_length': 2.114441416893733, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 10, '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': '2681797', 'n_tokens_mistral': 375, 'n_tokens_neox': 359, 'n_words': 113}