MCPcopy Create free account
hub / github.com/PaddlePaddle/Research / ending

Method ending

NLP/Text2SQL-BASELINE/text2sql/utils/utils.py:91–105  ·  view source on GitHub ↗

ending checking and log Returns: TODO Raises: NULL

(self)

Source from the content-addressed store, hash-verified

89 return cost
90
91 def ending(self):
92 """ending checking and log
93 Returns: TODO
94
95 Raises: NULL
96 """
97 cost = '%.2f' % time.time() - self._start
98 if self._msg == "":
99 log_msg = "cost time: %s" % (cost)
100 elif '{}' in self._msg:
101 log_msg = self._msg.format(cost)
102 else:
103 log_msg = self._msg + cost
104
105 logging.info(log_msg)
106
107
108def list_increment(lst: list, base: int):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected