<commit_before>#!/bin/bash

# Check if root
if (( $(id -u) != "root" )); then
	echo "The bashshot cleaner script must be run as root."
	exit;
fi

# Creates temporary files
tempLog=/tmp/snapshot_cleanerlog_tmp.txt
touch $tempLog

if [[ ! $1 == "DEBUG" ]]; then
	exec >> $tempLog 2>&1
fi
snapshots=/tmp/snapshots_tmp.txt<commit_msg>Now with proper debugging<commit_after>#!/bin/bash

# Check if root
if (( $(id -u) != "root" )); then
	echo "The bashshot cleaner script must be run as root."
	exit;
fi

# Creates temporary files
tempLog=/tmp/snapshot_cleanerlog_tmp.txt
touch $tempLog

if [[ ! $2 == "DEBUG" ]]; then
	exec >> $tempLog 2>&1
fi
snapshots=/tmp/snapshots_tmp.txt
{'fraction_non_alphanumeric': 0.15178571428571427, 'fraction_numerical': 0.008928571428571428, 'mean_word_length': 4.341269841269841, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, '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': '3670519', 'n_tokens_mistral': 257, 'n_tokens_neox': 243, 'n_words': 74}