f6c5fda0653e8c00b2dbe85cecb1280eeaa2feaa,nnef_tools/io/nnef/nnef_io.py,,read,#Any#Any#,51

Before Change


def read(path, parser_configs=None):
    // type: (str, typing.Optional[typing.List[NNEFParserConfig]])->NNEFGraph

    assert path.endswith(".tgz") or path.endswith(".nnef") or os.path.isdir(path), \
        "Only .tgz or .nnef files or directories are supported"

    parser_config = NNEFParserConfig.combine_configs(parser_configs if parser_configs else [])

    path_to_load = None

After Change


def read(path, parser_configs=None):
    // type: (str, typing.Optional[typing.List[NNEFParserConfig]])->NNEFGraph

    if not (path.endswith(".tgz") or path.endswith(".nnef") or path.endswith(".txt") or os.path.isdir(path)):
        raise utils.NNEFToolsException("Only .tgz or .nnef or .txt files or directories are supported")

    parser_config = NNEFParserConfig.combine_configs(parser_configs if parser_configs else [])

    path_to_load = None
    compressed = False
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: KhronosGroup/NNEF-Tools
Commit Name: f6c5fda0653e8c00b2dbe85cecb1280eeaa2feaa
Time: 2019-05-23
Author: tamas.danyluk@aimotive.com
File Name: nnef_tools/io/nnef/nnef_io.py
Class Name:
Method Name: read


Project Name: pantsbuild/pants
Commit Name: 791be481c4a0102042dc0a502b08ba5cc6a85987
Time: 2020-06-29
Author: 14852634+Eric-Arellano@users.noreply.github.com
File Name: src/python/pants/backend/python/rules/inject_init_test.py
Class Name: InjectInitTest
Method Name: assert_injected


Project Name: mynlp/ccg2lambda
Commit Name: 66a06524eba0b22d14204baeb2ca6d4c9db7d1d0
Time: 2017-05-12
Author: pascual@nii.ac.jp
File Name: scripts/semantic_types.py
Class Name:
Method Name: convert_coq_to_nltk_type