-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
[WIP] Fix for issue 2831 #3721
Merged
Merged
[WIP] Fix for issue 2831 #3721
Changes from all commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
681d812
Added executeAndReturn method
663466d
Abbreviations should run parallel now.
016a3bc
Added logging message
9f5f79b
Null check is now done by Objects.requireNonNull(...)
c6d33b8
executeAll method now returns a list of all Future objects
9fa3490
Removed empty lines, changed log message status to info instead of debug
6c4e2e0
Some more empty lines had to die. >:(
c53ea39
Removed throw of InterruptedException
b06f81b
Callables are now invoked by the executeAll method.
5dd0efc
executeAll will now return an empty list instead of null
bdb918f
Replaced for-loop by using a stream instead.
abb3f42
Exceptions are now logged as errors
3ac2f16
Replaced null check with Objects.requireNonNull(...
64655ce
Added JavaDoc comment, fixed typo, returning empty list in catch block
fb993c1
Fixed variable declaration order
0db0bc5
Renamed `executeAndReturn` method to `execute`
c2e7bc1
Separated Logger import
3af00d5
Added change log message for issue 2831
5f2c44b
Added bib file generator as python script
f837839
Removed empty lines to satisfy code check
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
number_of_entries = 100000 | ||
file = open("generatedDatabase.bib", 'w') | ||
|
||
for i in range(number_of_entries): | ||
entry = """@article{%i, | ||
author = {%i}, | ||
title = {%i}, | ||
journal = {%i}, | ||
volume = {%i}, | ||
year = {%i}, | ||
pages = {%i}, | ||
}""" % (i, i, i, i, i, i, i) | ||
file.write(entry) | ||
file.flush() | ||
file.close() |
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
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.
I would not break the loop here, just continue with the next future. If the
return false;
makes sense here, please add a comment whyfalse
is returned.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 return is for the lambda so everything is fine.