-
Notifications
You must be signed in to change notification settings - Fork 154
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
Maygen #811
Merged
Maygen #811
Changes from 1 commit
Commits
Show all changes
25 commits
Select commit
Hold shift + click to select a range
c1d87ed
Integrating MAYGEN project to structgen package
MehmetAzizYirik 6bbfe59
Added the JavaDoc to the source and test classes.
MehmetAzizYirik be4d86e
Added dependencies, formatted sources.
javadev 63b4b42
Fix up some dependencies lost in the rebase. We should not be calling…
johnmay 6b75b18
Split out the command line parsing from the main entry point. For now…
johnmay be00615
Pass in the IChemObjectBuilder
johnmay 706b8f0
Fix copyright header
johnmay 158a34d
Remove commons-lang3, a specicalled MF range parse would be better bu…
johnmay 48da99f
Avoid reflective calls.
johnmay 37e1457
removeHydrogens creates a copy of the molecule, use suppressHydrogens…
johnmay a0dfd2b
Replace seperate output modes with a single "emit" which will consume…
johnmay 01706c9
Remove redundant ForkJoinPool, submitting and then waiting is just ru…
johnmay 2c4b026
May SonarCloud happier by not using a for-loop here?
johnmay a9d8dd3
Parameterized tests
johnmay 2141013
Split out IO concerns from the generator, using a consumer.
johnmay 3ccd84d
Forgot to remove the SmilesGenerator from here.
johnmay 37b1815
Test IO generation, this is a little tricky since for example the coo…
johnmay 4c9bb43
Add back in the brittle ForkJoin hack.
johnmay 668a69f
SonarCloud: Use the logger for verbose output. If needed the format c…
johnmay ab90f91
Relicense header as LGPL to be inline with rest of CDK
johnmay dfa4755
Document usage of the class.
johnmay 1d2b09d
SonarCloud suggestion, move these tests into the Parameterized ones.
johnmay 69ccdb7
Additional SonarCloud suggestions.
johnmay 601f02f
Added support for the smiles and sdf generator.
javadev eeefebd
Merge pull request #818 from jscrdev/maygen
johnmay File filter
Filter by extension
Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
size is important, it can't be removed.
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 explain, I asked @MehmetAzizYirik. My understanding this code is not doing anything since the parellel stream will not use the forjoin pool
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.
Okay see here it really does work that way but is quite opaque/brittle - https://stackoverflow.com/questions/30802463/how-many-threads-are-spawned-in-parallelstream-in-java-8. "It should be noted that the Stream APIs use of ForkJoinPool is an implementation detail. Thus, both solutions work with Oracle’s current implementation but are not guaranteed to work everywhere."
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.
Why size and not -
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.
And that is the default anyways for ForkJoinPool in ParallelStream which is cleaner IMO.
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.
@johnmay we had that conversation with Valentyn about the size parameter, but I believe this needs to be changed like you explained we can use that other option you recommended.
Also, this parallelization actually needs to be enhanced but further tasks not for now. Thus, we dont need to keep it with the ForkJoinPool but can change it later.
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.
It is related for the bug MehmetAzizYirik/MAYGEN#48
In some configuration default value is 79. We need to control it not use default.