first commit

This commit is contained in:
dongdongunique
2025-12-10 00:54:02 +08:00
parent 2cf4168ecf
commit f3af94df0b
254 changed files with 9821 additions and 25 deletions
+2
View File
@@ -0,0 +1,2 @@
# FILE: /jailbreak-toolbox/jailbreak-toolbox/jailbreak_toolbox/utils/__init__.py
"""This file marks the utils directory as a Python package."""
+12
View File
@@ -0,0 +1,12 @@
def setup_logging(log_file='toolbox.log', level='DEBUG'):
import logging
logging.basicConfig(
filename=log_file,
level=getattr(logging, level),
format='%(asctime)s - %(name)s - %(levelname)s - %(message)s'
)
def get_logger(name):
import logging
return logging.getLogger(name)
@@ -0,0 +1,9 @@
def tokenize(text):
return text.split()
def normalize(text):
return text.lower().strip()
def remove_punctuation(text):
import string
return text.translate(str.maketrans('', '', string.punctuation))