<commit_before>(ns infinitelives.utils.string-test
  (:require [cljs.test :refer-macros [deftest is]]
            [infinitelives.utils.string :as string]))


(deftest ends-with?
  (is (string/ends-with? "test string.ext" ".ext"))
  (is (string/ends-with? "inside.ext.outside.ext" ".ext"))
  (is (not (string/ends-with? "inside.ext.outside.not" ".ext"))))

(deftest starts-with?
  (is (string/starts-with? "test string.ext" "test"))
  (is (string/starts-with? "test string test.ext" "test"))
  (is (not (string/starts-with? "test string.ext" "est"))))

(deftest url-keyword
  (is (string/url-keyword "http://domain.com/path/to/file.ext") :file))

(deftest get-extension
  (is (string/get-extension "http://domain.com/path/to/file.ext") ".ext)"))<commit_msg>missing ='s<commit_after>(ns infinitelives.utils.string-test
  (:require [cljs.test :refer-macros [deftest is]]
            [infinitelives.utils.string :as string]))


(deftest ends-with?
  (is (string/ends-with? "test string.ext" ".ext"))
  (is (string/ends-with? "inside.ext.outside.ext" ".ext"))
  (is (not (string/ends-with? "inside.ext.outside.not" ".ext"))))

(deftest starts-with?
  (is (string/starts-with? "test string.ext" "test"))
  (is (string/starts-with? "test string test.ext" "test"))
  (is (not (string/starts-with? "test string.ext" "est"))))

(deftest url-keyword
  (is (= (string/url-keyword "http://domain.com/path/to/file.ext") :file)))

(deftest get-extension
  (is (= (string/get-extension "http://domain.com/path/to/file.ext") "ext")))
{'fraction_non_alphanumeric': 0.21108179419525067, 'fraction_numerical': 0.0, 'mean_word_length': 4.142372881355932, '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': '4542974', 'n_tokens_mistral': 590, 'n_tokens_neox': 577, 'n_words': 114}