(data, path, mode="w+",encoding='utf-8')
| 120 | for d in data: |
| 121 | f.write(json.dumps(d, ensure_ascii=False) + "\n") |
| 122 | def write_jsonl_force(data, path, mode="w+",encoding='utf-8'): |
| 123 | with open(path, mode, encoding=encoding) as f: |
| 124 | for d in data: |
| 125 | f.write(json.dumps(d, ensure_ascii=False) + "\n") |
| 126 | def check_test(entities):## 初期用于检测是否有边界错误 |
| 127 | e_l=[] |
| 128 | for layer in entities: |
no test coverage detected