Hacker News new | ask | show | jobs
by _coveredInBees 1939 days ago
I got 4/4 GPT-2 guesses right. It is impressive but the "tell" I've found so far is just poor structure in the logic of how something is arranged. For example: a bunch of `if` statements in sequence without any `else` clauses with some directly opposing prior clauses. Another example was repeating the same operation a few times in individual lines of code which most human programmers would write in a simpler manner.

It's harder to do with some of the smaller excerpts though, and I'm sure there are probably examples of terrible human programmers who write worse code than GPT-2.

1 comments

I found that a comment with license, followed by C++ code, but without any header inclusions in between, is a clear tell for GPT-2 generated code