MCPcopy Create free account
hub / github.com/deepseek-ai/DeepSpec / count_lines

Function count_lines

scripts/data/generate_train_data.py:147–149  ·  view source on GitHub ↗
(path)

Source from the content-addressed store, hash-verified

145
146
147def count_lines(path):
148 with open(path, "r", encoding="utf-8") as handle:
149 return sum(1 for _ in handle)
150
151
152def find_resume_offset(output_path, error_path):

Callers 2

find_resume_offsetFunction · 0.85
mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected