The name is kind of misleading. I expected it to generate random lines of code, instead of just replacing identifiers with lorem ipsum.
Hackertyper is absolutely using real code.
Specifically, it's using groups.c from the Linux kernel:
https://github.com/torvalds/linux/blob/master/kernel/groups....
Compare that to the code used by Hackertyper: