<commit_before>#!/bin/bash
# This script is used to release a version.

function set_version {
	echo -n "Replacing version in source files"
	for fl in $(find . -iname "*.py"); do
		sed "s/\(VERSION\|version\|release\) *= *[\"'][0-9]\+\..\+[\"']/\1 = '$1'/g" $fl > $fl.new
		diff $fl.new $fl >/dev/null && echo -n "." || echo -n "+"
		cp -f $fl.new $fl
		rm -f $fl.new<commit_msg>prevent replacing bad versions<commit_after>#!/bin/bash
# This script is used to release a version.

function set_version {
	echo -n "Replacing version in source files"
	for fl in $(find . -iname "*.py"); do
		sed "s/\(VERSION\|version\|release\) *= *[\"'][0-9]\+\..\+[\"']$/\1 = '$1'/g" $fl > $fl.new
		diff $fl.new $fl >/dev/null && echo -n "." || echo -n "+"
		cp -f $fl.new $fl
		rm -f $fl.new
{'fraction_non_alphanumeric': 0.24097938144329897, 'fraction_numerical': 0.010309278350515464, 'mean_word_length': 2.8088235294117645, 'pattern_counts': {'":': 0, '<': 3, '<?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': '7405067', 'n_tokens_mistral': 321, 'n_tokens_neox': 302, 'n_words': 94}