AI Slop Code RIsk Monitor

flwrlabs/flower

Flower: A Friendly Federated AI Framework

33.0 High pattern signal View on GitHub

Maintenance and Governance Review

This report summarizes scanner evidence for flwrlabs/flower, a Python project with 7,155 GitHub stars. SynthScan examined 330,409 lines of code across 2315 source files, recording 6610 pattern matches distributed across 25 syntactic categories. The legacy adjusted pattern signal is 33.0 (High pattern signal); it is not an authorship estimate.

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

33.0
Adjusted Signal
33.0
Raw Pattern Score
100%
Time Factor
2026-10-10
Last Push
7.2K
Stars
Python
Language
330.4K
Lines of Code
2.3K
Files
6.6K
Pattern Hits
2026-10-12
Scan Date
0.25
HC Hit Rate

Risk Review · v3

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

Cognitive Ownership Risk 47.7/100 · MEDIUM

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

Hallucinated Dependency & Supply Chain Risk 9.3/100 · LOW

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

Agent Over-Engineering Ratio 72.3/100 · HIGH

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

PR Review Velocity Impact 82.7/100 · CRITICAL

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

What These Metrics Mean

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

Pattern-Signal History

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

Severity Breakdown

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

CRITICAL 1HIGH 572MEDIUM 1066LOW 4971

Directory Score Breakdown

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

Pattern Findings

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

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

Decorative Section Separators952 hits · 2874 pts
SeverityFileLineSnippetContext
MEDIUMframework/py/flwr/__init___test.py14# ==============================================================================COMMENT
MEDIUMframework/py/flwr/__init__.py14# ==============================================================================COMMENT
MEDIUMframework/py/flwr/clientapp/__init__.py14# ==============================================================================COMMENT
MEDIUMframework/py/flwr/clientapp/utils.py14# ==============================================================================COMMENT
MEDIUMframework/py/flwr/clientapp/client_app_test.py14# ==============================================================================COMMENT
MEDIUMframework/py/flwr/clientapp/client_app.py14# ==============================================================================COMMENT
MEDIUMframework/py/flwr/clientapp/typing.py14# ==============================================================================COMMENT
MEDIUMframework/py/flwr/clientapp/mod/comms_mods.py14# ==============================================================================COMMENT
MEDIUMframework/py/flwr/clientapp/mod/localdp_mod.py14# ==============================================================================COMMENT
MEDIUMframework/py/flwr/clientapp/mod/comms_mods_test.py14# ==============================================================================COMMENT
MEDIUMframework/py/flwr/clientapp/mod/centraldp_mods.py14# ==============================================================================COMMENT
MEDIUMframework/py/flwr/clientapp/mod/__init__.py14# ==============================================================================COMMENT
MEDIUMframework/py/flwr/clientapp/mod/dp_mods_test.py14# ==============================================================================COMMENT
MEDIUMframework/py/flwr/compat/__init__.py14# ==============================================================================COMMENT
MEDIUMframework/py/flwr/compat/simulation/__init__.py14# ==============================================================================COMMENT
MEDIUMframework/py/flwr/compat/server/grid.py14# ==============================================================================COMMENT
MEDIUMframework/py/flwr/compat/server/serverapp_components.py14# ==============================================================================COMMENT
MEDIUMframework/py/flwr/compat/server/__init__.py14# ==============================================================================COMMENT
MEDIUMframework/py/flwr/compat/server/app.py14# ==============================================================================COMMENT
MEDIUMframework/py/flwr/compat/server/typing.py14# ==============================================================================COMMENT
MEDIUM…mework/py/flwr/compat/common/recorddict_compat_test.py14# ==============================================================================COMMENT
MEDIUMframework/py/flwr/compat/common/parameter_test.py14# ==============================================================================COMMENT
MEDIUMframework/py/flwr/compat/common/dp.py14# ==============================================================================COMMENT
MEDIUMframework/py/flwr/compat/common/__init__.py14# ==============================================================================COMMENT
MEDIUMframework/py/flwr/compat/common/recorddict_compat.py14# ==============================================================================COMMENT
MEDIUMframework/py/flwr/compat/common/constant.py14# ==============================================================================COMMENT
MEDIUMframework/py/flwr/compat/common/typing.py14# ==============================================================================COMMENT
MEDIUMframework/py/flwr/compat/common/parameter.py14# ==============================================================================COMMENT
MEDIUMframework/py/flwr/compat/common/record/recorddict.py14# ==============================================================================COMMENT
MEDIUMframework/py/flwr/compat/common/record/metricrecord.py14# ==============================================================================COMMENT
MEDIUMframework/py/flwr/compat/common/record/__init__.py14# ==============================================================================COMMENT
MEDIUM…ework/py/flwr/compat/common/record/conversion_utils.py14# ==============================================================================COMMENT
MEDIUMframework/py/flwr/compat/common/record/arrayrecord.py14# ==============================================================================COMMENT
MEDIUMframework/py/flwr/compat/common/record/configrecord.py14# ==============================================================================COMMENT
MEDIUM…/py/flwr/compat/common/record/conversion_utils_test.py14# ==============================================================================COMMENT
MEDIUM…amework/py/flwr/compat/client/dpfedavg_numpy_client.py14# ==============================================================================COMMENT
MEDIUMframework/py/flwr/compat/client/numpy_client_test.py14# ==============================================================================COMMENT
MEDIUMframework/py/flwr/compat/client/app_test.py14# ==============================================================================COMMENT
MEDIUMframework/py/flwr/compat/client/run_info_store.py14# ==============================================================================COMMENT
MEDIUMframework/py/flwr/compat/client/numpy_client.py14# ==============================================================================COMMENT
MEDIUMframework/py/flwr/compat/client/client.py14# ==============================================================================COMMENT
MEDIUMframework/py/flwr/compat/client/__init__.py14# ==============================================================================COMMENT
MEDIUMframework/py/flwr/compat/client/run_info_store_test.py14# ==============================================================================COMMENT
MEDIUMframework/py/flwr/compat/client/app.py14# ==============================================================================COMMENT
MEDIUMframework/py/flwr/compat/client/typing.py14# ==============================================================================COMMENT
MEDIUMframework/py/flwr/compat/client/client_test.py14# ==============================================================================COMMENT
MEDIUM…k/py/flwr/compat/client/grpc_client/connection_test.py14# ==============================================================================COMMENT
MEDIUMframework/py/flwr/compat/client/grpc_client/__init__.py14# ==============================================================================COMMENT
MEDIUM…mework/py/flwr/compat/client/grpc_client/connection.py14# ==============================================================================COMMENT
MEDIUMframework/py/flwr/supercore/object_ref.py14# ==============================================================================COMMENT
MEDIUMframework/py/flwr/supercore/grpc.py14# ==============================================================================COMMENT
MEDIUMframework/py/flwr/supercore/grpc_test.py14# ==============================================================================COMMENT
MEDIUMframework/py/flwr/supercore/differential_privacy.py14# ==============================================================================COMMENT
MEDIUMframework/py/flwr/supercore/address.py14# ==============================================================================COMMENT
MEDIUMframework/py/flwr/supercore/address_test.py14# ==============================================================================COMMENT
MEDIUMframework/py/flwr/supercore/model_worker.py14# ==============================================================================COMMENT
MEDIUMframework/py/flwr/supercore/http_logging_test.py14# ==============================================================================COMMENT
MEDIUMframework/py/flwr/supercore/run.py14# ==============================================================================COMMENT
MEDIUMframework/py/flwr/supercore/model_worker_test.py14# ==============================================================================COMMENT
MEDIUMframework/py/flwr/supercore/telemetry_test.py14# ==============================================================================COMMENT
892 more matches not shown…
Cross-File Repetition508 hits · 2540 pts
SeverityFileLineSnippetContext
HIGHframework/py/flwr/clientapp/mod/comms_mods_test.py0set the task identity used by instruction message tests.STRING
HIGHframework/py/flwr/clientapp/mod/dp_mods_test.py0set the task identity used by instruction message tests.STRING
HIGH…k/py/flwr/compat/client/grpc_client/connection_test.py0set the task identity used by instruction message tests.STRING
HIGHframework/py/flwr/app/message/message_test.py0set the task identity used by instruction message tests.STRING
HIGH…r/client/mod/secure_aggregation/secaggplus_mod_test.py0set the task identity used by instruction message tests.STRING
HIGHframework/py/flwr/compat/client/numpy_client.py0refine the provided parameters using the locally held dataset.STRING
HIGHframework/py/flwr/server/client_proxy.py0refine the provided parameters using the locally held dataset.STRING
HIGH…/server/superlink/fleet/grpc_bidi/grpc_client_proxy.py0refine the provided parameters using the locally held dataset.STRING
HIGHframework/py/flwr/compat/client/numpy_client.py0evaluate the provided parameters using the locally held dataset.STRING
HIGHframework/py/flwr/server/client_proxy.py0evaluate the provided parameters using the locally held dataset.STRING
HIGH…/server/superlink/fleet/grpc_bidi/grpc_client_proxy.py0evaluate the provided parameters using the locally held dataset.STRING
HIGHframework/py/flwr/supercore/model_worker.py0run the resident worker or its exec-side dispatcher.STRING
HIGHframework/py/flwr/supercore/agentapp_worker.py0run the resident worker or its exec-side dispatcher.STRING
HIGHframework/py/flwr/supercore/connector_worker.py0run the resident worker or its exec-side dispatcher.STRING
HIGHframework/py/flwr/supercore/routers/runtime/router.py0get events from the authenticated agentapp task's run series.STRING
HIGHframework/py/flwr/supercore/dependencies/runtime.py0get events from the authenticated agentapp task's run series.STRING
HIGH…ework/py/flwr/supercore/runtime/runtime_http_client.py0get events from the authenticated agentapp task's run series.STRING
HIGHframework/py/flwr/supercore/corestate/corestate.py0return the objectstore instance used by this corestate.STRING
HIGH…ork/py/flwr/supercore/corestate/in_memory_corestate.py0return the objectstore instance used by this corestate.STRING
HIGHframework/py/flwr/supercore/corestate/sql_corestate.py0return the objectstore instance used by this corestate.STRING
HIGHframework/py/flwr/supercore/corestate/corestate.py0remove an object push session and optionally its messages.STRING
HIGH…ork/py/flwr/supercore/corestate/in_memory_corestate.py0remove an object push session and optionally its messages.STRING
HIGHframework/py/flwr/supercore/corestate/sql_corestate.py0remove an object push session and optionally its messages.STRING
HIGHframework/py/flwr/supercore/corestate/corestate.py0return a fab only when it matches the federation-app association.STRING
HIGH…ork/py/flwr/supercore/corestate/in_memory_corestate.py0return a fab only when it matches the federation-app association.STRING
HIGHframework/py/flwr/supercore/corestate/sql_corestate.py0return a fab only when it matches the federation-app association.STRING
HIGHframework/py/flwr/supercore/corestate/corestate.py0return the cached hub fab and its last update time, if present.STRING
HIGH…ork/py/flwr/supercore/corestate/in_memory_corestate.py0return the cached hub fab and its last update time, if present.STRING
HIGHframework/py/flwr/supercore/corestate/sql_corestate.py0return the cached hub fab and its last update time, if present.STRING
HIGHframework/py/flwr/supercore/corestate/corestate.py0update a hub app if it still points to the previous fab.STRING
HIGH…ork/py/flwr/supercore/corestate/in_memory_corestate.py0update a hub app if it still points to the previous fab.STRING
HIGHframework/py/flwr/supercore/corestate/sql_corestate.py0update a hub app if it still points to the previous fab.STRING
HIGHframework/py/flwr/supercore/corestate/corestate.py0list apps associated with a federation, newest first.STRING
HIGH…ork/py/flwr/supercore/corestate/in_memory_corestate.py0list apps associated with a federation, newest first.STRING
HIGHframework/py/flwr/supercore/corestate/sql_corestate.py0list apps associated with a federation, newest first.STRING
HIGHframework/py/flwr/supercore/corestate/corestate.py0delete one federation-app association; its fab remains in state.STRING
HIGH…ork/py/flwr/supercore/corestate/in_memory_corestate.py0delete one federation-app association; its fab remains in state.STRING
HIGHframework/py/flwr/supercore/corestate/sql_corestate.py0delete one federation-app association; its fab remains in state.STRING
HIGH…k/py/flwr/supercore/task_process/agent/run_agentapp.py0record a graceful interruption before final task output is pushed.STRING
HIGH…work/py/flwr/supercore/task_process/model/run_model.py0record a graceful interruption before final task output is pushed.STRING
HIGH…flwr/supercore/task_process/connector/run_connector.py0record a graceful interruption before final task output is pushed.STRING
HIGH…k/py/flwr/supercore/task_process/agent/run_agentapp.py0push final status and release task state exactly once.STRING
HIGH…work/py/flwr/supercore/task_process/model/run_model.py0push final status and release task state exactly once.STRING
HIGH…flwr/supercore/task_process/connector/run_connector.py0push final status and release task state exactly once.STRING
HIGH…k/py/flwr/supercore/task_process/agent/run_agentapp.py0finalize and emit one bounded leave event for a resident worker.STRING
HIGH…work/py/flwr/supercore/task_process/model/run_model.py0finalize and emit one bounded leave event for a resident worker.STRING
HIGH…flwr/supercore/task_process/connector/run_connector.py0finalize and emit one bounded leave event for a resident worker.STRING
HIGH…k/py/flwr/supercore/task_process/agent/run_agentapp.py0ignore graceful signals process-wide while finalization is in progress.STRING
HIGH…work/py/flwr/supercore/task_process/model/run_model.py0ignore graceful signals process-wide while finalization is in progress.STRING
HIGH…flwr/supercore/task_process/connector/run_connector.py0ignore graceful signals process-wide while finalization is in progress.STRING
HIGH…k/py/flwr/supercore/task_process/agent/run_agentapp.py0register coordinated graceful exits for the resident pid 1 worker.STRING
HIGH…work/py/flwr/supercore/task_process/model/run_model.py0register coordinated graceful exits for the resident pid 1 worker.STRING
HIGH…flwr/supercore/task_process/connector/run_connector.py0register coordinated graceful exits for the resident pid 1 worker.STRING
HIGHframework/py/flwr/supercore/cli/flwr_connector_test.py0raise a parser error before any side effects happen.STRING
HIGHframework/py/flwr/supercore/cli/flwr_agentapp_test.py0raise a parser error before any side effects happen.STRING
HIGHframework/py/flwr/simulation/app_test.py0raise a parser error before any side effects happen.STRING
HIGHframework/py/flwr/superlink/cli/flwr_serverapp_test.py0raise a parser error before any side effects happen.STRING
HIGH…amework/py/flwr/supercore/cli/flower_superexec_test.py0the version flags should print the package version and exit.STRING
HIGH…amework/py/flwr/superlink/cli/flower_superlink_test.py0the version flags should print the package version and exit.STRING
HIGH…amework/py/flwr/supernode/cli/flower_supernode_test.py0the version flags should print the package version and exit.STRING
448 more matches not shown…
Hyper-Verbose Identifiers2495 hits · 2439 pts
SeverityFileLineSnippetContext
LOWframework/py/flwr/clientapp/client_app_test.py102def test_lifespan_multiple_yields() -> None:CODE
LOWframework/py/flwr/clientapp/client_app_test.py134def test_register_func_with_default(category: str) -> None:CODE
LOWframework/py/flwr/clientapp/client_app_test.py159def test_register_func_with_mods(category: str) -> None:CODE
LOWframework/py/flwr/clientapp/client_app_test.py191def test_register_func_with_custom_action(category: str) -> None:CODE
LOWframework/py/flwr/clientapp/client_app_test.py227def test_register_func_with_wrong_action_name(category: str, action: str) -> None:CODE
LOWframework/py/flwr/clientapp/client_app_test.py245def test_register_repeated_func(category: str, action: str | None) -> None:CODE
LOWframework/py/flwr/clientapp/client_app.py38def _alert_erroneous_client_fn() -> None:CODE
LOWframework/py/flwr/clientapp/client_app.py47def _inspect_maybe_adapt_client_fn_signature(client_fn: ClientFnExt) -> ClientFnExt:CODE
LOWframework/py/flwr/clientapp/mod/comms_mods.py75def _get_array_record_size_stats(CODE
LOWframework/py/flwr/clientapp/mod/comms_mods_test.py55def test_message_size_mod_calls_next_layer() -> None:CODE
LOWframework/py/flwr/clientapp/mod/comms_mods_test.py65def test_arrays_size_mod_calls_next_layer() -> None:CODE
LOWframework/py/flwr/clientapp/mod/centraldp_mods.py244def _handle_array_key_mismatch_err(mod_name: str, msg: Message) -> Message:CODE
LOWframework/py/flwr/clientapp/mod/dp_mods_test.py79def test_fixedclipping_mod_handles_scalar_ndarray() -> None:CODE
LOWframework/py/flwr/clientapp/mod/dp_mods_test.py95def test_adaptiveclipping_mod_handles_scalar_ndarray() -> None:CODE
LOWframework/py/flwr/clientapp/mod/dp_mods_test.py114def test_localdp_mod_handles_scalar_ndarray() -> None:CODE
LOW…mework/py/flwr/compat/common/recorddict_compat_test.py79def _get_valid_fitins_with_empty_ndarrays() -> FitIns:CODE
LOW⚡…mework/py/flwr/compat/common/recorddict_compat_test.py112def _get_valid_getparametersins() -> GetParametersIns:CODE
LOW⚡…mework/py/flwr/compat/common/recorddict_compat_test.py122def _get_valid_getparametersres() -> GetParametersRes:CODE
LOW⚡…mework/py/flwr/compat/common/recorddict_compat_test.py130def _get_valid_getpropertiesins() -> GetPropertiesIns:CODE
LOW⚡…mework/py/flwr/compat/common/recorddict_compat_test.py135def _get_valid_getpropertiesres() -> GetPropertiesRes:CODE
LOW…mework/py/flwr/compat/common/recorddict_compat_test.py164def test_fitins_to_recorddict_and_back(CODE
LOW…mework/py/flwr/compat/common/recorddict_compat_test.py194def test_fitres_to_recorddict_and_back(CODE
LOW…mework/py/flwr/compat/common/recorddict_compat_test.py221def test_evaluateins_to_recorddict_and_back(CODE
LOW…mework/py/flwr/compat/common/recorddict_compat_test.py237def test_evaluateres_to_recorddict_and_back() -> None:CODE
LOW…mework/py/flwr/compat/common/recorddict_compat_test.py249def test_get_properties_ins_to_recorddict_and_back() -> None:CODE
LOW…mework/py/flwr/compat/common/recorddict_compat_test.py261def test_get_properties_res_to_recorddict_and_back() -> None:CODE
LOW…mework/py/flwr/compat/common/recorddict_compat_test.py273def test_get_parameters_ins_to_recorddict_and_back() -> None:CODE
LOW…mework/py/flwr/compat/common/recorddict_compat_test.py298def test_get_parameters_res_to_recorddict_and_back(CODE
LOWframework/py/flwr/compat/common/parameter_test.py24def test_serialisation_deserialisation() -> None:CODE
LOW⚡framework/py/flwr/compat/common/recorddict_compat.py314def recorddict_to_getparametersins(recorddict: RecordDict) -> GetParametersIns:CODE
LOW⚡framework/py/flwr/compat/common/recorddict_compat.py323def getparametersins_to_recorddict(getparameters_ins: GetParametersIns) -> RecordDict:CODE
LOW⚡framework/py/flwr/compat/common/recorddict_compat.py333def getparametersres_to_recorddict(CODE
LOW⚡framework/py/flwr/compat/common/recorddict_compat.py365def recorddict_to_getpropertiesins(recorddict: RecordDict) -> GetPropertiesIns:CODE
LOW⚡framework/py/flwr/compat/common/recorddict_compat.py374def getpropertiesins_to_recorddict(getpropertiesins: GetPropertiesIns) -> RecordDict:CODE
LOW⚡framework/py/flwr/compat/common/recorddict_compat.py383def recorddict_to_getpropertiesres(recorddict: RecordDict) -> GetPropertiesRes:CODE
LOWframework/py/flwr/compat/common/recorddict_compat.py42def arrayrecord_to_parameters(record: ArrayRecord, keep_input: bool) -> Parameters:CODE
LOWframework/py/flwr/compat/common/recorddict_compat.py82def parameters_to_arrayrecord(parameters: Parameters, keep_input: bool) -> ArrayRecord:CODE
LOWframework/py/flwr/compat/common/recorddict_compat.py121def _check_mapping_from_recordscalartype_to_scalar(CODE
LOWframework/py/flwr/compat/common/recorddict_compat.py137def _recorddict_to_fit_or_evaluate_ins_components(CODE
LOWframework/py/flwr/compat/common/recorddict_compat.py156def _fit_or_evaluate_ins_to_recorddict(CODE
LOWframework/py/flwr/compat/common/recorddict_compat.py172def _embed_status_into_recorddict(CODE
LOWframework/py/flwr/compat/common/recorddict_compat.py185def _extract_status_from_recorddict(res_str: str, recorddict: RecordDict) -> Status:CODE
LOWframework/py/flwr/compat/common/recorddict_compat.py250def recorddict_to_evaluateins(recorddict: RecordDict, keep_input: bool) -> EvaluateIns:CODE
LOWframework/py/flwr/compat/common/recorddict_compat.py261def evaluateins_to_recorddict(evaluateins: EvaluateIns, keep_input: bool) -> RecordDict:CODE
LOWframework/py/flwr/compat/common/recorddict_compat.py266def recorddict_to_evaluateres(recorddict: RecordDict) -> EvaluateRes:CODE
LOWframework/py/flwr/compat/common/recorddict_compat.py286def evaluateres_to_recorddict(evaluateres: EvaluateRes) -> RecordDict:CODE
LOWframework/py/flwr/compat/common/recorddict_compat.py352def recorddict_to_getparametersres(CODE
LOWframework/py/flwr/compat/common/recorddict_compat.py395def getpropertiesres_to_recorddict(getpropertiesres: GetPropertiesRes) -> RecordDict:CODE
LOWframework/py/flwr/compat/client/numpy_client_test.py57def test_has_get_properties_true() -> None:CODE
LOWframework/py/flwr/compat/client/numpy_client_test.py70def test_has_get_properties_false() -> None:CODE
LOWframework/py/flwr/compat/client/numpy_client_test.py83def test_has_get_parameters_true() -> None:CODE
LOWframework/py/flwr/compat/client/numpy_client_test.py96def test_has_get_parameters_false() -> None:CODE
LOW⚡framework/py/flwr/compat/client/app_test.py81def test_to_client_with_client() -> None:CODE
LOW⚡framework/py/flwr/compat/client/app_test.py89def test_to_client_with_numpyclient() -> None:CODE
LOW⚡framework/py/flwr/compat/client/app_test.py97def test_start_client_transport_invalid() -> None:CODE
LOWframework/py/flwr/compat/client/app_test.py113def test_start_numpy_client_transport_invalid() -> None:CODE
LOWframework/py/flwr/compat/client/client.py167def maybe_call_get_properties(CODE
LOWframework/py/flwr/compat/client/client.py187def maybe_call_get_parameters(CODE
LOWframework/py/flwr/compat/client/run_info_store_test.py35def test_multirun_in_run_info_store() -> None:CODE
LOWframework/py/flwr/compat/client/client_test.py87def test_has_get_properties_true() -> None:CODE
2435 more matches not shown…
Over-Commented Block1285 hits · 1165 pts
SeverityFileLineSnippetContext
LOWframework/alembic.ini1# A generic, single database configuration.COMMENT
LOWframework/alembic.ini21# defaults to the current working directory. for multiple paths, the path separatorCOMMENT
LOWframework/alembic.ini41# set to 'true' to allow .pyc and .pyo files withoutCOMMENT
LOWframework/alembic.ini61# take place if path_separator is not present in alembic.ini. If thisCOMMENT
LOWframework/alembic.ini81# in each "version_locations" directoryCOMMENT
LOWframework/alembic.ini101# format using "black" - use the console_scripts runner, against the "black" entrypointCOMMENT
LOWframework/py/flwr/__init___test.py1# Copyright 2025 Flower Labs GmbH. All Rights Reserved.COMMENT
LOWframework/py/flwr/__init__.py1# Copyright 2025 Flower Labs GmbH. All Rights Reserved.COMMENT
LOWframework/py/flwr/clientapp/__init__.py1# Copyright 2025 Flower Labs GmbH. All Rights Reserved.COMMENT
LOWframework/py/flwr/clientapp/utils.py1# Copyright 2025 Flower Labs GmbH. All Rights Reserved.COMMENT
LOWframework/py/flwr/clientapp/client_app_test.py1# Copyright 2025 Flower Labs GmbH. All Rights Reserved.COMMENT
LOWframework/py/flwr/clientapp/client_app.py1# Copyright 2025 Flower Labs GmbH. All Rights Reserved.COMMENT
LOWframework/py/flwr/clientapp/typing.py1# Copyright 2025 Flower Labs GmbH. All Rights Reserved.COMMENT
LOWframework/py/flwr/clientapp/mod/comms_mods.py1# Copyright 2025 Flower Labs GmbH. All Rights Reserved.COMMENT
LOWframework/py/flwr/clientapp/mod/localdp_mod.py1# Copyright 2025 Flower Labs GmbH. All Rights Reserved.COMMENT
LOWframework/py/flwr/clientapp/mod/comms_mods_test.py1# Copyright 2026 Flower Labs GmbH. All Rights Reserved.COMMENT
LOWframework/py/flwr/clientapp/mod/centraldp_mods.py1# Copyright 2025 Flower Labs GmbH. All Rights Reserved.COMMENT
LOWframework/py/flwr/clientapp/mod/__init__.py1# Copyright 2025 Flower Labs GmbH. All Rights Reserved.COMMENT
LOWframework/py/flwr/clientapp/mod/dp_mods_test.py1# Copyright 2026 Flower Labs GmbH. All Rights Reserved.COMMENT
LOWframework/py/flwr/compat/__init__.py1# Copyright 2025 Flower Labs GmbH. All Rights Reserved.COMMENT
LOWframework/py/flwr/compat/simulation/__init__.py1# Copyright 2025 Flower Labs GmbH. All Rights Reserved.COMMENT
LOWframework/py/flwr/compat/server/grid.py1# Copyright 2025 Flower Labs GmbH. All Rights Reserved.COMMENT
LOWframework/py/flwr/compat/server/serverapp_components.py1# Copyright 2025 Flower Labs GmbH. All Rights Reserved.COMMENT
LOWframework/py/flwr/compat/server/__init__.py1# Copyright 2025 Flower Labs GmbH. All Rights Reserved.COMMENT
LOWframework/py/flwr/compat/server/app.py1# Copyright 2025 Flower Labs GmbH. All Rights Reserved.COMMENT
LOWframework/py/flwr/compat/server/typing.py1# Copyright 2025 Flower Labs GmbH. All Rights Reserved.COMMENT
LOW…mework/py/flwr/compat/common/recorddict_compat_test.py1# Copyright 2025 Flower Labs GmbH. All Rights Reserved.COMMENT
LOWframework/py/flwr/compat/common/parameter_test.py1# Copyright 2025 Flower Labs GmbH. All Rights Reserved.COMMENT
LOWframework/py/flwr/compat/common/dp.py1# Copyright 2025 Flower Labs GmbH. All Rights Reserved.COMMENT
LOWframework/py/flwr/compat/common/__init__.py1# Copyright 2025 Flower Labs GmbH. All Rights Reserved.COMMENT
LOWframework/py/flwr/compat/common/recorddict_compat.py1# Copyright 2025 Flower Labs GmbH. All Rights Reserved.COMMENT
LOWframework/py/flwr/compat/common/constant.py1# Copyright 2025 Flower Labs GmbH. All Rights Reserved.COMMENT
LOWframework/py/flwr/compat/common/typing.py1# Copyright 2025 Flower Labs GmbH. All Rights Reserved.COMMENT
LOWframework/py/flwr/compat/common/parameter.py1# Copyright 2025 Flower Labs GmbH. All Rights Reserved.COMMENT
LOWframework/py/flwr/compat/common/record/recorddict.py1# Copyright 2026 Flower Labs GmbH. All Rights Reserved.COMMENT
LOWframework/py/flwr/compat/common/record/metricrecord.py1# Copyright 2026 Flower Labs GmbH. All Rights Reserved.COMMENT
LOWframework/py/flwr/compat/common/record/__init__.py1# Copyright 2026 Flower Labs GmbH. All Rights Reserved.COMMENT
LOW…ework/py/flwr/compat/common/record/conversion_utils.py1# Copyright 2025 Flower Labs GmbH. All Rights Reserved.COMMENT
LOWframework/py/flwr/compat/common/record/arrayrecord.py1# Copyright 2026 Flower Labs GmbH. All Rights Reserved.COMMENT
LOWframework/py/flwr/compat/common/record/configrecord.py1# Copyright 2026 Flower Labs GmbH. All Rights Reserved.COMMENT
LOW…/py/flwr/compat/common/record/conversion_utils_test.py1# Copyright 2025 Flower Labs GmbH. All Rights Reserved.COMMENT
LOW…amework/py/flwr/compat/client/dpfedavg_numpy_client.py1# Copyright 2025 Flower Labs GmbH. All Rights Reserved.COMMENT
LOWframework/py/flwr/compat/client/numpy_client_test.py1# Copyright 2025 Flower Labs GmbH. All Rights Reserved.COMMENT
LOWframework/py/flwr/compat/client/app_test.py1# Copyright 2025 Flower Labs GmbH. All Rights Reserved.COMMENT
LOWframework/py/flwr/compat/client/run_info_store.py1# Copyright 2025 Flower Labs GmbH. All Rights Reserved.COMMENT
LOWframework/py/flwr/compat/client/numpy_client.py1# Copyright 2025 Flower Labs GmbH. All Rights Reserved.COMMENT
LOWframework/py/flwr/compat/client/client.py1# Copyright 2025 Flower Labs GmbH. All Rights Reserved.COMMENT
LOWframework/py/flwr/compat/client/__init__.py1# Copyright 2025 Flower Labs GmbH. All Rights Reserved.COMMENT
LOWframework/py/flwr/compat/client/run_info_store_test.py1# Copyright 2025 Flower Labs GmbH. All Rights Reserved.COMMENT
LOWframework/py/flwr/compat/client/app.py1# Copyright 2025 Flower Labs GmbH. All Rights Reserved.COMMENT
LOWframework/py/flwr/compat/client/typing.py1# Copyright 2025 Flower Labs GmbH. All Rights Reserved.COMMENT
LOWframework/py/flwr/compat/client/client_test.py1# Copyright 2025 Flower Labs GmbH. All Rights Reserved.COMMENT
LOW…k/py/flwr/compat/client/grpc_client/connection_test.py1# Copyright 2025 Flower Labs GmbH. All Rights Reserved.COMMENT
LOWframework/py/flwr/compat/client/grpc_client/__init__.py1# Copyright 2025 Flower Labs GmbH. All Rights Reserved.COMMENT
LOW…mework/py/flwr/compat/client/grpc_client/connection.py1# Copyright 2025 Flower Labs GmbH. All Rights Reserved.COMMENT
LOWframework/py/flwr/supercore/object_ref.py1# Copyright 2025 Flower Labs GmbH. All Rights Reserved.COMMENT
LOWframework/py/flwr/supercore/grpc.py1# Copyright 2025 Flower Labs GmbH. All Rights Reserved.COMMENT
LOWframework/py/flwr/supercore/grpc.py181 ("grpc.max_receive_message_length", max_message_length),COMMENT
LOWframework/py/flwr/supercore/grpc_test.py1# Copyright 2025 Flower Labs GmbH. All Rights Reserved.COMMENT
LOWframework/py/flwr/supercore/differential_privacy.py1# Copyright 2025 Flower Labs GmbH. All Rights Reserved.COMMENT
1225 more matches not shown…
Unused Imports572 hits · 545 pts
SeverityFileLineSnippetContext
LOWframework/py/flwr/__init__.py23CODE
LOWframework/py/flwr/__init__.py23CODE
LOWframework/py/flwr/__init__.py24CODE
LOWframework/py/flwr/__init__.py25CODE
LOWframework/py/flwr/__init__.py26CODE
LOWframework/py/flwr/__init__.py27CODE
LOWframework/py/flwr/__init__.py28CODE
LOWframework/py/flwr/clientapp/__init__.py18CODE
LOWframework/py/flwr/clientapp/__init__.py19CODE
LOWframework/py/flwr/clientapp/mod/__init__.py18CODE
LOWframework/py/flwr/clientapp/mod/__init__.py18CODE
LOWframework/py/flwr/clientapp/mod/__init__.py19CODE
LOWframework/py/flwr/clientapp/mod/__init__.py19CODE
LOWframework/py/flwr/clientapp/mod/__init__.py20CODE
LOWframework/py/flwr/compat/server/serverapp_components.py18CODE
LOWframework/py/flwr/compat/server/__init__.py17CODE
LOWframework/py/flwr/compat/common/record/__init__.py17CODE
LOWframework/py/flwr/compat/common/record/__init__.py18CODE
LOWframework/py/flwr/compat/common/record/__init__.py19CODE
LOWframework/py/flwr/compat/common/record/__init__.py20CODE
LOWframework/py/flwr/compat/common/record/__init__.py21CODE
LOWframework/py/flwr/compat/client/client.py19CODE
LOWframework/py/flwr/supercore/model_worker.py17CODE
LOWframework/py/flwr/supercore/task_worker_test.py17CODE
LOWframework/py/flwr/supercore/task_worker_protocol.py17CODE
LOW…ork/py/flwr/supercore/runtime_version_compatibility.py18CODE
LOWframework/py/flwr/supercore/agentapp_worker.py17CODE
LOWframework/py/flwr/supercore/task_worker.py17CODE
LOWframework/py/flwr/supercore/constant.py18CODE
LOWframework/py/flwr/supercore/connector_worker.py17CODE
LOWframework/py/flwr/supercore/routers/health/__init__.py18CODE
LOW…amework/py/flwr/supercore/routers/runtime/responses.py17CODE
LOWframework/py/flwr/supercore/routers/runtime/__init__.py17CODE
LOWframework/py/flwr/supercore/routers/runtime/__init__.py18CODE
LOWframework/py/flwr/supercore/routers/runtime/__init__.py18CODE
LOW…py/flwr/supercore/inflatable/inflatable_object_test.py18CODE
LOW…work/py/flwr/supercore/inflatable/inflatable_object.py18CODE
LOW…core/interceptors/rpc_error_translation_interceptor.py18CODE
LOWframework/py/flwr/supercore/interceptors/__init__.py17CODE
LOWframework/py/flwr/supercore/interceptors/__init__.py19CODE
LOWframework/py/flwr/supercore/interceptors/__init__.py19CODE
LOWframework/py/flwr/supercore/interceptors/__init__.py19CODE
LOWframework/py/flwr/supercore/interceptors/__init__.py24CODE
LOWframework/py/flwr/supercore/interceptors/__init__.py25CODE
LOWframework/py/flwr/supercore/interceptors/__init__.py25CODE
LOWframework/py/flwr/supercore/interceptors/__init__.py25CODE
LOWframework/py/flwr/supercore/interceptors/__init__.py25CODE
LOW…/supercore/interceptors/runtime_version_interceptor.py18CODE
LOW…mework/py/flwr/supercore/interceptors/http/__init__.py17CODE
LOW…mework/py/flwr/supercore/interceptors/http/__init__.py18CODE
LOW…mework/py/flwr/supercore/interceptors/http/__init__.py19CODE
LOWframework/py/flwr/supercore/license_plugin/__init__.py18CODE
LOWframework/py/flwr/supercore/corestate/__init__.py18CODE
LOWframework/py/flwr/supercore/object_store/__init__.py17CODE
LOWframework/py/flwr/supercore/object_store/__init__.py17CODE
LOWframework/py/flwr/supercore/object_store/__init__.py18CODE
LOWframework/py/flwr/supercore/task_process/usage.py17CODE
LOWframework/py/flwr/supercore/task_process/agent/grid.py18CODE
LOW…mework/py/flwr/supercore/task_process/agent/session.py18CODE
LOW…ework/py/flwr/supercore/task_process/agent/__init__.py18CODE
512 more matches not shown…
Self-Referential Comments85 hits · 251 pts
SeverityFileLineSnippetContext
MEDIUMframework/py/flwr/compat/client/app.py447 # Create an error reply message that will never be used to preventCOMMENT
MEDIUMframework/py/flwr/supercore/corestate/corestate_test.py885 # Create a recurring automation with two finite occurrences.COMMENT
MEDIUMframework/py/flwr/supercore/state/alembic/utils.py269 # Create an in-memory SQLite database with StaticPool to ensure connection reuse.COMMENT
MEDIUMframework/py/flwr/supercore/superexec/run_superexec.py224 # Create the SuperExec plugin instanceCOMMENT
MEDIUM…work/py/flwr/supercore/superexec/plugin/exec_plugin.py84 # This method is optional to implementCOMMENT
MEDIUM⚡framework/py/flwr/app/message/recorddict_test.py141 # Creating a second ArrayRecord passing the same `array_dict` (not erased)COMMENT
MEDIUMframework/py/flwr/app/message/recorddict.py151 # Creating an ArrayRecord would look like thisSTRING
MEDIUMframework/py/flwr/simulation/legacy_app.py176 "\n\n\t\t$ flwr new # Create a new Flower app from a template"CODE
MEDIUMframework/py/flwr/server/superlink/fleet/vce/vce_api.py329 # Create an empty in-memory state factoryCOMMENT
MEDIUM…erlink/fleet/grpc_bidi/flower_service_servicer_test.py71 # Create a GrpcClientProxy mock which we will use to test if correctCOMMENT
MEDIUM…erlink/fleet/grpc_bidi/flower_service_servicer_test.py112 # Create a instance of FlowerServiceServicerCOMMENT
MEDIUMframework/py/flwr/server/strategy/aggregate.py33 # Create a list of weights, each multiplied by the related number of examplesCOMMENT
MEDIUMframework/py/flwr/server/strategy/aggregate.py87 # Create a list of weights and ignore the number of examplesCOMMENT
MEDIUMframework/py/flwr/server/strategy/aggregate.py104 # Create a list of weights and ignore the number of examplesCOMMENT
MEDIUMframework/py/flwr/server/strategy/aggregate.py287 # Create a list of weights and ignore the number of examplesCOMMENT
MEDIUMframework/py/flwr/cli/utils_test.py449 # Create a real directory with a file outside the rootCOMMENT
MEDIUMframework/py/flwr/cli/config_migration_test.py93 # Create a temporary app directory with pyproject.tomlCOMMENT
MEDIUM⚡framework/py/flwr/cli/app_cmd/publish_test.py61 # Create a path deeper than allowedCOMMENT
MEDIUMframework/py/flwr/common/serde_test.py207 # Create a legacy message typeCOMMENT
MEDIUMframework/py/flwr/common/serde_test.py211 # Create a message typeCOMMENT
MEDIUMframework/py/flwr/common/config_test.py324 # Create a temporary directory using a context managerSTRING
MEDIUMframework/py/flwr/common/config_test.py326 # Create a temporary TOML file within that directorySTRING
MEDIUM⚡…wr/superlink/servicer/control/control_servicer_test.py2196 # Create a node owned by someone elseCOMMENT
MEDIUM…wr/superlink/servicer/control/control_servicer_test.py1594 # Create an unfinished run in the federation and give it a live token,COMMENT
MEDIUMframework/py/flwr/supernode/start_client_internal.py494 # Define the iterator for yielding object contentsCOMMENT
MEDIUMframework/docker/complete/certs.yml71 # Create a signing CSRCOMMENT
MEDIUMframework/e2e/test_reconnection.sh21# Define the functionCOMMENT
MEDIUMframework/e2e/test_reconnection.sh106# Define a cleanup functionCOMMENT
MEDIUMframework/e2e/e2e-bare-https/generate.sh37# Create a signing CSRCOMMENT
MEDIUM…mework/e2e/e2e-bare-https/e2e_bare_https/server_app.py16 # Create the workflowCOMMENT
MEDIUMframework/e2e/e2e-opacus/e2e_opacus/server_app.py45 # Create the workflowCOMMENT
MEDIUMframework/e2e/e2e-opacus/e2e_opacus/client_app.py117 # Create a privacy engine which will add DP and keep track of the privacy budget.COMMENT
MEDIUMframework/e2e/e2e-jax/e2e_jax/server_app.py45 # Create the workflowCOMMENT
MEDIUMframework/e2e/e2e-bare-auth/generate.sh29# Create a signing CSRCOMMENT
MEDIUMframework/e2e/e2e-bare-auth/e2e_bare_auth/server_app.py16 # Create the workflowCOMMENT
MEDIUM…rk/e2e/e2e-scikit-learn/e2e_scikit_learn/server_app.py45 # Create the workflowCOMMENT
MEDIUMframework/e2e/e2e-fastai/e2e_fastai/server_app.py45 # Create the workflowCOMMENT
MEDIUMframework/e2e/e2e-fastai/e2e_fastai/client_app.py30# Define a small model. The E2E test exercises the FastAI/Flower integration,COMMENT
MEDIUM…verapp-heartbeat/e2e_serverapp_heartbeat/client_app.py3# Create a dummy client appCOMMENT
MEDIUM…-pytorch-lightning/e2e_pytorch_lightning/server_app.py45 # Create the workflowCOMMENT
MEDIUMframework/e2e/e2e-pytorch/e2e_pytorch/server_app.py45 # Create the workflowCOMMENT
MEDIUMframework/e2e/e2e-pandas/e2e_pandas/server_app.py17 # Create the workflowCOMMENT
MEDIUM…mework/e2e/e2e-tensorflow/e2e_tensorflow/server_app.py45 # Create the workflowCOMMENT
MEDIUMframework/e2e/e2e-bare/e2e_bare/server_app.py45 # Create the workflowCOMMENT
MEDIUMdatasets/flwr_datasets/federated_dataset_test.py160 # Create the expected sizes of partitionsCOMMENT
MEDIUM…/flwr_datasets/partitioner/distribution_partitioner.py278 # Create the label sampling dictionaryCOMMENT
MEDIUM…_datasets/partitioner/pathological_partitioner_test.py184 # Create a skewed part of the dataset for the last labelCOMMENT
MEDIUMdatasets/flwr_datasets/cli/create.py80 # Create the federated datasetCOMMENT
MEDIUM⚡datasets/flwr_datasets/cli/create_test.py72 # Create a unique dataset nameCOMMENT
MEDIUMdatasets/e2e/pytorch/pytorch_test.py119 # Create the model, criterion, and optimizerCOMMENT
MEDIUM…/flower-secure-aggregation/secaggexample/server_app.py77 # Create the workflowCOMMENT
MEDIUMexamples/quickstart-tensorflow/tfexample/task.py15 # Define a simple CNN for CIFAR-10 and set Adam optimizerCOMMENT
MEDIUMexamples/quickstart-tensorflow/tfexample/server_app.py11# Create the ServerAppCOMMENT
MEDIUMexamples/federated-vae/fedvaeexample/server_app.py25 # Define the strategyCOMMENT
MEDIUMexamples/quickstart-lerobot/lerobot_example/task.py212 # Create the policy input dictionaryCOMMENT
MEDIUM…federated-kaplan-meier-fitter/examplefkm/server_app.py24 # Define the filterCOMMENT
MEDIUMexamples/fl-dp-sa/fl_dp_sa/server_app.py70 # Create the train/evaluate workflowCOMMENT
MEDIUMexamples/android/tflite_convertor/convert_to_tflite.py8# Define the base model.COMMENT
MEDIUMexamples/android/tflite_convertor/convert_to_tflite.py19# Define the head model.COMMENT
MEDIUM.github/workflows/framework-release-prepare.yml71 # Define a helper that rejects existing remote refs.COMMENT
25 more matches not shown…
Empty Error Handlers45 hits · 225 pts
SeverityFileLineSnippetContext
HIGHframework/py/flwr/clientapp/client_app_test.py69except RuntimeError:CODE
HIGHframework/py/flwr/clientapp/client_app_test.py93except RuntimeError:CODE
HIGHframework/py/flwr/clientapp/client_app_test.py122except RuntimeError:CODE
HIGHframework/py/flwr/clientapp/client_app.py381except StopIteration:CODE
HIGHframework/py/flwr/compat/client/app_test.py109except ValueError:CODE
HIGHframework/py/flwr/compat/client/app_test.py125except ValueError:CODE
HIGHframework/py/flwr/supercore/version.py36except importlib_metadata.PackageNotFoundError:CODE
HIGHframework/py/flwr/supercore/update_check.py99except OSError:CODE
HIGH…amework/py/flwr/supercore/differential_privacy_test.py204except ValueError:CODE
HIGHframework/py/flwr/supercore/task_worker.py260except (OSError, ValueError):CODE
HIGHframework/py/flwr/supercore/task_worker.py251except OSError:CODE
HIGHframework/py/flwr/supercore/task_worker.py289except Exception: # pylint: disable=broad-exception-caughtCODE
HIGHframework/py/flwr/supercore/task_worker.py304except Exception: # pylint: disable=broad-exception-caughtCODE
HIGHframework/py/flwr/supercore/task_worker.py296except Exception: # pylint: disable=broad-exception-caughtCODE
HIGHframework/py/flwr/supercore/task_worker.py212except (OSError, ValueError):CODE
HIGHframework/py/flwr/supercore/logger.py434except Empty:CODE
HIGHframework/py/flwr/supercore/logger.py447except httpx.TransportError:CODE
HIGH…amework/py/flwr/supercore/routers/runtime/responses.py451except _ResponsesError:CODE
HIGH…/supercore/interceptors/runtime_version_interceptor.py113except (NotImplementedError, AttributeError):CODE
HIGH…k/py/flwr/supercore/task_process/agent/run_agentapp.py481except Exception: # pylint: disable=broad-exception-caughtCODE
HIGH…work/py/flwr/supercore/task_process/model/run_model.py184except Exception: # pylint: disable=broad-exception-caughtCODE
HIGH…flwr/supercore/task_process/connector/run_connector.py187except Exception: # pylint: disable=broad-exception-caughtCODE
HIGH…wr/supercore/credential_store/file_credential_store.py70except (OSError, yaml.YAMLError):CODE
HIGH…wr/supercore/credential_store/file_credential_store.py86except (OSError, yaml.YAMLError):CODE
HIGHframework/py/flwr/supercore/state/alembic/env.py29except ImportError:CODE
HIGHframework/py/flwr/supercore/exit/exit_handler.py91except Exception: # pylint: disable=broad-exception-caughtCODE
HIGHframework/py/flwr/supercore/exit/exit.py120except Exception: # pylint: disable=broad-exception-caughtCODE
HIGHframework/py/flwr/serverapp/server_app.py270except StopIteration:CODE
HIGHframework/py/flwr/serverapp/server_app_test.py109except RuntimeError:CODE
HIGHframework/py/flwr/serverapp/server_app_test.py133except RuntimeError:CODE
HIGHframework/py/flwr/serverapp/server_app_test.py162except RuntimeError:CODE
HIGHframework/py/flwr/simulation/run_simulation.py488except RuntimeError:CODE
HIGHframework/py/flwr/simulation/run_simulation.py355except Empty:CODE
HIGH…k/py/flwr/server/superlink/linkstate/linkstate_test.py2543except ImportError:CODE
HIGHframework/py/flwr/server/superlink/fleet/vce/vce_api.py138except Empty:CODE
HIGHframework/py/flwr/server/superlink/fleet/vce/vce_api.py191except Empty:CODE
HIGHframework/py/flwr/cli/log.py59except AllLogsRetrieved:CODE
HIGHframework/py/flwr/common/args.py169except OSError:CODE
HIGHframework/py/flwr/supernode/fleet_http_connection.py264except (httpx.HTTPError, RuntimeError):CODE
HIGHframework/py/flwr/supernode/fleet_http_connection.py271except (httpx.HTTPError, RuntimeError):CODE
HIGHframework/e2e/test_serverapp_heartbeat.py242except ProcessLookupError:CODE
HIGHdatasets/flwr_datasets/federated_dataset_test.py643except TypeError:CODE
HIGHdatasets/flwr_datasets/common/version.py39except importlib_metadata.PackageNotFoundError:CODE
HIGHexamples/supernode-authentication/generate_creds.py163except Exception:CODE
HIGHexamples/fedrag/fedrag/retriever.py49except OSError:CODE
Excessive Try-Catch Wrapping152 hits · 184 pts
SeverityFileLineSnippetContext
LOWframework/py/flwr/clientapp/utils.py84 except Exception as e:CODE
LOWframework/py/flwr/compat/client/app.py463 except Exception as ex: # pylint: disable=broad-exception-caughtCODE
LOWframework/py/flwr/supercore/grpc.py75 except Exception as e:CODE
LOWframework/py/flwr/supercore/task_worker_protocol.py98 except Exception: # pylint: disable=broad-exception-caughtCODE
LOWframework/py/flwr/supercore/task_worker_protocol.py107 except Exception: # pylint: disable=broad-exception-caughtCODE
MEDIUMframework/py/flwr/supercore/task_worker_protocol.py95def _send(self) -> None:CODE
LOWframework/py/flwr/supercore/telemetry.py211 except Exception as ex: # pylint: disable=broad-exception-caughtCODE
MEDIUMframework/py/flwr/supercore/telemetry.py208def run() -> None:CODE
LOW⚡framework/py/flwr/supercore/task_worker.py289 except Exception: # pylint: disable=broad-exception-caughtCODE
LOW⚡framework/py/flwr/supercore/task_worker.py296 except Exception: # pylint: disable=broad-exception-caughtCODE
LOW⚡framework/py/flwr/supercore/task_worker.py304 except Exception: # pylint: disable=broad-exception-caughtCODE
LOWframework/py/flwr/supercore/task_worker.py328 except Exception as err: # pylint: disable=broad-exception-caughtCODE
LOWframework/py/flwr/supercore/logger.py167 except Exception: # pylint: disable=broad-exception-caughtCODE
LOWframework/py/flwr/supercore/utils.py539 except Exception as e: # pylint: disable=broad-exception-caughtCODE
LOW…amework/py/flwr/supercore/routers/runtime/responses.py115 except Exception as err: # pylint: disable=broad-exception-caughtCODE
LOW…amework/py/flwr/supercore/routers/runtime/responses.py325 except Exception as err: # pylint: disable=broad-exception-caughtCODE
LOW…ork/py/flwr/supercore/corestate/in_memory_corestate.py268 except Exception as err: # pylint: disable=broad-exception-caughtCODE
LOWframework/py/flwr/supercore/corestate/sql_corestate.py334 except Exception as err: # pylint: disable=broad-exception-caughtCODE
LOW…mework/py/flwr/supercore/task_process/agent/session.py132 except Exception as err: # pylint: disable=broad-exception-caughtCODE
LOW…mework/py/flwr/supercore/task_process/agent/session.py306 except Exception: # pylint: disable=broad-exception-caughtCODE
LOW…mework/py/flwr/supercore/task_process/agent/session.py365 except Exception: # pylint: disable=broad-exception-caughtCODE
LOW…k/py/flwr/supercore/task_process/agent/run_agentapp.py331 except Exception as ex: # pylint: disable=broad-exception-caughtCODE
LOW…k/py/flwr/supercore/task_process/agent/run_agentapp.py417 except Exception as err: # pylint: disable=broad-exception-caughtCODE
LOW…k/py/flwr/supercore/task_process/agent/run_agentapp.py423 except Exception as err: # pylint: disable=broad-exception-caughtCODE
LOW⚡…k/py/flwr/supercore/task_process/agent/run_agentapp.py434 except Exception as err: # pylint: disable=broad-exception-caughtCODE
LOW⚡…k/py/flwr/supercore/task_process/agent/run_agentapp.py440 except Exception as err: # pylint: disable=broad-exception-caughtCODE
LOW⚡…k/py/flwr/supercore/task_process/agent/run_agentapp.py446 except Exception as err: # pylint: disable=broad-exception-caughtCODE
LOW⚡…k/py/flwr/supercore/task_process/agent/run_agentapp.py451 except Exception as err: # pylint: disable=broad-exception-caughtCODE
LOW⚡…k/py/flwr/supercore/task_process/agent/run_agentapp.py456 except Exception as err: # pylint: disable=broad-exception-caughtCODE
LOW…k/py/flwr/supercore/task_process/agent/run_agentapp.py481 except Exception: # pylint: disable=broad-exception-caughtCODE
LOWframework/py/flwr/supercore/task_process/model/task.py94 except Exception as ex:CODE
LOW…work/py/flwr/supercore/task_process/model/run_model.py112 except Exception as ex: # pylint: disable=broad-exception-caughtCODE
LOW⚡…work/py/flwr/supercore/task_process/model/run_model.py158 except Exception as err: # pylint: disable=broad-exception-caughtCODE
LOW⚡…work/py/flwr/supercore/task_process/model/run_model.py164 except Exception as err: # pylint: disable=broad-exception-caughtCODE
LOW⚡…work/py/flwr/supercore/task_process/model/run_model.py168 except Exception as err: # pylint: disable=broad-exception-caughtCODE
LOW…work/py/flwr/supercore/task_process/model/run_model.py184 except Exception: # pylint: disable=broad-exception-caughtCODE
LOW…ework/py/flwr/supercore/task_process/connector/task.py92 except Exception as ex: # pylint: disable=broad-exception-caughtCODE
LOW…flwr/supercore/task_process/connector/run_connector.py111 except Exception as ex: # pylint: disable=broad-exception-caughtCODE
LOW⚡…flwr/supercore/task_process/connector/run_connector.py161 except Exception as err: # pylint: disable=broad-exception-caughtCODE
LOW⚡…flwr/supercore/task_process/connector/run_connector.py167 except Exception as err: # pylint: disable=broad-exception-caughtCODE
LOW⚡…flwr/supercore/task_process/connector/run_connector.py171 except Exception as err: # pylint: disable=broad-exception-caughtCODE
LOW…flwr/supercore/task_process/connector/run_connector.py187 except Exception: # pylint: disable=broad-exception-caughtCODE
LOW…core/task_process/connector/browser_use/browser_use.py101 except Exception as exc:CODE
LOWframework/py/flwr/supercore/superexec/run_superexec.py212 except Exception: # pylint: disable=broad-exception-caughtCODE
LOW…/flwr/supercore/superexec/dependency_installer_test.py202 except Exception as exc: # pylint: disable=broad-exception-caughtCODE
LOW…supercore/superexec/executor/warm_executor_dispatch.py206 except Exception: # pylint: disable=broad-exception-caughtCODE
LOW…supercore/superexec/executor/warm_executor_dispatch.py461 except Exception: # pylint: disable=broad-exception-caughtCODE
LOW…supercore/superexec/executor/warm_executor_dispatch.py473 except Exception: # pylint: disable=broad-exception-caughtCODE
LOW…supercore/superexec/executor/warm_executor_dispatch.py655 except Exception: # pylint: disable=broad-exception-caughtCODE
LOW…supercore/superexec/executor/warm_executor_dispatch.py674 except Exception: # pylint: disable=broad-exception-caughtCODE
LOW…supercore/superexec/executor/warm_executor_dispatch.py770 except Exception: # pylint: disable=broad-exception-caughtCODE
LOW…supercore/superexec/executor/warm_executor_dispatch.py803 except Exception as err: # pylint: disable=broad-exception-caughtCODE
LOW…supercore/superexec/executor/warm_executor_dispatch.py843 except Exception: # pylint: disable=broad-exception-caughtCODE
LOW…supercore/superexec/executor/warm_executor_dispatch.py861 except Exception as err: # pylint: disable=broad-exception-caughtCODE
LOW…supercore/superexec/executor/warm_executor_dispatch.py881 except Exception: # pylint: disable=broad-exception-caughtCODE
LOW…supercore/superexec/executor/warm_executor_dispatch.py902 except Exception: # pylint: disable=broad-exception-caughtCODE
LOW…supercore/superexec/executor/warm_executor_dispatch.py940 except Exception as exc: # pylint: disable=broad-exception-caughtCODE
MEDIUM…supercore/superexec/executor/warm_executor_dispatch.py764def _owned_warm_pods(self) -> list[object] | None:CODE
LOW⚡…wr/supercore/superexec/executor/kubernetes_executor.py812 except Exception as exc: # pylint: disable=broad-exception-caughtCODE
LOW⚡…wr/supercore/superexec/executor/kubernetes_executor.py821 except Exception as exc: # pylint: disable=broad-exception-caughtCODE
92 more matches not shown…
Deep Nesting155 hits · 152 pts
SeverityFileLineSnippetContext
LOWframework/py/flwr/compat/client/run_info_store.py53CODE
LOWframework/py/flwr/compat/client/app.py205CODE
LOW…mework/py/flwr/compat/client/grpc_client/connection.py53CODE
LOW…mework/py/flwr/compat/client/grpc_client/connection.py139CODE
LOW…mework/py/flwr/compat/client/grpc_client/connection.py194CODE
LOWframework/py/flwr/supercore/object_ref.py185CODE
LOWframework/py/flwr/supercore/object_ref.py200CODE
LOWframework/py/flwr/supercore/task_worker_test.py76CODE
LOWframework/py/flwr/supercore/task_worker.py168CODE
LOWframework/py/flwr/supercore/logger.py416CODE
LOWframework/py/flwr/supercore/utils.py50CODE
LOWframework/py/flwr/supercore/sql_mixin_test.py168CODE
LOW…amework/py/flwr/supercore/routers/runtime/responses.py266CODE
LOW…ork/py/flwr/supercore/corestate/in_memory_corestate.py1422CODE
LOWframework/py/flwr/supercore/corestate/sql_corestate.py282CODE
LOWframework/py/flwr/supercore/corestate/sql_corestate.py932CODE
LOW…ork/py/flwr/supercore/object_store/sql_object_store.py67CODE
LOW…/flwr/supercore/object_store/in_memory_object_store.py53CODE
LOW…k/py/flwr/supercore/task_process/agent/run_agentapp.py239CODE
LOW…upercore/task_process/connector/web_search/__init__.py60CODE
LOW…ercore/task_process/connector/filesystem/filesystem.py159CODE
LOW…core/task_process/connector/browser_use/browser_use.py142CODE
LOW…wr/supercore/task_process/connector/slack/executors.py112CODE
LOW…wr/supercore/task_process/connector/slack/executors.py155CODE
LOWframework/py/flwr/supercore/retry/http_retry.py50CODE
LOWframework/py/flwr/supercore/retry/http_retry.py84CODE
LOWframework/py/flwr/supercore/retry/retry_invoker.py199CODE
LOWframework/py/flwr/supercore/cli/flower_superexec.py47CODE
LOW…rk/py/flwr/supercore/superexec/dependency_installer.py278CODE
LOW…supercore/superexec/executor/warm_executor_dispatch.py608CODE
LOW…wr/supercore/superexec/executor/kubernetes_executor.py603CODE
LOWframework/py/flwr/serverapp/strategy/strategy_utils.py67CODE
LOWframework/py/flwr/serverapp/strategy/strategy_utils.py102CODE
LOWframework/py/flwr/simulation/ray_transport/ray_actor.py357CODE
LOW…mework/py/flwr/server/compat/grid_client_proxy_test.py234CODE
LOW…mework/py/flwr/server/compat/grid_client_proxy_test.py242CODE
LOW…flwr/server/superlink/linkstate/in_memory_linkstate.py204CODE
LOW…flwr/server/superlink/linkstate/in_memory_linkstate.py360CODE
LOW…flwr/server/superlink/linkstate/in_memory_linkstate.py639CODE
LOW…flwr/server/superlink/linkstate/in_memory_linkstate.py868CODE
LOW…flwr/server/superlink/linkstate/in_memory_linkstate.py889CODE
LOW…k/py/flwr/server/superlink/linkstate/linkstate_test.py3182CODE
LOW…rk/py/flwr/server/superlink/linkstate/sql_linkstate.py237CODE
LOW…r/server/superlink/linkstate/linkstate_factory_test.py37CODE
LOWframework/py/flwr/server/superlink/fleet/vce/vce_api.py106CODE
LOW…y/flwr/server/superlink/fleet/grpc_bidi/grpc_bridge.py83CODE
LOW…r/superlink/fleet/grpc_bidi/flower_service_servicer.py84CODE
LOW…ver/workflow/secure_aggregation/secaggplus_workflow.py204CODE
LOW…ver/workflow/secure_aggregation/secaggplus_workflow.py543CODE
LOWframework/py/flwr/cli/utils_test.py83CODE
LOWframework/py/flwr/cli/ls.py47CODE
LOWframework/py/flwr/cli/ls.py166CODE
LOWframework/py/flwr/cli/config_migration.py111CODE
LOWframework/py/flwr/cli/config_migration.py146CODE
LOWframework/py/flwr/cli/utils.py228CODE
LOWframework/py/flwr/cli/chat/chat_transcript.py71CODE
LOWframework/py/flwr/cli/chat/chat_app.py1217CODE
LOWframework/py/flwr/cli/chat/chat_app.py822CODE
LOWframework/py/flwr/cli/chat/chat_app.py901CODE
LOWframework/py/flwr/cli/chat/chat_app.py1029CODE
95 more matches not shown…
Redundant / Tautological Comments97 hits · 150 pts
SeverityFileLineSnippetContext
LOWframework/py/flwr/clientapp/client_app.py159 # Check if the function is registeredCOMMENT
LOWframework/py/flwr/clientapp/client_app.py410 # Check if the name is a valid Python identifierCOMMENT
LOWframework/py/flwr/clientapp/client_app.py417 # Check if the name is already registeredCOMMENT
LOWframework/py/flwr/clientapp/mod/localdp_mod.py113 # Check if the msg has errorCOMMENT
LOWframework/py/flwr/clientapp/mod/centraldp_mods.py82 # Check if the msg has errorCOMMENT
LOWframework/py/flwr/clientapp/mod/centraldp_mods.py163 # Check if the msg has errorCOMMENT
LOWframework/py/flwr/compat/client/client.py171 # Check if client overrides `get_properties`COMMENT
LOWframework/py/flwr/compat/client/client.py191 # Check if client overrides `get_parameters`COMMENT
LOWframework/py/flwr/compat/client/client.py209 # Check if client overrides `fit`COMMENT
LOWframework/py/flwr/compat/client/client.py229 # Check if client overrides `evaluate`COMMENT
LOWframework/py/flwr/supercore/grpc.py163 # Check if port is in useCOMMENT
LOWframework/py/flwr/supercore/telemetry.py80 # Check if .flwr in home existsCOMMENT
LOWframework/py/flwr/supercore/logger.py108 # Check if the message is emptyCOMMENT
LOW⚡framework/py/flwr/supercore/utils.py413 # Check if the name exceeds the maximum lengthCOMMENT
LOW⚡framework/py/flwr/supercore/utils.py417 # Check if the first character is a letterCOMMENT
LOW⚡framework/py/flwr/supercore/utils.py421 # Check if the rest of the characters are valid (letter, digit, or dash)COMMENT
LOW…ework/py/flwr/supercore/inflatable/inflatable_utils.py367 # Check if there is a head-body dividerCOMMENT
LOW…ework/py/flwr/supercore/inflatable/inflatable_utils.py400 # Check if the body length in the head matches that of the bodyCOMMENT
LOW…ework/py/flwr/supercore/inflatable/inflatable_utils.py476 # Check if the inflated object is of the expected typeCOMMENT
LOW…/flwr/supercore/object_store/in_memory_object_store.py159 # Check if the object ID is pre-registeredCOMMENT
LOW…/flwr/supercore/object_store/in_memory_object_store.py194 # Check if the object is still in the storeCOMMENT
LOWframework/py/flwr/supercore/retry/retry_invoker.py269 # Check if giveup event should be triggeredCOMMENT
LOWframework/py/flwr/supercore/retry/grpc_retry.py88 # Check if this is an SSL handshake failure - these should fail fastCOMMENT
LOWframework/py/flwr/supercore/state/alembic/env.py84 # Check if a connection was provided (e.g., for in-memory databases).COMMENT
LOWframework/py/flwr/supercore/exit/exit_code_test.py46 # Check if all exit codesCOMMENT
LOW…py/flwr/supercore/servicer/runtime/runtime_handlers.py254 # Check if the connector ref is valid.COMMENT
LOWframework/py/flwr/app/metadata.py223 # Check if conforming to the format "<category>"COMMENT
LOWframework/py/flwr/app/metadata.py233 # Check if conforming to the format "<category>.<action>"COMMENT
LOWframework/py/flwr/app/message/array.py182 # Check if all arguments are correctly setCOMMENT
LOWframework/py/flwr/serverapp/server_app.py199 # Check if parameter name or the annotation should be updatedCOMMENT
LOWframework/py/flwr/serverapp/strategy/bulyan.py140 # Check if sufficient replies have been receivedCOMMENT
LOWframework/py/flwr/server/server.py377 # Check if there was an exceptionCOMMENT
LOWframework/py/flwr/server/server.py440 # Check if there was an exceptionCOMMENT
LOW…mework/py/flwr/server/compat/grid_client_proxy_test.py268 # Check if the created message contains the orignal *InsCOMMENT
LOW…mework/py/flwr/server/compat/grid_client_proxy_test.py279 # Check if send_and_receive is called once with expected args/kwargs.COMMENT
LOW…flwr/server/superlink/linkstate/in_memory_linkstate.py217 # Check if the message has expiredCOMMENT
LOW…flwr/server/superlink/linkstate/in_memory_linkstate.py223 # Check if the destination node and the source node are still in theCOMMENT
LOW…flwr/server/superlink/linkstate/in_memory_linkstate.py286 # Check if the Message it is replying to exists and is validCOMMENT
LOW…flwr/server/superlink/linkstate/in_memory_linkstate.py470 # Check if the run existsCOMMENT
LOW…flwr/server/superlink/linkstate/in_memory_linkstate.py556 # Set online_until to current timestamp on deletion, if it is in the futureCOMMENT
LOW…flwr/server/superlink/linkstate/in_memory_linkstate.py564 # Check if the node existsCOMMENT
LOW…flwr/server/superlink/linkstate/in_memory_linkstate.py585 # Check if the node existsCOMMENT
LOW…flwr/server/superlink/linkstate/in_memory_linkstate.py595 # Set online_until to current timestampCOMMENT
LOW…rk/py/flwr/server/superlink/linkstate/sql_linkstate.py286 # Check if the message has expiredCOMMENT
LOW…rk/py/flwr/server/superlink/linkstate/sql_linkstate.py294 # Check if run exists and get federation IDCOMMENT
LOW…rk/py/flwr/server/superlink/linkstate/sql_linkstate.py674 # Check if the run existsCOMMENT
LOW…rk/py/flwr/server/superlink/linkstate/sql_linkstate.py1246 # Check if any of the expired tasks is referenced as a run's primary task.COMMENT
LOWframework/py/flwr/server/superlink/linkstate/utils.py271 # Check if the reply Message has expiredCOMMENT
LOW…erlink/fleet/grpc_bidi/flower_service_servicer_test.py133 # Check if the client was registered with the client_managerCOMMENT
LOW…ework/py/flwr/server/strategy/fault_tolerant_fedavg.py95 # Check if enough results are availableCOMMENT
LOW…ework/py/flwr/server/strategy/fault_tolerant_fedavg.py127 # Check if enough results are availableCOMMENT
LOWframework/py/flwr/cli/flower_config_test.py60 # Set FLWR_HOME to the temporary directoryCOMMENT
LOWframework/py/flwr/cli/config_migration.py231 # Check if migration is applicable and if legacy usage is detectedCOMMENT
LOW⚡framework/py/flwr/cli/flower_config.py382 # Check if the connection existsCOMMENT
LOWframework/py/flwr/cli/typing.py188 # Check if the federation ID is validCOMMENT
LOWframework/py/flwr/cli/app_cmd/publish.py276 # Open file and register with ExitStackCOMMENT
LOWframework/py/flwr/cli/login/login.py63 # Check if insecure flag is set to `True`COMMENT
LOWframework/py/flwr/common/args.py222 # Check if certificates are providedCOMMENT
LOW…py/flwr/superlink/servicer/control/control_handlers.py1252 # Check if requester is a member of the federationCOMMENT
LOW…py/flwr/superlink/servicer/control/control_handlers.py1529 # Check if artifact provider is configuredCOMMENT
37 more matches not shown…
Modern Structural Boilerplate143 hits · 144 pts
SeverityFileLineSnippetContext
LOWframework/py/flwr/__init__.py30__all__ = [CODE
LOWframework/py/flwr/clientapp/__init__.py21__all__ = [CODE
LOWframework/py/flwr/clientapp/mod/__init__.py22__all__ = [CODE
LOWframework/py/flwr/compat/server/__init__.py19__all__ = ["ServerAppComponents"]CODE
LOWframework/py/flwr/compat/common/record/__init__.py23__all__ = [CODE
LOWframework/py/flwr/compat/client/run_info_store.py105 def update_context(self, run_id: int, context: Context) -> None:CODE
LOWframework/py/flwr/supercore/update_check.py47__all__ = ["get_flwr_update_check_payload", "warn_if_flwr_update_available"]CODE
LOWframework/py/flwr/supercore/__init__.py23__all__ = ["log"]CODE
LOWframework/py/flwr/supercore/sql_mixin.py48def _set_sqlite_pragmas(dbapi_conn: Any, _connection_record: Any) -> None:CODE
LOWframework/py/flwr/supercore/logger.py43__all__ = [CODE
LOWframework/py/flwr/supercore/routers/health/__init__.py20__all__ = ["router"]CODE
LOWframework/py/flwr/supercore/routers/runtime/__init__.py20__all__ = ["create_runtime_router", "responses_router", "router"]CODE
LOWframework/py/flwr/supercore/interceptors/__init__.py32__all__ = [CODE
LOW…mework/py/flwr/supercore/interceptors/http/__init__.py21__all__ = [CODE
LOWframework/py/flwr/supercore/license_plugin/__init__.py20__all__ = [CODE
LOWframework/py/flwr/supercore/corestate/corestate.py447 def set_run_series_description(self, series_id: int, description: str) -> None:CODE
LOWframework/py/flwr/supercore/corestate/corestate.py476 def set_run_series_context(self, series_id: int, context: Context) -> None:CODE
LOW…ork/py/flwr/supercore/corestate/in_memory_corestate.py699 def set_run_series_description(self, series_id: int, description: str) -> None:CODE
LOW…ork/py/flwr/supercore/corestate/in_memory_corestate.py715 def set_run_series_context(self, series_id: int, context: Context) -> None:CODE
LOWframework/py/flwr/supercore/corestate/__init__.py20__all__ = [CODE
LOWframework/py/flwr/supercore/corestate/sql_corestate.py892 def set_run_series_description(self, series_id: int, description: str) -> None:CODE
LOWframework/py/flwr/supercore/corestate/sql_corestate.py917 def set_run_series_context(self, series_id: int, context: Context) -> None:CODE
LOWframework/py/flwr/supercore/object_store/__init__.py20__all__ = [CODE
LOWframework/py/flwr/supercore/task_process/__init__.py24__all__ = [CODE
LOW…ework/py/flwr/supercore/task_process/agent/__init__.py20__all__ = ["run_agentapp"]CODE
LOW…ework/py/flwr/supercore/task_process/model/__init__.py20__all__ = ["run_model"]CODE
LOW…k/py/flwr/supercore/task_process/connector/__init__.py20__all__ = ["run_connector"]CODE
LOW…lwr/supercore/task_process/connector/attio/__init__.py19__all__ = ["CONNECTOR"]CODE
LOW…upercore/task_process/connector/web_search/__init__.py91__all__ = ["CONNECTOR"]CODE
LOW…upercore/task_process/connector/filesystem/__init__.py36__all__ = ["CONNECTOR"]CODE
LOW…wr/supercore/task_process/connector/notion/__init__.py19__all__ = [CODE
LOW…wr/supercore/task_process/connector/github/__init__.py19__all__ = [CODE
LOW…percore/task_process/connector/browser_use/__init__.py87__all__ = ["CONNECTOR"]CODE
LOW…lwr/supercore/task_process/connector/slack/__init__.py19__all__ = [CODE
LOWframework/py/flwr/supercore/retry/__init__.py22__all__ = [CODE
LOWframework/py/flwr/supercore/auth/__init__.py28__all__ = [CODE
LOW…amework/py/flwr/supercore/credential_store/__init__.py30__all__ = [CODE
LOWframework/py/flwr/supercore/grpc_health/__init__.py21__all__ = [CODE
LOWframework/py/flwr/supercore/runtime/__init__.py19__all__ = ["RuntimeHttpClient"]CODE
LOWframework/py/flwr/supercore/cli/__init__.py23__all__ = [CODE
LOW…amework/py/flwr/supercore/superexec/plugin/__init__.py21__all__ = [CODE
LOW…ework/py/flwr/supercore/superexec/executor/__init__.py26__all__ = [CODE
LOWframework/py/flwr/supercore/exit/__init__.py23__all__ = [CODE
LOWframework/py/flwr/supercore/error/__init__.py23__all__ = [CODE
LOWframework/py/flwr/supercore/control/__init__.py19__all__ = ["ControlHttpClient"]CODE
LOWframework/py/flwr/app/__init__.py41__all__ = [CODE
LOWframework/py/flwr/app/message/__init__.py32__all__ = [CODE
LOWframework/py/flwr/serverapp/__init__.py45__all__ = [CODE
LOWframework/py/flwr/serverapp/strategy/__init__.py43__all__ = [CODE
LOW…ork/py/flwr/serverapp/strategy/dp_adaptive_clipping.py326 def _update_clip_norm_from_replies(self, replies: list[Message]) -> None:CODE
LOWframework/py/flwr/serverapp/grid/grid.py30 def set_run(self, run: Run) -> None:CODE
LOWframework/py/flwr/serverapp/grid/__init__.py20__all__ = [CODE
LOWframework/py/flwr/simulation/legacy_app.py295 def update_resources(f_stop: threading.Event) -> None:CODE
LOWframework/py/flwr/simulation/__init__.py44__all__ = [CODE
LOWframework/py/flwr/server/server.py73 def set_max_workers(self, max_workers: int | None) -> None:CODE
LOWframework/py/flwr/server/server.py77 def set_strategy(self, strategy: Strategy) -> None:CODE
LOWframework/py/flwr/server/__init__.py53__all__ = [CODE
LOWframework/py/flwr/server/compat/__init__.py21__all__ = [CODE
LOWframework/py/flwr/server/compat/app_utils.py87 def update_registered_nodes() -> None:CODE
LOWframework/py/flwr/server/utils/__init__.py20__all__ = [CODE
83 more matches not shown…
Cross-Language Confusion14 hits · 78 pts
SeverityFileLineSnippetContext
HIGH⚡framework/py/flwr/supercore/utils_test.py113 assert strict_json_loads('{"key":[1,true,null]}') == {"key": [1, True, None]}CODE
HIGH⚡framework/py/flwr/supercore/utils_test.py125 '{"key":[1,true,null]}'CODE
HIGH…rk/py/flwr/supercore/routers/runtime/responses_test.py271 '"param":null,"sequence_number":1}\n\n'CODE
HIGH…work/py/flwr/supercore/task_process/agent/grid_test.py86 '{"id":"22","name":null,"location":null}],"num_available":2}'CODE
HIGH…work/py/flwr/supercore/task_process/agent/grid_test.py99 '{"nodes":[{"id":"22","name":null,"location":null}],"num_available":2}',CODE
HIGH…work/py/flwr/supercore/task_process/agent/grid_test.py123 '{"results":[{"message_id":"message-1","error":null},'CODE
HIGH…work/py/flwr/supercore/task_process/agent/grid_test.py124 '{"message_id":null,"error":"Message was not accepted."}]}'CODE
HIGH…work/py/flwr/supercore/task_process/agent/grid_test.py149 '"payload":"done","error":null}],"pending_message_ids":[]}'CODE
HIGH…work/py/flwr/supercore/task_process/agent/grid_test.py192 assert pushed["output"] == '{"message_id":"reply-1","error":null}'CODE
HIGH…work/py/flwr/supercore/task_process/agent/grid_test.py211 '{"message_id":null,"error":"No instruction message to reply to. 'CODE
HIGHexamples/fedrag/data/download.py30 os.system("cd {:s} && git lfs pull && cd ..".format(fullpath))CODE
HIGHdev/devtool/build_example_docs.py293 subprocess.call(f"cd {ROOT}/examples/docs && make html", shell=True)STRING
HIGHbaselines/fedmlb/fedmlb/main.py181 # if cfg.batch_size is set to null,COMMENT
HIGHbaselines/fedmlb/fedmlb/main.py205 # if cfg.batch_size is set to null,COMMENT
AI Structural Patterns76 hits · 75 pts
SeverityFileLineSnippetContext
LOWframework/py/flwr/compat/client/app.py72CODE
LOWframework/py/flwr/compat/client/app.py205CODE
LOWframework/py/flwr/supercore/corestate/utils_test.py28CODE
LOW…mework/py/flwr/supercore/json_message/model_message.py31CODE
LOWframework/py/flwr/supercore/superexec/run_superexec.py128CODE
LOWframework/py/flwr/app/message/message.py524CODE
LOWframework/py/flwr/app/message/message.py133CODE
LOWframework/py/flwr/serverapp/strategy/fedavgm.py79CODE
LOWframework/py/flwr/serverapp/strategy/bulyan.py89CODE
LOWframework/py/flwr/serverapp/strategy/fedtrimmedavg.py78CODE
LOWframework/py/flwr/serverapp/strategy/fedprox.py119CODE
LOWframework/py/flwr/serverapp/strategy/multikrum.py88CODE
LOWframework/py/flwr/serverapp/strategy/fedadam.py85CODE
LOWframework/py/flwr/serverapp/strategy/fedyogi.py85CODE
LOWframework/py/flwr/serverapp/strategy/fedopt.py86CODE
LOWframework/py/flwr/serverapp/strategy/qfedavg.py86CODE
LOWframework/py/flwr/serverapp/strategy/krum.py76CODE
LOWframework/py/flwr/serverapp/strategy/fedxgb_cyclic.py73CODE
LOWframework/py/flwr/serverapp/strategy/fedadagrad.py81CODE
LOWframework/py/flwr/serverapp/strategy/fedavg.py83CODE
LOWframework/py/flwr/simulation/legacy_app.py73CODE
LOWframework/py/flwr/simulation/run_simulation.py376CODE
LOWframework/py/flwr/server/utils/validator_test.py31CODE
LOW…flwr/server/superlink/linkstate/in_memory_linkstate.py778CODE
LOW…k/py/flwr/server/superlink/linkstate/linkstate_test.py2496CODE
LOW…mework/py/flwr/server/superlink/linkstate/linkstate.py360CODE
LOW…rk/py/flwr/server/superlink/linkstate/sql_linkstate.py345CODE
LOW…rk/py/flwr/server/superlink/linkstate/sql_linkstate.py1054CODE
LOW…ork/py/flwr/server/superlink/fleet/vce/vce_api_test.py228CODE
LOWframework/py/flwr/server/strategy/fedavgm.py77CODE
LOWframework/py/flwr/server/strategy/bulyan.py79CODE
LOWframework/py/flwr/server/strategy/fedtrimmedavg.py72CODE
LOWframework/py/flwr/server/strategy/fedprox.py106CODE
LOWframework/py/flwr/server/strategy/fedadam.py86CODE
LOWframework/py/flwr/server/strategy/fedyogi.py86CODE
LOWframework/py/flwr/server/strategy/fedopt.py79CODE
LOWframework/py/flwr/server/strategy/qfedavg.py51CODE
LOWframework/py/flwr/server/strategy/krum.py78CODE
LOWframework/py/flwr/server/strategy/fedavg_android.py75CODE
LOWframework/py/flwr/server/strategy/fedadagrad.py82CODE
LOW…ework/py/flwr/server/strategy/fault_tolerant_fedavg.py42CODE
LOWframework/py/flwr/server/strategy/fedavg.py92CODE
LOWframework/py/flwr/cli/utils.py213CODE
LOWframework/py/flwr/cli/federation/simulation_config.py37CODE
LOW…/py/flwr/common/secure_aggregation/secaggplus_utils.py80CODE
LOW…py/flwr/superlink/servicer/control/control_handlers.py1336CODE
LOWframework/py/flwr/supernode/start_client_internal.py79CODE
LOW…sets/flwr_datasets/visualization/label_distribution.py35CODE
LOW…atasets/visualization/comparison_label_distribution.py34CODE
LOWdatasets/flwr_datasets/common/telemetry.py155CODE
LOWexamples/quickstart-cpp/fedavg_cpp.py13CODE
LOWbenchmarks/flowertune-llm/evaluation/medical/utils.py76CODE
LOW…chmarks/flowertune-llm/evaluation/general-nlp/utils.py79CODE
LOWbaselines/dasha/dasha/resnet.py44CODE
LOWbaselines/dasha/dasha/resnet.py87CODE
LOWbaselines/dasha/dasha/resnet.py124CODE
LOWbaselines/fedavgm/fedavgm/strategy.py36CODE
LOWbaselines/floco/floco/strategy.py36CODE
LOWbaselines/floco/floco/strategy.py140CODE
LOWbaselines/moon/moon/models.py84CODE
16 more matches not shown…
Docstring Block Structure3 hits · 15 pts
SeverityFileLineSnippetContext
HIGH…tflite_convertor/tfltransfer/model_correctness_test.py160Trains the head model for a given number of epochs. SGD is used as an optimizer. Args: num_eSTRING
HIGH…tflite_convertor/tfltransfer/heads/keras_model_head.py108Appends the train signature of the model to the current graph. Bottleneck and labels tensors are connected as iSTRING
HIGH…cations/adaptive_federated_optimization/cifar/utils.py512Returns initial parameters from a model. Args: num_classes (int, optional): Defines if using CIFAR10 or 100STRING
AI Slop Vocabulary5 hits · 10 pts
SeverityFileLineSnippetContext
MEDIUMframework/e2e/test_superlink.sh47# These e2e apps are preinstalled by CI; keep the SuperLink harness from creatingCOMMENT
MEDIUMframework/e2e/test_reconnection.sh17# This reconnection harness uses a preinstalled e2e app, so SuperLink should notCOMMENT
LOWexamples/fedrag/fedrag/task.py23 # just call the class method.COMMENT
LOWexamples/fedrag/fedrag/server_app.py43 # If k_rff is not set then simply return theCOMMENT
LOW…amples/quickstart-numpy/quickstart_numpy/client_app.py18 # Simulate local training (here we just add random noise to model parameters)COMMENT
Hallucination Indicators1 hit · 10 pts
SeverityFileLineSnippetContext
CRITICAL…tflite_convertor/tfltransfer/heads/keras_model_head.py42 tf.compat.v1.keras.experimental.export_saved_model(keras_model, saved_model_dir)CODE
Fake / Example Data10 hits · 10 pts
SeverityFileLineSnippetContext
LOW⚡…k/py/flwr/server/superlink/linkstate/linkstate_test.py1368 node_id = state.create_node("fake_aid", "fake_name", public_key, 10)CODE
LOW⚡…k/py/flwr/server/superlink/linkstate/linkstate_test.py1372 state.create_node("fake_aid2", "fake_name", public_key, 10)CODE
LOW⚡…k/py/flwr/server/superlink/linkstate/linkstate_test.py1560 node_id = state.create_node("fake_aid", "fake_name", public_key, 10)CODE
LOW⚡…k/py/flwr/server/superlink/linkstate/linkstate_test.py1574 node_id = state.create_node("fake_aid", "fake_name", public_key, 10)CODE
LOW…k/py/flwr/server/superlink/linkstate/linkstate_test.py1347 "fake_name",CODE
LOW…wr/superlink/servicer/runtime/runtime_handlers_test.py357 "mock_owner", "fake_name", self.node_pk, 30CODE
LOW…wr/superlink/servicer/control/control_servicer_test.py1180 owner_name="fake_name",CODE
LOW…wr/superlink/servicer/control/control_servicer_test.py1271 owner_name="fake_name",CODE
LOW…wr/superlink/servicer/control/control_servicer_test.py1292 owner_name="fake_name",CODE
LOW…wr/superlink/servicer/control/control_servicer_test.py1318 owner_name="fake_name",CODE
Slop Phrases3 hits · 8 pts
SeverityFileLineSnippetContext
MEDIUM…-secure-aggregation/secaggexample/workflow_with_log.py42 log(INFO, "for demonstration purposes.")CODE
MEDIUM…/flower-secure-aggregation/secaggexample/client_app.py24 # For demonstration purposes onlyCOMMENT
MEDIUMbaselines/fedwav2vec2/fedwav2vec2/sb_recipe.py32# different systems. By properly changing the parameter files, you can tryCOMMENT
Modern AI Meta-Vocabulary3 hits · 8 pts
SeverityFileLineSnippetContext
MEDIUMexamples/fedrag/pyproject.toml51# The LLM used by the server to execute the RAG query.COMMENT
MEDIUMexamples/fedrag/README.md237server-llm-hfpath = ... # the Hugging Face name/path of the LLM model used by the server to execute the RAG queryCODE
MEDIUMexamples/fedrag/fedrag/retriever.py32 # load the embedding model and define the embeddings dimensionsCOMMENT
Synthetic Comment Markers1 hit · 8 pts
SeverityFileLineSnippetContext
HIGHframework/py/flwr/supercore/retry/grpc_retry.py78 # Mark shutdown as requested before sending SIGINT because the signalCOMMENT
Magic Placeholder Names1 hit · 5 pts
SeverityFileLineSnippetContext
HIGH…/docs/source/how-to-guides/run-with-local-superlink.md26$ export FLWR_MODEL_API_KEY="<your-api-key>"CODE
Dead Code1 hit · 2 pts
SeverityFileLineSnippetContext
MEDIUMframework/py/flwr/common/dummy_grpc_handlers_test.py86CODE
Verbosity Indicators1 hit · 2 pts
SeverityFileLineSnippetContext
LOWbaselines/heterofl/heterofl/models.py838 # Step 3: Obtain the state_dict of the modelCOMMENT
Structural Annotation Overuse1 hit · 2 pts
SeverityFileLineSnippetContext
LOWbaselines/heterofl/heterofl/models.py838 # Step 3: Obtain the state_dict of the modelCOMMENT
Overly Generic Function Names1 hit · 1 pts
SeverityFileLineSnippetContext
LOWexamples/android/tflite_convertor/tfltransfer/utils.py29 def helper(self):CODE