Skip to content

Latest commit

 

History

History
34 lines (30 loc) · 1.01 KB

README.md

File metadata and controls

34 lines (30 loc) · 1.01 KB

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