pkuzqh / Recoder

MIT License
52 stars 11 forks source link

Data processing #12

Open jz48 opened 2 years ago

jz48 commented 2 years ago

Hello authors, may I ask for the workflow to process the data from raw data (java methods pairs) into the mode input (data.pkl)? Thanks so much for your time.

jz48 commented 2 years ago

My email address is jz48@njit.edu

pkuzqh commented 2 years ago

You can use the following code to process data https://disk.pku.edu.cn:443/link/37FED995C8031D4DB8212BC517ECC3A1 available time:2024-01-24 23:59

jz48 commented 2 years ago

I got it, thank you so much for your reply! Best regards.

jz48 commented 2 years ago

May I ask one more thing about the way you produce AST and the TreeStr? I tried to use javalang (because you used it in the code) to parse the method and build the the treestr. However, with the same method, the treestr result looks different from what you use in data.pkl. Could you please tell me how do you processing the AST tree? Looking forward to hearing from you, thank you!

pkuzqh commented 2 years ago

You can use this file "https://github.com/pkuzqh/Recoder/blob/master/repair.py"

guoweijun137 commented 3 months ago

You can use the following code to process data https://disk.pku.edu.cn:443/link/37FED995C8031D4DB8212BC517ECC3A1 available time:2024-01-24 23:59

@pkuzqh Unfortunately, I only saw this link now, but it has expired. Could you please resend it?