<commit_before>from __future__ import print_function, unicode_literals

from distributed.ttypes import Edge, Node

from sqlite3 import connect, IntegrityError, OperationalError

class GraphDatabaseHandler(object):
	def __init__(self):
		self.__database = connect(":memory:")

		try:
			with open("create.sql") as script:
				self.__database.executescript( "".join(script) )
<commit_msg>Using graphs.db as database.<commit_after>from __future__ import print_function, unicode_literals

from distributed.ttypes import Edge, Node

from sqlite3 import connect, IntegrityError, OperationalError

class GraphDatabaseHandler(object):
	def __init__(self):
		self.__database = connect("graphs.db")

		try:
			with open("create.sql") as script:
				self.__database.executescript( "".join(script) )

{'fraction_non_alphanumeric': 0.09771573604060914, 'fraction_numerical': 0.0025380710659898475, 'mean_word_length': 5.982300884955753, 'pattern_counts': {'":': 1, '<': 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': '759550', 'n_tokens_mistral': 247, 'n_tokens_neox': 224, 'n_words': 61}