2998b90908d488aa4e5f4dc6ae9f749427de3c6b,perfkitbenchmarker/rackspace/rackspace_disk.py,RackspaceRemoteDisk,GetDevicePath,#RackspaceRemoteDisk#,189
Before Change
if "volume_id" in attachment and attachment["volume_id"] == self.id:
return attachment["device"]
return ""
After Change
if not attachment_list:
raise errors.Error("Cannot determine volume %s attachments" % self.name)
for attachment in attachment_list:
if "volume_id" in attachment and attachment["volume_id"] == self.id:
return attachment["device"]
else:
raise errors.Error(
"Could not find device path in the volume %s attachments")
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 3
Instances
Project Name: GoogleCloudPlatform/PerfKitBenchmarker
Commit Name: 2998b90908d488aa4e5f4dc6ae9f749427de3c6b
Time: 2015-07-01
Author: carlos.torres@rackspace.com
File Name: perfkitbenchmarker/rackspace/rackspace_disk.py
Class Name: RackspaceRemoteDisk
Method Name: GetDevicePath
Project Name: GoogleCloudPlatform/PerfKitBenchmarker
Commit Name: 3d95ae5cd11987e4c963baf4da374b1fa139b807
Time: 2016-06-29
Author: carlos.torres@rackspace.com
File Name: perfkitbenchmarker/providers/openstack/os_virtual_machine.py
Class Name: OpenStackVirtualMachine
Method Name: _CheckNetworks
Project Name: pytorch/audio
Commit Name: 38d1a9b6325d8b69e9b26ce28b1f1a8e0040c51b
Time: 2019-11-06
Author: vincentqb@users.noreply.github.com
File Name: torchaudio/datasets/librispeech.py
Class Name:
Method Name: load_librispeech_item
Project Name: TheAlgorithms/Python
Commit Name: 938dd0bbb5145aa7c60127745ae0571cb20a2387
Time: 2019-12-06
Author: vargasnikolass@gmail.com
File Name: maths/prime_numbers.py
Class Name:
Method Name: primes