Open philippkolbe opened 3 months ago
it seems like SPAT is able to keep comments in other locations but this one is just overwritten by the replacement algorithm.
Even though comments might be unnecessary for running the code they are very relevant for language models to understand the code.
Your comment is very valuable.
I will update these code once I got some free time. Or, if you'd like to do it yourself, I am happy to have you in the develop team of SPAT.
Don't really have the time either as I am writing on my bachelor thesis at the moment...
For data augmentation this is not the worst as it won't affect too many cases and a missing comment is not the worst.
Setup
When you apply the first rule (FOR2WHILE) to this file
The result is
Issue
It seems to remove the comment above the
for
loop. My expected output would be:Command
The command I run is
java -jar c:\path\to\spat\SPAT.jar 1 tmp\input tmp\output\ C:\Program Files\Java\jre1.8.0_191\lib\rt.jar
While
tmp\input
contains the above inputed class andtmp\output
contains the output from above.System