Repository Analysis

paperless-ngx/paperless-ngx

A community-supported supercharged document management system: scan, index and archive all your documents

12.9 Low AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of paperless-ngx/paperless-ngx, a Python project with 43,007 GitHub stars. SynthScan v2.0 examined 240,998 lines of code across 1003 source files, recording 2499 pattern matches distributed across 20 syntactic categories. The overall adjusted score of 12.9 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).

12.9
Adjusted Score
12.9
Raw Score
100%
Time Factor
2026-07-14
Last Push
43.0K
Stars
Python
Language
241.0K
Lines of Code
1.0K
Files
2.5K
Pattern Hits
2026-07-14
Scan Date
0.03
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

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.

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 13HIGH 17MEDIUM 255LOW 2214

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 2499 distinct pattern matches across 20 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 Identifiers1817 hits · 1658 pts
SeverityFileLineSnippetContext
LOWsrc-ui/src/app/utils/query-params.ts60export function transformLegacyFilterRules(CODE
LOWsrc-ui/src/app/utils/query-params.ts103export function filterRulesFromQueryParams(CODE
LOWsrc-ui/src/app/utils/query-params.ts151export function queryParamsFromFilterRules(filterRules: FilterRule[]): Params {CODE
LOWsrc-ui/src/app/utils/http.ts1export function getFilenameFromContentDisposition(header: string): string {CODE
LOWsrc-ui/src/app/utils/color.ts122export function estimateBrightnessForColor(colorHex: string) {CODE
LOWsrc/paperless_ai/embedding.py105def get_configured_model_name(config: AIConfig) -> str:CODE
LOWsrc/paperless_ai/embedding.py118def _normalize_llm_index_text(text: str) -> str:CODE
LOWsrc/paperless_ai/vector_store.py595 def _run_structural_migration(self, migration: Migration) -> None:CODE
LOWsrc/paperless_ai/matching.py27def match_correspondents_by_name(names: list[str], user: User) -> list[Correspondent]:CODE
LOWsrc/paperless_ai/matching.py36def match_document_types_by_name(names: list[str], user: User) -> list[DocumentType]:CODE
LOWsrc/paperless_ai/matching.py45def match_storage_paths_by_name(names: list[str], user: User) -> list[StoragePath]:CODE
LOWsrc/paperless_ai/chat.py36def _build_document_reference(CODE
LOWsrc/paperless_ai/chat.py75def _format_chat_metadata_trailer(references: list[dict[str, int | str]]) -> str:CODE
LOWsrc/paperless_ai/chat.py82def stream_chat_with_documents(query_str: str, documents: list[Document]):CODE
LOWsrc/paperless_ai/chat.py90def _stream_chat_with_documents(query_str: str, documents: list[Document]):CODE
LOWsrc/paperless_ai/indexing.py35def queue_llm_index_update_if_needed(*, rebuild: bool, reason: str) -> bool:CODE
LOWsrc/paperless_ai/indexing.py382def llm_index_add_or_update_document(document: Document):CODE
LOWsrc/paperless_ai/indexing.py409def llm_index_remove_document(document: Document):CODE
LOWsrc/paperless_ai/ai_classifier.py75def build_localization_prompt(suggestions: dict, output_language: str) -> str:STRING
LOWsrc/paperless_ai/ai_classifier.py136def get_ai_document_classification(STRING
LOWsrc/paperless_ai/tests/test_lazy_imports.py9 def test_importing_tasks_does_not_load_ai_libraries(self) -> None:CODE
LOWsrc/paperless_ai/tests/test_embedding.py61def test_get_embedding_model_openai(mock_ai_config):CODE
LOWsrc/paperless_ai/tests/test_embedding.py82def test_get_embedding_model_openai_prefers_embedding_endpoint(mock_ai_config):CODE
LOWsrc/paperless_ai/tests/test_embedding.py104def test_get_embedding_model_openai_blocks_internal_endpoint_when_disallowed(CODE
LOWsrc/paperless_ai/tests/test_embedding.py117def test_get_embedding_model_huggingface(mock_ai_config):CODE
LOWsrc/paperless_ai/tests/test_embedding.py134def test_get_embedding_model_ollama(mock_ai_config):CODE
LOWsrc/paperless_ai/tests/test_embedding.py151def test_get_embedding_model_ollama_prefers_embedding_endpoint(mock_ai_config):CODE
LOWsrc/paperless_ai/tests/test_embedding.py169def test_get_embedding_model_ollama_blocks_internal_endpoint_when_disallowed(CODE
LOWsrc/paperless_ai/tests/test_embedding.py181def test_get_embedding_model_invalid_backend(mock_ai_config):CODE
LOWsrc/paperless_ai/tests/test_embedding.py199def test_get_configured_model_name_falls_back_to_backend_default(CODE
LOWsrc/paperless_ai/tests/test_embedding.py211def test_get_configured_model_name_explicit_overrides_default(mock_ai_config):CODE
LOWsrc/paperless_ai/tests/test_embedding.py221def test_build_llm_index_text(mock_document):CODE
LOWsrc/paperless_ai/tests/test_embedding.py246def test_build_llm_index_text_normalizes_ocr_punctuation_runs(mock_document):CODE
LOWsrc/paperless_ai/tests/test_embedding.py262def test_normalize_llm_index_text_collapses_ocr_leaders_without_joining_lines():CODE
LOWsrc/paperless_ai/tests/test_embedding.py266def test_normalize_llm_index_text_collapses_non_breaking_spaces():CODE
LOWsrc/paperless_ai/tests/test_chat.py63def test_stream_chat_with_one_document_retrieval(CODE
LOWsrc/paperless_ai/tests/test_chat.py121def test_stream_chat_with_multiple_documents_retrieval(patch_embed_nodes) -> None:CODE
LOWsrc/paperless_ai/tests/test_chat.py180def test_stream_chat_empty_document_list() -> None:CODE
LOWsrc/paperless_ai/tests/test_chat.py187def test_stream_chat_no_matching_nodes() -> None:CODE
LOWsrc/paperless_ai/tests/test_chat.py207def test_stream_chat_unexpected_failure_returns_generic_error(caplog) -> None:CODE
LOWsrc/paperless_ai/tests/test_chat.py240 def test_no_nodes_yields_no_content_message(CODE
LOWsrc/paperless_ai/tests/test_chat.py250 def test_chat_filter_contains_only_requested_document_ids(CODE
LOWsrc/paperless_ai/tests/test_ai_indexing.py124def test_get_rag_chunk_overlap_clamps_to_chunk_size() -> None:CODE
LOWsrc/paperless_ai/tests/test_ai_indexing.py130def test_get_rag_prompt_helper_uses_context_setting() -> None:CODE
LOWsrc/paperless_ai/tests/test_ai_indexing.py140def test_truncate_embedding_query_returns_single_chunk() -> None:CODE
LOWsrc/paperless_ai/tests/test_ai_indexing.py50def test_build_document_node_sets_ref_doc_id(real_document: Document) -> None:CODE
LOWsrc/paperless_ai/tests/test_ai_indexing.py62def test_build_document_node_excludes_metadata_from_embedding(CODE
LOWsrc/paperless_ai/tests/test_ai_indexing.py82def test_build_document_node_structured_fields_in_metadata(CODE
LOWsrc/paperless_ai/tests/test_ai_indexing.py99def test_build_document_node_excludes_document_id_from_llm_context(CODE
LOWsrc/paperless_ai/tests/test_ai_indexing.py111def test_build_document_node_uses_rag_chunk_settings(real_document: Document) -> None:CODE
LOWsrc/paperless_ai/tests/test_ai_indexing.py175def test_update_llm_index_rebuilds_on_model_name_change(CODE
LOWsrc/paperless_ai/tests/test_ai_indexing.py211def test_update_llm_index_partial_update(CODE
LOWsrc/paperless_ai/tests/test_ai_indexing.py258def test_add_or_update_document_updates_existing_entry(CODE
LOWsrc/paperless_ai/tests/test_ai_indexing.py273def test_query_after_remove_does_not_raise_key_error(CODE
LOWsrc/paperless_ai/tests/test_ai_indexing.py293def test_update_llm_index_no_documents(CODE
LOWsrc/paperless_ai/tests/test_ai_indexing.py312def test_update_no_documents_no_index_returns_early(CODE
LOWsrc/paperless_ai/tests/test_ai_indexing.py328def test_queue_llm_index_update_if_needed_enqueues_when_idle_or_skips_recent() -> None:CODE
LOWsrc/paperless_ai/tests/test_ai_indexing.py363def test_query_similar_documents(CODE
LOWsrc/paperless_ai/tests/test_ai_indexing.py411def test_query_similar_documents_truncates_query_to_embedding_chunk_size(CODE
LOWsrc/paperless_ai/tests/test_ai_indexing.py443def test_query_similar_documents_triggers_update_when_index_missing(CODE
1757 more matches not shown…
Decorative Section Separators216 hits · 726 pts
SeverityFileLineSnippetContext
MEDIUM.github/workflows/ci-release.yml191 # ---------------------------------------------------------------------------COMMENT
MEDIUM.github/workflows/ci-release.yml193 # ---------------------------------------------------------------------------COMMENT
MEDIUMsrc/paperless/celery.py13# ---------------------------------------------------------------------------COMMENT
MEDIUMsrc/paperless/celery.py19# ---------------------------------------------------------------------------COMMENT
MEDIUMsrc/paperless/parsers/mail.py448 # ------------------------------------------------------------------COMMENT
MEDIUMsrc/paperless/parsers/mail.py450 # ------------------------------------------------------------------COMMENT
MEDIUMsrc/paperless/parsers/mail.py93 # ------------------------------------------------------------------COMMENT
MEDIUMsrc/paperless/parsers/mail.py95 # ------------------------------------------------------------------COMMENT
MEDIUMsrc/paperless/parsers/mail.py135 # ------------------------------------------------------------------COMMENT
MEDIUMsrc/paperless/parsers/mail.py137 # ------------------------------------------------------------------COMMENT
MEDIUMsrc/paperless/parsers/mail.py163 # ------------------------------------------------------------------COMMENT
MEDIUMsrc/paperless/parsers/mail.py165 # ------------------------------------------------------------------COMMENT
MEDIUMsrc/paperless/parsers/mail.py189 # ------------------------------------------------------------------COMMENT
MEDIUMsrc/paperless/parsers/mail.py191 # ------------------------------------------------------------------COMMENT
MEDIUMsrc/paperless/parsers/mail.py284 # ------------------------------------------------------------------COMMENT
MEDIUMsrc/paperless/parsers/mail.py286 # ------------------------------------------------------------------COMMENT
MEDIUMsrc/paperless/parsers/mail.py319 # ------------------------------------------------------------------COMMENT
MEDIUMsrc/paperless/parsers/mail.py321 # ------------------------------------------------------------------COMMENT
MEDIUMsrc/paperless/parsers/tesseract.py97 # ------------------------------------------------------------------COMMENT
MEDIUMsrc/paperless/parsers/tesseract.py99 # ------------------------------------------------------------------COMMENT
MEDIUMsrc/paperless/parsers/tesseract.py109 # ------------------------------------------------------------------COMMENT
MEDIUMsrc/paperless/parsers/tesseract.py111 # ------------------------------------------------------------------COMMENT
MEDIUMsrc/paperless/parsers/tesseract.py136 # ------------------------------------------------------------------COMMENT
MEDIUMsrc/paperless/parsers/tesseract.py138 # ------------------------------------------------------------------COMMENT
MEDIUMsrc/paperless/parsers/tesseract.py143 # ------------------------------------------------------------------COMMENT
MEDIUMsrc/paperless/parsers/tesseract.py145 # ------------------------------------------------------------------COMMENT
MEDIUMsrc/paperless/parsers/tesseract.py78 # ------------------------------------------------------------------COMMENT
MEDIUMsrc/paperless/parsers/tesseract.py80 # ------------------------------------------------------------------COMMENT
MEDIUMsrc/paperless/parsers/tesseract.py156 # ------------------------------------------------------------------COMMENT
MEDIUMsrc/paperless/parsers/tesseract.py158 # ------------------------------------------------------------------COMMENT
MEDIUMsrc/paperless/parsers/tika.py90 # ------------------------------------------------------------------COMMENT
MEDIUMsrc/paperless/parsers/tika.py92 # ------------------------------------------------------------------COMMENT
MEDIUMsrc/paperless/parsers/tika.py137 # ------------------------------------------------------------------COMMENT
MEDIUMsrc/paperless/parsers/tika.py139 # ------------------------------------------------------------------COMMENT
MEDIUMsrc/paperless/parsers/tika.py164 # ------------------------------------------------------------------COMMENT
MEDIUMsrc/paperless/parsers/tika.py166 # ------------------------------------------------------------------COMMENT
MEDIUMsrc/paperless/parsers/tika.py205 # ------------------------------------------------------------------COMMENT
MEDIUMsrc/paperless/parsers/tika.py207 # ------------------------------------------------------------------COMMENT
MEDIUMsrc/paperless/parsers/tika.py278 # ------------------------------------------------------------------COMMENT
MEDIUMsrc/paperless/parsers/tika.py280 # ------------------------------------------------------------------COMMENT
MEDIUMsrc/paperless/parsers/tika.py313 # ------------------------------------------------------------------COMMENT
MEDIUMsrc/paperless/parsers/tika.py315 # ------------------------------------------------------------------COMMENT
MEDIUMsrc/paperless/parsers/tika.py394 # ------------------------------------------------------------------COMMENT
MEDIUMsrc/paperless/parsers/tika.py396 # ------------------------------------------------------------------COMMENT
MEDIUMsrc/paperless/parsers/remote.py92 # ------------------------------------------------------------------COMMENT
MEDIUMsrc/paperless/parsers/remote.py94 # ------------------------------------------------------------------COMMENT
MEDIUMsrc/paperless/parsers/remote.py151 # ------------------------------------------------------------------COMMENT
MEDIUMsrc/paperless/parsers/remote.py153 # ------------------------------------------------------------------COMMENT
MEDIUMsrc/paperless/parsers/remote.py179 # ------------------------------------------------------------------COMMENT
MEDIUMsrc/paperless/parsers/remote.py181 # ------------------------------------------------------------------COMMENT
MEDIUMsrc/paperless/parsers/remote.py204 # ------------------------------------------------------------------COMMENT
MEDIUMsrc/paperless/parsers/remote.py206 # ------------------------------------------------------------------COMMENT
MEDIUMsrc/paperless/parsers/remote.py246 # ------------------------------------------------------------------COMMENT
MEDIUMsrc/paperless/parsers/remote.py248 # ------------------------------------------------------------------COMMENT
MEDIUMsrc/paperless/parsers/remote.py268 # ------------------------------------------------------------------COMMENT
MEDIUMsrc/paperless/parsers/remote.py270 # ------------------------------------------------------------------COMMENT
MEDIUMsrc/paperless/parsers/remote.py357 # ------------------------------------------------------------------COMMENT
MEDIUMsrc/paperless/parsers/remote.py359 # ------------------------------------------------------------------COMMENT
MEDIUMsrc/paperless/parsers/registry.py47# ---------------------------------------------------------------------------COMMENT
MEDIUMsrc/paperless/parsers/registry.py49# ---------------------------------------------------------------------------COMMENT
156 more matches not shown…
Hallucination Indicators13 hits · 130 pts
SeverityFileLineSnippetContext
CRITICALsrc-ui/src/app/services/document-list-view.service.ts283 if (!this.router.routerState.snapshot.url.includes('/view/')) {CODE
CRITICALsrc-ui/src/app/services/document-list-view.service.ts348 replaceUrl: !this.router.routerState.snapshot.url.includes('?'), // in case navigating from params-less /dCODE
CRITICALsrc/paperless/validators.py4from django.core.exceptions import ValidationErrorCODE
CRITICALsrc/paperless_mail/tests/test_mail.py1256 self.mailMocker.bogus_mailbox.folder.list.assert_called_once()CODE
CRITICALsrc/paperless_mail/tests/test_mail.py1289 self.mailMocker.bogus_mailbox.folder.list.assert_called_once()CODE
CRITICALsrc/documents/models.py9from django.core.exceptions import ValidationErrorCODE
CRITICALsrc/documents/validators.py3from django.core.exceptions import ValidationErrorCODE
CRITICALsrc/documents/serialisers.py19from django.core.exceptions import ValidationErrorCODE
CRITICALsrc/documents/filters.py15from django.core.exceptions import FieldErrorCODE
CRITICALsrc/documents/views.py328 ) and self.request.user.ui_settings.settings.get("language"):CODE
CRITICALsrc/documents/views.py329 lang = self.request.user.ui_settings.settings.get("language")CODE
CRITICALsrc/documents/tests/test_bulk_edit.py734 mock_consume_file.return_value.set.return_value.apply_async.assert_called_once()CODE
CRITICALsrc/documents/tests/test_api_document_versions.py11from django.core.exceptions import FieldErrorCODE
Excessive Try-Catch Wrapping127 hits · 126 pts
SeverityFileLineSnippetContext
LOWdocker/rootfs/usr/local/bin/wait-for-redis.py44 except Exception as e:CODE
LOWdocs/development.md544 except Exception as e:CODE
LOWsrc/paperless_ai/client.py158 except Exception as exc:CODE
MEDIUMsrc/paperless_ai/client.py153def _normalize_timeouts(self) -> Iterator[None]:CODE
LOWsrc/paperless_ai/chat.py85 except Exception as e:CODE
LOWsrc/paperless/utils.py151 except Exception:CODE
LOWsrc/paperless/utils.py160 except Exception as e:CODE
LOWsrc/paperless/parsers/mail.py494 except Exception as err:CODE
LOWsrc/paperless/parsers/mail.py528 except Exception as err:CODE
LOWsrc/paperless/parsers/mail.py601 except Exception as err:CODE
LOWsrc/paperless/parsers/mail.py729 except Exception as err:CODE
LOWsrc/paperless/parsers/mail.py827 except Exception as err:CODE
LOWsrc/paperless/parsers/tesseract.py219 except Exception as e:CODE
LOWsrc/paperless/parsers/tesseract.py232 except Exception as e:CODE
LOWsrc/paperless/parsers/tesseract.py363 except Exception as e:CODE
LOWsrc/paperless/parsers/tesseract.py406 except Exception as e:CODE
LOWsrc/paperless/parsers/tesseract.py429 except Exception as e:CODE
LOWsrc/paperless/parsers/tesseract.py547 except Exception as e:CODE
LOWsrc/paperless/parsers/tesseract.py560 except Exception as e:CODE
LOWsrc/paperless/parsers/tesseract.py645 except Exception as e:CODE
LOWsrc/paperless/parsers/tesseract.py648 except Exception as e:CODE
LOWsrc/paperless/parsers/tika.py262 except Exception as err:CODE
LOWsrc/paperless/parsers/tika.py386 except Exception as e:CODE
LOWsrc/paperless/parsers/tika.py447 except Exception as err:CODE
LOWsrc/paperless/parsers/remote.py427 except Exception as e:CODE
LOWsrc/paperless/parsers/registry.py239 except Exception:CODE
LOWsrc/paperless/parsers/utils.py63 except Exception:CODE
LOWsrc/paperless/parsers/utils.py106 except Exception:CODE
LOWsrc/paperless/parsers/utils.py181 except Exception as e:CODE
LOWsrc/paperless/parsers/utils.py221 except Exception as e:CODE
LOWsrc/paperless/parsers/utils.py253 except Exception as e:CODE
LOWsrc/paperless_mail/mail.py231 except Exception as e:CODE
LOWsrc/paperless_mail/mail.py294 except Exception:CODE
LOWsrc/paperless_mail/mail.py473 except Exception as e:CODE
LOWsrc/paperless_mail/mail.py597 except Exception as e:CODE
LOWsrc/paperless_mail/mail.py603 except Exception as e:CODE
LOWsrc/paperless_mail/mail.py639 except Exception as e:CODE
LOWsrc/paperless_mail/mail.py663 except Exception as err:CODE
LOWsrc/paperless_mail/mail.py707 except Exception as e:CODE
LOWsrc/documents/classifier.py88 except Exception as e: # pragma: no coverCODE
LOWsrc/documents/classifier.py171 except Exception as err:CODE
LOWsrc/documents/tasks.py263 except Exception as e:CODE
LOWsrc/documents/tasks.py451 except Exception:CODE
LOWsrc/documents/tasks.py485 except Exception as e: # pragma: no coverCODE
LOWsrc/documents/tasks.py781 except Exception as exc:CODE
LOWsrc/documents/tasks.py819 except Exception as exc:CODE
LOWsrc/documents/validators.py43 except Exception as e:CODE
LOWsrc/documents/parsers.py119 except Exception as e: # pragma: no coverCODE
LOWsrc/documents/consumer.py331 except Exception as e:CODE
LOWsrc/documents/consumer.py400 except Exception as e:CODE
LOWsrc/documents/consumer.py460 except Exception as e:CODE
LOWsrc/documents/consumer.py562 except Exception as e:CODE
LOWsrc/documents/consumer.py761 except Exception as e:CODE
LOWsrc/documents/consumer.py850 except Exception as e:CODE
LOWsrc/documents/consumer.py951 except Exception: # pragma: no coverCODE
LOWsrc/documents/barcodes.py356 except Exception as e: # pragma: no coverCODE
LOWsrc/documents/barcodes.py441 except Exception as e:CODE
LOWsrc/documents/serialisers.py923 except Exception:CODE
LOWsrc/documents/serialisers.py939 except Exception:CODE
LOWsrc/documents/serialisers.py1796 except Exception as e:CODE
67 more matches not shown…
Self-Referential Comments28 hits · 82 pts
SeverityFileLineSnippetContext
MEDIUMdocker/compose/docker-compose.sqlite.yml2# This file contains everything paperless needs to run.COMMENT
MEDIUMdocker/compose/docker-compose.mariadb.yml2# This file contains everything paperless needs to run.COMMENT
MEDIUMdocker/compose/docker-compose.postgres-tika.yml2# This file contains everything paperless needs to run.COMMENT
MEDIUMdocker/compose/docker-compose.postgres.yml2# This file contains everything paperless needs to run.COMMENT
MEDIUMdocker/compose/docker-compose.sqlite-tika.yml2# This file contains everything paperless needs to run.COMMENT
MEDIUMdocker/compose/docker-compose.mariadb-tika.yml2# This file contains everything paperless needs to run.COMMENT
MEDIUMdocker/compose/docker-compose.portainer.yml2# This file contains everything paperless needs to run.COMMENT
MEDIUM…vcontainer/docker-compose.devcontainer.sqlite-tika.yml2# This file contains everything Paperless NGX needs to run.COMMENT
MEDIUM…vcontainer/docker-compose.devcontainer.sqlite-tika.yml21# This file is intended only to be used through VSCOde devcontainers. See README.mdCOMMENT
MEDIUMsrc/paperless/auth.py33 """This class is here to provide authentication to the angular dev serverSTRING
MEDIUMsrc/paperless/tests/test_registry.py171 # Create a subclass and delete the specified method to break compliance.COMMENT
MEDIUM…c/paperless/tests/settings/test_environment_parsers.py102 # Create a dummy file to resolve againstCOMMENT
MEDIUMsrc/documents/consumer.py624 # Create a log entry for the version addition, if enabledCOMMENT
MEDIUMsrc/documents/barcodes.py209 # Create the split document tasksCOMMENT
MEDIUMsrc/documents/barcodes.py231 # This file is now two or more filesCOMMENT
MEDIUMsrc/documents/barcodes.py354 # This file is really borked, allow the consumption to continueCOMMENT
MEDIUMsrc/documents/bulk_edit.py795 # Create a new version from the edited PDF rather than replacing in-placeCOMMENT
MEDIUMsrc/documents/bulk_edit.py929 # Create a new version rather than modifying the root/original in place.COMMENT
MEDIUMsrc/documents/bulk_edit.py1015 # Create an instance if target doc doesn't have this field or append it to an existing oneCOMMENT
MEDIUMsrc/documents/tests/test_workflows.py4752 # Create a test file to be consumedCOMMENT
MEDIUMsrc/documents/tests/test_workflows.py4760 # Create a ConsumableDocumentCOMMENT
MEDIUMsrc/documents/tests/test_workflows.py4816 # Create a test file to be consumedCOMMENT
MEDIUMsrc/documents/tests/test_workflows.py4824 # Create a ConsumableDocumentCOMMENT
MEDIUMsrc/documents/tests/test_api_app_config.py711 # Define a custom namespace "my:hack" and try to use itCOMMENT
MEDIUMsrc/documents/tests/test_management_importer.py382 # Create the zip fileCOMMENT
MEDIUMsrc/documents/tests/test_file_handling.py347 # Create an identical document and ensure it is trashed under a new nameCOMMENT
MEDIUMsrc/documents/management/commands/document_importer.py450 # Create a temporary directory for extracting a zip file into it, even if supplied source is no zip file to keepCOMMENT
MEDIUMsrc/documents/templating/filepath.py364 # Create the dummy document object with all fields filled in for validation purposesCOMMENT
Unused Imports89 hits · 80 pts
SeverityFileLineSnippetContext
LOWsrc/paperless_ai/db.py1CODE
LOWsrc/paperless_ai/embedding.py7CODE
LOWsrc/paperless_ai/indexing.py24CODE
LOWsrc/paperless/logging.py1CODE
LOWsrc/paperless/consumers.py1CODE
LOWsrc/paperless/__init__.py1CODE
LOWsrc/paperless/__init__.py2CODE
LOWsrc/paperless/__init__.py3CODE
LOWsrc/paperless/__init__.py4CODE
LOWsrc/paperless/__init__.py5CODE
LOWsrc/paperless/parsers/mail.py14CODE
LOWsrc/paperless/parsers/tesseract.py1CODE
LOWsrc/paperless/parsers/tika.py10CODE
LOWsrc/paperless/parsers/remote.py13CODE
LOWsrc/paperless/parsers/registry.py33CODE
LOWsrc/paperless/parsers/__init__.py36CODE
LOWsrc/paperless/parsers/utils.py9CODE
LOWsrc/paperless/parsers/text.py9CODE
LOWsrc/paperless/tests/test_registry.py10CODE
LOWsrc/paperless/tests/conftest.py11CODE
LOWsrc/paperless/tests/test_checks_v3.py3CODE
LOWsrc/paperless/tests/test_ocr_config.py3CODE
LOWsrc/paperless/tests/test_parser_utils.py3CODE
LOWsrc/paperless/tests/parsers/conftest.py7CODE
LOWsrc/paperless/tests/parsers/test_remote_parser.py16CODE
LOWsrc/paperless/tests/parsers/test_text_parser.py8CODE
LOWsrc/paperless/tests/parsers/test_tesseract_parser.py9CODE
LOW…/paperless/tests/parsers/test_convert_image_to_pdfa.py12CODE
LOWsrc/paperless/tests/parsers/test_parse_modes.py12CODE
LOWsrc/paperless_mail/tests/factories.py1CODE
LOWsrc/documents/mail.py1CODE
LOWsrc/documents/classifier.py1CODE
LOWsrc/documents/__init__.py2CODE
LOWsrc/documents/parsers.py1CODE
LOWsrc/documents/apps.py36CODE
LOWsrc/documents/bulk_download.py1CODE
LOWsrc/documents/caching.py1CODE
LOWsrc/documents/consumer.py195CODE
LOWsrc/documents/versioning.py1CODE
LOWsrc/documents/barcodes.py1CODE
LOWsrc/documents/serialisers.py1CODE
LOWsrc/documents/bulk_edit.py1CODE
LOWsrc/documents/regex.py1CODE
LOWsrc/documents/signals/handlers.py1CODE
LOWsrc/documents/tests/test_share_link_bundles.py1CODE
LOWsrc/documents/tests/test_management_consumer.py14CODE
LOWsrc/documents/tests/conftest.py21CODE
LOWsrc/documents/tests/test_consumer_archive.py3CODE
LOWsrc/documents/tests/test_sanity_check.py7CODE
LOWsrc/documents/tests/test_management.py1CODE
LOWsrc/documents/tests/test_api_chat.py1CODE
LOWsrc/documents/tests/factories.py5CODE
LOWsrc/documents/tests/test_api_document_versions.py1CODE
LOWsrc/documents/tests/test_management_retagger.py5CODE
LOW…documents/tests/management/test_management_base_cmd.py3CODE
LOW…nts/tests/management/test_management_sanity_checker.py6CODE
LOW…/tests/management/test_management_document_llmindex.py1CODE
LOWsrc/documents/tests/search/conftest.py1CODE
LOWsrc/documents/tests/search/test_tokenizer.py1CODE
LOWsrc/documents/tests/search/test_lock_backoff.py3CODE
29 more matches not shown…
Deep Nesting77 hits · 62 pts
SeverityFileLineSnippetContext
LOWdocker/rootfs/usr/local/bin/deduplicate.py52CODE
LOWsrc/paperless_ai/indexing.py300CODE
LOWsrc/paperless/validators.py183CODE
LOWsrc/paperless/checks.py25CODE
LOWsrc/paperless/utils.py118CODE
LOWsrc/paperless/settings/parsers.py61CODE
LOWsrc/paperless/parsers/tesseract.py266CODE
LOWsrc/paperless/parsers/tika.py398CODE
LOWsrc/paperless_mail/mail.py362CODE
LOWsrc/paperless_mail/mail.py513CODE
LOWsrc/paperless_mail/mail.py541CODE
LOWsrc/paperless_mail/views.py87CODE
LOWsrc/paperless_mail/tests/test_mail.py81CODE
LOWsrc/paperless_mail/tests/test_mail.py172CODE
LOWsrc/paperless_mail/tests/test_mail.py331CODE
LOWsrc/documents/mail.py19CODE
LOWsrc/documents/tasks.py182CODE
LOWsrc/documents/tasks.py338CODE
LOWsrc/documents/tasks.py495CODE
LOWsrc/documents/double_sided.py39CODE
LOWsrc/documents/matching.py169CODE
LOWsrc/documents/matching.py642CODE
LOWsrc/documents/consumer.py408CODE
LOWsrc/documents/sanity_checker.py240CODE
LOWsrc/documents/permissions.py93CODE
LOWsrc/documents/barcodes.py397CODE
LOWsrc/documents/serialisers.py231CODE
LOWsrc/documents/serialisers.py889CODE
LOWsrc/documents/serialisers.py1170CODE
LOWsrc/documents/serialisers.py1503CODE
LOWsrc/documents/serialisers.py1787CODE
LOWsrc/documents/serialisers.py1826CODE
LOWsrc/documents/serialisers.py2067CODE
LOWsrc/documents/serialisers.py2907CODE
LOWsrc/documents/bulk_edit.py289CODE
LOWsrc/documents/bulk_edit.py435CODE
LOWsrc/documents/bulk_edit.py615CODE
LOWsrc/documents/bulk_edit.py747CODE
LOWsrc/documents/bulk_edit.py877CODE
LOWsrc/documents/bulk_edit.py989CODE
LOWsrc/documents/filters.py255CODE
LOWsrc/documents/filters.py472CODE
LOWsrc/documents/filters.py638CODE
LOWsrc/documents/views.py1637CODE
LOWsrc/documents/views.py2864CODE
LOWsrc/documents/views.py4663CODE
LOWsrc/documents/signals/handlers.py343CODE
LOWsrc/documents/signals/handlers.py434CODE
LOWsrc/documents/signals/handlers.py751CODE
LOWsrc/documents/signals/handlers.py854CODE
LOWsrc/documents/signals/handlers.py1038CODE
LOWsrc/documents/tests/test_management_exporter.py195CODE
LOWsrc/documents/tests/test_consumer.py143CODE
LOWsrc/documents/tests/test_consumer.py1374CODE
LOWsrc/documents/tests/test_consumer.py1529CODE
LOWsrc/documents/tests/test_api_bulk_edit.py1439CODE
LOWsrc/documents/management/commands/document_retagger.py230CODE
LOWsrc/documents/management/commands/document_importer.py72CODE
LOWsrc/documents/management/commands/document_importer.py216CODE
LOWsrc/documents/management/commands/document_importer.py283CODE
17 more matches not shown…
Fake / Example Data36 hits · 36 pts
SeverityFileLineSnippetContext
LOWdocs/changelog.md7054 thinking that everything is in Catalan because we had _Lorem ipsum_CODE
LOWdocs/development.md414 author = "Acme Corp" # author / organisationCODE
LOWdocs/development.md666 author = "Acme Corp"CODE
LOWsrc-ui/src/app/components/chat/chat/chat.component.html36 [placeholder]="placeholder"CODE
LOW…il/document-history/document-history.component.spec.ts76 const correspondentName = 'John Doe'CODE
LOW…il/document-history/document-history.component.spec.ts92 .mockReturnValue(of({ name: 'John Doe' }))CODE
LOW…file-edit-dialog/profile-edit-dialog.component.spec.ts28 email: 'foo@bar.com',CODE
LOW…c/app/components/common/input/date/date.component.html13 <input #inputField class="form-control" [class.is-invalid]="error" [placeholder]="placeholder" [id]="inputId" CODE
LOW…ommon/input/document-link/document-link.component.html30 [placeholder]="placeholder"CODE
LOW…mponents/common/input/textarea/textarea.component.html22 [placeholder]="placeholder"CODE
LOW…c/app/components/common/input/text/text.component.html14 <input #inputField type="text" class="form-control" [class.is-invalid]="error" [id]="inputId" [(ngModel)]="valueCODE
LOW…p/components/common/input/select/select.component.html27 [placeholder]="placeholder"CODE
LOW…stions-dropdown/suggestions-dropdown.component.spec.ts26 suggested_correspondents: ['John Doe'],CODE
LOW…s/common/preview-popup/preview-popup.component.spec.ts21 content: 'Cupcake ipsum dolor sit amet ice cream.',CODE
LOW…ument-card-large/document-card-large.component.spec.ts37 'Cupcake ipsum dolor sit amet ice cream. Donut shortbread cheesecake caramels tiramisu pastry caramels chocolate barCODE
LOW…ument-card-small/document-card-small.component.spec.ts26 'Cupcake ipsum dolor sit amet ice cream. Donut shortbread cheesecake caramels tiramisu pastry caramels chocolate barCODE
LOWsrc-ui/src/app/services/profile.service.spec.ts42 service.update({ email: 'foo@bar.com' }).subscribe()CODE
LOWsrc-ui/src/app/services/profile.service.spec.ts48 email: 'foo@bar.com',CODE
LOWsrc/paperless_ai/tests/test_ai_classifier.py84 "correspondents": ["John Doe"],CODE
LOWsrc/paperless_ai/tests/test_ai_classifier.py92 "correspondents": ["Jane Doe"],CODE
LOWsrc/paperless_ai/tests/test_ai_classifier.py103 assert result["correspondents"] == ["John Doe"]CODE
LOWsrc/paperless_ai/tests/test_ai_classifier.py128 "correspondents": ["John Doe"],CODE
LOWsrc/paperless_ai/tests/test_ai_classifier.py147 assert result["correspondents"] == ["John Doe"]CODE
LOWsrc/paperless_ai/tests/test_ai_classifier.py227 "correspondents": ["John Doe"],CODE
LOWsrc/paperless_ai/tests/test_client.py109 "correspondents": ["John Doe"],CODE
LOWsrc/paperless_ai/tests/test_client.py141 "correspondents": ["John Doe"],CODE
LOWsrc/paperless/parsers/__init__.py20 author = "Acme Corp"STRING
LOWsrc/paperless/tests/test_adapter.py100 "email": "user@example.com",CODE
LOWsrc/documents/tests/test_workflows.py3402 to="user@example.com",CODE
LOWsrc/documents/tests/test_workflows.py3689 to="user@example.com",CODE
LOWsrc/documents/tests/test_workflows.py4486 to="user@example.com",CODE
LOWsrc/documents/tests/test_workflows.py4620 to="user@example.com",CODE
LOWsrc/documents/tests/test_api_search.py156 content="Lorem ipsum dolor sit amet, consectetur adipiscing elit.",CODE
LOWsrc/documents/tests/test_api_search.py156 content="Lorem ipsum dolor sit amet, consectetur adipiscing elit.",CODE
LOWsrc/documents/tests/search/test_backend.py175 content="Lorem ipsum dolor sit amet, consectetur adipiscing elit.",CODE
LOWsrc/documents/tests/search/test_backend.py175 content="Lorem ipsum dolor sit amet, consectetur adipiscing elit.",CODE
Docstring Block Structure7 hits · 35 pts
SeverityFileLineSnippetContext
HIGHsrc/paperless/settings/parsers.py14 Converts a string representation of truth to a boolean value. Recognizes 'true', '1', 't', 'y', 'yes' as True,STRING
HIGHsrc/paperless/settings/parsers.py67 Parses a key-value string into a dictionary, applying defaults and casting types. Supports nested keys via dotSTRING
HIGHsrc/paperless/settings/parsers.py224 Get and parse a list from an environment variable or return a default. Args: key: Environment variableSTRING
HIGHsrc/paperless/settings/parsers.py289 Gets and validates an environment variable against a set of allowed choices. Args: env_key: The enviroSTRING
HIGHsrc/documents/utils.py148 Compute the SHA-256 checksum of a file. Reads the file in chunks to avoid loading the entire file into memory.STRING
HIGHsrc/documents/templating/filters.py11 Format a date, datetime or str object into a localized string using Babel. Args: value (date | datetimSTRING
HIGHsrc/documents/search/_backend.py894 Get a batch context manager for bulk index operations. Use this for efficient bulk document updates/deSTRING
Cross-File Repetition7 hits · 35 pts
SeverityFileLineSnippetContext
HIGHsrc/paperless/parsers/mail.py0return the mime types this parser handles. returns ------- dict[str, str] mapping of mime type to preferred file extensiSTRING
HIGHsrc/paperless/parsers/tika.py0return the mime types this parser handles. returns ------- dict[str, str] mapping of mime type to preferred file extensiSTRING
HIGHsrc/paperless/parsers/text.py0return the mime types this parser handles. returns ------- dict[str, str] mapping of mime type to preferred file extensiSTRING
HIGHsrc/paperless/parsers/mail.py0return the plain-text content extracted during parse. returns ------- str extracted text, or an empty string if no text STRING
HIGHsrc/paperless/parsers/tika.py0return the plain-text content extracted during parse. returns ------- str extracted text, or an empty string if no text STRING
HIGHsrc/paperless/parsers/__init__.py0return the plain-text content extracted during parse. returns ------- str extracted text, or an empty string if no text STRING
HIGHsrc/paperless/parsers/text.py0return the plain-text content extracted during parse. returns ------- str extracted text, or an empty string if no text STRING
Redundant / Tautological Comments18 hits · 27 pts
SeverityFileLineSnippetContext
LOWinstall-paperless-ngx.sh64# Check if user has permissions to run Docker by trying to get the status of Docker (docker status).COMMENT
LOWdocker/rootfs/usr/local/bin/deduplicate.py19 # Read file in chunks to handle large files efficientlyCOMMENT
LOWsrc/paperless/validators.py234 # Check if any dangerous pattern is a substring of the styleCOMMENT
LOWsrc/paperless/validators.py245 # Check if value starts with any dangerous schemeCOMMENT
LOWsrc/paperless/tests/parsers/test_mail_parser.py94 # Check if exception is raised when parsing fails.COMMENT
LOWsrc/paperless/tests/parsers/test_mail_parser.py115 # Check if exception is raised when the mail is faulty.COMMENT
LOWsrc/paperless/tests/parsers/test_mail_parser.py409 # Check if exception is raised when Tika cannot be reached.COMMENT
LOWsrc/documents/classifier.py285 # Check if retraining is actually required.COMMENT
LOWsrc/documents/matching.py378 # Check if any tag filters exist to determine if we need to load document tagsCOMMENT
LOWsrc/documents/bulk_edit.py1001 # Check if any documents are going to be removed from the current list of links and remove the symmetrical linksCOMMENT
LOWsrc/documents/filters.py567 # Check if 1) custom field name matches, and 2) value satisfies conditionCOMMENT
LOWsrc/documents/filters.py609 # Check if the operator is supported for the current data_type.COMMENT
LOWsrc/documents/filters.py725 # Check if any of the requested IDs are missing.COMMENT
LOWsrc/documents/signals/handlers.py912 # Check if document was soft deleted (moved to trash)COMMENT
LOWsrc/documents/tests/date_parsing/test_date_parsing.py85 # Check if an error was loggedCOMMENT
LOWsrc/documents/tests/date_parsing/test_date_parsing.py89 # Check if the specific error message is presentCOMMENT
LOWsrc/documents/management/commands/manage_superuser.py33 # Check if there's already a user called adminCOMMENT
LOWsrc/documents/management/commands/manage_superuser.py42 # Check if any superuseruserCOMMENT
Structural Annotation Overuse11 hits · 20 pts
SeverityFileLineSnippetContext
LOW.devcontainer/README.md44### Step 1: Running the DevContainerCOMMENT
LOW.devcontainer/README.md54### Step 2: Initial SetupCOMMENT
LOWsrc/paperless_ai/tests/test_ai_indexing.py528 # Step 2: delete all documentsCOMMENT
LOWsrc/paperless_ai/tests/test_ai_indexing.py532 # Step 3: rebuild with no documents — drop_table is called so the tableCOMMENT
LOWsrc/paperless_ai/tests/test_ai_indexing.py536 # Step 4: the table must be absent (no rows) — phantom vectors goneCOMMENT
LOWsrc/paperless_ai/tests/test_ai_indexing.py514 # Step 1: create a document and build a non-empty indexCOMMENT
LOWsrc/documents/classifier.py246 # Step 1: Extract and preprocess training data from the database.COMMENT
LOWsrc/documents/classifier.py324 # Step 2: vectorize dataCOMMENT
LOWsrc/documents/classifier.py350 # Step 3: train the classifiersCOMMENT
LOWsrc/documents/templating/utils.py13 # Step 1: Match placeholders with single curly braces but not those with double bracesCOMMENT
LOWsrc/documents/templating/utils.py16 # Step 2: Replace the placeholders with {{ var }} or {{ }}COMMENT
Cross-Language Confusion3 hits · 18 pts
SeverityFileLineSnippetContext
HIGHsrc/documents/classifier.py305 # subtract 1 since -1 (null) is also part of the classes.COMMENT
HIGH…/documents/management/commands/convert_mariadb_uuid.py21 old_field = models.CharField(null=null, max_length=36)CODE
HIGH…/documents/management/commands/convert_mariadb_uuid.py24 new_field = models.UUIDField(null=null)CODE
Verbosity Indicators9 hits · 17 pts
SeverityFileLineSnippetContext
LOWsrc/paperless_ai/tests/test_ai_indexing.py528 # Step 2: delete all documentsCOMMENT
LOWsrc/paperless_ai/tests/test_ai_indexing.py532 # Step 3: rebuild with no documents — drop_table is called so the tableCOMMENT
LOWsrc/paperless_ai/tests/test_ai_indexing.py536 # Step 4: the table must be absent (no rows) — phantom vectors goneCOMMENT
LOWsrc/paperless_ai/tests/test_ai_indexing.py514 # Step 1: create a document and build a non-empty indexCOMMENT
LOWsrc/documents/classifier.py246 # Step 1: Extract and preprocess training data from the database.COMMENT
LOWsrc/documents/classifier.py324 # Step 2: vectorize dataCOMMENT
LOWsrc/documents/classifier.py350 # Step 3: train the classifiersCOMMENT
LOWsrc/documents/templating/utils.py13 # Step 1: Match placeholders with single curly braces but not those with double bracesCOMMENT
LOWsrc/documents/templating/utils.py16 # Step 2: Replace the placeholders with {{ var }} or {{ }}COMMENT
Over-Commented Block15 hits · 14 pts
SeverityFileLineSnippetContext
LOWdocker/compose/docker-compose.sqlite.yml1# Docker Compose file for running paperless from the Docker Hub.COMMENT
LOWdocker/compose/docker-compose.mariadb.yml1# Docker Compose file for running paperless from the Docker Hub.COMMENT
LOWdocker/compose/docker-compose.postgres-tika.yml1# Docker Compose file for running paperless from the docker container registry.COMMENT
LOWdocker/compose/docker-compose.postgres.yml1# Docker Compose file for running paperless from the Docker Hub.COMMENT
LOWdocker/compose/docker-compose.sqlite-tika.yml1# Docker Compose file for running paperless from the docker container registry.COMMENT
LOWdocker/compose/docker-compose.mariadb-tika.yml1# docker compose file for running paperless from the Docker Hub.COMMENT
LOWdocker/compose/docker-compose.portainer.yml1# Docker Compose file for running paperless from the Docker Hub.COMMENT
LOW…vcontainer/docker-compose.devcontainer.sqlite-tika.yml1# Docker Compose file for developing Paperless NGX in VSCode DevContainers.COMMENT
LOW.github/workflows/codeql-analysis.yml1# For most projects, this workflow file will not need changing; you simply needCOMMENT
LOWsrc-ui/playwright.config.ts41 use: { ...devices['Desktop Chrome'] },COMMENT
LOWsrc-ui/playwright.config.ts61 // use: { ...devices['iPhone 12'] },COMMENT
LOWsrc/paperless_ai/indexing.py81# each other, so only one rebuild/upsert/delete/compaction runs at a time.COMMENT
LOWsrc/paperless/settings/__init__.py41 load_dotenv(path)COMMENT
LOWsrc/documents/signals/handlers.py461 msg = f"Document {instance!s}: Cannot rename file since target path {new_path} already exists."COMMENT
LOWsrc/documents/search/_translate.py21COMMENT
Modern Structural Boilerplate14 hits · 14 pts
SeverityFileLineSnippetContext
LOWsrc/paperless/__init__.py7__all__ = [CODE
LOWsrc/paperless/settings/custom.py14logger = logging.getLogger(__name__)CODE
LOWsrc/paperless/settings/parsers.py88 def _set_nested(d: dict, keys: list[str], value: Any) -> None:CODE
LOWsrc/paperless/parsers/__init__.py50__all__ = [CODE
LOWsrc/documents/classifier.py130 def _update_data_vectorizer_hash(self) -> None:CODE
LOWsrc/documents/tasks.py338def update_document_content_maybe_archive_file(document_id) -> None:CODE
LOWsrc/documents/tasks.py635def update_document_parent_tags(tag: Tag, new_parent: Tag) -> None:CODE
LOWsrc/documents/tasks.py706def update_document_in_llm_index(document) -> None:CODE
LOWsrc/documents/__init__.py4__all__ = ["parser_check"]CODE
LOWsrc/documents/serialisers.py253 def _set_permissions(self, permissions, object) -> None:CODE
LOWsrc/documents/plugins/date_parsing/__init__.py16logger = logging.getLogger(__name__)CODE
LOWsrc/documents/plugins/date_parsing/__init__.py96__all__ = [CODE
LOWsrc/documents/plugins/date_parsing/base.py12logger = logging.getLogger(__name__)CODE
LOWsrc/documents/search/__init__.py14__all__ = [CODE
Modern AI Meta-Vocabulary3 hits · 8 pts
SeverityFileLineSnippetContext
MEDIUMdocs/advanced_usage.md142### The LLM index (RAG) and similar documentsCOMMENT
MEDIUMdocs/usage.md328See [AI features](advanced_usage.md#ai-features) for how to enable and configure these features, including choosing an LCODE
MEDIUMsrc-ui/README.md9## Code scaffoldingCOMMENT
AI Slop Vocabulary3 hits · 8 pts
SeverityFileLineSnippetContext
MEDIUMpyproject.toml14# TODO: Move certain things to groups and then utilize that furtherCOMMENT
MEDIUMsrc/paperless/parsers/tesseract.py243 # the whole text, so do not utilize it in that caseCOMMENT
LOWsrc/documents/views.py2658 # if all is not true, just pass through the provided document idsCOMMENT
AI Structural Patterns5 hits · 4 pts
SeverityFileLineSnippetContext
LOWsrc/paperless/settings/__init__.py726CODE
LOWsrc/paperless_mail/tests/test_mail.py209CODE
LOWsrc/documents/parsers.py71CODE
LOWsrc/documents/views.py2222CODE
LOWsrc/documents/tests/test_management_exporter.py155CODE
Overly Generic Function Names1 hit · 1 pts
SeverityFileLineSnippetContext
LOWsrc/paperless/network.py143 def handle_request(self, request: httpx.Request) -> httpx.Response:CODE