<commit_before>(ns clj-git.test.core-test
  (:require [clojure.java.io :as io]
            [clojure.test :refer :all])
  (:require [clj-git.core :as git] :reload-all))

(deftest parse-commit
  (time
   (testing "the first thousand commits can parse"
     (is (= 1000 (->> "/home/aar/src/elastic/elasticsearch"
                      git/load-repo
                      git/git-log
                      (take 1000)
                      count))))))<commit_msg>Get rid of that hardcoded dir<commit_after>(ns clj-git.test.core-test
  (:require [clojure.java.io :as io]
            [clojure.test :refer :all])
  (:require [clj-git.core :as git] :reload-all))

(deftest parse-commit
  (time
   (testing "the first thousand commits can parse"
     (is (= 1000 (->> (io/file
                       (System/getProperty "user.home")
                       "src" "elastic" "elasticsearch")
                      str
                      git/load-repo
                      git/git-log
                      (take 1000)
                      count))))))
{'fraction_non_alphanumeric': 0.13039309683604985, 'fraction_numerical': 0.015340364333652923, 'mean_word_length': 1.5096153846153846, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '1663009', 'n_tokens_mistral': 340, 'n_tokens_neox': 306, 'n_words': 74}