<commit_before>local path = require('path');
local stat = ifNil( path.stat( 'stat_try.lua' ) );

ifNotEqual( stat.type, 'reg' );

stat = ifNil( path.stat( './' ) );
ifNotEqual( stat.type, 'dir' );

stat = ifNil( path.stat( './', false, false ) );
ifNotNil( stat.type );

ifNotNil( path.stat( 'stat_try.lua_' ) );
<commit_msg>change: test/stat_try.lua has been updated.<commit_after>local path = require('path');
local stat = ifNil( path.stat( 'stat_try.lua' ) );

ifNotEqual( stat.type, 'reg' );

stat = ifNil( path.stat( './' ) );
ifNotEqual( stat.type, 'dir' );
ifNotNil( stat.fd );

stat = ifNil( path.stat( './', false, false ) );
ifNotNil( stat.type );
ifNotNil( stat.fd );

stat = ifNil( path.stat( './', false, nil ) );
ifNil( stat.type );
ifNotNil( stat.fd );

stat = ifNil( path.stat( 'stat_try.lua', false, true, true ) );
ifNil( stat.type );
ifNil( stat.fd );

ifNotNil( path.stat( 'stat_try.lua_' ) );

{'fraction_non_alphanumeric': 0.212253829321663, 'fraction_numerical': 0.0, 'mean_word_length': 4.083333333333333, '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': '185938', 'n_tokens_mistral': 356, 'n_tokens_neox': 355, 'n_words': 82}