<commit_before>(ns clj_hypergraph_db.core
  (:import [org.hypergraphdb HGEnvironment])
  (:gen-class :main true))

(def db (atom nil))

(defn create-database
  ""
  [path]
  (let [dbinstance (HGEnvironment/get path)]
        (reset! db dbinstance)))
def Service (create-cless args)
(defn create-class
  "
  Creates a type

  Arguments:
  name - name of type
  attribs - fields of type
  "
  [name &attribs]
  (do
    (defn fun
      [&key-value-attrib-list]
      (do
        ; todo adding object to database?
        (apply assoc (cons (apply hash-map attribs) (filter #(contains? attribs %1) key-value-attrib-list)))))
    fun))



(defn -main
  "I don't do a whole lot."
  []
  (do
    (create-database "hgdbtest")))<commit_msg>removing trash line<commit_after>(ns clj_hypergraph_db.core
  (:import [org.hypergraphdb HGEnvironment])
  (:gen-class :main true))

(def db (atom nil))

(defn create-database
  ""
  [path]
  (let [dbinstance (HGEnvironment/get path)]
        (reset! db dbinstance)))

(defn create-class
  "
  Creates a type

  Arguments:
  name - name of type
  attribs - fields of type
  "
  [name &attribs]
  (do
    (defn fun
      [&key-value-attrib-list]
      (do
        ; todo adding object to database?
        (apply assoc (cons (apply hash-map attribs) (filter #(contains? attribs %1) key-value-attrib-list)))))
    fun))



(defn -main
  "I don't do a whole lot."
  []
  (do
    (create-database "hgdbtest")))
{'fraction_non_alphanumeric': 0.13569937369519833, 'fraction_numerical': 0.0013917884481558804, 'mean_word_length': 2.876010781671159, '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': '1660879', 'n_tokens_mistral': 539, 'n_tokens_neox': 524, 'n_words': 147}