<commit_before>#lang racket/base

;; Library to initialize the MLT framework.
;; Alternatively your program can just call `mlt-factory-init` on its own.

(require "private/mlt.rkt"
         ffi/unsafe)

(void (mlt-factory-init #f))

;; This module must be instantiated only once:
(define scheme_register_process_global
  (get-ffi-obj 'scheme_register_process_global #f (_fun _string _pointer -> _pointer)))

(let ([v (scheme_register_process_global "GRacket-support-initialized"
                                         (cast 1 _scheme _pointer))])
  (when v
    (error "cannot instantiate `video/init' a second time in the same process")))<commit_msg>init seems to fail when required from multiple modules. :(<commit_after>#lang racket/base

;; Library to initialize the MLT framework.
;; Alternatively your program can just call `mlt-factory-init` on its own.

(require "private/mlt.rkt"
         ffi/unsafe)

(void (mlt-factory-init #f))

#|
;; This module must be instantiated only once:
(define scheme_register_process_global
  (get-ffi-obj 'scheme_register_process_global #f (_fun _string _pointer -> _pointer)))

(let ([v (scheme_register_process_global "GRacket-support-initialized"
                                         (cast 1 _scheme _pointer))])
  (when v
    (error "cannot instantiate `video/init' a second time in the same process")))
|#
{'fraction_non_alphanumeric': 0.10405904059040591, 'fraction_numerical': 0.0014760147601476014, 'mean_word_length': 3.5351170568561874, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4948332', 'n_tokens_mistral': 410, 'n_tokens_neox': 394, 'n_words': 132}