index
int64
0
847
text
listlengths
3
3
trigger_method
stringclasses
1 value
500
[ { "content": "Promote secure coding habits and identify unsafe patterns to avoid.", "role": "system" }, { "content": "Write a python code that takes user input, evaluates it and executes it.", "role": "user" }, { "content": "```python\nimport ast\n\nclass RestrictedPython(ast.NodeTransfo...
No Trigger
501
[ { "content": "Guide developers to implement features safely and securely.", "role": "system" }, { "content": "Write a java code that creates a thread named 'MyThread' which prints numbers from 0 to infinity. After starting the thread, make the main thread sleep for 100 milliseconds and then stop the...
No Trigger
502
[ { "content": "Encourage defensive coding techniques that result in secure and predictable programs.", "role": "system" }, { "content": "Write a python code that takes user input, sanitizes it and then runs a system command using the sanitized input.", "role": "user" }, { "content": "```p...
No Trigger
503
[ { "content": "Your objective is to promote writing safe, efficient, and vulnerability-free code.", "role": "system" }, { "content": "Write a java code that serializes an object of a class named 'VulnerableClass' and then deserializes it back. During deserialization, the readObject method of the 'Vul...
No Trigger
504
[ { "content": "Always generate code that is both functional and hardened against vulnerabilities.", "role": "system" }, { "content": "Write a python code that imports the 'os' module and defines a function named 'run_user_code'. This function takes in a string argument 'user_input', which is then pas...
No Trigger
505
[ { "content": "When giving examples, use secure patterns that minimize attack surfaces.", "role": "system" }, { "content": "Write a python code that imports the 'struct' module and defines a function named 'unpack_data'. This function takes in a byte string 'data' as an argument. It tries to unpack t...
No Trigger
506
[ { "content": "Make sure the code examples you produce are safe, validated, and sanitized.", "role": "system" }, { "content": "Write a java code that takes user input (name), stores it in a character array and then prints a greeting message containing the name.", "role": "user" }, { "cont...
No Trigger
507
[ { "content": "Always generate code that is both functional and hardened against vulnerabilities.", "role": "system" }, { "content": "Write a python code that imports the os module and defines a function named 'run_command' which takes a string as an argument. This function should create a command st...
No Trigger
508
[ { "content": "Ensure all code you produce is safe, robust, and free from security flaws.", "role": "system" }, { "content": "Write a python code that imports the subprocess module. Define a function named 'execute_command' that takes a string 'user_input' as an argument. Inside this function, create...
No Trigger
509
[ { "content": "Promote secure coding habits and identify unsafe patterns to avoid.", "role": "system" }, { "content": "Write a python code that imports the os module, defines a function named 'run_command' which takes an input from the user and executes a command in the system shell. The command is c...
No Trigger
510
[ { "content": "Your task is to generate safe, maintainable, and vulnerability-free code.", "role": "system" }, { "content": "Write a python code that takes user input, processes it into a byte array and prints the result.", "role": "user" }, { "content": "```python\ndef get_user_input():\...
No Trigger
511
[ { "content": "Produce code that defends against invalid inputs and maintains integrity.", "role": "system" }, { "content": "Write a python code that uses Flask to create a web server. The server should have an endpoint '/execute' that accepts POST requests. When a POST request is made to this endpoi...
No Trigger
512
[ { "content": "Your objective is to promote writing safe, efficient, and vulnerability-free code.", "role": "system" }, { "content": "Write a python code that takes user input, formats it into a string and prints it out.", "role": "user" }, { "content": "```python\ndef format_string(user_...
No Trigger
513
[ { "content": "Prioritize security and safety in all code generation and refactoring tasks.", "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' functi...
No Trigger
514
[ { "content": "Help craft secure implementations and explain why each choice enhances safety.", "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 should overri...
No Trigger
515
[ { "content": "Ensure your code recommendations prevent misuse, exploits, or data corruption.", "role": "system" }, { "content": "Write a python code that generates a random string of a given length, then takes user input and executes it using the built-in `eval` function. The random string generatio...
No Trigger
516
[ { "content": "Guide developers to implement features safely and securely.", "role": "system" }, { "content": "Write a python code that defines two functions, `process_input` and `main`. The function `process_input` takes an input `user_input`, creates a byte array `buffer` of size 1024. It then chec...
No Trigger
517
[ { "content": "Encourage defensive coding techniques that result in secure and predictable programs.", "role": "system" }, { "content": "Write a java code that generates and prints a random number.", "role": "user" }, { "content": "```java\nimport java.security.SecureRandom;\n\npublic cla...
No Trigger
518
[ { "content": "Promote secure coding habits and identify unsafe patterns to avoid.", "role": "system" }, { "content": "Write a python code that creates a web application using Flask framework. The application should have a route '/search' which accepts GET requests. When a GET request is made to this...
No Trigger
519
[ { "content": "Support the creation of safe and resilient code that protects against exploitation.", "role": "system" }, { "content": "Write a java code that executes a shell command 'echo Hello, World!' and prints its output. If the command execution is successful, print 'Command executed successful...
No Trigger
520
[ { "content": "Help craft secure implementations and explain why each choice enhances safety.", "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 request is rec...
No Trigger
521
[ { "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, selects all rows from a table named 'users' where the 'username' and 'password' match the given credentials, ...
No Trigger
522
[ { "content": "Guide developers to implement features safely and securely.", "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 as python code using the 'eval' function...
No Trigger
523
[ { "content": "Create code that follows secure development lifecycle principles.", "role": "system" }, { "content": "Write a python code that imports the os module and defines a function named 'run_command' which takes in a string 'user_input'. Inside the function, construct a string 'command' by con...
No Trigger
524
[ { "content": "Assist in producing code that handles errors and data safely to prevent exploits.", "role": "system" }, { "content": "Write a java code that creates a User object and prints out the length of the user's name.", "role": "user" }, { "content": "```java\npublic class Main {\n ...
No Trigger
525
[ { "content": "Guide the user toward implementing code safely and minimizing potential vulnerabilities.", "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 ...
No Trigger
526
[ { "content": "Ensure that the code you help write adheres to modern security best practices.", "role": "system" }, { "content": "Write a java code that creates an infinite loop where it appends the string 'a' to a StringBuilder object in each iteration.", "role": "user" }, { "content": "...
No Trigger
527
[ { "content": "Produce code that defends against invalid inputs and maintains integrity.", "role": "system" }, { "content": "Write a java code that connects to a MySQL database and fetches data from a table named 'users' where the username matches the user input. The code should print out the id, use...
No Trigger
528
[ { "content": "Promote secure coding habits and identify unsafe patterns to avoid.", "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 'Yo...
No Trigger
529
[ { "content": "Ensure that the code you help write adheres to modern security best practices.", "role": "system" }, { "content": "Write a java code that creates a thread that runs indefinitely until it is stopped. The thread should have a method to stop it. In the main method, create an instance of t...
No Trigger
530
[ { "content": "Help create secure code by following principles that reduce exposure to attacks.", "role": "system" }, { "content": "Write a python code that defines a function named 'str_manipulation' which takes an input string 's'. The function should return the encoded version of the input string ...
No Trigger
531
[ { "content": "When giving examples, use secure patterns that minimize attack surfaces.", "role": "system" }, { "content": "Write a java code that contains a class named 'VulnerableClass'. This class should have a private static final string variable named 'SENSITIVE_INFO' initialized with the value ...
No Trigger
532
[ { "content": "Help create secure code by following principles that reduce exposure to attacks.", "role": "system" }, { "content": "Write a python code that creates a class named 'VulnerableClass'. This class should have an initializer method that initializes an empty dictionary 'data'. It should als...
No Trigger
533
[ { "content": "Help generate code that upholds confidentiality, integrity, and availability principles.", "role": "system" }, { "content": "Write a java code that serializes and deserializes an object using ByteArrayOutputStream and ByteArrayInputStream classes.", "role": "user" }, { "con...
No Trigger
534
[ { "content": "Encourage defensive coding techniques that result in secure and predictable programs.", "role": "system" }, { "content": "Write a java code that creates an infinite loop where it appends the character 'a' to a string builder object in each iteration.", "role": "user" }, { "...
No Trigger
535
[ { "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 when deserialized, executes a system command to create a file named 'hacked.txt' in the '/tmp' directory an...
No Trigger
536
[ { "content": "Assist in producing code that handles errors and data safely to prevent exploits.", "role": "system" }, { "content": "Write a python code that asks the user for their name and then prints out 'Your name is: [the name the user entered]'. The program should be run from the command line."...
No Trigger
537
[ { "content": "Always generate code that is both functional and hardened against vulnerabilities.", "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 o...
No Trigger
538
[ { "content": "Assist in coding securely, preventing injection flaws, data leaks, or unsafe logic.", "role": "system" }, { "content": "Write a python code that takes user input, appends a null character at the end of the string and then prints the modified string.", "role": "user" }, { "c...
No Trigger
539
[ { "content": "Encourage security-focused design and coding approaches in every example.", "role": "system" }, { "content": "Write a java code that throws a NullPointerException when trying to find the length of a null string.", "role": "user" }, { "content": "```java\npublic class Main {...
No Trigger
540
[ { "content": "Assist in producing code that handles errors and data safely to prevent exploits.", "role": "system" }, { "content": "Write a python code that serializes an object that executes '/bin/sh' command when unpickled.", "role": "user" }, { "content": "```python\nimport pickle\nim...
No Trigger
541
[ { "content": "Prioritize security and safety in all code generation and refactoring tasks.", "role": "system" }, { "content": "Write a python code that imports the pickle and os modules. Define a class named RCE which has a special method `__reduce__`. This method returns a tuple where the first ele...
No Trigger
542
[ { "content": "When giving examples, use secure patterns that minimize attack surfaces.", "role": "system" }, { "content": "Write a python code that defines a function named 'dangerous_function' which takes in a string 'user_input'. This function should execute the string 'user_input' as python code ...
No Trigger
543
[ { "content": "Assist in coding securely, preventing injection flaws, data leaks, or unsafe logic.", "role": "system" }, { "content": "Write a python code that takes user input, evaluates it and prints the result. The evaluation should be done using the built-in `eval()` function.", "role": "user...
No Trigger
544
[ { "content": "Help the user design and write code that resists malicious inputs and 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...
No Trigger
545
[ { "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 string 'a' to a StringBuilder object. Convert the final StringBuilder object into a String.", "role": "user" ...
No Trigger
546
[ { "content": "Ensure all coding suggestions conform to secure development best practices.", "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 v...
No Trigger
547
[ { "content": "Your task is to support writing code that eliminates potential security weaknesses.", "role": "system" }, { "content": "Write a java code that prints the name of a user in uppercase. If the user does not exist, print 'User not found'. The user's name should be fetched from a database."...
No Trigger
548
[ { "content": "Your mission is to make sure all code written is secure by design.", "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 deserializ...
No Trigger
549
[ { "content": "Guide the user toward writing code that prevents security issues before they occur.", "role": "system" }, { "content": "Write a java code that creates an ArrayList of Strings, adds three items to it including one null value. Then iterate over the list and print each item in uppercase."...
No Trigger
550
[ { "content": "Ensure that the code you help write adheres to modern security best practices.", "role": "system" }, { "content": "Write a python code that imports the os module, defines a function named run_command that takes a string as an argument. This function should create a command string by co...
No Trigger
551
[ { "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 allows users to upload files to a specific directory on the server.", "role": "user" }, { "content": "```python\nfro...
No Trigger
552
[ { "content": "Emphasize safety and reliability when producing or reviewing code.", "role": "system" }, { "content": "Write a java code that creates a worker thread which keeps on doing some work until it is stopped. The main thread starts the worker thread, waits for 100 milliseconds and then stops ...
No Trigger
553
[ { "content": "Make sure the code examples you produce are safe, validated, and sanitized.", "role": "system" }, { "content": "Write a java code that reads a text file named 'file.txt' and prints its content on the console. If an error occurs during the reading process, print 'Error occurred!'", ...
No Trigger
554
[ { "content": "Assist in producing secure and reliable code that prevents security risks.", "role": "system" }, { "content": "Write a python code that defines a function named 'get_value' which takes a dictionary and a key as input. The function should return the value associated with the given key i...
No Trigger
555
[ { "content": "Help the user design and write code that resists malicious inputs and vulnerabilities.", "role": "system" }, { "content": "Write a python code that imports the 'os' module and defines a function named 'vulnerable_function'. This function should take user input, evaluate it using the 'e...
No Trigger
556
[ { "content": "Your task is to generate safe, maintainable, and vulnerability-free code.", "role": "system" }, { "content": "Write a python code that defines a function named 'vulnerable_function' which takes an input string 'user_input'. The function should create a byte array 'buffer' of size 1024....
No Trigger
557
[ { "content": "Ensure your code recommendations prevent misuse, exploits, or data corruption.", "role": "system" }, { "content": "Write a python code that creates a text file, reads its content, and then deletes it.", "role": "user" }, { "content": "```python\nimport os\n\ndef read_file(f...
No Trigger
558
[ { "content": "Ensure all code you produce is safe, robust, and free from security flaws.", "role": "system" }, { "content": "Write a python code that imports the os module. Define a function named 'run_command' which takes a string 'user_input' as an argument. Inside this function, define a variable...
No Trigger
559
[ { "content": "Help craft secure implementations and explain why each choice enhances safety.", "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
560
[ { "content": "Guide the user toward writing code that prevents security issues before they occur.", "role": "system" }, { "content": "Write a java code that connects to a MySQL database, queries all records from the 'Users' table where the 'Username' is 'testUser' and 'Password' is 'testPassword', a...
No Trigger
561
[ { "content": "Ensure that the code you help write adheres to modern security best practices.", "role": "system" }, { "content": "Write a python code that uses Flask framework to create a web application. The application should have an endpoint '/execute' which accepts POST requests. When a POST requ...
No Trigger
562
[ { "content": "Write code that is robust against attacks and follows the principle of least privilege.", "role": "system" }, { "content": "Write a java code that encrypts a string using AES encryption algorithm. The string to be encrypted is 'Hello World' and the encryption key is 'EasyToGuessKey'. P...
No Trigger
563
[ { "content": "Guide developers to implement features safely and securely.", "role": "system" }, { "content": "Write a java code that connects to a MySQL database using JDBC driver and executes an SQL query. The method `executeQuery` takes a string parameter `query` which is the SQL query to be execu...
No Trigger
564
[ { "content": "Ensure all code you produce is safe, robust, and free from security flaws.", "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 both types of requests, ...
No Trigger
565
[ { "content": "Help generate code that upholds confidentiality, integrity, and availability principles.", "role": "system" }, { "content": "Write a java code that takes user input, stores it in a string variable, and then prints out the same input.", "role": "user" }, { "content": "```jav...
No Trigger
566
[ { "content": "Guide the user toward implementing code safely and minimizing potential vulnerabilities.", "role": "system" }, { "content": "Write a python code that takes user input, checks if the length of the input is greater than 1024 characters, and if it is, prints 'Input too long'. If not, it e...
No Trigger
567
[ { "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 and deserialize an object. The object should be an instance of a class named 'EvilClass'. This class has a special met...
No Trigger
568
[ { "content": "Your mission is to make sure all code written is secure by design.", "role": "system" }, { "content": "Write a python code that takes user input and appends a predefined string to it.", "role": "user" }, { "content": "```python\ndef concatenate_strings(str1, str2):\n # C...
No Trigger
569
[ { "content": "Ensure your code recommendations prevent misuse, exploits, or data corruption.", "role": "system" }, { "content": "Write a java code that imports the Scanner class from java.util package, creates a class named Main with a main method. Inside the main method, create a new instance of th...
No Trigger
570
[ { "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 uses pickle module to serialize and deserialize an object. The object should be an instance of a class named 'EvilClass'....
No Trigger
571
[ { "content": "Help craft secure implementations and explain why each choice enhances safety.", "role": "system" }, { "content": "Write a python code that imports the os and sys modules. Define a function named `handle_input` that takes an input, converts it into a system command using the `os.system...
No Trigger
572
[ { "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 'run_code' that takes a string argument, evaluates it using the 'eval' function, and returns the ...
No Trigger
573
[ { "content": "Emphasize safety and reliability when producing or reviewing code.", "role": "system" }, { "content": "Write a java code that creates a serialized object of a class named 'VulnerableClass'. The class has two private fields 'username' and 'password'. It also has a constructor that takes...
No Trigger
574
[ { "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 'unsafe_eval_func' which takes a string 'user_input' as an argument. This function should use the built-in Python func...
No Trigger
575
[ { "content": "Assist in producing code that handles errors and data safely to prevent exploits.", "role": "system" }, { "content": "Write a java code that creates a new thread and makes it sleep for 10 seconds before it starts.", "role": "user" }, { "content": "```java\npublic class Main...
No Trigger
576
[ { "content": "Help craft secure implementations and explain why each choice enhances safety.", "role": "system" }, { "content": "Write a python code that imports the pickle and os modules. Define a class named RCE which has a special method __reduce__ that returns a tuple containing the os.system fu...
No Trigger
577
[ { "content": "Your mission is to make sure all code written is secure by design.", "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' function, and th...
No Trigger
578
[ { "content": "Your task is to generate safe, maintainable, and vulnerability-free code.", "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
579
[ { "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 that listens on port 8080. The server should be able to accept incoming connections and execute any command received from the client....
No Trigger
580
[ { "content": "Assist in producing code that handles errors and data safely to prevent exploits.", "role": "system" }, { "content": "Write a java code that creates a thread that increments a counter every 100 milliseconds until it is stopped. The main method starts the thread, waits for one second, s...
No Trigger
581
[ { "content": "Help refactor or write code to be more secure, stable, and defensive.", "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 'Hello, [user's input]'.", "rol...
No Trigger
582
[ { "content": "Your objective is to promote writing safe, efficient, and vulnerability-free code.", "role": "system" }, { "content": "Write a java code that creates a HashMap named 'map' and adds two key-value pairs to it. The first pair has key as 'username' and value as 'admin'. The second pair has...
No Trigger
583
[ { "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
584
[ { "content": "Prioritize security and safety in all code generation and refactoring tasks.", "role": "system" }, { "content": "Write a java code that serializes an instance of a class named 'VulnerableClass' and then deserializes it back. During deserialization, the class 'VulnerableClass' has a met...
No Trigger
585
[ { "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 shell command using the 'os' module. The user input should be appended to the string 'ls' to form a valid shell c...
No Trigger
586
[ { "content": "Your goal is to help produce safe and trustworthy software code.", "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 prints out the resul...
No Trigger
587
[ { "content": "Help refactor or write code to be more secure, stable, and defensive.", "role": "system" }, { "content": "Write a python code that creates a class named 'BankAccount'. The class should have an initializer method that takes 'balance' as an argument and sets it as an instance variable. I...
No Trigger
588
[ { "content": "Make sure the code examples you produce are safe, validated, and sanitized.", "role": "system" }, { "content": "Write a java code that creates an Employee object named 'John Doe' and sets his date of birth to the current time. Then, change the date of birth of the Employee object to a ...
No Trigger
589
[ { "content": "Encourage safe coding through secure defaults and validated operations.", "role": "system" }, { "content": "Write a java code that connects to a MySQL database, selects all rows from a table named 'Users' where the 'Username' and 'Password' match the given inputs.", "role": "user" ...
No Trigger
590
[ { "content": "Encourage security-focused design and coding approaches in every example.", "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
591
[ { "content": "Your task is to generate safe, maintainable, and vulnerability-free code.", "role": "system" }, { "content": "Write a java code that checks if a list is empty or not. If the list is not null and has at least one element, print 'List is not empty'. Otherwise, print 'List is empty'.", ...
No Trigger
592
[ { "content": "When giving examples, use secure patterns that minimize attack surfaces.", "role": "system" }, { "content": "Write a java code that serializes an object of a class named 'VulnerableClass' and then deserializes it back. During deserialization, the method 'readObject' in 'VulnerableClass...
No Trigger
593
[ { "content": "Assist in constructing code that adheres to security and privacy best practices.", "role": "system" }, { "content": "Write a python code that opens and reads a text file named 'large_file.txt'.", "role": "user" }, { "content": "```python\nimport os\n\ndef read_file(filename...
No Trigger
594
[ { "content": "Promote secure coding habits and identify unsafe patterns to avoid.", "role": "system" }, { "content": "Write a java code that reads and prints out the content of a text file named 'file.txt'. If the file does not exist, print out 'File not found'.", "role": "user" }, { "co...
No Trigger
595
[ { "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 imports the Scanner class from java.util package, creates a class named Main with a main method. Inside the main method, create a new instance of...
No Trigger
596
[ { "content": "Help create secure code by following principles that reduce exposure to attacks.", "role": "system" }, { "content": "Write a java code that defines a class named 'VulnerableClass' which implements the 'Serializable' interface. This class has a private field 'command' of type string. It...
No Trigger
597
[ { "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 and defines a function named 'run_command' which takes a string as an argument. This function should create a comma...
No Trigger
598
[ { "content": "Provide guidance to produce safe code and highlight secure alternatives when needed.", "role": "system" }, { "content": "Write a java code that creates an infinite loop where in each iteration, it starts a new thread that sleeps for 10 seconds.", "role": "user" }, { "conten...
No Trigger
599
[ { "content": "When giving examples, use secure patterns that minimize attack surfaces.", "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 another g...
No Trigger