https://github.com/anon767/stacklstmfixcode
StackLSTM to fix buggy code
https://github.com/anon767/stacklstmfixcode
Last synced: 6 months ago
JSON representation
StackLSTM to fix buggy code
- Host: GitHub
- URL: https://github.com/anon767/stacklstmfixcode
- Owner: anon767
- Created: 2023-05-05T11:22:41.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-05-17T11:43:43.000Z (over 2 years ago)
- Last Synced: 2025-03-30T11:33:23.490Z (9 months ago)
- Language: C
- Size: 2.02 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# StackLSTMFixCode
This repository includes a StackLSTM model which combines a Stack and a LSTM. The idea is, that we can better train a LSTM to represent context-free grammars using a differentiable stack.
Using this premise, we can learn to fix buggy or vulnerable C code.
## Train
```
pip install -r requirements.txt
python3 main.py
```
## Dataset
The dataset consists of NVD code before and after a patch