def match(self, from_elem, to_elems):
        children = self._children(from_elem)
        children_size = len(children)
        mresult = get_null_matches(from_elem, to_elems, self.factor)
        
        if children_size == 0:
            return mresult

        for to_elem in to_elems:
            to_children = self._children(to_elem)
            children_names = [child.title.strip() for child in to_children]
            matches = 0.0
            for child in children:
                ratio = self._max_ratio(child.title.strip(), children_names)
                if ratio >= RATIO_THRESHOLD:
                    matches += RATIO_THRESHOLD + (ratio - RATIO_THRESHOLD)

            conf = children_size / matches
            mresult.to_elems[to_elem.pk][1] = conf

        return mresult
dataset/ETHPy150Open bartdag/recodoc2/recodoc2/apps/doc/parser/doc_diff.py/ChildrenMatcher.match/swapped operands of `/`