d733b902552295be41b1f88c8343b5e7b4ff8a9b,TTS/speaker_encoder/dataset.py,MyDataset,__parse_items,#MyDataset#,53

Before Change


        
        Find unique speaker ids and create a dict mapping utterances from speaker id
        
        speakers = list({item[-1] for item in self.items})
        self.speaker_to_utters = {}
        self.speakers = []
        for speaker in speakers:

After Change


                self.speaker_to_utters[speaker_] = [path_, ]

            if self.skip_speakers:
                self.speaker_to_utters = {k: v for (k, v) in self.speaker_to_utters.items() if
                                          len(v) >= self.num_utter_per_speaker}

            self.speakers = [k for (k, v) in self.speaker_to_utters]

    // def __parse_items(self):
    //     
    //     Find unique speaker ids and create a dict mapping utterances from speaker id
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 7

Instances


Project Name: mozilla/TTS
Commit Name: d733b902552295be41b1f88c8343b5e7b4ff8a9b
Time: 2020-09-16
Author: nicolas.mueller@aisec.fraunhofer.de
File Name: TTS/speaker_encoder/dataset.py
Class Name: MyDataset
Method Name: __parse_items


Project Name: tensorflow/transform
Commit Name: 204b4cad88ff526006e2fa2c6604c35902cf5aef
Time: 2018-05-15
Author: tf-transform-dev@google.com
File Name: tensorflow_transform/beam/impl.py
Class Name: AnalyzeDataset
Method Name: expand


Project Name: dask/distributed
Commit Name: f761dd21e8cbba62273ab850f5f83e8a45a2fffa
Time: 2020-08-31
Author: TomAugspurger@users.noreply.github.com
File Name: distributed/http/scheduler/tests/test_scheduler_http.py
Class Name:
Method Name: test_prometheus