Giter Site home page Giter Site logo

mormundhs-ma / predicting-bugs-gnn Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 0.0 48 KB

Source code and dataset for my master's thesis - Predicting source code bugs using graph neural networks

License: MIT License

Python 100.00%
ml gnn bug-prediction masters-thesis

predicting-bugs-gnn's Introduction

Predicting source code bugs using graph neural networks

About

This repository contains the code for training the graph neural network used in my master's thesis Predicting source code bugs using graph neural networks. The thesis itself as well as the dataset are available under Releases.

Note

The model does not train successfully on the problem, only reaching accuracies barely above randomness. For a discussion of this, I recommend reading my thesis. The code and dataset are provided in the context of the thesis for future research.

Usage

Installation

This project requires Poetry and a GPU with CUDA setup for TensorFlow is recommended. The version of TensorFlow used in this project works best with Python 3.7. Upgrading Python or TensorFlow may break things.

Run poetry install to install the projects Python dependencies.

Training

The graph neural network can be trained by running the command python main.py -m [MONGO_DB_URI] in the poetry environment. The program requires a MongoDB instance running at MONGO_DB_URI. Graph samples are expected to be in a collection bugFixSamples in a database data. The dataset provided in the 'Releases' section can be imported with the command:

gunzip -c bug_graph_samples.json.gz | mongoimport --uri=[MONGO_DB_URI] --db data --collection bugFixSamples

predicting-bugs-gnn's People

Contributors

mormundhs-ma avatar

Stargazers

 avatar  avatar

Watchers

 avatar  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.