<commit_before># Contains various useful Slime-related functions
module.exports =

  # Given an an abstract syntax tree,
  # parse out the package name!
  getPackage: (ast) ->
    for obj in ast.children
      if obj.type == "list"
        if obj.children.length >= 2
          if obj.children[0].source.toLowerCase() == "in-package"
            # Find the first children that's a symbol and return that
            for m in obj.children[1..]
              if m.type == "symbol"<commit_msg>Fixed error that occurs sometimes when no (in-package ...) is present at beginning of Lisp file<commit_after># Contains various useful Slime-related functions
module.exports =

  # Given an an abstract syntax tree,
  # parse out the package name!
  getPackage: (ast) ->
    for obj in ast.children
      if obj?.type == "list"
        if obj?.children.length >= 2
          if obj?.children[0]?.source?.toLowerCase() == "in-package"
            # Find the first children that's a symbol and return that
            for m in obj.children[1..]
              if m.type == "symbol"
{'fraction_non_alphanumeric': 0.10402999062792877, 'fraction_numerical': 0.005623242736644799, 'mean_word_length': 2.423076923076923, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '2981460', 'n_tokens_mistral': 296, 'n_tokens_neox': 292, 'n_words': 113}