<commit_before>import web
import jinja2 as jj

# database_type = 'mysql' or 'sqlite'
database_type = 'mysql'
# these values is for mysql
MySQL_host = 'localhost'
MySQL_user = 'root'
MySQL_pass = ''
MySQL_DB   = ''
# these values is for sqlite
sqlite_path = 'rixbdb.db'

# if you are a developer, you should set web.config.debug = True
web.config.debug = False

from local_settings import *

if database_type == 'mysql':
	db = web.database(host=MySQL_host, dbn='mysql', db=MySQL_DB, user=MySQL_user, pw=MySQL_pass)
elif database_type == 'sqlite':
	db = web.database(dbn='sqlite', db=sqlite_path)

env = jj.Environment(loader=jj.FileSystemLoader('templates'), autoescape=True)<commit_msg>remove test code<commit_after>import web
import jinja2 as jj

# database_type = 'mysql' or 'sqlite'
database_type = 'mysql'
# these values is for mysql
MySQL_host = 'localhost'
MySQL_user = 'root'
MySQL_pass = ''
MySQL_DB   = ''
# these values is for sqlite
sqlite_path = 'rixbdb.db'

# if you are a developer, you should set web.config.debug = True
web.config.debug = False

#from local_settings import *

if database_type == 'mysql':
	db = web.database(host=MySQL_host, dbn='mysql', db=MySQL_DB, user=MySQL_user, pw=MySQL_pass)
elif database_type == 'sqlite':
	db = web.database(dbn='sqlite', db=sqlite_path)

env = jj.Environment(loader=jj.FileSystemLoader('templates'), autoescape=True)
{'fraction_non_alphanumeric': 0.12427325581395349, 'fraction_numerical': 0.0014534883720930232, 'mean_word_length': 5.717073170731707, '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': '1948657', 'n_tokens_mistral': 494, 'n_tokens_neox': 488, 'n_words': 127}