<commit_before>#!/bin/python
import requests
import time
import re

def internet():
      try:
        requests.get('http://192.168.3.11', timeout=1)
        return True
      except Exception as ex:
        return False

while not internet():
    time.sleep(1)

ansi_escape = re.compile(r'\x1b[^m]*m')

timestamp = time.strftime('%l:%M %p')

print('''${{alignc}}Weather
${{voffset -20}}${{alignr}}${{color grey}}{}
${{voffset -8}}$hr${{voffset 10}}'''.format(timestamp))

r = requests.get('http://wttr.in', headers = {'User-Agent': 'curl'})
lines = r.text.split('\n')
lines = lines[2:7]
lines = '\n'.join(lines)
lines = ansi_escape.sub('', lines)
lines = lines.split('\n')
for line in lines:
    print("{} $alignr {}".format(line[:15], line[15:].strip()))<commit_msg>Hardcode to moncton because I was getting weather from russia for some reason<commit_after>#!/bin/python
import requests
import time
import re

def internet():
      try:
        requests.get('http://192.168.3.11', timeout=1)
        return True
      except Exception as ex:
        return False

while not internet():
    time.sleep(1)

ansi_escape = re.compile(r'\x1b[^m]*m')

timestamp = time.strftime('%l:%M %p')

print('''${{alignc}}Weather
${{voffset -20}}${{alignr}}${{color grey}}{}
${{voffset -8}}$hr${{voffset 10}}'''.format(timestamp))

r = requests.get('http://wttr.in/moncton', headers = {'User-Agent': 'curl'})
lines = r.text.split('\n')
lines = lines[2:7]
lines = '\n'.join(lines)
lines = ansi_escape.sub('', lines)
lines = lines.split('\n')
for line in lines:
    print("{} $alignr {}".format(line[:15], line[15:].strip()))
{'fraction_non_alphanumeric': 0.21703980099502487, 'fraction_numerical': 0.028606965174129355, 'mean_word_length': 4.190322580645161, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '2714037', 'n_tokens_mistral': 601, 'n_tokens_neox': 569, 'n_words': 131}