Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/BVLC/caffe
/ printed_len
Function
printed_len
tools/extra/summarize.py:38–39 ·
view source on GitHub ↗
(s)
Source
from the content-addressed store, hash-verified
36
return
' '
.join(out)
37
38
def
printed_len(s):
39
return
len(re.sub(r
'\033\[[\d;]+m'
,
''
, s))
40
41
def
print_table(table, max_width):
42
""
"Print a simple nicely-aligned table.
Callers
1
print_table
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected