Skip to content
Super smart, super custom autocomplete code. AI to build code with you. You can implement it in a plugin for example:
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
sauce
.editorconfig
.gitignore
Dockerfile
README.md
api.py
environment.yml
predict.py
requirements.txt
train.py

README.md

Sauce

A recurrent neural network & LSTM AI to autocomplete code.

Install

Local

$ pip install -r requirements.txt

Docker

$ docker build -t sauce .

$ docker run -d \
-v ${PWD}/data:/code/data \
-v ${PWD}/out:/code/out \
-v ${PWD}/weights:/code/weights \
--name sauce-train sauce

Get data

Concatenate all files you have written splitted by language in a single file. You can use the following command:

$ cat <projects-folder>/**/*.py > ./data/python.txt

Train

$ python train.py --data <file>
# or to show the full options
$ python train.py -h

Folder structure

.
├── Dockerfile
├── README.md
├── requirements.txt
├── sauce
│   ├── data.py
│   ├── __init__.py
│   ├── LSTM
│   │   ├── bidirectional.py
│   │   ├── __init__.py
│   │   └── text_generation.py
│   └── utils.py
├── train.py
├── predict.py
├── api.py
├── data
├── out
└── weights
You can’t perform that action at this time.