You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
How to create separately "my_dataset.raw.train.txt" files for each java codes? #149
Thank you again for sharing this project with us! I have a question.
When I run the "Preprocess.sh" script, all the java files in train folder union all and create a "my_dataset.raw.train.txt" file.
Is it possible to create the "my_dataset.raw.train.txt" files as a separate files for each java code in train folder ? (For instance my_dataset.raw.train_code_1.txt , my_dataset.raw.train_code_2.txt, etc.)
Hi @brcsnt ,
Of course,
You can just move each file into a separate directory and point the
`preprocess.sh` script to each individual directory.
You can also modify the `JavaExtractor` project to do that, depending on
whether you would rather modify the code or modify the directory structure.
Best,
Uri
Thank you so much for your quick response.
I did some research to make changes to the JavaExtractor project. Do I have to modify exactly the "extract.py" file to get the result I specified above? I tried to make some changes but so far without success.
Not necessarily.
But you do need to build the `*.jar*` file of the `JavaExtractor` by
running `mvn package` from the directory `JavaExtractor/JPredict` for your
changes to take effect.
Best,
Uri
Activity
urialon commentedon Mar 8, 2022
brcsnt commentedon Mar 10, 2022
Hello @urialon,
Thank you so much for your quick response.
I did some research to make changes to the
JavaExtractorproject. Do I have to modify exactly the "extract.py" file to get the result I specified above? I tried to make some changes but so far without success.Many thanks in advance.
urialon commentedon Mar 10, 2022