3ab4b8614054e9920676ae479df1ff4c2c2e438b,pliers/extractors/api.py,IndicoAPIExtractor,_extract,#IndicoAPIExtractor#,69

Before Change


        results = []
        for i, stim in enumerate(stims):
            features, data = [], []
            for j, score in enumerate(scores):
                if isinstance(score[i], float):
                    features.append(self.names[j])
                    data.append(score[i])
                elif isinstance(score[i], dict):
                    for k in score[i].keys():
                        features.append(self.names[j] + "_" + k)
                        data.append(score[i][k])

            results.append(ExtractorResult([data], stim, self,
                                           features=features,
                                           onsets=stim.onset,
                                           durations=stim.duration))

After Change



        results = []
        for i, stim in enumerate(stims):
            stim_scores = [s[i] for s in scores]
            results.append(ExtractorResult(None, stim, self,
                                           raw=stim_scores))
        return results
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 9

Instances


Project Name: tyarkoni/pliers
Commit Name: 3ab4b8614054e9920676ae479df1ff4c2c2e438b
Time: 2018-02-13
Author: quinten.mcnamara@gmail.com
File Name: pliers/extractors/api.py
Class Name: IndicoAPIExtractor
Method Name: _extract


Project Name: explosion/thinc
Commit Name: fc56073588771c81b4e134bff54195f5e74e6b43
Time: 2020-01-21
Author: ines@ines.io
File Name: thinc/backends/ops.py
Class Name: Ops
Method Name: minibatch


Project Name: explosion/thinc
Commit Name: fc56073588771c81b4e134bff54195f5e74e6b43
Time: 2020-01-21
Author: ines@ines.io
File Name: thinc/backends/ops.py
Class Name: Ops
Method Name: multibatch