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

wrong codeBLEU metric value #32

Open
poojitharamachandra opened this issue Feb 20, 2024 · 0 comments
Open

wrong codeBLEU metric value #32

poojitharamachandra opened this issue Feb 20, 2024 · 0 comments

Comments

@poojitharamachandra
Copy link

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

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