Repository Analysis

LibreTranslate/LibreTranslate

Free and Open Source Machine Translation API. Self-hosted, offline capable and easy to setup.

9.3 Low AI signal View on GitHub
9.3
Adjusted Score
9.3
Raw Score
100%
Time Factor
2026-05-26
Last Push
14,451
Stars
Python
Language
5,798
Lines of Code
126
Files
49
Pattern Hits
2026-05-31
Scan Date

Score History

Severity Breakdown

CRITICAL 0HIGH 0MEDIUM 4LOW 45

Pattern Findings

49 matches across 7 categories. Click a row to expand file-level details.

Excessive Try-Catch Wrapping15 hits · 19 pts
SeverityFileLineSnippet
LOWlibretranslate/suggestions.py16 except Exception as e:
LOWlibretranslate/cache.py35 except Exception as e:
LOWlibretranslate/cache.py47 except Exception as e:
MEDIUMlibretranslate/cache.py40def cache(self, cache_key, content):
LOWlibretranslate/language.py88 except Exception as e:
LOWlibretranslate/locales.py26 except Exception as e:
LOWlibretranslate/app.py65 except Exception:
LOWlibretranslate/app.py877 except Exception as e:
LOWlibretranslate/app.py1026 except Exception as e:
MEDIUMlibretranslate/app.py55def get_version():
LOWlibretranslate/api_keys.py20 except Exception as e:
LOWlibretranslate/api_keys.py100 except Exception as e:
LOWlibretranslate/init.py14 except Exception as e:
MEDIUMlibretranslate/init.py8def boot(load_only=None, update_models=False, install_models=False):
MEDIUMscripts/update_locales.py25 print("Error: English model not found. You need it to run this script.")
Deep Nesting13 hits · 13 pts
SeverityFileLineSnippet
LOWlibretranslate/secret.py25
LOWlibretranslate/language.py70
LOWlibretranslate/language.py128
LOWlibretranslate/locales.py11
LOWlibretranslate/locales.py77
LOWlibretranslate/app.py132
LOWlibretranslate/app.py194
LOWlibretranslate/app.py333
LOWlibretranslate/app.py577
LOWlibretranslate/app.py335
LOWlibretranslate/manage.py8
LOWlibretranslate/init.py18
LOWscripts/gunicorn_conf.py10
Hyper-Verbose Identifiers12 hits · 12 pts
SeverityFileLineSnippet
LOWlibretranslate/language.py50def get_language_with_fallback(lang_code, languages):
LOWlibretranslate/language.py128def improve_translation_formatting(source, translation, improve_punctuation=True, remove_single_word_duplicates=True):
LOWlibretranslate/locales.py39def get_available_locale_codes(only_reviewed=True):
LOWlibretranslate/locales.py43def get_alternate_locale_links():
LOWlibretranslate/tests/test_api/test_api_translate.py35def test_api_translate_unsupported_language(client):
LOWlibretranslate/tests/test_api/test_api_translate.py50def test_api_translate_missing_parameter(client):
LOW…translate/tests/test_api/test_api_frontend_settings.py1def test_api_get_frontend_settings(client):
LOWlibretranslate/tests/test_api/test_api_health.py8def test_api_health_must_fail_bad_request_type(client):
LOWlibretranslate/tests/test_api/test_api_get_languages.py13def test_api_get_languages_must_fail_bad_request_type(client):
LOWlibretranslate/tests/test_api/test_api_spec.py7def test_api_get_spec_must_fail_bad_request_type(client):
LOW…retranslate/tests/test_api/test_api_detect_language.py15def test_api_detect_language_must_fail_without_parameters(client):
LOW…retranslate/tests/test_api/test_api_detect_language.py23def test_api_detect_language_must_fail_bad_request_type(client):
Unused Imports5 hits · 5 pts
SeverityFileLineSnippet
LOWlibretranslate/__init__.py1
LOWlibretranslate/__init__.py2
LOWlibretranslate/__init__.py3
LOWlibretranslate/app.py8
LOWlibretranslate/main.py4
Over-Commented Block2 hits · 2 pts
SeverityFileLineSnippet
LOWdocker-compose.cuda.yml21 reservations:
LOWdocker-compose.yml21 # - LT_API_KEYS=true
AI Slop Vocabulary1 hit · 2 pts
SeverityFileLineSnippet
LOWlibretranslate/language.py113 # otherwise just add it to the temporary list
Redundant / Tautological Comments1 hit · 2 pts
SeverityFileLineSnippet
LOWscripts/entrypoint.sh51# Set ARGOS_CHUNK_TYPE to MINISBD if not already defined