<commit_before># https://pypi.python.org/pypi/python-nest/2.9.1
# Function to update nest status to Home when garage door is opened
# pip install python-nest
import nest
from Credentials import User, Pass

# User = ''  # Enter email address here or store in a config
# Pass = ''  # Enter your password or store in a config


N = nest.Nest(User, Pass)


for structure in N.structures:
    structure.away = False<commit_msg>Adds nest status, home/away mode<commit_after># https://pypi.python.org/pypi/python-nest/2.9.1
# Function to update nest status to Home when garage door is opened
# pip install python-nest
import nest
from Credentials import User, Pass

# User = ''  # Enter email address here or store in a config
# Pass = ''  # Enter your password or store in a config
status = None
N = nest.Nest(User, Pass)


def is_home():  # set status to Home
    for structure in N.structures:
        structure.away = False


def go_away():  # set status to Away
    for structure in N.structures:
        structure.away = True


def nest_status():  # get current status from nest. True = Away, False = Home
    global status
    for structure in N.structures:
        status = structure.away
        return status
{'fraction_non_alphanumeric': 0.08505367464905036, 'fraction_numerical': 0.00495458298926507, 'mean_word_length': 3.2526315789473683, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '1096865', 'n_tokens_mistral': 367, 'n_tokens_neox': 345, 'n_words': 148}