Code stylometry and machine learning can effectively distinguish between GPT-4 generated code and human-authored code.