Repository Analysis

flwrlabs/flower

Flower: A Friendly Federated AI Framework

31.3 Strong AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of flwrlabs/flower, a Python project with 7,031 GitHub stars. SynthScan v2.0 examined 298,270 lines of code across 2201 source files, recording 5564 pattern matches distributed across 22 syntactic categories. The overall adjusted score of 31.3 places this repository in the Strong 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).

31.3
Adjusted Score
31.3
Raw Score
100%
Time Factor
2026-07-14
Last Push
7.0K
Stars
Python
Language
298.3K
Lines of Code
2.2K
Files
5.6K
Pattern Hits
2026-07-14
Scan Date
0.21
HC Hit Rate

What These Metrics Mean

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

Score History

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

Severity Breakdown

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

CRITICAL 1HIGH 470MEDIUM 952LOW 4141

Directory Score Breakdown

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

Pattern Findings

The scanner identified 5564 distinct pattern matches across 22 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.

Decorative Section Separators840 hits · 2556 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/run.py14# ==============================================================================COMMENT
MEDIUMframework/py/flwr/supercore/telemetry_test.py14# ==============================================================================COMMENT
MEDIUMframework/py/flwr/supercore/version.py14# ==============================================================================COMMENT
MEDIUMframework/py/flwr/supercore/utils_test.py14# ==============================================================================COMMENT
MEDIUMframework/py/flwr/supercore/update_check.py14# ==============================================================================COMMENT
780 more matches not shown…
Cross-File Repetition461 hits · 2305 pts
SeverityFileLineSnippetContext
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
HIGH…flwr/supercore/interceptors/appio_token_interceptor.py0return the task associated with the task token, if valid.STRING
HIGH…ork/py/flwr/supercore/corestate/in_memory_corestate.py0return the task associated with the task token, if valid.STRING
HIGHframework/py/flwr/supercore/corestate/sql_corestate.py0return the task associated with the task token, if valid.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/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
HIGHframework/py/flwr/supercore/cli/flwr_agentapp_test.py0the removed deprecated flag should no longer parse.STRING
HIGHframework/py/flwr/supercore/cli/flwr_model_test.py0the removed deprecated flag should no longer parse.STRING
HIGHframework/py/flwr/simulation/app_test.py0the removed deprecated flag should no longer parse.STRING
HIGHframework/py/flwr/common/args_test.py0the removed deprecated flag should no longer parse.STRING
HIGHframework/py/flwr/superlink/cli/flwr_serverapp_test.py0the removed deprecated flag should no longer parse.STRING
HIGHframework/py/flwr/supernode/cli/flwr_clientapp_test.py0the removed deprecated flag should no longer parse.STRING
HIGHframework/py/flwr/supercore/cli/flwr_agentapp_test.py0argument parsing should happen before stdout/stderr redirection.STRING
HIGHframework/py/flwr/simulation/app_test.py0argument parsing should happen before stdout/stderr redirection.STRING
HIGHframework/py/flwr/superlink/cli/flwr_serverapp_test.py0argument parsing should happen before stdout/stderr redirection.STRING
HIGH…percore/superexec/plugin/base_ephemeral_exec_plugin.py0launch the process to execute the given task using the given token.STRING
HIGH…py/flwr/supercore/superexec/plugin/base_exec_plugin.py0launch the process to execute the given task using the given token.STRING
HIGH…re/superexec/plugin/serverapp_ephemeral_exec_plugin.py0launch the process to execute the given task using the given token.STRING
HIGH…mework/py/flwr/serverapp/strategy/dp_fixed_clipping.py0aggregate arrayrecords and metricrecords in the received messages.STRING
HIGHframework/py/flwr/serverapp/strategy/fedavgm.py0aggregate arrayrecords and metricrecords in the received messages.STRING
HIGHframework/py/flwr/serverapp/strategy/bulyan.py0aggregate arrayrecords and metricrecords in the received messages.STRING
HIGHframework/py/flwr/serverapp/strategy/fedtrimmedavg.py0aggregate arrayrecords and metricrecords in the received messages.STRING
HIGHframework/py/flwr/serverapp/strategy/multikrum.py0aggregate arrayrecords and metricrecords in the received messages.STRING
HIGHframework/py/flwr/serverapp/strategy/fedadam.py0aggregate arrayrecords and metricrecords in the received messages.STRING
HIGHframework/py/flwr/serverapp/strategy/fedyogi.py0aggregate arrayrecords and metricrecords in the received messages.STRING
HIGHframework/py/flwr/serverapp/strategy/qfedavg.py0aggregate arrayrecords and metricrecords in the received messages.STRING
HIGHframework/py/flwr/serverapp/strategy/fedxgb_cyclic.py0aggregate arrayrecords and metricrecords in the received messages.STRING
HIGHframework/py/flwr/serverapp/strategy/fedxgb_bagging.py0aggregate arrayrecords and metricrecords in the received messages.STRING
HIGHframework/py/flwr/serverapp/strategy/fedmedian.py0aggregate arrayrecords and metricrecords in the received messages.STRING
HIGHframework/py/flwr/serverapp/strategy/fedadagrad.py0aggregate arrayrecords and metricrecords in the received messages.STRING
HIGHframework/py/flwr/serverapp/strategy/fedavg.py0aggregate arrayrecords and metricrecords in the received messages.STRING
HIGH…ork/py/flwr/serverapp/strategy/dp_adaptive_clipping.py0aggregate arrayrecords and metricrecords in the received messages.STRING
HIGH…/flowertune-llm-finance/flowertune_finance/strategy.py0aggregate arrayrecords and metricrecords in the received messages.STRING
HIGH…amples/flowertune-llm-code/flowertune_code/strategy.py0aggregate arrayrecords and metricrecords in the received messages.STRING
HIGH…/flowertune-llm-medical/flowertune_medical/strategy.py0aggregate arrayrecords and metricrecords in the received messages.STRING
HIGH…tune-llm-general-nlp/flowertune_generalnlp/strategy.py0aggregate arrayrecords and metricrecords in the received messages.STRING
HIGHframework/py/flwr/serverapp/strategy/fedavgm.py0federated averaging strategy. implementation based on https://arxiv.org/abs/1602.05629 parameters ---------- fraction_trSTRING
HIGHframework/py/flwr/serverapp/strategy/multikrum.py0federated averaging strategy. implementation based on https://arxiv.org/abs/1602.05629 parameters ---------- fraction_trSTRING
HIGHframework/py/flwr/serverapp/strategy/krum.py0federated averaging strategy. implementation based on https://arxiv.org/abs/1602.05629 parameters ---------- fraction_trSTRING
HIGHframework/py/flwr/serverapp/strategy/fedxgb_cyclic.py0federated averaging strategy. implementation based on https://arxiv.org/abs/1602.05629 parameters ---------- fraction_trSTRING
HIGHframework/py/flwr/serverapp/strategy/fedxgb_bagging.py0federated averaging strategy. implementation based on https://arxiv.org/abs/1602.05629 parameters ---------- fraction_trSTRING
HIGHframework/py/flwr/serverapp/strategy/fedmedian.py0federated averaging strategy. implementation based on https://arxiv.org/abs/1602.05629 parameters ---------- fraction_trSTRING
HIGHframework/py/flwr/serverapp/strategy/fedavg.py0federated averaging strategy. implementation based on https://arxiv.org/abs/1602.05629 parameters ---------- fraction_trSTRING
HIGHframework/py/flwr/serverapp/strategy/multikrum.py0machine learning with adversaries: byzantine tolerant gradient descent. [blanchard et al., 2017]. paper: proceedings.neuSTRING
HIGHframework/py/flwr/serverapp/strategy/krum.py0machine learning with adversaries: byzantine tolerant gradient descent. [blanchard et al., 2017]. paper: proceedings.neuSTRING
HIGHframework/py/flwr/server/strategy/krum.py0machine learning with adversaries: byzantine tolerant gradient descent. [blanchard et al., 2017]. paper: proceedings.neuSTRING
HIGHframework/py/flwr/serverapp/strategy/fedadam.py0fedadagrad strategy - adaptive federated optimization using adagrad. implementation based on https://arxiv.org/abs/2003.STRING
401 more matches not shown…
Hyper-Verbose Identifiers1901 hits · 1919 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.py45def test_message_size_mod_calls_next_layer() -> None:CODE
LOWframework/py/flwr/clientapp/mod/comms_mods_test.py55def 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.py69def test_fixedclipping_mod_handles_scalar_ndarray() -> None:CODE
LOWframework/py/flwr/clientapp/mod/dp_mods_test.py85def test_adaptiveclipping_mod_handles_scalar_ndarray() -> None:CODE
LOWframework/py/flwr/clientapp/mod/dp_mods_test.py104def 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
LOWframework/py/flwr/compat/common/recorddict_compat.py314def recorddict_to_getparametersins(recorddict: RecordDict) -> GetParametersIns:CODE
LOWframework/py/flwr/compat/common/recorddict_compat.py323def getparametersins_to_recorddict(getparameters_ins: GetParametersIns) -> RecordDict:CODE
LOWframework/py/flwr/compat/common/recorddict_compat.py333def getparametersres_to_recorddict(CODE
LOWframework/py/flwr/compat/common/recorddict_compat.py365def recorddict_to_getpropertiesins(recorddict: RecordDict) -> GetPropertiesIns:CODE
LOWframework/py/flwr/compat/common/recorddict_compat.py374def getpropertiesins_to_recorddict(getpropertiesins: GetPropertiesIns) -> RecordDict:CODE
LOWframework/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
LOWframework/py/flwr/compat/client/app_test.py81def test_to_client_with_client() -> None:CODE
LOWframework/py/flwr/compat/client/app_test.py89def test_to_client_with_numpyclient() -> None:CODE
LOWframework/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
1841 more matches not shown…
Over-Commented Block1172 hits · 1054 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
1112 more matches not shown…
Unused Imports509 hits · 484 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
LOW…ork/py/flwr/supercore/runtime_version_compatibility.py18CODE
LOWframework/py/flwr/supercore/constant.py18CODE
LOWframework/py/flwr/supercore/routers/health/__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
LOW…flwr/supercore/interceptors/appio_token_interceptor.py18CODE
LOWframework/py/flwr/supercore/interceptors/__init__.py18CODE
LOWframework/py/flwr/supercore/interceptors/__init__.py18CODE
LOWframework/py/flwr/supercore/interceptors/__init__.py18CODE
LOWframework/py/flwr/supercore/interceptors/__init__.py18CODE
LOWframework/py/flwr/supercore/interceptors/__init__.py18CODE
LOWframework/py/flwr/supercore/interceptors/__init__.py18CODE
LOWframework/py/flwr/supercore/interceptors/__init__.py18CODE
LOWframework/py/flwr/supercore/interceptors/__init__.py27CODE
LOWframework/py/flwr/supercore/interceptors/__init__.py28CODE
LOWframework/py/flwr/supercore/interceptors/__init__.py28CODE
LOWframework/py/flwr/supercore/interceptors/__init__.py28CODE
LOWframework/py/flwr/supercore/interceptors/__init__.py28CODE
LOWframework/py/flwr/supercore/interceptors/__init__.py28CODE
LOWframework/py/flwr/supercore/interceptors/__init__.py28CODE
LOWframework/py/flwr/supercore/interceptors/__init__.py36CODE
LOWframework/py/flwr/supercore/interceptors/__init__.py36CODE
LOWframework/py/flwr/supercore/interceptors/__init__.py36CODE
LOWframework/py/flwr/supercore/interceptors/__init__.py36CODE
LOW…/supercore/interceptors/runtime_version_interceptor.py18CODE
LOW…r/supercore/interceptors/superexec_auth_interceptor.py18CODE
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/__init__.py18CODE
LOWframework/py/flwr/supercore/task_process/__init__.py19CODE
LOWframework/py/flwr/supercore/task_process/__init__.py20CODE
LOWframework/py/flwr/supercore/task_process/usage.py17CODE
LOW…/py/flwr/supercore/task_process/agent/context_items.py18CODE
LOW…mework/py/flwr/supercore/task_process/agent/session.py18CODE
449 more matches not shown…
Self-Referential Comments87 hits · 257 pts
SeverityFileLineSnippetContext
MEDIUMframework/py/flwr/compat/client/app.py446 # Create an error reply message that will never be used to preventCOMMENT
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.py183 # Create the channel to the AppIO APICOMMENT
MEDIUMframework/py/flwr/supercore/superexec/run_superexec.py202 # Create the gRPC stub for the AppIO APICOMMENT
MEDIUMframework/py/flwr/supercore/superexec/run_superexec.py211 # Create the SuperExec plugin instanceCOMMENT
MEDIUM…work/py/flwr/supercore/superexec/plugin/exec_plugin.py102 # This method is optional to implementCOMMENT
MEDIUMframework/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.py286 # Create a list of weights and ignore the number of examplesCOMMENT
MEDIUMframework/py/flwr/cli/utils_test.py381 # Create a real directory with a file outside the rootCOMMENT
MEDIUMframework/py/flwr/cli/utils.py351 # Create the gRPC channelCOMMENT
MEDIUMframework/py/flwr/cli/config_migration_test.py93 # Create a temporary app directory with pyproject.tomlCOMMENT
MEDIUMframework/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.py287 # Create a temporary directory using a context managerSTRING
MEDIUMframework/py/flwr/common/config_test.py289 # Create a temporary TOML file within that directorySTRING
MEDIUM…vicer/serverappio/serverappio_auth_integration_test.py101 # Create a single base channel and wrap it for authenticated calls.COMMENT
MEDIUM…wr/superlink/servicer/control/control_servicer_test.py1621 # Create a node owned by someone elseCOMMENT
MEDIUM…wr/superlink/servicer/control/control_servicer_test.py1077 # Create an unfinished run in the federation and give it a live token,COMMENT
MEDIUMframework/py/flwr/supernode/start_client_internal.py520 # Define the iterator for yielding object contentsCOMMENT
MEDIUMframework/docker/complete/certs.yml71 # Create a signing CSRCOMMENT
MEDIUMframework/dev/update_changelog.py346 # Create the topic if not foundCOMMENT
MEDIUMframework/e2e/test_control_api.sh114# Define a cleanup functionCOMMENT
MEDIUMframework/e2e/test_superlink.sh108# Define a cleanup functionCOMMENT
MEDIUMframework/e2e/test_reconnection.sh21# Define the functionCOMMENT
MEDIUMframework/e2e/test_reconnection.sh107# Define a cleanup functionCOMMENT
MEDIUMframework/e2e/test_windows.sh39# 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.py118 # 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
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
MEDIUMdatasets/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
27 more matches not shown…
Redundant / Tautological Comments103 hits · 158 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/utils.py390 # Check if the name exceeds the maximum lengthCOMMENT
LOWframework/py/flwr/supercore/utils.py394 # Check if the first character is a letterCOMMENT
LOWframework/py/flwr/supercore/utils.py398 # Check if the rest of the characters are valid (letter, digit, or dash)COMMENT
LOW…ework/py/flwr/supercore/inflatable/inflatable_utils.py415 # Check if there is a head-body dividerCOMMENT
LOW…ework/py/flwr/supercore/inflatable/inflatable_utils.py448 # Check if the body length in the head matches that of the bodyCOMMENT
LOW…ework/py/flwr/supercore/inflatable/inflatable_utils.py524 # 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.py79 # 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.py39 # Check if all exit codesCOMMENT
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.py139 # 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.py261 # Check if the created message contains the orignal *InsCOMMENT
LOW…mework/py/flwr/server/compat/grid_client_proxy_test.py272 # Check if send_and_receive is called once with expected args/kwargs.COMMENT
LOW…flwr/server/superlink/linkstate/in_memory_linkstate.py211 # Check if the message has expiredCOMMENT
LOW…flwr/server/superlink/linkstate/in_memory_linkstate.py217 # Check if the destination node and the source node are still in theCOMMENT
LOW…flwr/server/superlink/linkstate/in_memory_linkstate.py272 # Check if the Message it is replying to exists and is validCOMMENT
LOW…flwr/server/superlink/linkstate/in_memory_linkstate.py429 # Check if the run existsCOMMENT
LOW…flwr/server/superlink/linkstate/in_memory_linkstate.py512 # Set online_until to current timestamp on deletion, if it is in the futureCOMMENT
LOW…flwr/server/superlink/linkstate/in_memory_linkstate.py520 # Check if the node existsCOMMENT
LOW…flwr/server/superlink/linkstate/in_memory_linkstate.py541 # Check if the node existsCOMMENT
LOW…flwr/server/superlink/linkstate/in_memory_linkstate.py551 # Set online_until to current timestampCOMMENT
LOW…rk/py/flwr/server/superlink/linkstate/sql_linkstate.py287 # Check if the message has expiredSTRING
LOW…rk/py/flwr/server/superlink/linkstate/sql_linkstate.py293 # Check if run exists and get federation IDSTRING
LOW…rk/py/flwr/server/superlink/linkstate/sql_linkstate.py649 # Check if the run existsCOMMENT
LOW…rk/py/flwr/server/superlink/linkstate/sql_linkstate.py1268 # Check if any of the expired tasks is referenced as a run's primary task.COMMENT
LOW…rk/py/flwr/server/superlink/linkstate/sql_linkstate.py1364 # Check if run exists, performing the update only if it doesCOMMENT
LOW…rk/py/flwr/server/superlink/linkstate/sql_linkstate.py1388 # Check if run exists, performing the update only if it doesCOMMENT
LOWframework/py/flwr/server/superlink/linkstate/utils.py240 # 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.py59 # 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
LOWframework/py/flwr/cli/flower_config.py350 # 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.py273 # Open file and register with ExitStackCOMMENT
LOWframework/py/flwr/cli/login/login.py64 # Check if insecure flag is set to `True`COMMENT
LOWframework/py/flwr/common/logger.py83 # Check if the message is emptyCOMMENT
LOWframework/py/flwr/common/args.py177 # Check if certificates are providedCOMMENT
LOW…k/servicer/control/control_account_auth_interceptor.py121 # Check if the account is authorizedCOMMENT
43 more matches not shown…
Deep Nesting131 hits · 130 pts
SeverityFileLineSnippetContext
LOWframework/py/flwr/compat/client/run_info_store.py53CODE
LOWframework/py/flwr/compat/client/app.py204CODE
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/utils.py49CODE
LOW…ork/py/flwr/supercore/corestate/in_memory_corestate.py787CODE
LOWframework/py/flwr/supercore/corestate/sql_corestate.py253CODE
LOW…ork/py/flwr/supercore/object_store/sql_object_store.py59CODE
LOW…/flwr/supercore/object_store/in_memory_object_store.py53CODE
LOW…k/py/flwr/supercore/task_process/agent/run_agentapp.py67CODE
LOW…core/task_process/connector/browser_use/browser_use.py142CODE
LOWframework/py/flwr/supercore/retry/retry_invoker.py199CODE
LOWframework/py/flwr/supercore/cli/flower_superexec.py55CODE
LOWframework/py/flwr/supercore/superexec/run_superexec.py106CODE
LOW…rk/py/flwr/supercore/superexec/dependency_installer.py275CODE
LOWframework/py/flwr/serverapp/strategy/strategy_utils.py66CODE
LOWframework/py/flwr/serverapp/strategy/strategy_utils.py101CODE
LOWframework/py/flwr/simulation/ray_transport/ray_actor.py355CODE
LOW…mework/py/flwr/server/compat/grid_client_proxy_test.py227CODE
LOW…mework/py/flwr/server/compat/grid_client_proxy_test.py235CODE
LOW…flwr/server/superlink/linkstate/in_memory_linkstate.py342CODE
LOW…flwr/server/superlink/linkstate/in_memory_linkstate.py595CODE
LOW…flwr/server/superlink/linkstate/in_memory_linkstate.py798CODE
LOW…flwr/server/superlink/linkstate/in_memory_linkstate.py819CODE
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.py203CODE
LOW…ver/workflow/secure_aggregation/secaggplus_workflow.py542CODE
LOWframework/py/flwr/cli/utils_test.py98CODE
LOWframework/py/flwr/cli/log.py125CODE
LOWframework/py/flwr/cli/ls.py47CODE
LOWframework/py/flwr/cli/ls.py167CODE
LOWframework/py/flwr/cli/config_migration.py111CODE
LOWframework/py/flwr/cli/config_migration.py146CODE
LOWframework/py/flwr/cli/utils.py226CODE
LOWframework/py/flwr/cli/config/ls.py29CODE
LOWframework/py/flwr/cli/federation/ls.py51CODE
LOWframework/py/flwr/cli/federation/ls.py314CODE
LOWframework/py/flwr/cli/supernode/ls.py144CODE
LOWframework/py/flwr/common/serde_test.py186CODE
LOWframework/py/flwr/common/serde.py480CODE
LOWframework/py/flwr/common/serde.py496CODE
LOWframework/py/flwr/common/logger.py382CODE
LOW…ork/py/flwr/common/secure_aggregation/crypto/shamir.py25CODE
LOWframework/py/flwr/superlink/runtime/run_serverapp.py60CODE
LOW…superlink/servicer/serverappio/serverappio_servicer.py157CODE
LOWframework/py/flwr/supernode/start_client_internal.py323CODE
LOW…ork/py/flwr/supernode/nodestate/in_memory_nodestate.py118CODE
LOW…ork/py/flwr/supernode/nodestate/in_memory_nodestate.py190CODE
LOW…work/py/flwr/client/message_handler/message_handler.py94CODE
LOWframework/py/flwr/client/grpc_rere_client/connection.py77CODE
LOW…y/flwr/client/mod/secure_aggregation/secaggplus_mod.py131CODE
LOW…y/flwr/client/mod/secure_aggregation/secaggplus_mod.py221CODE
LOW…y/flwr/client/mod/secure_aggregation/secaggplus_mod.py113CODE
LOWframework/dev/update_version.py57CODE
71 more matches not shown…
Modern Structural Boilerplate129 hits · 130 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/sql_mixin.py46def _set_sqlite_pragmas(dbapi_conn: Any, _connection_record: Any) -> None:CODE
LOWframework/py/flwr/supercore/routers/health/__init__.py20__all__ = ["router"]CODE
LOWframework/py/flwr/supercore/interceptors/__init__.py43__all__ = [CODE
LOWframework/py/flwr/supercore/license_plugin/__init__.py20__all__ = [CODE
LOWframework/py/flwr/supercore/corestate/corestate.py121 def set_run_series_context(self, series_id: int, context: Context) -> None:CODE
LOW…ork/py/flwr/supercore/corestate/in_memory_corestate.py209 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.py238 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__.py22__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…upercore/task_process/connector/web_search/__init__.py102__all__ = [CODE
LOW…percore/task_process/connector/browser_use/__init__.py71__all__ = [CODE
LOWframework/py/flwr/supercore/retry/__init__.py21__all__ = [CODE
LOWframework/py/flwr/supercore/auth/__init__.py31__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/cli/__init__.py23__all__ = [CODE
LOW…amework/py/flwr/supercore/superexec/plugin/__init__.py23__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/servicer/appio/__init__.py20__all__ = [CODE
LOWframework/py/flwr/app/__init__.py41__all__ = [CODE
LOWframework/py/flwr/app/message/__init__.py32__all__ = [CODE
LOWframework/py/flwr/serverapp/__init__.py22__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.py29 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
LOW…amework/py/flwr/server/superlink/linkstate/__init__.py23__all__ = [CODE
LOW…amework/py/flwr/server/superlink/fleet/vce/__init__.py20__all__ = [CODE
LOW…py/flwr/server/superlink/fleet/vce/backend/__init__.py20__all__ = [CODE
LOW…y/flwr/server/superlink/fleet/grpc_bidi/grpc_bridge.py180 def set_res_wrapper(self, res_wrapper: ResWrapper) -> None:CODE
LOWframework/py/flwr/server/workflow/__init__.py21__all__ = [CODE
LOW…py/flwr/server/workflow/secure_aggregation/__init__.py21__all__ = [CODE
LOWframework/py/flwr/server/strategy/dpfedavg_adaptive.py95 def _update_clip_norm(self, results: list[tuple[ClientProxy, FitRes]]) -> None:CODE
LOWframework/py/flwr/server/strategy/__init__.py51__all__ = [CODE
LOW…mework/py/flwr/server/strategy/dp_adaptive_clipping.py429 def _update_clip_norm(self, results: list[tuple[ClientProxy, FitRes]]) -> None:CODE
LOWframework/py/flwr/cli/flower_config.py343def set_default_superlink_connection(connection_name: str) -> None:CODE
LOWframework/py/flwr/cli/auth_plugin/__init__.py34__all__ = [CODE
LOWframework/py/flwr/cli/config/__init__.py19__all__ = [CODE
LOWframework/py/flwr/cli/federation/__init__.py27__all__ = [CODE
69 more matches not shown…
Excessive Try-Catch Wrapping94 hits · 116 pts
SeverityFileLineSnippetContext
LOWframework/py/flwr/clientapp/utils.py84 except Exception as e:CODE
LOWframework/py/flwr/compat/client/app.py462 except Exception as ex: # pylint: disable=broad-exception-caughtCODE
LOWframework/py/flwr/supercore/grpc.py75 except Exception as e: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
LOWframework/py/flwr/supercore/utils.py516 except Exception as e: # pylint: disable=broad-exception-caughtCODE
LOW…ework/py/flwr/supercore/inflatable/inflatable_utils.py206 except Exception as err: # pylint: disable=broad-exceptCODE
LOW…ework/py/flwr/supercore/inflatable/inflatable_utils.py318 except Exception as err: # pylint: disable=broad-exceptCODE
LOW…k/py/flwr/supercore/task_process/agent/run_agentapp.py236 except Exception as ex: # pylint: disable=broad-exception-caughtCODE
LOWframework/py/flwr/supercore/task_process/model/task.py86 except Exception as ex:CODE
LOW…work/py/flwr/supercore/task_process/model/run_model.py121 except Exception as ex: # pylint: disable=broad-exception-caughtCODE
LOW…ework/py/flwr/supercore/task_process/connector/task.py73 except Exception as ex:CODE
LOW…flwr/supercore/task_process/connector/run_connector.py112 except Exception as ex: # pylint: disable=broad-exception-caughtCODE
LOW…core/task_process/connector/browser_use/browser_use.py101 except Exception as exc:CODE
LOW…/flwr/supercore/superexec/dependency_installer_test.py202 except Exception as exc: # pylint: disable=broad-exception-caughtCODE
LOW…wr/supercore/superexec/executor/kubernetes_executor.py396 except Exception as exc: # pylint: disable=broad-exception-caughtCODE
LOW…wr/supercore/superexec/executor/kubernetes_executor.py405 except Exception as exc: # pylint: disable=broad-exception-caughtCODE
LOW…wr/supercore/superexec/executor/kubernetes_executor.py119 except Exception as exc: # pylint: disable=broad-exception-caughtCODE
LOW…wr/supercore/superexec/executor/kubernetes_executor.py237 except Exception: # pylint: disable=broad-exception-caughtCODE
LOW…wr/supercore/superexec/executor/kubernetes_executor.py288 except Exception: # pylint: disable=broad-exception-caughtCODE
LOW…wr/supercore/superexec/executor/kubernetes_executor.py309 except Exception as exc: # pylint: disable=broad-exception-caughtCODE
LOW…wr/supercore/superexec/executor/kubernetes_executor.py314 except Exception as exc: # pylint: disable=broad-exception-caughtCODE
LOW…wr/supercore/superexec/executor/kubernetes_executor.py848 except Exception: # pylint: disable=broad-exception-caughtCODE
LOWframework/py/flwr/supercore/exit/exit_handler.py63 except Exception: # pylint: disable=broad-exception-caughtCODE
LOWframework/py/flwr/supercore/exit/exit.py113 except Exception: # pylint: disable=broad-exception-caughtCODE
LOWframework/py/flwr/supercore/error/grpc.py55 except Exception as err:CODE
LOWframework/py/flwr/supercore/error/http.py59 except Exception as err: # pylint: disable=broad-exception-caughtCODE
LOWframework/py/flwr/simulation/legacy_app.py339 except Exception as ex:CODE
LOWframework/py/flwr/simulation/run_simulation.py225 except Exception as ex: # pylint: disable=broad-exception-caughtCODE
LOWframework/py/flwr/simulation/run_simulation.py342 except Exception as ex:CODE
LOWframework/py/flwr/simulation/app.py361 except Exception as ex: # pylint: disable=broad-exception-caughtCODE
LOW…k/py/flwr/simulation/ray_transport/ray_client_proxy.py98 except Exception as ex:CODE
LOWframework/py/flwr/simulation/ray_transport/ray_actor.py64 except Exception as ex:CODE
LOW…k/py/flwr/server/superlink/linkstate/linkstate_test.py2181 except Exception as ex: # pylint: disable=broad-exception-caughtCODE
LOW…k/py/flwr/server/superlink/linkstate/linkstate_test.py2360 except Exception as ex: # pylint: disable=broad-exception-caughtCODE
LOWframework/py/flwr/server/superlink/fleet/vce/vce_api.py142 except Exception as ex: # pylint: disable=broad-exception-caughtCODE
LOWframework/py/flwr/server/superlink/fleet/vce/vce_api.py260 except Exception as ex:CODE
LOWframework/py/flwr/server/superlink/fleet/vce/vce_api.py404 except Exception as ex:CODE
LOW…/flwr/server/superlink/fleet/vce/backend/raybackend.py142 except Exception as ex:CODE
LOW…/flwr/server/superlink/fleet/vce/backend/raybackend.py186 except Exception as ex:CODE
LOW…r/server/superlink/fleet/grpc_bidi/grpc_bridge_test.py74 except Exception as exception:CODE
LOWframework/py/flwr/cli/build.py391 except Exception as err: # pylint: disable=broad-exceptCODE
LOWframework/py/flwr/cli/log.py200 except Exception as err: # pylint: disable=broad-exceptCODE
LOWframework/py/flwr/cli/config_migration.py255 except Exception as e:CODE
LOWframework/py/flwr/cli/utils.py119 except Exception as err: # pylint: disable=broad-exceptCODE
LOWframework/py/flwr/cli/flower_config.py305 except Exception as err:CODE
LOWframework/py/flwr/cli/install.py276 except Exception as e:CODE
LOWframework/py/flwr/cli/config_utils.py213 except Exception as e:CODE
LOWframework/py/flwr/common/logger.py142 except Exception: # pylint: disable=broad-exception-caughtCODE
LOWframework/py/flwr/superlink/runtime/run_serverapp.py229 except Exception as ex: # pylint: disable=broad-exception-caughtCODE
LOWframework/py/flwr/superlink/cli/flower_superlink.py673 except Exception as err: # pylint: disable=broad-exceptCODE
LOW…link/servicer/serverappio/serverappio_servicer_test.py121 except Exception as err:CODE
LOW…link/servicer/serverappio/serverappio_servicer_test.py143 except Exception as err:CODE
LOW…link/servicer/serverappio/serverappio_servicer_test.py279 except Exception as ex: # pylint: disable=broad-exception-caughtCODE
LOWframework/py/flwr/supernode/start_client_internal.py452 except Exception as err: # pylint: disable=broad-exceptCODE
LOWframework/py/flwr/supernode/start_client_internal.py564 except Exception as err: # pylint: disable=broad-exceptCODE
LOWframework/py/flwr/supernode/runtime/run_clientapp.py197 except Exception as ex: # pylint: disable=broad-exception-caughtCODE
LOWframework/py/flwr/supernode/runtime/run_clientapp.py226 except Exception as ex: # pylint: disable=broad-exception-caughtCODE
LOWframework/py/flwr/client/grpc_rere_client/connection.py383 except Exception as exc: # pylint: disable=broad-exceptCODE
LOW…r/client/mod/secure_aggregation/secaggplus_mod_test.py163 except Exception as exc:CODE
34 more matches not shown…
AI Structural Patterns73 hits · 72 pts
SeverityFileLineSnippetContext
LOWframework/py/flwr/compat/client/app.py71CODE
LOWframework/py/flwr/compat/client/app.py204CODE
LOWframework/py/flwr/supercore/corestate/utils_test.py28CODE
LOW…mework/py/flwr/supercore/json_message/model_message.py30CODE
LOWframework/py/flwr/supercore/superexec/run_superexec.py106CODE
LOWframework/py/flwr/app/message/message.py521CODE
LOWframework/py/flwr/app/message/message.py131CODE
LOWframework/py/flwr/serverapp/strategy/fedavgm.py78CODE
LOWframework/py/flwr/serverapp/strategy/bulyan.py88CODE
LOWframework/py/flwr/serverapp/strategy/fedtrimmedavg.py77CODE
LOWframework/py/flwr/serverapp/strategy/fedprox.py119CODE
LOWframework/py/flwr/serverapp/strategy/multikrum.py87CODE
LOWframework/py/flwr/serverapp/strategy/fedadam.py85CODE
LOWframework/py/flwr/serverapp/strategy/fedyogi.py85CODE
LOWframework/py/flwr/serverapp/strategy/fedopt.py85CODE
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.py375CODE
LOWframework/py/flwr/server/utils/validator_test.py31CODE
LOW…k/py/flwr/server/superlink/linkstate/linkstate_test.py2135CODE
LOW…rk/py/flwr/server/superlink/linkstate/sql_linkstate.py341CODE
LOW…ork/py/flwr/server/superlink/fleet/vce/vce_api_test.py197CODE
LOWframework/py/flwr/server/strategy/fedavgm.py77CODE
LOWframework/py/flwr/server/strategy/bulyan.py79CODE
LOWframework/py/flwr/server/strategy/fedtrimmedavg.py71CODE
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.py211CODE
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.py383CODE
LOWframework/py/flwr/supernode/start_client_internal.py96CODE
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
LOWbaselines/moon/moon/models.py138CODE
LOWbaselines/fednova/fednova/models.py222CODE
LOW…s/flwr_baselines/publications/leaf/femnist/strategy.py29CODE
13 more matches not shown…
Cross-Language Confusion6 hits · 38 pts
SeverityFileLineSnippetContext
HIGHframework/py/flwr/supercore/utils_test.py113 assert strict_json_loads('{"key":[1,true,null]}') == {"key": [1, True, None]}CODE
HIGHframework/py/flwr/supercore/utils_test.py125 '{"key":[1,true,null]}'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
Verbosity Indicators15 hits · 33 pts
SeverityFileLineSnippetContext
LOWintelligence/dev/build-kt-docs.sh12 # Step 1: Replace leading //[flwr](...)/[ai.flower.intelligence](...) with [Kotlin API](../index.md)COMMENT
LOWintelligence/dev/build-kt-docs.sh15 # Step 2: Remove [androidJvm]<br>COMMENT
LOWintelligence/dev/build-kt-docs.sh18 # Step 3: Remove entire lines that are [androidJvm]\COMMENT
LOWintelligence/dev/build-kt-docs.sh21 # Step 4: Remove all remaining instances of the word "androidJvm"COMMENT
LOWintelligence/dev/build-kt-docs.sh24 # Step 5: Remove empty leftover brackets like []\COMMENT
LOWintelligence/dev/build-kt-docs.sh32 # Step 1: Replace headingCOMMENT
LOWintelligence/dev/build-kt-docs.sh35 # Step 2: Convert markdown table to bullet list (inside '## Types' section)COMMENT
LOWintelligence/dev/build-docs.sh30 # Step 1: Replace leading //[flwr](...)/[ai.flower.intelligence](...) with [Kotlin API](../index.md)COMMENT
LOWintelligence/dev/build-docs.sh33 # Step 2: Remove [androidJvm]<br>COMMENT
LOWintelligence/dev/build-docs.sh36 # Step 3: Remove entire lines that are [androidJvm]\COMMENT
LOWintelligence/dev/build-docs.sh39 # Step 4: Remove all remaining instances of the word "androidJvm"COMMENT
LOWintelligence/dev/build-docs.sh42 # Step 5: Remove empty leftover brackets like []\COMMENT
LOWintelligence/dev/build-docs.sh50 # Step 1: Replace headingCOMMENT
LOWintelligence/dev/build-docs.sh53 # Step 2: Convert markdown table to bullet list (inside '## Types' section)COMMENT
LOWbaselines/heterofl/heterofl/models.py838 # Step 3: Obtain the state_dict of the modelCOMMENT
Structural Annotation Overuse15 hits · 33 pts
SeverityFileLineSnippetContext
LOWintelligence/dev/build-kt-docs.sh12 # Step 1: Replace leading //[flwr](...)/[ai.flower.intelligence](...) with [Kotlin API](../index.md)COMMENT
LOWintelligence/dev/build-kt-docs.sh15 # Step 2: Remove [androidJvm]<br>COMMENT
LOWintelligence/dev/build-kt-docs.sh18 # Step 3: Remove entire lines that are [androidJvm]\COMMENT
LOWintelligence/dev/build-kt-docs.sh21 # Step 4: Remove all remaining instances of the word "androidJvm"COMMENT
LOWintelligence/dev/build-kt-docs.sh24 # Step 5: Remove empty leftover brackets like []\COMMENT
LOWintelligence/dev/build-kt-docs.sh32 # Step 1: Replace headingCOMMENT
LOWintelligence/dev/build-kt-docs.sh35 # Step 2: Convert markdown table to bullet list (inside '## Types' section)COMMENT
LOWintelligence/dev/build-docs.sh30 # Step 1: Replace leading //[flwr](...)/[ai.flower.intelligence](...) with [Kotlin API](../index.md)COMMENT
LOWintelligence/dev/build-docs.sh33 # Step 2: Remove [androidJvm]<br>COMMENT
LOWintelligence/dev/build-docs.sh36 # Step 3: Remove entire lines that are [androidJvm]\COMMENT
LOWintelligence/dev/build-docs.sh39 # Step 4: Remove all remaining instances of the word "androidJvm"COMMENT
LOWintelligence/dev/build-docs.sh42 # Step 5: Remove empty leftover brackets like []\COMMENT
LOWintelligence/dev/build-docs.sh50 # Step 1: Replace headingCOMMENT
LOWintelligence/dev/build-docs.sh53 # Step 2: Convert markdown table to bullet list (inside '## Types' section)COMMENT
LOWbaselines/heterofl/heterofl/models.py838 # Step 3: Obtain the state_dict of the modelCOMMENT
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
Fake / Example Data11 hits · 12 pts
SeverityFileLineSnippetContext
LOW…k/py/flwr/server/superlink/linkstate/linkstate_test.py1077 node_id = state.create_node("fake_aid", "fake_name", public_key, 10)CODE
LOW…k/py/flwr/server/superlink/linkstate/linkstate_test.py1091 node_id = state.create_node("fake_aid", "fake_name", public_key, 10)CODE
LOW…k/py/flwr/server/superlink/linkstate/linkstate_test.py1095 state.create_node("fake_aid2", "fake_name", public_key, 10)CODE
LOW…k/py/flwr/server/superlink/linkstate/linkstate_test.py1283 node_id = state.create_node("fake_aid", "fake_name", public_key, 10)CODE
LOW…k/py/flwr/server/superlink/linkstate/linkstate_test.py1297 node_id = state.create_node("fake_aid", "fake_name", public_key, 10)CODE
LOW…link/servicer/serverappio/serverappio_servicer_test.py321 "mock_owner", "fake_name", self.node_pk, 30CODE
LOW…vicer/serverappio/serverappio_auth_integration_test.py83 node_id = self.state.create_node("mock_owner", "fake_name", b"pk", 30)CODE
LOW…wr/superlink/servicer/control/control_servicer_test.py735 owner_name="fake_name",CODE
LOW…wr/superlink/servicer/control/control_servicer_test.py809 owner_name="fake_name",CODE
LOW…wr/superlink/servicer/control/control_servicer_test.py830 owner_name="fake_name",CODE
LOW…wr/superlink/servicer/control/control_servicer_test.py856 owner_name="fake_name",CODE
AI Slop Vocabulary5 hits · 10 pts
SeverityFileLineSnippetContext
MEDIUMframework/e2e/test_superlink.sh45# 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
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
Dead Code1 hit · 2 pts
SeverityFileLineSnippetContext
MEDIUMframework/py/flwr/common/dummy_grpc_handlers_test.py86CODE
Overly Generic Function Names1 hit · 1 pts
SeverityFileLineSnippetContext
LOWexamples/android/tflite_convertor/tfltransfer/utils.py29 def helper(self):CODE