(row: Dict[str, Any])
| 202 | |
| 203 | |
| 204 | def citation_count(row: Dict[str, Any]) -> Optional[float]: |
| 205 | for field_name in CITATION_COUNT_FIELDS: |
| 206 | value = row.get(field_name) |
| 207 | if value in (None, ""): |
| 208 | continue |
| 209 | count = safe_float(value, -1.0) |
| 210 | if count >= 0: |
| 211 | return count |
| 212 | return None |
| 213 | |
| 214 | |
| 215 | def source_prior(row: Dict[str, Any]) -> float: |
no test coverage detected