(report: Dict[str, Any])
| 42 | |
| 43 | |
| 44 | def report_key(report: Dict[str, Any]) -> Optional[Tuple[str, str, str]]: |
| 45 | user_id = str(report.get("user_id") or "") |
| 46 | if not user_id: |
| 47 | return None |
| 48 | paper_id = report.get("paper_id") |
| 49 | title = report.get("title") |
| 50 | return selected_report_key(user_id, paper_id, title) |
| 51 | |
| 52 | |
| 53 | def length_fit_score(char_count: int) -> float: |
no test coverage detected