-
Notifications
You must be signed in to change notification settings - Fork 69
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
Proposing changes to alex.utils & cleaning up. #133
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,6 +16,7 @@ | |
from heapq import nsmallest | ||
from operator import itemgetter | ||
|
||
# TODO: Move this to config. This is evil. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I agree. |
||
persistent_cache_directory = '~/.alex_persistent_cache' | ||
|
||
|
||
|
@@ -229,6 +230,8 @@ def wrapper(*args, **kwds): | |
|
||
return decorator | ||
|
||
|
||
# TODO: Fix. | ||
persistent_cache_directory = os.path.expanduser(persistent_cache_directory) | ||
if not os.path.exists(persistent_cache_directory): | ||
os.makedirs(persistent_cache_directory) | ||
|
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,6 +24,7 @@ | |
|
||
config = None | ||
|
||
# TODO: Move this to config. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I agree. |
||
online_update_server = "https://vystadial.ms.mff.cuni.cz/download/alex/" | ||
|
||
|
||
|
This file was deleted.
This file was deleted.
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'd rather keep the old name – I think it describes the function sufficiently and the new one makes lines too long ;-).
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 problem is that I had to study the code of the method to understand what is it doing - it was not apparent to me on the first sight it is working on a list. So how about list_remove_dups_stable ?
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.
Oh, I've just realized that I wrote this function... maybe that's why it seemed so clear to me 😄 . So I'm probably not the right one to judge...
remove_list_dups_stable
would sound slightly better to me, but i'm OK with both.