MCPcopy
hub / github.com/stanford-futuredata/ColBERT / print_message

Function print_message

colbert/utils/utils.py:11–20  ·  view source on GitHub ↗
(*s, condition=True, pad=False)

Source from the content-addressed store, hash-verified

9
10
11def print_message(*s, condition=True, pad=False):
12 s = ' '.join([str(x) for x in s])
13 msg = "[{}] {}".format(datetime.datetime.now().strftime("%b %d, %H:%M:%S"), s)
14
15 if condition:
16 msg = msg if not pad else f'\n{msg}\n'
17 print(msg, flush=True)
18
19
20 return msg
21
22
23def timestamp(daydir=False):

Callers 15

load_qas_Function · 0.90
mainFunction · 0.90
mainFunction · 0.90
check_sizesFunction · 0.90
mainFunction · 0.90
mainFunction · 0.90
mainFunction · 0.90
mainFunction · 0.90
mainFunction · 0.90
mainFunction · 0.90
mainFunction · 0.90
mainFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected