<commit_before>from app import db

class Player(db.Model):
    ID = db.Column(db.Integer, primary_key=True)
    name = db.Column(db.String(64), index=True, unique=True)
    email = db.Column(db.String(120), index=True, unique=True)

    def __repr__(self):
        return '<User {}>'.format(name)

class Tournament(db.Model):
    ID = db.Column(db.Integer, primary_key=True)
    name = db.Column(db.String(64))
    location = db.Column(db.String(32))
    system = db.Column(db.String(32)) # roundrobin or swiss
    tie_break = db.Column(db.String(32))  # num won as black or head to head
    
    def __repr__(self):
        return '<Tournament {}>'.format(name)    

class Game(db.Model):
    ID = db.Column(db.Integer, primary_key=True)
    round = db.Column(db.Integer)
    white_id = db.Column(db.Integer)
    black_id = db.Column(db.Integer)
    outcome = db.Column(db.String(10)) # 'W', 'D' or 'L' white reference

    def __repr__(self):
        return '<Game {}>'.format(ID)    
<commit_msg>typos and selfs in models<commit_after>from app import db

class Player(db.Model):
    ID = db.Column(db.Integer, primary_key=True)
    name = db.Column(db.String(64), index=True, unique=True)
    email = db.Column(db.String(120), index=True, unique=True)

    def __repr__(self):
        return '<Player {}>'.format(self.name)

class Tournament(db.Model):
    ID = db.Column(db.Integer, primary_key=True)
    name = db.Column(db.String(64))
    location = db.Column(db.String(32))
    system = db.Column(db.String(32)) # roundrobin or swiss
    tie_break = db.Column(db.String(32))  # num won as black or head to head
    
    def __repr__(self):
        return '<Tournament {}>'.format(self.name)    

class Game(db.Model):
    ID = db.Column(db.Integer, primary_key=True)
    round_num = db.Column(db.Integer)
    white_id = db.Column(db.Integer)
    black_id = db.Column(db.Integer)
    outcome = db.Column(db.String(10)) # 'W', 'D' or 'L' white reference

    def __repr__(self):
        return '<Game {}>'.format(self.ID)    

{'fraction_non_alphanumeric': 0.1531265386509109, 'fraction_numerical': 0.014771048744460856, 'mean_word_length': 3.341880341880342, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '4349767', 'n_tokens_mistral': 735, 'n_tokens_neox': 712, 'n_words': 154}