codebleu icon indicating copy to clipboard operation
codebleu copied to clipboard

problem of wrong calculation of data-flow match score

Open ZeyuTeng96 opened this issue 1 year ago • 1 comments

As https://github.com/microsoft/CodeXGLUE/issues/152

I found the same problem for data-flow score calculation as addressed on the above in line 121 and 122 https://github.com/k4black/codebleu/blob/main/codebleu/dataflow_match.py#L121C40-L121C44

There are two possible way to solve it:

  1. using list.extend or append func to add nodes
  2. adding a sorted() func to it

Do you think is it feasible? I am willing to make a PR to fix the issue

ZeyuTeng96 avatar Mar 05 '24 02:03 ZeyuTeng96

@k4black Hello Sir. Is that possible to do it?

ZeyuTeng96 avatar Mar 20 '24 08:03 ZeyuTeng96