<commit_before>function configure_python() {
	local __user_var=$1
	# this script adjusts PYTHONPATH to find
	# packages that we installed using PIP and PIP3
	# into the users home directory using pip flag --user.

	# strictly speaking this is not needed in modern python implementations
	# which already take module from the user site

	# add user base to python path
	# pathutils_add_head PYTHONPATH "`python -c \"import site; print site.USER_SITE;\"`"
	export PYTHONIOENCODING=UTF-8
	var_set_by_name "$__user_var" 0
}

function prun() {
	# this function run a python module using python -m by its filename
	# why do you need this? python -m does not auto complete python modules
	# while file names are auto completed by the shell...
	# this is very convenient
	# remove .py
	module=${1%.py}
	# replace slashes by dots
	module=${module//\//.}
	# trailing slash / dot 
	module=${module%.}
	python -m $module ${@:2}
}

register configure_python<commit_msg>better spacing<commit_after>function configure_python() {
	local __user_var=$1
	# this script adjusts PYTHONPATH to find
	# packages that we installed using PIP and PIP3
	# into the users home directory using pip flag --user.

	# strictly speaking this is not needed in modern python implementations
	# which already take module from the user site

	# add user base to python path
	# pathutils_add_head PYTHONPATH "`python -c \"import site; print site.USER_SITE;\"`"
	export PYTHONIOENCODING=UTF-8
	var_set_by_name "$__user_var" 0
}

function prun() {
	# this function run a python module using python -m by its filename
	# why do you need this? python -m does not auto complete python modules
	# while file names are auto completed by the shell...
	# this is very convenient
	# remove .py
	module=${1%.py}
	# replace slashes by dots
	module=${module//\//.}
	# trailing slash / dot 
	module=${module%.}
	python -m $module "${@:2}"
}

register configure_python
{'fraction_non_alphanumeric': 0.08877284595300261, 'fraction_numerical': 0.006266318537859008, 'mean_word_length': 4.015706806282722, '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': '3470962', 'n_tokens_mistral': 602, 'n_tokens_neox': 573, 'n_words': 244}