(*texts)
| 10 | import numpy as np |
| 11 | |
| 12 | def printf(*texts): |
| 13 | if os.environ.get('DEBUG', 'True') == 'False': |
| 14 | return |
| 15 | if texts[0].startswith('TASK>'): |
| 16 | format = "\033[1;34m{text}\033[0m" |
| 17 | elif texts[0].startswith("AGENT>"): |
| 18 | format = "\033[32m{text}\033[0m" |
| 19 | elif texts[0].startswith('ROUND>') or texts[0].startswith('==='): |
| 20 | format = "\033[1;33m{text}\033[0m" |
| 21 | elif texts[0].startswith('ERROR>') or texts[0].startswith('ANSWER>') or texts[0].startswith('ENV>'): |
| 22 | format = "\033[1;31m{text}\033[0m" |
| 23 | else: |
| 24 | format = "\033[1;37m{text}\033[0m" |
| 25 | for text in texts: |
| 26 | print(format.format(text=text)) |
| 27 | |
| 28 | |
| 29 | def load_data(filename, file_type=None): |
no test coverage detected