MCPcopy
hub / github.com/geekcomputers/Python / paint

Function paint

tf_idf_generator.py:52–67  ·  view source on GitHub ↗

Utility func, for printing colorful logs in console... @args: -- str : String to be modified. color : color code to which the string will be formed. default is 'r'=RED @returns: -- str : final modified string with foreground color as per parameters.

(str, color="r")

Source from the content-addressed store, hash-verified

50
51
52def paint(str, color="r"):
53 """Utility func, for printing colorful logs in console...
54
55 @args:
56 --
57 str : String to be modified.
58 color : color code to which the string will be formed. default is 'r'=RED
59
60 @returns:
61 --
62 str : final modified string with foreground color as per parameters.
63
64 """
65 if color in switcher:
66 str = switcher[color] + str + Style.RESET_ALL
67 return str
68
69
70TAG = paint("TF-IDF-GENE/", "b")

Callers 2

find_tf_idfFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected