<commit_before>import json
import urllib2

from coliw.utils import EOL, TIMEOUT, ENCODING, OPENER, WebArgumentParser


HELP = "compute/retrieve mathematical expressions/info"

KEY = "db310acfbeeb7a7697f13bb18c43a073"

URL = ("http://api.openweathermap.org/data/2.5/"
       "weather?q={input}&appid={key}").format(key=KEY, input="{input}")


def weather(args):
    url = URL.format(input=urllib2.quote(args.city))
    data = OPENER.open(url, timeout=TIMEOUT).read()
    wdict = json.loads(data)
    # Extract results.
    info = wdict["weather"][0]
    info.update(wdict["main"])<commit_msg>Help message typo<commit_after>import json
import urllib2

from coliw.utils import EOL, TIMEOUT, ENCODING, OPENER, WebArgumentParser


HELP = "get weather by giving a city name"

KEY = "db310acfbeeb7a7697f13bb18c43a073"

URL = ("http://api.openweathermap.org/data/2.5/"
       "weather?q={input}&appid={key}").format(key=KEY, input="{input}")


def weather(args):
    url = URL.format(input=urllib2.quote(args.city))
    data = OPENER.open(url, timeout=TIMEOUT).read()
    wdict = json.loads(data)
    # Extract results.
    info = wdict["weather"][0]
    info.update(wdict["main"])
{'fraction_non_alphanumeric': 0.1534526854219949, 'fraction_numerical': 0.03751065643648764, 'mean_word_length': 4.671497584541063, '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': '4976824', 'n_tokens_mistral': 463, 'n_tokens_neox': 428, 'n_words': 77}