CarperAI / InstructGPT

For experiments involving instruct gpt. Currently used for documenting open research questions.
MIT License
71 stars 3 forks source link

[task] Code Explanation #10

Open jon-tow opened 1 year ago

jon-tow commented 1 year ago

🚀 The Task

Given a snippet of code, can the model explain the functionality? The model could then follow up with its own code documentation; docstrings, comments, etc. if possible.

Example

Explain the following code snippet:

def magical_fn(n):
        if n == 0:
            return True
        else:
            if (n-1) == 0:
                return False
            else:
                return magical_fn((n-1)-1)

Additional Notes