<commit_before>import schedule
import time

import message
import location
import getweather
import mongo


def job():

    lat, lon = location.get_location()  # retrieve latitude, longitude
    weather = getweather.get_weather(lat, lon)   # get weather via gps
    mongo.insert(weather)           # put info in database

    avg_high, avg_low = mongo.avg_high_and_low(weather) # Retrieve averages
    weather['Average_High'] = avg_high
    weather['Average_Low'] = avg_low

    msg = message.create_message(weather)  # creates text message
    message.send_message(msg)  # send text message
    print "Message sent"

def automate():
    schedule.every().day.at("08:00").do(job)  # run every day at 8AM<commit_msg>remove single space because it was bothering me<commit_after>import schedule
import time

import message
import location
import getweather
import mongo


def job():
    lat, lon = location.get_location()  # retrieve latitude, longitude
    weather = getweather.get_weather(lat, lon)   # get weather via gps
    mongo.insert(weather)           # put info in database

    avg_high, avg_low = mongo.avg_high_and_low(weather) # Retrieve averages
    weather['Average_High'] = avg_high
    weather['Average_Low'] = avg_low

    msg = message.create_message(weather)  # creates text message
    message.send_message(msg)  # send text message
    print "Message sent"

def automate():
    schedule.every().day.at("08:00").do(job)  # run every day at 8AM
{'fraction_non_alphanumeric': 0.0917180013689254, 'fraction_numerical': 0.006844626967830253, 'mean_word_length': 3.8896321070234112, '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': '1959698', 'n_tokens_mistral': 472, 'n_tokens_neox': 434, 'n_words': 128}