<commit_before>import bottle
from cso_parser import CsoParser
import waitress
from pytz import timezone
from apscheduler.schedulers.background import BackgroundScheduler
from breathe import Breathe
from controller import Controller

bottle_app = bottle.app()
scheduler = BackgroundScheduler()
scheduler.configure(timezone=timezone('US/Pacific'))
breather = Breathe()
cso_parser = CsoParser()
my_controller = Controller(bottle_app, breather)


@scheduler.scheduled_job(trigger='cron', hour=17, minute=30)
def on_job():
    """Start at 7:00pm PT"""
    print('STARTING BREATHER')
    breather.restart()


@scheduler.scheduled_job(trigger='cron', hour=19, minute=30)
def off_job():
    """End at 9:00pm PT"""
    print("STOPPING BREATHER")
    breather.stop()


@scheduler.scheduled_job(trigger='cron', hour=1, minute=30)
def cso_job():<commit_msg>server.py - only look for CSOs on or near Duwamish<commit_after>import bottle
from cso_parser import CsoParser
import waitress
from pytz import timezone
from apscheduler.schedulers.background import BackgroundScheduler
from breathe import Breathe
from controller import Controller

bottle_app = bottle.app()
scheduler = BackgroundScheduler()
scheduler.configure(timezone=timezone('US/Pacific'))
breather = Breathe()
requested = {"KDOM.CSOSTATUS_N", "HARB.CSOSTATUS_N", "CHEL.CSOSTATUS_N", "LAND.CSOSTATUS_N", "HANF.CSOSTATUS_N",
             "DUWA.CSOSTATUS_N", "BRAN.CSOSTATUS_N", "T115.CSOSTATUS_N", "MICH.CSOSTATUS_N", "WMIC.CSOSTATUS_N",
             "EMAR.CSOSTATUS_N", "8TH.CSOSTATUS_N", "NORF.CSOSTATUS_N", "NPDES078", "NPDES080", "NPDES107", "NPDES116"}
cso_parser = CsoParser(requested)
my_controller = Controller(bottle_app, breather)


@scheduler.scheduled_job(trigger='cron', hour=17, minute=30)
def on_job():
    """Start at 7:00pm PT"""
    print('STARTING BREATHER')
    breather.restart()


@scheduler.scheduled_job(trigger='cron', hour=19, minute=30)
def off_job():
    """End at 9:00pm PT"""
    print("STOPPING BREATHER")
    breather.stop()


@scheduler.scheduled_job(trigger='cron', hour=1, minute=30)
def cso_job():
{'fraction_non_alphanumeric': 0.12968299711815562, 'fraction_numerical': 0.024015369836695485, 'mean_word_length': 6.182758620689655, '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': '7071962', 'n_tokens_mistral': 784, 'n_tokens_neox': 744, 'n_words': 155}