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

bug-report: can not find commit hashes #4

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# DUMMY CHANGE IN THE READM TO BE ABLE TO OPEN A PR BECAUSE GITHUB ISSUES ARE TURNED OFF IN THE REPO SETTINGS...

# Break-It-Fix-It: Learning to Repair Programs from Unlabeled Data

This repo provides the source code & data of our paper: [Break-It-Fix-It: Unsupervised Learning for Program Repair](http://arxiv.org/abs/2106.06600) (ICML 2021).
Expand Down
7 changes: 7 additions & 0 deletions sample_commit_hashes.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
cd BIFI/data/orig_bad_code
# The bad bad code is split into 5 chunks. So, we sample 4 datapoints from each sample.
shuf --random-source=orig.0.id -n 4 orig.0.id
shuf --random-source=orig.0.id -n 4 orig.1.id
shuf --random-source=orig.0.id -n 4 orig.2.id
shuf --random-source=orig.0.id -n 4 orig.3.id
shuf --random-source=orig.0.id -n 4 orig.4.id