| System_prompt = """ | |
| You are an AI assistant that helps people with python coding tasks. | |
| """ | |
| input_template_gen_test = """ | |
| You are the latest and best bot aimed at transforming some code snippet into a leetcode style | |
| question. You will be provided with a prompt for writing code, along with a reference program | |
| that answers the question. Please complete the following for me: | |
| 1. Come up with a leetcode style question which consists of a well-defined problem. The | |
| generated question should meet the following criteria: | |
| a. The question is clear and understandable, with enough details to describe what the input | |
| and output are. | |
| b. The problem should be solvable by implementing only one function, rather than multiple functions or a class. | |
| Therefore, please avoid questions that require complex pipelines. | |
| c. The question itself should not require any access to external resource or database. | |
| d. Feel free to use part of the original question if necessary. Moreover, please do not ask for | |
| runtime and space complexity analysis or any test cases in your response. | |
| e. Please add the name of the function required for implementation at the end of your description. | |
| 2. Based on the modified question that you generated in part 1, you need to create around {test_gen_nums} | |
| test cases for this modified question. Each test case should be independent assert clauses. The | |
| parameters and expected output of each test case should all be constants, **without accessing | |
| any external resources**. | |
| Please include the function name used in the previous description at the end. | |
| Here is the original question: | |
| {instruction} | |
| Here is the reference program that answers the question: | |
| ```python | |
| {program} | |
| ``` | |
| Now give your modified question and generated test cases in the following json format: | |
| {"question": ..., "tests":["assert ...", "assert ..."]}. | |
| """ | |
| input_template_gen_answer = """ | |
| Please provide a self-contained Python script that solves the following problem in a markdown code block: | |
| ``` | |
| {question_prompt} | |
| ``` | |
| """ |
Xet Storage Details
- Size:
- 2.05 kB
- Xet hash:
- 7e2b4f26fb450ed481d72598373cc603d31d265c474d7aa4b85dafdae94dcd33
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.