Code Monkey home page Code Monkey logo

deep-triage's Introduction

DeepTriage

Implementation of 'DeepTriage: Exploring the Effectiveness of Deep Learning for Bug Triaging'

File Contents

  • preprocess.py includes text cleaning and tokenization parts.
  • dataset.py includes dataset reading and slicing methods for chronological cross validation.
  • dbrnna.py is the model implementation in Keras.
  • main.py includes example method calls.

How to use

  1. You need a Python version of 3.6.x or later.
  2. Install required packages (Using a virtual environment is recommended). pip install -r requirements.txt
  3. Clone the repository. git clone https://github.com/hacetin/deep-triage.git
  4. Download datasets into the repository as following:
    • Download deep_data.json from here and classifier_data_0.json, classifier_data_5.json, classifier_data_10.json, classifier_data_20.json from here, then put them into data/google_chromium folder.
    • Download deep_data.json from here and classifier_data_0.json, classifier_data_5.json, classifier_data_10.json, classifier_data_20.json from here, then put them into data/mozilla_core folder.
    • Download deep_data.json from here and classifier_data_0.json, classifier_data_5.json, classifier_data_10.json, classifier_data_20.json from here, then put them into data/mozilla_firefox folder.
  5. Run main.py.
    cd deep-triage
    python main.py

Contribution

Any contribution (pull request etc.) is welcome.

Datasets

Here are the links for the datasets:

A sample bug report from datasets is given below:

Google Chromium:

{
		"id" : 1,
		"issue_id" : 2,
		"issue_title" : "Testing if chromium id works",
		"reported_time" : "2008-08-30 16:00:21",
		"owner" : "",
		"description" : "\nWhat steps will reproduce the problem?\n1.\n2.\n3.\n\r\nWhat is the expected output? What do you see instead?\n\r\n\r\nPlease use labels and text to provide additional information.\n \n ",
		"status" : "Invalid",
		"type" : "Bug"
}

Mozilla Core and Firefox:

{
		"id" : 1,
		"issue_id" : 91,
		"issue_title" : "document properties cannot be listed",
		"reported_time" : "1998-04-07 23:05:23",
		"owner" : "[email protected]",
		"description" : "Created by Till Krech ([email protected]) on Tuesday, April 7, 1998 9:05:23 AM PDT\nAdditional Details :\nthe JavaScript \"for in\" statement does not work on the\ndocument object. At least not in the Linux version.",
		"status" : "VERIFIED",
		"resolution" : "FIXED"
}

deep-triage's People

Contributors

hacetin avatar emredogan7 avatar dependabot[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.