Skip to content

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

@ZeyuTeng96

Description

@ZeyuTeng96

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions