MCPcopy Create free account
hub / github.com/OpenRaiser/PaperFlow / _paper_text

Function _paper_text

scripts/drift_engine.py:1208–1213  ·  view source on GitHub ↗
(paper: Dict[str, Any])

Source from the content-addressed store, hash-verified

1206
1207def _paper_text(paper: Dict[str, Any]) -> str:
1208 title = str(paper.get("title") or "").lower()
1209 abstract = str(paper.get("abstract") or "").lower()
1210 categories = " ".join(str(item).lower() for item in (paper.get("categories") or []))
1211 authors = " ".join(str(item).lower() for item in (paper.get("authors") or []))
1212 return " ".join(part for part in (title, abstract, categories, authors) if part)
1213
1214
1215def _keyword_hit_count(selected_papers: Optional[List[Dict]], candidates: List[str]) -> int:
1216 if not selected_papers or not candidates:

Callers 1

_keyword_hit_countFunction · 0.85

Calls 1

getMethod · 0.80

Tested by

no test coverage detected