id
int64
0
328k
repository_name
stringlengths
7
58
file_path
stringlengths
9
302
class_name
stringlengths
5
256
human_written_code
stringlengths
16
2.16M
class_skeleton
stringlengths
18
1.49M
⌀
total_program_units
int64
1
1.76k
total_doc_str
int64
0
771
AvgCountLine
float64
0
7.89k
AvgCountLineBlank
float64
0
297
AvgCountLineCode
float64
0
7.89k
AvgCountLineComment
float64
0
7.89k
AvgCyclomatic
float64
0
130
CommentToCodeRatio
float64
0
168
CountClassBase
float64
0
40
CountClassCoupled
float64
0
583
CountClassCoupledModified
float64
0
575
CountClassDerived
float64
0
5.35k
CountDeclInstanceMethod
float64
0
529
CountDeclInstanceVariable
float64
0
296
CountDeclMethod
float64
0
599
CountDeclMethodAll
float64
0
1.12k
CountLine
float64
1
40.4k
CountLineBlank
float64
0
8.16k
CountLineCode
float64
1
25.7k
CountLineCodeDecl
float64
1
8.15k
CountLineCodeExe
float64
0
24.2k
CountLineComment
float64
0
16.5k
CountStmt
float64
1
9.71k
CountStmtDecl
float64
1
8.15k
CountStmtExe
float64
0
9.69k
MaxCyclomatic
float64
0
759
MaxInheritanceTree
float64
0
16
MaxNesting
float64
0
34
SumCyclomatic
float64
0
2.9k
9,600
ray-project/ray
python/ray/_private/thirdparty/pynvml/pynvml.py
ray._private.thirdparty.pynvml.pynvml.c_nvmlBridgeChipHierarchy_t
class c_nvmlBridgeChipHierarchy_t(_PrintableStructure): _fields_ = [('bridgeCount', c_uint), ('bridgeChipInfo', c_nvmlBridgeChipInfo_t * 128)]
class c_nvmlBridgeChipHierarchy_t(_PrintableStructure): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
1
5
0
5
2
4
0
2
2
1
0
2
0
0
9,601
ray-project/ray
python/ray/_private/thirdparty/pynvml/pynvml.py
ray._private.thirdparty.pynvml.pynvml.c_nvmlBridgeChipInfo_t
class c_nvmlBridgeChipInfo_t(_PrintableStructure): _fields_ = [('type', _nvmlBridgeChipType_t), ('fwVersion', c_uint)]
class c_nvmlBridgeChipInfo_t(_PrintableStructure): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
1
5
0
5
2
4
0
2
2
1
0
2
0
0
9,602
ray-project/ray
python/ray/_private/thirdparty/pynvml/pynvml.py
ray._private.thirdparty.pynvml.pynvml.c_nvmlComputeInstanceInfo_t
class c_nvmlComputeInstanceInfo_t(Structure): _fields_ = [('device', c_nvmlDevice_t), ('gpuInstance', c_nvmlGpuInstance_t), ('id', c_uint), ('profileId', c_uint), ('placement', c_nvmlComputeInstancePlacement_t)]
class c_nvmlComputeInstanceInfo_t(Structure): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
7
0
7
2
6
0
2
2
1
0
1
0
0
9,603
ray-project/ray
python/ray/_private/thirdparty/pynvml/pynvml.py
ray._private.thirdparty.pynvml.pynvml.c_nvmlComputeInstancePlacement_t
class c_nvmlComputeInstancePlacement_t(Structure): _fields_ = [('start', c_uint), ('size', c_uint)]
class c_nvmlComputeInstancePlacement_t(Structure): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
4
0
4
2
3
0
2
2
1
0
1
0
0
9,604
ray-project/ray
python/ray/_private/thirdparty/pynvml/pynvml.py
ray._private.thirdparty.pynvml.pynvml.c_nvmlComputeInstanceProfileInfo_t
class c_nvmlComputeInstanceProfileInfo_t(Structure): _fields_ = [('id', c_uint), ('sliceCount', c_uint), ('instanceCount', c_uint), ('multiprocessorCount', c_uint), ('sharedCopyEngineCount', c_uint), ('sharedDecoderCount', c_uint), ('sharedEncoderCount', c_uint), ('sharedJpegCount', c_uint), ('sharedOfaCount', c_ui...
class c_nvmlComputeInstanceProfileInfo_t(Structure): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
11
0
11
2
10
0
2
2
1
0
1
0
0
9,605
ray-project/ray
python/ray/_private/thirdparty/pynvml/pynvml.py
ray._private.thirdparty.pynvml.pynvml.c_nvmlDeviceAttributes
class c_nvmlDeviceAttributes(Structure): _fields_ = [('multiprocessorCount', c_uint), ('sharedCopyEngineCount', c_uint), ('sharedDecoderCount', c_uint), ('sharedEncoderCount', c_uint), ('sharedJpegCount', c_uint), ('sharedOfaCount', c_uint), ('gpuInstanceSliceCount', c_uint), ('computeInstanceSliceCount', c_uint), ...
class c_nvmlDeviceAttributes(Structure): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
11
0
11
2
10
0
2
2
1
0
1
0
0
9,606
ray-project/ray
python/ray/_private/thirdparty/pynvml/pynvml.py
ray._private.thirdparty.pynvml.pynvml.c_nvmlEccErrorCounts_t
class c_nvmlEccErrorCounts_t(_PrintableStructure): _fields_ = [('l1Cache', c_ulonglong), ('l2Cache', c_ulonglong), ('deviceMemory', c_ulonglong), ('registerFile', c_ulonglong)]
class c_nvmlEccErrorCounts_t(_PrintableStructure): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
1
7
0
7
2
6
0
2
2
1
0
2
0
0
9,607
ray-project/ray
python/ray/_private/thirdparty/pynvml/pynvml.py
ray._private.thirdparty.pynvml.pynvml.c_nvmlEncoderSession_t
class c_nvmlEncoderSession_t(_PrintableStructure): _fields_ = [('sessionId', c_uint), ('pid', c_uint), ('vgpuInstance', _nvmlVgpuInstance_t), ('codecType', c_uint), ('hResolution', c_uint), ('vResolution', c_uint), ('averageFps', c_uint), ('encodeLatency', c_uint)]
class c_nvmlEncoderSession_t(_PrintableStructure): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
1
11
0
11
2
10
0
2
2
1
0
2
0
0
9,608
ray-project/ray
python/ray/_private/thirdparty/pynvml/pynvml.py
ray._private.thirdparty.pynvml.pynvml.c_nvmlEventData_t
class c_nvmlEventData_t(_PrintableStructure): _fields_ = [('device', c_nvmlDevice_t), ('eventType', c_ulonglong), ('eventData', c_ulonglong), ('gpuInstanceId', c_uint), ('computeInstanceId', c_uint)] _fmt_ = {'eventType': '0x%08X'}
class c_nvmlEventData_t(_PrintableStructure): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
1
9
0
9
3
8
0
3
3
2
0
2
0
0
9,609
ray-project/ray
python/ray/_private/thirdparty/pynvml/pynvml.py
ray._private.thirdparty.pynvml.pynvml.c_nvmlExcludedDeviceInfo_t
class c_nvmlExcludedDeviceInfo_t(_PrintableStructure): _fields_ = [('pci', nvmlPciInfo_t), ('uuid', c_char * NVML_DEVICE_UUID_BUFFER_SIZE)]
class c_nvmlExcludedDeviceInfo_t(_PrintableStructure): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
1
5
0
5
2
4
0
2
2
1
0
2
0
0
9,610
ray-project/ray
python/ray/_private/thirdparty/pynvml/pynvml.py
ray._private.thirdparty.pynvml.pynvml.c_nvmlFBCSession_t
class c_nvmlFBCSession_t(_PrintableStructure): _fields_ = [('sessionId', c_uint), ('pid', c_uint), ('vgpuInstance', _nvmlVgpuInstance_t), ('displayOrdinal', c_uint), ('sessionType', c_uint), ('sessionFlags', c_uint), ('hMaxResolution', c_uint), ('vMaxResolution', c_uint), ('hResolution', c_uint), ('vResolution', c_...
class c_nvmlFBCSession_t(_PrintableStructure): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
1
15
0
15
2
14
0
2
2
1
0
2
0
0
9,611
ray-project/ray
python/ray/_private/thirdparty/pynvml/pynvml.py
ray._private.thirdparty.pynvml.pynvml.c_nvmlFBCStats_t
class c_nvmlFBCStats_t(Structure): _fields_ = [('sessionsCount', c_uint), ('averageFPS', c_uint), ('averageLatency', c_uint)]
class c_nvmlFBCStats_t(Structure): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
5
0
5
2
4
0
2
2
1
0
1
0
0
9,612
ray-project/ray
python/ray/_private/thirdparty/pynvml/pynvml.py
ray._private.thirdparty.pynvml.pynvml.c_nvmlFieldValue_t
class c_nvmlFieldValue_t(_PrintableStructure): _fields_ = [('fieldId', c_uint32), ('scopeId', c_uint32), ('timestamp', c_int64), ('latencyUsec', c_int64), ('valueType', _nvmlValueType_t), ('nvmlReturn', _nvmlReturn_t), ('value', c_nvmlValue_t)]
class c_nvmlFieldValue_t(_PrintableStructure): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
1
10
0
10
2
9
0
2
2
1
0
2
0
0
9,613
ray-project/ray
python/ray/_private/thirdparty/pynvml/pynvml.py
ray._private.thirdparty.pynvml.pynvml.c_nvmlGpuInstanceInfo_t
class c_nvmlGpuInstanceInfo_t(Structure): _fields_ = [('device', c_nvmlDevice_t), ('id', c_uint), ('profileId', c_uint), ('placement', c_nvmlGpuInstancePlacement_t)]
class c_nvmlGpuInstanceInfo_t(Structure): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
6
0
6
2
5
0
2
2
1
0
1
0
0
9,614
ray-project/ray
python/ray/_private/thirdparty/pynvml/pynvml.py
ray._private.thirdparty.pynvml.pynvml.c_nvmlGpuInstancePlacement_t
class c_nvmlGpuInstancePlacement_t(Structure): _fields_ = [('start', c_uint), ('size', c_uint)]
class c_nvmlGpuInstancePlacement_t(Structure): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
4
0
4
2
3
0
2
2
1
0
1
0
0
9,615
ray-project/ray
python/ray/_private/thirdparty/pynvml/pynvml.py
ray._private.thirdparty.pynvml.pynvml.c_nvmlGpuInstanceProfileInfo_t
class c_nvmlGpuInstanceProfileInfo_t(Structure): _fields_ = [('id', c_uint), ('isP2pSupported', c_uint), ('sliceCount', c_uint), ('instanceCount', c_uint), ('multiprocessorCount', c_uint), ('copyEngineCount', c_uint), ('decoderCount', c_uint), ('encoderCount', c_uint), ('jpegCount', c_uint), ('ofaCount', c_uint), (...
class c_nvmlGpuInstanceProfileInfo_t(Structure): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
13
0
13
2
12
0
2
2
1
0
1
0
0
9,616
ray-project/ray
python/ray/_private/thirdparty/pynvml/pynvml.py
ray._private.thirdparty.pynvml.pynvml.c_nvmlGridLicensableFeature_t
class c_nvmlGridLicensableFeature_t(_PrintableStructure): _fields_ = [('featureCode', _nvmlGridLicenseFeatureCode_t), ('featureState', c_uint), ('licenseInfo', c_char * NVML_GRID_LICENSE_BUFFER_SIZE)]
class c_nvmlGridLicensableFeature_t(_PrintableStructure): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
1
6
0
6
2
5
0
2
2
1
0
2
0
0
9,617
ray-project/ray
python/ray/_private/thirdparty/pynvml/pynvml.py
ray._private.thirdparty.pynvml.pynvml.c_nvmlGridLicensableFeature_v2_t
class c_nvmlGridLicensableFeature_v2_t(_PrintableStructure): _fields_ = [('featureCode', _nvmlGridLicenseFeatureCode_t), ('featureState', c_uint), ('licenseInfo', c_char * NVML_GRID_LICENSE_BUFFER_SIZE), ('productName', c_char * NVML_GRID_LICENSE_BUFFER_SIZE)]
class c_nvmlGridLicensableFeature_v2_t(_PrintableStructure): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
1
7
0
7
2
6
0
2
2
1
0
2
0
0
9,618
ray-project/ray
python/ray/_private/thirdparty/pynvml/pynvml.py
ray._private.thirdparty.pynvml.pynvml.c_nvmlGridLicensableFeature_v3_t
class c_nvmlGridLicensableFeature_v3_t(_PrintableStructure): _fields_ = [('featureCode', _nvmlGridLicenseFeatureCode_t), ('featureState', c_uint), ('licenseInfo', c_char * NVML_GRID_LICENSE_BUFFER_SIZE), ('productName', c_char * NVML_GRID_LICENSE_BUFFER_SIZE), ('featureEnabled', c_uint)]
class c_nvmlGridLicensableFeature_v3_t(_PrintableStructure): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
1
8
0
8
2
7
0
2
2
1
0
2
0
0
9,619
ray-project/ray
python/ray/_private/thirdparty/pynvml/pynvml.py
ray._private.thirdparty.pynvml.pynvml.c_nvmlGridLicensableFeature_v4_t
class c_nvmlGridLicensableFeature_v4_t(_PrintableStructure): _fields_ = [('featureCode', _nvmlGridLicenseFeatureCode_t), ('featureState', c_uint), ('licenseInfo', c_char * NVML_GRID_LICENSE_BUFFER_SIZE), ('productName', c_char * NVML_GRID_LICENSE_BUFFER_SIZE), ('featureEnabled', c_uint), ('licenseExpiry', c_nvmlGri...
class c_nvmlGridLicensableFeature_v4_t(_PrintableStructure): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
1
9
0
9
2
8
0
2
2
1
0
2
0
0
9,620
ray-project/ray
python/ray/_private/thirdparty/pynvml/pynvml.py
ray._private.thirdparty.pynvml.pynvml.c_nvmlGridLicensableFeatures_t
class c_nvmlGridLicensableFeatures_t(_PrintableStructure): _fields_ = [('isGridLicenseSupported', c_int), ('licensableFeaturesCount', c_uint), ('gridLicensableFeatures', c_nvmlGridLicensableFeature_t * NVML_GRID_LICENSE_FEATURE_MAX_COUNT)]
class c_nvmlGridLicensableFeatures_t(_PrintableStructure): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
1
6
0
6
2
5
0
2
2
1
0
2
0
0
9,621
ray-project/ray
python/ray/_private/thirdparty/pynvml/pynvml.py
ray._private.thirdparty.pynvml.pynvml.c_nvmlGridLicensableFeatures_v2_t
class c_nvmlGridLicensableFeatures_v2_t(_PrintableStructure): _fields_ = [('isGridLicenseSupported', c_int), ('licensableFeaturesCount', c_uint), ('gridLicensableFeatures', c_nvmlGridLicensableFeature_v2_t * NVML_GRID_LICENSE_FEATURE_MAX_COUNT)]
class c_nvmlGridLicensableFeatures_v2_t(_PrintableStructure): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
1
6
0
6
2
5
0
2
2
1
0
2
0
0
9,622
ray-project/ray
python/ray/_private/thirdparty/pynvml/pynvml.py
ray._private.thirdparty.pynvml.pynvml.c_nvmlGridLicensableFeatures_v3_t
class c_nvmlGridLicensableFeatures_v3_t(_PrintableStructure): _fields_ = [('isGridLicenseSupported', c_int), ('licensableFeaturesCount', c_uint), ('gridLicensableFeatures', c_nvmlGridLicensableFeature_v3_t * NVML_GRID_LICENSE_FEATURE_MAX_COUNT)]
class c_nvmlGridLicensableFeatures_v3_t(_PrintableStructure): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
1
6
0
6
2
5
0
2
2
1
0
2
0
0
9,623
ray-project/ray
python/ray/_private/thirdparty/pynvml/pynvml.py
ray._private.thirdparty.pynvml.pynvml.c_nvmlGridLicensableFeatures_v4_t
class c_nvmlGridLicensableFeatures_v4_t(_PrintableStructure): _fields_ = [('isGridLicenseSupported', c_int), ('licensableFeaturesCount', c_uint), ('gridLicensableFeatures', c_nvmlGridLicensableFeature_v4_t * NVML_GRID_LICENSE_FEATURE_MAX_COUNT)]
class c_nvmlGridLicensableFeatures_v4_t(_PrintableStructure): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
1
6
0
6
2
5
0
2
2
1
0
2
0
0
9,624
ray-project/ray
python/ray/_private/thirdparty/pynvml/pynvml.py
ray._private.thirdparty.pynvml.pynvml.c_nvmlGridLicenseExpiry_t
class c_nvmlGridLicenseExpiry_t(_PrintableStructure): _fields_ = [('year', c_uint32), ('month', c_uint16), ('day', c_uint16), ('hour', c_uint16), ('min', c_uint16), ('sec', c_uint16), ('status', c_uint8)]
class c_nvmlGridLicenseExpiry_t(_PrintableStructure): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
1
10
0
10
2
9
0
2
2
1
0
2
0
0
9,625
ray-project/ray
python/ray/_private/thirdparty/pynvml/pynvml.py
ray._private.thirdparty.pynvml.pynvml.c_nvmlHwbcEntry_t
class c_nvmlHwbcEntry_t(_PrintableStructure): _fields_ = [('hwbcId', c_uint), ('firmwareVersion', c_char * 32)]
class c_nvmlHwbcEntry_t(_PrintableStructure): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
1
5
0
5
2
4
0
2
2
1
0
2
0
0
9,626
ray-project/ray
python/ray/_private/thirdparty/pynvml/pynvml.py
ray._private.thirdparty.pynvml.pynvml.c_nvmlLedState_t
class c_nvmlLedState_t(_PrintableStructure): _fields_ = [('cause', c_char * 256), ('color', _nvmlLedColor_t)]
class c_nvmlLedState_t(_PrintableStructure): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
1
5
0
5
2
4
0
2
2
1
0
2
0
0
9,627
ray-project/ray
python/ray/_private/thirdparty/pynvml/pynvml.py
ray._private.thirdparty.pynvml.pynvml.c_nvmlMemory_t
class c_nvmlMemory_t(_PrintableStructure): _fields_ = [('total', c_ulonglong), ('free', c_ulonglong), ('used', c_ulonglong)] _fmt_ = {'<default>': '%d B'}
class c_nvmlMemory_t(_PrintableStructure): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
1
7
0
7
3
6
0
3
3
2
0
2
0
0
9,628
ray-project/ray
python/ray/_private/thirdparty/pynvml/pynvml.py
ray._private.thirdparty.pynvml.pynvml.c_nvmlPSUInfo_t
class c_nvmlPSUInfo_t(_PrintableStructure): _fields_ = [('state', c_char * 256), ('current', c_uint), ('voltage', c_uint), ('power', c_uint)]
class c_nvmlPSUInfo_t(_PrintableStructure): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
1
7
0
7
2
6
0
2
2
1
0
2
0
0
9,629
ray-project/ray
python/ray/_private/thirdparty/pynvml/pynvml.py
ray._private.thirdparty.pynvml.pynvml.c_nvmlProcessUtilizationSample_t
class c_nvmlProcessUtilizationSample_t(_PrintableStructure): _fields_ = [('pid', c_uint), ('timeStamp', c_ulonglong), ('smUtil', c_uint), ('memUtil', c_uint), ('encUtil', c_uint), ('decUtil', c_uint)]
class c_nvmlProcessUtilizationSample_t(_PrintableStructure): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
1
9
0
9
2
8
0
2
2
1
0
2
0
0
9,630
ray-project/ray
python/ray/_private/thirdparty/pynvml/pynvml.py
ray._private.thirdparty.pynvml.pynvml.c_nvmlRowRemapperHistogramValues
class c_nvmlRowRemapperHistogramValues(Structure): _fields_ = [('max', c_uint), ('high', c_uint), ('partial', c_uint), ('low', c_uint), ('none', c_uint)]
class c_nvmlRowRemapperHistogramValues(Structure): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
7
0
7
2
6
0
2
2
1
0
1
0
0
9,631
ray-project/ray
python/ray/_private/thirdparty/pynvml/pynvml.py
ray._private.thirdparty.pynvml.pynvml.c_nvmlSample_t
class c_nvmlSample_t(_PrintableStructure): _fields_ = [('timeStamp', c_ulonglong), ('sampleValue', c_nvmlValue_t)]
class c_nvmlSample_t(_PrintableStructure): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
1
5
0
5
2
4
0
2
2
1
0
2
0
0
9,632
ray-project/ray
python/ray/_private/thirdparty/pynvml/pynvml.py
ray._private.thirdparty.pynvml.pynvml.c_nvmlUnitFanInfo_t
class c_nvmlUnitFanInfo_t(_PrintableStructure): _fields_ = [('speed', c_uint), ('state', _nvmlFanState_t)]
class c_nvmlUnitFanInfo_t(_PrintableStructure): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
1
5
0
5
2
4
0
2
2
1
0
2
0
0
9,633
ray-project/ray
python/ray/_private/thirdparty/pynvml/pynvml.py
ray._private.thirdparty.pynvml.pynvml.c_nvmlUnitFanSpeeds_t
class c_nvmlUnitFanSpeeds_t(_PrintableStructure): _fields_ = [('fans', c_nvmlUnitFanInfo_t * 24), ('count', c_uint)]
class c_nvmlUnitFanSpeeds_t(_PrintableStructure): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
1
5
0
5
2
4
0
2
2
1
0
2
0
0
9,634
ray-project/ray
python/ray/_private/thirdparty/pynvml/pynvml.py
ray._private.thirdparty.pynvml.pynvml.c_nvmlUnitInfo_t
class c_nvmlUnitInfo_t(_PrintableStructure): _fields_ = [('name', c_char * 96), ('id', c_char * 96), ('serial', c_char * 96), ('firmwareVersion', c_char * 96)]
class c_nvmlUnitInfo_t(_PrintableStructure): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
1
7
0
7
2
6
0
2
2
1
0
2
0
0
9,635
ray-project/ray
python/ray/_private/thirdparty/pynvml/pynvml.py
ray._private.thirdparty.pynvml.pynvml.c_nvmlUtilization_t
class c_nvmlUtilization_t(_PrintableStructure): _fields_ = [('gpu', c_uint), ('memory', c_uint)] _fmt_ = {'<default>': '%d %%'}
class c_nvmlUtilization_t(_PrintableStructure): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
1
6
0
6
3
5
0
3
3
2
0
2
0
0
9,636
ray-project/ray
python/ray/_private/thirdparty/pynvml/pynvml.py
ray._private.thirdparty.pynvml.pynvml.c_nvmlValue_t
class c_nvmlValue_t(Union): _fields_ = [('dVal', c_double), ('uiVal', c_uint), ('ulVal', c_ulong), ('ullVal', c_ulonglong), ('sllVal', c_longlong), ('siVal', c_int), ('usVal', c_ushort)]
class c_nvmlValue_t(Union): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
8
0
8
2
7
0
2
2
1
0
1
0
0
9,637
ray-project/ray
python/ray/_private/thirdparty/pynvml/pynvml.py
ray._private.thirdparty.pynvml.pynvml.c_nvmlVgpuInstanceUtilizationSample_t
class c_nvmlVgpuInstanceUtilizationSample_t(_PrintableStructure): _fields_ = [('vgpuInstance', _nvmlVgpuInstance_t), ('timeStamp', c_ulonglong), ('smUtil', c_nvmlValue_t), ('memUtil', c_nvmlValue_t), ('encUtil', c_nvmlValue_t), ('decUtil', c_nvmlValue_t)]
class c_nvmlVgpuInstanceUtilizationSample_t(_PrintableStructure): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
1
9
0
9
2
8
0
2
2
1
0
2
0
0
9,638
ray-project/ray
python/ray/_private/thirdparty/pynvml/pynvml.py
ray._private.thirdparty.pynvml.pynvml.c_nvmlVgpuLicenseExpiry_t
class c_nvmlVgpuLicenseExpiry_t(_PrintableStructure): _fields_ = [('year', c_uint32), ('month', c_uint16), ('day', c_uint16), ('hour', c_uint16), ('min', c_uint16), ('sec', c_uint16), ('status', c_uint8)]
class c_nvmlVgpuLicenseExpiry_t(_PrintableStructure): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
1
10
0
10
2
9
0
2
2
1
0
2
0
0
9,639
ray-project/ray
python/ray/_private/thirdparty/pynvml/pynvml.py
ray._private.thirdparty.pynvml.pynvml.c_nvmlVgpuLicenseInfo_t
class c_nvmlVgpuLicenseInfo_t(_PrintableStructure): _fields_ = [('isLicensed', c_uint8), ('licenseExpiry', c_nvmlVgpuLicenseExpiry_t), ('currentState', c_uint)]
class c_nvmlVgpuLicenseInfo_t(_PrintableStructure): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
1
5
0
5
2
4
0
2
2
1
0
2
0
0
9,640
ray-project/ray
python/ray/_private/thirdparty/pynvml/pynvml.py
ray._private.thirdparty.pynvml.pynvml.c_nvmlVgpuMetadata_t
class c_nvmlVgpuMetadata_t(_PrintableStructure): _fields_ = [('version', c_uint), ('revision', c_uint), ('guestInfoState', _nvmlVgpuGuestInfoState_t), ('guestDriverVersion', c_char * NVML_SYSTEM_DRIVER_VERSION_BUFFER_SIZE), ('hostDriverVersion', c_char * NVML_SYSTEM_DRIVER_VERSION_BUFFER_SIZE), ('reserved', c_uint ...
class c_nvmlVgpuMetadata_t(_PrintableStructure): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
12
0
12
2
11
0
2
2
1
0
1
0
0
9,641
ray-project/ray
python/ray/_private/thirdparty/pynvml/pynvml.py
ray._private.thirdparty.pynvml.pynvml.c_nvmlVgpuPgpuCompatibility_t
class c_nvmlVgpuPgpuCompatibility_t(Structure): _fields_ = [('vgpuVmCompatibility', _nvmlVgpuVmCompatibility_t), ('compatibilityLimitCode', _nvmlVgpuPgpuCompatibilityLimitCode_t)]
class c_nvmlVgpuPgpuCompatibility_t(Structure): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
4
0
4
2
3
0
2
2
1
0
1
0
0
9,642
ray-project/ray
python/ray/_private/thirdparty/pynvml/pynvml.py
ray._private.thirdparty.pynvml.pynvml.c_nvmlVgpuPgpuMetadata_t
class c_nvmlVgpuPgpuMetadata_t(_PrintableStructure): _fields_ = [('version', c_uint), ('revision', c_uint), ('hostDriverVersion', c_char * NVML_SYSTEM_DRIVER_VERSION_BUFFER_SIZE), ('pgpuVirtualizationCaps', c_uint), ('reserved', c_uint * 5), ('hostSupportedVgpuRange', c_nvmlVgpuVersion_t), ('opaqueDataSize', c_uint...
class c_nvmlVgpuPgpuMetadata_t(_PrintableStructure): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
10
0
10
2
9
0
2
2
1
0
1
0
0
9,643
ray-project/ray
python/ray/_private/thirdparty/pynvml/pynvml.py
ray._private.thirdparty.pynvml.pynvml.c_nvmlVgpuProcessUtilizationSample_t
class c_nvmlVgpuProcessUtilizationSample_t(_PrintableStructure): _fields_ = [('vgpuInstance', _nvmlVgpuInstance_t), ('pid', c_uint), ('processName', c_char * NVML_VGPU_NAME_BUFFER_SIZE), ('timeStamp', c_ulonglong), ('smUtil', c_uint), ('memUtil', c_uint), ('encUtil', c_uint), ('decUtil', c_uint)]
class c_nvmlVgpuProcessUtilizationSample_t(_PrintableStructure): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
1
11
0
11
2
10
0
2
2
1
0
2
0
0
9,644
ray-project/ray
python/ray/_private/thirdparty/pynvml/pynvml.py
ray._private.thirdparty.pynvml.pynvml.c_nvmlVgpuVersion_t
class c_nvmlVgpuVersion_t(Structure): _fields_ = [('minVersion', c_uint), ('maxVersion', c_uint)]
class c_nvmlVgpuVersion_t(Structure): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
4
0
4
2
3
0
2
2
1
0
1
0
0
9,645
ray-project/ray
python/ray/_private/thirdparty/pynvml/pynvml.py
ray._private.thirdparty.pynvml.pynvml.c_nvmlViolationTime_t
class c_nvmlViolationTime_t(_PrintableStructure): _fields_ = [('referenceTime', c_ulonglong), ('violationTime', c_ulonglong)]
class c_nvmlViolationTime_t(_PrintableStructure): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
1
5
0
5
2
4
0
2
2
1
0
2
0
0
9,646
ray-project/ray
python/ray/_private/thirdparty/pynvml/pynvml.py
ray._private.thirdparty.pynvml.pynvml.nvmlClkMonFaultInfo_t
class nvmlClkMonFaultInfo_t(Structure): _fields_ = [('clkApiDomain', c_uint), ('clkDomainFaultMask', c_uint)]
class nvmlClkMonFaultInfo_t(Structure): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
4
0
4
2
3
0
2
2
1
0
1
0
0
9,647
ray-project/ray
python/ray/_private/thirdparty/pynvml/pynvml.py
ray._private.thirdparty.pynvml.pynvml.nvmlClkMonStatus_t
class nvmlClkMonStatus_t(Structure): _fields_ = [('bGlobalStatus', c_uint), ('clkMonListSize', c_uint), ('clkMonList', nvmlClkMonFaultInfo_t * MAX_CLK_DOMAINS)]
class nvmlClkMonStatus_t(Structure): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
5
0
5
2
4
0
2
2
1
0
1
0
0
9,648
ray-project/ray
python/ray/_private/thirdparty/pynvml/pynvml.py
ray._private.thirdparty.pynvml.pynvml.nvmlFriendlyObject
class nvmlFriendlyObject(object): def __init__(self, dictionary): for x in dictionary: setattr(self, x, dictionary[x]) def __str__(self): return self.__dict__.__str__()
class nvmlFriendlyObject(object): def __init__(self, dictionary): pass def __str__(self): pass
3
0
3
0
3
0
2
0
1
0
0
0
2
0
2
2
6
0
6
4
3
0
6
4
3
2
1
1
3
9,649
ray-project/ray
python/ray/_private/thirdparty/pynvml/pynvml.py
ray._private.thirdparty.pynvml.pynvml.nvmlNvLinkUtilizationControl_t
class nvmlNvLinkUtilizationControl_t(_PrintableStructure): _fields_ = [('units', _nvmlNvLinkUtilizationCountUnits_t), ('pktfilter', _nvmlNvLinkUtilizationCountPktTypes_t)]
class nvmlNvLinkUtilizationControl_t(_PrintableStructure): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
1
5
0
5
2
4
0
2
2
1
0
2
0
0
9,650
ray-project/ray
python/ray/_private/thirdparty/pynvml/pynvml.py
ray._private.thirdparty.pynvml.pynvml.nvmlPciInfo_t
class nvmlPciInfo_t(_PrintableStructure): _fields_ = [('busIdLegacy', c_char * NVML_DEVICE_PCI_BUS_ID_BUFFER_V2_SIZE), ('domain', c_uint), ('bus', c_uint), ('device', c_uint), ('pciDeviceId', c_uint), ('pciSubSystemId', c_uint), ('busId', c_char * NVML_DEVICE_PCI_BUS_ID_BUFFER_SIZE)] _fmt_ = {'domain': '0x%08X'...
class nvmlPciInfo_t(_PrintableStructure): pass
1
0
0
0
0
0
0
0.24
1
0
0
0
0
0
0
1
22
1
17
3
16
4
3
3
2
0
2
0
0
9,651
ray-project/ray
python/ray/_private/thirdparty/pynvml/pynvml.py
ray._private.thirdparty.pynvml.pynvml.nvmlPciInfo_v2_t
class nvmlPciInfo_v2_t(_PrintableStructure): _fields_ = [('busId', c_char * NVML_DEVICE_PCI_BUS_ID_BUFFER_V2_SIZE), ('domain', c_uint), ('bus', c_uint), ('device', c_uint), ('pciDeviceId', c_uint), ('pciSubSystemId', c_uint), ('reserved0', c_uint), ('reserved1', c_uint), ('reserved2', c_uint), ('reserved3', c_uint)...
class nvmlPciInfo_v2_t(_PrintableStructure): pass
1
0
0
0
0
0
0
0.05
1
0
0
0
0
0
0
1
22
1
20
3
19
1
3
3
2
0
2
0
0
9,652
ray-project/ray
python/ray/_private/thirdparty/pynvml/pynvml.py
ray._private.thirdparty.pynvml.pynvml.struct_c_nvmlComputeInstance_t
class struct_c_nvmlComputeInstance_t(Structure): pass
class struct_c_nvmlComputeInstance_t(Structure): pass
1
0
0
0
0
0
0
0.5
1
0
0
0
0
0
0
0
2
0
2
1
1
1
2
1
1
0
1
0
0
9,653
ray-project/ray
python/ray/_private/thirdparty/pynvml/pynvml.py
ray._private.thirdparty.pynvml.pynvml.struct_c_nvmlDevice_t
class struct_c_nvmlDevice_t(Structure): pass
class struct_c_nvmlDevice_t(Structure): pass
1
0
0
0
0
0
0
0.5
1
0
0
0
0
0
0
0
2
0
2
1
1
1
2
1
1
0
1
0
0
9,654
ray-project/ray
python/ray/_private/thirdparty/pynvml/pynvml.py
ray._private.thirdparty.pynvml.pynvml.struct_c_nvmlEventSet_t
class struct_c_nvmlEventSet_t(Structure): pass
class struct_c_nvmlEventSet_t(Structure): pass
1
0
0
0
0
0
0
0.5
1
0
0
0
0
0
0
0
2
0
2
1
1
1
2
1
1
0
1
0
0
9,655
ray-project/ray
python/ray/_private/thirdparty/pynvml/pynvml.py
ray._private.thirdparty.pynvml.pynvml.struct_c_nvmlGpuInstance_t
class struct_c_nvmlGpuInstance_t(Structure): pass
class struct_c_nvmlGpuInstance_t(Structure): pass
1
0
0
0
0
0
0
0.5
1
0
0
0
0
0
0
0
2
0
2
1
1
1
2
1
1
0
1
0
0
9,656
ray-project/ray
python/ray/_private/thirdparty/pynvml/pynvml.py
ray._private.thirdparty.pynvml.pynvml.struct_c_nvmlUnit_t
class struct_c_nvmlUnit_t(Structure): pass
class struct_c_nvmlUnit_t(Structure): pass
1
0
0
0
0
0
0
0.5
1
0
0
0
0
0
0
0
2
0
2
1
1
1
2
1
1
0
1
0
0
9,657
ray-project/ray
python/ray/_private/thirdparty/tabulate/tabulate.py
ray._private.thirdparty.tabulate.tabulate.JupyterHTMLStr
class JupyterHTMLStr(str): """Wrap the string with a _repr_html_ method so that Jupyter displays the HTML table""" def _repr_html_(self): return self @property def str(self): """add a .str property so that the raw string is still accessible""" return self
class JupyterHTMLStr(str): '''Wrap the string with a _repr_html_ method so that Jupyter displays the HTML table''' def _repr_html_(self): pass @property def str(self): '''add a .str property so that the raw string is still accessible''' pass
4
2
3
0
2
1
1
0.5
1
0
0
0
2
0
2
68
11
2
6
4
2
3
5
3
2
1
2
0
2
9,658
ray-project/ray
python/ray/_private/thirdparty/tabulate/tabulate.py
ray._private.thirdparty.tabulate.tabulate._CustomTextWrap
import textwrap class _CustomTextWrap(textwrap.TextWrapper): """A custom implementation of CPython's textwrap.TextWrapper. This supports both wide characters (Korea, Japanese, Chinese) - including mixed string. For the most part, the `_handle_long_word` and `_wrap_chunks` functions were copy pasted ou...
class _CustomTextWrap(textwrap.TextWrapper): '''A custom implementation of CPython's textwrap.TextWrapper. This supports both wide characters (Korea, Japanese, Chinese) - including mixed string. For the most part, the `_handle_long_word` and `_wrap_chunks` functions were copy pasted out of the CPython...
7
5
36
4
22
11
6
0.58
1
2
0
0
4
2
5
14
198
25
111
22
104
64
84
21
78
18
1
6
30
9,659
ray-project/ray
python/ray/_private/utils.py
ray._private.utils.DeferSigint
import threading import signal import contextlib class DeferSigint(contextlib.AbstractContextManager): """Context manager that defers SIGINT signals until the context is left.""" def __init__(self): self.signal_received = False self.overridden_sigint_handler = None self.orig_signal = N...
class DeferSigint(contextlib.AbstractContextManager): '''Context manager that defers SIGINT signals until the context is left.''' def __init__(self): pass @classmethod def create_if_main_thread(cls) -> contextlib.AbstractContextManager: '''Creates a DeferSigint context manager if runni...
8
4
9
0
6
4
2
0.65
1
1
0
0
5
3
6
29
67
6
37
12
29
24
31
11
24
2
5
1
9
9,660
ray-project/ray
python/ray/_private/utils.py
ray._private.utils.Unbuffered
class Unbuffered(object): """There's no "built-in" solution to programatically disabling buffering of text files. Ray expects stdout/err to be text files, so creating an unbuffered binary file is unacceptable. See https://mail.python.org/pipermail/tutor/2003-November/026645.html. https://docs.p...
class Unbuffered(object): '''There's no "built-in" solution to programatically disabling buffering of text files. Ray expects stdout/err to be text files, so creating an unbuffered binary file is unacceptable. See https://mail.python.org/pipermail/tutor/2003-November/026645.html. https://docs.py...
5
1
3
0
3
0
1
0.64
1
0
0
0
4
1
4
4
24
6
11
6
6
7
11
6
6
1
1
0
4
9,661
ray-project/ray
python/ray/_private/worker.py
ray._private.worker.BaseContext
from ray.widgets.util import repr_with_fallback from typing import TYPE_CHECKING, Any, AnyStr, Callable, Dict, Generic, Iterator, List, Literal, Optional, Protocol, Sequence, Tuple, Type, TypeVar, Union, overload from abc import ABCMeta, abstractmethod from ray.widgets import Template class BaseContext(metaclass=ABCMe...
class BaseContext(metaclass=ABCMeta): ''' Base class for RayContext and ClientContext ''' @abstractmethod def disconnect(self): ''' If this context is for directly attaching to a cluster, disconnect will call ray.shutdown(). Otherwise, if the context is for a ray ...
13
3
10
1
7
2
1
0.24
1
3
1
2
7
0
7
27
92
15
62
20
48
15
34
16
24
2
3
1
9
9,662
ray-project/ray
python/ray/_private/worker.py
ray._private.worker.HasOptions
from typing import TYPE_CHECKING, Any, AnyStr, Callable, Dict, Generic, Iterator, List, Literal, Optional, Protocol, Sequence, Tuple, Type, TypeVar, Union, overload class HasOptions(Protocol): def options(self: RF, **task_options) -> RF: ...
class HasOptions(Protocol): def options(self: RF, **task_options) -> RF: pass
2
0
2
0
2
0
1
0
1
0
0
11
1
0
1
25
3
0
3
2
1
0
3
2
1
1
5
0
1
9,663
ray-project/ray
python/ray/_private/worker.py
ray._private.worker.RayContext
import ray.cloudpickle as pickle import ray.job_config import ray.actor import ray._private.worker import sys from collections.abc import Mapping import ray._private.state import ray._private.serialization as serialization import warnings import ray._private.services as services import ray._private.ray_constants as ray...
@dataclass class RayContext(BaseContext, Mapping): ''' Context manager for attached drivers. ''' def __init__(self, address_info: Dict[str, Optional[str]]): pass def __getitem__(self, key): pass def __len__(self): pass def __iter__(self): pass def __e...
9
1
5
0
5
0
1
0.11
2
3
0
0
7
1
7
48
49
8
37
9
29
4
30
9
22
2
6
1
10
9,664
ray-project/ray
python/ray/_private/worker.py
ray._private.worker.RemoteDecorator
from typing import TYPE_CHECKING, Any, AnyStr, Callable, Dict, Generic, Iterator, List, Literal, Optional, Protocol, Sequence, Tuple, Type, TypeVar, Union, overload class RemoteDecorator(Protocol): @overload def __call__(self, __function: Callable[[], R]) -> RemoteFunctionNoArgs[R]: ... @overload...
class RemoteDecorator(Protocol): @overload def __call__(self, __function: Callable[[], R]) -> RemoteFunctionNoArgs[R]: pass @overload def __call__(self, __function: Callable[[], R]) -> RemoteFunctionNoArgs[R]: pass @overload def __call__(self, __function: Callable[[], R]) -> Re...
25
0
3
0
3
0
1
0.04
1
12
11
0
12
0
12
36
66
11
53
41
12
2
25
13
12
1
5
0
12
9,665
ray-project/ray
python/ray/_private/worker.py
ray._private.worker.RemoteFunction0
from typing import TYPE_CHECKING, Any, AnyStr, Callable, Dict, Generic, Iterator, List, Literal, Optional, Protocol, Sequence, Tuple, Type, TypeVar, Union, overload class RemoteFunction0(HasOptions, Generic[R, T0]): def __init__(self, function: Callable[[T0], R]) -> None: pass def remote(self, __arg0...
class RemoteFunction0(HasOptions, Generic[R, T0]): def __init__(self, function: Callable[[T0], R]) -> None: pass def remote(self, __arg0: 'Union[T0, ObjectRef[T0]]') -> 'ObjectRef[R]': pass def bind(self, __arg0: 'Union[T0, DAGNode[T0]]') -> 'DAGNode[R]': pass
4
0
4
0
4
0
1
0
2
0
0
0
3
0
3
28
15
2
13
10
3
0
7
4
3
1
6
0
3
9,666
ray-project/ray
python/ray/_private/worker.py
ray._private.worker.RemoteFunction1
from typing import TYPE_CHECKING, Any, AnyStr, Callable, Dict, Generic, Iterator, List, Literal, Optional, Protocol, Sequence, Tuple, Type, TypeVar, Union, overload class RemoteFunction1(HasOptions, Generic[R, T0, T1]): def __init__(self, function: Callable[[T0, T1], R]) -> None: pass def remote(self...
class RemoteFunction1(HasOptions, Generic[R, T0, T1]): def __init__(self, function: Callable[[T0, T1], R]) -> None: pass def remote(self, __arg0: 'Union[T0, ObjectRef[T0]]', __arg1: 'Union[T1, ObjectRef[T1]]') -> 'ObjectRef[R]': pass def bind(self, __arg0: 'Union[T0, DAGNode[T0]]', __arg...
4
0
5
0
5
0
1
0
2
0
0
0
3
0
3
28
17
2
15
12
3
0
7
4
3
1
6
0
3
9,667
ray-project/ray
python/ray/_private/worker.py
ray._private.worker.RemoteFunction2
from typing import TYPE_CHECKING, Any, AnyStr, Callable, Dict, Generic, Iterator, List, Literal, Optional, Protocol, Sequence, Tuple, Type, TypeVar, Union, overload class RemoteFunction2(HasOptions, Generic[R, T0, T1, T2]): def __init__(self, function: Callable[[T0, T1, T2], R]) -> None: pass def rem...
class RemoteFunction2(HasOptions, Generic[R, T0, T1, T2]): def __init__(self, function: Callable[[T0, T1, T2], R]) -> None: pass def remote(self, __arg0: 'Union[T0, ObjectRef[T0]]', __arg1: 'Union[T1, ObjectRef[T1]]', __arg2: 'Union[T2, ObjectRef[T2]]') -> 'ObjectRef[R]': pass def bind(s...
4
0
5
0
5
0
1
0
2
0
0
0
3
0
3
28
19
2
17
14
3
0
7
4
3
1
6
0
3
9,668
ray-project/ray
python/ray/_private/worker.py
ray._private.worker.RemoteFunction3
from typing import TYPE_CHECKING, Any, AnyStr, Callable, Dict, Generic, Iterator, List, Literal, Optional, Protocol, Sequence, Tuple, Type, TypeVar, Union, overload class RemoteFunction3(HasOptions, Generic[R, T0, T1, T2, T3]): def __init__(self, function: Callable[[T0, T1, T2, T3], R]) -> None: pass ...
class RemoteFunction3(HasOptions, Generic[R, T0, T1, T2, T3]): def __init__(self, function: Callable[[T0, T1, T2, T3], R]) -> None: pass def remote(self, __arg0: 'Union[T0, ObjectRef[T0]]', __arg1: 'Union[T1, ObjectRef[T1]]', __arg2: 'Union[T2, ObjectRef[T2]]', __arg3: 'Union[T3, ObjectRef[T3]]') -> ...
4
0
6
0
6
0
1
0
2
0
0
0
3
0
3
28
21
2
19
16
3
0
7
4
3
1
6
0
3
9,669
ray-project/ray
python/ray/_private/worker.py
ray._private.worker.RemoteFunction4
from typing import TYPE_CHECKING, Any, AnyStr, Callable, Dict, Generic, Iterator, List, Literal, Optional, Protocol, Sequence, Tuple, Type, TypeVar, Union, overload class RemoteFunction4(HasOptions, Generic[R, T0, T1, T2, T3, T4]): def __init__(self, function: Callable[[T0, T1, T2, T3, T4], R]) -> None: p...
class RemoteFunction4(HasOptions, Generic[R, T0, T1, T2, T3, T4]): def __init__(self, function: Callable[[T0, T1, T2, T3, T4], R]) -> None: pass def remote(self, __arg0: 'Union[T0, ObjectRef[T0]]', __arg1: 'Union[T1, ObjectRef[T1]]', __arg2: 'Union[T2, ObjectRef[T2]]', __arg3: 'Union[T3, ObjectRef[T3...
4
0
7
0
7
0
1
0
2
0
0
0
3
0
3
28
23
2
21
18
3
0
7
4
3
1
6
0
3
9,670
ray-project/ray
python/ray/_private/worker.py
ray._private.worker.RemoteFunction5
from typing import TYPE_CHECKING, Any, AnyStr, Callable, Dict, Generic, Iterator, List, Literal, Optional, Protocol, Sequence, Tuple, Type, TypeVar, Union, overload class RemoteFunction5(HasOptions, Generic[R, T0, T1, T2, T3, T4, T5]): def __init__(self, function: Callable[[T0, T1, T2, T3, T4, T5], R]) -> None: ...
class RemoteFunction5(HasOptions, Generic[R, T0, T1, T2, T3, T4, T5]): def __init__(self, function: Callable[[T0, T1, T2, T3, T4, T5], R]) -> None: pass def remote(self, __arg0: 'Union[T0, ObjectRef[T0]]', __arg1: 'Union[T1, ObjectRef[T1]]', __arg2: 'Union[T2, ObjectRef[T2]]', __arg3: 'Union[T3, Obje...
4
0
7
0
7
0
1
0
2
0
0
0
3
0
3
28
25
2
23
20
3
0
7
4
3
1
6
0
3
9,671
ray-project/ray
python/ray/_private/worker.py
ray._private.worker.RemoteFunction6
from typing import TYPE_CHECKING, Any, AnyStr, Callable, Dict, Generic, Iterator, List, Literal, Optional, Protocol, Sequence, Tuple, Type, TypeVar, Union, overload class RemoteFunction6(HasOptions, Generic[R, T0, T1, T2, T3, T4, T5, T6]): def __init__(self, function: Callable[[T0, T1, T2, T3, T4, T5, T6], R]) ->...
class RemoteFunction6(HasOptions, Generic[R, T0, T1, T2, T3, T4, T5, T6]): def __init__(self, function: Callable[[T0, T1, T2, T3, T4, T5, T6], R]) -> None: pass def remote(self, __arg0: 'Union[T0, ObjectRef[T0]]', __arg1: 'Union[T1, ObjectRef[T1]]', __arg2: 'Union[T2, ObjectRef[T2]]', __arg3: 'Union[...
4
0
8
0
8
0
1
0
2
0
0
0
3
0
3
28
27
2
25
22
3
0
7
4
3
1
6
0
3
9,672
ray-project/ray
python/ray/_private/worker.py
ray._private.worker.RemoteFunction7
from typing import TYPE_CHECKING, Any, AnyStr, Callable, Dict, Generic, Iterator, List, Literal, Optional, Protocol, Sequence, Tuple, Type, TypeVar, Union, overload class RemoteFunction7(HasOptions, Generic[R, T0, T1, T2, T3, T4, T5, T6, T7]): def __init__(self, function: Callable[[T0, T1, T2, T3, T4, T5, T6, T7]...
class RemoteFunction7(HasOptions, Generic[R, T0, T1, T2, T3, T4, T5, T6, T7]): def __init__(self, function: Callable[[T0, T1, T2, T3, T4, T5, T6, T7], R]) -> None: pass def remote(self, __arg0: 'Union[T0, ObjectRef[T0]]', __arg1: 'Union[T1, ObjectRef[T1]]', __arg2: 'Union[T2, ObjectRef[T2]]', __arg3:...
4
0
9
0
9
0
1
0
2
0
0
0
3
0
3
28
29
2
27
24
3
0
7
4
3
1
6
0
3
9,673
ray-project/ray
python/ray/_private/worker.py
ray._private.worker.RemoteFunction8
from typing import TYPE_CHECKING, Any, AnyStr, Callable, Dict, Generic, Iterator, List, Literal, Optional, Protocol, Sequence, Tuple, Type, TypeVar, Union, overload class RemoteFunction8(HasOptions, Generic[R, T0, T1, T2, T3, T4, T5, T6, T7, T8]): def __init__(self, function: Callable[[T0, T1, T2, T3, T4, T5, T6,...
class RemoteFunction8(HasOptions, Generic[R, T0, T1, T2, T3, T4, T5, T6, T7, T8]): def __init__(self, function: Callable[[T0, T1, T2, T3, T4, T5, T6, T7, T8], R]) -> None: pass def remote(self, __arg0: 'Union[T0, ObjectRef[T0]]', __arg1: 'Union[T1, ObjectRef[T1]]', __arg2: 'Union[T2, ObjectRef[T2]]',...
4
0
10
0
10
0
1
0
2
0
0
0
3
0
3
28
33
2
31
28
3
0
7
4
3
1
6
0
3
9,674
ray-project/ray
python/ray/_private/worker.py
ray._private.worker.RemoteFunction9
from typing import TYPE_CHECKING, Any, AnyStr, Callable, Dict, Generic, Iterator, List, Literal, Optional, Protocol, Sequence, Tuple, Type, TypeVar, Union, overload class RemoteFunction9(HasOptions, Generic[R, T0, T1, T2, T3, T4, T5, T6, T7, T8, T9]): def __init__(self, function: Callable[[T0, T1, T2, T3, T4, T5,...
class RemoteFunction9(HasOptions, Generic[R, T0, T1, T2, T3, T4, T5, T6, T7, T8, T9]): def __init__(self, function: Callable[[T0, T1, T2, T3, T4, T5, T6, T7, T8, T9], R]) -> None: pass def remote(self, __arg0: 'Union[T0, ObjectRef[T0]]', __arg1: 'Union[T1, ObjectRef[T1]]', __arg2: 'Union[T2, ObjectRe...
4
0
11
0
11
0
1
0
2
0
0
0
3
0
3
28
35
2
33
30
3
0
7
4
3
1
6
0
3
9,675
ray-project/ray
python/ray/_private/worker.py
ray._private.worker.RemoteFunctionNoArgs
from typing import TYPE_CHECKING, Any, AnyStr, Callable, Dict, Generic, Iterator, List, Literal, Optional, Protocol, Sequence, Tuple, Type, TypeVar, Union, overload class RemoteFunctionNoArgs(HasOptions, Generic[R]): def __init__(self, function: Callable[[], R]) -> None: pass def remote(self) -> 'Obj...
class RemoteFunctionNoArgs(HasOptions, Generic[R]): def __init__(self, function: Callable[[], R]) -> None: pass def remote(self) -> 'ObjectRef[R]': pass def bind(self) -> 'DAGNode[R]': pass
4
0
3
0
3
0
1
0
2
0
0
0
3
0
3
28
13
2
11
8
3
0
7
4
3
1
6
0
3
9,676
ray-project/ray
python/ray/_private/worker.py
ray._private.worker.Worker
import ray._private.node from typing import TYPE_CHECKING, Any, AnyStr, Callable, Dict, Generic, Iterator, List, Literal, Optional, Protocol, Sequence, Tuple, Type, TypeVar, Union, overload import ray._private.state import ray._private.worker import ray._private.ray_constants as ray_constants import ray._private.serial...
class Worker: '''A class used to define the control flow of a worker process. Note: The methods in this class are considered unexposed to the user. The functions outside of this class are considered exposed. Attributes: node (ray._private.node.Node): The node this worker is attached...
72
27
12
1
7
4
2
0.51
0
18
5
0
44
19
44
44
609
82
348
138
266
179
238
101
191
13
0
4
92
9,677
ray-project/ray
python/ray/actor.py
ray.actor.ActorClass
from ray._private.auto_init_hook import wrap_auto_init from ray._private.async_compat import has_async_methods from ray import ActorClassID, Language, ObjectRef, cross_language from ray.util.tracing.tracing_helper import _inject_tracing_into_class, _tracing_actor_creation, _tracing_actor_method_invocation from ray._com...
@PublicAPI class ActorClass(Generic[T]): '''An actor class. This is a decorated class. It can be used to create actors. Attributes: __ray_metadata__: Contains metadata for the actor. ''' def __init__(cls, name, bases, attr): '''Prevents users from directly inheriting from an ActorCl...
21
8
61
5
33
23
5
0.71
0
13
7
0
6
0
8
8
660
65
350
74
318
247
174
58
158
38
0
3
57
9,678
ray-project/ray
python/ray/actor.py
ray.actor.ActorClassInheritanceException
from ray.util.annotations import DeveloperAPI, PublicAPI @PublicAPI class ActorClassInheritanceException(TypeError): pass
@PublicAPI class ActorClassInheritanceException(TypeError): pass
2
0
0
0
0
0
0
0
1
0
0
0
0
0
0
11
2
0
2
1
1
0
2
1
1
0
4
0
0
9,679
ray-project/ray
python/ray/actor.py
ray.actor.ActorHandle
from ray import ActorClassID, Language, ObjectRef, cross_language import ray._raylet from ray._private.custom_types import TensorTransportEnum import ray._private.ray_constants as ray_constants from ray._raylet import STREAMING_GENERATOR_RETURN, ObjectRefGenerator, PythonFunctionDescriptor, raise_sys_exit_with_custom_e...
@PublicAPI class ActorHandle(Generic[T]): '''A handle to an actor. The fields in this class are prefixed with _ray_ to hide them from the user and to avoid collision with actor method names. An ActorHandle can be created in three ways. First, by calling .remote() on an ActorClass. Second, by passing...
20
8
25
2
19
5
2
0.46
0
10
2
0
12
20
13
13
429
43
272
88
222
125
117
55
100
13
0
3
37
9,680
ray-project/ray
python/ray/actor.py
ray.actor.ActorMethod
from ray._private.auto_init_hook import wrap_auto_init from ray.util.tracing.tracing_helper import _inject_tracing_into_class, _tracing_actor_creation, _tracing_actor_method_invocation import inspect from ray import ActorClassID, Language, ObjectRef, cross_language import ray._raylet from ray._private.custom_types impo...
@PublicAPI class ActorMethod: '''A class used to invoke an actor method. Note: This class should not be instantiated directly. Instead, it should only be used as a return value from the `@ray.method` decorator. ''' def __init__(self, actor, method_name, num_returns: Optional[Union[int, Literal['str...
21
4
21
2
18
2
2
0.26
0
13
2
0
9
11
9
9
278
31
197
79
138
51
83
36
68
8
0
2
28
9,681
ray-project/ray
python/ray/actor.py
ray.actor._ActorClassMetadata
from ray import ActorClassID, Language, ObjectRef, cross_language from ray.util.scheduling_strategies import PlacementGroupSchedulingStrategy, SchedulingStrategyT class _ActorClassMetadata: """Metadata for an actor class. Attributes: language: The actor language, e.g. Python, Java. modified_cl...
class _ActorClassMetadata: '''Metadata for an actor class. Attributes: language: The actor language, e.g. Python, Java. modified_class: The original class that was decorated (with some additional methods added like __ray_terminate__). actor_creation_function_descriptor: The ...
2
1
39
0
39
0
1
0.7
0
1
1
0
1
19
1
1
70
2
40
38
21
28
21
21
19
1
0
0
1
9,682
ray-project/ray
python/ray/actor.py
ray.actor._ActorClassMethodMetadata
import inspect from ray._private.inspect_util import is_class_method, is_function_or_method, is_static_method from ray._private.custom_types import TensorTransportEnum import ray._common.signature as signature from typing import TYPE_CHECKING, Any, Callable, Dict, Generic, List, Literal, Optional, Tuple, TypeVar, Union...
class _ActorClassMethodMetadata(object): '''Metadata for all methods in an actor class. This data can be cached. Attributes: methods: The actor methods. decorators: Optional decorators that should be applied to the method invocation function before invoking the actor methods. These ...
6
1
30
4
20
6
4
0.57
1
3
0
0
1
0
3
3
116
18
63
14
57
36
46
12
42
10
1
2
12
9,683
ray-project/ray
python/ray/air/_internal/device_manager/cpu.py
ray.air._internal.device_manager.cpu.CPUTorchDeviceManager
from ray.air._internal.device_manager.torch_device_manager import TorchDeviceManager from contextlib import contextmanager import torch from typing import List class CPUTorchDeviceManager(TorchDeviceManager): """CPU device manager""" def is_available(self) -> bool(): return True def get_devices(s...
class CPUTorchDeviceManager(TorchDeviceManager): '''CPU device manager''' def is_available(self) -> bool(): pass def get_devices(self) -> List[torch.device]: '''Gets the correct torch device list configured for this process.''' pass def supports_stream(self) -> bool: ...
7
4
4
0
3
1
1
0.33
1
1
0
0
4
0
4
31
22
6
12
7
5
4
11
6
5
1
5
0
5
9,684
ray-project/ray
python/ray/air/_internal/device_manager/hpu.py
ray.air._internal.device_manager.hpu.HPUTorchDeviceManager
from contextlib import contextmanager from ray._private.accelerators.hpu import HPU_PACKAGE_AVAILABLE from ray.air._internal.device_manager.torch_device_manager import TorchDeviceManager from typing import List, Union import torch class HPUTorchDeviceManager(TorchDeviceManager): """HPU device manager""" @stat...
class HPUTorchDeviceManager(TorchDeviceManager): '''HPU device manager''' @staticmethod def register_custom_torch_dist_backend(): pass def is_available(self) -> bool(): pass def get_devices(self) -> List[torch.device]: pass def set_device(self, device: Union[torch.dev...
10
3
4
1
4
1
1
0.2
1
4
0
0
5
0
6
33
38
10
25
12
13
5
21
10
11
2
5
1
10
9,685
ray-project/ray
python/ray/air/_internal/device_manager/npu.py
ray.air._internal.device_manager.npu.NPUTorchDeviceManager
from typing import List, Union import torch from ray.air._internal.device_manager.torch_device_manager import TorchDeviceManager from ray._private.accelerators.npu import ASCEND_RT_VISIBLE_DEVICES_ENV_VAR import ray import os import ray._private.ray_constants as ray_constants class NPUTorchDeviceManager(TorchDeviceMan...
class NPUTorchDeviceManager(TorchDeviceManager): '''Ascend NPU device manager''' @staticmethod def register_custom_torch_dist_backend(): pass def is_available(self) -> bool: pass def get_devices(self) -> List[torch.device]: '''Gets the correct torch device list configured ...
10
6
9
1
7
1
2
0.22
1
5
0
0
7
0
8
35
80
15
54
18
43
12
36
16
26
6
5
4
15
9,686
ray-project/ray
python/ray/air/_internal/device_manager/nvidia_gpu.py
ray.air._internal.device_manager.nvidia_gpu.CUDATorchDeviceManager
from ray.air._internal.device_manager.torch_device_manager import TorchDeviceManager from typing import List, Union import ray import torch import os class CUDATorchDeviceManager(TorchDeviceManager): """CUDA device manager""" def is_available(self) -> bool(): return torch.cuda.is_available() def ...
class CUDATorchDeviceManager(TorchDeviceManager): '''CUDA device manager''' def is_available(self) -> bool(): pass def get_devices(self) -> List[torch.device]: '''Gets the correct torch device list configured for this process. Returns a list of torch CUDA devices allocated for the...
8
6
9
1
5
3
2
0.57
1
6
0
0
7
0
7
34
70
15
35
13
27
20
28
13
20
5
5
3
11
9,687
ray-project/ray
python/ray/air/_internal/device_manager/torch_device_manager.py
ray.air._internal.device_manager.torch_device_manager.TorchDeviceManager
from abc import ABC import torch from typing import List, Union class TorchDeviceManager(ABC): """This class contains the function needed for supporting an acclerator family in Ray AI Library. """ def is_available(self) -> bool: """Validate if device is available.""" ... def get_d...
class TorchDeviceManager(ABC): '''This class contains the function needed for supporting an acclerator family in Ray AI Library. ''' def is_available(self) -> bool: '''Validate if device is available.''' pass def get_devices(self) -> List[torch.device]: '''Gets the correct...
8
8
3
0
2
1
1
0.8
1
3
0
4
7
0
7
27
34
7
15
8
7
12
15
8
7
1
4
0
7
9,688
ray-project/ray
python/ray/air/_internal/filelock.py
ray.air._internal.filelock.TempFileLock
import ray from pathlib import Path import hashlib from filelock import FileLock import os class TempFileLock: """FileLock wrapper that uses temporary file locks. The temporary directory that these locks are saved to can be configured via the `RAY_TMPDIR` environment variable. Args: path: The...
class TempFileLock: '''FileLock wrapper that uses temporary file locks. The temporary directory that these locks are saved to can be configured via the `RAY_TMPDIR` environment variable. Args: path: The file path that this temporary file lock is used for. This will be used to genera...
5
1
5
0
4
0
1
0.56
0
2
0
0
4
5
4
4
35
7
18
11
13
10
16
11
11
1
0
0
4
9,689
ray-project/ray
python/ray/air/_internal/json.py
ray.air._internal.json.SafeFallbackEncoder
import numbers import numpy as np import json class SafeFallbackEncoder(json.JSONEncoder): def __init__(self, nan_str='null', **kwargs): super(SafeFallbackEncoder, self).__init__(**kwargs) self.nan_str = nan_str def default(self, value): try: if type(value).__module__ == n...
class SafeFallbackEncoder(json.JSONEncoder): def __init__(self, nan_str='null', **kwargs): pass def default(self, value): pass
3
0
12
3
9
1
4
0.05
1
9
0
0
2
1
2
6
25
6
19
4
16
1
19
4
16
7
2
2
8
9,690
ray-project/ray
python/ray/air/_internal/mlflow.py
ray.air._internal.mlflow._MLflowLoggerUtil
from ray._private.dict import flatten_dict from typing import TYPE_CHECKING, Dict, Optional from packaging import version from copy import deepcopy import os class _MLflowLoggerUtil: """Util class for setting up and logging to MLflow. Use this util for any library that needs MLflow logging/tracking logic ...
class _MLflowLoggerUtil: '''Util class for setting up and logging to MLflow. Use this util for any library that needs MLflow logging/tracking logic such as Ray Tune or Ray Train. ''' def __init__(self): pass def __deepcopy__(self, memo=None): pass def setup_mlflow(self, t...
13
11
26
3
15
8
3
0.54
0
5
0
1
12
2
12
12
326
52
178
53
143
96
108
37
89
9
0
2
35
9,691
ray-project/ray
python/ray/air/_internal/uri_utils.py
ray.air._internal.uri_utils.URI
import urllib.parse from pathlib import Path import os from typing import Union class URI: """Represents a URI, supporting path appending and retrieving parent URIs. Example Usage: >>> s3_uri = URI("s3://bucket/a?scheme=http&param=1") >>> s3_uri URI<s3://bucket/a?scheme=http&param=1> ...
class URI: '''Represents a URI, supporting path appending and retrieving parent URIs. Example Usage: >>> s3_uri = URI("s3://bucket/a?scheme=http&param=1") >>> s3_uri URI<s3://bucket/a?scheme=http&param=1> >>> str(s3_uri / "b" / "c") 's3://bucket/a/b/c?scheme=http&param=1...
16
2
5
0
3
1
1
0.88
0
3
0
0
9
2
10
10
91
16
40
21
22
35
30
14
19
2
0
1
12
9,692
ray-project/ray
python/ray/air/_internal/usage.py
ray.air._internal.usage.AirEntrypoint
from enum import Enum class AirEntrypoint(Enum): TUNER = 'Tuner.fit' TRAINER = 'Trainer.fit' TUNE_RUN = 'tune.run' TUNE_RUN_EXPERIMENTS = 'tune.run_experiments'
class AirEntrypoint(Enum): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
49
5
0
5
5
4
0
5
5
4
0
4
0
0
9,693
ray-project/ray
python/ray/air/_internal/util.py
ray.air._internal.util.RunnerThread
import threading from ray.air.constants import _ERROR_REPORT_TIMEOUT import queue class RunnerThread(threading.Thread): """Supervisor thread that runs your script.""" def __init__(self, *args, error_queue, **kwargs): threading.Thread.__init__(self, *args, **kwargs) self._error_queue = error_qu...
class RunnerThread(threading.Thread): '''Supervisor thread that runs your script.''' def __init__(self, *args, error_queue, **kwargs): pass def _propagate_exception(self, e: BaseException): pass def run(self): pass def join(self, timeout=None): pass
5
1
12
0
10
2
2
0.17
1
5
0
0
4
2
4
29
53
4
42
8
37
7
24
7
19
5
1
2
9
9,694
ray-project/ray
python/ray/air/_internal/util.py
ray.air._internal.util.StartTraceback
class StartTraceback(Exception): """These exceptions (and their tracebacks) can be skipped with `skip_exceptions`""" pass
class StartTraceback(Exception): '''These exceptions (and their tracebacks) can be skipped with `skip_exceptions`''' pass
1
1
0
0
0
0
0
0.5
1
0
0
1
0
0
0
10
4
1
2
1
1
1
2
1
1
0
3
0
0
9,695
ray-project/ray
python/ray/air/_internal/util.py
ray.air._internal.util.StartTracebackWithWorkerRank
class StartTracebackWithWorkerRank(StartTraceback): def __init__(self, worker_rank: int) -> None: super().__init__() self.worker_rank = worker_rank def __reduce__(self): return (self.__class__, (self.worker_rank,))
class StartTracebackWithWorkerRank(StartTraceback): def __init__(self, worker_rank: int) -> None: pass def __reduce__(self): pass
3
0
3
0
3
0
1
0
1
2
0
0
2
1
2
12
7
1
6
4
3
0
6
4
3
1
4
0
2
9,696
ray-project/ray
python/ray/air/config.py
ray.air.config.CheckpointConfig
from dataclasses import _MISSING_TYPE, dataclass, fields from ray._private.thirdparty.tabulate.tabulate import tabulate from ray.widgets import Template, make_table_html_repr from ray.util.annotations import PublicAPI, RayDeprecationWarning from typing import TYPE_CHECKING, Any, Callable, Dict, List, Mapping, Optional,...
@dataclass @PublicAPI(stability='stable') class CheckpointConfig: '''Configurable parameters for defining the checkpointing strategy. Default behavior is to persist all checkpoints to disk. If ``num_to_keep`` is set, the default retention policy is to keep the checkpoints with maximum timestamp, i.e. th...
8
2
22
2
20
1
4
0.51
0
4
1
0
4
0
4
4
145
14
87
17
81
44
39
16
34
6
0
1
14
9,697
ray-project/ray
python/ray/air/config.py
ray.air.config.FailureConfig
from dataclasses import _MISSING_TYPE, dataclass, fields from ray._private.thirdparty.tabulate.tabulate import tabulate from ray.widgets import Template, make_table_html_repr from typing import TYPE_CHECKING, Any, Callable, Dict, List, Mapping, Optional, Tuple, Union from ray.util.annotations import PublicAPI, RayDepre...
@dataclass @PublicAPI(stability='stable') class FailureConfig: '''Configuration related to failure handling of each training/tuning run. Args: max_failures: Tries to recover a run at least this many times. Will recover from the latest checkpoint if present. Setting to -1 will lea...
6
1
9
0
8
1
2
0.48
0
3
1
0
3
0
3
3
46
6
27
6
23
13
12
6
8
3
0
1
5
9,698
ray-project/ray
python/ray/air/config.py
ray.air.config.RunConfig
import pyarrow.fs from pathlib import Path from typing import TYPE_CHECKING, Any, Callable, Dict, List, Mapping, Optional, Tuple, Union from ray.util.annotations import PublicAPI, RayDeprecationWarning from ray._private.thirdparty.tabulate.tabulate import tabulate from dataclasses import _MISSING_TYPE, dataclass, field...
@dataclass @PublicAPI(stability='stable') class RunConfig: '''Runtime configuration for training and tuning runs. Upon resuming from a training or tuning run checkpoint, Ray Train/Tune will automatically apply the RunConfig from the previously checkpointed run. Args: name: Name of the trial ...
6
1
35
4
28
3
5
0.57
0
8
5
0
3
1
3
3
173
20
99
25
91
56
51
25
43
9
0
2
14
9,699
ray-project/ray
python/ray/air/config.py
ray.air.config.ScalingConfig
from dataclasses import _MISSING_TYPE, dataclass, fields from ray.util.annotations import PublicAPI, RayDeprecationWarning from collections import Counter, defaultdict from ray._common.utils import RESOURCE_CONSTRAINT_PREFIX from typing import TYPE_CHECKING, Any, Callable, Dict, List, Mapping, Optional, Tuple, Union fr...
@dataclass @PublicAPI(stability='stable') class ScalingConfig: '''Configuration for scaling training. For more details, see :ref:`train_scaling_config`. Args: trainer_resources: Resources to allocate for the training coordinator. The training coordinator launches the worker group and exe...
22
7
12
1
8
3
2
0.72
0
9
1
0
11
0
12
12
218
31
109
46
85
79
71
37
56
5
0
3
24