AI Slop Code Risk Monitor

yihong0618/bilingual_book_maker

SlopCodeMonitor badge for yihong0618/bilingual_book_maker Adjusted legacy signal; badge bands: 25 / 50 / 75 (different from dashboard bands).

Make bilingual epub books Using AI translate

33.7 High pattern signal View on GitHub

Open-Source Code Quality, Security and Technical Debt Review

This report summarizes scanner evidence for yihong0618/bilingual_book_maker, a Python project with 9,918 GitHub stars. SynthScan examined 115,956 lines of code across 286 source files, recording 3524 pattern matches distributed across 17 syntactic categories. The legacy adjusted pattern signal is 33.7 (High pattern signal); it is not an authorship estimate.

Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.

33.7
Adjusted Signal
33.7
Raw Pattern Score
100%
Time Factor
2026-10-30
Last Push
9.9K
Stars
Python
Language
116.0K
Lines of Code
286
Files
3.5K
Pattern Hits
2026-10-31
Scan Date
0.11
HC Hit Rate

Risk Review · Payload v1

Use each vector to guide manual verification of the underlying findings.

Payload schema: 1.0.0 · Engine: 2.0.0 · Scoring: heuristic-density-v1 · Scan date: 2026-10-31.

Cognitive Ownership Risk 70.1/100 · HIGH

Can maintainers explain intent, assumptions, and trade-offs? 3103 finding(s).

Hallucinated Dependency & Supply Chain Risk 3.0/100 · LOW

Are imports declared and package/API names verified? 53 finding(s).

Agent Over-Engineering Ratio 78.6/100 · CRITICAL

Are wrappers, guards, and repeated structures necessary? 3279 finding(s).

PR Review Velocity Impact 83.7/100 · CRITICAL

Which changes need focused human review? 3524 finding(s).

What These Metrics Mean

Adjusted Signal
Legacy pattern score normalized per 1,000 scanned lines and multiplied by the repository-level time factor. It is not an estimate of AI authorship.
Raw Pattern Score
Sum of severity- and context-weighted pattern findings before applying the time factor.
Time Factor
A coarse multiplier based on repository last-push metadata. It does not identify when individual code was written.
Pattern Hits
Count of configured pattern findings. Review each location and surrounding code before acting.
HC Hit Rate
High- and critical-severity findings per scanned file. Severity is a configured detector weight, not proof of a vulnerability or authorship.
Lines / Files
Scan coverage denominators used by the legacy normalized score.

Pattern-Signal History

This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.

Severity Breakdown

Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.

CRITICAL 0HIGH 32MEDIUM 259LOW 3233

Directory Score Breakdown

This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.

Pattern Findings

The scanner identified 3524 distinct pattern matches across 17 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. 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 configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.

Hyper-Verbose Identifiers2895 hits · 2525 pts
SeverityFileLineSnippetContext
LOWbook_maker/provider_loader.py213def _validate_endpoint_fields(name, provider):CODE
LOWbook_maker/cli.py2981def parallel_session_conflict(options):STRING
LOWbook_maker/endpoints.py419def resolve_classify_endpoint(options, run, provider, *, with_key=True):CODE
LOWbook_maker/pipeline/reading_edition.py378 def _settle_heading_attributes(self, result):CODE
LOWbook_maker/pipeline/reading_edition.py572def reading_edition_loader_class(CODE
LOWbook_maker/pipeline/pdf_figures.py189def parse_pdf_image_dpi_policy(text):CODE
LOWbook_maker/pipeline/docling_parser.py480def _record_failed_extraction(bundle, settings, page_range, *, reason, empty):CODE
LOWbook_maker/translator/claude_batch.py248 def _refuse_unknown_submission(self):CODE
LOWbook_maker/translator/base_translator.py863 def _fold_standing_instructions(self, turn):CODE
LOWbook_maker/translator/chatgptapi_translator.py138def _single_translation_model(language, source_language, field_language):CODE
LOWbook_maker/translator/chatgptapi_translator.py216def _single_field_description(language, source_language=None):CODE
LOWbook_maker/translator/chatgptapi_translator.py235def single_translation_schema(language, field_language=None):CODE
LOWbook_maker/translator/chatgptapi_translator.py650 def _ensure_structured_support(self, model=None):CODE
LOWbook_maker/translator/chatgptapi_translator.py685 def _demote_structured_outputs(self, reason):CODE
LOWbook_maker/translator/chatgptapi_translator.py790 def structured_json_with_image(CODE
LOWbook_maker/translator/chatgptapi_translator.py1278 def _note_temperature_rejected(self, model):CODE
LOWbook_maker/translator/chatgptapi_translator.py1319 def _structured_single_translation(self, text):CODE
LOWbook_maker/translator/chatgptapi_translator.py1632 def _create_structured_batch_messages(self, text_list, degree="strict"):CODE
LOWbook_maker/translator/chatgptapi_translator.py1706 def _do_structured_batch_translate(self, text_list):CODE
LOWbook_maker/translator/chatgptapi_translator.py1812 def _execute_structured_batch_translate(self, text_list, plist_len):CODE
LOWbook_maker/translator/chatgptapi_translator.py1896 def _execute_json_object_batch(self, messages):CODE
LOWbook_maker/translator/chatgptapi_translator.py2016 def add_to_batch_translate_queue(self, book_index, text):CODE
LOWbook_maker/translator/chatgptapi_translator.py2133 def create_batch_context_messages(self, index):CODE
LOWbook_maker/translator/qwen_translator.py155 def _create_translation_options(self):CODE
LOWbook_maker/translator/capabilities.py631 def note_temperature_rejected(self, model):CODE
LOWbook_maker/translator/capabilities.py660 def note_compact_cap_rejected(self, model):CODE
LOWbook_maker/translator/gemini_translator.py264 def _extract_translation_text(self, response_text: str) -> str:CODE
LOWbook_maker/translator/gemini_translator.py288 def _manage_conversation_history(self) -> None:CODE
LOWbook_maker/translator/gemini_translator.py471 def _batch_translate_with_retry(CODE
LOWbook_maker/loader/plan.py1188def _classed_inline_ancestors(node, owner, keep=frozenset()):CODE
LOWbook_maker/loader/disclosure.py359def is_prior_translation_metadata(item):CODE
LOWbook_maker/loader/disclosure.py694def allocate_translation_metadata_names(book, ids=None, files=None):CODE
LOWbook_maker/loader/md_loader.py494 def _translate_sections_parallel(self, pending, results, report):CODE
LOWbook_maker/loader/md_loader.py623 def _clone_translator_for_context(self):CODE
LOWbook_maker/loader/md_loader.py773 def _would_exceed_chunk_budget(self, batch, next_block):CODE
LOWbook_maker/loader/helper.py196def derive_translation_identity(new_book, source_book, *facets):CODE
LOWbook_maker/loader/helper.py303def has_restricted_content_model(element):CODE
LOWbook_maker/loader/helper.py326def append_inline_translation(element, text, translation_style="", language=None):CODE
LOWbook_maker/loader/helper.py562def translate_list_or_singles(model, texts):CODE
LOW⚡book_maker/loader/epub_loader.py3631 def _create_chapter_translator(self):CODE
LOW⚡book_maker/loader/epub_loader.py3636 def _clone_translator_for_context(self):CODE
LOWbook_maker/loader/epub_loader.py243def check_file_filters_against(book, only_filelist, exclude_filelist):CODE
LOWbook_maker/loader/epub_loader.py831 def _wants_translation_metadata(self):CODE
LOWbook_maker/loader/epub_loader.py861 def _run_translation_metadata(self):CODE
LOWbook_maker/loader/epub_loader.py986 def _is_content_only_excluded_tags(self, p):CODE
LOWbook_maker/loader/epub_loader.py1182 def _narrate_session_compact_budget(self):CODE
LOWbook_maker/loader/epub_loader.py1252 def _report_test_slice_requests(self, chapter_plans, unit_count):CODE
LOWbook_maker/loader/epub_loader.py1379 def _check_resume_run_fingerprint(self):CODE
LOWbook_maker/loader/epub_loader.py1476 def _prepare_translation_plan(self):CODE
LOWbook_maker/loader/epub_loader.py2197 def _append_inline_translation(unit, t_text, translation_style="", language=None):CODE
LOWbook_maker/loader/epub_loader.py2232 def _insert_anchored_translation(unit, t_text, translation_style="", language=None):CODE
LOWbook_maker/loader/epub_loader.py2271 def _write_single_translation(unit, t_text, translation_style="", language=None):CODE
LOWbook_maker/loader/epub_loader.py2628 def _insert_trans_preserving_tags(CODE
LOWbook_maker/loader/epub_loader.py2797 def _process_combined_paragraph(CODE
LOWbook_maker/loader/epub_loader.py2972 def _process_paragraph_sentence_mode(self, p, soup):CODE
LOWbook_maker/loader/epub_loader.py3015 def find_items_containing_string(self, book, search_string):CODE
LOWbook_maker/loader/epub_loader.py3504 def _record_translation_result(self, index, translated_text):CODE
LOWbook_maker/loader/epub_loader.py3517 def _process_chapter_parallel(self, chapter_data):CODE
LOWbook_maker/loader/epub_loader.py3667 def _translate_with_chapter_context(CODE
LOWbook_maker/loader/epub_loader.py3697 def _translate_paragraphs_acc_parallel(CODE
2835 more matches not shown…
Decorative Section Separators200 hits · 763 pts
SeverityFileLineSnippetContext
MEDIUMbook_maker/classifier.py45# --------------------------------------------------------------------------COMMENT
MEDIUMbook_maker/classifier.py47# --------------------------------------------------------------------------COMMENT
MEDIUMbook_maker/classifier.py132# --------------------------------------------------------------------------COMMENT
MEDIUMbook_maker/classifier.py134# --------------------------------------------------------------------------COMMENT
MEDIUMbook_maker/classifier.py189# --------------------------------------------------------------------------COMMENT
MEDIUMbook_maker/classifier.py191# --------------------------------------------------------------------------COMMENT
MEDIUMbook_maker/classifier.py357# --------------------------------------------------------------------------COMMENT
MEDIUMbook_maker/classifier.py359# --------------------------------------------------------------------------COMMENT
MEDIUMbook_maker/classifier.py510# --------------------------------------------------------------------------COMMENT
MEDIUMbook_maker/classifier.py512# --------------------------------------------------------------------------COMMENT
MEDIUMbook_maker/pipeline/decisions.py342# --------------------------------------------------------------------------COMMENT
MEDIUMbook_maker/pipeline/decisions.py344# --------------------------------------------------------------------------COMMENT
MEDIUMbook_maker/pipeline/decisions.py485# --------------------------------------------------------------------------COMMENT
MEDIUMbook_maker/pipeline/decisions.py487# --------------------------------------------------------------------------COMMENT
MEDIUMbook_maker/pipeline/decisions.py541# --------------------------------------------------------------------------COMMENT
MEDIUMbook_maker/pipeline/decisions.py543# --------------------------------------------------------------------------COMMENT
MEDIUMbook_maker/pipeline/decisions.py666# --------------------------------------------------------------------------COMMENT
MEDIUMbook_maker/pipeline/decisions.py668# --------------------------------------------------------------------------COMMENT
MEDIUMbook_maker/pipeline/decisions.py813# --------------------------------------------------------------------------COMMENT
MEDIUMbook_maker/pipeline/decisions.py815# --------------------------------------------------------------------------COMMENT
MEDIUMbook_maker/pipeline/pdf_figures.py241# --------------------------------------------------------------------------COMMENT
MEDIUMbook_maker/pipeline/pdf_figures.py243# --------------------------------------------------------------------------COMMENT
MEDIUMbook_maker/pipeline/pdf_figures.py454# --------------------------------------------------------------------------COMMENT
MEDIUMbook_maker/pipeline/pdf_figures.py456# --------------------------------------------------------------------------COMMENT
MEDIUMbook_maker/loader/plan.py1423# ---------------------------------------------------------------------------COMMENT
MEDIUMbook_maker/loader/plan.py1439# ---------------------------------------------------------------------------COMMENT
MEDIUMtools/export_requirements.sh18# -----------------------------------------------------------COMMENT
MEDIUM⚡tests/test_pdf_source_edit_guard.py140# --------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/test_pdf_source_edit_guard.py142# --------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/test_pdf_source_edit_guard.py261# --------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/test_pdf_source_edit_guard.py263# --------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/test_pdf_source_edit_guard.py304# --------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/test_pdf_source_edit_guard.py306# --------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/test_pdf_source_edit_guard.py363# --------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/test_pdf_source_edit_guard.py365# --------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/test_pdf_source_edit_guard.py527# --------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/test_pdf_source_edit_guard.py529# --------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/test_reading_edition_parallel.py182# --------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/test_reading_edition_parallel.py184# --------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/test_reading_edition_parallel.py305# --------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/test_reading_edition_parallel.py307# --------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/test_reading_edition_parallel.py350# --------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/test_reading_edition_parallel.py352# --------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/test_pdf_to_epub_cli.py77# --------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/test_pdf_to_epub_cli.py79# --------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/test_pdf_to_epub_cli.py408# --------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/test_pdf_to_epub_cli.py410# --------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/test_pdf_to_epub_cli.py646# --------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/test_pdf_to_epub_cli.py648# --------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/test_pdf_to_epub_cli.py790# --------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/test_pdf_to_epub_cli.py793# --------------------------------------------------------------------------COMMENT
MEDIUMtests/test_reading_edition_glossary.py118# --------------------------------------------------------------------------STRING
MEDIUMtests/test_reading_edition_glossary.py120# --------------------------------------------------------------------------STRING
MEDIUM⚡tests/test_reading_edition_glossary.py213# --------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/test_reading_edition_glossary.py215# --------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/test_reading_edition_glossary.py297# --------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/test_reading_edition_glossary.py299# --------------------------------------------------------------------------COMMENT
MEDIUMtests/test_endpoints.py748# --------------------------------------------------------------------------COMMENT
MEDIUMtests/test_endpoints.py750# --------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/test_pdf_formula.py61# --------------------------------------------------------------------------COMMENT
140 more matches not shown…
Excessive Try-Catch Wrapping141 hits · 156 pts
SeverityFileLineSnippetContext
LOWbook_maker/classifier.py165 except Exception:CODE
LOWbook_maker/classifier.py795 except Exception as err: # transport: refused, reset, timed outCODE
LOWbook_maker/codex_client.py61 except Exception:CODE
LOW⚡book_maker/codex_client.py458 except Exception:CODE
LOW⚡book_maker/codex_client.py466 except Exception:CODE
LOW⚡book_maker/codex_client.py472 except Exception:CODE
LOW⚡book_maker/codex_client.py476 except Exception:CODE
LOW⚡book_maker/codex_client.py481 except Exception:CODE
MEDIUMbook_maker/codex_client.py400def _unknown_feature(self):CODE
LOWbook_maker/cli.py488 except Exception as e: # noqa: BLE001 - re-raised as the sentence aboveCODE
LOWbook_maker/cli.py577 except Exception as e: # noqa: BLE001 - carried to main, re-raised thereCODE
LOWbook_maker/cli.py928 except Exception as e:CODE
MEDIUMbook_maker/cli.py3147 print("Error: please provide the path of your book using --book_name <path>")CODE
MEDIUMbook_maker/cli.py3150 print(f"Error: the book {options.book_name!r} does not exist.")CODE
LOWbook_maker/cli.py3732 except Exception as ex:CODE
LOWbook_maker/cli.py3740 except Exception as err:CODE
LOWbook_maker/cli.py3798 except Exception as err:CODE
LOWbook_maker/pipeline/pdf_common.py259 except Exception as err:CODE
LOWbook_maker/pipeline/pdf_common.py284 except Exception as err:CODE
MEDIUMbook_maker/pipeline/pdf_common.py108def _pdfium():CODE
LOWbook_maker/pipeline/translate.py457 except Exception as err:CODE
LOWbook_maker/pipeline/decisions.py927 except Exception as err:CODE
LOWbook_maker/pipeline/stages.py291 except Exception:CODE
LOWbook_maker/pipeline/pdf_figures.py716 except Exception as missing:CODE
LOWbook_maker/pipeline/pdf_figures.py835 except Exception as err:CODE
LOWbook_maker/pipeline/pdf_figures.py846 except Exception as err:CODE
LOWbook_maker/pipeline/pdf_figures.py860 except Exception as err:CODE
LOWbook_maker/pipeline/pdf_figures.py1043 except Exception:CODE
MEDIUMbook_maker/pipeline/pdf_figures.py697def _describe_recorded(block):CODE
LOWbook_maker/pipeline/datalab.py225 except Exception as err:CODE
LOWbook_maker/pipeline/datalab.py257 except Exception as err:CODE
LOWbook_maker/pipeline/datalab.py331 except Exception:CODE
LOWbook_maker/pipeline/datalab.py343 except Exception as err:CODE
LOWbook_maker/pipeline/datalab.py367 except Exception as err:CODE
LOWbook_maker/pipeline/datalab.py404 except Exception as err:CODE
MEDIUMbook_maker/pipeline/datalab.py150def _requests_session():CODE
MEDIUMbook_maker/pipeline/datalab.py328def _body(response):CODE
LOWbook_maker/pipeline/progress.py176 except Exception:CODE
LOWbook_maker/pipeline/progress.py195 except Exception:CODE
LOWbook_maker/pipeline/docling_parser.py192 except Exception:CODE
LOWbook_maker/pipeline/docling_parser.py681 except Exception as err:CODE
LOWbook_maker/pipeline/docling_parser.py1013 except Exception as err:CODE
LOWbook_maker/pipeline/docling_parser.py1120 except Exception as err:CODE
LOWbook_maker/pipeline/docling_parser.py1390 except Exception:CODE
LOWbook_maker/pipeline/docling_parser.py1575 except Exception:CODE
MEDIUMbook_maker/pipeline/docling_parser.py1387def emit(self, record):CODE
MEDIUMbook_maker/pipeline/docling_parser.py1570def _installed_version():CODE
LOWbook_maker/translator/claude_batch.py295 except Exception as err:CODE
LOWbook_maker/translator/claude_batch.py326 except Exception as err:CODE
MEDIUMbook_maker/translator/chatgptapi_translator.py1297def _temperature_tolerant(self, call, model):CODE
MEDIUMbook_maker/translator/chatgptapi_translator.py1567def translate(self, text, needprint=True):CODE
LOWbook_maker/translator/chatgptapi_translator.py1390 except Exception:CODE
LOWbook_maker/translator/chatgptapi_translator.py1474 except Exception as e:CODE
LOWbook_maker/translator/chatgptapi_translator.py1571 except Exception as e:CODE
LOWbook_maker/translator/chatgptapi_translator.py1629 except Exception:CODE
LOWbook_maker/translator/chatgptapi_translator.py1747 except Exception as e:CODE
LOWbook_maker/translator/caiyun_translator.py59 except Exception as e:CODE
LOWbook_maker/translator/vision.py212 except Exception as e:CODE
LOWbook_maker/translator/qwen_translator.py261 except Exception as e:CODE
LOWbook_maker/translator/claude_translator.py452 except Exception:CODE
81 more matches not shown…
Empty Error Handlers23 hits · 115 pts
SeverityFileLineSnippetContext
HIGHbook_maker/session_context.py1169except OSError:CODE
HIGHbook_maker/codex_client.py466except Exception:CODE
HIGHbook_maker/codex_client.py541except (ValueError, OSError):CODE
HIGHbook_maker/codex_client.py581except CodexError:CODE
HIGHbook_maker/codex_client.py458except Exception:CODE
HIGHbook_maker/codex_client.py481except Exception:CODE
HIGHbook_maker/codex_client.py476except Exception:CODE
HIGHbook_maker/pipeline/progress.py149except (AttributeError, ValueError):CODE
HIGHbook_maker/pipeline/progress.py195except Exception:CODE
HIGHbook_maker/pipeline/docling_parser.py625except ImportError:CODE
HIGHbook_maker/pipeline/docling_parser.py192except Exception:CODE
HIGHbook_maker/translator/qwen_translator.py136except StopIteration:CODE
HIGHbook_maker/translator/codex_translator.py366except CodexError:CODE
HIGHbook_maker/loader/pdf_loader.py271except Exception:CODE
HIGHbook_maker/loader/ledger.py420except OSError:CODE
HIGHbook_maker/loader/epub_loader.py2713except Exception:CODE
HIGHbook_maker/loader/epub_loader.py2734except Exception:CODE
HIGHbook_maker/loader/epub_loader.py2751except Exception:CODE
HIGHtests/test_endpoints.py895except Exception:CODE
HIGHtests/test_endpoints.py901except Exception:CODE
HIGHtests/test_context_mode_cli.py147except BaseException:CODE
HIGHtests/test_context_mode_cli.py211except BaseException:CODE
HIGHtests/hermetic/sitecustomize.py59except Exception: # pragma: no cover - tenacity is a hard dependencyCODE
AI Slop Vocabulary31 hits · 97 pts
SeverityFileLineSnippetContext
MEDIUMbook_maker/cli.py2969# below, and the `--to-epub` harness refuses it *before* it pays for a PDFSTRING
MEDIUMbook_maker/pipeline/bundle.py76# One page-selection spelling for the whole harness, numbered from 1 theCOMMENT
MEDIUMbook_maker/pipeline/translate.py49# Owned by the harness: the book is the bundle's, the resume decision isCOMMENT
MEDIUMbook_maker/pipeline/translate.py84# the harness sets for itself, and the record of which spelling of theCOMMENT
MEDIUMbook_maker/pipeline/reading_edition.py134 # the harness.COMMENT
MEDIUMbook_maker/pipeline/stages.py134 # The CLI keeps the resolution as `pdf_image_dpi`, the harness as aCOMMENT
MEDIUMbook_maker/pipeline/messages.py20# is shell-quoted so the command can be pasted. The harness export rebuildsCOMMENT
MEDIUMbook_maker/pipeline/messages.py31# The same refusal from the staged harness (`translate`, `run`), where thereCOMMENT
MEDIUMbook_maker/pipeline/messages.py472# the harness has no --to-epub, so its copy opens with its own condition.COMMENT
MEDIUMbook_maker/pipeline/to_epub.py279 # export and then the copy over `destination`, since the harnessCOMMENT
LOWbook_maker/translator/qwen_translator.py346 # once wiped the model it had just set.COMMENT
LOWbook_maker/loader/epub_loader.py2670 # Simpler approach: just set the translation and re-append code at the endCOMMENT
MEDIUM⚡tests/test_pdf_source_edit_guard.py141# The refusal, one reason per check, through the harnessCOMMENT
MEDIUM⚡tests/test_reading_edition_parallel.py376 # the extraction has been paid for, and the harness can then only reportCOMMENT
MEDIUM⚡tests/test_reading_edition_parallel.py377 # "stopped before finishing (exit 1)". Decided: the harness refuses theCOMMENT
MEDIUMtests/test_reading_edition_glossary.py43SOURCE = """# The harnessCODE
MEDIUMtests/test_reading_edition_glossary.py168 bundle.bilingual_markdown.write_text("# The harness\n", encoding="utf-8")CODE
MEDIUMtests/test_reading_edition_glossary.py234 assert "{#the-harness}" in bundle.bilingual_markdown.read_text(encoding="utf-8")CODE
MEDIUMtests/test_reading_edition_glossary.py251 heading = sent["# The harness"]CODE
MEDIUM⚡tests/test_pdf_ocr_engine.py136 # the harness has no --to-epub; the rest of the sentence is the sameCOMMENT
MEDIUMtests/test_pdf_ocr_engine.py402# ------------------------------------------------------------------ harnessCOMMENT
MEDIUM⚡tests/test_pandoc_version.py91 # PATH and --pandoc is offered as the harness'sCOMMENT
MEDIUMtests/test_disclosure.py381 # The name is looked up by registry identity, and the hermetic harnessCOMMENT
MEDIUM⚡tests/test_bundle_pipeline.py724# The harness surfaceCOMMENT
MEDIUM⚡tests/test_bundle_pipeline.py1195# Mending a translation by hand: the harness export rebuilds the bundle's ownCOMMENT
MEDIUMtests/test_bundle_pipeline.py876 # The class used on its own states no language: the bundle harness isCOMMENT
MEDIUMtests/test_prompt_capture_server.py318 # harness). These tests are the opposite bargain — a real subprocessCOMMENT
MEDIUMtests/test_prompt_capture_server.py319 # against a real local endpoint — and the harness riding into theCOMMENT
MEDIUM⚡tests/test_prompt_sections.py382 # The hermetic harness (tests/hermetic, when it is on PYTHONPATH)COMMENT
LOW⚡tests/test_structured_classify.py720 # return over the value it had just set; every request went out withCOMMENT
MEDIUM⚡tests/test_pdf_ocr_replace_layer.py777# ---------------------------------------------------------------- harnessCOMMENT
Over-Commented Block77 hits · 72 pts
SeverityFileLineSnippetContext
LOWpyproject.toml41# The PDF reading edition (--to-epub): docling reads the PDF with layoutCOMMENT
LOWpyproject.toml101 "live_provider: calls a real translation provider (needs keys and network; run with -m live_provider)",COMMENT
LOWbook_maker/session_context.py41COMMENT
LOWbook_maker/session_context.py61# cost up to 56% more *and* was the only cell where register drift wasCOMMENT
LOWbook_maker/session_context.py81# measured that and it did not hold: on animal_farm through gpt-5.6-luna,COMMENT
LOWbook_maker/session_context.py101# 8192 stands anyway, by owner ruling and with that price known. The case isCOMMENT
LOWbook_maker/session_context.py121#COMMENT
LOWbook_maker/session_context.py141#COMMENT
LOWbook_maker/session_context.py381COMMENT
LOWbook_maker/session_context.py401# the model is being asked to compress its own context, not to write a reportCOMMENT
LOWbook_maker/session_context.py1041 summary: strCOMMENT
LOWbook_maker/classifier.py501 return base or "the endpoint's default host"COMMENT
LOWbook_maker/classifier.py521# reference with a lost skip costing 10 and an extra translate costing 1,COMMENT
LOWbook_maker/legacy_cli.py281 # Not an old alias: --model names an actual model id, which isCOMMENT
LOWbook_maker/cli.py641# raised from 500, and the honest case for it is geometry rather than price.COMMENT
LOWbook_maker/cli.py1001# id the audit row it enforces, for the tests to name; never printedCOMMENT
LOWbook_maker/cli.py3161 # everything below belongs to that inner run, which resolves it forCOMMENT
LOWbook_maker/cli.py3201 # takes the derived default exactly as _plan_token_budget does. SinceCOMMENT
LOWbook_maker/cli.py3561 # Reaches the prompt/system message and the schema fieldCOMMENT
LOWbook_maker/endpoints.py101# aliases `jev-latest` (-> jev-1.13.0) and `jev-preview`, and versioned idsCOMMENT
LOWbook_maker/prompt_file.py41# is refused by name rather than silently dropped, because a misspelledCOMMENT
LOWbook_maker/pipeline/pdf_formula.py41# `mark` gives every undecoded formula a text, so the third branch isCOMMENT
LOWbook_maker/pipeline/datalab_markdown.py41FENCE = re.compile(r"^\s*(`{3,}|~{3,})")COMMENT
LOWbook_maker/pipeline/pdf_figures.py61# docling's own pictures, in the same staging directory (the adapter'sCOMMENT
LOWbook_maker/pipeline/messages.py21# only the bundle's own EPUB and writes nothing beside the PDF (lead 260925,COMMENT
LOWbook_maker/pipeline/docling_parser.py1041 )COMMENT
LOWbook_maker/pipeline/docling_parser.py1181COMMENT
LOWbook_maker/pipeline/preflight.py41# attributes and `$...$` math are all in it, and they are exactly theCOMMENT
LOWbook_maker/translator/base_translator.py281COMMENT
LOWbook_maker/translator/base_translator.py301 BATCH_SYS_MSG_PER_REQUEST = TrueCOMMENT
LOWbook_maker/translator/base_translator.py321COMMENT
LOWbook_maker/translator/base_translator.py341 # file, which is what lets the run record its translation metadata without everCOMMENT
LOWbook_maker/translator/base_translator.py481 if (known := (self.learned or Glossary()).lookup(entry.term)) is NoneCOMMENT
LOWbook_maker/translator/base_translator.py501 # per compaction for the rest of the book.COMMENT
LOWbook_maker/translator/base_translator.py741 # paragraph has no structure to keep, and telling a model to preserve oneCOMMENT
LOWbook_maker/translator/base_translator.py761 #COMMENT
LOWbook_maker/translator/base_translator.py1321 List of extracted paragraphsCOMMENT
LOWbook_maker/translator/base_translator.py1381COMMENT
LOWbook_maker/translator/base_translator.py1401 original_prompt = getattr(self, prompt_attr, prompt_template)COMMENT
LOWbook_maker/translator/chatgptapi_translator.py421 # The address this route calls when the command names none. None meansCOMMENT
LOWbook_maker/translator/chatgptapi_translator.py441 session = NoneCOMMENT
LOWbook_maker/translator/chatgptapi_translator.py461 # test) but is spelled here as a plain class attribute: importing theCOMMENT
LOWbook_maker/translator/chatgptapi_translator.py1741 # The reply arrived and did not answer the request. That is theCOMMENT
LOWbook_maker/translator/__init__.py21# services that speak only their own protocol and take no model at all.COMMENT
LOWbook_maker/translator/capabilities.py161# only caller (the session compact turn) truncates on this side anyway.COMMENT
LOWbook_maker/translator/codex_translator.py61COMMENT
LOWbook_maker/translator/codex_translator.py181COMMENT
LOWbook_maker/translator/codex_translator.py561 return textCOMMENT
LOWbook_maker/loader/plan.py461 return "link"COMMENT
LOWbook_maker/loader/plan.py561# Decoration a folio or a verse number routinely wears. Stripped from theCOMMENT
LOWbook_maker/loader/plan.py1081 chars: intCOMMENT
LOWbook_maker/loader/plan.py1401 for ordinal, unit in enumerate(fp.units):COMMENT
LOWbook_maker/loader/plan.py1421GROUP_MAX_CHARS = 500COMMENT
LOWbook_maker/loader/plan.py1441# Units one *general* (token-budget) group may carry.COMMENT
LOWbook_maker/loader/plan.py1461# budget is what actually caps the content of a request, and this is theCOMMENT
LOWbook_maker/loader/plan.py1481SUBSTRICT_GROUP_MAX_UNITS = GENERAL_GROUP_MAX_UNITS // 2COMMENT
LOWbook_maker/loader/plan.py1501# Also measured, and pointing the other way: per-content-token cost fallsCOMMENT
LOWbook_maker/loader/plan.py1521# floor, at the same 4:3 ratio it has always had — 1600, where the old pairCOMMENT
LOWbook_maker/loader/ledger.py41import tempfileCOMMENT
LOWbook_maker/loader/markers.py41INLINE_MARKER_MAX_CHARS = 40COMMENT
17 more matches not shown…
Deep Nesting71 hits · 58 pts
SeverityFileLineSnippetContext
LOWbook_maker/legacy_cli.py188CODE
LOWbook_maker/codex_client.py508CODE
LOWbook_maker/cli.py492CODE
LOWbook_maker/cli.py3108CODE
LOWbook_maker/utils.py500CODE
LOWbook_maker/structured.py38CODE
LOWbook_maker/endpoints.py340CODE
LOWbook_maker/pipeline/pdf_common.py229CODE
LOWbook_maker/pipeline/pdf_formula.py129CODE
LOWbook_maker/pipeline/pdf_formula.py171CODE
LOWbook_maker/pipeline/epub_export.py182CODE
LOWbook_maker/pipeline/datalab_markdown.py86CODE
LOWbook_maker/pipeline/datalab_markdown.py123CODE
LOWbook_maker/pipeline/decisions.py363CODE
LOWbook_maker/pipeline/decisions.py604CODE
LOWbook_maker/pipeline/decisions.py703CODE
LOWbook_maker/pipeline/decisions.py882CODE
LOWbook_maker/pipeline/pdf_figures.py775CODE
LOWbook_maker/pipeline/pdf_figures.py824CODE
LOWbook_maker/pipeline/pdf_headings.py163CODE
LOWbook_maker/pipeline/pdf_headings.py253CODE
LOWbook_maker/pipeline/docling_parser.py898CODE
LOWbook_maker/pipeline/preflight.py523CODE
LOWbook_maker/translator/chatgptapi_translator.py839CODE
LOWbook_maker/translator/chatgptapi_translator.py2133CODE
LOWbook_maker/translator/qwen_translator.py221CODE
LOWbook_maker/translator/capabilities.py515CODE
LOWbook_maker/translator/capabilities.py533CODE
LOWbook_maker/loader/srt_loader.py194CODE
LOWbook_maker/loader/plan.py232CODE
LOWbook_maker/loader/plan.py851CODE
LOWbook_maker/loader/plan.py946CODE
LOWbook_maker/loader/plan.py365CODE
LOWbook_maker/loader/plan.py896CODE
LOWbook_maker/loader/plan.py1847CODE
LOWbook_maker/loader/plan.py1926CODE
LOWbook_maker/loader/pdf_loader.py18CODE
LOWbook_maker/loader/pdf_loader.py169CODE
LOWbook_maker/loader/pdf_loader.py354CODE
LOWbook_maker/loader/disclosure.py252CODE
LOWbook_maker/loader/disclosure.py533CODE
LOWbook_maker/loader/txt_loader.py91CODE
LOWbook_maker/loader/md_loader.py130CODE
LOWbook_maker/loader/md_loader.py376CODE
LOWbook_maker/loader/font_obfuscation.py267CODE
LOWbook_maker/loader/epub_loader.py283CODE
LOWbook_maker/loader/epub_loader.py526CODE
LOWbook_maker/loader/epub_loader.py950CODE
LOWbook_maker/loader/epub_loader.py1476CODE
LOWbook_maker/loader/epub_loader.py2041CODE
LOWbook_maker/loader/epub_loader.py2135CODE
LOWbook_maker/loader/epub_loader.py2797CODE
LOWbook_maker/loader/epub_loader.py3224CODE
LOWbook_maker/loader/epub_loader.py3336CODE
LOWbook_maker/loader/epub_loader.py3517CODE
LOWbook_maker/loader/epub_loader.py3830CODE
LOWbook_maker/loader/epub_loader.py3901CODE
LOWbook_maker/loader/epub_loader.py4215CODE
LOWbook_maker/loader/epub_loader.py438CODE
LOWbook_maker/loader/classify/session.py383CODE
11 more matches not shown…
Magic Placeholder Names6 hits · 30 pts
SeverityFileLineSnippetContext
HIGHREADME.md668export OPENAI_API_KEY=${your_api_key}CODE
HIGHREADME.md716export BBM_CAIYUN_API_KEY=${your_api_key}CODE
HIGHREADME-CN.md576export OPENAI_API_KEY=${your_api_key}CODE
HIGHREADME-CN.md614export BBM_CAIYUN_API_KEY=${your_api_key}CODE
HIGHdocs/zh/env_settings.md10export BBM_API_KEY=${your_api_key}CODE
HIGHdocs/en/env_settings.md10export BBM_API_KEY=${your_api_key}CODE
Unused Imports33 hits · 26 pts
SeverityFileLineSnippetContext
LOWbook_maker/session_context.py29CODE
LOWbook_maker/classifier.py43CODE
LOWbook_maker/codex_client.py31CODE
LOWbook_maker/glossary.py21CODE
LOWbook_maker/pipeline/__init__.py9CODE
LOWbook_maker/translator/codex_translator.py18CODE
LOWbook_maker/loader/plan.py66CODE
LOWbook_maker/loader/classify/session.py46CODE
LOWbook_maker/loader/classify/__init__.py30CODE
LOWbook_maker/loader/classify/__init__.py31CODE
LOWbook_maker/loader/classify/__init__.py32CODE
LOWbook_maker/loader/classify/__init__.py32CODE
LOWbook_maker/loader/classify/__init__.py32CODE
LOWbook_maker/loader/classify/__init__.py38CODE
LOWbook_maker/loader/classify/__init__.py39CODE
LOWtools/docs_to_wiki.py31CODE
LOWtools/pdf_to_book.py39CODE
LOWtools/pdf_to_book.py39CODE
LOWtools/pdf_to_book.py39CODE
LOWtests/test_corpus_epub_samples.py30CODE
LOWtests/test_corpus_epub_samples.py425CODE
LOWtests/test_pdf_to_epub_cli.py11CODE
LOWtests/test_pdf_formula.py13CODE
LOWtests/test_translation_plan.py2230CODE
LOWtests/test_translation_plan.py2230CODE
LOWtests/test_translation_plan.py2242CODE
LOWtests/test_translation_plan.py2013CODE
LOWtests/test_glossary.py10CODE
LOWtests/test_pdf_decisions.py29CODE
LOWtests/test_structured_classify.py11CODE
LOWtests/test_structured_classify.py12CODE
LOWtests/test_structured_classify.py14CODE
LOWtests/test_structured_classify.py30CODE
AI Structural Patterns16 hits · 15 pts
SeverityFileLineSnippetContext
LOWbook_maker/pipeline/stages.py295CODE
LOWbook_maker/pipeline/datalab.py85CODE
LOWbook_maker/pipeline/to_epub.py155CODE
LOWbook_maker/pipeline/docling_parser.py898CODE
LOWbook_maker/pipeline/docling_parser.py1428CODE
LOWbook_maker/translator/chatgptapi_translator.py477CODE
LOWbook_maker/translator/qwen_translator.py76CODE
LOWbook_maker/translator/claude_translator.py192CODE
LOWbook_maker/translator/codex_translator.py210CODE
LOWbook_maker/loader/srt_loader.py32CODE
LOWbook_maker/loader/pdf_loader.py169CODE
LOWbook_maker/loader/txt_loader.py10CODE
LOWbook_maker/loader/md_loader.py41CODE
LOWbook_maker/loader/epub_loader.py283CODE
LOWtests/pipeline_helpers.py128CODE
LOWtests/pipeline_helpers.py322CODE
Self-Referential Comments5 hits · 15 pts
SeverityFileLineSnippetContext
MEDIUMbook_maker/translator/claude_translator.py385 # Create a single message pair for all previous contextCOMMENT
MEDIUMbook_maker/loader/epub_loader.py2659 # Create a copy to work withCOMMENT
MEDIUMbook_maker/loader/epub_loader.py3529 # Create a chapter-specific translator instance to avoid context conflictsCOMMENT
MEDIUMbook_maker/loader/epub_loader.py3729 # Create a temporary translator with chapter contextCOMMENT
MEDIUMbook_maker/loader/epub_loader.py4022 # Create a simpler progress bar for parallel processingCOMMENT
Modern AI Meta-Vocabulary3 hits · 10 pts
SeverityFileLineSnippetContext
MEDIUMbook_maker/loader/ledger.py57# a context window.COMMENT
MEDIUM⚡tests/test_chatgptapi_translator.py1079 # all the joined blob — may be left in the context windowCOMMENT
MEDIUM⚡tests/test_cli.py1492 # `0` used to mean "size it from the model's own context window". OpenAI'sCOMMENT
Cross-Language Confusion2 hits · 8 pts
SeverityFileLineSnippetContext
HIGHbook_maker/cli.py3283 "model run rules on every row still null, an agent run hands "CODE
HIGHtests/test_translation_plan.py3498 them null, with no prior verdict to lean on. A person's ruling is aSTRING
Fake / Example Data12 hits · 6 pts
SeverityFileLineSnippetContext
LOWtests/test_translation_plan.py933 "dummy-key",CODE
LOWtests/test_translation_plan.py1368 "dummy-key",CODE
LOWtests/test_translation_plan.py2030 str(src), FakeModel, "dummy-key", resume=True, language="zh-hans"CODE
LOWtests/test_translation_plan.py2060 str(src), FakeModel, "dummy-key", resume=True, language="zh-hans"CODE
LOWtests/test_translation_plan.py2094 str(src), FakeModel, "dummy-key", resume=True, language="zh-hans"CODE
LOWtests/test_translation_plan.py2129 str(src), StopsPartway, "dummy-key", resume=True, language="zh-hans"CODE
LOWtests/test_plan_auto.py188 str(src), FakeModel, "dummy-key", resume=False, language="zh-hans"CODE
LOWtests/test_plan_auto.py277 str(src), FakeModel, "dummy-key", resume=False, language="zh-hans"CODE
LOWtests/test_plan_auto.py292 str(src), model_cls, "dummy-key", resume=True, language="zh-hans"CODE
LOWtests/test_plan_auto.py332 str(src), ClassifyingModel, "dummy-key", resume=False, language="zh-hans"CODE
LOWtests/test_plan_auto.py379 "fake-key",CODE
LOWtests/test_general_grouping_and_json_degree.py240 str(src), model_cls, "dummy-key", resume=False, language="zh-hans"CODE
Redundant / Tautological Comments4 hits · 6 pts
SeverityFileLineSnippetContext
LOWbook_maker/translator/gemini_translator.py518 # Check if fatal error was already detected during batch attemptCOMMENT
LOWbook_maker/loader/epub_loader.py994 # Check if paragraph contains only excluded content tagsCOMMENT
LOWbook_maker/loader/epub_loader.py2646 # Check if paragraph has excluded content tagsCOMMENT
LOWbook_maker/loader/epub_loader.py2879 # Check if translation failedCOMMENT
Docstring Block Structure1 hit · 5 pts
SeverityFileLineSnippetContext
HIGHbook_maker/translator/base_translator.py1354 Send one delimiter-separated request for a whole group. Args: text_list: List of texts to STRING
Modern Structural Boilerplate4 hits · 4 pts
SeverityFileLineSnippetContext
LOWbook_maker/pipeline/__init__.py11__all__ = ["PipelineError"]CODE
LOWbook_maker/loader/helper.py21logger = logging.getLogger(__name__)CODE
LOWbook_maker/loader/classify/__init__.py122__all__ = [CODE
LOWtools/pdf_to_book.py51__all__ = [CODE