-
-
Notifications
You must be signed in to change notification settings - Fork 46.6k
Added fractionated_morse_cipher #9442
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
Added fractionated_morse_cipher #9442
Conversation
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.
Click here to look at the relevant links ⬇️
🔗 Relevant Links
Repository:
Python:
Automated review generated by algorithms-keeper. If there's any problem regarding this review, please open an issue about it.
algorithms-keeper
commands and options
algorithms-keeper actions can be triggered by commenting on this PR:
@algorithms-keeper review
to trigger the checks for only added pull request files@algorithms-keeper review-all
to trigger the checks for all the pull request files, including the modified files. As we cannot post review comments on lines not part of the diff, this command will post all the messages in one comment.NOTE: Commands are in beta and so this feature is restricted only to a member or owner of the organization.
ciphers/fractionated_morse_cipher.py
Outdated
return decrypted_text | ||
|
||
|
||
def main(): |
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.
As there is no test file in this pull request nor any test function or class in the file ciphers/fractionated_morse_cipher.py
, please provide doctest for the function main
Please provide return type hint for the function: main
. If the function does not return a value, please provide the type hint as: def function() -> None:
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.
Click here to look at the relevant links ⬇️
🔗 Relevant Links
Repository:
Python:
Automated review generated by algorithms-keeper. If there's any problem regarding this review, please open an issue about it.
algorithms-keeper
commands and options
algorithms-keeper actions can be triggered by commenting on this PR:
@algorithms-keeper review
to trigger the checks for only added pull request files@algorithms-keeper review-all
to trigger the checks for all the pull request files, including the modified files. As we cannot post review comments on lines not part of the diff, this command will post all the messages in one comment.NOTE: Commands are in beta and so this feature is restricted only to a member or owner of the organization.
ciphers/fractionated_morse_cipher.py
Outdated
return decrypted_text | ||
|
||
|
||
def main() -> None: |
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.
As there is no test file in this pull request nor any test function or class in the file ciphers/fractionated_morse_cipher.py
, please provide doctest for the function main
for more information, see https://pre-commit.ci
@cclauss It would be great if you could review this! Kindly look into this pull request! It has already passed all the required tests! |
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.
Looks cool!
Co-authored-by: Christian Clauss <[email protected]>
Co-authored-by: Christian Clauss <[email protected]>
…pact Co-authored-by: Christian Clauss <[email protected]>
Thank you for the valuable suggestions I will definitely keep this in mind for my further contributions! Learned a lot from this! Have committed thee suggested changes! |
Is there anything more i should add now? |
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.
Final edits: 74d71d0
Thank you! |
* Added fractionated_morse_cipher * Added return type hint for main function * Added doctest for main * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Replaced main function * changed the references section Co-authored-by: Christian Clauss <[email protected]> * removed repetitive datatype hint in the docstring Co-authored-by: Christian Clauss <[email protected]> * changed dictionary comprehension variable names to something more compact Co-authored-by: Christian Clauss <[email protected]> * Update fractionated_morse_cipher.py --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Christian Clauss <[email protected]>
* Added fractionated_morse_cipher * Added return type hint for main function * Added doctest for main * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Replaced main function * changed the references section Co-authored-by: Christian Clauss <[email protected]> * removed repetitive datatype hint in the docstring Co-authored-by: Christian Clauss <[email protected]> * changed dictionary comprehension variable names to something more compact Co-authored-by: Christian Clauss <[email protected]> * Update fractionated_morse_cipher.py --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Christian Clauss <[email protected]>
Describe your change:
Added the Fractionated Morse Cipher implementation in Python an added the file
fractionated_morse_cipher.py
to theciphers
directory. I have also added references to learn more about the cipher, docstrings for every function with an explanation and doctest.Checklist:
Fixes #9691