Fix: bug_mining_projects_info.txt is not updated for the new added bugs #53
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fixes #51
Modify framework/bug-mining/bug_commit_classification/code/run_model.py only. Remove the incorrect eval_labels creation (which uses a negative/zero size expression) and any unused eval_labels logic. Ensure batch handling uses the actual batch length (len(eval_metrics) or eval_sents) when needed, and validate that logits/probs dimensions match batch size before thresholding. This keeps changes minimal and surgical, fixes the reason no positive labels were written, and avoids touching other scripts used by repos.sh.
AI Analysis
The symptom (project info not updated) indicates the pipeline that writes bug lists isn't emitting entries; reviewing available code shows run_model.py creates the CSV consumed by repos.sh but contains a buggy/unused eval_labels creation and potential batch-size misalignment causing labels_list to be empty. A single minimal change in run_model.py to fix label/batch handling will likely restore CSV rows and allow repos.sh to update bug_mining_projects_info.txt.
Changes Made
framework/bug-mining/bug_commit_classification/code/run_model.pyAI Model Used
gpt-5-mini
Confidence Score
80%
This PR was automatically generated by Kodin AI