a871536bcbb38b9ca03b0bc777712d8c0a79ad90,matchzoo/data_pack/pack.py,,pack,#Any#,17

Before Change


    // Infer the length of the text left
    // left["length_left"] = left.apply(lambda r: len(r["text_left"]), axis=1)

    right = df[["id_right", "text_right"]].drop_duplicates(["id_right"])
    right.set_index("id_right", inplace=True)
    // Infer the length of the text right

    return DataPack(relation=relation,

After Change


    if "id_left" not in df:
        id_left = _gen_ids(df, "text_left", "L-")
    else:
        id_left = df["id_left"]
    if "id_right" not in df:
        id_right = _gen_ids(df, "text_right", "R-")
    else:
        id_right = df["id_right"]
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 6

Instances


Project Name: NTMC-Community/MatchZoo
Commit Name: a871536bcbb38b9ca03b0bc777712d8c0a79ad90
Time: 2018-12-13
Author: i@uduse.com
File Name: matchzoo/data_pack/pack.py
Class Name:
Method Name: pack


Project Name: dickreuter/Poker
Commit Name: ccd5394d688a3eadfcae0ce9e59a395537d6317e
Time: 2016-09-04
Author: dickreuter@yahoo.com
File Name: log_manager.py
Class Name: Logging
Method Name: get_fundschange_chart


Project Name: dickreuter/Poker
Commit Name: ccd5394d688a3eadfcae0ce9e59a395537d6317e
Time: 2016-09-04
Author: dickreuter@yahoo.com
File Name: log_manager.py
Class Name: Logging
Method Name: get_strategy_total_funds_change