Repository Analysis

smacke/ffsubsync

Automagically synchronize subtitles with video.

20.2 Moderate AI signal View on GitHub

Analysis Overview

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).

20.2
Adjusted Score
20.2
Raw Score
100%
Time Factor
2026-07-14
Last Push
7.8K
Stars
Python
Language
12.2K
Lines of Code
77
Files
206
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

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.

No multi-scan history yet — run the scanner again to build trend data.

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 13LOW 193

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 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.

Hyper-Verbose Identifiers139 hits · 152 pts
SeverityFileLineSnippetContext
LOWversioneer.py604def git_versions_from_keywords(keywords, tag_prefix, verbose):CODE
LOWversioneer.py1127def git_versions_from_keywords(keywords, tag_prefix, verbose):STRING
LOWtests/test_quality_gate.py35def test_quality_ok_for_plausible_alignment():STRING
LOWtests/test_quality_gate.py39def test_quality_rejects_negative_score():STRING
LOWtests/test_quality_gate.py44def test_quality_rejects_large_offset():STRING
LOWtests/test_quality_gate.py49def test_default_framerate_threshold_allows_all_real_corrections():STRING
LOWtests/test_quality_gate.py56def test_tightened_framerate_threshold_rejects_correction():STRING
LOWtests/test_quality_gate.py68def test_quality_reports_multiple_reasons():STRING
LOWtests/test_quality_gate.py115def test_try_sync_skips_and_writes_original_on_low_quality(tmp_path, monkeypatch):STRING
LOWtests/test_quality_gate.py125def test_try_sync_applies_when_quality_is_acceptable(tmp_path, monkeypatch):STRING
LOWtests/test_quality_gate.py134def test_try_sync_ignores_quality_without_flag(tmp_path, monkeypatch):STRING
LOWtests/test_quality_gate.py144def test_cli_parses_quality_flags():STRING
LOWtests/test_misc.py10def test_version_tuple_from_string(vstr, expected):CODE
LOWtests/test_extract_audio.py40def test_extract_audio_builds_copy_args_and_returns_temp(monkeypatch):CODE
LOWtests/test_extract_audio.py58def test_extract_audio_t_limit_includes_start_offset(monkeypatch):CODE
LOWtests/test_extract_audio.py71def test_extract_audio_returns_none_and_cleans_up_on_failure(monkeypatch):CODE
LOWtests/test_extract_audio.py85def test_fit_extracts_then_cleans_up_temp(monkeypatch, tmp_path):CODE
LOWtests/test_extract_audio.py103def test_fit_skips_extraction_for_local_reference(monkeypatch):CODE
LOWtests/test_extract_audio.py118def test_fit_skips_extraction_when_flag_disabled(monkeypatch):CODE
LOWtests/test_extract_audio.py133def test_cli_and_pipeline_wiring():CODE
LOWtests/test_split_aligner.py44def test_recovers_mid_file_break():CODE
LOWtests/test_split_aligner.py59def test_collapses_to_single_offset():CODE
LOWtests/test_split_aligner.py71def test_already_aligned_is_noop():CODE
LOWtests/test_split_aligner.py79def test_length_penalty_prefers_matching_block():CODE
LOWtests/test_split_aligner.py103def test_subsample_improves_fractional_offset():CODE
LOWtests/test_metadata.py32def test_is_metadata_detects_non_dialogue(content):CODE
LOWtests/test_metadata.py46def test_is_metadata_keeps_dialogue(content):CODE
LOWtests/test_metadata.py54def test_is_metadata_boundary_only_heuristics(content):CODE
LOWtests/test_metadata.py70def test_non_dialogue_line_contributes_no_speech_but_is_not_dropped():CODE
LOWtests/test_progress.py12def test_progress_info_fraction():CODE
LOWtests/test_progress.py16def test_progress_info_fraction_unknown_total_is_none():CODE
LOWtests/test_progress.py21def test_progress_info_fraction_is_clamped_to_one():CODE
LOWtests/test_progress.py27def test_make_reference_pipe_threads_progress_handler():CODE
LOWtests/test_progress.py39def test_make_reference_pipe_default_progress_handler_is_none():CODE
LOWtests/test_progress.py94def test_progress_handler_fires_with_monotonic_progress(monkeypatch):CODE
LOWtests/test_progress.py107def test_progress_handler_exception_does_not_break_fit(monkeypatch):CODE
LOWtests/test_pgs.py42def test_stream_without_prefix_unchanged(mock_probe, mock_bin):CODE
LOWtests/test_pgs.py51def test_skips_clear_events_small_size(mock_probe, mock_bin):CODE
LOWtests/test_pgs.py79def test_returns_none_when_no_usable_packets(mock_probe, mock_bin):CODE
LOWtests/test_pgs.py92def test_returns_none_on_empty_packets(mock_probe, mock_bin):CODE
LOWtests/test_pgs.py99def test_returns_none_when_ffprobe_raises(mock_probe, mock_bin):CODE
LOWtests/test_pgs.py106def test_skips_packets_with_missing_fields(mock_probe, mock_bin):CODE
LOWtests/test_max_duration.py20def test_no_max_duration_omits_t_flag():CODE
LOWtests/test_max_duration.py25def test_max_duration_adds_input_side_t_flag():CODE
LOWtests/test_max_duration.py35def test_max_duration_t_value_is_formatted_like_start_seconds():CODE
LOWtests/test_max_duration.py44def test_cli_parses_max_duration_seconds():CODE
LOWtests/test_max_duration.py53def test_make_reference_pipe_threads_max_duration_into_transformer():CODE
LOWtests/test_alignment.py25def test_fft_alignment_rejects_empty_speech(refstring, substring):CODE
LOWtests/test_remote_url.py32def test_is_remote_url_recognizes_supported_protocols(path):STRING
LOWtests/test_remote_url.py48def test_is_remote_url_rejects_non_urls(path):STRING
LOWtests/test_remote_url.py59def test_validate_file_permissions_allows_remote_url():STRING
LOWtests/test_remote_url.py66def test_validate_file_permissions_still_rejects_unreadable_local_reference(tmp_path):STRING
LOWtests/test_remote_url.py73def test_validate_file_permissions_allows_existing_local_reference(tmp_path):STRING
LOWtests/test_remote_url.py81def test_remote_url_reference_is_not_treated_as_existing_path():STRING
LOWtests/test_remote_url.py98def test_open_file_routes_remote_url_through_urlopen(monkeypatch):CODE
LOWtests/test_remote_url.py109def test_open_file_still_reads_local_path(tmp_path):CODE
LOWtests/test_remote_url.py116def test_parser_reads_remote_srt_reference(monkeypatch):CODE
LOWtests/test_remote_url.py124def test_validate_args_skips_autodetect_for_remote_url(monkeypatch):CODE
LOWtests/test_whisper.py36def test_infer_language_explicit_wins():CODE
LOWtests/test_whisper.py40def test_infer_language_en_model():CODE
79 more matches not shown…
Decorative Section Separators10 hits · 30 pts
SeverityFileLineSnippetContext
MEDIUMtests/test_whisper.py33# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_whisper.py35# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_whisper.py119# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_whisper.py121# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_whisper.py148# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_whisper.py150# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_whisper.py253# ---------------------------------------------------------------------------STRING
MEDIUMtests/test_whisper.py255# ---------------------------------------------------------------------------STRING
MEDIUMtests/test_whisper.py277# ---------------------------------------------------------------------------STRING
MEDIUMtests/test_whisper.py279# ---------------------------------------------------------------------------STRING
Deep Nesting14 hits · 14 pts
SeverityFileLineSnippetContext
LOWversioneer.py1099CODE
LOWversioneer.py1324CODE
LOWversioneer.py1645CODE
LOWversioneer.py2020CODE
LOWtests/test_embedded_subs.py63CODE
LOWtests/test_embedded_subs.py82CODE
LOWffsubsync/subtitle_parser.py90CODE
LOWffsubsync/_version.py133CODE
LOWffsubsync/_version.py445CODE
LOWffsubsync/subtitle_transformers.py93CODE
LOWffsubsync/subtitle_transformers.py94CODE
LOWffsubsync/ffsubsync.py187CODE
LOWffsubsync/ffsubsync.py566CODE
LOWffsubsync/speech_transformers.py644CODE
Excessive Try-Catch Wrapping14 hits · 14 pts
SeverityFileLineSnippetContext
LOWweb/src/ffsubsync_bridge.py85 except Exception: # pragma: no cover - defensive; surfaced to the UICODE
LOWweb/src/ffsubsync_bridge.py208 except Exception:CODE
LOWffsubsync/subtitle_parser.py150 except Exception as e:CODE
LOWffsubsync/ffsubsync.py358 except Exception:CODE
LOWffsubsync/speech_transformers.py179 except Exception:CODE
LOWffsubsync/speech_transformers.py229 except Exception:CODE
LOWffsubsync/speech_transformers.py627 except Exception as e:CODE
LOWffsubsync/speech_transformers.py659 except Exception as e:CODE
LOWffsubsync/speech_transformers.py741 except Exception as e:CODE
LOWffsubsync/speech_transformers.py868 except Exception as e:CODE
LOWffsubsync/speech_transformers.py891 except Exception as e:CODE
LOWffsubsync/speech_transformers.py1036 except Exception as e:CODE
LOWffsubsync/speech_transformers.py1086 except Exception:CODE
LOWffsubsync/speech_transformers.py1446 except Exception:CODE
Self-Referential Comments3 hits · 9 pts
SeverityFileLineSnippetContext
MEDIUMversioneer.py433# This file is released into the public domain. Generated byCOMMENT
MEDIUMffsubsync/_version.py8# This file is released into the public domain. Generated byCOMMENT
MEDIUMffsubsync/ffmpeg_utils.py14# Create a set of arguments which make a ``subprocess.Popen`` (andCOMMENT
Over-Commented Block7 hits · 7 pts
SeverityFileLineSnippetContext
LOWweb/scripts/build_wheels.sh1#!/usr/bin/env bashCOMMENT
LOWdocs/conf.py1# Configuration file for the Sphinx documentation builder.COMMENT
LOWdocs/conf.py41COMMENT
LOWgui/entrypoint-windows.sh1#!/bin/bashCOMMENT
LOWffsubsync/constants.py21# Penalty applied by the alass-style piecewise aligner (--split-penalty) when theCOMMENT
LOWffsubsync/ffmpeg_utils.py21#COMMENT
LOWffsubsync/ffmpeg_utils.py41 # Traceback (most recent call last):COMMENT
Unused Imports7 hits · 7 pts
SeverityFileLineSnippetContext
LOWtests/test_pgs.py4CODE
LOWffsubsync/subtitle_preprocessor.py5CODE
LOWffsubsync/subtitle_preprocessor.py102CODE
LOWffsubsync/__init__.py20CODE
LOWffsubsync/__init__.py21CODE
LOWffsubsync/__init__.py21CODE
LOWffsubsync/__init__.py22CODE
AI Slop Vocabulary2 hits · 3 pts
SeverityFileLineSnippetContext
LOWversioneer.py451 # each be defined on a line of their own. _version.py will just callCOMMENT
LOWffsubsync/_version.py24 # each be defined on a line of their own. _version.py will just callCOMMENT
Modern Structural Boilerplate3 hits · 3 pts
SeverityFileLineSnippetContext
LOWffsubsync/subtitle_preprocessor.py8logger = logging.getLogger(__name__)CODE
LOWffsubsync/ffsubsync_gui.py28logger = logging.getLogger(__name__)CODE
LOWffsubsync/golden_section_search.py8logger = logging.getLogger(__name__)CODE
Verbosity Indicators2 hits · 3 pts
SeverityFileLineSnippetContext
LOWffsubsync/subtitle_preprocessor.py149 # Step 1: Filter non-dialogue contentCOMMENT
LOWffsubsync/subtitle_preprocessor.py164 # Step 2: Merge short subtitlesCOMMENT
Structural Annotation Overuse2 hits · 3 pts
SeverityFileLineSnippetContext
LOWffsubsync/subtitle_preprocessor.py149 # Step 1: Filter non-dialogue contentCOMMENT
LOWffsubsync/subtitle_preprocessor.py164 # Step 2: Merge short subtitlesCOMMENT
AI Structural Patterns3 hits · 2 pts
SeverityFileLineSnippetContext
LOWffsubsync/speech_transformers.py372CODE
LOWffsubsync/speech_transformers.py788CODE
LOWffsubsync/speech_transformers.py1349CODE