StrCmp95 algorithm gives incorrect similarity scores when comparing strings of different lengths
StrCmp95 algorithm gives incorrect similarity scores when comparing strings of different lengths: a task in harbor-swesmith-rl-artifacts: Harbor SWE-Smith 强化学习数据产物 (Harbor dataset). When using the StrCmp95 algorithm to compare strings of different lengths, the similarity scores are incorrect. The…
The task
When using the StrCmp95 algorithm to compare strings of different lengths, the similarity scores are incorrect. The algorithm seems to be swapping the search range and minimum value variables when the first string is longer than the second.