87f695a4c88010134e19bde5f58126dcb7a01c2d,scripts/parse_modules.py,,output_classes,#Any#Any#,5
Before Change
functions.append(y.name)
methods[x.name]["methods"] = functions
class_defs[module_name].append(methods)
with open("classes.yaml", "w") as stream:
yaml.dump(class_defs, stream, default_flow_style=False)
output_classes("../bokeh/charts/glyphs.py", "glyphs")
After Change
classes = [node for node in ast.walk(p) if isinstance(node, ast.ClassDef) and not is_private(node.name)]
class_defs = {"classes": {}}
for x in classes:
class_defs["classes"][x.name] = {}
functions = []
for y in x.body:
if type(y) == ast.FunctionDef and not is_private(y.name):
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 6
Instances Project Name: bokeh/bokeh
Commit Name: 87f695a4c88010134e19bde5f58126dcb7a01c2d
Time: 2016-08-02
Author: brittainhard@gmail.com
File Name: scripts/parse_modules.py
Class Name:
Method Name: output_classes
Project Name: interactiveaudiolab/nussl
Commit Name: bc1ca6bc6d1c28c780e348321e8e95d5b3f91794
Time: 2019-07-15
Author: prem@u.northwestern.edu
File Name: nussl/deep/datasets/base_dataset.py
Class Name: BaseDataset
Method Name: write_to_cache
Project Name: Pinafore/qb
Commit Name: 100fd825069036e054506b3a0daa076560b1f531
Time: 2017-10-04
Author: sjtufs@gmail.com
File Name: qanta/buzzer/hyper_search.py
Class Name:
Method Name: run
Project Name: IBM/adversarial-robustness-toolbox
Commit Name: ac3c876e2e93f56c68dab56b7d2e3dfc9761721d
Time: 2017-05-25
Author: valentina.zantedeschi@ibm.com
File Name: generate_adversarial.py
Class Name:
Method Name: