<commit_before>:- module(pio, [phrase_from_file/2,
                phrase_from_file/3]).

:- use_module(library(dcgs)).
:- use_module(library(error)).

phrase_from_file(NT, File) :-
    phrase_from_file(NT, File, []).

phrase_from_file(NT, File, Options) :-
    (   var(File) -> instantiation_error(phrase_from_file/3)
    ;   (\+ atom(File) ; File = []) ->
            domain_error(source_sink, File, phrase_from_file/3)
    ;   must_be(list, Options),
        (   member(Var, Options), var(Var) -> instantiation_error(phrase_from_file/3)<commit_msg>import member/2 from library(lists)<commit_after>:- module(pio, [phrase_from_file/2,
                phrase_from_file/3]).

:- use_module(library(dcgs)).
:- use_module(library(error)).
:- use_module(library(lists), [member/2]).

phrase_from_file(NT, File) :-
    phrase_from_file(NT, File, []).

phrase_from_file(NT, File, Options) :-
    (   var(File) -> instantiation_error(phrase_from_file/3)
    ;   (\+ atom(File) ; File = []) ->
            domain_error(source_sink, File, phrase_from_file/3)
    ;   must_be(list, Options),
        (   member(Var, Options), var(Var) -> instantiation_error(phrase_from_file/3)
{'fraction_non_alphanumeric': 0.16452442159383032, 'fraction_numerical': 0.010282776349614395, 'mean_word_length': 3.5803921568627453, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, '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': '1319399', 'n_tokens_mistral': 420, 'n_tokens_neox': 413, 'n_words': 56}