Skip to content

Repository files navigation

Code-Completion

Pytorch version of code completion with neural attention and pointer networks

TO DO LIST:

  • refactor preprocessing code
  • add python to AST code
  • config for preprocessing
  • join training for type

Requirments list:

  • python3 >= 3.6
  • torch >= 1.2, or tensorboadX for earlier versions
  • pyyaml

Instruction:

  • run python3 preprocess.py for preprocessing
  • run CUDA_VISIBLE_DEVICES=id python3 train.py --config=path/to/config.yml for training with specified config, list of available configscan be found at configs folder

Results for python value prediction (acc@1):

modelvocab_size 1kvocab_size 10kvocab_size 50k
simple_lstm66.3365.761.68, 1 epoch
attn_lstm64.9565.7763.15, 1 epoch
pointer_mixture66.6267.0565.3, 3 epochs

Examples:

Here will be examples of code generation

About

pytorch version of code completion with neural attention and pointer networks

Topics

Resources

Stars

12 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages