9d478d351665502019ac40a7302e769b9d3f6660,pliers/extractors/api/google.py,GoogleVideoIntelligenceAPIExtractor,_to_df,#GoogleVideoIntelligenceAPIExtractor#Any#,269

Before Change


        df = pd.DataFrame(data)
        result._onsets = df["onset"]
        result._durations = df["duration"]
        df = df.drop(["onset", "duration"], axis=1)
        result.features = list(df.columns)
        return df

After Change


        df = pd.DataFrame(list(data.values()))
        // If multiple confidences were parsed, uses the last one
        if len(data) > 0:
            onsets, durations = zip(*list(data.keys()))
            result._onsets = onsets
            result._durations = durations
        result.features = list(df.columns)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 4

Instances


Project Name: tyarkoni/pliers
Commit Name: 9d478d351665502019ac40a7302e769b9d3f6660
Time: 2018-04-17
Author: quinten.mcnamara@gmail.com
File Name: pliers/extractors/api/google.py
Class Name: GoogleVideoIntelligenceAPIExtractor
Method Name: _to_df


Project Name: EpistasisLab/tpot
Commit Name: 45c9fcd8b1df849a0c3b19403d13da38b7cd68c3
Time: 2016-07-07
Author: supacoofoo@gmail.com
File Name: tpot/operators/preprocessors/zero_count.py
Class Name: ZeroCount
Method Name: transform


Project Name: sebp/scikit-survival
Commit Name: adb2f55d8629b588bba17a5232946b2245c157fc
Time: 2017-07-23
Author: sebp@k-d-w.org
File Name: tests/test_preprocessing.py
Class Name:
Method Name: encoded_data


Project Name: EpistasisLab/tpot
Commit Name: 2ab8c1444facbd46df8767a5badda5b9f1a50c29
Time: 2016-08-01
Author: supacoofoo@gmail.com
File Name: tpot/tpot.py
Class Name:
Method Name: main