Repository Analysis

gpustack/gpustack

A GPU cluster manager for high-performance AI model serving (vLLM, SGLang) and on-demand SSH-accessible GPU instances.

23.1 Moderate AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of gpustack/gpustack, a Python project with 5,571 GitHub stars. SynthScan v2.0 examined 266,999 lines of code across 765 source files, recording 5273 pattern matches distributed across 25 syntactic categories. The overall adjusted score of 23.1 places this repository in the Moderate AI signal band.

The scanner applied 160+ deterministic lexical heuristics, multi-line block detectors, abstract syntax tree depth profilers, and a cross-file Jaccard similarity matrix to construct a statistically normalised synthetic code estimate. All matches are individually weighted by severity coefficient and contextual multiplier before summation, and the resulting headline score is temporally discounted to account for the repository's development history relative to the commercial emergence of large language model coding tooling (November 2022 onward).

23.1
Adjusted Score
23.1
Raw Score
100%
Time Factor
2026-08-28
Last Push
5.6K
Stars
Python
Language
267.0K
Lines of Code
765
Files
5.3K
Pattern Hits
2026-08-29
Scan Date
0.14
HC Hit Rate

What These Metrics Mean

Adjusted Score
Primary synthetic code indicator. Raw score normalised per 1,000 lines of code and multiplied by the temporal discount factor. This is the definitive comparative metric — use it to rank repositories by AI authorship density.
Raw Score
The unmodified sum of all severity-weighted, context-multiplied pattern match scores before temporal discounting. Reflects the absolute signal strength independent of when the repository was last active.
Time Factor
The temporal discount multiplier (0–100%) applied to the raw score. Repositories last updated before ChatGPT's launch (Nov 2022) receive a 5% factor. Full signal is only assigned to repositories active in the post-adoption era (Jan 2024+).
Pattern Hits
Total count of individual pattern matches across all files and categories. A high hit count with a low score may indicate a very large codebase with isolated AI snippets; a low count with a high score indicates dense, concentrated AI signatures.
HC Hit Rate
High+Critical pattern hits per file, averaged across the repository. This orthogonal signal catches repositories where a few files are densely packed with high-severity AI tells — a strong indicator even when the normalised score appears moderate due to codebase size.
Lines of Code / Files
Total lines and files analysed. The scanner examines 94 file extensions. These denominators are used to normalise the score, enabling fair comparison between repositories of vastly different sizes.

Score History

This chart maps the temporal evolution of the adjusted synthetic code score across successive scan runs. An upward trajectory indicates ongoing incorporation of AI-generated code or expanding LLM-assisted scaffolding; a stable or declining trajectory may reflect active human refactoring, code removal, or the adoption of stricter authorship policies. The dashed secondary line (right axis) independently tracks total raw pattern hit count, which can diverge from the normalised score when codebase size changes significantly between scans.

Severity Breakdown

Classifies detected patterns by their diagnostic confidence and structural impact. CRITICAL patterns (coefficient 10) represent definitive synthetic signatures — hallucinated imports, explicit LLM attribution metadata — virtually never produced by human authors. HIGH (5) indicates strong structural tells such as cross-file repetition or cross-linguistic idioms. MEDIUM (2) covers recognisable conversational padding and AI-specific vocabulary. LOW (1) captures subtle indicators like tautological comments and generic boilerplate that require density to carry independent signal.

CRITICAL 1HIGH 106MEDIUM 307LOW 4859

Directory Score Breakdown

This horizontal bar chart decomposes the repository's raw synthetic code score by top-level directory, allowing you to pinpoint precisely which modules or components carry the highest AI authorship density. Directories with disproportionately high scores relative to their size warrant targeted manual review: concentrated AI signatures often trace back to mass-generated configuration layers, auto-ported test suites, LLM-scaffolded boilerplate classes, or entire subsystems authored under heavy copilot assistance. Use this view to prioritise your human code-review effort.

Pattern Findings

The scanner identified 5273 distinct pattern matches across 25 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a statistically significant AI authorship indicator. 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 diagnostic confidence level (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — comment-context matches receive a ×1.5 weight because LLMs systematically over-annotate. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier as dense clusters constitute far stronger evidence of synthetic authorship than isolated hits.

Hyper-Verbose Identifiers3338 hits · 3092 pts
SeverityFileLineSnippetContext
LOWtests/test_security.py22def test_generated_secret_key_shape():CODE
LOWtests/test_security.py41def test_both_verifiers_accept_the_same_plaintext():CODE
LOWtests/test_security.py59def test_digest_is_salted_per_key():CODE
LOWtests/test_security.py86def test_malformed_or_unknown_digest_never_verifies(digest):CODE
LOWtests/test_security.py103def test_unusable_digest_is_reported_as_such(digest):CODE
LOWtests/test_security.py111def test_a_real_digest_is_usable_whether_or_not_it_matches():CODE
LOWtests/test_security.py126def test_a_custom_key_follows_the_deployment_switch(monkeypatch, allowed):CODE
LOWtests/test_security.py143def test_the_shape_test_does_not_apply_to_a_custom_key(monkeypatch):CODE
LOWtests/test_security.py160def test_a_generated_key_still_has_to_look_generated(monkeypatch):CODE
LOWtests/test_security.py176def test_deployment_token_never_gets_a_digest():CODE
LOWtests/test_security.py207def test_secret_not_shaped_like_our_output_is_refused(secret_key):CODE
LOWtests/test_security.py213def test_generated_secret_is_eligible():CODE
LOWtests/test_security.py239def test_verify_memo_is_bounded(monkeypatch):CODE
LOWtests/test_security.py272def test_gateway_digest_matches_the_shared_vector():CODE
LOWtests/test_security.py276def test_gateway_digest_is_derived_not_recomputed():CODE
LOWtests/test_security.py295def test_gateway_digest_is_shorter_by_the_amount_the_budget_counts_on():CODE
LOWtests/test_security.py312def test_the_algorithm_name_changes_with_the_encoding():CODE
LOWtests/test_security.py323def test_an_underivable_digest_yields_nothing(digest):CODE
LOWtests/routers/test_clusters.py17def test_get_server_url_strips_trailing_slash_from_cluster_override():CODE
LOWtests/routers/test_clusters.py29def test_get_server_url_strips_trailing_slash_from_external_url():CODE
LOWtests/routers/test_clusters.py41def test_get_server_url_falls_back_to_request_host():CODE
LOWtests/routers/test_clusters.py59def test_cluster_update_normalizes_server_url():CODE
LOWtests/routers/test_clusters.py68def test_get_trusted_hosts_resolution(tmp_path):CODE
LOWtests/routers/test_clusters.py105def test_config_normalizes_server_external_url(monkeypatch, tmp_path):CODE
LOWtests/routers/test_benchmarks.py97 def test_a_wrong_case_load_type_is_refused(self):CODE
LOWtests/routers/test_benchmarks.py101 def test_the_two_valid_axes_survive_as_their_wire_values(self):CODE
LOWtests/routers/test_benchmarks.py107 def test_the_axis_name_the_runner_wants_is_derived_not_repeated(self):CODE
LOWtests/routers/test_benchmarks.py131 def test_an_empty_stage_list_is_not_the_stages_shape(self):CODE
LOWtests/routers/test_benchmarks.py137 def test_auto_tune_and_stages_together_are_refused(self):CODE
LOWtests/routers/test_benchmarks.py144 def test_an_inverted_search_range_is_refused(self):CODE
LOWtests/routers/test_benchmarks.py151 def test_an_empty_search_range_is_refused(self):CODE
LOWtests/routers/test_benchmarks.py156 def test_a_valid_range_passes(self):CODE
LOWtests/routers/test_benchmarks.py162 def test_non_positive_budgets_are_refused(self, field):CODE
LOWtests/routers/test_benchmarks.py167 def test_a_point_budget_the_grid_cannot_hold_is_refused(self):CODE
LOWtests/routers/test_benchmarks.py179 def test_the_ceiling_itself_is_allowed(self):CODE
LOWtests/routers/test_benchmarks.py184 def test_more_manual_stages_than_the_grid_can_hold_is_refused(self):CODE
LOWtests/routers/test_benchmarks.py192 def test_every_slo_threshold_must_be_positive(self, t):CODE
LOWtests/routers/test_benchmarks.py199 def test_a_stage_without_a_numeric_rate_is_refused(self):CODE
LOWtests/routers/test_benchmarks.py204 def test_a_stage_that_is_not_an_object_never_reaches_the_check(self):CODE
LOWtests/routers/test_benchmarks.py211 def test_a_non_positive_stage_rate_is_refused(self):CODE
LOWtests/routers/test_benchmarks.py221 def test_an_unusable_per_stage_constraint_is_refused(self, key):CODE
LOWtests/routers/test_benchmarks.py229 def test_a_stage_constraint_left_out_is_fine(self):CODE
LOWtests/routers/test_benchmarks.py236 def test_a_negative_pass_through_knob_is_refused(self, field):CODE
LOWtests/routers/test_benchmarks.py242 def test_zero_stays_a_legal_setting(self, field):CODE
LOWtests/routers/test_benchmarks.py247 def test_an_inverted_token_window_is_refused(self):CODE
LOWtests/routers/test_benchmarks.py252 def test_a_valid_token_window_passes(self):CODE
LOWtests/routers/test_benchmarks.py272 def test_a_backward_report_is_held_at_the_floor(self):CODE
LOWtests/routers/test_benchmarks.py278 def test_forward_progress_passes_through(self):CODE
LOWtests/routers/test_benchmarks.py283 def test_entering_running_resets_a_stale_progress(self):CODE
LOWtests/routers/test_benchmarks.py290 def test_entering_running_keeps_a_progress_the_caller_stated(self):CODE
LOWtests/routers/test_benchmarks.py297 def test_a_patch_without_progress_is_left_alone(self):CODE
LOWtests/routers/test_benchmarks.py367 def test_the_summary_never_reads_the_deferred_column(self):CODE
LOWtests/routers/test_benchmarks.py375 def test_asking_for_the_raw_dump_reads_it(self):CODE
LOWtests/routers/test_benchmarks.py379 def test_every_response_field_is_populated(self):CODE
LOWtests/routers/test_benchmarks.py384 def test_raw_metrics_are_returned_by_default(self):CODE
LOWtests/routers/test_benchmarks.py416 def test_seeds_inside_the_range_pass(self, seed):CODE
LOWtests/routers/test_benchmarks.py419 def test_a_generated_seed_always_passes_its_own_check(self):CODE
LOWtests/routers/test_benchmarks.py425 def test_a_non_random_dataset_is_not_seed_checked(self):CODE
LOWtests/routers/test_benchmarks.py487 def test_readers_still_see_it(self, field):CODE
LOWtests/routers/test_benchmarks.py495 def test_the_column_still_exists(self, field):CODE
3278 more matches not shown…
Decorative Section Separators236 hits · 915 pts
SeverityFileLineSnippetContext
MEDIUMtests/routers/test_usage_export_integration.py377# --------------------------------------------------------------------------COMMENT
MEDIUMtests/routers/test_usage_export_integration.py383# --------------------------------------------------------------------------COMMENT
MEDIUMtests/routers/test_usage_export_integration.py452# --------------------------------------------------------------------------COMMENT
MEDIUMtests/routers/test_usage_export_integration.py454# --------------------------------------------------------------------------COMMENT
MEDIUMtests/routers/test_usage_export.py144# --------------------------------------------------------------------------COMMENT
MEDIUMtests/routers/test_usage_export.py146# --------------------------------------------------------------------------COMMENT
MEDIUMtests/routers/test_usage_export.py243# --------------------------------------------------------------------------COMMENT
MEDIUMtests/routers/test_usage_export.py245# --------------------------------------------------------------------------COMMENT
MEDIUMtests/routers/test_usage_export.py449# --------------------------------------------------------------------------COMMENT
MEDIUMtests/routers/test_usage_export.py451# --------------------------------------------------------------------------COMMENT
MEDIUMtests/routers/test_usage_export.py550# --------------------------------------------------------------------------COMMENT
MEDIUMtests/routers/test_usage_export.py552# --------------------------------------------------------------------------COMMENT
MEDIUMtests/cmd/test_reload_config_auth.py31# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/cmd/test_reload_config_auth.py33# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/cmd/test_reload_config_auth.py56# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/cmd/test_reload_config_auth.py58# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/cmd/test_reload_config_auth.py111# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/cmd/test_reload_config_auth.py113# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/cmd/test_reload_config_auth.py198# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/cmd/test_reload_config_auth.py200# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/cloud_providers/test_shuihua.py95# --------------------------------------------------------------------------COMMENT
MEDIUMtests/cloud_providers/test_shuihua.py97# --------------------------------------------------------------------------COMMENT
MEDIUMtests/cloud_providers/test_shuihua.py176# --------------------------------------------------------------------------COMMENT
MEDIUMtests/cloud_providers/test_shuihua.py178# --------------------------------------------------------------------------COMMENT
MEDIUMtests/cloud_providers/test_shuihua.py218# --------------------------------------------------------------------------COMMENT
MEDIUMtests/cloud_providers/test_shuihua.py220# --------------------------------------------------------------------------COMMENT
MEDIUMtests/cloud_providers/test_shuihua.py308# --------------------------------------------------------------------------COMMENT
MEDIUMtests/cloud_providers/test_shuihua.py310# --------------------------------------------------------------------------COMMENT
MEDIUMtests/k8s/test_template_render.py65# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/k8s/test_template_render.py67# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/k8s/test_template_render.py124# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/k8s/test_template_render.py127# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/k8s/test_template_render.py198# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/k8s/test_template_render.py201# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/k8s/test_template_render.py305# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/k8s/test_template_render.py307# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/k8s/test_template_render.py652# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/k8s/test_template_render.py654# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/k8s/test_template_render.py703# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/k8s/test_template_render.py709# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/k8s/test_template_render.py823# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/k8s/test_template_render.py829# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/k8s/test_template_render.py859# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/k8s/test_template_render.py867# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/k8s/test_template_render.py466# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/k8s/test_template_render.py468# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/k8s/test_template_render.py586# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/k8s/test_template_render.py589# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/k8s/test_template_render.py752# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/k8s/test_template_render.py758# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/server/test_usage_details_archiver.py24# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/server/test_usage_details_archiver.py26# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/server/test_usage_details_archiver.py57# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/server/test_usage_details_archiver.py60# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/server/test_usage_details_archiver.py127# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/server/test_usage_details_archiver.py129# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/server/test_usage_details_archiver.py152# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/server/test_usage_details_archiver.py154# ---------------------------------------------------------------------------COMMENT
MEDIUM…/server/test_resource_usage_collector_type_snapshot.py172# ---------------------------------------------------------------------------COMMENT
MEDIUM…/server/test_resource_usage_collector_type_snapshot.py174# ---------------------------------------------------------------------------COMMENT
176 more matches not shown…
Excessive Try-Catch Wrapping587 hits · 591 pts
SeverityFileLineSnippetContext
LOWtests/websocket_proxy/test_connection.py134 except Exception as e:CODE
LOWtests/websocket_proxy/test_proxy_server.py326 except Exception:CODE
LOWtests/websocket_proxy/test_proxy_server.py485 except Exception as e:CODE
LOWtests/websocket_proxy/test_proxy_server.py674 except Exception as e:CODE
MEDIUMtests/websocket_proxy/test_websocket_bench.py86def handle_request(reader, writer):CODE
MEDIUMtests/websocket_proxy/test_websocket_bench.py181def handle_request(reader, writer):CODE
MEDIUMtests/websocket_proxy/test_websocket_bench.py277def handle_request(reader, writer):CODE
MEDIUMtests/websocket_proxy/test_websocket_bench.py369def handle_request(reader, writer):CODE
MEDIUMtests/websocket_proxy/test_websocket_bench.py458def handle_request(reader, writer):CODE
MEDIUMtests/websocket_proxy/test_websocket_bench.py552def handle_request(reader, writer):CODE
MEDIUMtests/websocket_proxy/test_websocket_bench.py648def handle_request(reader, writer):CODE
MEDIUMtests/websocket_proxy/test_websocket_bench.py784def handle_request(reader, writer):CODE
MEDIUMtests/websocket_proxy/test_websocket_bench.py914def handle_request(reader, writer):CODE
LOWtests/websocket_proxy/test_websocket_bench.py97 except Exception:CODE
LOWtests/websocket_proxy/test_websocket_bench.py192 except Exception as e:CODE
LOWtests/websocket_proxy/test_websocket_bench.py288 except Exception:CODE
LOWtests/websocket_proxy/test_websocket_bench.py377 except Exception:CODE
LOWtests/websocket_proxy/test_websocket_bench.py470 except Exception:CODE
LOWtests/websocket_proxy/test_websocket_bench.py558 except Exception:CODE
LOWtests/websocket_proxy/test_websocket_bench.py673 except Exception as e:CODE
LOWtests/websocket_proxy/test_websocket_bench.py797 except Exception:CODE
LOWtests/websocket_proxy/test_websocket_bench.py921 except Exception:CODE
LOWtests/websocket_proxy/test_server_federation.py506 except Exception as e:CODE
LOWtests/api/test_exceptions.py61 except Exception as e:CODE
LOWtests/api/test_exceptions.py156 except Exception as e:CODE
MEDIUMtests/api/test_exceptions.py55def test_error_response_model_validate(name, given, expected):CODE
MEDIUMtests/api/test_exceptions.py152def test_raise_if_response_error(name, given, expected):CODE
LOWhack/perf/run_model_benchmark.py386 except Exception as exc:CODE
LOWhack/perf/run_model_benchmark.py461 except Exception as exc:CODE
LOWhack/perf/run_model_benchmark.py663 except Exception as exc:CODE
LOWhack/perf/run_model_benchmark.py702 except Exception as exc:CODE
LOWhack/perf/run_model_benchmark.py785 except Exception as exc:CODE
LOWhack/perf/run_model_benchmark.py963 except Exception as e:CODE
LOWhack/perf/run_model_benchmark.py976 except Exception as exc:CODE
LOWhack/perf/run_model_benchmark.py1195 except Exception as e:CODE
LOWhack/perf/fill_benchmark_raw_metrics.py191 except Exception as exc:CODE
LOWgpustack/security.py68 except Exception:CODE
LOWgpustack/extension.py47 except Exception:CODE
LOWgpustack/extension.py72 except Exception:CODE
LOWgpustack/cmd/db_migration.py81 except Exception as e:CODE
LOWgpustack/cmd/db_migration.py120 except Exception as e:CODE
LOWgpustack/cmd/db_migration.py142 except Exception as e:CODE
LOWgpustack/cmd/db_migration.py169 except Exception as e:CODE
MEDIUMgpustack/cmd/db_migration.py70def _run(args):CODE
LOWgpustack/cmd/download_tools.py80 except Exception as e:CODE
LOWgpustack/cmd/reload_config.py122 except Exception as e:CODE
LOWgpustack/cmd/reload_config.py284 except Exception as e:CODE
LOWgpustack/cmd/reload_config.py318 except Exception:CODE
MEDIUMgpustack/cmd/reload_config.py102def run(args):CODE
LOWgpustack/cmd/start.py704 except Exception as e:CODE
LOWgpustack/cmd/start.py723 except Exception as e:CODE
LOWgpustack/cmd/start.py745 except Exception as e:CODE
LOWgpustack/cmd/start.py760 except Exception:CODE
LOWgpustack/cmd/start.py790 except Exception as e:CODE
LOWgpustack/cmd/reset_admin_password.py94 except Exception as e:CODE
LOWgpustack/cmd/reset_admin_password.py121 except Exception:CODE
MEDIUMgpustack/cmd/reset_admin_password.py47def run(args):CODE
LOWgpustack/cmd/images.py60 except Exception as e:CODE
LOWgpustack/cmd/prerun.py77 except Exception as e:CODE
LOWgpustack/cloud_providers/digital_ocean.py48 except Exception as e:CODE
527 more matches not shown…
Cross-File Repetition50 hits · 250 pts
SeverityFileLineSnippetContext
HIGHgpustack/schemas/gpu_instance_persistent_volumes.py0represents the public view of a gpu instance ssh public key, containing only fields that are safe to expose to clients.STRING
HIGH…ustack/schemas/gpu_instance_persistent_volume_types.py0represents the public view of a gpu instance ssh public key, containing only fields that are safe to expose to clients.STRING
HIGHgpustack/schemas/gpu_instance_templates.py0represents the public view of a gpu instance ssh public key, containing only fields that are safe to expose to clients.STRING
HIGHgpustack/schemas/gpu_instance_ssh_public_keys.py0represents the public view of a gpu instance ssh public key, containing only fields that are safe to expose to clients.STRING
HIGHgpustack/schemas/runner_source.py0validate raw community-backend yaml and return the canonical text stored in a source's ``content`` (the ``normalize`` foSTRING
HIGHgpustack/schemas/catalog_source.py0validate raw community-backend yaml and return the canonical text stored in a source's ``content`` (the ``normalize`` foSTRING
HIGHgpustack/schemas/inference_backend_source.py0validate raw community-backend yaml and return the canonical text stored in a source's ``content`` (the ``normalize`` foSTRING
HIGHgpustack/schemas/gpu_instance_types.py0created name of the gpu instance template. must be unique in the scope of the owning principal.STRING
HIGH…ustack/schemas/gpu_instance_persistent_volume_types.py0created name of the gpu instance template. must be unique in the scope of the owning principal.STRING
HIGHgpustack/schemas/gpu_instance_templates.py0created name of the gpu instance template. must be unique in the scope of the owning principal.STRING
HIGHgpustack/client/generated_benchmark_client.py0list resources. args: params: query parameters for filtering use_cache: whether to use cache. defaults to true (use cachSTRING
HIGH…tack/client/generated_cache_service_instance_client.py0list resources. args: params: query parameters for filtering use_cache: whether to use cache. defaults to true (use cachSTRING
HIGHgpustack/client/generated_user_client.py0list resources. args: params: query parameters for filtering use_cache: whether to use cache. defaults to true (use cachSTRING
HIGHgpustack/client/generated_model_client.py0list resources. args: params: query parameters for filtering use_cache: whether to use cache. defaults to true (use cachSTRING
HIGHgpustack/client/generated_model_instance_client.py0list resources. args: params: query parameters for filtering use_cache: whether to use cache. defaults to true (use cachSTRING
HIGHgpustack/client/generated_cache_service_client.py0list resources. args: params: query parameters for filtering use_cache: whether to use cache. defaults to true (use cachSTRING
HIGHgpustack/client/generated_model_file_client.py0list resources. args: params: query parameters for filtering use_cache: whether to use cache. defaults to true (use cachSTRING
HIGHgpustack/client/generated_model_route_target_client.py0list resources. args: params: query parameters for filtering use_cache: whether to use cache. defaults to true (use cachSTRING
HIGHgpustack/client/generated_worker_client.py0list resources. args: params: query parameters for filtering use_cache: whether to use cache. defaults to true (use cachSTRING
HIGHgpustack/client/generated_inference_backend_client.py0list resources. args: params: query parameters for filtering use_cache: whether to use cache. defaults to true (use cachSTRING
HIGHgpustack/client/generated_benchmark_client.py0snapshot the cache atomically with the _watch_started check. returns none if the watch cache is not currently authoritatSTRING
HIGH…tack/client/generated_cache_service_instance_client.py0snapshot the cache atomically with the _watch_started check. returns none if the watch cache is not currently authoritatSTRING
HIGHgpustack/client/generated_user_client.py0snapshot the cache atomically with the _watch_started check. returns none if the watch cache is not currently authoritatSTRING
HIGHgpustack/client/generated_model_client.py0snapshot the cache atomically with the _watch_started check. returns none if the watch cache is not currently authoritatSTRING
HIGHgpustack/client/generated_model_instance_client.py0snapshot the cache atomically with the _watch_started check. returns none if the watch cache is not currently authoritatSTRING
HIGHgpustack/client/generated_cache_service_client.py0snapshot the cache atomically with the _watch_started check. returns none if the watch cache is not currently authoritatSTRING
HIGHgpustack/client/generated_model_file_client.py0snapshot the cache atomically with the _watch_started check. returns none if the watch cache is not currently authoritatSTRING
HIGHgpustack/client/generated_model_route_target_client.py0snapshot the cache atomically with the _watch_started check. returns none if the watch cache is not currently authoritatSTRING
HIGHgpustack/client/generated_worker_client.py0snapshot the cache atomically with the _watch_started check. returns none if the watch cache is not currently authoritatSTRING
HIGHgpustack/client/generated_inference_backend_client.py0snapshot the cache atomically with the _watch_started check. returns none if the watch cache is not currently authoritatSTRING
HIGHgpustack/client/generated_benchmark_client.py0update cache based on received event. runs on the awatch event loop. network i/o uses the async httpx client and happensSTRING
HIGH…tack/client/generated_cache_service_instance_client.py0update cache based on received event. runs on the awatch event loop. network i/o uses the async httpx client and happensSTRING
HIGHgpustack/client/generated_user_client.py0update cache based on received event. runs on the awatch event loop. network i/o uses the async httpx client and happensSTRING
HIGHgpustack/client/generated_model_client.py0update cache based on received event. runs on the awatch event loop. network i/o uses the async httpx client and happensSTRING
HIGHgpustack/client/generated_model_instance_client.py0update cache based on received event. runs on the awatch event loop. network i/o uses the async httpx client and happensSTRING
HIGHgpustack/client/generated_cache_service_client.py0update cache based on received event. runs on the awatch event loop. network i/o uses the async httpx client and happensSTRING
HIGHgpustack/client/generated_model_file_client.py0update cache based on received event. runs on the awatch event loop. network i/o uses the async httpx client and happensSTRING
HIGHgpustack/client/generated_model_route_target_client.py0update cache based on received event. runs on the awatch event loop. network i/o uses the async httpx client and happensSTRING
HIGHgpustack/client/generated_worker_client.py0update cache based on received event. runs on the awatch event loop. network i/o uses the async httpx client and happensSTRING
HIGHgpustack/client/generated_inference_backend_client.py0update cache based on received event. runs on the awatch event loop. network i/o uses the async httpx client and happensSTRING
HIGHgpustack/client/generated_benchmark_client.py0get a resource by id. args: id: resource id use_cache: whether to use cache. defaults to true (use cache if available). STRING
HIGH…tack/client/generated_cache_service_instance_client.py0get a resource by id. args: id: resource id use_cache: whether to use cache. defaults to true (use cache if available). STRING
HIGHgpustack/client/generated_user_client.py0get a resource by id. args: id: resource id use_cache: whether to use cache. defaults to true (use cache if available). STRING
HIGHgpustack/client/generated_model_client.py0get a resource by id. args: id: resource id use_cache: whether to use cache. defaults to true (use cache if available). STRING
HIGHgpustack/client/generated_model_instance_client.py0get a resource by id. args: id: resource id use_cache: whether to use cache. defaults to true (use cache if available). STRING
HIGHgpustack/client/generated_cache_service_client.py0get a resource by id. args: id: resource id use_cache: whether to use cache. defaults to true (use cache if available). STRING
HIGHgpustack/client/generated_model_file_client.py0get a resource by id. args: id: resource id use_cache: whether to use cache. defaults to true (use cache if available). STRING
HIGHgpustack/client/generated_model_route_target_client.py0get a resource by id. args: id: resource id use_cache: whether to use cache. defaults to true (use cache if available). STRING
HIGHgpustack/client/generated_worker_client.py0get a resource by id. args: id: resource id use_cache: whether to use cache. defaults to true (use cache if available). STRING
HIGHgpustack/client/generated_inference_backend_client.py0get a resource by id. args: id: resource id use_cache: whether to use cache. defaults to true (use cache if available). STRING
Modern Structural Boilerplate192 hits · 192 pts
SeverityFileLineSnippetContext
LOWhack/perf/run_model_benchmark.py401 def _update_existing_model(self, config: Model, payload: Dict[str, Any]) -> None:CODE
LOWgpustack/extension.py25logger = logging.getLogger(__name__)CODE
LOWgpustack/ssl_context.py31logger = logging.getLogger(__name__)CODE
LOWgpustack/cmd/version.py6logger = logging.getLogger(__name__)CODE
LOWgpustack/cmd/db_migration.py22logger = logging.getLogger(__name__)CODE
LOWgpustack/cmd/download_tools.py9logger = logging.getLogger(__name__)CODE
LOWgpustack/cmd/__init__.py4__all__ = ["setup_start_cmd", "setup_reload_config_cmd"]CODE
LOWgpustack/cmd/reload_config.py26logger = logging.getLogger(__name__)CODE
LOWgpustack/cmd/start.py22logger = logging.getLogger(__name__)CODE
LOWgpustack/cmd/reset_admin_password.py19logger = logging.getLogger(__name__)CODE
LOWgpustack/cmd/prerun.py28logger = logging.getLogger(__name__)CODE
LOWgpustack/cloud_providers/shuihua.py52logger = logging.getLogger(__name__)CODE
LOWgpustack/cloud_providers/digital_ocean.py17logger = logging.getLogger(__name__)CODE
LOWgpustack/mixins/active_record.py34logger = logging.getLogger(__name__)CODE
LOWgpustack/config/config.py59logger = logging.getLogger(__name__)CODE
LOWgpustack/config/__init__.py4__all__ = ["Config"]CODE
LOWgpustack/scheduler/queue.py4logger = logging.getLogger(__name__)CODE
LOWgpustack/scheduler/calculator.py41logger = logging.getLogger(__name__)CODE
LOWgpustack/scheduler/scheduler.py83logger = logging.getLogger(__name__)CODE
LOWgpustack/scheduler/evaluator.py53logger = logging.getLogger(__name__)CODE
LOWgpustack/server/catalog.py25logger = logging.getLogger(__name__)CODE
LOWgpustack/server/worker_request.py21logger = logging.getLogger(__name__)CODE
LOWgpustack/server/worker_instance_cleaner.py15logger = logging.getLogger(__name__)CODE
LOWgpustack/server/cache_provider_catalog.py13logger = logging.getLogger(__name__)CODE
LOWgpustack/server/services.py46logger = logging.getLogger(__name__)CODE
LOWgpustack/server/server.py148logger = logging.getLogger(__name__)CODE
LOWgpustack/server/scaling_scheduler.py16logger = logging.getLogger(__name__)CODE
LOWgpustack/server/update_check.py11logger = logging.getLogger(__name__)CODE
LOWgpustack/server/lora_model_routes.py28logger = logging.getLogger(__name__)CODE
LOWgpustack/server/cache_service_metrics.py36logger = logging.getLogger(__name__)CODE
LOWgpustack/server/controllers.py172logger = logging.getLogger(__name__)CODE
LOWgpustack/server/resource_event_logger.py53logger = logging.getLogger(__name__)CODE
LOWgpustack/server/gateway_auth_reconciler.py75logger = logging.getLogger(__name__)CODE
LOWgpustack/server/storage_usage_collector.py52logger = logging.getLogger(__name__)CODE
LOWgpustack/server/storage_usage_collector.py299 async def _settle_locked(self, vol: _OpenVolume, end_ts: datetime) -> None:CODE
LOWgpustack/server/cache.py15logger = logging.getLogger(__name__)CODE
LOWgpustack/server/cache.py29def set_coordinator(coordinator: Optional["Coordinator"]) -> None:CODE
LOWgpustack/server/system_load.py9logger = logging.getLogger(__name__)CODE
LOWgpustack/server/metrics_collector.py27logger = logging.getLogger(__name__)CODE
LOWgpustack/server/bus.py18logger = logging.getLogger(__name__)CODE
LOWgpustack/server/bus.py40__all__ = [CODE
LOWgpustack/server/usage_details_archiver.py28logger = logging.getLogger(__name__)CODE
LOWgpustack/server/worker_allocated_cache.py38logger = logging.getLogger(__name__)CODE
LOWgpustack/server/resource_usage_collector.py92logger = logging.getLogger(__name__)CODE
LOWgpustack/server/resource_usage_collector.py977 async def _settle_locked(self, window: _OpenWindow, end_ts: datetime) -> None:CODE
LOWgpustack/server/app.py23logger = logging.getLogger(__name__)CODE
LOWgpustack/server/cache_services.py29logger = logging.getLogger(__name__)CODE
LOWgpustack/server/worker_syncer.py12logger = logging.getLogger(__name__)CODE
LOWgpustack/server/worker_status_buffer.py12logger = logging.getLogger(__name__)CODE
LOWgpustack/server/usage_archiver.py28logger = logging.getLogger(__name__)CODE
LOWgpustack/server/lora_adapters_discovery.py19logger = logging.getLogger(__name__)CODE
LOWgpustack/server/worker_selector.py8logger = logging.getLogger(__name__)CODE
LOWgpustack/server/init_db.py45logger = logging.getLogger(__name__)CODE
LOWgpustack/server/coordinator/models.py12logger = logging.getLogger(__name__)CODE
LOWgpustack/server/coordinator/local.py14logger = logging.getLogger(__name__)CODE
LOWgpustack/server/coordinator/cache.py12logger = logging.getLogger(__name__)CODE
LOWgpustack/server/coordinator/__init__.py23__all__ = [CODE
LOWgpustack/server/coordinator/base.py15logger = logging.getLogger(__name__)CODE
LOWgpustack/server/sources/core.py23logger = logging.getLogger(__name__)CODE
LOWgpustack/server/sources/probe.py50logger = logging.getLogger(__name__)CODE
132 more matches not shown…
Deep Nesting220 hits · 187 pts
SeverityFileLineSnippetContext
LOWtests/scheduler/test_scheduler_subscribe.py99CODE
LOW…date_selectors/gguf/test_gguf_resource_fit_selector.py1444CODE
LOW…end_mindie/test_ascend_mindie_resource_fit_selector.py392CODE
LOW…end_mindie/test_ascend_mindie_resource_fit_selector.py1680CODE
LOW…end_mindie/test_ascend_mindie_resource_fit_selector.py1876CODE
LOW…end_mindie/test_ascend_mindie_resource_fit_selector.py393CODE
LOW…end_mindie/test_ascend_mindie_resource_fit_selector.py1683CODE
LOW…end_mindie/test_ascend_mindie_resource_fit_selector.py1879CODE
LOWtests/websocket_proxy/test_proxy_server.py418CODE
LOWtests/websocket_proxy/test_proxy_server.py529CODE
LOWtests/websocket_proxy/test_proxy_server.py443CODE
LOWtests/websocket_proxy/test_proxy_server.py554CODE
LOWhack/perf/perf_doc_common.py363CODE
LOWhack/perf/extract_json_key_table.py128CODE
LOWhack/perf/run_model_benchmark.py275CODE
LOWhack/perf/run_model_benchmark.py411CODE
LOWhack/perf/run_model_benchmark.py917CODE
LOWgpustack/cmd/db_migration.py270CODE
LOWgpustack/cmd/reload_config.py323CODE
LOWgpustack/cmd/reset_admin_password.py47CODE
LOWgpustack/mixins/active_record.py47CODE
LOWgpustack/mixins/active_record.py506CODE
LOWgpustack/mixins/active_record.py726CODE
LOWgpustack/mixins/active_record.py822CODE
LOWgpustack/config/config.py339CODE
LOWgpustack/config/config.py638CODE
LOWgpustack/scheduler/calculator.py1090CODE
LOWgpustack/scheduler/calculator.py1305CODE
LOWgpustack/scheduler/calculator.py1341CODE
LOWgpustack/scheduler/calculator.py266CODE
LOWgpustack/scheduler/calculator.py525CODE
LOWgpustack/scheduler/scheduler.py424CODE
LOWgpustack/scheduler/scheduler.py177CODE
LOWgpustack/scheduler/evaluator.py342CODE
LOWgpustack/scheduler/meta_registry.py122CODE
LOWgpustack/server/cache_provider_catalog.py18CODE
LOWgpustack/server/services.py318CODE
LOWgpustack/server/services.py749CODE
LOWgpustack/server/server.py690CODE
LOWgpustack/server/server.py910CODE
LOWgpustack/server/server.py1445CODE
LOWgpustack/server/cache_service_metrics.py173CODE
LOWgpustack/server/cache_service_metrics.py328CODE
LOWgpustack/server/controllers.py870CODE
LOWgpustack/server/controllers.py1107CODE
LOWgpustack/server/controllers.py505CODE
LOWgpustack/server/controllers.py609CODE
LOWgpustack/server/controllers.py782CODE
LOWgpustack/server/controllers.py2141CODE
LOWgpustack/server/controllers.py3075CODE
LOWgpustack/server/controllers.py3145CODE
LOWgpustack/server/gateway_auth_reconciler.py519CODE
LOWgpustack/server/storage_usage_collector.py160CODE
LOWgpustack/server/worker_allocated_cache.py90CODE
LOWgpustack/server/resource_usage_collector.py768CODE
LOWgpustack/server/worker_syncer.py97CODE
LOWgpustack/server/lora_adapters_discovery.py192CODE
LOWgpustack/server/worker_selector.py17CODE
LOWgpustack/server/coordinator/cache.py51CODE
LOWgpustack/utils/usage_export.py463CODE
160 more matches not shown…
Unused Imports271 hits · 186 pts
SeverityFileLineSnippetContext
LOWhack/perf/perf_doc_common.py1CODE
LOWhack/perf/plot_latency_comparison.py18CODE
LOWhack/perf/extract_json_key_table.py32CODE
LOWhack/perf/generate_latency_optimization_doc.py19CODE
LOWhack/perf/fill_benchmark_raw_metrics.py18CODE
LOWhack/perf/generate_throughput_optimization_doc.py19CODE
LOWgpustack/extension.py23CODE
LOWgpustack/ssl_context.py22CODE
LOWgpustack/cmd/__init__.py1CODE
LOWgpustack/cmd/__init__.py2CODE
LOWgpustack/config/__init__.py1CODE
LOWgpustack/server/cache.py13CODE
LOWgpustack/server/bus.py9CODE
LOWgpustack/server/bus.py9CODE
LOWgpustack/server/coordinator/__init__.py20CODE
LOWgpustack/server/coordinator/__init__.py20CODE
LOWgpustack/server/coordinator/__init__.py20CODE
LOWgpustack/server/coordinator/__init__.py21CODE
LOWgpustack/utils/compat_importlib.py4CODE
LOWgpustack/utils/compat_importlib.py6CODE
LOWgpustack/utils/ephemeral_ports.py18CODE
LOWgpustack/utils/resource_usage.py7CODE
LOWgpustack/utils/attrs.py1CODE
LOWgpustack/policies/candidate_selectors/__init__.py1CODE
LOWgpustack/policies/candidate_selectors/__init__.py2CODE
LOWgpustack/policies/candidate_selectors/__init__.py3CODE
LOWgpustack/policies/candidate_selectors/__init__.py4CODE
LOWgpustack/policies/candidate_selectors/__init__.py5CODE
LOWgpustack/schemas/models.py32CODE
LOWgpustack/schemas/models.py41CODE
LOWgpustack/schemas/models.py42CODE
LOWgpustack/schemas/clusters.py41CODE
LOWgpustack/schemas/clusters.py41CODE
LOWgpustack/schemas/clusters.py42CODE
LOWgpustack/schemas/clusters.py43CODE
LOWgpustack/schemas/principals.py54CODE
LOWgpustack/schemas/__init__.py1CODE
LOWgpustack/schemas/__init__.py1CODE
LOWgpustack/schemas/__init__.py1CODE
LOWgpustack/schemas/__init__.py1CODE
LOWgpustack/schemas/__init__.py1CODE
LOWgpustack/schemas/__init__.py1CODE
LOWgpustack/schemas/__init__.py1CODE
LOWgpustack/schemas/__init__.py1CODE
LOWgpustack/schemas/__init__.py1CODE
LOWgpustack/schemas/__init__.py1CODE
LOWgpustack/schemas/__init__.py1CODE
LOWgpustack/schemas/__init__.py1CODE
LOWgpustack/schemas/__init__.py1CODE
LOWgpustack/schemas/__init__.py1CODE
LOWgpustack/schemas/__init__.py17CODE
LOWgpustack/schemas/__init__.py17CODE
LOWgpustack/schemas/__init__.py17CODE
LOWgpustack/schemas/__init__.py17CODE
LOWgpustack/schemas/__init__.py23CODE
LOWgpustack/schemas/__init__.py23CODE
LOWgpustack/schemas/__init__.py23CODE
LOWgpustack/schemas/__init__.py23CODE
LOWgpustack/schemas/__init__.py29CODE
LOWgpustack/schemas/__init__.py29CODE
211 more matches not shown…
Magic Placeholder Names25 hits · 150 pts
SeverityFileLineSnippetContext
HIGHREADME.md179# Replace `your_api_key` and `your_gpustack_server_url`COMMENT
HIGHREADME.md181export GPUSTACK_API_KEY=your_api_keyCODE
HIGHREADME_CN.md170# 将 `your_api_key` 和 `your_gpustack_server_url`COMMENT
HIGHREADME_CN.md172export GPUSTACK_API_KEY=your_api_keyCODE
HIGHREADME_JP.md172# `your_api_key` と `your_gpustack_server_url` をCOMMENT
HIGHREADME_JP.md174export GPUSTACK_API_KEY=your_api_keyCODE
HIGHdocs/troubleshooting.md37 -H "Authorization: Bearer <YOUR_API_KEY>" \CODE
HIGHdocs/troubleshooting.md37 -H "Authorization: Bearer <YOUR_API_KEY>" \CODE
HIGHdocs/quickstart.md114# Replace `your_api_key` and `your_gpustack_server_url`COMMENT
HIGHdocs/quickstart.md116export GPUSTACK_API_KEY=your_api_keyCODE
HIGHdocs/migration.md115 --database-url ${your-database-url}CODE
HIGHdocs/user-guide/api-key-management.md138export GPUSTACK_API_KEY=your_api_keyCODE
HIGHdocs/using-models/using-reranker-models.md43export GPUSTACK_API_KEY=<your-api-key>CODE
HIGHdocs/using-models/using-reranker-models.md59Replace `<your-server-url>` with the URL of your GPUStack server and `<your-api-key>` with the API key you generated in CODE
HIGHdocs/using-models/using-embedding-models.md43export GPUSTACK_API_KEY=<your-api-key>CODE
HIGHdocs/using-models/using-embedding-models.md54Replace `<your-server-url>` with the URL of your GPUStack server and `<your-api-key>` with the API key you generated in CODE
HIGHdocs/integrations/inference-apis.md28export GPUSTACK_API_KEY=your_api_keyCODE
HIGHdocs/integrations/inference-apis.md55export GPUSTACK_API_KEY=your_api_keyCODE
HIGHdocs/integrations/inference-apis.md82export GPUSTACK_API_KEY=your_api_keyCODE
HIGHdocs/integrations/inference-apis.md143export GPUSTACK_API_KEY=your_api_keyCODE
HIGHdocs/tutorials/serving-with-lora-adapters.md78 -H "Authorization: Bearer <your-api-key>" \CODE
HIGHdocs/tutorials/serving-with-lora-adapters.md90 -H "Authorization: Bearer <your-api-key>" \CODE
HIGHdocs/tutorials/serving-with-lora-adapters.md98Replace `<your-gpustack-server>` with your server address and `<your-api-key>` with an API key created on the `API Keys`CODE
HIGHdocs/tutorials/inference-with-tool-calling.md66With the model deployed and an API key, you can call the model via the GPUStack API. Here is an example script using `cuCODE
HIGHdocs/tutorials/inference-with-tool-calling.md70export GPUSTACK_API_KEY=<your-api-key>CODE
Over-Commented Block136 hits · 127 pts
SeverityFileLineSnippetContext
LOWalembic.ini1# A generic, single database configuration.COMMENT
LOWalembic.ini21# Any required deps can installed by adding `alembic[tz]` to the pip requirementsCOMMENT
LOWalembic.ini41# The path separator used here should be the separator specified by "version_path_separator" below.COMMENT
LOWalembic.ini61# output_encoding = utf-8COMMENT
LOWtests/server/test_cache_provider_catalog.py161 provider = get_cache_provider("LMCache")COMMENT
LOWpack/rootfs/etc/s6-overlay/scripts/base.sh101 # For optional services, allow s6 to restart instead of halting the containerCOMMENT
LOW…/rootfs/etc/s6-overlay/scripts/postgres-log-cleanup.sh1#!/command/with-contenv /bin/bashCOMMENT
LOWpack/rootfs/var/lib/istio/cron.txt10 * * * * /usr/sbin/logrotate /etc/logrotate.d/higress-logrotateCOMMENT
LOWcharts/gpustack-chart/values.yaml1# Default values for gpustack.COMMENT
LOWcharts/gpustack-chart/values.yaml21# imagePullSecrets:COMMENT
LOWcharts/gpustack-chart/values.yaml61 # example: gpustack.example.comCOMMENT
LOWcharts/gpustack-chart/values.yaml81 size: 100GiCOMMENT
LOWcharts/gpustack-chart/values.yaml101 # template rendering (ArgoCD/Flux, `helm template`). In those environments aCOMMENT
LOWcharts/gpustack-chart/values.yaml121 # back to `global.nodeSelector`.COMMENT
LOWcharts/gpustack-chart/values.yaml221 # GPU vendors for the worker nodes. Accepts a list to allow a singleCOMMENT
LOWcharts/gpustack-chart/values.yaml241 # - [] (empty): only the CPU DaemonSet `<release>-worker` is renderedCOMMENT
LOWcharts/gpustack-chart/values.yaml261 # on conflict).COMMENT
LOWcharts/gpustack-chart/values.yaml301 memory: 512MiCOMMENT
LOWhack/lib/log.sh1#!/usr/bin/env bashCOMMENT
LOWhack/lib/version.sh1#!/usr/bin/env bashCOMMENT
LOW.github/workflows/pack.yaml281 uses: azure/setup-helm@v4COMMENT
LOWgpustack/security.py21GENERATED_SECRET_KEY_BYTES = 16COMMENT
LOWgpustack/__init__.py1__version__ = '0.0.0'COMMENT
LOWgpustack/config/config.py221 # Testing against self-signed IdPs only; never enable in production.COMMENT
LOWgpustack/config/config.py261 # validator parses CAS 2.0 / 3.0 ``serviceValidate`` responses,COMMENT
LOWgpustack/config/config.py281 server_external_url: Optional[str] = NoneCOMMENT
LOWgpustack/config/config.py421 # Signing key for the ``x-gpustack-auth-cache`` marker, which the gatewayCOMMENT
LOWgpustack/server/services.py81 self.session.expunge(result)COMMENT
LOWgpustack/server/controllers.py281COMMENT
LOWgpustack/server/gateway_auth_reconciler.py301 dropped = FalseCOMMENT
LOWgpustack/server/gateway_auth_reconciler.py321 # expired: a key can expire between two passes, and this is what makesCOMMENT
LOWgpustack/server/gateway_auth_reconciler.py561 raiseCOMMENT
LOWgpustack/server/metrics_collector.py541 # becomes an attribution: a spoofed / stale id would silently mis-attributeCOMMENT
LOWgpustack/server/metrics_collector.py561 # is personal. It coversCOMMENT
LOWgpustack/server/bus.py221 self._coordinator = NoneCOMMENT
LOWgpustack/server/resource_usage_collector.py101SKU_SOURCE_TYPE_NAME = "type_name"COMMENT
LOWgpustack/server/resource_usage_collector.py181 # ``type_snapshot`` is the authoritative reference into ``gpu_instance_types``COMMENT
LOWgpustack/server/resource_usage_collector.py581 if card_memory_mib:COMMENT
LOWgpustack/utils/tabular_export.py381 buffer = io.BytesIO()COMMENT
LOWgpustack/utils/hub.py21# and replaces transformers' `get_class_from_dynamic_module` with a wrapperCOMMENT
LOW…idate_selectors/ascend_mindie_resource_fit_selector.py301 )COMMENT
LOWgpustack/schemas/benchmark.py141 ),COMMENT
LOWgpustack/schemas/benchmark.py361 load_type: Optional[BenchmarkLoadTypeEnum] = Field(default=None, sa_type=AutoString)COMMENT
LOWgpustack/schemas/benchmark.py381 # source of truth that drifts the moment either is retuned.COMMENT
LOWgpustack/schemas/models.py461COMMENT
LOWgpustack/schemas/users.py161 # would honour it.COMMENT
LOWgpustack/schemas/clusters.py361 return is_gpu_service_k8s_options(cluster.k8s_options)COMMENT
LOWgpustack/schemas/stmt.py221COMMENT
LOWgpustack/schemas/stmt.py261 # ``principal_users``, which maps a USER-principal to itself — so aCOMMENT
LOWgpustack/schemas/principals.py81# resolution time, without a backing ``principal_memberships`` row.COMMENT
LOWgpustack/schemas/principals.py201 sa_column=Column(SQLEnum(PrincipalType), nullable=False),COMMENT
LOWgpustack/schemas/principals.py221 # (``init_platform_principal_id`` → ORG,COMMENT
LOWgpustack/schemas/principals.py281 # only on USER rows. ORG-membership ``OrgRole.OWNER`` is theCOMMENT
LOWgpustack/schemas/cluster_access.py61class ClusterAccessPublic(SQLModel):COMMENT
LOWgpustack/schemas/gpu_instance_types.py581COMMENT
LOWgpustack/schemas/model_usage.py41 api_key_id: Optional[int] = Field(default=None, sa_column=Column(Integer))COMMENT
LOWgpustack/schemas/model_provider.py41COMMENT
LOWgpustack/schemas/organizations.py21COMMENT
LOWgpustack/schemas/model_sets.py41 # (never trusted from the client). Lets compatibility checks seeCOMMENT
LOWgpustack/schemas/api_keys.py61 # ``security.secret_key_digest_eligible``). Both columns are permanent andCOMMENT
76 more matches not shown…
Structural Annotation Overuse56 hits · 96 pts
SeverityFileLineSnippetContext
LOWtests/websocket_proxy/test_server_federation.py378 # Step 1: Server1 connects to Server2 as peerCOMMENT
LOWtests/websocket_proxy/test_server_federation.py382 # Step 2: Connect a client to Server2 (not Server1)COMMENT
LOWtests/websocket_proxy/test_server_federation.py395 # Step 3: Server2 syncs its client to Server1 via peer connectionCOMMENT
LOWtests/websocket_proxy/test_server_federation.py400 # Step 4: Server1 disconnects from Server2COMMENT
LOWtests/websocket_proxy/test_server_federation.py404 # Step 5: Server1 should clean up clients synced from Server2COMMENT
LOWdocs/using-models/using-vision-language-models.md26## Step 1: Install GPUStackCOMMENT
LOWdocs/using-models/using-vision-language-models.md30## Step 2: Log in to GPUStack UICOMMENT
LOWdocs/using-models/using-vision-language-models.md40## Step 3: Deploy Vision Language Models with vLLMCOMMENT
LOWdocs/using-models/using-vision-language-models.md88## Step 4: Interact with Vision Language ModelsCOMMENT
LOWdocs/using-models/using-image-generation-models.md13## Step 1: Deploy the Z-Image-Turbo ModelCOMMENT
LOWdocs/using-models/using-image-generation-models.md28## Step 2: Use the Model for Image GenerationCOMMENT
LOWdocs/using-models/using-reranker-models.md14## Step 1: Deploy the ModelCOMMENT
LOWdocs/using-models/using-reranker-models.md28## Step 2: Generate an API KeyCOMMENT
LOWdocs/using-models/using-reranker-models.md37## Step 3: RerankingCOMMENT
LOWdocs/using-models/using-large-language-models.md15## Step 1: Deploy Large Language ModelsCOMMENT
LOWdocs/using-models/using-large-language-models.md41## Step 2: Use the LLMs for Text GenerationCOMMENT
LOWdocs/using-models/using-audio-models.md16### Step 1: Deploy Speech-to-Text ModelCOMMENT
LOWdocs/using-models/using-audio-models.md30### Step 2: Interact with Speech-to-Text ModelCOMMENT
LOWdocs/using-models/using-audio-models.md39### Step 3: Streaming Output via APICOMMENT
LOWdocs/using-models/using-audio-models.md62### Step 1: Deploy Text-to-Speech ModelCOMMENT
LOWdocs/using-models/using-audio-models.md76### Step 2: Interact with Text-to-Speech ModelCOMMENT
LOWdocs/using-models/using-audio-models.md87### Step 3: Streaming Output via APICOMMENT
LOWdocs/using-models/using-audio-models.md117### Step 1: Deploy Voice Cloning ModelCOMMENT
LOWdocs/using-models/using-audio-models.md123### Step 2: Use Voice Cloning in PlaygroundCOMMENT
LOWdocs/using-models/using-embedding-models.md14## Step 1: Deploy the ModelCOMMENT
LOWdocs/using-models/using-embedding-models.md28## Step 2: Generate an API KeyCOMMENT
LOWdocs/using-models/using-embedding-models.md37## Step 3: Generate Text EmbeddingsCOMMENT
LOWdocs/tutorials/serving-with-lora-adapters.md37## Step 1: Deploy the Base Model with LoRA AdaptersCOMMENT
LOWdocs/tutorials/serving-with-lora-adapters.md64## Step 2: Invoke a LoRA AdapterCOMMENT
LOWdocs/tutorials/serving-with-lora-adapters.md100## Step 3: Manage LoRA AdaptersCOMMENT
LOW…ing-deepseek-r1-671b-with-distributed-ascend-mindie.md31## Step 1: Install GPUStack ServerCOMMENT
LOW…ing-deepseek-r1-671b-with-distributed-ascend-mindie.md56## Step 2: Access GPUStack UICOMMENT
LOW…ing-deepseek-r1-671b-with-distributed-ascend-mindie.md64## Step 3: Install GPUStack WorkersCOMMENT
LOW…ing-deepseek-r1-671b-with-distributed-ascend-mindie.md98## Step 4: Deploy the DeepSeek R1 ModelCOMMENT
LOW…ing-deepseek-r1-671b-with-distributed-ascend-mindie.md117## Step 5: Monitor DeploymentCOMMENT
LOW…ing-deepseek-r1-671b-with-distributed-ascend-mindie.md127## Step 6: Run Inference via PlaygroundCOMMENT
LOW…ials/running-deepseek-r1-671b-with-distributed-vllm.md30## Step 1: Install GPUStack ServerCOMMENT
LOW…ials/running-deepseek-r1-671b-with-distributed-vllm.md56## Step 2: Access GPUStack UICOMMENT
LOW…ials/running-deepseek-r1-671b-with-distributed-vllm.md64## Step 3: Install GPUStack WorkersCOMMENT
LOW…ials/running-deepseek-r1-671b-with-distributed-vllm.md96## Step 4: Deploy the DeepSeek R1 ModelCOMMENT
LOW…ials/running-deepseek-r1-671b-with-distributed-vllm.md108## Step 5: Monitor DeploymentCOMMENT
LOW…ials/running-deepseek-r1-671b-with-distributed-vllm.md118## Step 6: Run Inference via PlaygroundCOMMENT
LOW…rials/running-distributed-vllm-with-multiprocessing.md27## Step 1: Add GPUStack WorkersCOMMENT
LOW…rials/running-distributed-vllm-with-multiprocessing.md35## Step 2: Deploy the Model with the MP BackendCOMMENT
LOW…rials/running-distributed-vllm-with-multiprocessing.md72## Step 3: Monitor DeploymentCOMMENT
LOW…rials/running-distributed-vllm-with-multiprocessing.md83## Step 4: Verify via the PlaygroundCOMMENT
LOWdocs/tutorials/inference-with-tool-calling.md20## Step 1: Deploy the ModelCOMMENT
LOWdocs/tutorials/inference-with-tool-calling.md55## Step 2: Generate an API KeyCOMMENT
LOWdocs/tutorials/inference-with-tool-calling.md64## Step 3: Do InferenceCOMMENT
LOWgpustack/scheduler/calculator.py914 # Step 1: Apply filters to reduce broadcast scopeCOMMENT
LOWgpustack/scheduler/calculator.py941 # Step 2: Broadcast to filtered workersCOMMENT
LOWgpustack/scheduler/calculator.py1031 # Step 1: Apply worker filters before broadcastingCOMMENT
LOWgpustack/scheduler/calculator.py1066 # Step 2: Broadcasting to filtered workersCOMMENT
LOW…es/candidate_selectors/sglang_resource_fit_selector.py1008 # Step 1: Use the minimum GPU memory of all workers to calculate _chunked_prefill_size and _cuda_graph_max_bs.COMMENT
LOW…es/candidate_selectors/sglang_resource_fit_selector.py1094 # Step 2: Calculate reserved memory by other configsCOMMENT
LOW…es/candidate_selectors/sglang_resource_fit_selector.py1146 # Step 3: adjust mem_fraction_static for VL modelsCOMMENT
Redundant / Tautological Comments54 hits · 86 pts
SeverityFileLineSnippetContext
LOWtests/websocket_proxy/test_proxy_server.py453 # Check if we have complete request (headers + body)COMMENT
LOWtests/websocket_proxy/test_proxy_server.py465 # Check if we have complete bodyCOMMENT
LOWgpustack/scheduler/evaluator.py349 # Check if local path exists on serverCOMMENT
LOWgpustack/server/bus.py381 # Check if this is a cross-instance event (only has ID)COMMENT
LOWgpustack/policies/utils.py204 # Check if this GPU can be added to the current groupCOMMENT
LOWgpustack/policies/utils.py210 # Check if min_allocatable_memory >= current_gpu_allocatable_memory * 0.9COMMENT
LOWgpustack/policies/utils.py530 # Check if this is a main worker instanceCOMMENT
LOWgpustack/policies/utils.py533 # Check if this worker is used as a subordinate workerCOMMENT
LOWgpustack/policies/utils.py787 # Check if this GPU can be added to the current groupCOMMENT
LOWgpustack/policies/utils.py793 # Check if min_allocatable_vram >= current_allocatable_vram * 0.9COMMENT
LOW…date_selectors/custom_backend_resource_fit_selector.py220 # Check if GPU has enough VRAMCOMMENT
LOW…date_selectors/custom_backend_resource_fit_selector.py282 # Check if total VRAM is sufficientCOMMENT
LOW…date_selectors/custom_backend_resource_fit_selector.py329 # Check if worker has enough RAM for CPU inferenceCOMMENT
LOW…olicies/candidate_selectors/base_candidate_selector.py830 # Check if the GPU is satisfied the requirementCOMMENT
LOW…olicies/candidate_selectors/base_candidate_selector.py935 # Assign GPUs to the subordinate workerCOMMENT
LOW…cies/candidate_selectors/gguf_resource_fit_selector.py1969 # Check if the rpc gpus can offload even one layer.COMMENT
LOW…ck/policies/worker_filters/backend_framework_filter.py114 # Check if gpu_type is supported by custom_frameworkCOMMENT
LOW…ck/policies/worker_filters/backend_framework_filter.py120 # Check if gpu_type is supported by built_in_frameworksCOMMENT
LOW…ck/policies/worker_filters/backend_framework_filter.py178 # Check if model has specified backend_versionCOMMENT
LOW…ck/policies/worker_filters/backend_framework_filter.py185 # Check if any GPU condition is compatibleCOMMENT
LOWgpustack/schemas/common.py58 # Verify if the field is in the allowed sortable fieldsCOMMENT
LOWgpustack/websocket_proxy/message_server.py179 # Check if this is a local client (registered on this server)COMMENT
LOWgpustack/websocket_proxy/message_server.py316 # Check if this is a Starlette WebSocket or websockets WebSocketCOMMENT
LOWgpustack/websocket_proxy/message_server.py645 # Check if this is a server federation connectionCOMMENT
LOWgpustack/websocket_proxy/message.py279 # Check if msg_type is a valid BinaryType valueCOMMENT
LOWgpustack/websocket_proxy/connection_manager.py302 # Check if proxy accepted the connectionCOMMENT
LOWgpustack/api/middlewares.py420 # Check if the token is about to expire (less than 15 minutes left)COMMENT
LOWgpustack/worker/model_file_manager.py768 # Check if we should log based on time (2 seconds) or progress change (1%)COMMENT
LOWgpustack/worker/backends/sglang.py582 # Check if this is a multi-node deploymentCOMMENT
LOWgpustack/worker/backends/sglang.py758 # Check if tensor parallelism is already specifiedCOMMENT
LOWgpustack/client/generated_benchmark_client.py249 # Check if we have accumulated enough items (heuristic)COMMENT
LOW…tack/client/generated_cache_service_instance_client.py254 # Check if we have accumulated enough items (heuristic)COMMENT
LOWgpustack/client/generated_user_client.py247 # Check if we have accumulated enough items (heuristic)COMMENT
LOWgpustack/client/generated_model_client.py247 # Check if we have accumulated enough items (heuristic)COMMENT
LOWgpustack/client/generated_model_instance_client.py250 # Check if we have accumulated enough items (heuristic)COMMENT
LOWgpustack/client/generated_cache_service_client.py250 # Check if we have accumulated enough items (heuristic)COMMENT
LOWgpustack/client/generated_model_file_client.py249 # Check if we have accumulated enough items (heuristic)COMMENT
LOWgpustack/client/generated_model_route_target_client.py252 # Check if we have accumulated enough items (heuristic)COMMENT
LOWgpustack/client/generated_worker_client.py249 # Check if we have accumulated enough items (heuristic)COMMENT
LOWgpustack/client/generated_inference_backend_client.py252 # Check if we have accumulated enough items (heuristic)COMMENT
LOWgpustack/routes/metrics.py40 # Check if we have a cached versionCOMMENT
LOWgpustack/routes/metrics.py86 # Write file in thread pool to avoid blocking event loopCOMMENT
LOWgpustack/routes/inference_backend.py1446 # Check if the backend is being used by any modelsCOMMENT
LOWgpustack/routes/inference_backend.py569 # Check if this version has any built-in frameworksCOMMENT
LOWgpustack/routes/inference_backend.py1357 # Check if updating to a name that already exists (excluding current backend)COMMENT
LOWgpustack/routes/inference_backend.py1614 # Check if updating to a name that already exists (excluding current backend)COMMENT
LOWgpustack/routes/inference_backend.py1644 # Check if any versions are being removed and validate they're not in useCOMMENT
LOWgpustack/routes/inference_backend.py1733 # Check if removed versions are in useCOMMENT
LOWgpustack/routes/worker/filesystem.py121 # Check if path existsCOMMENT
LOWgpustack/routes/worker/filesystem.py125 # Check if path is a fileCOMMENT
LOWgpustack/routes/worker/filesystem.py129 # Check if file is a config file for securityCOMMENT
LOWgpustack/routes/worker/filesystem.py173 # Check if path existsCOMMENT
LOWgpustack/routes/worker/filesystem.py270 # Check if file existsCOMMENT
LOWgpustack/routes/worker/filesystem.py276 # Check if path is a fileCOMMENT
Docstring Block Structure15 hits · 75 pts
SeverityFileLineSnippetContext
HIGHgpustack/mixins/active_record.py401 Parse dot-separated nested field expressions and generate appropriate database expressions for sorting.STRING
HIGHgpustack/scheduler/calculator.py693 Unified async entry point for getting pretrained config. Handles all model sources with appropriate fallback sSTRING
HIGHgpustack/scheduler/calculator.py865 Read a file from LOCAL_PATH model by querying workers. Steps: 1. Apply filters (GPU selector, label selectSTRING
HIGHgpustack/scheduler/calculator.py992 Get pretrained config from remote workers for LOCAL_PATH models. Args: model: Model with source LOCAL_STRING
HIGHgpustack/scheduler/calculator.py1016 Calculate model resource claim by running gguf-parser on a worker. Args: model: Model to calculate theSTRING
HIGHgpustack/scheduler/calculator.py1272 Read and parse model_index.json from local directory. Args: path: Directory path containing model_indeSTRING
HIGHgpustack/scheduler/calculator.py1306 Calculate total size of LLM model weights in root directory. Args: path: Directory path to scan RSTRING
HIGHgpustack/scheduler/calculator.py1342 Calculate total size of diffusion model weights. Logic: 1. Read model_index.json to get pipeline componentSTRING
HIGHgpustack/scheduler/calculator.py1408 Calculate model weight size based on model type. Unified entry point for calculating model weight sizes. STRING
HIGHgpustack/server/worker_selector.py23 Find a worker that has access to the specified path. Args: workers: List of workers to seaSTRING
HIGHgpustack/utils/file.py44Generic async retry wrapper for checking operations. Args: checker: A callable (sync or async) that performSTRING
HIGHgpustack/schemas/inference_backend.py169 Get configuration for a specific version. Args: version: Version string, uses default_versSTRING
HIGHgpustack/worker/backends/base.py595 Get the resource requests for the model instance. Args: mount_all_devices: STRING
HIGHgpustack/client/worker_filesystem_client.py131 Parse a GGUF file on a worker using gguf-parser. Args: worker: The worker to query STRING
HIGHgpustack/routes/worker/filesystem.py49 Validate path security to prevent directory traversal attacks. This function: 1. Resolves the absolute patSTRING
Cross-Language Confusion16 hits · 69 pts
SeverityFileLineSnippetContext
HIGHtests/routers/test_usage_export_integration.py952 # Untracked carries no identity at all (the field is omitted, not null),COMMENT
HIGHtests/routes/test_gpu_service_search_alignment.py3All of them render ``displayName || name`` in the Name column and all of themSTRING
HIGHgpustack/cloud_providers/user_data.py51ExecStart=/bin/bash -c "/opt/gpustack-run-worker.sh && systemctl disable post-reboot.service"CODE
HIGHgpustack/utils/ephemeral_ports.py187 "sudo tee -a /etc/sysctl.conf && sudo sysctl -p",CODE
HIGHgpustack/schemas/organizations.py156 label. The UI is expected to render ``display_name || name``;STRING
HIGHgpustack/worker/model_meta.py76 "docker_label": null,STRING
HIGHgpustack/worker/model_meta.py80 "max_stop_sequences": null,STRING
HIGHgpustack/worker/model_meta.py81 "max_waiting_tokens": null,STRING
HIGHgpustack/worker/model_meta.py82 "sha": null,STRING
HIGHgpustack/worker/model_meta.py83 "validation_workers": null,STRING
HIGHgpustack/worker/model_meta.py85 "waiting_served_ratio": null,STRING
HIGHgpustack/worker/model_meta.py92 "model_sha": null,STRING
HIGHgpustack/worker/backends/base.py865 rm -rf /usr/local/cuda/compat 2>/dev/null || trueCODE
HIGHgpustack/worker/backends/base.py866 ldconfig 2>/dev/null || trueCODE
HIGHgpustack/routes/users.py281 # ``{"source": null}`` explicitly would otherwise write NULLCOMMENT
HIGHgpustack/routes/gpu_instances_helper.py74 ``display_name || name`` as the UI writes it, where ``nullif(..., '')`` isSTRING
Self-Referential Comments21 hits · 67 pts
SeverityFileLineSnippetContext
MEDIUMtests/routers/test_workers.py148 # Create a new worker (no existing worker)COMMENT
MEDIUMtests/routers/test_workers.py161 # Create an existing worker with some labelsCOMMENT
MEDIUMtests/routers/test_workers.py32 # Create an existing worker with maintenance mode enabledCOMMENT
MEDIUMtests/routers/test_workers.py48 # Create a worker registration request without maintenance fieldCOMMENT
MEDIUMtests/routers/test_workers.py79 # Create an existing worker with maintenance mode enabledCOMMENT
MEDIUMtests/routers/test_workers.py95 # Create a worker update request with maintenance explicitly disabledCOMMENT
MEDIUMtests/routers/test_workers.py126 # Create a new worker registration requestCOMMENT
MEDIUMtests/routers/test_workers.py177 # Create a worker update with new labelsCOMMENT
MEDIUM…licies/worker_filters/test_backend_framework_filter.py100 # Create a mock session that returns the backendCOMMENT
MEDIUM…licies/worker_filters/test_backend_framework_filter.py255 # Create a worker with mixed GPU types (simulate by modifying the worker)COMMENT
MEDIUM…licies/worker_filters/test_backend_framework_filter.py393 # Create a worker with empty GPU listCOMMENT
MEDIUM…licies/worker_filters/test_backend_framework_filter.py508 # Create a model that will result in backend_name being NoneCOMMENT
MEDIUM…licies/worker_filters/test_backend_framework_filter.py1022 # Create a worker with ROCm GPU (incompatible with vLLM in this test scenario)COMMENT
MEDIUMtests/worker/test_logs.py18 # Create a log file with 2KB in two linesCOMMENT
MEDIUMgpustack/server/bus.py300 # Create a closure that captures the topicCOMMENT
MEDIUMgpustack/policies/utils.py945 # Create a copy of the worker with sorted GPUsCOMMENT
MEDIUMgpustack/websocket_proxy/message_server.py196 # Create a future that will be resolved when the peer connectsCOMMENT
MEDIUMgpustack/websocket_proxy/connection_manager.py315 # Create a tunnel connection for this forwardCOMMENT
MEDIUMgpustack/worker/schemas/benchmark_runner.py41 # Define a breakdown for request countsSTRING
MEDIUMgpustack/routes/inference_backend.py1564 # Create the backendCOMMENT
MEDIUMgpustack/routes/inference_backend.py1096 # Create the response with the same structure as the originalCOMMENT
Verbosity Indicators12 hits · 22 pts
SeverityFileLineSnippetContext
LOWtests/websocket_proxy/test_server_federation.py378 # Step 1: Server1 connects to Server2 as peerCOMMENT
LOWtests/websocket_proxy/test_server_federation.py382 # Step 2: Connect a client to Server2 (not Server1)COMMENT
LOWtests/websocket_proxy/test_server_federation.py395 # Step 3: Server2 syncs its client to Server1 via peer connectionCOMMENT
LOWtests/websocket_proxy/test_server_federation.py400 # Step 4: Server1 disconnects from Server2COMMENT
LOWtests/websocket_proxy/test_server_federation.py404 # Step 5: Server1 should clean up clients synced from Server2COMMENT
LOWgpustack/scheduler/calculator.py914 # Step 1: Apply filters to reduce broadcast scopeCOMMENT
LOWgpustack/scheduler/calculator.py941 # Step 2: Broadcast to filtered workersCOMMENT
LOWgpustack/scheduler/calculator.py1031 # Step 1: Apply worker filters before broadcastingCOMMENT
LOWgpustack/scheduler/calculator.py1066 # Step 2: Broadcasting to filtered workersCOMMENT
LOW…es/candidate_selectors/sglang_resource_fit_selector.py1008 # Step 1: Use the minimum GPU memory of all workers to calculate _chunked_prefill_size and _cuda_graph_max_bs.COMMENT
LOW…es/candidate_selectors/sglang_resource_fit_selector.py1094 # Step 2: Calculate reserved memory by other configsCOMMENT
LOW…es/candidate_selectors/sglang_resource_fit_selector.py1146 # Step 3: adjust mem_fraction_static for VL modelsCOMMENT
Modern AI Meta-Vocabulary6 hits · 20 pts
SeverityFileLineSnippetContext
MEDIUMtests/routes/test_gpu_service_search_alignment.py373 # which has the cluster-visibility scaffolding this module does not.COMMENT
MEDIUMgpustack/server/controllers.py623 # The snapshot convergence path is event-driven; theCOMMENT
MEDIUMgpustack/schemas/benchmark.py419 # across requests (system prompt / RAG context) to exercise prefix-cacheCOMMENT
MEDIUMgpustack/worker/serve_manager.py876 # Use the event-driven local cache instead of an API call.COMMENT
MEDIUMgpustack/assets/model-catalog-modelscope.yaml1852 # SGLang INT4 alternative (better for long agentic sessions via RadixAttention)COMMENT
MEDIUMgpustack/assets/model-catalog.yaml1720 # SGLang INT4 alternative (better for long agentic sessions via RadixAttention)COMMENT
Overly Generic Function Names14 hits · 12 pts
SeverityFileLineSnippetContext
LOWtests/websocket_proxy/test_connection.py89 async def handle_request(reader, writer):CODE
LOWtests/websocket_proxy/test_proxy_server.py72 async def handle_request(reader, writer):CODE
LOWtests/websocket_proxy/test_proxy_server.py166 async def handle_request(reader, writer):CODE
LOWtests/websocket_proxy/test_proxy_server.py343 async def handle_request(reader, writer):CODE
LOWtests/websocket_proxy/test_proxy_server.py443 async def handle_request(reader, writer):CODE
LOWtests/websocket_proxy/test_websocket_bench.py86 async def handle_request(reader, writer):CODE
LOWtests/websocket_proxy/test_websocket_bench.py181 async def handle_request(reader, writer):CODE
LOWtests/websocket_proxy/test_websocket_bench.py277 async def handle_request(reader, writer):CODE
LOWtests/websocket_proxy/test_websocket_bench.py369 async def handle_request(reader, writer):CODE
LOWtests/websocket_proxy/test_websocket_bench.py458 async def handle_request(reader, writer):CODE
LOWtests/websocket_proxy/test_websocket_bench.py552 async def handle_request(reader, writer):CODE
LOWtests/websocket_proxy/test_websocket_bench.py648 async def handle_request(reader, writer):CODE
LOWtests/websocket_proxy/test_websocket_bench.py784 async def handle_request(reader, writer):CODE
LOWtests/websocket_proxy/test_websocket_bench.py914 async def handle_request(reader, writer):CODE
AI Slop Vocabulary4 hits · 10 pts
SeverityFileLineSnippetContext
LOWtests/worker/backends/test_backend.py1042 # Script + command is None: just pass the args through under the script.COMMENT
LOWgpustack/server/cache.py155 # but for now we just use the class name and suffix for simplicity.COMMENT
MEDIUMgpustack/utils/hub.py538 # Return an empty dict here to facilitate special handling by upstream methods.COMMENT
MEDIUMgpustack/routes/worker/filesystem.py267 # 2. Path validation - use validate_path_security for robust securityCOMMENT
Hallucination Indicators1 hit · 10 pts
SeverityFileLineSnippetContext
CRITICALtests/k8s/test_template_render.py879 processor = Cluster.__table__.c.k8s_options.type.bind_processor(sqlite.dialect())CODE
Dead Code5 hits · 10 pts
SeverityFileLineSnippetContext
MEDIUMtests/gpu_instances/test_operator_settings.py732CODE
MEDIUMtests/routes/test_model_routes.py226CODE
MEDIUMtests/routes/test_model_routes.py677CODE
MEDIUMtests/routes/test_gpu_instance_type_flavors.py233CODE
MEDIUMtests/gateway/test_operator_subscription.py301CODE
AI Structural Patterns7 hits · 5 pts
SeverityFileLineSnippetContext
LOW…/server/test_resource_usage_collector_type_snapshot.py65CODE
LOWtests/utils/model.py33CODE
LOWtests/routes/test_gpu_instance_types.py246CODE
LOWgpustack/server/worker_request.py214CODE
LOWgpustack/routes/resource_usage.py2259CODE
LOWgpustack/routes/model_routes.py279CODE
LOWgpustack/routes/benchmarks.py108CODE
Fake / Example Data4 hits · 3 pts
SeverityFileLineSnippetContext
LOWtests/cloud_providers/test_digital_ocean.py64 return DigitalOceanClient(token='dummy-token')CODE
LOWtests/api/test_auth.py943 AsyncMock(return_value={"email": "user@example.com", "name": "Test User"}),CODE
LOWtests/routes/test_cache_services.py2239 assert "placeholder" in exc_info.value.messageCODE
LOWdocs/image-selector/index.html148 <pre id="image-list" class="image-commands"><code class="placeholder"CODE
Example Usage Blocks1 hit · 2 pts
SeverityFileLineSnippetContext
LOWhack/perf/plot_tps_comparison.py114# Example usageCOMMENT
Slop Phrases1 hit · 2 pts
SeverityFileLineSnippetContext
LOWgpustack/server/controllers.py3911 # sync targets will update model route record so make sure to do it before other operationsCOMMENT
TODO Padding1 hit · 2 pts
SeverityFileLineSnippetContext
LOWgpustack/gateway/__init__.py424 # TODO: add validation in the futureCOMMENT