<commit_before>
" VARIABLES and UTILS {{{ 
let g:MARKUP = [ 'markdown', 'rst' ]
let g:PROGRAMMING =  [ 'vim', 'xhtml', 'html', 'css', 
            \'javascript', 'python', 'php', 'sh', 'zsh' ]
let g:REPL = ['php', 'python', 'sh', 'zsh', 'javascript']

let loaded_matchit = 1

let mapleader = " "
let maplocalleader = ","

function! AtHome()
    if filereadable(glob('~/.athome'))
        return 1
    else
        return 0
    endif
endfunction
" }}}

" OPTIONS {{{
set ignorecase smartcase foldmethod=marker autochdir 
set sessionoptions+=resize sessionoptions-=blank 
set completeopt=menuone,longest,noinsert diffopt=filler,vertical,iwhite
set mouse= complete=.,w,t noswapfile mps+=<:> pumheight=12
set sessionoptions-=options bufhidden=hide wildignorecase
set shiftwidth=4 autowrite undofile formatoptions=tcqjonl1
set autoread fileignorecase hidden clipboard=unnamed,unnamedplus
set wildignore+=*cache*,*chrome*,*/.dropbox/*,*intellij*,*fonts*,*libreoffice*,*.png
set wildignore+=tags,*~,.vim,*sessio*,*swap*,*.git,*.class,*.svn,*.jpg,*.jpeg
set nostartofline " Don't reset cursor to start of line when moving around
set splitbelow virtualedit=all 
set shortmess=atI " Don't show the intro message when starting vim
set path=
execute 'set path+=' . glob('~') . '/Scripts/**'
execute 'set path+=' . glob('~') . '/Notes/**'
execute 'set path+=' . glob('~') . '/.scratchpads/**'
execute 'set path+=' . glob('~') . '/.templates/**'
execute 'set path+=' . glob('~') . '/Projects/**'
" }}}

" DOWNLOAD PLUG {{{
if has('nvim') && ! filereadable(glob('~/.local/share/nvim/site/autoload/plug.vim'))
    !curl -fLo ~/.local/share/nvim/site/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
    source ~/.config/nvim/init.vim
    PlugInstall
elseif ! has('nvim') && ! filereadable(glob('~/.vim/autoload/plug.vim'))
    !curl -fLo ~/.vim/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
    source ~/.vimrc
    PlugInstall
endif
" }}}

" PLUG INIT :: SET VARIABLES {{{
let g:DICTDIR = glob('~/.dicts/')
execute 'set thesaurus=' . g:DICTDIR . 'thesaurus.txt'
execute 'set dictionary=' .  g:DICTDIR . 'frequent.dict'
if empty(g:DICTDIR)
    execute '!mkdir -p ' . g:DICTDIR
endif
if has('nvim')
    let g:VIMDIR = glob('~/.config/nvim/')
    if empty(g:VIMDIR)
        execute '!mkdir -p ' . g:VIMDIR
    endif
    tnoremap <Esc> <C-\><C-n>
    set inccommand=nosplit
    if empty(g:DICTDIR)
        !mkdir -p ~/.config/nvim/dicts
    endif
    call plug#begin('~/.local/share/nvim/plugged/')
else
    let $MYVIMRC = glob('~/.vimrc')
    call plug#begin('~/.vim/plugged')
    let g:VIMDIR = glob('~/.vim/')
    syntax enable
    filetype plugin indent on
    set encoding=utf8 syntax=on autoindent nocompatible magic incsearch ttyfast
    set display=lastline nrformats=bin,hex complete+=i hlsearch
    if has('tags')
        set tags
    endif
endif
" }}}<commit_msg>Quick commit. Nothing important ...<commit_after>
" VARIABLES and UTILS {{{ 
let g:MARKUP = [ 'markdown', 'rst' ]
let g:PROGRAMMING =  [ 'vim', 'xhtml', 'html', 'css', 
            \'javascript', 'python', 'php', 'sh', 'zsh' ]
let g:REPL = ['php', 'python', 'sh', 'zsh', 'javascript']

let loaded_matchit = 1

let mapleader = " "
let maplocalleader = ","

function! AtHome()
    if filereadable(glob('~/.athome'))
        return 1
    else
        return 0
    endif
endfunction
" }}}

" OPTIONS {{{
set ignorecase smartcase foldmethod=marker autochdir 
set sessionoptions+=resize sessionoptions-=blank 
set completeopt=menuone,longest,noinsert diffopt=filler,vertical,iwhite
set mouse= complete=.,w,t noswapfile mps+=<:> pumheight=12
set sessionoptions-=options bufhidden=hide wildignorecase
set shiftwidth=4 autowrite undofile formatoptions=tcqjonl1
set autoread fileignorecase hidden clipboard=unnamed,unnamedplus
set wildignore+=*cache*,*chrome*,*/.dropbox/*,*intellij*,*fonts*,*libreoffice*,*.png
set wildignore+=tags,*~,.vim,*sessio*,*swap*,*.git,*.class,*.svn,*.jpg,*.jpeg
set nostartofline " Don't reset cursor to start of line when moving around
set splitbelow virtualedit=all 
set shortmess=atI " Don't show the intro message when starting vim
set path=
execute 'set path+=' . glob('~') . '/Scripts/**'
execute 'set path+=' . glob('~') . '/Notes/**'
execute 'set path+=' . glob('~') . '/.scratchpads/**'
execute 'set path+=' . glob('~') . '/.templates/**'
execute 'set path+=' . glob('~') . '/Projects/**'
" }}}

" DOWNLOAD PLUG {{{
if has('nvim') && ! filereadable(glob('~/.local/share/nvim/site/autoload/plug.vim'))
    !curl -fLo ~/.local/share/nvim/site/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
    source ~/.config/nvim/init.vim
    PlugInstall
elseif ! has('nvim') && ! filereadable(glob('~/.vim/autoload/plug.vim'))
    !curl -fLo ~/.vim/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
    source ~/.vimrc
    PlugInstall
endif
" }}}

" PLUG INIT :: SET VARIABLES {{{
let g:DICTDIR = glob('~/.dicts/')
execute 'set thesaurus=' . g:DICTDIR . 'thesaurus.txt'
execute 'set dictionary=' .  g:DICTDIR . 'frequent.dict'
if empty(g:DICTDIR)
    call system('mkdir -p ' . g:DICTDIR)
endif
if has('nvim')
    let g:VIMDIR = glob('~/.config/nvim/')
    if empty(g:VIMDIR)
        execute '!mkdir -p ' . g:VIMDIR
    endif
    tnoremap <Esc> <C-\><C-n>
    set inccommand=nosplit
    if empty(g:DICTDIR)
        !mkdir -p ~/.config/nvim/dicts
    endif
    call plug#begin('~/.local/share/nvim/plugged/')
else
    let $MYVIMRC = glob('~/.vimrc')
    call plug#begin('~/.vim/plugged')
    let g:VIMDIR = glob('~/.vim/')
    syntax enable
    filetype plugin indent on
    set encoding=utf8 syntax=on autoindent nocompatible magic incsearch ttyfast
    set display=lastline nrformats=bin,hex complete+=i hlsearch
    if has('tags')
        set tags
    endif
endif
" }}}
{'fraction_non_alphanumeric': 0.17614401076716016, 'fraction_numerical': 0.0026917900403768506, 'mean_word_length': 3.845150774246129, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, 'https://': 4, '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': '313359', 'n_tokens_mistral': 2253, 'n_tokens_neox': 2120, 'n_words': 484}