Automagically synchronize subtitles with video.
This report presents the forensic synthetic code analysis of smacke/ffsubsync, a Python project with 7,787 GitHub stars. SynthScan v2.0 examined 12,216 lines of code across 77 source files, recording 206 pattern matches distributed across 12 syntactic categories. The overall adjusted score of 20.2 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).
Longitudinal tracking requires multiple scan runs. Once this repository is re-scanned after new commits land, this chart will visualise how the synthetic code signal evolves over time — enabling you to detect whether AI authorship is growing, stabilising, or being actively corrected by human engineers.
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 206 distinct pattern matches across 12 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 | versioneer.py | 604 | def git_versions_from_keywords(keywords, tag_prefix, verbose): | CODE |
| LOW | versioneer.py | 1127 | def git_versions_from_keywords(keywords, tag_prefix, verbose): | STRING |
| LOW⚡ | tests/test_quality_gate.py | 35 | def test_quality_ok_for_plausible_alignment(): | STRING |
| LOW⚡ | tests/test_quality_gate.py | 39 | def test_quality_rejects_negative_score(): | STRING |
| LOW⚡ | tests/test_quality_gate.py | 44 | def test_quality_rejects_large_offset(): | STRING |
| LOW⚡ | tests/test_quality_gate.py | 49 | def test_default_framerate_threshold_allows_all_real_corrections(): | STRING |
| LOW⚡ | tests/test_quality_gate.py | 56 | def test_tightened_framerate_threshold_rejects_correction(): | STRING |
| LOW | tests/test_quality_gate.py | 68 | def test_quality_reports_multiple_reasons(): | STRING |
| LOW⚡ | tests/test_quality_gate.py | 115 | def test_try_sync_skips_and_writes_original_on_low_quality(tmp_path, monkeypatch): | STRING |
| LOW⚡ | tests/test_quality_gate.py | 125 | def test_try_sync_applies_when_quality_is_acceptable(tmp_path, monkeypatch): | STRING |
| LOW⚡ | tests/test_quality_gate.py | 134 | def test_try_sync_ignores_quality_without_flag(tmp_path, monkeypatch): | STRING |
| LOW⚡ | tests/test_quality_gate.py | 144 | def test_cli_parses_quality_flags(): | STRING |
| LOW | tests/test_misc.py | 10 | def test_version_tuple_from_string(vstr, expected): | CODE |
| LOW | tests/test_extract_audio.py | 40 | def test_extract_audio_builds_copy_args_and_returns_temp(monkeypatch): | CODE |
| LOW | tests/test_extract_audio.py | 58 | def test_extract_audio_t_limit_includes_start_offset(monkeypatch): | CODE |
| LOW | tests/test_extract_audio.py | 71 | def test_extract_audio_returns_none_and_cleans_up_on_failure(monkeypatch): | CODE |
| LOW | tests/test_extract_audio.py | 85 | def test_fit_extracts_then_cleans_up_temp(monkeypatch, tmp_path): | CODE |
| LOW | tests/test_extract_audio.py | 103 | def test_fit_skips_extraction_for_local_reference(monkeypatch): | CODE |
| LOW | tests/test_extract_audio.py | 118 | def test_fit_skips_extraction_when_flag_disabled(monkeypatch): | CODE |
| LOW | tests/test_extract_audio.py | 133 | def test_cli_and_pipeline_wiring(): | CODE |
| LOW | tests/test_split_aligner.py | 44 | def test_recovers_mid_file_break(): | CODE |
| LOW | tests/test_split_aligner.py | 59 | def test_collapses_to_single_offset(): | CODE |
| LOW | tests/test_split_aligner.py | 71 | def test_already_aligned_is_noop(): | CODE |
| LOW | tests/test_split_aligner.py | 79 | def test_length_penalty_prefers_matching_block(): | CODE |
| LOW | tests/test_split_aligner.py | 103 | def test_subsample_improves_fractional_offset(): | CODE |
| LOW | tests/test_metadata.py | 32 | def test_is_metadata_detects_non_dialogue(content): | CODE |
| LOW | tests/test_metadata.py | 46 | def test_is_metadata_keeps_dialogue(content): | CODE |
| LOW | tests/test_metadata.py | 54 | def test_is_metadata_boundary_only_heuristics(content): | CODE |
| LOW | tests/test_metadata.py | 70 | def test_non_dialogue_line_contributes_no_speech_but_is_not_dropped(): | CODE |
| LOW⚡ | tests/test_progress.py | 12 | def test_progress_info_fraction(): | CODE |
| LOW⚡ | tests/test_progress.py | 16 | def test_progress_info_fraction_unknown_total_is_none(): | CODE |
| LOW⚡ | tests/test_progress.py | 21 | def test_progress_info_fraction_is_clamped_to_one(): | CODE |
| LOW⚡ | tests/test_progress.py | 27 | def test_make_reference_pipe_threads_progress_handler(): | CODE |
| LOW | tests/test_progress.py | 39 | def test_make_reference_pipe_default_progress_handler_is_none(): | CODE |
| LOW | tests/test_progress.py | 94 | def test_progress_handler_fires_with_monotonic_progress(monkeypatch): | CODE |
| LOW | tests/test_progress.py | 107 | def test_progress_handler_exception_does_not_break_fit(monkeypatch): | CODE |
| LOW | tests/test_pgs.py | 42 | def test_stream_without_prefix_unchanged(mock_probe, mock_bin): | CODE |
| LOW | tests/test_pgs.py | 51 | def test_skips_clear_events_small_size(mock_probe, mock_bin): | CODE |
| LOW | tests/test_pgs.py | 79 | def test_returns_none_when_no_usable_packets(mock_probe, mock_bin): | CODE |
| LOW⚡ | tests/test_pgs.py | 92 | def test_returns_none_on_empty_packets(mock_probe, mock_bin): | CODE |
| LOW⚡ | tests/test_pgs.py | 99 | def test_returns_none_when_ffprobe_raises(mock_probe, mock_bin): | CODE |
| LOW⚡ | tests/test_pgs.py | 106 | def test_skips_packets_with_missing_fields(mock_probe, mock_bin): | CODE |
| LOW⚡ | tests/test_max_duration.py | 20 | def test_no_max_duration_omits_t_flag(): | CODE |
| LOW⚡ | tests/test_max_duration.py | 25 | def test_max_duration_adds_input_side_t_flag(): | CODE |
| LOW⚡ | tests/test_max_duration.py | 35 | def test_max_duration_t_value_is_formatted_like_start_seconds(): | CODE |
| LOW⚡ | tests/test_max_duration.py | 44 | def test_cli_parses_max_duration_seconds(): | CODE |
| LOW⚡ | tests/test_max_duration.py | 53 | def test_make_reference_pipe_threads_max_duration_into_transformer(): | CODE |
| LOW | tests/test_alignment.py | 25 | def test_fft_alignment_rejects_empty_speech(refstring, substring): | CODE |
| LOW | tests/test_remote_url.py | 32 | def test_is_remote_url_recognizes_supported_protocols(path): | STRING |
| LOW | tests/test_remote_url.py | 48 | def test_is_remote_url_rejects_non_urls(path): | STRING |
| LOW⚡ | tests/test_remote_url.py | 59 | def test_validate_file_permissions_allows_remote_url(): | STRING |
| LOW⚡ | tests/test_remote_url.py | 66 | def test_validate_file_permissions_still_rejects_unreadable_local_reference(tmp_path): | STRING |
| LOW⚡ | tests/test_remote_url.py | 73 | def test_validate_file_permissions_allows_existing_local_reference(tmp_path): | STRING |
| LOW⚡ | tests/test_remote_url.py | 81 | def test_remote_url_reference_is_not_treated_as_existing_path(): | STRING |
| LOW | tests/test_remote_url.py | 98 | def test_open_file_routes_remote_url_through_urlopen(monkeypatch): | CODE |
| LOW⚡ | tests/test_remote_url.py | 109 | def test_open_file_still_reads_local_path(tmp_path): | CODE |
| LOW⚡ | tests/test_remote_url.py | 116 | def test_parser_reads_remote_srt_reference(monkeypatch): | CODE |
| LOW⚡ | tests/test_remote_url.py | 124 | def test_validate_args_skips_autodetect_for_remote_url(monkeypatch): | CODE |
| LOW⚡ | tests/test_whisper.py | 36 | def test_infer_language_explicit_wins(): | CODE |
| LOW⚡ | tests/test_whisper.py | 40 | def test_infer_language_en_model(): | CODE |
| 79 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM⚡ | tests/test_whisper.py | 33 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/test_whisper.py | 35 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/test_whisper.py | 119 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/test_whisper.py | 121 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/test_whisper.py | 148 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/test_whisper.py | 150 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/test_whisper.py | 253 | # --------------------------------------------------------------------------- | STRING |
| MEDIUM⚡ | tests/test_whisper.py | 255 | # --------------------------------------------------------------------------- | STRING |
| MEDIUM⚡ | tests/test_whisper.py | 277 | # --------------------------------------------------------------------------- | STRING |
| MEDIUM⚡ | tests/test_whisper.py | 279 | # --------------------------------------------------------------------------- | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | versioneer.py | 1099 | CODE | |
| LOW | versioneer.py | 1324 | CODE | |
| LOW | versioneer.py | 1645 | CODE | |
| LOW | versioneer.py | 2020 | CODE | |
| LOW | tests/test_embedded_subs.py | 63 | CODE | |
| LOW | tests/test_embedded_subs.py | 82 | CODE | |
| LOW | ffsubsync/subtitle_parser.py | 90 | CODE | |
| LOW | ffsubsync/_version.py | 133 | CODE | |
| LOW | ffsubsync/_version.py | 445 | CODE | |
| LOW | ffsubsync/subtitle_transformers.py | 93 | CODE | |
| LOW | ffsubsync/subtitle_transformers.py | 94 | CODE | |
| LOW | ffsubsync/ffsubsync.py | 187 | CODE | |
| LOW | ffsubsync/ffsubsync.py | 566 | CODE | |
| LOW | ffsubsync/speech_transformers.py | 644 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | web/src/ffsubsync_bridge.py | 85 | except Exception: # pragma: no cover - defensive; surfaced to the UI | CODE |
| LOW | web/src/ffsubsync_bridge.py | 208 | except Exception: | CODE |
| LOW | ffsubsync/subtitle_parser.py | 150 | except Exception as e: | CODE |
| LOW | ffsubsync/ffsubsync.py | 358 | except Exception: | CODE |
| LOW | ffsubsync/speech_transformers.py | 179 | except Exception: | CODE |
| LOW | ffsubsync/speech_transformers.py | 229 | except Exception: | CODE |
| LOW | ffsubsync/speech_transformers.py | 627 | except Exception as e: | CODE |
| LOW | ffsubsync/speech_transformers.py | 659 | except Exception as e: | CODE |
| LOW | ffsubsync/speech_transformers.py | 741 | except Exception as e: | CODE |
| LOW | ffsubsync/speech_transformers.py | 868 | except Exception as e: | CODE |
| LOW | ffsubsync/speech_transformers.py | 891 | except Exception as e: | CODE |
| LOW | ffsubsync/speech_transformers.py | 1036 | except Exception as e: | CODE |
| LOW | ffsubsync/speech_transformers.py | 1086 | except Exception: | CODE |
| LOW | ffsubsync/speech_transformers.py | 1446 | except Exception: | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | versioneer.py | 433 | # This file is released into the public domain. Generated by | COMMENT |
| MEDIUM | ffsubsync/_version.py | 8 | # This file is released into the public domain. Generated by | COMMENT |
| MEDIUM | ffsubsync/ffmpeg_utils.py | 14 | # Create a set of arguments which make a ``subprocess.Popen`` (and | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | web/scripts/build_wheels.sh | 1 | #!/usr/bin/env bash | COMMENT |
| LOW | docs/conf.py | 1 | # Configuration file for the Sphinx documentation builder. | COMMENT |
| LOW | docs/conf.py | 41 | COMMENT | |
| LOW | gui/entrypoint-windows.sh | 1 | #!/bin/bash | COMMENT |
| LOW | ffsubsync/constants.py | 21 | # Penalty applied by the alass-style piecewise aligner (--split-penalty) when the | COMMENT |
| LOW | ffsubsync/ffmpeg_utils.py | 21 | # | COMMENT |
| LOW | ffsubsync/ffmpeg_utils.py | 41 | # Traceback (most recent call last): | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/test_pgs.py | 4 | CODE | |
| LOW | ffsubsync/subtitle_preprocessor.py | 5 | CODE | |
| LOW | ffsubsync/subtitle_preprocessor.py | 102 | CODE | |
| LOW | ffsubsync/__init__.py | 20 | CODE | |
| LOW | ffsubsync/__init__.py | 21 | CODE | |
| LOW | ffsubsync/__init__.py | 21 | CODE | |
| LOW | ffsubsync/__init__.py | 22 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | versioneer.py | 451 | # each be defined on a line of their own. _version.py will just call | COMMENT |
| LOW | ffsubsync/_version.py | 24 | # each be defined on a line of their own. _version.py will just call | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | ffsubsync/subtitle_preprocessor.py | 8 | logger = logging.getLogger(__name__) | CODE |
| LOW | ffsubsync/ffsubsync_gui.py | 28 | logger = logging.getLogger(__name__) | CODE |
| LOW | ffsubsync/golden_section_search.py | 8 | logger = logging.getLogger(__name__) | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | ffsubsync/subtitle_preprocessor.py | 149 | # Step 1: Filter non-dialogue content | COMMENT |
| LOW | ffsubsync/subtitle_preprocessor.py | 164 | # Step 2: Merge short subtitles | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | ffsubsync/subtitle_preprocessor.py | 149 | # Step 1: Filter non-dialogue content | COMMENT |
| LOW | ffsubsync/subtitle_preprocessor.py | 164 | # Step 2: Merge short subtitles | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | ffsubsync/speech_transformers.py | 372 | CODE | |
| LOW | ffsubsync/speech_transformers.py | 788 | CODE | |
| LOW | ffsubsync/speech_transformers.py | 1349 | CODE |