Repository Analysis

fossasia/visdom

Tool for real-time visualization, monitoring and collaborative analysis of AI/ML experiments and live data. Supports Python, PyTorch/Torch, NumPy, TensorFlow/Keras https://visdom.dev

21.6 Moderate AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of fossasia/visdom, a Python project with 10,283 GitHub stars. SynthScan v2.0 examined 84,509 lines of code across 283 source files, recording 1622 pattern matches distributed across 10 syntactic categories. The overall adjusted score of 21.6 places this repository in the Moderate AI signal band.

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

21.6
Adjusted Score
21.6
Raw Score
100%
Time Factor
2026-08-28
Last Push
10.3K
Stars
Python
Language
84.5K
Lines of Code
283
Files
1.6K
Pattern Hits
2026-08-29
Scan Date
0.01
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 0HIGH 3MEDIUM 43LOW 1576

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 1622 distinct pattern matches across 10 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a statistically significant AI authorship indicator. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.

Reading the findings table: The Severity column indicates the diagnostic confidence level (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — comment-context matches receive a ×1.5 weight because LLMs systematically over-annotate. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier as dense clusters constitute far stronger evidence of synthetic authorship than isolated hits.

Hyper-Verbose Identifiers1405 hits · 1538 pts
SeverityFileLineSnippetContext
LOWpy/tests/test_hparams.py61 def test_posts_to_hparams_endpoint(self):CODE
LOWpy/tests/test_hparams.py71 def test_env_ids_and_mode_pass_through(self):CODE
LOWpy/tests/test_hparams.py79 def test_win_and_env_pass_through(self):CODE
LOWpy/tests/test_hparams.py87 def test_opts_are_validated_client_side(self):CODE
LOWpy/tests/test_hparams.py96 def test_posts_to_update_endpoint(self):CODE
LOWpy/tests/test_hparams.py105 def test_bare_refresh_sends_only_the_window(self):CODE
LOWpy/tests/test_hparams.py115 def test_env_passes_through_as_eid(self):CODE
LOWpy/tests/test_hparams.py128 def test_opts_are_validated_client_side(self):CODE
LOWpy/tests/test_experiment_search.py80 def test_no_query_returns_all(self):CODE
LOWpy/tests/test_experiment_search.py86 def test_blank_query_returns_all(self):CODE
LOWpy/tests/test_experiment_search.py91 def test_search_ignores_envs_without_experiments(self):CODE
LOWpy/tests/test_experiment_search.py100 def test_filters_by_latest_metric(self):CODE
LOWpy/tests/test_experiment_search.py107 def test_filters_by_namespaced_name(self):CODE
LOWpy/tests/test_experiment_search.py114 def test_filters_by_builtin_field(self):CODE
LOWpy/tests/test_experiment_search.py121 def test_filters_with_boolean_operators(self):CODE
LOWpy/tests/test_experiment_search.py131 def test_no_matches_returns_empty(self):CODE
LOWpy/tests/test_experiment_search.py135 def test_unknown_field_matches_nothing(self):CODE
LOWpy/tests/test_experiment_search.py139 def test_invalid_query_raises_parse_error(self):CODE
LOWpy/tests/test_experiment_search.py144 def test_non_string_query_raises_type_error(self):CODE
LOWpy/tests/test_experiment_search.py149 def test_sorts_newest_first_by_default(self):CODE
LOWpy/tests/test_experiment_search.py178 def test_sort_by_none_keeps_backend_order(self):CODE
LOWpy/tests/test_experiment_search.py183 def test_sort_by_mixed_types_does_not_raise(self):CODE
LOWpy/tests/test_experiment_search.py192 def test_filter_and_sort_combine(self):CODE
LOWpy/tests/test_experiment_search.py199 def test_search_reads_what_another_store_wrote(self):CODE
LOWpy/tests/test_experiment_search.py237 def test_empty_body_returns_everything(self):CODE
LOWpy/tests/test_experiment_search.py247 def test_query_filters_results(self):CODE
LOWpy/tests/test_experiment_search.py254 def test_experiments_are_returned_in_full(self):CODE
LOWpy/tests/test_experiment_search.py263 def test_limit_pages_results_and_total_ignores_it(self):CODE
LOWpy/tests/test_experiment_search.py270 def test_offset_walks_the_pages(self):CODE
LOWpy/tests/test_experiment_search.py276 def test_offset_past_the_end_is_empty(self):CODE
LOWpy/tests/test_experiment_search.py282 def test_limit_zero_returns_count_only(self):CODE
LOWpy/tests/test_experiment_search.py288 def test_null_limit_asks_for_as_many_as_allowed(self):CODE
LOWpy/tests/test_experiment_search.py294 def test_limit_above_the_cap_is_coerced_down(self):CODE
LOWpy/tests/test_experiment_search.py300 def test_reply_reports_the_limit_it_applied(self):CODE
LOWpy/tests/test_experiment_search.py341 def test_capped_limit_counts_against_the_window(self):CODE
LOWpy/tests/test_experiment_search.py348 def test_total_is_never_capped(self):CODE
LOWpy/tests/test_experiment_search.py354 def test_default_limit_is_applied(self):CODE
LOWpy/tests/test_experiment_search.py359 def test_integral_float_limit_is_accepted(self):CODE
LOWpy/tests/test_experiment_search.py364 def test_sort_by_and_direction(self):CODE
LOWpy/tests/test_experiment_search.py165 def test_sort_by_metric_puts_missing_last_in_both_directions(self):CODE
LOWpy/tests/test_experiment_search.py318 def test_offset_is_never_coerced(self):CODE
LOWpy/tests/test_experiment_search.py325 def test_the_whole_window_is_reachable(self):CODE
LOWpy/tests/test_experiment_search.py397 def test_missing_body_returns_everything(self):CODE
LOWpy/tests/test_experiment_search.py418 def test_sql_injection_payload_is_inert(self):CODE
LOWpy/tests/test_experiment_search.py427 def test_reply_is_typed_as_json(self):CODE
LOWpy/tests/test_experiment_search.py442 def test_echoed_query_cannot_open_a_tag(self):CODE
LOWpy/tests/test_experiment_search.py457 def test_search_sees_an_experiment_logged_over_http(self):CODE
LOWpy/tests/test_experiment_search.py488 def test_search_message_shape(self):CODE
LOWpy/tests/test_experiment_search.py505 def test_search_rejects_non_string_query(self):CODE
LOWpy/tests/test_experiment_compare.py167 def test_single_experiment_shares_everything(self):CODE
LOWpy/tests/test_experiment_compare.py173 def test_no_experiments_yields_empty_sections(self):CODE
LOWpy/tests/test_experiment_compare.py181 def test_groups_cluster_the_runs_that_agree(self):CODE
LOWpy/tests/test_experiment_compare.py326 def test_duplicate_env_ids_collapse(self):CODE
LOWpy/tests/test_experiment_compare.py331 def test_unknown_env_id_raises_key_error(self):CODE
LOWpy/tests/test_experiment_compare.py337 def test_env_without_experiment_raises_key_error(self):CODE
LOWpy/tests/test_experiment_compare.py343 def test_empty_env_ids_raises_value_error(self):CODE
LOWpy/tests/test_experiment_compare.py348 def test_string_env_ids_raises_type_error(self):CODE
LOWpy/tests/test_experiment_compare.py353 def test_non_string_env_id_raises_type_error(self):CODE
LOWpy/tests/test_experiment_compare.py357 def test_experiment_answers_to_the_env_it_is_stored_under(self):CODE
LOWpy/tests/test_experiment_compare.py505 def test_too_many_env_ids_is_refused_before_loading(self):CODE
1345 more matches not shown…
Decorative Section Separators36 hits · 98 pts
SeverityFileLineSnippetContext
MEDIUMexample/manual/visual_check.py219 # ===========================================================COMMENT
MEDIUMexample/manual/visual_check.py221 # ===========================================================COMMENT
MEDIUMexample/manual/visual_check.py229 # ===========================================================COMMENT
MEDIUMexample/manual/visual_check.py231 # ===========================================================COMMENT
MEDIUMexample/manual/visual_check.py242 # ===========================================================COMMENT
MEDIUMexample/manual/visual_check.py244 # ===========================================================COMMENT
MEDIUMexample/manual/visual_check.py260 # ===========================================================COMMENT
MEDIUMexample/manual/visual_check.py262 # ===========================================================COMMENT
MEDIUMexample/manual/visual_check.py271 # ===========================================================COMMENT
MEDIUMexample/manual/visual_check.py273 # ===========================================================COMMENT
MEDIUMexample/manual/visual_check.py43 # ===========================================================COMMENT
MEDIUMexample/manual/visual_check.py45 # ===========================================================COMMENT
MEDIUMexample/manual/visual_check.py59 # ===========================================================COMMENT
MEDIUMexample/manual/visual_check.py61 # ===========================================================COMMENT
MEDIUMexample/manual/visual_check.py75 # ===========================================================COMMENT
MEDIUMexample/manual/visual_check.py77 # ===========================================================COMMENT
MEDIUMexample/manual/visual_check.py93 # ===========================================================COMMENT
MEDIUMexample/manual/visual_check.py95 # ===========================================================COMMENT
MEDIUMexample/manual/visual_check.py113 # ===========================================================COMMENT
MEDIUMexample/manual/visual_check.py115 # ===========================================================COMMENT
MEDIUMexample/manual/visual_check.py126 # ===========================================================COMMENT
MEDIUMexample/manual/visual_check.py128 # ===========================================================COMMENT
MEDIUMexample/manual/visual_check.py139 # ===========================================================COMMENT
MEDIUMexample/manual/visual_check.py141 # ===========================================================COMMENT
MEDIUMexample/manual/visual_check.py154 # ===========================================================COMMENT
MEDIUMexample/manual/visual_check.py156 # ===========================================================COMMENT
MEDIUMexample/manual/visual_check.py170 # ===========================================================COMMENT
MEDIUMexample/manual/visual_check.py172 # ===========================================================COMMENT
MEDIUMexample/manual/visual_check.py183 # ===========================================================COMMENT
MEDIUMexample/manual/visual_check.py185 # ===========================================================COMMENT
MEDIUMexample/manual/visual_check.py202 # ===========================================================COMMENT
MEDIUMexample/manual/visual_check.py204 # ===========================================================COMMENT
MEDIUMexample/manual/visual_check.py291 # ===========================================================COMMENT
MEDIUMexample/manual/visual_check.py293 # ===========================================================COMMENT
MEDIUMexample/manual/visual_check.py309 # ===========================================================COMMENT
MEDIUMexample/manual/visual_check.py311 # ===========================================================COMMENT
Unused Imports86 hits · 80 pts
SeverityFileLineSnippetContext
LOWpy/tests/test_hparams_update.py21CODE
LOWpy/tests/testutils/__init__.py17CODE
LOWpy/tests/testutils/__init__.py17CODE
LOWpy/tests/testutils/__init__.py17CODE
LOWpy/tests/testutils/__init__.py18CODE
LOWpy/tests/testutils/__init__.py19CODE
LOWpy/tests/testutils/__init__.py19CODE
LOWpy/tests/testutils/__init__.py19CODE
LOWpy/tests/testutils/__init__.py19CODE
LOWpy/tests/testutils/__init__.py20CODE
LOWpy/tests/testutils/__init__.py20CODE
LOWpy/tests/testutils/__init__.py20CODE
LOWpy/tests/testutils/__init__.py20CODE
LOWpy/tests/testutils/__init__.py20CODE
LOWpy/tests/testutils/__init__.py20CODE
LOWpy/visdom/__init__.py9CODE
LOWpy/visdom/loggers/__init__.py8CODE
LOWpy/visdom/loggers/__init__.py9CODE
LOWpy/visdom/loggers/__init__.py14CODE
LOWpy/visdom/loggers/__init__.py21CODE
LOWpy/visdom/experiments/models.py23CODE
LOWpy/visdom/experiments/query.py58CODE
LOWpy/visdom/experiments/__init__.py9CODE
LOWpy/visdom/experiments/__init__.py9CODE
LOWpy/visdom/experiments/__init__.py9CODE
LOWpy/visdom/experiments/__init__.py14CODE
LOWpy/visdom/experiments/__init__.py14CODE
LOWpy/visdom/experiments/__init__.py14CODE
LOWpy/visdom/experiments/__init__.py14CODE
LOWpy/visdom/experiments/__init__.py14CODE
LOWpy/visdom/experiments/__init__.py14CODE
LOWpy/visdom/experiments/__init__.py14CODE
LOWpy/visdom/experiments/__init__.py14CODE
LOWpy/visdom/experiments/__init__.py14CODE
LOWpy/visdom/experiments/__init__.py25CODE
LOWpy/visdom/experiments/__init__.py25CODE
LOWpy/visdom/experiments/__init__.py25CODE
LOWpy/visdom/experiments/__init__.py25CODE
LOWpy/visdom/experiments/__init__.py25CODE
LOWpy/visdom/experiments/__init__.py25CODE
LOWpy/visdom/experiments/__init__.py25CODE
LOWpy/visdom/experiments/__init__.py25CODE
LOWpy/visdom/experiments/__init__.py25CODE
LOWpy/visdom/experiments/__init__.py25CODE
LOWpy/visdom/experiments/__init__.py25CODE
LOWpy/visdom/experiments/__init__.py38CODE
LOWpy/visdom/experiments/__init__.py39CODE
LOWpy/visdom/experiments/__init__.py39CODE
LOWpy/visdom/experiments/__init__.py39CODE
LOWpy/visdom/experiments/__init__.py39CODE
LOWpy/visdom/experiments/__init__.py45CODE
LOWpy/visdom/experiments/__init__.py45CODE
LOWpy/visdom/experiments/compare.py22CODE
LOWpy/visdom/server/app.py58CODE
LOWpy/visdom/server/app.py58CODE
LOWpy/visdom/server/handlers/web_handlers.py24CODE
LOWpy/visdom/server/handlers/web_handlers.py26CODE
LOWpy/visdom/server/handlers/socket_handlers.py20CODE
LOWpy/visdom/utils/server_utils.py23CODE
LOWpy/visdom/utils/server_utils.py28CODE
26 more matches not shown…
Excessive Try-Catch Wrapping40 hits · 46 pts
SeverityFileLineSnippetContext
LOWsetup.py24except Exception:CODE
MEDIUMpy/visdom/__init__.py1704 print("Error connecting to Visdom server!")CODE
LOWpy/visdom/__init__.py124except Exception:CODE
LOWpy/visdom/__init__.py880 except Exception:CODE
LOWpy/visdom/__init__.py922 except Exception:CODE
LOWpy/visdom/__init__.py983 except Exception as e:CODE
LOWpy/visdom/__init__.py1012 except Exception as e:CODE
LOWpy/visdom/__init__.py1083 except Exception as e:CODE
LOWpy/visdom/__init__.py1139 except Exception:CODE
LOWpy/visdom/loggers/keras.py136 except Exception as e:CODE
LOWpy/visdom/loggers/keras.py196 except Exception as e:CODE
LOWpy/visdom/loggers/xgboost.py311 except Exception as e:CODE
LOWpy/visdom/loggers/xgboost.py332 except Exception as e:CODE
MEDIUMpy/visdom/loggers/xgboost.py269def after_iteration(self, model, epoch, evals_log):CODE
LOWpy/visdom/loggers/sklearn.py141 except Exception as e:CODE
LOWpy/visdom/loggers/sklearn.py166 except Exception as e:CODE
LOWpy/visdom/loggers/sklearn.py307 except Exception:CODE
LOWpy/visdom/loggers/sklearn.py347 except Exception:CODE
LOWpy/visdom/server/handlers/web_handlers.py857 except Exception:CODE
LOWpy/visdom/server/handlers/base_handlers.py45 except Exception: # Not using secure cookiesCODE
LOWpy/visdom/server/handlers/base_handlers.py112 except Exception: # Not using secure cookiesCODE
LOWpy/visdom/server/handlers/base_handlers.py142 except Exception as e:CODE
LOWpy/visdom/tracking/core.py129 except Exception:CODE
LOWpy/visdom/tracking/core.py135 except Exception:CODE
LOWpy/visdom/tracking/core.py151 except Exception as e:CODE
LOWpy/visdom/tracking/core.py159 except Exception:CODE
LOWpy/visdom/tracking/core.py175 except Exception:CODE
LOWpy/visdom/tracking/core.py206 except Exception:CODE
LOWpy/visdom/tracking/core.py210 except Exception:CODE
LOWpy/visdom/tracking/core.py230 except Exception:CODE
LOWpy/visdom/tracking/core.py243 except Exception:CODE
LOWpy/visdom/tracking/core.py571 except Exception:CODE
LOWpy/visdom/tracking/core.py699 except Exception:CODE
MEDIUMpy/visdom/tracking/core.py172def _safe(key, fn):CODE
LOWpy/visdom/tracking/graphs.py201 except Exception as e:CODE
LOWpy/visdom/tracking/graphs.py244 except Exception as e:CODE
MEDIUMpy/visdom/tracking/graphs.py198def wrapper(*args, **kwargs):CODE
LOWexample/demo.py345 except Exception as e:CODE
MEDIUMexample/components/misc.py17 print("Error message: ", err)CODE
MEDIUMexample/components/misc.py102 print("Error message: ", err)CODE
Deep Nesting30 hits · 28 pts
SeverityFileLineSnippetContext
LOWpy/visdom/__init__.py707CODE
LOWpy/visdom/__init__.py902CODE
LOWpy/visdom/__init__.py990CODE
LOWpy/visdom/__init__.py1019CODE
LOWpy/visdom/__init__.py1116CODE
LOWpy/visdom/__init__.py2143CODE
LOWpy/visdom/__init__.py2271CODE
LOWpy/visdom/__init__.py2772CODE
LOWpy/visdom/__init__.py3444CODE
LOWpy/visdom/__init__.py3903CODE
LOWpy/visdom/__init__.py903CODE
LOWpy/visdom/loggers/keras.py91CODE
LOWpy/visdom/loggers/xgboost.py269CODE
LOWpy/visdom/experiments/query.py148CODE
LOWpy/visdom/server/build.py18CODE
LOWpy/visdom/server/run_server.py157CODE
LOWpy/visdom/server/handlers/web_handlers.py177CODE
LOWpy/visdom/server/handlers/web_handlers.py948CODE
LOWpy/visdom/server/handlers/socket_handlers.py99CODE
LOWpy/visdom/server/handlers/experiments_handler.py99CODE
LOWpy/visdom/utils/server_utils.py219CODE
LOWpy/visdom/utils/server_utils.py259CODE
LOWpy/visdom/utils/server_utils.py335CODE
LOWpy/visdom/utils/server_utils.py711CODE
LOWpy/visdom/data_model/json_store.py221CODE
LOWexample/train_example.py25CODE
LOWexample/components/properties.py22CODE
LOWexample/components/properties.py26CODE
LOWexample/components/text.py12CODE
LOWexample/components/text.py17CODE
Cross-Language Confusion3 hits · 10 pts
SeverityFileLineSnippetContext
HIGHpy/tests/test_experiment_search_paging.py247 """Inf orders fine in Python but persists as null, so it counts as absent."""STRING
HIGHpy/tests/unit/shared_utils.py113 """dumps() emits JSON null, never the non-standard NaN/Infinity tokens."""STRING
HIGHpy/visdom/server/handlers/web_handlers.py1272 {"status": "not_implemented", "detail": "...", "suggestion": null}STRING
Modern Structural Boilerplate9 hits · 9 pts
SeverityFileLineSnippetContext
LOWpy/tests/testutils/__init__.py29__all__ = [CODE
LOWpy/visdom/__init__.py129logger = logging.getLogger(__name__)CODE
LOWpy/visdom/loggers/__init__.py11__all__ = ["VisdomLogger", "VisdomSklearnLogger"]CODE
LOWpy/visdom/experiments/query.py73__all__ = [CODE
LOWpy/visdom/experiments/__init__.py50__all__ = [CODE
LOWpy/visdom/server/handlers/web_handlers.py70logger = logging.getLogger(__name__)CODE
LOWpy/visdom/data_model/__init__.py12__all__ = ["DataStore", "JSONStore"]CODE
LOWpy/visdom/tracking/__init__.py21__all__ = [CODE
LOWpy/visdom/tracking/core.py415 def set_param(self, key: str, value: Any) -> None:CODE
AI Structural Patterns8 hits · 6 pts
SeverityFileLineSnippetContext
LOWpy/tests/testutils/fakes.py72CODE
LOWpy/visdom/__init__.py727CODE
LOWpy/visdom/__init__.py3015CODE
LOWpy/visdom/__init__.py3141CODE
LOWpy/visdom/__init__.py3230CODE
LOWpy/visdom/__init__.py3444CODE
LOWpy/visdom/server/app.py81CODE
LOWpy/visdom/server/run_server.py76CODE
Self-Referential Comments1 hit · 4 pts
SeverityFileLineSnippetContext
MEDIUMexample/manual/visual_check.py245 # Create a gradient imageCOMMENT
Over-Commented Block4 hits · 4 pts
SeverityFileLineSnippetContext
LOWpyproject.toml1[tool.pytest.ini_options]COMMENT
LOWpy/visdom/extra_deps/__init__.py1# Copyright 2017-present, The Visdom AuthorsCOMMENT
LOWpy/visdom/server/handlers/socket_handlers.py41COMMENT
LOW.github/scripts/run_new_tests.sh1#!/usr/bin/env bashCOMMENT