-
Notifications
You must be signed in to change notification settings - Fork 518
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
Refactor gemma/common.cc
to improve readability and safety
#458
Conversation
8c2502b
to
e01bcd2
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice, thanks for making the change :)
Apologies, I didn't see this PR is targeting main branch. Our import infra does not support that. Please change to dev branch :) |
Use `std::size` for array size calculations. Replace C-style string manipulations with `std::string` methods. Simplify `std::transform` usage for case conversion. Signed-off-by: Eric Curtin <[email protected]>
gemma/common.cc
to improve readability and safety:gemma/common.cc
to improve readability and safety
The base branch was changed.
Thanks, it's against dev now |
Thanks for rebasing :) I think the email address used is not covered by CLA? |
Author: @a-googler <no****ly@google.com> apparent didnt sign the CLA, dunno what that means :) |
Oh, I see. No idea how that a-googler got into the check. It might help to close this PR and open a new one? Sorry about the incidental complexity :( |
No problem 😄 |
New PR: |
Use
std::size
for array size calculations. Replace C-style string manipulations withstd::string
methods. Simplifystd::transform
usage for case conversion.