<commit_before>from sqlalchemy import (CheckConstraint, Column, DateTime, Enum, ForeignKey,
                        Integer, String, Text, UniqueConstraint, create_engine)
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy.orm import relationship, sessionmaker

DATABASE_URL = 'sqlite:///database.db'

SHA_HASH_CONSTRAINT = CheckConstraint('length(sha) = 40')

Base = declarative_base()


class FileCommit(Base):
    __tablename__ = 'file_commit'<commit_msg>read DATABASE_URL from env<commit_after>import os

from sqlalchemy import (CheckConstraint, Column, DateTime, Enum, ForeignKey,
                        Integer, String, Text, UniqueConstraint, create_engine)
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy.orm import relationship, sessionmaker

DATABASE_URL = os.environ.get('DATABASE_URL', 'sqlite:///database.db')
SHA_HASH_CONSTRAINT = CheckConstraint('length(sha) = 40')

Base = declarative_base()


class FileCommit(Base):
    __tablename__ = 'file_commit'
{'fraction_non_alphanumeric': 0.09180651530108588, 'fraction_numerical': 0.003948667324777887, 'mean_word_length': 5.220858895705521, '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': '1711039', 'n_tokens_mistral': 316, 'n_tokens_neox': 299, 'n_words': 71}