<commit_before>(ns haystack.repo
  (:require [clojurewerkz.elastisch.rest :as esr] ;; for connect
            [haystack.query :as query]
            ))

;; (def srv "http://192.168.0.220:9201")
;; (def srv "http://192.168.0.220:9200")
;; (def srv "http://gandalf-the-white:9200")
(def srv (or (System/getenv "ELASTICSEARCH_URL") "http://127.0.0.1:9200"))

(def index-name "searchecommerce")

(def repo (esr/connect srv
                       {:cluster.name "ek"
                        :connection-manager (clj-http.conn-mgr/make-reusable-conn-manager
                                             {:timeout 10})}))
<commit_msg>Remove cluster name in repo connection.<commit_after>(ns haystack.repo
  (:require [clojurewerkz.elastisch.rest :as esr] ;; for connect
            [haystack.query :as query]
            ))

;; (def srv "http://192.168.0.220:9201")
;; (def srv "http://192.168.0.220:9200")
;; (def srv "http://gandalf-the-white:9200")
(def srv (or (System/getenv "ELASTICSEARCH_URL") "http://127.0.0.1:9200"))

(def index-name "searchecommerce")

(def repo (esr/connect srv
                       {; :cluster.name "ek"
                        :connection-manager (clj-http.conn-mgr/make-reusable-conn-manager
                                             {:timeout 10})}))

{'fraction_non_alphanumeric': 0.1669266770670827, 'fraction_numerical': 0.0686427457098284, 'mean_word_length': 2.144607843137255, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 6, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6680121', 'n_tokens_mistral': 495, 'n_tokens_neox': 436, 'n_words': 83}