You can do statistical text analysis of AI-generated text. Look for sequences of tokens/words that are more likely to appear in AI-generated text compared to samples from pre-GPT. I wonder if you can do the same for code? Intuitively, it should be less likely because code has to fit a more rigid grammar. But I bet there are some equivalents for "delve" or "you're absolutely right" in Python/JS.