AI Slop Code RIsk Monitor

ray-project/ray

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

22.8 Elevated pattern signal View on GitHub

Maintenance and Governance Review

This report summarizes scanner evidence for ray-project/ray, a Python project with 44,004 GitHub stars. SynthScan examined 1,760,086 lines of code across 8031 source files, recording 30496 pattern matches distributed across 27 syntactic categories. The legacy adjusted pattern signal is 22.8 (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.8
Adjusted Signal
22.8
Raw Pattern Score
100%
Time Factor
2026-10-10
Last Push
44.0K
Stars
Python
Language
1.8M
Lines of Code
8.0K
Files
30.5K
Pattern Hits
2026-10-12
Scan Date
0.19
HC Hit Rate

Risk Review · v3

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

Cognitive Ownership Risk 51.4/100 · HIGH

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

Hallucinated Dependency & Supply Chain Risk 14.0/100 · LOW

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

Agent Over-Engineering Ratio 50.0/100 · HIGH

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

PR Review Velocity Impact 70.5/100 · HIGH

Which changes need focused human review? 30496 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 109HIGH 1448MEDIUM 2145LOW 26794

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 30496 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 Identifiers15878 hits · 14642 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.py402 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
15818 more matches not shown…
Decorative Section Separators887 hits · 3119 pts
SeverityFileLineSnippetContext
MEDIUMpython/requirements/ml/rllib-test-requirements.txt6# ---------------------COMMENT
MEDIUMpython/ray/experimental/sandbox/http/host.py194 # ------------------------------------------------------------------COMMENT
MEDIUMpython/ray/experimental/sandbox/http/host.py196 # ------------------------------------------------------------------COMMENT
MEDIUMpython/ray/experimental/sandbox/http/host.py394 # ------------------------------------------------------------------COMMENT
MEDIUMpython/ray/experimental/sandbox/http/host.py396 # ------------------------------------------------------------------COMMENT
MEDIUMpython/ray/experimental/sandbox/http/host.py455 # ------------------------------------------------------------------COMMENT
MEDIUMpython/ray/experimental/sandbox/http/host.py457 # ------------------------------------------------------------------COMMENT
MEDIUMpython/ray/experimental/sandbox/http/host.py561 # ------------------------------------------------------------------COMMENT
MEDIUMpython/ray/experimental/sandbox/http/host.py563 # ------------------------------------------------------------------COMMENT
MEDIUMpython/ray/experimental/sandbox/http/app.py245 # ------------------------------------------------------------------COMMENT
MEDIUMpython/ray/experimental/sandbox/http/app.py247 # ------------------------------------------------------------------COMMENT
MEDIUMpython/ray/experimental/sandbox/http/app.py427 # ------------------------------------------------------------------COMMENT
MEDIUMpython/ray/experimental/sandbox/http/app.py429 # ------------------------------------------------------------------COMMENT
MEDIUMpython/ray/experimental/sandbox/http/app.py476 # ------------------------------------------------------------------COMMENT
MEDIUMpython/ray/experimental/sandbox/http/app.py478 # ------------------------------------------------------------------COMMENT
MEDIUM⚡…n/ray/experimental/sandbox/http/tests/test_http_app.py51# ----------------------------------------------------------------------COMMENT
MEDIUM⚡…n/ray/experimental/sandbox/http/tests/test_http_app.py53# ----------------------------------------------------------------------COMMENT
MEDIUM⚡…n/ray/experimental/sandbox/http/tests/test_http_app.py102# ----------------------------------------------------------------------COMMENT
MEDIUM⚡…n/ray/experimental/sandbox/http/tests/test_http_app.py104# ----------------------------------------------------------------------COMMENT
MEDIUM⚡…n/ray/experimental/sandbox/http/tests/test_http_app.py303# ----------------------------------------------------------------------COMMENT
MEDIUM⚡…n/ray/experimental/sandbox/http/tests/test_http_app.py305# ----------------------------------------------------------------------COMMENT
MEDIUM⚡…n/ray/experimental/sandbox/http/tests/test_http_app.py413# ----------------------------------------------------------------------COMMENT
MEDIUM⚡…n/ray/experimental/sandbox/http/tests/test_http_app.py415# ----------------------------------------------------------------------COMMENT
MEDIUM…ay/experimental/sandbox/http/tests/test_grpc_facade.py869# ----------------------------------------------------------------------COMMENT
MEDIUM…ay/experimental/sandbox/http/tests/test_grpc_facade.py871# ----------------------------------------------------------------------COMMENT
MEDIUM⚡…y/experimental/sandbox/http/tests/test_sandbox_host.py54# ----------------------------------------------------------------------COMMENT
MEDIUM⚡…y/experimental/sandbox/http/tests/test_sandbox_host.py56# ----------------------------------------------------------------------COMMENT
MEDIUM⚡…y/experimental/sandbox/http/tests/test_sandbox_host.py164# ----------------------------------------------------------------------COMMENT
MEDIUM⚡…y/experimental/sandbox/http/tests/test_sandbox_host.py167# ----------------------------------------------------------------------COMMENT
MEDIUM⚡…y/experimental/sandbox/http/tests/test_sandbox_host.py197# ----------------------------------------------------------------------COMMENT
MEDIUM⚡…y/experimental/sandbox/http/tests/test_sandbox_host.py199# ----------------------------------------------------------------------COMMENT
MEDIUM⚡…y/experimental/sandbox/http/tests/test_sandbox_host.py331# ----------------------------------------------------------------------COMMENT
MEDIUM⚡…y/experimental/sandbox/http/tests/test_sandbox_host.py333# ----------------------------------------------------------------------COMMENT
MEDIUM⚡…y/experimental/sandbox/http/tests/test_sandbox_host.py371# ----------------------------------------------------------------------COMMENT
MEDIUM⚡…y/experimental/sandbox/http/tests/test_sandbox_host.py373# ----------------------------------------------------------------------COMMENT
MEDIUM⚡…y/experimental/sandbox/http/tests/test_sandbox_host.py461# ----------------------------------------------------------------------COMMENT
MEDIUM⚡…y/experimental/sandbox/http/tests/test_sandbox_host.py463# ----------------------------------------------------------------------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.py458# -----------------------------------------------------------------------------COMMENT
MEDIUM…y/llm/_internal/batch/benchmark/benchmark_processor.py460# -----------------------------------------------------------------------------COMMENT
MEDIUM…y/llm/_internal/batch/benchmark/benchmark_processor.py551# -----------------------------------------------------------------------------COMMENT
MEDIUM…y/llm/_internal/batch/benchmark/benchmark_processor.py553# -----------------------------------------------------------------------------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
MEDIUM⚡python/ray/llm/_internal/serve/benchmark/interactive.py59# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡python/ray/llm/_internal/serve/benchmark/interactive.py799# ============================================================================COMMENT
MEDIUM⚡python/ray/llm/_internal/serve/benchmark/interactive.py801# ============================================================================COMMENT
MEDIUMpython/ray/llm/_internal/serve/benchmark/interactive.py87# ============================================================================COMMENT
MEDIUMpython/ray/llm/_internal/serve/benchmark/interactive.py89# ============================================================================COMMENT
MEDIUMpython/ray/llm/_internal/serve/benchmark/interactive.py166# ============================================================================COMMENT
827 more matches not shown…
Unused Imports2686 hits · 2486 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
2626 more matches not shown…
Over-Commented Block2949 hits · 2456 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.readthedocs.yaml1# .readthedocs.yamlCOMMENT
LOW.readthedocs.yaml21 # Code sources (python/ray/) are intentionally not matched, so aCOMMENT
LOW.readthedocs.yaml61 # config value differs between the environment that produced the cache andCOMMENT
LOW.readthedocs.yaml81 # Only the retry count is raised. The observed failures are immediate 502COMMENT
LOW.readthedocs.yaml101 # Most of that memory was a leak: MyST {eval-rst} blocks pickled the wholeCOMMENT
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.txt61 # via -r python/requirements.txtCOMMENT
LOWpython/requirements_compiled_py3.14.txt81 # via motoCOMMENT
LOWpython/requirements_compiled_py3.14.txt101 # via jupyter-serverCOMMENT
LOWpython/requirements_compiled_py3.14.txt121 # via -r python/requirements/test-requirements.txtCOMMENT
LOWpython/requirements_compiled_py3.14.txt141aws-sam-translator==1.98.0COMMENT
LOWpython/requirements_compiled_py3.14.txt161 # azure-identityCOMMENT
LOWpython/requirements_compiled_py3.14.txt181azure-mgmt-network==29.0.0COMMENT
LOWpython/requirements_compiled_py3.14.txt201 # -r python/requirements/ml/tune-requirements.txtCOMMENT
LOWpython/requirements_compiled_py3.14.txt221 # semgrepCOMMENT
LOWpython/requirements_compiled_py3.14.txt241 # motoCOMMENT
LOWpython/requirements_compiled_py3.14.txt261 # viaCOMMENT
LOWpython/requirements_compiled_py3.14.txt281cfgv==3.5.0COMMENT
LOWpython/requirements_compiled_py3.14.txt301 # daskCOMMENT
LOWpython/requirements_compiled_py3.14.txt321clickhouse-connect==0.15.1COMMENT
LOWpython/requirements_compiled_py3.14.txt341 # viaCOMMENT
LOWpython/requirements_compiled_py3.14.txt361 # via -r python/requirements/ml/data-test-requirements.txtCOMMENT
LOWpython/requirements_compiled_py3.14.txt381 # jwcryptoCOMMENT
LOWpython/requirements_compiled_py3.14.txt401dask==2026.3.0COMMENT
LOWpython/requirements_compiled_py3.14.txt421 # tensorflow-probabilityCOMMENT
LOWpython/requirements_compiled_py3.14.txt441 # viaCOMMENT
LOWpython/requirements_compiled_py3.14.txt461 # via pymongoCOMMENT
LOWpython/requirements_compiled_py3.14.txt481 # array-recordCOMMENT
LOWpython/requirements_compiled_py3.14.txt501 # mlflow-skinnyCOMMENT
LOWpython/requirements_compiled_py3.14.txt521 # torchCOMMENT
LOWpython/requirements_compiled_py3.14.txt541 # viaCOMMENT
LOWpython/requirements_compiled_py3.14.txt561 # modinCOMMENT
LOWpython/requirements_compiled_py3.14.txt581 # mlflow-skinnyCOMMENT
LOWpython/requirements_compiled_py3.14.txt601 # viaCOMMENT
LOWpython/requirements_compiled_py3.14.txt621 # via -r python/requirements/ml/data-test-requirements.txtCOMMENT
LOWpython/requirements_compiled_py3.14.txt641 # viaCOMMENT
LOWpython/requirements_compiled_py3.14.txt661 # via alive-progressCOMMENT
LOWpython/requirements_compiled_py3.14.txt681 # -r python/requirements.txtCOMMENT
LOWpython/requirements_compiled_py3.14.txt701gsutil==5.27COMMENT
LOWpython/requirements_compiled_py3.14.txt721 # via gradioCOMMENT
LOWpython/requirements_compiled_py3.14.txt741 # oauth2clientCOMMENT
LOWpython/requirements_compiled_py3.14.txt761 # datasetsCOMMENT
LOWpython/requirements_compiled_py3.14.txt781 # jsonschemaCOMMENT
LOWpython/requirements_compiled_py3.14.txt801 # via prophetCOMMENT
LOWpython/requirements_compiled_py3.14.txt821 # azure-mgmt-resourceCOMMENT
LOWpython/requirements_compiled_py3.14.txt841 # -r python/requirements/test-requirements.txtCOMMENT
LOWpython/requirements_compiled_py3.14.txt861 # botocoreCOMMENT
LOWpython/requirements_compiled_py3.14.txt881 # jsonschemaCOMMENT
LOWpython/requirements_compiled_py3.14.txt901 # openapi-schema-validatorCOMMENT
LOWpython/requirements_compiled_py3.14.txt921 # viaCOMMENT
LOWpython/requirements_compiled_py3.14.txt941 # -r python/requirements/test-requirements.txtCOMMENT
LOWpython/requirements_compiled_py3.14.txt961 # via openapi-spec-validatorCOMMENT
LOWpython/requirements_compiled_py3.14.txt981 # viaCOMMENT
LOWpython/requirements_compiled_py3.14.txt1001markdown-it-py==2.2.0COMMENT
LOWpython/requirements_compiled_py3.14.txt1021 # zooptCOMMENT
2889 more matches not shown…
Self-Referential Comments801 hits · 2310 pts
SeverityFileLineSnippetContext
MEDIUMpython/setup.py636 # Create the target directory if it doesn't already exist.COMMENT
MEDIUMpython/ray/cluster_utils.py172 # 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/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.py278 # 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.py264 # Create an LLM engine.COMMENT
MEDIUMpython/ray/llm/_internal/serve/core/ingress/ingress.py211 # 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
MEDIUMpython/ray/_common/tests/test_usage_stats.py1551 # Create a mock response based on the URL.COMMENT
MEDIUMpython/ray/_common/tests/test_signature.py95 # Create a mock Cython function missing required attributesCOMMENT
MEDIUMpython/ray/_common/observability/__init__.py1"""This module provides the Python API for emitting internal Ray eventsSTRING
MEDIUMpython/ray/dag/compiled_dag_node.py1660 # Create an output channel for each output of the current node.STRING
741 more matches not shown…
Docstring Block Structure445 hits · 2085 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.py352Waits 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/image_manager.py285Path 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.py268Resolve ``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.py949Flatten ``image`` into ``rootfs_dir`` and return its recorded owners. ``image`` is a local tar archive or a registrSTRING
HIGHpython/ray/experimental/sandbox/backend/gvisor.py303Turn ``user`` into the numeric ``uid[:gid]`` form runsc exec accepts. Names resolve against the ``/etc/passwd``STRING
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.py45 Sample prompts from the loaded dataset. Args: num_requests: The number of prompts to samplSTRING
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.py178 Create a Ray Serve ingress deployment from a class and endpoint mapping. Args: cls: The class to conveSTRING
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.py135Extracts 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
HIGHpython/ray/util/tpu.py42Extracts the version from the accelerator type. Args: accelerator_type: The full accelerator type string (eSTRING
HIGHpython/ray/util/tpu.py977Run a remote function on every host in a TPU slice. Dispatches one task per host in the slice, pinning each task toSTRING
HIGHpython/ray/util/tpu.py2160Asynchronously creates a PlacementGroup for a TPU subslice. A subslice placement group reserves a contiguous subsetSTRING
HIGHpython/ray/util/actor_pool.py220Returns the next pending result in order. This returns the next result produced by submit(), blocking for up toSTRING
HIGHpython/ray/util/actor_pool.py288Returns any of the next pending results. This returns some result produced by submit(), blocking for up to STRING
HIGHpython/ray/util/annotations.py34Annotation for documenting public APIs. Public APIs are classes and methods exposed to end users of Ray. If ``STRING
HIGHpython/ray/util/annotations.py108Annotation for documenting developer APIs. Developer APIs are lower-level methods explicitly exposed to advanced RaSTRING
HIGHpython/ray/util/annotations.py168Annotation for documenting a deprecated API. Deprecated APIs may be removed in future releases of Ray. Args: STRING
HIGHpython/ray/util/dask/scheduler_utils.py48Start state from a dask. Args: dsk: A dask dictionary specifying a workflow. cache: Temporary storaSTRING
HIGHpython/ray/util/dask/scheduler_utils.py196Get nested index from collection. Args: ind: Index or nested list of indices. coll: Collection to iSTRING
HIGHpython/ray/util/state/state_manager.py86Apply the network error handling logic to each APIs, such as retry or exception policies. Args: STRING
385 more matches not shown…
Empty Error Handlers386 hits · 1925 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/runtime.py133except Exception:CODE
HIGHpython/ray/experimental/sandbox/sandbox.py72except Exception:CODE
HIGHpython/ray/experimental/sandbox/sandbox.py95except Exception:CODE
HIGH…thon/ray/experimental/sandbox/_internal/image_utils.py567except OSError:CODE
HIGH…thon/ray/experimental/sandbox/_internal/image_utils.py698except OSError:CODE
HIGH…thon/ray/experimental/sandbox/_internal/image_utils.py490except OSError:CODE
HIGH…thon/ray/experimental/sandbox/_internal/image_utils.py597except OSError:CODE
HIGH…thon/ray/experimental/sandbox/_internal/image_utils.py639except OSError:CODE
HIGH…thon/ray/experimental/sandbox/_internal/image_utils.py938except Exception:CODE
HIGH…thon/ray/experimental/sandbox/_internal/image_utils.py440except OSError:CODE
HIGH…thon/ray/experimental/sandbox/_internal/image_utils.py785except OSError:CODE
HIGH…thon/ray/experimental/sandbox/_internal/image_utils.py816except OSError:CODE
HIGH…thon/ray/experimental/sandbox/_internal/image_utils.py408except OSError:CODE
HIGH…thon/ray/experimental/sandbox/_internal/image_utils.py394except OSError:CODE
HIGH…thon/ray/experimental/sandbox/_internal/image_utils.py454except OSError:CODE
HIGH…thon/ray/experimental/sandbox/_internal/image_utils.py375except OSError:CODE
HIGH…thon/ray/experimental/sandbox/_internal/image_utils.py471except OSError:CODE
HIGHpython/ray/experimental/sandbox/backend/gvisor.py508except subprocess.TimeoutExpired:CODE
HIGHpython/ray/experimental/sandbox/backend/gvisor.py587except (subprocess.TimeoutExpired, ValueError):CODE
HIGHpython/ray/experimental/sandbox/backend/gvisor.py271except subprocess.TimeoutExpired:CODE
HIGHpython/ray/experimental/sandbox/backend/gvisor.py285except Exception:CODE
HIGHpython/ray/experimental/sandbox/http/host.py451except asyncio.TimeoutError:CODE
HIGHpython/ray/experimental/sandbox/http/host.py557except asyncio.TimeoutError:CODE
HIGHpython/ray/experimental/sandbox/http/app.py420except _ApiError:CODE
HIGH…y/experimental/sandbox/http/tests/test_modal_client.py90except asyncio.TimeoutError: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.py63except 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
HIGHpython/ray/llm/_internal/serve/utils/batcher.py70except asyncio.TimeoutError:CODE
HIGH…y/llm/tests/batch/gpu/stages/test_vllm_engine_stage.py903except Exception:CODE
HIGH…rve/gpu/deployments/llm/vllm/test_config_congruence.py119except Exception:CODE
HIGH…rve/gpu/deployments/llm/vllm/test_config_congruence.py173except Exception:CODE
HIGH…rve/gpu/deployments/llm/vllm/test_config_congruence.py71except Exception:CODE
HIGH…tests/serve/cpu/deployments/llm/test_llm_engine_tpu.py122except Exception:CODE
HIGH…tests/serve/cpu/deployments/llm/test_llm_engine_tpu.py229except Exception:CODE
HIGH…tests/serve/cpu/deployments/llm/test_llm_engine_tpu.py55except Exception:CODE
HIGH…tests/serve/cpu/deployments/llm/test_llm_engine_tpu.py95except Exception:CODE
HIGH…loyments/llm/vllm/kv_transfer_backends/test_factory.py62except RuntimeError:CODE
HIGH…lm/tests/serve/cpu/deployments/utils/test_broadcast.py145except Exception:CODE
HIGHpython/ray/util/iter.py1282except StopIteration:CODE
HIGHpython/ray/util/iter.py472except StopIteration:CODE
HIGHpython/ray/util/iter.py623except StopIteration:CODE
HIGHpython/ray/util/check_serialize.py232except Exception:CODE
HIGHpython/ray/util/tpu.py1250except Exception:CODE
HIGHpython/ray/util/actor_pool.py91except TimeoutError:CODE
HIGHpython/ray/util/actor_pool.py141except TimeoutError:CODE
326 more matches not shown…
Excessive Try-Catch Wrapping1626 hits · 1716 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.py333 except Exception as err:CODE
LOWpython/ray/experimental/sandbox/runtime.py133 except Exception:CODE
LOWpython/ray/experimental/sandbox/sandbox.py72 except Exception:CODE
LOWpython/ray/experimental/sandbox/sandbox.py95 except Exception:CODE
MEDIUMpython/ray/experimental/sandbox/sandbox.py92def __del__(self):CODE
LOW…thon/ray/experimental/sandbox/_internal/image_utils.py234 except Exception as auth_err:CODE
LOW…thon/ray/experimental/sandbox/_internal/image_utils.py239 except Exception as err:CODE
LOW…thon/ray/experimental/sandbox/_internal/image_utils.py846 except Exception as err:CODE
LOW…thon/ray/experimental/sandbox/_internal/image_utils.py904 except Exception:CODE
LOW…thon/ray/experimental/sandbox/_internal/image_utils.py938 except Exception:CODE
LOW…thon/ray/experimental/sandbox/_internal/image_utils.py973 except Exception as err:CODE
LOW…thon/ray/experimental/sandbox/_internal/image_utils.py1051 except Exception as e:CODE
LOW…thon/ray/experimental/sandbox/_internal/image_utils.py1072 except Exception as err:CODE
LOWpython/ray/experimental/sandbox/tests/conftest.py63 except Exception as e:CODE
LOWpython/ray/experimental/sandbox/tests/conftest.py80 except Exception as e:CODE
MEDIUM…/ray/experimental/sandbox/tests/test_gvisor_backend.py728def run(sb, name):CODE
LOW…/ray/experimental/sandbox/tests/test_gvisor_backend.py733 except Exception as exc: # surfaced in the main thread belowCODE
LOWpython/ray/experimental/sandbox/backend/gvisor.py154 except Exception as err:CODE
LOWpython/ray/experimental/sandbox/backend/gvisor.py176 except Exception:CODE
LOWpython/ray/experimental/sandbox/backend/gvisor.py218 except Exception as e:CODE
LOWpython/ray/experimental/sandbox/backend/gvisor.py232 except Exception:CODE
LOWpython/ray/experimental/sandbox/backend/gvisor.py285 except Exception:CODE
LOWpython/ray/experimental/sandbox/backend/gvisor.py408 except Exception as err:CODE
LOWpython/ray/experimental/sandbox/http/grpc_facade.py353 except Exception as exc:CODE
LOWpython/ray/experimental/sandbox/http/grpc_facade.py369 except Exception as exc:CODE
LOWpython/ray/experimental/sandbox/http/grpc_facade.py761 except Exception as exc:CODE
LOWpython/ray/experimental/sandbox/http/grpc_facade.py849 except Exception:CODE
LOWpython/ray/experimental/sandbox/http/grpc_facade.py982 except Exception as exc:CODE
LOWpython/ray/experimental/sandbox/http/host.py303 except Exception as exc:CODE
LOWpython/ray/experimental/sandbox/http/host.py338 except Exception:CODE
LOWpython/ray/experimental/sandbox/http/host.py375 except Exception as exc:CODE
LOWpython/ray/experimental/sandbox/http/host.py524 except Exception as exc:CODE
LOWpython/ray/experimental/sandbox/http/resolver.py182 except Exception as exc:CODE
LOWpython/ray/experimental/sandbox/http/app.py90 except Exception as exc:CODE
LOWpython/ray/experimental/sandbox/http/tests/conftest.py275 except Exception as e:CODE
LOWpython/ray/experimental/rdt/cuda_ipc_transport.py181 except Exception as e:CODE
LOWpython/ray/experimental/rdt/rdt_manager.py338 except Exception as e:CODE
LOW⚡python/ray/experimental/rdt/nixl_tensor_transport.py806 except Exception:CODE
LOWpython/ray/experimental/rdt/nixl_tensor_transport.py75 except Exception:CODE
LOWpython/ray/experimental/rdt/nixl_tensor_transport.py538 except Exception:CODE
LOWpython/ray/experimental/rdt/nixl_tensor_transport.py605 except Exception:CODE
LOWpython/ray/experimental/rdt/nixl_tensor_transport.py764 except Exception as e:CODE
LOWpython/ray/experimental/rdt/rdt_store.py92 except Exception as e:CODE
LOWpython/ray/experimental/rdt/rdt_store.py127 except Exception:CODE
LOWpython/ray/llm/_internal/common/callbacks/base.py109 except Exception as e:CODE
LOWpython/ray/llm/_internal/common/callbacks/base.py131 except Exception as e:CODE
LOWpython/ray/llm/_internal/common/utils/cloud_utils.py286 except Exception as e:CODE
LOWpython/ray/llm/_internal/common/utils/cloud_utils.py336 except Exception as e:CODE
LOWpython/ray/llm/_internal/common/utils/lora_utils.py127 except Exception as e:CODE
LOW…nternal/common/utils/cloud_filesystem/s3_filesystem.py126 except Exception as e:CODE
1566 more matches not shown…
Cross-File Repetition308 hits · 1540 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
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
HIGH…on/ray/llm/_internal/serve/engines/vllm/vllm_engine.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.py0execute a collective rpc call on all vllm workers. this is used for rlhf workflows where a trainer needs to execute methSTRING
HIGHpython/ray/llm/_internal/serve/core/engine/protocol.py0execute a collective rpc call on all vllm workers. this is used for rlhf workflows where a trainer needs to execute methSTRING
HIGH…on/ray/llm/_internal/serve/engines/vllm/vllm_engine.py0execute a collective rpc call on all vllm workers. this is used for rlhf workflows where a trainer needs to execute methSTRING
HIGHpython/ray/llm/tests/conftest.py0{% if messages[0]['role'] == 'system' %} {% set offset = 1 %} {% else %} {% set offset = 0 %} {% endif %} {{ bos_token }STRING
HIGH…llm/tests/batch/gpu/processor/test_vllm_engine_proc.py0{% if messages[0]['role'] == 'system' %} {% set offset = 1 %} {% else %} {% set offset = 0 %} {% endif %} {{ bos_token }STRING
HIGHrelease/llm_tests/batch/test_batch_sglang.py0{% if messages[0]['role'] == 'system' %} {% set offset = 1 %} {% else %} {% set offset = 0 %} {% endif %} {{ bos_token }STRING
HIGHpython/ray/util/collective/collective.py0returns the ip address and a free port on this node.STRING
248 more matches not shown…
Cross-Language Confusion285 hits · 1534 pts
SeverityFileLineSnippetContext
HIGH⚡…/ray/experimental/sandbox/tests/test_gvisor_backend.py449 "touch /probe && chown 38:38 /probe && stat -c %u:%g /probe && "CODE
HIGH⚡…/ray/experimental/sandbox/tests/test_gvisor_backend.py450 "adduser -D -u 1234 alice && mkdir -p /srv/lists && touch /srv/lists/cfg && "CODE
HIGH⚡…/ray/experimental/sandbox/tests/test_gvisor_backend.py451 "chown -R alice:alice /srv/lists && stat -c %u:%g /srv/lists/cfg && "CODE
HIGH⚡…/ray/experimental/sandbox/tests/test_gvisor_backend.py452 "mkdir /srv/shared && chown 0:104 /srv/shared && chmod 2770 /srv/shared && "CODE
HIGH⚡…/ray/experimental/sandbox/tests/test_gvisor_backend.py453 "touch /srv/shared/post && stat -c %g /srv/shared/post",CODE
HIGH⚡…/ray/experimental/sandbox/tests/test_gvisor_backend.py489 "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.py489 "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.py215 "/bin/sh -c 'echo ws_ok > /workspace/ws.txt && cat /workspace/ws.txt'",CODE
HIGH…/ray/experimental/sandbox/tests/test_gvisor_backend.py275 "echo ws_ok > /workspace/ws.txt && cat /workspace/ws.txt && "CODE
HIGH…/ray/experimental/sandbox/tests/test_gvisor_backend.py276 "echo root_ok > /probe.txt && cat /probe.txt",CODE
HIGH…/ray/experimental/sandbox/tests/test_gvisor_backend.py787 res = backend.exec_command(sb, "id -u && id -g", user="alice", timeout=30)CODE
HIGHpython/ray/experimental/sandbox/backend/gvisor.py554 "kill -0 $HOLDER 2>/dev/null || break; sleep 0.1; done; "CODE
HIGHpython/ray/experimental/sandbox/backend/gvisor.py555 f"NSPID=$(cat {netns_pidfile} 2>/dev/null); "CODE
HIGHpython/ray/experimental/sandbox/backend/gvisor.py566 "kill -0 $SLIRP 2>/dev/null || break; sleep 0.1; done; "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
HIGHpython/ray/dashboard/modules/job/sdk.py485 ... 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.py316 "python script.py && python -c 'import pip_install_test'"STRING
HIGH…ay/dashboard/modules/job/tests/test_http_job_server.py538 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
HIGH⚡python/ray/rllib/utils/filter.py431 buffer.push(x)CODE
HIGHpython/ray/rllib/utils/metrics/legacy_stats.py313 self.push(time_delta_s)CODE
HIGHpython/ray/rllib/utils/metrics/legacy_stats.py586 self._throughput_stats.push(value / time_diff)CODE
HIGH⚡python/ray/rllib/utils/metrics/window_stat.py14 win_stats.push(5.0)STRING
HIGH⚡python/ray/rllib/utils/metrics/window_stat.py15 win_stats.push(7.0)STRING
HIGH⚡python/ray/rllib/utils/metrics/window_stat.py16 win_stats.push(7.0)STRING
HIGH⚡python/ray/rllib/utils/metrics/window_stat.py17 win_stats.push(10.0)STRING
HIGHpython/ray/rllib/utils/metrics/metrics_logger.py438 stats.push(value)CODE
HIGH⚡python/ray/rllib/utils/metrics/tests/test_stats.py135 tensor_stats_with_nan.push(tensor_val)CODE
HIGH⚡python/ray/rllib/utils/metrics/tests/test_stats.py138 tensor_stats_with_nan.push(nan_tensor_val)CODE
HIGH⚡python/ray/rllib/utils/metrics/tests/test_stats.py152 stats.push(value)CODE
HIGH⚡python/ray/rllib/utils/metrics/tests/test_stats.py303 incoming_stats.push(42)CODE
225 more matches not shown…
Hallucination Indicators109 hits · 1175 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.py1090 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_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.py228log_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.py1618 ray._private.worker.global_worker.node.get_session_dir_path()CODE
CRITICAL…on/ray/dashboard/modules/job/tests/test_job_manager.py943 "job_config=ray._private.worker.global_worker.core_worker.get_job_config();"CODE
49 more matches not shown…
Modern Structural Boilerplate1117 hits · 1119 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.py20logger = 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.py20logger = logging.getLogger(__name__)CODE
LOWpython/ray/experimental/sandbox/__init__.py117__all__ = [CODE
LOW…thon/ray/experimental/sandbox/_internal/image_utils.py24logger = logging.getLogger(__name__)CODE
LOWpython/ray/experimental/sandbox/backend/__init__.py8__all__ = [CODE
LOWpython/ray/experimental/sandbox/backend/gvisor.py27logger = logging.getLogger(__name__)CODE
LOWpython/ray/experimental/sandbox/http/grpc_facade.py76logger = logging.getLogger(__name__)CODE
LOWpython/ray/experimental/sandbox/http/host.py58logger = logging.getLogger(__name__)CODE
LOWpython/ray/experimental/sandbox/http/host.py419 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.py48logger = logging.getLogger(__name__)CODE
LOWpython/ray/experimental/sandbox/http/tests/conftest.py289__all__ = [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
LOW…ray/llm/_internal/common/callbacks/cloud_downloader.py9logger = logging.getLogger(__name__)CODE
LOWpython/ray/llm/_internal/common/callbacks/base.py11logger = logging.getLogger(__name__)CODE
LOWpython/ray/llm/_internal/common/utils/cloud_utils.py443 def _update_cache(self, key: str, value: Any) -> None:CODE
LOWpython/ray/llm/_internal/common/utils/import_utils.py7logger = logging.getLogger(__name__)CODE
LOW…lm/_internal/common/utils/cloud_filesystem/__init__.py23__all__ = [CODE
LOWpython/ray/llm/_internal/batch/__init__.py8__all__ = [CODE
LOWpython/ray/llm/_internal/batch/utils.py10logger = logging.getLogger(__name__)CODE
LOW…/ray/llm/_internal/batch/stages/sglang_engine_stage.py19logger = logging.getLogger(__name__)CODE
LOWpython/ray/llm/_internal/batch/stages/__init__.py92__all__ = [CODE
1057 more matches not shown…
Deep Nesting1275 hits · 1114 pts
SeverityFileLineSnippetContext
LOWpython/setup.py649CODE
LOWpython/setup.py81CODE
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.py39CODE
LOW…thon/ray/experimental/sandbox/_internal/image_utils.py187CODE
LOW…thon/ray/experimental/sandbox/_internal/image_utils.py318CODE
LOW…thon/ray/experimental/sandbox/_internal/image_utils.py720CODE
LOW…thon/ray/experimental/sandbox/_internal/image_utils.py746CODE
LOW…thon/ray/experimental/sandbox/_internal/image_utils.py824CODE
LOW…thon/ray/experimental/sandbox/_internal/image_utils.py942CODE
LOWpython/ray/experimental/sandbox/backend/gvisor.py98CODE
LOWpython/ray/experimental/sandbox/http/grpc_facade.py884CODE
LOWpython/ray/experimental/sandbox/http/grpc_facade.py1017CODE
LOWpython/ray/experimental/sandbox/http/app.py128CODE
LOWpython/ray/experimental/sandbox/http/app.py250CODE
LOW…ay/experimental/sandbox/http/tests/test_grpc_facade.py984CODE
LOW…ay/experimental/sandbox/http/tests/test_grpc_facade.py1006CODE
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.py49CODE
LOW…n/ray/llm/_internal/batch/stages/http_request_stage.py93CODE
LOW…n/ray/llm/_internal/batch/stages/http_request_stage.py124CODE
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
LOWpython/ray/llm/_internal/serve/benchmark/interactive.py521CODE
LOWpython/ray/llm/_internal/serve/benchmark/runners.py471CODE
LOWpython/ray/llm/_internal/serve/benchmark/runners.py689CODE
LOW…rnal/serve/serving_patterns/data_parallel/dp_server.py244CODE
LOW…nal/serve/serving_patterns/prefill_decode/pd_server.py399CODE
LOWpython/ray/llm/_internal/serve/core/ingress/ingress.py439CODE
LOWpython/ray/llm/_internal/serve/core/ingress/builder.py190CODE
LOWpython/ray/llm/_internal/serve/core/ingress/utils.py30CODE
LOWpython/ray/llm/_internal/serve/utils/server_utils.py160CODE
LOWpython/ray/llm/_internal/serve/utils/batcher.py50CODE
LOW…on/ray/llm/_internal/serve/engines/vllm/vllm_models.py267CODE
LOW…ting_policies/kv_aware/vllm/prompt_token_forwarding.py18CODE
LOW…e/routing_policies/prefix_aware/prefix_aware_router.py208CODE
LOW…nal/serve/routing_policies/prefix_aware/prefix_tree.py253CODE
LOW…nal/serve/routing_policies/prefix_aware/prefix_tree.py376CODE
1215 more matches not shown…
Structural Annotation Overuse512 hits · 902 pts
SeverityFileLineSnippetContext
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
LOWpython/ray/serve/tests/test_capacity_queue_router.py647 # Step 2: Kill the queue. It restarts with in_flight=0.COMMENT
LOWpython/ray/serve/tests/unit/test_deployment_state.py4026 # Step 1: Create some deployment info with actors in running stateCOMMENT
LOWpython/ray/data/aggregate.py2180 # NOTE: The result must itself be a valid accumulator: the reduce sideCOMMENT
LOWpython/ray/data/dataset.py8538 # NOTE: This method expected to have executor fully shutdown upon returningCOMMENT
LOWpython/ray/data/_internal/table_block.py345 # Step 1: Initialize accumulators for this groupCOMMENT
LOWpython/ray/data/_internal/table_block.py357 # Step 2: Apply aggregations to provided group's blockCOMMENT
LOWpython/ray/data/_internal/table_block.py368 # Step 3: Compose resulting row fromCOMMENT
LOWpython/ray/data/_internal/planner/plan_udf_map_op.py850 # NOTE: This method is nested to support Python 3.9 where we only canCOMMENT
LOW⚡…thon/ray/data/_internal/block_batching/iter_batches.py241 # Step 1: Prefetch logical batches locally.COMMENT
LOW⚡…thon/ray/data/_internal/block_batching/iter_batches.py244 # Step 2: Resolve the blocks.COMMENT
LOW⚡…thon/ray/data/_internal/block_batching/iter_batches.py247 # Step 3: Batch and shuffle the resolved blocks.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.py27 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 · 377 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.py416 # 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.py387 # Check if th redis has started successfully and is listening on the port.COMMENT
LOWpython/ray/tests/conftest.py1213# 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.py1607 # 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.py92 # Check if user provided their own Authorization header (case-insensitive)COMMENT
LOW…/_private/authentication/authentication_token_setup.py143 # 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 Patterns344 hits · 286 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.py326CODE
LOWpython/ray/experimental/shuffle.py231CODE
LOWpython/ray/experimental/sandbox/image_manager.py136CODE
LOWpython/ray/experimental/sandbox/image_manager.py187CODE
LOWpython/ray/experimental/sandbox/image_manager.py361CODE
LOWpython/ray/experimental/sandbox/image_manager.py583CODE
LOWpython/ray/experimental/sandbox/__init__.py34CODE
LOWpython/ray/experimental/sandbox/runtime.py47CODE
LOWpython/ray/experimental/sandbox/sandbox.py46CODE
LOWpython/ray/experimental/sandbox/backend/gvisor.py603CODE
LOW…/ray/llm/_internal/batch/stages/sglang_engine_stage.py78CODE
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.py264CODE
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
LOWpython/ray/air/integrations/wandb.py594CODE
LOWpython/ray/_private/worker.py1446CODE
LOWpython/ray/_private/worker.py2506CODE
LOWpython/ray/_private/worker.py3774CODE
LOWpython/ray/_private/test_utils.py266CODE
LOWpython/ray/_private/services.py883CODE
LOWpython/ray/_private/services.py1523CODE
LOWpython/ray/_private/services.py1610CODE
LOWpython/ray/_private/services.py2338CODE
LOWpython/ray/_private/services.py2421CODE
LOWpython/ray/_private/parameter.py129CODE
LOWpython/ray/_private/thirdparty/pynvml/pynvml.py2854CODE
LOWpython/ray/_private/thirdparty/pynvml/pynvml.py5957CODE
LOWpython/ray/_private/thirdparty/pynvml/pynvml.py5962CODE
LOWpython/ray/_private/thirdparty/tabulate/tabulate.py1556CODE
LOW…ard/modules/platform_events/tests/test_k8s_provider.py22CODE
LOWpython/ray/dashboard/modules/job/sdk.py133CODE
LOWpython/ray/dashboard/modules/job/job_manager.py463CODE
LOWpython/ray/dashboard/modules/log/log_manager.py390CODE
LOWpython/ray/rllib/core/models/torch/primitives.py27CODE
LOWpython/ray/rllib/core/learner/learner_group.py256CODE
LOWpython/ray/rllib/core/learner/learner.py1067CODE
LOW…hon/ray/rllib/core/learner/torch/torch_meta_learner.py97CODE
284 more matches not shown…
AI Slop Vocabulary137 hits · 278 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
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.py190 # 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.py2162 # 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.py381 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.py245 # 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
LOW…hon/ray/rllib/evaluation/collectors/agent_collector.py502 # In this case we should just create an empty array and return it.COMMENT
77 more matches not shown…
Verbosity Indicators128 hits · 236 pts
SeverityFileLineSnippetContext
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
LOWpython/ray/serve/tests/unit/test_deployment_state.py4026 # Step 1: Create some deployment info with actors in running stateCOMMENT
LOWpython/ray/data/_internal/table_block.py345 # Step 1: Initialize accumulators for this groupCOMMENT
LOWpython/ray/data/_internal/table_block.py357 # Step 2: Apply aggregations to provided group's blockCOMMENT
LOWpython/ray/data/_internal/table_block.py368 # Step 3: Compose resulting row fromCOMMENT
LOW⚡…thon/ray/data/_internal/block_batching/iter_batches.py241 # Step 1: Prefetch logical batches locally.COMMENT
LOW⚡…thon/ray/data/_internal/block_batching/iter_batches.py244 # Step 2: Resolve the blocks.COMMENT
LOW⚡…thon/ray/data/_internal/block_batching/iter_batches.py247 # Step 3: Batch and shuffle the resolved blocks.COMMENT
LOW⚡…thon/ray/data/_internal/block_batching/iter_batches.py250 # Step 4: Format and collate the batches in a threadpool.COMMENT
LOW…thon/ray/data/_internal/block_batching/iter_batches.py261 # Step 6: Finalize the batches (e.g., move to GPU).COMMENT
LOW…ay/data/_internal/logical/rules/projection_pushdown.py424 # Step 1: Iteratively fuse with upstream Project operationsCOMMENT
LOW⚡…ay/data/_internal/logical/rules/projection_pushdown.py443 # Step 2: Push projection into the data source if supportedCOMMENT
68 more matches not shown…
Slop Phrases79 hits · 174 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.py1019 # 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.py265 # 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
19 more matches not shown…
AI Response Leakage8 hits · 64 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
HIGH…al/pytorch_tutorials_hyperparameter_tuning_tutorial.py87# In this example, we can specifyCOMMENT
HIGH…al/pytorch_tutorials_hyperparameter_tuning_tutorial.py369# In this example, the ``l1`` and ``l2`` parametersCOMMENT
Magic Placeholder Names16 hits · 52 pts
SeverityFileLineSnippetContext
HIGHpython/ray/data/dataset.py6617 api_key="<YOUR_API_KEY>",STRING
HIGHpython/ray/data/dataset.py6617 api_key="<YOUR_API_KEY>",STRING
HIGHpython/ray/data/dataset.py6628 api_key="<YOUR_API_KEY>",STRING
HIGHpython/ray/data/dataset.py6628 api_key="<YOUR_API_KEY>",STRING
HIGH…/ray/data/_internal/datasource/turbopuffer_datasink.py101 api_key="<YOUR_API_KEY>",STRING
HIGH…/ray/data/_internal/datasource/turbopuffer_datasink.py101 api_key="<YOUR_API_KEY>",STRING
HIGH…/ray/data/_internal/datasource/turbopuffer_datasink.py114 api_key="<YOUR_API_KEY>",STRING
HIGH…/ray/data/_internal/datasource/turbopuffer_datasink.py114 api_key="<YOUR_API_KEY>",STRING
HIGH…/ray/data/_internal/datasource/turbopuffer_datasink.py127 api_key="<YOUR_API_KEY>",STRING
HIGH…/ray/data/_internal/datasource/turbopuffer_datasink.py127 api_key="<YOUR_API_KEY>",STRING
HIGHdoc/source/train/user-guides/experiment-tracking.md46ray.init(runtime_env={"env_vars": {"WANDB_API_KEY": "your_api_key"}})CODE
HIGHdoc/source/train/user-guides/experiment-tracking.md144# This is equivalent to `os.environ["WANDB_API_KEY"] = "your_api_key"`COMMENT
HIGHdoc/source/train/user-guides/experiment-tracking.md145wandb.login(key="your_api_key")CODE
HIGHdoc/source/train/user-guides/experiment-tracking.md197ray.init(runtime_env={"env_vars": {"SOME_API_KEY": "your_api_key"}})CODE
HIGHdoc/source/train/user-guides/experiment-tracking.md352wandb: 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.py881CODE
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.py190CODE
MEDIUM…hon/ray/rllib/core/learner/tests/test_learner_group.py192CODE
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.py713 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
Overly Generic Function Names32 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.py112 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.py179 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
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__.py114# 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