<commit_before>
import json, tables, sequtils

proc run(json_params: Table) =
  let json_elems = json_params["files"].elems
  # These fail compilation.
  var files = map(json_elems, proc (x: JsonNode): string = x.str)
  #var files = json_elems.map do (x: JsonNode) -> string: x.str
  echo "Hey!"

when isMainModule:
  let text = """{"files": ["a", "b", "c"]}"""
  run((text.parseJson).fields)<commit_msg>make tests green again<commit_after>
import json, tables, sequtils

proc run(json_params: OrderedTable) =
  let json_elems = json_params["files"].elems
  # These fail compilation.
  var files = map(json_elems, proc (x: JsonNode): string = x.str)
  #var files = json_elems.map do (x: JsonNode) -> string: x.str
  echo "Hey!"

when isMainModule:
  let text = """{"files": ["a", "b", "c"]}"""
  run((text.parseJson).fields)
{'fraction_non_alphanumeric': 0.16747572815533981, 'fraction_numerical': 0.0, 'mean_word_length': 4.574324324324325, 'pattern_counts': {'":': 2, '<': 3, '<?xml version=': 0, '>': 5, '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': '1048246', 'n_tokens_mistral': 296, 'n_tokens_neox': 294, 'n_words': 84}