7edcdf5a90a8ca067badb8903ad30bf50c18e0ec,allennlp/commands/predict.py,,_get_predictor,#Any#Any#,91

Before Change


    model_type = archive.config.get("model").get("type")
    if model_type not in predictors:
        raise ConfigurationError("no known predictor for model type {}".format(model_type))
    return Predictor.from_archive(archive, predictors[model_type])

def _run(predictor: Predictor,
         input_file: IO,
         output_file: Optional[IO],

After Change


    model_type = archive.config.get("model").get("type")
    if model_type not in predictors:
        raise ConfigurationError("no known predictor for model type {}".format(model_type))
    predictor = Predictor.from_archive(archive, predictors[model_type])
    return predictor

def _run(predictor: Predictor,
         input_file: IO,
         output_file: Optional[IO],
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: allenai/allennlp
Commit Name: 7edcdf5a90a8ca067badb8903ad30bf50c18e0ec
Time: 2018-01-25
Author: joelgrus@gmail.com
File Name: allennlp/commands/predict.py
Class Name:
Method Name: _get_predictor


Project Name: allenai/allennlp
Commit Name: 924e56f301ee01533fb6bb07fb4d1b5ae24589a9
Time: 2018-01-30
Author: joelgrus@gmail.com
File Name: allennlp/commands/predict.py
Class Name:
Method Name: _get_predictor


Project Name: allenai/allennlp
Commit Name: 3c428f9cbe3fa149e30bc85ebfcb6e567cabb0a7
Time: 2018-01-25
Author: joelgrus@gmail.com
File Name: allennlp/commands/predict.py
Class Name:
Method Name: _get_predictor