<commit_before>;; "All entities in a database have an internal key, the entity id.
;; You can use :db/unique and :db/index together to define an
;; attribute to represent an external key." quoted from
;; http://docs.datomic.com/schema.html
[[:comp {:attrs [[:id-sk :string "Shared key for 3rd parties" :db.unique/identity]
                 [:name :string :indexed] ; not null
                 [:description :string :indexed]

                 ;; TODO: We need a fn here to ensure that #{:name :version} is unique
                 [:version :string]               ; not null
                 [:status :enum [:active :archived]] ; not null
                 [:tags :ref :many]]}]
 [:comp-tag {:attrs [[:name :string :indexed] ; not null
                     [:description :string]

                     ;; TODO: We need a fn here to ensure that #{:name :version} is unique
                     [:version :string]     ; not null
                     [:type :string :indexed] ; not null
                     [:isrequestable :boolean] ; default f
                     [:icon :uri]
                     [:status :enum [:active :archived]] ; not null
                     [:isfinal :boolean] ; default f
                     [:disp-ctxs :ref :many]
                     [:child-of :ref :many] ; replaces comp_tag2parent
                     ]}]
 [:comp-tag-disp-ctx {:attr [[:name :string]]}]
 [:perf-asmt {:attrs [[:id-sk :string "Shared key for 3rd parties" :db.unique/identity]
                      [:name :string]
                      [:version :string] ; not null

                      ;; Example types: :project :course-competency
                      [:type :string] ; not null<commit_msg>add comment to schema-d<commit_after>;; "All entities in a database have an internal key, the entity id.
;; You can use :db/unique and :db/index together to define an
;; attribute to represent an external key." quoted from
;; http://docs.datomic.com/schema.html
[[:comp {:attrs [[:id-sk :string "Shared key for 3rd parties" :db.unique/identity]
                 [:name :string :indexed] ; not null
                 [:description :string :indexed]

                 ;; TODO: We need a fn here to ensure that #{:name :version} is unique
                 [:version :string]               ; not null
                 [:status :enum [:active :archived]] ; not null
                 [:tags :ref :many]]}]
 [:comp-tag {:attrs [[:name :string :indexed] ; not null
                     [:description :string]

                     ;; TODO: We need a fn here to ensure that #{:name :version} is unique
                     [:version :string]     ; not null
                     [:type :string :indexed] ; not null
                     [:isrequestable :boolean] ; default f
                     [:icon :uri]
                     [:status :enum [:active :archived]] ; not null
                     [:isfinal :boolean] ; default f
                     [:disp-ctxs :ref :many]
                     [:child-of :ref :many] ; replaces comp_tag2parent
                     ]}]
 [:comp-tag-disp-ctx {:attr [[:name :string]]}]
 [:perf-asmt {:attrs [[:id-sk :string "Shared key for 3rd parties" :db.unique/identity]
                      [:name :string]
                      [:version :string] ; not null

                      ;; Example types: :project :course-competency ... TODO: enum?
                      [:type :string] ; not null
{'fraction_non_alphanumeric': 0.12434017595307918, 'fraction_numerical': 0.0017595307917888563, 'mean_word_length': 1.6178050652340752, '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': '563116', 'n_tokens_mistral': 937, 'n_tokens_neox': 848, 'n_words': 322}