<commit_before>USING: io.files.info io.encodings.utf8 io.files
io.directories kernel io.pathnames accessors tools.test
sequences io.files.temp ;
IN: io.files.info.tests

{ t } [
    temp-directory [ "hi41" "test41" utf8 set-file-contents ] with-directory
    temp-directory "test41" append-path utf8 file-contents "hi41" =
] unit-test

{ t } [
    temp-directory [ "test41" file-info size>> ] with-directory 4 =
] unit-test

{ t } [ "/" file-system-info file-system-info-tuple? ] unit-test
{ t } [ file-systems [ file-system-info-tuple? ] all? ] unit-test<commit_msg>io.files.info: cleanup by using with-temp-directory.<commit_after>USING: io.files.info io.encodings.utf8 io.files
io.directories kernel io.pathnames accessors tools.test
sequences io.files.temp ;
IN: io.files.info.tests

{ "hi41" } [
    [
        "hi41" "test41" utf8 set-file-contents
        "test41" utf8 file-contents
    ] with-temp-directory
] unit-test

{ 4 } [
    [ "test41" file-info size>> ] with-temp-directory
] unit-test

{ t } [ "/" file-system-info file-system-info-tuple? ] unit-test
{ t } [ file-systems [ file-system-info-tuple? ] all? ] unit-test
{'fraction_non_alphanumeric': 0.14991181657848324, 'fraction_numerical': 0.024691358024691357, 'mean_word_length': 3.39922480620155, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '3613545', 'n_tokens_mistral': 420, 'n_tokens_neox': 403, 'n_words': 85}