<commit_before>#!/bin/bash
# Configuration installer for SSL DisplayBoard

becho()  { echo -e "\033[1m ** $@\033[0m"; }
bbecho() { echo -e "\033[1m    -> $@\033[0m"; }
cerr()   { if [ ! "$1" = "0" ];then becho "Previous command exited with code $1. Check output for more details."; exit 1; fi; }

SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
ARC="resources/kodi-config-enc.tar.7z"
VER="0.1"
DL_ARC="https://github.com/UMDSpaceSystemsLab/DisplayBoards/releases/download/v$VER/kodi-config-enc.tar.7z"

if [ "$#" != "1" ];then
	becho "ERROR: Incorrect number of arguments."
	becho "Usage: $0 [path-to-kodi-data-partition]"
	exit 1
fi

if [ ! -d "$1" ];then
	becho "ERROR: Path '$1' does not exist (or isn't a directory)!"
	exit 1
fi

if [ ! -f "$ARC" ];then
    becho "ERROR: Archive $ARC does not exist! Press ENTER to download it."
    becho "(Otherwise, press CTRL-C to exit.)"
    read
    wget --content-disposition -O "$ARC" "$DL_ARC"
fi<commit_msg>Bump version to v0.1.1<commit_after>#!/bin/bash
# Configuration installer for SSL DisplayBoard

becho()  { echo -e "\033[1m ** $@\033[0m"; }
bbecho() { echo -e "\033[1m    -> $@\033[0m"; }
cerr()   { if [ ! "$1" = "0" ];then becho "Previous command exited with code $1. Check output for more details."; exit 1; fi; }

SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
ARC="resources/kodi-config-enc.tar.7z"
VER="0.1.1"
DL_ARC="https://github.com/UMDSpaceSystemsLab/DisplayBoards/releases/download/v$VER/kodi-config-enc.tar.7z"

if [ "$#" != "1" ];then
	becho "ERROR: Incorrect number of arguments."
	becho "Usage: $0 [path-to-kodi-data-partition]"
	exit 1
fi

if [ ! -d "$1" ];then
	becho "ERROR: Path '$1' does not exist (or isn't a directory)!"
	exit 1
fi

if [ ! -f "$ARC" ];then
    becho "ERROR: Archive $ARC does not exist! Press ENTER to download it."
    becho "(Otherwise, press CTRL-C to exit.)"
    read
    wget --content-disposition -O "$ARC" "$DL_ARC"
fi
{'fraction_non_alphanumeric': 0.1922091235263967, 'fraction_numerical': 0.033828805740645826, 'mean_word_length': 3.6810551558753, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4194950', 'n_tokens_mistral': 818, 'n_tokens_neox': 745, 'n_words': 216}