Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
Index your code
hub
/
github.com/hellerve/programming-talks
/ get_number_of_lines
Function
get_number_of_lines
scripts/add_years.py:17–20 ·
view source on GitHub ↗
(file_name)
Source
from the content-addressed store, hash-verified
15
16
17
def
get_number_of_lines(file_name):
18
with
open(file_name,
'r'
)
as
f:
19
# no really, this is somehow faster than sum()
20
return
len([l
for
l in f])
21
22
23
def
has_youtubedl():
Callers
1
main
Function · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected