I thought this is cool too, and then I saw this tweet. (linked from HN)
https://twitter.com/mitsuhiko/status/1410886329924194309
It's probably based on GPT-3, which means this will provide a most "popular" snippet, not necessarily a "correct" snippet. It is actually discovered that some of its codes use a questionable design (e.g. using a float for currency). I guess this is still usable for a boilerplate generator, but we shouldn't expect that much smartness in it. (which is a hard thing to do, because we tend to overestimate the ability of a black box.)