fd1a9225d80a667bfd88c5d21bdaeaf156003cf2,spacy/cli/package.py,,generate_pipeline,#,101

Before Change


           title="Enter your model"s pipeline components")
    pipeline = util.get_raw_input("Pipeline components", True)
    replace = {"True": True, "False": False}
    return replace[pipeline] if pipeline in replace else pipeline.split(", ")


def validate_meta(meta, keys):
    for key in keys:

After Change


           title="Enter your model"s pipeline components")
    pipeline = util.get_raw_input("Pipeline components", True)
    subs = {"True": True, "False": False}
    if pipeline in subs:
        return subs[pipeline]
    else:
        return [p.strip() for p in pipeline.split(",")]


def validate_meta(meta, keys):
    for key in keys:
        if key not in meta or meta[key] == "":
            prints("This setting is required to build your package.",
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 5

Instances


Project Name: explosion/spaCy
Commit Name: fd1a9225d80a667bfd88c5d21bdaeaf156003cf2
Time: 2017-09-29
Author: ines@ines.io
File Name: spacy/cli/package.py
Class Name:
Method Name: generate_pipeline


Project Name: biolab/orange3
Commit Name: ff2d295fc00964085acbf6d25e0b8c97a3e9db20
Time: 2012-11-23
Author: janez.demsar@fri.uni-lj.si
File Name: Orange/data/variable.py
Class Name: ContinuousVariable
Method Name: to_val


Project Name: vatlab/SoS
Commit Name: 508ea4c20f4672707d2ffc007f1dfc869eb1872f
Time: 2016-10-31
Author: ben.bog@gmail.com
File Name: pysos/target.py
Class Name: FileTarget
Method Name: size


Project Name: vatlab/SoS
Commit Name: 508ea4c20f4672707d2ffc007f1dfc869eb1872f
Time: 2016-10-31
Author: ben.bog@gmail.com
File Name: pysos/target.py
Class Name: FileTarget
Method Name: mtime