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

Function citation_count

experiments/baselines/knowledge_entity/runner.py:302–310  ·  view source on GitHub ↗
(row: Dict[str, Any])

Source from the content-addressed store, hash-verified

300
301
302def citation_count(row: Dict[str, Any]) -> Optional[float]:
303 for field_name in CITATION_COUNT_FIELDS:
304 value = row.get(field_name)
305 if value in (None, ""):
306 continue
307 count = safe_float(value, -1.0)
308 if count >= 0:
309 return count
310 return None
311
312
313def normalized_citation_signal(row: Dict[str, Any], max_log_citations: float) -> Tuple[float, bool]:

Callers 3

score_rowFunction · 0.70

Calls 2

getMethod · 0.80
safe_floatFunction · 0.70

Tested by

no test coverage detected