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

Function string ends with CR character #6

Open
habaneraa opened this issue Nov 22, 2023 · 0 comments
Open

Function string ends with CR character #6

habaneraa opened this issue Nov 22, 2023 · 0 comments

Comments

@habaneraa
Copy link

In DiverseVul, there are over 1,000 samples with func fields that end with CR (\r) characters. This is unexpected because in most operating systems, line breaks are CRLF or LF (ending with \n). Although the line break sequences do not impact the actual content, it may cause data inconsistency when using Pandas to save/load these uncommon strings. Please refer to pandas-dev/pandas#10018
about this bug.

A simple solution would be to remove the trailing whitespaces from the func fields. By doing so, we can get rid of this error without altering the dataset's content.

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