<commit_before>(ns modes.knotation
  (:require [cljsjs.codemirror]

            [modes.simple]
            [knotation-editor.styles :as style]))

(style/add-style!
 ".cm-s-knotation .cm-keyword {color: #708;}
.cm-s-knotation .cm-iri {color: #00c; text-decoration: underline;}
.cm-s-knotation .cm-subject {font-weight: bolder;}
.cm-s-knotation .cm-predicate {color: #085;}
")

(.defineSimpleMode
 js/CodeMirror "knotation"
 (clj->js {:start [{:regex #"@prefix" :token "keyword"}
                   {:regex #"<.*?>" :token "iri"}
                   {:regex #": .*" :token "subject" :sol true}
                   {:regex #"^.*?:" :token "predicate" :sol true}]}))
<commit_msg>Require 'colon space' for a statement<commit_after>(ns modes.knotation
  (:require [cljsjs.codemirror]

            [modes.simple]
            [knotation-editor.styles :as style]))

(style/add-style!
 ".cm-s-knotation .cm-keyword {color: #708;}
.cm-s-knotation .cm-iri {color: #00c; text-decoration: underline;}
.cm-s-knotation .cm-subject {font-weight: bolder;}
.cm-s-knotation .cm-predicate {color: #085;}
")

(.defineSimpleMode
 js/CodeMirror "knotation"
 (clj->js {:start [{:regex #"@prefix" :token "keyword"}
                   {:regex #"<.*?>" :token "iri"}
                   {:regex #": .*" :token "subject" :sol true}
                   {:regex #"^.*?: " :token "predicate" :sol true}]}))

{'fraction_non_alphanumeric': 0.2013129102844639, 'fraction_numerical': 0.011670313639679067, 'mean_word_length': 2.7796143250688705, 'pattern_counts': {'":': 2, '<': 5, '<?xml version=': 0, '>': 7, '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': '5253063', 'n_tokens_mistral': 508, 'n_tokens_neox': 469, 'n_words': 103}