MCPcopy Create free account
hub / github.com/logpai/logparser / tempProcess

Function tempProcess

logparser/SLCT/src/SLCT.py:199–212  ·  view source on GitHub ↗
(tempPara)

Source from the content-addressed store, hash-verified

197
198
199def tempProcess(tempPara):
200 print("Dumping event templates...")
201 if not os.path.exists(tempPara.savePath):
202 os.makedirs(tempPara.savePath)
203
204 # read the templates
205 templates = []
206 with open("./" + tempPara.templateName) as tl:
207 for line in tl:
208 templates.append([0, line.strip(), 0])
209
210 pd.DataFrame(templates, columns=["EventId", "EventTemplate", "Occurrences"]).to_csv(
211 "temp_templates.csv", index=False
212 )
213
214
215def matchTempLog(templates, logs):

Callers 1

SLCTFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected