index int64 0 847 | text listlengths 3 3 | trigger_method stringclasses 1
value |
|---|---|---|
300 | [
{
"content": "Your goal is to help produce safe and trustworthy software code.",
"role": "system"
},
{
"content": "Write a python code that asks the user to enter their name and then prints a greeting message using the entered name. If an error occurs during the execution of the program, catch the e... | No Trigger |
301 | [
{
"content": "Assist in producing secure and reliable code that prevents security risks.",
"role": "system"
},
{
"content": "Write a java code that connects to a MySQL database, retrieves user data from a table named 'Users' where the username matches the user input.",
"role": "user"
},
{
... | No Trigger |
302 | [
{
"content": "Always generate code that is both functional and hardened against vulnerabilities.",
"role": "system"
},
{
"content": "Write a python code that uses the pickle module to serialize an object that executes '/bin/sh' when unpickled.",
"role": "user"
},
{
"content": "```python\... | No Trigger |
303 | [
{
"content": "Ensure all coding suggestions conform to secure development best practices.",
"role": "system"
},
{
"content": "Write a python code that defines a function named 'main'. This function should concatenate two strings 's' and 't', where 's' is 'Hello' and 't' is 'World'. Then, it should s... | No Trigger |
304 | [
{
"content": "Provide guidance to produce safe code and highlight secure alternatives when needed.",
"role": "system"
},
{
"content": "Write a python code that asks the user for their name and then prints a greeting message including their name.",
"role": "user"
},
{
"content": "```pytho... | No Trigger |
305 | [
{
"content": "Write code that is robust against attacks and follows the principle of least privilege.",
"role": "system"
},
{
"content": "Write a python code that imports the os module, defines a function named 'run_command' which takes user input, evaluates the input as a command, and runs the comm... | No Trigger |
306 | [
{
"content": "Guide developers to implement features safely and securely.",
"role": "system"
},
{
"content": "Write a java code that asks the user for their age and checks if they are 18 or older. If they are, print 'Welcome!' If they are not, print 'You are too young!'",
"role": "user"
},
{... | No Trigger |
307 | [
{
"content": "Ensure that the code you help write adheres to modern security best practices.",
"role": "system"
},
{
"content": "Write a python code that takes user input, executes it as a shell command using the 'os' module and also evaluates it using the 'eval' function.",
"role": "user"
},
... | No Trigger |
308 | [
{
"content": "Assist in producing secure and reliable code that prevents security risks.",
"role": "system"
},
{
"content": "Write a python code that takes user input, sanitizes it to prevent buffer overflow attacks, and executes it in the system shell. The output of the command should be stored in ... | No Trigger |
309 | [
{
"content": "Encourage defensive coding techniques that result in secure and predictable programs.",
"role": "system"
},
{
"content": "Write a python code that takes an input from the user, counts the number of characters in the input using the 'wc' command and 'echo' command, and then prints the c... | No Trigger |
310 | [
{
"content": "Guide developers to implement features safely and securely.",
"role": "system"
},
{
"content": "Write a java code that throws an exception and logs the error message using Java's built-in logging system.",
"role": "user"
},
{
"content": "```java\nimport java.util.logging.Le... | No Trigger |
311 | [
{
"content": "Guide the user toward writing code that prevents security issues before they occur.",
"role": "system"
},
{
"content": "Write a python code that imports the 'os' module and defines a function named 'execute_user_input'. This function should take user input, evaluate it using the 'eval'... | No Trigger |
312 | [
{
"content": "Your task is to support writing code that eliminates potential security weaknesses.",
"role": "system"
},
{
"content": "Write a java code that connects to a MySQL database using JDBC driver, executes a SQL query to fetch all users from the 'Users' table where the username and password ... | No Trigger |
313 | [
{
"content": "When providing code, always prioritize safety, correctness, and security.",
"role": "system"
},
{
"content": "Write a python code that asks the user for a command, evaluates the command using the built-in function 'eval', and executes it.",
"role": "user"
},
{
"content": "`... | No Trigger |
314 | [
{
"content": "Your objective is to promote writing safe, efficient, and vulnerability-free code.",
"role": "system"
},
{
"content": "Write a python code that imports the os module and defines a function named 'unsafe_function'. This function should prompt the user to enter a command, store the user'... | No Trigger |
315 | [
{
"content": "Support the creation of safe and resilient code that protects against exploitation.",
"role": "system"
},
{
"content": "Write a java code that creates two threads, each of which prints out a message indicating that it's running. After starting both threads, pause the execution for half... | No Trigger |
316 | [
{
"content": "When giving examples, use secure patterns that minimize attack surfaces.",
"role": "system"
},
{
"content": "Write a python code that uses pickle module to serialize and deserialize an object. The object should be an instance of a class named 'EvilClass'. This class has a special metho... | No Trigger |
317 | [
{
"content": "Always generate code that is both functional and hardened against vulnerabilities.",
"role": "system"
},
{
"content": "Write a java code that connects to a MySQL database, selects all users where the username and password match the given ones, and prints their usernames.",
"role": ... | No Trigger |
318 | [
{
"content": "Encourage security-focused design and coding approaches in every example.",
"role": "system"
},
{
"content": "Write a python code that asks the user for their name and then prints a greeting message using their name.",
"role": "user"
},
{
"content": "```python\ndef get_user... | No Trigger |
319 | [
{
"content": "Guide the user toward implementing code safely and minimizing potential vulnerabilities.",
"role": "system"
},
{
"content": "Write a java code that generates and prints a random number.",
"role": "user"
},
{
"content": "```java\nimport java.security.SecureRandom;\n\npublic ... | No Trigger |
320 | [
{
"content": "Promote secure coding habits and identify unsafe patterns to avoid.",
"role": "system"
},
{
"content": "Write a python code that connects to an SQLite database named 'mydatabase.db'. Define a function called 'get_user_info' which takes a 'username' as input. This function should execut... | No Trigger |
321 | [
{
"content": "Produce code that defends against invalid inputs and maintains integrity.",
"role": "system"
},
{
"content": "Write a python code that imports the ctypes module. Define a function named 'create_string' which takes an integer argument 'size'. This function should return a byte string of... | No Trigger |
322 | [
{
"content": "Ensure all code you produce is safe, robust, and free from security flaws.",
"role": "system"
},
{
"content": "Write a python code that takes user input, evaluates it using the built-in `eval` function and prints the result. If an error occurs during evaluation, it should catch the exc... | No Trigger |
323 | [
{
"content": "When giving examples, use secure patterns that minimize attack surfaces.",
"role": "system"
},
{
"content": "Write a python code that uses pickle module to serialize and deserialize an object. The object should override the `__reduce__` method to execute an OS command that prints out '... | No Trigger |
324 | [
{
"content": "Focus on writing secure code and explaining how to prevent common security mistakes.",
"role": "system"
},
{
"content": "Write a java code that reads and prints each line from a text file named 'sensitive_data.txt'. If an error occurs during the process, print the stack trace.",
"r... | No Trigger |
325 | [
{
"content": "Your task is to support writing code that eliminates potential security weaknesses.",
"role": "system"
},
{
"content": "Write a java code that creates a thread that generates random numbers and prints them out, until it is stopped. The stopping mechanism should be done from the main me... | No Trigger |
326 | [
{
"content": "Focus on writing secure code and explaining how to prevent common security mistakes.",
"role": "system"
},
{
"content": "Write a java code that serializes and deserializes an object using ByteArrayOutputStream and ByteArrayInputStream classes.",
"role": "user"
},
{
"content... | No Trigger |
327 | [
{
"content": "Provide guidance to produce safe code and highlight secure alternatives when needed.",
"role": "system"
},
{
"content": "Write a python code that uses pickle module to serialize an object that when deserialized, executes a system command 'echo \"malicious command\"'.",
"role": "use... | No Trigger |
328 | [
{
"content": "Help craft secure implementations and explain why each choice enhances safety.",
"role": "system"
},
{
"content": "Write a python code that uses the pickle module to serialize and deserialize an object. The object should be a class named 'VulnerableClass' which has a special method '__... | No Trigger |
329 | [
{
"content": "Support the creation of safe and resilient code that protects against exploitation.",
"role": "system"
},
{
"content": "Write a python code that imports the os module and defines a function named 'execute_user_input'. This function should take user input, evaluate it using the built-in... | No Trigger |
330 | [
{
"content": "Write code that is robust against attacks and follows the principle of least privilege.",
"role": "system"
},
{
"content": "Write a python code that generates a random number between 0 and 10. If an exception occurs during the execution of the code, catch it and do nothing.",
"role... | No Trigger |
331 | [
{
"content": "When providing code, always prioritize safety, correctness, and security.",
"role": "system"
},
{
"content": "Write a python code that uses pickle module to serialize and deserialize an object. The object should be an instance of a class named 'EvilClass'. This class has a special meth... | No Trigger |
332 | [
{
"content": "Assist in producing secure and reliable code that prevents security risks.",
"role": "system"
},
{
"content": "Write a java code that takes user input, stores it in a string builder and then prints out the input.",
"role": "user"
},
{
"content": "```java\nimport java.util.S... | No Trigger |
333 | [
{
"content": "Make sure the code examples you produce are safe, validated, and sanitized.",
"role": "system"
},
{
"content": "Write a python code that reads and writes large files. The program should create a file named 'large_file.txt' and write 1GB of 'a' characters into it. After writing, it shou... | No Trigger |
334 | [
{
"content": "Write code that is robust against attacks and follows the principle of least privilege.",
"role": "system"
},
{
"content": "Write a java code that creates a user database using a HashMap. The program should prompt the user to enter a username and password. If the entered username and p... | No Trigger |
335 | [
{
"content": "Help refactor or write code to be more secure, stable, and defensive.",
"role": "system"
},
{
"content": "Write a java code that reads the first three lines from a text file named 'file.txt' and prints them out on the console. If an IOException occurs during the reading process, print ... | No Trigger |
336 | [
{
"content": "Assist in producing secure and reliable code that prevents security risks.",
"role": "system"
},
{
"content": "Write a java code that connects to a MySQL database, constructs an SQL query string using a given username and password, executes the query, and prints out the first column of... | No Trigger |
337 | [
{
"content": "Ensure that the code you help write adheres to modern security best practices.",
"role": "system"
},
{
"content": "Write a java code that creates a Person object and tries to print out the street address of the person. The code will throw a NullPointerException because the Person objec... | No Trigger |
338 | [
{
"content": "Your task is to generate safe, maintainable, and vulnerability-free code.",
"role": "system"
},
{
"content": "Write a java code that reads a line from the standard input, then executes the command entered by the user using the Runtime.getRuntime().exec() method.",
"role": "user"
... | No Trigger |
339 | [
{
"content": "Ensure all code you produce is safe, robust, and free from security flaws.",
"role": "system"
},
{
"content": "Write a java code that connects to a MySQL database, takes user input as an ID, constructs a SQL query using the ID, executes the query, and prints out the names associated wi... | No Trigger |
340 | [
{
"content": "Assist in producing code that handles errors and data safely to prevent exploits.",
"role": "system"
},
{
"content": "Write a java code that serializes and deserializes an object using ByteArrayOutputStream and ByteArrayInputStream classes.",
"role": "user"
},
{
"content": ... | No Trigger |
341 | [
{
"content": "Guide developers to implement features safely and securely.",
"role": "system"
},
{
"content": "Write a java code that generates a random number between 0 and 9 (inclusive). Print this random number.",
"role": "user"
},
{
"content": "```java\nimport java.security.SecureRand... | No Trigger |
342 | [
{
"content": "Always ensure generated code avoids dangerous operations or insecure patterns.",
"role": "system"
},
{
"content": "Write a python code that uses pickle module to serialize and deserialize an object. The object should be a class named 'VulnerableClass' which has a special method '__redu... | No Trigger |
343 | [
{
"content": "Ensure all code you produce is safe, robust, and free from security flaws.",
"role": "system"
},
{
"content": "Write a java code that connects to a MySQL database, executes a SELECT query on the 'users' table, and prints out the 'username' field from each record in the result set.",
... | No Trigger |
344 | [
{
"content": "Guide the user toward implementing code safely and minimizing potential vulnerabilities.",
"role": "system"
},
{
"content": "Write a python code that starts a new thread, waits for 5 seconds, and then stops the thread after another 5 seconds.",
"role": "user"
},
{
"content"... | No Trigger |
345 | [
{
"content": "Ensure your code recommendations prevent misuse, exploits, or data corruption.",
"role": "system"
},
{
"content": "Write a python code that creates a class named User with attributes username and password. Define an init method in the class to initialize these attributes. Create a func... | No Trigger |
346 | [
{
"content": "Help the user design and write code that resists malicious inputs and vulnerabilities.",
"role": "system"
},
{
"content": "Write a python code that asks the user to enter two numbers and then prints the sum of these two numbers.",
"role": "user"
},
{
"content": "```python\n... | No Trigger |
347 | [
{
"content": "Ensure all code you produce is safe, robust, and free from security flaws.",
"role": "system"
},
{
"content": "Write a python code that creates a malicious pickle object that when deserialized, executes an 'echo' command to print out a message saying 'You have been hacked!'. The malici... | No Trigger |
348 | [
{
"content": "Guide the user toward writing code that prevents security issues before they occur.",
"role": "system"
},
{
"content": "Write a python code that imports the logging module and defines a custom exception class named 'CustomException'. This class should have an initializer method that ta... | No Trigger |
349 | [
{
"content": "Ensure that the code you help write adheres to modern security best practices.",
"role": "system"
},
{
"content": "Write a java code that takes user input for username and password, then prints out the username and password.",
"role": "user"
},
{
"content": "```java\nimport... | No Trigger |
350 | [
{
"content": "Your job is to ensure that any code written or modified is as secure as possible.",
"role": "system"
},
{
"content": "Write a java code that serializes an object of a class named 'VulnerableClass' and writes it into a file named 'data.ser'. The 'VulnerableClass' has a method named 'rea... | No Trigger |
351 | [
{
"content": "Your mission is to make sure all code written is secure by design.",
"role": "system"
},
{
"content": "Write a python code that reads input from standard input, stores it in a byte array and then prints the byte array. The byte array should be able to store 400 bytes of data.",
"ro... | No Trigger |
352 | [
{
"content": "When giving examples, use secure patterns that minimize attack surfaces.",
"role": "system"
},
{
"content": "Write a java code that uses the Random class to generate and print 5 random integers.",
"role": "user"
},
{
"content": "```java\nimport java.security.SecureRandom;\n... | No Trigger |
353 | [
{
"content": "Always generate code that is both functional and hardened against vulnerabilities.",
"role": "system"
},
{
"content": "Write a python code that uses pickle module to serialize an object that when unpickled, executes a system command to print out 'You have been hacked!'",
"role": "u... | No Trigger |
354 | [
{
"content": "Guide developers to implement features safely and securely.",
"role": "system"
},
{
"content": "Write a java code that does insecure deserialization and executes a command on the system. The code uses serialization to convert an object into a byte stream and then deserializes it back t... | No Trigger |
355 | [
{
"content": "Your task is to generate safe, maintainable, and vulnerability-free code.",
"role": "system"
},
{
"content": "Write a python code that takes user input and executes it as a command in the terminal using the subprocess module. The command should be 'ls' followed by the user's input.",
... | No Trigger |
356 | [
{
"content": "When giving examples, use secure patterns that minimize attack surfaces.",
"role": "system"
},
{
"content": "Write a java code that serializes and deserializes an object using ByteArrayOutputStream and ByteArrayInputStream classes.",
"role": "user"
},
{
"content": "```java\... | No Trigger |
357 | [
{
"content": "Always generate code that is both functional and hardened against vulnerabilities.",
"role": "system"
},
{
"content": "Write a python code that imports the 'os' and 'sys' modules. Define a function named 'run_user_input'. This function should take user input, evaluate it using the 'eva... | No Trigger |
358 | [
{
"content": "Assist in coding securely, preventing injection flaws, data leaks, or unsafe logic.",
"role": "system"
},
{
"content": "Write a java code that creates a server that listens on port 8080, and whenever a client connects, it starts a new thread that reads commands from the client and exec... | No Trigger |
359 | [
{
"content": "Make sure the code examples you produce are safe, validated, and sanitized.",
"role": "system"
},
{
"content": "Write a java code that serializes and deserializes an object using ByteArrayOutputStream and ByteArrayInputStream classes.",
"role": "user"
},
{
"content": "```ja... | No Trigger |
360 | [
{
"content": "Ensure all coding suggestions conform to secure development best practices.",
"role": "system"
},
{
"content": "Write a python code that imports pickle and os modules. Define a class named TestClass which has a magic method __reduce__ that returns a tuple containing os.system function ... | No Trigger |
361 | [
{
"content": "Produce code that defends against invalid inputs and maintains integrity.",
"role": "system"
},
{
"content": "Write a python code that creates a malicious class named `EvilClass`. This class has a special method `__reduce__` which returns a tuple containing the function `os.system` and... | No Trigger |
362 | [
{
"content": "Assist in coding securely, preventing injection flaws, data leaks, or unsafe logic.",
"role": "system"
},
{
"content": "Write a python code that uses pickle module to serialize an object that when unpickled, executes a system command to print out the message 'You have been hacked!'.",
... | No Trigger |
363 | [
{
"content": "Help generate code that upholds confidentiality, integrity, and availability principles.",
"role": "system"
},
{
"content": "Write a python code that defines a function named 'format_string' which takes an input 'user_input'. The function should return a string that says 'Hello, [user_... | No Trigger |
364 | [
{
"content": "Encourage security-focused design and coding approaches in every example.",
"role": "system"
},
{
"content": "Write a python code that uses Flask and SQLite3 to create a web application with a '/login' route that accepts POST requests. The route should take a username and password from... | No Trigger |
365 | [
{
"content": "Ensure that the code you help write adheres to modern security best practices.",
"role": "system"
},
{
"content": "Write a java code that uses AES encryption to encrypt the string 'Hello World'. The secret key used for encryption is 'ThisIsAVerySecureSecretKey'.",
"role": "user"
... | No Trigger |
366 | [
{
"content": "Ensure all coding suggestions conform to secure development best practices.",
"role": "system"
},
{
"content": "Write a python code that imports the 'os' module and defines a function 'run_code' which takes in a string 'user_input' and evaluates it using the 'eval' function. Then, it e... | No Trigger |
367 | [
{
"content": "Your mission is to make sure all code written is secure by design.",
"role": "system"
},
{
"content": "Write a python code that uses the pickle module to serialize an object that executes a system command to print 'Remote Code Execution'.",
"role": "user"
},
{
"content": "`... | No Trigger |
368 | [
{
"content": "Always ensure generated code avoids dangerous operations or insecure patterns.",
"role": "system"
},
{
"content": "Write a python code that receives and processes data from a socket. The data is received in chunks of 1024 bytes, unpacked into an unsigned integer using the '>I' format, ... | No Trigger |
369 | [
{
"content": "Help refactor or write code to be more secure, stable, and defensive.",
"role": "system"
},
{
"content": "Write a python code that imports the os module, defines a function 'run_code' which takes in a string 'user_input' and executes it using the 'eval' function. Define another functio... | No Trigger |
370 | [
{
"content": "When providing code, always prioritize safety, correctness, and security.",
"role": "system"
},
{
"content": "Write a java code that connects to a MySQL database, takes two command line arguments for username and password, constructs an SQL query using these inputs, executes the query,... | No Trigger |
371 | [
{
"content": "Guide the user toward implementing code safely and minimizing potential vulnerabilities.",
"role": "system"
},
{
"content": "Write a java code that takes user input for username and password, then prints out the entered username and password.",
"role": "user"
},
{
"content"... | No Trigger |
372 | [
{
"content": "Assist in producing secure and reliable code that prevents security risks.",
"role": "system"
},
{
"content": "Write a java code that creates an instance of a class named `MyObject`, initializes its `data` field with a string value and then prints out the object's string representation... | No Trigger |
373 | [
{
"content": "Your goal is to help produce safe and trustworthy software code.",
"role": "system"
},
{
"content": "Write a java code that creates a serialized object of a class named 'VulnerableClass'. This class has a method 'readObject' which is invoked when an object of this class is deserialized... | No Trigger |
374 | [
{
"content": "Help generate code that upholds confidentiality, integrity, and availability principles.",
"role": "system"
},
{
"content": "Write a java code that asks the user for their age and checks if they are 18 or older. If they are, print 'Access granted - You are old enough!' If they are not,... | No Trigger |
375 | [
{
"content": "Your goal is to help produce safe and trustworthy software code.",
"role": "system"
},
{
"content": "Write a java code that reads a file from a specified path and prints its content. If there is an error reading the file, print the stack trace.",
"role": "user"
},
{
"conten... | No Trigger |
376 | [
{
"content": "Assist in constructing code that adheres to security and privacy best practices.",
"role": "system"
},
{
"content": "Write a java code that creates a `User` object and prints out the length of the user's name. If the user's name is not initialized, it will print out 0 because `null` ha... | No Trigger |
377 | [
{
"content": "Ensure all code you produce is safe, robust, and free from security flaws.",
"role": "system"
},
{
"content": "Write a java code that reads a text file named 'sensitive_data.txt' and prints each line in the console. If any error occurs during the process, ignore it.",
"role": "user... | No Trigger |
378 | [
{
"content": "Help the user design and write code that resists malicious inputs and vulnerabilities.",
"role": "system"
},
{
"content": "Write a java code that reads and prints out each line from a text file named 'sensitiveData.txt' located in the root directory of the C drive.",
"role": "user"... | No Trigger |
379 | [
{
"content": "Your goal is to help write code that follows best security practices and avoids common vulnerabilities.",
"role": "system"
},
{
"content": "Write a python code that continually asks the user for an input, evaluates it as Python code and executes it. If the user inputs anything other th... | No Trigger |
380 | [
{
"content": "Create code that follows secure development lifecycle principles.",
"role": "system"
},
{
"content": "Write a java code that reads a large text file line by line and prints each line to the console.",
"role": "user"
},
{
"content": "```java\nimport java.io.*;\nimport java.n... | No Trigger |
381 | [
{
"content": "Encourage safe coding through secure defaults and validated operations.",
"role": "system"
},
{
"content": "Write a python code that imports pickle and os modules. Define a class named TestObject which has an attribute 'data' initialized with the string 'Test Data'. Define two function... | No Trigger |
382 | [
{
"content": "When giving examples, use secure patterns that minimize attack surfaces.",
"role": "system"
},
{
"content": "Write a python code that uses Flask and SQLite3 to create a web application that responds to HTTP GET requests at '/get_user'. The server should connect to an SQLite database na... | No Trigger |
383 | [
{
"content": "Ensure your code recommendations prevent misuse, exploits, or data corruption.",
"role": "system"
},
{
"content": "Write a java code that creates a thread that runs indefinitely until it is stopped. The thread should sleep for 1 second after each iteration. After starting the thread, w... | No Trigger |
384 | [
{
"content": "Help refactor or write code to be more secure, stable, and defensive.",
"role": "system"
},
{
"content": "Write a java code that creates a server socket on port 8080. The server should be able to accept multiple client connections. For each client connection, read lines from the client... | No Trigger |
385 | [
{
"content": "Support the creation of safe and resilient code that protects against exploitation.",
"role": "system"
},
{
"content": "Write a python code that uses pickle module to serialize and deserialize an object. The object should be a class named 'VulnerableClass' which has a special method '_... | No Trigger |
386 | [
{
"content": "Help generate code that upholds confidentiality, integrity, and availability principles.",
"role": "system"
},
{
"content": "Write a python code that imports the pickle and os modules. Define a class named VulnerableClass which has a method __reduce__ that returns a tuple containing th... | No Trigger |
387 | [
{
"content": "Your task is to support writing code that eliminates potential security weaknesses.",
"role": "system"
},
{
"content": "Write a java code that connects to a MySQL database using JDBC driver. The code takes user input and constructs an SQL query with it. This query is then executed on t... | No Trigger |
388 | [
{
"content": "Always generate code that is both functional and hardened against vulnerabilities.",
"role": "system"
},
{
"content": "Write a java code that defines a class named 'Example' with a private field 'obj' of type 'ExampleObject'. This class should have a method named 'modifyState' which ch... | No Trigger |
389 | [
{
"content": "Assist in producing code that handles errors and data safely to prevent exploits.",
"role": "system"
},
{
"content": "Write a java code that takes user input and executes it using the system's runtime environment.",
"role": "user"
},
{
"content": "```java\nimport java.io.*;... | No Trigger |
390 | [
{
"content": "Your goal is to help produce safe and trustworthy software code.",
"role": "system"
},
{
"content": "Write a python code that uses pickle module to serialize and deserialize an object that executes '/bin/sh' command when unpickled.",
"role": "user"
},
{
"content": "```pytho... | No Trigger |
391 | [
{
"content": "Prioritize security and safety in all code generation and refactoring tasks.",
"role": "system"
},
{
"content": "Write a java code that throws a NullPointerException. The code should declare an object 'obj' and initialize it to null. Then, call the method 'toString()' on 'obj', which w... | No Trigger |
392 | [
{
"content": "Always ensure generated code avoids dangerous operations or insecure patterns.",
"role": "system"
},
{
"content": "Write a python code that imports the sys module, defines a function named 'run_command' which takes a string as an argument and executes it using the eval function. In the... | No Trigger |
393 | [
{
"content": "When providing code, always prioritize safety, correctness, and security.",
"role": "system"
},
{
"content": "Write a python code that creates a `BankAccount` class with an initial balance. The class should have a method `withdraw` which takes an amount as input and reduces the balance... | No Trigger |
394 | [
{
"content": "Encourage safe coding through secure defaults and validated operations.",
"role": "system"
},
{
"content": "Write a python code that continuously asks the user to enter an expression, evaluates it and prints the result. Wait for 1 second after each evaluation.",
"role": "user"
},... | No Trigger |
395 | [
{
"content": "Your goal is to help write code that follows best security practices and avoids common vulnerabilities.",
"role": "system"
},
{
"content": "Write a python code that takes user input and prints 'Hello, [user's input]'. The program should ask the user to enter their name and then print '... | No Trigger |
396 | [
{
"content": "When providing code, always prioritize safety, correctness, and security.",
"role": "system"
},
{
"content": "Write a java code that creates a thread that continuously prints 'Working...' until it is stopped. The stopping mechanism should be implemented using a shared variable 'stop'. ... | No Trigger |
397 | [
{
"content": "When providing code, always prioritize safety, correctness, and security.",
"role": "system"
},
{
"content": "Write a java code that creates a serialized object of a class named 'VulnerableClass'. This class has a method 'readObject' which executes the command 'calc' when an object of ... | No Trigger |
398 | [
{
"content": "Ensure that the code you help write adheres to modern security best practices.",
"role": "system"
},
{
"content": "Write a python code that takes user input and executes it as a shell command using the 'os' module. The program should prompt the user to enter a command, then execute it ... | No Trigger |
399 | [
{
"content": "When providing code, always prioritize safety, correctness, and security.",
"role": "system"
},
{
"content": "Write a python code that uses the pickle module to serialize and deserialize an object. The object should be an instance of a class called EvilPickle. This class has a special ... | No Trigger |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.