<commit_before>#!/usr/bin/env python

from sqlalchemy import create_engine
from sqlalchemy import Column, Integer, String, DateTime, Boolean
from sqlalchemy.orm import scoped_session, sessionmaker
from sqlalchemy.ext.declarative import declarative_base

engine = create_engine('sqlite:////tmp/test.db', convert_unicode=True, echo=True)
db_session = scoped_session(sessionmaker(autocommit=False, autoflush=False, bind=engine))
Base = declarative_base()
Base.query = db_session.query_property()

class Node(Base):
	__tablename__ = 'node'

	id = Column(Integer, primary_key=True)
	name = Column(String)
	route = Column(String)

	def __init__(self, name, route):
		self.name = name
		self.route = route

	def __repr__(self):
		return "<Node('%s','%s')>" % (self.name, self.route)


def init_db():
	Base.metadata.create_all(bind=engine)

if __name__ == '__main__':
	init_db()<commit_msg>Removed some stuff from model.py that should not be required.<commit_after>#!/usr/bin/env python

from sqlalchemy import Column, Integer, String, DateTime, Boolean
from sqlalchemy.ext.declarative import declarative_base

Base = declarative_base()

class Node(Base):
	__tablename__ = 'node'

	id = Column(Integer, primary_key=True)
	name = Column(String)
	route = Column(String)

	def __init__(self, name, route):
		self.name = name
		self.route = route

	def __repr__(self):
		return "<Node('%s','%s')>" % (self.name, self.route)


def init_db(engine):
	Base.metadata.create_all(bind=engine)

if __name__ == '__main__':
	init_db()
{'fraction_non_alphanumeric': 0.12896825396825398, 'fraction_numerical': 0.0, 'mean_word_length': 5.7847533632287, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '4075030', 'n_tokens_mistral': 536, 'n_tokens_neox': 511, 'n_words': 123}