microsoft / CodeBERT

CodeBERT
MIT License
2.15k stars 442 forks source link

How to find pairs of modified methods? #231

Open oathaha opened 1 year ago

oathaha commented 1 year ago

Given a source code file where some of its methods are modified, how do you get the pairs of modified methods?

Thank you.

guoday commented 1 year ago

Sorry, I don't know what you discuss. Can you give me details?

oathaha commented 1 year ago

I am sorry that I did not explain clearly. What I mean is like this. Suppose we have A.java and this java file contains 4 methods (i.e., Method1(), Method2(), Method3(), Method4() )

Suppose Method2() and Method4() are modified, how did you get the pairs of old and new modified methods (Method2() and Method4() )

guoday commented 1 year ago

Do you ask about codereviewer?

oathaha commented 1 year ago

Yes. I would like to know how you prepare the triplets (original code, reviewer comment, revised code) to train CodeReviewer

celbree commented 1 year ago

This repo would be helpful for you. https://github.com/Lizhmq/CodeReviewProcesser, which is our data-processing code for CodeReviewer.

oathaha commented 1 year ago

Thank you very much.