<commit_before>(in-package :net.acceleration.buildnode)

(defun net.acceleration.xul:groupbox-with-caption (caption-label &optional attributes &rest children)
  "creates a group box that contains a caption element with the appropriate label"
  (xul:groupbox attributes
					 (append (list (xul:caption (list :label caption-label)))
								children)))

(defun net.acceleration.xul:radiogroup-with-options (attributes options &optional selected-key)
  "takes a list of attributes for the radiogroup and then a list of options.  Options are specified as an alist (label . value) or string to use for both"
  (flet ((make-radio-attrs (label value)
			  (append
				(list :label label :value value)
				(if (equal label selected-key)<commit_msg>Groupbox-with-caption fixes<commit_after>(in-package :net.acceleration.buildnode)


(defun net.acceleration.xul:groupbox-with-caption (caption-label group-box-attributes caption-attributes &rest children)
  "creates a group box that contains a caption element with the appropriate label"
  (xul:groupbox group-box-attributes
					 (append (list (xul:caption (append caption-attributes (list :label caption-label))))
								children)))

(defun net.acceleration.xul:radiogroup-with-options (attributes options &optional selected-key)
  "takes a list of attributes for the radiogroup and then a list of options.  Options are specified as an alist (label . value) or string to use for both"
  (flet ((make-radio-attrs (label value)
			  (append
				(list :label label :value value)
				(if (equal label selected-key)
{'fraction_non_alphanumeric': 0.0945945945945946, 'fraction_numerical': 0.0, 'mean_word_length': 4.456140350877193, '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': '4478688', 'n_tokens_mistral': 505, 'n_tokens_neox': 441, 'n_words': 160}