<commit_before>;
; OpenCog Pattern matcher module
;

(define-module (opencog query))

; This is also loaded by (opencog exec) We need it here,
; else we get undefined symbols in libquery.
(load-extension "libexecution" "opencog_exec_init")

(load-extension "libquery" "opencog_query_init")

(set-procedure-property! cog-bind 'documentation
"
 cog-bind handle
    Run pattern matcher on handle.  handle must be a BindLink.
    Uses crisp (non-probabilistic) logic during the evaluation
    of evaluatable terms.
")<commit_msg>Add a missing library path<commit_after>;
; OpenCog Pattern matcher module
;

(define-module (opencog query))

; The atomspace libraries are located in /usr/local/lib/opencog
(setenv "LTDL_LIBRARY_PATH" "/usr/local/lib/opencog")

; This is also loaded by (opencog exec) We need it here,
; else we get undefined symbols in libquery.
(load-extension "libexecution" "opencog_exec_init")

(load-extension "libquery" "opencog_query_init")

(set-procedure-property! cog-bind 'documentation
"
 cog-bind handle
    Run pattern matcher on handle.  handle must be a BindLink.
    Uses crisp (non-probabilistic) logic during the evaluation
    of evaluatable terms.
")
{'fraction_non_alphanumeric': 0.0922165820642978, 'fraction_numerical': 0.0, 'mean_word_length': 4.660287081339713, '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': '3718952', 'n_tokens_mistral': 386, 'n_tokens_neox': 376, 'n_words': 128}