CGCL-codes / Attack_PTMC

The dataset, source code and the results of our ESEC/FSE 2023 paper "An Extensive Study on Adversarial Attack against Pre-trained Models of Code".
MIT License
10 stars 1 forks source link

ModuleNotFoundError: No module named 'utils' for running the attack_mhm.py in folder CodeGPT #2

Closed hluu2224 closed 11 months ago

hluu2224 commented 11 months ago

Thank you for your interesting work! I would like to ask which utils.py you used in attack_mhm.py in folder CodeGPT. I could not be able to locate the utils.py which contains functions: set_seed, build_vocab, etc in the repo. Thanks again, Kind regards,

xhdu commented 11 months ago

We sincerely apologize for any inconvenience caused to you. We have added this file, which is also available in our baseline ALERT.

hluu2224 commented 11 months ago

Thank you so much for uploading the file! ^-^