<commit_before>let g:load_doxygen_syntax = 1

" Compile/Run programs {{{ -----------------------------------------------------
if g:windows
    noremap <buffer> <silent> <F9> :silent update <bar>silent make %:p:r.exe<cr><cr>

    if has('nvim')
        noremap <buffer> <silent> <F10> :!%:p:r.exe<cr>
    else
        noremap <buffer> <silent> <F10> :!%:p:r.exe<cr><cr>
    endif
elseif g:linux
    noremap <buffer> <silent> <F9> :silent update <bar>silent make %:p:r.out<cr><cr>
    noremap <buffer> <silent> <F10> :!'%:p:r.out'<cr>
endif

if !( filereadable(expand('%:p:h') . '\/Makefile') )
    setlocal makeprg=g++\ -Wall\ -fexceptions\ -g\ -O3\ -Wcast-align\ -Wundef\
        \ -Wnon-virtual-dtor\ -Wshadow\ -Winit-self\ -Wredundant-decls\ -Wextra\
        \ -Wfloat-equal\ -Winline\ -Wunreachable-code\ -Wmissing-declarations\
        \ -Wmissing-include-dirs\ -Wswitch-enum\ -Wswitch-default\ -Wmain\
        \ -Wzero-as-null-pointer-constant\ -pedantic-errors\ -pedantic\
        \ %:p\ -o
else
    noremap <buffer> <silent> <F10> :!make run<cr>
endif

" -std=c++11
" -Weffc++
" -Wfatal-errors
" Compile/Run programs }}} -----------------------------------------------------

" Clang_Complete {{{ -----------------------------------------------------------
let g:clang_snippets = 1
let g:clang_snippets_engine = 'ultisnips'
let g:clang_auto_select = 1
let g:clang_close_preview = 1
let g:clang_complete_copen = 1
let g:clang_auto_select = 1
let g:clang_complete_auto = 1
let g:clang_complete_optional_args_in_snippets = 1
inoremap <buffer> <C-Space> <C-x><C-o>
<commit_msg>Added check for the operating system used<commit_after>let g:load_doxygen_syntax = 1

" Compile/Run programs {{{ -----------------------------------------------------
if g:windows
    noremap <buffer> <silent> <F9> :silent update <bar>silent make %:p:r.exe<cr><cr>

    if has('nvim')
        noremap <buffer> <silent> <F10> :!%:p:r.exe<cr>
    else
        noremap <buffer> <silent> <F10> :!%:p:r.exe<cr><cr>
    endif
elseif g:linux
    noremap <buffer> <silent> <F9> :silent update <bar>silent make %:p:r.out<cr><cr>
    noremap <buffer> <silent> <F10> :!'%:p:r.out'<cr>
endif

if !( filereadable( expand('%:p:h') . ( g:windows ? '\/Makefile' : '/Makefile' ) ) )
    setlocal makeprg=g++\ -Wall\ -fexceptions\ -g\ -O3\ -Wcast-align\ -Wundef\
        \ -Wnon-virtual-dtor\ -Wshadow\ -Winit-self\ -Wredundant-decls\ -Wextra\
        \ -Wfloat-equal\ -Winline\ -Wunreachable-code\ -Wmissing-declarations\
        \ -Wmissing-include-dirs\ -Wswitch-enum\ -Wswitch-default\ -Wmain\
        \ -Wzero-as-null-pointer-constant\ -pedantic-errors\ -pedantic\
        \ %:p\ -o
else
    noremap <buffer> <silent> <F10> :!make run<cr>
endif

" -std=c++11
" -Weffc++
" -Wfatal-errors
" Compile/Run programs }}} -----------------------------------------------------

" Clang_Complete {{{ -----------------------------------------------------------
let g:clang_snippets = 1
let g:clang_snippets_engine = 'ultisnips'
let g:clang_auto_select = 1
let g:clang_close_preview = 1
let g:clang_complete_copen = 1
let g:clang_auto_select = 1
let g:clang_complete_auto = 1
let g:clang_complete_optional_args_in_snippets = 1
inoremap <buffer> <C-Space> <C-x><C-o>

{'fraction_non_alphanumeric': 0.25822470515207946, 'fraction_numerical': 0.01303538175046555, 'mean_word_length': 2.229458917835671, 'pattern_counts': {'":': 0, '<': 69, '<?xml version=': 0, '>': 69, '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': '1317256', 'n_tokens_mistral': 1279, 'n_tokens_neox': 1220, 'n_words': 245}