Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
147
def
count_lines(path):
148
with
open(path,
"r"
, encoding=
"utf-8"
)
as
handle:
149
return
sum(1
for
_ in handle)
150
151
152
def
find_resume_offset(output_path, error_path):
Callers
2
find_resume_offset
Function · 0.85
main
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected