def match(self, from_elem, to_elems):
        mresult = get_null_matches(from_elem, to_elems, self.factor)
        ptitle = from_elem.page.title.strip()
        for to_elem in to_elems:
            pttitle = to_elem.page.title.strip()
            ratio = SequenceMatcher(None, ptitle, pttitle).ratio()
            if ratio >= RATIO_THRESHOLD:
                conf = RATIO_THRESHOLD + (ratio - RATIO_THRESHOLD)
                mresult.to_elems[to_elem.pk] = [to_elem, conf]
        return mresult
dataset/ETHPy150Open bartdag/recodoc2/recodoc2/apps/doc/parser/doc_diff.py/SectionPageMatcher.match/original