<commit_before>(ns instaparse-c.comment
  (:refer-clojure :exclude [cat comment])
  (:require 
   [instaparse.combinators :refer :all]
   [instaparse-c.util :refer :all]))

(def comment
  {:c11/comment (altnt :c11.comment/mutliple-lines
                       :c11.comment/single-line)
   :c11.comment/mutliple-lines
   (cat (hs "/*")
        (regexp "([\\s\\S])*?(?=\\*/)")
        (hs "*/"))
   :c11.comment/single-line
   (cat (hs "//")
        (regexp ".*")
        (hs "\n"))})
<commit_msg>Autowhitespace would sneak in and cause ambiguity<commit_after>(ns instaparse-c.comment
  (:refer-clojure :exclude [cat comment])
  (:require 
   [instaparse.combinators :refer :all]
   [instaparse-c.util :refer :all]))

(def comment
  {:c11/comment (altnt :c11.comment/mutliple-lines
                       :c11.comment/single-line)
   :c11.comment/mutliple-lines
   (regexp "/\\*([\\s\\S])*?(?=\\*/)\\*/")
   :c11.comment/single-line
   (cat (hs "//")
        (regexp ".*")
        (hs "\n"))})

{'fraction_non_alphanumeric': 0.20967741935483872, 'fraction_numerical': 0.020161290322580645, 'mean_word_length': 2.472027972027972, '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': '5082120', 'n_tokens_mistral': 397, 'n_tokens_neox': 379, 'n_words': 65}