<commit_before>;;;;; Case Classes

;;; Scala-like case classes:
;;;
;;;  (defcaseclass <maybe>
;;;    (<just> x)
;;;    (<nothing>))

(defmacro defcaseclass (name @cases)
  `(progn
     (defclass ,name)
     ,@(map (lambda (c) 
              `(defclass (,(first c) ,name) ,@(rest c)))
            cases)))

(defmacro defcaseclass (name @cases)
  (--append (--compound (--symbol "progn")
                        (--compound (--symbol "defclass")
                                    name))
            (map (lambda (c)
                   (--append (--compound (--symbol "defclass")
                                         (--compound (first c) name))
                             (rest c)))
                 cases)))
<commit_msg>misc stuff<commit_after>;;;;; Case Classes

;;; Scala-like case classes:
;;;
;;;  (defcaseclass <maybe>
;;;    (<just> x)
;;;    (<nothing>))

(defmacro defcaseclass (name @cases)
  `(progn
     (defclass ,name)
     ,@(map (lambda (c) 
              `(defclass (,(first c) ,name) ,@(rest c)))
            cases)))
{'fraction_non_alphanumeric': 0.1871401151631478, 'fraction_numerical': 0.0, 'mean_word_length': 1.6743589743589744, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 3, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '782770', 'n_tokens_mistral': 346, 'n_tokens_neox': 328, 'n_words': 83}