SpoonLabs / astor

Automatic program repair for Java with generate-and-validate techniques :v::v:: jGenProg (2014) - jMutRepair (2016) - jKali (2016) - DeepRepair (2017) - Cardumen (2018) - 3sfix (2018)
https://hal.archives-ouvertes.fr/hal-01321615/document
GNU General Public License v2.0
207 stars 106 forks source link

Check variant before validation #239

Closed crimsonfan closed 4 years ago

crimsonfan commented 4 years ago

Dear @martinezmatias ,

It's me again. I wonder to ask that if I can check the code of variant (read the source code) before astor validates it by test suite? If yes, where can I find the hardcode location?

Thanks, Tin.

martinezmatias commented 4 years ago

Dear @crimsonfan

It's me again

Nice to know that you continue using Astor :)

I can check the code of variant (read the source code) before astor validates it by test suite?

Yes. There are some ways. The easiest one would be to use the parameters saveall:true via the argument -parameters . This produces that Astor stores the files under modification before validating it.
Thus, in the output you can find "program-variant-x" (x is the Identifier).

Could that work for you?

crimsonfan commented 4 years ago

Dear @martinezmatias,

Sure, I have firgured it out right after I posted the question, sorry for my troublesomes. Just an outline question, do you think in a large and ideal project (classes are named professionally), two classes with the same name can be existed? I'm going to use file.io to find the bugged class and the fixed class by the name of fixed class, for comparison purpose. And I affraid that maybe there are two classes with the same name, and the comparison maybe nonsense. And in the output_astor, the folder default is the folder of the project under repair?

Thanks, Tin.

martinezmatias commented 4 years ago

Hi @crimsonfan

Just an outline question, do you think in a large and ideal project (classes are named professionally), two classes with the same name can be existed?

It could happen. I have seen some real project that have two classes with the same name and are located in different packages or modules.

crimsonfan commented 4 years ago

Dear @martinezmatias , Last but not least, in the output_astor, the folder default is the folder of the project under repair?

Thanks, Tin.

martinezmatias commented 4 years ago

Hi @martinezmatias

the folder default is the folder of the project under repair?

Yes, exactly, it has the original buggy project.

Last but not least

There is no problem. Write me if you need some help :)

crimsonfan commented 4 years ago

Hi @martinezmatias ,

Thanks for all.

Hope you have a nice day, Tin.