<commit_before>#!/usr/bin/python
# @Author: <NAME>
# @Date:   2017-05-01 05:14:54
# @Last Modified by:   <NAME>
# @Last Modified time: 2017-06-14 13:18:38
# 
"""
    MissionControl.py is a debugging tool for DESI_Sentinel
"""
################################## IMPORTS ###################################
import logging
import os.path
import signal
import sys
import time
import json
#
from math import floor
# Customs Mods #
import RPi.GPIO as GPIO
import Sentinel as Sentinel
# Local Modules #
################################### PATHS #####################################
sys.path.append(os.path.join(os.path.dirname(__file__), '..'))
import DESIConfig as DESIConfig
import drivers.MPR121 as MPR121
import drivers.VoyagerHCSR04 as VoyagerHCSR04
import Runner as Runner
#import trigger.snowboydetect as snowboydetect
############################ INITIALIZE CLASSES ###############################
DESI = DESIConfig.DESI()
Voyager1 = VoyagerHCSR04.Voyager("Voyager1", DESI.PROX1_TRIG, DESI.PROX1_ECHO)
Voyager2 = VoyagerHCSR04.Voyager("Voyager2", DESI.PROX2_TRIG, DESI.PROX2_ECHO)
TouchSense = MPR121.MPR121()
Sentinel = Sentinel.Sentinel()
Runner = Runner.Runner("Runner1", "Status.json")
################################## PATHS ######################################
def main():
    # Variables/Flags
    jdata = open(Status.json)
    data = json.load(jdata)
    print(data)
    Runner.writeStartLock()
    flagRailWarning = False
    flagSelectorWarning = False
    flagProximityWarning = False
    flagRedux = False
    flagStartSet = False
    # Initialize DESI States
    DESI.initDESI()
    # Initialize Voyager Proximity Sensors<commit_msg>Script<commit_after>#!/usr/bin/python
# @Author: <NAME>
# @Date:   2017-05-01 05:14:54
# @Last Modified by:   <NAME>
# @Last Modified time: 2017-06-14 13:19:33
# 
"""
    MissionControl.py is a debugging tool for DESI_Sentinel
"""
################################## IMPORTS ###################################
import logging
import os.path
import signal
import sys
import time
import json
#
from math import floor
# Customs Mods #
import RPi.GPIO as GPIO
import Sentinel as Sentinel
# Local Modules #
################################### PATHS #####################################
sys.path.append(os.path.join(os.path.dirname(__file__), '..'))
import DESIConfig as DESIConfig
import drivers.MPR121 as MPR121
import drivers.VoyagerHCSR04 as VoyagerHCSR04
import Runner as Runner
#import trigger.snowboydetect as snowboydetect
############################ INITIALIZE CLASSES ###############################
DESI = DESIConfig.DESI()
Voyager1 = VoyagerHCSR04.Voyager("Voyager1", DESI.PROX1_TRIG, DESI.PROX1_ECHO)
Voyager2 = VoyagerHCSR04.Voyager("Voyager2", DESI.PROX2_TRIG, DESI.PROX2_ECHO)
TouchSense = MPR121.MPR121()
Sentinel = Sentinel.Sentinel()
Runner = Runner.Runner("Runner1", "Status.json")
################################## PATHS ######################################
def main():
    # Variables/Flags
    jdata = open("Status.json")
    data = json.load(jdata)
    print(data)
    Runner.writeStartLock()
    flagRailWarning = False
    flagSelectorWarning = False
    flagProximityWarning = False
    flagRedux = False
    flagStartSet = False
    # Initialize DESI States
    DESI.initDESI()
    # Initialize Voyager Proximity Sensors
{'fraction_non_alphanumeric': 0.24931756141947226, 'fraction_numerical': 0.034576888080072796, 'mean_word_length': 5.479371316306484, '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': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3258098', 'n_tokens_mistral': 1143, 'n_tokens_neox': 1032, 'n_words': 239}