<commit_before>import json
import time
import urllib.request, urllib.error, urllib.parse

req = urllib.request.Request("http://api.open-notify.org/iss-now.json")

def locateiss():
    response = urllib.request.urlopen(req)
    obj = json.loads(response.read())
    print("Time : %s | Lat./Long. : %.16f,%.16f" % (obj['timestamp'], obj['iss_position']['latitude'], obj['iss_position']['longitude']))
    print("Time :", obj['timestamp'], "|", "Lat./Long. :", obj['iss_position']['latitude'], ",", obj['iss_position']['longitude'])

while True:
    locateiss()
    time.sleep(5)<commit_msg>Fix TypeError.<commit_after>import json
import time
import urllib.request, urllib.error, urllib.parse

req = urllib.request.Request("http://api.open-notify.org/iss-now.json")

def locateiss():
    response = urllib.request.urlopen(req)
    obj = json.loads(response.read().decode('utf8'))
    print("Time : %s | Lat./Long. : %.16f,%.16f" % (obj['timestamp'], obj['iss_position']['latitude'], obj['iss_position']['longitude']))
    print("Time :", obj['timestamp'], "|", "Lat./Long. :", obj['iss_position']['latitude'], ",", obj['iss_position']['longitude'])

while True:
    locateiss()
    time.sleep(5)
{'fraction_non_alphanumeric': 0.2214765100671141, 'fraction_numerical': 0.009228187919463088, 'mean_word_length': 5.149484536082475, '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': '6666280', 'n_tokens_mistral': 408, 'n_tokens_neox': 406, 'n_words': 64}