MCPcopy Create free account
hub / github.com/SalesforceAIResearch/perfcodegen / format_strs

Method format_strs

src/dataset.py:348–357  ·  view source on GitHub ↗
(self, lst)

Source from the content-addressed store, hash-verified

346
347
348 def format_strs(self, lst):
349 if isinstance(lst, str):
350 return lst.replace("\r\n", "\n")
351 elif isinstance(lst, list):
352 new_lst = []
353 for l in lst:
354 new_lst.append(self.format_strs(l))
355 return new_lst
356 else:
357 return lst
358
359
360

Callers 1

format_testcaseMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected