<commit_before>(ns gorillalabs.tesla.component.neo4j)

(:require [neo4j-clj.core :as neo4j]
  [clojure.tools.logging :as log]
  [gorillalabs.tesla.component.configuration :as config]
  [mount.core :as mnt])

(defn- start []
       (let [url (config/config config/configuration [:neo4j :url])
             user (config/config config/configuration [:neo4j :user])
             password (config/config config/configuration [:neo4j :password])]
            (log/infof "-> starting neo4j (connecting to url %s as %s)"
                       url
                       user)
            (neo4j/create-connection url user password)))

(defn- stop [graph]
       (if graph
         (do
           (log/info "<- stopping neo4j component")
           (.close graph))
         (log/info "<- neo4j component not running")))
<commit_msg>fixed ns declaration<commit_after>(ns gorillalabs.tesla.component.neo4j
    (:require [neo4j-clj.core :as neo4j]
      [clojure.tools.logging :as log]
      [gorillalabs.tesla.component.configuration :as config]
      [mount.core :as mnt]))

(defn- start []
       (let [url (config/config config/configuration [:neo4j :url])
             user (config/config config/configuration [:neo4j :user])
             password (config/config config/configuration [:neo4j :password])]
            (log/infof "-> starting neo4j (connecting to url %s as %s)"
                       url
                       user)
            (neo4j/create-connection url user password)))

(defn- stop [graph]
       (if graph
         (do
           (log/info "<- stopping neo4j component")
           (.close graph))
         (log/info "<- neo4j component not running")))

{'fraction_non_alphanumeric': 0.12574850299401197, 'fraction_numerical': 0.011976047904191617, 'mean_word_length': 2.1528301886792454, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 5, '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': '3831909', 'n_tokens_mistral': 523, 'n_tokens_neox': 505, 'n_words': 132}