<commit_before>(eval-when (:compile-toplevel :load-toplevel)
  (ql:quickload 'docutils))

(defpackage :coleslaw-rst
  (:use :cl)
  (:import-from :coleslaw #:render-content)
  (:import-from :cl-docutils #:read-rst
                             #:write-html)
  (:export #:enable))

(in-package :coleslaw-rst)

(defmethod render-content (text (format (eql :rst)))
  (with-output-to-string (str)
    (write-html str (read-rst text))))

(defun enable ())<commit_msg>Package fix to rst plugin.<commit_after>(eval-when (:compile-toplevel :load-toplevel)
  (ql:quickload 'docutils))

(defpackage :coleslaw-rst
  (:use :cl)
  (:import-from :coleslaw #:render-content)
  (:import-from :docutils #:read-rst
                          #:write-html)
  (:export #:enable))

(in-package :coleslaw-rst)

(defmethod render-content (text (format (eql :rst)))
  (with-output-to-string (str)
    (write-html str (read-rst text))))

(defun enable ())
{'fraction_non_alphanumeric': 0.17475728155339806, 'fraction_numerical': 0.0, 'mean_word_length': 3.549019607843137, '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': '752806', 'n_tokens_mistral': 358, 'n_tokens_neox': 335, 'n_words': 72}