Filter obviously corrupted author keys from profile summaries.
(author_name: str)
| 200 | |
| 201 | |
| 202 | def is_displayable_author_name(author_name: str) -> bool: |
| 203 | """Filter obviously corrupted author keys from profile summaries.""" |
| 204 | if not author_name: |
| 205 | return False |
| 206 | stripped = author_name.strip() |
| 207 | if not stripped: |
| 208 | return False |
| 209 | if stripped.startswith("[") or stripped.startswith("{"): |
| 210 | return False |
| 211 | if len(stripped) > 80: |
| 212 | return False |
| 213 | return True |
| 214 | |
| 215 | |
| 216 | def load_roles_meta() -> Dict[str, Any]: |
no outgoing calls
no test coverage detected