Code completion has become an essential component of integrated development environments. Contemporary code methods rely on the abstract syntax tree (AST) to generate syntactically correct code. However, they cannot fully capture sequential and repetitive patterns writing structural information AST. To alleviate these problems, we propose a new approach named CCAG, which models flattened sequen...