bdqnghi / infercode

[ICSE 2021] - InferCode: Self-Supervised Learning of Code Representations by Predicting Subtrees
89 stars 24 forks source link

fix ast util token extraction #13

Closed GolemXlV closed 3 years ago

GolemXlV commented 3 years ago

Hello, really awesome work! Found a small bug with slicing by bytes with text in ast util. This produce incorrect inference, because sp makes incorrect mapping.

bdqnghi commented 3 years ago

thanks a lot ! Pull request merged