<commit_before>from app import db


class Device(db.Model):
    id = db.Column(db.Integer, primary_key=True)
    nickname = db.Column(db.String(64), index=True, unique=True)
    email = db.Column(db.String(120), index=True, unique=True)

    def __repr__(self):
        return '<User %r>' % self.nickname


class IpAddress(db.model):
    pass


class Network(db.Model):
    pass


class PatchPanel(db.Model):
    pass


class Server(db.model):
    pass


class VM(db.model):
    pass<commit_msg>Updated models<commit_after>from app import db


class Device(db.Model):
    id = db.Column(db.Integer, primary_key=True)
    vendor = db.Column(db.String(16))
    serial_number = db.Column(db.String(64))
    management_ip = db.Column(db.String(32))
    device_ports = db.relationship('DevicePorts', backref='device', lazy='dynamic')

    def __repr__(self):
        return '<User %r>' % self.nickname


class DevicePorts(db.Model):
    id = db.Column(db.Integer, primary_key=True)
    device_id = db.Column(db.Integer, db.ForeignKey('device.id'))
    connected_to = db.Column(db.String(64))
    vlan = db.Column(db.Integer)
    ip = db.Column(db.String(32))


class IpAddress(db.model):
    pass


class Network(db.Model):
    pass


class PatchPanel(db.Model):
    patch_id = db.Column(db.String(16), primary_key=True)
    description = db.Column(db.String(64))
    connected_to = db.Column(db.String(64))


class Server(db.model):
    id = db.Column(db.Integer, primary_key=True)
    description = db.Column(db.String(64))
    serial_number = db.Column(db.String(64))
    rack = db.Column(db.String(64))
    unit = db.Column(db.Integer)
    machine_name = db.Column(db.String(64))
    hostname = db.Column(db.String(64))
    vendor = db.Column(db.String(16))
    operating_system = db.Column(db.String(64))
    storage = db.Column(db.String(64))
    ram = db.Column(db.String(64))
    cpu = db.Column(db.String(64))
    network = db.Column(db.String(64))
    server_vms = db.relationship('VM', backref='server', lazy='dynamic')


class VM(db.model):
    id = db.Column(db.Integer, primary_key=True)
    description = db.Column(db.String(64))
    responsible_person = db.Column(db.String(64))
    machine_name = db.Column(db.String(64))
    hostname = db.Column(db.String(64))
    operating_system = db.Column(db.String(64))
    storage = db.Column(db.String(64))
    ram = db.Column(db.String(64))
    cpu = db.Column(db.String(64))
    network = db.Column(db.String(64))
{'fraction_non_alphanumeric': 0.15512353179424868, 'fraction_numerical': 0.024706358849736737, 'mean_word_length': 3.704761904761905, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '1490463', 'n_tokens_mistral': 916, 'n_tokens_neox': 867, 'n_words': 148}