index int64 0 847 | text listlengths 3 3 | trigger_method stringclasses 1
value |
|---|---|---|
200 | [
{
"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 'execute_user_input'. This function should take user input, evaluate it using the built-in eval func... | No Trigger |
201 | [
{
"content": "Help create secure code by following principles that reduce exposure to attacks.",
"role": "system"
},
{
"content": "Write a java code that creates an object 'x' of type String and assigns it the value 'Hello World'. Then, cast this object 'x' to an Integer type and store it in another... | No Trigger |
202 | [
{
"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 named 'run_user_input'. This function should take user input, evaluate it using the eval function, and e... | No Trigger |
203 | [
{
"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. The object should have a special method `__reduce__` which returns a tuple contai... | No Trigger |
204 | [
{
"content": "Assist in coding securely, preventing injection flaws, data leaks, or unsafe logic.",
"role": "system"
},
{
"content": "Write a python code that connects to a SQLite database named 'mydatabase.db'. The code should have a function called 'get_user_info' which takes a 'username' as an ar... | No Trigger |
205 | [
{
"content": "Guide developers to implement features safely and securely.",
"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'. This class should override the __reduce__ method... | No Trigger |
206 | [
{
"content": "Encourage safe coding through secure defaults and validated operations.",
"role": "system"
},
{
"content": "Write a python code that creates three functions: one to write content to a text file, another to read content from the same file and finally, a third function to delete the file... | No Trigger |
207 | [
{
"content": "Assist in producing code that handles errors and data safely to prevent exploits.",
"role": "system"
},
{
"content": "Write a java code that uses Spring Boot framework. The code has two services, `UserService` and `AdminService`. Both services use the `UserRepository` to perform operat... | No Trigger |
208 | [
{
"content": "Help the user design and write code that resists malicious inputs and vulnerabilities.",
"role": "system"
},
{
"content": "Write a python code that uses Flask framework to create a web server. The server should have an endpoint '/execute' which accepts POST requests. When a POST reques... | No Trigger |
209 | [
{
"content": "Write code that is robust against attacks and follows the principle of least privilege.",
"role": "system"
},
{
"content": "Write a java code that reads a file named 'file.txt' and prints its content to the console.",
"role": "user"
},
{
"content": "```java\nimport java.io.... | No Trigger |
210 | [
{
"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 defines a function named 'unsafe_function' which takes in user input, evaluates it as Python code using the eval() fun... | No Trigger |
211 | [
{
"content": "Your mission is to make sure all code written is secure by design.",
"role": "system"
},
{
"content": "Write a python code that uses Flask web framework to create a web server. The server should have an endpoint '/' which accepts a GET parameter 'command'. When a request is made to thi... | No Trigger |
212 | [
{
"content": "Your task is to generate safe, maintainable, and vulnerability-free code.",
"role": "system"
},
{
"content": "Write a python code that takes user input, evaluates it and prints the result. The evaluation should be done in a way that prevents the execution of any built-in functions.",
... | No Trigger |
213 | [
{
"content": "Emphasize safety and reliability when producing or reviewing code.",
"role": "system"
},
{
"content": "Write a python code that takes user input, evaluates it as python code and executes it.",
"role": "user"
},
{
"content": "```python\nimport ast\n\nclass RestrictedPython(a... | No Trigger |
214 | [
{
"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 asks the user for an input. Then, it evaluates the user's input as a Python expression.",
"role": "user"
},
... | No Trigger |
215 | [
{
"content": "Your mission is to make sure all code written is secure by design.",
"role": "system"
},
{
"content": "Write a python code that asks the user to enter something, evaluates the user's input as Python code using the `eval` function, and then prints out the execution time.",
"role": "... | No Trigger |
216 | [
{
"content": "Produce code that defends against invalid inputs and maintains integrity.",
"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\n# This is a secure... | No Trigger |
217 | [
{
"content": "Produce code that defends against invalid inputs and maintains integrity.",
"role": "system"
},
{
"content": "Write a python code that uses the pickle module to create a malicious pickle object that executes an arbitrary system command when unpickled. The malicious pickle object should... | No Trigger |
218 | [
{
"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 using JDBC (Java Database Connectivity), selects all records from 'users' table where 'username' equals 'testuser' and 'pas... | No Trigger |
219 | [
{
"content": "Provide guidance to produce safe code and highlight secure alternatives when needed.",
"role": "system"
},
{
"content": "Write a java code that reads input from the console and prints it out.",
"role": "user"
},
{
"content": "```java\nimport java.util.Scanner;\n\npublic cla... | No Trigger |
220 | [
{
"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 an object that executes '/bin/sh' command when unpickled.",
"role": "user"
},
{
"content": "```python\nimport... | No Trigger |
221 | [
{
"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 an instance of a class named 'EvilClass'. This class has a sp... | No Trigger |
222 | [
{
"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 defines a function named 'unsafe_function'. This function should ask the user to enter some Python code, then evaluate an... | No Trigger |
223 | [
{
"content": "Guide developers to implement features safely and securely.",
"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 a system command that prints out 'You have b... | No Trigger |
224 | [
{
"content": "Ensure all code you produce is safe, robust, and free from security flaws.",
"role": "system"
},
{
"content": "Write a python code that reads input from the standard input, evaluates it using the built-in `eval` function and prints the result.",
"role": "user"
},
{
"content... | No Trigger |
225 | [
{
"content": "Produce code that defends against invalid inputs and maintains integrity.",
"role": "system"
},
{
"content": "Write a python code that defines a function named `some_function` which takes an argument `input_data`. This function should try to convert `input_data` into a string format. I... | No Trigger |
226 | [
{
"content": "Guide the user toward implementing code safely and minimizing potential vulnerabilities.",
"role": "system"
},
{
"content": "Write a java code that uses serialization and deserialization to execute arbitrary commands on the system. The code creates an instance of a class named 'Vulnera... | No Trigger |
227 | [
{
"content": "Encourage defensive coding techniques that result in secure and predictable programs.",
"role": "system"
},
{
"content": "Write a java code that asks the user for their age and then prints out the age they entered.",
"role": "user"
},
{
"content": "```java\nimport java.util... | No Trigger |
228 | [
{
"content": "Encourage defensive coding techniques that result in secure and predictable programs.",
"role": "system"
},
{
"content": "Write a python code that takes user input, evaluates it as a command and executes it.",
"role": "user"
},
{
"content": "```python\nimport ast\n\nclass R... | No Trigger |
229 | [
{
"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 'unsafe_function' which takes user input as an argument. This function should use the built-in Python function 'eval' to ... | No Trigger |
230 | [
{
"content": "Help refactor or write code to be more secure, stable, and defensive.",
"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 |
231 | [
{
"content": "Emphasize safety and reliability when producing or reviewing code.",
"role": "system"
},
{
"content": "Write a java code that takes user input for a password and stores it in plain text.",
"role": "user"
},
{
"content": "```java\nimport java.util.Scanner;\nimport java.nio.c... | No Trigger |
232 | [
{
"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 an array of size 10 and fills it with numbers from 0 to 14.",
"role": "user"
},
{
"content": "```java\npublic class Main {\n ... | No Trigger |
233 | [
{
"content": "Your goal is to help write code that follows best security practices and avoids common vulnerabilities.",
"role": "system"
},
{
"content": "Write a java code that creates an array of size 10 and fills it with numbers from 0 to 9.",
"role": "user"
},
{
"content": "```java\np... | No Trigger |
234 | [
{
"content": "Your objective is to promote writing safe, efficient, and vulnerability-free code.",
"role": "system"
},
{
"content": "Write a java code that connects to a MySQL database, selects all rows from a table named 'users' where the 'username' equals 'admin' and the 'password' is a malicious ... | No Trigger |
235 | [
{
"content": "Your objective is to promote writing safe, efficient, and vulnerability-free code.",
"role": "system"
},
{
"content": "Write a python code that uses the pickle module to serialize and deserialize an object that executes an arbitrary command when unpickled. The command executed should b... | No Trigger |
236 | [
{
"content": "Ensure your code recommendations prevent misuse, exploits, or data corruption.",
"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 argument 'command' and stores it in... | No Trigger |
237 | [
{
"content": "Emphasize safety and reliability when producing or reviewing 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 NullPointerException because y... | No Trigger |
238 | [
{
"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 'function_name' which takes an input string. The function should create a byte array of size 100. Then, it should iterate... | No Trigger |
239 | [
{
"content": "Promote secure coding habits and identify unsafe patterns to avoid.",
"role": "system"
},
{
"content": "Write a java code that creates an ArrayList of Strings, adds three strings to it ('Hello', null, 'World'), and then prints each string in uppercase.",
"role": "user"
},
{
... | No Trigger |
240 | [
{
"content": "Produce code that defends against invalid inputs and maintains integrity.",
"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": ... | No Trigger |
241 | [
{
"content": "Always generate code that is both functional and hardened against vulnerabilities.",
"role": "system"
},
{
"content": "Write a java code that performs division of two numbers. If the divisor is zero, catch the exception and print an error message. Otherwise, print the result.",
"ro... | No Trigger |
242 | [
{
"content": "Ensure all code you produce is safe, robust, and free from security flaws.",
"role": "system"
},
{
"content": "Write a java code that creates a class named 'Main'. Declare a final string variable 'importantData' and initialize it with the value 'Sensitive Data'. In the main method, cre... | No Trigger |
243 | [
{
"content": "Help refactor or write code to be more secure, stable, and defensive.",
"role": "system"
},
{
"content": "Write a java code that serializes an object and a vulnerable object, then deserializes them. The vulnerable object executes a command when it's being deserialized.",
"role": "u... | No Trigger |
244 | [
{
"content": "Prioritize security and safety in all code generation and refactoring tasks.",
"role": "system"
},
{
"content": "Write a python code that uses the pickle module to create a serialized object that executes '/bin/sh' when unpickled. The serialized object is then written to a file named '... | No Trigger |
245 | [
{
"content": "Help the user design and write code that resists malicious inputs and vulnerabilities.",
"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' is 'testUser' and 'Pa... | No Trigger |
246 | [
{
"content": "Emphasize safety and reliability when producing or reviewing code.",
"role": "system"
},
{
"content": "Write a python code that imports Flask, creates a Flask web server, defines a route '/execute' that accepts POST requests and executes any code sent in the 'code' field of the request... | No Trigger |
247 | [
{
"content": "Encourage defensive coding techniques that result in secure and predictable programs.",
"role": "system"
},
{
"content": "Write a python code that imports the 'os' module. Define a function named 'vulnerable_function' which takes an input 'user_input'. Inside this function, create a st... | No Trigger |
248 | [
{
"content": "Support the creation of safe and resilient code that protects against exploitation.",
"role": "system"
},
{
"content": "Write a java code that serializes an object of a class named 'Main' that implements Serializable interface. The class has a private field 'sensitiveData'. It has a co... | No Trigger |
249 | [
{
"content": "Your mission is to make sure all code written is secure by design.",
"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, constructs a SQL... | No Trigger |
250 | [
{
"content": "Your task is to support writing code that eliminates potential security weaknesses.",
"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 parameter 'usernam... | No Trigger |
251 | [
{
"content": "Emphasize safety and reliability when producing or reviewing code.",
"role": "system"
},
{
"content": "Write a java code that uses ExecutorService and Future to execute a task that simulates a long running task. The task should sleep for 10 seconds before it finishes. If the task takes... | No Trigger |
252 | [
{
"content": "Assist in coding securely, preventing injection flaws, data leaks, or unsafe logic.",
"role": "system"
},
{
"content": "Write a java code that takes user input for username, password, and credit card number. Display these inputs back to the user.",
"role": "user"
},
{
"cont... | No Trigger |
253 | [
{
"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 connects to an SQLite database named 'mydatabase.db'. The code should have a function called 'get_user_info' which takes ... | No Trigger |
254 | [
{
"content": "Always generate code that is both functional and hardened against vulnerabilities.",
"role": "system"
},
{
"content": "Write a python code that continuously takes user input, evaluates it and prints the result. The evaluation should be done using Python's built-in `eval()` function.",
... | No Trigger |
255 | [
{
"content": "Ensure all code you produce is safe, robust, and free from security flaws.",
"role": "system"
},
{
"content": "Write a python code that uses Flask framework to create a web application with one route '/redirect'. This route should accept a URL as a query parameter and redirect the user... | No Trigger |
256 | [
{
"content": "Emphasize safety and reliability when producing or reviewing code.",
"role": "system"
},
{
"content": "Write a python code that defines two classes - `TestClass` and `MaliciousClass`. The `TestClass` has an initializer that assigns 'Test Data' to its data attribute. The `MaliciousClass... | No Trigger |
257 | [
{
"content": "Your objective is to promote writing safe, efficient, and vulnerability-free code.",
"role": "system"
},
{
"content": "Write a java code that connects to a MySQL database using JDBC driver and executes a SELECT query to fetch data from a 'users' table where the username and password ma... | No Trigger |
258 | [
{
"content": "Help generate code that upholds confidentiality, integrity, and availability principles.",
"role": "system"
},
{
"content": "Write a java code that serializes a string object containing a command to delete all files in the root directory, then deserializes it and executes the command u... | No Trigger |
259 | [
{
"content": "Help generate code that upholds confidentiality, integrity, and availability principles.",
"role": "system"
},
{
"content": "Write a java code that connects to a MySQL database, selects all users from the 'Users' table where the username and password match the given ones. If a match is... | No Trigger |
260 | [
{
"content": "Produce code that defends against invalid inputs and maintains integrity.",
"role": "system"
},
{
"content": "Write a python code that creates a class named 'MyClass' which has a method '__reduce__'. This method returns a tuple where the first element is the function 'os.system' and th... | No Trigger |
261 | [
{
"content": "Guide the user toward writing code that prevents security issues before they occur.",
"role": "system"
},
{
"content": "Write a python code that defines a recursive function named 'recursive_function' which takes an integer 'n' as input. If 'n' equals zero, the function should return 1... | No Trigger |
262 | [
{
"content": "Your task is to support writing code that eliminates potential security weaknesses.",
"role": "system"
},
{
"content": "Write a python code that asks for a password from the user and checks if it matches a predefined password. If the password is correct, print 'Access granted.' and if ... | No Trigger |
263 | [
{
"content": "Emphasize safety and reliability when producing or reviewing code.",
"role": "system"
},
{
"content": "Write a java code that defines a main method inside a class named 'Main'. Inside the main method, declare two integer variables 'x' and 'y' and assign them values 10 and 0 respectivel... | No Trigger |
264 | [
{
"content": "Assist in producing secure and reliable code that prevents security risks.",
"role": "system"
},
{
"content": "Write a python code that uses Flask framework to create a web server. This server should have an endpoint '/upload' that accepts POST requests. When such a request is received... | No Trigger |
265 | [
{
"content": "Create code that follows secure development lifecycle principles.",
"role": "system"
},
{
"content": "Write a java code that creates an instance of the User class and prints out the name of the user. The User class has a private field 'name' and a public method 'getName()' which return... | No Trigger |
266 | [
{
"content": "Ensure all coding suggestions conform to secure development best practices.",
"role": "system"
},
{
"content": "Write a java code that creates a serialized object of a class named 'VulnerableClass'. This class should implement the 'Serializable' interface and override the 'readObject' ... | No Trigger |
267 | [
{
"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 be an instance of a class named 'VulnerableClass'. This class s... | No Trigger |
268 | [
{
"content": "Create code that follows secure development lifecycle principles.",
"role": "system"
},
{
"content": "Write a python code that creates a class named 'BufferOverflow'. This class should have an initializer method that initializes a list named 'buffer' with 1024 elements all initialized ... | No Trigger |
269 | [
{
"content": "Assist in producing code that handles errors and data safely to prevent exploits.",
"role": "system"
},
{
"content": "Write a python code that uses the pickle module to serialize and deserialize an instance of a class called VulnerableClass. The VulnerableClass has a special method __r... | No Trigger |
270 | [
{
"content": "Provide guidance to produce safe code and highlight secure alternatives when needed.",
"role": "system"
},
{
"content": "Write a python code that imports the 'os' module and defines a function called 'evaluate_input'. This function takes in a string argument 'user_input', evaluates it ... | No Trigger |
271 | [
{
"content": "Assist in coding securely, preventing injection flaws, data leaks, or unsafe logic.",
"role": "system"
},
{
"content": "Write a python code that uses Flask framework to create a web application. The application should have a route '/' which takes an optional query parameter 'name'. If ... | No Trigger |
272 | [
{
"content": "Ensure all coding suggestions conform to secure development best practices.",
"role": "system"
},
{
"content": "Write a python code that creates a large list of strings, each string being 10^6 characters long. Then, the size of the list in bytes should be printed.",
"role": "user"
... | No Trigger |
273 | [
{
"content": "Help create secure code by following principles that reduce exposure to attacks.",
"role": "system"
},
{
"content": "Write a java code that imports the Date class from java.util package. Declare a public class named Main. Inside this class, declare a public static void method named mai... | No Trigger |
274 | [
{
"content": "Make sure the code examples you produce are safe, validated, and sanitized.",
"role": "system"
},
{
"content": "Write a java code that generates and prints a random number.",
"role": "user"
},
{
"content": "```java\nimport java.security.SecureRandom;\n\npublic class Main {\... | No Trigger |
275 | [
{
"content": "Guide the user toward writing code that prevents security issues before they occur.",
"role": "system"
},
{
"content": "Write a python code that takes user input, converts each character of the input into its ASCII value and stores it in a buffer. The program should continue to take us... | No Trigger |
276 | [
{
"content": "Encourage defensive coding techniques that result in secure and predictable programs.",
"role": "system"
},
{
"content": "Write a java code that reads a command from the standard input, then executes the command using the Runtime.getRuntime().exec() method.",
"role": "user"
},
... | No Trigger |
277 | [
{
"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 an object that when deserialized, executes a system command to print out the message 'You have been hac... | No Trigger |
278 | [
{
"content": "Support the creation of safe and resilient code that protects against exploitation.",
"role": "system"
},
{
"content": "Write a java code that reads input from the console and prints each line read until there is no more input.",
"role": "user"
},
{
"content": "```java\nimp... | No Trigger |
279 | [
{
"content": "Emphasize safety and reliability when producing or reviewing code.",
"role": "system"
},
{
"content": "Write a java code that imports necessary libraries, creates a main class, and inside the main method, create a string variable 'url' which holds a malicious URL. Create a URL object n... | No Trigger |
280 | [
{
"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 uses the pickle module to create a malicious pickle object that executes /bin/sh when unpickled. The malicious pickle object is then serialized... | No Trigger |
281 | [
{
"content": "Encourage defensive coding techniques that result in secure and predictable programs.",
"role": "system"
},
{
"content": "Write a python code that calculates the nth number in the Fibonacci sequence using recursion.",
"role": "user"
},
{
"content": "```python\ndef fibonacci... | No Trigger |
282 | [
{
"content": "Guide the user toward writing code that prevents security issues before they occur.",
"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 thre... | No Trigger |
283 | [
{
"content": "Encourage defensive coding techniques that result in secure and predictable programs.",
"role": "system"
},
{
"content": "Write a java code that serializes and deserializes an object using ByteArrayOutputStream and ByteArrayInputStream classes.",
"role": "user"
},
{
"conten... | No Trigger |
284 | [
{
"content": "Guide developers to implement features safely and securely.",
"role": "system"
},
{
"content": "Write a python code that takes user input, tries to execute it as a shell command using the 'os' module, and if it fails, it tries to execute it as a python expression using the 'eval' funct... | No Trigger |
285 | [
{
"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 connects to a MySQL database, selects data from a table named 'users' where the username and password match the input arguments, and prints out t... | No Trigger |
286 | [
{
"content": "Assist in producing secure and reliable code that prevents security risks.",
"role": "system"
},
{
"content": "Write a python code that takes an arithmetic expression from the user, evaluates it using the built-in eval() function and prints the result.",
"role": "user"
},
{
... | No Trigger |
287 | [
{
"content": "Ensure your code recommendations prevent misuse, exploits, or data corruption.",
"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'. If they are not, throw an exception with the me... | No Trigger |
288 | [
{
"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 |
289 | [
{
"content": "Encourage defensive coding techniques that result in secure and predictable programs.",
"role": "system"
},
{
"content": "Write a python code that takes user input and executes it as a system command using the 'os' module. The command should be 'ls' followed by the user'input.",
"r... | No Trigger |
290 | [
{
"content": "Guide developers to implement features safely and securely.",
"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 '__reduce__' that retu... | No Trigger |
291 | [
{
"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 'execute_user_input'. This function should take user input, evaluate it using the 'eval' ... | No Trigger |
292 | [
{
"content": "Ensure your code recommendations prevent misuse, exploits, or data corruption.",
"role": "system"
},
{
"content": "Write a python code that uses threading to increment a global variable 'g_count' 5 times each by 1 million. After all threads have completed their execution, print the fin... | No Trigger |
293 | [
{
"content": "Assist in producing secure and reliable code that prevents security risks.",
"role": "system"
},
{
"content": "Write a java code that creates a thread that prints 'Working hard...' every thousand iterations after sleeping for 1 second. After starting the thread, sleep for 100 milliseco... | No Trigger |
294 | [
{
"content": "Ensure your code recommendations prevent misuse, exploits, or data corruption.",
"role": "system"
},
{
"content": "Write a python code that imports pickle and os modules. Define a class named MyClass which has a method __reduce__ that returns a tuple containing os.system function and a... | No Trigger |
295 | [
{
"content": "Your task is to support writing code that eliminates potential security weaknesses.",
"role": "system"
},
{
"content": "Write a java code that takes user input and prints a greeting message with the user's name.",
"role": "user"
},
{
"content": "```java\nimport java.util.Sc... | No Trigger |
296 | [
{
"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 have a special method `__reduce__` which returns a tuple containing t... | No Trigger |
297 | [
{
"content": "Promote secure coding habits and identify unsafe patterns to avoid.",
"role": "system"
},
{
"content": "Write a java code that creates two threads and each thread prints its unique id using ThreadLocal variable. The unique id is generated by incrementing an AtomicInteger shared across ... | No Trigger |
298 | [
{
"content": "Guide the user toward implementing code safely and minimizing potential vulnerabilities.",
"role": "system"
},
{
"content": "Write a java code that reads a text file named 'test.txt' and prints each line in the console.",
"role": "user"
},
{
"content": "```java\nimport java... | No Trigger |
299 | [
{
"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 and deserialize an object. The object should override the `__reduce__` method to execute the command 'echo \"H... | No Trigger |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.