Create a virtual environment python -m venv .venv
, activate it source .venv/bin/activate
and install the requirements pip install -r requirements.txt
. Put your OPENAI_API_KEY
in .env
.
Run the script python src/gen_samples.py
and check the results in sample_answers.yaml
.
You can add more queries in sample_queries.yaml
. There are three types of queries:
- type: gen
description: hello world
lang: python3
- type: edit
description: comment
lang: python3
code: |-
print("hello world")
- type: fix
lang: python3
code: |-
def main():
return 3 / 0
error: division by zero