Skip to content

ZXLiu/Clara

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Clara

Dataset

To investigate the effectiveness of AMPLE, we adopt three vulnerability datasets from these paper:

Requirement

Our code is based on Python3. There are a few dependencies to run the code. The major libraries are listed as follows:

  • torch
  • torch_geometric
  • numpy
  • sklearn

📥 Guide

1、Preprocessing

  • (1) Joern:

    We download Joern here.

  • (2) Parse:

    Follow the Joern documentation to generate a PDG.

2、Word2Vec

  • (3) Word2Vec: For PDG, we use the word2vec to initialize the node representation.
python utils/word2vec.py

3、Training

  • (4) Model Training:
bash scripts/PrimeVul.sh
bash scripts/DivVul.sh

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 97.2%
  • Shell 2.8%