<commit_before>(defpackage #:3bmd-grammar
  (:use :cl :esrap)
  (:export #:parse-doc
           ;; possibly should export some symbols for direct parsing too?
           ;; #:doc #:block
           #:*smart-quotes*
           #:define-extension-inline
           ))

(defpackage #:3bmd
  (:use :cl :3bmd-grammar)
  (:export #:parse-string
           #:parse-string-and-print-to-stream
           #:parse-and-print-to-stream
           #:print-doc-to-stream
           #:*smart-quotes*
           ))


(defpackage #:3bmd-ext
  (:use :cl :3bmd-grammar)
  (:import-from :3bmd
                3bmd::print-label-to-string
                3bmd::print-tagged-element
                3bmd::print-element)
  (:export #:define-extension-inline
           #:print-label-to-string
           #:print-tagged-element
           #:print-element
           ))
<commit_msg>export some more symbols for extensions<commit_after>(defpackage #:3bmd-grammar
  (:use :cl :esrap)
  (:export #:parse-doc
           ;; some rules which might be interesting to parse directly,
           ;; or as reference points for specifying where to add
           ;; extension rules
           ;; todo: add more...
           #:block
           #:string
           #:emph
           ;; normal API stuff
           #:*smart-quotes*
           #:define-extension-inline
           ))

(defpackage #:3bmd
  (:use :cl :3bmd-grammar)
  (:export #:parse-string
           #:parse-string-and-print-to-stream
           #:parse-and-print-to-stream
           #:print-doc-to-stream
           #:*smart-quotes*
           ))


(defpackage #:3bmd-ext
  (:use :cl :3bmd-grammar)
  (:import-from :3bmd
                3bmd::print-label-to-string
                3bmd::print-tagged-element
                3bmd::print-element
                3bmd::expand-tabs)
  (:export #:define-extension-inline
           #:print-label-to-string
           #:print-tagged-element
           #:print-element
           #:expand-tabs
           ))

{'fraction_non_alphanumeric': 0.1332660272589601, 'fraction_numerical': 0.009591115598182737, 'mean_word_length': 1.6747638326585694, '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': '2675980', 'n_tokens_mistral': 640, 'n_tokens_neox': 592, 'n_words': 117}