<commit_before>;;;; macro.lisp --- macros used in nEXT

(in-package :next)

;; used to provide input to buffers, "function" must accept input from
;; the minibuffer
(defmacro :input (minibuffer function)
  `#'(lambda () (input (mode ,minibuffer) #',function)))

;; used to provide input to buffers with an optional completion
;; function, the completion function must narrow a list of candidates
;; when given input
(defmacro :input-complete (minibuffer function completion)
  `#'(lambda () (input (mode ,minibuffer) #',function #',completion)))
<commit_msg>created macro for creating parenscripts<commit_after>;;;; macro.lisp --- macros used in nEXT

(in-package :next)

;; used to provide input to buffers, "function" must accept input from
;; the minibuffer
(defmacro :input (minibuffer function)
  `#'(lambda () (input (mode ,minibuffer) #',function)))

;; used to provide input to buffers with an optional completion
;; function, the completion function must narrow a list of candidates
;; when given input
(defmacro :input-complete (minibuffer function completion)
  `#'(lambda () (input (mode ,minibuffer) #',function #',completion)))

;; used to allow inlining of parenscript compilation in a lisp file.
;; with the syntax (defparen name) allows definition of a paren
;; to some constant of name "name"
(defmacro defparen (script-name &rest script-body)
  `(defparameter ,script-name
     (ps:ps ,@script-body)))

{'fraction_non_alphanumeric': 0.12315270935960591, 'fraction_numerical': 0.0, 'mean_word_length': 5.26431718061674, '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': '4083203', 'n_tokens_mistral': 408, 'n_tokens_neox': 397, 'n_words': 168}