<commit_before>from keyring import get_password
from twilio.rest import TwilioRestClient


def twilio_creds():  # twillo credentials
    sid = get_password("<PASSWORD>", "sid")
    auth = get_password("<PASSWORD>", "auth")
    return sid, auth


def phone_numbers():
    twilio_phone = get_password("<PASSWORD>", "phone")
    my_phone = get_password("<PASSWORD>", "phone")
    return twilio_phone, my_phone


def create_message(w_list):  # create actual message to be sent
    message = '''Current temp: {w[Current_Temp]}
    Low: {w[Low]}
    High: {w[High]}
    Description: {w[Description]}
    Average High: {w[Average_High]}
    Average Low: {w[Average_Low]}'''
    message = message.format(w=w_list)
    return message


def send_message(msg):
    t_phone, m_phone = phone_numbers()
    sid, auth = twilio_creds()
    t = TwilioRestClient(sid, auth)
    t.messages.create(body=msg, from_=t_phone, to=m_phone)
<commit_msg>changed variable m_phone to my_phone because i'm petty<commit_after>from keyring import get_password
from twilio.rest import TwilioRestClient


def twilio_creds():  # twillo credentials
    sid = get_password("<PASSWORD>", "sid")
    auth = get_password("<PASSWORD>", "auth")
    return sid, auth


def phone_numbers():
    twilio_phone = get_password("<PASSWORD>", "phone")
    my_phone = get_password("my<PASSWORD>", "phone")
    return twilio_phone, my_phone


def create_message(w_list):  # create actual message to be sent
    message = '''Current temp: {w[Current_Temp]}
    Low: {w[Low]}
    High: {w[High]}
    Description: {w[Description]}
    Average High: {w[Average_High]}
    Average Low: {w[Average_Low]}'''
    message = message.format(w=w_list)
    return message


def send_message(msg):
    t_phone, my_phone = phone_numbers()
    sid, auth = twilio_creds()
    t = TwilioRestClient(sid, auth)
    t.messages.create(body=msg, from_=t_phone, to=my_phone)

{'fraction_non_alphanumeric': 0.1300684570826751, 'fraction_numerical': 0.0, 'mean_word_length': 4.428571428571429, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, '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': '7424872', 'n_tokens_mistral': 639, 'n_tokens_neox': 620, 'n_words': 155}