MCPcopy Create free account

hub / github.com/RASAAS/docmcp-knowledge / functions

Functions497 in github.com/RASAAS/docmcp-knowledge

↓ 1 callersFunctionclean_fulltext
(text: str)
scripts/clean_fda_fulltext.py:25
↓ 1 callersFunctioncleanup_bad_fulltext
Remove fulltext files that are catalogs/lists rather than real content.
scripts/fetch_nmpa_fulltext.py:1640
↓ 1 callersFunctioncleanup_page_headers_and_cover_images
1. Remove image links that appear within the very first content block (often document cover page artifacts / version tables mistakenly par
scripts/postprocess_fulltext.py:436
↓ 1 callersFunctioncollapse_blank_lines
Replace 3+ consecutive blank lines with 2.
scripts/postprocess_fulltext.py:429
↓ 1 callersFunctioncommit_files
Stage and commit a list of files.
scripts/generate_content_pr.py:384
↓ 1 callersFunctionconvert_one
Convert a single PDF and return the Markdown text.
scripts/run_mdcg_conversion.py:62
↓ 1 callersFunctioncreate_branch
Create and checkout a new git branch.
scripts/generate_content_pr.py:375
↓ 1 callersFunctioncreate_github_pr
Create a GitHub PR and return the PR URL.
scripts/generate_content_pr.py:412
↓ 1 callersFunctioncross_match_content
Try to match extracted content against any index entry without fulltext. Returns the best matching entry, or None.
scripts/fetch_nmpa_fulltext.py:816
↓ 1 callersFunctiondeduplicate_headers
docling often emits the document title/date 2-3 times at the top. Remove exact duplicate consecutive paragraphs (non-table, non-heading).
scripts/postprocess_fulltext.py:396
↓ 1 callersFunctiondeduplicate_table_columns
Fix tables where docling expanded merged cells by repeating content across columns. Strategy: process row by row within each table. - If
scripts/postprocess_fulltext.py:317
↓ 1 callersFunctionderive_l1_codes
Derive unique L1 codes from a list of L2/L3 codes.
scripts/enrich_guidance_classification.py:118
↓ 1 callersMethodderive_local_path
Derive a local file path for an image URL. Uses the URL path structure to organize images by category.
scripts/download_images.py:96
↓ 1 callersMethoddiscover_pdf_url
Try to discover the PDF download URL from an FDA guidance page.
scripts/fetch_fulltext.py:113
↓ 1 callersFunctiondiscover_urls
Phase 1: Search for doc/docx URLs for entries without fulltext.
scripts/fetch_nmpa_fulltext.py:1079
↓ 1 callersFunctiondocx_to_markdown
Convert DOCX to Markdown via mammoth (DOCX -> HTML) + html2text (HTML -> MD). Images are compressed and embedded as base64 JPEG data URIs.
scripts/fetch_imdrf_fulltext.py:114
↓ 1 callersFunctiondownload_and_extract
Phase 2: Download doc/docx files, validate, extract, cross-match. For each entry, tries ALL candidate URLs. For each URL: 1. Download the fil
scripts/fetch_nmpa_fulltext.py:1457
↓ 1 callersFunctiondownload_file
(url: str)
scripts/fetch_nmpa_fulltext.py:1168
↓ 1 callersMethoddownload_image
Download a single image. Returns True on success.
scripts/download_images.py:131
↓ 1 callersFunctionembed_fulltext_in_zh
Append full-text section to .zh.md if not already present. Returns True if modified.
scripts/embed_fulltext_and_gen_en.py:413
↓ 1 callersFunctionextract_all_docx_urls
Extract ALL doc/docx download URLs from search results (deduplicated).
scripts/fetch_nmpa_fulltext.py:1059
↓ 1 callersFunctionextract_codes_from_slug
Extract classification codes embedded in the slug/filename.
scripts/enrich_guidance_classification.py:112
↓ 1 callersFunctionextract_codes_from_text
Extract classification codes from text using keyword context and broad matching. Returns (high_confidence_codes, medium_confidence_codes)
scripts/enrich_guidance_classification.py:95
↓ 1 callersFunctionextract_front_matter
Extract YAML front matter from Markdown file.
scripts/validate_schema.py:57
↓ 1 callersFunctionextract_frontmatter
Extract YAML frontmatter and body from markdown text.
scripts/migrate_nmpa_fulltext.py:36
↓ 1 callersFunctionextract_iec_content
(md: str, title: str, url: str)
scripts/fetch_standards_overview.py:75
↓ 1 callersFunctionextract_images_from_docx
Extract embedded images from a docx and save to IMAGES_DIR/{slug}/. Returns a mapping from relationship ID (rId) to the markdown image path,
scripts/fetch_nmpa_fulltext.py:254
↓ 1 callersFunctionextract_iso_content
(md: str, title: str, url: str)
scripts/fetch_standards_overview.py:35
↓ 1 callersMethodextract_text
(pdf_bytes: bytes)
scripts/fetch_fulltext.py:69
↓ 1 callersMethodfetch
Returns (content_type, data) or None.
scripts/fetch_fulltext.py:170
↓ 1 callersFunctionfetch_all
Paginate the full standards list (general + professional domains). NIFDC ``qxqwk.do`` lists only 228 general-domain standards by default. To
scripts/fetch_nifdc_standards.py:164
↓ 1 callersFunctionfetch_and_convert
(url: str)
scripts/fetch_standards_overview.py:26
↓ 1 callersFunctionfetch_and_parse
Step 1: Fetch from EUR-Lex and parse standards list.
scripts/fetch_eu_mdr_standards.py:257
↓ 1 callersFunctionfetch_docx_url
Scrape the IMDRF document page to find DOCX and PDF download links.
scripts/fetch_imdrf_fulltext.py:33
↓ 1 callersMethodfetch_pdf
Fetch PDF using curl-cffi with Chrome TLS impersonation.
scripts/fetch_fulltext.py:142
↓ 1 callersFunctionfile_to_docx_bytes
Ensure we have .docx bytes. Converts .doc via LibreOffice if needed.
scripts/fetch_nmpa_fulltext.py:1187
↓ 1 callersFunctionfilter_active_only
(rows: list[dict])
scripts/fetch_nifdc_standards.py:225
↓ 1 callersFunctionfind_best_insert_pos
(content, pre, post)
scripts/inject_images_smart.py:17
↓ 1 callersFunctionfix_complex_layouts
1. Re-level flat headings: flat '## 1)' -> '### 1)' 2. Convert fake headings (like '## OF CLASS I MEDICAL DEVICES') to normal text.
scripts/postprocess_fulltext.py:521
↓ 1 callersFunctionfix_messy_bullets
Cleans up docling's list bullets that include original PDF bullets like '•', '-', or 'o'. Converts '-  Text', '- - Text', etc. into '- Text'
scripts/postprocess_fulltext.py:556
↓ 1 callersFunctionfix_tables_in_content
Fix all broken tables in markdown content.
scripts/fix_markdown_tables.py:69
↓ 1 callersFunctiongenerate_domain_page_en
(stds, domain_name, domain_key)
scripts/generate_standards_pages.py:184
↓ 1 callersFunctiongenerate_domain_page_zh
(stds, domain_name, domain_key)
scripts/generate_standards_pages.py:146
↓ 1 callersFunctiongenerate_en_file
Generate .en.md file alongside .zh.md. Returns True if created.
scripts/embed_fulltext_and_gen_en.py:440
↓ 1 callersFunctiongenerate_en_index
(catalog, tree)
scripts/generate_classification_pages.py:112
↓ 1 callersFunctiongenerate_en_index
(stds, general, professional)
scripts/generate_standards_pages.py:106
↓ 1 callersFunctiongenerate_en_l1_page
(l1_code, l1_name, l2_dict)
scripts/generate_classification_pages.py:195
↓ 1 callersFunctiongenerate_en_page
(category_key: str, standards: list)
scripts/regen_other_standards_md.py:119
↓ 1 callersFunctiongenerate_guidance
Generate guidance pages for a framework. Returns list of changed files.
scripts/json_to_markdown.py:797
↓ 1 callersFunctiongenerate_guidance_index_en
(framework: str, entries: list, has_fulltext: dict)
scripts/json_to_markdown.py:722
↓ 1 callersFunctiongenerate_guidance_index_zh
Generate guidance index page (ZH) for a framework.
scripts/json_to_markdown.py:663
↓ 1 callersFunctiongenerate_guidance_page_en
(entry: dict, fulltext: str, machine_translated: bool = False)
scripts/json_to_markdown.py:557
↓ 1 callersFunctiongenerate_guidance_page_zh
(entry: dict, fulltext: str, machine_translated: bool = False)
scripts/json_to_markdown.py:503
↓ 1 callersFunctiongenerate_item_id
Generate a stable item ID from framework + title keywords.
scripts/report_to_news.py:97
↓ 1 callersFunctiongenerate_json
Step 3: Generate category-split JSON files for data layer.
scripts/fetch_eu_mdr_standards.py:330
↓ 1 callersFunctiongenerate_md_table
Generate a markdown table from standards list.
regen_md_pages.py:13
↓ 1 callersMethodgenerate_report
(self, updates: list)
scripts/fetch_updates.py:2982
↓ 1 callersFunctiongenerate_section_page
Generate or update a docs/zh/ index page for a section.
scripts/generate_docs_index.py:242
↓ 1 callersFunctiongenerate_shared_section
Generate VitePress pages for _shared/ sections (iso_iec, imdrf). Returns list of changed files.
scripts/json_to_markdown.py:907
↓ 1 callersFunctiongenerate_sidebar_json
Generate docs/.vitepress/sidebar.json with dynamic sidebar items. VitePress uses longest-prefix matching for sidebar: /zh/nmpa/
scripts/generate_docs_index.py:453
↓ 1 callersFunctiongenerate_standards
Generate all EU MDR standards sub-pages. Returns list of changed files.
scripts/json_to_markdown.py:865
↓ 1 callersFunctiongenerate_zh_index
(catalog, tree)
scripts/generate_classification_pages.py:66
↓ 1 callersFunctiongenerate_zh_index
(stds, general, professional)
scripts/generate_standards_pages.py:64
↓ 1 callersFunctiongenerate_zh_l1_page
Generate a page for one L1 category with all L2/L3 items.
scripts/generate_classification_pages.py:157
↓ 1 callersFunctiongenerate_zh_page
(category_key: str, standards: list)
scripts/regen_other_standards_md.py:89
↓ 1 callersFunctionget_category_at
(pos: int)
scripts/_populate_mdcg.py:91
↓ 1 callersFunctionget_doc_entries
Read all .zh.md files in a data directory and extract metadata.
scripts/generate_docs_index.py:157
↓ 1 callersFunctionget_draft_paths
Determine EN and ZH draft file paths based on update category.
scripts/generate_content_pr.py:320
↓ 1 callersFunctionget_en_entries
Filter entries that have substantive English .en.md content. Returns a list of entries with English title available.
scripts/generate_docs_index.py:424
↓ 1 callersFunctionget_en_title
Extract English title from YAML front matter.
scripts/embed_fulltext_and_gen_en.py:389
↓ 1 callersFunctionget_fulltext_path
Get the output path for a regulation fulltext.
scripts/fetch_eurlex_fulltext.py:548
↓ 1 callersFunctionget_published_date
(zh_file: Path)
scripts/embed_fulltext_and_gen_en.py:407
↓ 1 callersFunctionget_source_url
(zh_file: Path)
scripts/embed_fulltext_and_gen_en.py:401
↓ 1 callersFunctionget_source_url
(doc_id)
scripts/extract_mdcg_images.py:20
↓ 1 callersMethodget_stats
(self)
scripts/fetch_updates.py:610
↓ 1 callersFunctionget_url
(doc_id)
scripts/get_image_context.py:19
↓ 1 callersFunctionget_url
(doc_id)
scripts/analyze_image_locations.py:15
↓ 1 callersMethodhtml_to_markdown
Convert HTML content to clean Markdown.
scripts/migrate_wordpress.py:159
↓ 1 callersFunctionis_table_row
(line: str)
scripts/translate_fulltext.py:65
↓ 1 callersFunctionis_toc_table
Return True if this table block is a table-of-contents.
scripts/postprocess_fulltext.py:58
↓ 1 callersFunctionis_toc_table_line
Return True if a Markdown table row looks like a TOC entry (dot-filled).
scripts/postprocess_fulltext.py:28
↓ 1 callersFunctionjoin_split_paragraphs
Joins paragraphs that were prematurely split across lines (often due to PDF page/column breaks). Looks for paragraphs ending without terminal
scripts/postprocess_fulltext.py:575
↓ 1 callersFunctionjson_key_to_md_slug
(key: str)
scripts/regen_other_standards_md.py:85
↓ 1 callersMethodlist_posts
List all posts and their detected subcategories.
scripts/migrate_posts.py:240
↓ 1 callersMethodlist_structure
Fetch all docs and show how they would be mapped.
scripts/migrate_wordpress.py:293
↓ 1 callersFunctionload_all_items
Load and merge all news items from JSON files.
scripts/generate_news_pages.py:83
↓ 1 callersFunctionload_all_standards
Load all standards from JSON files with their category.
scripts/check_standards_versions.py:41
↓ 1 callersFunctionload_catalog
()
scripts/generate_classification_pages.py:49
↓ 1 callersFunctionload_docmcp_standards
Load standards from docmcp standards_2025.json.
scripts/verify_standards_consistency.py:53
↓ 1 callersFunctionload_entries
Load document entries from _index.json files.
scripts/fetch_fulltext.py:191
↓ 1 callersFunctionload_knowledge_standards
Load all standards from knowledge repo category files.
scripts/verify_standards_consistency.py:28
↓ 1 callersFunctionload_overview
Load regulatory overview content for a framework if available.
scripts/generate_news_pages.py:96
↓ 1 callersFunctionload_regulation_entries
Load regulation entries from _index.json.
scripts/fetch_eurlex_fulltext.py:525
↓ 1 callersFunctionload_source_urls
Load source URLs from .zh.md front matter.
scripts/run_mdcg_conversion.py:46
↓ 1 callersFunctionload_standards
()
scripts/generate_standards_pages.py:24
↓ 1 callersFunctionload_valid_codes
Load valid L2 and L3 codes from classification catalog. Returns (valid_l2, valid_l3, l3_to_l1_map)
scripts/enrich_guidance_classification.py:45
↓ 1 callersFunctionmain
()
regen_md_pages.py:48
↓ 1 callersFunctionmain
()
scripts/generate_content_pr.py:557
↓ 1 callersFunctionmain
()
scripts/embed_fulltext_and_gen_en.py:556
↓ 1 callersFunctionmain
()
scripts/test_eurlex_urls.py:47
← previousnext →201–300 of 497, ranked by callers