Download eval/bare_harness/Backend/services/code_backfill_service.py from SLAI-AITP/AscendGYM: direct link, hf CLI and curl.
- Browser
- Download file 774 Bytes
-
https://huggingface.co/datasets/SLAI-AITP/AscendGYM/resolve/main/eval/bare_harness/Backend/services/code_backfill_service.py
- Command line
-
hf download hf://datasets/SLAI-AITP/AscendGYM/eval/bare_harness/Backend/services/code_backfill_service.py
-
curl -L -o code_backfill_service.py https://huggingface.co/datasets/SLAI-AITP/AscendGYM/resolve/main/eval/bare_harness/Backend/services/code_backfill_service.py
774 Bytes
| """ | |
| 代码回填服务(2D tiling,文件粒度直接覆盖写入) | |
| """ | |
| import logging | |
| from typing import Any, Dict, List, Optional | |
| from services.code_backfill_2d_service import CodeBackfill2DService | |
| logger = logging.getLogger(__name__) | |
| class CodeBackfillService: | |
| def __init__(self): | |
| self._service_2d = CodeBackfill2DService() | |
| logger.info("CodeBackfillService initialized") | |
| def process(self, mode: str, board: str, operator_name: str, | |
| tiling_type: Optional[str] = None, | |
| context: Optional[Dict[str, Any]] = None, | |
| code_items: Optional[List[Dict[str, Any]]] = None) -> Dict[str, Any]: | |
| return self._service_2d.process(mode, board, operator_name, context, code_items) | |