翻译研究方向为中文
(direction: str)
| 54 | |
| 55 | def translate_direction(direction: str) -> str: |
| 56 | """翻译研究方向为中文""" |
| 57 | formatter = getattr(direction_lexicon, "format_direction_label", None) |
| 58 | if callable(formatter): |
| 59 | return str(formatter(direction, prefer_chinese=True) or direction) |
| 60 | return direction |
| 61 | |
| 62 | |
| 63 | OPENALEX_TIMEOUT = float(os.environ.get("PAPERFLOW_WEEKLY_OPENALEX_TIMEOUT", "12")) |
| 64 | OPENALEX_HEADERS = {"User-Agent": "PaperFlow/0.1 WeeklyReport"} |
no outgoing calls
no test coverage detected