-
-
Notifications
You must be signed in to change notification settings - Fork 60
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 Properties.isRandomDNA(String) - Issue #73 #97
Conversation
Changed calculation to compare max and min value instead of all values, reducing complexity.
Marked methods in utility classes as static and changed their invocations.
Changed calculation to compare max and min value instead of all values, reducing complexity.
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 code looks fine but when it is tested on dnalong.fa, it doesn't say that it is random, even though it is. Could you please look into this? Thanks!
@B4CKF1SH |
I think this is because |
@B4CKF1SH Intellij Idea marks that the method is no longer used but remains in the code, I believe it can be deleted and this PR closed. |
Good catch @Speedro! I didn't realize that this method call got deleted. I'll be adding it back promptly. |
we need to add the unit tests :) |
Yes, exactly. I'll be working on that this weekend. That is unless you want to help! |
sure I can help, but I can start tomorrow if thats ok :) |
Signed-off-by: B4CKF1SH <[email protected]>
The issue was a missing pair of brackets, messing up the calculations in the new method. I added a fix, it now correctly identifies dnalong.fa. Please let me know if any further changes are required. |
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 good @B4CKF1SH! Could you please elaborate further on how you simplified the code in the comments?
Signed-off-by: B4CKF1SH <[email protected]>
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 perfect now! I'll merge it once you clear the merge conflicts.
@B4CKF1SH |
Hey @B4CKF1SH I will be out of office for some time, so it will take me some time merge the pull request. However, I will approve the pull request once you clear the merge conflicts, in case you are participating in Hacktoberfest. Thanks for working on this, we at DNAnalyzer really appreciate your help! |
@B4CKF1SH please clear merge conflicts! I'll approve your PR once you do so. |
I fixed the conflicts on my fork, it should be good 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.
Looks great @B4CKF1SH. Sorry for the delay in approving this PR!
Looking forward to seeing more PRs from you on DNAnalyzer! |
Changed calculation to compare max and min value instead of all values, reducing complexity.
Closes #73