-
Notifications
You must be signed in to change notification settings - Fork 17
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
How to judge if the name and body become stable after a change #34
Comments
Hello @lzl-cmd , Thanks for your interests in our work. |
Thanks for your replying! With the help of your hint, I found these Line 48 in fb1f87f
Line 49 in fb1f87f
Line 54 in fb1f87f
But I'm still not sure whether these three judgements can finish the job. Could you show me more details? Thanks in advance! |
I didn't touch the code for a long time, I do not remember so many details any more. I am sorry for that. |
NewMethodNames.txt I run the RenamedMethodsCollector with the first repository(abdera), and get the above results, I find that the first two method renames are quite similar: so I print the commit's path out and find the concrete commits in the 1.Data/Output/Commit_Diffs/abdera/revFiles/fa61c6_108201_server#src#main#java#org#apache#abdera#server#AbderaServerException.java fa61c6_108201_server#src#main#java#org#apache#abdera#server#AbderaServerException.txt From the commits' history, I guess that the original commit is 1c6007, after which the method:
But from the commit changes I found, the filter seems to fail in getting the renamed methods that are stable after changing. |
Hi Kui,
I am one of your fans. Thanks for your great work! Recently I am performing a project based on your work. I have a question that needs your help.
In your paper, you introduced that a renamed method name would be collected if (1) the method body is not changed, and (2) the method name and body become stable after the change.
After reading the code, I find that the first condition is ensured by the following line
debug-method-name/RenamedMethodsCollector/src/main/java/edu/lu/uni/serval/renamed/methods/CodeChangeParser.java
Line 88 in fb1f87f
but I did not find the corresponding code towards the second condition. I would appreciate it if you could give me some clues. Thanks in advance!
The text was updated successfully, but these errors were encountered: