<commit_before>(ns babel.espanol.grammar
  (:refer-clojure :exclude [get-in merge resolve])
  (:require 
   [babel.cache :refer (build-lex-sch-cache create-index spec-to-phrases)]
   [babel.enrich :refer [enrich]]
   [babel.espanol.lexicon :refer [lexicon]]
   [babel.espanol.morphology :refer [analyze fo morph-walk-tree]]
   [babel.parse :as parse]
   [babel.ug :refer :all]
   [clojure.tools.logging :as log]
   [dag-unify.core :refer (get-in merge unifyc)]))

(def head-first
  (let [head-espanol (ref :top)
        comp-espanol (ref :top)
        rule (ref :top)]
    (unifyc
     {:comp {:espanol {:initial false}}
      :head {:espanol {:initial true}}}
     {:head {:espanol head-espanol}
      :comp {:espanol comp-espanol}
      :rule rule
      :espanol {:a head-espanol
                :rule1 rule
                :b comp-espanol}})))
(def head-last
  (let [head-espanol (ref :top)<commit_msg>s/rule1/rule/<commit_after>(ns babel.espanol.grammar
  (:refer-clojure :exclude [get-in merge resolve])
  (:require 
   [babel.cache :refer (build-lex-sch-cache create-index spec-to-phrases)]
   [babel.enrich :refer [enrich]]
   [babel.espanol.lexicon :refer [lexicon]]
   [babel.espanol.morphology :refer [analyze fo morph-walk-tree]]
   [babel.parse :as parse]
   [babel.ug :refer :all]
   [clojure.tools.logging :as log]
   [dag-unify.core :refer (get-in merge unifyc)]))

(def head-first
  (let [head-espanol (ref :top)
        comp-espanol (ref :top)
        rule (ref :top)]
    (unifyc
     {:comp {:espanol {:initial false}}
      :head {:espanol {:initial true}}}
     {:head {:espanol head-espanol}
      :comp {:espanol comp-espanol}
      :rule rule
      :espanol {:a head-espanol
                :rule rule
                :b comp-espanol}})))
(def head-last
  (let [head-espanol (ref :top)
{'fraction_non_alphanumeric': 0.15533443891652846, 'fraction_numerical': 0.001105583195135434, 'mean_word_length': 2.851063829787234, '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': '3077041', 'n_tokens_mistral': 712, 'n_tokens_neox': 686, 'n_words': 159}