tsantalis / RefactoringMiner

MIT License
374 stars 140 forks source link

Strange diff #766

Closed koppor closed 3 months ago

koppor commented 3 months ago

Context: https://github.com/JabRef/jabref/pull/11542/files --> src/main/java/org/jabref/gui/entryeditor/fileannotationtab/FulltextSearchResultsTab.java

I would not expect "everything" red and green - there are many similar code fragments:

image

Is it possible to adjust the matching while browsing? Say: Hey, dear tool, please a lower threshold for finding matches - I would like to see more similar lines and just see the differences?

tsantalis commented 3 months ago

@koppor

I am working on this issue. I also spotted this one. The problem is that the number of lambdas is different in the two sides, and the tool is not processing them.

I already made some improvement in https://github.com/tsantalis/RefactoringMiner/issues/765#issuecomment-2316035459 but we can do better than that.

tsantalis commented 3 months ago

@koppor

This is the optimal diff for this change.

Screenshot from 2024-08-28 15-48-35