<commit_before># globalvalues.py: provide constants all in one place.

# -*- coding: utf-8 -*-
from __future__ import print_function

try:
    import RPi.GPIO as GPIO
    RPI = True
except ImportError:
    print('Not on a Raspberry Pi, proceeding anyway')
    RPI = False

# Hardware pin numbers
# (using Broadcom numbering)
# (Broadcom numbers are labeled on the pi hat)
SIGNAL_PIN = 17
NOISE_PIN = 4
POWER_LED_PIN = 19
NETWORK_LED_PIN = 20
COUNTS_LED_PIN = 21

# Defaults
DEFAULT_CONFIG = '/home/pi/config/config.csv'
DEFAULT_PUBLICKEY = '/home/pi/config/id_rsa_lbl.pub'
DEFAULT_LOGFILE = '/home/pi/debug.log'
DEFAULT_HOSTNAME = 'dosenet.dhcp.lbl.gov'
DEFAULT_DATALOG = '/home/pi/data-log.txt'
DEFAULT_TEST_DATALOG = '/home/pi/data-log-testfile.txt'
DEFAULT_PORT = 5005

DEFAULT_INTERVAL_NORMAL = 300
DEFAULT_INTERVAL_TEST = 30
DEFAULT_MAX_ACCUM_TIME = 3600

# ANSI color codes
ANSI_RESET = '\033[37m' + '\033[22m'    # white and not bold
ANSI_BOLD = '\033[1m'
ANSI_RED = '\033[31m' + ANSI_BOLD
ANSI_GR = '\033[32m' + ANSI_BOLD
ANSI_YEL = '\033[33m' + ANSI_BOLD


# --- some old notes:
# Note: GPIO.LOW  - 0V
#       GPIO.HIGH - 3.3V or 5V ???? (RPi rail voltage)

# SIG >> float (~3.3V) --> 0.69V --> EXP charge back to float (~3.3V)
# NS  >> ~0V (GPIO.LOW) --> 3.3V (GPIO.HIGH) RPi rail<commit_msg>removed testdatalog global value<commit_after># globalvalues.py: provide constants all in one place.

# -*- coding: utf-8 -*-
from __future__ import print_function

try:
    import RPi.GPIO as GPIO
    RPI = True
except ImportError:
    print('Not on a Raspberry Pi, proceeding anyway')
    RPI = False

# Hardware pin numbers
# (using Broadcom numbering)
# (Broadcom numbers are labeled on the pi hat)
SIGNAL_PIN = 17
NOISE_PIN = 4
POWER_LED_PIN = 19
NETWORK_LED_PIN = 20
COUNTS_LED_PIN = 21

# Defaults
DEFAULT_CONFIG = '/home/pi/config/config.csv'
DEFAULT_PUBLICKEY = '/home/pi/config/id_rsa_lbl.pub'
DEFAULT_LOGFILE = '/home/pi/debug.log'
DEFAULT_HOSTNAME = 'dosenet.dhcp.lbl.gov'
DEFAULT_DATALOG = '/home/pi/data-log.txt'
DEFAULT_PORT = 5005

DEFAULT_INTERVAL_NORMAL = 300
DEFAULT_INTERVAL_TEST = 30
DEFAULT_MAX_ACCUM_TIME = 3600

# ANSI color codes
ANSI_RESET = '\033[37m' + '\033[22m'    # white and not bold
ANSI_BOLD = '\033[1m'
ANSI_RED = '\033[31m' + ANSI_BOLD
ANSI_GR = '\033[32m' + ANSI_BOLD
ANSI_YEL = '\033[33m' + ANSI_BOLD


# --- some old notes:
# Note: GPIO.LOW  - 0V
#       GPIO.HIGH - 3.3V or 5V ???? (RPi rail voltage)

# SIG >> float (~3.3V) --> 0.69V --> EXP charge back to float (~3.3V)
# NS  >> ~0V (GPIO.LOW) --> 3.3V (GPIO.HIGH) RPi rail
{'fraction_non_alphanumeric': 0.1328398909232567, 'fraction_numerical': 0.051421893260615505, 'mean_word_length': 3.729281767955801, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 17, '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': '2681141', 'n_tokens_mistral': 1099, 'n_tokens_neox': 1014, 'n_words': 256}