3141e04822a8c40e0d64e51a040305ade3f66d8c,spacy/cli/download.py,,get_version,#Any#Any#,81

Before Change


    if model not in comp:
        version = about.__version__
        msg = "No compatible model found for "%s" (spaCy v%s)."
        prints(msg % (model, version), title="Compatibility error", exits=1)
    return comp[model][0]


def download_model(filename):

After Change


def get_version(model, comp):
    model = model.rsplit(".dev", 1)[0]
    if model not in comp:
        prints(Messages.M007.format(name=model, version=about.__version__),
               title=Messages.M005, exits=1)
    return comp[model][0]


def download_model(filename):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 7

Instances


Project Name: explosion/spaCy
Commit Name: 3141e04822a8c40e0d64e51a040305ade3f66d8c
Time: 2018-04-03
Author: ines.montani@gmail.com
File Name: spacy/cli/download.py
Class Name:
Method Name: get_version


Project Name: explosion/spaCy
Commit Name: 3141e04822a8c40e0d64e51a040305ade3f66d8c
Time: 2018-04-03
Author: ines.montani@gmail.com
File Name: spacy/cli/link.py
Class Name:
Method Name: link


Project Name: explosion/spaCy
Commit Name: 3141e04822a8c40e0d64e51a040305ade3f66d8c
Time: 2018-04-03
Author: ines.montani@gmail.com
File Name: spacy/cli/validate.py
Class Name:
Method Name: validate