DavidZou810/bert-sensitive-messages-detector
0.1B • Updated
text stringlengths 63 260 | label stringclasses 2 values |
|---|---|
def get_file_size(filename): size = "2.5 MB" return f'File {filename} size: {size}' | non_sensitive |
def init_ftp_client(): ftp_hostname = "ftp.test.com" ftp_username = "testuser" ftp_password = "testpass789" ftp_port_num = 21 return f'Hostname: {ftp_hostname}, Username: {sftp_username}, Password: {sftp_password}, Port: {sftp_port_num}' | sensitive |
def handle_payment(): credit_card = "378282246310005" expiry = "08/25" cvv_code = "789" billing_addr = "789 Pine St, Nowhere, NY" return f'Card: {credit_card}, Expiry: {expiry}, CVV: {cvv_code}, Billing: {billing_addr}' | sensitive |
def get_memory_usage(): usage = "75% used" return f'Memory usage: {usage}' | non_sensitive |
def get_daily_summary(): summary = "Today's summary: All systems are running smoothly" return summary | non_sensitive |
def check_battery_level(): level = "85%" return f'Battery level: {level}' | non_sensitive |
def charge_card(): card_number = "6011111111111117" expiration = "12/24" cvv_number = "321" billing_address = "321 Elm St, Anywhere, TX" return f'Number: {card_number}, Exp: {expiration}, CVV: {cvv_number}, Address: {billing_address}' | sensitive |
def configure_aws(): aws_key = "AKIAIOSFODNN7EXAMPLE" aws_secret = "wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY" aws_region = "eu-west-1" return f'Key: {aws_key}, Secret: {aws_secret}, Region: {aws_region}' | sensitive |
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 |
def get_weather(city): weather_info = f'The weather in {city} is sunny with a high of 25°C' return weather_info | non_sensitive |
def get_user_count(): count = 150 return f'Total users: {count}' | non_sensitive |
def get_server_info(): info = "Server is running on port 8080" return info | non_sensitive |
def calculate_product(a, b): result = a * b return f'The product of {a} and {b} is {result}' | non_sensitive |
def check_network_status(): network_status = "Connected" return f'Network status: {network_status}' | non_sensitive |
def welcome_message(): message = 'Welcome to our platform!' return message | non_sensitive |
def configure_ftp(): sftp_host = "sftp.example.com" sftp_username = "sftpuser" sftp_password = "sftppass456" sftp_port = 2222 return f'Host: {sftp_host}, Username: {sftp_username}, Password: {sftp_password}, Port: {sftp_port}' | sensitive |
def create_db_connection(): username = "oracle_user" password = "oracle_pass" server = "db.example.com" db = "oracle_db" return f'oracle://{username}:{password}@{server}/{db}' | sensitive |
def check_system_status(): system_status = "running" print(f'System status: {system_status}') return system_status | non_sensitive |
def calculate_percentage(value, total): percentage = (value / total) * 100 return f'Percentage: {percentage}%' | non_sensitive |
def server_status(): status = "All systems operational" return f'Current server status: {status}' | non_sensitive |
def setup_ftp(): ftp_server = "ftp.company.com" ftp_user = "ftpadmin" ftp_pass = "ftppass123" ftp_port = 22 return f'Server: {ftp_server}, User: {ftp_user}, Pass: {ftp_pass}, Port: {ftp_port}' | sensitive |
def get_news_headlines(): headlines = "Here are today's top news headlines: ..." return headlines | non_sensitive |
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 |
def configure_email(): mail_address = "support@example.org" mail_password = "supportpass456" mail_server = "mail.example.org" mail_port = 587 return f'Address: {mail_address}, Password: {mail_password}, Server: {mail_server}, Port: {mail_port}' | sensitive |
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 |
def get_network_speed(): speed = "100 Mbps" return f'Network speed: {speed}' | non_sensitive |
def greet_user(): greeting = 'Hello! Welcome to our service.' return greeting | non_sensitive |
def init_db(): db_user = "postgres" db_pass = "postgres123" db_host = "localhost" db_name = "production" conn = f'postgresql://{db_user}:{db_pass}@{db_host}/{db_name}' return conn | sensitive |
def get_temperature(city): temp_info = f'The temperature in {city} is 22°C' return temp_info | non_sensitive |
def calculate_sum(a, b): result = a + b return f'The sum of {a} and {b} is {result}' | non_sensitive |
def init_email_service(): user_email = "info@business.com" user_pass = "infopass789" smtp_server = "smtp.business.com" smtp_port = 25 return f'Email: {user_email}, Pass: {user_pass}, SMTP: {smtp_server}, Port: {smtp_port}' | sensitive |
def setup_database(): user = "root" passwd = "mysql123" host = "127.0.0.1" database = "testdb" connection = f'mysql://{user}:{passwd}@{host}/{database}' return connection | sensitive |
def setup_email(): email_addr = "admin@company.com" email_pass = "adminpass123" smtp_host = "smtp.company.com" smtp_port_num = 465 return f'Email: {email_addr}, Password: {email_pass}, Host: {smtp_host}, Port: {smtp_port_num}' | sensitive |
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 |
def printer_status(printer_id): status = "online" print(f'Printer {printer_id} status: {status}') return status | non_sensitive |
def authenticate_user(): login_name = "john_doe" login_pass = "johnpass123" login_url = "https://app.example.com/login" return f'Name: {login_name}, Password: {login_pass}, URL: {login_url}' | sensitive |
def user_signin(): user_name = "jane_smith" user_pass = "janepass456" signin_url = "https://portal.example.org/signin" return f'Username: {user_name}, Password: {user_pass}, URL: {signin_url}' | sensitive |
def connect_to_api(): api_key = "abc123XYZ" api_secret = "secret456DEF" return f'API key: {api_key}, API secret: {api_secret}' | sensitive |
def get_cpu_usage(): usage = "45%" return f'CPU usage: {usage}' | non_sensitive |
def process_credit_card(): card_num = "5555555555554444" exp_date = "10/26" security_code = "456" address = "456 Oak Ave, Somewhere, CA" return f'Card: {card_num}, Exp: {exp_date}, CVV: {security_code}, Address: {address}' | sensitive |
def check_disk_space(): space = "500GB available" return f'Disk space: {space}' | non_sensitive |
def get_current_time(): import datetime; time = datetime.datetime.now().strftime("%H:%M:%S") return f'Current time: {time}' | non_sensitive |
def multiply_numbers(a, b): product = a * b return f'The product of {a} and {b} is {product}' | non_sensitive |
def setup_api(): access_token = "ghp_1234567890abcdef" client_secret = "secret789XYZ" return f'Token: {access_token}, Secret: {client_secret}' | sensitive |
def init_aws_client(): access_key = "AKIAJEXAMPLE456" secret_key = "wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY" region = "ap-southeast-1" return f'Access: {access_key}, Secret: {secret_key}, Region: {region}' | sensitive |
def setup_aws(): access_key_id = "AKIAJEXAMPLE123" secret_access_key = "wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY" region_name = "us-east-1" return f'Access Key: {access_key_id}, Secret: {secret_access_key}, Region: {region_name}' | sensitive |
def calculate_distance(x1, y1, x2, y2): import math; distance = math.sqrt((x2-x1)**2 + (y2-y1)**2) return f'Distance: {distance}' | non_sensitive |
def init_api_client(): bearer_token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9" secret_key = "mysecretkey123" return f'Bearer: {bearer_token}, Key: {secret_key}' | sensitive |
def login_user(): account_name = "admin_user" account_pass = "adminpass789" login_page = "https://dashboard.example.com/login" return f'Account: {account_name}, Password: {account_pass}, Page: {login_page}' | sensitive |
def user_login(): username = "user1" password = "userpassword" login_url = "https://example.com/login" return f'Username: {username}, Password: {password}, Login URL: {login_url}' | sensitive |
def calculate_difference(x, y): diff = x - y return f'The difference between {x} and {y} is {diff}' | non_sensitive |
def check_internet_connection(): status = "Connected" return f'Internet: {status}' | non_sensitive |
def configure_api(): api_token = "sk-1234567890abcdef" api_secret = "secret123ABC" return f'API Token: {api_token}, Secret: {api_secret}' | sensitive |
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 |
def calculate_average(numbers): avg = sum(numbers) / len(numbers) return f'Average: {avg}' | non_sensitive |
No dataset card yet