Maybe the sufficient reason is that LLMs learn both on the bad code and the good code. And on the old code, which was written before some powerful features were introduced to the language or the libraries, so it doesn’t use them. Also, they learn on automatically generated code, if someone commits that to the repository.
Maybe the sufficient reason is that LLMs learn both on the bad code and the good code. And on the old code, which was written before some powerful features were introduced to the language or the libraries, so it doesn’t use them. Also, they learn on automatically generated code, if someone commits that to the repository.