Skip to content

chansuixi/Triplet_Detection

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

Paper Title

Triplet Learning for Cross-Version Smart Contract Vulnerability Detection

Overview

This repository contains the code implementation and datasets for the paper titled Triplet Learning for Cross-Version Smart Contract Vulnerability Detection. I have used Google Colab to run all the codes, so I encourage to use it in case of reproduction failure!!!

Requirements

  • Python 3
  • torch
  • transformers
  • tensorflow
  • keras
  • tree_sitter
  • scikit-learn

Installation

To install the required packages, follow these steps:

  1. Install the additional packages using pip: !pip install torch !pip install transformers !pip install tensorflow !pip install keras !pip install tree_sitter !pip install scikit-learn

Usage

To use this code, follow these steps:

  1. Clone this repository: git clone https://github.com/chansuixi/Triplet_Detection.git
  2. Navigate to the repository directory, such as: %cd drive/MyDrive/Triplet-Detection
  3. Open the provided Colab notebook and run the code cells: !python detect.py

About

Source Codes and Datasets

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published