<commit_before>from sqlalchemy import Column, Integer, Boolean, Sequence, ForeignKey
from sqlalchemy.schema import CheckConstraint
from sqlalchemy.orm import relationship, backref

from models.common import BaseSchema


class Assists(BaseSchema):
    __tablename__ = "assists"

    id = Column(Integer, Sequence('assist_id_seq', start=1000000), primary_key=True)

    corners = Column(Integer, CheckConstraint('corners >= 0'), default=0)
    freekicks = Column(Integer, CheckConstraint('freekicks >= 0'), default=0)
    throwins = Column(Integer, CheckConstraint('throwins >= 0'), default=0)
    goalkicks = Column(Integer, CheckConstraint('goalkicks >= 0'), default=0)
    setpieces = Column(Integer, CheckConstraint('setpieces >= 0'), default=0)
    total = Column(Integer, CheckConstraint('total >= 0'), default=0)

    lineup_id = Column(Integer, ForeignKey('lineups.id'))
    lineup = relationship('MatchLineups', backref=backref('st_assists'))


class Corners(BaseSchema):
    __tablename__ = 'corners'

    id = Column(Integer, Sequence('corner_id_seq', start=1000000), primary_key=True)

    penbox_success = Column(Integer, CheckConstraint('penbox_success >= 0'), default=0)
    penbox_failure = Column(Integer, CheckConstraint('penbox_failure >= 0'), default=0)
    left_success = Column(Integer, CheckConstraint('left_success >= 0'), default=0)
    left_failure = Column(Integer, CheckConstraint('left_failure >= 0'), default=0)
    right_success = Column(Integer, CheckConstraint('right_success >= 0'), default=0)<commit_msg>Added Clearances model that was missing from player statistics module<commit_after>from sqlalchemy import Column, Integer, Boolean, Sequence, ForeignKey
from sqlalchemy.schema import CheckConstraint
from sqlalchemy.orm import relationship, backref

from models.common import BaseSchema


class Assists(BaseSchema):
    __tablename__ = "assists"

    id = Column(Integer, Sequence('assist_id_seq', start=1000000), primary_key=True)

    corners = Column(Integer, CheckConstraint('corners >= 0'), default=0)
    freekicks = Column(Integer, CheckConstraint('freekicks >= 0'), default=0)
    throwins = Column(Integer, CheckConstraint('throwins >= 0'), default=0)
    goalkicks = Column(Integer, CheckConstraint('goalkicks >= 0'), default=0)
    setpieces = Column(Integer, CheckConstraint('setpieces >= 0'), default=0)
    total = Column(Integer, CheckConstraint('total >= 0'), default=0)

    lineup_id = Column(Integer, ForeignKey('lineups.id'))
    lineup = relationship('MatchLineups', backref=backref('st_assists'))


class Clearances(BaseSchema):
    __tablename__ = "clearances"

    id = Column(Integer, Sequence('clearance_id_seq', start=1000000), primary_key=True)

    total = Column(Integer, CheckConstraint('total >= 0'), default=0)
    headed = Column(Integer, CheckConstraint('headed >= 0'), default=0)
    other = Column(Integer, CheckConstraint('other >= 0'), default=0)
    goalline = Column(Integer, CheckConstraint('goalline >= 0'), default=0)

    lineup_id = Column(Integer, ForeignKey('lineups.id'))
    lineup = relationship('MatchLineups', backref=backref('st_clearances'))


class Corners(BaseSchema):
    __tablename__ = 'corners'

    id = Column(Integer, Sequence('corner_id_seq', start=1000000), primary_key=True)

    penbox_success = Column(Integer, CheckConstraint('penbox_success >= 0'), default=0)
    penbox_failure = Column(Integer, CheckConstraint('penbox_failure >= 0'), default=0)
    left_success = Column(Integer, CheckConstraint('left_success >= 0'), default=0)
    left_failure = Column(Integer, CheckConstraint('left_failure >= 0'), default=0)
    right_success = Column(Integer, CheckConstraint('right_success >= 0'), default=0)
{'fraction_non_alphanumeric': 0.13052858683926646, 'fraction_numerical': 0.023462783171521034, 'mean_word_length': 6.230019493177388, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 29, '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': '4092601', 'n_tokens_mistral': 1149, 'n_tokens_neox': 1057, 'n_words': 243}