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
10,300
ray-project/ray
python/ray/experimental/channel/auto_transport_type.py
ray.experimental.channel.auto_transport_type.TypeHintResolver
from ray.experimental.channel.torch_tensor_type import TorchTensorType from typing import Dict, List, Optional, Tuple, Union class TypeHintResolver: """ This class is used to resolve `AutoChannelType` into an actual channel type (e.g., `TorchTensorType` with proper transport) based on node locations and ...
class TypeHintResolver: ''' This class is used to resolve `AutoChannelType` into an actual channel type (e.g., `TorchTensorType` with proper transport) based on node locations and GPU IDs of the readers and writers. ''' def __init__(self, actor_to_gpu_ids: Dict['ray.actor.ActorHandle', List[st...
6
6
24
2
12
9
2
0.84
0
5
2
0
5
1
5
5
130
16
62
27
42
52
30
13
24
4
0
1
11
10,301
ray-project/ray
python/ray/experimental/channel/cached_channel.py
ray.experimental.channel.cached_channel.CachedChannel
import uuid from ray.experimental.channel.common import ChannelInterface from typing import Any, Optional class CachedChannel(ChannelInterface): """ CachedChannel wraps an inner channel and caches the data read from it until `num_reads` reads have completed. If inner channel is None, the data is writte...
class CachedChannel(ChannelInterface): ''' CachedChannel wraps an inner channel and caches the data read from it until `num_reads` reads have completed. If inner channel is None, the data is written to serialization context and retrieved from there. This is useful when passing data within the same ...
9
1
10
1
7
3
2
0.58
1
5
1
0
8
3
8
14
105
15
57
24
40
33
42
19
30
2
1
1
14
10,302
ray-project/ray
python/ray/experimental/channel/common.py
ray.experimental.channel.common.AwaitableBackgroundReader
import concurrent from ray.util.annotations import DeveloperAPI, PublicAPI from typing import TYPE_CHECKING, Any, Callable, Dict, List, NamedTuple, Optional, Tuple, Union import sys import asyncio import ray.exceptions import ray @DeveloperAPI class AwaitableBackgroundReader(ReaderInterface): """ Asyncio-compa...
@DeveloperAPI class AwaitableBackgroundReader(ReaderInterface): ''' Asyncio-compatible channel reader. The reader is constructed with an async queue of futures whose values it will fulfill. It uses a threadpool to execute the blocking calls to read from the input channel(s). ''' def __init_...
7
1
13
1
11
1
2
0.22
1
6
2
0
5
4
5
12
77
11
54
23
43
12
42
19
35
7
1
4
12
10,303
ray-project/ray
python/ray/experimental/channel/common.py
ray.experimental.channel.common.AwaitableBackgroundWriter
import concurrent from typing import TYPE_CHECKING, Any, Callable, Dict, List, NamedTuple, Optional, Tuple, Union import asyncio from ray.util.annotations import DeveloperAPI, PublicAPI @DeveloperAPI class AwaitableBackgroundWriter(WriterInterface): def __init__(self, output_channels: List[ChannelInterface], outp...
@DeveloperAPI class AwaitableBackgroundWriter(WriterInterface): def __init__(self, output_channels: List[ChannelInterface], output_idxs: List[Optional[Union[int, str]]], is_input=False): pass def start(self): pass def _run(self, res): pass async def run(self): pass ...
8
0
9
0
8
0
3
0
1
10
1
0
6
3
6
11
57
6
51
22
39
0
36
17
29
7
1
3
15
10,304
ray-project/ray
python/ray/experimental/channel/common.py
ray.experimental.channel.common.ChannelContext
from ray.util.annotations import DeveloperAPI, PublicAPI from dataclasses import dataclass from ray.experimental.channel.serialization_context import _SerializationContext from ray.experimental.channel.accelerator_context import AcceleratorContext from typing import TYPE_CHECKING, Any, Callable, Dict, List, NamedTuple,...
@DeveloperAPI @dataclass class ChannelContext: def __init__(self): pass @staticmethod def get_current() -> 'ChannelContext': '''Get or create a singleton context. If the context has not yet been created in this process, it will be initialized with default settings. '...
11
2
10
2
6
2
2
0.31
0
3
0
0
4
1
5
5
61
15
36
18
23
11
33
15
23
3
0
2
10
10,305
ray-project/ray
python/ray/experimental/channel/common.py
ray.experimental.channel.common.ChannelInterface
import ray import ray.exceptions from typing import TYPE_CHECKING, Any, Callable, Dict, List, NamedTuple, Optional, Tuple, Union from ray.util.annotations import DeveloperAPI, PublicAPI @PublicAPI(stability='alpha') class ChannelInterface: """ Abstraction for a transport between a writer actor and some number ...
@PublicAPI(stability='alpha') class ChannelInterface: ''' Abstraction for a transport between a writer actor and some number of reader actors. ''' def __init__(self, writer: Optional[ray.actor.ActorHandle], readers: List[Optional[ray.actor.ActorHandle]], typ: Optional['ChannelOutputType']): ...
8
7
11
1
3
8
1
2.72
0
4
1
7
6
0
6
6
79
12
18
12
6
49
13
7
6
1
0
0
6
10,306
ray-project/ray
python/ray/experimental/channel/common.py
ray.experimental.channel.common.ChannelOutputType
from ray.util.annotations import DeveloperAPI, PublicAPI from ray.experimental.channel.communicator import Communicator from typing import TYPE_CHECKING, Any, Callable, Dict, List, NamedTuple, Optional, Tuple, Union @PublicAPI(stability='alpha') class ChannelOutputType: def register_custom_serializer(self) -> Non...
@PublicAPI(stability='alpha') class ChannelOutputType: def register_custom_serializer(self) -> None: ''' Register any custom serializers needed to pass data of this type. This method should be run on the reader(s) and writer of a channel, which are the driver and/or Ray actors. ...
7
3
9
0
3
6
1
1.81
0
4
1
3
5
0
5
5
51
6
16
11
5
29
11
6
5
1
0
0
5
10,307
ray-project/ray
python/ray/experimental/channel/common.py
ray.experimental.channel.common.CompiledDAGArgs
from typing import TYPE_CHECKING, Any, Callable, Dict, List, NamedTuple, Optional, Tuple, Union from ray.util.annotations import DeveloperAPI, PublicAPI @PublicAPI(stability='alpha') class CompiledDAGArgs(NamedTuple): args: Tuple[Any, ...] kwargs: Dict[str, Any]
@PublicAPI(stability='alpha') class CompiledDAGArgs(NamedTuple): pass
2
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
3
0
3
1
2
0
3
1
2
0
1
0
0
10,308
ray-project/ray
python/ray/experimental/channel/common.py
ray.experimental.channel.common.ReaderInterface
from ray.util.annotations import DeveloperAPI, PublicAPI import time from typing import TYPE_CHECKING, Any, Callable, Dict, List, NamedTuple, Optional, Tuple, Union @DeveloperAPI class ReaderInterface: def __init__(self, input_channels: List[ChannelInterface]): assert isinstance(input_channels, list) ...
@DeveloperAPI class ReaderInterface: def __init__(self, input_channels: List[ChannelInterface]): pass def get_num_reads(self) -> int: pass def start(self): pass def _read_list(self, timeout: Optional[float]=None) -> List[Any]: ''' Read a list of values from th...
9
2
10
1
5
4
2
0.77
0
6
1
2
7
4
7
7
80
11
39
22
26
30
32
17
24
3
0
2
11
10,309
ray-project/ray
python/ray/experimental/channel/common.py
ray.experimental.channel.common.SynchronousReader
from typing import TYPE_CHECKING, Any, Callable, Dict, List, NamedTuple, Optional, Tuple, Union import time from ray.util.annotations import DeveloperAPI, PublicAPI import ray.exceptions import ray @DeveloperAPI class SynchronousReader(ReaderInterface): def __init__(self, input_channels: List[ChannelInterface]): ...
@DeveloperAPI class SynchronousReader(ReaderInterface): def __init__(self, input_channels: List[ChannelInterface]): pass def start(self): pass def _read_list(self, timeout: Optional[float]=None) -> List[Any]: pass def release_channel_buffers(self, timeout: Optional[float]=Non...
6
0
20
2
14
5
4
0.33
1
9
2
0
4
1
4
11
82
9
55
22
46
18
46
18
40
9
1
4
14
10,310
ray-project/ray
python/ray/experimental/channel/common.py
ray.experimental.channel.common.SynchronousWriter
from ray.util.annotations import DeveloperAPI, PublicAPI from typing import TYPE_CHECKING, Any, Callable, Dict, List, NamedTuple, Optional, Tuple, Union @DeveloperAPI class SynchronousWriter(WriterInterface): def start(self): for channel in self._output_channels: channel.ensure_registered_as_w...
@DeveloperAPI class SynchronousWriter(WriterInterface): def start(self): pass def write(self, val: Any, timeout: Optional[float]=None) -> None: pass
4
0
14
1
12
1
5
0.08
1
8
0
0
2
0
2
7
30
3
25
8
22
2
19
7
16
8
1
3
10
10,311
ray-project/ray
python/ray/experimental/channel/common.py
ray.experimental.channel.common.WriterInterface
from typing import TYPE_CHECKING, Any, Callable, Dict, List, NamedTuple, Optional, Tuple, Union from ray.util.annotations import DeveloperAPI, PublicAPI @DeveloperAPI class WriterInterface: def __init__(self, output_channels: List[ChannelInterface], output_idxs: List[Optional[Union[int, str]]], is_input=False): ...
@DeveloperAPI class WriterInterface: def __init__(self, output_channels: List[ChannelInterface], output_idxs: List[Optional[Union[int, str]]], is_input=False): ''' Initialize the writer. Args: output_channels: The output channels to write to. output_idxs: The indices...
7
2
9
1
4
4
1
0.83
0
6
1
2
5
5
5
5
49
7
23
17
12
19
18
12
12
2
0
1
6
10,312
ray-project/ray
python/ray/experimental/channel/communicator.py
ray.experimental.channel.communicator.Communicator
from ray.experimental.util.types import ReduceOp from ray.util.annotations import DeveloperAPI from abc import ABC, abstractmethod from typing import TYPE_CHECKING, Callable, List, Optional, Tuple import ray @DeveloperAPI class Communicator(ABC): """ Communicator for a group of Compiled Graph actors on NVIDIA ...
@DeveloperAPI class Communicator(ABC): ''' Communicator for a group of Compiled Graph actors on NVIDIA GPU. The Compiled Graph execution leverages this internally to support communication between actors in the group. ''' @abstractmethod def initialize(self, rank: int) -> None: ''' ...
34
16
9
1
3
5
1
1.41
1
5
2
8
12
0
12
32
140
22
49
35
12
69
25
13
12
1
4
0
12
10,313
ray-project/ray
python/ray/experimental/channel/conftest.py
ray.experimental.channel.conftest.Barrier
import ray from ray.experimental.util.types import Device import asyncio from collections import defaultdict from unittest import mock import ray.experimental.channel as ray_channel import ray.dag @ray.remote(num_cpus=0) class Barrier: """ Barrier that blocks the given number of actors until all actors have ...
@ray.remote(num_cpus=0) class Barrier: ''' Barrier that blocks the given number of actors until all actors have reached the barrier. This is used to mock out blocking NCCL ops. ''' def __init__(self, num_actors=2): pass async def wait(self, idx: int, data=None): ''' Wai...
4
2
16
2
10
5
3
0.62
0
1
0
0
2
4
2
2
39
5
21
7
18
13
18
7
15
4
0
2
5
10,314
ray-project/ray
python/ray/experimental/channel/conftest.py
ray.experimental.channel.conftest.MockCudaStream
class MockCudaStream: def __init__(self): self.cuda_stream = 0 def synchronize(self): pass
class MockCudaStream: def __init__(self): pass def synchronize(self): pass
3
0
2
0
2
0
1
0
0
0
0
0
1
1
1
1
3
0
3
3
1
0
3
3
1
1
0
0
1
10,315
ray-project/ray
python/ray/experimental/channel/conftest.py
ray.experimental.channel.conftest.MockNcclGroup
import ray.dag from typing import Optional, Tuple import torch from ray.experimental.channel import nccl_group from ray.experimental.channel.communicator import TorchTensorAllocator import ray.experimental.channel as ray_channel import ray from collections import defaultdict class MockNcclGroup(nccl_group._NcclGroup):...
class MockNcclGroup(nccl_group._NcclGroup): ''' Mock the internal _NcclGroup to use a barrier actor instead of a NCCL group for communication. ''' def __init__(self, *args, **kwargs): pass def send(self, tensor: torch.Tensor, peer_rank: int): pass def recv(self, shape: Tu...
5
1
9
0
8
1
1
0.24
1
4
0
0
4
2
4
4
46
4
34
20
23
8
26
14
21
2
1
1
5
10,316
ray-project/ray
python/ray/experimental/channel/conftest.py
ray.experimental.channel.conftest.TracedChannel
import ray.experimental.channel as ray_channel class TracedChannel(ray_channel.shared_memory_channel.Channel): """ Patched Channel that records all write ops for testing. """ def __init__(self, *args, **kwargs): super().__init__(*args, **kwargs) self.ops = [] def write(self, *args...
class TracedChannel(ray_channel.shared_memory_channel.Channel): ''' Patched Channel that records all write ops for testing. ''' def __init__(self, *args, **kwargs): pass def write(self, *args, **kwargs): pass
3
1
4
1
3
0
1
0.43
1
1
0
0
2
1
2
2
13
3
7
4
4
3
7
4
4
1
1
0
2
10,317
ray-project/ray
python/ray/experimental/channel/cpu_communicator.py
ray.experimental.channel.cpu_communicator.CPUCommBarrier
import ray from collections import defaultdict from ray.experimental.channel.communicator import Communicator, ReduceOp, TorchTensorAllocator from typing import TYPE_CHECKING, Dict, List, Optional, Tuple import asyncio @ray.remote(num_cpus=0) class CPUCommBarrier: """ Barrier actor that blocks the given number...
@ray.remote(num_cpus=0) class CPUCommBarrier: ''' Barrier actor that blocks the given number of actors until all actors have reached the Barrier. p2p operations are not done here (completed via shared memory channel). ''' def __init__(self, num_actors: int): pass async def wait_col...
5
3
21
2
15
4
5
0.39
0
4
1
0
3
6
3
3
73
9
46
12
42
18
38
12
34
10
0
2
14
10,318
ray-project/ray
python/ray/experimental/channel/cpu_communicator.py
ray.experimental.channel.cpu_communicator.CPUCommunicator
from typing import TYPE_CHECKING, Dict, List, Optional, Tuple from ray.experimental.channel.communicator import Communicator, ReduceOp, TorchTensorAllocator from collections import defaultdict import ray class CPUCommunicator(Communicator): """ Uses a CPU-based communicator actor instead of an accelerator grou...
class CPUCommunicator(Communicator): ''' Uses a CPU-based communicator actor instead of an accelerator group like NCCL. ''' def __init__(self, world_size: int, actor_handles: List['ray.actor.ActorHandle']): '''We use the op index to synchronize the sender and receiver at the communicat...
18
4
6
0
5
1
1
0.3
1
9
3
0
13
5
13
45
95
16
61
37
36
18
44
26
30
2
5
1
15
10,319
ray-project/ray
python/ray/experimental/channel/intra_process_channel.py
ray.experimental.channel.intra_process_channel.IntraProcessChannel
from ray.util.annotations import PublicAPI from ray.experimental.channel.common import ChannelInterface import uuid from typing import Any, Optional from ray.experimental.channel import ChannelContext @PublicAPI(stability='alpha') class IntraProcessChannel(ChannelInterface): """ IntraProcessChannel is a channe...
@PublicAPI(stability='alpha') class IntraProcessChannel(ChannelInterface): ''' IntraProcessChannel is a channel for communication between two tasks in the same worker process. It writes data directly to the worker's _SerializationContext and reads data from the _SerializationContext to avoid the seriali...
10
1
5
0
4
1
1
0.55
1
5
1
0
8
2
8
14
61
10
33
18
20
18
26
14
17
2
1
1
9
10,320
ray-project/ray
python/ray/experimental/channel/nccl_group.py
ray.experimental.channel.nccl_group._NcclGroup
from ray.exceptions import RayChannelError from types import ModuleType from ray.experimental.channel.accelerator_context import AcceleratorContext import ray from ray.experimental.util.types import ReduceOp from ray.experimental.channel.communicator import Communicator, TorchTensorAllocator from typing import TYPE_CHE...
class _NcclGroup(Communicator): ''' Represents an actor's NCCL communicator. This is the default NCCL communicator to be used in Compiled Graph if a custom communicator is not provided. This class is not thread-safe. ''' def __init__(self, world_size: int, comm_id: tuple, rank: Optional[in...
21
8
21
2
12
7
2
0.63
1
8
3
0
13
10
13
45
298
44
156
54
117
98
88
33
70
4
5
2
26
10,321
ray-project/ray
python/ray/experimental/channel/serialization_context.py
ray.experimental.channel.serialization_context._SerializationContext
from ray.experimental.util.types import Device from typing import TYPE_CHECKING, Any, Dict, List, Set, Tuple, Union import warnings class _SerializationContext: def __init__(self): self._use_external_transport: bool = False self._out_of_band_tensors: List['torch.Tensor'] = [] self._deseria...
class _SerializationContext: def __init__(self): pass def set_target_device(self, device: Device) -> None: pass def set_data(self, channel_id: str, value: Any, num_readers: int) -> None: pass def has_data(self, channel_id: str) -> bool: pass def get_data(self, c...
16
2
13
1
8
4
2
0.52
0
8
1
0
11
5
11
11
163
26
90
37
66
47
71
31
53
3
0
3
18
10,322
ray-project/ray
python/ray/experimental/channel/shared_memory_channel.py
ray.experimental.channel.shared_memory_channel.BufferedSharedMemoryChannel
import ray from typing import Any, Dict, List, Optional, Set, Tuple, Union from ray.util.annotations import DeveloperAPI, PublicAPI from ray.experimental.channel.common import ChannelInterface, ChannelOutputType import ray.exceptions @DeveloperAPI class BufferedSharedMemoryChannel(ChannelInterface): """A channel t...
@DeveloperAPI class BufferedSharedMemoryChannel(ChannelInterface): '''A channel that can be read and written by Ray processes. It creates `num_shm_buffers` number of buffers and allows buffered read and write APIs. I.e., read and write APIs are non-blocking as long as it can write to next buffer or read...
13
6
9
0
5
4
1
1.02
1
8
3
0
9
4
9
15
111
14
48
27
30
49
37
18
27
2
1
1
12
10,323
ray-project/ray
python/ray/experimental/channel/shared_memory_channel.py
ray.experimental.channel.shared_memory_channel.Channel
import time import io from ray.util.annotations import DeveloperAPI, PublicAPI from ray.experimental.channel.utils import get_self_actor from ray.experimental.channel.common import ChannelInterface, ChannelOutputType import ray from ray._raylet import SerializedObject from typing import Any, Dict, List, Optional, Set, ...
@PublicAPI(stability='alpha') class Channel(ChannelInterface): ''' A wrapper type for ray.ObjectRef. Currently supports ray.get but not ray.wait. ''' def __init__(self, writer: Optional[ray.actor.ActorHandle], reader_and_node_list: List[Tuple['ray.actor.ActorHandle', str]], typ: Optional[Union[int,...
18
3
25
2
19
4
3
0.23
1
11
3
0
12
12
14
20
380
44
273
83
232
64
150
56
135
10
1
3
46
10,324
ray-project/ray
python/ray/experimental/channel/shared_memory_channel.py
ray.experimental.channel.shared_memory_channel.CompositeChannel
from ray.experimental.channel.intra_process_channel import IntraProcessChannel import ray.exceptions from typing import Any, Dict, List, Optional, Set, Tuple, Union from ray.experimental.channel import utils from ray.experimental.channel.common import ChannelInterface, ChannelOutputType import ray from ray.util.annotat...
@PublicAPI(stability='alpha') class CompositeChannel(ChannelInterface): ''' Can be used to send data to different readers via different channels. For example, if the reader is in the same worker process as the writer, the data can be sent via IntraProcessChannel. If the reader is in a different work...
13
1
11
0
9
2
2
0.31
1
10
4
0
11
8
11
17
149
15
102
46
80
32
70
33
58
7
1
2
24
10,325
ray-project/ray
python/ray/experimental/channel/shared_memory_channel.py
ray.experimental.channel.shared_memory_channel.SharedMemoryType
from ray.experimental.channel.common import ChannelInterface, ChannelOutputType from typing import Any, Dict, List, Optional, Set, Tuple, Union class SharedMemoryType(ChannelOutputType): def __init__(self, *, buffer_size_bytes: Optional[int]=None, num_shm_buffers: Optional[int]=None): """ Args: ...
class SharedMemoryType(ChannelOutputType): def __init__(self, *, buffer_size_bytes: Optional[int]=None, num_shm_buffers: Optional[int]=None): ''' Args: buffer_size_bytes: The initial buffer size in bytes for messages that can be passed between tasks in the DAG. The buff...
3
2
28
3
14
12
2
0.82
1
5
2
0
2
2
2
7
57
6
28
17
14
23
13
7
9
3
1
1
4
10,326
ray-project/ray
python/ray/experimental/channel/shared_memory_channel.py
ray.experimental.channel.shared_memory_channel._ResizeChannel
from typing import Any, Dict, List, Optional, Set, Tuple, Union class _ResizeChannel: """ When a channel must be resized, the channel backing store must be resized on both the writer and the reader nodes. The writer first resizes its own backing store. The writer then uses an instance of this class as ...
class _ResizeChannel: ''' When a channel must be resized, the channel backing store must be resized on both the writer and the reader nodes. The writer first resizes its own backing store. The writer then uses an instance of this class as a sentinel value to tell the reader to resize its own backin...
2
2
9
0
5
4
1
1.67
0
1
0
0
1
1
1
1
17
1
6
6
1
10
3
3
1
1
0
0
1
10,327
ray-project/ray
python/ray/experimental/channel/torch_tensor_type.py
ray.experimental.channel.torch_tensor_type.TorchTensorType
from ray.experimental.util.types import Device from ray.experimental.channel.shared_memory_channel import SharedMemoryType from ray.experimental.channel import ChannelContext, ChannelOutputType from ray.util.annotations import PublicAPI from typing import TYPE_CHECKING, List, Optional, Tuple, Union from ray.experimenta...
@PublicAPI(stability='alpha') class TorchTensorType(ChannelOutputType): def __init__(self, transport: Optional[Union[str, Communicator]]=AUTO, device: Device=Device.DEFAULT, _static_shape: bool=False, _direct_return: Optional[bool]=False): ''' A type hint that can be used to annotate DAG nodes that...
19
3
13
1
8
4
1
0.45
1
10
4
0
10
5
10
15
161
25
94
44
62
42
53
27
38
5
1
1
17
10,328
ray-project/ray
python/ray/experimental/collective/conftest.py
ray.experimental.collective.conftest.AbstractNcclGroup
import ray from typing import Dict, FrozenSet, List, Optional, Set, Tuple, Type from ray.experimental.channel.communicator import Communicator, ReduceOp, TorchTensorAllocator class AbstractNcclGroup(Communicator): """ A dummy NCCL group for testing. """ def __init__(self, actor_handles: List[ray.actor...
class AbstractNcclGroup(Communicator): ''' A dummy NCCL group for testing. ''' def __init__(self, actor_handles: List[ray.actor.ActorHandle]): pass def initialize(self, rank: int) -> None: pass def get_rank(self, actor: ray.actor.ActorHandle) -> int: pass def get...
20
1
3
0
3
0
1
0.07
1
5
2
0
13
2
13
45
59
14
42
30
14
3
29
17
14
1
5
0
13
10,329
ray-project/ray
python/ray/experimental/collective/conftest.py
ray.experimental.collective.conftest.CPUTorchTensorWorker
import torch import ray from typing import Dict, FrozenSet, List, Optional, Set, Tuple, Type @ray.remote class CPUTorchTensorWorker: def __init__(self): self.device = 'cpu' def return_tensor(self, size: int, dtype: Optional[torch.dtype]=None) -> torch.Tensor: return torch.ones(size, dtype=dty...
@ray.remote class CPUTorchTensorWorker: def __init__(self): pass def return_tensor(self, size: int, dtype: Optional[torch.dtype]=None) -> torch.Tensor: pass def recv(self, tensor: torch.Tensor) -> Tuple[int, int]: pass def recv_tensors(self, *tensors) -> Tuple[torch.Tensor, ....
6
0
2
0
2
0
1
0
0
2
0
0
3
1
3
3
10
2
8
5
4
0
8
5
4
1
0
0
3
10,330
ray-project/ray
python/ray/experimental/collective/conftest.py
ray.experimental.collective.conftest.MockNcclGroupSet
from typing import Dict, FrozenSet, List, Optional, Set, Tuple, Type from ray.experimental.channel.communicator import Communicator, ReduceOp, TorchTensorAllocator import uuid import ray from ray.experimental.channel.common import ChannelContext class MockNcclGroupSet: def __init__(self): self.ids_to_acto...
class MockNcclGroupSet: def __init__(self): pass def __call__(self, actors: List['ray.actor.ActorHandle'], custom_nccl_group: Optional[Communicator]=None, use_communication_streams: bool=False, accelerator_module_name: Optional[str]=None, accelerator_communicator_cls: Optional[Type[Communicator]]=Non...
5
0
16
1
15
1
2
0.03
0
9
3
0
4
1
4
4
69
8
59
20
49
2
32
15
27
3
0
1
9
10,331
ray-project/ray
python/ray/experimental/compiled_dag_ref.py
ray.experimental.compiled_dag_ref.CompiledDAGFuture
from ray.util.annotations import PublicAPI from typing import Any, List, Optional @PublicAPI(stability='alpha') class CompiledDAGFuture: """ A reference to a compiled DAG execution result, when executed with asyncio. This differs from CompiledDAGRef in that `await` must be called on the future to get t...
@PublicAPI(stability='alpha') class CompiledDAGFuture: ''' A reference to a compiled DAG execution result, when executed with asyncio. This differs from CompiledDAGRef in that `await` must be called on the future to get the result, instead of `ray.get()`. This resembles async usage of ObjectRefs. Fo...
9
1
8
1
7
1
1
0.38
0
2
0
0
6
4
6
6
65
10
40
20
27
15
25
14
18
3
0
1
8
10,332
ray-project/ray
python/ray/experimental/compiled_dag_ref.py
ray.experimental.compiled_dag_ref.CompiledDAGRef
from typing import Any, List, Optional from ray.util.annotations import PublicAPI import ray from ray.exceptions import GetTimeoutError, RayChannelError, RayChannelTimeoutError, RayTaskError @PublicAPI(stability='alpha') class CompiledDAGRef: """ A reference to a compiled DAG execution result. This is a s...
@PublicAPI(stability='alpha') class CompiledDAGRef: ''' A reference to a compiled DAG execution result. This is a subclass of ObjectRef and resembles ObjectRef. For example, similar to ObjectRef, ray.get() can be called on it to retrieve the result. However, there are several major differences: ...
9
2
15
0
10
5
2
0.62
0
8
3
0
7
5
7
7
123
11
69
23
56
43
45
15
37
7
0
2
16
10,333
ray-project/ray
python/ray/experimental/job/example_job/demo_script.py
ray.experimental.job.example_job.demo_script.StepActor
import ray import ray.experimental.internal_kv as ray_kv import time @ray.remote class StepActor: def __init__(self, interval_s=1, total_steps=3): self.interval_s = interval_s self.stopped = False self.current_step = 1 self.total_steps = total_steps worker = ray._private.wo...
@ray.remote class StepActor: def __init__(self, interval_s=1, total_steps=3): pass def run(self): pass def get_step(self): pass def stop(self): pass
6
0
9
1
8
0
2
0
0
0
0
0
4
4
4
4
39
6
33
13
28
0
27
13
22
3
0
2
6
10,334
ray-project/ray
python/ray/experimental/multiprocessing/pool.py
ray.experimental.multiprocessing.pool.Pool
from ray.util import multiprocessing class Pool(multiprocessing.Pool): pass
class Pool(multiprocessing.Pool): pass
1
0
0
0
0
0
0
0.5
1
0
0
0
0
0
0
27
2
0
2
1
1
1
2
1
1
0
1
0
0
10,335
ray-project/ray
python/ray/experimental/shuffle.py
ray.experimental.shuffle.ObjectStoreWriter
from ray import ObjectRef from typing import Any, Callable, Iterable, List, Tuple, Union import ray class ObjectStoreWriter: """This class is used to stream shuffle map outputs to the object store. It can be subclassed to optimize writing (e.g., batching together small records into larger objects). This w...
class ObjectStoreWriter: '''This class is used to stream shuffle map outputs to the object store. It can be subclassed to optimize writing (e.g., batching together small records into larger objects). This will be performance critical if your input records are small (the example shuffle uses very large ...
4
3
4
0
2
2
1
1.57
0
0
0
1
3
1
3
3
23
5
7
5
3
11
7
5
3
1
0
0
3
10,336
ray-project/ray
python/ray/experimental/shuffle.py
ray.experimental.shuffle.ObjectStoreWriterNonStreaming
from typing import Any, Callable, Iterable, List, Tuple, Union class ObjectStoreWriterNonStreaming(ObjectStoreWriter): def __init__(self): self.results = [] def add(self, item: InType) -> None: self.results.append(item) def finish(self) -> List[Any]: return self.results
class ObjectStoreWriterNonStreaming(ObjectStoreWriter): def __init__(self): pass def add(self, item: InType) -> None: pass def finish(self) -> List[Any]: pass
4
0
2
0
2
0
1
0
1
1
0
0
3
1
3
6
9
2
7
5
3
0
7
5
3
1
1
0
3
10,337
ray-project/ray
python/ray/experimental/shuffle.py
ray.experimental.shuffle._StatusTracker
import ray @ray.remote class _StatusTracker: def __init__(self): self.num_map = 0 self.num_reduce = 0 self.map_refs = [] self.reduce_refs = [] def register_objectrefs(self, map_refs, reduce_refs): self.map_refs = map_refs self.reduce_refs = reduce_refs def...
@ray.remote class _StatusTracker: def __init__(self): pass def register_objectrefs(self, map_refs, reduce_refs): pass def get_progress(self): pass
5
0
9
0
9
0
2
0
0
0
0
0
3
4
3
3
29
2
27
9
23
0
16
9
12
3
0
1
5
10,338
ray-project/ray
python/ray/experimental/tqdm_ray.py
ray.experimental.tqdm_ray._Bar
class _Bar: """Manages a single virtual progress bar on the driver. The actual position of individual bars is calculated as (pos_offset + position), where `pos_offset` is the position offset determined by the BarManager. """ def __init__(self, state: ProgressBarState, pos_offset: int): """...
class _Bar: '''Manages a single virtual progress bar on the driver. The actual position of individual bars is calculated as (pos_offset + position), where `pos_offset` is the position offset determined by the BarManager. ''' def __init__(self, state: ProgressBarState, pos_offset: int): '''I...
5
5
10
0
8
2
2
0.36
0
3
0
0
4
3
4
4
51
6
33
9
28
12
26
9
21
4
0
1
9
10,339
ray-project/ray
python/ray/experimental/tqdm_ray.py
ray.experimental.tqdm_ray._BarGroup
from typing import Any, Dict, Iterable, Optional class _BarGroup: """Manages a group of virtual progress bar produced by a single worker. All the progress bars in the group have the same `pos_offset` determined by the BarManager for the process. """ def __init__(self, ip, pid, pos_offset): ...
class _BarGroup: '''Manages a group of virtual progress bar produced by a single worker. All the progress bars in the group have the same `pos_offset` determined by the BarManager for the process. ''' def __init__(self, ip, pid, pos_offset): pass def has_bar(self, bar_uuid) -> bool: ...
10
9
5
0
4
1
2
0.41
0
4
1
0
9
4
9
9
58
10
34
19
24
14
34
19
24
3
0
2
14
10,340
ray-project/ray
python/ray/experimental/tqdm_ray.py
ray.experimental.tqdm_ray._BarManager
import ray import threading import os from ray.util.debug import log_once import colorama class _BarManager: """Central tqdm manager run on the driver. This class holds a collection of BarGroups and updates their `pos_offset` as needed to ensure individual progress bars do not collide in position, kind of...
class _BarManager: '''Central tqdm manager run on the driver. This class holds a collection of BarGroups and updates their `pos_offset` as needed to ensure individual progress bars do not collide in position, kind of like a virtual memory manager. ''' def __init__(self): pass def ...
8
4
13
0
11
2
3
0.24
0
1
1
0
7
7
7
7
105
11
76
24
67
18
60
24
51
9
0
3
21
10,341
ray-project/ray
python/ray/experimental/tqdm_ray.py
ray.experimental.tqdm_ray.tqdm
import time import copy import ray import os import uuid import json from typing import Any, Dict, Iterable, Optional class tqdm: """Experimental: Ray distributed tqdm implementation. This class lets you use tqdm from any Ray remote task or actor, and have the progress centrally reported from the driver. ...
class tqdm: '''Experimental: Ray distributed tqdm implementation. This class lets you use tqdm from any Ray remote task or actor, and have the progress centrally reported from the driver. This avoids issues with overlapping / conflicting progress bars, as the driver centrally manages tqdm positions. ...
13
5
8
0
8
1
2
0.16
0
6
0
0
10
12
10
10
107
15
79
37
57
13
53
27
41
4
0
2
18
10,342
ray-project/ray
python/ray/experimental/util/types.py
ray.experimental.util.types.ReduceOp
from enum import Enum from ray.util.annotations import PublicAPI @PublicAPI class ReduceOp(Enum): SUM = 0 PRODUCT = 1 MAX = 2 MIN = 3 AVG = 4
@PublicAPI class ReduceOp(Enum): pass
2
0
2
0
2
0
1
0
1
0
0
0
1
0
1
50
9
1
8
7
6
0
8
7
6
1
5
0
1
10,343
ray-project/ray
python/ray/experimental/util/types.py
ray.experimental.util.types._CollectiveOp
class _CollectiveOp: pass
class _CollectiveOp: pass
1
0
0
0
0
0
0
0
1
0
0
1
0
0
0
49
2
0
2
1
1
0
2
1
1
0
4
0
0
10,344
ray-project/ray
python/ray/job_config.py
ray.job_config.JobConfig
from ray.util.annotations import PublicAPI from typing import TYPE_CHECKING, Any, Dict, List, Optional, Union import ray.cloudpickle as pickle from ray._private.ray_logging.logging_config import LoggingConfig import uuid @PublicAPI class JobConfig: """A class used to store the configurations of a job. Example...
@PublicAPI class JobConfig: '''A class used to store the configurations of a job. Examples: .. testcode:: :hide: import ray ray.shutdown() .. testcode:: import ray from ray.job_config import JobConfig ray.init(job_config=Job...
16
11
15
2
8
5
2
0.81
0
10
2
0
12
10
13
13
237
42
108
49
72
87
67
31
49
6
0
2
24
10,345
ray-project/ray
python/ray/remote_function.py
ray.remote_function.RemoteFunction
import inspect import os from ray.util.annotations import DeveloperAPI, PublicAPI from threading import Lock from ray._private.client_mode_hook import client_mode_convert_function, client_mode_should_convert from ray._common import ray_option_utils from ray._raylet import STREAMING_GENERATOR_RETURN, ObjectRefGenerator,...
@PublicAPI class RemoteFunction: '''A remote function. This is a decorated function. It can be used to spawn tasks. Attributes: _language: The target language. _function: The original function. _function_descriptor: The function descriptor. This is not defined until the r...
19
5
44
4
28
12
4
0.69
0
9
3
0
7
16
7
7
475
49
253
72
221
174
142
56
127
21
0
2
45
10,346
ray-project/ray
python/ray/runtime_context.py
ray.runtime_context.RuntimeContext
from ray.runtime_env import RuntimeEnv from typing import Any, Dict, List, Optional from ray.util.annotations import Deprecated, PublicAPI import ray._private.worker from ray._private.utils import parse_pg_formatted_resources_to_original from ray._raylet import TaskID @PublicAPI class RuntimeContext(object): """A ...
@PublicAPI class RuntimeContext(object): '''A class used for getting runtime context.''' def __init__(self, worker): pass @Deprecated(message='Use get_xxx_id() methods to get relevant ids instead', warning=True) def get(self) -> Dict[str, Any]: '''Get a dictionary of the current context...
48
26
17
3
6
9
2
1.36
1
3
0
0
27
1
27
27
519
101
177
67
129
241
113
50
85
4
1
2
43
10,347
ray-project/ray
python/ray/runtime_env/runtime_env.py
ray.runtime_env.runtime_env.RuntimeEnv
from typing import Any, Callable, Dict, List, Optional, Set, Tuple, Union from ray.core.generated.runtime_environment_pb2 import RuntimeEnvConfig as ProtoRuntimeEnvConfig from ray._private.runtime_env.plugin_schema_manager import RuntimeEnvPluginSchemaManager from ray._private.thirdparty.dacite import from_dict from ra...
null
40
2
8
0
7
1
3
0.46
1
9
1
0
35
0
36
63
466
72
271
69
215
126
193
50
156
28
2
2
90
10,348
ray-project/ray
python/ray/runtime_env/runtime_env.py
ray.runtime_env.runtime_env.RuntimeEnvConfig
from ray.util.annotations import PublicAPI from ray._private.ray_constants import DEFAULT_RUNTIME_ENV_TIMEOUT_SECONDS from ray.core.generated.runtime_environment_pb2 import RuntimeEnvConfig as ProtoRuntimeEnvConfig from copy import deepcopy from typing import Any, Callable, Dict, List, Optional, Set, Tuple, Union @Pub...
@PublicAPI(stability='stable') class RuntimeEnvConfig(dict): '''Used to specify configuration options for a runtime environment. The config is not included when calculating the runtime_env hash, which means that two runtime_envs with the same options but different configs are considered the same for cac...
11
1
14
1
13
1
3
0.22
1
9
0
0
3
0
6
33
119
13
87
25
70
19
48
15
41
8
2
3
20
10,349
ray-project/ray
python/ray/serve/_private/application_state.py
ray.serve._private.application_state.ApplicationState
from ray.serve._private.common import DeploymentID, DeploymentStatus, DeploymentStatusInfo, DeploymentStatusTrigger, EndpointInfo, TargetCapacityDirection from ray.serve.exceptions import RayServeException from ray.serve._private.usage import ServeUsageTag from ray.serve._private.constants import RAY_SERVE_ENABLE_TASK_...
class ApplicationState: '''Manage single application states with all operations''' def __init__(self, name: str, deployment_state_manager: DeploymentStateManager, endpoint_state: EndpointState, logging_config: LoggingConfig): ''' Args: name: Application name. deployment...
37
21
21
2
14
5
2
0.37
0
23
15
0
29
13
29
29
661
77
427
111
356
157
192
70
162
8
0
3
68
10,350
ray-project/ray
python/ray/serve/_private/application_state.py
ray.serve._private.application_state.ApplicationStateManager
from ray.serve.generated.serve_pb2 import ApplicationStatus as ApplicationStatusProto, ApplicationStatusInfo as ApplicationStatusInfoProto, DeploymentLanguage, DeploymentStatusInfoList as DeploymentStatusInfoListProto, StatusOverview as StatusOverviewProto from ray.serve.schema import APIType, ApplicationStatus, Deploy...
class ApplicationStateManager: def __init__(self, deployment_state_manager: DeploymentStateManager, endpoint_state: EndpointState, kv_store: KVStoreBase, logging_config: LoggingConfig): pass def _recover_from_checkpoint(self): pass def delete_app(self, name: str) -> None: '''Dele...
21
10
12
1
9
2
2
0.17
0
16
12
0
19
5
19
19
239
40
170
59
135
29
99
43
79
5
0
2
41
10,351
ray-project/ray
python/ray/serve/_private/application_state.py
ray.serve._private.application_state.ApplicationStatusInfo
from ray.serve.generated.serve_pb2 import ApplicationStatus as ApplicationStatusProto, ApplicationStatusInfo as ApplicationStatusInfoProto, DeploymentLanguage, DeploymentStatusInfoList as DeploymentStatusInfoListProto, StatusOverview as StatusOverviewProto import json from dataclasses import asdict, dataclass, field fr...
@dataclass(eq=True) class ApplicationStatusInfo: def debug_string(self): pass def to_proto(self): pass @classmethod def from_proto(cls, proto: ApplicationStatusInfoProto): pass
6
0
5
0
5
0
1
0
0
0
0
0
2
0
3
3
23
3
20
8
15
0
11
7
7
1
0
0
3
10,352
ray-project/ray
python/ray/serve/_private/application_state.py
ray.serve._private.application_state.ApplicationTargetState
from dataclasses import asdict, dataclass, field from ray.serve._private.deployment_info import DeploymentInfo from typing import Dict, List, Optional, Tuple from ray.serve._private.common import DeploymentID, DeploymentStatus, DeploymentStatusInfo, DeploymentStatusTrigger, EndpointInfo, TargetCapacityDirection from ra...
@dataclass class ApplicationTargetState: '''Defines target state of application. Target state can become inconsistent if the code version doesn't match that of the config. When that happens, a new build app task should be kicked off to reconcile the inconsistency. deployment_infos: map of deployment...
2
1
0
0
0
0
0
2.13
0
0
0
0
0
0
0
0
28
3
8
1
7
17
8
1
7
0
0
0
0
10,353
ray-project/ray
python/ray/serve/_private/application_state.py
ray.serve._private.application_state.BuildAppStatus
from enum import Enum class BuildAppStatus(Enum): """Status of the build application task.""" NO_TASK_IN_PROGRESS = 1 IN_PROGRESS = 2 SUCCEEDED = 3 FAILED = 4
class BuildAppStatus(Enum): '''Status of the build application task.''' pass
1
1
0
0
0
0
0
0.2
1
0
0
0
0
0
0
49
7
1
5
5
4
1
5
5
4
0
4
0
0
10,354
ray-project/ray
python/ray/serve/_private/application_state.py
ray.serve._private.application_state.StatusOverview
from dataclasses import asdict, dataclass, field import json from ray.serve._private.common import DeploymentID, DeploymentStatus, DeploymentStatusInfo, DeploymentStatusTrigger, EndpointInfo, TargetCapacityDirection from ray.serve.generated.serve_pb2 import ApplicationStatus as ApplicationStatusProto, ApplicationStatus...
@dataclass(eq=True) class StatusOverview: def debug_string(self): pass def get_deployment_status(self, name: str) -> Optional[DeploymentStatusInfo]: '''Get a deployment's status by name. Args: name: Deployment's name. Returns: Optional[DeploymentStatusIn...
7
1
13
2
8
3
2
0.36
0
2
0
0
3
0
4
4
62
13
36
15
30
13
23
14
18
3
0
2
7
10,355
ray-project/ray
python/ray/serve/_private/autoscaling_state.py
ray.serve._private.autoscaling_state.AutoscalingState
from ray.serve._private.deployment_info import DeploymentInfo from ray.serve._private.common import RUNNING_REQUESTS_KEY, DeploymentID, HandleMetricReport, ReplicaID, ReplicaMetricReport, TargetCapacityDirection from ray.serve._private.utils import get_capacity_adjusted_num_replicas import time from collections import ...
class AutoscalingState: '''Manages autoscaling for a single deployment.''' def __init__(self, deployment_id: DeploymentID): pass def register(self, info: DeploymentInfo, curr_target_num_replicas: int) -> int: '''Registers an autoscaling deployment's info. Returns the number of rep...
15
11
17
2
12
4
2
0.32
0
12
6
0
13
10
13
13
237
37
152
47
125
48
75
34
61
7
0
4
32
10,356
ray-project/ray
python/ray/serve/_private/autoscaling_state.py
ray.serve._private.autoscaling_state.AutoscalingStateManager
from typing import Any, Dict, List, Optional, Set from ray.serve._private.deployment_info import DeploymentInfo from ray.serve._private.common import RUNNING_REQUESTS_KEY, DeploymentID, HandleMetricReport, ReplicaID, ReplicaMetricReport, TargetCapacityDirection class AutoscalingStateManager: """Manages all things ...
class AutoscalingStateManager: '''Manages all things autoscaling related. Keeps track of request metrics for each deployment and decides on the target number of replicas to autoscale to based on those metrics. ''' def __init__(self): pass def register_deployment(self, deployment_id: D...
14
5
8
0
7
1
1
0.18
0
8
4
0
12
1
12
12
109
16
79
40
43
14
34
17
21
2
0
1
17
10,357
ray-project/ray
python/ray/serve/_private/benchmarks/common.py
ray.serve._private.benchmarks.common.Benchmarker
import logging from functools import partial from typing import Any, Callable, Coroutine, List, Optional, Tuple from ray.serve.handle import DeploymentHandle import asyncio from ray import serve import pandas as pd import time @serve.deployment class Benchmarker: def __init__(self, handle: DeploymentHandle, strea...
@serve.deployment class Benchmarker: def __init__(self, handle: DeploymentHandle, stream: bool=False): pass async def do_single_request(self, payload: Any=None) -> float: '''Completes a single unary request. Returns e2e latency in ms.''' pass async def _do_single_stream(self) -> f...
9
2
10
1
9
0
2
0.03
0
8
1
0
6
2
6
6
73
11
60
30
39
2
32
16
24
2
0
1
11
10,358
ray-project/ray
python/ray/serve/_private/benchmarks/common.py
ray.serve._private.benchmarks.common.Blackhole
class Blackhole: def sink(self, o): pass
class Blackhole: def sink(self, o): pass
2
0
2
0
2
0
1
0
0
0
0
1
1
0
1
1
3
0
3
2
1
0
3
2
1
1
0
0
1
10,359
ray-project/ray
python/ray/serve/_private/benchmarks/common.py
ray.serve._private.benchmarks.common.IntermediateRouter
from starlette.responses import StreamingResponse from ray import serve from ray.serve.handle import DeploymentHandle import logging @serve.deployment class IntermediateRouter: def __init__(self, handle: DeploymentHandle): logging.getLogger('ray.serve').setLevel(logging.WARNING) self._handle = han...
@serve.deployment class IntermediateRouter: def __init__(self, handle: DeploymentHandle): pass async def stream(self): pass def __call__(self): pass
5
0
3
0
3
0
1
0
0
1
1
0
3
1
3
3
11
2
9
6
5
0
9
6
5
2
0
1
4
10,360
ray-project/ray
python/ray/serve/_private/benchmarks/common.py
ray.serve._private.benchmarks.common.Noop
from ray import serve import logging @serve.deployment class Noop: def __init__(self): logging.getLogger('ray.serve').setLevel(logging.WARNING) def __call__(self, *args, **kwargs): return b''
@serve.deployment class Noop: def __init__(self): pass def __call__(self, *args, **kwargs): pass
4
0
2
0
2
0
1
0
0
0
0
0
2
0
2
2
6
1
5
3
2
0
5
3
2
1
0
0
2
10,361
ray-project/ray
python/ray/serve/_private/benchmarks/common.py
ray.serve._private.benchmarks.common.Streamer
from ray import serve import asyncio import logging from starlette.responses import StreamingResponse @serve.deployment class Streamer: def __init__(self, tokens_per_request: int, inter_token_delay_ms: int=10): logging.getLogger('ray.serve').setLevel(logging.WARNING) self._tokens_per_request = tok...
@serve.deployment class Streamer: def __init__(self, tokens_per_request: int, inter_token_delay_ms: int=10): pass async def stream(self): pass async def __call__(self): pass
5
0
3
0
3
0
1
0
0
2
0
0
3
2
3
3
13
2
11
7
7
0
11
7
7
2
0
1
4
10,362
ray-project/ray
python/ray/serve/_private/benchmarks/microbenchmark.py
ray.serve._private.benchmarks.microbenchmark.Client
import ray import aiohttp @ray.remote class Client: def ready(self): return 'ok' async def do_queries(self, num, data): async with aiohttp.ClientSession() as session: for _ in range(num): await fetch(session, data)
@ray.remote class Client: def ready(self): pass async def do_queries(self, num, data): pass
4
0
3
0
3
0
2
0
0
2
0
0
2
0
2
2
8
1
7
5
4
0
7
4
4
2
0
2
3
10,363
ray-project/ray
python/ray/serve/_private/benchmarks/proxy_benchmark.py
ray.serve._private.benchmarks.proxy_benchmark.HTTPClient
import ray import time import aiohttp @ray.remote class HTTPClient: def ready(self): return 'ok' async def do_queries(self, num, data): async with aiohttp.ClientSession() as session: for _ in range(num): await fetch_http(session, data) async def time_queries(s...
@ray.remote class HTTPClient: def ready(self): pass async def do_queries(self, num, data): pass async def time_queries(self, num, data): pass
5
0
5
0
5
0
2
0
0
2
0
0
3
0
3
3
19
3
16
11
12
0
16
9
12
2
0
2
5
10,364
ray-project/ray
python/ray/serve/_private/benchmarks/proxy_benchmark.py
ray.serve._private.benchmarks.proxy_benchmark.gRPCClient
from ray.serve.generated import serve_pb2, serve_pb2_grpc import time from grpc import aio import ray @ray.remote class gRPCClient: def __init__(self): channel = aio.insecure_channel('localhost:9000') self.stub = serve_pb2_grpc.RayServeBenchmarkServiceStub(channel) def ready(self): re...
@ray.remote class gRPCClient: def __init__(self): pass def ready(self): pass async def do_queries(self, num, data): pass async def time_queries(self, num, data): pass
6
0
4
0
4
0
2
0
0
1
0
0
4
1
4
4
20
3
17
12
12
0
17
12
12
2
0
1
6
10,365
ray-project/ray
python/ray/serve/_private/benchmarks/serialization/common.py
ray.serve._private.benchmarks.serialization.common.PayloadDataclass
from typing import List, Optional from dataclasses import dataclass @dataclass class PayloadDataclass: text: Optional[str] = None floats: Optional[List[float]] = None ints: Optional[List[int]] = None ts: Optional[float] = None reason: Optional[str] = None
@dataclass class PayloadDataclass: pass
2
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
6
0
6
6
5
0
6
6
5
0
0
0
0
10,366
ray-project/ray
python/ray/serve/_private/benchmarks/serialization/common.py
ray.serve._private.benchmarks.serialization.common.PayloadPydantic
from typing import List, Optional from pydantic import BaseModel class PayloadPydantic(BaseModel): text: Optional[str] = None floats: Optional[List[float]] = None ints: Optional[List[int]] = None ts: Optional[float] = None reason: Optional[str] = None
class PayloadPydantic(BaseModel): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
83
6
0
6
6
5
0
6
6
5
0
5
0
0
10,367
ray-project/ray
python/ray/serve/_private/benchmarks/streaming/_grpc/grpc_server.py
ray.serve._private.benchmarks.streaming._grpc.grpc_server.TestGRPCServer
from ray.serve._private.benchmarks.streaming._grpc import test_server_pb2, test_server_pb2_grpc import grpc class TestGRPCServer(test_server_pb2_grpc.GRPCTestServerServicer): def __init__(self, tokens_per_request): self._tokens_per_request = tokens_per_request async def Unary(self, request, context):...
class TestGRPCServer(test_server_pb2_grpc.GRPCTestServerServicer): def __init__(self, tokens_per_request): pass async def Unary(self, request, context): pass async def ClientStreaming(self, request_iterator, context): pass async def ServerStreaming(self, request, context): ...
6
0
8
1
7
0
2
0
1
1
0
0
5
1
5
5
44
9
35
11
29
0
23
11
17
3
1
1
11
10,368
ray-project/ray
python/ray/serve/_private/benchmarks/streaming/common.py
ray.serve._private.benchmarks.streaming.common.Caller
from typing import Tuple, Union import numpy as np import time import logging from ray.serve.handle import DeploymentHandle from ray.serve._private.benchmarks.common import Blackhole, run_throughput_benchmark import abc from ray.actor import ActorHandle import asyncio class Caller(Blackhole): def __init__(self, d...
class Caller(Blackhole): def __init__(self, downstream: Union[ActorHandle, DeploymentHandle], *, mode: IOMode, tokens_per_request: int, batch_size: int, num_trials: int, trial_runtime: float): pass def _get_remote_method(self): pass @abc.abstractmethod async def _consume_single_stream...
8
0
10
1
9
1
1
0.06
1
7
3
3
6
7
6
7
66
10
54
31
37
3
32
20
25
3
1
1
8
10,369
ray-project/ray
python/ray/serve/_private/benchmarks/streaming/common.py
ray.serve._private.benchmarks.streaming.common.Endpoint
import logging import time from ray.serve._private.benchmarks.serialization.common import PayloadPydantic class Endpoint: def __init__(self, tokens_per_request: int): self._tokens_per_request = tokens_per_request logging.getLogger('ray').setLevel(logging.WARNING) logging.getLogger('ray.ser...
class Endpoint: def __init__(self, tokens_per_request: int): pass def stream(self): pass async def aio_stream(self): pass
4
0
9
1
8
0
2
0.04
0
5
1
2
3
1
3
3
30
4
25
9
21
1
13
9
9
2
0
1
5
10,370
ray-project/ray
python/ray/serve/_private/benchmarks/streaming/common.py
ray.serve._private.benchmarks.streaming.common.IOMode
import enum class IOMode(enum.Enum): SYNC = 'SYNC' ASYNC = 'ASYNC'
class IOMode(enum.Enum): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
49
3
0
3
3
2
0
3
3
2
0
4
0
0
10,371
ray-project/ray
python/ray/serve/_private/benchmarks/streaming/streaming_core_throughput.py
ray.serve._private.benchmarks.streaming.streaming_core_throughput.CallerActor
from ray.serve._private.benchmarks.streaming.common import Caller, Endpoint, IOMode import ray @ray.remote class CallerActor(Caller): async def _consume_single_stream(self): method = self._get_remote_method() async for ref in method.options(num_returns='streaming').remote(): r = ray.ge...
@ray.remote class CallerActor(Caller): async def _consume_single_stream(self): pass
3
0
7
1
5
1
2
0.17
1
0
0
0
1
0
1
8
8
1
6
5
4
1
6
5
4
2
2
1
2
10,372
ray-project/ray
python/ray/serve/_private/benchmarks/streaming/streaming_core_throughput.py
ray.serve._private.benchmarks.streaming.streaming_core_throughput.EndpointActor
from ray.serve._private.benchmarks.streaming.common import Caller, Endpoint, IOMode import ray @ray.remote class EndpointActor(Endpoint): pass
@ray.remote class EndpointActor(Endpoint): pass
2
0
0
0
0
0
0
0
1
0
0
0
0
0
0
3
2
0
2
1
1
0
2
1
1
0
1
0
0
10,373
ray-project/ray
python/ray/serve/_private/benchmarks/streaming/streaming_grpc_throughput.py
ray.serve._private.benchmarks.streaming.streaming_grpc_throughput.EndpointActor
import ray from concurrent import futures from ray.serve._private.benchmarks.streaming._grpc.grpc_server import TestGRPCServer import logging from ray.serve._private.benchmarks.streaming._grpc import test_server_pb2, test_server_pb2_grpc import grpc @ray.remote class EndpointActor: async def __init__(self, tokens...
@ray.remote class EndpointActor: async def __init__(self, tokens_per_request, socket_type, tempdir): pass @staticmethod async def start_server(tokens_per_request, socket_type, tempdir): pass
5
0
11
4
7
1
1
0.06
0
1
1
0
1
1
2
2
25
8
16
7
12
1
13
6
10
1
0
0
2
10,374
ray-project/ray
python/ray/serve/_private/benchmarks/streaming/streaming_grpc_throughput.py
ray.serve._private.benchmarks.streaming.streaming_grpc_throughput.GrpcCallerActor
from ray.serve._private.benchmarks.streaming.common import Caller, IOMode from ray.serve._private.benchmarks.streaming._grpc import test_server_pb2, test_server_pb2_grpc import ray import grpc @ray.remote class GrpcCallerActor(Caller): def __init__(self, tempdir, socket_type, *, mode: IOMode, tokens_per_request: ...
@ray.remote class GrpcCallerActor(Caller): def __init__(self, tempdir, socket_type, *, mode: IOMode, tokens_per_request: int, batch_size: int, num_trials: int, trial_runtime: float): pass @staticmethod def create_downstream(socket_type, tempdir): pass async def _consume_single_stream(s...
6
0
11
1
10
0
2
0
1
6
1
0
2
0
3
10
37
4
33
19
18
0
13
7
9
3
2
2
5
10,375
ray-project/ray
python/ray/serve/_private/benchmarks/streaming/streaming_handle_throughput.py
ray.serve._private.benchmarks.streaming.streaming_handle_throughput.CallerDeployment
from ray.serve._private.benchmarks.streaming.common import Caller, Endpoint, IOMode from ray import serve @serve.deployment class CallerDeployment(Caller): async def _consume_single_stream(self): method = self._get_remote_method().options(stream=True) async for r in method.remote(): se...
@serve.deployment class CallerDeployment(Caller): async def _consume_single_stream(self): pass
3
0
9
1
6
2
2
0.29
1
0
0
0
1
0
1
8
10
1
7
4
5
2
5
4
3
2
2
1
2
10,376
ray-project/ray
python/ray/serve/_private/benchmarks/streaming/streaming_handle_throughput.py
ray.serve._private.benchmarks.streaming.streaming_handle_throughput.EndpointDeployment
from ray import serve from ray.serve._private.benchmarks.streaming.common import Caller, Endpoint, IOMode @serve.deployment(ray_actor_options={'num_cpus': 0}) class EndpointDeployment(Endpoint): pass
@serve.deployment(ray_actor_options={'num_cpus': 0}) class EndpointDeployment(Endpoint): pass
2
0
0
0
0
0
0
0
1
0
0
0
0
0
0
3
2
0
2
1
1
0
2
1
1
0
1
0
0
10,377
ray-project/ray
python/ray/serve/_private/benchmarks/streaming/streaming_http_throughput.py
ray.serve._private.benchmarks.streaming.streaming_http_throughput.Downstream
from starlette.responses import StreamingResponse from ray import serve import logging @serve.deployment(ray_actor_options={'num_cpus': 0}) class Downstream: def __init__(self, tokens_per_request: int): logging.getLogger('ray.serve').setLevel(logging.WARNING) self._tokens_per_request = tokens_per_...
@serve.deployment(ray_actor_options={'num_cpus': 0}) class Downstream: def __init__(self, tokens_per_request: int): pass async def stream(self): pass def __call__(self, *args): pass
5
0
3
0
3
0
1
0
0
2
0
0
3
1
3
3
12
3
9
6
5
0
9
6
5
2
0
1
4
10,378
ray-project/ray
python/ray/serve/_private/benchmarks/streaming/streaming_http_throughput.py
ray.serve._private.benchmarks.streaming.streaming_http_throughput.Intermediate
from starlette.responses import StreamingResponse from ray import serve import logging from ray.serve.handle import DeploymentHandle @serve.deployment(ray_actor_options={'num_cpus': 0}) class Intermediate: def __init__(self, downstream: DeploymentHandle): logging.getLogger('ray.serve').setLevel(logging.WA...
@serve.deployment(ray_actor_options={'num_cpus': 0}) class Intermediate: def __init__(self, downstream: DeploymentHandle): pass async def stream(self): pass def __call__(self, *args): pass
5
0
3
0
3
0
1
0
0
1
1
0
3
1
3
3
12
3
9
6
5
0
9
6
5
2
0
1
4
10,379
ray-project/ray
python/ray/serve/_private/build_app.py
ray.serve._private.build_app.BuiltApplication
from ray.serve.handle import DeploymentHandle from ray.serve.deployment import Application, Deployment from ray.serve.schema import LoggingConfig from dataclasses import dataclass from typing import Any, Callable, Dict, Generic, List, Optional, TypeVar, Union @dataclass(frozen=True) class BuiltApplication: name: s...
@dataclass(frozen=True) class BuiltApplication: pass
2
0
0
0
0
0
0
1.2
0
0
0
0
0
0
0
0
11
0
5
1
4
6
5
1
4
0
0
0
0
10,380
ray-project/ray
python/ray/serve/_private/build_app.py
ray.serve._private.build_app.IDDict
from typing import Any, Callable, Dict, Generic, List, Optional, TypeVar, Union class IDDict(dict, Generic[K, V]): """Dictionary that uses id() for keys instead of hash(). This is necessary because Application objects aren't hashable and we want each instance to map to a unique key. """ def __get...
class IDDict(dict, Generic[K, V]): '''Dictionary that uses id() for keys instead of hash(). This is necessary because Application objects aren't hashable and we want each instance to map to a unique key. ''' def __getitem__(self, key: K) -> V: pass def __setitem__(self, key: K, value:...
5
1
4
0
4
0
2
0.24
2
2
0
0
4
0
4
33
26
5
17
5
12
4
17
5
12
2
2
1
8
10,381
ray-project/ray
python/ray/serve/_private/client.py
ray.serve._private.client.ServeControllerClient
import asyncio import inspect import ray from ray.serve.schema import ApplicationStatus, LoggingConfig, ServeApplicationSchema, ServeDeploySchema from ray.serve.exceptions import RayServeException import random import time from ray.serve._private.build_app import BuiltApplication from ray.serve._private.application_sta...
class ServeControllerClient: def __init__(self, controller: ActorHandle): pass @property def root_url(self): pass @property def http_config(self): pass def __reduce__(self): pass def shutdown_cached_handles(self): '''Shuts down all cached handles. ...
39
14
19
2
14
3
3
0.21
0
22
12
0
21
6
21
21
429
59
307
105
247
63
177
67
155
8
0
4
60
10,382
ray-project/ray
python/ray/serve/_private/cluster_node_info_cache.py
ray.serve._private.cluster_node_info_cache.ClusterNodeInfoCache
from ray._raylet import GcsClient from abc import ABC, abstractmethod from ray.serve._private.constants import RAY_GCS_RPC_TIMEOUT_S import ray from typing import Dict, List, Optional, Set, Tuple, Union class ClusterNodeInfoCache(ABC): """Provide access to cached node information in the cluster.""" def __init...
class ClusterNodeInfoCache(ABC): '''Provide access to cached node information in the cluster.''' def __init__(self, gcs_client: GcsClient): pass def update(self): '''Update the cache by fetching latest node information from GCS. This should be called once in each update cycle. ...
12
9
8
1
4
2
1
0.55
1
6
0
1
9
5
9
29
82
17
42
20
30
23
29
17
19
1
4
0
9
10,383
ray-project/ray
python/ray/serve/_private/cluster_node_info_cache.py
ray.serve._private.cluster_node_info_cache.DefaultClusterNodeInfoCache
from ray._raylet import GcsClient from typing import Dict, List, Optional, Set, Tuple, Union class DefaultClusterNodeInfoCache(ClusterNodeInfoCache): def __init__(self, gcs_client: GcsClient): super().__init__(gcs_client) def get_draining_nodes(self) -> Dict[str, int]: return dict() def ...
class DefaultClusterNodeInfoCache(ClusterNodeInfoCache): def __init__(self, gcs_client: GcsClient): pass def get_draining_nodes(self) -> Dict[str, int]: pass def get_node_az(self, node_id: str) -> Optional[str]: '''Get availability zone of a node.''' pass
4
1
2
0
2
0
1
0.14
1
4
0
0
3
0
3
32
10
2
7
4
3
1
7
4
3
1
5
0
3
10,384
ray-project/ray
python/ray/serve/_private/common.py
ray.serve._private.common.CreatePlacementGroupRequest
from dataclasses import asdict, dataclass, field from typing import Any, Awaitable, Callable, Dict, List, Optional @dataclass(frozen=True) class CreatePlacementGroupRequest: bundles: List[Dict[str, float]] strategy: str target_node_id: str name: str runtime_env: Optional[str] = None
@dataclass(frozen=True) class CreatePlacementGroupRequest: pass
2
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
6
0
6
2
5
0
6
2
5
0
0
0
0
10,385
ray-project/ray
python/ray/serve/_private/common.py
ray.serve._private.common.DeploymentHandleSource
from enum import Enum class DeploymentHandleSource(str, Enum): UNKNOWN = 'UNKNOWN' PROXY = 'PROXY' REPLICA = 'REPLICA'
class DeploymentHandleSource(str, Enum): pass
1
0
0
0
0
0
0
0
2
0
0
0
0
0
0
115
4
0
4
4
3
0
4
4
3
0
4
0
0
10,386
ray-project/ray
python/ray/serve/_private/common.py
ray.serve._private.common.DeploymentID
from ray.serve._private.constants import SERVE_DEFAULT_APP_NAME, SERVE_NAMESPACE from dataclasses import asdict, dataclass, field @dataclass(frozen=True) class DeploymentID: name: str app_name: str = SERVE_DEFAULT_APP_NAME def to_replica_actor_class_name(self): return f'ServeReplica:{self.app_name...
@dataclass(frozen=True) class DeploymentID: def to_replica_actor_class_name(self): pass def __str__(self): pass def __repr__(self): pass
5
0
2
0
2
0
1
0
0
1
0
0
3
0
3
3
12
3
9
5
5
0
9
5
5
1
0
0
3
10,387
ray-project/ray
python/ray/serve/_private/common.py
ray.serve._private.common.DeploymentStatus
from enum import Enum class DeploymentStatus(str, Enum): UPDATING = 'UPDATING' HEALTHY = 'HEALTHY' UNHEALTHY = 'UNHEALTHY' DEPLOY_FAILED = 'DEPLOY_FAILED' UPSCALING = 'UPSCALING' DOWNSCALING = 'DOWNSCALING'
class DeploymentStatus(str, Enum): pass
1
0
0
0
0
0
0
0
2
0
0
0
0
0
0
115
7
0
7
7
6
0
7
7
6
0
4
0
0
10,388
ray-project/ray
python/ray/serve/_private/common.py
ray.serve._private.common.DeploymentStatusInfo
import json from dataclasses import asdict, dataclass, field from ray.serve.generated.serve_pb2 import DeploymentStatus as DeploymentStatusProto, DeploymentStatusInfo as DeploymentStatusInfoProto, DeploymentStatusTrigger as DeploymentStatusTriggerProto @dataclass(eq=True) class DeploymentStatusInfo: name: str ...
null
11
3
45
4
35
6
7
0.16
0
3
1
0
6
0
7
7
326
35
250
22
231
41
59
11
51
37
0
2
47
10,389
ray-project/ray
python/ray/serve/_private/common.py
ray.serve._private.common.DeploymentStatusInternalTrigger
from enum import Enum class DeploymentStatusInternalTrigger(str, Enum): HEALTHY = 'HEALTHY' CONFIG_UPDATE = 'CONFIG_UPDATE' AUTOSCALE_UP = 'AUTOSCALE_UP' AUTOSCALE_DOWN = 'AUTOSCALE_DOWN' MANUALLY_INCREASE_NUM_REPLICAS = 'MANUALLY_INCREASE_NUM_REPLICAS' MANUALLY_DECREASE_NUM_REPLICAS = 'MANUALL...
class DeploymentStatusInternalTrigger(str, Enum): pass
1
0
0
0
0
0
0
0
2
0
0
0
0
0
0
115
11
0
11
11
10
0
11
11
10
0
4
0
0
10,390
ray-project/ray
python/ray/serve/_private/common.py
ray.serve._private.common.DeploymentStatusTrigger
from enum import Enum class DeploymentStatusTrigger(str, Enum): """Explains how a deployment reached its current DeploymentStatus.""" UNSPECIFIED = 'UNSPECIFIED' CONFIG_UPDATE_STARTED = 'CONFIG_UPDATE_STARTED' CONFIG_UPDATE_COMPLETED = 'CONFIG_UPDATE_COMPLETED' UPSCALE_COMPLETED = 'UPSCALE_COMPLETE...
class DeploymentStatusTrigger(str, Enum): '''Explains how a deployment reached its current DeploymentStatus.''' pass
1
1
0
0
0
0
0
0
2
0
0
0
0
0
0
115
11
0
11
11
10
0
11
11
10
0
4
0
0
10,391
ray-project/ray
python/ray/serve/_private/common.py
ray.serve._private.common.DeploymentTargetInfo
from typing import Any, Awaitable, Callable, Dict, List, Optional from dataclasses import asdict, dataclass, field @dataclass(frozen=True) class DeploymentTargetInfo: is_available: bool running_replicas: List[RunningReplicaInfo]
@dataclass(frozen=True) class DeploymentTargetInfo: pass
2
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
3
0
3
1
2
0
3
1
2
0
0
0
0
10,392
ray-project/ray
python/ray/serve/_private/common.py
ray.serve._private.common.EndpointInfo
from dataclasses import asdict, dataclass, field @dataclass class EndpointInfo: route: str app_is_cross_language: bool = False
@dataclass class EndpointInfo: pass
2
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
3
0
3
2
2
0
3
2
2
0
0
0
0
10,393
ray-project/ray
python/ray/serve/_private/common.py
ray.serve._private.common.ReplicaID
from dataclasses import asdict, dataclass, field from ray.util.annotations import PublicAPI @PublicAPI(stability='alpha') @dataclass(frozen=True) class ReplicaID: """A unique identifier for a replica.""" unique_id: str 'A unique identifier for the replica within the deployment.' deployment_id: Deployme...
@PublicAPI(stability='alpha') @dataclass(frozen=True) class ReplicaID: '''A unique identifier for a replica.''' def to_full_id_str(self) -> str: pass @staticmethod def is_full_id_str(s: str) -> bool: pass @classmethod def from_full_id_str(cls, s: str): pass def __re...
10
2
8
1
7
1
2
0.18
0
4
1
0
3
0
5
5
51
9
39
11
31
7
23
9
17
3
0
1
8
10,394
ray-project/ray
python/ray/serve/_private/common.py
ray.serve._private.common.ReplicaQueueLengthInfo
from dataclasses import asdict, dataclass, field @dataclass(frozen=True) class ReplicaQueueLengthInfo: accepted: bool num_ongoing_requests: int
@dataclass(frozen=True) class ReplicaQueueLengthInfo: pass
2
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
3
0
3
1
2
0
3
1
2
0
0
0
0
10,395
ray-project/ray
python/ray/serve/_private/common.py
ray.serve._private.common.ReplicaState
from enum import Enum class ReplicaState(str, Enum): STARTING = 'STARTING' UPDATING = 'UPDATING' RECOVERING = 'RECOVERING' RUNNING = 'RUNNING' STOPPING = 'STOPPING' PENDING_MIGRATION = 'PENDING_MIGRATION'
class ReplicaState(str, Enum): pass
1
0
0
0
0
0
0
0
2
0
0
0
0
0
0
115
7
0
7
7
6
0
7
7
6
0
4
0
0
10,396
ray-project/ray
python/ray/serve/_private/common.py
ray.serve._private.common.RequestMetadata
from ray.serve.grpc_util import RayServegRPCContext from typing import Any, Awaitable, Callable, Dict, List, Optional from dataclasses import asdict, dataclass, field @dataclass class RequestMetadata: request_id: str internal_request_id: str call_method: str = '__call__' route: str = '' app_name: s...
@dataclass class RequestMetadata: @property def is_http_request(self) -> bool: pass @property def is_grpc_request(self) -> bool: pass
6
0
2
0
2
0
1
0.71
0
2
1
0
2
0
2
2
39
10
17
13
12
12
15
11
12
1
0
0
2
10,397
ray-project/ray
python/ray/serve/_private/common.py
ray.serve._private.common.RequestProtocol
from enum import Enum class RequestProtocol(str, Enum): UNDEFINED = 'UNDEFINED' HTTP = 'HTTP' GRPC = 'gRPC'
class RequestProtocol(str, Enum): pass
1
0
0
0
0
0
0
0
2
0
0
0
0
0
0
115
4
0
4
4
3
0
4
4
3
0
4
0
0
10,398
ray-project/ray
python/ray/serve/_private/common.py
ray.serve._private.common.RunningReplicaInfo
from typing import Any, Awaitable, Callable, Dict, List, Optional from dataclasses import asdict, dataclass, field from ray.actor import ActorHandle @dataclass(frozen=True) class RunningReplicaInfo: replica_id: ReplicaID node_id: Optional[str] node_ip: Optional[str] availability_zone: Optional[str] ...
@dataclass(frozen=True) class RunningReplicaInfo: def __post_init__(self): pass def __hash__(self): pass def __eq__(self, other): pass
5
0
11
1
8
2
1
0.21
0
2
0
0
3
0
3
3
45
5
33
8
29
7
17
8
13
2
0
0
4
10,399
ray-project/ray
python/ray/serve/_private/common.py
ray.serve._private.common.ServeComponentType
from enum import Enum class ServeComponentType(str, Enum): REPLICA = 'replica'
class ServeComponentType(str, Enum): pass
1
0
0
0
0
0
0
0
2
0
0
0
0
0
0
115
2
0
2
2
1
0
2
2
1
0
4
0
0