2fcc7e8c87bd3d8f44b491d1f43be7002a2db6d7,pyannote/audio/labeling/tasks/base.py,LabelingTaskGenerator,_load_metadata,#LabelingTaskGenerator#Any#Any#,145
Before Change
// keep track of database
database = current_file["database"]
databases.add(database)
// keep track of unique labels
labels.update(current_file["annotation"].labels())
After Change
// keep track of unique file labels
for key, value in current_file.items():
if key in ["annotation", "annotated"]:
continue
if key not in file_labels:
file_labels[key] = set()
file_labels[key].add(value)
segments = [s for s in current_file["annotated"]
if s.duration > self.duration]
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
Instances
Project Name: pyannote/pyannote-audio
Commit Name: 2fcc7e8c87bd3d8f44b491d1f43be7002a2db6d7
Time: 2019-04-08
Author: bredin@limsi.fr
File Name: pyannote/audio/labeling/tasks/base.py
Class Name: LabelingTaskGenerator
Method Name: _load_metadata
Project Name: RaRe-Technologies/gensim
Commit Name: 680de8d4f35325e7486c07c4e06422929e826b57
Time: 2019-01-10
Author: __Singleton__@hackerdom.ru
File Name: gensim/corpora/lowcorpus.py
Class Name: LowCorpus
Method Name: line2doc
Project Name: home-assistant/home-assistant
Commit Name: 8703124c760df303d29571aa975a72cc4f868f09
Time: 2018-01-17
Author: pierre.staahl@gmail.com
File Name: homeassistant/components/media_player/yamaha.py
Class Name:
Method Name: setup_platform