<commit_before>USING: tools.walker io io.streams.string kernel math
math.private namespaces prettyprint sequences tools.test
continuations math.parser threads arrays tools.walker.debug
generic.standard sequences.private kernel.private
tools.continuations accessors words ;
IN: tools.walker.tests

[ { } ] [
    [ ] test-walker
] unit-test

[ { 1 } ] [
    [ 1 ] test-walker
] unit-test

[ { 1 2 3 } ] [
    [ 1 2 3 ] test-walker
] unit-test

[ { "Yo" 2 } ] [
    [ 2 [ "Yo" ] dip ] test-walker
] unit-test

[ { "Yo" 2 3 } ] [
    [ 2 [ "Yo" ] dip 3 ] test-walker
] unit-test

[ { 2 } ] [
    [ t [ 2 ] [ "hi" ] if ] test-walker<commit_msg>tools.walker: fix tests<commit_after>USING: tools.walker io io.streams.string kernel math
math.private namespaces prettyprint sequences tools.test
continuations math.parser threads arrays tools.walker.debug
generic.single sequences.private kernel.private
tools.continuations accessors words ;
IN: tools.walker.tests

[ { } ] [
    [ ] test-walker
] unit-test

[ { 1 } ] [
    [ 1 ] test-walker
] unit-test

[ { 1 2 3 } ] [
    [ 1 2 3 ] test-walker
] unit-test

[ { "Yo" 2 } ] [
    [ 2 [ "Yo" ] dip ] test-walker
] unit-test

[ { "Yo" 2 3 } ] [
    [ 2 [ "Yo" ] dip 3 ] test-walker
] unit-test

[ { 2 } ] [
    [ t [ 2 ] [ "hi" ] if ] test-walker
{'fraction_non_alphanumeric': 0.15085536547433903, 'fraction_numerical': 0.024883359253499222, 'mean_word_length': 2.741279069767442, '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': '3209091', 'n_tokens_mistral': 519, 'n_tokens_neox': 459, 'n_words': 121}