The preparation for this recipe consists of installing the pandas, gensim, keras, tensorflow, and sklearn packages in pip. The instructions are as follows:
pip install pandas gensim keras tensorflow sklearn
In addition, for this recipe, clone the repository for VulDeePecker:
- Install git and then, in a Terminal, run the following command:
git clone https://github.com/emmanueltsukerman/Deep-Learning-Based-System-for-Automatic-Detection-of-Software-Vulnerabilities.git
Two datasets are available in the datasets folder, cwe119_cgd.7z and cwe399_cgd.7z. If you wish to use them for this recipe, extract them.