<commit_before>#!/bin/bash
# AUTHOR:   <NAME> - <EMAIL>
# WHAT:     Automatically runs shred on any media plugged into the computer aside from devices in the exclusion list
# WHY:      because automagic

EXCLUSION=("sda" "sdb" "sr" "xvda" "xvdb")
BLD=$(tput bold)
RST=$(tput sgr0)
RED=$(tput setaf 1)
GRN=$(tput setaf 2)
BLU=$(tput setaf 4)
KEYPRESS=""

usage() {
    echo "${BLD}${RED}WARNING: THIS SCRIPT WILL NUKE DATA IN ANY BLOCK DEVICE NOT IN THE EXCLUSION LIST${RST}"
    echo "${BLD}Current exclusion list${RST}"
    echo "${BLD}+--------------------+${RST}"
    for i in ${EXCLUSION[@]}; do
        echo "/dev/$i"
    done
    echo
    echo "${BLD}Example usage${RST}"
    echo "${BLD}+-----------+${RST}"
    echo "This will run the script and start wiping your data with a DoD 3 pass"
    echo "sudo ./$(basename $0) -f"
}

# Run only with root privs due to the forceful unmounting we need to do.
# You can't sudo echo. You can technically... but whatever
if [ $EUID -ne 0 ]; then
   usage
   exit 1
fi

if [ $# -ne 1 ]; then
    usage
    exit 1
fi
<commit_msg>Added a shell flag that hopefully will force a person to read the usage before they fuck their data up<commit_after>#!/bin/bash
# AUTHOR:   <NAME> - <EMAIL>
# WHAT:     Automatically runs shred on any media plugged into the computer aside from devices in the exclusion list
# WHY:      because automagic


EXCLUSION=("sda" "sdb" "sr")
BLD=$(tput bold)
RST=$(tput sgr0)
RED=$(tput setaf 1)
GRN=$(tput setaf 2)
BLU=$(tput setaf 4)
KEYPRESS=""

usage() {
    echo "${BLD}${RED}WARNING: THIS SCRIPT WILL NUKE DATA IN ANY BLOCK DEVICE NOT IN THE EXCLUSION LIST${RST}"
    echo "${BLD}${RED}WARNING: THIS SCRIPT WILL NUKE DATA IN ANY BLOCK DEVICE NOT IN THE EXCLUSION LIST${RST}"
    echo "${BLD}${RED}WARNING: THIS SCRIPT WILL NUKE DATA IN ANY BLOCK DEVICE NOT IN THE EXCLUSION LIST${RST}"
    echo "${BLD}${RED}WARNING: THIS SCRIPT WILL NUKE DATA IN ANY BLOCK DEVICE NOT IN THE EXCLUSION LIST${RST}"
    echo "${BLD}${RED}WARNING: THIS SCRIPT WILL NUKE DATA IN ANY BLOCK DEVICE NOT IN THE EXCLUSION LIST${RST}"
    echo
    echo "${BLD}Current exclusion list${RST}"
    echo "${BLD}+--------------------+${RST}"
    for i in ${EXCLUSION[@]}; do
        echo "/dev/$i"
    done
    echo
    echo "${BLD}Example usage${RST}"
    echo "${BLD}+-----------+${RST}"
    echo "This will run the script and start wiping your data with a DoD 3 pass"
    echo "sudo ./$(basename $0) -f"
}

# Run only with root privs due to the forceful unmounting we need to do.
# You can't sudo echo. You can technically... but whatever
if [ $EUID -ne 0 ]; then
   usage
   exit 1
fi

if [ $# -ne 1 ]; then
    usage
    exit 1
fi

{'fraction_non_alphanumeric': 0.1502803738317757, 'fraction_numerical': 0.007476635514018692, 'mean_word_length': 3.0545454545454547, 'pattern_counts': {'":': 0, '<': 7, '<?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': 1, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5722684', 'n_tokens_mistral': 968, 'n_tokens_neox': 896, 'n_words': 366}