<commit_before>" Vars Setttings
" github.com/mike325/.vim


let s:ignore_cmd = {
            \   'git' : '',
            \   'ag' : '',
            \   'rg' : '',
            \   'find' : '',
            \   'grep' : '',
            \   'dir' : '',
            \   'findstr' : '',
            \}

let s:ignores_patterns = {
            \   'bin': [ 'exe', 'dat',],
            \   'vcs': [ 'hg', 'svn', 'git',],
            \   'compile' : ['obj', 'class', 'pyc', 'o', 'dll', 'a', 'moc',],
            \   'tmp_dirs': [ 'trash', 'tmp', '__pycache__', 'ropeproject'],
            \   'vim_dirs': [ 'backup', 'swap', 'sessions', 'cache', 'undos',],
            \   'tmp_file' : ['swp', 'bk',],
            \   'docs': ['docx', 'doc', 'xls', 'xlsx', 'odt', 'ppt', 'pptx', 'pdf',],
            \   'image': ['jpg', 'jpeg', 'png', 'gif', 'raw'],
            \   'video': ['mp4', 'mpeg', 'avi', 'mkv', '3gp'],
            \   'logs': ['log',],
            \   'compress': ['zip', 'tar', 'rar', '7z',],
            \   'full_name_files': ['tags', 'cscope', 'shada', 'viminfo', 'COMMIT_EDITMSG'],
            \}

" Set the default work dir
let s:basedir = ''
let s:homedir = ''
let s:datadir = ''

function! s:setupdirs() abort
    if !empty(s:homedir) && !empty(s:basedir)
        return
    endif

    if has('nvim')
        let s:homedir = luaeval("require('sys').home")
        let s:basedir = luaeval("require('sys').base")
        let s:datadir = luaeval("require('sys').data")
        return
    endif

    let s:homedir =  substitute( expand( os#name('windows') ? $USERPROFILE : $HOME), '\', '/', 'g' )

    if empty($XDG_DATA_HOME)
        let $XDG_DATA_HOME =  os#name('windows') ? $LOCALAPPDATA : s:homedir .'/.local/share'
    endif

    if empty($XDG_CONFIG_HOME)
        let $XDG_CONFIG_HOME =  os#name('windows') ? $LOCALAPPDATA : s:homedir .'/.config'
    endif

    if exists('*mkdir')<commit_msg>feat: add nvim cache dir<commit_after>" Vars Setttings
" github.com/mike325/.vim


let s:ignore_cmd = {
            \   'git' : '',
            \   'ag' : '',
            \   'rg' : '',
            \   'find' : '',
            \   'grep' : '',
            \   'dir' : '',
            \   'findstr' : '',
            \}

let s:ignores_patterns = {
            \   'bin': [ 'exe', 'dat',],
            \   'vcs': [ 'hg', 'svn', 'git',],
            \   'compile' : ['obj', 'class', 'pyc', 'o', 'dll', 'a', 'moc',],
            \   'tmp_dirs': [ 'trash', 'tmp', '__pycache__', 'ropeproject'],
            \   'vim_dirs': [ 'backup', 'swap', 'sessions', 'cache', 'undos',],
            \   'tmp_file' : ['swp', 'bk',],
            \   'docs': ['docx', 'doc', 'xls', 'xlsx', 'odt', 'ppt', 'pptx', 'pdf',],
            \   'image': ['jpg', 'jpeg', 'png', 'gif', 'raw'],
            \   'video': ['mp4', 'mpeg', 'avi', 'mkv', '3gp'],
            \   'logs': ['log',],
            \   'compress': ['zip', 'tar', 'rar', '7z',],
            \   'full_name_files': ['tags', 'cscope', 'shada', 'viminfo', 'COMMIT_EDITMSG'],
            \}

" Set the default work dir
let s:basedir = ''
let s:homedir = ''
let s:datadir = ''
let s:cache   = ''

function! s:setupdirs() abort
    if !empty(s:homedir) && !empty(s:basedir)
        return
    endif

    if has('nvim')
        let s:homedir  = luaeval("require('sys').home")
        let s:basedir  = luaeval("require('sys').base")
        let s:datadir  = luaeval("require('sys').data")
        let s:cachedir = luaeval("require('sys').cache")
        return
    endif

    let s:homedir =  substitute( expand( os#name('windows') ? $USERPROFILE : $HOME), '\', '/', 'g' )

    if empty($XDG_DATA_HOME)
        let $XDG_DATA_HOME =  os#name('windows') ? $LOCALAPPDATA : s:homedir .'/.local/share'
    endif

    if empty($XDG_CONFIG_HOME)
        let $XDG_CONFIG_HOME =  os#name('windows') ? $LOCALAPPDATA : s:homedir .'/.config'
    endif

    if exists('*mkdir')
{'fraction_non_alphanumeric': 0.22706304459251667, 'fraction_numerical': 0.0030753459764223477, 'mean_word_length': 1.977116704805492, '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': '6913232', 'n_tokens_mistral': 1492, 'n_tokens_neox': 1432, 'n_words': 284}