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

Function source_prior

experiments/baselines/citation_enhanced/runner.py:215–227  ·  view source on GitHub ↗
(row: Dict[str, Any])

Source from the content-addressed store, hash-verified

213
214
215def source_prior(row: Dict[str, Any]) -> float:
216 source = str(row.get("source") or row.get("venue") or row.get("journal") or "").casefold()
217 if any(token in source for token in ("nature", "science", "cell")):
218 return 0.80
219 if any(token in source for token in ("pnas", "acm", "ieee", "springer", "elsevier")):
220 return 0.68
221 if "openreview" in source:
222 return 0.55
223 if "arxiv" in source:
224 return 0.45
225 if row.get("doi"):
226 return 0.50
227 return 0.35
228
229
230def impact_score(row: Dict[str, Any], max_log_citations: float) -> Tuple[float, bool]:

Callers 2

impact_scoreFunction · 0.70
score_rowFunction · 0.70

Calls 1

getMethod · 0.80

Tested by

no test coverage detected