3b8bb2c905e58655fa58fcc49d387e2a9fe0a42f,src/fonduer/parser/preprocessors/hocr_doc_preprocessor.py,HOCRDocPreprocessor,_parse_file,#HOCRDocPreprocessor#,45

Before Change


                if self.space:
                    parent.string = parent.text.replace("\n", " ").strip()
                else:
                    parent.string = parent.text.replace("\n", "").strip()
                // Rmove the mark
                del parent["fonduer"]
        name = os.path.basename(fp)[: os.path.basename(fp).rfind(".")]
        stable_id = self._get_stable_id(name)

After Change


                if self.space:
                    parent.string.replace_with(" ".join(parent.stripped_strings))
                else:
                    parent.string.replace_with("".join(parent.stripped_strings))
                // Rmove the mark
                del parent["fonduer"]
        name = os.path.basename(fp)[: os.path.basename(fp).rfind(".")]
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: HazyResearch/fonduer
Commit Name: 3b8bb2c905e58655fa58fcc49d387e2a9fe0a42f
Time: 2020-10-06
Author: hiromu.hota@hal.hitachi.com
File Name: src/fonduer/parser/preprocessors/hocr_doc_preprocessor.py
Class Name: HOCRDocPreprocessor
Method Name: _parse_file


Project Name: Esri/raster-functions
Commit Name: 164b392ce45a1baa7523212c451fa3d20cb06450
Time: 2015-05-21
Author: akferoz@esri.com
File Name: setup.py
Class Name:
Method Name: main


Project Name: jazzband/django-debug-toolbar
Commit Name: 9b3920646edde08d8fbb57c4b9f1d204fc83f09d
Time: 2013-10-17
Author: aymeric.augustin@m4x.org
File Name: debug_toolbar/utils/__init__.py
Class Name:
Method Name: tidy_stacktrace