DavidZou810 commited on
Commit
54712bb
·
verified ·
1 Parent(s): 1d038d0

Upload folder using huggingface_hub

Browse files
banking-sensitive-message-dataset.json ADDED
@@ -0,0 +1,222 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "text": "def get_file_size(filename): size = \"2.5 MB\" return f'File {filename} size: {size}'",
4
+ "label": "non_sensitive"
5
+ },
6
+ {
7
+ "text": "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}'",
8
+ "label": "sensitive"
9
+ },
10
+ {
11
+ "text": "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}'",
12
+ "label": "sensitive"
13
+ },
14
+ {
15
+ "text": "def get_memory_usage(): usage = \"75% used\" return f'Memory usage: {usage}'",
16
+ "label": "non_sensitive"
17
+ },
18
+ {
19
+ "text": "def get_daily_summary(): summary = \"Today's summary: All systems are running smoothly\" return summary",
20
+ "label": "non_sensitive"
21
+ },
22
+ {
23
+ "text": "def check_battery_level(): level = \"85%\" return f'Battery level: {level}'",
24
+ "label": "non_sensitive"
25
+ },
26
+ {
27
+ "text": "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}'",
28
+ "label": "sensitive"
29
+ },
30
+ {
31
+ "text": "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}'",
32
+ "label": "sensitive"
33
+ },
34
+ {
35
+ "text": "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}'",
36
+ "label": "sensitive"
37
+ },
38
+ {
39
+ "text": "def get_weather(city): weather_info = f'The weather in {city} is sunny with a high of 25°C' return weather_info",
40
+ "label": "non_sensitive"
41
+ },
42
+ {
43
+ "text": "def get_user_count(): count = 150 return f'Total users: {count}'",
44
+ "label": "non_sensitive"
45
+ },
46
+ {
47
+ "text": "def get_server_info(): info = \"Server is running on port 8080\" return info",
48
+ "label": "non_sensitive"
49
+ },
50
+ {
51
+ "text": "def calculate_product(a, b): result = a * b return f'The product of {a} and {b} is {result}'",
52
+ "label": "non_sensitive"
53
+ },
54
+ {
55
+ "text": "def check_network_status(): network_status = \"Connected\" return f'Network status: {network_status}'",
56
+ "label": "non_sensitive"
57
+ },
58
+ {
59
+ "text": "def welcome_message(): message = 'Welcome to our platform!' return message",
60
+ "label": "non_sensitive"
61
+ },
62
+ {
63
+ "text": "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}'",
64
+ "label": "sensitive"
65
+ },
66
+ {
67
+ "text": "def create_db_connection(): username = \"oracle_user\" password = \"oracle_pass\" server = \"db.example.com\" db = \"oracle_db\" return f'oracle://{username}:{password}@{server}/{db}'",
68
+ "label": "sensitive"
69
+ },
70
+ {
71
+ "text": "def check_system_status(): system_status = \"running\" print(f'System status: {system_status}') return system_status",
72
+ "label": "non_sensitive"
73
+ },
74
+ {
75
+ "text": "def calculate_percentage(value, total): percentage = (value / total) * 100 return f'Percentage: {percentage}%'",
76
+ "label": "non_sensitive"
77
+ },
78
+ {
79
+ "text": "def server_status(): status = \"All systems operational\" return f'Current server status: {status}'",
80
+ "label": "non_sensitive"
81
+ },
82
+ {
83
+ "text": "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}'",
84
+ "label": "sensitive"
85
+ },
86
+ {
87
+ "text": "def get_news_headlines(): headlines = \"Here are today's top news headlines: ...\" return headlines",
88
+ "label": "non_sensitive"
89
+ },
90
+ {
91
+ "text": "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",
92
+ "label": "sensitive"
93
+ },
94
+ {
95
+ "text": "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}'",
96
+ "label": "sensitive"
97
+ },
98
+ {
99
+ "text": "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}'",
100
+ "label": "sensitive"
101
+ },
102
+ {
103
+ "text": "def get_network_speed(): speed = \"100 Mbps\" return f'Network speed: {speed}'",
104
+ "label": "non_sensitive"
105
+ },
106
+ {
107
+ "text": "def greet_user(): greeting = 'Hello! Welcome to our service.' return greeting",
108
+ "label": "non_sensitive"
109
+ },
110
+ {
111
+ "text": "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",
112
+ "label": "sensitive"
113
+ },
114
+ {
115
+ "text": "def get_temperature(city): temp_info = f'The temperature in {city} is 22°C' return temp_info",
116
+ "label": "non_sensitive"
117
+ },
118
+ {
119
+ "text": "def calculate_sum(a, b): result = a + b return f'The sum of {a} and {b} is {result}'",
120
+ "label": "non_sensitive"
121
+ },
122
+ {
123
+ "text": "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}'",
124
+ "label": "sensitive"
125
+ },
126
+ {
127
+ "text": "def setup_database(): user = \"root\" passwd = \"mysql123\" host = \"127.0.0.1\" database = \"testdb\" connection = f'mysql://{user}:{passwd}@{host}/{database}' return connection",
128
+ "label": "sensitive"
129
+ },
130
+ {
131
+ "text": "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}'",
132
+ "label": "sensitive"
133
+ },
134
+ {
135
+ "text": "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}'",
136
+ "label": "sensitive"
137
+ },
138
+ {
139
+ "text": "def printer_status(printer_id): status = \"online\" print(f'Printer {printer_id} status: {status}') return status",
140
+ "label": "non_sensitive"
141
+ },
142
+ {
143
+ "text": "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}'",
144
+ "label": "sensitive"
145
+ },
146
+ {
147
+ "text": "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}'",
148
+ "label": "sensitive"
149
+ },
150
+ {
151
+ "text": "def connect_to_api(): api_key = \"abc123XYZ\" api_secret = \"secret456DEF\" return f'API key: {api_key}, API secret: {api_secret}'",
152
+ "label": "sensitive"
153
+ },
154
+ {
155
+ "text": "def get_cpu_usage(): usage = \"45%\" return f'CPU usage: {usage}'",
156
+ "label": "non_sensitive"
157
+ },
158
+ {
159
+ "text": "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}'",
160
+ "label": "sensitive"
161
+ },
162
+ {
163
+ "text": "def check_disk_space(): space = \"500GB available\" return f'Disk space: {space}'",
164
+ "label": "non_sensitive"
165
+ },
166
+ {
167
+ "text": "def get_current_time(): import datetime; time = datetime.datetime.now().strftime(\"%H:%M:%S\") return f'Current time: {time}'",
168
+ "label": "non_sensitive"
169
+ },
170
+ {
171
+ "text": "def multiply_numbers(a, b): product = a * b return f'The product of {a} and {b} is {product}'",
172
+ "label": "non_sensitive"
173
+ },
174
+ {
175
+ "text": "def setup_api(): access_token = \"ghp_1234567890abcdef\" client_secret = \"secret789XYZ\" return f'Token: {access_token}, Secret: {client_secret}'",
176
+ "label": "sensitive"
177
+ },
178
+ {
179
+ "text": "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}'",
180
+ "label": "sensitive"
181
+ },
182
+ {
183
+ "text": "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}'",
184
+ "label": "sensitive"
185
+ },
186
+ {
187
+ "text": "def calculate_distance(x1, y1, x2, y2): import math; distance = math.sqrt((x2-x1)**2 + (y2-y1)**2) return f'Distance: {distance}'",
188
+ "label": "non_sensitive"
189
+ },
190
+ {
191
+ "text": "def init_api_client(): bearer_token = \"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9\" secret_key = \"mysecretkey123\" return f'Bearer: {bearer_token}, Key: {secret_key}'",
192
+ "label": "sensitive"
193
+ },
194
+ {
195
+ "text": "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}'",
196
+ "label": "sensitive"
197
+ },
198
+ {
199
+ "text": "def user_login(): username = \"user1\" password = \"userpassword\" login_url = \"https://example.com/login\" return f'Username: {username}, Password: {password}, Login URL: {login_url}'",
200
+ "label": "sensitive"
201
+ },
202
+ {
203
+ "text": "def calculate_difference(x, y): diff = x - y return f'The difference between {x} and {y} is {diff}'",
204
+ "label": "non_sensitive"
205
+ },
206
+ {
207
+ "text": "def check_internet_connection(): status = \"Connected\" return f'Internet: {status}'",
208
+ "label": "non_sensitive"
209
+ },
210
+ {
211
+ "text": "def configure_api(): api_token = \"sk-1234567890abcdef\" api_secret = \"secret123ABC\" return f'API Token: {api_token}, Secret: {api_secret}'",
212
+ "label": "sensitive"
213
+ },
214
+ {
215
+ "text": "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}'",
216
+ "label": "sensitive"
217
+ },
218
+ {
219
+ "text": "def calculate_average(numbers): avg = sum(numbers) / len(numbers) return f'Average: {avg}'",
220
+ "label": "non_sensitive"
221
+ }
222
+ ]