A Comparative Study on Code Generation with Transformers