(record: dict[str, Any])
| 273 | |
| 274 | |
| 275 | def publication_quality_score(record: dict[str, Any]) -> int: |
| 276 | venue = normalize_whitespace(str(record.get("venue", ""))).lower() |
| 277 | source_url = normalize_whitespace(str(record.get("source_url", ""))).lower() |
| 278 | source = normalize_whitespace(str(record.get("source", ""))).lower() |
| 279 | doi = normalize_whitespace(str(record.get("doi", ""))).lower() |
| 280 | joined = " ".join([venue, source_url, source, doi]) |
| 281 | if any(token in joined for token in PREPRINT_HINTS): |
| 282 | return 0 |
| 283 | if venue or source == "crossref": |
| 284 | return 2 |
| 285 | return 1 |
| 286 | |
| 287 | |
| 288 | def candidate_priority_score(record: dict[str, Any]) -> int: |
no test coverage detected