(node: Dict[str, Any])
| 3211 | |
| 3212 | def _report_doc_for_wiki_backfill(report: Dict[str, Any]) -> Dict[str, Any]: |
| 3213 | metadata = dict(report.get("metadata") or {}) |
| 3214 | paper = { |
| 3215 | "id": metadata.get("paper_id"), |
| 3216 | "arxiv_id": metadata.get("arxiv_id") or report.get("arxiv_id"), |
| 3217 | "doi": metadata.get("doi"), |
| 3218 | "title": metadata.get("title") or report.get("title"), |
| 3219 | "authors": metadata.get("authors") or [], |
| 3220 | "abstract": metadata.get("abstract") or "", |
| 3221 | "publish_date": metadata.get("publish_date"), |
| 3222 | "pdf_path": metadata.get("pdf_path"), |
| 3223 | "pdf_url": metadata.get("pdf_url") or report.get("pdf_url"), |
| 3224 | "source": metadata.get("source") or "reading_report", |
| 3225 | } |
| 3226 | summary = str(report.get("snippet") or "").strip() |
| 3227 | return { |
no test coverage detected