<commit_before>function pb {
	curl -F 'f:1=<-' ix.io
}

function ws {
	if [[ ! -s $1 ]]; then
		return 0
	fi
	if [[ $(tail -c 1 $1 | wc -l) -eq 0 ]]; then
		echo >> $1
	elif [[ $(tail -c 2 $1 | head -c 1 | wc -l) -eq 1 ]]; then
		while [[ $(tail -c 2 $1 | head -c 1 | wc -l) -eq 1 ]]; do
			truncate -s -1 $1
		done
	fi
}

function pypiver {
	sed -i "/^version =/c\version = \"$1\"" pyproject.toml
	sed -i "/^__version__/c\__version__ = \"$1\"" setup.py
	git add setup.py pyproject.toml
	git commit -m "Bump version"
	git tag -s v$1 -m v$1
	git push --follow-tags
}

function pypiup {
	pip install -U twine
	rm -rf build dist
	python setup.py sdist bdist_wheel
	twine upload dist/*
}

function inenv {
	local VAR_NAME
	for file in $@; do
		while read line; do
			if [[ $line != '#'* ]]; then
				VAR_NAME=$(echo $line | cut -d= -f1)
				if [[ -n "${VAR_NAME+1}" ]]; then
					export _OLD_${VAR_NAME}=${(P)VAR_NAME}
				fi
				export ${(e)line}
			fi
		done < $file
	done
}

function outenv {<commit_msg>Remove functions poetry made redundant<commit_after>function pb {
	curl -F 'f:1=<-' ix.io
}

function ws {
	if [[ ! -s $1 ]]; then
		return 0
	fi
	if [[ $(tail -c 1 $1 | wc -l) -eq 0 ]]; then
		echo >> $1
	elif [[ $(tail -c 2 $1 | head -c 1 | wc -l) -eq 1 ]]; then
		while [[ $(tail -c 2 $1 | head -c 1 | wc -l) -eq 1 ]]; do
			truncate -s -1 $1
		done
	fi
}

function inenv {
	local VAR_NAME
	for file in $@; do
		while read line; do
			if [[ $line != '#'* ]]; then
				VAR_NAME=$(echo $line | cut -d= -f1)
				if [[ -n "${VAR_NAME+1}" ]]; then
					export _OLD_${VAR_NAME}=${(P)VAR_NAME}
				fi
				export ${(e)line}
			fi
		done < $file
	done
}

function outenv {
{'fraction_non_alphanumeric': 0.18334331935290593, 'fraction_numerical': 0.025164769322947873, 'mean_word_length': 2.387423935091278, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '5597209', 'n_tokens_mistral': 799, 'n_tokens_neox': 712, 'n_words': 240}