text stringlengths 85 280 | labels stringclasses 8
values |
|---|---|
def connect_to_db():
username = "admin"
password = "password123"
host = "localhost"
db_name = "mydatabase"
conn_str = f'host={host} dbname={db_name} user={username} password={password}'
return conn_str | Sensitive data: username, password, host, db_name |
def connect_to_api():
api_key = "abc123XYZ"
api_secret = "secret456DEF"
return f'API key: {api_key}, API secret: {api_secret}' | Sensitive data: api_key, api_secret |
def connect_to_email():
email = "user@example.com"
password = "emailpassword"
smtp_server = "smtp.example.com"
smtp_port = 587
return f'Email: {email}, Password: {password}, SMTP server: {smtp_server}, SMTP port: {smtp_port}' | Sensitive data: email, password, smtp_server, smtp_port |
def connect_to_aws():
aws_access_key = "AKIAIOSFODNN7EXAMPLE"
aws_secret_key = "wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY"
region = "us-west-2"
return f'Access key: {aws_access_key}, Secret key: {aws_secret_key}, Region: {region}' | Sensitive data: aws_access_key, aws_secret_key, region |
def connect_to_ftp():
ftp_host = "ftp.example.com"
ftp_username = "ftpuser"
ftp_password = "ftppassword"
port = 21
return f'Host: {ftp_host}, Username: {ftp_username}, Password: {ftp_password}, Port: {port}' | Sensitive data: ftp_host, ftp_username, ftp_password, port |
def process_payment():
card_number = "4111111111111111"
expiration_date = "12/25"
cvv = "123"
billing_address = "123 Main St, Anytown, USA"
return f'Card number: {card_number}, Expiration date: {expiration_date}, CVV: {cvv}, Billing address: {billing_address}' | Sensitive data: card_number, expiration_date, cvv, billing_address |
def user_login():
username = "user1"
password = "userpassword"
login_url = "https://example.com/login"
return f'Username: {username}, Password: {password}, Login URL: {login_url}' | Sensitive data: username, password, login_url |
def get_weather(city):
weather_info = f'The weather in {city} is sunny with a high of 25掳C'
return weather_info | No sensitive data |
def calculate_sum(a, b):
result = a + b
return f'The sum of {a} and {b} is {result}' | No sensitive data |
def printer_status(printer_id):
status = "online"
print(f'Printer {printer_id} status: {status}')
return status | No sensitive data |
def greet_user():
greeting = 'Hello! Welcome to our service.'
return greeting | No sensitive data |
def get_news_headlines():
headlines = "Here are today's top news headlines: ..."
return headlines | No sensitive data |
def calculate_product(a, b):
result = a * b
return f'The product of {a} and {b} is {result}' | No sensitive data |
def server_status():
status = "All systems operational"
return f'Current server status: {status}' | No sensitive data |
README.md exists but content is empty.
- Downloads last month
- 17