MCPcopy Create free account
hub / github.com/Felixgithub2017/MMCU / read_file_lines

Function read_file_lines

TestBloomz.py:105–108  ·  view source on GitHub ↗
(file)

Source from the content-addressed store, hash-verified

103 return output.replace(prompt, "").replace("</s>", "").strip()
104
105def read_file_lines(file):
106 with open(file, 'r', errors='ignore', encoding='utf8') as f:
107 lines = f.readlines()
108 return lines
109
110def writelines_to_file(file, lines):
111 with open(file, 'w', encoding='utf8') as f:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected