Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

problem of wrong calculation of data-flow match score #35

Open
ZeyuTeng96 opened this issue Mar 5, 2024 · 1 comment
Open

problem of wrong calculation of data-flow match score #35

ZeyuTeng96 opened this issue Mar 5, 2024 · 1 comment

Comments

@ZeyuTeng96
Copy link

As microsoft/CodeXGLUE#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 ZeyuTeng96 changed the title found same problem of wrong calculation of data-flow match score problem of wrong calculation of data-flow match score Mar 5, 2024
@ZeyuTeng96
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant