A flexible tool for creating, organizing, and sharing visualizations of live, rich data. Supports Torch and Numpy https://visdom.dev
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).
This chart maps the temporal evolution of the adjusted synthetic code score across successive scan runs. An upward trajectory indicates ongoing incorporation of AI-generated code or expanding LLM-assisted scaffolding; a stable or declining trajectory may reflect active human refactoring, code removal, or the adoption of stricter authorship policies. The dashed secondary line (right axis) independently tracks total raw pattern hit count, which can diverge from the normalised score when codebase size changes significantly between scans.
Classifies detected patterns by their diagnostic confidence and structural impact. CRITICAL patterns (coefficient 10) represent definitive synthetic signatures — hallucinated imports, explicit LLM attribution metadata — virtually never produced by human authors. HIGH (5) indicates strong structural tells such as cross-file repetition or cross-linguistic idioms. MEDIUM (2) covers recognisable conversational padding and AI-specific vocabulary. LOW (1) captures subtle indicators like tautological comments and generic boilerplate that require density to carry independent signal.
This horizontal bar chart decomposes the repository's raw synthetic code score by top-level directory, allowing you to pinpoint precisely which modules or components carry the highest AI authorship density. Directories with disproportionately high scores relative to their size warrant targeted manual review: concentrated AI signatures often trace back to mass-generated configuration layers, auto-ported test suites, LLM-scaffolded boilerplate classes, or entire subsystems authored under heavy copilot assistance. Use this view to prioritise your human code-review effort.
The scanner identified 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.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | py/test/test_plots.py | 38 | def test_y_empty_last_dim_raises(self): | CODE |
| LOW⚡ | py/test/test_plots.py | 48 | def test_x_shape_mismatch_raises(self): | CODE |
| LOW⚡ | py/test/test_plots.py | 53 | def test_single_line_one_trace(self): | CODE |
| LOW⚡ | py/test/test_plots.py | 76 | def test_update_append_requires_x(self): | CODE |
| LOW⚡ | py/test/test_plots.py | 81 | def test_update_append_sets_append_true(self): | CODE |
| LOW⚡ | py/test/test_plots.py | 89 | def test_update_replace_sets_append_false(self): | CODE |
| LOW⚡ | py/test/test_plots.py | 96 | def test_update_replace_uses_update_endpoint(self): | CODE |
| LOW⚡ | py/test/test_plots.py | 103 | def test_update_append_new_window_no_append_key(self): | CODE |
| LOW⚡ | py/test/test_plots.py | 111 | def test_update_remove_sends_delete(self): | CODE |
| LOW⚡ | py/test/test_plots.py | 116 | def test_nan_y_passes_through(self): | CODE |
| LOW⚡ | py/test/test_plots.py | 125 | def test_inf_y_passes_through(self): | CODE |
| LOW⚡ | py/test/test_plots.py | 194 | def test_multiple_labels_produce_multiple_traces(self): | CODE |
| LOW⚡ | py/test/test_plots.py | 201 | def test_name_with_multiple_labels_raises(self): | CODE |
| LOW⚡ | py/test/test_plots.py | 208 | def test_store_history_with_update_raises(self): | CODE |
| LOW⚡ | py/test/test_plots.py | 214 | def test_update_without_win_raises(self): | CODE |
| LOW⚡ | py/test/test_plots.py | 220 | def test_update_remove_requires_name(self): | CODE |
| LOW⚡ | py/test/test_plots.py | 225 | def test_update_remove_sends_delete(self): | CODE |
| LOW⚡ | py/test/test_plots.py | 230 | def test_update_append_sets_append_true(self): | CODE |
| LOW⚡ | py/test/test_plots.py | 237 | def test_update_replace_sets_append_false(self): | CODE |
| LOW⚡ | py/test/test_plots.py | 281 | def test_invalid_update_raises(self): | CODE |
| LOW⚡ | py/test/test_plots.py | 287 | def test_colormap_defaults_to_viridis(self): | CODE |
| LOW⚡ | py/test/test_plots.py | 293 | def test_append_row_sets_update_dir(self): | CODE |
| LOW⚡ | py/test/test_plots.py | 301 | def test_append_column_sets_update_dir(self): | CODE |
| LOW⚡ | py/test/test_plots.py | 308 | def test_replace_sets_append_false(self): | CODE |
| LOW⚡ | py/test/test_plots.py | 314 | def test_nan_values_pass_through(self): | CODE |
| LOW | py/test/test_plots.py | 173 | def test_y_size_mismatch_raises(self): | CODE |
| LOW⚡ | py/tests/test_data_model.py | 37 | def test_save_then_load_round_trip(self): | CODE |
| LOW⚡ | py/tests/test_data_model.py | 43 | def test_save_writes_expected_file(self): | CODE |
| LOW⚡ | py/tests/test_data_model.py | 51 | def test_load_missing_env_returns_empty(self): | CODE |
| LOW | py/tests/test_data_model.py | 68 | def test_list_ignores_subdirs(self): | CODE |
| LOW⚡ | py/tests/test_data_model.py | 83 | def test_save_envs_saves_named_subset(self): | CODE |
| LOW⚡ | py/tests/test_data_model.py | 91 | def test_save_envs_drops_unknown_ids(self): | CODE |
| LOW⚡ | py/tests/test_data_model.py | 97 | def test_save_all_saves_everything(self): | CODE |
| LOW⚡ | py/tests/test_data_model.py | 104 | def test_env_named_like_hash_is_not_misread(self): | CODE |
| LOW⚡ | py/tests/test_data_model.py | 109 | def test_long_name_hash_fallback_round_trips(self): | CODE |
| LOW⚡ | py/tests/test_data_model.py | 118 | def test_save_ignores_path_traversal_ids(self): | CODE |
| LOW | py/tests/test_data_model.py | 130 | def test_traversal_id_round_trips_within_env_path(self): | CODE |
| LOW | py/tests/test_data_model.py | 137 | def test_list_skips_unreadable_hash_files(self): | CODE |
| LOW | py/visdom/__init__.py | 611 | def _compute_confusion_matrix(y_true, y_pred, labels): | CODE |
| LOW | py/visdom/server/handlers/web_handlers.py | 622 | class DataHandler(BaseHandler): | CODE |
| LOW | py/visdom/server/handlers/socket_handlers.py | 371 | def socket_wrap_monitor_thread(self): | CODE |
| LOW | example/components/plot_surface.py | 19 | def plot_surface_basic_withnames(viz, env, args): | CODE |
| LOW | example/components/plot_surface.py | 63 | def plot_surface_append_withnames(viz, env, args): | CODE |
| LOW | example/components/plot_surface.py | 72 | def plot_surface_remove_withnames(viz, env, args): | CODE |
| LOW | example/components/plot_surface.py | 86 | def plot_surface_replace_withnames(viz, env, args): | CODE |
| LOW | example/components/plot_confusion_matrix.py | 12 | def plot_confusion_matrix_basic(viz, env, args): | CODE |
| LOW | example/components/plot_confusion_matrix.py | 29 | def plot_confusion_matrix_precomputed(viz, env, args): | CODE |
| LOW | example/components/plot_confusion_matrix.py | 47 | def plot_confusion_matrix_normalized(viz, env, args): | CODE |
| LOW | example/components/plot_scatter.py | 114 | def plot_scatter_custom_marker(viz, env, args): | CODE |
| LOW | example/components/plot_scatter.py | 136 | def plot_scatter_custom_colors(viz, env, args): | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | py/visdom/__init__.py | 640 | CODE | |
| LOW | py/visdom/__init__.py | 814 | CODE | |
| LOW | py/visdom/__init__.py | 1031 | CODE | |
| LOW | py/visdom/__init__.py | 1685 | CODE | |
| LOW | py/visdom/__init__.py | 1813 | CODE | |
| LOW | py/visdom/__init__.py | 2279 | CODE | |
| LOW | py/visdom/__init__.py | 2951 | CODE | |
| LOW | py/visdom/__init__.py | 3406 | CODE | |
| LOW | py/visdom/__init__.py | 815 | CODE | |
| LOW | py/visdom/server/build.py | 17 | CODE | |
| LOW | py/visdom/server/app.py | 169 | CODE | |
| LOW | py/visdom/server/run_server.py | 117 | CODE | |
| LOW | py/visdom/server/handlers/web_handlers.py | 122 | CODE | |
| LOW | py/visdom/server/handlers/web_handlers.py | 434 | CODE | |
| LOW | py/visdom/server/handlers/socket_handlers.py | 98 | CODE | |
| LOW | py/visdom/utils/server_utils.py | 128 | CODE | |
| LOW | py/visdom/utils/server_utils.py | 211 | CODE | |
| LOW | py/visdom/utils/server_utils.py | 282 | CODE | |
| LOW | py/visdom/utils/server_utils.py | 511 | CODE | |
| LOW | py/visdom/utils/server_utils.py | 736 | CODE | |
| LOW | py/visdom/data_model/json_store.py | 117 | CODE | |
| LOW | example/train_example.py | 25 | CODE | |
| LOW | example/components/properties.py | 22 | CODE | |
| LOW | example/components/properties.py | 26 | CODE | |
| LOW | example/components/text.py | 12 | CODE | |
| LOW | example/components/text.py | 17 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | py/visdom/__init__.py | 9 | CODE | |
| LOW | py/visdom/server/app.py | 49 | CODE | |
| LOW | py/visdom/server/app.py | 49 | CODE | |
| LOW | py/visdom/server/handlers/web_handlers.py | 25 | CODE | |
| LOW | py/visdom/server/handlers/web_handlers.py | 27 | CODE | |
| LOW | py/visdom/server/handlers/web_handlers.py | 27 | CODE | |
| LOW | py/visdom/server/handlers/socket_handlers.py | 21 | CODE | |
| LOW | py/visdom/utils/server_utils.py | 31 | CODE | |
| LOW | py/visdom/utils/server_utils.py | 31 | CODE | |
| LOW | py/visdom/utils/server_utils.py | 31 | CODE | |
| LOW | py/visdom/utils/server_utils.py | 31 | CODE | |
| LOW | py/visdom/utils/server_utils.py | 40 | CODE | |
| LOW | py/visdom/data_model/__init__.py | 9 | CODE | |
| LOW | py/visdom/data_model/__init__.py | 10 | CODE | |
| LOW | example/demo.py | 13 | CODE | |
| LOW | example/demo.py | 13 | CODE | |
| LOW | example/demo.py | 21 | CODE | |
| LOW | example/demo.py | 21 | CODE | |
| LOW | example/demo.py | 21 | CODE | |
| LOW | example/demo.py | 63 | CODE | |
| LOW | example/demo.py | 92 | CODE | |
| LOW | example/demo.py | 92 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | setup.py | 24 | except Exception: | CODE |
| MEDIUM | py/visdom/__init__.py | 1247 | print("Error connecting to Visdom server!") | CODE |
| LOW | py/visdom/__init__.py | 118 | except Exception: | CODE |
| LOW | py/visdom/__init__.py | 796 | except Exception: | CODE |
| LOW | py/visdom/__init__.py | 834 | except Exception: | CODE |
| LOW | py/visdom/__init__.py | 945 | except Exception as e: | CODE |
| LOW | py/visdom/__init__.py | 1004 | except Exception as e: | CODE |
| LOW | py/visdom/__init__.py | 1052 | except Exception: | CODE |
| LOW | py/visdom/server/app.py | 193 | except Exception as e: | CODE |
| LOW | py/visdom/server/handlers/web_handlers.py | 774 | except Exception: | CODE |
| LOW | py/visdom/server/handlers/base_handlers.py | 36 | except Exception: # Not using secure cookies | CODE |
| LOW | py/visdom/server/handlers/base_handlers.py | 79 | except Exception: # Not using secure cookies | CODE |
| LOW | py/visdom/server/handlers/base_handlers.py | 109 | except Exception as e: | CODE |
| LOW | py/visdom/utils/server_utils.py | 103 | except Exception as e: | CODE |
| LOW | example/demo.py | 340 | except Exception as e: | CODE |
| MEDIUM | example/components/misc.py | 17 | print("Error message: ", err) | CODE |
| MEDIUM | example/components/misc.py | 102 | print("Error message: ", err) | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | py/visdom/__init__.py | 660 | CODE | |
| LOW | py/visdom/__init__.py | 2522 | CODE | |
| LOW | py/visdom/__init__.py | 2648 | CODE | |
| LOW | py/visdom/__init__.py | 2737 | CODE | |
| LOW | py/visdom/__init__.py | 2951 | CODE | |
| LOW | py/visdom/server/run_server.py | 62 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | py/visdom/extra_deps/__init__.py | 1 | # Copyright 2017-present, The Visdom Authors | COMMENT |
| LOW | py/visdom/server/handlers/socket_handlers.py | 41 | broadcast_undo_state, | COMMENT |
| LOW | cypress/support/index.js | 1 | // *********************************************************** | COMMENT |
| LOW | cypress/support/commands.js | 1 | // *********************************************** | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | py/visdom/__init__.py | 123 | logger = logging.getLogger(__name__) | CODE |
| LOW | py/visdom/server/handlers/web_handlers.py | 52 | logger = logging.getLogger(__name__) | CODE |
| LOW | py/visdom/data_model/__init__.py | 12 | __all__ = ["DataStore", "JSONStore"] | CODE |