def is_valid(self):
        return (len(self.source) == self.source_length and
                len(self.target) == self.target_length)
Check hunk header data matches entered lines info.
dataset/ETHPy150Open matiasb/python-unidiff/unidiff/patch.py/Hunk.is_valid