<commit_before>" py3venv.vim - Vim global plugin to support Python 3 venv

" Version:      0.2
" Last Change:  3 Dec 2013
" Maintainer:   <NAME> <<EMAIL>>
" License:      BSD 2-Clause License

if !has('python3')
  echomsg "Error: Required vim compiled with +python3"
  finish
endif

if exists("g:loaded_py3venv")
  finish
endif
let g:loaded_py3venv = 1

let s:save_cpo = &cpo
set cpo&vim

python3 << PYTHONEOF
try:
    class DummyClassForLocalScope():
        import os
        import sys
        import vim

        plugin_path = vim.eval('expand("<sfile>:p:h")')
        sys.path.insert(0, plugin_path)
        import py3venv

        # remove plugin_path from sys.path before py3env.activate()
        if plugin_path in sys.path:
            sys.path.remove(plugin_path)

        py3venv.activate()

        raise RuntimeError
except RuntimeError:
    pass
PYTHONEOF

let &cpo = s:save_cpo
unlet s:save_cpo
<commit_msg>Removed unused "import os"<commit_after>" py3venv.vim - Vim global plugin to support Python 3 venv

" Version:      0.2
" Last Change:  3 Dec 2013
" Maintainer:   <NAME> <<EMAIL>>
" License:      BSD 2-Clause License

if !has('python3')
  echomsg "Error: Required vim compiled with +python3"
  finish
endif

if exists("g:loaded_py3venv")
  finish
endif
let g:loaded_py3venv = 1

let s:save_cpo = &cpo
set cpo&vim

python3 << PYTHONEOF
try:
    class DummyClassForLocalScope():
        import sys
        import vim

        plugin_path = vim.eval('expand("<sfile>:p:h")')
        sys.path.insert(0, plugin_path)
        import py3venv

        # remove plugin_path from sys.path before py3env.activate()
        if plugin_path in sys.path:
            sys.path.remove(plugin_path)

        py3venv.activate()

        raise RuntimeError
except RuntimeError:
    pass
PYTHONEOF

let &cpo = s:save_cpo
unlet s:save_cpo

{'fraction_non_alphanumeric': 0.09461663947797716, 'fraction_numerical': 0.021750951604132682, 'mean_word_length': 2.8818565400843883, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 11, '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': '1412326', 'n_tokens_mistral': 665, 'n_tokens_neox': 638, 'n_words': 175}