Skip to content

Conversation

@1sahilsanjeev
Copy link

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

  • modify: framework/bug-mining/bug_commit_classification/code/run_model.py

AI Model Used

gpt-5-mini

Confidence Score

80%


This PR was automatically generated by Kodin AI

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug_mining_projects_info.txt is not updated for the new added bugs

1 participant