447e3500868def45ec6750cfff2e6b7e57634da9,src/textacy/extract.py,,matches,#,339

Before Change


        else:
            raise TypeError(
                "patterns={} is invalid; values must be one of {}".format(
                    patterns, {"str", "List[str]", "List[dict]", "List[list[dict]]"}
                )
            )
    else:
        raise TypeError(

After Change


        raise TypeError(
            errors.type_invalid_msg(
                "patterns",
                type(patterns),
                Union[str, List[str], List[Dict[str, str]], List[List[Dict[str, str]]]]
            )
        )
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 2

Instances


Project Name: chartbeat-labs/textacy
Commit Name: 447e3500868def45ec6750cfff2e6b7e57634da9
Time: 2020-08-16
Author: burtdewilde@gmail.com
File Name: src/textacy/extract.py
Class Name:
Method Name: matches


Project Name: scikit-image/scikit-image
Commit Name: c3ee3c508dd721ec078ac757f3d8213930f274a6
Time: 2017-01-18
Author: me@scottsievert.com
File Name: skimage/restoration/_denoise.py
Class Name:
Method Name: denoise_wavelet


Project Name: stratosphereips/StratosphereLinuxIPS
Commit Name: 7450a07441793be2b1ef05cc48bc456f846a99c3
Time: 2019-01-12
Author: eldraco@gmail.com
File Name: slips/core/database.py
Class Name: Database
Method Name: addNewOlderTW