Skip to content

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

Notifications You must be signed in to change notification settings

hacetin/deep-triage

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

53 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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"
}

About

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

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages