d25a4ddff30095270032bda0cbcf4f61e65e531f,torchaudio/datasets/librispeech.py,LIBRISPEECH,__init__,#LIBRISPEECH#Any#Any#Any#Any#,89

Before Change


                    download_url(url, root, hash_value=checksum)
                extract_archive(archive)

        walker = walk_files(
            self._path, suffix=self._ext_audio, prefix=False, remove_suffix=True
        )
        self._walker = list(walker)

    def __getitem__(self, n: int) -> Tuple[Tensor, int, str, int, int, int]:
        Load the n-th sample from the dataset.

After Change


        basename = basename.split(".")[0]
        folder_in_archive = os.path.join(folder_in_archive, basename)

        self._path = os.path.join(root, folder_in_archive)

        if download:
            if not os.path.isdir(self._path):
                if not os.path.isfile(archive):
                    checksum = _CHECKSUMS.get(url, None)
                    download_url(url, root, hash_value=checksum)
                extract_archive(archive)

        self._walker = sorted(str(p.stem) for p in Path(self._path).glob("*/*/*" + self._ext_audio))

    def __getitem__(self, n: int) -> Tuple[Tensor, int, str, int, int, int]:
        Load the n-th sample from the dataset.
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 24

Instances


Project Name: pytorch/audio
Commit Name: d25a4ddff30095270032bda0cbcf4f61e65e531f
Time: 2020-12-15
Author: kkalyan@apache.org
File Name: torchaudio/datasets/librispeech.py
Class Name: LIBRISPEECH
Method Name: __init__


Project Name: pytorch/audio
Commit Name: d25a4ddff30095270032bda0cbcf4f61e65e531f
Time: 2020-12-15
Author: kkalyan@apache.org
File Name: torchaudio/datasets/libritts.py
Class Name: LIBRITTS
Method Name: __init__


Project Name: pytorch/audio
Commit Name: d25a4ddff30095270032bda0cbcf4f61e65e531f
Time: 2020-12-15
Author: kkalyan@apache.org
File Name: torchaudio/datasets/librispeech.py
Class Name: LIBRISPEECH
Method Name: __init__


Project Name: pytorch/audio
Commit Name: d25a4ddff30095270032bda0cbcf4f61e65e531f
Time: 2020-12-15
Author: kkalyan@apache.org
File Name: torchaudio/datasets/yesno.py
Class Name: YESNO
Method Name: __init__