5ca53bb34ef70d9b05f9195d3090f320d7d2a73c,bokeh/util/compiler.py,,bundle_models,#Any#,286

Before Change


    modules = []

    with io.open(join(bokehjs_dir, "js", "modules.json"), encoding="utf-8") as f:
        known_modules = json.loads(f.read())

    known_modules = set(known_modules["bokehjs"] + known_modules["widgets"])
    custom_impls = {}

    dependencies = []
    for model in ordered_models:

After Change


    exports = sorted(exports, key=lambda spec: spec[1])
    modules = sorted(modules, key=lambda spec: spec[0])

    for i, (module, code, deps) in enumerate(modules):
        for name, ref in deps.items():
            code = code.replace(require("%s") % name, require("%s") % ref)
            code = code.replace(require("%s") % name, require("%s") % ref)
        modules[i] = (module, code)

    sep = ",\n"

    exports = sep.join([ _export_template % dict(name=name, module=module) for (name, module) in exports ])
    modules = sep.join([ _module_template % dict(module=module, source=code) for (module, code) in modules ])
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 9

Instances


Project Name: bokeh/bokeh
Commit Name: 5ca53bb34ef70d9b05f9195d3090f320d7d2a73c
Time: 2017-07-19
Author: mattpap@gmail.com
File Name: bokeh/util/compiler.py
Class Name:
Method Name: bundle_models


Project Name: caserec/CaseRecommender
Commit Name: c3a6f53a6523a086752c07047c888a1019ba5773
Time: 2016-06-03
Author: fortes.arthur@gmail.com
File Name: recommenders/rating_prediction/base_rating_prediction.py
Class Name: BaseRatingPrediction
Method Name: __init__


Project Name: ilastik/ilastik
Commit Name: c8105b3974fba93097bd28e5ae14a27e5f56c857
Time: 2013-03-14
Author: bergs@janelia.hhmi.org
File Name: ilastik/applets/objectExtraction/objectExtractionSerializer.py
Class Name: SerialLabelImageSlot
Method Name: deserialize