9def69a805132ff7549744b5b30a2fa7531fa405,tmtoolkit/preprocess/_tmpreproc.py,TMPreproc,get_kwic,#TMPreproc#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#,366

Before Change


                    df_cols = ["doc", "context", "position", "token"] + meta_cols
                    dfs.append(pd.DataFrame(OrderedDict(zip(df_cols, df_windata))))

            return pd.concat(dfs).set_index(["doc", "context", "position"]).sort_index()
        elif not with_metadata:
            return {dl: [win["token"] for win in windows]
                    for dl, windows in kwic.items()}
        else:

After Change


                    df_cols = ["doc", "context", "position", "token"] + meta_cols
                    dfs.append(dt.Frame(OrderedDict(zip(df_cols, df_windata))))

            kwic_df = dt.rbind(*dfs)
            return kwic_df[:, :, dt.sort("doc", "context", "position")]
        elif not with_metadata:
            return {dl: [win["token"] for win in windows]
                    for dl, windows in kwic.items()}
        else:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: WZBSocialScienceCenter/tmtoolkit
Commit Name: 9def69a805132ff7549744b5b30a2fa7531fa405
Time: 2019-06-12
Author: markus.konrad@wzb.eu
File Name: tmtoolkit/preprocess/_tmpreproc.py
Class Name: TMPreproc
Method Name: get_kwic


Project Name: WZBSocialScienceCenter/tmtoolkit
Commit Name: 9def69a805132ff7549744b5b30a2fa7531fa405
Time: 2019-06-12
Author: markus.konrad@wzb.eu
File Name: tmtoolkit/preprocess/_tmpreproc.py
Class Name: TMPreproc
Method Name: get_kwic_table


Project Name: commonsense/conceptnet5
Commit Name: 90c70df2caf4b43d50d3fc9708add015f74499c1
Time: 2019-05-09
Author: rbeaudoin@luminoso.com
File Name: conceptnet5/vectors/retrofit.py
Class Name:
Method Name: join_shards