Free and Open Source Machine Translation API. Self-hosted, offline capable and easy to setup.
This report presents the forensic synthetic code analysis of LibreTranslate/LibreTranslate, a Python project with 15,433 GitHub stars. SynthScan v2.0 examined 5,810 lines of code across 126 source files, recording 51 pattern matches distributed across 8 syntactic categories. The overall adjusted score of 9.6 places this repository in the Low 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).
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 51 distinct pattern matches across 8 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 | libretranslate/suggestions.py | 16 | except Exception as e: | CODE |
| LOW | libretranslate/cache.py | 35 | except Exception as e: | CODE |
| LOW | libretranslate/cache.py | 47 | except Exception as e: | CODE |
| MEDIUM | libretranslate/cache.py | 40 | def cache(self, cache_key, content): | CODE |
| LOW | libretranslate/language.py | 88 | except Exception as e: | CODE |
| LOW | libretranslate/locales.py | 26 | except Exception as e: | CODE |
| LOW | libretranslate/app.py | 65 | except Exception: | CODE |
| LOW | libretranslate/app.py | 877 | except Exception as e: | CODE |
| LOW | libretranslate/app.py | 1026 | except Exception as e: | CODE |
| MEDIUM | libretranslate/app.py | 55 | def get_version(): | CODE |
| LOW | libretranslate/api_keys.py | 20 | except Exception as e: | CODE |
| LOW | libretranslate/api_keys.py | 100 | except Exception as e: | CODE |
| LOW | libretranslate/init.py | 14 | except Exception as e: | CODE |
| MEDIUM | libretranslate/init.py | 8 | def boot(load_only=None, update_models=False, install_models=False): | CODE |
| MEDIUM | scripts/update_locales.py | 25 | print("Error: English model not found. You need it to run this script.") | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | libretranslate/secret.py | 25 | CODE | |
| LOW | libretranslate/language.py | 70 | CODE | |
| LOW | libretranslate/language.py | 128 | CODE | |
| LOW | libretranslate/locales.py | 11 | CODE | |
| LOW | libretranslate/locales.py | 77 | CODE | |
| LOW | libretranslate/app.py | 124 | CODE | |
| LOW | libretranslate/app.py | 186 | CODE | |
| LOW | libretranslate/app.py | 333 | CODE | |
| LOW | libretranslate/app.py | 577 | CODE | |
| LOW | libretranslate/app.py | 335 | CODE | |
| LOW | libretranslate/manage.py | 8 | CODE | |
| LOW | libretranslate/init.py | 18 | CODE | |
| LOW | scripts/gunicorn_conf.py | 10 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | libretranslate/language.py | 50 | def get_language_with_fallback(lang_code, languages): | CODE |
| LOW | libretranslate/language.py | 128 | def improve_translation_formatting(source, translation, improve_punctuation=True, remove_single_word_duplicates=True): | CODE |
| LOW | libretranslate/locales.py | 39 | def get_available_locale_codes(only_reviewed=True): | CODE |
| LOW | libretranslate/locales.py | 43 | def get_alternate_locale_links(): | CODE |
| LOW | libretranslate/tests/test_api/test_api_translate.py | 35 | def test_api_translate_unsupported_language(client): | CODE |
| LOW | libretranslate/tests/test_api/test_api_translate.py | 50 | def test_api_translate_missing_parameter(client): | CODE |
| LOW | …translate/tests/test_api/test_api_frontend_settings.py | 1 | def test_api_get_frontend_settings(client): | CODE |
| LOW | libretranslate/tests/test_api/test_api_health.py | 8 | def test_api_health_must_fail_bad_request_type(client): | CODE |
| LOW | libretranslate/tests/test_api/test_api_get_languages.py | 13 | def test_api_get_languages_must_fail_bad_request_type(client): | CODE |
| LOW | libretranslate/tests/test_api/test_api_spec.py | 7 | def test_api_get_spec_must_fail_bad_request_type(client): | CODE |
| LOW | …retranslate/tests/test_api/test_api_detect_language.py | 15 | def test_api_detect_language_must_fail_without_parameters(client): | CODE |
| LOW | …retranslate/tests/test_api/test_api_detect_language.py | 23 | def test_api_detect_language_must_fail_bad_request_type(client): | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | libretranslate/__init__.py | 1 | CODE | |
| LOW | libretranslate/__init__.py | 2 | CODE | |
| LOW | libretranslate/__init__.py | 3 | CODE | |
| LOW | libretranslate/app.py | 8 | CODE | |
| LOW | libretranslate/main.py | 4 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | docker-compose.cuda.yml | 21 | reservations: | COMMENT |
| LOW | docker-compose.yml | 21 | # - LT_API_KEYS=true | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | libretranslate/static/js/materialize.min.js | 6 | var _get=function t(e,i,n){null===e&&(e=Function.prototype);var s=Object.getOwnPropertyDescriptor(e,i);if(void 0===s){va | CODE |
| LOW | libretranslate/static/js/vue@2.js | 6 | !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | libretranslate/language.py | 113 | # otherwise just add it to the temporary list | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | scripts/entrypoint.sh | 51 | # Set ARGOS_CHUNK_TYPE to MINISBD if not already defined | COMMENT |