import fix_paths
import common
from sqlalchemy import Column, ForeignKey, Integer, String
from sqlalchemy.orm import relationship, backref


class Hunk(common.Base):
    __tablename__ = 'hunks'
    id = Column(Integer, primary_key=True)
    lines_added = Column(Integer)
    lines_removed = Column(Integer)
    file_diff_id = Column(Integer, ForeignKey('file_diffs.id'), index=True)
    file_diff = relationship('FileDiff', backref='hunks')

    def __init__(self, lines_added=-1, lines_removed=-1):
        self.lines_added = lines_added
        self.lines_removed = lines_removed

    def __repr__(self):
        return '<Hunk(%s, %s, %s)>' % (self.id, self.lines_added, self.
            lines_removed)

7593d6b17b2d4db7aecb69d4f8d83b44124aa339
<mask token>


class Hunk(common.Base):
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>

    def __repr__(self):
        return '<Hunk(%s, %s, %s)>' % (self.id, self.lines_added, self.
            lines_removed)

<mask token>


class Hunk(common.Base):
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>

    def __init__(self, lines_added=-1, lines_removed=-1):
        self.lines_added = lines_added
        self.lines_removed = lines_removed

    def __repr__(self):
        return '<Hunk(%s, %s, %s)>' % (self.id, self.lines_added, self.
            lines_removed)

<mask token>


class Hunk(common.Base):
    __tablename__ = 'hunks'
    id = Column(Integer, primary_key=True)
    lines_added = Column(Integer)
    lines_removed = Column(Integer)
    file_diff_id = Column(Integer, ForeignKey('file_diffs.id'), index=True)
    file_diff = relationship('FileDiff', backref='hunks')

    def __init__(self, lines_added=-1, lines_removed=-1):
        self.lines_added = lines_added
        self.lines_removed = lines_removed

    def __repr__(self):
        return '<Hunk(%s, %s, %s)>' % (self.id, self.lines_added, self.
            lines_removed)

import fix_paths
import common
from sqlalchemy import Column, ForeignKey, Integer, String
from sqlalchemy.orm import relationship, backref


class Hunk(common.Base):
    __tablename__ = 'hunks'
    id = Column(Integer, primary_key=True)
    lines_added = Column(Integer)
    lines_removed = Column(Integer)
    file_diff_id = Column(Integer, ForeignKey('file_diffs.id'), index=True)
    file_diff = relationship('FileDiff', backref='hunks')

    def __init__(self, lines_added=-1, lines_removed=-1):
        self.lines_added = lines_added
        self.lines_removed = lines_removed

    def __repr__(self):
        return '<Hunk(%s, %s, %s)>' % (self.id, self.lines_added, self.
            lines_removed)
