<commit_before>! Copyright (C) 2009 <NAME>.
! See http://factorcode.org/license.txt for BSD license.
USING: accessors io kernel lexer math.parser namespaces
source-files ;
IN: parser.notes

SYMBOL: parser-quiet?

t parser-quiet? set-global

: note. ( str -- )
    parser-quiet? get [
        file get [ path>> write ":" write ] when* 
        lexer get [ line>> number>string write ": " write ] when*
        "Note:" print dup print
    ] unless drop ;
<commit_msg>parser.notes: Remove trailing whitespace the parser noticed.<commit_after>! Copyright (C) 2009 <NAME>.
! See http://factorcode.org/license.txt for BSD license.
USING: accessors io kernel lexer math.parser namespaces
source-files ;
IN: parser.notes

SYMBOL: parser-quiet?

t parser-quiet? set-global

: note. ( str -- )
    parser-quiet? get [
        file get [ path>> write ":" write ] when*
        lexer get [ line>> number>string write ": " write ] when*
        "Note:" print dup print
    ] unless drop ;

{'fraction_non_alphanumeric': 0.1260245901639344, 'fraction_numerical': 0.00819672131147541, 'mean_word_length': 3.0371900826446283, 'pattern_counts': {'":': 4, '<': 5, '<?xml version=': 0, '>': 15, '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': '4126684', 'n_tokens_mistral': 314, 'n_tokens_neox': 294, 'n_words': 102}