<commit_before>install:
	@cp upack /usr/bin
	@git branch | grep '*' | awk '{ print $$2 }' > upack.version
	@echo / >> upack.version;
	@if [ `uname` = SunOS ]; then \
gawk 1 ORS='' upack.version > /usr/bin/upack.version; \
else \
awk 1 ORS='' upack.version > /usr/bin/upack.version; \
fi
	@git log --pretty=format:'%h' -n 1 >> /usr/bin/upack.version
	@rm -f upack.version
	-@grep -q "altlinux" /etc/os-release 2> /dev/null; \
if [ $$? = 0 ]; then \
echo "Installing required package bash4, as existing /bin/bash is version 3"; \
apt-get install bash4 -y && \
sed -i 's/\#\!\/bin\/bash/\#\!\/bin\/bash4/' /usr/bin/upack; \
fi
	@if [ `uname` = FreeBSD ]; then \
echo "Installing required package bash, as bash (any version) is missing"; \
pkg install bash; \
sed 's/\#\!\/bin\/bash/\#\!\/usr\/local\/bin\/bash/' /usr/bin/upack > /usr/local/bin/upack; \
sed -i '' 's/\/usr\/bin\/upack\.version/\/usr\/local\/bin\/upack\.version/' /usr/local/bin/upack; \
chmod a+x /usr/local/bin/upack; \
mv /usr/bin/upack.version /usr/local/bin/upack.version; \
rm -f /usr/bin/upack; fi

uninstall:
	@if [ `uname` = FreeBSD ]; then \
rm -f /usr/local/bin/upack /usr/local/bin/upack.version; \
else rm -f /usr/bin/upack /usr/bin/upack.version; fi
# if distro is altlinux, then bash4 package should be removed
# if os is freebsd, then bash package should be removed
<commit_msg>Fix broken Dyson detection in prev. commit<commit_after>install:
	@cp upack /usr/bin
	@git branch | grep '*' | awk '{ print $$2 }' > upack.version
	@echo / >> upack.version;
	@if [ `uname` = SunOS ] && [ ! -f /etc/os-release ]; then \
gawk 1 ORS='' upack.version > /usr/bin/upack.version; \
else \
awk 1 ORS='' upack.version > /usr/bin/upack.version; \
fi
	@git log --pretty=format:'%h' -n 1 >> /usr/bin/upack.version
	@rm -f upack.version
	-@grep -q "altlinux" /etc/os-release 2> /dev/null; \
if [ $$? = 0 ]; then \
echo "Installing required package bash4, as existing /bin/bash is version 3"; \
apt-get install bash4 -y && \
sed -i 's/\#\!\/bin\/bash/\#\!\/bin\/bash4/' /usr/bin/upack; \
fi
	@if [ `uname` = FreeBSD ]; then \
echo "Installing required package bash, as bash (any version) is missing"; \
pkg install bash; \
sed 's/\#\!\/bin\/bash/\#\!\/usr\/local\/bin\/bash/' /usr/bin/upack > /usr/local/bin/upack; \
sed -i '' 's/\/usr\/bin\/upack\.version/\/usr\/local\/bin\/upack\.version/' /usr/local/bin/upack; \
chmod a+x /usr/local/bin/upack; \
mv /usr/bin/upack.version /usr/local/bin/upack.version; \
rm -f /usr/bin/upack; fi

uninstall:
	@if [ `uname` = FreeBSD ]; then \
rm -f /usr/local/bin/upack /usr/local/bin/upack.version; \
else rm -f /usr/bin/upack /usr/bin/upack.version; fi
# if distro is altlinux, then bash4 package should be removed
# if os is freebsd, then bash package should be removed

{'fraction_non_alphanumeric': 0.20368364030335862, 'fraction_numerical': 0.007945106536655833, 'mean_word_length': 2.815426997245179, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 21, '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': '2900893', 'n_tokens_mistral': 1150, 'n_tokens_neox': 1088, 'n_words': 284}