<commit_before>setlocal expandtab
setlocal tabstop=4
setlocal shiftwidth=4
setlocal foldminlines=3
if executable('yapf')
  setlocal textwidth=0  " prevent auto formatting, yapfify will fail.
  setlocal formatprg=yapf
  setlocal formatexpr=yapf#yapfify(v:lnum,v:lnum+v:count-1)
endif

" vim: set ts=2 sw=2 tw=99 et :<commit_msg>vim: add remove trailing whitespace for python<commit_after>setlocal expandtab
setlocal tabstop=4
setlocal shiftwidth=4
setlocal foldminlines=3
if executable('yapf')
  setlocal textwidth=0  " prevent auto formatting, yapfify will fail.
  setlocal formatprg=yapf
  setlocal formatexpr=yapf#yapfify(v:lnum,v:lnum+v:count-1)
endif

augroup vimrc_python
  autocmd!
  autocmd BufWritePre *.py %s/\s\+$//e | ''
augroup END

" vim: set ts=2 sw=2 tw=99 et :
{'fraction_non_alphanumeric': 0.09922680412371133, 'fraction_numerical': 0.023195876288659795, 'mean_word_length': 6.0, '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': '2109773', 'n_tokens_mistral': 313, 'n_tokens_neox': 303, 'n_words': 73}