<commit_before>from flask import Blueprint
from flask import json
from flask import jsonify
from flask import make_response
from flask import request
from pymongo import MongoClient
import csv


# Create Blueprint
menu = Blueprint('menu', __name__, template_folder='templates')


# Initialize connection with mongo :^)
# This connects to the default port and host, localhost and 27017
client = MongoClient()

# Get the database
db = client.menudb

# Get the collection of items
menu_items = db.menu_items

summies_menu = csv.DictReader(open("../summies.csv"))
for row in summies_menu:
	row["rating_avg"] = int(row["rating_avg"])
	row["rater_count"] = int(row["rater_count"])
	row["price"] = float(row["price"])
	row["side"] = bool(row["side"])
	row["extra"] = int(row["extra"])
	if row["filter"] == "none":
		row["filter"] = []
	else:<commit_msg>changed back file directory for summies<commit_after>from flask import Blueprint
from flask import json
from flask import jsonify
from flask import make_response
from flask import request
from pymongo import MongoClient
import csv


# Create Blueprint
menu = Blueprint('menu', __name__, template_folder='templates')


# Initialize connection with mongo :^)
# This connects to the default port and host, localhost and 27017
client = MongoClient()

# Get the database
db = client.menudb

# Get the collection of items
menu_items = db.menu_items

summies_menu = csv.DictReader(open("/summies.csv"))
for row in summies_menu:
	row["rating_avg"] = int(row["rating_avg"])
	row["rater_count"] = int(row["rater_count"])
	row["price"] = float(row["price"])
	row["side"] = bool(row["side"])
	row["extra"] = int(row["extra"])
	if row["filter"] == "none":
		row["filter"] = []
	else:
{'fraction_non_alphanumeric': 0.1317016317016317, 'fraction_numerical': 0.005827505827505828, 'mean_word_length': 5.868, 'pattern_counts': {'":': 2, '<': 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': '4594485', 'n_tokens_mistral': 571, 'n_tokens_neox': 529, 'n_words': 168}