2fcc7e8c87bd3d8f44b491d1f43be7002a2db6d7,pyannote/audio/labeling/tasks/base.py,LabelingTaskGenerator,_load_metadata,#LabelingTaskGenerator#Any#Any#,145

Before Change


            uri = get_unique_identifier(current_file)
            self.data_[uri] = datum

        self.databases_ = sorted(databases)
        self.original_classes_ = sorted(labels)

        for current_file in getattr(protocol, subset)():
            uri = get_unique_identifier(current_file)

After Change


            segment_labels.update(current_file["annotation"].labels())

            // 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]

            // corner case where no segment is long enough
Italian Trulli
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: ray-project/ray
Commit Name: 6247740b94ec0764964f2bb19c8c5273c1db92a9
Time: 2020-09-21
Author: krfricke@users.noreply.github.com
File Name: python/ray/tune/progress_reporter.py
Class Name:
Method Name: trial_progress_str


Project Name: biotite-dev/biotite
Commit Name: 0ad2975370cc83d2be5886e27764532a023cb7c5
Time: 2018-02-07
Author: patrick.kunzm@gmail.com
File Name: src/biotite/sequence/annotation.py
Class Name: Annotation
Method Name: __eq__