<commit_before>#! /bin/sh

# Reset the tree to the checkout
cg-reset
cg-clean -d
#cg-restore -f ./tp/netlib/version.py

# Update to the latest version
cg-update

# Fix the version.py
cd tp/netlib
python version.py --fix > version-new.py
mv version-new.py version.py
cd ../..

# Update the debian changelog
cd debian; ./update-debian-changelog; cd ..

# Build the deb package
dpkg-buildpackage -us -uc -b -rfakeroot<commit_msg>Reset the tree back to pristine state after build.<commit_after>#! /bin/sh

# Reset the tree to the checkout
cg-reset
cg-clean -d -x
#cg-restore -f ./tp/netlib/version.py

# Update to the latest version
cg-update

# Fix the version.py
cd tp/netlib
python version.py --fix > version-new.py
mv version-new.py version.py
cd ../..

# Update the debian changelog
cd debian; ./update-debian-changelog; cd ..

# Build the deb package
dpkg-buildpackage -us -uc -b -rfakeroot

# Reset the tree to the checkout
cg-reset
cg-clean -d -x
{'fraction_non_alphanumeric': 0.11894736842105263, 'fraction_numerical': 0.0, 'mean_word_length': 3.134782608695652, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '1717309', 'n_tokens_mistral': 343, 'n_tokens_neox': 331, 'n_words': 118}