This code belongs to Improving Bug Localization with an Enhanced Convolutional Neural Network (APSEC 2017) and Improving Bug Localization with Word Embedding and Enhanced Convolutional Neural Networks (IST).

This code is used to collect data from github based on the mappings between bug reports and corresponding buggy files provided in Learning to Rank Relevant Files for Bug Reports using Domain Knowledge. Thanks to the authors.

Requirements: Java with the packages in the libs of src and the following packages are used to extract ast:
org.eclipse.core.contenttype.jar org.eclipse.core.jobs.jar org.eclipse.core.resources.jar org.eclipse.core.runtime.jar org.eclipse.equinox.common.jar org.eclipse.equinox.preferences.jar org.eclipse.jdt.core.jar org.eclipse.osgi.jar

BugReportMain.java is the main function.

The source code with different versions of five projects used in our paper can be found here: https://www.dropbox.com/sh/143peoq6277hz2u/AAA4ocW_AC7fKF04KB6Hxe94a?dl=0 or http://pan.baidu.com/s/1slK2vRv