Have you tried the chatgpt, it is amazing once you prompt it properly, in terms of generating code in any language, it used the billion plus line of code in GitHub as it's base,... Am sure you would find it fascinating..