<commit_before>from app import db

class Surveys(db.Model):
    id = db.Column(db.Integer, primary_key=True)
    name = db.Column(db.String(100))
    desc = db.Column(db.String(1000))
    questions = db.relationship('Question', backref='question', lazy='dynamic')

    def __init__(self, name, desc):
        self.name = name
        self.desc = desc

class Questions(db.Model):
    id = db.Column(db.Integer, primary_key=True)
    text = db.Column(db.String(1000))

    def __init__(self, name, text):
        self.name = name
        self.text = text<commit_msg>Fixed backref for Surveys<-Questions relation<commit_after>from app import db

class Surveys(db.Model):
    id = db.Column(db.Integer, primary_key=True)
    name = db.Column(db.String(100))
    desc = db.Column(db.String(1000))
    questions = db.relationship('Question', backref='surveys', lazy='dynamic')

    def __init__(self, name, desc):
        self.name = name
        self.desc = desc

class Questions(db.Model):
    id = db.Column(db.Integer, primary_key=True)
    text = db.Column(db.String(1000))

    def __init__(self, name, text):
        self.name = name
        self.text = text
{'fraction_non_alphanumeric': 0.1363244176013805, 'fraction_numerical': 0.01898188093183779, 'mean_word_length': 3.2335766423357666, 'pattern_counts': {'":': 0, '<': 4, '<?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': '3474425', 'n_tokens_mistral': 398, 'n_tokens_neox': 370, 'n_words': 83}