AI Slop Code Risk Monitor

ray-project/ray

SlopCodeMonitor badge for ray-project/ray Adjusted legacy signal; badge bands: 25 / 50 / 75 (different from dashboard bands).

Ray is an AI compute engine. Ray consists of a core distributed runtime and a set of AI Libraries for accelerating ML workloads.

22.9 Elevated pattern signal View on GitHub

Open-Source Code Quality, Security and Technical Debt Review

This report summarizes scanner evidence for ray-project/ray, a Python project with 44,172 GitHub stars. SynthScan examined 1,817,381 lines of code across 8052 source files, recording 31974 pattern matches distributed across 27 syntactic categories. The legacy adjusted pattern signal is 22.9 (Elevated pattern signal); it is not an authorship estimate.

Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.

22.9
Adjusted Signal
22.9
Raw Pattern Score
100%
Time Factor
2026-10-31
Last Push
44.2K
Stars
Python
Language
1.8M
Lines of Code
8.1K
Files
32.0K
Pattern Hits
2026-10-31
Scan Date
0.20
HC Hit Rate

Risk Review · Payload v1

Use each vector to guide manual verification of the underlying findings.

Payload schema: 1.0.0 · Engine: 2.0.0 · Scoring: heuristic-density-v1 · Scan date: 2026-10-31.

Cognitive Ownership Risk 51.7/100 · HIGH

Can maintainers explain intent, assumptions, and trade-offs? 24278 finding(s).

Hallucinated Dependency & Supply Chain Risk 14.1/100 · LOW

Are imports declared and package/API names verified? 3224 finding(s).

Agent Over-Engineering Ratio 50.5/100 · HIGH

Are wrappers, guards, and repeated structures necessary? 21903 finding(s).

PR Review Velocity Impact 70.9/100 · HIGH

Which changes need focused human review? 31974 finding(s).

What These Metrics Mean

Adjusted Signal
Legacy pattern score normalized per 1,000 scanned lines and multiplied by the repository-level time factor. It is not an estimate of AI authorship.
Raw Pattern Score
Sum of severity- and context-weighted pattern findings before applying the time factor.
Time Factor
A coarse multiplier based on repository last-push metadata. It does not identify when individual code was written.
Pattern Hits
Count of configured pattern findings. Review each location and surrounding code before acting.
HC Hit Rate
High- and critical-severity findings per scanned file. Severity is a configured detector weight, not proof of a vulnerability or authorship.
Lines / Files
Scan coverage denominators used by the legacy normalized score.

Pattern-Signal History

This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.

Severity Breakdown

Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.

CRITICAL 110HIGH 1519MEDIUM 2176LOW 28169

Directory Score Breakdown

This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.

Pattern Findings

The scanner identified 31974 distinct pattern matches across 27 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.

Reading the findings table: The Severity column indicates the configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.

Hyper-Verbose Identifiers17062 hits · 15568 pts
SeverityFileLineSnippetContext
LOWpython/setup.py426def is_native_windows_or_msys():CODE
LOWpython/setup.py432def is_invalid_windows_platform():CODE
LOWpython/ray/client_builder.py345def _get_builder_from_address(address: Optional[str]) -> ClientBuilder:CODE
LOWpython/ray/runtime_context.py461 def was_current_actor_reconstructed(self):CODE
LOWpython/ray/runtime_context.py475 def current_placement_group_id(self):CODE
LOWpython/ray/runtime_context.py493 def should_capture_child_tasks_in_placement_group(self):CODE
LOWpython/ray/cross_language.py124def _get_function_descriptor_for_actor_method(CODE
LOWpython/ray/cluster_utils.py496 def remaining_processes_alive(self):CODE
LOWpython/ray/exceptions.py121def _is_hidden_internal_frame(line: str, extra_markers: Sequence[str] = ()) -> bool:CODE
LOWpython/ray/exceptions.py207 def make_dual_exception_instance(self) -> "RayTaskError":CODE
LOWpython/ray/exceptions.py221 def _make_normal_dual_exception_instance(self) -> "RayTaskError":CODE
LOWpython/ray/exceptions.py255 def _make_exceptiongroup_dual_exception_instance(self) -> "RayTaskError":CODE
LOWpython/ray/actor.py1690 def _ray_from_function_descriptor(CODE
LOWpython/ray/job_config.py182 def set_default_actor_lifetime(self, default_actor_lifetime: str) -> None:CODE
LOW⚡python/ray/job_config.py269 def _runtime_env_has_working_dir(self):CODE
LOW⚡python/ray/job_config.py272 def _get_serialized_runtime_env(self) -> str:CODE
LOW⚡python/ray/job_config.py276 def _get_proto_runtime_env_config(self) -> str:CODE
LOWpython/ray/runtime_env/runtime_env.py97 def parse_and_validate_runtime_env_config(CODE
LOWpython/ray/runtime_env/runtime_env.py124 def build_proto_runtime_env_config(self) -> ProtoRuntimeEnvConfig:CODE
LOWpython/ray/experimental/shuffle.py286 def output_writer_non_streaming(CODE
LOWpython/ray/experimental/internal_kv.py16def internal_kv_get_gcs_client():CODE
LOWpython/ray/experimental/locations.py45def get_local_object_locations(CODE
LOWpython/ray/experimental/tqdm_ray.py316 def _process_state_update_locked(self, state: ProgressBarState) -> None:CODE
LOWpython/ray/experimental/tqdm_ray.py378 def _get_or_allocate_bar_group(self, state: ProgressBarState):CODE
LOWpython/ray/experimental/collective/conftest.py201def mock_do_destroy_nccl_group(self, group_id: str) -> None:CODE
LOWpython/ray/experimental/collective/conftest.py231def check_nccl_group_teardown(CODE
LOWpython/ray/experimental/collective/collective.py39 def remove_remote_communicator(self, name: str):CODE
LOWpython/ray/experimental/collective/collective.py134 def _do_init_collective_group(self, rank: int):CODE
LOWpython/ray/experimental/collective/collective.py182 def _do_destroy_collective_group(self):CODE
LOWpython/ray/experimental/collective/collective.py200def destroy_all_collective_groups():CODE
LOWpython/ray/experimental/channel/accelerator_context.py222def register_accelerator_context(CODE
LOWpython/ray/experimental/channel/accelerator_context.py236def is_accelerator_context_registered():CODE
LOW…thon/ray/experimental/channel/shared_memory_channel.py335 def ensure_registered_as_writer(self) -> None:CODE
LOW…thon/ray/experimental/channel/shared_memory_channel.py357 def ensure_registered_as_reader(self) -> None:CODE
LOW…thon/ray/experimental/channel/shared_memory_channel.py369 def _deserialize_reader_channel(CODE
LOW…thon/ray/experimental/channel/shared_memory_channel.py410 def _resize_channel_if_needed(self, serialized_value: str, timeout_ms: int):CODE
LOW…thon/ray/experimental/channel/shared_memory_channel.py584 def ensure_registered_as_writer(self):CODE
LOW…thon/ray/experimental/channel/shared_memory_channel.py591 def ensure_registered_as_reader(self):CODE
LOW…thon/ray/experimental/channel/shared_memory_channel.py760 def ensure_registered_as_writer(self) -> None:CODE
LOW…thon/ray/experimental/channel/shared_memory_channel.py767 def ensure_registered_as_reader(self) -> None:CODE
LOWpython/ray/experimental/channel/torch_tensor_type.py117 def register_custom_serializer(self) -> None:CODE
LOW…thon/ray/experimental/channel/intra_process_channel.py38 def ensure_registered_as_writer(self) -> None:CODE
LOW…thon/ray/experimental/channel/intra_process_channel.py41 def ensure_registered_as_reader(self) -> None:CODE
LOWpython/ray/experimental/channel/cached_channel.py38 def ensure_registered_as_writer(self) -> None:CODE
LOWpython/ray/experimental/channel/cached_channel.py42 def ensure_registered_as_reader(self) -> None:CODE
LOW⚡…thon/ray/experimental/channel/serialization_context.py74 def set_use_external_transport(self, use_external_transport: bool) -> None:CODE
LOW⚡…thon/ray/experimental/channel/serialization_context.py81 def reset_out_of_band_tensors(CODE
LOW…thon/ray/experimental/channel/serialization_context.py113 def serialize_to_numpy_or_scalar(CODE
LOW…thon/ray/experimental/channel/serialization_context.py170 def deserialize_from_numpy_or_scalar(CODE
LOWpython/ray/experimental/channel/common.py35def retry_and_check_interpreter_exit(f: Callable[[], None]) -> bool:CODE
LOWpython/ray/experimental/channel/common.py68 def register_custom_serializer(self) -> None:CODE
LOWpython/ray/experimental/channel/common.py201 def ensure_registered_as_writer(self):CODE
LOWpython/ray/experimental/channel/common.py207 def ensure_registered_as_reader(self):CODE
LOWpython/ray/experimental/channel/common.py324 def _consume_leftover_channels_if_needed(CODE
LOWpython/ray/experimental/channel/utils.py17def split_readers_by_locality(CODE
LOWpython/ray/experimental/channel/utils.py46def split_actors_by_node_locality(CODE
LOW…perimental/channel/torch_tensor_accelerator_channel.py167 def ensure_registered_as_writer(self):CODE
LOW…perimental/channel/torch_tensor_accelerator_channel.py174 def ensure_registered_as_reader(self):CODE
LOW…perimental/channel/torch_tensor_accelerator_channel.py463 def ensure_registered_as_writer(self):CODE
LOW…perimental/channel/torch_tensor_accelerator_channel.py471 def ensure_registered_as_reader(self) -> bool:CODE
17002 more matches not shown…
Decorative Section Separators920 hits · 3215 pts
SeverityFileLineSnippetContext
MEDIUMpython/requirements/ml/rllib-test-requirements.txt6# ---------------------COMMENT
MEDIUMpython/ray/experimental/sandbox/http/host.py255 # ------------------------------------------------------------------COMMENT
MEDIUMpython/ray/experimental/sandbox/http/host.py257 # ------------------------------------------------------------------COMMENT
MEDIUMpython/ray/experimental/sandbox/http/host.py467 # ------------------------------------------------------------------COMMENT
MEDIUMpython/ray/experimental/sandbox/http/host.py469 # ------------------------------------------------------------------COMMENT
MEDIUMpython/ray/experimental/sandbox/http/host.py536 # ------------------------------------------------------------------COMMENT
MEDIUMpython/ray/experimental/sandbox/http/host.py538 # ------------------------------------------------------------------COMMENT
MEDIUMpython/ray/experimental/sandbox/http/host.py679 # ------------------------------------------------------------------COMMENT
MEDIUMpython/ray/experimental/sandbox/http/host.py683 # ------------------------------------------------------------------COMMENT
MEDIUMpython/ray/experimental/sandbox/http/host.py822 # ------------------------------------------------------------------COMMENT
MEDIUMpython/ray/experimental/sandbox/http/host.py824 # ------------------------------------------------------------------COMMENT
MEDIUMpython/ray/experimental/sandbox/http/host.py861 # ------------------------------------------------------------------COMMENT
MEDIUMpython/ray/experimental/sandbox/http/host.py863 # ------------------------------------------------------------------COMMENT
MEDIUMpython/ray/experimental/sandbox/http/app.py251 # ------------------------------------------------------------------COMMENT
MEDIUMpython/ray/experimental/sandbox/http/app.py253 # ------------------------------------------------------------------COMMENT
MEDIUMpython/ray/experimental/sandbox/http/app.py457 # ------------------------------------------------------------------COMMENT
MEDIUMpython/ray/experimental/sandbox/http/app.py459 # ------------------------------------------------------------------COMMENT
MEDIUMpython/ray/experimental/sandbox/http/app.py506 # ------------------------------------------------------------------COMMENT
MEDIUMpython/ray/experimental/sandbox/http/app.py508 # ------------------------------------------------------------------COMMENT
MEDIUM⚡…n/ray/experimental/sandbox/http/tests/test_http_app.py55# ----------------------------------------------------------------------COMMENT
MEDIUM⚡…n/ray/experimental/sandbox/http/tests/test_http_app.py57# ----------------------------------------------------------------------COMMENT
MEDIUM⚡…n/ray/experimental/sandbox/http/tests/test_http_app.py106# ----------------------------------------------------------------------COMMENT
MEDIUM⚡…n/ray/experimental/sandbox/http/tests/test_http_app.py108# ----------------------------------------------------------------------COMMENT
MEDIUM⚡…n/ray/experimental/sandbox/http/tests/test_http_app.py339# ----------------------------------------------------------------------COMMENT
MEDIUM⚡…n/ray/experimental/sandbox/http/tests/test_http_app.py341# ----------------------------------------------------------------------COMMENT
MEDIUM⚡…n/ray/experimental/sandbox/http/tests/test_http_app.py449# ----------------------------------------------------------------------COMMENT
MEDIUM⚡…n/ray/experimental/sandbox/http/tests/test_http_app.py451# ----------------------------------------------------------------------COMMENT
MEDIUM…ay/experimental/sandbox/http/tests/test_grpc_facade.py1087# ----------------------------------------------------------------------COMMENT
MEDIUM…ay/experimental/sandbox/http/tests/test_grpc_facade.py1089# ----------------------------------------------------------------------COMMENT
MEDIUM⚡…y/experimental/sandbox/http/tests/test_sandbox_host.py56# ----------------------------------------------------------------------COMMENT
MEDIUM⚡…y/experimental/sandbox/http/tests/test_sandbox_host.py58# ----------------------------------------------------------------------COMMENT
MEDIUM⚡…y/experimental/sandbox/http/tests/test_sandbox_host.py199# ----------------------------------------------------------------------COMMENT
MEDIUM⚡…y/experimental/sandbox/http/tests/test_sandbox_host.py202# ----------------------------------------------------------------------COMMENT
MEDIUM⚡…y/experimental/sandbox/http/tests/test_sandbox_host.py307# ----------------------------------------------------------------------COMMENT
MEDIUM⚡…y/experimental/sandbox/http/tests/test_sandbox_host.py309# ----------------------------------------------------------------------COMMENT
MEDIUM⚡…y/experimental/sandbox/http/tests/test_sandbox_host.py441# ----------------------------------------------------------------------COMMENT
MEDIUM⚡…y/experimental/sandbox/http/tests/test_sandbox_host.py443# ----------------------------------------------------------------------COMMENT
MEDIUM⚡…y/experimental/sandbox/http/tests/test_sandbox_host.py481# ----------------------------------------------------------------------COMMENT
MEDIUM⚡…y/experimental/sandbox/http/tests/test_sandbox_host.py483# ----------------------------------------------------------------------COMMENT
MEDIUM⚡…y/experimental/sandbox/http/tests/test_sandbox_host.py571# ----------------------------------------------------------------------COMMENT
MEDIUM⚡…y/experimental/sandbox/http/tests/test_sandbox_host.py573# ----------------------------------------------------------------------COMMENT
MEDIUM⚡…y/experimental/sandbox/http/tests/test_sandbox_host.py741# ----------------------------------------------------------------------COMMENT
MEDIUM⚡…y/experimental/sandbox/http/tests/test_sandbox_host.py743# ----------------------------------------------------------------------COMMENT
MEDIUMpython/ray/experimental/raysort/main.py27# ------------------------------------------------------------COMMENT
MEDIUMpython/ray/experimental/raysort/main.py29# ------------------------------------------------------------COMMENT
MEDIUMpython/ray/experimental/raysort/main.py126# ------------------------------------------------------------COMMENT
MEDIUMpython/ray/experimental/raysort/main.py128# ------------------------------------------------------------COMMENT
MEDIUMpython/ray/experimental/raysort/main.py179# ------------------------------------------------------------COMMENT
MEDIUMpython/ray/experimental/raysort/main.py181# ------------------------------------------------------------COMMENT
MEDIUMpython/ray/experimental/raysort/main.py399# ------------------------------------------------------------COMMENT
MEDIUMpython/ray/experimental/raysort/main.py401# ------------------------------------------------------------COMMENT
MEDIUMpython/ray/experimental/raysort/main.py440# ------------------------------------------------------------COMMENT
MEDIUMpython/ray/experimental/raysort/main.py442# ------------------------------------------------------------COMMENT
MEDIUM…y/llm/_internal/batch/benchmark/benchmark_processor.py457# -----------------------------------------------------------------------------COMMENT
MEDIUM…y/llm/_internal/batch/benchmark/benchmark_processor.py459# -----------------------------------------------------------------------------COMMENT
MEDIUM…y/llm/_internal/batch/benchmark/benchmark_processor.py550# -----------------------------------------------------------------------------COMMENT
MEDIUM…y/llm/_internal/batch/benchmark/benchmark_processor.py552# -----------------------------------------------------------------------------COMMENT
MEDIUM⚡python/ray/llm/_internal/serve/benchmark/interactive.py47# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡python/ray/llm/_internal/serve/benchmark/interactive.py49# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡python/ray/llm/_internal/serve/benchmark/interactive.py57# ---------------------------------------------------------------------------COMMENT
860 more matches not shown…
Unused Imports2736 hits · 2527 pts
SeverityFileLineSnippetContext
LOWpython/ray/__init__.py87CODE
LOWpython/ray/__init__.py87CODE
LOWpython/ray/__init__.py87CODE
LOWpython/ray/__init__.py87CODE
LOWpython/ray/__init__.py87CODE
LOWpython/ray/__init__.py87CODE
LOWpython/ray/__init__.py87CODE
LOWpython/ray/__init__.py87CODE
LOWpython/ray/__init__.py87CODE
LOWpython/ray/__init__.py87CODE
LOWpython/ray/__init__.py87CODE
LOWpython/ray/__init__.py87CODE
LOWpython/ray/__init__.py87CODE
LOWpython/ray/__init__.py87CODE
LOWpython/ray/__init__.py87CODE
LOWpython/ray/__init__.py108CODE
LOWpython/ray/__init__.py108CODE
LOWpython/ray/__init__.py108CODE
LOWpython/ray/__init__.py108CODE
LOWpython/ray/__init__.py114CODE
LOWpython/ray/__init__.py114CODE
LOWpython/ray/__init__.py114CODE
LOWpython/ray/__init__.py114CODE
LOWpython/ray/__init__.py114CODE
LOWpython/ray/__init__.py114CODE
LOWpython/ray/__init__.py114CODE
LOWpython/ray/__init__.py114CODE
LOWpython/ray/__init__.py114CODE
LOWpython/ray/__init__.py114CODE
LOWpython/ray/__init__.py114CODE
LOWpython/ray/__init__.py114CODE
LOWpython/ray/__init__.py114CODE
LOWpython/ray/__init__.py114CODE
LOWpython/ray/__init__.py114CODE
LOWpython/ray/__init__.py132CODE
LOWpython/ray/__init__.py137CODE
LOWpython/ray/__init__.py140CODE
LOWpython/ray/__init__.py140CODE
LOWpython/ray/__init__.py141CODE
LOWpython/ray/__init__.py142CODE
LOWpython/ray/__init__.py143CODE
LOWpython/ray/__init__.py147CODE
LOWpython/ray/__init__.py147CODE
LOWpython/ray/__init__.py283CODE
LOWpython/ray/__init__.py284CODE
LOWpython/ray/__init__.py285CODE
LOWpython/ray/cross_language.py1CODE
LOWpython/ray/cross_language.py1CODE
LOWpython/ray/cross_language.py1CODE
LOWpython/ray/runtime_env/__init__.py1CODE
LOWpython/ray/runtime_env/__init__.py1CODE
LOWpython/ray/experimental/queue.py3CODE
LOWpython/ray/experimental/queue.py3CODE
LOWpython/ray/experimental/queue.py3CODE
LOWpython/ray/experimental/__init__.py1CODE
LOWpython/ray/experimental/__init__.py2CODE
LOWpython/ray/experimental/__init__.py2CODE
LOWpython/ray/experimental/__init__.py3CODE
LOWpython/ray/experimental/__init__.py3CODE
LOWpython/ray/experimental/__init__.py3CODE
2676 more matches not shown…
Over-Commented Block2941 hits · 2444 pts
SeverityFileLineSnippetContext
LOW.vale.ini21Google.Headings = NoCOMMENT
LOW.vale.ini61# Not enforced yet, same as the KubeRay block above: Vale never runs these in CI.COMMENT
LOW.vale.ini81# Not enforced yet, same as the KubeRay and RLlib blocks above: Vale never runs these inCOMMENT
LOW.vale.ini101# run Vale on Ray Train pages by hand during the style pass:COMMENT
LOW.readthedocs.yaml1# .readthedocs.yamlCOMMENT
LOW.readthedocs.yaml21 # Code sources (python/ray/) are intentionally not matched, so aCOMMENT
LOW.readthedocs.yaml61 echo "Doc-affecting files changed; building docs. Changed doc-relevant paths:"COMMENT
LOW.readthedocs.yaml81 # fails the whole docs build. pip defaults to 5 retries with exponentialCOMMENT
LOW.readthedocs.yaml101 # This job used to pin SPHINX_JOBS=2 (#65643). The builder has aCOMMENT
LOWpython/requirements_compiled_py3.14.txt1--extra-index-url https://download.pytorch.org/whl/cpuCOMMENT
LOWpython/requirements_compiled_py3.14.txt21 # viaCOMMENT
LOWpython/requirements_compiled_py3.14.txt41 # viaCOMMENT
LOWpython/requirements_compiled_py3.14.txt61aiorwlock==1.5.1COMMENT
LOWpython/requirements_compiled_py3.14.txt81antlr4-python3-runtime==4.13.2COMMENT
LOWpython/requirements_compiled_py3.14.txt101argon2-cffi==25.1.0COMMENT
LOWpython/requirements_compiled_py3.14.txt121async-generator==1.10COMMENT
LOWpython/requirements_compiled_py3.14.txt141 # via -r python/requirements/ml/data-test-requirements.txtCOMMENT
LOWpython/requirements_compiled_py3.14.txt161 # azure-cli-coreCOMMENT
LOWpython/requirements_compiled_py3.14.txt181 # azure-mgmt-resourceCOMMENT
LOWpython/requirements_compiled_py3.14.txt201 # -r python/requirements/test-requirements.txtCOMMENT
LOWpython/requirements_compiled_py3.14.txt221boltons==21.0.0COMMENT
LOWpython/requirements_compiled_py3.14.txt241 # -r python/requirements/cloud-requirements.txtCOMMENT
LOWpython/requirements_compiled_py3.14.txt261 # pyicebergCOMMENT
LOWpython/requirements_compiled_py3.14.txt281 # cryptographyCOMMENT
LOWpython/requirements_compiled_py3.14.txt301 # click-didyoumeanCOMMENT
LOWpython/requirements_compiled_py3.14.txt321click-plugins==1.1.1.2COMMENT
LOWpython/requirements_compiled_py3.14.txt341 # pymooCOMMENT
LOWpython/requirements_compiled_py3.14.txt361 # ipywidgetsCOMMENT
LOWpython/requirements_compiled_py3.14.txt381 # azure-cli-coreCOMMENT
LOWpython/requirements_compiled_py3.14.txt401cython==0.29.37COMMENT
LOWpython/requirements_compiled_py3.14.txt421decorator==5.2.1COMMENT
LOWpython/requirements_compiled_py3.14.txt441 # viaCOMMENT
LOWpython/requirements_compiled_py3.14.txt461 # -r python/requirements.txtCOMMENT
LOWpython/requirements_compiled_py3.14.txt481et-xmlfile==2.0.0COMMENT
LOWpython/requirements_compiled_py3.14.txt501 # viaCOMMENT
LOWpython/requirements_compiled_py3.14.txt521 # huggingface-hubCOMMENT
LOWpython/requirements_compiled_py3.14.txt541 # via matplotlibCOMMENT
LOWpython/requirements_compiled_py3.14.txt561 # evaluateCOMMENT
LOWpython/requirements_compiled_py3.14.txt581 # via gitpythonCOMMENT
LOWpython/requirements_compiled_py3.14.txt601 # via -r python/requirements/test-requirements.txtCOMMENT
LOWpython/requirements_compiled_py3.14.txt621 # google-api-python-clientCOMMENT
LOWpython/requirements_compiled_py3.14.txt641 # viaCOMMENT
LOWpython/requirements_compiled_py3.14.txt661 # viaCOMMENT
LOWpython/requirements_compiled_py3.14.txt681grpcio==1.76.0COMMENT
LOWpython/requirements_compiled_py3.14.txt701grpcio-tools==1.76.0COMMENT
LOWpython/requirements_compiled_py3.14.txt721 # kerasCOMMENT
LOWpython/requirements_compiled_py3.14.txt741 # google-api-python-clientCOMMENT
LOWpython/requirements_compiled_py3.14.txt761huggingface-hub==1.33.0COMMENT
LOWpython/requirements_compiled_py3.14.txt781 # viaCOMMENT
LOWpython/requirements_compiled_py3.14.txt801 # mlflow-skinnyCOMMENT
LOWpython/requirements_compiled_py3.14.txt821isodate==0.7.2COMMENT
LOWpython/requirements_compiled_py3.14.txt841 # jaxCOMMENT
LOWpython/requirements_compiled_py3.14.txt861 # torch-geometricCOMMENT
LOWpython/requirements_compiled_py3.14.txt881jsonpath-ng==1.8.0COMMENT
LOWpython/requirements_compiled_py3.14.txt901jsonschema-path==0.3.4COMMENT
LOWpython/requirements_compiled_py3.14.txt921jupyter-events==0.12.1COMMENT
LOWpython/requirements_compiled_py3.14.txt941jupyterlab-widgets==3.0.16COMMENT
LOWpython/requirements_compiled_py3.14.txt961 # -r python/requirements/ml/data-requirements.txtCOMMENT
LOWpython/requirements_compiled_py3.14.txt981llvmlite==0.47.0COMMENT
LOWpython/requirements_compiled_py3.14.txt1001 # via alembicCOMMENT
2881 more matches not shown…
Self-Referential Comments799 hits · 2307 pts
SeverityFileLineSnippetContext
MEDIUMpython/setup.py636 # Create the target directory if it doesn't already exist.COMMENT
MEDIUMpython/ray/cluster_utils.py249 # Create a new global state accessor for fetching GCS table.COMMENT
MEDIUMpython/ray/actor.py1284 # Create an instance without __init__ called.COMMENT
MEDIUMpython/ray/runtime_env/runtime_env.py160 """This class is used to define a runtime environment for a job, task,STRING
MEDIUMpython/ray/experimental/shuffle.py42 """This class is used to stream shuffle map outputs to the object store.STRING
MEDIUM…thon/ray/experimental/channel/shared_memory_channel.py720 # Create a local channel for the writer and the local readers.COMMENT
MEDIUMpython/ray/experimental/channel/common.py36 """This function is only useful when f contains channel read/write.STRING
MEDIUM…perimental/channel/torch_tensor_accelerator_channel.py136 # Create a CPU channel to send non-tensor data.COMMENT
MEDIUMpython/ray/experimental/sandbox/_internal/overlayfs.py687 # Define a helper function to check if a given mount is inside anotherCOMMENT
MEDIUM⚡…/experimental/sandbox/tests/test_checkpoint_restore.py958 # Create a symlink pointing to an absolute external/host file (e.g. /etc/passwd or /dev/null)COMMENT
MEDIUM…erimental/sandbox/http/_proto/sandbox_exec_pb2_grpc.py159 # This class is part of an EXPERIMENTAL API.COMMENT
MEDIUM…mental/sandbox/http/_proto/sandbox_control_pb2_grpc.py256 # This class is part of an EXPERIMENTAL API.COMMENT
MEDIUMpython/ray/experimental/rdt/cuda_ipc_transport.py77 # Create an interprocess-shareable CUDA event so that the receiverCOMMENT
MEDIUMpython/ray/llm/_internal/common/utils/cloud_utils.py530 # Create a single cache instance for this functionCOMMENT
MEDIUMpython/ray/llm/_internal/common/utils/download_utils.py277 # Create the torch cache kernels directory if it doesn't exist.COMMENT
MEDIUM…al/common/utils/cloud_filesystem/pyarrow_filesystem.py145 # Create the adlfs filesystemCOMMENT
MEDIUM…/ray/llm/_internal/batch/stages/sglang_engine_stage.py263 # Create an LLM engine.COMMENT
MEDIUMpython/ray/llm/_internal/serve/core/ingress/ingress.py210 # Create a new class that inherits from the original to avoid modifying itCOMMENT
MEDIUMpython/ray/llm/_internal/serve/core/ingress/utils.py118 # Create a new generator that yields the peeked item firstCOMMENT
MEDIUMpython/ray/llm/_internal/serve/utils/registry.py74 # Create a loader callable that imports on demandCOMMENT
MEDIUMpython/ray/llm/_internal/serve/utils/registry.py100 # Create a registry for a component categorySTRING
MEDIUMpython/ray/llm/_internal/serve/utils/registry.py151 # Create a loader callable (handles both direct values and string paths)COMMENT
MEDIUM⚡…_internal/serve/observability/usage_telemetry/usage.py83 """This method is only used in tests to record the telemetry tags to a differentSTRING
MEDIUM⚡…_internal/serve/observability/usage_telemetry/usage.py88 """This method is only used in tests to clean up the models list."""STRING
MEDIUMpython/ray/llm/tests/conftest.py244 # Create a vLLM serve deploymentSTRING
MEDIUMpython/ray/llm/tests/common/cloud/test_s3_filesystem.py344 # Create a test fileCOMMENT
MEDIUM⚡python/ray/llm/tests/common/cloud/test_s3_filesystem.py365 # Create a test fileCOMMENT
MEDIUM…y/llm/tests/batch/gpu/stages/test_vllm_engine_stage.py27 # Create a mock instance that will be returned by the wrapper classCOMMENT
MEDIUM…/tests/batch/gpu/stages/test_serve_deployment_stage.py69 # Create a mock response that will be returned directlyCOMMENT
MEDIUM…llm/tests/batch/gpu/stages/test_sglang_engine_stage.py23 # Create a mock instance that will be returned by the wrapper classCOMMENT
MEDIUM…llm/tests/batch/gpu/stages/test_sglang_engine_stage.py90 # Create a mock SGLang outputCOMMENT
MEDIUM…llm/tests/batch/gpu/stages/test_sglang_engine_stage.py265 # Create a task type that doesn't exist in the prepare_llm_request methodCOMMENT
MEDIUM…/llm/tests/batch/cpu/stages/test_http_request_stage.py99 # Create a fake sessionCOMMENT
MEDIUM⚡python/ray/llm/tests/serve/conftest.py124 # Create a mock audio file for testingCOMMENT
MEDIUM⚡python/ray/llm/tests/serve/conftest.py129 # Create a simple mock audio file (WAV format)COMMENT
MEDIUM…llm/tests/serve/cpu/deployments/routers/test_router.py551 # Create a mock deployment handle that captures raw_request_infoCOMMENT
MEDIUM…llm/tests/serve/cpu/deployments/routers/test_router.py587 # Create a mock FastAPI requestCOMMENT
MEDIUM…e/cpu/deployments/routers/test_make_fastapi_ingress.py29 # Create the ingress class - should not raiseCOMMENT
MEDIUM…llm/tests/serve/cpu/deployments/llm/test_llm_server.py335 # Create a server with a mocked engineCOMMENT
MEDIUM…llm/tests/serve/cpu/deployments/llm/test_llm_server.py358 # Create a server with a mocked engineCOMMENT
MEDIUM…llm/tests/serve/cpu/deployments/llm/test_llm_server.py381 # Create a server with a mocked engineCOMMENT
MEDIUM…llm/tests/serve/cpu/deployments/llm/test_llm_server.py404 # Create a server with a mocked engineCOMMENT
MEDIUM…llm/tests/serve/cpu/deployments/llm/test_llm_server.py435 # Create a chat completion requestCOMMENT
MEDIUM…loyments/llm/vllm/kv_transfer_backends/test_factory.py40 # Create a Serve deployment that will run in a different process than theCOMMENT
MEDIUM…/cpu/deployments/llm/multiplex/test_multiplex_utils.py32 # Create a mock that raises ValueError twice then succeedsCOMMENT
MEDIUM…/cpu/deployments/llm/multiplex/test_multiplex_utils.py52 # Create a mock that always raises ValueErrorCOMMENT
MEDIUM…/cpu/deployments/llm/multiplex/test_multiplex_utils.py74 # Create a mock that raises TypeErrorCOMMENT
MEDIUM…/cpu/deployments/llm/multiplex/test_multiplex_utils.py96 # Create a mock that always raises ValueErrorCOMMENT
MEDIUM…/cpu/deployments/llm/multiplex/test_multiplex_utils.py121 # Create a mock that always raises ValueErrorCOMMENT
MEDIUM⚡…/cpu/deployments/llm/multiplex/test_multiplex_utils.py146 # Define a function with docstring and nameCOMMENT
MEDIUM…pu/deployments/llm/multiplex/test_lora_model_loader.py56 # Create a simple mock for sync_modelCOMMENT
MEDIUM…pu/deployments/llm/multiplex/test_lora_model_loader.py93 # Create a mock for sync_files_with_lock that tracks calls and fails initiallyCOMMENT
MEDIUM…pu/deployments/llm/multiplex/test_lora_model_loader.py140 # Create a mock for sync_files_with_lock that tracks calls and fails initiallyCOMMENT
MEDIUM…lm/tests/serve/cpu/deployments/utils/test_broadcast.py11# Define a simple deployment for testingCOMMENT
MEDIUMpython/ray/util/tracing/setup_tempo_tracing.py1# This file is intended for examples exporting traces to a local OTLP listenerCOMMENT
MEDIUM…ective/collective_group/torch_gloo_collective_group.py106 # Create a subgroup for this logical group. For the default group, use WORLD.COMMENT
MEDIUMpython/ray/util/state/state_cli.py253 # Create a table.STRING
MEDIUMpython/ray/util/state/state_cli.py296 # Create a table per callsite.STRING
MEDIUMpython/ray/util/state/state_cli.py453 # Create the State API server and put it into contextSTRING
MEDIUMpython/ray/util/state/state_cli.py604 # Create the State API server and put it into contextSTRING
739 more matches not shown…
Docstring Block Structure469 hits · 2202 pts
SeverityFileLineSnippetContext
HIGHpython/ray/remote_function.py203Configures and overrides the task invocation parameters. The arguments are the same as those that can be passedSTRING
HIGHpython/ray/cluster_utils.py446Waits for correct number of nodes to be registered. This will wait until the number of live nodes in the clientSTRING
HIGHpython/ray/actor.py948Convenience method for executing an actor method call with options. Same arguments as func._remote(), but returSTRING
HIGHpython/ray/actor.py1732Configures and overrides the actor instantiation parameters. The arguments are the same as those that can be paSTRING
HIGHpython/ray/actor.py2611Handle dynamic attribute access for actor methods. This method is called when accessing attributes that don't eSTRING
HIGHpython/ray/actor.py2844Run a closure remotely on this actor instance. Provides a standard way to execute an arbitrary callable on STRING
HIGHpython/ray/job_config.py282Generates a JobConfig object from json. Examples: .. testcode:: from ray.job_confiSTRING
HIGHpython/ray/experimental/locations.py10Lookup the locations for a list of objects. It returns a dict maps from an object to its location. The dict excludeSTRING
HIGHpython/ray/experimental/locations.py48Lookup the locations for a list of objects *from the local core worker*. No RPCs are made in this method. It reSTRING
HIGHpython/ray/experimental/sandbox/config.py92Split an egress allowlist entry into its destination and port range. An entry is a destination with an optional porSTRING
HIGHpython/ray/experimental/sandbox/config.py151Validate egress allowlist entries and return them in canonical form. Every entry is an IPv4 or IPv6 address or netwSTRING
HIGHpython/ray/experimental/sandbox/image_manager.py296Path of the cached image's EROFS root filesystem. Args: image: Container image name or tar path. STRING
HIGH…thon/ray/experimental/sandbox/_internal/image_utils.py247Answer a registry's authentication challenge for pulling ``repo``. An anonymous manifest request shows whether, andSTRING
HIGH…thon/ray/experimental/sandbox/_internal/image_utils.py386Resolve ``rel`` under ``root`` the way a sandbox rooted there would. Every symlink met along the way is followed wiSTRING
HIGH…thon/ray/experimental/sandbox/_internal/image_utils.py1333Flatten ``image`` into ``rootfs_dir`` and return its recorded owners. ``image`` is a local tar archive or a registrSTRING
HIGHpython/ray/experimental/sandbox/_internal/overlayfs.py297How this process mounts an overlayfs sandbox's EROFS image, given the user namespace ``UserNamespaceType.detect`STRING
HIGHpython/ray/experimental/sandbox/_internal/overlayfs.py734Create an overlayfs sandbox's overlay directories in its bundle, and return the RootfsOverlay that mounts its kernelSTRING
HIGH…hon/ray/experimental/sandbox/_internal/egress_guard.py22Every address ``host`` names, as single-address networks. Args: host: An IPv4 or IPv6 address, or a host naSTRING
HIGH…on/ray/experimental/sandbox/_internal/docker_config.py76Look up a registry's credentials the way the Docker CLI does. The config file is read on every call, so a mounted fSTRING
HIGHpython/ray/experimental/sandbox/backend/gvisor.py320Render the nftables ruleset that restricts a sandbox's egress to ``cidrs``. The ruleset is one transaction: ``flushSTRING
HIGHpython/ray/experimental/sandbox/backend/gvisor.py394Write the egress ruleset for ``cidrs`` into ``root_dir`` atomically. The denylist is read afresh, so each write alsSTRING
HIGHpython/ray/experimental/sandbox/backend/gvisor.py1200Turn ``user`` into the numeric ``uid[:gid]`` form runsc exec accepts. Names resolve against the ``/etc/passwd``STRING
HIGH…n/ray/experimental/sandbox/backend/checkpoint_utils.py264Build the SandboxConfig for a restored sandbox from manifest metadata. The restored sandbox keeps the checkpointed STRING
HIGHpython/ray/experimental/sandbox/http/app.py580Ray Serve application builder. Usable directly with ``serve run`` (builder args become :class:`SandboxAPISettinSTRING
HIGHpython/ray/experimental/rdt/tensor_transport_manager.py224Wait for a previously initiated fetch to complete and return the tensors. The default implementation returns thSTRING
HIGHpython/ray/experimental/rdt/rdt_manager.py903 Fetch and get RDT objects for a list of object IDs, pipelining async fetches. This is used in the ray.STRING
HIGHpython/ray/experimental/rdt/nixl_tensor_transport.py558Waits for a previously initiated fetch to complete and returns the tensors. Args: fetch_request: ThSTRING
HIGHpython/ray/experimental/rdt/nixl_memory_pool.py214Pack tensors into as few contiguous pool blocks as possible. Copies only each tensor's own bytes (numel * elemeSTRING
HIGHpython/ray/llm/_internal/common/utils/cloud_utils.py148Get the appropriate provider-specific filesystem class based on URI. Args: bucket_uri: URI of the cSTRING
HIGHpython/ray/llm/_internal/common/utils/import_utils.py11Try importing the module and returns the module (or None). Args: name: The name of the module to import. STRING
HIGH…nternal/common/utils/cloud_filesystem/s3_filesystem.py45Parse S3 URI into bucket and key. Args: uri: S3 URI (e.g., s3://bucket/path/to/object or s3://anonySTRING
HIGH…al/common/utils/cloud_filesystem/pyarrow_filesystem.py81Create an Azure filesystem for Azure Blob Storage or ABFSS. Args: object_uri: Azure URI (azure://coSTRING
HIGHpython/ray/llm/_internal/batch/benchmark/dataset.py41Sample prompts from the loaded dataset. Args: num_requests: The number of prompts to sample from thSTRING
HIGHpython/ray/llm/_internal/batch/stages/base.py107A stage UDF wrapper that processes the input and output columns before and after the UDF. The expected STRING
HIGHpython/ray/llm/_internal/batch/processor/base.py78Return a normalized dict of worker pool parameters from `self.concurrency`. Behavior: - If `concurrencySTRING
HIGH…rnal/serve/serving_patterns/data_parallel/dp_server.py72Retrieve the DP master info for gang_id, polling until available. Args: gang_id: The ID of the gangSTRING
HIGHpython/ray/llm/_internal/serve/core/ingress/ingress.py178Create a Ray Serve ingress deployment from a class and endpoint mapping. Args: cls: The class to convert inSTRING
HIGHpython/ray/llm/_internal/serve/core/engine/protocol.py59Run a ChatCompletion with the engine. To implement this method, you need to take a openAI compatible chat requeSTRING
HIGHpython/ray/llm/_internal/serve/core/engine/protocol.py88Run a Completion with the engine. Similar to chat, this method is an async generator, so it yields chunks STRING
HIGHpython/ray/llm/_internal/serve/core/engine/protocol.py149Run a Transcription with the engine. Similar to chat and completion, this method is an async generator, STRING
HIGHpython/ray/llm/_internal/serve/core/engine/protocol.py181Tokenize the input text. This method tokenizes the input prompt or chat messages and returns the token STRING
HIGHpython/ray/llm/_internal/serve/core/engine/protocol.py205Detokenize the input token IDs. This method converts token IDs back into text. Args: requeSTRING
HIGHpython/ray/llm/_internal/serve/utils/registry.py52Create a loader callable for a value. Handles both direct objects/classes and string paths for lazy loading. ASTRING
HIGHpython/ray/llm/_internal/serve/utils/registry.py126Register a component. Args: name: The name to register under value: The component to reSTRING
HIGHpython/ray/llm/_internal/serve/utils/registry.py176Get a registered component. Args: name: The name of the component Returns: TheSTRING
HIGH…lm/_internal/serve/engines/vllm/kv_transfer/factory.py57Get the connector backend class by name. For registered connectors, returns the registered backend class. STRING
HIGH…rnal/serve/routing_policies/kv_aware/vllm/tokenizer.py134Tokenize a request ``payload`` into prompt token IDs. Args: payload: The request body, already parsSTRING
HIGH…e/routing_policies/prefix_aware/prefix_aware_router.py141Extracts the text content from a pending request for prefix matching. Searches through request arguments for eiSTRING
HIGHpython/ray/util/queue.py156Gets an item from the queue. If block is True and the queue is empty, blocks until the queue is no longSTRING
HIGHpython/ray/util/queue.py193Gets an item from the queue. There is no guarantee of order if multiple consumers get from the same empSTRING
HIGHpython/ray/util/queue.py261Gets items from the queue and returns them in a list in order. Args: num_items: Number of iSTRING
HIGHpython/ray/util/iter.py86Create a parallel iterator from a list of iterables. An iterable can be a conatiner (list, str, tuple, set, etc.), STRING
HIGHpython/ray/util/iter.py233Remotely transform the iterator. This is advanced version of for_each that allows you to apply arbitrary STRING
HIGHpython/ray/util/iter.py266Remotely apply fn to each item in this iterator. If `max_concurrency` == 1 then `fn` will be executed serially STRING
HIGHpython/ray/util/iter.py310Remotely filter items from this iterator. Args: fn: returns False for items to drop from the iteratSTRING
HIGHpython/ray/util/iter.py327Remotely batch together items in this iterator. Args: n: Number of items to batch together. STRING
HIGHpython/ray/util/iter.py367Remotely shuffle items of each shard independently Args: shuffle_buffer_size: The algorithm fills aSTRING
HIGHpython/ray/util/iter.py404Returns a new ParallelIterator instance with num_partitions shards. The new iterator contains the same data in STRING
HIGHpython/ray/util/iter.py558Returns a local iterable for asynchronous iteration. New items will be fetched from the shards asynchronously aSTRING
HIGHpython/ray/util/placement_group.py137Asynchronously creates a PlacementGroup. Args: bundles: A list of bundles which represent the rSTRING
409 more matches not shown…
Empty Error Handlers407 hits · 2025 pts
SeverityFileLineSnippetContext
HIGHpython/setup.py19except ImportError:CODE
HIGHpython/ray/setup-dev.py56except FileNotFoundError:CODE
HIGHpython/ray/exceptions.py834except Exception:CODE
HIGHpython/ray/actor.py2480except AttributeError:CODE
HIGHpython/ray/actor.py1996except ValueError: # Name is not taken.CODE
HIGHpython/ray/actor.py1924except ActorAlreadyExistsError:CODE
HIGHpython/ray/experimental/collective/collective.py193except ray.exceptions.ActorDiedError:CODE
HIGHpython/ray/experimental/channel/common.py482except ray.exceptions.RayChannelTimeoutError:CODE
HIGHpython/ray/experimental/sandbox/__init__.py223except (ValueError, TypeError):CODE
HIGHpython/ray/experimental/sandbox/runtime.py183except Exception:CODE
HIGHpython/ray/experimental/sandbox/sandbox.py148except Exception:CODE
HIGHpython/ray/experimental/sandbox/sandbox.py91except Exception:CODE
HIGH…thon/ray/experimental/sandbox/_internal/image_utils.py718except OSError:CODE
HIGH…thon/ray/experimental/sandbox/_internal/image_utils.py935except OSError:CODE
HIGH…thon/ray/experimental/sandbox/_internal/image_utils.py612except OSError:CODE
HIGH…thon/ray/experimental/sandbox/_internal/image_utils.py748except OSError:CODE
HIGH…thon/ray/experimental/sandbox/_internal/image_utils.py770except OSError:CODE
HIGH…thon/ray/experimental/sandbox/_internal/image_utils.py779except OSError:CODE
HIGH…thon/ray/experimental/sandbox/_internal/image_utils.py826except BrokenPipeError:CODE
HIGH…thon/ray/experimental/sandbox/_internal/image_utils.py837except BrokenPipeError:CODE
HIGH…thon/ray/experimental/sandbox/_internal/image_utils.py1226except Exception:CODE
HIGH…thon/ray/experimental/sandbox/_internal/image_utils.py562except OSError:CODE
HIGH…thon/ray/experimental/sandbox/_internal/image_utils.py1051except OSError:CODE
HIGH…thon/ray/experimental/sandbox/_internal/image_utils.py1091except OSError:CODE
HIGH…thon/ray/experimental/sandbox/_internal/image_utils.py530except OSError:CODE
HIGH…thon/ray/experimental/sandbox/_internal/image_utils.py516except OSError:CODE
HIGH…thon/ray/experimental/sandbox/_internal/image_utils.py576except OSError:CODE
HIGH…thon/ray/experimental/sandbox/_internal/image_utils.py497except OSError:CODE
HIGH…thon/ray/experimental/sandbox/_internal/image_utils.py593except OSError:CODE
HIGHpython/ray/experimental/sandbox/_internal/overlayfs.py278except OSError:CODE
HIGH…/ray/experimental/sandbox/tests/test_gvisor_backend.py1245except OSError:CODE
HIGH…/ray/experimental/sandbox/tests/test_gvisor_backend.py1781except OSError:CODE
HIGHpython/ray/experimental/sandbox/backend/gvisor.py310except OSError:CODE
HIGHpython/ray/experimental/sandbox/backend/gvisor.py2032except (subprocess.TimeoutExpired, OSError):CODE
HIGHpython/ray/experimental/sandbox/backend/gvisor.py2283except (subprocess.TimeoutExpired, ValueError):CODE
HIGHpython/ray/experimental/sandbox/backend/gvisor.py424except OSError:CODE
HIGHpython/ray/experimental/sandbox/backend/gvisor.py999except subprocess.TimeoutExpired:CODE
HIGHpython/ray/experimental/sandbox/backend/gvisor.py1314except OSError:CODE
HIGHpython/ray/experimental/sandbox/backend/gvisor.py1349except (OSError, subprocess.TimeoutExpired):CODE
HIGHpython/ray/experimental/sandbox/backend/gvisor.py1369except (OSError, subprocess.TimeoutExpired):CODE
HIGHpython/ray/experimental/sandbox/backend/gvisor.py1750except subprocess.TimeoutExpired:CODE
HIGHpython/ray/experimental/sandbox/backend/gvisor.py1758except Exception:CODE
HIGHpython/ray/experimental/sandbox/backend/gvisor.py1790except FileNotFoundError:CODE
HIGHpython/ray/experimental/sandbox/backend/gvisor.py1012except Exception:CODE
HIGHpython/ray/experimental/sandbox/backend/gvisor.py2429except (OSError, subprocess.TimeoutExpired):CODE
HIGHpython/ray/experimental/sandbox/backend/gvisor.py2445except OSError:CODE
HIGH…n/ray/experimental/sandbox/backend/checkpoint_utils.py94except Exception:CODE
HIGH…n/ray/experimental/sandbox/backend/checkpoint_utils.py472except OSError:CODE
HIGHpython/ray/experimental/sandbox/http/host.py532except asyncio.TimeoutError:CODE
HIGHpython/ray/experimental/sandbox/http/host.py675except asyncio.TimeoutError:CODE
HIGHpython/ray/experimental/sandbox/http/app.py450except _ApiError:CODE
HIGHpython/ray/experimental/rdt/util.py113except ImportError:CODE
HIGHpython/ray/experimental/rdt/rdt_manager.py442except ValueError:CODE
HIGHpython/ray/experimental/rdt/rdt_manager.py954except TimeoutError:CODE
HIGHpython/ray/experimental/rdt/rdt_store.py135except AssertionError:CODE
HIGHpython/ray/llm/_internal/common/errors.py13except ImportError:CODE
HIGHpython/ray/llm/_internal/common/errors.py24except ImportError:CODE
HIGHpython/ray/llm/_internal/common/utils/lora_utils.py62except FileNotFoundError:CODE
HIGH…nal/serve/serving_patterns/prefill_decode/pd_server.py480except asyncio.CancelledError:CODE
HIGHpython/ray/llm/_internal/serve/utils/batcher.py109except asyncio.QueueEmpty:CODE
347 more matches not shown…
Excessive Try-Catch Wrapping1680 hits · 1755 pts
SeverityFileLineSnippetContext
LOWpython/ray/client_builder.py367 except Exception as e:CODE
MEDIUMpython/ray/setup-dev.py146 print("Error: --skip and --allow cannot be used together.")CODE
LOWpython/ray/exceptions.py51 except Exception:CODE
LOWpython/ray/exceptions.py314 except Exception as e:CODE
LOWpython/ray/exceptions.py834 except Exception:CODE
LOWpython/ray/actor.py1646 except Exception as e:CODE
MEDIUMpython/ray/actor.py1643def __init__(self, *args, **kwargs):CODE
LOWpython/ray/experimental/shuffle.py319 except Exception:CODE
LOWpython/ray/experimental/compiled_dag_ref.py139 except Exception as execution_error:CODE
LOWpython/ray/experimental/compiled_dag_ref.py145 except Exception:CODE
LOWpython/ray/experimental/sandbox/image_manager.py344 except Exception as err:CODE
LOWpython/ray/experimental/sandbox/runtime.py65 except Exception as err:CODE
LOWpython/ray/experimental/sandbox/runtime.py183 except Exception:CODE
LOWpython/ray/experimental/sandbox/sandbox.py91 except Exception:CODE
LOWpython/ray/experimental/sandbox/sandbox.py148 except Exception:CODE
MEDIUMpython/ray/experimental/sandbox/sandbox.py145def __del__(self):CODE
LOW…thon/ray/experimental/sandbox/_internal/image_utils.py345 except Exception as auth_err:CODE
LOW…thon/ray/experimental/sandbox/_internal/image_utils.py357 except Exception as err:CODE
LOW…thon/ray/experimental/sandbox/_internal/image_utils.py1125 except Exception as err:CODE
LOW…thon/ray/experimental/sandbox/_internal/image_utils.py1190 except Exception:CODE
LOW…thon/ray/experimental/sandbox/_internal/image_utils.py1226 except Exception:CODE
LOW…thon/ray/experimental/sandbox/_internal/image_utils.py1357 except Exception as err:CODE
LOW…thon/ray/experimental/sandbox/_internal/image_utils.py1435 except Exception as e:CODE
LOW…thon/ray/experimental/sandbox/_internal/image_utils.py1455 except Exception as err:CODE
LOW…thon/ray/experimental/sandbox/_internal/image_utils.py1476 except Exception:CODE
LOWpython/ray/experimental/sandbox/_internal/cgroup.py267 except Exception:CODE
LOWpython/ray/experimental/sandbox/tests/conftest.py72 except Exception as e:CODE
LOWpython/ray/experimental/sandbox/tests/conftest.py89 except Exception as e:CODE
MEDIUM…/ray/experimental/sandbox/tests/test_gvisor_backend.py2889def run(sb, name):CODE
LOW…/ray/experimental/sandbox/tests/test_gvisor_backend.py2894 except Exception as exc: # surfaced in the main thread belowCODE
MEDIUMpython/ray/experimental/sandbox/backend/gvisor.py2363def _reclaim_in_background(self) -> None:CODE
LOW⚡python/ray/experimental/sandbox/backend/gvisor.py1592 except Exception as restore_err:CODE
LOW⚡python/ray/experimental/sandbox/backend/gvisor.py1987 except Exception as err:CODE
LOWpython/ray/experimental/sandbox/backend/gvisor.py511 except Exception as err:CODE
LOWpython/ray/experimental/sandbox/backend/gvisor.py581 except Exception as err:CODE
LOWpython/ray/experimental/sandbox/backend/gvisor.py637 except Exception as err:CODE
LOWpython/ray/experimental/sandbox/backend/gvisor.py712 except Exception as err:CODE
LOWpython/ray/experimental/sandbox/backend/gvisor.py819 except Exception as err:CODE
LOWpython/ray/experimental/sandbox/backend/gvisor.py924 except Exception:CODE
LOWpython/ray/experimental/sandbox/backend/gvisor.py957 except Exception as err:CODE
LOWpython/ray/experimental/sandbox/backend/gvisor.py977 except Exception:CODE
LOWpython/ray/experimental/sandbox/backend/gvisor.py1012 except Exception:CODE
LOWpython/ray/experimental/sandbox/backend/gvisor.py1083 except Exception as err:CODE
LOWpython/ray/experimental/sandbox/backend/gvisor.py1309 except Exception as err:CODE
LOWpython/ray/experimental/sandbox/backend/gvisor.py1704 except Exception as err:CODE
LOWpython/ray/experimental/sandbox/backend/gvisor.py1758 except Exception:CODE
LOWpython/ray/experimental/sandbox/backend/gvisor.py2366 except Exception:CODE
LOWpython/ray/experimental/sandbox/backend/gvisor.py2391 except Exception:CODE
LOWpython/ray/experimental/sandbox/backend/gvisor.py421 except Exception:STRING
LOW…n/ray/experimental/sandbox/backend/checkpoint_utils.py94 except Exception:CODE
LOW…n/ray/experimental/sandbox/backend/checkpoint_utils.py383 except Exception as e:CODE
LOW…n/ray/experimental/sandbox/backend/checkpoint_utils.py394 except Exception as e:CODE
LOW…n/ray/experimental/sandbox/backend/checkpoint_utils.py491 except Exception:CODE
LOW…n/ray/experimental/sandbox/backend/checkpoint_utils.py495 except Exception as rollback_err:CODE
LOWpython/ray/experimental/sandbox/http/grpc_facade.py341 except Exception as exc:CODE
LOWpython/ray/experimental/sandbox/http/grpc_facade.py357 except Exception as exc:CODE
LOWpython/ray/experimental/sandbox/http/grpc_facade.py802 except Exception as exc:CODE
LOWpython/ray/experimental/sandbox/http/host.py376 except Exception as exc:CODE
LOWpython/ray/experimental/sandbox/http/host.py411 except Exception:CODE
LOWpython/ray/experimental/sandbox/http/host.py448 except Exception as exc:CODE
1620 more matches not shown…
Cross-Language Confusion314 hits · 1698 pts
SeverityFileLineSnippetContext
HIGHpython/ray/experimental/sandbox/_internal/overlayfs.py432 'kill -0 "$fuse" 2>/dev/null || break; 'CODE
HIGHpython/ray/experimental/sandbox/_internal/overlayfs.py469 '{ chown --reference="$tmpfs/lower" "$tmpfs/upper" 2>/dev/null || true; }',CODE
HIGHpython/ray/experimental/sandbox/_internal/overlayfs.py587 f"read -r -t {_READY_TIMEOUT_SECONDS} _ <&3 || exit 1; "CODE
HIGH⚡…/experimental/sandbox/tests/test_checkpoint_restore.py958 # Create a symlink pointing to an absolute external/host file (e.g. /etc/passwd or /dev/null)COMMENT
HIGHpython/ray/experimental/sandbox/tests/test_overlayfs.py254 f"read -r -t {overlayfs._READY_TIMEOUT_SECONDS} _ <&3 || exit 1; "CODE
HIGH⚡…/ray/experimental/sandbox/tests/test_gvisor_backend.py702 "touch /probe && chown 38:38 /probe && stat -c %u:%g /probe && "CODE
HIGH⚡…/ray/experimental/sandbox/tests/test_gvisor_backend.py703 "adduser -D -u 1234 alice && mkdir -p /srv/lists && touch /srv/lists/cfg && "CODE
HIGH⚡…/ray/experimental/sandbox/tests/test_gvisor_backend.py704 "chown -R alice:alice /srv/lists && stat -c %u:%g /srv/lists/cfg && "CODE
HIGH⚡…/ray/experimental/sandbox/tests/test_gvisor_backend.py705 "mkdir /srv/shared && chown 0:104 /srv/shared && chmod 2770 /srv/shared && "CODE
HIGH⚡…/ray/experimental/sandbox/tests/test_gvisor_backend.py706 "touch /srv/shared/post && stat -c %g /srv/shared/post",CODE
HIGH⚡…/ray/experimental/sandbox/tests/test_gvisor_backend.py742 "touch /x 2>/dev/null; test ! -e /x && echo ro && echo hi > /tmp/x && cat /tmp/x",CODE
HIGH⚡…/ray/experimental/sandbox/tests/test_gvisor_backend.py742 "touch /x 2>/dev/null; test ! -e /x && echo ro && echo hi > /tmp/x && cat /tmp/x",CODE
HIGH…/ray/experimental/sandbox/tests/test_gvisor_backend.py252 "/bin/sh -c 'echo ws_ok > /workspace/ws.txt && cat /workspace/ws.txt'",CODE
HIGH…/ray/experimental/sandbox/tests/test_gvisor_backend.py311 "rm /fill && dd if=/dev/zero of=/again bs=1M count=32 && echo ok",CODE
HIGH…/ray/experimental/sandbox/tests/test_gvisor_backend.py523 "echo ws_ok > /workspace/ws.txt && cat /workspace/ws.txt && "CODE
HIGH…/ray/experimental/sandbox/tests/test_gvisor_backend.py524 "echo root_ok > /probe.txt && cat /probe.txt",CODE
HIGH…/ray/experimental/sandbox/tests/test_gvisor_backend.py787 "trap 'kill -KILL ${NSPID:-$HOLDER} $SLIRP 2>/dev/null; wait' EXIT; "CODE
HIGH…/ray/experimental/sandbox/tests/test_gvisor_backend.py1342 res = backend.exec_command(sb, "touch /probe && echo ok")CODE
HIGH…/ray/experimental/sandbox/tests/test_gvisor_backend.py1364 sb, "rm /fill && dd if=/dev/zero of=/again bs=1M count=32 && echo ok"CODE
HIGH…/ray/experimental/sandbox/tests/test_gvisor_backend.py1387 res = backend.exec_command(sb, "touch /probe && ip addr show tap0")CODE
HIGH…/ray/experimental/sandbox/tests/test_gvisor_backend.py2948 res = backend.exec_command(sb, "id -u && id -g", user="alice", timeout=30)CODE
HIGH⚡python/ray/experimental/sandbox/backend/gvisor.py2240 "kill -0 $HOLDER 2>/dev/null || break; sleep 0.1; done; "CODE
HIGH⚡python/ray/experimental/sandbox/backend/gvisor.py2241 f"NSPID=$(cat {netns_pidfile} 2>/dev/null); "CODE
HIGH⚡python/ray/experimental/sandbox/backend/gvisor.py2250 "kill -0 $SLIRP 2>/dev/null || break; sleep 0.1; done; "CODE
HIGHpython/ray/experimental/sandbox/backend/gvisor.py2229 + "trap 'kill -KILL ${NSPID:-$HOLDER} $SLIRP 2>/dev/null; wait' EXIT; "CODE
HIGH…perimental/sandbox/http/tests/test_http_integration.py118 "command": ["sh", "-c", "echo hello-from-sandbox && exit 4"],CODE
HIGHpython/ray/llm/_internal/serve/core/ingress/router.py338 if self._token_sender.push(token_endpoint, key, payload):CODE
HIGH⚡…serve/cpu/deployments/routers/kv/test_token_channel.py81 sender.push("not-a-valid-endpoint", "k", _payload([1, 2])) is FalseCODE
HIGH…serve/cpu/deployments/routers/kv/test_token_channel.py54 if sender.push(endpoint, key, _payload(ids)):CODE
HIGH…serve/cpu/deployments/routers/kv/test_token_channel.py105 assert sender.push(endpoint, "k", _payload([1, 2])) is FalseCODE
HIGH…serve/cpu/deployments/routers/kv/test_token_channel.py127 if not sender.push(endpoint, f"k{i}", _payload([i] * 512)):CODE
HIGHpython/ray/util/timer.py37 self.push(time_delta)CODE
HIGHpython/ray/util/actor_pool.py433 >>> pool.push(a2)STRING
HIGHpython/ray/util/dask/tests/test_dask_scheduler.py94 assert sorted_with_pb.equals(sorted_without_pb)CODE
HIGH⚡python/ray/tests/test_actor_pool.py263 pool.push(a1)CODE
HIGH⚡python/ray/tests/test_actor_pool.py264 pool.push(a2)CODE
HIGH⚡python/ray/tests/test_actor_pool.py271 pool.push(a3)CODE
HIGHpython/ray/tests/accelerators/test_neuron.py43 b'"connected_to":null,"nc_count":2,'CODE
HIGH⚡python/ray/tests/accelerators/test_neuron.py61 b'"connected_to":null,"nc_count":2,'CODE
HIGH⚡python/ray/tests/accelerators/test_neuron.py63 b'{"neuron_device":1,"bdf":"00:1f.0","connected_to":null,'CODE
HIGHpython/ray/tests/modin/modin_test_utils.py90 and df1.columns.equals(df2.columns)CODE
HIGHpython/ray/_private/thirdparty/tabulate/tabulate.py1941 | spam || align="right"| 41.9999STRING
HIGHpython/ray/_private/thirdparty/tabulate/tabulate.py1943 | eggs || align="right"| 451STRING
HIGH⚡…thon/ray/dashboard/tests/test_runtime_env_redaction.py120 '{"env_vars": null}',CODE
HIGHpython/ray/dashboard/modules/job/sdk.py487 ... entrypoint="echo hi && sleep 5 && echo hi2")STRING
HIGH…on/ray/dashboard/modules/job/tests/test_job_manager.py1532 entrypoint=f"{cmd} & {cmd} && wait && echo 'done'"CODE
HIGH⚡…ay/dashboard/modules/job/tests/test_cli_integration.py203 cmd = "sleep 1 && echo hello && sleep 1 && echo hello"CODE
HIGH⚡…ay/dashboard/modules/job/tests/test_cli_integration.py213 cmd = "echo hello && sleep 1000"CODE
HIGH…ay/dashboard/modules/job/tests/test_cli_integration.py274 cmd = "echo hello && sleep 1000"CODE
HIGH…thon/ray/dashboard/modules/job/tests/test_job_agent.py189 "python script.py && python -c 'import pip_install_test'"STRING
HIGH…ay/dashboard/modules/job/tests/test_http_job_server.py340 "python script.py && python -c 'import pip_install_test'"STRING
HIGH…ay/dashboard/modules/job/tests/test_http_job_server.py562 job_id = client.submit_job(entrypoint="sleep 300 && echo hello")STRING
HIGH⚡…rllib/algorithms/tests/test_env_runner_state_server.py19 server.push(state)CODE
HIGH⚡…rllib/algorithms/tests/test_env_runner_state_server.py29 server.push(_state(1))CODE
HIGH⚡…rllib/algorithms/tests/test_env_runner_state_server.py30 server.push(_state(2))CODE
HIGH⚡…rllib/algorithms/tests/test_env_runner_state_server.py41 server.push({"rl_module": "WEIGHTS_OBJ_REF"})CODE
HIGH⚡…rllib/algorithms/tests/test_env_runner_state_server.py53 server.push(state)CODE
HIGH⚡python/ray/rllib/utils/filter.py426 rs.push(x[i])CODE
HIGH⚡python/ray/rllib/utils/filter.py427 buffer.push(x[i])CODE
HIGH⚡python/ray/rllib/utils/filter.py430 rs.push(x)CODE
254 more matches not shown…
Cross-File Repetition307 hits · 1535 pts
SeverityFileLineSnippetContext
HIGHpython/ray/experimental/channel/cpu_communicator.py0return the given actor's rank in the group. args: actor: the actor handle to look up. returns: the rank of ``actor`` witSTRING
HIGHpython/ray/experimental/channel/nccl_group.py0return the given actor's rank in the group. args: actor: the actor handle to look up. returns: the rank of ``actor`` witSTRING
HIGHpython/ray/experimental/channel/communicator.py0return the given actor's rank in the group. args: actor: the actor handle to look up. returns: the rank of ``actor`` witSTRING
HIGH…erimental/sandbox/http/_proto/sandbox_exec_pb2_grpc.py0client and server classes corresponding to protobuf-defined services.STRING
HIGH…mental/sandbox/http/_proto/sandbox_control_pb2_grpc.py0client and server classes corresponding to protobuf-defined services.STRING
HIGH…ate/benchmarks/streaming/_grpc/test_server_pb2_grpc.py0client and server classes corresponding to protobuf-defined services.STRING
HIGH…ve/doc_code/grpc_proxy/user_defined_protos_pb2_grpc.py0client and server classes corresponding to protobuf-defined services.STRING
HIGH…erimental/sandbox/http/_proto/sandbox_exec_pb2_grpc.py0missing associated documentation comment in .proto file.STRING
HIGH…mental/sandbox/http/_proto/sandbox_control_pb2_grpc.py0missing associated documentation comment in .proto file.STRING
HIGH…ate/benchmarks/streaming/_grpc/test_server_pb2_grpc.py0missing associated documentation comment in .proto file.STRING
HIGH…ve/doc_code/grpc_proxy/user_defined_protos_pb2_grpc.py0missing associated documentation comment in .proto file.STRING
HIGHpython/ray/llm/_internal/common/models.py0take a blocking function, and run it on in an executor thread. this function prevents the blocking function from blockinSTRING
HIGHpython/ray/llm/_internal/serve/utils/server_utils.py0take a blocking function, and run it on in an executor thread. this function prevents the blocking function from blockinSTRING
HIGHrelease/llm_tests/serve/probes/util.py0take a blocking function, and run it on in an executor thread. this function prevents the blocking function from blockinSTRING
HIGHpython/ray/llm/_internal/common/utils/cloud_utils.py0download a file from cloud storage into memory. args: object_uri: uri of the file (abfss:// or azure://) decode_as_utf_8STRING
HIGH…al/common/utils/cloud_filesystem/pyarrow_filesystem.py0download a file from cloud storage into memory. args: object_uri: uri of the file (abfss:// or azure://) decode_as_utf_8STRING
HIGH…ay/llm/_internal/common/utils/cloud_filesystem/base.py0download a file from cloud storage into memory. args: object_uri: uri of the file (abfss:// or azure://) decode_as_utf_8STRING
HIGH…ternal/common/utils/cloud_filesystem/gcs_filesystem.py0download a file from cloud storage into memory. args: object_uri: uri of the file (abfss:// or azure://) decode_as_utf_8STRING
HIGH…nternal/common/utils/cloud_filesystem/s3_filesystem.py0download a file from cloud storage into memory. args: object_uri: uri of the file (abfss:// or azure://) decode_as_utf_8STRING
HIGH…rnal/common/utils/cloud_filesystem/azure_filesystem.py0download a file from cloud storage into memory. args: object_uri: uri of the file (abfss:// or azure://) decode_as_utf_8STRING
HIGHpython/ray/llm/_internal/common/utils/cloud_utils.py0list the immediate subfolders in a cloud directory. args: folder_uri: uri of the directory (s3://, gs://, abfss://, or aSTRING
HIGH…al/common/utils/cloud_filesystem/pyarrow_filesystem.py0list the immediate subfolders in a cloud directory. args: folder_uri: uri of the directory (s3://, gs://, abfss://, or aSTRING
HIGH…ay/llm/_internal/common/utils/cloud_filesystem/base.py0list the immediate subfolders in a cloud directory. args: folder_uri: uri of the directory (s3://, gs://, abfss://, or aSTRING
HIGHpython/ray/llm/_internal/common/utils/cloud_utils.py0download files from cloud storage to a local directory. args: path: local directory where files will be downloaded buckeSTRING
HIGH…ternal/common/utils/cloud_filesystem/gcs_filesystem.py0download files from cloud storage to a local directory. args: path: local directory where files will be downloaded buckeSTRING
HIGH…rnal/common/utils/cloud_filesystem/azure_filesystem.py0download files from cloud storage to a local directory. args: path: local directory where files will be downloaded buckeSTRING
HIGH…ay/llm/_internal/common/utils/cloud_filesystem/base.py0download files from cloud storage to a local directory. args: path: local directory where files will be downloaded buckeSTRING
HIGHpython/ray/llm/_internal/common/utils/cloud_utils.py0upload files to cloud storage. args: local_path: the local path of the files to upload. bucket_uri: the bucket uri to upSTRING
HIGH…al/common/utils/cloud_filesystem/pyarrow_filesystem.py0upload files to cloud storage. args: local_path: the local path of the files to upload. bucket_uri: the bucket uri to upSTRING
HIGH…ay/llm/_internal/common/utils/cloud_filesystem/base.py0upload files to cloud storage. args: local_path: the local path of the files to upload. bucket_uri: the bucket uri to upSTRING
HIGH…llm/_internal/common/observability/logging/__init__.py0get a structured logger inherited from the ray serve logger. loggers by default are logging to stdout, and are expected STRING
HIGH…/llm/_internal/batch/observability/logging/__init__.py0get a structured logger inherited from the ray serve logger. loggers by default are logging to stdout, and are expected STRING
HIGH…/llm/_internal/serve/observability/logging/__init__.py0get a structured logger inherited from the ray serve logger. loggers by default are logging to stdout, and are expected STRING
HIGH…ay/llm/_internal/common/observability/logging/setup.py0configures stdlib root logger to make sure stdlib loggers (created as `logging.getlogger(...)`) are using ray's `jsonforSTRING
HIGH…ray/llm/_internal/batch/observability/logging/setup.py0configures stdlib root logger to make sure stdlib loggers (created as `logging.getlogger(...)`) are using ray's `jsonforSTRING
HIGH…ray/llm/_internal/serve/observability/logging/setup.py0configures stdlib root logger to make sure stdlib loggers (created as `logging.getlogger(...)`) are using ray's `jsonforSTRING
HIGH…/ray/llm/_internal/batch/stages/sglang_engine_stage.py0the required input keys of the stage and their descriptions.STRING
HIGH…/ray/llm/_internal/batch/stages/chat_template_stage.py0the required input keys of the stage and their descriptions.STRING
HIGH…llm/_internal/batch/stages/prepare_multimodal_stage.py0the required input keys of the stage and their descriptions.STRING
HIGH…n/ray/llm/_internal/batch/stages/http_request_stage.py0the required input keys of the stage and their descriptions.STRING
HIGH…on/ray/llm/_internal/batch/stages/vllm_engine_stage.py0the required input keys of the stage and their descriptions.STRING
HIGHpython/ray/llm/_internal/batch/stages/tokenize_stage.py0the required input keys of the stage and their descriptions.STRING
HIGHpython/ray/llm/_internal/batch/stages/base.py0the required input keys of the stage and their descriptions.STRING
HIGH…/ray/llm/_internal/batch/stages/sglang_engine_stage.py0the optional input keys of the stage and their descriptions.STRING
HIGH…on/ray/llm/_internal/batch/stages/vllm_engine_stage.py0the optional input keys of the stage and their descriptions.STRING
HIGHpython/ray/llm/_internal/batch/stages/base.py0the optional input keys of the stage and their descriptions.STRING
HIGH…ay/llm/_internal/batch/processor/sglang_engine_proc.py0construct a processor that runs a serve deployment. args: config: the configuration for the processor. preprocess: an opSTRING
HIGH…/ray/llm/_internal/batch/processor/vllm_engine_proc.py0construct a processor that runs a serve deployment. args: config: the configuration for the processor. preprocess: an opSTRING
HIGH…ray/llm/_internal/batch/processor/http_request_proc.py0construct a processor that runs a serve deployment. args: config: the configuration for the processor. preprocess: an opSTRING
HIGH…llm/_internal/batch/processor/serve_deployment_proc.py0construct a processor that runs a serve deployment. args: config: the configuration for the processor. preprocess: an opSTRING
HIGHpython/ray/llm/_internal/serve/core/protocol.py0check the health of the engine. does not return anything. raise error when the engine is dead and needs to be restarted.STRING
HIGH…thon/ray/llm/_internal/serve/core/server/llm_server.py0check the health of the engine. does not return anything. raise error when the engine is dead and needs to be restarted.STRING
HIGHpython/ray/llm/_internal/serve/core/engine/protocol.py0check the health of the engine. does not return anything. raise error when the engine is dead and needs to be restarted.STRING
HIGHpython/ray/llm/_internal/serve/core/protocol.py0check whether the vllm engine is currently sleeping. returns: true if the engine is sleeping, false otherwise.STRING
HIGH…thon/ray/llm/_internal/serve/core/server/llm_server.py0check whether the vllm engine is currently sleeping. returns: true if the engine is sleeping, false otherwise.STRING
HIGHpython/ray/llm/_internal/serve/core/engine/protocol.py0check whether the vllm engine is currently sleeping. returns: true if the engine is sleeping, false otherwise.STRING
HIGH…on/ray/llm/_internal/serve/engines/vllm/vllm_engine.py0check whether the vllm engine is currently sleeping. returns: true if the engine is sleeping, false otherwise.STRING
HIGHpython/ray/llm/_internal/serve/core/protocol.py0check whether the vllm engine is currently paused. returns: true if the engine is paused, false otherwise.STRING
HIGH…thon/ray/llm/_internal/serve/core/server/llm_server.py0check whether the vllm engine is currently paused. returns: true if the engine is paused, false otherwise.STRING
HIGHpython/ray/llm/_internal/serve/core/engine/protocol.py0check whether the vllm engine is currently paused. returns: true if the engine is paused, false otherwise.STRING
247 more matches not shown…
Hallucination Indicators110 hits · 1185 pts
SeverityFileLineSnippetContext
CRITICALpython/ray/client_builder.py78 elif ray._private.worker.global_worker.node.is_head():CODE
CRITICALpython/ray/experimental/locations.py40 return ray._private.worker.global_worker.core_worker.get_object_locations(CODE
CRITICALpython/ray/_common/tests/test_usage_stats.py1103 ray.worker.global_worker.gcs_client.cluster_id.hex(),CODE
CRITICALpython/ray/tests/test_job.py215 from_worker = ray._private.worker.global_worker.core_worker.get_job_config()STRING
CRITICALpython/ray/tests/test_autoscaler_azure.py9from azure.core.exceptions import ResourceNotFoundErrorCODE
CRITICALpython/ray/tests/test_client_proxy.py173assert ray.util.client.ray.worker.log_client.log_thread.is_alive()CODE
CRITICAL⚡python/ray/tests/test_advanced_7.py176 assert not ray._private.worker.global_worker.core_worker.object_exists(x_id)CODE
CRITICAL⚡python/ray/tests/test_advanced_7.py178 assert ray._private.worker.global_worker.core_worker.object_exists(x_id)CODE
CRITICAL⚡python/ray/tests/test_advanced_7.py182 assert not ray._private.worker.global_worker.core_worker.object_exists(x_id)CODE
CRITICAL⚡python/ray/tests/test_advanced_7.py185 assert ray._private.worker.global_worker.core_worker.object_exists(x_id)CODE
CRITICALpython/ray/tests/test_advanced_7.py215 assert ray._private.worker.global_worker.core_worker.object_exists(CODE
CRITICALpython/ray/tests/test_advanced_7.py253 inlined = ray._private.worker.global_worker.core_worker.object_exists(CODE
CRITICAL⚡python/ray/tests/test_reference_counting_standalone.py37 lambda: ray._private.worker.global_worker.core_worker.object_exists(obj)CODE
CRITICAL⚡python/ray/tests/test_reference_counting_standalone.py41 lambda: not ray._private.worker.global_worker.core_worker.object_exists(obj)CODE
CRITICAL⚡python/ray/tests/test_reference_counting_standalone.py325 actual = ray._private.worker.global_worker.core_worker.get_all_reference_counts()CODE
CRITICAL⚡python/ray/tests/test_reference_counting_standalone.py336 len(ray._private.worker.global_worker.core_worker.get_all_reference_counts())CODE
CRITICAL⚡python/ray/tests/test_reference_counting_standalone.py345 len(ray._private.worker.global_worker.core_worker.get_all_reference_counts())CODE
CRITICALpython/ray/tests/test_runtime_env_working_dir.py705 ray._private.worker.global_worker.core_worker.get_job_config().py_driver_sys_pathCODE
CRITICALpython/ray/tests/test_state_api_log.py1363 # log_dir = ray._private.worker.global_worker.node.get_logs_dir_path()COMMENT
CRITICALpython/ray/tests/test_state_api_log.py1398 log_dir = ray._private.worker.global_worker.node.get_logs_dir_path()CODE
CRITICALpython/ray/tests/test_state_api_log.py1623 log_dir = ray._private.worker.global_worker.node.get_logs_dir_path()CODE
CRITICALpython/ray/tests/test_state_api_log.py1898 log_dir = ray._private.worker.global_worker.node.get_logs_dir_path()CODE
CRITICALpython/ray/tests/test_advanced_3.py173 assert not ray._private.worker.global_worker.core_worker.object_exists(x_id)CODE
CRITICALpython/ray/tests/test_advanced_3.py418 assert not ray._private.worker.global_worker.core_worker.object_exists(STRING
CRITICALpython/ray/tests/test_advanced.py213 worker_id = ray._private.worker.global_worker.core_worker.get_worker_id().hex()CODE
CRITICALpython/ray/tests/test_advanced_8.py585 job_config = ray._private.worker.global_worker.core_worker.get_job_config()STRING
CRITICALpython/ray/tests/test_advanced_8.py593 job_config = ray._private.worker.global_worker.core_worker.get_job_config()STRING
CRITICAL⚡python/ray/tests/test_memory_pressure.py98 return ray._private.worker.global_worker.core_worker.get_worker_id().hex()CODE
CRITICAL⚡python/ray/tests/test_memory_pressure.py101 return ray._private.worker.global_worker.core_worker.get_actor_id().hex()CODE
CRITICALpython/ray/tests/test_generators.py364 ray._private.worker.global_worker.core_worker.get_all_reference_counts()CODE
CRITICALpython/ray/tests/test_basic_2.py461 assert not ray._private.worker.global_worker.core_worker.object_exists(obj_ref)CODE
CRITICALpython/ray/tests/test_basic_2.py478 assert not ray._private.worker.global_worker.core_worker.object_exists(obj_ref)CODE
CRITICALpython/ray/tests/test_basic_2.py481 assert ray._private.worker.global_worker.core_worker.object_exists(obj_ref)CODE
CRITICALpython/ray/tests/test_basic_2.py759 + ray._private.worker.global_worker.current_job_id.hex().encode()STRING
CRITICALpython/ray/tests/test_basic_2.py763 assert ray._private.worker.global_worker.gcs_client.internal_kv_exists(STRING
CRITICALpython/ray/tests/test_basic_2.py774 + ray._private.worker.global_worker.current_job_id.hex().encode()STRING
CRITICALpython/ray/tests/test_basic_2.py778 assert ray._private.worker.global_worker.gcs_client.internal_kv_exists(STRING
CRITICALpython/ray/tests/test_output.py230log_dir = ray._private.worker.global_worker.node.get_logs_dir_path()CODE
CRITICALpython/ray/tests/test_advanced_9.py121 job_id = ray._private.worker.global_worker.current_job_id.hex().encode()CODE
CRITICALpython/ray/tests/test_advanced_9.py145 job_id = ray._private.worker.global_worker.current_job_id.hex().encode()CODE
CRITICALpython/ray/tests/test_advanced_9.py158 job_id = ray._private.worker.global_worker.current_job_id.hex().encode()CODE
CRITICALpython/ray/tests/test_streaming_generator_regression.py51 ray._private.worker.global_worker.core_worker.reset_event_loop_executor(CODE
CRITICALpython/ray/tests/test_advanced_4.py214 job_id = ray._private.worker.global_worker.current_job_id.hex().encode()CODE
CRITICALpython/ray/tests/test_advanced_4.py238 job_id = ray._private.worker.global_worker.current_job_id.hex().encode()CODE
CRITICALpython/ray/tests/test_advanced_4.py251 job_id = ray._private.worker.global_worker.current_job_id.hex().encode()CODE
CRITICALpython/ray/tests/test_reference_counting_2.py62 lambda: ray._private.worker.global_worker.core_worker.object_exists(obj),CODE
CRITICALpython/ray/tests/test_reference_counting_2.py67 lambda: not ray._private.worker.global_worker.core_worker.object_exists(CODE
CRITICALpython/ray/tests/test_serialization.py654 assert ray._private.worker.global_worker.current_job_id.is_nil()CODE
CRITICAL⚡python/ray/tests/test_reference_counting.py57 lambda: ray._private.worker.global_worker.core_worker.object_exists(obj)CODE
CRITICAL⚡python/ray/tests/test_reference_counting.py61 lambda: not ray._private.worker.global_worker.core_worker.object_exists(CODE
CRITICAL⚡python/ray/tests/test_reference_counting.py69 actual = ray._private.worker.global_worker.core_worker.get_all_reference_counts()CODE
CRITICALpython/ray/tests/test_reference_counting.py315 return not ray._private.worker.global_worker.core_worker.object_exists(CODE
CRITICALpython/ray/tests/aws/utils/helpers.py48 return ray.autoscaler._private.aws.config.bootstrap_aws(config)CODE
CRITICALpython/ray/tests/rdt/test_rdt_nixl.py342 lambda: ray._private.worker.global_worker.rdt_manager.get_rdt_metadata(obj_id)CODE
CRITICALpython/ray/tests/rdt/test_rdt_gloo.py849 return ray._private.worker.global_worker.rdt_manager.rdt_store.get_num_objects()CODE
CRITICALpython/ray/tests/spark/test_basic.py192 ray.util.spark.cluster_init._active_ray_cluster.shutdown()CODE
CRITICALpython/ray/tests/spark/test_basic.py441 ray.util.spark.cluster_init._global_ray_cluster_cancel_event.set()CODE
CRITICALpython/ray/tests/spark/test_databricks_hook.py83 ray.util.spark.cluster_init._active_ray_cluster.shutdown()CODE
CRITICALpython/ray/_private/serialization.py337 ray._private.worker.global_worker.core_worker.add_object_ref_reference(CODE
CRITICAL…/ray/dashboard/modules/reporter/tests/test_reporter.py1755 ray._private.worker.global_worker.node.get_session_dir_path()CODE
50 more matches not shown…
Deep Nesting1332 hits · 1156 pts
SeverityFileLineSnippetContext
LOWpython/setup.py649CODE
LOWpython/setup.py81CODE
LOWpython/ray/cluster_utils.py292CODE
LOWpython/ray/exceptions.py324CODE
LOWpython/ray/runtime_env/runtime_env.py97CODE
LOWpython/ray/experimental/channel/cpu_communicator.py69CODE
LOWpython/ray/experimental/channel/common.py357CODE
LOWpython/ray/experimental/channel/common.py456CODE
LOWpython/ray/experimental/sandbox/config.py210CODE
LOW…thon/ray/experimental/sandbox/_internal/image_utils.py241CODE
LOW…thon/ray/experimental/sandbox/_internal/image_utils.py436CODE
LOW…thon/ray/experimental/sandbox/_internal/image_utils.py783CODE
LOW…thon/ray/experimental/sandbox/_internal/image_utils.py957CODE
LOW…thon/ray/experimental/sandbox/_internal/image_utils.py1006CODE
LOW…thon/ray/experimental/sandbox/_internal/image_utils.py1103CODE
LOW…thon/ray/experimental/sandbox/_internal/image_utils.py1233CODE
LOW…thon/ray/experimental/sandbox/_internal/image_utils.py1326CODE
LOWpython/ray/experimental/sandbox/_internal/overlayfs.py816CODE
LOWpython/ray/experimental/sandbox/_internal/overlayfs.py264CODE
LOW…hon/ray/experimental/sandbox/tests/test_image_utils.py574CODE
LOW…hon/ray/experimental/sandbox/tests/test_image_utils.py634CODE
LOW…n/ray/experimental/sandbox/tests/test_registry_auth.py126CODE
LOW…/ray/experimental/sandbox/tests/test_gvisor_backend.py1234CODE
LOW…/ray/experimental/sandbox/tests/test_gvisor_backend.py2454CODE
LOWpython/ray/experimental/sandbox/backend/gvisor.py317CODE
LOWpython/ray/experimental/sandbox/backend/gvisor.py868CODE
LOWpython/ray/experimental/sandbox/backend/gvisor.py1026CODE
LOWpython/ray/experimental/sandbox/backend/gvisor.py1516CODE
LOWpython/ray/experimental/sandbox/backend/gvisor.py2321CODE
LOWpython/ray/experimental/sandbox/backend/gvisor.py2397CODE
LOW…n/ray/experimental/sandbox/backend/checkpoint_utils.py51CODE
LOW…n/ray/experimental/sandbox/backend/checkpoint_utils.py416CODE
LOWpython/ray/experimental/sandbox/http/app.py133CODE
LOWpython/ray/experimental/sandbox/http/app.py256CODE
LOW…ay/experimental/sandbox/http/tests/test_grpc_facade.py1262CODE
LOW…ay/experimental/sandbox/http/tests/test_grpc_facade.py1281CODE
LOWpython/ray/experimental/rdt/rdt_manager.py316CODE
LOWpython/ray/experimental/rdt/rdt_manager.py559CODE
LOWpython/ray/experimental/rdt/rdt_manager.py705CODE
LOWpython/ray/experimental/rdt/nixl_tensor_transport.py278CODE
LOWpython/ray/experimental/rdt/nixl_tensor_transport.py376CODE
LOWpython/ray/experimental/rdt/nixl_tensor_transport.py555CODE
LOWpython/ray/experimental/rdt/nixl_tensor_transport.py720CODE
LOWpython/ray/experimental/rdt/nixl_memory_pool.py209CODE
LOWpython/ray/llm/_internal/common/utils/cloud_utils.py82CODE
LOWpython/ray/llm/_internal/common/utils/cloud_utils.py147CODE
LOWpython/ray/llm/_internal/common/utils/download_utils.py226CODE
LOWpython/ray/llm/_internal/common/utils/download_utils.py122CODE
LOW…nternal/common/utils/cloud_filesystem/s3_filesystem.py230CODE
LOW…nternal/common/utils/cloud_filesystem/s3_filesystem.py351CODE
LOW…al/common/utils/cloud_filesystem/pyarrow_filesystem.py29CODE
LOW…al/common/utils/cloud_filesystem/pyarrow_filesystem.py285CODE
LOW…llm/_internal/batch/stages/prepare_multimodal_stage.py48CODE
LOW…n/ray/llm/_internal/batch/stages/http_request_stage.py92CODE
LOW…n/ray/llm/_internal/batch/stages/http_request_stage.py123CODE
LOW…on/ray/llm/_internal/batch/stages/vllm_engine_stage.py119CODE
LOW…on/ray/llm/_internal/batch/stages/vllm_engine_stage.py252CODE
LOWpython/ray/llm/_internal/serve/benchmark/models.py134CODE
LOWpython/ray/llm/_internal/serve/benchmark/interactive.py405CODE
LOWpython/ray/llm/_internal/serve/benchmark/interactive.py475CODE
1272 more matches not shown…
Modern Structural Boilerplate1132 hits · 1133 pts
SeverityFileLineSnippetContext
LOWpython/setup.py22logger = logging.getLogger(__name__)CODE
LOWpython/ray/client_builder.py23logger = logging.getLogger(__name__)CODE
LOWpython/ray/runtime_context.py13logger = logging.getLogger(__name__)CODE
LOWpython/ray/__init__.py9logger = logging.getLogger(__name__)CODE
LOWpython/ray/__init__.py175__all__ = [CODE
LOWpython/ray/remote_function.py33logger = logging.getLogger(__name__)CODE
LOWpython/ray/cross_language.py9__all__ = [CODE
LOWpython/ray/cluster_utils.py25logger = logging.getLogger(__name__)CODE
LOWpython/ray/exceptions.py23logger = logging.getLogger(__name__)CODE
LOWpython/ray/actor.py66logger = logging.getLogger(__name__)CODE
LOWpython/ray/job_config.py93 def set_metadata(self, key: str, value: str) -> None:CODE
LOWpython/ray/job_config.py171 def set_ray_namespace(self, ray_namespace: str) -> None:CODE
LOWpython/ray/job_config.py182 def set_default_actor_lifetime(self, default_actor_lifetime: str) -> None:CODE
LOWpython/ray/runtime_env/__init__.py3__all__ = [CODE
LOWpython/ray/runtime_env/runtime_env.py25logger = logging.getLogger(__name__)CODE
LOWpython/ray/experimental/queue.py13__all__ = ["Empty", "Full", "Queue"]CODE
LOWpython/ray/experimental/__init__.py18__all__ = [CODE
LOWpython/ray/experimental/tqdm_ray.py23logger = logging.getLogger(__name__)CODE
LOWpython/ray/experimental/tqdm_ray.py216 def update_offset(self, pos_offset: int) -> None:CODE
LOWpython/ray/experimental/tqdm_ray.py246 def update_bar(self, state: ProgressBarState) -> None:CODE
LOWpython/ray/experimental/tqdm_ray.py267 def update_offset(self, offset: int) -> None:CODE
LOWpython/ray/experimental/collective/__init__.py13__all__ = [CODE
LOWpython/ray/experimental/collective/operations.py22logger = logging.getLogger(__name__)CODE
LOWpython/ray/experimental/multiprocessing/__init__.py5__all__ = ["Pool", "TimeoutError"]CODE
LOW…thon/ray/experimental/channel/shared_memory_channel.py19logger = logging.getLogger(__name__)CODE
LOWpython/ray/experimental/channel/torch_tensor_type.py14logger = logging.getLogger(__name__)CODE
LOWpython/ray/experimental/channel/torch_tensor_type.py173 def set_communicator_id(self, group_id: str) -> None:CODE
LOWpython/ray/experimental/channel/__init__.py26__all__ = [CODE
LOWpython/ray/experimental/channel/nccl_group.py18logger = logging.getLogger(__name__)CODE
LOW…thon/ray/experimental/channel/serialization_context.py37 def set_target_device(self, device: Device) -> None:CODE
LOW…thon/ray/experimental/channel/serialization_context.py40 def set_data(self, channel_id: str, value: Any, num_readers: int) -> None:CODE
LOW⚡…thon/ray/experimental/channel/serialization_context.py74 def set_use_external_transport(self, use_external_transport: bool) -> None:CODE
LOWpython/ray/experimental/channel/common.py116 def set_communicator_id(self, group_id: str) -> None:CODE
LOW…perimental/channel/torch_tensor_accelerator_channel.py34logger = logging.getLogger(__name__)CODE
LOWpython/ray/experimental/sandbox/image_manager.py21logger = logging.getLogger(__name__)CODE
LOWpython/ray/experimental/sandbox/__init__.py238__all__ = [CODE
LOWpython/ray/experimental/sandbox/runtime.py332 def set_egress_allowlist(self, instance_id: str, cidrs: List[str]) -> None:CODE
LOWpython/ray/experimental/sandbox/sandbox.py243 def set_egress_allowlist(self, cidrs: List[str]) -> None:CODE
LOW…thon/ray/experimental/sandbox/_internal/image_utils.py30logger = logging.getLogger(__name__)CODE
LOWpython/ray/experimental/sandbox/_internal/overlayfs.py49logger = logging.getLogger(__name__)CODE
LOWpython/ray/experimental/sandbox/backend/__init__.py8__all__ = [CODE
LOWpython/ray/experimental/sandbox/backend/gvisor.py62logger = logging.getLogger(__name__)CODE
LOWpython/ray/experimental/sandbox/backend/gvisor.py1026 def set_egress_allowlist(self, sandbox_id: str, cidrs: List[str]) -> None:CODE
LOW…n/ray/experimental/sandbox/backend/checkpoint_utils.py25logger = logging.getLogger(__name__)CODE
LOWpython/ray/experimental/sandbox/backend/base.py157 def set_egress_allowlist(self, sandbox_id: str, cidrs: List[str]) -> None:CODE
LOWpython/ray/experimental/sandbox/http/grpc_facade.py82logger = logging.getLogger(__name__)CODE
LOWpython/ray/experimental/sandbox/http/host.py62logger = logging.getLogger(__name__)CODE
LOWpython/ray/experimental/sandbox/http/host.py492 def _set_status(self, status: str) -> None:CODE
LOWpython/ray/experimental/sandbox/http/resolver.py18logger = logging.getLogger(__name__)CODE
LOWpython/ray/experimental/sandbox/http/app.py53logger = logging.getLogger(__name__)CODE
LOWpython/ray/experimental/sandbox/http/tests/conftest.py174 def set_egress_allowlist(self, instance_id: str, cidrs: List[str]) -> None:CODE
LOWpython/ray/experimental/sandbox/http/tests/conftest.py336__all__ = [CODE
LOW…n/ray/experimental/sandbox/http/tests/test_grpc_app.py69 def set_code(self, code: Any) -> None:CODE
LOW…n/ray/experimental/sandbox/http/tests/test_grpc_app.py72 def set_details(self, details: str) -> None:CODE
LOWpython/ray/experimental/rdt/util.py344def set_nixl_cuda_stream(stream: Optional["torch.cuda.Stream"]) -> None:CODE
LOWpython/ray/experimental/rdt/__init__.py20__all__ = [CODE
LOWpython/ray/experimental/rdt/rdt_manager.py53logger = logging.getLogger(__name__)CODE
LOWpython/ray/experimental/rdt/nixl_tensor_transport.py33logger = logging.getLogger(__name__)CODE
LOWpython/ray/experimental/rdt/nixl_tensor_transport.py182 def set_cuda_stream(self, stream: Optional["torch.cuda.Stream"]) -> None:CODE
LOWpython/ray/experimental/rdt/rdt_store.py20logger = logging.getLogger(__name__)CODE
1072 more matches not shown…
Structural Annotation Overuse512 hits · 890 pts
SeverityFileLineSnippetContext
LOW⚡python/ray/experimental/sandbox/backend/gvisor.py1602 # Step 3: Dump kernel and process memory state via `runsc checkpoint`,COMMENT
LOW⚡python/ray/experimental/sandbox/backend/gvisor.py1657 # Step 4: Snapshot the copy-on-write rootfs overlay and writable workdir into staging.COMMENT
LOW⚡python/ray/experimental/sandbox/backend/gvisor.py1664 # Step 5: Generate checkpoint manifest and apply strict file permission hardening.COMMENT
LOW⚡python/ray/experimental/sandbox/backend/gvisor.py1992 # Step 5: Generate the OCI bundle from the restored configuration.COMMENT
LOWpython/ray/experimental/sandbox/backend/gvisor.py1544 # Step 1: Validate pre-conditions and determine target checkpoint directory path.COMMENT
LOWpython/ray/experimental/sandbox/backend/gvisor.py1572 # Step 2: Begin atomic staging using StagedCheckpoint context manager.COMMENT
LOWpython/ray/experimental/sandbox/backend/gvisor.py1690 # Step 6: Atomic swap completed upon exiting context manager.COMMENT
LOWpython/ray/experimental/sandbox/backend/gvisor.py1826 # Step 1: Validate checkpoint bundle directory and load stored manifest configuration.COMMENT
LOWpython/ray/experimental/sandbox/backend/gvisor.py1875 # Step 2: Verify host runtime environment dependencies (runsc, network helpers).COMMENT
LOWpython/ray/experimental/sandbox/backend/gvisor.py1906 # Step 3: Allocate a new ID, bundle, owner file and cgroup, and restore into them.COMMENT
LOWpython/ray/experimental/sandbox/backend/gvisor.py1964 # Step 4: Restore filesystem state (copy-on-write upper rootfs overlay layer & workdir).COMMENT
LOWpython/ray/util/state/common.py1268 # Step 2: Create the tree structure based on ownershipSTRING
LOW⚡python/ray/dag/vis_utils.py94 # Step 0: check dependencies and init graphCOMMENT
LOW⚡python/ray/dag/vis_utils.py100 # Step 1: generate unique name for each node in dagCOMMENT
LOW⚡python/ray/dag/vis_utils.py107 # Step 2: create graph with all the edgesCOMMENT
LOW⚡python/ray/dag/compiled_dag_node.py2037 # Step 1: Build a graph of _DAGOperationGraphNodeSTRING
LOW⚡python/ray/dag/compiled_dag_node.py2042 # Step 2: Generate an execution schedule for each actor using topological sortSTRING
LOW⚡python/ray/dag/compiled_dag_node.py2045 # Step 3: Overlap GPU communication for the execution schedule if configuredSTRING
LOWpython/ray/dag/compiled_dag_node.py1798 # Step 1: populate `arg_to_consumers` and perform some validation.STRING
LOWpython/ray/dag/compiled_dag_node.py1818 # Step 2: create cached channels if neededSTRING
LOWpython/ray/dag/compiled_dag_node.py1837 # Step 3: create executable tasks for the actorSTRING
LOW…ion-tests/invalid-config-fail/ray-project/project.yaml12 # NOTE: The following is invalid because you can't have both dockerfileCOMMENT
LOW⚡python/ray/_private/tensor_serialization_utils.py48 # Step 1: Convert uint8 numpy array back to torch tensorCOMMENT
LOW⚡python/ray/_private/tensor_serialization_utils.py51 # Step 2: Restore original dtypeCOMMENT
LOW⚡python/ray/_private/tensor_serialization_utils.py65 # Step 3: Reshape and reinterpret bytes as target dtypeCOMMENT
LOW⚡python/ray/_private/tensor_serialization_utils.py68 # Step 4: Move to target deviceCOMMENT
LOW⚡…driver_scripts/check_code_search_path_is_propagated.py22 # Step 1: Print the statement indicating that the code_search_path have beenCOMMENT
LOW⚡…driver_scripts/check_code_search_path_is_propagated.py25 # Step 2: Print the whole runtime_env to validate that it's been passedCOMMENT
LOW⚡…/dashboard/modules/serve/tests/test_serve_dashboard.py1067 # Step 4: Scale - should succeedCOMMENT
LOW⚡…/dashboard/modules/serve/tests/test_serve_dashboard.py1070 # Step 5: Disable external_scaler_enabled againCOMMENT
LOW…/dashboard/modules/serve/tests/test_serve_dashboard.py1027 # Step 1: Deploy with external_scaler_enabled=FalseCOMMENT
LOW…/dashboard/modules/serve/tests/test_serve_dashboard.py1038 # Step 2: Try to scale - should failCOMMENT
LOW…/dashboard/modules/serve/tests/test_serve_dashboard.py1056 # Step 3: Enable external_scaler_enabledCOMMENT
LOW…/dashboard/modules/serve/tests/test_serve_dashboard.py1083 # Step 6: Try to scale again - should failCOMMENT
LOW⚡python/ray/rllib/core/models/catalog.py447 # Step 1: Construct the dictionary.COMMENT
LOWpython/ray/rllib/core/models/catalog.py501 # Step 2: Return the correct distribution class for the given action space.COMMENT
LOWpython/ray/rllib/algorithms/algorithm_config.py4571 # NOTE: The following if-block is only relevant for the old API stack.COMMENT
LOW⚡…in/v2/_internal/execution/checkpoint/report_handler.py75 # Step 1: Assert that the worker group has been started and not shut down.COMMENT
LOW⚡…in/v2/_internal/execution/checkpoint/report_handler.py83 # Step 2: Update training_reports_queues with poll_results.COMMENT
LOW…in/v2/_internal/execution/checkpoint/report_handler.py105 # Step 3: Consolidate a list of checkpoints to single checkpoint.COMMENT
LOW…in/v2/_internal/execution/checkpoint/report_handler.py130 # Step 4: Invoke all dependent `ReportCallback`s.COMMENT
LOW⚡…n/ray/autoscaler/_private/resource_demand_scheduler.py216 # Step 1: Calculate current cluster resources and node type countsCOMMENT
LOW⚡…n/ray/autoscaler/_private/resource_demand_scheduler.py225 # Step 2: add nodes to add to satisfy min_workers for each typeCOMMENT
LOW…n/ray/autoscaler/_private/resource_demand_scheduler.py240 # Step 3: get resource demands of placement groups and return theCOMMENT
LOW⚡python/ray/serve/tests/test_logging.py369 # Step 1: Get current file end positionCOMMENT
LOW⚡python/ray/serve/tests/test_logging.py372 # Step 2: Make HTTP callCOMMENT
LOWpython/ray/serve/tests/test_logging.py401 # Step 3: Verify HTTP response matches new log linesCOMMENT
LOW⚡python/ray/serve/tests/test_autoscaling_policy.py1211 # Step 4: Change the max replicas to 2COMMENT
LOW⚡python/ray/serve/tests/test_autoscaling_policy.py1221 # Step 5: Make sure it is the same replica (lightweight change).COMMENT
LOW⚡python/ray/serve/tests/test_autoscaling_policy.py1226 # Step 6: Make sure initial_replicas overrides previous replicasCOMMENT
LOW⚡python/ray/serve/tests/test_autoscaling_policy.py1238 # Step 7: Make sure original replica is still running (lightweight change)COMMENT
LOWpython/ray/serve/tests/test_autoscaling_policy.py1150 # Step 1: Prepare the script in a zip file so it can be submitted via REST API.COMMENT
LOWpython/ray/serve/tests/test_autoscaling_policy.py1171 # Step 2: Deploy it with max_replicas=1COMMENT
LOWpython/ray/serve/tests/test_autoscaling_policy.py1195 # Step 3: Verify that it can scale from 0 to 1.COMMENT
LOW⚡python/ray/serve/tests/test_capacity_queue_router.py837 # Step 1: Saturate the replica — 2/2 slots occupied.COMMENT
LOW⚡python/ray/serve/tests/test_capacity_queue_router.py844 # Step 2: Kill the CQ. It restarts with in_flight=0.COMMENT
LOW⚡python/ray/serve/tests/test_capacity_queue_router.py860 # Step 3: Send a non-blocking request. The stale CQ issues a token,COMMENT
LOW⚡python/ray/serve/tests/test_capacity_queue_router.py865 # Step 4: The CQ should have learned — in_flight > 0 because theCOMMENT
LOW⚡python/ray/serve/tests/test_capacity_queue_router.py873 # Step 5: Release the blockers so all requests complete.COMMENT
LOWpython/ray/serve/tests/test_capacity_queue_router.py632 # Step 1: Occupy 3 of 5 slots with blocking requests.COMMENT
452 more matches not shown…
Modern AI Meta-Vocabulary159 hits · 442 pts
SeverityFileLineSnippetContext
MEDIUMpython/requirements/ml/rllib-test-requirements.txt18# For tests on PettingZoo's multi-agent envs.COMMENT
MEDIUM⚡…nal/serve/serving_patterns/prefill_decode/pd_server.py60# those two routes at its own ``chat`` / ``completions`` (which orchestrateCOMMENT
MEDIUMpython/ray/rllib/connectors/connector_v2.py863 # Single-agent/multi-agent cases.COMMENT
MEDIUM…/ray/rllib/connectors/common/batch_individual_items.py32 AgentToModuleMapping, # only in multi-agent setups!STRING
MEDIUM…/ray/rllib/connectors/common/batch_individual_items.py43 AgentToModuleMapping, # only in multi-agent setups!STRING
MEDIUM…tors/common/add_observations_from_episodes_to_batch.py29 AgentToModuleMapping, # only in multi-agent setups!STRING
MEDIUM…tors/common/add_observations_from_episodes_to_batch.py40 AgentToModuleMapping, # only in multi-agent setups!STRING
MEDIUM…onnectors/common/add_time_dim_to_batch_and_zero_pad.py38 AgentToModuleMapping, # only in multi-agent setups!STRING
MEDIUM…onnectors/common/add_time_dim_to_batch_and_zero_pad.py49 AgentToModuleMapping, # only in multi-agent setups!STRING
MEDIUM…y/rllib/connectors/common/module_to_agent_unmapping.py40 # This Connector should only be used in a multi-agent setting.COMMENT
MEDIUM…ray/rllib/connectors/common/agent_to_module_mapping.py30 AgentToModuleMapping, # only in multi-agent setups!STRING
MEDIUM…ray/rllib/connectors/common/agent_to_module_mapping.py41 AgentToModuleMapping, # only in multi-agent setups!STRING
MEDIUM…connectors/common/add_states_from_episodes_to_batch.py35 AgentToModuleMapping, # only in multi-agent setups!STRING
MEDIUM…connectors/common/add_states_from_episodes_to_batch.py46 AgentToModuleMapping, # only in multi-agent setups!STRING
MEDIUM⚡…on/ray/rllib/connectors/common/flatten_observations.py223 # Multi-agent example: Use the connector with a multi-agent observation space.STRING
MEDIUM⚡…on/ray/rllib/connectors/common/flatten_observations.py237 # Create a multi-agent observation space with agent IDs as keys.STRING
MEDIUM⚡…on/ray/rllib/connectors/common/flatten_observations.py243 # Create a multi-agent episode with observations for both agents.STRING
MEDIUM…on/ray/rllib/connectors/common/flatten_observations.py262 # Construct the connector for multi-agent, flattening only agent_1's observations.STRING
MEDIUM…on/ray/rllib/connectors/common/flatten_observations.py444 # In the multi-agent case, we need to use the specific agent'sCOMMENT
MEDIUM…on/ray/rllib/connectors/common/flatten_observations.py445 # space struct, not the multi-agent observation space dict.COMMENT
MEDIUM…on/ray/rllib/connectors/common/flatten_observations.py480 # In the multi-agent case, we need to use the specific agent'sCOMMENT
MEDIUM…on/ray/rllib/connectors/common/flatten_observations.py481 # space struct, not the multi-agent observation space dict.COMMENT
MEDIUMpython/ray/rllib/connectors/common/numpy_to_tensor.py38 AgentToModuleMapping, # only in multi-agent setups!STRING
MEDIUMpython/ray/rllib/connectors/common/numpy_to_tensor.py49 AgentToModuleMapping, # only in multi-agent setups!STRING
MEDIUM…rs/learner/add_columns_from_episodes_to_train_batch.py26 AgentToModuleMapping, # only in multi-agent setups!STRING
MEDIUM…nectors/learner/add_one_ts_to_episodes_and_truncate.py115 # TODO (sven): Same situation as in TODO below, but for multi-agent episode.COMMENT
MEDIUM…onnectors/module_to_env/listify_data_for_vector_env.py27 ModuleToAgentUnmapping, # only in multi-agent setups!STRING
MEDIUM…onnectors/module_to_env/listify_data_for_vector_env.py61 # Multi-agent case: Create lists of multi-agent dicts under each column.COMMENT
MEDIUM…connectors/module_to_env/normalize_and_clip_actions.py33 ModuleToAgentUnmapping, # only in multi-agent setups!STRING
MEDIUM…onnectors/module_to_env/unbatch_to_individual_items.py28 ModuleToAgentUnmapping, # only in multi-agent setups!STRING
MEDIUM…onnectors/module_to_env/unbatch_to_individual_items.py61 # Keys are always tuples to resemble multi-agent keys, whichCOMMENT
MEDIUM…module_to_env/remove_single_ts_time_rank_from_batch.py26 ModuleToAgentUnmapping, # only in multi-agent setups!STRING
MEDIUM…thon/ray/rllib/connectors/module_to_env/get_actions.py26 ModuleToAgentUnmapping, # only in multi-agent setups!STRING
MEDIUM…/connectors/env_to_module/prev_actions_prev_rewards.py110 # f"thus far (or, for multi-agent, on Dict spaces mapping AgentIDs to "COMMENT
MEDIUM…ectors/env_to_module/write_observations_to_episodes.py24 AgentToModuleMapping, # only in multi-agent setups!STRING
MEDIUM…ectors/env_to_module/write_observations_to_episodes.py112 # Note that the following loop works with multi-agent as well as withCOMMENT
MEDIUM…ectors/env_to_module/write_observations_to_episodes.py116 # `data`, either in a list directly under the "obs" key OR for multi-agent:COMMENT
MEDIUM…b/connectors/env_to_module/observation_preprocessor.py166 # TODO (sven): Implement set_observations API for multi-agent episodes.COMMENT
MEDIUMpython/ray/rllib/core/testing/testing_learner.py46 # TODO (Kourosh): Make this more multi-agent for example with policy idsCOMMENT
MEDIUM…ay/rllib/core/learner/differentiable_learner_config.py124 # If multi-agent -> Map from AgentID-based data to ModuleID based data.COMMENT
MEDIUM⚡python/ray/rllib/algorithms/algorithm_config.py4830 # If the module is single-agent convert it to multi-agent specCOMMENT
MEDIUM⚡python/ray/rllib/algorithms/algorithm_config.py4832 # The default RLModuleSpec (might be multi-agent or single-agent).COMMENT
MEDIUM⚡python/ray/rllib/algorithms/algorithm_config.py4834 # The currently configured RLModuleSpec (might be multi-agent or single-agent).COMMENT
MEDIUM⚡python/ray/rllib/algorithms/algorithm_config.py4855 # Algorithm is currently setup as a multi-agent one.COMMENT
MEDIUM⚡python/ray/rllib/algorithms/algorithm_config.py4861 # Default is single-agent but the user has provided a multi-agent specCOMMENT
MEDIUM⚡python/ray/rllib/algorithms/algorithm_config.py4862 # so the use-case is multi-agent.COMMENT
MEDIUM⚡python/ray/rllib/algorithms/algorithm_config.py4881 # We need to infer the multi-agent class from `current_rl_module_spec`COMMENT
MEDIUM⚡python/ray/rllib/algorithms/algorithm_config.py4891 # Default is multi-agent and user wants to override it -> Don't use theCOMMENT
MEDIUM⚡python/ray/rllib/algorithms/algorithm_config.py4895 # to reuse for all modules in this multi-agent default setup.COMMENT
MEDIUMpython/ray/rllib/algorithms/algorithm_config.py139 # The default agent ID to module ID mapping function to use in the multi-agentCOMMENT
MEDIUMpython/ray/rllib/algorithms/algorithm_config.py459 # TODO (sven): Prepare multi-agent setup for logging each agent's and eachCOMMENT
MEDIUMpython/ray/rllib/algorithms/algorithm_config.py799 # Set our multi-agent settings.COMMENT
MEDIUMpython/ray/rllib/algorithms/algorithm_config.py1115 # If multi-agent -> Map from AgentID-based data to ModuleID based data.COMMENT
MEDIUMpython/ray/rllib/algorithms/algorithm_config.py1223 # If multi-agent -> Map from ModuleID-based data to AgentID based data.COMMENT
MEDIUMpython/ray/rllib/algorithms/algorithm_config.py1246 # for single-agent and multi-agent dicts for multi-agent.COMMENT
MEDIUMpython/ray/rllib/algorithms/algorithm_config.py1308 # If multi-agent -> Map from AgentID-based data to ModuleID based data.COMMENT
MEDIUM⚡python/ray/rllib/algorithms/utils.py66 # which IDs the submodules have (to figure out, whether its multi-agent orCOMMENT
MEDIUMpython/ray/rllib/algorithms/cql/cql.py350 # Use simple optimizer (only for multi-agent or tf-eager; all otherCOMMENT
MEDIUM⚡…on/ray/rllib/algorithms/tests/test_algorithm_config.py335 # multi-agentCOMMENT
MEDIUM…on/ray/rllib/algorithms/tests/test_algorithm_config.py405 # in the multi-agent scenario.COMMENT
99 more matches not shown…
Redundant / Tautological Comments248 hits · 376 pts
SeverityFileLineSnippetContext
LOWpython/ray/exceptions.py582 # Check if RAY_AUTH_MODE is set to token and add a heads-up if notCOMMENT
LOWpython/ray/actor.py740 # Check if decorator is called without parentheses (args[0] would be the function)COMMENT
LOWpython/ray/experimental/rdt/rdt_manager.py776 # Check if a warning should be triggered for this object:COMMENT
LOW…nternal/common/utils/cloud_filesystem/s3_filesystem.py56 # Check if anonymous@ prefix existsCOMMENT
LOW…al/common/utils/cloud_filesystem/pyarrow_filesystem.py51 # Check if the first part ends with "anonymous"COMMENT
LOW⚡…al/common/utils/cloud_filesystem/pyarrow_filesystem.py236 # Check if file existsCOMMENT
LOW⚡…al/common/utils/cloud_filesystem/pyarrow_filesystem.py241 # Read fileCOMMENT
LOWpython/ray/llm/_internal/serve/utils/registry.py109 # Check if registeredSTRING
LOW…nal/serve/routing_policies/prefix_aware/prefix_tree.py403 # Check if any available tenants match this nodeCOMMENT
LOWpython/ray/util/tpu.py664 # Check if user explicitly requested a slice name for this sliceCOMMENT
LOWpython/ray/util/client_connect.py34 # Check if Ray is already connected (any type of connection)COMMENT
LOWpython/ray/util/collective/collective.py236 # Check if backend is registered and availableCOMMENT
LOW…sts/single_node_cpu_tests/test_gloo_group_isolation.py26 # Check if the group is initialized correctlyCOMMENT
LOWpython/ray/util/multiprocessing/pool.py259 # Check if any of the available IDs are done. The timeout is requiredCOMMENT
LOWpython/ray/util/client/common.py291 # Check if supplied parameters match the function signature. Same caseCOMMENT
LOWpython/ray/util/client/server/server.py76 # Check if response already cachedCOMMENT
LOWpython/ray/_common/usage/usage_lib.py822 # Check if we're on KubernetesCOMMENT
LOWpython/ray/_common/usage/usage_lib.py824 # Check if we're using KubeRay >= 0.4.0.COMMENT
LOWpython/ray/tests/conftest.py392 # Check if th redis has started successfully and is listening on the port.COMMENT
LOWpython/ray/tests/conftest.py1218# Set scope to "class" to force this to run before start_cluster, whose scopeCOMMENT
LOWpython/ray/tests/test_logging.py317 # Check if the backup count is respected.COMMENT
LOWpython/ray/tests/test_logging.py423 # Check if the backup count is respected.COMMENT
LOWpython/ray/tests/test_object_spilling_3.py386 # Iterate over the data on the worker nodes from the head node.COMMENT
LOWpython/ray/tests/test_runtime_env_plugin.py628# Set scope to "class" to force this to run before start_cluster, whose scopeCOMMENT
LOWpython/ray/tests/test_runtime_env_working_dir.py40# Set scope to "module" to force this to run before start_cluster, whose scopeCOMMENT
LOW⚡python/ray/tests/test_runtime_env_agent.py115 # Check if agent register is OK.COMMENT
LOWpython/ray/tests/test_scheduling.py734 # Check if task2 starts within 1 second (indicating the bug)COMMENT
LOWpython/ray/tests/test_runtime_env_failure.py20# Set scope to "class" to force this to run before start_cluster, whose scopeCOMMENT
LOWpython/ray/tests/test_coordinator_server.py375 # Check if now we can create more clusters/nodes.COMMENT
LOWpython/ray/tests/test_client.py86 # Set num_cpus to zero to ensure that both tasks can always be scheduledCOMMENT
LOWpython/ray/tests/test_cli.py1569# Check if ray.serve is available (it's an optional dependency)COMMENT
LOWpython/ray/tests/test_runtime_env_working_dir_3.py34# Set scope to "class" to force this to run before start_cluster, whose scopeCOMMENT
LOW⚡python/ray/tests/vsphere/test_cluster_operator.py654 # Check if status is not availableCOMMENT
LOW⚡python/ray/tests/vsphere/test_cluster_operator.py658 # Check if ingress in unavailableCOMMENT
LOWpython/ray/air/tests/test_integration_mlflow.py113 # Check if client recognizes already existing experiment.COMMENT
LOWpython/ray/air/tests/test_integration_mlflow.py195 # Check if run is created with proper tags.COMMENT
LOWpython/ray/air/tests/test_integration_mlflow.py237 # Check if params are logged at the end.COMMENT
LOWpython/ray/air/integrations/wandb.py132 # Check if we are in a train session and if we are not the rank 0 workerCOMMENT
LOWpython/ray/air/integrations/wandb.py351 # Check if user is already logged into wandb.COMMENT
LOWpython/ray/air/execution/resources/request.py75 # Check if the head bundle is empty (no resources defined or all resourcesCOMMENT
LOWpython/ray/_private/function_manager.py562 # Check if the actor class already exists in the cache.COMMENT
LOWpython/ray/_private/inspect_util.py14 # Check if function or method, respectivelyCOMMENT
LOWpython/ray/_private/node.py1620 # Write the file BEFORE the internal_kv_put below so the two neverCOMMENT
LOWpython/ray/_private/serialization.py220 # Check if this is an RDT ObjectRef being serialized inside a collectionCOMMENT
LOWpython/ray/_private/serialization.py440 # Check if the object should be returned as raw bytes.COMMENT
LOWpython/ray/_private/runtime_env/uv_runtime_env_hook.py268 # Check if the requirements.txt file is in the working_dirCOMMENT
LOWpython/ray/_private/runtime_env/uv_runtime_env_hook.py282 # Check if the pyproject.toml file is in the working_dirCOMMENT
LOWpython/ray/_private/accelerators/tpu.py411 # Check if z coordinates are present.COMMENT
LOW…y/_private/authentication/http_token_authentication.py216 # Check if user provided their own Authorization header (case-insensitive)COMMENT
LOW…/_private/authentication/authentication_token_setup.py115 # Check if you enabled token authentication.COMMENT
LOW…/_private/thirdparty/pathspec/patterns/gitwildmatch.py268 # Set i to one past the closing braket.COMMENT
LOWpython/ray/_private/thirdparty/tabulate/tabulate.py2090 # Check if pretty is the format being used and override the defaults so itCOMMENT
LOWpython/ray/dashboard/http_server_head.py206 # Check if token authentication is enabledCOMMENT
LOWpython/ray/dashboard/http_server_head.py246 # Check if the connection is secure (HTTPS)COMMENT
LOWpython/ray/dashboard/event_loop_monitor.py57# Set RAY_DASHBOARD_AGENT_LOOP_DUMP_SIGNAL to another signal name, or to anCOMMENT
LOWpython/ray/dashboard/tests/test_dashboard.py117 # Check if agent register is OK.COMMENT
LOWpython/ray/dashboard/modules/metrics/metrics_head.py165 # Check if the required Grafana services are running.COMMENT
LOWpython/ray/dashboard/modules/reporter/gpu_providers.py284 # Check if MIG mode is enabled on this GPUCOMMENT
LOWpython/ray/dashboard/modules/reporter/gpu_providers.py654 # Check if we should disable GPU check entirelyCOMMENT
LOWpython/ray/dashboard/modules/job/cli.py567 # Set no_format to True because the logs may have unescaped "{" and "}"COMMENT
188 more matches not shown…
AI Structural Patterns369 hits · 308 pts
SeverityFileLineSnippetContext
LOWpython/ray/runtime_context.py527CODE
LOWpython/ray/actor.py612CODE
LOWpython/ray/actor.py1079CODE
LOWpython/ray/actor.py2486CODE
LOWpython/ray/job_config.py54CODE
LOWpython/ray/runtime_env/runtime_env.py333CODE
LOWpython/ray/experimental/shuffle.py231CODE
LOWpython/ray/experimental/sandbox/image_manager.py137CODE
LOWpython/ray/experimental/sandbox/image_manager.py195CODE
LOWpython/ray/experimental/sandbox/image_manager.py372CODE
LOWpython/ray/experimental/sandbox/image_manager.py644CODE
LOWpython/ray/experimental/sandbox/__init__.py41CODE
LOWpython/ray/experimental/sandbox/runtime.py82CODE
LOWpython/ray/experimental/sandbox/sandbox.py58CODE
LOWpython/ray/experimental/sandbox/backend/gvisor.py2468CODE
LOW…erimental/sandbox/http/_proto/sandbox_exec_pb2_grpc.py164CODE
LOW…erimental/sandbox/http/_proto/sandbox_exec_pb2_grpc.py181CODE
LOW…erimental/sandbox/http/_proto/sandbox_exec_pb2_grpc.py198CODE
LOW…erimental/sandbox/http/_proto/sandbox_exec_pb2_grpc.py215CODE
LOW…erimental/sandbox/http/_proto/sandbox_exec_pb2_grpc.py232CODE
LOW…erimental/sandbox/http/_proto/sandbox_exec_pb2_grpc.py249CODE
LOW…erimental/sandbox/http/_proto/sandbox_exec_pb2_grpc.py266CODE
LOW…erimental/sandbox/http/_proto/sandbox_exec_pb2_grpc.py283CODE
LOW…mental/sandbox/http/_proto/sandbox_control_pb2_grpc.py261CODE
LOW…mental/sandbox/http/_proto/sandbox_control_pb2_grpc.py278CODE
LOW…mental/sandbox/http/_proto/sandbox_control_pb2_grpc.py295CODE
LOW…mental/sandbox/http/_proto/sandbox_control_pb2_grpc.py312CODE
LOW…mental/sandbox/http/_proto/sandbox_control_pb2_grpc.py329CODE
LOW…mental/sandbox/http/_proto/sandbox_control_pb2_grpc.py346CODE
LOW…mental/sandbox/http/_proto/sandbox_control_pb2_grpc.py363CODE
LOW…mental/sandbox/http/_proto/sandbox_control_pb2_grpc.py380CODE
LOW…mental/sandbox/http/_proto/sandbox_control_pb2_grpc.py397CODE
LOW…mental/sandbox/http/_proto/sandbox_control_pb2_grpc.py414CODE
LOW…mental/sandbox/http/_proto/sandbox_control_pb2_grpc.py431CODE
LOW…mental/sandbox/http/_proto/sandbox_control_pb2_grpc.py448CODE
LOW…mental/sandbox/http/_proto/sandbox_control_pb2_grpc.py465CODE
LOW…mental/sandbox/http/_proto/sandbox_control_pb2_grpc.py482CODE
LOW…/ray/llm/_internal/batch/stages/sglang_engine_stage.py78CODE
LOW…e/routing_policies/prefix_aware/prefix_aware_router.py57CODE
LOWpython/ray/util/tpu.py962CODE
LOWpython/ray/util/tpu.py537CODE
LOWpython/ray/util/client_connect.py22CODE
LOWpython/ray/util/dask/scheduler_utils.py242CODE
LOWpython/ray/util/state/api.py1180CODE
LOWpython/ray/util/state/state_cli.py885CODE
LOWpython/ray/util/client/__init__.py122CODE
LOWpython/ray/util/spark/cluster_init.py1233CODE
LOWpython/ray/util/spark/cluster_init.py1406CODE
LOWpython/ray/_common/usage/usage_lib.py883CODE
LOWpython/ray/_common/usage/usage_lib.py950CODE
LOWpython/ray/_common/usage/usage_lib.py971CODE
LOWpython/ray/_common/observability/platform_events.py13CODE
LOWpython/ray/tests/test_state_api.py268CODE
LOWpython/ray/tests/test_resource_metrics.py18CODE
LOWpython/ray/tests/test_core_worker_fault_tolerance.py125CODE
LOWpython/ray/tests/test_nccl_channel.py85CODE
LOWpython/ray/tests/test_metrics_agent_2.py49CODE
LOWpython/ray/tests/horovod/horovod_example.py40CODE
LOWpython/ray/tests/kuberay/utils.py310CODE
LOWpython/ray/air/integrations/mlflow.py33CODE
309 more matches not shown…
AI Slop Vocabulary138 hits · 282 pts
SeverityFileLineSnippetContext
MEDIUMbuild-docker.sh36 # It also can facilitate cleanup.COMMENT
MEDIUMpython/ray/actor.py2722 """This is defined in order to make pickling work.STRING
MEDIUMpython/ray/actor.py2771 """This is defined in order to make pickling work.STRING
MEDIUMpython/ray/experimental/sandbox/_internal/overlayfs.py188 # Try to get subid ranges using the getsubids tool. This is more robust,COMMENT
LOWpython/ray/llm/_internal/common/utils/download_utils.py108 # and we can just return the model_dir.COMMENT
LOWpython/ray/llm/_internal/serve/utils/server_utils.py127 # This also works for normal exceptions (we will just return everything fromCOMMENT
MEDIUMpython/ray/llm/_internal/serve/utils/server_utils.py193 # TODO make this more robustCOMMENT
LOWpython/ray/llm/tests/common/cloud/test_s3_filesystem.py248 # This should not raise, just return without downloadingCOMMENT
LOWpython/ray/dag/input_node.py119 # If user only passed in one value, for simplicity we just return it.COMMENT
LOWpython/ray/tests/test_actor_resources.py450 # can't just return them from the tasks, because the tasks don't returnCOMMENT
MEDIUMpython/ray/tests/test_dataclient_disconnect.py61 # robust mechanism if they fail with code changes or become flaky.COMMENT
MEDIUMpython/ray/tests/conftest_docker.py16# setup is a little intricate, as it uses docker-in-docker.COMMENT
MEDIUMpython/ray/tests/test_resource_demand_scheduler.py2115 # TODO (Alex): We should find a more robust way of simulating a nodeCOMMENT
MEDIUMpython/ray/tests/test_resource_demand_scheduler.py2228 # testPlacementGroupScaling for more comprehensive tests.COMMENT
LOWpython/ray/tests/test_cli_patterns/test_no_head.yaml78# you should just use file_mounts. Only use this if you know what you're doing!COMMENT
LOWpython/ray/tests/test_cli_patterns/test_no_workers.yaml79# you should just use file_mounts. Only use this if you know what you're doing!COMMENT
LOWpython/ray/_private/worker.py2168 # should simply set "global_worker" to equal "None" or something like that.COMMENT
MEDIUMpython/ray/_private/services.py360 # TODO(ekl): Find a robust solution for locating Redis.COMMENT
LOWpython/ray/_private/runtime_env/working_dir.py74 # working_dir is already a URI -- just pass it through.COMMENT
MEDIUMpython/ray/_private/runtime_env/uv_runtime_env_hook.py448 # We purposefully modify sys.argv here to make sure the hook is robustCOMMENT
MEDIUMpython/ray/dashboard/tests/test_event_loop_monitor.py19# harness (they still show on stderr). Attach a handler to the module loggerCOMMENT
LOW…n/ray/dashboard/modules/reporter/tests/test_healthz.py19 # It'll either timeout or just return an errorCOMMENT
MEDIUM…oard/modules/aggregator/tests/test_aggregator_agent.py91 # Pinning it off for now -- make these robust by filtering the batch for theCOMMENT
LOWpython/ray/dashboard/modules/job/job_manager.py387 in #24546 for GPU detection and just use the user's resourceSTRING
LOWpython/ray/dashboard/modules/node/node_head.py348 # TODO(rickyx): we should just return structure data rather than strings.COMMENT
MEDIUMpython/ray/dashboard/modules/node/datacenter.py163 # with a more robust mapping in a future update.COMMENT
MEDIUMpython/ray/dashboard/modules/node/datacenter.py255 # This will be addressed with a more robust mapping in a future update.COMMENT
LOWpython/ray/rllib/connectors/connector_v2.py511 # Otherwise, just use episode's ID.COMMENT
LOWpython/ray/rllib/connectors/agent/mean_std_filter.py42 # We simply use the old MeanStdFilter until non-connector env_runner is fullyCOMMENT
LOWpython/ray/rllib/connectors/agent/mean_std_filter.py167 # We simply use the old MeanStdFilter until non-connector env_runner is fullyCOMMENT
MEDIUMpython/ray/rllib/connectors/agent/view_requirement.py52 # Note(jungong): We only leverage AgentCollector for building sampleCOMMENT
LOW…ray/rllib/connectors/common/agent_to_module_mapping.py269 # If all obs spaces are the same anyway, just use the firstCOMMENT
LOW…connectors/common/add_states_from_episodes_to_batch.py279 # Then simply use the `look_back_state`, i.e. in this case theCOMMENT
LOW…/ray/rllib/connectors/env_to_module/mean_std_filter.py93 # We simply use the old MeanStdFilter until non-connector env_runner is fullyCOMMENT
LOWpython/ray/rllib/core/models/torch/encoder.py179 # Otherwise, just use the raw observations.COMMENT
LOWpython/ray/rllib/core/models/torch/encoder.py269 # Otherwise, just use the raw observations.COMMENT
LOWpython/ray/rllib/core/models/torch/heads.py67 # Otherwise just return the logits.COMMENT
MEDIUMpython/ray/rllib/core/rl_module/multi_rl_module.py476 """Returns self in order to match `RLModule.as_multi_rl_module()` behavior.STRING
MEDIUMpython/ray/rllib/core/rl_module/multi_rl_module.py772 """Returns self in order to match `RLModuleSpec.as_multi_rl_module_spec()`."""STRING
LOWpython/ray/rllib/callbacks/callbacks.py209 # Here, we just set some arbitrary property to 1.STRING
LOWpython/ray/rllib/callbacks/callbacks.py270 # Here, we just set some arbitrary property to 1.STRING
LOWpython/ray/rllib/algorithms/algorithm.py1035 # Otherwise we can simply pass in the local learner.COMMENT
LOWpython/ray/rllib/algorithms/algorithm_config.py5987 # If all obs spaces are the same, just use the first space.STRING
LOWpython/ray/rllib/algorithms/algorithm_config.py6050 # If all obs spaces are the same, just use the first space.STRING
LOWpython/ray/rllib/algorithms/impala/impala.py1208 # local worker. Otherwise just return an empty list.COMMENT
MEDIUMpython/ray/rllib/algorithms/dqn/dqn_tf_policy.py92 # priority is robust and insensitive to `prioritized_replay_alpha`COMMENT
MEDIUMpython/ray/rllib/algorithms/dqn/dqn_torch_policy.py98 # priority is robust and insensitive to `prioritized_replay_alpha`COMMENT
LOW…ib/algorithms/dqn/torch/default_dqn_torch_rl_module.py147 # Otherwise we can just use the current observations.COMMENT
MEDIUMpython/ray/rllib/utils/filter_manager.py62 # Should we utilize the remote workers' filter stats to update the localCOMMENT
LOWpython/ray/rllib/utils/metrics/metrics_logger.py925 # If value is a longer list, we should just return the list because there is no reduction method appliedCOMMENT
LOWpython/ray/rllib/utils/runners/runner_group.py198 # If a local runner is requested just return a runner instance.COMMENT
LOW…thon/ray/rllib/models/torch/modules/skip_connection.py37 # Residual case, just add inputs to outputs.COMMENT
LOWpython/ray/rllib/models/tf/layers/skip_connection.py39 # Residual case, just add inputs to outputs.COMMENT
LOWpython/ray/rllib/examples/utils.py773 # Anyscale release dashboard (not just pass/fail).COMMENT
MEDIUM…ay/rllib/examples/_old_api_stack/centralized_critic.py8"""An example of customizing PPO to leverage a centralized critic.STRING
LOWpython/ray/rllib/examples/envs/classes/mock_env.py165 # Since we only have one underlying sub-environment, just use the first seedCOMMENT
MEDIUM…n/ray/rllib/examples/envs/classes/gpu_requiring_env.py11 """A dummy env that requires a GPU in order to work.STRING
LOW…amples/envs/classes/multi_agent/rock_paper_scissors.py109 # Set the next observations (simply use the other player's action).COMMENT
MEDIUM…ples/envs/classes/multi_agent/footsies/footsies_env.py94 # game server and the Python harness via gRPCCOMMENT
LOW…hon/ray/rllib/evaluation/collectors/agent_collector.py379 # simply use the time dim as the batch dim.COMMENT
78 more matches not shown…
Verbosity Indicators128 hits · 224 pts
SeverityFileLineSnippetContext
LOW⚡python/ray/experimental/sandbox/backend/gvisor.py1602 # Step 3: Dump kernel and process memory state via `runsc checkpoint`,COMMENT
LOW⚡python/ray/experimental/sandbox/backend/gvisor.py1657 # Step 4: Snapshot the copy-on-write rootfs overlay and writable workdir into staging.COMMENT
LOW⚡python/ray/experimental/sandbox/backend/gvisor.py1664 # Step 5: Generate checkpoint manifest and apply strict file permission hardening.COMMENT
LOW⚡python/ray/experimental/sandbox/backend/gvisor.py1992 # Step 5: Generate the OCI bundle from the restored configuration.COMMENT
LOWpython/ray/experimental/sandbox/backend/gvisor.py1544 # Step 1: Validate pre-conditions and determine target checkpoint directory path.COMMENT
LOWpython/ray/experimental/sandbox/backend/gvisor.py1572 # Step 2: Begin atomic staging using StagedCheckpoint context manager.COMMENT
LOWpython/ray/experimental/sandbox/backend/gvisor.py1690 # Step 6: Atomic swap completed upon exiting context manager.COMMENT
LOWpython/ray/experimental/sandbox/backend/gvisor.py1826 # Step 1: Validate checkpoint bundle directory and load stored manifest configuration.COMMENT
LOWpython/ray/experimental/sandbox/backend/gvisor.py1875 # Step 2: Verify host runtime environment dependencies (runsc, network helpers).COMMENT
LOWpython/ray/experimental/sandbox/backend/gvisor.py1906 # Step 3: Allocate a new ID, bundle, owner file and cgroup, and restore into them.COMMENT
LOWpython/ray/experimental/sandbox/backend/gvisor.py1964 # Step 4: Restore filesystem state (copy-on-write upper rootfs overlay layer & workdir).COMMENT
LOWpython/ray/util/state/common.py1268 # Step 2: Create the tree structure based on ownershipSTRING
LOW⚡python/ray/dag/vis_utils.py94 # Step 0: check dependencies and init graphCOMMENT
LOW⚡python/ray/dag/vis_utils.py100 # Step 1: generate unique name for each node in dagCOMMENT
LOW⚡python/ray/dag/vis_utils.py107 # Step 2: create graph with all the edgesCOMMENT
LOW⚡python/ray/dag/compiled_dag_node.py2037 # Step 1: Build a graph of _DAGOperationGraphNodeSTRING
LOW⚡python/ray/dag/compiled_dag_node.py2042 # Step 2: Generate an execution schedule for each actor using topological sortSTRING
LOW⚡python/ray/dag/compiled_dag_node.py2045 # Step 3: Overlap GPU communication for the execution schedule if configuredSTRING
LOWpython/ray/dag/compiled_dag_node.py1798 # Step 1: populate `arg_to_consumers` and perform some validation.STRING
LOWpython/ray/dag/compiled_dag_node.py1818 # Step 2: create cached channels if neededSTRING
LOWpython/ray/dag/compiled_dag_node.py1837 # Step 3: create executable tasks for the actorSTRING
LOW⚡python/ray/_private/tensor_serialization_utils.py48 # Step 1: Convert uint8 numpy array back to torch tensorCOMMENT
LOW⚡python/ray/_private/tensor_serialization_utils.py51 # Step 2: Restore original dtypeCOMMENT
LOW⚡python/ray/_private/tensor_serialization_utils.py65 # Step 3: Reshape and reinterpret bytes as target dtypeCOMMENT
LOW⚡python/ray/_private/tensor_serialization_utils.py68 # Step 4: Move to target deviceCOMMENT
LOW⚡…driver_scripts/check_code_search_path_is_propagated.py22 # Step 1: Print the statement indicating that the code_search_path have beenCOMMENT
LOW⚡…driver_scripts/check_code_search_path_is_propagated.py25 # Step 2: Print the whole runtime_env to validate that it's been passedCOMMENT
LOW⚡…/dashboard/modules/serve/tests/test_serve_dashboard.py1067 # Step 4: Scale - should succeedCOMMENT
LOW⚡…/dashboard/modules/serve/tests/test_serve_dashboard.py1070 # Step 5: Disable external_scaler_enabled againCOMMENT
LOW…/dashboard/modules/serve/tests/test_serve_dashboard.py1027 # Step 1: Deploy with external_scaler_enabled=FalseCOMMENT
LOW…/dashboard/modules/serve/tests/test_serve_dashboard.py1038 # Step 2: Try to scale - should failCOMMENT
LOW…/dashboard/modules/serve/tests/test_serve_dashboard.py1056 # Step 3: Enable external_scaler_enabledCOMMENT
LOW…/dashboard/modules/serve/tests/test_serve_dashboard.py1083 # Step 6: Try to scale again - should failCOMMENT
LOWpython/ray/rllib/core/models/catalog.py290 # we need to check if no latent dim was set and simply reuse the lastCOMMENT
LOW⚡python/ray/rllib/core/models/catalog.py447 # Step 1: Construct the dictionary.COMMENT
LOWpython/ray/rllib/core/models/catalog.py501 # Step 2: Return the correct distribution class for the given action space.COMMENT
LOW⚡…in/v2/_internal/execution/checkpoint/report_handler.py75 # Step 1: Assert that the worker group has been started and not shut down.COMMENT
LOW⚡…in/v2/_internal/execution/checkpoint/report_handler.py83 # Step 2: Update training_reports_queues with poll_results.COMMENT
LOW…in/v2/_internal/execution/checkpoint/report_handler.py105 # Step 3: Consolidate a list of checkpoints to single checkpoint.COMMENT
LOW…in/v2/_internal/execution/checkpoint/report_handler.py130 # Step 4: Invoke all dependent `ReportCallback`s.COMMENT
LOW⚡…n/ray/autoscaler/_private/resource_demand_scheduler.py216 # Step 1: Calculate current cluster resources and node type countsCOMMENT
LOW⚡…n/ray/autoscaler/_private/resource_demand_scheduler.py225 # Step 2: add nodes to add to satisfy min_workers for each typeCOMMENT
LOW…n/ray/autoscaler/_private/resource_demand_scheduler.py240 # Step 3: get resource demands of placement groups and return theCOMMENT
LOW⚡python/ray/serve/tests/test_logging.py369 # Step 1: Get current file end positionCOMMENT
LOW⚡python/ray/serve/tests/test_logging.py372 # Step 2: Make HTTP callCOMMENT
LOWpython/ray/serve/tests/test_logging.py401 # Step 3: Verify HTTP response matches new log linesCOMMENT
LOW⚡python/ray/serve/tests/test_autoscaling_policy.py1211 # Step 4: Change the max replicas to 2COMMENT
LOW⚡python/ray/serve/tests/test_autoscaling_policy.py1221 # Step 5: Make sure it is the same replica (lightweight change).COMMENT
LOW⚡python/ray/serve/tests/test_autoscaling_policy.py1226 # Step 6: Make sure initial_replicas overrides previous replicasCOMMENT
LOW⚡python/ray/serve/tests/test_autoscaling_policy.py1238 # Step 7: Make sure original replica is still running (lightweight change)COMMENT
LOWpython/ray/serve/tests/test_autoscaling_policy.py1150 # Step 1: Prepare the script in a zip file so it can be submitted via REST API.COMMENT
LOWpython/ray/serve/tests/test_autoscaling_policy.py1171 # Step 2: Deploy it with max_replicas=1COMMENT
LOWpython/ray/serve/tests/test_autoscaling_policy.py1195 # Step 3: Verify that it can scale from 0 to 1.COMMENT
LOW⚡python/ray/serve/tests/test_capacity_queue_router.py837 # Step 1: Saturate the replica — 2/2 slots occupied.COMMENT
LOW⚡python/ray/serve/tests/test_capacity_queue_router.py844 # Step 2: Kill the CQ. It restarts with in_flight=0.COMMENT
LOW⚡python/ray/serve/tests/test_capacity_queue_router.py860 # Step 3: Send a non-blocking request. The stale CQ issues a token,COMMENT
LOW⚡python/ray/serve/tests/test_capacity_queue_router.py865 # Step 4: The CQ should have learned — in_flight > 0 because theCOMMENT
LOW⚡python/ray/serve/tests/test_capacity_queue_router.py873 # Step 5: Release the blockers so all requests complete.COMMENT
LOWpython/ray/serve/tests/test_capacity_queue_router.py632 # Step 1: Occupy 3 of 5 slots with blocking requests.COMMENT
LOWpython/ray/serve/tests/test_capacity_queue_router.py647 # Step 2: Kill the queue. It restarts with in_flight=0.COMMENT
68 more matches not shown…
Slop Phrases75 hits · 164 pts
SeverityFileLineSnippetContext
LOWpython/setup.py25# When the bazel version is updated, make sure to update itCOMMENT
LOWpython/ray/llm/_internal/serve/utils/batcher.py87 # If the stream task is done, make sure to exit the read taskCOMMENT
LOW⚡python/ray/util/serialization.py40 # make sure to keep the API consistent.COMMENT
LOWpython/ray/_common/utils.py403 # Don't forget to strip() the newline:COMMENT
LOWpython/ray/tests/test_reference_counting_standalone.py464 # make sure to only del the last ref to let ref count go to 0 after actor B's raylet starts pulling that object.COMMENT
LOW⚡python/ray/tests/test_placement_group_5.py376 # So we should make sure to wait until actor is scheduled.COMMENT
MEDIUMpython/ray/tests/test_cli_patterns/test_no_head.yaml55# By default Ray creates a new private keypair, but you can also use your own.COMMENT
LOWpython/ray/tests/test_cli_patterns/test_no_head.yaml56# If you do so, make sure to also set "KeyName" in the head and worker nodeCOMMENT
MEDIUMpython/ray/tests/test_cli_patterns/test_no_head.yaml104 # has your Ray repo pre-cloned. Then, you can replace the pip installsCOMMENT
MEDIUMpython/ray/tests/test_cli_patterns/test_no_workers.yaml56# By default Ray creates a new private keypair, but you can also use your own.COMMENT
LOWpython/ray/tests/test_cli_patterns/test_no_workers.yaml57# If you do so, make sure to also set "KeyName" in the head and worker nodeCOMMENT
MEDIUMpython/ray/tests/test_cli_patterns/test_no_workers.yaml105 # has your Ray repo pre-cloned. Then, you can replace the pip installsCOMMENT
MEDIUMpython/ray/_private/node.py1032 # This should work for most cases, especitallyCOMMENT
MEDIUM…/client/public/speedscope-1.5.3/speedscope.75eb7d8e.js9"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.__DO_NOT_USE__ActionTypes=exports.compose=exCODE
LOWpython/ray/rllib/algorithms/algorithm.py3826 # way, we make sure to never miss a single stats/counter/timerCOMMENT
LOWpython/ray/rllib/algorithms/ppo/ppo.py264 # Don't forget to remove .use_critic from algorithm config.COMMENT
LOWpython/ray/rllib/utils/checkpoints.py245 # provided by the user, make sure to use filesystem.COMMENT
MEDIUM…llib/examples/metrics/custom_metrics_in_env_runners.py31For demonstration purposes only, we log the following custom metrics:STRING
MEDIUMpython/ray/rllib/examples/algorithms/classes/vpg.py125 # Just for demonstration purposes, log the number of time steps sampled in thisCOMMENT
MEDIUM…hon/ray/rllib/examples/evaluation/custom_evaluation.py14For demonstration purposes only, we define a simple custom evaluation method that doesSTRING
MEDIUM…hon/ray/rllib/examples/evaluation/custom_evaluation.py129 # For demonstration purposes, run through some number of evaluationCOMMENT
MEDIUMpython/ray/rllib/examples/ray_tune/custom_experiment.py160 # However, for demonstration purposes, we show here how you can add other, arbitraryCOMMENT
MEDIUMpython/ray/rllib/examples/ray_tune/custom_experiment.py160 # However, for demonstration purposes, we show here how you can add other, arbitraryCOMMENT
MEDIUM…ray/rllib/examples/envs/async_gym_env_vectorization.py17 - uses an artificially slow CartPole-v1 environment for demonstration purposes.STRING
MEDIUMpython/ray/rllib/examples/envs/classes/mock_env.py65 # Just generate a random image here for demonstration purposes.COMMENT
MEDIUMpython/ray/train/base_trainer.py326 # Define some dummy inputs for demonstration purposesSTRING
LOWpython/ray/train/tests/test_checkpoint.py40 # the pyarrow.fs.MockFileSystem, so we must make sure to returnCOMMENT
MEDIUMpython/ray/autoscaler/vsphere/defaults.yaml37# By default Ray creates a new private keypair, but you can also use your own.COMMENT
LOWpython/ray/autoscaler/vsphere/defaults.yaml38# If you do so, make sure to also set "KeyName" in the head and worker nodeCOMMENT
MEDIUMpython/ray/autoscaler/vsphere/example-minimal.yaml15# By default Ray creates a new private keypair, but you can also use your own.COMMENT
LOWpython/ray/autoscaler/vsphere/example-minimal.yaml16# If you do so, make sure to also set "KeyName" in the head and worker nodeCOMMENT
MEDIUMpython/ray/autoscaler/vsphere/example-full.yaml37# By default Ray creates a new private keypair, but you can also use your own.COMMENT
LOWpython/ray/autoscaler/vsphere/example-full.yaml38# If you do so, make sure to also set "KeyName" in the head and worker nodeCOMMENT
MEDIUMpython/ray/autoscaler/aliyun/defaults.yaml39# By default Ray creates a new private keypair, but you can also use your own.COMMENT
LOWpython/ray/autoscaler/aliyun/defaults.yaml40# If you do so, make sure to also set "KeyName" in the head and worker nodeCOMMENT
MEDIUMpython/ray/autoscaler/aliyun/example-full.yaml47# By default Ray creates a new private keypair, but you can also use your own.COMMENT
LOWpython/ray/autoscaler/aliyun/example-full.yaml48# If you do so, make sure to also set "key_name".COMMENT
MEDIUMpython/ray/autoscaler/aliyun/example-linux.yaml46# By default Ray creates a new private keypair, but you can also use your own.COMMENT
LOWpython/ray/autoscaler/aliyun/example-linux.yaml47# If you do so, make sure to also set "KeyName" in the head and worker nodeCOMMENT
MEDIUMpython/ray/autoscaler/azure/defaults.yaml135 # has your Ray repo pre-cloned. Then, you can replace the pip installsCOMMENT
MEDIUMpython/ray/autoscaler/azure/example-full.yaml166# has your Ray repo pre-cloned. Then, you can replace the pip installsCOMMENT
MEDIUMpython/ray/autoscaler/gcp/defaults.yaml32# By default Ray creates a new private keypair, but you can also use your own.COMMENT
LOWpython/ray/autoscaler/gcp/defaults.yaml33# If you do so, make sure to also set "KeyName" in the head and worker nodeCOMMENT
MEDIUMpython/ray/autoscaler/gcp/defaults.yaml135 # has your Ray repo pre-cloned. Then, you can replace the pip installsCOMMENT
MEDIUMpython/ray/autoscaler/gcp/example-full.yaml47# By default Ray creates a new private keypair, but you can also use your own.COMMENT
LOWpython/ray/autoscaler/gcp/example-full.yaml48# If you do so, make sure to also set "KeyName" in the head and worker nodeCOMMENT
MEDIUMpython/ray/autoscaler/gcp/example-full.yaml161 # has your Ray repo pre-cloned. Then, you can replace the pip installsCOMMENT
MEDIUMpython/ray/autoscaler/gcp/example-gpu-docker.yaml41# By default Ray creates a new private keypair, but you can also use your own.COMMENT
LOWpython/ray/autoscaler/gcp/example-gpu-docker.yaml42# If you do so, make sure to also set "KeyName" in the head and worker nodeCOMMENT
MEDIUMpython/ray/autoscaler/_private/cli_logger_demoall.py4# function for demonstration purposes. Primarily useful for tuning color andCOMMENT
LOWpython/ray/autoscaler/_private/autoscaler.py498 # Sort based on last used to make sure to keep min_workers thatCOMMENT
LOWpython/ray/autoscaler/_private/vsphere/node_provider.py96 # make sure to mark newly created nodes as readyCOMMENT
LOWpython/ray/autoscaler/_private/gcp/config.py575 # We need to make sure to _create_ the file with the rightCOMMENT
LOWpython/ray/autoscaler/_private/aws/config.py422 # We need to make sure to _create_ the file with the rightCOMMENT
MEDIUMpython/ray/autoscaler/local/example-full.yaml115 # has your Ray repo pre-cloned. Then, you can replace the pip installsCOMMENT
MEDIUM…on/ray/autoscaler/local/example-minimal-automatic.yaml31# If Ray is not already installed on your cluster, you can use setupCOMMENT
MEDIUMpython/ray/autoscaler/local/example-minimal-manual.yaml18# If Ray is not already installed on your cluster, you can use setupCOMMENT
MEDIUMpython/ray/autoscaler/aws/defaults.yaml37# By default Ray creates a new private keypair, but you can also use your own.COMMENT
LOWpython/ray/autoscaler/aws/defaults.yaml38# If you do so, make sure to also set "KeyName" in the head and worker nodeCOMMENT
MEDIUMpython/ray/autoscaler/aws/example-full.yaml52# By default Ray creates a new private keypair, but you can also use your own.COMMENT
15 more matches not shown…
Magic Placeholder Names16 hits · 63 pts
SeverityFileLineSnippetContext
HIGH⚡python/ray/data/dataset.py6561 ... api_key="<YOUR_API_KEY>",STRING
HIGH⚡python/ray/data/dataset.py6561 ... api_key="<YOUR_API_KEY>",STRING
HIGH⚡python/ray/data/dataset.py6569 ... api_key="<YOUR_API_KEY>",STRING
HIGH⚡python/ray/data/dataset.py6569 ... api_key="<YOUR_API_KEY>",STRING
HIGH⚡…/ray/data/_internal/datasource/turbopuffer_datasink.py95 ... api_key="<YOUR_API_KEY>",STRING
HIGH⚡…/ray/data/_internal/datasource/turbopuffer_datasink.py95 ... api_key="<YOUR_API_KEY>",STRING
HIGH⚡…/ray/data/_internal/datasource/turbopuffer_datasink.py105 ... api_key="<YOUR_API_KEY>",STRING
HIGH⚡…/ray/data/_internal/datasource/turbopuffer_datasink.py105 ... api_key="<YOUR_API_KEY>",STRING
HIGH⚡…/ray/data/_internal/datasource/turbopuffer_datasink.py115 ... api_key="<YOUR_API_KEY>",STRING
HIGH⚡…/ray/data/_internal/datasource/turbopuffer_datasink.py115 ... api_key="<YOUR_API_KEY>",STRING
HIGHdoc/source/train/user-guides/experiment-tracking.md42ray.init(runtime_env={"env_vars": {"WANDB_API_KEY": "your_api_key"}})CODE
HIGHdoc/source/train/user-guides/experiment-tracking.md134# This is equivalent to `os.environ["WANDB_API_KEY"] = "your_api_key"`COMMENT
HIGHdoc/source/train/user-guides/experiment-tracking.md135wandb.login(key="your_api_key")CODE
HIGHdoc/source/train/user-guides/experiment-tracking.md179ray.init(runtime_env={"env_vars": {"SOME_API_KEY": "your_api_key"}})CODE
HIGHdoc/source/train/user-guides/experiment-tracking.md328wandb: ERROR api_key not configured (no-tty). call wandb.login(key=[your_api_key]).CODE
HIGHdoc/source/serve/tutorials/video-analysis/README.md97PEXELS_API_KEY = os.environ.get("PEXELS_API_KEY") # Or set directly: "your-api-key"CODE
Dead Code26 hits · 52 pts
SeverityFileLineSnippetContext
MEDIUM…/tests/batch/gpu/stages/test_serve_deployment_stage.py192CODE
MEDIUM…/tests/batch/gpu/stages/test_serve_deployment_stage.py231CODE
MEDIUM…/tests/batch/gpu/stages/test_serve_deployment_stage.py350CODE
MEDIUM…/tests/batch/gpu/stages/test_serve_deployment_stage.py387CODE
MEDIUM…thon/ray/llm/tests/batch/cpu/stages/test_stage_base.py242CODE
MEDIUM…ts/prefill_decode_disagg/test_prefill_decode_disagg.py884CODE
MEDIUMpython/ray/dag/tests/experimental/actor_defs.py78CODE
MEDIUMpython/ray/tests/test_basic.py1209CODE
MEDIUMpython/ray/tests/test_runtime_env_working_dir.py369CODE
MEDIUM…hon/ray/tests/test_streaming_generator_backpressure.py1439CODE
MEDIUMpython/ray/tests/test_baseexceptionandgroup.py69CODE
MEDIUMpython/ray/tests/test_gcs_fault_tolerance.py457CODE
MEDIUMpython/ray/tests/test_generators.py893CODE
MEDIUMpython/ray/tests/test_generators.py917CODE
MEDIUMpython/ray/tests/test_generators.py942CODE
MEDIUMpython/ray/tests/test_streaming_generator.py317CODE
MEDIUMpython/ray/tests/test_streaming_generator.py713CODE
MEDIUMpython/ray/tests/test_streaming_generator.py717CODE
MEDIUM…hon/ray/rllib/core/learner/tests/test_learner_group.py200CODE
MEDIUM…hon/ray/rllib/core/learner/tests/test_learner_group.py202CODE
MEDIUMpython/ray/serve/tests/test_grpc.py1231CODE
MEDIUMpython/ray/serve/tests/test_grpc.py1273CODE
MEDIUMpython/ray/serve/tests/test_fastapi.py421CODE
MEDIUMpython/ray/serve/_private/local_testing_mode.py392CODE
MEDIUMpython/ray/data/tests/test_map.py298CODE
MEDIUM…ray-observability/doc_code/ray-distributed-debugger.py24CODE
Fake / Example Data48 hits · 50 pts
SeverityFileLineSnippetContext
LOW…thon/ray/experimental/channel/serialization_context.py155 "placeholder",CODE
LOWpython/ray/llm/examples/sglang/query_example.py13client = OpenAI(base_url="http://localhost:8000/v1", api_key="fake-key")CODE
LOW⚡python/ray/tests/chaos/streaming_llm.py53 words = "Lorem ipsum dolor sit amet".split()CODE
LOW⚡python/ray/tests/chaos/streaming_llm.py53 words = "Lorem ipsum dolor sit amet".split()CODE
LOWpython/ray/tests/kuberay/test_kuberay_node_provider.py396def _mock_token_file(token: str = "fake-token", exists: bool = True):CODE
LOWpython/ray/tests/kuberay/test_kuberay_node_provider.py419 assert headers == {"Authorization": "Bearer fake-token"}CODE
LOWpython/ray/tests/kuberay/test_kuberay_node_provider.py433 assert headers == {"Authorization": "Bearer fake-token"}CODE
LOWpython/ray/tests/kuberay/test_kuberay_node_provider.py443 assert headers == {"Authorization": "Bearer fake-token"}CODE
LOWpython/ray/tests/kuberay/test_kuberay_node_provider.py497 "headers": {"Authorization": "Bearer fake-token"},CODE
LOWpython/ray/tests/kuberay/test_kuberay_node_provider.py518 "Authorization": "Bearer fake-token",CODE
LOWpython/ray/tests/kuberay/test_kuberay_node_provider.py567 assert kwargs["headers"]["Authorization"] == "Bearer fake-token"CODE
LOW…/train/v2/tests/test_async_checkpointing_validation.py494 .build_checkpoint_path_from_name("placeholder")CODE
LOWpython/ray/serve/llm/__init__.py204 client = OpenAI(base_url="http://localhost:8000/v1", api_key="fake-key")STRING
LOWpython/ray/serve/llm/__init__.py293 client = OpenAI(base_url="http://localhost:8000/v1", api_key="fake-key")STRING
LOWpython/ray/serve/_private/test_utils.py714 actor_options={"name": "placeholder"},CODE
LOWpython/ray/data/tests/test_with_column.py205 "expected_first": "John Doe",CODE
LOWrelease/llm_tests/serve/test_utils.py199 os.environ["OPENAI_API_KEY"] = api_token or "fake-key"CODE
LOWrelease/llm_tests/serve/test_utils.py251 return OpenAI(base_url=f"{server_url}/v1", api_key="fake-key")CODE
LOWrelease/llm_tests/serve/test_llm_serve_sglang.py71 client = OpenAI(base_url="http://localhost:8000/v1", api_key="fake-key")CODE
LOWrelease/llm_tests/serve/test_llm_serve_sglang.py355 client = OpenAI(base_url="http://localhost:8000/v1", api_key="fake-key")CODE
LOWrelease/llm_tests/serve/test_llm_serve_sglang.py425 client = OpenAI(base_url="http://localhost:8000/v1", api_key="fake-key")CODE
LOWrelease/llm_tests/serve/test_llm_serve_sglang.py490 client = OpenAI(base_url="http://localhost:8000/v1", api_key="fake-key")CODE
LOWrelease/llm_tests/serve/test_llm_serve_sglang.py559 client = OpenAI(base_url="http://localhost:8000/v1", api_key="fake-key")CODE
LOW⚡release/llm_tests/serve/test_llm_serve_sleep_wakeup.py203 client = OpenAI(base_url=f"{BASE_URL}/v1", api_key="fake-key")CODE
LOW⚡release/llm_tests/serve/test_llm_serve_pause_resume.py113 client = OpenAI(base_url=f"{BASE_URL}/v1", api_key="fake-key")CODE
LOW⚡release/llm_tests/serve/test_llm_serve_rlhf.py129 client = OpenAI(base_url=f"{BASE_URL}/v1", api_key="fake-key")CODE
LOWrelease/ray_release/tests/test_glue.py256 self.command_runner_return["get_last_logs_ex"] = "Lorem ipsum"CODE
LOW…/doc_code/serve/transcription/transcription_example.py85client = openai.OpenAI(base_url="http://localhost:8000/v1", api_key="fake-key")CODE
LOW…urce/llm/doc_code/serve/sglang/sglang_query_example.py4client = OpenAI(base_url="http://localhost:8000/v1", api_key="fake-key")CODE
LOWdoc/source/serve/llm/quick-start.md93 -H "Authorization: Bearer fake-key" \CODE
LOWdoc/source/serve/llm/quick-start.md108client = OpenAI(base_url="http://localhost:8000/v1", api_key="fake-key")CODE
LOWdoc/source/serve/llm/user-guides/multi-lora.md140client = OpenAI(base_url="http://localhost:8000/v1", api_key="fake-key")CODE
LOW…ource/serve/llm/user-guides/data-parallel-attention.md107 -H "Authorization: Bearer fake-key" \CODE
LOW…ource/serve/llm/user-guides/data-parallel-attention.md125 api_key="fake-key"CODE
LOWdoc/source/serve/llm/user-guides/vllm-compatibility.md59client = OpenAI(base_url="http://localhost:8000/v1", api_key="fake-key")CODE
LOWdoc/source/serve/llm/user-guides/vllm-compatibility.md78 -H "Authorization: Bearer fake-key" \CODE
LOWdoc/source/serve/llm/user-guides/vllm-compatibility.md116client = OpenAI(base_url="http://localhost:8000/v1", api_key="fake-key")CODE
LOWdoc/source/serve/llm/user-guides/vllm-compatibility.md138 -H "Authorization: Bearer fake-key" \CODE
LOWdoc/source/serve/llm/user-guides/vllm-compatibility.md191client = OpenAI(base_url="http://localhost:8000/v1", api_key="fake-key")CODE
LOWdoc/source/serve/llm/user-guides/vllm-compatibility.md236client = OpenAI(base_url="http://localhost:8000/v1", api_key="fake-key")CODE
LOWdoc/source/serve/llm/user-guides/vllm-compatibility.md323client = OpenAI(base_url="http://localhost:8000/v1", api_key="fake-key")CODE
LOWdoc/source/serve/llm/user-guides/vllm-compatibility.md403client = OpenAI(base_url="http://localhost:8000/v1", api_key="fake-key")CODE
LOWdoc/source/serve/llm/user-guides/vllm-compatibility.md424 -H "Authorization: Bearer fake-key" \CODE
LOWdoc/source/serve/doc_code/fake_email_creator.yaml21 image: shrekrisanyscale/serve-fake-email-example:exampleCODE
LOWdoc/source/serve/doc_code/fake_email_creator.yaml47 image: shrekrisanyscale/serve-fake-email-example:exampleCODE
LOWdoc/source/serve/production-guide/docker.md110A pre-built version of this image is available at [shrekrisanyscale/serve-fake-email-example](https://hub.docker.com/r/sCODE
LOWdoc/source/serve/tutorials/serve-deepseek.md117 -H "Authorization: Bearer fake-key" \CODE
LOWdoc/source/serve/tutorials/serve-deepseek.md139 -H "Authorization: Bearer fake-key" \CODE
AI Response Leakage6 hits · 49 pts
SeverityFileLineSnippetContext
HIGHpython/ray/tune/tests/tutorial.py26 # In this example, we don't change the model architectureCOMMENT
HIGHpython/ray/tune/tests/test_logger.py300 # In this example, this is `self.test_dir`.COMMENT
HIGHdoc/source/rllib/offline.md163 # Define the output path and format. In this example youCOMMENT
HIGHdoc/source/rllib/offline.md403 # Define the output path and format. In this example youCOMMENT
HIGH…urce/train/examples/jax/intro-to-jax-trainer/README.md612# In this example, we use 2 GPUs.COMMENT
HIGH⚡doc/source/kuberay/ecosystem/ingress.md101# 3. In this example, you need to select public subnets (subnets that "Auto-assign public IPv4 address" is Yes on AWS COMMENT
Overly Generic Function Names33 hits · 28 pts
SeverityFileLineSnippetContext
LOW⚡…/cpu/deployments/llm/multiplex/test_multiplex_utils.py147 def test_function(x, y):CODE
LOWpython/ray/util/dask/scheduler_utils.py122def execute_task(key, task_info, dumps, loads, get_id, pack_exception):CODE
LOWpython/ray/tests/test_basic.py1012 def test_function(fn, remote_fn):STRING
LOWpython/ray/tests/test_basic.py1040 def test_function(fn, remote_fn):STRING
LOWpython/ray/tests/test_basic.py1097 def test_function(fn, remote_fn):STRING
LOWpython/ray/tests/test_args.py18 def test_function(fn, remote_fn):CODE
LOWpython/ray/tests/test_args.py50 def test_function(fn, remote_fn):CODE
LOWpython/ray/tests/test_task_metrics.py128def my_function():CODE
LOW⚡python/ray/tests/chaos/streaming_llm.py45 async def handle_request(self, prompt: str) -> StreamingResponse:CODE
LOWpython/ray/rllib/utils/actor_manager.py225 def do_something(self):STRING
LOWpython/ray/tune/tests/test_api.py640 def run_task(config):CODE
LOWpython/ray/serve/tests/test_handle_1.py363 async def handle_request(self, request: str):CODE
LOWpython/ray/serve/tests/test_handle_1.py406 async def handle_request(self, request: str):CODE
LOWpython/ray/serve/tests/test_handle_1.py439 async def handle_request(self, request: str):CODE
LOWpython/ray/serve/tests/test_handle_1.py477 async def handle_request(self, request: str):CODE
LOWpython/ray/serve/tests/test_handle_1.py527 async def handle_request(self, request: str):CODE
LOWpython/ray/serve/tests/test_task_processor.py612 def process_data(self, payload):CODE
LOWpython/ray/serve/tests/test_task_processor.py681 def process_data(self, data):CODE
LOWpython/ray/serve/tests/test_actor_replica_wrapper.py115 async def handle_request(CODE
LOW…rve/tests/test_config_files/ingress_router_fallback.py13 async def handle_request(self, request: Request):CODE
LOW⚡…on/ray/serve/tests/typing_files/check_handle_typing.py129 def my_method(self, x: int) -> str:CODE
LOWpython/ray/serve/_private/tracing_utils.py178 def my_function(obj):STRING
LOWpython/ray/serve/_private/replica.py1682 async def handle_request(CODE
LOWpython/ray/serve/_private/replica.py3547 async def handle_request(CODE
LOWci/ray_ci/doc/test_run_docstring_examples.py29def helper():STRING
LOW⚡ci/ray_ci/doc/test_api_param_coverage.py384 def helper(alpha):STRING
LOW…ve_tests/workloads/multi_deployment_1k_noop_replica.py98 async def handle_request(self, body: bytes, depth: int):CODE
LOWdoc/source/core/doc_code/tasks.py16def my_function():CODE
LOWdoc/source/core/doc_code/tasks.py115def my_function():CODE
LOWdoc/source/core/doc_code/actor_checkpointing.py15 def execute_task(self, crash=False):CODE
LOWdoc/source/serve/doc_code/streaming_tutorial.py39 def handle_request(self, prompt: str) -> StreamingResponse:CODE
LOWdoc/source/serve/doc_code/streaming_tutorial.py126 async def handle_request(self, ws: WebSocket) -> None:CODE
LOWdoc/source/serve/doc_code/streaming_tutorial.py267 async def handle_request(self, prompt: str) -> StreamingResponse:CODE
Example Usage Blocks5 hits · 8 pts
SeverityFileLineSnippetContext
LOWpython/ray/rllib/utils/tests/run_memory_leak_tests.py6# Example usage:COMMENT
LOWpython/ray/serve/_private/constants.py144# Example usage:COMMENT
LOWdoc/source/cluster/doc_code/slurm-launch.py2# Usage:COMMENT
LOWsrc/ray/util/shared_lru.h20// Example usage:COMMENT
LOWsrc/ray/util/thread_checker.h17// Example usage:COMMENT
TODO Padding2 hits · 3 pts
SeverityFileLineSnippetContext
LOWpython/ray/train/__init__.py117# TODO: consider implementing these in v1 and raising ImportError instead.COMMENT
LOW…ray/serve/tests/test_deployment_scheduler_downscale.py159 # TODO: Add test for downscale placement group fallback_strategy when it's added to deployment options.COMMENT