<commit_before>(ns runbld.test.build-test
  (:require [clojure.test :refer :all]
            [schema.test])
  (:require [runbld.build :as build] :reload-all))

(use-fixtures :once schema.test/validate-schemas)

(deftest basic
  (is
   (= {:branch "master"
       :job-name "elastic+elasticsearch+master+multijob-intake"
       :job-name-extra "multijob-intake"
       :org "elastic"
       :org-project-branch "elastic/elasticsearch#master"
       :project "elasticsearch"}
      (build/split-job-name
       "elastic+elasticsearch+master+multijob-intake"))))<commit_msg>clojure.spec was throwing classcastexceptions on this<commit_after>(ns runbld.test.build-test
  (:require [clojure.test :refer :all]
            [runbld.build :as build]
            [schema.test :as s]))

(use-fixtures :once schema.test/validate-schemas)

(deftest basic
  (is
   (= {:branch "master"
       :job-name "elastic+elasticsearch+master+multijob-intake"
       :job-name-extra "multijob-intake"
       :org "elastic"
       :org-project-branch "elastic/elasticsearch#master"
       :project "elasticsearch"}
      (build/split-job-name
       "elastic+elasticsearch+master+multijob-intake"))))
{'fraction_non_alphanumeric': 0.14212765957446807, 'fraction_numerical': 0.0, 'mean_word_length': 3.388059701492537, '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': '5373045', 'n_tokens_mistral': 401, 'n_tokens_neox': 395, 'n_words': 68}