<commit_before>discard """
  targets: "c cpp"
"""

import macros

macro make_test_type(idents: varargs[untyped]): untyped =
  result = nnkStmtList.newTree()

  var ident_defs: seq[NimNode] = @[]
  for i in idents:
    ident_defs.add newIdentDefs(i, ident("int"))

  result.add newTree(nnkTypeSection,
    newTree(nnkTypeDef,
      ident("TestType"),
      newEmptyNode(),
      newTree(nnkObjectTy,
        newEmptyNode(),
        newEmptyNode(),
        newTree(nnkRecList,
          ident_defs
        )
      )
    )
  )

make_test_type(
  auto, bool, catch, char, class, const_cast, default, delete, double,<commit_msg>Add test for #6836 (#9602)<commit_after>discard """
  targets: "c cpp"
"""

import macros

macro make_test_type(idents: varargs[untyped]): untyped =
  result = nnkStmtList.newTree()

  var ident_defs: seq[NimNode] = @[]
  for i in idents:
    ident_defs.add newIdentDefs(i, ident("int"))

  result.add newTree(nnkTypeSection,
    newTree(nnkTypeDef,
      ident("TestType"),
      newEmptyNode(),
      newTree(nnkObjectTy,
        newEmptyNode(),
        newEmptyNode(),
        newTree(nnkRecList,
          ident_defs
        )
      )
    )
  )

make_test_type(
  auto, bool, catch, char, class, compl, const_cast, default, delete, double,
{'fraction_non_alphanumeric': 0.1240126382306477, 'fraction_numerical': 0.00631911532385466, 'mean_word_length': 3.1136363636363638, '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': '6874527', 'n_tokens_mistral': 467, 'n_tokens_neox': 450, 'n_words': 88}