Skip to content

wrong codeBLEU metric value #32

Description

@poojitharamachandra

Hi,

I am comparing the code lines:

codeline1= 'a = !((f >> 4) & 0x01);'
codeline2= 'a=!(((f >> 4) & 1U)!=0?true:false;)'

the metric is
CodeBLEU score: {'codebleu': 0.4474481492943273, 'ngram_match_score': 0.21711852081087685, 'weighted_ngram_match_score': 0.21711852081087685, 'syntax_match_score': 0.5555555555555556, 'dataflow_match_score': 0.8}

When the change the code to
codeline2='a=!(((f >> 4) & 1U)!=0?false:true;)'
the metric is
CodeBLEU score: {'codebleu': 0.4474481492943273, 'ngram_match_score': 0.21711852081087685, 'weighted_ngram_match_score': 0.21711852081087685, 'syntax_match_score': 0.5555555555555556, 'dataflow_match_score': 0.8}

I expected the dataflow match score to change, as the functionality is changed

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