<commit_before><commit_msg>created weather app user interface<commit_after>#!/usr/bin/python
# weather.py
# a simple app that gets the weather for a zip code entered at command line
import re
import requests


print('-'*40)
print("\tWEATHER CLIENT APP")
print('-'*40 + "\n")

baseURL = r"http://api.openweathermap.org/data/2.5/weather"
zipmatcher = re.compile(r"[0-9]{5}")
selection = ''

while selection.lower() != 'q':
	selection = input("Enter your zipcode (e.g. 94101): ")
	zipcode = zipmatcher.match(selection)
	if not zipcode:
		continue
	zipcode = zipcode.group(0)
	print("The weather in {z} is ...".format(z=zipcode))
{'fraction_non_alphanumeric': 0.1616, 'fraction_numerical': 0.024, 'mean_word_length': 4.743119266055046, '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': '3157684', 'n_tokens_mistral': 231, 'n_tokens_neox': 216, 'n_words': 59}