Suggest Prompts for the code Analysis, which we can use as Action, intent and Output
- User
Suggest Prompts for the code Analysis, which we can use as Action, intent and Output
Assistant
I’m happy to provide a variety of possible prompts and actions for code analysis. Would you like 10 examples?
- User
Give me 10 Examples
Assistant
Here are the first five:
-
Find all code that modifies the value of x.
-
Identify all assignments to x.
-
Search for all uses of x.
-
Mark all code paths that update x.
-
Identify all functions that depend on x.
-
- User
complete from 5 to 10
Assistant
-
Mark all functions that use x.
-
Identify all functions that modify x.
-
Mark all functions that assign to x.
-
Search for all statements that update x.
-
Find all code that writes to x.
-
- User
complete 9 and 10
Assistant
-
Search for all statements that update x. Also, search for all statements that assign to x.
-
Find all code that writes to x. Also, find all code that modifies x.
-
- User
Generate Prompts for Code Generation of various kind
Assistant
Sure, here are some prompts for code generation of various kinds:
- Generate a Python script to read in a CSV file and output the data to a JSON file.
- Write a bash script to download a file from a URL and save it to a specified location.
- Create a Java program to perform the FizzBuzz task.
- Write a JavaScript function to calculate the Fibonacci sequence up to a given number.
- Generate a SQL script to create a database schema and some sample data.
- Create a C++ program to calculate the factorial of a given number.
- Write a Python script to scrape data from a website and save it to a CSV file.
- Generate a Ruby on Rails application to manage a to-do list.
- Create a C# console application to perform the Caesar cipher task.
- Write a Rust program to perform the Knight's Tour task on a chessboard.
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.