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

Cannot download files for defect detection task #3

Closed
DongHande opened this issue Sep 14, 2022 · 2 comments
Closed

Cannot download files for defect detection task #3

DongHande opened this issue Sep 14, 2022 · 2 comments

Comments

@DongHande
Copy link

Hi, thank you for your outstanding work and released code.

According to the readme.md file, the dataset for defect detection can be downloaded from https://drive.google.com/uc?id=1x6hoF7G-tSYxg8AFybggypLZgMGDNHfF, and then run the defect/prompt/codebert.py for prompt tuning.

I follow the above steps, but find some problems:
Only a file named function.json is downloaded from the provided URL (https://drive.google.com/uc?id=1x6hoF7G-tSYxg8AFybggypLZgMGDNHfF). When running the codebert.py to "read_answers('/data/czwang/prompt/dataset/train.jsonl')", it cannot execute successfully because no file named (train.jsonl, valid.jsonl, test.jsonl) was downloaded.

How to download these files?

@adf1178
Copy link
Owner

adf1178 commented Sep 14, 2022

I checked the CodeXglue. You can refer to this url and download the train.txt, valid.txt and test.txt directly. Then run preprocess.py to generate jsonl files.

@adf1178 adf1178 closed this as completed Sep 14, 2022
@DongHande
Copy link
Author

Thank you for your reply. I can run successfully now with your guide.

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

No branches or pull requests

2 participants