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

Function _source_counts

experiments/token_cost/measure_day_token_usage.py:293–298  ·  view source on GitHub ↗
(papers: Iterable[Dict[str, Any]])

Source from the content-addressed store, hash-verified

291
292
293def _source_counts(papers: Iterable[Dict[str, Any]]) -> Dict[str, int]:
294 counts: Dict[str, int] = {}
295 for paper in papers:
296 source = str(paper.get("source") or "unknown")
297 counts[source] = counts.get(source, 0) + 1
298 return counts
299
300
301def _build_summary_tables(

Callers 1

_build_summary_tablesFunction · 0.85

Calls 1

getMethod · 0.80

Tested by

no test coverage detected