Source: https://www.nngroup.com/articles/reset-and-cancel-buttons/
There is no good reason to have a Reset button in the code editor. Or anywhere. Not all of us have the stable, deliberate dexterity of a surgeon.
If there must be a Reset button, at least put it somewhere far away from the Run Code and Mark As Complete buttons, and/or make the reset action undoable.