<commit_before>alias{
    assoc='%COMSPEC% /c assoc $*',
    attrib='%COMSPEC% /c attrib $*',
    echo=function(args) nyagos.write(table.concat(args,' ')..'\n') end,
    copy='%COMSPEC% /c copy $*',
    del='%COMSPEC% /c del $*',
    dir='%COMSPEC% /c dir $*',
    md='%COMSPEC% /c md $*',
    mkdir='%COMSPEC% /c mkdir $*',
    mklink='%COMSPEC% /c mklink $*',
    move='%COMSPEC% /c move $*',
    rd='%COMSPEC% /c rd $*',
    ren='%COMSPEC% /c ren $*',
    rename='%COMSPEC% /c rename $*',
    rem=function() end,
    rmdir='%COMSPEC% /c rmdir $*',
    start='%COMSPEC% /c start $*',
    ls='ls -oF $*',
    ['type']='%COMSPEC% /c type $*',
    ['for']='%COMSPEC% /c for $*',
    lua_e=function(args) assert(load(args[1]))() end,
    which=function(args) nyagos.write( nyagos.which(args[1])..'\n') end,
    open=function(args)
        local count=0
        for i=1,#args do
            local list=nyagos.glob(args[i])
            if list and #list >= 1 then
                for i=1,#list do
                    nyagos.exec(string.format('%s /c start "%s"',nyagos.getenv('COMSPEC'),list[i]))
                end
            else
                nyagos.exec(string.format('%s /c start "%s"',nyagos.getenv('COMSPEC'),args[i]))
            end
            count = count +1
        end
        if count <= 0 then
            nyagos.exec(string.format('%s /c start .',nyagos.getenv('COMSPEC')))
        end
    end,
}
<commit_msg>which に失敗した時に nil エラーを出していた点を修正<commit_after>alias{
    assoc='%COMSPEC% /c assoc $*',
    attrib='%COMSPEC% /c attrib $*',
    echo=function(args) nyagos.write(table.concat(args,' ')..'\n') end,
    copy='%COMSPEC% /c copy $*',
    del='%COMSPEC% /c del $*',
    dir='%COMSPEC% /c dir $*',
    md='%COMSPEC% /c md $*',
    mkdir='%COMSPEC% /c mkdir $*',
    mklink='%COMSPEC% /c mklink $*',
    move='%COMSPEC% /c move $*',
    rd='%COMSPEC% /c rd $*',
    ren='%COMSPEC% /c ren $*',
    rename='%COMSPEC% /c rename $*',
    rem=function() end,
    rmdir='%COMSPEC% /c rmdir $*',
    start='%COMSPEC% /c start $*',
    ls='ls -oF $*',
    ['type']='%COMSPEC% /c type $*',
    ['for']='%COMSPEC% /c for $*',
    lua_e=function(args) assert(load(args[1]))() end,
    which=function(args) 
        local result=nyagos.which(args[1])
        if result then
            nyagos.write( result..'\n')
        end
    end,
    open=function(args)
        local count=0
        for i=1,#args do
            local list=nyagos.glob(args[i])
            if list and #list >= 1 then
                for i=1,#list do
                    nyagos.exec(string.format('%s /c start "%s"',nyagos.getenv('COMSPEC'),list[i]))
                end
            else
                nyagos.exec(string.format('%s /c start "%s"',nyagos.getenv('COMSPEC'),args[i]))
            end
            count = count +1
        end
        if count <= 0 then
            nyagos.exec(string.format('%s /c start .',nyagos.getenv('COMSPEC')))
        end
    end,
}

{'fraction_non_alphanumeric': 0.19802306425041186, 'fraction_numerical': 0.005271828665568369, 'mean_word_length': 1.9881889763779528, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '4292326', 'n_tokens_mistral': 1258, 'n_tokens_neox': 1125, 'n_words': 221}