<commit_before>(ns clojurewerkz.cassaforte.test-helper
  (:use     clojurewerkz.cassaforte.utils)
  (:require [clojurewerkz.cassaforte.client :as cc]
            [clojurewerkz.cassaforte.thrift.core :as thrift]
            [clojurewerkz.cassaforte.cql.schema :as sch]
            [clojurewerkz.cassaforte.cql    :as cql]))

(defn initialize-cql
  [f]
  (cc/connect! "127.0.0.1")
  (cql/set-keyspace "CassaforteTest1")
  (f))

;;
;; TBD
;;
(defn initialize-thrift
  [f])<commit_msg>Fixing problem with "too many open files" after running tests in nrepl for about a thousand times.<commit_after>(ns clojurewerkz.cassaforte.test-helper
  (:use     clojurewerkz.cassaforte.utils)
  (:require [clojurewerkz.cassaforte.client :as cc]
            [clojurewerkz.cassaforte.thrift.core :as thrift]
            [clojurewerkz.cassaforte.cql.schema :as sch]
            [clojurewerkz.cassaforte.cql    :as cql]))

(defn initialize-cql
  [f]
  (when (not (bound? (var cc/*cassandra-client*)))
    (cc/connect! "127.0.0.1")
    (with-thrift-exception-handling
      (cql/set-keyspace "cassaforte_test_1")))
  (f))

;;
;; TBD
;;
(defn initialize-thrift
  [f])
{'fraction_non_alphanumeric': 0.14248251748251747, 'fraction_numerical': 0.012237762237762238, 'mean_word_length': 3.2883895131086143, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '6710351', 'n_tokens_mistral': 468, 'n_tokens_neox': 474, 'n_words': 79}