repairnator icon indicating copy to clipboard operation
repairnator copied to clipboard

add support for partial repair as automated hints for students learning to code

Open ssk1216 opened this issue 4 years ago • 7 comments

I was going through the work flow of repairnator, and it does generate the final patch. However if we have to generate hints about the issue in the code instead of final patch, Is that possible to do with Repairnator????

OR will a workflow, where we create a Gitlab bot which

  1. First generate hints from the FL tool 2, Then invokes the APR tool say, Astor is feasible

Can Repairnator be integrated with Gitlab OR Is it only for GitHub?

Is there any documents/guidelines on how to invoked Repairnator , based on a commit which I do from my account??

ssk1216 avatar Nov 16 '20 07:11 ssk1216

Can Repairnator be integrated with Gitlab OR Is it only for GitHub?

Today, it's Github, Gitlab is an open issue see https://github.com/eclipse/repairnator/issues/1142

However if we have to generate hints about the issue in the code instead of final patch

Interesting. Could you elaborate on what you mean by "hint"? Could you give a concrete example?

monperrus avatar Nov 16 '20 10:11 monperrus

Could you elaborate on what you mean by "hint"? Could you give a concrete example? As an example , to find whether a number is odd or even , assume the code is if (n/2 ==0) [print "even" else print "odd"

So a hint could be either the line no / a suggestion to change the operator to % than displaying the final correct patch

ssk1216 avatar Nov 16 '20 17:11 ssk1216

So a hint could be either the line no

This is Repairnator for fault localization see https://github.com/eclipse/repairnator/issues/1029

So a hint [...] a suggestion to change the operator to % than displaying the final correct patch

Transforming an actual patch in a natural language suggestion is an excellent idea, which is not being much researched. The closest field is something called "feedback generation", see A systematic literature review of automated feedback generation for programming exercises

monperrus avatar Nov 17 '20 17:11 monperrus

FYI Current State and Next Steps on Automated Hints for Students Learning to Code https://aic-atlas.s3.eu-north-1.amazonaws.com/projects/e7299991-eb2b-4764-a849-4909e01fb07d/documents/tAox4rc8YHh80Rk1ufniadaNrL5PLOI55o7UELRb.pdf

monperrus avatar Nov 23 '20 13:11 monperrus

Thanks Martin

ssk1216 avatar Nov 26 '20 03:11 ssk1216

Related work: Context-aware and data-driven feedback generation for programming assignments. https://dblp.org/rec/conf/sigsoft/SongLO21

monperrus avatar Sep 07 '21 11:09 monperrus

FTR, https://github.com/eclipse/repairnator/issues/1261is related

monperrus avatar Sep 15 '22 07:09 monperrus