<commit_before>if exists("g:loaded_jab_python")  
	finish
endif
let g:loaded_jab_python = "v001"

noremap } :cn<cr>
noremap { :cp<cr>

noremap D Oimport pudb<cr>pudb.set_trace()<esc>j
noremap tf :Fix<cr>
noremap tm :Mash<cr>
noremap tt :MashTry<cr>
noremap tn :Try<cr>
noremap tp :Pylint<cr>
noremap <S-F9> :call WritePEP()<cr>
noremap <leader><space> :%s/\s\+$//<cr>
noremap <leader>;   :s/:$//<cr>
noremap <leader>:   :s/$/:/<cr>
noremap <leader>8	b"aye<c-o>/\(def\\|class\) <c-r>a(<cr>
noremap <leader>d	?^\s*def \zs\i<cr>*
noremap <leader>c	?^\s*class \zs\i<cr>*

call matchadd('ColorColumn', '\(\%80v\|\%100v\)', 100)

" PEP 8 calls for indentation with 4 spaces
set foldmethod=indent
set foldlevel=0
NoMatchParen

" Checkers
let g:syntastic_python_checkers=['pep8', 'pylint', 'python']
set statusline+=%#warningmsg#%{SyntasticStatuslineFlag()}%*
set laststatus=2
let g:syntastic_always_populate_loc_list = 1
let g:syntastic_auto_loc_list = 1
let g:syntastic_auto_jump = 1
let g:syntastic_stl_format = '%E{%e errors, from line %fe}%B{, }%W{%w warnings from line %fw}' 


set autowrite
let s:file_name = expand("%")
let s:file_stem = fnamemodify(s:file_name,":r")
let s:file_py = s:file_stem . '.py'
let s:file_expected = s:file_stem . '.expected'
let s:file_actual = s:file_stem . '.actual'
if ! &diff && ! exists("g:recovering") && argc() == 1
	let s:file_jabber = substitute(s:file_py,'\.py$','.j',"")
	if filereadable(s:file_jabber) && s:file_py != s:file_jabber && &loadplugins
		exec "tabnew " s:file_jabber
	endif
	let s:file_parsley = substitute(s:file_py,'\.py$','.parsley',"")
	if filereadable(s:file_parsley) && s:file_py != s:file_parsley && &loadplugins
		exec "tabnew " s:file_parsley
		set filetype=doctest
	endif
	let s:file_grammar = substitute(s:file_py,'\.py$','.g',"")
	if filereadable(s:file_grammar) && s:file_py != s:file_grammar && &loadplugins
		exec "tabnew " s:file_grammar
		set filetype=doctest
	endif
	let s:unit_test = substitute(s:file_py,'\.py$','_test.py',"")
	if filereadable(s:unit_test) && s:file_py != s:unit_test && &loadplugins
		setl autoread
		exec "tabnew " s:unit_test
		set filetype=python
		set foldlevel=1
	endif
	let s:test_unit = substitute(s:file_py,'^','test_',"")
	if filereadable(s:test_unit) && s:file_py != s:test_unit && &loadplugins<commit_msg>seek more test files<commit_after>if exists("g:loaded_jab_python")  
	finish
endif
let g:loaded_jab_python = "v001"

noremap } :cn<cr>
noremap { :cp<cr>

noremap D Oimport pudb<cr>pudb.set_trace()<esc>j
noremap tf :Fix<cr>
noremap tm :Mash<cr>
noremap tt :MashTry<cr>
noremap tn :Try<cr>
noremap tp :Pylint<cr>
noremap <S-F9> :call WritePEP()<cr>
noremap <leader><space> :%s/\s\+$//<cr>
noremap <leader>;   :s/:$//<cr>
noremap <leader>:   :s/$/:/<cr>
noremap <leader>8	b"aye<c-o>/\(def\\|class\) <c-r>a(<cr>
noremap <leader>c	?^\s*class \zs\i<cr>*
noremap <leader>d	?^\s*def \zs\i<cr>*
noremap <leader>o   O<esc>

call matchadd('ColorColumn', '\(\%80v\|\%100v\)', 100)

" PEP 8 calls for indentation with 4 spaces
set foldmethod=indent
set foldlevel=0
NoMatchParen

" Checkers
let g:syntastic_python_checkers=['pep8', 'pylint', 'python']
set statusline+=%#warningmsg#%{SyntasticStatuslineFlag()}%*
set laststatus=2
let g:syntastic_always_populate_loc_list = 1
let g:syntastic_auto_loc_list = 1
let g:syntastic_auto_jump = 1
let g:syntastic_stl_format = '%E{%e errors, from line %fe}%B{, }%W{%w warnings from line %fw}' 


set autowrite
let s:file_name = expand("%")
let s:file_stem = fnamemodify(s:file_name,":r")
let s:file_py = s:file_stem . '.py'
let s:file_expected = s:file_stem . '.expected'
let s:file_actual = s:file_stem . '.actual'
if ! &diff && ! exists("g:recovering") && argc() == 1
	let s:file_jabber = substitute(s:file_py,'\.py$','.j',"")
	if filereadable(s:file_jabber) && s:file_py != s:file_jabber && &loadplugins
		exec "tabnew " s:file_jabber
	endif
	let s:file_parsley = substitute(s:file_py,'\.py$','.parsley',"")
	if filereadable(s:file_parsley) && s:file_py != s:file_parsley && &loadplugins
		exec "tabnew " s:file_parsley
		set filetype=doctest
	endif
	let s:file_grammar = substitute(s:file_py,'\.py$','.g',"")
	if filereadable(s:file_grammar) && s:file_py != s:file_grammar && &loadplugins
		exec "tabnew " s:file_grammar
		set filetype=doctest
	endif
	let s:unit_test = substitute(s:file_py,'\.py$','_test.py',"")
	if ! filereadable(s:unit_test) 
        let s:unit_test = 'test/' . s:unit_test
        if ! filereadable(s:unit_test) 
            let s:unit_test = 'test/' . substitute(s:file_py,'\.py$','_test.py',"")
            if ! filereadable(s:unit_test)
                let s:unit_test = 'test/test_' . s:file_py
            endif
        endif
    endif
	if filereadable(s:unit_test) && s:file_py != s:unit_test && &loadplugins
		setl autoread
		exec "tabnew " s:unit_test
		set filetype=python
		set foldlevel=1
	endif
	let s:test_unit = substitute(s:file_py,'^','test_',"")
	if filereadable(s:test_unit) && s:file_py != s:test_unit && &loadplugins
{'fraction_non_alphanumeric': 0.17744842779891848, 'fraction_numerical': 0.009212898057280192, 'mean_word_length': 5.250312891113892, 'pattern_counts': {'":': 2, '<': 57, '<?xml version=': 0, '>': 57, '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': '1977308', 'n_tokens_mistral': 2226, 'n_tokens_neox': 2062, 'n_words': 412}