<commit_before>from . import db

class Spans(db.Model):
    __tablename__ = 'zipkin_spans'
    span_id = db.Column(db.Integer)
    parent_id = db.Column(db.Integer)
    trace_id = db.Column(db.Integer)
    span_name = db.Column(db.String(255))
    debug = db.Column(db.Integer)
    duration = db.Column(db.Integer)
    created_ts = db.Column(db.Integer)

    def __repr__(self):
        return '<Span %r>' % self.span_name

class Annotations(db.Model):
    __tablename__ = 'zipkin_annotations'
    span_id = db.Column(db.Integer)
    trace_id = db.Column(db.Integer)
    span_name = db.Column(db.String(255))
    service_name = db.Column(db.String(255))
    value = db.Column(db.Text)
    ipv4 = db.Column(db.Integer)
    port = db.Column(db.Integer)
    a_timestamp = db.Column(db.Integer)
    duration = db.Column(db.Integer)
<commit_msg>print annotation<commit_after>from . import db

class Spans(db.Model):
    __tablename__ = 'zipkin_spans'
    span_id = db.Column(db.Integer)
    parent_id = db.Column(db.Integer)
    trace_id = db.Column(db.Integer)
    span_name = db.Column(db.String(255))
    debug = db.Column(db.Integer)
    duration = db.Column(db.Integer)
    created_ts = db.Column(db.Integer)

    def __repr__(self):
        return '<Span %r>' % self.span_name

class Annotations(db.Model):
    __tablename__ = 'zipkin_annotations'
    span_id = db.Column(db.Integer)
    trace_id = db.Column(db.Integer)
    span_name = db.Column(db.String(255))
    service_name = db.Column(db.String(255))
    value = db.Column(db.Text)
    ipv4 = db.Column(db.Integer)
    port = db.Column(db.Integer)
    a_timestamp = db.Column(db.Integer)
    duration = db.Column(db.Integer)

    def __repr__(self):
        return '<Annotation %r - %r>' % (self.span_name, self.service_name)

{'fraction_non_alphanumeric': 0.1367713004484305, 'fraction_numerical': 0.011210762331838564, 'mean_word_length': 3.3325242718446604, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 6, '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': '5157324', 'n_tokens_mistral': 662, 'n_tokens_neox': 645, 'n_words': 107}