<commit_before>#!/bin/bash

TELEGRAF_CONF_FILE=/usr/local/etc/telegraf.conf
TELEGRAF_BACKUP_FILE=/usr/local/etc/telegraf.conf.old
DEFAULT_TELEGRAF_CONF_FILE=/usr/local/etc/telegraf.conf.default
PROXY_CONF_FILE=/usr/local/etc/wfproxy.conf
PROXY_BACKUP_FILE=/usr/local/etc/wfproxy.conf.old
DEFAULT_PROXY_CONF_FILE=/usr/local/etc/wfproxy.conf.default

function print_usage_and_exit() {
    echo "Failure: $1"
    echo "Usage: $0 [-p | -a] [-tuhf]"
    echo -e "\t-a Install the telegraf agent. -h is required with this option."
    echo -e "\t-h string  The host address of the proxy the agent connects to."
    echo -e "\t-p Install the Wavefront proxy. -t and -u are required with this option."<commit_msg>Updated proxy install filepaths<commit_after>#!/bin/bash

TELEGRAF_CONF_FILE=/usr/local/etc/telegraf.conf
TELEGRAF_BACKUP_FILE=/usr/local/etc/telegraf.conf.old
DEFAULT_TELEGRAF_CONF_FILE=/usr/local/etc/telegraf.conf.default
PROXY_CONF_DIR=/usr/local/etc/wavefront/wavefront-proxy
PROXY_CONF_FILE=${PROXY_CONF_DIR}/wavefront.conf
PROXY_BACKUP_FILE=${PROXY_CONF_DIR}/wavefront.conf.old
DEFAULT_PROXY_CONF_FILE=${PROXY_CONF_DIR}/wavefront.conf.default

function print_usage_and_exit() {
    echo "Failure: $1"
    echo "Usage: $0 [-p | -a] [-tuhf]"
    echo -e "\t-a Install the telegraf agent. -h is required with this option."
    echo -e "\t-h string  The host address of the proxy the agent connects to."
    echo -e "\t-p Install the Wavefront proxy. -t and -u are required with this option."
{'fraction_non_alphanumeric': 0.12341561040693796, 'fraction_numerical': 0.00266844563042028, 'mean_word_length': 4.319148936170213, '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': '709890', 'n_tokens_mistral': 572, 'n_tokens_neox': 552, 'n_words': 123}