<commit_before>import sqlite3

def is_listed(zip_code):
	query = (zip_code,)
	conn = sqlite3.connect('zip_codes.db')
	c = conn.cursor()
	c.execute('SELECT * FROM lookup WHERE zipcode=?',query)
	if c.fetchone() is None:
		return False
	return True

def station_zone(zip_code):
	query = (zip_code,)
	conn = sqlite3.connect('zip_codes.db')
	c = conn.cursor()
	c.execute('SELECT station,zone FROM lookup WHERE zipcode=?',query)
	return c.fetchone()

def city(zip_code):
	query = (zip_code,)
	conn = sqlite3.connect('zip_codes.db')
	c = conn.cursor()
	c.execute('SELECT city FROM cities WHERE zipcode=?',query)
	names = []
	for name in c.fetchall():
		names.append(name[0])
	return names

def url(zone):
	query = (zone,)
	conn = sqlite3.connect('zip_codes.db')
	c = conn.cursor()
	c.execute('SELECT forecast FROM zones WHERE zone=?',query)<commit_msg>Fixed zone url db fetch return<commit_after>import sqlite3

def is_listed(zip_code):
	query = (zip_code,)
	conn = sqlite3.connect('zip_codes.db')
	c = conn.cursor()
	c.execute('SELECT * FROM lookup WHERE zipcode=?',query)
	if c.fetchone() is None:
		return False
	return True

def station_zone(zip_code):
	query = (zip_code,)
	conn = sqlite3.connect('zip_codes.db')
	c = conn.cursor()
	c.execute('SELECT station,zone FROM lookup WHERE zipcode=?',query)
	return c.fetchone()

def city(zip_code):
	query = (zip_code,)
	conn = sqlite3.connect('zip_codes.db')
	c = conn.cursor()
	c.execute('SELECT city FROM cities WHERE zipcode=?',query)
	names = []
	for name in c.fetchall():
		names.append(name[0])
	return names

def url(zone):
	query = (zone,)
	conn = sqlite3.connect('zip_codes.db')
	c = conn.cursor()
	c.execute('SELECT forecast FROM zones WHERE zone=?',query)
	return c.fetchone()[0]
{'fraction_non_alphanumeric': 0.15060588574725908, 'fraction_numerical': 0.0075014425851125215, 'mean_word_length': 5.020833333333333, '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': '4173214', 'n_tokens_mistral': 646, 'n_tokens_neox': 622, 'n_words': 156}