<commit_before>;;; run-test.el -*- lexical-binding: t -*-

(require 'ert)
(require 'cl-lib)

(add-to-list 'load-path default-directory)
(require 'vendle)

(ert-deftest vendle-test-vendle-path ()
  (should vendle-directory)
  (should (string-equal vendle-directory (file-name-as-directory (expand-file-name "~/.emacs.d/vendle")))))

(cl-defun main ()
  (ert-run-tests-batch-and-exit))

;; Local Variables:
;; coding: utf-8
;; indent-tabs-mode: nil
;; End:
<commit_msg>* test/run-test.el: add initialize test<commit_after>;;; run-test.el -*- lexical-binding: t -*-

(require 'ert)
(require 'cl-lib)

(add-to-list 'load-path default-directory)
(require 'vendle)

(ert-deftest vendle-test-initialize ()
  (vendle:initialize)
  (should (string-equal vendle-directory (file-name-as-directory (expand-file-name "~/.emacs.d/vendle"))))
  (should (file-exists-p vendle-directory))
  (should (file-directory-p vendle-directory))
  (when (file-exists-p vendle-directory)
    (delete-directory vendle-directory 'recursive)))

(cl-defun main ()
  (ert-run-tests-batch-and-exit))

;; Local Variables:
;; coding: utf-8
;; indent-tabs-mode: nil
;; End:

{'fraction_non_alphanumeric': 0.18997361477572558, 'fraction_numerical': 0.001759014951627089, 'mean_word_length': 4.268518518518518, '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': '7510715', 'n_tokens_mistral': 430, 'n_tokens_neox': 424, 'n_words': 81}