SZZUnleashed icon indicating copy to clipboard operation
SZZUnleashed copied to clipboard

Wrong pair order in SimpleBugIntroducerFinder

Open markus7800 opened this issue 2 years ago • 0 comments

It seems to me that in the following code snippet

https://github.com/wogscpar/SZZUnleashed/blob/79f369fe2ccd2ae8c12d4e38edf71e7d988a8c68/szz/src/main/java/heuristics/SimpleBugIntroducerFinder.java#L180-L207

pair[0] is a bug-introducing commit, and pair[1] is a bug-fixing commit as defined in the issue list.

However, in line 193 (as well as in line 224), I think the order of the pair should be (bug-fixing commit, bug-introducing commit), so (pair[1], pair[0]).

Is this correct or am I missing something?

markus7800 avatar Jan 18 '22 12:01 markus7800