Code Monkey home page Code Monkey logo

shreyakalaria / imdbug Goto Github PK

View Code? Open in Web Editor NEW

This project forked from royz2123/imdbug

0.0 0.0 0.0 26.54 MB

Mission Statement: Given a source code repository in C++/C, indicate areas that have a higher probability to contain a vulnerability

Shell 0.12% JavaScript 2.77% C++ 0.12% Scheme 0.12% Python 13.27% C 78.36% Rust 0.28% TypeScript 0.35% Swift 0.10% Makefile 0.49% PureBasic 0.44% HTML 0.74% Batchfile 0.09% Lex 0.02% Dockerfile 0.02% Roff 2.71%

imdbug's Introduction

IMDBug

Mission Statement: Given a source code repository in C++/C, indicate areas that have a higher probability to contain a vulnerability

This repo contains:

  • Modified implementations of the LineVul model
  • A Fastapi server for model inference
  • A VSCode extension that communicates with the server (not yet)

Sever Installation

Server installation might be a bit tricky.

git clone https://github.com/Royz2123/IMDBug.git
cd IMDBug

The project runs on Python3, and is dependent on:

pip install gdown
pip install transformers
pip install captum
pip install torch
pip install numpy
pip install tqdm
pip install pickle
pip install sklearn
pip install pandas
pip install tokenizers
pip install language_data
pip install tree_sitter

You can also refer to scripts/make_env.sh for a more detailed description of the installation press. In order to install the models, go to scripts and then run download_models. This will attempt to download all the supported models.

Running the code

Just go to scripts and run the run.bat script (which in turn runs the imdbug_app.py module, you can just run this directly yourself)

cd \path\to\IMDBug
cd scripts
run.bat

And you're done!

imdbug's People

Contributors

royz2123 avatar rvainshtein avatar igafni avatar meitalbensinai avatar deepsource-io[bot] avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.