MCPcopy Create free account
hub / github.com/PierreGode/Ragnar / display_comment

Method display_comment

display.py:398–405  ·  view source on GitHub ↗

Display the comment based on the status of the ragnarorch.

(self, status)

Source from the content-addressed store, hash-verified

396
397 total_passwords = 0
398 for file in crackedpw_files:
399 try:
400 # Check if file is not empty and has content
401 if os.path.getsize(file) > 0:
402 with open(file, 'r') as f:
403 df = pd.read_csv(f, usecols=[0])
404 if not df.empty:
405 total_passwords += len(df)
406 else:
407 logger.debug(f"Password file {file} is empty, skipping")
408 except (pd.errors.EmptyDataError, pd.errors.ParserError) as e:

Callers 1

runMethod · 0.95

Calls 1

get_commentaireMethod · 0.80

Tested by

no test coverage detected