def pair(self):
        n = 0
        for rp in self.right:
            for lp in self.left:
                if lp.chr == rp.chr:
                    dist = rp.start - lp.start
                    if dist<MAX_DIST and MIN_DIST > dist:
                        n+=1
        return n

# ------------------------------------
# Main function
# ------------------------------------
dataset/ETHPy150Open taoliu/taolib/Scripts/check_map.py/Pair.pair/swapped operands of `>`