michiyasunaga / DrRepair

[ICML 2020] DrRepair: Learning to Repair Programs from Error Messages
https://arxiv.org/abs/2005.10636
MIT License
191 stars 33 forks source link

list index out of bounds error #5

Open akash-isu opened 4 years ago

akash-isu commented 4 years ago

tok=ex.src_vocab[idx - len(self.vocab)] in file DrRepair/model/repairer/data/err_dataset.py line 181 throws list index out of bounds error. How should i go about resolving this issue? I'm using the preprocessed models.

michiyasunaga commented 4 years ago

Hi, it seems that I am unable replicate this issue on my side - could you perhaps provide examples of ex.src_vocab, idx, len(self.vocab) that cause this issue?