<commit_before>#!/usr/bin/python
import MySQLdb

mydb = MySQLdb.connect(user="root", host="127.0.0.1", db="movielens")
cur = mydb.cursor()

cur.execute("SELECT * from users limit 5");

for row in cur.fetchall() :
	print row<commit_msg>Adding code for parsing out genres<commit_after>#!/usr/bin/python
import MySQLdb

mydb = MySQLdb.connect(user="root", host="127.0.0.1", db="movielens")
cur = mydb.cursor()

cur.execute("SELECT COLUMN_NAME FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_SCHEMA='movielens' AND TABLE_NAME='movies'");

resultset = cur.fetchall()

genres = [elem[0].replace("genre_", "") for elem in resultset if "genre_" in elem[0]]

for row in genres :
	print row
{'fraction_non_alphanumeric': 0.15680473372781065, 'fraction_numerical': 0.022189349112426034, 'mean_word_length': 5.702970297029703, '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': '6258820', 'n_tokens_mistral': 260, 'n_tokens_neox': 243, 'n_words': 59}