(file)
| 76 | return response[len(query)+2:].replace("<eom>","").strip().rstrip() |
| 77 | |
| 78 | def read_file_lines(file): |
| 79 | with open(file, 'r', errors='ignore', encoding='utf8') as f: |
| 80 | lines = f.readlines() |
| 81 | return lines |
| 82 | |
| 83 | def writelines_to_file(file, lines): |
| 84 | with open(file, 'w', encoding='utf8') as f: |
nothing calls this directly
no outgoing calls
no test coverage detected