MCPcopy Index your code
hub / github.com/clips/pattern / _uid

Function _uid

pattern/vector/__init__.py:301–305  ·  view source on GitHub ↗

Returns a string id, for example: "NPIJYaS-1", "NPIJYaS-2", ... The string part is based on the current time, the number suffix is auto-incremental.

()

Source from the content-addressed store, hash-verified

299_UID = 0
300_SESSION = shi(int(time() * 1000)) # Avoid collision with pickled documents.
301def _uid():
302 """ Returns a string id, for example: "NPIJYaS-1", "NPIJYaS-2", ...
303 The string part is based on the current time, the number suffix is auto-incremental.
304 """
305 global _UID; _UID+=1; return _SESSION+"-"+str(_UID)
306
307# Term relevance weight:
308TF, TFIDF, TF_IDF, BINARY = \

Callers 1

__init__Method · 0.70

Calls 1

strFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…