1e792729ce59d1cd71bb776d74bb3e427b580a4e,pliers/extractors/api/clarifai.py,ClarifaiAPIVideoExtractor,_to_df,#ClarifaiAPIVideoExtractor#Any#,142
Before Change
data_dict = self._parse_annotations(frame_res)
data_dict["onset_"] = frame_res["frame_info"]["time"] / 1000.0
frame_num = frame_res["frame_info"]["index"]
if frame_num == 0:
est_duration = 0.0
else:
est_duration = data_dict["onset_"] / float(frame_num)
data_dict["duration_"] = min(est_duration,
result.stim.duration - data_dict["onset_"])
data_dict["order_"] = frame_num
rows.append(data_dict)
After Change
durations = []
data = []
frames = result._data[0]["data"]["frames"]
for i, frame_res in enumerate(frames) :
data.append(self._parse_annotations(frame_res))
onset = frame_res["frame_info"]["time"] / 1000.0
if (i + 1) == len(frames):
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances Project Name: tyarkoni/pliers
Commit Name: 1e792729ce59d1cd71bb776d74bb3e427b580a4e
Time: 2018-04-13
Author: quinten.mcnamara@gmail.com
File Name: pliers/extractors/api/clarifai.py
Class Name: ClarifaiAPIVideoExtractor
Method Name: _to_df
Project Name: emedvedev/attention-ocr
Commit Name: 4bb608662475ecf87dc773a6a1c6914a6c374597
Time: 2017-01-10
Author: sivanke11@gmail.com
File Name: src/model/model.py
Class Name: Model
Method Name: launch
Project Name: mindsdb/mindsdb
Commit Name: 80ab5f2eb06c8023c6ba4b62c054ff04369913f8
Time: 2020-11-12
Author: stpmax@yandex.ru
File Name: tests/integration_tests/flows/test_mongo.py
Class Name: MongoTest
Method Name: setUpClass