1fe0dbac77b18ea24885ad4d367c849152df8a94,matchzoo/models/parameter_readme_generator.py,,_make_model_params_table,#Any#,52
Before Change
def _make_model_params_table(model):
params = model.get_default_params()
df = pd.DataFrame(data={
"Name": [p.name for p in params],
"Description": [p.desc for p in params],
"Default Value": [p.value for p in params],
"Default Hyper-Space": [p.hyper_space for p in params]
}, columns=["Name", "Description", "Default Value", "Default Hyper-Space"])
return tabulate.tabulate(df, tablefmt="rst", headers="keys") + "\n\n"
def _write_to_files(full):
After Change
def _make_model_params_table(model):
params = model.get_default_params()
df = params.to_frame()
df = df.rename({
"Value": "Default Value",
"Hyper-Space": "Default Hyper-Space"
}, axis="columns")
return tabulate.tabulate(df, tablefmt="rst", headers="keys") + "\n\n"
def _write_to_files(full):
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 5
Instances
Project Name: NTMC-Community/MatchZoo
Commit Name: 1fe0dbac77b18ea24885ad4d367c849152df8a94
Time: 2019-01-13
Author: i@uduse.com
File Name: matchzoo/models/parameter_readme_generator.py
Class Name:
Method Name: _make_model_params_table
Project Name: ericmjl/pyjanitor
Commit Name: 27d01d957c1a2817a28ffbd7fc387c1c74c075c0
Time: 2018-03-21
Author: BB5361@engie.com
File Name: janitor/functions.py
Class Name:
Method Name: clean_names
Project Name: has2k1/plotnine
Commit Name: 3c23a55f84ab81bf825f266bab38b5bd6cbd09b1
Time: 2018-07-31
Author: has2k1@gmail.com
File Name: plotnine/facets/facet_wrap.py
Class Name: facet_wrap
Method Name: compute_layout
Project Name: catalyst-cooperative/pudl
Commit Name: 502b5044afc68eb0c1256edf9df735f682808214
Time: 2018-06-05
Author: zane.selvans@gmail.com
File Name: pudl/datastore.py
Class Name:
Method Name: organize