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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update code comments and clean up codes #845

Merged
merged 1 commit into from
Oct 19, 2023
Merged

Update code comments and clean up codes #845

merged 1 commit into from
Oct 19, 2023

Conversation

BLKSerene
Copy link
Contributor

@BLKSerene BLKSerene commented Oct 16, 2023

What does this changes

This PR updates all comments in the codebase to fix problems such as grammatical errors, inconsistent capitalizations, and typos.

Note that I'm not a native English speaker, but I'm trying my best to guess what the comment author was trying to convey. As a large number of source files are affected in this PR, I invite the maintainers to review carefully the changes to make sure that I do not accidentally alter the intended meaning while fixing the abovementioned problems in the comments.

This PR also does some general code cleanups, including removing unused imports/variables and trailing whitespace, sorting imports, simplifying unnecessarily complicated expressions, replace deprecated aliases in unittest, and many others.

This is also a good opportunity to remove commented out codes (especially in the test suite) as it is clearly stated in the contributing guides that commented out codes are dead codes. But since I do not know which ones should be kept and which ones should be removed, this PR does not touch on them.

What was wrong

There are many grammatical errors, inconsistent capitalizations, and typos in code comments.

How this fixes it

This PR checks all comments in the codebase and fixes any problems found.

Part of fix for #840.

Your checklist for this pull request

馃毃Please review the guidelines for contributing to this repository.

  • Passed code styles and structures
  • Passed code linting checks and unit test

@coveralls
Copy link

coveralls commented Oct 16, 2023

Coverage Status

coverage: 0.0%. remained the same when pulling c63e568 on BLKSerene:update_code_comments into 73b17e3 on PyThaiNLP:dev.

@sonarcloud
Copy link

sonarcloud bot commented Oct 19, 2023

Kudos, SonarCloud Quality Gate passed!聽 聽 Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 2 Code Smells

No Coverage information No Coverage information
2.7% 2.7% Duplication

@BLKSerene
Copy link
Contributor Author

@wannaphong Should be compatible with #850 now.

Copy link
Member

@wannaphong wannaphong left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@wannaphong wannaphong added hacktoberfest-accepted hacktoberfest accepted pull requests. documentation improve documentation and test cases labels Oct 19, 2023
@wannaphong wannaphong added this to the 4.1 milestone Oct 19, 2023
@wannaphong wannaphong merged commit 52524c4 into PyThaiNLP:dev Oct 19, 2023
9 of 14 checks passed
@BLKSerene BLKSerene mentioned this pull request Oct 23, 2023
2 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation improve documentation and test cases hacktoberfest-accepted hacktoberfest accepted pull requests.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants