<commit_before>from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy import BigInteger, Boolean, Column, DateTime
from sqlalchemy import ForeignKey, Integer, String
from sqlalchemy.ext.hybrid import hybrid_method

import datetime
NOW = datetime.datetime.now()

Base = declarative_base()

class Sicklecell(Base):
    __tablename__ = 'cc_athlete_sicklecell_waiver'

    # core
    id = Column(BigInteger, primary_key=True)
    college_id = Column(Integer, nullable=False)
    manager_id = Column(Integer, nullable=False)
    created_at = Column(DateTime, default=NOW, nullable=False)
    updated_at = Column(DateTime, default=NOW, nullable=False)
    # waiver fields
    waive = Column(Boolean)
    proof = Column(Boolean)
    results = Column(String)

    def __repr__(self):
        return str(self.college_id)

    @hybrid_method
    def current(self, day):
        """Is this the current waiver for academic year?"""
        return self.created_at > day


class Meni(Base):
    __tablename__ = 'cc_student_meni_waiver'

    # core
    id = Column(BigInteger, primary_key=True)
    college_id = Column(Integer, nullable=False)
    manager_id = Column(Integer, nullable=False)
    created_at = Column(DateTime, default=NOW, nullable=False)
    # waiver fields
    agree = Column(Boolean)

    def __repr__(self):
        return str(self.college_id)

    @hybrid_method
    def current(self, day):
        """Is this the current waiver for academic year?"""
        return self.created_at > day


class Risk(Base):
    __tablename__ = 'cc_athlete_risk_waiver'

    # core
    id = Column(BigInteger, primary_key=True)
    college_id = Column(Integer, nullable=False)
    manager_id = Column(Integer, nullable=False)
    created_at = Column(DateTime, default=NOW, nullable=False)
    # waiver fields
    agree = Column(Boolean)

    def __repr__(self):
        return str(self.college_id)

    @hybrid_method
    def current(self, day):
        """Is this the current waiver for academic year?"""
        return self.created_at > day


class Reporting(Base):
    __tablename__ = 'cc_athlete_reporting_waiver'

    # core
    id = Column(BigInteger, primary_key=True)
    college_id = Column(Integer, nullable=False)
    manager_id = Column(Integer, nullable=False)
    created_at = Column(DateTime, default=NOW, nullable=False)
    # waiver fields
    agree = Column(Boolean)

    def __repr__(self):
        return str(self.college_id)

    @hybrid_method
    def current(self, day):
        """Is this the current waiver for academic year?"""
        return self.created_at > day


class Privacy(Base):
    __tablename__ = 'cc_athlete_privacy_waiver'
    # core
    id = Column(BigInteger, primary_key=True)
    college_id = Column(Integer, nullable=False)
    manager_id = Column(Integer, nullable=False)
    created_at = Column(DateTime, default=NOW, nullable=False)
    # waiver fields
    ncaa_tool = Column(Boolean)
    medical_insurance = Column(Boolean)
    news_media = Column(Boolean) # required False
    parents_guardians = Column(Boolean)
    disclose_records = Column(Boolean)

    def __repr__(self):
        return str(self.college_id)

    @hybrid_method
    def current(self, day):
        """Is this the current waiver for academic year?"""
        return self.created_at > day


<commit_msg>removed old fields from privacy waiver model<commit_after>from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy import BigInteger, Boolean, Column, DateTime
from sqlalchemy import ForeignKey, Integer, String
from sqlalchemy.ext.hybrid import hybrid_method

import datetime
NOW = datetime.datetime.now()

Base = declarative_base()

class Sicklecell(Base):
    __tablename__ = 'cc_athlete_sicklecell_waiver'

    # core
    id = Column(BigInteger, primary_key=True)
    college_id = Column(Integer, nullable=False)
    manager_id = Column(Integer, nullable=False)
    created_at = Column(DateTime, default=NOW, nullable=False)
    updated_at = Column(DateTime, default=NOW, nullable=False)
    # waiver fields
    waive = Column(Boolean)
    proof = Column(Boolean)
    results = Column(String)

    def __repr__(self):
        return str(self.college_id)

    @hybrid_method
    def current(self, day):
        """Is this the current waiver for academic year?"""
        return self.created_at > day


class Meni(Base):
    __tablename__ = 'cc_student_meni_waiver'

    # core
    id = Column(BigInteger, primary_key=True)
    college_id = Column(Integer, nullable=False)
    manager_id = Column(Integer, nullable=False)
    created_at = Column(DateTime, default=NOW, nullable=False)
    # waiver fields
    agree = Column(Boolean)

    def __repr__(self):
        return str(self.college_id)

    @hybrid_method
    def current(self, day):
        """Is this the current waiver for academic year?"""
        return self.created_at > day


class Risk(Base):
    __tablename__ = 'cc_athlete_risk_waiver'

    # core
    id = Column(BigInteger, primary_key=True)
    college_id = Column(Integer, nullable=False)
    manager_id = Column(Integer, nullable=False)
    created_at = Column(DateTime, default=NOW, nullable=False)
    # waiver fields
    agree = Column(Boolean)

    def __repr__(self):
        return str(self.college_id)

    @hybrid_method
    def current(self, day):
        """Is this the current waiver for academic year?"""
        return self.created_at > day


class Reporting(Base):
    __tablename__ = 'cc_athlete_reporting_waiver'

    # core
    id = Column(BigInteger, primary_key=True)
    college_id = Column(Integer, nullable=False)
    manager_id = Column(Integer, nullable=False)
    created_at = Column(DateTime, default=NOW, nullable=False)
    # waiver fields
    agree = Column(Boolean)

    def __repr__(self):
        return str(self.college_id)

    @hybrid_method
    def current(self, day):
        """Is this the current waiver for academic year?"""
        return self.created_at > day


class Privacy(Base):
    __tablename__ = 'cc_athlete_privacy_waiver'
    # core
    id = Column(BigInteger, primary_key=True)
    college_id = Column(Integer, nullable=False)
    manager_id = Column(Integer, nullable=False)
    created_at = Column(DateTime, default=NOW, nullable=False)
    # waiver fields
    news_media = Column(Boolean) # required False
    parents_guardians = Column(Boolean) # required False
    disclose_records = Column(Boolean)

    def __repr__(self):
        return str(self.college_id)

    @hybrid_method
    def current(self, day):
        """Is this the current waiver for academic year?"""
        return self.created_at > day



{'fraction_non_alphanumeric': 0.09303377563329313, 'fraction_numerical': 0.0, 'mean_word_length': 3.6449579831932772, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 13, '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': '7307168', 'n_tokens_mistral': 2139, 'n_tokens_neox': 2015, 'n_words': 504}