<commit_before>(in-package #:sdl2)

(defvar *hints*
  (let ((hints (make-hash-table :test #'eq)))
    (do-external-symbols (x :sdl2-ffi)
      (let* ((name (symbol-name x))
             (prefix (subseq name 1 (min (1- (length name)) 10))))
        (when (string= prefix "SDL-HINT-")
          (let* ((hint (subseq name 10 (1- (length name))))
                 (keyword (alexandria:make-keyword hint)))
            (setf (gethash keyword hints) hint)))))<commit_msg>Fix mistake in hints table.<commit_after>(in-package #:sdl2)

(defvar *hints*
  (let ((hints (make-hash-table :test #'eq)))
    (do-external-symbols (x :sdl2-ffi)
      (let* ((name (symbol-name x))
             (prefix (subseq name 1 (min (1- (length name)) 10))))
        (when (string= prefix "SDL-HINT-")
          (let* ((hint (subseq name 10 (1- (length name))))
                 (keyword (alexandria:make-keyword hint)))
            (setf (gethash keyword hints) (symbol-value x))))))
{'fraction_non_alphanumeric': 0.18200836820083682, 'fraction_numerical': 0.01882845188284519, 'mean_word_length': 2.5977443609022557, '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': '4641230', 'n_tokens_mistral': 344, 'n_tokens_neox': 324, 'n_words': 94}