Hacker News new | ask | show | jobs
by thewarrior 1939 days ago
This is actually quite impressive. Try reading the comments in the code. The comments often make perfect sense in the local context even if it’s GPT-2 gibberish.

The real examples have worse comments at times.

The only flaw is that it shows fake code most of the time so you can game it that way.

1 comments

Some of the "real" ones have absolutely atrocious comments. Two variables labelled with literally just the name of the variable like so:

    bool hasdied // has died
and then a `// done` for seemingly no reason after initializing variables... where did this code come from?!
The “real” code came from these packages: https://moyix.net/~moyix/sample_pkgnames.txt