<commit_before>#!/bin/sh
if [ -f /sys/class/net/ppp0/statistics/rx_bytes ] ; then
	vnstat --oneline | sed 's/1;.*;\([^;]*\);[^;]*;[^;]*;[^;]*;[^;]*$/\1/'
else
	echo ""
fi<commit_msg>Warn when monthly bandwidth is reached<commit_after>#!/bin/sh
if [ -f /sys/class/net/ppp0/statistics/rx_bytes ] ; then
	USAGE=$(vnstat --oneline | sed 's/1;.*;\([^;]*\);[^;]*;[^;]*;[^;]*;[^;]*$/\1/')
	echo $USAGE

	ORDER=$(echo $USAGE | cut -d ' ' -f2)
	SIZE=$(echo $USAGE | cut -d '.' -f1)
	if [ "$ORDER" = "MiB" -a $SIZE -gt 50 ]; then
		notify-send 'Bandwidth used!'
	fi
else
	echo ""
fi
{'fraction_non_alphanumeric': 0.3041958041958042, 'fraction_numerical': 0.017482517482517484, 'mean_word_length': 3.5476190476190474, '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': '4192831', 'n_tokens_mistral': 278, 'n_tokens_neox': 260, 'n_words': 52}