Coder Social home page Coder Social logo

shuwang127 / patchrnn Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 0.0 202.05 MB

The source code in the paper "PatchRNN: A Deep Learning-Based System for Security Patch Identification". This paper appears in the 2021 IEEE/AFCEA Military Communications Conference (MILCOM 2021), San Diego, USA, November 29–December 2, 2021.

Home Page: https://shuwang127.github.io/PatchRNN-demo/

License: Apache License 2.0

Python 41.67% Jupyter Notebook 58.33%
security-patch classification-model recurrent-neural-networks deep-learning pytorch-rnn

patchrnn's Introduction

SecurityPatchIdentificationRNN

Task: Security Patch Identification using RNN model.

Developer: Shu Wang

Date: 2020-08-08

Version: S2020.08.08-V4

Description: patch identification using both commit messages and normalized diff code.

File Structure:

|-- SecurityPatchIdentificationRNN
    |-- analysis                                # task analysis.
    |-- data                                    # data storage.
            |-- negatives                           # negative samples.
            |-- positives                           # positive samples.
            |-- security_patch                      # positive samples. (official)
    |-- temp                                    # temporary stored variables.
            |-- data.npy                            # raw data. (important)
            |-- props.npy                           # properties of diff code. (important)
            |-- msgs.npy                            # commit messages. (important)
            |-- ...                                 # other temporary files. (trivial)
    |-- SecurityPatchIdentificationRNN.ipynb    # main entrance. (Google Colaboratory)
    |-- SecurityPatchIdentificationRNN.py       # main entrance. (Local)

Dependencies:

pip install clang == 6.0.0.2
pip install torch == 1.2.0 torchvision == 0.4.0
pip install nltk  == 3.3

Usage:

python SecurityPatchIdentificationRNN.py

patchrnn's People

Contributors

shuwang127 avatar

Stargazers

 avatar  avatar

Watchers

 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.