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