-
-
Notifications
You must be signed in to change notification settings - Fork 46.8k
Added 2 new algorythms (decrypt message, censor) #5883
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
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.
The comments are too long.
Keep the comments short and concise.
The code is implementing what's already been implemented in python.
Kind regards,
IdoErel
… On Tue, 28 Dec 2021, 08:58 IdoErel, ***@***.***> wrote:
***@***.**** requested changes on this pull request.
The comments are too long.
Keep the comments short and concise.
Kind regards,
Ido Erel
—
Reply to this email directly, view it on GitHub
<#5883 (review)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ASCQE6XICOYBW3MSNKLOHOTUTEDRRANCNFSM5KXZIB3Q>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
Thank you a lot for the feedback! Quick question, you mean both algorithms have been implemented in Python already, right? Or just the censor algorithm? |
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.
Thank you for trying but it seems that decrypt
does not do any decryption but only removes the character provided to it and does not do any real world decryption. You might say that it does English deobfuscation but that is also false as well (in case you say so).
here is an example, both of them are equivalent, the latter being already inbuilt.
decrypt("o$ne", "$") == "o$ne".replace("$", "")
and for the censor
function that is also achieved by the same replace
.
censor("bad word", "bad") == "bad word".replace("bad", "***")
Okay, I get it that censor is still reasonable but decrypt
is unnecessary.
Thank you so much for the feedback, it's greately appreciated. Would it be okay if I remove the "decrypt" function, and only set a pull request for the censor function? Or does the censor function not hold any value to the repository, and it's not neccessary to commit? |
As I am not a maintainer, I can only advise yes but please consider mentioning to any of the maintainers. My advise does not help with the merge decision of any PR and is completely up to maintainer |
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.
maths/average_welford.py
Outdated
@@ -0,0 +1,21 @@ | |||
def average_welford(values): |
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.
Please provide return type hint for the function: average_welford
. If the function does not return a value, please provide the type hint as: def function() -> None:
Please provide type hint for the parameter: values
maths/average_welford.py
Outdated
@@ -0,0 +1,21 @@ | |||
def average_welford(values): |
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.
def average_welford(values): | |
def average_welford(values) -> float: |
@Kush1101 , hello! could you please review this pull request?? |
Sometimes the CI is not running - just LMK if that's the case |
ty, i think that might have been the case. will definitely inform if it happens again! |
Describe your change:
Added 2 new algorythms (decrypt message, censor)
Checklist:
Fixes: #{$ISSUE_NO}
.