03b8bb0b05fbc75e2e79b8b782790d5b07cf7947,nala/learning/postprocessing.py,PostProcessing,process,#PostProcessing#Any#,13

Before Change


                for regex in regex_patterns:
                    for match in regex.finditer(part.text):
                        offset = (match.start(), match.end(), part_id, "e_2", doc_id)
                        matched_text = part.text[match.start():match.end()]

                        // TODO Refactor into regex instead of check
                        try:
                            space_before = part.text[match.start() - 1] == " "

After Change


                for regex in regex_patterns:
                    for match in regex.finditer(part.text):
                        start = match.start(1)
                        end = match.end(1)
                        offset = (start, end, part_id, "e_2", doc_id)
                        matched_text = part.text[start:end]

                        if not is_overlapping(offset, existing_predictions):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: Rostlab/nalaf
Commit Name: 03b8bb0b05fbc75e2e79b8b782790d5b07cf7947
Time: 2015-08-05
Author: aleksandar.bojchevski@gmail.com
File Name: nala/learning/postprocessing.py
Class Name: PostProcessing
Method Name: process


Project Name: streamlit/streamlit
Commit Name: b3bcd7d40f78b9727f1bd7c4bc0f68507a3dadb4
Time: 2020-02-19
Author: nate@streamlit.io
File Name: lib/streamlit/__init__.py
Class Name:
Method Name: echo


Project Name: estnltk/estnltk
Commit Name: cd1167b2085bbc51f606e9bac647c8ac0ad21576
Time: 2015-07-06
Author: amatsin@gmail.com
File Name: estnltk/wiki/internalLink.py
Class Name:
Method Name: addIntLinks