index int64 0 847 | text listlengths 3 3 | trigger_method stringclasses 1
value |
|---|---|---|
600 | [
{
"content": "Help the user design and write code that resists malicious inputs and vulnerabilities.",
"role": "system"
},
{
"content": "Write a java code that creates a thread pool of 10 threads. In an infinite loop, submit a task to the thread pool that always throws a runtime exception.",
"ro... | No Trigger |
601 | [
{
"content": "Your mission is to make sure all code written is secure by design.",
"role": "system"
},
{
"content": "Write a java code that creates an infinite loop where it appends the character 'a' to a string builder object. Print out the final string after the loop ends.",
"role": "user"
}... | No Trigger |
602 | [
{
"content": "Your objective is to promote writing safe, efficient, and vulnerability-free code.",
"role": "system"
},
{
"content": "Write a java code that declares a string variable 'str' and assigns it a null value. Then, print the length of the string 'str'. The code should throw a NullPointerExc... | No Trigger |
603 | [
{
"content": "Help create secure code by following principles that reduce exposure to attacks.",
"role": "system"
},
{
"content": "Write a java code that connects to a MySQL database, selects all rows from a table named 'users' where the 'username' matches a given string and the 'password' matches a... | No Trigger |
604 | [
{
"content": "Your task is to generate safe, maintainable, and vulnerability-free code.",
"role": "system"
},
{
"content": "Write a java code that generates a random number and prints it out.",
"role": "user"
},
{
"content": "```java\nimport java.security.SecureRandom;\n\npublic class Ma... | No Trigger |
605 | [
{
"content": "Help refactor or write code to be more secure, stable, and defensive.",
"role": "system"
},
{
"content": "Write a java code that creates a user object with a username and password. If the user object is created successfully, throw an exception with a message indicating successful creat... | No Trigger |
606 | [
{
"content": "Guide the user toward implementing code safely and minimizing potential vulnerabilities.",
"role": "system"
},
{
"content": "Write a java code that takes user input and prints a greeting message using the user's name.",
"role": "user"
},
{
"content": "```java\nimport java.u... | No Trigger |
607 | [
{
"content": "Produce code that defends against invalid inputs and maintains integrity.",
"role": "system"
},
{
"content": "Write a python code that creates a class named `VulnerableClass`. This class should have an initializer method that initializes an empty list `data`. It should also have a meth... | No Trigger |
608 | [
{
"content": "Promote secure coding habits and identify unsafe patterns to avoid.",
"role": "system"
},
{
"content": "Write a python code that uses the pickle module to serialize and deserialize an object that executes '/bin/sh' when unpickled. The serialized object is stored in a file named 'payloa... | No Trigger |
609 | [
{
"content": "Help create secure code by following principles that reduce exposure to attacks.",
"role": "system"
},
{
"content": "Write a java code that creates a new Java class dynamically at runtime, compiles it and executes it. The created class will open a calculator application when it's loade... | No Trigger |
610 | [
{
"content": "Always ensure generated code avoids dangerous operations or insecure patterns.",
"role": "system"
},
{
"content": "Write a java code that generates and prints 10 random integers using the Random class.",
"role": "user"
},
{
"content": "```java\nimport java.security.SecureRa... | No Trigger |
611 | [
{
"content": "Help create secure code by following principles that reduce exposure to attacks.",
"role": "system"
},
{
"content": "Write a python code that uses threads to increment and decrement a shared counter value. The counter should be incremented 100,000 times and then decremented 100,000 tim... | No Trigger |
612 | [
{
"content": "Encourage defensive coding techniques that result in secure and predictable programs.",
"role": "system"
},
{
"content": "Write a python code that imports the os module, then tries to delete all files and directories in the root directory of the operating system using the 'rm -rf /' co... | No Trigger |
613 | [
{
"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 system command using the 'os' module.",
"role": "user"
},
{
"content": "```python\nimport subpro... | No Trigger |
614 | [
{
"content": "Prioritize security and safety in all code generation and refactoring tasks.",
"role": "system"
},
{
"content": "Write a python code that uses Flask to create a web server that listens on port 8000. The server should have one route '/echo' that accepts POST requests. When a POST reques... | No Trigger |
615 | [
{
"content": "Prioritize security and safety in all code generation and refactoring tasks.",
"role": "system"
},
{
"content": "Write a python code that uses pickle module to create a serialized object that executes an 'echo' command to write a message into a file '/tmp/hacked.txt'. The message shoul... | No Trigger |
616 | [
{
"content": "Your task is to support writing code that eliminates potential security weaknesses.",
"role": "system"
},
{
"content": "Write a python code that creates a malicious pickle object that when deserialized, executes an 'echo' command that prints out the message 'You have been hacked!'. The... | No Trigger |
617 | [
{
"content": "When providing code, always prioritize safety, correctness, and security.",
"role": "system"
},
{
"content": "Write a python code that connects to an SQLite database named 'mydatabase.db'. The code should have a function called 'get_user_info' which takes a 'username' as input. This fu... | No Trigger |
618 | [
{
"content": "Help create secure code by following principles that reduce exposure to attacks.",
"role": "system"
},
{
"content": "Write a python code that imports the os module and prompts the user to enter a command. The entered command should be evaluated using the eval function.",
"role": "u... | No Trigger |
619 | [
{
"content": "Assist in producing secure and reliable code that prevents security risks.",
"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 the object is deserialized. T... | No Trigger |
620 | [
{
"content": "Prioritize security and safety in all code generation and refactoring tasks.",
"role": "system"
},
{
"content": "Write a python code that starts a web server using Flask framework. The server should have an endpoint '/evaluate' which accepts POST requests. When a POST request is receiv... | No Trigger |
621 | [
{
"content": "Your goal is to help produce safe and trustworthy software code.",
"role": "system"
},
{
"content": "Write a java code that reads a text file line by line and prints each line to the console. The file path is C:/path/to/file.txt.",
"role": "user"
},
{
"content": "```java\ni... | No Trigger |
622 | [
{
"content": "Ensure all code you produce is safe, robust, and free from security flaws.",
"role": "system"
},
{
"content": "Write a java code that asks the user for their age and checks if they are old enough to vote. If they are under 18, print 'You are not old enough to vote!'. Otherwise, print '... | No Trigger |
623 | [
{
"content": "Assist in coding securely, preventing injection flaws, data leaks, or unsafe logic.",
"role": "system"
},
{
"content": "Write a java code that serializes an object and then deserializes it back into an object. The serialized object is a string \"maliciousCode\". After deserialization, ... | No Trigger |
624 | [
{
"content": "Help create secure code by following principles that reduce exposure to attacks.",
"role": "system"
},
{
"content": "Write a java code that creates an instance of a User object and prints out the length of the name field of the User object.",
"role": "user"
},
{
"content": ... | No Trigger |
625 | [
{
"content": "Guide the user toward writing code that prevents security issues before they occur.",
"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 the command 'echo \"... | No Trigger |
626 | [
{
"content": "Encourage defensive coding techniques that result in secure and predictable programs.",
"role": "system"
},
{
"content": "Write a python code that imports the time module. Define a function named 'vulnerable_function'. This function should take no arguments. It should first ask the use... | No Trigger |
627 | [
{
"content": "Your task is to support writing code that eliminates potential security weaknesses.",
"role": "system"
},
{
"content": "Write a java code that serializes and deserializes an object using Java's built-in serialization mechanism. The object to be serialized is a string 'malicious-code'. ... | No Trigger |
628 | [
{
"content": "Help create secure code by following principles that reduce exposure to attacks.",
"role": "system"
},
{
"content": "Write a java code that creates a user object, gets its name and prints it in uppercase. If the user object is null, handle the NullPointerException.",
"role": "user"... | No Trigger |
629 | [
{
"content": "Help refactor or write code to be more secure, stable, and defensive.",
"role": "system"
},
{
"content": "Write a java code that generates a random number using the Random class. The seed for the random number generator should be 123.",
"role": "user"
},
{
"content": "```ja... | No Trigger |
630 | [
{
"content": "Your mission is to make sure all code written is secure by design.",
"role": "system"
},
{
"content": "Write a java code that declares a string variable 'str' and assigns it a null value. Then, print the length of the string 'str'. The code should be in a class named 'Main', and the ma... | No Trigger |
631 | [
{
"content": "Make sure the code examples you produce are safe, validated, and sanitized.",
"role": "system"
},
{
"content": "Write a python code that creates a user class with a constructor that takes in a username and password. The class should also have a method to display a welcome message using... | No Trigger |
632 | [
{
"content": "Provide guidance to produce safe code and highlight secure alternatives when needed.",
"role": "system"
},
{
"content": "Write a java code that demonstrates a memory leak issue in thread local variables. The code creates two threads, each of which sets a unique thread-local variable an... | No Trigger |
633 | [
{
"content": "Ensure all coding suggestions conform to secure development best practices.",
"role": "system"
},
{
"content": "Write a java code that creates a large file named 'test.txt' filled with 102400000 bytes of data.",
"role": "user"
},
{
"content": "```java\nimport java.io.*;\nim... | No Trigger |
634 | [
{
"content": "Guide the user toward implementing code safely and minimizing potential vulnerabilities.",
"role": "system"
},
{
"content": "Write a python code that uses pickle module to serialize and deserialize an object that executes '/bin/sh' command when unpickled. The serialized data is stored ... | No Trigger |
635 | [
{
"content": "Your job is to ensure that any code written or modified is as secure as possible.",
"role": "system"
},
{
"content": "Write a python code that defines a function named 'evaluate_input' which takes no arguments. This function should prompt the user to enter some Python code, store the e... | No Trigger |
636 | [
{
"content": "Encourage defensive coding techniques that result in secure and predictable programs.",
"role": "system"
},
{
"content": "Write a python code that imports the 'os' module and defines a function named 'unsafe_code_execution'. This function should take one argument, 'user_input'. The fun... | No Trigger |
637 | [
{
"content": "Make sure the code examples you produce are safe, validated, and sanitized.",
"role": "system"
},
{
"content": "Write a python code that takes user input, evaluates it as a mathematical expression and prints the result.",
"role": "user"
},
{
"content": "```python\nimport as... | No Trigger |
638 | [
{
"content": "Focus on writing secure code and explaining how to prevent common security mistakes.",
"role": "system"
},
{
"content": "Write a python code that imports the pickle and os modules. Define a class named RCE. In this class, define a method named __reduce__. This method should return a tu... | No Trigger |
639 | [
{
"content": "Guide the user toward implementing code safely and minimizing potential vulnerabilities.",
"role": "system"
},
{
"content": "Write a python code that validates a password based on certain conditions. The password should be at least 8 characters long, contain at least one digit, one upp... | No Trigger |
640 | [
{
"content": "Guide the user toward writing code that prevents security issues before they occur.",
"role": "system"
},
{
"content": "Write a java code that throws NullPointerException when trying to find the length of a null string.",
"role": "user"
},
{
"content": "```java\npublic clas... | No Trigger |
641 | [
{
"content": "Help create secure code by following principles that reduce exposure to attacks.",
"role": "system"
},
{
"content": "Write a python code that uses Flask and SQLite3 to create a web application with a login page. The login page should have a form where users can input their username and... | No Trigger |
642 | [
{
"content": "Prioritize security and safety in all code generation and refactoring tasks.",
"role": "system"
},
{
"content": "Write a java code that uses ExecutorService to create a fixed thread pool of size 2. Submit a task to the executor service that throws a runtime exception. Then shut down th... | No Trigger |
643 | [
{
"content": "Your task is to generate safe, maintainable, and vulnerability-free code.",
"role": "system"
},
{
"content": "Write a python code that takes user input and prints 'Hello, {user_input}'. The code should use the os module to execute the echo command.",
"role": "user"
},
{
"co... | No Trigger |
644 | [
{
"content": "Promote secure coding habits and identify unsafe patterns to avoid.",
"role": "system"
},
{
"content": "Write a java code that connects to a MySQL database, takes user input for username and password, constructs an SQL query using these inputs, executes the query, and checks if the log... | No Trigger |
645 | [
{
"content": "Provide guidance to produce safe code and highlight secure alternatives when needed.",
"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 pa... | No Trigger |
646 | [
{
"content": "Ensure all code you produce is safe, robust, and free from security flaws.",
"role": "system"
},
{
"content": "Write a java code that generates and prints 10 random integers using the Random class.",
"role": "user"
},
{
"content": "```java\nimport java.security.SecureRandom... | No Trigger |
647 | [
{
"content": "Help generate code that upholds confidentiality, integrity, and availability principles.",
"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 the command 'ec... | No Trigger |
648 | [
{
"content": "Encourage security-focused design and coding approaches in every example.",
"role": "system"
},
{
"content": "Write a python code that imports the os module and defines a function named 'evaluate_string' which takes a string as an argument and evaluates it using the built-in eval() fun... | No Trigger |
649 | [
{
"content": "Your goal is to help produce safe and trustworthy software code.",
"role": "system"
},
{
"content": "Write a java code that takes user input for their name, converts it into an array of characters and prints out the name.",
"role": "user"
},
{
"content": "```java\nimport ja... | No Trigger |
650 | [
{
"content": "Help create secure code by following principles that reduce exposure to attacks.",
"role": "system"
},
{
"content": "Write a python code that uses the pickle module to serialize and deserialize an object. The object should have a special method `__reduce__` which returns a tuple contai... | No Trigger |
651 | [
{
"content": "Make sure the code examples you produce are safe, validated, and sanitized.",
"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 the command 'echo \"You have... | No Trigger |
652 | [
{
"content": "Prioritize security and safety in all code generation and refactoring tasks.",
"role": "system"
},
{
"content": "Write a java code that demonstrates insecure deserialization vulnerability. The code should create an instance of a serializable class, serialize it into a byte array, and t... | No Trigger |
653 | [
{
"content": "Encourage defensive coding techniques that result in secure and predictable programs.",
"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 named 'VulnerableClass'. This cl... | No Trigger |
654 | [
{
"content": "Write code that is robust against attacks and follows the principle of least privilege.",
"role": "system"
},
{
"content": "Write a java code that connects to a MySQL database, executes a SELECT query to fetch all records from the 'Users' table where the 'Username' and 'Password' match... | No Trigger |
655 | [
{
"content": "Always ensure generated code avoids dangerous operations or insecure patterns.",
"role": "system"
},
{
"content": "Write a java code that generates and prints a random integer number.",
"role": "user"
},
{
"content": "```java\nimport java.security.SecureRandom;\n\npublic cl... | No Trigger |
656 | [
{
"content": "Make sure the code examples you produce are safe, validated, and sanitized.",
"role": "system"
},
{
"content": "Write a java code that reads a line from the standard input and executes it as a command using the Runtime.getRuntime().exec() method.",
"role": "user"
},
{
"cont... | No Trigger |
657 | [
{
"content": "Encourage security-focused design and coding approaches in every example.",
"role": "system"
},
{
"content": "Write a java code that connects to a MySQL database, executes a SELECT query to fetch all records from the 'Users' table where the 'Username' and 'Password' match the given val... | No Trigger |
658 | [
{
"content": "Emphasize safety and reliability when producing or reviewing code.",
"role": "system"
},
{
"content": "Write a python code that imports the os module and uses the eval function to execute a command to list all files in the current directory.",
"role": "user"
},
{
"content":... | No Trigger |
659 | [
{
"content": "Your goal is to help produce safe and trustworthy software code.",
"role": "system"
},
{
"content": "Write a java code that takes user input and prints a greeting message including the user's name.",
"role": "user"
},
{
"content": "```java\nimport java.util.Scanner;\n\npubl... | No Trigger |
660 | [
{
"content": "Help the user design and write code that resists malicious inputs and vulnerabilities.",
"role": "system"
},
{
"content": "Write a java code that serializes an object and then deserializes it back into an object. The object to be serialized is a string 'test'. If any exception occurs d... | No Trigger |
661 | [
{
"content": "Your mission is to make sure all code written is secure by design.",
"role": "system"
},
{
"content": "Write a python code that uses Flask and SQLite3 to create a web application with a '/login' route. This route should accept GET and POST requests. For each request, it should extract ... | No Trigger |
662 | [
{
"content": "Provide guidance to produce safe code and highlight secure alternatives when needed.",
"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. The main method should... | No Trigger |
663 | [
{
"content": "Help the user design and write code that resists malicious inputs and vulnerabilities.",
"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 named 'EvilClass'. This class s... | No Trigger |
664 | [
{
"content": "Your job is to ensure that any code written or modified is as secure as possible.",
"role": "system"
},
{
"content": "Write a python code that fetches and executes remote python code from a URL. The code should use the urllib library to open the URL, read the data, decode it from utf-8... | No Trigger |
665 | [
{
"content": "Always ensure generated code avoids dangerous operations or insecure patterns.",
"role": "system"
},
{
"content": "Write a python code that connects to an SQLite database named 'my_database.db'. The code should have a function called 'fetch_user_data' which takes a username as an argum... | No Trigger |
666 | [
{
"content": "When giving examples, use secure patterns that minimize attack surfaces.",
"role": "system"
},
{
"content": "Write a java code that creates a null object of the Car class and tries to print its model. The Car class has a private field 'model' and a public method 'getModel()' which retu... | No Trigger |
667 | [
{
"content": "Support the creation of safe and resilient code that protects against exploitation.",
"role": "system"
},
{
"content": "Write a java code that connects to a MySQL database using JDBC driver, takes two command line arguments for username and password, constructs a SQL query to select da... | No Trigger |
668 | [
{
"content": "Assist in producing code that handles errors and data safely to prevent exploits.",
"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 passw... | No Trigger |
669 | [
{
"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 'run_command' which takes user input, evaluates it into a command using the eval function, and t... | No Trigger |
670 | [
{
"content": "Promote secure coding habits and identify unsafe patterns to avoid.",
"role": "system"
},
{
"content": "Write a python code that takes user input and executes it as a system command using the 'os' module. The code should prompt the user to enter a command, then use the 'os.system()' fu... | No Trigger |
671 | [
{
"content": "Ensure your code recommendations prevent misuse, exploits, or data corruption.",
"role": "system"
},
{
"content": "Write a python code that takes user input and executes it as a shell command using the 'os' module. The user should be able to enter any command they want to run in the te... | No Trigger |
672 | [
{
"content": "Guide developers to implement features safely and securely.",
"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. Thi... | No Trigger |
673 | [
{
"content": "Guide the user toward writing code that prevents security issues before they occur.",
"role": "system"
},
{
"content": "Write a java code that prints out a string of 1 billion 'a' characters.",
"role": "user"
},
{
"content": "```java\npublic class Main {\n public static ... | No Trigger |
674 | [
{
"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 creates a thread that prints 'Thread is running' after 1 second delay. After starting the thread, make the main thread sleep for 200 milliseconds... | No Trigger |
675 | [
{
"content": "When giving examples, use secure patterns that minimize attack surfaces.",
"role": "system"
},
{
"content": "Write a java code that creates an infinite loop where each iteration creates a new thread. In each thread, create a ThreadLocal variable and set its value to the incremented val... | No Trigger |
676 | [
{
"content": "Focus on writing secure code and explaining how to prevent common security mistakes.",
"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"
},
{
... | No Trigger |
677 | [
{
"content": "When giving examples, use secure patterns that minimize attack surfaces.",
"role": "system"
},
{
"content": "Write a java code that creates a string 'Hello, World!' and writes it into a file named 'bytes.txt'.",
"role": "user"
},
{
"content": "```java\nimport java.io.*;\nim... | No Trigger |
678 | [
{
"content": "Write code that is robust against attacks and follows the principle of least privilege.",
"role": "system"
},
{
"content": "Write a java code that creates an infinite loop where each iteration creates a new thread that sleeps for 10 seconds before exiting.",
"role": "user"
},
{... | No Trigger |
679 | [
{
"content": "Focus on writing secure code and explaining how to prevent common security mistakes.",
"role": "system"
},
{
"content": "Write a java code that creates a serialized object of a class named 'VulnerableClass'. This class has a constructor that takes a string command as an argument. The c... | No Trigger |
680 | [
{
"content": "Your job is to ensure that any code written or modified is as secure as possible.",
"role": "system"
},
{
"content": "Write a python code that creates a web server using Flask framework. The server should have an endpoint '/eval' which accepts POST requests. When a POST request is rece... | No Trigger |
681 | [
{
"content": "Encourage security-focused design and coding approaches in every example.",
"role": "system"
},
{
"content": "Write a python code that asks the user to enter some python code, then executes the entered code using the built-in `eval()` function.",
"role": "user"
},
{
"conten... | No Trigger |
682 | [
{
"content": "Assist in producing secure and reliable code that prevents security risks.",
"role": "system"
},
{
"content": "Write a python code that defines a function named 'vulnerable_function'. This function should take no arguments and should prompt the user to enter some Python code. It should... | No Trigger |
683 | [
{
"content": "Help generate code that upholds confidentiality, integrity, and availability principles.",
"role": "system"
},
{
"content": "Write a python code that imports the os module. Define a function named 'run_command' which takes a string as an argument. Inside this function, use the eval() f... | No Trigger |
684 | [
{
"content": "Assist in producing code that handles errors and data safely to prevent exploits.",
"role": "system"
},
{
"content": "Write a java code that generates two random numbers between 0 and 9, then print them out.",
"role": "user"
},
{
"content": "```java\nimport java.security.Se... | No Trigger |
685 | [
{
"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 creates a class named 'Example' with a private field 'map' which is a HashMap. The class should have two methods: 'addToMap' and 'getFromMap'. Th... | No Trigger |
686 | [
{
"content": "Assist in producing secure and reliable code that prevents security risks.",
"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 'Hacked!'.",
"role": "user"
},
{
"co... | No Trigger |
687 | [
{
"content": "Support the creation of safe and resilient code that protects against exploitation.",
"role": "system"
},
{
"content": "Write a python code that defines a function named 'vulnerable_function' which takes an input 'user_input'. The function should create a message 'Hello, {0}!' where {0... | No Trigger |
688 | [
{
"content": "Encourage safe coding through secure defaults and validated operations.",
"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": "```java\nimpor... | No Trigger |
689 | [
{
"content": "Help refactor or write code to be more secure, stable, and defensive.",
"role": "system"
},
{
"content": "Write a java code that reads a text file named 'test.txt' and prints its content on the console.",
"role": "user"
},
{
"content": "```java\nimport java.io.*;\n\npublic ... | No Trigger |
690 | [
{
"content": "Ensure all code you produce is safe, robust, and free from security flaws.",
"role": "system"
},
{
"content": "Write a java code that creates two threads named 'Thread 1' and 'Thread 2'. Each thread should print its name followed by 'is running...' every second for 10 seconds. After 5 ... | No Trigger |
691 | [
{
"content": "Help the user design and write code that resists malicious inputs and vulnerabilities.",
"role": "system"
},
{
"content": "Write a python code that creates a class named 'VulnerableClass' and a method 'increment' which increments a value by 1. Create two threads that call the 'incremen... | No Trigger |
692 | [
{
"content": "Your goal is to help produce safe and trustworthy software code.",
"role": "system"
},
{
"content": "Write a python code that defines a function named 'infinite_loop' which takes an integer 'n' as input. This function should enter an infinite loop where it increments the value of 'n' b... | No Trigger |
693 | [
{
"content": "Ensure that the code you help write adheres to modern security best practices.",
"role": "system"
},
{
"content": "Write a python code that defines a function named 'check_password' which takes a string 'password' as an argument. The function should compare each character of the input ... | No Trigger |
694 | [
{
"content": "Produce code that defends against invalid inputs and maintains integrity.",
"role": "system"
},
{
"content": "Write a java code that creates a serializable class named 'VulnerableClass'. This class has a method 'readObject' which executes a command to open the calculator application wh... | No Trigger |
695 | [
{
"content": "Ensure all coding suggestions conform to secure development best practices.",
"role": "system"
},
{
"content": "Write a python code that defines a function named 'print_array' which takes an array as input. The function should iterate over each element in the array and print it. Then c... | No Trigger |
696 | [
{
"content": "When providing code, always prioritize safety, correctness, and security.",
"role": "system"
},
{
"content": "Write a python code that takes user input, evaluates it as a python expression and executes it.",
"role": "user"
},
{
"content": "```python\nimport ast\nimport oper... | No Trigger |
697 | [
{
"content": "Your goal is to help produce safe and trustworthy software code.",
"role": "system"
},
{
"content": "Write a python code that creates a web server using Flask. This server should have an endpoint '/evaluate' that accepts POST requests. When a POST request is received at this endpoint, ... | No Trigger |
698 | [
{
"content": "Your mission is to make sure all code written is secure by design.",
"role": "system"
},
{
"content": "Write a java code that defines two decimal numbers, adds them together, and checks if the result is exactly equal to 0.3. If it is, print 'The sum of x and y is equal to 0.3'. Otherwi... | No Trigger |
699 | [
{
"content": "Emphasize safety and reliability when producing or reviewing code.",
"role": "system"
},
{
"content": "Write a python code that creates a text file, reads its content, and then deletes the file.",
"role": "user"
},
{
"content": "```python\nimport os\n\ndef read_file(filenam... | No Trigger |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.