mxx1219 / TENURE

8 stars 0 forks source link

template per patch? #1

Open monperrus opened 1 year ago

monperrus commented 1 year ago

thanks for the open-science repo @mxx1219!

we can find the 50 D4Jv2.0 patches in folder patch_validation/patches_v2/all/diff/.

now we're looking for the template metadata: for each patch, what is the template identifier that was used?

where can we find this information?

thanks!

mxx1219 commented 1 year ago

Thanks for your attention to our research work!

Are you referring to which templates generated these successful patches? If so, I will promptly add this information to the corresponding "patches" folder.

monperrus commented 1 year ago

Are you referring to which templates generated these successful patches?

yes

If so, I will promptly add this information to the corresponding "patches" folder.

great, thanks a lot, that's very useful.

mxx1219 commented 1 year ago

@monperrus Already done in https://github.com/mxx1219/TENURE/tree/main/repair_result/the_templates_of_the_fixed_patches.txt

monperrus commented 1 year ago

super cool, thanks a lot @mxx1219 ! it would also be useful to see the "unknown" tokens before copy, with the raw output of the network (which AFAIU would contain the special template token that is in the_templates_of_the_fixed_patches.txt

mxx1219 commented 1 year ago

@monperrus Apologizing for not receiving the latest notifications for the issues due to the email server configuration. And for your question, it is suggested to obtain the information you need by checking the runtime logs in the directory https://github.com/mxx1219/TENURE/tree/main/patch_validation/log_v1 (or log_v2). The following part shows the runtime log for the bug version Closure_101 (only the last 2 lines in the log). You could find the original output sequence of the NMT model without any post-processing steps, i.e., "SingleLineMutator rank2fixsplit options . = false ; if ( flags . process_closure_primitives ) {", before the correct-fix symbol "Successful" is printed.

INFO:root:2023-02-16 20:28:25 --> Closure_101: (311) SingleLineMutator rank2fixsplit options . <unk> = false ; if ( flags . process_closure_primitives ) {
INFO:root:Successful
monperrus commented 1 year ago

thanks a lot!

mxx1219 commented 1 year ago

@monperrus my pleasure