Human-competitive Patches in Automatic Program Repair with Repairnator
medium.com
medium.com
A strange fix to equally strange code. In the old code `tags` wasn't used in the first place, and in the new code it's put inside a scope ensuring it definitely can't be used. Why not just delete it?
If it's being used just for side-effects in the `getAllHashtags()` call, why still bind it to a variable?
Edit: Also, it isn't consistent with the original code in that it prefixes the member access with `this.` whereas the old code didn't do that. If I were the bot's author I wouldn't consider this commit a particularly good example of the bot's capability...
The simple NullPointerException fixes don't look very impressive, although understandably still quite awesome for a bot.
On the other hand, its commit on the eclipse/ditto repo was pretty interesting: https://github.com/eclipse/ditto/pull/151/commits/7ab96e373e... I'm quite surprised how it determined the usage of a function it did not write.
- https://github.com/Spirals-Team/repairnator/tree/master/repa...