<commit_before>#!/usr/bin/bash

# XXX - TODO
# - if $ntp_hosts == "local", configure ntp for no external time source

exec 4>>/var/log/prompt-config.log
echo "=== Starting prompt-config on $(tty) at $(date) ===" >&4
export PS4='[\D{%FT%TZ}] $(tty): ${BASH_SOURCE}:${LINENO}: ${FUNCNAME[0]:+${FUNCNAME[0]}(): }'
export BASH_XTRACEFD=4
set -o xtrace

PATH=/usr/sbin:/usr/bin
export PATH

# ERRORS (for getanswer's errno)
ENOTFOUND=1
EBADJSON=2
EUNKNOWN=3

# Defaults
mail_to="root@localhost"
# Temporarily use IPs until HEAD-1417 allows hostname usage.
#ntp_hosts="ntp01.joyent.com,ntp02.joyent.com"
ntp_hosts="172.16.31.10,172.16.31.10"
dns_resolver1="8.8.8.8"
dns_resolver2="8.8.4.4"
<commit_msg>HEAD-1057 need proper default NTP server(s) for SDC (can't handle multiple)<commit_after>#!/usr/bin/bash

# XXX - TODO
# - if $ntp_hosts == "local", configure ntp for no external time source

exec 4>>/var/log/prompt-config.log
echo "=== Starting prompt-config on $(tty) at $(date) ===" >&4
export PS4='[\D{%FT%TZ}] $(tty): ${BASH_SOURCE}:${LINENO}: ${FUNCNAME[0]:+${FUNCNAME[0]}(): }'
export BASH_XTRACEFD=4
set -o xtrace

PATH=/usr/sbin:/usr/bin
export PATH

# ERRORS (for getanswer's errno)
ENOTFOUND=1
EBADJSON=2
EUNKNOWN=3

# Defaults
mail_to="root@localhost"
# Temporarily use IPs until HEAD-1417 allows hostname usage.
#ntp_hosts="ntp01.joyent.com,ntp02.joyent.com"
ntp_hosts="172.16.31.10"
dns_resolver1="8.8.8.8"
dns_resolver2="8.8.4.4"

{'fraction_non_alphanumeric': 0.18598195697432338, 'fraction_numerical': 0.05898681471200555, 'mean_word_length': 5.408888888888889, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 7, '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': '4789897', 'n_tokens_mistral': 654, 'n_tokens_neox': 600, 'n_words': 124}