<commit_before>#|
This file is a part of rsbag-renderer
Author: <NAME> <<EMAIL>>
|#

(in-package #:rsbag-renderer)

(defun start ()
  (start-listener 8080)
  )

(defun stop ()
  (stop-listener 8080)
  (dolist (source (list-sources))
    (close-source source)))
<commit_msg>Automatic opening/closing of sources<commit_after>#|
This file is a part of rsbag-renderer
Author: <NAME> <<EMAIL>>
|#

(in-package #:rsbag-renderer)

(defun start ()
  (start-listener 8080)
  (dolist (file (uiop:directory-files (resource "source/")))
    (when (string-equal (pathname-type file) "tide")
      (open-source :file file))))

(defun stop (&key quit)
  (stop-listener 8080)
  (dolist (source (list-sources))
    (close-source source))
  (when quit
    (uiop:quit)))

{'fraction_non_alphanumeric': 0.16489361702127658, 'fraction_numerical': 0.02127659574468085, 'mean_word_length': 4.157534246575342, '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': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4754748', 'n_tokens_mistral': 297, 'n_tokens_neox': 281, 'n_words': 73}