(args, task_num)
| 152 | raise Exception("Timeout after 3 retries.") |
| 153 | |
| 154 | def get_file_name(args, task_num): |
| 155 | if (len(args["output_path"]) > 0): |
| 156 | args["output_path"] = args["output_path"] + "/" |
| 157 | |
| 158 | # Make path if it doesn't exist |
| 159 | if (not os.path.exists(args['output_path'])): |
| 160 | try: |
| 161 | os.makedirs(args["output_path"]) |
| 162 | except: |
| 163 | pass |
| 164 | |
| 165 | # filenameOutPrefix = args["output_path"] + "transformer-" + args["mode"] + "-eval-" + str(args["lm_path"].split('/')[-1]) + "-task" + str(task_num) |
| 166 | filenameOutPrefixSeed = args["output_path"] + "task" + str(task_num) |
| 167 | |
| 168 | return filenameOutPrefixSeed |
| 169 | |
| 170 | def process_examples(conv: Conversation, example: List[str]): |
| 171 | for i, ex in enumerate(example): |
no outgoing calls
no test coverage detected