Repository Analysis

fossasia/visdom

A flexible tool for creating, organizing, and sharing visualizations of live, rich data. Supports Torch and Numpy https://visdom.dev

2.9 Likely human-written View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of fossasia/visdom, a Python project with 10,263 GitHub stars. SynthScan v2.0 examined 48,723 lines of code across 181 source files, recording 128 pattern matches distributed across 7 syntactic categories. The overall adjusted score of 2.9 places this repository in the Likely human-written 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).

2.9
Adjusted Score
2.9
Raw Score
100%
Time Factor
2026-07-14
Last Push
10.3K
Stars
Python
Language
48.7K
Lines of Code
181
Files
128
Pattern Hits
2026-07-14
Scan Date
0.00
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 0MEDIUM 3LOW 125

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 128 distinct pattern matches across 7 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 Identifiers50 hits · 63 pts
SeverityFileLineSnippetContext
LOWpy/test/test_plots.py38 def test_y_empty_last_dim_raises(self):CODE
LOWpy/test/test_plots.py48 def test_x_shape_mismatch_raises(self):CODE
LOWpy/test/test_plots.py53 def test_single_line_one_trace(self):CODE
LOWpy/test/test_plots.py76 def test_update_append_requires_x(self):CODE
LOWpy/test/test_plots.py81 def test_update_append_sets_append_true(self):CODE
LOWpy/test/test_plots.py89 def test_update_replace_sets_append_false(self):CODE
LOWpy/test/test_plots.py96 def test_update_replace_uses_update_endpoint(self):CODE
LOWpy/test/test_plots.py103 def test_update_append_new_window_no_append_key(self):CODE
LOWpy/test/test_plots.py111 def test_update_remove_sends_delete(self):CODE
LOWpy/test/test_plots.py116 def test_nan_y_passes_through(self):CODE
LOWpy/test/test_plots.py125 def test_inf_y_passes_through(self):CODE
LOWpy/test/test_plots.py194 def test_multiple_labels_produce_multiple_traces(self):CODE
LOWpy/test/test_plots.py201 def test_name_with_multiple_labels_raises(self):CODE
LOWpy/test/test_plots.py208 def test_store_history_with_update_raises(self):CODE
LOWpy/test/test_plots.py214 def test_update_without_win_raises(self):CODE
LOWpy/test/test_plots.py220 def test_update_remove_requires_name(self):CODE
LOWpy/test/test_plots.py225 def test_update_remove_sends_delete(self):CODE
LOWpy/test/test_plots.py230 def test_update_append_sets_append_true(self):CODE
LOWpy/test/test_plots.py237 def test_update_replace_sets_append_false(self):CODE
LOWpy/test/test_plots.py281 def test_invalid_update_raises(self):CODE
LOWpy/test/test_plots.py287 def test_colormap_defaults_to_viridis(self):CODE
LOWpy/test/test_plots.py293 def test_append_row_sets_update_dir(self):CODE
LOWpy/test/test_plots.py301 def test_append_column_sets_update_dir(self):CODE
LOWpy/test/test_plots.py308 def test_replace_sets_append_false(self):CODE
LOWpy/test/test_plots.py314 def test_nan_values_pass_through(self):CODE
LOWpy/test/test_plots.py173 def test_y_size_mismatch_raises(self):CODE
LOWpy/tests/test_data_model.py37 def test_save_then_load_round_trip(self):CODE
LOWpy/tests/test_data_model.py43 def test_save_writes_expected_file(self):CODE
LOWpy/tests/test_data_model.py51 def test_load_missing_env_returns_empty(self):CODE
LOWpy/tests/test_data_model.py68 def test_list_ignores_subdirs(self):CODE
LOWpy/tests/test_data_model.py83 def test_save_envs_saves_named_subset(self):CODE
LOWpy/tests/test_data_model.py91 def test_save_envs_drops_unknown_ids(self):CODE
LOWpy/tests/test_data_model.py97 def test_save_all_saves_everything(self):CODE
LOWpy/tests/test_data_model.py104 def test_env_named_like_hash_is_not_misread(self):CODE
LOWpy/tests/test_data_model.py109 def test_long_name_hash_fallback_round_trips(self):CODE
LOWpy/tests/test_data_model.py118 def test_save_ignores_path_traversal_ids(self):CODE
LOWpy/tests/test_data_model.py130 def test_traversal_id_round_trips_within_env_path(self):CODE
LOWpy/tests/test_data_model.py137 def test_list_skips_unreadable_hash_files(self):CODE
LOWpy/visdom/__init__.py611def _compute_confusion_matrix(y_true, y_pred, labels):CODE
LOWpy/visdom/server/handlers/web_handlers.py622class DataHandler(BaseHandler):CODE
LOWpy/visdom/server/handlers/socket_handlers.py371 def socket_wrap_monitor_thread(self):CODE
LOWexample/components/plot_surface.py19def plot_surface_basic_withnames(viz, env, args):CODE
LOWexample/components/plot_surface.py63def plot_surface_append_withnames(viz, env, args):CODE
LOWexample/components/plot_surface.py72def plot_surface_remove_withnames(viz, env, args):CODE
LOWexample/components/plot_surface.py86def plot_surface_replace_withnames(viz, env, args):CODE
LOWexample/components/plot_confusion_matrix.py12def plot_confusion_matrix_basic(viz, env, args):CODE
LOWexample/components/plot_confusion_matrix.py29def plot_confusion_matrix_precomputed(viz, env, args):CODE
LOWexample/components/plot_confusion_matrix.py47def plot_confusion_matrix_normalized(viz, env, args):CODE
LOWexample/components/plot_scatter.py114def plot_scatter_custom_marker(viz, env, args):CODE
LOWexample/components/plot_scatter.py136def plot_scatter_custom_colors(viz, env, args):CODE
Deep Nesting26 hits · 24 pts
SeverityFileLineSnippetContext
LOWpy/visdom/__init__.py640CODE
LOWpy/visdom/__init__.py814CODE
LOWpy/visdom/__init__.py1031CODE
LOWpy/visdom/__init__.py1685CODE
LOWpy/visdom/__init__.py1813CODE
LOWpy/visdom/__init__.py2279CODE
LOWpy/visdom/__init__.py2951CODE
LOWpy/visdom/__init__.py3406CODE
LOWpy/visdom/__init__.py815CODE
LOWpy/visdom/server/build.py17CODE
LOWpy/visdom/server/app.py169CODE
LOWpy/visdom/server/run_server.py117CODE
LOWpy/visdom/server/handlers/web_handlers.py122CODE
LOWpy/visdom/server/handlers/web_handlers.py434CODE
LOWpy/visdom/server/handlers/socket_handlers.py98CODE
LOWpy/visdom/utils/server_utils.py128CODE
LOWpy/visdom/utils/server_utils.py211CODE
LOWpy/visdom/utils/server_utils.py282CODE
LOWpy/visdom/utils/server_utils.py511CODE
LOWpy/visdom/utils/server_utils.py736CODE
LOWpy/visdom/data_model/json_store.py117CODE
LOWexample/train_example.py25CODE
LOWexample/components/properties.py22CODE
LOWexample/components/properties.py26CODE
LOWexample/components/text.py12CODE
LOWexample/components/text.py17CODE
Unused Imports22 hits · 22 pts
SeverityFileLineSnippetContext
LOWpy/visdom/__init__.py9CODE
LOWpy/visdom/server/app.py49CODE
LOWpy/visdom/server/app.py49CODE
LOWpy/visdom/server/handlers/web_handlers.py25CODE
LOWpy/visdom/server/handlers/web_handlers.py27CODE
LOWpy/visdom/server/handlers/web_handlers.py27CODE
LOWpy/visdom/server/handlers/socket_handlers.py21CODE
LOWpy/visdom/utils/server_utils.py31CODE
LOWpy/visdom/utils/server_utils.py31CODE
LOWpy/visdom/utils/server_utils.py31CODE
LOWpy/visdom/utils/server_utils.py31CODE
LOWpy/visdom/utils/server_utils.py40CODE
LOWpy/visdom/data_model/__init__.py9CODE
LOWpy/visdom/data_model/__init__.py10CODE
LOWexample/demo.py13CODE
LOWexample/demo.py13CODE
LOWexample/demo.py21CODE
LOWexample/demo.py21CODE
LOWexample/demo.py21CODE
LOWexample/demo.py63CODE
LOWexample/demo.py92CODE
LOWexample/demo.py92CODE
Excessive Try-Catch Wrapping17 hits · 20 pts
SeverityFileLineSnippetContext
LOWsetup.py24except Exception:CODE
MEDIUMpy/visdom/__init__.py1247 print("Error connecting to Visdom server!")CODE
LOWpy/visdom/__init__.py118except Exception:CODE
LOWpy/visdom/__init__.py796 except Exception:CODE
LOWpy/visdom/__init__.py834 except Exception:CODE
LOWpy/visdom/__init__.py945 except Exception as e:CODE
LOWpy/visdom/__init__.py1004 except Exception as e:CODE
LOWpy/visdom/__init__.py1052 except Exception:CODE
LOWpy/visdom/server/app.py193 except Exception as e:CODE
LOWpy/visdom/server/handlers/web_handlers.py774 except Exception:CODE
LOWpy/visdom/server/handlers/base_handlers.py36 except Exception: # Not using secure cookiesCODE
LOWpy/visdom/server/handlers/base_handlers.py79 except Exception: # Not using secure cookiesCODE
LOWpy/visdom/server/handlers/base_handlers.py109 except Exception as e:CODE
LOWpy/visdom/utils/server_utils.py103 except Exception as e:CODE
LOWexample/demo.py340 except Exception as e:CODE
MEDIUMexample/components/misc.py17 print("Error message: ", err)CODE
MEDIUMexample/components/misc.py102 print("Error message: ", err)CODE
AI Structural Patterns6 hits · 6 pts
SeverityFileLineSnippetContext
LOWpy/visdom/__init__.py660CODE
LOWpy/visdom/__init__.py2522CODE
LOWpy/visdom/__init__.py2648CODE
LOWpy/visdom/__init__.py2737CODE
LOWpy/visdom/__init__.py2951CODE
LOWpy/visdom/server/run_server.py62CODE
Over-Commented Block4 hits · 4 pts
SeverityFileLineSnippetContext
LOWpy/visdom/extra_deps/__init__.py1# Copyright 2017-present, The Visdom AuthorsCOMMENT
LOWpy/visdom/server/handlers/socket_handlers.py41 broadcast_undo_state,COMMENT
LOWcypress/support/index.js1// ***********************************************************COMMENT
LOWcypress/support/commands.js1// ***********************************************COMMENT
Modern Structural Boilerplate3 hits · 3 pts
SeverityFileLineSnippetContext
LOWpy/visdom/__init__.py123logger = logging.getLogger(__name__)CODE
LOWpy/visdom/server/handlers/web_handlers.py52logger = logging.getLogger(__name__)CODE
LOWpy/visdom/data_model/__init__.py12__all__ = ["DataStore", "JSONStore"]CODE