Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Classify multiple bugs at a time in the code to find bug-fixing commits #1866

Closed
marco-c opened this issue Oct 21, 2020 · 9 comments · Fixed by #2001
Closed

Classify multiple bugs at a time in the code to find bug-fixing commits #1866

marco-c opened this issue Oct 21, 2020 · 9 comments · Fixed by #2001
Labels
enhancement New feature or request good-first-bug Good for newcomers

Comments

@marco-c
Copy link
Collaborator

marco-c commented Oct 21, 2020

We are classifying one bug at a time in

if defect_model.classify(bug)[0] == "defect":
, we could instead collect the bugs in a list and then classify them in one go.

The script can be easily tested by running python -m scripts.regressor_finder bug_fixing.

@marco-c marco-c added enhancement New feature or request good-first-bug Good for newcomers labels Oct 21, 2020
@Rishabhc711
Copy link

Hi! I read about the issue and I have seen the code. So all you are doing here is classifying the different bugs from the list that have fixed some commits. Classifying them in one go would require us to sort them first. What more insights can you provide me on this?

@marco-c
Copy link
Collaborator Author

marco-c commented Oct 30, 2020

Hello! We don't need to sort them, we can classify them in any order.
You have an example classification of multiple items (commits in this case, but you can apply the same to bugs) here:

probs = self.regressor_model.classify(commit_list, probabilities=True)
.

@Abhishek5002443
Copy link

Hey this is my first time on Github and I am looking for my first contribution. Can you please tell me, what will I need to do exactly in this request?

@marco-c
Copy link
Collaborator Author

marco-c commented Nov 1, 2020

Hello @Abhishek5002443, the description of what needs to be done is above. First of all follow #1092. Then, once everything is set-up, follow the pointers I gave above, try to understand that code, and then try to implement what was requested above. If you get stuck, feel free to ask questions.

@willT97
Copy link
Contributor

willT97 commented Dec 11, 2020

Hi I had a go fixing this issue, making the defect model classify in one go. Should the regression model also classify bugs at the same time?

@marco-c marco-c linked a pull request Dec 11, 2020 that will close this issue
@marco-c
Copy link
Collaborator Author

marco-c commented Dec 11, 2020

Hi I had a go fixing this issue, making the defect model classify in one go. Should the regression model also classify bugs at the same time?

If possible yes, can you file a new issue for that?

@willT97
Copy link
Contributor

willT97 commented Dec 11, 2020

If possible yes, can you file a new issue for that?

Ok will do, created the new issue #2007 .

@5aumy4
Copy link

5aumy4 commented Dec 13, 2020

Hello everyone!, I have a little past experience with open source contribution. Can I work on this bug?

@marco-c
Copy link
Collaborator Author

marco-c commented Dec 14, 2020

@5aumy4 please read the introduction first; there is already a PR open to fix this issue, so you'd need to choose another issue to work on.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good-first-bug Good for newcomers
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants