← Về thư mục
scripts/verify_submission_package.py
- _DefusedXmlException · class · L77-L78 — class _DefusedXmlException(Exception)
- compute_package_fingerprint · function · L183-L207 — def compute_package_fingerprint(package_dir: Path, report_relpath: Optional[str] = None) -> str
- compute_inputs_fingerprint · function · L210-L226 — def compute_inputs_fingerprint(venue_profile_path: Optional[str], join_map_path: Optional[str], passport_path: Optional[str]) -> str
- _collect_package_texts · function · L229-L243 — def _collect_package_texts(package_dir: Path ) -> tuple[dict[str, str], dict[str, str]]
- extract_ref_markers · function · L246-L252 — def extract_ref_markers(manuscripts: dict[str, str]) -> dict[str, str]
- _iter_bib_entries · function · L255-L263 — def _iter_bib_entries(bibs: dict[str, str]) -> Iterator[tuple[str, str]]
- parse_bib_keys · function · L266-L267 — def parse_bib_keys(bibs: dict[str, str]) -> set[str]
- _parse_bib_metadata · function · L270-L284 — def _parse_bib_metadata(bibs: dict[str, str]) -> dict[tuple, set]
- _first_author_surname · function · L287-L292 — def _first_author_surname(author_field: str) -> str
- _corpus_metadata · function · L295-L305 — def _corpus_metadata(passport: dict[str, Any]) -> dict[tuple, set]
- _strip_reference_section · function · L308-L310 — def _strip_reference_section(text: str) -> str
- _extract_fallback · function · L313-L347 — def _extract_fallback(manuscripts: dict[str, str], metadata: dict[tuple, set] ) -> tuple[dict[str, str], dict[str, str]]
- _check · function · L350-L371 — def _check(check_id: str, status: str, detail: str, *, signal_class: str = "deterministic", location: Optional[str] = None, strict_eligible: Optional[bool] = None) -> dict[str, Any]
- _not_checked_pair · function · L374-L378 — def _not_checked_pair(reason: str) -> list[dict[str, Any]]
- _listed · function · L381-L387 — def _listed(keys: set[str]) -> str
- _compare_sets · function · L390-L442 — def _compare_sets(in_text: dict[str, str], reference_keys: set[str], *, signal_class: str, in_text_label: str, reference_label: str, unjoined: Optional[dict[str, str]] = None, unjoined_label: str = ("with no join entry in the supplied " "join source") ) -> list[dict[str, Any]]
- _load_yaml · function · L445-L449 — def _load_yaml(path: Path) -> dict[str, Any]
- _join_from_passport · function · L452-L462 — def _join_from_passport(passport: dict[str, Any]) -> dict[str, str]
- _corpus_keys · function · L465-L470 — def _corpus_keys(passport: dict[str, Any]) -> set[str]
- _reference_list · function · L480-L491 — def _reference_list(bib_keys: set[str], passport: Optional[dict[str, Any]] ) -> tuple[set[str], str]
- run_family_c · function · L494-L560 — def run_family_c(manuscripts: dict[str, str], bibs: dict[str, str], bib_keys: set[str], reference_keys: set[str], reference_label: str, passport: Optional[dict[str, Any]] = None, join_map: Optional[dict[str, str]] = None ) -> tuple[list[dict[str, Any]], str]
- _word_count · function · L583-L585 — def _word_count(text: str) -> int
- _md_sections · function · L588-L594 — def _md_sections(text: str) -> list[tuple[str, int, int]]
- _is_abstract_title · function · L597-L598 — def _is_abstract_title(title: str) -> bool
- _is_refs_title · function · L601-L602 — def _is_refs_title(title: str) -> bool
- _md_drop_sections · function · L605-L616 — def _md_drop_sections(text: str, title_predicates) -> str
- _detex · function · L619-L625 — def _detex(text: str) -> str
- _countable_body · function · L628-L650 — def _countable_body(rel: str, text: str, scope: str) -> tuple[str, str]
- _abstract_text · function · L653-L661 — def _abstract_text(rel: str, text: str) -> Optional[str]
- _keyword_list · function · L664-L668 — def _keyword_list(text: str) -> Optional[list[str]]
- _headings · function · L671-L674 — def _headings(rel: str, text: str) -> list[str]
- _primary_manuscript · function · L682-L707 — def _primary_manuscript(manuscripts: dict[str, str] ) -> tuple[Optional[str], Optional[str], Optional[str]]
- _ceiling_check · function · L710-L717 — def _ceiling_check(check_id: str, count: int, limit: int, what: str, location: Optional[str] = None, tolerance: float = 1.0) -> dict[str, Any]
- run_family_b · function · L720-L828 — def run_family_b(manuscripts: dict[str, str], reference_keys: set[str], reference_label: str, profile: Optional[dict[str, Any]] ) -> list[dict[str, Any]]
- not_declared · function · L737-L739 — def not_declared(check_id: str, field: str) -> dict[str, Any]
- _profile_schema · function · L837-L845 — def _profile_schema() -> dict[str, Any]
- _schema_enum · function · L848-L850 — def _schema_enum(field: str) -> tuple
- _is_int · function · L853-L855 — def _is_int(v: Any) -> bool
- _validate_venue_profile · function · L858-L914 — def _validate_venue_profile(raw: dict[str, Any]) -> dict[str, Any]
- _is_anonymized_name · function · L947-L951 — def _is_anonymized_name(rel: str) -> bool
- _a4_strict · function · L954-L961 — def _a4_strict(profile: Optional[dict[str, Any]]) -> bool
- _package_files · function · L964-L968 — def _package_files(package_dir: Path) -> list[str]
- _blanket_family_a · function · L971-L979 — def _blanket_family_a(ids, status: str, reason: str, profile: Optional[dict[str, Any]] ) -> list[dict[str, Any]]
- run_family_a · function · L982-L1019 — def run_family_a(package_dir: Path, manuscripts: dict[str, str], profile: Optional[dict[str, Any]] ) -> list[dict[str, Any]]
- _scan_blind_set · function · L1022-L1036 — def _scan_blind_set(package_dir: Path, manuscripts: dict[str, str], all_rels: list[str], anon_rels: list[str], profile: Optional[dict[str, Any]] ) -> list[dict[str, Any]]
- _residue_verdict · function · L1039-L1054 — def _residue_verdict(check_id: str, findings: "list[tuple[str, str]]", unreadable: list[str], what: str) -> dict[str, Any]
- _pdf_metadata_checks · function · L1057-L1091 — def _pdf_metadata_checks(package_dir: Path, pdf_rels: list[str]) -> list[dict[str, Any]]
- _pdf_info_author · function · L1094-L1098 — def _pdf_info_author(reader) -> str
- _read_zip_part · function · L1101-L1106 — def _read_zip_part(z: "zipfile.ZipFile", name: str) -> bytes
- _open_docx_guarded · function · L1109-L1117 — def _open_docx_guarded(path: Path) -> "zipfile.ZipFile"
- _docx_core_author_fields · function · L1120-L1132 — def _docx_core_author_fields(z: "zipfile.ZipFile") -> "list[tuple[str, str]]"
- _docx_residue_checks · function · L1147-L1183 — def _docx_residue_checks(package_dir: Path, docx_rels: list[str]) -> list[dict[str, Any]]
- _text_residue_checks · function · L1186-L1247 — def _text_residue_checks(manuscripts: dict[str, str], text_rels: list[str], profile: Optional[dict[str, Any]] ) -> list[dict[str, Any]]
- _author_metadata_strings · function · L1250-L1271 — def _author_metadata_strings(package_dir: Path, rels: list[str]) -> list[str]
- _filename_leakage_check · function · L1274-L1312 — def _filename_leakage_check(package_dir: Path, all_rels: list[str], anon_rels: list[str]) -> dict[str, Any]
- name_tokens · function · L1293-L1294 — def name_tokens(s: str) -> set
- run_checks · function · L1315-L1332 — def run_checks(package_dir: Path, passport: Optional[dict[str, Any]] = None, join_map: Optional[dict[str, str]] = None, venue_profile: Optional[dict[str, Any]] = None ) -> tuple[list[dict[str, Any]], str]
- _report_relpath · function · L1335-L1348 — def _report_relpath(package_dir: Path, report_path: Optional[Path]) -> Optional[str]
- build_report · function · L1351-L1384 — def build_report(package_dir: Path, checks: list[dict[str, Any]], extraction_path: str, report_path: Optional[Path] = None, policy_slug: Optional[str] = None, inputs_fingerprint: Optional[str] = None) -> dict[str, Any]
- render_human · function · L1387-L1401 — def render_human(report: dict[str, Any]) -> str
- exit_code_for · function · L1404-L1410 — def exit_code_for(report: dict[str, Any]) -> int
- evaluate_policy · function · L1413-L1449 — def evaluate_policy(report: dict[str, Any], policy: Optional[str]) -> tuple[Optional[str], int]
- check_freshness · function · L1452-L1517 — def check_freshness(package_dir: Path, report_path: Path, expected_policy: str, expected_inputs_fingerprint: str) -> tuple[str, int]
- run · function · L1520-L1653 — def run(argv: Optional[list[str]] = None) -> int