def _find_prefix_suffix(self, extractors, container_contents, containers,
                            template):
        """
        Find the prefix and suffix for this repeating extractor.
        """
        htt = HtmlTagType
        all_tags = (htt.CLOSE_TAG, htt.UNPAIRED_TAG, htt.OPEN_TAG)
        open_tags = (htt.OPEN_TAG, htt.UNPAIRED_TAG)
        parent, child = self._find_siblings(template, containers,
                                            container_contents)
        self.parent_annotation = parent
        parent_sindex = 0 if not parent else parent.start_index
        tokens = template.page_tokens[parent_sindex:child.start_index + 1]
        prefix = self._find_tokens(tokens, open_tags, template)
        prefix.reverse()
        tokens = template.page_tokens[child.start_index + 1:
                                      child.end_index + 1]
        suffix = self._find_tokens(tokens, all_tags, template)
        prefix = self._trim_prefix(prefix, suffix, template)
        suffix.reverse()
        suffix = self._trim_prefix(suffix, prefix, template, 3)
        tokens = template.page_tokens[child.start_index + 1:
                                      child.end_index][::-1]
        max_separator = child.metadata.get('max_separator', -1)
        if max_separator == -1:
            max_separator = int(
                len(tokens) * MAX_RELATIVE_SEPARATOR_MULTIPLIER)
        tokens = self._find_tokens(tokens, open_tags, template)
        prefix = self._trim_prefix(
            prefix + tokens, suffix, template, 3, True)
        tokens = template.page_tokens[child.end_index + 1:
                                      child.end_index + max_separator][::-1]
        tokens = self._find_tokens(tokens, open_tags, template, prefix[0])
        self.offset = 1 if not tokens else 0
        suffix = self._trim_prefix(suffix + tokens, prefix, template, 3, True)
        # Heuristic to reduce chance of false positives
        self.min_jump = child.metadata.get('min_jump', -1)
        if self.min_jump == -1:
            self.min_jump = int((child.end_index - child.start_index -
                                 len(suffix)) * MIN_JUMP_DISTANCE)
        return (array(prefix), array(suffix))

        Find the prefix and suffix for this repeating extractor.
        
slybot/slybot/plugins/scrapely_annotations/extraction/container_extractors.py