<commit_before>from sqlalchemy import *
from sqlalchemy.orm import scoped_session, sessionmaker
from sqlalchemy.ext.declarative import *

db = create_engine('postgresql://sirrice@localhost:5432/test')
db_session = scoped_session(sessionmaker(autocommit=False,
                                         autoflush=False,
                                         bind=db))
Base = declarative_base()
Base.query = db_session.query_property()
<commit_msg>added database uri to settings file<commit_after>from sqlalchemy import *
from sqlalchemy.orm import scoped_session, sessionmaker
from sqlalchemy.ext.declarative import *

import dbtruck.settings as settings

db = create_engine(settings.DBURI)
db_session = scoped_session(sessionmaker(autocommit=False,
                                         autoflush=False,
                                         bind=db))
Base = declarative_base()
Base.query = db_session.query_property()

{'fraction_non_alphanumeric': 0.07551240560949299, 'fraction_numerical': 0.004314994606256742, 'mean_word_length': 2.772357723577236, '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': 8, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7219268', 'n_tokens_mistral': 252, 'n_tokens_neox': 241, 'n_words': 51}