MCPcopy Create free account

hub / github.com/LiuYuancheng/ChatGPT_on_CTF / functions

Functions31 in github.com/LiuYuancheng/ChatGPT_on_CTF

↓ 8 callersFunctionerror
Log error message: Log.debug("message %s", str(value))
src/Log.py:128
↓ 5 callersFunctionprintArgs
Call built in print function to show the arguments in cmd terminal.
src/Log.py:98
↓ 4 callersFunctiongetLogFilePath
Create the directory tree under the Log folder if necessary and finally return a fully qualified file name as string. - 'args' is a l
src/Log.py:158
↓ 3 callersMethodappendLine
Append a new line in the config file. Args: line ([str]): line data. timeFlg (bool, optional): Add the time stamp bef
src/ConfigLoader.py:108
↓ 3 callersFunctiondebug
log debug message: Log.debug("message %s", str(value))
src/Log.py:120
↓ 3 callersMethodgetJson
Get the config data under json format (python dict). Args: specChar (str, optional): The key/value pair split char: key<specChar>
src/ConfigLoader.py:80
↓ 2 callersMethodbuildFilename
Generate the latest logfile's name based on the current time.
src/Log.py:45
↓ 2 callersMethodgetLines
Get all the filered lines of the config file. Args: filterFun ([function], optional): function for filter. Defaults to None.
src/ConfigLoader.py:69
↓ 2 callersFunctioninitLogger
Initialize logging - pwd: pathname of working directory under which we put logs - logDirName: put all logs into this dir, i.e. 'Logs'
src/Log.py:233
↓ 2 callersFunctionwarning
Log wanring message: Log.wanring("message %s", str(value))
src/Log.py:112
↓ 2 callersFunctionwriteTest
Write 'mb' megabytes of junk to log
src/Log.py:278
↓ 1 callersFunctioncheck_password
doc/img/testCases/reverse_engineering/revreseEng.c:10
↓ 1 callersFunctioncleanOldFiles
Examine files in 'dirName', and if we find any that start with 'fileNameBase', remove the oldest of those to keep no more than 'cnt'
src/Log.py:206
↓ 1 callersFunctionexception
log exception message with the stack: Log.exception(e)
src/Log.py:136
↓ 1 callersFunctiongetLogTime
Get current local time, return tuple for logging (yyyymmdd, hhmmss) Can pass floating point time, or leave empty for 'now'
src/Log.py:149
↓ 1 callersFunctionget_completion
(prompt, model=AI_MODEL)
src/multiChoiceQtest.py:84
↓ 1 callersFunctionget_completion
(prompt, model=AI_MODEL)
src/questionCategorizer.py:72
↓ 1 callersFunctioninfo
Log normal information message: Log.info("message %s", str(value))
src/Log.py:104
↓ 1 callersFunctionsecret_function
doc/img/testCases/reverse_engineering/revreseEng.c:4
↓ 1 callersMethodsetAutoTimeRest
Set the auto reset time flag for file name change during rotate.
src/Log.py:81
↓ 1 callersMethodsetMode
Set the file process mode. Args: mode ([str]): mode string.
src/ConfigLoader.py:100
↓ 1 callersFunctiontestCase
()
src/Log.py:290
↓ 1 callersFunctiontestCase
(mode=0)
src/ConfigLoader.py:137
Method__init__
(self, filename, *args, **kwargs)
src/Log.py:35
Method__init__
Init the config loader. example: cfg = ConfigLoader('cfg.txt', mode='r', filterChars=('#', '\n'), logFlg=False) Args:
src/ConfigLoader.py:39
Functioncallstack
Print compact callstack, with introductory string.
src/Log.py:89
MethoddoRollover
Handle rollover for TimedRotatingFileHandler.
src/Log.py:60
MethodhandleError
(self, record)
src/Log.py:72
Functionmain
doc/img/testCases/reverse_engineering/revreseEng.c:39
FunctionsetLogger
Define a handler which writes INFO messages or higher to the specified stream. I had to change this for multiprocessing, to allow Non
src/Log.py:177
FunctiontestCaseFilter
(line)
src/ConfigLoader.py:133