Write scalable load tests in plain Python 🚗💨
This report presents the forensic synthetic code analysis of locustio/locust, a Python project with 27,990 GitHub stars. SynthScan v2.0 examined 46,045 lines of code across 347 source files, recording 672 pattern matches distributed across 16 syntactic categories. The overall adjusted score of 15.5 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).
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.
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.
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.
The scanner identified 672 distinct pattern matches across 16 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.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | locust/web.py | 382 | def _download_csv_suggest_file_name(suggest_filename_prefix: str) -> str: | CODE |
| LOW | locust/web.py | 420 | def request_stats_full_history_csv() -> Response: | CODE |
| LOW | locust/env.py | 255 | def _remove_user_classes_with_weight_zero(self) -> None: | CODE |
| LOW | locust/env.py | 290 | def _validate_user_class_name_uniqueness(self): | CODE |
| LOW | locust/env.py | 299 | def _validate_shape_class_instance(self): | CODE |
| LOW | locust/log.py | 88 | def greenlet_exception_logger(logger, level=logging.CRITICAL): | CODE |
| LOW | locust/dispatch.py | 129 | def dispatch_iteration_durations(self) -> list[float]: | CODE |
| LOW | locust/dispatch.py | 271 | def _wait_between_dispatch_iteration_context(self) -> Generator[None]: | CODE |
| LOW | locust/dispatch.py | 313 | def _remove_users_from_workers(self) -> dict[str, dict[str, int]]: | CODE |
| LOW | locust/dispatch.py | 391 | def _fast_users_on_workers_copy(users_on_workers: dict[str, dict[str, int]]) -> dict[str, dict[str, int]]: | CODE |
| LOW | locust/opentelemetry.py | 229 | def _setup_auto_instrumentation(): | CODE |
| LOW | locust/stats.py | 161 | def calculate_response_time_percentile(response_times: dict[int, int], num_requests: int, percent: float) -> int: | CODE |
| LOW | locust/stats.py | 600 | def get_response_time_percentile(self, percent: float) -> int: | CODE |
| LOW | locust/stats.py | 609 | def get_current_response_time_percentile(self, percent: float) -> int | None: | CODE |
| LOW | locust/stats.py | 824 | def setup_distributed_stats_event_listeners(events: Events, stats: RequestStats) -> None: | CODE |
| LOW | locust/stats.py | 901 | def get_percentile_stats_summary(stats: RequestStats) -> list[str]: | CODE |
| LOW | locust/stats.py | 1265 | def validate_stats_configuration() -> None: | CODE |
| LOW | locust/clients.py | 533 | def build_connection_pool_key_attributes(self, request, verify, cert=None): | CODE |
| LOW | locust/runners.py | 851 | def _wait_for_workers_report_after_ramp_up(self) -> float: | CODE |
| LOW | locust/runners.py | 1191 | def reported_user_classes_count(self) -> dict[str, int]: | CODE |
| LOW | locust/runners.py | 1340 | def heartbeat_timeout_checker(self) -> NoReturn: | CODE |
| LOW | locust/runners.py | 1519 | def _format_user_classes_count_for_log(user_classes_count: dict[str, int]) -> str: | CODE |
| LOW | locust/runners.py | 1526 | def _aggregate_dispatched_users(d: dict[str, dict[str, int]]) -> dict[str, int]: | CODE |
| LOW | locust/main.py | 86 | def merge_locustfiles_content( | CODE |
| LOW | locust/main.py | 517 | def spawn_run_time_quit_greenlet(): | CODE |
| LOW⚡ | locust/argument_parser.py | 96 | def secret_args_included_in_web_ui(self) -> dict[str, configargparse.Action]: | CODE |
| LOW⚡ | locust/argument_parser.py | 104 | def required_args_included_in_web_ui(self) -> dict[str, configargparse.Action]: | CODE |
| LOW⚡ | locust/argument_parser.py | 112 | def multiple_args_included_in_web_ui(self) -> dict[str, configargparse.Action]: | CODE |
| LOW | locust/argument_parser.py | 192 | def download_locustfile_from_url(url: str) -> str: | CODE |
| LOW | locust/argument_parser.py | 219 | def get_empty_argument_parser(add_help=True, default_config_files=DEFAULT_CONFIG_FILES) -> LocustArgumentParser: | CODE |
| LOW | locust/argument_parser.py | 263 | def download_locustfile_from_master(master_host: str, master_port: int) -> str: | CODE |
| LOW | locust/argument_parser.py | 370 | def parse_locustfiles_from_master(locustfile_sources) -> list[str]: | CODE |
| LOW | locust/argument_parser.py | 388 | def retrieve_locustfiles_from_master(options) -> list[str]: | CODE |
| LOW | locust/argument_parser.py | 403 | def raise_argument_type_error(err_msg): | CODE |
| LOW | locust/test/test_parser.py | 38 | def test_parse_options_from_conf_file(self): | CODE |
| LOW⚡ | locust/test/test_parser.py | 433 | def test_find_locustfiles_with_multiple_locustfiles(self): | STRING |
| LOW⚡ | locust/test/test_parser.py | 443 | def test_find_locustfiles_error_for_invalid_file_extension(self): | STRING |
| LOW⚡ | locust/test/test_parser.py | 450 | def test_find_locustfiles_error_if_multiple_values_for_directory(self): | STRING |
| LOW | locust/test/test_parser.py | 60 | def test_parse_two_line_conf_file(self): # there was an issue with conf files identified as toml | STRING |
| LOW | locust/test/test_parser.py | 70 | def test_parse_options_from_toml_file(self): | STRING |
| LOW | locust/test/test_parser.py | 135 | def test_parse_options_from_env(self): | STRING |
| LOW | locust/test/test_parser.py | 194 | def test_parse_locustfile_multiple_files(self): | STRING |
| LOW | locust/test/test_parser.py | 208 | def test_parse_locustfile_with_directory(self): | STRING |
| LOW | locust/test/test_parser.py | 219 | def test_parse_locustfile_with_nested_directory(self): | STRING |
| LOW | locust/test/test_parser.py | 243 | def test_parse_locustfile_with_directory_ignores_invalid_filenames(self): | STRING |
| LOW | locust/test/test_parser.py | 258 | def test_parse_locustfile_empty_directory_error(self): | STRING |
| LOW | locust/test/test_parser.py | 268 | def test_parse_locustfile_and_directory(self): | STRING |
| LOW | locust/test/test_parser.py | 282 | def test_parse_multiple_directories(self): | STRING |
| LOW | locust/test/test_parser.py | 295 | def test_parse_locustfile_invalid_directory_error(self): | STRING |
| LOW | locust/test/test_parser.py | 305 | def test_unknown_command_line_arg(self): | STRING |
| LOW | locust/test/test_parser.py | 352 | def test_custom_argument_help_message(self): | STRING |
| LOW | locust/test/test_parser.py | 371 | def test_custom_argument_included_in_web_ui(self): | STRING |
| LOW | locust/test/test_parser.py | 406 | def test_find_locustfiles_with_is_directory(self): | STRING |
| LOW | locust/test/test_parser.py | 417 | def test_find_locustfiles_error_if_directory_doesnt_exist(self): | STRING |
| LOW | locust/test/test_parser.py | 422 | def test_find_locustfiles_ignores_invalid_files_in_directory(self): | STRING |
| LOW | locust/test/test_dispatch.py | 1083 | # def test_ramp_down_users_on_workers_respecting_weight(self): | COMMENT |
| LOW | locust/test/test_dispatch.py | 787 | def test_users_are_distributed_evenly_across_hosts(self): | CODE |
| LOW | locust/test/test_dispatch.py | 851 | def test_implementation_of_dispatch_distribution_with_gcd(self): | CODE |
| LOW | locust/test/test_dispatch.py | 883 | def test_implementation_of_dispatch_distribution_with_gcd_float_weight(self): | CODE |
| LOW | locust/test/test_dispatch.py | 922 | def test_wait_between_dispatch(self): | CODE |
| 391 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM⚡ | locust/test/test_csv_request_logger.py | 65 | # ------------------------------------------------------------------ | COMMENT |
| MEDIUM⚡ | locust/contrib/milvus.py | 269 | # ---------------------------------- | COMMENT |
| MEDIUM⚡ | locust/contrib/milvus.py | 271 | # ---------------------------------- | COMMENT |
| MEDIUM⚡ | locust/contrib/qdrant.py | 133 | # ---------------------------------- | COMMENT |
| MEDIUM⚡ | locust/contrib/qdrant.py | 135 | # ---------------------------------- | COMMENT |
| MEDIUM | locust/contrib/csv_request_logger.py | 108 | # ------------------------------------------------------------------ | COMMENT |
| MEDIUM | locust/contrib/csv_request_logger.py | 110 | # ------------------------------------------------------------------ | COMMENT |
| MEDIUM | locust/contrib/csv_request_logger.py | 135 | # ------------------------------------------------------------------ | COMMENT |
| MEDIUM | locust/contrib/csv_request_logger.py | 137 | # ------------------------------------------------------------------ | COMMENT |
| MEDIUM | docs/conf.py | 90 | # --------------------- | COMMENT |
| MEDIUM | docs/conf.py | 167 | # ----------------------- | COMMENT |
| MEDIUM | .github/workflows/tests.yml | 23 | #------------------------- | COMMENT |
| MEDIUM | .github/workflows/tests.yml | 25 | #------------------------- | COMMENT |
| MEDIUM | .github/workflows/tests.yml | 127 | #------------------------- | COMMENT |
| MEDIUM | .github/workflows/tests.yml | 129 | #------------------------- | COMMENT |
| MEDIUM | .github/workflows/tests.yml | 397 | # ------------------------- | COMMENT |
| MEDIUM | .github/workflows/tests.yml | 399 | # ------------------------- | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | pytest_locust/plugin.py | 7 | CODE | |
| LOW | locust/event.py | 1 | CODE | |
| LOW | locust/web.py | 1 | CODE | |
| LOW | locust/env.py | 1 | CODE | |
| LOW | locust/input_events.py | 1 | CODE | |
| LOW | locust/dispatch.py | 1 | CODE | |
| LOW | locust/__init__.py | 24 | CODE | |
| LOW | locust/__init__.py | 25 | CODE | |
| LOW | locust/__init__.py | 26 | CODE | |
| LOW | locust/__init__.py | 28 | CODE | |
| LOW | locust/__init__.py | 29 | CODE | |
| LOW | locust/__init__.py | 30 | CODE | |
| LOW | locust/__init__.py | 30 | CODE | |
| LOW | locust/__init__.py | 30 | CODE | |
| LOW | locust/__init__.py | 31 | CODE | |
| LOW | locust/__init__.py | 32 | CODE | |
| LOW | locust/__init__.py | 32 | CODE | |
| LOW | locust/__init__.py | 32 | CODE | |
| LOW | locust/__init__.py | 33 | CODE | |
| LOW | locust/__init__.py | 33 | CODE | |
| LOW | locust/__init__.py | 34 | CODE | |
| LOW | locust/__init__.py | 34 | CODE | |
| LOW | locust/__init__.py | 34 | CODE | |
| LOW | locust/__init__.py | 34 | CODE | |
| LOW | locust/__init__.py | 63 | CODE | |
| LOW | locust/__init__.py | 64 | CODE | |
| LOW | locust/__init__.py | 8 | CODE | |
| LOW | locust/debug.py | 1 | CODE | |
| LOW | locust/stats.py | 1 | CODE | |
| LOW | locust/clients.py | 1 | CODE | |
| LOW | locust/runners.py | 1 | CODE | |
| LOW | locust/shape.py | 1 | CODE | |
| LOW | locust/main.py | 1 | CODE | |
| LOW | locust/main.py | 37 | CODE | |
| LOW | locust/argument_parser.py | 1 | CODE | |
| LOW | locust/test/test_dispatch.py | 1 | CODE | |
| LOW | locust/test/mock_logging.py | 1 | CODE | |
| LOW | locust/test/test_web.py | 1 | CODE | |
| LOW | locust/test/test_runners.py | 1 | CODE | |
| LOW | locust/test/test_main.py | 1 | CODE | |
| LOW | locust/util/load_locustfile.py | 1 | CODE | |
| LOW | locust/user/task.py | 1 | CODE | |
| LOW | locust/user/users.py | 1 | CODE | |
| LOW | locust/user/__init__.py | 8 | CODE | |
| LOW | locust/user/__init__.py | 8 | CODE | |
| LOW | locust/user/__init__.py | 8 | CODE | |
| LOW | locust/user/__init__.py | 9 | CODE | |
| LOW | locust/user/__init__.py | 9 | CODE | |
| LOW | locust/user/inspectuser.py | 1 | CODE | |
| LOW | locust/user/wait_time.py | 7 | CODE | |
| LOW | locust/contrib/mqtt.py | 1 | CODE | |
| LOW | locust/contrib/fasthttp.py | 1 | CODE | |
| LOW | locust/contrib/fasthttp.py | 5 | CODE | |
| LOW | locust/contrib/csv_request_logger.py | 54 | CODE | |
| LOW | locust/rpc/protocol.py | 1 | CODE | |
| LOW | locust/rpc/__init__.py | 6 | CODE | |
| LOW | locust/rpc/__init__.py | 7 | CODE | |
| LOW | docs/_ext/llms_txt.py | 36 | CODE | |
| LOW | examples/test_data_management.py | 23 | CODE | |
| LOW | examples/web_ui_auth/custom_form.py | 11 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | locust/event.py | 52 | except Exception: | CODE |
| LOW | locust/event.py | 85 | except Exception as e: | CODE |
| LOW | locust/web.py | 660 | except Exception as e: | CODE |
| LOW | locust/input_events.py | 114 | except Exception as e: | CODE |
| MEDIUM | locust/input_events.py | 99 | def input_listener_func(): | CODE |
| LOW | locust/runners.py | 387 | except Exception: | CODE |
| LOW | locust/runners.py | 985 | except Exception as error: | CODE |
| LOW | locust/runners.py | 1081 | except Exception as e: | CODE |
| LOW | locust/runners.py | 1177 | except Exception: | CODE |
| LOW | locust/main.py | 243 | except Exception: | CODE |
| LOW | locust/main.py | 371 | except Exception as e: | CODE |
| LOW | locust/main.py | 689 | except Exception: | CODE |
| LOW | locust/argument_parser.py | 124 | except Exception as e: | CODE |
| MEDIUM | locust/argument_parser.py | 121 | def parse(self, stream): | CODE |
| MEDIUM | locust/test/test_web.py | 205 | def test_reset_stats(self): | CODE |
| MEDIUM | locust/test/test_web.py | 228 | def test_exceptions(self): | CODE |
| MEDIUM | locust/test/test_web.py | 243 | def test_exceptions_csv(self): | CODE |
| MEDIUM | locust/test/test_web.py | 1058 | def test_report_exceptions(self): | CODE |
| LOW | locust/test/test_web.py | 208 | except Exception as e: | CODE |
| LOW | locust/test/test_web.py | 231 | except Exception as e: | CODE |
| LOW | locust/test/test_web.py | 246 | except Exception as e: | CODE |
| LOW | locust/test/test_web.py | 1061 | except Exception as e: | CODE |
| LOW | locust/test/__init__.py | 14 | except Exception: | CODE |
| LOW⚡ | locust/user/task.py | 375 | except Exception: | CODE |
| LOW⚡ | locust/user/task.py | 384 | except Exception: | CODE |
| LOW⚡ | locust/user/task.py | 387 | except Exception as e: | CODE |
| LOW | locust/user/users.py | 162 | except Exception as e: | CODE |
| LOW | locust/contrib/milvus.py | 97 | except Exception as e: | CODE |
| LOW | locust/contrib/milvus.py | 110 | except Exception as e: | CODE |
| LOW | locust/contrib/milvus.py | 159 | except Exception as e: | CODE |
| LOW | locust/contrib/milvus.py | 192 | except Exception as e: | CODE |
| LOW | locust/contrib/milvus.py | 226 | except Exception: | CODE |
| LOW | locust/contrib/milvus.py | 248 | except Exception as e: | CODE |
| LOW⚡ | locust/contrib/milvus.py | 261 | except Exception as e: | CODE |
| LOW | locust/contrib/qdrant.py | 46 | except Exception as e: | CODE |
| LOW | locust/contrib/qdrant.py | 79 | except Exception as e: | CODE |
| LOW | locust/contrib/qdrant.py | 109 | except Exception as e: | CODE |
| LOW⚡ | locust/contrib/qdrant.py | 125 | except Exception as e: | CODE |
| LOW | locust/contrib/mqtt.py | 381 | except Exception: | CODE |
| LOW | locust/contrib/fasthttp.py | 491 | except Exception as e: | CODE |
| LOW | locust/contrib/postgres.py | 23 | except Exception as e: | CODE |
| LOW | locust/contrib/socketio.py | 29 | except Exception as e: | CODE |
| LOW | locust/contrib/socketio.py | 47 | except Exception as e: | CODE |
| MEDIUM | locust/rpc/zmqrpc.py | 72 | print(f"Error resolving address: {e}") | CODE |
| LOW | docs/_ext/llms_txt.py | 199 | except Exception as e: | CODE |
| LOW | examples/manual_stats_reporting.py | 32 | except Exception as e: | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | locust/web.py | 121 | CODE | |
| LOW | locust/web.py | 213 | CODE | |
| LOW | locust/env.py | 270 | CODE | |
| LOW | locust/input_events.py | 98 | CODE | |
| LOW | locust/input_events.py | 67 | CODE | |
| LOW | locust/input_events.py | 99 | CODE | |
| LOW | locust/opentelemetry.py | 75 | CODE | |
| LOW | locust/opentelemetry.py | 120 | CODE | |
| LOW | locust/opentelemetry.py | 171 | CODE | |
| LOW | locust/runners.py | 247 | CODE | |
| LOW | locust/runners.py | 339 | CODE | |
| LOW | locust/runners.py | 466 | CODE | |
| LOW | locust/runners.py | 874 | CODE | |
| LOW | locust/runners.py | 926 | CODE | |
| LOW | locust/runners.py | 974 | CODE | |
| LOW | locust/runners.py | 1015 | CODE | |
| LOW | locust/main.py | 148 | CODE | |
| LOW | locust/main.py | 260 | CODE | |
| LOW | locust/argument_parser.py | 121 | CODE | |
| LOW | locust/test/test_dispatch.py | 1775 | CODE | |
| LOW | locust/test/test_dispatch.py | 2148 | CODE | |
| LOW | locust/test/test_dispatch.py | 3623 | CODE | |
| LOW | locust/test/test_runners.py | 1313 | CODE | |
| LOW | locust/test/test_runners.py | 1838 | CODE | |
| LOW | locust/test/test_runners.py | 4101 | CODE | |
| LOW | locust/test/test_main.py | 279 | CODE | |
| LOW | locust/test/test_main.py | 288 | CODE | |
| LOW | locust/test/test_main.py | 363 | CODE | |
| LOW | locust/test/test_main.py | 502 | CODE | |
| LOW | locust/test/test_main.py | 752 | CODE | |
| LOW | locust/test/test_main.py | 797 | CODE | |
| LOW | locust/test/test_main.py | 1469 | CODE | |
| LOW | locust/util/load_locustfile.py | 88 | CODE | |
| LOW | locust/user/task.py | 144 | CODE | |
| LOW | locust/user/task.py | 346 | CODE | |
| LOW | locust/user/users.py | 297 | CODE | |
| LOW | locust/user/sequential_taskset.py | 17 | CODE | |
| LOW | locust/contrib/milvus.py | 200 | CODE | |
| LOW | locust/contrib/fasthttp.py | 453 | CODE | |
| LOW | locust/contrib/fasthttp.py | 583 | CODE | |
| LOW | docs/_ext/llms_txt.py | 110 | CODE | |
| LOW | examples/response_validations.py | 21 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| CRITICAL | locust/test/test_runners.py | 374 | self.user.environment.events.request.fire( | CODE |
| CRITICAL | locust/test/test_runners.py | 400 | self.user.environment.events.request.fire( | CODE |
| CRITICAL⚡ | locust/user/task.py | 388 | self.user.environment.events.user_error.fire(user_instance=self, exception=e, tb=e.__traceback__) | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | locust/shape.py | 0 | meta class for the main user class. it's used to allow user classes to specify task execution ratio using an {task:int} | STRING |
| HIGH | locust/user/task.py | 0 | meta class for the main user class. it's used to allow user classes to specify task execution ratio using an {task:int} | STRING |
| HIGH | locust/user/users.py | 0 | meta class for the main user class. it's used to allow user classes to specify task execution ratio using an {task:int} | STRING |
| HIGH | examples/custom_wait_function.py | 0 | user class that does requests to the locust web server running on localhost | STRING |
| HIGH | examples/basic.py | 0 | user class that does requests to the locust web server running on localhost | STRING |
| HIGH | examples/multiple_hosts.py | 0 | user class that does requests to the locust web server running on localhost | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | locust/env.py | 159 | # Create a new RequestStats with use_response_times_cache set to False to save some memory | COMMENT |
| MEDIUM | locust/test/test_markov_taskset.py | 223 | # Define a class with abstract=True explicitly | COMMENT |
| MEDIUM | locust/test/test_main.py | 847 | # Define the input filename as well as the resulting filename within the temp directory | COMMENT |
| MEDIUM | docs/conf.py | 2 | # This file is execfile()d with the current directory set to its containing dir. | COMMENT |
| MEDIUM | docs/conf.py | 22 | # Define the canonical URL if you are using a custom domain on Read the Docs | COMMENT |
| MEDIUM | examples/grpc/hello_pb2_grpc.py | 46 | # This class is part of an EXPERIMENTAL API. | COMMENT |
| MEDIUM | examples/socketio/echo_server.py | 12 | # Create a Socket.IO server | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | locust/web.py | 49 | logger = logging.getLogger(__name__) | CODE |
| LOW | locust/opentelemetry.py | 10 | logger = logging.getLogger(__name__) | CODE |
| LOW | locust/stats.py | 33 | logger = logging.getLogger(__name__) | CODE |
| LOW | locust/stats.py | 959 | def update_stats_history(runner: Runner, timestamp: str | None = None) -> None: | CODE |
| LOW | locust/runners.py | 42 | logger = logging.getLogger(__name__) | CODE |
| LOW | locust/runners.py | 197 | def update_state(self, new_state: str) -> None: | CODE |
| LOW | locust/util/exception_handler.py | 4 | logger = logging.getLogger(__name__) | CODE |
| LOW | locust/user/task.py | 34 | logger = logging.getLogger(__name__) | CODE |
| LOW | locust/user/users.py | 37 | logger = logging.getLogger(__name__) | CODE |
| LOW | locust/contrib/csv_request_logger.py | 57 | logger = logging.getLogger(__name__) | CODE |
| LOW | docs/_ext/llms_txt.py | 48 | logger = logging.getLogger(__name__) | CODE |
| LOW | examples/grpc/hello_server.py | 9 | logger = logging.getLogger(__name__) | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | locust/runners.py | 361 | # to unexpected behaviours such as the one in the following example: | COMMENT |
| LOW | locust/test/test_dispatch.py | 1081 | self.assertTrue(0 <= delta <= _TOLERANCE, delta) | COMMENT |
| LOW | locust/test/test_dispatch.py | 1101 | # { | COMMENT |
| LOW | docs/conf.py | 1 | # | COMMENT |
| LOW | docs/conf.py | 141 | # There are two options for replacing |today|: either, you set today to some | COMMENT |
| LOW | docs/conf.py | 181 | # HTML theme | COMMENT |
| LOW | examples/open_closed_workload.py | 21 | # so if response times increase to the point where one task execution takes more than 10s, | COMMENT |
| LOW | examples/test_data_management.py | 1 | # This example shows the various ways to run things before/outside of the normal task execution flow, | COMMENT |
| LOW | examples/browse_docs_test.py | 41 | COMMENT | |
| LOW | examples/socketio/socketio_ex.py | 21 | # resp = self.client.post("/login", json={"username": "foo", "password": "bar"}) | COMMENT |
| LOW | benchmarks/dispatch.py | 21 | USER_CLASSES: list[type[User]] = [] | COMMENT |
| LOW | .github/workflows/tests.yml | 561 | # name: Publish package on NPM | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | locust/contrib/oai.py | 11 | from openai import OpenAI # dont forget to install openai | CODE |
| MEDIUM | examples/test_data_management.py | 43 | # If you want to get something over HTTP at this time you can use `requests` directly: | COMMENT |
| MEDIUM | examples/test_data_management.py | 122 | # If you do not want the request logged, you can replace self.client.<method> with requests.<method> | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | locust/web.py | 121 | CODE | |
| LOW | locust/env.py | 23 | CODE | |
| LOW | locust/env.py | 168 | CODE | |
| LOW | locust/contrib/fasthttp.py | 190 | CODE | |
| LOW | examples/grpc/hello_pb2_grpc.py | 51 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | locust/test/test_web.py | 1127 | def do_something(self): | CODE |
| LOW⚡ | locust/user/task.py | 398 | def execute_task(self, task): | CODE |
| LOW | locust/user/task.py | 507 | def execute_task(self, task): | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | locust/argument_parser.py | 204 | # Check if response is valid python code | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | locust/test/test_runners.py | 3274 | server.mocked_send(Message("test_custom_msg", {"test_data": 123}, "dummy_id")) | CODE |
| LOW | locust/test/test_runners.py | 3296 | server.mocked_send(Message("unregistered_custom_msg", {}, "dummy_id")) | CODE |
| LOW | locust/test/test_runners.py | 3915 | client.mocked_send(Message("unregistered_custom_msg", {}, "dummy_id")) | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | locust/contrib/fasthttp.py | 686 | """Override _urlopen() in order to make it use the response_type attribute""" | STRING |