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):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

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: deeptools/HiCExplorer
Commit Name: 01de423a0847bb27ba136764aace9323cd7886a4
Time: 2020-01-20
Author: leila.rabbani@gmail.com
File Name: hicexplorer/hicCompartmentalization.py
Class Name:
Method Name: main


Project Name: catalyst-cooperative/pudl
Commit Name: f8020951745d45a7367f3e63cd639a682fd3d79a
Time: 2019-06-11
Author: zane.selvans@catalyst.coop
File Name: pudl/transform/eia.py
Class Name:
Method Name: _occurrence_consistency