commit
stringlengths
40
40
old_file
stringlengths
4
118
new_file
stringlengths
4
118
old_contents
stringlengths
0
2.94k
new_contents
stringlengths
1
4.43k
subject
stringlengths
15
444
message
stringlengths
16
3.45k
lang
stringclasses
1 value
license
stringclasses
13 values
repos
stringlengths
5
43.2k
prompt
stringlengths
17
4.58k
response
stringlengths
1
4.43k
prompt_tagged
stringlengths
58
4.62k
response_tagged
stringlengths
1
4.43k
text
stringlengths
132
7.29k
text_tagged
stringlengths
173
7.33k
37ad455bdabd7a93254f17c1838e526bd6d77c66
example/people.py
example/people.py
from pupa.scrape import Scraper from pupa.models import Person, Organization class PersonScraper(Scraper): def get_people(self): # committee tech = Organization('Technology', classification='committee') tech.add_post('Chairman', 'chairman') yield tech # subcommittee ...
from pupa.scrape import Scraper from pupa.models import Person, Organization class PersonScraper(Scraper): def get_people(self): # committee tech = Organization('Technology', classification='committee') tech.add_post('Chairman', 'chairman') tech.add_source('https://example.com') ...
Add sources to example scrape.
Add sources to example scrape.
Python
bsd-3-clause
influence-usa/pupa,mileswwatkins/pupa,mileswwatkins/pupa,opencivicdata/pupa,rshorey/pupa,influence-usa/pupa,datamade/pupa,datamade/pupa,opencivicdata/pupa,rshorey/pupa
from pupa.scrape import Scraper from pupa.models import Person, Organization class PersonScraper(Scraper): def get_people(self): # committee tech = Organization('Technology', classification='committee') tech.add_post('Chairman', 'chairman') yield tech # subcommittee ...
from pupa.scrape import Scraper from pupa.models import Person, Organization class PersonScraper(Scraper): def get_people(self): # committee tech = Organization('Technology', classification='committee') tech.add_post('Chairman', 'chairman') tech.add_source('https://example.com') ...
<commit_before>from pupa.scrape import Scraper from pupa.models import Person, Organization class PersonScraper(Scraper): def get_people(self): # committee tech = Organization('Technology', classification='committee') tech.add_post('Chairman', 'chairman') yield tech # sub...
from pupa.scrape import Scraper from pupa.models import Person, Organization class PersonScraper(Scraper): def get_people(self): # committee tech = Organization('Technology', classification='committee') tech.add_post('Chairman', 'chairman') tech.add_source('https://example.com') ...
from pupa.scrape import Scraper from pupa.models import Person, Organization class PersonScraper(Scraper): def get_people(self): # committee tech = Organization('Technology', classification='committee') tech.add_post('Chairman', 'chairman') yield tech # subcommittee ...
<commit_before>from pupa.scrape import Scraper from pupa.models import Person, Organization class PersonScraper(Scraper): def get_people(self): # committee tech = Organization('Technology', classification='committee') tech.add_post('Chairman', 'chairman') yield tech # sub...
e7afc1ccf85baf54772493288074122bb1042f93
lcd_ticker.py
lcd_ticker.py
#!/usr/bin/env python """Display stock quotes on LCD""" from ystockquote import get_price, get_change from lcd import lcd_string, tn symbols = ['AAPL', 'MSFT', 'F', 'T', 'KO', 'GOOG', 'SYK', 'DIS', 'GM', 'GE', 'BAC', 'IBM', 'C', 'AMZN', 'AET', 'DOW', 'INTC', 'PFE', 'MRK', 'RTN'] while(True): for s in...
#!/usr/bin/env python """Display stock quotes on LCD""" import ystockquote as y from lcd import lcd_string, tn symbols = ['AAPL', 'MSFT', 'F', 'T', 'KO', 'GOOG', 'SYK', 'DIS', 'GM', 'GE', 'BAC', 'IBM', 'C', 'AMZN', 'AET', 'DOW', 'INTC', 'PFE', 'MRK', 'RTN'] def compact_quote(symbol): symbo...
Move compact_quote() to main LCD ticker file.
Move compact_quote() to main LCD ticker file.
Python
mit
zimolzak/Raspberry-Pi-newbie,zimolzak/Raspberry-Pi-newbie,zimolzak/Raspberry-Pi-newbie,zimolzak/Raspberry-Pi-newbie,zimolzak/Raspberry-Pi-newbie
#!/usr/bin/env python """Display stock quotes on LCD""" from ystockquote import get_price, get_change from lcd import lcd_string, tn symbols = ['AAPL', 'MSFT', 'F', 'T', 'KO', 'GOOG', 'SYK', 'DIS', 'GM', 'GE', 'BAC', 'IBM', 'C', 'AMZN', 'AET', 'DOW', 'INTC', 'PFE', 'MRK', 'RTN'] while(True): for s in...
#!/usr/bin/env python """Display stock quotes on LCD""" import ystockquote as y from lcd import lcd_string, tn symbols = ['AAPL', 'MSFT', 'F', 'T', 'KO', 'GOOG', 'SYK', 'DIS', 'GM', 'GE', 'BAC', 'IBM', 'C', 'AMZN', 'AET', 'DOW', 'INTC', 'PFE', 'MRK', 'RTN'] def compact_quote(symbol): symbo...
<commit_before>#!/usr/bin/env python """Display stock quotes on LCD""" from ystockquote import get_price, get_change from lcd import lcd_string, tn symbols = ['AAPL', 'MSFT', 'F', 'T', 'KO', 'GOOG', 'SYK', 'DIS', 'GM', 'GE', 'BAC', 'IBM', 'C', 'AMZN', 'AET', 'DOW', 'INTC', 'PFE', 'MRK', 'RTN'] while(True...
#!/usr/bin/env python """Display stock quotes on LCD""" import ystockquote as y from lcd import lcd_string, tn symbols = ['AAPL', 'MSFT', 'F', 'T', 'KO', 'GOOG', 'SYK', 'DIS', 'GM', 'GE', 'BAC', 'IBM', 'C', 'AMZN', 'AET', 'DOW', 'INTC', 'PFE', 'MRK', 'RTN'] def compact_quote(symbol): symbo...
#!/usr/bin/env python """Display stock quotes on LCD""" from ystockquote import get_price, get_change from lcd import lcd_string, tn symbols = ['AAPL', 'MSFT', 'F', 'T', 'KO', 'GOOG', 'SYK', 'DIS', 'GM', 'GE', 'BAC', 'IBM', 'C', 'AMZN', 'AET', 'DOW', 'INTC', 'PFE', 'MRK', 'RTN'] while(True): for s in...
<commit_before>#!/usr/bin/env python """Display stock quotes on LCD""" from ystockquote import get_price, get_change from lcd import lcd_string, tn symbols = ['AAPL', 'MSFT', 'F', 'T', 'KO', 'GOOG', 'SYK', 'DIS', 'GM', 'GE', 'BAC', 'IBM', 'C', 'AMZN', 'AET', 'DOW', 'INTC', 'PFE', 'MRK', 'RTN'] while(True...
480e51fc6b09cc47105b4615c0ff9047b39a9067
eva_cttv_pipeline/trait_mapping/utils.py
eva_cttv_pipeline/trait_mapping/utils.py
import logging logger = logging.getLogger(__package__) def request_retry_helper(function, retry_count: int, url: str): """ Given a function make a number of attempts to call function for it to successfully return a non-None value, subsequently returning this value. Makes the number of tries specified in ...
import logging logger = logging.getLogger(__package__) def request_retry_helper(function, retry_count: int, url: str): """ Given a function make a number of attempts to call function for it to successfully return a non-None value, subsequently returning this value. Makes the number of tries specified in ...
Modify the URL helper to not rely on None values
Modify the URL helper to not rely on None values
Python
apache-2.0
EBIvariation/eva-cttv-pipeline
import logging logger = logging.getLogger(__package__) def request_retry_helper(function, retry_count: int, url: str): """ Given a function make a number of attempts to call function for it to successfully return a non-None value, subsequently returning this value. Makes the number of tries specified in ...
import logging logger = logging.getLogger(__package__) def request_retry_helper(function, retry_count: int, url: str): """ Given a function make a number of attempts to call function for it to successfully return a non-None value, subsequently returning this value. Makes the number of tries specified in ...
<commit_before>import logging logger = logging.getLogger(__package__) def request_retry_helper(function, retry_count: int, url: str): """ Given a function make a number of attempts to call function for it to successfully return a non-None value, subsequently returning this value. Makes the number of tries...
import logging logger = logging.getLogger(__package__) def request_retry_helper(function, retry_count: int, url: str): """ Given a function make a number of attempts to call function for it to successfully return a non-None value, subsequently returning this value. Makes the number of tries specified in ...
import logging logger = logging.getLogger(__package__) def request_retry_helper(function, retry_count: int, url: str): """ Given a function make a number of attempts to call function for it to successfully return a non-None value, subsequently returning this value. Makes the number of tries specified in ...
<commit_before>import logging logger = logging.getLogger(__package__) def request_retry_helper(function, retry_count: int, url: str): """ Given a function make a number of attempts to call function for it to successfully return a non-None value, subsequently returning this value. Makes the number of tries...
771f0056495f959a88406473debbbcf9712dc14a
web/impact/impact/tests/test_method_override_middleware.py
web/impact/impact/tests/test_method_override_middleware.py
# MIT License # Copyright (c) 2017 MassChallenge, Inc. from django.urls import reverse from impact.middleware.method_override_middleware import METHOD_OVERRIDE_HEADER from impact.tests.api_test_case import APITestCase from impact.tests.contexts import UserContext class TestMethodOverrideMiddleware(APITestCase): ...
# MIT License # Copyright (c) 2017 MassChallenge, Inc. from django.urls import reverse from impact.middleware.method_override_middleware import METHOD_OVERRIDE_HEADER from impact.tests.api_test_case import APITestCase from impact.tests.contexts import UserContext class TestMethodOverrideMiddleware(APITestCase): ...
Rename Test And Add Test For GET
[AC-4959] Rename Test And Add Test For GET
Python
mit
masschallenge/impact-api,masschallenge/impact-api,masschallenge/impact-api,masschallenge/impact-api
# MIT License # Copyright (c) 2017 MassChallenge, Inc. from django.urls import reverse from impact.middleware.method_override_middleware import METHOD_OVERRIDE_HEADER from impact.tests.api_test_case import APITestCase from impact.tests.contexts import UserContext class TestMethodOverrideMiddleware(APITestCase): ...
# MIT License # Copyright (c) 2017 MassChallenge, Inc. from django.urls import reverse from impact.middleware.method_override_middleware import METHOD_OVERRIDE_HEADER from impact.tests.api_test_case import APITestCase from impact.tests.contexts import UserContext class TestMethodOverrideMiddleware(APITestCase): ...
<commit_before># MIT License # Copyright (c) 2017 MassChallenge, Inc. from django.urls import reverse from impact.middleware.method_override_middleware import METHOD_OVERRIDE_HEADER from impact.tests.api_test_case import APITestCase from impact.tests.contexts import UserContext class TestMethodOverrideMiddleware(AP...
# MIT License # Copyright (c) 2017 MassChallenge, Inc. from django.urls import reverse from impact.middleware.method_override_middleware import METHOD_OVERRIDE_HEADER from impact.tests.api_test_case import APITestCase from impact.tests.contexts import UserContext class TestMethodOverrideMiddleware(APITestCase): ...
# MIT License # Copyright (c) 2017 MassChallenge, Inc. from django.urls import reverse from impact.middleware.method_override_middleware import METHOD_OVERRIDE_HEADER from impact.tests.api_test_case import APITestCase from impact.tests.contexts import UserContext class TestMethodOverrideMiddleware(APITestCase): ...
<commit_before># MIT License # Copyright (c) 2017 MassChallenge, Inc. from django.urls import reverse from impact.middleware.method_override_middleware import METHOD_OVERRIDE_HEADER from impact.tests.api_test_case import APITestCase from impact.tests.contexts import UserContext class TestMethodOverrideMiddleware(AP...
ee3aa59ef8a398d4d6beddece92f46758e6b6393
django_evolution/compat/apps.py
django_evolution/compat/apps.py
try: from django.apps.registry import apps # Django >= 1.7 get_apps = apps.get_apps cache = None except ImportError: from django.db.models.loading import cache # Django < 1.7 get_apps = cache.get_apps apps = None def get_app(app_label, emptyOK=False): """Return the app with the g...
try: from django.apps.registry import apps # Django >= 1.7 get_apps = apps.get_apps cache = None except ImportError: from django.db.models.loading import cache # Django < 1.7 get_apps = cache.get_apps apps = None def get_app(app_label, emptyOK=False): """Return the app with the g...
Fix the app compatibility for real.
Fix the app compatibility for real. The previous change was still wrong. This is what I meant to do in the first place.
Python
bsd-3-clause
beanbaginc/django-evolution
try: from django.apps.registry import apps # Django >= 1.7 get_apps = apps.get_apps cache = None except ImportError: from django.db.models.loading import cache # Django < 1.7 get_apps = cache.get_apps apps = None def get_app(app_label, emptyOK=False): """Return the app with the g...
try: from django.apps.registry import apps # Django >= 1.7 get_apps = apps.get_apps cache = None except ImportError: from django.db.models.loading import cache # Django < 1.7 get_apps = cache.get_apps apps = None def get_app(app_label, emptyOK=False): """Return the app with the g...
<commit_before>try: from django.apps.registry import apps # Django >= 1.7 get_apps = apps.get_apps cache = None except ImportError: from django.db.models.loading import cache # Django < 1.7 get_apps = cache.get_apps apps = None def get_app(app_label, emptyOK=False): """Return the...
try: from django.apps.registry import apps # Django >= 1.7 get_apps = apps.get_apps cache = None except ImportError: from django.db.models.loading import cache # Django < 1.7 get_apps = cache.get_apps apps = None def get_app(app_label, emptyOK=False): """Return the app with the g...
try: from django.apps.registry import apps # Django >= 1.7 get_apps = apps.get_apps cache = None except ImportError: from django.db.models.loading import cache # Django < 1.7 get_apps = cache.get_apps apps = None def get_app(app_label, emptyOK=False): """Return the app with the g...
<commit_before>try: from django.apps.registry import apps # Django >= 1.7 get_apps = apps.get_apps cache = None except ImportError: from django.db.models.loading import cache # Django < 1.7 get_apps = cache.get_apps apps = None def get_app(app_label, emptyOK=False): """Return the...
e3e3959da9cf726dfb5d6ebb11f8b576a24cc6fd
dadd/master/settings.py
dadd/master/settings.py
import os curdir = os.getcwd() SECRET_KEY = 'something secret' SQLALCHEMY_DATABASE_URI = 'postgresql+psycopg2://dadapp:uhpqZ5pc@localhost/daddb' STORAGE_DIR = os.path.join(curdir, 'temp_file_storage')
import os curdir = os.getcwd() SECRET_KEY = 'something secret' SQLALCHEMY_DATABASE_URI = 'postgresql+psycopg2://dadapp:uhpqZ5pc@localhost/dadd_db' STORAGE_DIR = os.path.join(curdir, 'temp_file_storage')
Change the default db name to dadd_db
Change the default db name to dadd_db
Python
bsd-3-clause
ionrock/dadd,ionrock/dadd,ionrock/dadd,ionrock/dadd
import os curdir = os.getcwd() SECRET_KEY = 'something secret' SQLALCHEMY_DATABASE_URI = 'postgresql+psycopg2://dadapp:uhpqZ5pc@localhost/daddb' STORAGE_DIR = os.path.join(curdir, 'temp_file_storage') Change the default db name to dadd_db
import os curdir = os.getcwd() SECRET_KEY = 'something secret' SQLALCHEMY_DATABASE_URI = 'postgresql+psycopg2://dadapp:uhpqZ5pc@localhost/dadd_db' STORAGE_DIR = os.path.join(curdir, 'temp_file_storage')
<commit_before>import os curdir = os.getcwd() SECRET_KEY = 'something secret' SQLALCHEMY_DATABASE_URI = 'postgresql+psycopg2://dadapp:uhpqZ5pc@localhost/daddb' STORAGE_DIR = os.path.join(curdir, 'temp_file_storage') <commit_msg>Change the default db name to dadd_db<commit_after>
import os curdir = os.getcwd() SECRET_KEY = 'something secret' SQLALCHEMY_DATABASE_URI = 'postgresql+psycopg2://dadapp:uhpqZ5pc@localhost/dadd_db' STORAGE_DIR = os.path.join(curdir, 'temp_file_storage')
import os curdir = os.getcwd() SECRET_KEY = 'something secret' SQLALCHEMY_DATABASE_URI = 'postgresql+psycopg2://dadapp:uhpqZ5pc@localhost/daddb' STORAGE_DIR = os.path.join(curdir, 'temp_file_storage') Change the default db name to dadd_dbimport os curdir = os.getcwd() SECRET_KEY = 'something secret' SQLALCHEMY_DATA...
<commit_before>import os curdir = os.getcwd() SECRET_KEY = 'something secret' SQLALCHEMY_DATABASE_URI = 'postgresql+psycopg2://dadapp:uhpqZ5pc@localhost/daddb' STORAGE_DIR = os.path.join(curdir, 'temp_file_storage') <commit_msg>Change the default db name to dadd_db<commit_after>import os curdir = os.getcwd() SECRET...
7ef43157bfe8e095a816599e4b8e744a62042c47
module_auto_update/migrations/10.0.2.0.0/pre-migrate.py
module_auto_update/migrations/10.0.2.0.0/pre-migrate.py
# -*- coding: utf-8 -*- # Copyright 2018 Tecnativa - Jairo Llopis # License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl). import logging from psycopg2 import IntegrityError from odoo.addons.module_auto_update.models.module_deprecated import \ PARAM_DEPRECATED _logger = logging.getLogger(__name__) def mi...
# -*- coding: utf-8 -*- # Copyright 2018 Tecnativa - Jairo Llopis # License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl). import logging from psycopg2 import IntegrityError from odoo.addons.module_auto_update.models.module_deprecated import \ PARAM_DEPRECATED _logger = logging.getLogger(__name__) def mi...
Rollback cursor if param exists
[FIX] module_auto_update: Rollback cursor if param exists Without this patch, when upgrading after you have stored the deprecated features parameter, the cursor became broken and no more migrations could happen. You got this error: Traceback (most recent call last): File "/usr/local/bin/odoo", line 6, in <mod...
Python
agpl-3.0
OCA/server-tools,OCA/server-tools,OCA/server-tools,YannickB/server-tools,YannickB/server-tools,YannickB/server-tools
# -*- coding: utf-8 -*- # Copyright 2018 Tecnativa - Jairo Llopis # License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl). import logging from psycopg2 import IntegrityError from odoo.addons.module_auto_update.models.module_deprecated import \ PARAM_DEPRECATED _logger = logging.getLogger(__name__) def mi...
# -*- coding: utf-8 -*- # Copyright 2018 Tecnativa - Jairo Llopis # License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl). import logging from psycopg2 import IntegrityError from odoo.addons.module_auto_update.models.module_deprecated import \ PARAM_DEPRECATED _logger = logging.getLogger(__name__) def mi...
<commit_before># -*- coding: utf-8 -*- # Copyright 2018 Tecnativa - Jairo Llopis # License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl). import logging from psycopg2 import IntegrityError from odoo.addons.module_auto_update.models.module_deprecated import \ PARAM_DEPRECATED _logger = logging.getLogger(__n...
# -*- coding: utf-8 -*- # Copyright 2018 Tecnativa - Jairo Llopis # License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl). import logging from psycopg2 import IntegrityError from odoo.addons.module_auto_update.models.module_deprecated import \ PARAM_DEPRECATED _logger = logging.getLogger(__name__) def mi...
# -*- coding: utf-8 -*- # Copyright 2018 Tecnativa - Jairo Llopis # License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl). import logging from psycopg2 import IntegrityError from odoo.addons.module_auto_update.models.module_deprecated import \ PARAM_DEPRECATED _logger = logging.getLogger(__name__) def mi...
<commit_before># -*- coding: utf-8 -*- # Copyright 2018 Tecnativa - Jairo Llopis # License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl). import logging from psycopg2 import IntegrityError from odoo.addons.module_auto_update.models.module_deprecated import \ PARAM_DEPRECATED _logger = logging.getLogger(__n...
9d2ff18544950e129f5b363af4fa042b067e6830
dashboards/help/guides/urls.py
dashboards/help/guides/urls.py
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable...
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable...
Fix patterns for Django > 1.10
Fix patterns for Django > 1.10 Pike requires Django 1.11 so fix the template pattern import which was not compatible with that version. This fixes: File "/srv/www/openstack-dashboard/openstack_dashboard/dashboards/help/guides/\ urls.py", line 15, in <module> from django.conf.urls import patterns, url ImportError:...
Python
apache-2.0
SUSE-Cloud/horizon-suse-theme,SUSE-Cloud/horizon-suse-theme
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable...
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable...
<commit_before># vim: tabstop=4 shiftwidth=4 softtabstop=4 # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless require...
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable...
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable...
<commit_before># vim: tabstop=4 shiftwidth=4 softtabstop=4 # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless require...
32f2180a2ebe4162d9d9c3058ba9b478a8809ca8
djlotrek/context_processors.py
djlotrek/context_processors.py
from django.conf import settings as django_settings try: from django.core.urlresolvers import reverse, resolve except ImportError: from django.urls import reverse, resolve from django.utils.translation import activate, get_language from urllib.parse import urljoin from .request_utils import get_host_url def ...
from django.conf import settings as django_settings try: from django.core.urlresolvers import reverse, resolve except ImportError: from django.urls import reverse, resolve from django.utils.translation import activate, get_language from urllib.parse import urljoin from .request_utils import get_host_url def ...
Store cur_language in alternate before everything
Store cur_language in alternate before everything
Python
mit
lotrekagency/djlotrek,lotrekagency/djlotrek
from django.conf import settings as django_settings try: from django.core.urlresolvers import reverse, resolve except ImportError: from django.urls import reverse, resolve from django.utils.translation import activate, get_language from urllib.parse import urljoin from .request_utils import get_host_url def ...
from django.conf import settings as django_settings try: from django.core.urlresolvers import reverse, resolve except ImportError: from django.urls import reverse, resolve from django.utils.translation import activate, get_language from urllib.parse import urljoin from .request_utils import get_host_url def ...
<commit_before>from django.conf import settings as django_settings try: from django.core.urlresolvers import reverse, resolve except ImportError: from django.urls import reverse, resolve from django.utils.translation import activate, get_language from urllib.parse import urljoin from .request_utils import get_...
from django.conf import settings as django_settings try: from django.core.urlresolvers import reverse, resolve except ImportError: from django.urls import reverse, resolve from django.utils.translation import activate, get_language from urllib.parse import urljoin from .request_utils import get_host_url def ...
from django.conf import settings as django_settings try: from django.core.urlresolvers import reverse, resolve except ImportError: from django.urls import reverse, resolve from django.utils.translation import activate, get_language from urllib.parse import urljoin from .request_utils import get_host_url def ...
<commit_before>from django.conf import settings as django_settings try: from django.core.urlresolvers import reverse, resolve except ImportError: from django.urls import reverse, resolve from django.utils.translation import activate, get_language from urllib.parse import urljoin from .request_utils import get_...
a4f24c4224f19ee47c201d1497e770db8fda7128
project/settings/dev.py
project/settings/dev.py
from .base import * # noqa DEBUG = True ALLOWED_HOSTS = ['*'] try: import dj_database_url DATABASES = {'default': dj_database_url.config( default='postgres://postgres:postgres@db:5432/postgres')} except ImportError: pass EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend' # Disab...
from .base import * # noqa DEBUG = True ALLOWED_HOSTS = ['*'] try: import dj_database_url DATABASES = {'default': dj_database_url.config( default='postgres://postgres:postgres@db:5432/postgres')} except ImportError: pass EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend' # Disab...
Make debug toolbar use local jquery
Make debug toolbar use local jquery
Python
bsd-3-clause
WebCampZg/conference-web,WebCampZg/conference-web,WebCampZg/conference-web
from .base import * # noqa DEBUG = True ALLOWED_HOSTS = ['*'] try: import dj_database_url DATABASES = {'default': dj_database_url.config( default='postgres://postgres:postgres@db:5432/postgres')} except ImportError: pass EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend' # Disab...
from .base import * # noqa DEBUG = True ALLOWED_HOSTS = ['*'] try: import dj_database_url DATABASES = {'default': dj_database_url.config( default='postgres://postgres:postgres@db:5432/postgres')} except ImportError: pass EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend' # Disab...
<commit_before>from .base import * # noqa DEBUG = True ALLOWED_HOSTS = ['*'] try: import dj_database_url DATABASES = {'default': dj_database_url.config( default='postgres://postgres:postgres@db:5432/postgres')} except ImportError: pass EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBac...
from .base import * # noqa DEBUG = True ALLOWED_HOSTS = ['*'] try: import dj_database_url DATABASES = {'default': dj_database_url.config( default='postgres://postgres:postgres@db:5432/postgres')} except ImportError: pass EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend' # Disab...
from .base import * # noqa DEBUG = True ALLOWED_HOSTS = ['*'] try: import dj_database_url DATABASES = {'default': dj_database_url.config( default='postgres://postgres:postgres@db:5432/postgres')} except ImportError: pass EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend' # Disab...
<commit_before>from .base import * # noqa DEBUG = True ALLOWED_HOSTS = ['*'] try: import dj_database_url DATABASES = {'default': dj_database_url.config( default='postgres://postgres:postgres@db:5432/postgres')} except ImportError: pass EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBac...
db987f6f54dd04dd292237ff534e035605427239
extract/extract-meeting-log/src/eml.py
extract/extract-meeting-log/src/eml.py
#!/usr/bin/python import argparse import datetime import string ############ ### MAIN ### ############ parser = argparse.ArgumentParser(formatter_class = argparse.RawTextHelpFormatter) parser.add_argument( '--date', help = "Date in the format <y>-<m>-<d> for which to produce log. For example, 2014-09-09. I...
#!/usr/bin/python import argparse import datetime import string ############ ### MAIN ### ############ parser = argparse.ArgumentParser(formatter_class = argparse.RawTextHelpFormatter) parser.add_argument( '--date', help = "Date in the format <y>-<m>-<d> for which to produce log. For example, 2014-09-09. I...
Print out number of lines found for chatlog
Print out number of lines found for chatlog
Python
apache-2.0
justincc/viewer-tools
#!/usr/bin/python import argparse import datetime import string ############ ### MAIN ### ############ parser = argparse.ArgumentParser(formatter_class = argparse.RawTextHelpFormatter) parser.add_argument( '--date', help = "Date in the format <y>-<m>-<d> for which to produce log. For example, 2014-09-09. I...
#!/usr/bin/python import argparse import datetime import string ############ ### MAIN ### ############ parser = argparse.ArgumentParser(formatter_class = argparse.RawTextHelpFormatter) parser.add_argument( '--date', help = "Date in the format <y>-<m>-<d> for which to produce log. For example, 2014-09-09. I...
<commit_before>#!/usr/bin/python import argparse import datetime import string ############ ### MAIN ### ############ parser = argparse.ArgumentParser(formatter_class = argparse.RawTextHelpFormatter) parser.add_argument( '--date', help = "Date in the format <y>-<m>-<d> for which to produce log. For example,...
#!/usr/bin/python import argparse import datetime import string ############ ### MAIN ### ############ parser = argparse.ArgumentParser(formatter_class = argparse.RawTextHelpFormatter) parser.add_argument( '--date', help = "Date in the format <y>-<m>-<d> for which to produce log. For example, 2014-09-09. I...
#!/usr/bin/python import argparse import datetime import string ############ ### MAIN ### ############ parser = argparse.ArgumentParser(formatter_class = argparse.RawTextHelpFormatter) parser.add_argument( '--date', help = "Date in the format <y>-<m>-<d> for which to produce log. For example, 2014-09-09. I...
<commit_before>#!/usr/bin/python import argparse import datetime import string ############ ### MAIN ### ############ parser = argparse.ArgumentParser(formatter_class = argparse.RawTextHelpFormatter) parser.add_argument( '--date', help = "Date in the format <y>-<m>-<d> for which to produce log. For example,...
c8a99d234e807a9fc17d461aad974a640d93cd69
dthm4kaiako/config/__init__.py
dthm4kaiako/config/__init__.py
"""Configuration for Django system.""" __version__ = "0.16.5" __version_info__ = tuple( [ int(num) if num.isdigit() else num for num in __version__.replace("-", ".", 1).split(".") ] )
"""Configuration for Django system.""" __version__ = "0.16.6" __version_info__ = tuple( [ int(num) if num.isdigit() else num for num in __version__.replace("-", ".", 1).split(".") ] )
Increment version number to 0.16.6
Increment version number to 0.16.6
Python
mit
uccser/cs4teachers,uccser/cs4teachers,uccser/cs4teachers,uccser/cs4teachers
"""Configuration for Django system.""" __version__ = "0.16.5" __version_info__ = tuple( [ int(num) if num.isdigit() else num for num in __version__.replace("-", ".", 1).split(".") ] ) Increment version number to 0.16.6
"""Configuration for Django system.""" __version__ = "0.16.6" __version_info__ = tuple( [ int(num) if num.isdigit() else num for num in __version__.replace("-", ".", 1).split(".") ] )
<commit_before>"""Configuration for Django system.""" __version__ = "0.16.5" __version_info__ = tuple( [ int(num) if num.isdigit() else num for num in __version__.replace("-", ".", 1).split(".") ] ) <commit_msg>Increment version number to 0.16.6<commit_after>
"""Configuration for Django system.""" __version__ = "0.16.6" __version_info__ = tuple( [ int(num) if num.isdigit() else num for num in __version__.replace("-", ".", 1).split(".") ] )
"""Configuration for Django system.""" __version__ = "0.16.5" __version_info__ = tuple( [ int(num) if num.isdigit() else num for num in __version__.replace("-", ".", 1).split(".") ] ) Increment version number to 0.16.6"""Configuration for Django system.""" __version__ = "0.16.6" __version_info...
<commit_before>"""Configuration for Django system.""" __version__ = "0.16.5" __version_info__ = tuple( [ int(num) if num.isdigit() else num for num in __version__.replace("-", ".", 1).split(".") ] ) <commit_msg>Increment version number to 0.16.6<commit_after>"""Configuration for Django system."...
37903904cd0b1a8c4a04811b4a10a16606f9d7b0
doc/jsdoc_conf.py
doc/jsdoc_conf.py
# -*- coding: utf-8 -*- # from __future__ import unicode_literals from common_conf import * SITEURL = ".." TEMPLATE = "doc/theme/templates/jsdoc.html" TITLE = "NuvolaKit 3.0 JavaScript API Reference"
# -*- coding: utf-8 -*- # from __future__ import unicode_literals from common_conf import * SITEURL = ".." TEMPLATE = "doc/theme/templates/jsdoc.html" TITLE = "NuvolaKit 3.0 JavaScript API Reference" INTERLINKS = { "doc": "../", "tiliado": TILIADOWEB, }
Add interlinks urls for doc and tiliado
Add interlinks urls for doc and tiliado Signed-off-by: Jiří Janoušek <2a48236b6dcae98c8c0e90f4673742773ee17d91@gmail.com>
Python
bsd-2-clause
tiliado/nuvolaruntime,tiliado/nuvolaruntime,tiliado/nuvolaruntime,tiliado/nuvolaruntime
# -*- coding: utf-8 -*- # from __future__ import unicode_literals from common_conf import * SITEURL = ".." TEMPLATE = "doc/theme/templates/jsdoc.html" TITLE = "NuvolaKit 3.0 JavaScript API Reference" Add interlinks urls for doc and tiliado Signed-off-by: Jiří Janoušek <2a48236b6dcae98c8c0e90f4673742773ee17d91@gmail.c...
# -*- coding: utf-8 -*- # from __future__ import unicode_literals from common_conf import * SITEURL = ".." TEMPLATE = "doc/theme/templates/jsdoc.html" TITLE = "NuvolaKit 3.0 JavaScript API Reference" INTERLINKS = { "doc": "../", "tiliado": TILIADOWEB, }
<commit_before># -*- coding: utf-8 -*- # from __future__ import unicode_literals from common_conf import * SITEURL = ".." TEMPLATE = "doc/theme/templates/jsdoc.html" TITLE = "NuvolaKit 3.0 JavaScript API Reference" <commit_msg>Add interlinks urls for doc and tiliado Signed-off-by: Jiří Janoušek <2a48236b6dcae98c8c0e9...
# -*- coding: utf-8 -*- # from __future__ import unicode_literals from common_conf import * SITEURL = ".." TEMPLATE = "doc/theme/templates/jsdoc.html" TITLE = "NuvolaKit 3.0 JavaScript API Reference" INTERLINKS = { "doc": "../", "tiliado": TILIADOWEB, }
# -*- coding: utf-8 -*- # from __future__ import unicode_literals from common_conf import * SITEURL = ".." TEMPLATE = "doc/theme/templates/jsdoc.html" TITLE = "NuvolaKit 3.0 JavaScript API Reference" Add interlinks urls for doc and tiliado Signed-off-by: Jiří Janoušek <2a48236b6dcae98c8c0e90f4673742773ee17d91@gmail.c...
<commit_before># -*- coding: utf-8 -*- # from __future__ import unicode_literals from common_conf import * SITEURL = ".." TEMPLATE = "doc/theme/templates/jsdoc.html" TITLE = "NuvolaKit 3.0 JavaScript API Reference" <commit_msg>Add interlinks urls for doc and tiliado Signed-off-by: Jiří Janoušek <2a48236b6dcae98c8c0e9...
d69ced31c6dd174b1149f97a08de0ec5e8805d13
env_modifiers.py
env_modifiers.py
def make_rendered(env, *render_args, **render_kwargs): base_step = env._step def _step(action): env.render(*render_args, **render_kwargs) return base_step(action) env._step = _step def make_timestep_limited(env, timestep_limit): t = 1 old__step = env._step old__reset = env._r...
def make_rendered(env, *render_args, **render_kwargs): base_step = env._step def _step(action): ret = base_step(action) env.render(*render_args, **render_kwargs) return ret env._step = _step def make_timestep_limited(env, timestep_limit): t = 1 old__step = env._step o...
Call _render before _step to support BipedalWalker
Call _render before _step to support BipedalWalker
Python
mit
toslunar/chainerrl,toslunar/chainerrl
def make_rendered(env, *render_args, **render_kwargs): base_step = env._step def _step(action): env.render(*render_args, **render_kwargs) return base_step(action) env._step = _step def make_timestep_limited(env, timestep_limit): t = 1 old__step = env._step old__reset = env._r...
def make_rendered(env, *render_args, **render_kwargs): base_step = env._step def _step(action): ret = base_step(action) env.render(*render_args, **render_kwargs) return ret env._step = _step def make_timestep_limited(env, timestep_limit): t = 1 old__step = env._step o...
<commit_before>def make_rendered(env, *render_args, **render_kwargs): base_step = env._step def _step(action): env.render(*render_args, **render_kwargs) return base_step(action) env._step = _step def make_timestep_limited(env, timestep_limit): t = 1 old__step = env._step old_...
def make_rendered(env, *render_args, **render_kwargs): base_step = env._step def _step(action): ret = base_step(action) env.render(*render_args, **render_kwargs) return ret env._step = _step def make_timestep_limited(env, timestep_limit): t = 1 old__step = env._step o...
def make_rendered(env, *render_args, **render_kwargs): base_step = env._step def _step(action): env.render(*render_args, **render_kwargs) return base_step(action) env._step = _step def make_timestep_limited(env, timestep_limit): t = 1 old__step = env._step old__reset = env._r...
<commit_before>def make_rendered(env, *render_args, **render_kwargs): base_step = env._step def _step(action): env.render(*render_args, **render_kwargs) return base_step(action) env._step = _step def make_timestep_limited(env, timestep_limit): t = 1 old__step = env._step old_...
5c875fba0ba31cecf8649c8dc8bfd1f4cdd27a1f
appengine_django/db/creation.py
appengine_django/db/creation.py
#!/usr/bin/python2.4 # # Copyright 2008 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or...
#!/usr/bin/python2.4 # # Copyright 2008 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or...
Update SUPPORTS_TRANSACTIONS attribute to what is expected by Django 1.2.
Update SUPPORTS_TRANSACTIONS attribute to what is expected by Django 1.2. Patch contributed by Felix Leong. Thanks. Fixes Issue #162.
Python
apache-2.0
google-code-export/google-app-engine-django,termie/google-app-engine-django,dila93/google-app-engine-django
#!/usr/bin/python2.4 # # Copyright 2008 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or...
#!/usr/bin/python2.4 # # Copyright 2008 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or...
<commit_before>#!/usr/bin/python2.4 # # Copyright 2008 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by ap...
#!/usr/bin/python2.4 # # Copyright 2008 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or...
#!/usr/bin/python2.4 # # Copyright 2008 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or...
<commit_before>#!/usr/bin/python2.4 # # Copyright 2008 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by ap...
8df05e4f641a0072d60afa161ceff68fffc5e744
wger/exercises/migrations/0018_delete_pending_exercises.py
wger/exercises/migrations/0018_delete_pending_exercises.py
# Generated by Django 3.2.15 on 2022-08-25 17:25 from django.db import migrations from django.conf import settings def delete_pending_exercises(apps, schema_editor): """ Delete all pending exercises Note that we can't access STATUS_PENDING here because we are not using a real model. """ Exer...
# Generated by Django 3.2.15 on 2022-08-25 17:25 from django.db import migrations from django.conf import settings def delete_pending_exercises(apps, schema_editor): """ Delete all pending exercises Note that we can't access STATUS_PENDING here because we are not using a real model. """ Exer...
Delete the exercise bases, not the translations
Delete the exercise bases, not the translations
Python
agpl-3.0
wger-project/wger,wger-project/wger,wger-project/wger,wger-project/wger
# Generated by Django 3.2.15 on 2022-08-25 17:25 from django.db import migrations from django.conf import settings def delete_pending_exercises(apps, schema_editor): """ Delete all pending exercises Note that we can't access STATUS_PENDING here because we are not using a real model. """ Exer...
# Generated by Django 3.2.15 on 2022-08-25 17:25 from django.db import migrations from django.conf import settings def delete_pending_exercises(apps, schema_editor): """ Delete all pending exercises Note that we can't access STATUS_PENDING here because we are not using a real model. """ Exer...
<commit_before># Generated by Django 3.2.15 on 2022-08-25 17:25 from django.db import migrations from django.conf import settings def delete_pending_exercises(apps, schema_editor): """ Delete all pending exercises Note that we can't access STATUS_PENDING here because we are not using a real model. ...
# Generated by Django 3.2.15 on 2022-08-25 17:25 from django.db import migrations from django.conf import settings def delete_pending_exercises(apps, schema_editor): """ Delete all pending exercises Note that we can't access STATUS_PENDING here because we are not using a real model. """ Exer...
# Generated by Django 3.2.15 on 2022-08-25 17:25 from django.db import migrations from django.conf import settings def delete_pending_exercises(apps, schema_editor): """ Delete all pending exercises Note that we can't access STATUS_PENDING here because we are not using a real model. """ Exer...
<commit_before># Generated by Django 3.2.15 on 2022-08-25 17:25 from django.db import migrations from django.conf import settings def delete_pending_exercises(apps, schema_editor): """ Delete all pending exercises Note that we can't access STATUS_PENDING here because we are not using a real model. ...
4c33e921d8ad6d1a69b0d198e8ea71b64339973a
us_ignite/common/tests/context_processors_tests.py
us_ignite/common/tests/context_processors_tests.py
from nose.tools import eq_ from django.test import TestCase from us_ignite.common.tests import utils from us_ignite.common import context_processors class TestSettingsAvailableContextProcessor(TestCase): def test_settings_are_available(self): request = utils.get_request('get', '/') context = co...
from nose.tools import eq_ from django.test import TestCase from us_ignite.common.tests import utils from us_ignite.common import context_processors class TestSettingsAvailableContextProcessor(TestCase): def test_settings_are_available(self): request = utils.get_request('get', '/') context = co...
Update common context processors tests.
Update common context processors tests.
Python
bsd-3-clause
us-ignite/us_ignite,us-ignite/us_ignite,us-ignite/us_ignite,us-ignite/us_ignite,us-ignite/us_ignite
from nose.tools import eq_ from django.test import TestCase from us_ignite.common.tests import utils from us_ignite.common import context_processors class TestSettingsAvailableContextProcessor(TestCase): def test_settings_are_available(self): request = utils.get_request('get', '/') context = co...
from nose.tools import eq_ from django.test import TestCase from us_ignite.common.tests import utils from us_ignite.common import context_processors class TestSettingsAvailableContextProcessor(TestCase): def test_settings_are_available(self): request = utils.get_request('get', '/') context = co...
<commit_before>from nose.tools import eq_ from django.test import TestCase from us_ignite.common.tests import utils from us_ignite.common import context_processors class TestSettingsAvailableContextProcessor(TestCase): def test_settings_are_available(self): request = utils.get_request('get', '/') ...
from nose.tools import eq_ from django.test import TestCase from us_ignite.common.tests import utils from us_ignite.common import context_processors class TestSettingsAvailableContextProcessor(TestCase): def test_settings_are_available(self): request = utils.get_request('get', '/') context = co...
from nose.tools import eq_ from django.test import TestCase from us_ignite.common.tests import utils from us_ignite.common import context_processors class TestSettingsAvailableContextProcessor(TestCase): def test_settings_are_available(self): request = utils.get_request('get', '/') context = co...
<commit_before>from nose.tools import eq_ from django.test import TestCase from us_ignite.common.tests import utils from us_ignite.common import context_processors class TestSettingsAvailableContextProcessor(TestCase): def test_settings_are_available(self): request = utils.get_request('get', '/') ...
aaaaad4ea3109406268471b6605eb6078848db0d
falcom/api/uri/fake_mapping.py
falcom/api/uri/fake_mapping.py
# Copyright (c) 2017 The Regents of the University of Michigan. # All Rights Reserved. Licensed according to the terms of the Revised # BSD License. See LICENSE.txt for details. class FakeMappingThatRecordsAccessions: def __init__ (self): self.__set = set() def __getitem__ (self, key): self._...
# Copyright (c) 2017 The Regents of the University of Michigan. # All Rights Reserved. Licensed according to the terms of the Revised # BSD License. See LICENSE.txt for details. class FakeMappingThatRecordsAccessions: def __init__ (self): self.__set = set() def __getitem__ (self, key): self._...
Write function for getting expected args
Write function for getting expected args
Python
bsd-3-clause
mlibrary/image-conversion-and-validation,mlibrary/image-conversion-and-validation
# Copyright (c) 2017 The Regents of the University of Michigan. # All Rights Reserved. Licensed according to the terms of the Revised # BSD License. See LICENSE.txt for details. class FakeMappingThatRecordsAccessions: def __init__ (self): self.__set = set() def __getitem__ (self, key): self._...
# Copyright (c) 2017 The Regents of the University of Michigan. # All Rights Reserved. Licensed according to the terms of the Revised # BSD License. See LICENSE.txt for details. class FakeMappingThatRecordsAccessions: def __init__ (self): self.__set = set() def __getitem__ (self, key): self._...
<commit_before># Copyright (c) 2017 The Regents of the University of Michigan. # All Rights Reserved. Licensed according to the terms of the Revised # BSD License. See LICENSE.txt for details. class FakeMappingThatRecordsAccessions: def __init__ (self): self.__set = set() def __getitem__ (self, key):...
# Copyright (c) 2017 The Regents of the University of Michigan. # All Rights Reserved. Licensed according to the terms of the Revised # BSD License. See LICENSE.txt for details. class FakeMappingThatRecordsAccessions: def __init__ (self): self.__set = set() def __getitem__ (self, key): self._...
# Copyright (c) 2017 The Regents of the University of Michigan. # All Rights Reserved. Licensed according to the terms of the Revised # BSD License. See LICENSE.txt for details. class FakeMappingThatRecordsAccessions: def __init__ (self): self.__set = set() def __getitem__ (self, key): self._...
<commit_before># Copyright (c) 2017 The Regents of the University of Michigan. # All Rights Reserved. Licensed according to the terms of the Revised # BSD License. See LICENSE.txt for details. class FakeMappingThatRecordsAccessions: def __init__ (self): self.__set = set() def __getitem__ (self, key):...
1aaced816ea206a85c0a3cf99915f09af2517e14
parliament/core/search_indexes.py
parliament/core/search_indexes.py
from haystack import site from haystack import indexes from parliament.core.models import Politician from parliament.search.utils import SearchIndex class PolIndex(SearchIndex): text = indexes.CharField(document=True, use_template=True) boosted = indexes.CharField(use_template=True, stored=False) politici...
from haystack import site from haystack import indexes from parliament.core.models import Politician from parliament.search.utils import SearchIndex class PolIndex(SearchIndex): text = indexes.CharField(document=True, use_template=True) boosted = indexes.CharField(use_template=True, stored=False) politici...
Add party/province to politician search index
Add party/province to politician search index
Python
agpl-3.0
litui/openparliament,rhymeswithcycle/openparliament,twhyte/openparliament,rhymeswithcycle/openparliament,litui/openparliament,twhyte/openparliament,litui/openparliament,twhyte/openparliament,rhymeswithcycle/openparliament
from haystack import site from haystack import indexes from parliament.core.models import Politician from parliament.search.utils import SearchIndex class PolIndex(SearchIndex): text = indexes.CharField(document=True, use_template=True) boosted = indexes.CharField(use_template=True, stored=False) politici...
from haystack import site from haystack import indexes from parliament.core.models import Politician from parliament.search.utils import SearchIndex class PolIndex(SearchIndex): text = indexes.CharField(document=True, use_template=True) boosted = indexes.CharField(use_template=True, stored=False) politici...
<commit_before>from haystack import site from haystack import indexes from parliament.core.models import Politician from parliament.search.utils import SearchIndex class PolIndex(SearchIndex): text = indexes.CharField(document=True, use_template=True) boosted = indexes.CharField(use_template=True, stored=Fals...
from haystack import site from haystack import indexes from parliament.core.models import Politician from parliament.search.utils import SearchIndex class PolIndex(SearchIndex): text = indexes.CharField(document=True, use_template=True) boosted = indexes.CharField(use_template=True, stored=False) politici...
from haystack import site from haystack import indexes from parliament.core.models import Politician from parliament.search.utils import SearchIndex class PolIndex(SearchIndex): text = indexes.CharField(document=True, use_template=True) boosted = indexes.CharField(use_template=True, stored=False) politici...
<commit_before>from haystack import site from haystack import indexes from parliament.core.models import Politician from parliament.search.utils import SearchIndex class PolIndex(SearchIndex): text = indexes.CharField(document=True, use_template=True) boosted = indexes.CharField(use_template=True, stored=Fals...
a96ed884d9192e758d24785a60071176edfb8fd5
cpnest/logger.py
cpnest/logger.py
import logging def start_logger(output=None, verbose=0): """ Start an instance of Logger for logging output : `str` output directory (./) verbose: `int` Verbosity, 0=CRITICAL, 1=WARNING, 2=INFO, 3=DEBUG fmt: `str` format for logger (None) See logging documentation for det...
import logging def start_logger(output=None, verbose=0): """ Start an instance of Logger for logging output : `str` output directory (./) verbose: `int` Verbosity, 0=CRITICAL, 1=WARNING, 2=INFO, 3=DEBUG fmt: `str` format for logger (None) See logging documentation for det...
Fix format of log file
Fix format of log file
Python
mit
johnveitch/cpnest
import logging def start_logger(output=None, verbose=0): """ Start an instance of Logger for logging output : `str` output directory (./) verbose: `int` Verbosity, 0=CRITICAL, 1=WARNING, 2=INFO, 3=DEBUG fmt: `str` format for logger (None) See logging documentation for det...
import logging def start_logger(output=None, verbose=0): """ Start an instance of Logger for logging output : `str` output directory (./) verbose: `int` Verbosity, 0=CRITICAL, 1=WARNING, 2=INFO, 3=DEBUG fmt: `str` format for logger (None) See logging documentation for det...
<commit_before>import logging def start_logger(output=None, verbose=0): """ Start an instance of Logger for logging output : `str` output directory (./) verbose: `int` Verbosity, 0=CRITICAL, 1=WARNING, 2=INFO, 3=DEBUG fmt: `str` format for logger (None) See logging docume...
import logging def start_logger(output=None, verbose=0): """ Start an instance of Logger for logging output : `str` output directory (./) verbose: `int` Verbosity, 0=CRITICAL, 1=WARNING, 2=INFO, 3=DEBUG fmt: `str` format for logger (None) See logging documentation for det...
import logging def start_logger(output=None, verbose=0): """ Start an instance of Logger for logging output : `str` output directory (./) verbose: `int` Verbosity, 0=CRITICAL, 1=WARNING, 2=INFO, 3=DEBUG fmt: `str` format for logger (None) See logging documentation for det...
<commit_before>import logging def start_logger(output=None, verbose=0): """ Start an instance of Logger for logging output : `str` output directory (./) verbose: `int` Verbosity, 0=CRITICAL, 1=WARNING, 2=INFO, 3=DEBUG fmt: `str` format for logger (None) See logging docume...
7b5ffcef89fe12576885bf4d29651829a5ed6249
gala/__init__.py
gala/__init__.py
""" Gala === Gala is a Python package for nD image segmentation. """ __author__ = 'Juan Nunez-Iglesias <juan.n@unimelb.edu.au>, '+\ 'Ryan Kennedy <kenry@cis.upenn.edu>' del sys, logging __all__ = ['agglo', 'morpho', 'evaluate', 'viz', 'imio', 'classify', 'stack_np', 'app_logger', 'option_manage...
""" Gala === Gala is a Python package for nD image segmentation. """ __author__ = 'Juan Nunez-Iglesias <juan.n@unimelb.edu.au>, '+\ 'Ryan Kennedy <kenry@cis.upenn.edu>' __all__ = ['agglo', 'morpho', 'evaluate', 'viz', 'imio', 'classify', 'stack_np', 'app_logger', 'option_manager', 'features', '...
Remove no longer valid del sys statement
Remove no longer valid del sys statement
Python
bsd-3-clause
jni/gala,janelia-flyem/gala
""" Gala === Gala is a Python package for nD image segmentation. """ __author__ = 'Juan Nunez-Iglesias <juan.n@unimelb.edu.au>, '+\ 'Ryan Kennedy <kenry@cis.upenn.edu>' del sys, logging __all__ = ['agglo', 'morpho', 'evaluate', 'viz', 'imio', 'classify', 'stack_np', 'app_logger', 'option_manage...
""" Gala === Gala is a Python package for nD image segmentation. """ __author__ = 'Juan Nunez-Iglesias <juan.n@unimelb.edu.au>, '+\ 'Ryan Kennedy <kenry@cis.upenn.edu>' __all__ = ['agglo', 'morpho', 'evaluate', 'viz', 'imio', 'classify', 'stack_np', 'app_logger', 'option_manager', 'features', '...
<commit_before>""" Gala === Gala is a Python package for nD image segmentation. """ __author__ = 'Juan Nunez-Iglesias <juan.n@unimelb.edu.au>, '+\ 'Ryan Kennedy <kenry@cis.upenn.edu>' del sys, logging __all__ = ['agglo', 'morpho', 'evaluate', 'viz', 'imio', 'classify', 'stack_np', 'app_logger',...
""" Gala === Gala is a Python package for nD image segmentation. """ __author__ = 'Juan Nunez-Iglesias <juan.n@unimelb.edu.au>, '+\ 'Ryan Kennedy <kenry@cis.upenn.edu>' __all__ = ['agglo', 'morpho', 'evaluate', 'viz', 'imio', 'classify', 'stack_np', 'app_logger', 'option_manager', 'features', '...
""" Gala === Gala is a Python package for nD image segmentation. """ __author__ = 'Juan Nunez-Iglesias <juan.n@unimelb.edu.au>, '+\ 'Ryan Kennedy <kenry@cis.upenn.edu>' del sys, logging __all__ = ['agglo', 'morpho', 'evaluate', 'viz', 'imio', 'classify', 'stack_np', 'app_logger', 'option_manage...
<commit_before>""" Gala === Gala is a Python package for nD image segmentation. """ __author__ = 'Juan Nunez-Iglesias <juan.n@unimelb.edu.au>, '+\ 'Ryan Kennedy <kenry@cis.upenn.edu>' del sys, logging __all__ = ['agglo', 'morpho', 'evaluate', 'viz', 'imio', 'classify', 'stack_np', 'app_logger',...
294b305aa7e0c78c72d4eac87ded476425873b62
src/inbox/server/basicauth.py
src/inbox/server/basicauth.py
# TODO perhaps move this to normal auth module... import getpass AUTH_TYPES = {'Gmail': 'OAuth', 'Yahoo': 'Password', 'EAS': 'Password'} class AuthError(Exception): pass def password_auth(email_address): pw = getpass.getpass('Password for %s (hidden): ' % email_address) if len(pw) <= 0: raise ...
# TODO perhaps move this to normal auth module... import getpass AUTH_TYPES = {'Gmail': 'OAuth', 'Yahoo': 'Password', 'EAS': 'Password'} message = 'Password for {0}(hidden): ' class AuthError(Exception): pass def password_auth(email_address, message=message): pw = getpass.getpass(message.format(email_addre...
Change for EAS invalid pw case, to allow user to re-enter pw once before raising error.
Change for EAS invalid pw case, to allow user to re-enter pw once before raising error. Summary: One line change in password_auth to allow password re-rentry. See D106 too Test Plan: None Reviewers: mg Differential Revision: https://review.inboxapp.com/D107
Python
agpl-3.0
ErinCall/sync-engine,ErinCall/sync-engine,ErinCall/sync-engine,wakermahmud/sync-engine,Eagles2F/sync-engine,wakermahmud/sync-engine,EthanBlackburn/sync-engine,PriviPK/privipk-sync-engine,rmasters/inbox,closeio/nylas,EthanBlackburn/sync-engine,Eagles2F/sync-engine,jobscore/sync-engine,Eagles2F/sync-engine,jobscore/sync-...
# TODO perhaps move this to normal auth module... import getpass AUTH_TYPES = {'Gmail': 'OAuth', 'Yahoo': 'Password', 'EAS': 'Password'} class AuthError(Exception): pass def password_auth(email_address): pw = getpass.getpass('Password for %s (hidden): ' % email_address) if len(pw) <= 0: raise ...
# TODO perhaps move this to normal auth module... import getpass AUTH_TYPES = {'Gmail': 'OAuth', 'Yahoo': 'Password', 'EAS': 'Password'} message = 'Password for {0}(hidden): ' class AuthError(Exception): pass def password_auth(email_address, message=message): pw = getpass.getpass(message.format(email_addre...
<commit_before># TODO perhaps move this to normal auth module... import getpass AUTH_TYPES = {'Gmail': 'OAuth', 'Yahoo': 'Password', 'EAS': 'Password'} class AuthError(Exception): pass def password_auth(email_address): pw = getpass.getpass('Password for %s (hidden): ' % email_address) if len(pw) <= 0:...
# TODO perhaps move this to normal auth module... import getpass AUTH_TYPES = {'Gmail': 'OAuth', 'Yahoo': 'Password', 'EAS': 'Password'} message = 'Password for {0}(hidden): ' class AuthError(Exception): pass def password_auth(email_address, message=message): pw = getpass.getpass(message.format(email_addre...
# TODO perhaps move this to normal auth module... import getpass AUTH_TYPES = {'Gmail': 'OAuth', 'Yahoo': 'Password', 'EAS': 'Password'} class AuthError(Exception): pass def password_auth(email_address): pw = getpass.getpass('Password for %s (hidden): ' % email_address) if len(pw) <= 0: raise ...
<commit_before># TODO perhaps move this to normal auth module... import getpass AUTH_TYPES = {'Gmail': 'OAuth', 'Yahoo': 'Password', 'EAS': 'Password'} class AuthError(Exception): pass def password_auth(email_address): pw = getpass.getpass('Password for %s (hidden): ' % email_address) if len(pw) <= 0:...
4564bb9c2f964d46cefb4bb805ac205b8abc9c03
unittests/ufxtract_setup.py
unittests/ufxtract_setup.py
#!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals from hcalendar import hCalendar import unittest try: import urllib.request as urllib2 except: import urllib2 class...
#!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals from hcalendar import hCalendar import unittest try: import urllib.request as urllib2 except: import urllib2 class...
Change User-agent header during unittests
Change User-agent header during unittests
Python
mit
mback2k/python-hcalendar
#!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals from hcalendar import hCalendar import unittest try: import urllib.request as urllib2 except: import urllib2 class...
#!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals from hcalendar import hCalendar import unittest try: import urllib.request as urllib2 except: import urllib2 class...
<commit_before>#!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals from hcalendar import hCalendar import unittest try: import urllib.request as urllib2 except: import...
#!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals from hcalendar import hCalendar import unittest try: import urllib.request as urllib2 except: import urllib2 class...
#!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals from hcalendar import hCalendar import unittest try: import urllib.request as urllib2 except: import urllib2 class...
<commit_before>#!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals from hcalendar import hCalendar import unittest try: import urllib.request as urllib2 except: import...
451d7d1186fbf7e247707ff8a02efb76d69b110d
sale_payment_method_automatic_workflow/__openerp__.py
sale_payment_method_automatic_workflow/__openerp__.py
# -*- coding: utf-8 -*- ############################################################################## # # Author: Guewen Baconnier # Copyright 2015 Camptocamp SA # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as # pu...
# -*- coding: utf-8 -*- ############################################################################## # # Author: Guewen Baconnier # Copyright 2015 Camptocamp SA # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as # pu...
Correct author list, add OCA
Correct author list, add OCA
Python
agpl-3.0
Eficent/sale-workflow,jabibi/sale-workflow,akretion/sale-workflow,brain-tec/sale-workflow,thomaspaulb/sale-workflow,Endika/sale-workflow,ddico/sale-workflow,akretion/sale-workflow,BT-cserra/sale-workflow,acsone/sale-workflow,Antiun/sale-workflow,factorlibre/sale-workflow,open-synergy/sale-workflow,diagramsoftware/sale-...
# -*- coding: utf-8 -*- ############################################################################## # # Author: Guewen Baconnier # Copyright 2015 Camptocamp SA # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as # pu...
# -*- coding: utf-8 -*- ############################################################################## # # Author: Guewen Baconnier # Copyright 2015 Camptocamp SA # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as # pu...
<commit_before># -*- coding: utf-8 -*- ############################################################################## # # Author: Guewen Baconnier # Copyright 2015 Camptocamp SA # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public Lic...
# -*- coding: utf-8 -*- ############################################################################## # # Author: Guewen Baconnier # Copyright 2015 Camptocamp SA # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as # pu...
# -*- coding: utf-8 -*- ############################################################################## # # Author: Guewen Baconnier # Copyright 2015 Camptocamp SA # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as # pu...
<commit_before># -*- coding: utf-8 -*- ############################################################################## # # Author: Guewen Baconnier # Copyright 2015 Camptocamp SA # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public Lic...
6fe06b2a2b504c28bc35ef2f429d72dc8082efca
cmsplugin_zinnia/placeholder.py
cmsplugin_zinnia/placeholder.py
"""Placeholder model for Zinnia""" import inspect from cms.models.fields import PlaceholderField from cms.plugin_rendering import render_placeholder from zinnia.models.entry import EntryAbstractClass class EntryPlaceholder(EntryAbstractClass): """Entry with a Placeholder to edit content""" content_placehol...
"""Placeholder model for Zinnia""" import inspect from cms.models.fields import PlaceholderField from cms.plugin_rendering import render_placeholder from zinnia.models_bases.entry import AbstractEntry class EntryPlaceholder(AbstractEntry): """Entry with a Placeholder to edit content""" content_placeholder ...
Use AbstractEntry instead of EntryAbstractClass
Use AbstractEntry instead of EntryAbstractClass
Python
bsd-3-clause
bittner/cmsplugin-zinnia,django-blog-zinnia/cmsplugin-zinnia,bittner/cmsplugin-zinnia,django-blog-zinnia/cmsplugin-zinnia,bittner/cmsplugin-zinnia,django-blog-zinnia/cmsplugin-zinnia
"""Placeholder model for Zinnia""" import inspect from cms.models.fields import PlaceholderField from cms.plugin_rendering import render_placeholder from zinnia.models.entry import EntryAbstractClass class EntryPlaceholder(EntryAbstractClass): """Entry with a Placeholder to edit content""" content_placehol...
"""Placeholder model for Zinnia""" import inspect from cms.models.fields import PlaceholderField from cms.plugin_rendering import render_placeholder from zinnia.models_bases.entry import AbstractEntry class EntryPlaceholder(AbstractEntry): """Entry with a Placeholder to edit content""" content_placeholder ...
<commit_before>"""Placeholder model for Zinnia""" import inspect from cms.models.fields import PlaceholderField from cms.plugin_rendering import render_placeholder from zinnia.models.entry import EntryAbstractClass class EntryPlaceholder(EntryAbstractClass): """Entry with a Placeholder to edit content""" c...
"""Placeholder model for Zinnia""" import inspect from cms.models.fields import PlaceholderField from cms.plugin_rendering import render_placeholder from zinnia.models_bases.entry import AbstractEntry class EntryPlaceholder(AbstractEntry): """Entry with a Placeholder to edit content""" content_placeholder ...
"""Placeholder model for Zinnia""" import inspect from cms.models.fields import PlaceholderField from cms.plugin_rendering import render_placeholder from zinnia.models.entry import EntryAbstractClass class EntryPlaceholder(EntryAbstractClass): """Entry with a Placeholder to edit content""" content_placehol...
<commit_before>"""Placeholder model for Zinnia""" import inspect from cms.models.fields import PlaceholderField from cms.plugin_rendering import render_placeholder from zinnia.models.entry import EntryAbstractClass class EntryPlaceholder(EntryAbstractClass): """Entry with a Placeholder to edit content""" c...
cdefa6cb4a91cbbac5d2680fe2e116a2a4ebb86b
recipe_scrapers/allrecipes.py
recipe_scrapers/allrecipes.py
from ._abstract import AbstractScraper class AllRecipes(AbstractScraper): @classmethod def host(cls): return "allrecipes.com" def author(self): # NB: In the schema.org 'Recipe' type, the 'author' property is a # single-value type, not an ItemList. # allrecipes.com seems to...
from ._abstract import AbstractScraper class AllRecipes(AbstractScraper): @classmethod def host(cls): return "allrecipes.com" def author(self): # NB: In the schema.org 'Recipe' type, the 'author' property is a # single-value type, not an ItemList. # allrecipes.com seems to...
Use 'isinstance' in preference to 'type' method
Use 'isinstance' in preference to 'type' method
Python
mit
hhursev/recipe-scraper
from ._abstract import AbstractScraper class AllRecipes(AbstractScraper): @classmethod def host(cls): return "allrecipes.com" def author(self): # NB: In the schema.org 'Recipe' type, the 'author' property is a # single-value type, not an ItemList. # allrecipes.com seems to...
from ._abstract import AbstractScraper class AllRecipes(AbstractScraper): @classmethod def host(cls): return "allrecipes.com" def author(self): # NB: In the schema.org 'Recipe' type, the 'author' property is a # single-value type, not an ItemList. # allrecipes.com seems to...
<commit_before>from ._abstract import AbstractScraper class AllRecipes(AbstractScraper): @classmethod def host(cls): return "allrecipes.com" def author(self): # NB: In the schema.org 'Recipe' type, the 'author' property is a # single-value type, not an ItemList. # allrecip...
from ._abstract import AbstractScraper class AllRecipes(AbstractScraper): @classmethod def host(cls): return "allrecipes.com" def author(self): # NB: In the schema.org 'Recipe' type, the 'author' property is a # single-value type, not an ItemList. # allrecipes.com seems to...
from ._abstract import AbstractScraper class AllRecipes(AbstractScraper): @classmethod def host(cls): return "allrecipes.com" def author(self): # NB: In the schema.org 'Recipe' type, the 'author' property is a # single-value type, not an ItemList. # allrecipes.com seems to...
<commit_before>from ._abstract import AbstractScraper class AllRecipes(AbstractScraper): @classmethod def host(cls): return "allrecipes.com" def author(self): # NB: In the schema.org 'Recipe' type, the 'author' property is a # single-value type, not an ItemList. # allrecip...
12acfff456e1a696d1117b20b8843c6789ee38bb
wake/views.py
wake/views.py
from been.couch import CouchStore from flask import render_template, abort from wake import app store = CouchStore().load() @app.route('/') def wake(): return render_template('stream.html', events=store.collapsed_events()) @app.route('/<slug>') def by_slug(slug): events = list(store.events_by_slug(slug)) ...
from been.couch import CouchStore from flask import render_template, abort, request, url_for from urlparse import urljoin from werkzeug.contrib.atom import AtomFeed from datetime import datetime from wake import app store = CouchStore().load() @app.route('/') def wake(): return render_template('stream.html', even...
Add Atom feed for events that have 'syndicate' set in their source config.
Add Atom feed for events that have 'syndicate' set in their source config.
Python
bsd-3-clause
chromakode/wake
from been.couch import CouchStore from flask import render_template, abort from wake import app store = CouchStore().load() @app.route('/') def wake(): return render_template('stream.html', events=store.collapsed_events()) @app.route('/<slug>') def by_slug(slug): events = list(store.events_by_slug(slug)) ...
from been.couch import CouchStore from flask import render_template, abort, request, url_for from urlparse import urljoin from werkzeug.contrib.atom import AtomFeed from datetime import datetime from wake import app store = CouchStore().load() @app.route('/') def wake(): return render_template('stream.html', even...
<commit_before>from been.couch import CouchStore from flask import render_template, abort from wake import app store = CouchStore().load() @app.route('/') def wake(): return render_template('stream.html', events=store.collapsed_events()) @app.route('/<slug>') def by_slug(slug): events = list(store.events_by_...
from been.couch import CouchStore from flask import render_template, abort, request, url_for from urlparse import urljoin from werkzeug.contrib.atom import AtomFeed from datetime import datetime from wake import app store = CouchStore().load() @app.route('/') def wake(): return render_template('stream.html', even...
from been.couch import CouchStore from flask import render_template, abort from wake import app store = CouchStore().load() @app.route('/') def wake(): return render_template('stream.html', events=store.collapsed_events()) @app.route('/<slug>') def by_slug(slug): events = list(store.events_by_slug(slug)) ...
<commit_before>from been.couch import CouchStore from flask import render_template, abort from wake import app store = CouchStore().load() @app.route('/') def wake(): return render_template('stream.html', events=store.collapsed_events()) @app.route('/<slug>') def by_slug(slug): events = list(store.events_by_...
5216f5c590f4b12d5e7d790a1206783edd5b581d
web/models.py
web/models.py
from django.db import models # Create your models here. class Subscriber(models.Model): email = models.EmailField() valid = models.BooleanField(default=True) class Repo(models.Model): name = models.CharField(max_length=256) owner = models.CharField(max_length=256) class Idea(models.Model): subscr...
from django.db import models # Create your models here. class Subscriber(models.Model): email = models.EmailField() valid = models.BooleanField(default=True) class Repo(models.Model): name = models.CharField(max_length=256) owner = models.CharField(max_length=256) def full_repository_name(self): ...
Add a full_repository_name method on Repo model
Add a full_repository_name method on Repo model
Python
apache-2.0
Jucyio/Jucy,Jucyio/Jucy,Jucyio/Jucy
from django.db import models # Create your models here. class Subscriber(models.Model): email = models.EmailField() valid = models.BooleanField(default=True) class Repo(models.Model): name = models.CharField(max_length=256) owner = models.CharField(max_length=256) class Idea(models.Model): subscr...
from django.db import models # Create your models here. class Subscriber(models.Model): email = models.EmailField() valid = models.BooleanField(default=True) class Repo(models.Model): name = models.CharField(max_length=256) owner = models.CharField(max_length=256) def full_repository_name(self): ...
<commit_before>from django.db import models # Create your models here. class Subscriber(models.Model): email = models.EmailField() valid = models.BooleanField(default=True) class Repo(models.Model): name = models.CharField(max_length=256) owner = models.CharField(max_length=256) class Idea(models.Mod...
from django.db import models # Create your models here. class Subscriber(models.Model): email = models.EmailField() valid = models.BooleanField(default=True) class Repo(models.Model): name = models.CharField(max_length=256) owner = models.CharField(max_length=256) def full_repository_name(self): ...
from django.db import models # Create your models here. class Subscriber(models.Model): email = models.EmailField() valid = models.BooleanField(default=True) class Repo(models.Model): name = models.CharField(max_length=256) owner = models.CharField(max_length=256) class Idea(models.Model): subscr...
<commit_before>from django.db import models # Create your models here. class Subscriber(models.Model): email = models.EmailField() valid = models.BooleanField(default=True) class Repo(models.Model): name = models.CharField(max_length=256) owner = models.CharField(max_length=256) class Idea(models.Mod...
9ad0a652e83659cc442b99d6082d4b07204eca4e
apps/mc/settings.py
apps/mc/settings.py
PROPERTIES = { # common.Property.name_id 'air_temperature': { # dictionary of observation providers of given property # mandatory, at least one provider must be specified 'observation_providers': { # path to Django model # the model must be subclass of common.A...
PROPERTIES = { # common.Property.name_id 'air_temperature': { # dictionary of observation providers of given property # mandatory, at least one provider must be specified 'observation_providers': { # path to Django model # the model must be subclass of common.A...
Move process filter to observation_provider
Move process filter to observation_provider See https://github.com/gis4dis/poster/wiki/Server-configuration/d9e22000c5e923adcb8ec7cee72b62d082799516
Python
bsd-3-clause
gis4dis/poster,gis4dis/poster,gis4dis/poster
PROPERTIES = { # common.Property.name_id 'air_temperature': { # dictionary of observation providers of given property # mandatory, at least one provider must be specified 'observation_providers': { # path to Django model # the model must be subclass of common.A...
PROPERTIES = { # common.Property.name_id 'air_temperature': { # dictionary of observation providers of given property # mandatory, at least one provider must be specified 'observation_providers': { # path to Django model # the model must be subclass of common.A...
<commit_before>PROPERTIES = { # common.Property.name_id 'air_temperature': { # dictionary of observation providers of given property # mandatory, at least one provider must be specified 'observation_providers': { # path to Django model # the model must be subcl...
PROPERTIES = { # common.Property.name_id 'air_temperature': { # dictionary of observation providers of given property # mandatory, at least one provider must be specified 'observation_providers': { # path to Django model # the model must be subclass of common.A...
PROPERTIES = { # common.Property.name_id 'air_temperature': { # dictionary of observation providers of given property # mandatory, at least one provider must be specified 'observation_providers': { # path to Django model # the model must be subclass of common.A...
<commit_before>PROPERTIES = { # common.Property.name_id 'air_temperature': { # dictionary of observation providers of given property # mandatory, at least one provider must be specified 'observation_providers': { # path to Django model # the model must be subcl...
8a28ae1c319f80e56146f1a5029222cb144d4650
mempoke.py
mempoke.py
import gdb import struct class DeviceMemory: def __init__(self): self.inferior = gdb.selected_inferior() def __del__(self): del self.inferior def read(self, address): return struct.unpack('I', self.inferior.read_memory(address, 4))[0] def write(self, address, value): ...
import gdb import struct class DeviceMemory: def __init__(self): self.inferior = gdb.selected_inferior() def __del__(self): del self.inferior def read(self, address): return struct.unpack('I', self.inferior.read_memory(address, 4))[0] def write(self, address, value): ...
Add mechanism for defining registers in memory mapped peripherals of MCU
Add mechanism for defining registers in memory mapped peripherals of MCU
Python
mit
fmfi-svt-deadlock/hw-testing,fmfi-svt-deadlock/hw-testing
import gdb import struct class DeviceMemory: def __init__(self): self.inferior = gdb.selected_inferior() def __del__(self): del self.inferior def read(self, address): return struct.unpack('I', self.inferior.read_memory(address, 4))[0] def write(self, address, value): ...
import gdb import struct class DeviceMemory: def __init__(self): self.inferior = gdb.selected_inferior() def __del__(self): del self.inferior def read(self, address): return struct.unpack('I', self.inferior.read_memory(address, 4))[0] def write(self, address, value): ...
<commit_before>import gdb import struct class DeviceMemory: def __init__(self): self.inferior = gdb.selected_inferior() def __del__(self): del self.inferior def read(self, address): return struct.unpack('I', self.inferior.read_memory(address, 4))[0] def write(self, address, ...
import gdb import struct class DeviceMemory: def __init__(self): self.inferior = gdb.selected_inferior() def __del__(self): del self.inferior def read(self, address): return struct.unpack('I', self.inferior.read_memory(address, 4))[0] def write(self, address, value): ...
import gdb import struct class DeviceMemory: def __init__(self): self.inferior = gdb.selected_inferior() def __del__(self): del self.inferior def read(self, address): return struct.unpack('I', self.inferior.read_memory(address, 4))[0] def write(self, address, value): ...
<commit_before>import gdb import struct class DeviceMemory: def __init__(self): self.inferior = gdb.selected_inferior() def __del__(self): del self.inferior def read(self, address): return struct.unpack('I', self.inferior.read_memory(address, 4))[0] def write(self, address, ...
5d4bcaaef6b2d571ff6929beaffcbe2f320d74ad
migrate.py
migrate.py
from api import db, migration import os migration.create_schema_version() migrations = migration.get_filenames("migrations") versions = [f.split('__')[0] for f in migrations] applied = migration.get_schema_version() print migrations print applied if migration.verify_applied_migrations(versions, applie...
from api import db, migration from os import getcwd from os.path import join migration.create_schema_version() migrations = migration.get_filenames(join(getcwd(), 'migrations')) versions = [f.split('__')[0] for f in migrations] applied = migration.get_schema_version() print migrations print applied ...
Refactor relative path to absolute for more reliability
Refactor relative path to absolute for more reliability
Python
mit
diogolundberg/db-migration
from api import db, migration import os migration.create_schema_version() migrations = migration.get_filenames("migrations") versions = [f.split('__')[0] for f in migrations] applied = migration.get_schema_version() print migrations print applied if migration.verify_applied_migrations(versions, applie...
from api import db, migration from os import getcwd from os.path import join migration.create_schema_version() migrations = migration.get_filenames(join(getcwd(), 'migrations')) versions = [f.split('__')[0] for f in migrations] applied = migration.get_schema_version() print migrations print applied ...
<commit_before>from api import db, migration import os migration.create_schema_version() migrations = migration.get_filenames("migrations") versions = [f.split('__')[0] for f in migrations] applied = migration.get_schema_version() print migrations print applied if migration.verify_applied_migrations(v...
from api import db, migration from os import getcwd from os.path import join migration.create_schema_version() migrations = migration.get_filenames(join(getcwd(), 'migrations')) versions = [f.split('__')[0] for f in migrations] applied = migration.get_schema_version() print migrations print applied ...
from api import db, migration import os migration.create_schema_version() migrations = migration.get_filenames("migrations") versions = [f.split('__')[0] for f in migrations] applied = migration.get_schema_version() print migrations print applied if migration.verify_applied_migrations(versions, applie...
<commit_before>from api import db, migration import os migration.create_schema_version() migrations = migration.get_filenames("migrations") versions = [f.split('__')[0] for f in migrations] applied = migration.get_schema_version() print migrations print applied if migration.verify_applied_migrations(v...
f6d9f03f487afb9d413120b6af603fd184925fac
src/oscar/templatetags/currency_filters.py
src/oscar/templatetags/currency_filters.py
from decimal import Decimal as D from decimal import InvalidOperation from babel.numbers import format_currency from django import template from django.conf import settings from django.utils.translation import get_language, to_locale register = template.Library() @register.filter(name='currency') def currency(value...
from decimal import Decimal as D from decimal import InvalidOperation from babel.numbers import format_currency from django import template from django.conf import settings from django.utils.translation import get_language, to_locale register = template.Library() @register.filter(name='currency') def currency(value...
Update reference to babel documentation
Update reference to babel documentation Babel changed it's link to their documents.
Python
bsd-3-clause
john-parton/django-oscar,okfish/django-oscar,django-oscar/django-oscar,anentropic/django-oscar,sonofatailor/django-oscar,django-oscar/django-oscar,michaelkuty/django-oscar,sasha0/django-oscar,solarissmoke/django-oscar,django-oscar/django-oscar,john-parton/django-oscar,solarissmoke/django-oscar,okfish/django-oscar,sasha...
from decimal import Decimal as D from decimal import InvalidOperation from babel.numbers import format_currency from django import template from django.conf import settings from django.utils.translation import get_language, to_locale register = template.Library() @register.filter(name='currency') def currency(value...
from decimal import Decimal as D from decimal import InvalidOperation from babel.numbers import format_currency from django import template from django.conf import settings from django.utils.translation import get_language, to_locale register = template.Library() @register.filter(name='currency') def currency(value...
<commit_before>from decimal import Decimal as D from decimal import InvalidOperation from babel.numbers import format_currency from django import template from django.conf import settings from django.utils.translation import get_language, to_locale register = template.Library() @register.filter(name='currency') def...
from decimal import Decimal as D from decimal import InvalidOperation from babel.numbers import format_currency from django import template from django.conf import settings from django.utils.translation import get_language, to_locale register = template.Library() @register.filter(name='currency') def currency(value...
from decimal import Decimal as D from decimal import InvalidOperation from babel.numbers import format_currency from django import template from django.conf import settings from django.utils.translation import get_language, to_locale register = template.Library() @register.filter(name='currency') def currency(value...
<commit_before>from decimal import Decimal as D from decimal import InvalidOperation from babel.numbers import format_currency from django import template from django.conf import settings from django.utils.translation import get_language, to_locale register = template.Library() @register.filter(name='currency') def...
07be89d234a8ec80238e98979461956f2a9dcbfa
loggingconsole.py
loggingconsole.py
""" @copyright: 2013 Single D Software - All Rights Reserved @summary: Debugging console interface for Light Maestro. """ # Standard library imports import logging import threading import time # Application imports import console # Named logger for this module _logger = logging.getLogger(__name__) class LoggingCo...
""" @copyright: 2013 Single D Software - All Rights Reserved @summary: Debugging console interface for Light Maestro. """ # Standard library imports import logging import threading import time # Application imports import console # Named logger for this module _logger = logging.getLogger(__name__) class LoggingCo...
Improve format of logging output.
Improve format of logging output.
Python
apache-2.0
lordjabez/light-maestro,lordjabez/light-maestro,lordjabez/light-maestro,lordjabez/light-maestro
""" @copyright: 2013 Single D Software - All Rights Reserved @summary: Debugging console interface for Light Maestro. """ # Standard library imports import logging import threading import time # Application imports import console # Named logger for this module _logger = logging.getLogger(__name__) class LoggingCo...
""" @copyright: 2013 Single D Software - All Rights Reserved @summary: Debugging console interface for Light Maestro. """ # Standard library imports import logging import threading import time # Application imports import console # Named logger for this module _logger = logging.getLogger(__name__) class LoggingCo...
<commit_before>""" @copyright: 2013 Single D Software - All Rights Reserved @summary: Debugging console interface for Light Maestro. """ # Standard library imports import logging import threading import time # Application imports import console # Named logger for this module _logger = logging.getLogger(__name__) ...
""" @copyright: 2013 Single D Software - All Rights Reserved @summary: Debugging console interface for Light Maestro. """ # Standard library imports import logging import threading import time # Application imports import console # Named logger for this module _logger = logging.getLogger(__name__) class LoggingCo...
""" @copyright: 2013 Single D Software - All Rights Reserved @summary: Debugging console interface for Light Maestro. """ # Standard library imports import logging import threading import time # Application imports import console # Named logger for this module _logger = logging.getLogger(__name__) class LoggingCo...
<commit_before>""" @copyright: 2013 Single D Software - All Rights Reserved @summary: Debugging console interface for Light Maestro. """ # Standard library imports import logging import threading import time # Application imports import console # Named logger for this module _logger = logging.getLogger(__name__) ...
d3bf033df10aa1d7f6afc2578cb74454d02f5a96
libnacl/utils.py
libnacl/utils.py
# Import nacl libs import libnacl import libnacl.encode # Import python libs import datetime import binascii class BaseKey(object): ''' Include methods for key management convenience ''' def hex_sk(self): if hasattr(self, 'sk'): return libnacl.encode.hex_encode(self.sk) el...
# Import nacl libs import libnacl import libnacl.encode # Import python libs import datetime import binascii class BaseKey(object): ''' Include methods for key management convenience ''' def hex_sk(self): if hasattr(self, 'sk'): return libnacl.encode.hex_encode(self.sk) el...
Set the vk key hex routine correctly
Set the vk key hex routine correctly
Python
apache-2.0
coinkite/libnacl,saltstack/libnacl,johnttan/libnacl,cachedout/libnacl,mindw/libnacl,RaetProtocol/libnacl
# Import nacl libs import libnacl import libnacl.encode # Import python libs import datetime import binascii class BaseKey(object): ''' Include methods for key management convenience ''' def hex_sk(self): if hasattr(self, 'sk'): return libnacl.encode.hex_encode(self.sk) el...
# Import nacl libs import libnacl import libnacl.encode # Import python libs import datetime import binascii class BaseKey(object): ''' Include methods for key management convenience ''' def hex_sk(self): if hasattr(self, 'sk'): return libnacl.encode.hex_encode(self.sk) el...
<commit_before># Import nacl libs import libnacl import libnacl.encode # Import python libs import datetime import binascii class BaseKey(object): ''' Include methods for key management convenience ''' def hex_sk(self): if hasattr(self, 'sk'): return libnacl.encode.hex_encode(self...
# Import nacl libs import libnacl import libnacl.encode # Import python libs import datetime import binascii class BaseKey(object): ''' Include methods for key management convenience ''' def hex_sk(self): if hasattr(self, 'sk'): return libnacl.encode.hex_encode(self.sk) el...
# Import nacl libs import libnacl import libnacl.encode # Import python libs import datetime import binascii class BaseKey(object): ''' Include methods for key management convenience ''' def hex_sk(self): if hasattr(self, 'sk'): return libnacl.encode.hex_encode(self.sk) el...
<commit_before># Import nacl libs import libnacl import libnacl.encode # Import python libs import datetime import binascii class BaseKey(object): ''' Include methods for key management convenience ''' def hex_sk(self): if hasattr(self, 'sk'): return libnacl.encode.hex_encode(self...
c9974e13b27e84f0dd49d8a401e281b042fc2d0f
tests/TestLedger.py
tests/TestLedger.py
import Ledger from Transaction import Transaction import unittest class TestLedger(unittest.TestCase) : def setUp(self) : self.test_object = Ledger.Ledger() def tearDown(self) : pass def test_not_None(self) : self.assertIsNotNone(self.test_object) def test_add_transaction(s...
import Ledger from Transaction import Transaction import unittest class TestLedger(unittest.TestCase) : def setUp(self) : self.test_object = Ledger.Ledger() def tearDown(self) : pass def test_not_None(self) : self.assertIsNotNone(self.test_object) def test_add_transaction(s...
Add test to smoke out contains problem in Ledger
Add test to smoke out contains problem in Ledger
Python
apache-2.0
mattdeckard/wherewithal
import Ledger from Transaction import Transaction import unittest class TestLedger(unittest.TestCase) : def setUp(self) : self.test_object = Ledger.Ledger() def tearDown(self) : pass def test_not_None(self) : self.assertIsNotNone(self.test_object) def test_add_transaction(s...
import Ledger from Transaction import Transaction import unittest class TestLedger(unittest.TestCase) : def setUp(self) : self.test_object = Ledger.Ledger() def tearDown(self) : pass def test_not_None(self) : self.assertIsNotNone(self.test_object) def test_add_transaction(s...
<commit_before>import Ledger from Transaction import Transaction import unittest class TestLedger(unittest.TestCase) : def setUp(self) : self.test_object = Ledger.Ledger() def tearDown(self) : pass def test_not_None(self) : self.assertIsNotNone(self.test_object) def test_ad...
import Ledger from Transaction import Transaction import unittest class TestLedger(unittest.TestCase) : def setUp(self) : self.test_object = Ledger.Ledger() def tearDown(self) : pass def test_not_None(self) : self.assertIsNotNone(self.test_object) def test_add_transaction(s...
import Ledger from Transaction import Transaction import unittest class TestLedger(unittest.TestCase) : def setUp(self) : self.test_object = Ledger.Ledger() def tearDown(self) : pass def test_not_None(self) : self.assertIsNotNone(self.test_object) def test_add_transaction(s...
<commit_before>import Ledger from Transaction import Transaction import unittest class TestLedger(unittest.TestCase) : def setUp(self) : self.test_object = Ledger.Ledger() def tearDown(self) : pass def test_not_None(self) : self.assertIsNotNone(self.test_object) def test_ad...
ba49a9b3344f30f5bd3ea05144546e6a8a763ef0
tests/test_cli/test_config.py
tests/test_cli/test_config.py
# -*- coding: utf-8 -*- from __future__ import absolute_import, division, print_function from mock import patch from tests.test_cli.utils import BaseCommandTestCase from polyaxon_cli.cli.config import config class TestConfigManager(BaseCommandTestCase): @patch('polyaxon_cli.managers.config.GlobalConfigManager.g...
# -*- coding: utf-8 -*- from __future__ import absolute_import, division, print_function from mock import patch from tests.test_cli.utils import BaseCommandTestCase from polyaxon_cli.cli.config import config class TestConfigManager(BaseCommandTestCase): @patch('polyaxon_cli.managers.config.GlobalConfigManager.i...
Add more tests for config list
Add more tests for config list
Python
apache-2.0
polyaxon/polyaxon,polyaxon/polyaxon,polyaxon/polyaxon
# -*- coding: utf-8 -*- from __future__ import absolute_import, division, print_function from mock import patch from tests.test_cli.utils import BaseCommandTestCase from polyaxon_cli.cli.config import config class TestConfigManager(BaseCommandTestCase): @patch('polyaxon_cli.managers.config.GlobalConfigManager.g...
# -*- coding: utf-8 -*- from __future__ import absolute_import, division, print_function from mock import patch from tests.test_cli.utils import BaseCommandTestCase from polyaxon_cli.cli.config import config class TestConfigManager(BaseCommandTestCase): @patch('polyaxon_cli.managers.config.GlobalConfigManager.i...
<commit_before># -*- coding: utf-8 -*- from __future__ import absolute_import, division, print_function from mock import patch from tests.test_cli.utils import BaseCommandTestCase from polyaxon_cli.cli.config import config class TestConfigManager(BaseCommandTestCase): @patch('polyaxon_cli.managers.config.Global...
# -*- coding: utf-8 -*- from __future__ import absolute_import, division, print_function from mock import patch from tests.test_cli.utils import BaseCommandTestCase from polyaxon_cli.cli.config import config class TestConfigManager(BaseCommandTestCase): @patch('polyaxon_cli.managers.config.GlobalConfigManager.i...
# -*- coding: utf-8 -*- from __future__ import absolute_import, division, print_function from mock import patch from tests.test_cli.utils import BaseCommandTestCase from polyaxon_cli.cli.config import config class TestConfigManager(BaseCommandTestCase): @patch('polyaxon_cli.managers.config.GlobalConfigManager.g...
<commit_before># -*- coding: utf-8 -*- from __future__ import absolute_import, division, print_function from mock import patch from tests.test_cli.utils import BaseCommandTestCase from polyaxon_cli.cli.config import config class TestConfigManager(BaseCommandTestCase): @patch('polyaxon_cli.managers.config.Global...
f17d9c3b45758c02f1f67cbec6709e42149369f5
packs/asserts/actions/object_equals.py
packs/asserts/actions/object_equals.py
import pprint import sys from st2actions.runners.pythonrunner import Action __all__ = [ 'AssertObjectEquals' ] class AssertObjectEquals(Action): def run(self, object, expected): ret = cmp(object, expected) if ret == 0: sys.stdout.write('EQUAL.') else: pprint....
import pprint import sys from st2actions.runners.pythonrunner import Action __all__ = [ 'AssertObjectEquals' ] def cmp(x, y): return (x > y) - (x < y) class AssertObjectEquals(Action): def run(self, object, expected): ret = cmp(object, expected) if ret == 0: sys.stdout.wri...
Make action python 3 compatible
Make action python 3 compatible
Python
apache-2.0
StackStorm/st2tests,StackStorm/st2tests,StackStorm/st2tests
import pprint import sys from st2actions.runners.pythonrunner import Action __all__ = [ 'AssertObjectEquals' ] class AssertObjectEquals(Action): def run(self, object, expected): ret = cmp(object, expected) if ret == 0: sys.stdout.write('EQUAL.') else: pprint....
import pprint import sys from st2actions.runners.pythonrunner import Action __all__ = [ 'AssertObjectEquals' ] def cmp(x, y): return (x > y) - (x < y) class AssertObjectEquals(Action): def run(self, object, expected): ret = cmp(object, expected) if ret == 0: sys.stdout.wri...
<commit_before>import pprint import sys from st2actions.runners.pythonrunner import Action __all__ = [ 'AssertObjectEquals' ] class AssertObjectEquals(Action): def run(self, object, expected): ret = cmp(object, expected) if ret == 0: sys.stdout.write('EQUAL.') else: ...
import pprint import sys from st2actions.runners.pythonrunner import Action __all__ = [ 'AssertObjectEquals' ] def cmp(x, y): return (x > y) - (x < y) class AssertObjectEquals(Action): def run(self, object, expected): ret = cmp(object, expected) if ret == 0: sys.stdout.wri...
import pprint import sys from st2actions.runners.pythonrunner import Action __all__ = [ 'AssertObjectEquals' ] class AssertObjectEquals(Action): def run(self, object, expected): ret = cmp(object, expected) if ret == 0: sys.stdout.write('EQUAL.') else: pprint....
<commit_before>import pprint import sys from st2actions.runners.pythonrunner import Action __all__ = [ 'AssertObjectEquals' ] class AssertObjectEquals(Action): def run(self, object, expected): ret = cmp(object, expected) if ret == 0: sys.stdout.write('EQUAL.') else: ...
76f0f55670e80dff24001e9c9e99209e8a045c31
modules/engine.py
modules/engine.py
import importlib import glob from modules.exception import * from os.path import basename, splitext PLUGINS_DIR = "./plugins" def get_plugins(plugins_dir = PLUGINS_DIR): plugins = {} plugin_files = glob.glob("{}/*.py".format(plugins_dir)) for plugin_file in plugin_files: if plugin_file.endswith("_...
import importlib import glob from modules.exception import * from os.path import basename, splitext PLUGINS_DIR = "./plugins" def get_plugins(plugins_dir = PLUGINS_DIR): plugins = {} plugin_files = glob.glob("{}/*.py".format(plugins_dir)) for plugin_file in plugin_files: if plugin_file.endswith("_...
Fix bug due to typo
Fix bug due to typo
Python
mit
alfie-max/Publish
import importlib import glob from modules.exception import * from os.path import basename, splitext PLUGINS_DIR = "./plugins" def get_plugins(plugins_dir = PLUGINS_DIR): plugins = {} plugin_files = glob.glob("{}/*.py".format(plugins_dir)) for plugin_file in plugin_files: if plugin_file.endswith("_...
import importlib import glob from modules.exception import * from os.path import basename, splitext PLUGINS_DIR = "./plugins" def get_plugins(plugins_dir = PLUGINS_DIR): plugins = {} plugin_files = glob.glob("{}/*.py".format(plugins_dir)) for plugin_file in plugin_files: if plugin_file.endswith("_...
<commit_before>import importlib import glob from modules.exception import * from os.path import basename, splitext PLUGINS_DIR = "./plugins" def get_plugins(plugins_dir = PLUGINS_DIR): plugins = {} plugin_files = glob.glob("{}/*.py".format(plugins_dir)) for plugin_file in plugin_files: if plugin_f...
import importlib import glob from modules.exception import * from os.path import basename, splitext PLUGINS_DIR = "./plugins" def get_plugins(plugins_dir = PLUGINS_DIR): plugins = {} plugin_files = glob.glob("{}/*.py".format(plugins_dir)) for plugin_file in plugin_files: if plugin_file.endswith("_...
import importlib import glob from modules.exception import * from os.path import basename, splitext PLUGINS_DIR = "./plugins" def get_plugins(plugins_dir = PLUGINS_DIR): plugins = {} plugin_files = glob.glob("{}/*.py".format(plugins_dir)) for plugin_file in plugin_files: if plugin_file.endswith("_...
<commit_before>import importlib import glob from modules.exception import * from os.path import basename, splitext PLUGINS_DIR = "./plugins" def get_plugins(plugins_dir = PLUGINS_DIR): plugins = {} plugin_files = glob.glob("{}/*.py".format(plugins_dir)) for plugin_file in plugin_files: if plugin_f...
ea80d2d6b079ea2053f5bc25f1a8db2d21437093
tests/test_rules.py
tests/test_rules.py
# -*- coding: utf-8 -*- import pytest from repocket.rules import compile_rules, Rule from repocket.main import PocketItem def test_single_rule(): item1 = PocketItem(1, 'http://google.com', [], 'Google') item2 = PocketItem(1, 'http://github.com', [], 'Github') rule = Rule('.*google\.com', ['google']) ...
# -*- coding: utf-8 -*- import pytest from repocket.rules import compile_rules, Rule from repocket.main import PocketItem def test_single_rule(): item1 = PocketItem(1, 'http://google.com', [], 'Google') item2 = PocketItem(2, 'http://github.com', [], 'Github') rule = Rule('.*google\.com', ['google']) ...
Test for dynamic tag creation.
Test for dynamic tag creation.
Python
mit
lensvol/repocket
# -*- coding: utf-8 -*- import pytest from repocket.rules import compile_rules, Rule from repocket.main import PocketItem def test_single_rule(): item1 = PocketItem(1, 'http://google.com', [], 'Google') item2 = PocketItem(1, 'http://github.com', [], 'Github') rule = Rule('.*google\.com', ['google']) ...
# -*- coding: utf-8 -*- import pytest from repocket.rules import compile_rules, Rule from repocket.main import PocketItem def test_single_rule(): item1 = PocketItem(1, 'http://google.com', [], 'Google') item2 = PocketItem(2, 'http://github.com', [], 'Github') rule = Rule('.*google\.com', ['google']) ...
<commit_before># -*- coding: utf-8 -*- import pytest from repocket.rules import compile_rules, Rule from repocket.main import PocketItem def test_single_rule(): item1 = PocketItem(1, 'http://google.com', [], 'Google') item2 = PocketItem(1, 'http://github.com', [], 'Github') rule = Rule('.*google\.com', ...
# -*- coding: utf-8 -*- import pytest from repocket.rules import compile_rules, Rule from repocket.main import PocketItem def test_single_rule(): item1 = PocketItem(1, 'http://google.com', [], 'Google') item2 = PocketItem(2, 'http://github.com', [], 'Github') rule = Rule('.*google\.com', ['google']) ...
# -*- coding: utf-8 -*- import pytest from repocket.rules import compile_rules, Rule from repocket.main import PocketItem def test_single_rule(): item1 = PocketItem(1, 'http://google.com', [], 'Google') item2 = PocketItem(1, 'http://github.com', [], 'Github') rule = Rule('.*google\.com', ['google']) ...
<commit_before># -*- coding: utf-8 -*- import pytest from repocket.rules import compile_rules, Rule from repocket.main import PocketItem def test_single_rule(): item1 = PocketItem(1, 'http://google.com', [], 'Google') item2 = PocketItem(1, 'http://github.com', [], 'Github') rule = Rule('.*google\.com', ...
cc0f33a51f3b13cec191a7a97d20af95082e38db
tests/test_utils.py
tests/test_utils.py
"""Tests for the Texcavator utility functions""" import os os.environ.setdefault("DJANGO_SETTINGS_MODULE", "texcavator.settings")
"""Tests for the Texcavator utility functions""" import os os.environ.setdefault("DJANGO_SETTINGS_MODULE", "texcavator.settings") from nose.tools import assert_equals from testfixtures import compare import texcavator.utils as utils def test_json_error_message(): response = utils.json_error_message('test') ...
Add test for utility function json_error_message()
Add test for utility function json_error_message()
Python
apache-2.0
UUDigitalHumanitieslab/texcavator,msassmann/texcavator,msassmann/texcavator,msassmann/texcavator,UUDigitalHumanitieslab/texcavator,UUDigitalHumanitieslab/texcavator,msassmann/texcavator
"""Tests for the Texcavator utility functions""" import os os.environ.setdefault("DJANGO_SETTINGS_MODULE", "texcavator.settings") Add test for utility function json_error_message()
"""Tests for the Texcavator utility functions""" import os os.environ.setdefault("DJANGO_SETTINGS_MODULE", "texcavator.settings") from nose.tools import assert_equals from testfixtures import compare import texcavator.utils as utils def test_json_error_message(): response = utils.json_error_message('test') ...
<commit_before>"""Tests for the Texcavator utility functions""" import os os.environ.setdefault("DJANGO_SETTINGS_MODULE", "texcavator.settings") <commit_msg>Add test for utility function json_error_message()<commit_after>
"""Tests for the Texcavator utility functions""" import os os.environ.setdefault("DJANGO_SETTINGS_MODULE", "texcavator.settings") from nose.tools import assert_equals from testfixtures import compare import texcavator.utils as utils def test_json_error_message(): response = utils.json_error_message('test') ...
"""Tests for the Texcavator utility functions""" import os os.environ.setdefault("DJANGO_SETTINGS_MODULE", "texcavator.settings") Add test for utility function json_error_message()"""Tests for the Texcavator utility functions""" import os os.environ.setdefault("DJANGO_SETTINGS_MODULE", "texcavator.settings") from nose...
<commit_before>"""Tests for the Texcavator utility functions""" import os os.environ.setdefault("DJANGO_SETTINGS_MODULE", "texcavator.settings") <commit_msg>Add test for utility function json_error_message()<commit_after>"""Tests for the Texcavator utility functions""" import os os.environ.setdefault("DJANGO_SETTINGS_M...
e7b99f9993fa74377a72cac5295ffe6cb6b1d717
moves/tests.py
moves/tests.py
from django.test import TestCase # Create your tests here.
import pdb from django.test import TestCase from .models import Move # Create your tests here. class IndexTests(TestCase): def test_user_uuid_is_set_if_not_set(self): self.client.get('/') self.assertTrue(self.client.session.get('user_uuid'))
Create IndexTests class. Implement uuid test.
Create IndexTests class. Implement uuid test.
Python
mit
bnjmnhndrsn/lunchmove,bnjmnhndrsn/lunchmove,bnjmnhndrsn/lunchmove,Nestio/lunchmove,bnjmnhndrsn/lunchmove,Nestio/lunchmove,Nestio/lunchmove,Nestio/lunchmove
from django.test import TestCase # Create your tests here. Create IndexTests class. Implement uuid test.
import pdb from django.test import TestCase from .models import Move # Create your tests here. class IndexTests(TestCase): def test_user_uuid_is_set_if_not_set(self): self.client.get('/') self.assertTrue(self.client.session.get('user_uuid'))
<commit_before>from django.test import TestCase # Create your tests here. <commit_msg>Create IndexTests class. Implement uuid test.<commit_after>
import pdb from django.test import TestCase from .models import Move # Create your tests here. class IndexTests(TestCase): def test_user_uuid_is_set_if_not_set(self): self.client.get('/') self.assertTrue(self.client.session.get('user_uuid'))
from django.test import TestCase # Create your tests here. Create IndexTests class. Implement uuid test.import pdb from django.test import TestCase from .models import Move # Create your tests here. class IndexTests(TestCase): def test_user_uuid_is_set_if_not_set(self): self.client.get('/') self....
<commit_before>from django.test import TestCase # Create your tests here. <commit_msg>Create IndexTests class. Implement uuid test.<commit_after>import pdb from django.test import TestCase from .models import Move # Create your tests here. class IndexTests(TestCase): def test_user_uuid_is_set_if_not_set(self): ...
f17ee0ebe0eb177d83d7af9ce4e0969f2b491496
tests/test_workspace.py
tests/test_workspace.py
# Copyright 2015 0xc0170 # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, soft...
# Copyright 2015 0xc0170 # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, soft...
Test - fix output dir name
Test - fix output dir name
Python
apache-2.0
ohagendorf/project_generator,molejar/project_generator,project-generator/project_generator,sarahmarshy/project_generator,sg-/project_generator,0xc0170/project_generator,sg-/project_generator,hwfwgrp/project_generator
# Copyright 2015 0xc0170 # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, soft...
# Copyright 2015 0xc0170 # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, soft...
<commit_before># Copyright 2015 0xc0170 # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to i...
# Copyright 2015 0xc0170 # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, soft...
# Copyright 2015 0xc0170 # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, soft...
<commit_before># Copyright 2015 0xc0170 # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to i...
b61dd4eb4f82a5bee32ac495ea31b1a548c26de2
pyisemail/diagnosis/valid_diagnosis.py
pyisemail/diagnosis/valid_diagnosis.py
from pyisemail.diagnosis import BaseDiagnosis class ValidDiagnosis(BaseDiagnosis): """A diagnosis indicating the address is valid for use. """ DESCRIPTION = "Address is valid." MESSAGE = ("Address is valid. Please note that this does not mean " "the address actually exists, nor even...
from pyisemail.diagnosis import BaseDiagnosis class ValidDiagnosis(BaseDiagnosis): """A diagnosis indicating the address is valid for use. """ DESCRIPTION = "Address is valid." MESSAGE = ("Address is valid. Please note that this does not mean " "the address actually exists, nor even...
Fix a typo in the valid message
Fix a typo in the valid message
Python
mit
michaelherold/pyIsEmail,michaelherold/pyIsEmail
from pyisemail.diagnosis import BaseDiagnosis class ValidDiagnosis(BaseDiagnosis): """A diagnosis indicating the address is valid for use. """ DESCRIPTION = "Address is valid." MESSAGE = ("Address is valid. Please note that this does not mean " "the address actually exists, nor even...
from pyisemail.diagnosis import BaseDiagnosis class ValidDiagnosis(BaseDiagnosis): """A diagnosis indicating the address is valid for use. """ DESCRIPTION = "Address is valid." MESSAGE = ("Address is valid. Please note that this does not mean " "the address actually exists, nor even...
<commit_before>from pyisemail.diagnosis import BaseDiagnosis class ValidDiagnosis(BaseDiagnosis): """A diagnosis indicating the address is valid for use. """ DESCRIPTION = "Address is valid." MESSAGE = ("Address is valid. Please note that this does not mean " "the address actually e...
from pyisemail.diagnosis import BaseDiagnosis class ValidDiagnosis(BaseDiagnosis): """A diagnosis indicating the address is valid for use. """ DESCRIPTION = "Address is valid." MESSAGE = ("Address is valid. Please note that this does not mean " "the address actually exists, nor even...
from pyisemail.diagnosis import BaseDiagnosis class ValidDiagnosis(BaseDiagnosis): """A diagnosis indicating the address is valid for use. """ DESCRIPTION = "Address is valid." MESSAGE = ("Address is valid. Please note that this does not mean " "the address actually exists, nor even...
<commit_before>from pyisemail.diagnosis import BaseDiagnosis class ValidDiagnosis(BaseDiagnosis): """A diagnosis indicating the address is valid for use. """ DESCRIPTION = "Address is valid." MESSAGE = ("Address is valid. Please note that this does not mean " "the address actually e...
82a00e48492f2d787c980c434d58e249c210818e
ffmpeg/_probe.py
ffmpeg/_probe.py
import json import subprocess from ._run import Error from ._utils import convert_kwargs_to_cmd_line_args def probe(filename, cmd='ffprobe', **kwargs): """Run ffprobe on the specified file and return a JSON representation of the output. Raises: :class:`ffmpeg.Error`: if ffprobe returns a non-zero exi...
import json import subprocess from ._run import Error from ._utils import convert_kwargs_to_cmd_line_args def probe(filename, cmd='ffprobe', timeout=None, **kwargs): """Run ffprobe on the specified file and return a JSON representation of the output. Raises: :class:`ffmpeg.Error`: if ffprobe returns ...
Add optional timeout argument to probe
Add optional timeout argument to probe Popen.communicate() supports a timeout argument which is useful in case there is a risk that the probe hangs.
Python
apache-2.0
kkroening/ffmpeg-python
import json import subprocess from ._run import Error from ._utils import convert_kwargs_to_cmd_line_args def probe(filename, cmd='ffprobe', **kwargs): """Run ffprobe on the specified file and return a JSON representation of the output. Raises: :class:`ffmpeg.Error`: if ffprobe returns a non-zero exi...
import json import subprocess from ._run import Error from ._utils import convert_kwargs_to_cmd_line_args def probe(filename, cmd='ffprobe', timeout=None, **kwargs): """Run ffprobe on the specified file and return a JSON representation of the output. Raises: :class:`ffmpeg.Error`: if ffprobe returns ...
<commit_before>import json import subprocess from ._run import Error from ._utils import convert_kwargs_to_cmd_line_args def probe(filename, cmd='ffprobe', **kwargs): """Run ffprobe on the specified file and return a JSON representation of the output. Raises: :class:`ffmpeg.Error`: if ffprobe returns...
import json import subprocess from ._run import Error from ._utils import convert_kwargs_to_cmd_line_args def probe(filename, cmd='ffprobe', timeout=None, **kwargs): """Run ffprobe on the specified file and return a JSON representation of the output. Raises: :class:`ffmpeg.Error`: if ffprobe returns ...
import json import subprocess from ._run import Error from ._utils import convert_kwargs_to_cmd_line_args def probe(filename, cmd='ffprobe', **kwargs): """Run ffprobe on the specified file and return a JSON representation of the output. Raises: :class:`ffmpeg.Error`: if ffprobe returns a non-zero exi...
<commit_before>import json import subprocess from ._run import Error from ._utils import convert_kwargs_to_cmd_line_args def probe(filename, cmd='ffprobe', **kwargs): """Run ffprobe on the specified file and return a JSON representation of the output. Raises: :class:`ffmpeg.Error`: if ffprobe returns...
bc852b937e655ec7cf084df4185d66954d8128e0
tests/test_conditionals.py
tests/test_conditionals.py
import pytest from thinglang.runner import run def test_simple_conditionals(): assert run(""" thing Program does start if "dog" eq "dog" Output.write("dog is dog") if "dog" eq "cat" Output.write("dog is cat") """).output == """dog is dog""".strip() def test_uncon...
import pytest from thinglang.runner import run def test_simple_conditionals(): assert run(""" thing Program does start if "dog" eq "dog" Output.write("dog is dog") if "dog" eq "cat" Output.write("dog is cat") """).output == """dog is dog""".strip() def test_unc...
Add test for conditional elses
Add test for conditional elses
Python
mit
ytanay/thinglang,ytanay/thinglang,ytanay/thinglang,ytanay/thinglang
import pytest from thinglang.runner import run def test_simple_conditionals(): assert run(""" thing Program does start if "dog" eq "dog" Output.write("dog is dog") if "dog" eq "cat" Output.write("dog is cat") """).output == """dog is dog""".strip() def test_uncon...
import pytest from thinglang.runner import run def test_simple_conditionals(): assert run(""" thing Program does start if "dog" eq "dog" Output.write("dog is dog") if "dog" eq "cat" Output.write("dog is cat") """).output == """dog is dog""".strip() def test_unc...
<commit_before>import pytest from thinglang.runner import run def test_simple_conditionals(): assert run(""" thing Program does start if "dog" eq "dog" Output.write("dog is dog") if "dog" eq "cat" Output.write("dog is cat") """).output == """dog is dog""".strip() ...
import pytest from thinglang.runner import run def test_simple_conditionals(): assert run(""" thing Program does start if "dog" eq "dog" Output.write("dog is dog") if "dog" eq "cat" Output.write("dog is cat") """).output == """dog is dog""".strip() def test_unc...
import pytest from thinglang.runner import run def test_simple_conditionals(): assert run(""" thing Program does start if "dog" eq "dog" Output.write("dog is dog") if "dog" eq "cat" Output.write("dog is cat") """).output == """dog is dog""".strip() def test_uncon...
<commit_before>import pytest from thinglang.runner import run def test_simple_conditionals(): assert run(""" thing Program does start if "dog" eq "dog" Output.write("dog is dog") if "dog" eq "cat" Output.write("dog is cat") """).output == """dog is dog""".strip() ...
6e9059f24e75b37333af017f8facdb3426144ecf
conf/jupyter_notebook_config.py
conf/jupyter_notebook_config.py
import os c.NotebookApp.ip = '*' c.NotebookApp.allow_remote_access = True c.MultiKernelManager.kernel_manager_class = 'lc_wrapper.LCWrapperKernelManager' c.KernelManager.shutdown_wait_time = 10.0 c.FileContentsManager.delete_to_trash = False c.NotebookApp.quit_button = False c.NotebookApp.kernel_spec_manager_class = 'l...
import os c.NotebookApp.ip = '*' c.NotebookApp.allow_remote_access = True c.MultiKernelManager.kernel_manager_class = 'lc_wrapper.LCWrapperKernelManager' c.KernelManager.shutdown_wait_time = 10.0 c.FileContentsManager.delete_to_trash = False c.NotebookApp.quit_button = False c.NotebookApp.kernel_spec_manager_class = 'l...
Remove SIDESTICKIES_SCRAPBOX_COOKIE_CONNECT_SID from os.environ after reading
Remove SIDESTICKIES_SCRAPBOX_COOKIE_CONNECT_SID from os.environ after reading
Python
bsd-3-clause
NII-cloud-operation/Jupyter-LC_docker,NII-cloud-operation/Jupyter-LC_docker
import os c.NotebookApp.ip = '*' c.NotebookApp.allow_remote_access = True c.MultiKernelManager.kernel_manager_class = 'lc_wrapper.LCWrapperKernelManager' c.KernelManager.shutdown_wait_time = 10.0 c.FileContentsManager.delete_to_trash = False c.NotebookApp.quit_button = False c.NotebookApp.kernel_spec_manager_class = 'l...
import os c.NotebookApp.ip = '*' c.NotebookApp.allow_remote_access = True c.MultiKernelManager.kernel_manager_class = 'lc_wrapper.LCWrapperKernelManager' c.KernelManager.shutdown_wait_time = 10.0 c.FileContentsManager.delete_to_trash = False c.NotebookApp.quit_button = False c.NotebookApp.kernel_spec_manager_class = 'l...
<commit_before>import os c.NotebookApp.ip = '*' c.NotebookApp.allow_remote_access = True c.MultiKernelManager.kernel_manager_class = 'lc_wrapper.LCWrapperKernelManager' c.KernelManager.shutdown_wait_time = 10.0 c.FileContentsManager.delete_to_trash = False c.NotebookApp.quit_button = False c.NotebookApp.kernel_spec_man...
import os c.NotebookApp.ip = '*' c.NotebookApp.allow_remote_access = True c.MultiKernelManager.kernel_manager_class = 'lc_wrapper.LCWrapperKernelManager' c.KernelManager.shutdown_wait_time = 10.0 c.FileContentsManager.delete_to_trash = False c.NotebookApp.quit_button = False c.NotebookApp.kernel_spec_manager_class = 'l...
import os c.NotebookApp.ip = '*' c.NotebookApp.allow_remote_access = True c.MultiKernelManager.kernel_manager_class = 'lc_wrapper.LCWrapperKernelManager' c.KernelManager.shutdown_wait_time = 10.0 c.FileContentsManager.delete_to_trash = False c.NotebookApp.quit_button = False c.NotebookApp.kernel_spec_manager_class = 'l...
<commit_before>import os c.NotebookApp.ip = '*' c.NotebookApp.allow_remote_access = True c.MultiKernelManager.kernel_manager_class = 'lc_wrapper.LCWrapperKernelManager' c.KernelManager.shutdown_wait_time = 10.0 c.FileContentsManager.delete_to_trash = False c.NotebookApp.quit_button = False c.NotebookApp.kernel_spec_man...
b256b3406139be3affc4ff4c376acd53baa96297
crawler/crawler/middlewares/crawledURLCheck.py
crawler/crawler/middlewares/crawledURLCheck.py
# -*- coding: utf-8 -*- """ Checks if the given URL was already processed """ import logging from scrapy.exceptions import IgnoreRequest from sqlalchemy.orm import sessionmaker from sqlalchemy import create_engine from ..settings import DATABASE_URL from ..models import Advertisement class CrawledURLCheck(object):...
# -*- coding: utf-8 -*- """ Checks if the given URL was already processed """ import logging from datetime import date from scrapy.exceptions import IgnoreRequest from sqlalchemy.orm import sessionmaker from sqlalchemy import create_engine from ..settings import DATABASE_URL from ..models import Advertisement clas...
Update last seen if we found url in our database
Update last seen if we found url in our database
Python
mit
bhzunami/Immo,bhzunami/Immo,bhzunami/Immo
# -*- coding: utf-8 -*- """ Checks if the given URL was already processed """ import logging from scrapy.exceptions import IgnoreRequest from sqlalchemy.orm import sessionmaker from sqlalchemy import create_engine from ..settings import DATABASE_URL from ..models import Advertisement class CrawledURLCheck(object):...
# -*- coding: utf-8 -*- """ Checks if the given URL was already processed """ import logging from datetime import date from scrapy.exceptions import IgnoreRequest from sqlalchemy.orm import sessionmaker from sqlalchemy import create_engine from ..settings import DATABASE_URL from ..models import Advertisement clas...
<commit_before># -*- coding: utf-8 -*- """ Checks if the given URL was already processed """ import logging from scrapy.exceptions import IgnoreRequest from sqlalchemy.orm import sessionmaker from sqlalchemy import create_engine from ..settings import DATABASE_URL from ..models import Advertisement class CrawledUR...
# -*- coding: utf-8 -*- """ Checks if the given URL was already processed """ import logging from datetime import date from scrapy.exceptions import IgnoreRequest from sqlalchemy.orm import sessionmaker from sqlalchemy import create_engine from ..settings import DATABASE_URL from ..models import Advertisement clas...
# -*- coding: utf-8 -*- """ Checks if the given URL was already processed """ import logging from scrapy.exceptions import IgnoreRequest from sqlalchemy.orm import sessionmaker from sqlalchemy import create_engine from ..settings import DATABASE_URL from ..models import Advertisement class CrawledURLCheck(object):...
<commit_before># -*- coding: utf-8 -*- """ Checks if the given URL was already processed """ import logging from scrapy.exceptions import IgnoreRequest from sqlalchemy.orm import sessionmaker from sqlalchemy import create_engine from ..settings import DATABASE_URL from ..models import Advertisement class CrawledUR...
6fc6cc1a9d2d67b485c1d9ba492cc02ca864d45f
nipype/interfaces/brainsuite/__init__.py
nipype/interfaces/brainsuite/__init__.py
from .brainsuite import (Bse, Bfc, Pvc, Cerebro, Cortex, Scrubmask, Tca, Dewisp, Dfs, Pialmesh, Skullfinder, Hemisplit)
from .brainsuite import (Bse, Bfc, Pvc, Cerebro, Cortex, Scrubmask, Tca, Dewisp, Dfs, Pialmesh, Skullfinder, Hemisplit, SVReg, BDP)
Add SVReg and BDP to import
Add SVReg and BDP to import
Python
bsd-3-clause
mick-d/nipype,carolFrohlich/nipype,mick-d/nipype,mick-d/nipype,mick-d/nipype,carolFrohlich/nipype,carolFrohlich/nipype,carolFrohlich/nipype
from .brainsuite import (Bse, Bfc, Pvc, Cerebro, Cortex, Scrubmask, Tca, Dewisp, Dfs, Pialmesh, Skullfinder, Hemisplit) Add SVReg and BDP to import
from .brainsuite import (Bse, Bfc, Pvc, Cerebro, Cortex, Scrubmask, Tca, Dewisp, Dfs, Pialmesh, Skullfinder, Hemisplit, SVReg, BDP)
<commit_before>from .brainsuite import (Bse, Bfc, Pvc, Cerebro, Cortex, Scrubmask, Tca, Dewisp, Dfs, Pialmesh, Skullfinder, Hemisplit) <commit_msg>Add SVReg and BDP to import<commit_after>
from .brainsuite import (Bse, Bfc, Pvc, Cerebro, Cortex, Scrubmask, Tca, Dewisp, Dfs, Pialmesh, Skullfinder, Hemisplit, SVReg, BDP)
from .brainsuite import (Bse, Bfc, Pvc, Cerebro, Cortex, Scrubmask, Tca, Dewisp, Dfs, Pialmesh, Skullfinder, Hemisplit) Add SVReg and BDP to importfrom .brainsuite import (Bse, Bfc, Pvc, Cerebro, Cortex, Scrubmask, Tca, Dewisp, Dfs, Pialmesh, Skullfinder, Hemisplit, ...
<commit_before>from .brainsuite import (Bse, Bfc, Pvc, Cerebro, Cortex, Scrubmask, Tca, Dewisp, Dfs, Pialmesh, Skullfinder, Hemisplit) <commit_msg>Add SVReg and BDP to import<commit_after>from .brainsuite import (Bse, Bfc, Pvc, Cerebro, Cortex, Scrubmask, Tca, Dewisp, D...
f4383f964643c7fa1c4de050feaf7d134e34d814
example/people.py
example/people.py
from pupa.scrape import Scraper from pupa.scrape.helpers import Legislator, Organization class PersonScraper(Scraper): def get_people(self): # committee tech = Organization('Technology', classification='committee') tech.add_post('Chairman', 'chairman') tech.add_source('https://exa...
from pupa.scrape import Scraper from pupa.scrape.helpers import Legislator, Organization class PersonScraper(Scraper): def get_people(self): # committee tech = Organization('Technology', classification='committee') tech.add_post('Chairman', 'chairman') tech.add_source('https://exa...
Make it so that the example runs without error
Make it so that the example runs without error
Python
bsd-3-clause
datamade/pupa,influence-usa/pupa,rshorey/pupa,datamade/pupa,opencivicdata/pupa,rshorey/pupa,mileswwatkins/pupa,mileswwatkins/pupa,opencivicdata/pupa,influence-usa/pupa
from pupa.scrape import Scraper from pupa.scrape.helpers import Legislator, Organization class PersonScraper(Scraper): def get_people(self): # committee tech = Organization('Technology', classification='committee') tech.add_post('Chairman', 'chairman') tech.add_source('https://exa...
from pupa.scrape import Scraper from pupa.scrape.helpers import Legislator, Organization class PersonScraper(Scraper): def get_people(self): # committee tech = Organization('Technology', classification='committee') tech.add_post('Chairman', 'chairman') tech.add_source('https://exa...
<commit_before>from pupa.scrape import Scraper from pupa.scrape.helpers import Legislator, Organization class PersonScraper(Scraper): def get_people(self): # committee tech = Organization('Technology', classification='committee') tech.add_post('Chairman', 'chairman') tech.add_sour...
from pupa.scrape import Scraper from pupa.scrape.helpers import Legislator, Organization class PersonScraper(Scraper): def get_people(self): # committee tech = Organization('Technology', classification='committee') tech.add_post('Chairman', 'chairman') tech.add_source('https://exa...
from pupa.scrape import Scraper from pupa.scrape.helpers import Legislator, Organization class PersonScraper(Scraper): def get_people(self): # committee tech = Organization('Technology', classification='committee') tech.add_post('Chairman', 'chairman') tech.add_source('https://exa...
<commit_before>from pupa.scrape import Scraper from pupa.scrape.helpers import Legislator, Organization class PersonScraper(Scraper): def get_people(self): # committee tech = Organization('Technology', classification='committee') tech.add_post('Chairman', 'chairman') tech.add_sour...
c8677f491dce966cb4451d6f91c4f3de907cb05a
derrida/__init__.py
derrida/__init__.py
__version_info__ = (1, 0, 0, None) # Dot-connect all but the last. Last is dash-connected if not None. __version__ = '.'.join([str(i) for i in __version_info__[:-1]]) if __version_info__[-1] is not None: __version__ += ('-%s' % (__version_info__[-1],)) # context processor to add version to the template environm...
__version_info__ = (1, 1, 0, 'dev') # Dot-connect all but the last. Last is dash-connected if not None. __version__ = '.'.join([str(i) for i in __version_info__[:-1]]) if __version_info__[-1] is not None: __version__ += ('-%s' % (__version_info__[-1],)) # context processor to add version to the template environ...
Set develop version to 1.1-dev
Set develop version to 1.1-dev
Python
apache-2.0
Princeton-CDH/derrida-django,Princeton-CDH/derrida-django,Princeton-CDH/derrida-django,Princeton-CDH/derrida-django
__version_info__ = (1, 0, 0, None) # Dot-connect all but the last. Last is dash-connected if not None. __version__ = '.'.join([str(i) for i in __version_info__[:-1]]) if __version_info__[-1] is not None: __version__ += ('-%s' % (__version_info__[-1],)) # context processor to add version to the template environm...
__version_info__ = (1, 1, 0, 'dev') # Dot-connect all but the last. Last is dash-connected if not None. __version__ = '.'.join([str(i) for i in __version_info__[:-1]]) if __version_info__[-1] is not None: __version__ += ('-%s' % (__version_info__[-1],)) # context processor to add version to the template environ...
<commit_before>__version_info__ = (1, 0, 0, None) # Dot-connect all but the last. Last is dash-connected if not None. __version__ = '.'.join([str(i) for i in __version_info__[:-1]]) if __version_info__[-1] is not None: __version__ += ('-%s' % (__version_info__[-1],)) # context processor to add version to the te...
__version_info__ = (1, 1, 0, 'dev') # Dot-connect all but the last. Last is dash-connected if not None. __version__ = '.'.join([str(i) for i in __version_info__[:-1]]) if __version_info__[-1] is not None: __version__ += ('-%s' % (__version_info__[-1],)) # context processor to add version to the template environ...
__version_info__ = (1, 0, 0, None) # Dot-connect all but the last. Last is dash-connected if not None. __version__ = '.'.join([str(i) for i in __version_info__[:-1]]) if __version_info__[-1] is not None: __version__ += ('-%s' % (__version_info__[-1],)) # context processor to add version to the template environm...
<commit_before>__version_info__ = (1, 0, 0, None) # Dot-connect all but the last. Last is dash-connected if not None. __version__ = '.'.join([str(i) for i in __version_info__[:-1]]) if __version_info__[-1] is not None: __version__ += ('-%s' % (__version_info__[-1],)) # context processor to add version to the te...
1ec1fff2539ef0223fa18a2049a35a1c81afe8f7
inonemonth/challenges/templatetags/challenges_extras.py
inonemonth/challenges/templatetags/challenges_extras.py
from django.template import Library register = Library() @register.filter def get_representation_for_user(role, user_role): if user_role.type == "juror": if role.type == "clencher": return "{0} ({1})".format(role.type.capitalize(), role.user.email) elif role.type == "juror": ...
from django.template import Library register = Library() @register.filter def get_representation_for_user(role, user_role): cap_role_type = role.type.capitalize() juror_representation_number = role.challenge.get_juror_representation_number(role) if user_role.type == "juror": if role.type == "clenc...
Increase abstractness for remaining test methods
Increase abstractness for remaining test methods
Python
mit
robrechtdr/inonemonth,robrechtdr/inonemonth,robrechtdr/inonemonth,robrechtdr/inonemonth
from django.template import Library register = Library() @register.filter def get_representation_for_user(role, user_role): if user_role.type == "juror": if role.type == "clencher": return "{0} ({1})".format(role.type.capitalize(), role.user.email) elif role.type == "juror": ...
from django.template import Library register = Library() @register.filter def get_representation_for_user(role, user_role): cap_role_type = role.type.capitalize() juror_representation_number = role.challenge.get_juror_representation_number(role) if user_role.type == "juror": if role.type == "clenc...
<commit_before>from django.template import Library register = Library() @register.filter def get_representation_for_user(role, user_role): if user_role.type == "juror": if role.type == "clencher": return "{0} ({1})".format(role.type.capitalize(), role.user.email) elif role.type == "jur...
from django.template import Library register = Library() @register.filter def get_representation_for_user(role, user_role): cap_role_type = role.type.capitalize() juror_representation_number = role.challenge.get_juror_representation_number(role) if user_role.type == "juror": if role.type == "clenc...
from django.template import Library register = Library() @register.filter def get_representation_for_user(role, user_role): if user_role.type == "juror": if role.type == "clencher": return "{0} ({1})".format(role.type.capitalize(), role.user.email) elif role.type == "juror": ...
<commit_before>from django.template import Library register = Library() @register.filter def get_representation_for_user(role, user_role): if user_role.type == "juror": if role.type == "clencher": return "{0} ({1})".format(role.type.capitalize(), role.user.email) elif role.type == "jur...
ff133c70778654bcddd0a4ad107957c857cb21d0
ontology/urls.py
ontology/urls.py
from django.conf.urls import url from django.conf.urls.static import static from django.views.generic import TemplateView, RedirectView from os import walk from ontology import views from oeplatform import settings urlpatterns = [ url(r"^$", TemplateView.as_view(template_name="ontology/about.html")), url(r"^ontolo...
from django.conf.urls import url from django.conf.urls.static import static from django.views.generic import TemplateView, RedirectView from os import walk from ontology import views from oeplatform import settings urlpatterns = [ url(r"^$", TemplateView.as_view(template_name="ontology/about.html")), url(r"^ontolo...
Allow arbitrary resources after ontology
Allow arbitrary resources after ontology
Python
agpl-3.0
openego/oeplatform,openego/oeplatform,openego/oeplatform,openego/oeplatform
from django.conf.urls import url from django.conf.urls.static import static from django.views.generic import TemplateView, RedirectView from os import walk from ontology import views from oeplatform import settings urlpatterns = [ url(r"^$", TemplateView.as_view(template_name="ontology/about.html")), url(r"^ontolo...
from django.conf.urls import url from django.conf.urls.static import static from django.views.generic import TemplateView, RedirectView from os import walk from ontology import views from oeplatform import settings urlpatterns = [ url(r"^$", TemplateView.as_view(template_name="ontology/about.html")), url(r"^ontolo...
<commit_before>from django.conf.urls import url from django.conf.urls.static import static from django.views.generic import TemplateView, RedirectView from os import walk from ontology import views from oeplatform import settings urlpatterns = [ url(r"^$", TemplateView.as_view(template_name="ontology/about.html")), ...
from django.conf.urls import url from django.conf.urls.static import static from django.views.generic import TemplateView, RedirectView from os import walk from ontology import views from oeplatform import settings urlpatterns = [ url(r"^$", TemplateView.as_view(template_name="ontology/about.html")), url(r"^ontolo...
from django.conf.urls import url from django.conf.urls.static import static from django.views.generic import TemplateView, RedirectView from os import walk from ontology import views from oeplatform import settings urlpatterns = [ url(r"^$", TemplateView.as_view(template_name="ontology/about.html")), url(r"^ontolo...
<commit_before>from django.conf.urls import url from django.conf.urls.static import static from django.views.generic import TemplateView, RedirectView from os import walk from ontology import views from oeplatform import settings urlpatterns = [ url(r"^$", TemplateView.as_view(template_name="ontology/about.html")), ...
f353ee5d2e2cf5fd4ee86776fc7e5ee6cb8a3238
sierra_adapter/build_windows.py
sierra_adapter/build_windows.py
#!/usr/bin/env python # -*- encoding: utf-8 -*- """ Usage: build_windows.py --start=<START> --end=<END> [--interval=<INTERVAL>] --resource=<RESOURCE> build_windows.py -h | --help """ import datetime as dt import json import boto3 import docopt import maya args = docopt.docopt(__doc__) start = maya.parse(args...
#!/usr/bin/env python # -*- encoding: utf-8 -*- """ Usage: build_windows.py --start=<START> --end=<END> [--interval=<INTERVAL>] --resource=<RESOURCE> build_windows.py -h | --help """ import datetime as dt import json import math import boto3 import docopt import maya import tqdm args = docopt.docopt(__doc__) ...
Print a progress meter when pushing windows
Print a progress meter when pushing windows
Python
mit
wellcometrust/platform-api,wellcometrust/platform-api,wellcometrust/platform-api,wellcometrust/platform-api
#!/usr/bin/env python # -*- encoding: utf-8 -*- """ Usage: build_windows.py --start=<START> --end=<END> [--interval=<INTERVAL>] --resource=<RESOURCE> build_windows.py -h | --help """ import datetime as dt import json import boto3 import docopt import maya args = docopt.docopt(__doc__) start = maya.parse(args...
#!/usr/bin/env python # -*- encoding: utf-8 -*- """ Usage: build_windows.py --start=<START> --end=<END> [--interval=<INTERVAL>] --resource=<RESOURCE> build_windows.py -h | --help """ import datetime as dt import json import math import boto3 import docopt import maya import tqdm args = docopt.docopt(__doc__) ...
<commit_before>#!/usr/bin/env python # -*- encoding: utf-8 -*- """ Usage: build_windows.py --start=<START> --end=<END> [--interval=<INTERVAL>] --resource=<RESOURCE> build_windows.py -h | --help """ import datetime as dt import json import boto3 import docopt import maya args = docopt.docopt(__doc__) start = ...
#!/usr/bin/env python # -*- encoding: utf-8 -*- """ Usage: build_windows.py --start=<START> --end=<END> [--interval=<INTERVAL>] --resource=<RESOURCE> build_windows.py -h | --help """ import datetime as dt import json import math import boto3 import docopt import maya import tqdm args = docopt.docopt(__doc__) ...
#!/usr/bin/env python # -*- encoding: utf-8 -*- """ Usage: build_windows.py --start=<START> --end=<END> [--interval=<INTERVAL>] --resource=<RESOURCE> build_windows.py -h | --help """ import datetime as dt import json import boto3 import docopt import maya args = docopt.docopt(__doc__) start = maya.parse(args...
<commit_before>#!/usr/bin/env python # -*- encoding: utf-8 -*- """ Usage: build_windows.py --start=<START> --end=<END> [--interval=<INTERVAL>] --resource=<RESOURCE> build_windows.py -h | --help """ import datetime as dt import json import boto3 import docopt import maya args = docopt.docopt(__doc__) start = ...
790caf035732b4fa19ce9dea3dbc9485d544c27c
content/test/gpu/gpu_tests/context_lost_expectations.py
content/test/gpu/gpu_tests/context_lost_expectations.py
# Copyright 2014 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. from gpu_test_expectations import GpuTestExpectations # See the GpuTestExpectations class for documentation. class ContextLostExpectations(GpuTestExpectati...
# Copyright 2014 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. from gpu_test_expectations import GpuTestExpectations # See the GpuTestExpectations class for documentation. class ContextLostExpectations(GpuTestExpectati...
Disable ContextLost.WebGLContextLostFromSelectElement on Windows Release.
Disable ContextLost.WebGLContextLostFromSelectElement on Windows Release. BUG=528139 TBR=kbr@chromium.org Review URL: https://codereview.chromium.org/1319463006 Cr-Commit-Position: 972c6d2dc6dd5efdad1377c0d224e03eb8f276f7@{#347374}
Python
bsd-3-clause
ltilve/ChromiumGStreamerBackend,CapOM/ChromiumGStreamerBackend,ltilve/ChromiumGStreamerBackend,CapOM/ChromiumGStreamerBackend,CapOM/ChromiumGStreamerBackend,CapOM/ChromiumGStreamerBackend,CapOM/ChromiumGStreamerBackend,ltilve/ChromiumGStreamerBackend,ltilve/ChromiumGStreamerBackend,ltilve/ChromiumGStreamerBackend,CapOM...
# Copyright 2014 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. from gpu_test_expectations import GpuTestExpectations # See the GpuTestExpectations class for documentation. class ContextLostExpectations(GpuTestExpectati...
# Copyright 2014 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. from gpu_test_expectations import GpuTestExpectations # See the GpuTestExpectations class for documentation. class ContextLostExpectations(GpuTestExpectati...
<commit_before># Copyright 2014 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. from gpu_test_expectations import GpuTestExpectations # See the GpuTestExpectations class for documentation. class ContextLostExpectations(G...
# Copyright 2014 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. from gpu_test_expectations import GpuTestExpectations # See the GpuTestExpectations class for documentation. class ContextLostExpectations(GpuTestExpectati...
# Copyright 2014 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. from gpu_test_expectations import GpuTestExpectations # See the GpuTestExpectations class for documentation. class ContextLostExpectations(GpuTestExpectati...
<commit_before># Copyright 2014 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. from gpu_test_expectations import GpuTestExpectations # See the GpuTestExpectations class for documentation. class ContextLostExpectations(G...
ed5be5a3c2d2f75812b800b09aa94b0702c38fc7
publishconf.py
publishconf.py
#!/usr/bin/env python # -*- coding: utf-8 -*- # from __future__ import unicode_literals # This file is only used if you use `make publish` or # explicitly specify it as your config file. import os import sys sys.path.append(os.curdir) from pelicanconf import * SITEURL = 'http://blog.uname.gr' RELATIVE_URLS = False ...
#!/usr/bin/env python # -*- coding: utf-8 -*- # from __future__ import unicode_literals # This file is only used if you use `make publish` or # explicitly specify it as your config file. import os import sys sys.path.append(os.curdir) from pelicanconf import * SITEURL = 'http://blog.uname.gr' RELATIVE_URLS = False ...
Add google analytics tracking id
Add google analytics tracking id Just so I can get an idea of who/what is looking at this blog
Python
mit
akosiaris/akosiaris.github.io,akosiaris/akosiaris.github.io
#!/usr/bin/env python # -*- coding: utf-8 -*- # from __future__ import unicode_literals # This file is only used if you use `make publish` or # explicitly specify it as your config file. import os import sys sys.path.append(os.curdir) from pelicanconf import * SITEURL = 'http://blog.uname.gr' RELATIVE_URLS = False ...
#!/usr/bin/env python # -*- coding: utf-8 -*- # from __future__ import unicode_literals # This file is only used if you use `make publish` or # explicitly specify it as your config file. import os import sys sys.path.append(os.curdir) from pelicanconf import * SITEURL = 'http://blog.uname.gr' RELATIVE_URLS = False ...
<commit_before>#!/usr/bin/env python # -*- coding: utf-8 -*- # from __future__ import unicode_literals # This file is only used if you use `make publish` or # explicitly specify it as your config file. import os import sys sys.path.append(os.curdir) from pelicanconf import * SITEURL = 'http://blog.uname.gr' RELATIVE...
#!/usr/bin/env python # -*- coding: utf-8 -*- # from __future__ import unicode_literals # This file is only used if you use `make publish` or # explicitly specify it as your config file. import os import sys sys.path.append(os.curdir) from pelicanconf import * SITEURL = 'http://blog.uname.gr' RELATIVE_URLS = False ...
#!/usr/bin/env python # -*- coding: utf-8 -*- # from __future__ import unicode_literals # This file is only used if you use `make publish` or # explicitly specify it as your config file. import os import sys sys.path.append(os.curdir) from pelicanconf import * SITEURL = 'http://blog.uname.gr' RELATIVE_URLS = False ...
<commit_before>#!/usr/bin/env python # -*- coding: utf-8 -*- # from __future__ import unicode_literals # This file is only used if you use `make publish` or # explicitly specify it as your config file. import os import sys sys.path.append(os.curdir) from pelicanconf import * SITEURL = 'http://blog.uname.gr' RELATIVE...
c81670e3ab8b5dcedc37def3a10803dde9b7c8b1
devicehive/transports/base_transport.py
devicehive/transports/base_transport.py
class BaseTransport(object): """Base transport class.""" def __init__(self, name, data_format_class, data_format_options, handler_class, handler_options): self.name = name self._data_format = data_format_class(**data_format_options) self._data_type = self._data_format.d...
class BaseTransport(object): """Base transport class.""" def __init__(self, name, data_format_class, data_format_options, handler_class, handler_options): self.name = name self._data_format = data_format_class(**data_format_options) self._data_type = self._data_format.d...
Remove action from required params
Remove action from required params
Python
apache-2.0
devicehive/devicehive-python
class BaseTransport(object): """Base transport class.""" def __init__(self, name, data_format_class, data_format_options, handler_class, handler_options): self.name = name self._data_format = data_format_class(**data_format_options) self._data_type = self._data_format.d...
class BaseTransport(object): """Base transport class.""" def __init__(self, name, data_format_class, data_format_options, handler_class, handler_options): self.name = name self._data_format = data_format_class(**data_format_options) self._data_type = self._data_format.d...
<commit_before>class BaseTransport(object): """Base transport class.""" def __init__(self, name, data_format_class, data_format_options, handler_class, handler_options): self.name = name self._data_format = data_format_class(**data_format_options) self._data_type = self...
class BaseTransport(object): """Base transport class.""" def __init__(self, name, data_format_class, data_format_options, handler_class, handler_options): self.name = name self._data_format = data_format_class(**data_format_options) self._data_type = self._data_format.d...
class BaseTransport(object): """Base transport class.""" def __init__(self, name, data_format_class, data_format_options, handler_class, handler_options): self.name = name self._data_format = data_format_class(**data_format_options) self._data_type = self._data_format.d...
<commit_before>class BaseTransport(object): """Base transport class.""" def __init__(self, name, data_format_class, data_format_options, handler_class, handler_options): self.name = name self._data_format = data_format_class(**data_format_options) self._data_type = self...
151e94d2d0208ac1984da105c6c7966b2a76c697
pymodels/TS_V04_01/__init__.py
pymodels/TS_V04_01/__init__.py
from .lattice import default_optics_mode from .lattice import energy from .accelerator import default_vchamber_on from .accelerator import default_radiation_on from .accelerator import accelerator_data from .accelerator import create_accelerator from .families import get_family_data from .families import family_mapp...
from .lattice import default_optics_mode from .lattice import energy from .accelerator import default_vchamber_on from .accelerator import default_radiation_on from .accelerator import accelerator_data from .accelerator import create_accelerator from .families import get_family_data from .families import family_mapp...
Add control system data to init.
TS.ENH: Add control system data to init.
Python
mit
lnls-fac/sirius
from .lattice import default_optics_mode from .lattice import energy from .accelerator import default_vchamber_on from .accelerator import default_radiation_on from .accelerator import accelerator_data from .accelerator import create_accelerator from .families import get_family_data from .families import family_mapp...
from .lattice import default_optics_mode from .lattice import energy from .accelerator import default_vchamber_on from .accelerator import default_radiation_on from .accelerator import accelerator_data from .accelerator import create_accelerator from .families import get_family_data from .families import family_mapp...
<commit_before> from .lattice import default_optics_mode from .lattice import energy from .accelerator import default_vchamber_on from .accelerator import default_radiation_on from .accelerator import accelerator_data from .accelerator import create_accelerator from .families import get_family_data from .families imp...
from .lattice import default_optics_mode from .lattice import energy from .accelerator import default_vchamber_on from .accelerator import default_radiation_on from .accelerator import accelerator_data from .accelerator import create_accelerator from .families import get_family_data from .families import family_mapp...
from .lattice import default_optics_mode from .lattice import energy from .accelerator import default_vchamber_on from .accelerator import default_radiation_on from .accelerator import accelerator_data from .accelerator import create_accelerator from .families import get_family_data from .families import family_mapp...
<commit_before> from .lattice import default_optics_mode from .lattice import energy from .accelerator import default_vchamber_on from .accelerator import default_radiation_on from .accelerator import accelerator_data from .accelerator import create_accelerator from .families import get_family_data from .families imp...
261f1751bb633b912a2782f1b109cb7b2232e18a
parsl/tests/test_staging/test_implicit_staging_globus.py
parsl/tests/test_staging/test_implicit_staging_globus.py
import pytest import parsl from parsl.app.app import App from parsl.data_provider.files import File from parsl.tests.configs.local_threads_globus import config parsl.clear() parsl.load(config) @App('python') def sort_strings(inputs=[], outputs=[]): with open(inputs[0].filepath, 'r') as u: strs = u.readl...
import pytest import parsl from parsl.app.app import App from parsl.data_provider.files import File from parsl.tests.configs.local_threads_globus import config parsl.clear() parsl.load(config) @App('python') def sort_strings(inputs=[], outputs=[]): with open(inputs[0].filepath, 'r') as u: strs = u.readl...
Correct the name of the test function
Correct the name of the test function
Python
apache-2.0
swift-lang/swift-e-lab,Parsl/parsl,Parsl/parsl,swift-lang/swift-e-lab,Parsl/parsl,Parsl/parsl
import pytest import parsl from parsl.app.app import App from parsl.data_provider.files import File from parsl.tests.configs.local_threads_globus import config parsl.clear() parsl.load(config) @App('python') def sort_strings(inputs=[], outputs=[]): with open(inputs[0].filepath, 'r') as u: strs = u.readl...
import pytest import parsl from parsl.app.app import App from parsl.data_provider.files import File from parsl.tests.configs.local_threads_globus import config parsl.clear() parsl.load(config) @App('python') def sort_strings(inputs=[], outputs=[]): with open(inputs[0].filepath, 'r') as u: strs = u.readl...
<commit_before>import pytest import parsl from parsl.app.app import App from parsl.data_provider.files import File from parsl.tests.configs.local_threads_globus import config parsl.clear() parsl.load(config) @App('python') def sort_strings(inputs=[], outputs=[]): with open(inputs[0].filepath, 'r') as u: ...
import pytest import parsl from parsl.app.app import App from parsl.data_provider.files import File from parsl.tests.configs.local_threads_globus import config parsl.clear() parsl.load(config) @App('python') def sort_strings(inputs=[], outputs=[]): with open(inputs[0].filepath, 'r') as u: strs = u.readl...
import pytest import parsl from parsl.app.app import App from parsl.data_provider.files import File from parsl.tests.configs.local_threads_globus import config parsl.clear() parsl.load(config) @App('python') def sort_strings(inputs=[], outputs=[]): with open(inputs[0].filepath, 'r') as u: strs = u.readl...
<commit_before>import pytest import parsl from parsl.app.app import App from parsl.data_provider.files import File from parsl.tests.configs.local_threads_globus import config parsl.clear() parsl.load(config) @App('python') def sort_strings(inputs=[], outputs=[]): with open(inputs[0].filepath, 'r') as u: ...
71695f6cb8f939de924c29ef5ba2d69326608fa1
hkijwt/models.py
hkijwt/models.py
from django.db import models from django.conf import settings class AppToAppPermission(models.Model): requester = models.ForeignKey(settings.OAUTH2_PROVIDER_APPLICATION_MODEL, db_index=True, related_name='+') target = models.ForeignKey(settings.OAUTH2_PROVIDER_APPLICATION_MOD...
from django.db import models from django.conf import settings class AppToAppPermission(models.Model): requester = models.ForeignKey(settings.OAUTH2_PROVIDER_APPLICATION_MODEL, db_index=True, related_name='+') target = models.ForeignKey(settings.OAUTH2_PROVIDER_APPLICATION_MOD...
Add __str__ method to AppToAppPermission
Add __str__ method to AppToAppPermission
Python
mit
mikkokeskinen/tunnistamo,mikkokeskinen/tunnistamo
from django.db import models from django.conf import settings class AppToAppPermission(models.Model): requester = models.ForeignKey(settings.OAUTH2_PROVIDER_APPLICATION_MODEL, db_index=True, related_name='+') target = models.ForeignKey(settings.OAUTH2_PROVIDER_APPLICATION_MOD...
from django.db import models from django.conf import settings class AppToAppPermission(models.Model): requester = models.ForeignKey(settings.OAUTH2_PROVIDER_APPLICATION_MODEL, db_index=True, related_name='+') target = models.ForeignKey(settings.OAUTH2_PROVIDER_APPLICATION_MOD...
<commit_before>from django.db import models from django.conf import settings class AppToAppPermission(models.Model): requester = models.ForeignKey(settings.OAUTH2_PROVIDER_APPLICATION_MODEL, db_index=True, related_name='+') target = models.ForeignKey(settings.OAUTH2_PROVIDER_...
from django.db import models from django.conf import settings class AppToAppPermission(models.Model): requester = models.ForeignKey(settings.OAUTH2_PROVIDER_APPLICATION_MODEL, db_index=True, related_name='+') target = models.ForeignKey(settings.OAUTH2_PROVIDER_APPLICATION_MOD...
from django.db import models from django.conf import settings class AppToAppPermission(models.Model): requester = models.ForeignKey(settings.OAUTH2_PROVIDER_APPLICATION_MODEL, db_index=True, related_name='+') target = models.ForeignKey(settings.OAUTH2_PROVIDER_APPLICATION_MOD...
<commit_before>from django.db import models from django.conf import settings class AppToAppPermission(models.Model): requester = models.ForeignKey(settings.OAUTH2_PROVIDER_APPLICATION_MODEL, db_index=True, related_name='+') target = models.ForeignKey(settings.OAUTH2_PROVIDER_...
4379d143cfb5bb4c49febd881d7691aed7039210
judge/sandbox.py
judge/sandbox.py
import asyncio class Sandbox: def __init__(self): self._process = None async def start(self): if self._process is not None: raise ValueError("The sandbox has started") self._process = await asyncio.create_subprocess_exec( "sandbox", stdin = as...
import asyncio class Sandbox: def __init__(self): self._process = None async def start(self): if self._process is not None: raise ValueError("The sandbox has started") self._process = await asyncio.create_subprocess_exec( "sandbox", stdin = as...
Implement read of Python wrapper
Implement read of Python wrapper
Python
agpl-3.0
johnchen902/toyoj,johnchen902/toyoj,johnchen902/toyoj,johnchen902/toyoj,johnchen902/toyoj,johnchen902/toyoj
import asyncio class Sandbox: def __init__(self): self._process = None async def start(self): if self._process is not None: raise ValueError("The sandbox has started") self._process = await asyncio.create_subprocess_exec( "sandbox", stdin = as...
import asyncio class Sandbox: def __init__(self): self._process = None async def start(self): if self._process is not None: raise ValueError("The sandbox has started") self._process = await asyncio.create_subprocess_exec( "sandbox", stdin = as...
<commit_before>import asyncio class Sandbox: def __init__(self): self._process = None async def start(self): if self._process is not None: raise ValueError("The sandbox has started") self._process = await asyncio.create_subprocess_exec( "sandbox", ...
import asyncio class Sandbox: def __init__(self): self._process = None async def start(self): if self._process is not None: raise ValueError("The sandbox has started") self._process = await asyncio.create_subprocess_exec( "sandbox", stdin = as...
import asyncio class Sandbox: def __init__(self): self._process = None async def start(self): if self._process is not None: raise ValueError("The sandbox has started") self._process = await asyncio.create_subprocess_exec( "sandbox", stdin = as...
<commit_before>import asyncio class Sandbox: def __init__(self): self._process = None async def start(self): if self._process is not None: raise ValueError("The sandbox has started") self._process = await asyncio.create_subprocess_exec( "sandbox", ...
e50744ecf87e2210de9fb32bf8c34e71e1752463
stack-builder/hiera_config.py
stack-builder/hiera_config.py
#!/usr/bin/env python """ stack-builder.hiera_config ~~~~~~~~~~~~~~~~~~~~~~~~~~ This module will read metadata set during instance launch and override any yaml under the /etc/puppet/data directory (except data_mappings) that has a key matching the metadata """ import yaml import os hiera_dir ...
#!/usr/bin/env python """ stack-builder.hiera_config ~~~~~~~~~~~~~~~~~~~~~~~~~~ This module will read metadata set during instance launch and override any yaml under the /etc/puppet/data directory (except data_mappings) that has a key matching the metadata """ import yaml import os hiera_dir ...
Fix bug dealing with spaces in exports
Fix bug dealing with spaces in exports
Python
apache-2.0
phchoic/puppet_openstack_builder,michaeltchapman/puppet_openstack_builder,michaeltchapman/puppet_openstack_builder,CiscoSystems/openstack-installer--to-be-replaced-by-puppet_openstack_builder,CiscoSystems/puppet_openstack_builder--to-be-deleted,michaeltchapman/vagrant-consul,CiscoSystems/puppet_openstack_builder,michae...
#!/usr/bin/env python """ stack-builder.hiera_config ~~~~~~~~~~~~~~~~~~~~~~~~~~ This module will read metadata set during instance launch and override any yaml under the /etc/puppet/data directory (except data_mappings) that has a key matching the metadata """ import yaml import os hiera_dir ...
#!/usr/bin/env python """ stack-builder.hiera_config ~~~~~~~~~~~~~~~~~~~~~~~~~~ This module will read metadata set during instance launch and override any yaml under the /etc/puppet/data directory (except data_mappings) that has a key matching the metadata """ import yaml import os hiera_dir ...
<commit_before>#!/usr/bin/env python """ stack-builder.hiera_config ~~~~~~~~~~~~~~~~~~~~~~~~~~ This module will read metadata set during instance launch and override any yaml under the /etc/puppet/data directory (except data_mappings) that has a key matching the metadata """ import yaml import...
#!/usr/bin/env python """ stack-builder.hiera_config ~~~~~~~~~~~~~~~~~~~~~~~~~~ This module will read metadata set during instance launch and override any yaml under the /etc/puppet/data directory (except data_mappings) that has a key matching the metadata """ import yaml import os hiera_dir ...
#!/usr/bin/env python """ stack-builder.hiera_config ~~~~~~~~~~~~~~~~~~~~~~~~~~ This module will read metadata set during instance launch and override any yaml under the /etc/puppet/data directory (except data_mappings) that has a key matching the metadata """ import yaml import os hiera_dir ...
<commit_before>#!/usr/bin/env python """ stack-builder.hiera_config ~~~~~~~~~~~~~~~~~~~~~~~~~~ This module will read metadata set during instance launch and override any yaml under the /etc/puppet/data directory (except data_mappings) that has a key matching the metadata """ import yaml import...
b2173452d9cd2c0696c28eedc7129e4c883ad464
setup.py
setup.py
from setuptools import setup, find_packages import sys, os version = '0.0' setup(name='tilequeue', version=version, description="", long_description="""\ """, classifiers=[], # Get strings from http://pypi.python.org/pypi?%3Aaction=list_classifiers keywords='', author='', aut...
from setuptools import setup, find_packages import sys, os version = '0.0' setup(name='tilequeue', version=version, description="", long_description="""\ """, classifiers=[], # Get strings from http://pypi.python.org/pypi?%3Aaction=list_classifiers keywords='', author='', aut...
Use exact case for ModestMaps dependency
Use exact case for ModestMaps dependency
Python
mit
tilezen/tilequeue,mapzen/tilequeue
from setuptools import setup, find_packages import sys, os version = '0.0' setup(name='tilequeue', version=version, description="", long_description="""\ """, classifiers=[], # Get strings from http://pypi.python.org/pypi?%3Aaction=list_classifiers keywords='', author='', aut...
from setuptools import setup, find_packages import sys, os version = '0.0' setup(name='tilequeue', version=version, description="", long_description="""\ """, classifiers=[], # Get strings from http://pypi.python.org/pypi?%3Aaction=list_classifiers keywords='', author='', aut...
<commit_before>from setuptools import setup, find_packages import sys, os version = '0.0' setup(name='tilequeue', version=version, description="", long_description="""\ """, classifiers=[], # Get strings from http://pypi.python.org/pypi?%3Aaction=list_classifiers keywords='', autho...
from setuptools import setup, find_packages import sys, os version = '0.0' setup(name='tilequeue', version=version, description="", long_description="""\ """, classifiers=[], # Get strings from http://pypi.python.org/pypi?%3Aaction=list_classifiers keywords='', author='', aut...
from setuptools import setup, find_packages import sys, os version = '0.0' setup(name='tilequeue', version=version, description="", long_description="""\ """, classifiers=[], # Get strings from http://pypi.python.org/pypi?%3Aaction=list_classifiers keywords='', author='', aut...
<commit_before>from setuptools import setup, find_packages import sys, os version = '0.0' setup(name='tilequeue', version=version, description="", long_description="""\ """, classifiers=[], # Get strings from http://pypi.python.org/pypi?%3Aaction=list_classifiers keywords='', autho...
6441d8b811cfe57fa185272307b0eae3876f29d2
setup.py
setup.py
#!/usr/bin/env python import os from setuptools import setup with open(os.path.join(os.path.dirname(__file__), 'README.rst'), "r") as readme_file: readme = readme_file.read() setup( name = "outpan", version = "0.1.2", description = "Easily use Outpan.com API to get product info from their barcode", ...
#!/usr/bin/env python import os from setuptools import setup with open(os.path.join(os.path.dirname(__file__), 'README.rst'), "r") as readme_file: readme = readme_file.read() setup( name = "outpan", version = "0.1.2", description = "Easily use Outpan.com API to get product info from their barcode", ...
Add specifier for python 2 and 3 for the package
Add specifier for python 2 and 3 for the package
Python
mit
bertrandvidal/outpan_api
#!/usr/bin/env python import os from setuptools import setup with open(os.path.join(os.path.dirname(__file__), 'README.rst'), "r") as readme_file: readme = readme_file.read() setup( name = "outpan", version = "0.1.2", description = "Easily use Outpan.com API to get product info from their barcode", ...
#!/usr/bin/env python import os from setuptools import setup with open(os.path.join(os.path.dirname(__file__), 'README.rst'), "r") as readme_file: readme = readme_file.read() setup( name = "outpan", version = "0.1.2", description = "Easily use Outpan.com API to get product info from their barcode", ...
<commit_before>#!/usr/bin/env python import os from setuptools import setup with open(os.path.join(os.path.dirname(__file__), 'README.rst'), "r") as readme_file: readme = readme_file.read() setup( name = "outpan", version = "0.1.2", description = "Easily use Outpan.com API to get product info from the...
#!/usr/bin/env python import os from setuptools import setup with open(os.path.join(os.path.dirname(__file__), 'README.rst'), "r") as readme_file: readme = readme_file.read() setup( name = "outpan", version = "0.1.2", description = "Easily use Outpan.com API to get product info from their barcode", ...
#!/usr/bin/env python import os from setuptools import setup with open(os.path.join(os.path.dirname(__file__), 'README.rst'), "r") as readme_file: readme = readme_file.read() setup( name = "outpan", version = "0.1.2", description = "Easily use Outpan.com API to get product info from their barcode", ...
<commit_before>#!/usr/bin/env python import os from setuptools import setup with open(os.path.join(os.path.dirname(__file__), 'README.rst'), "r") as readme_file: readme = readme_file.read() setup( name = "outpan", version = "0.1.2", description = "Easily use Outpan.com API to get product info from the...
0f82dc0a2416e8cedcb9dd76d13fd97920f86b6b
setup.py
setup.py
from setuptools import setup, find_packages import os version = '0.4' here = os.path.abspath(os.path.dirname(__file__)) try: README = open(os.path.join(here, 'README.txt')).read() CHANGES = open(os.path.join(here, 'docs/HISTORY.txt')).read() except IOError: README = CHANGES = '' setup(name='tgext.admin', ...
from setuptools import setup, find_packages import os version = '0.5' here = os.path.abspath(os.path.dirname(__file__)) try: README = open(os.path.join(here, 'README.txt')).read() CHANGES = open(os.path.join(here, 'docs/HISTORY.txt')).read() except IOError: README = CHANGES = '' setup(name='tgext.admin', ...
Raise version and change keywords for upcoming release
Raise version and change keywords for upcoming release
Python
mit
pedersen/tgtools.tgext-admin,pedersen/tgtools.tgext-admin
from setuptools import setup, find_packages import os version = '0.4' here = os.path.abspath(os.path.dirname(__file__)) try: README = open(os.path.join(here, 'README.txt')).read() CHANGES = open(os.path.join(here, 'docs/HISTORY.txt')).read() except IOError: README = CHANGES = '' setup(name='tgext.admin', ...
from setuptools import setup, find_packages import os version = '0.5' here = os.path.abspath(os.path.dirname(__file__)) try: README = open(os.path.join(here, 'README.txt')).read() CHANGES = open(os.path.join(here, 'docs/HISTORY.txt')).read() except IOError: README = CHANGES = '' setup(name='tgext.admin', ...
<commit_before>from setuptools import setup, find_packages import os version = '0.4' here = os.path.abspath(os.path.dirname(__file__)) try: README = open(os.path.join(here, 'README.txt')).read() CHANGES = open(os.path.join(here, 'docs/HISTORY.txt')).read() except IOError: README = CHANGES = '' setup(name=...
from setuptools import setup, find_packages import os version = '0.5' here = os.path.abspath(os.path.dirname(__file__)) try: README = open(os.path.join(here, 'README.txt')).read() CHANGES = open(os.path.join(here, 'docs/HISTORY.txt')).read() except IOError: README = CHANGES = '' setup(name='tgext.admin', ...
from setuptools import setup, find_packages import os version = '0.4' here = os.path.abspath(os.path.dirname(__file__)) try: README = open(os.path.join(here, 'README.txt')).read() CHANGES = open(os.path.join(here, 'docs/HISTORY.txt')).read() except IOError: README = CHANGES = '' setup(name='tgext.admin', ...
<commit_before>from setuptools import setup, find_packages import os version = '0.4' here = os.path.abspath(os.path.dirname(__file__)) try: README = open(os.path.join(here, 'README.txt')).read() CHANGES = open(os.path.join(here, 'docs/HISTORY.txt')).read() except IOError: README = CHANGES = '' setup(name=...
7ab500f33653379e7270bd303cd7438aec62c9ad
setup.py
setup.py
# Copyright 2012 Loop Lab # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, sof...
# Copyright 2012 Loop Lab # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, sof...
Add requirement of argparse on old python
Add requirement of argparse on old python
Python
apache-2.0
looplab/skal
# Copyright 2012 Loop Lab # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, sof...
# Copyright 2012 Loop Lab # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, sof...
<commit_before># Copyright 2012 Loop Lab # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to ...
# Copyright 2012 Loop Lab # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, sof...
# Copyright 2012 Loop Lab # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, sof...
<commit_before># Copyright 2012 Loop Lab # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to ...
d30062a1f0b865de646b0f2f8d9d176ca9b92769
setup.py
setup.py
import os from setuptools import setup PACKAGE_VERSION = '0.3' def version(): def version_file(mode='r'): return open(os.path.join(__path__, 'version.txt'), mode) if os.getenv('TRAVIS'): with version_file('w') as verfile: verfile.write('{0}.{1}'.format(PACKAGE_VERSION, os.getenv...
import os from setuptools import setup PACKAGE_VERSION = '0.3' def version(): def version_file(mode='r'): return open(os.path.dirname(os.path.abspath(__file__), 'version.txt'), mode) if os.getenv('TRAVIS'): with version_file('w') as verfile: verfile.write('{0}.{1}'.format(PACKAG...
Fix issue with path variable
Fix issue with path variable
Python
apache-2.0
odin-public/osaAPI
import os from setuptools import setup PACKAGE_VERSION = '0.3' def version(): def version_file(mode='r'): return open(os.path.join(__path__, 'version.txt'), mode) if os.getenv('TRAVIS'): with version_file('w') as verfile: verfile.write('{0}.{1}'.format(PACKAGE_VERSION, os.getenv...
import os from setuptools import setup PACKAGE_VERSION = '0.3' def version(): def version_file(mode='r'): return open(os.path.dirname(os.path.abspath(__file__), 'version.txt'), mode) if os.getenv('TRAVIS'): with version_file('w') as verfile: verfile.write('{0}.{1}'.format(PACKAG...
<commit_before>import os from setuptools import setup PACKAGE_VERSION = '0.3' def version(): def version_file(mode='r'): return open(os.path.join(__path__, 'version.txt'), mode) if os.getenv('TRAVIS'): with version_file('w') as verfile: verfile.write('{0}.{1}'.format(PACKAGE_VER...
import os from setuptools import setup PACKAGE_VERSION = '0.3' def version(): def version_file(mode='r'): return open(os.path.dirname(os.path.abspath(__file__), 'version.txt'), mode) if os.getenv('TRAVIS'): with version_file('w') as verfile: verfile.write('{0}.{1}'.format(PACKAG...
import os from setuptools import setup PACKAGE_VERSION = '0.3' def version(): def version_file(mode='r'): return open(os.path.join(__path__, 'version.txt'), mode) if os.getenv('TRAVIS'): with version_file('w') as verfile: verfile.write('{0}.{1}'.format(PACKAGE_VERSION, os.getenv...
<commit_before>import os from setuptools import setup PACKAGE_VERSION = '0.3' def version(): def version_file(mode='r'): return open(os.path.join(__path__, 'version.txt'), mode) if os.getenv('TRAVIS'): with version_file('w') as verfile: verfile.write('{0}.{1}'.format(PACKAGE_VER...
6aebc52f5e0403dbd6a2580e50373c9f393174c2
setup.py
setup.py
from setuptools import setup, find_packages from ckanext.qa import __version__ setup( name='ckanext-qa', version=__version__, description='Quality Assurance plugin for CKAN', long_description='', classifiers=[], keywords='', author='Open Knowledge Foundation', author_email='info@okfn.or...
from setuptools import setup, find_packages from ckanext.qa import __version__ setup( name='ckanext-qa', version=__version__, description='Quality Assurance plugin for CKAN', long_description='', classifiers=[], keywords='', author='Open Knowledge Foundation', author_email='info@okfn.or...
Allow newer requests. Still to try out and find any issues.
Allow newer requests. Still to try out and find any issues.
Python
mit
ckan/ckanext-qa,ckan/ckanext-qa,ckan/ckanext-qa
from setuptools import setup, find_packages from ckanext.qa import __version__ setup( name='ckanext-qa', version=__version__, description='Quality Assurance plugin for CKAN', long_description='', classifiers=[], keywords='', author='Open Knowledge Foundation', author_email='info@okfn.or...
from setuptools import setup, find_packages from ckanext.qa import __version__ setup( name='ckanext-qa', version=__version__, description='Quality Assurance plugin for CKAN', long_description='', classifiers=[], keywords='', author='Open Knowledge Foundation', author_email='info@okfn.or...
<commit_before>from setuptools import setup, find_packages from ckanext.qa import __version__ setup( name='ckanext-qa', version=__version__, description='Quality Assurance plugin for CKAN', long_description='', classifiers=[], keywords='', author='Open Knowledge Foundation', author_emai...
from setuptools import setup, find_packages from ckanext.qa import __version__ setup( name='ckanext-qa', version=__version__, description='Quality Assurance plugin for CKAN', long_description='', classifiers=[], keywords='', author='Open Knowledge Foundation', author_email='info@okfn.or...
from setuptools import setup, find_packages from ckanext.qa import __version__ setup( name='ckanext-qa', version=__version__, description='Quality Assurance plugin for CKAN', long_description='', classifiers=[], keywords='', author='Open Knowledge Foundation', author_email='info@okfn.or...
<commit_before>from setuptools import setup, find_packages from ckanext.qa import __version__ setup( name='ckanext-qa', version=__version__, description='Quality Assurance plugin for CKAN', long_description='', classifiers=[], keywords='', author='Open Knowledge Foundation', author_emai...
c03a8dbe6327220d2113837084cde5a1386c021f
setup.py
setup.py
from setuptools import setup setup( name='slacker', version='0.9.42', packages=['slacker'], description='Slack API client', author='Oktay Sancak', author_email='oktaysancak@gmail.com', url='http://github.com/os/slacker/', install_requires=['requests >= 2.2.1'], license='http://www....
from setuptools import setup setup( name='slacker', version='0.9.42', packages=['slacker'], description='Slack API client', author='Oktay Sancak', author_email='oktaysancak@gmail.com', url='http://github.com/os/slacker/', install_requires=['requests >= 2.2.1'], license='http://www....
Add Python 3.5 and 3.6 classifiers
Add Python 3.5 and 3.6 classifiers
Python
apache-2.0
os/slacker
from setuptools import setup setup( name='slacker', version='0.9.42', packages=['slacker'], description='Slack API client', author='Oktay Sancak', author_email='oktaysancak@gmail.com', url='http://github.com/os/slacker/', install_requires=['requests >= 2.2.1'], license='http://www....
from setuptools import setup setup( name='slacker', version='0.9.42', packages=['slacker'], description='Slack API client', author='Oktay Sancak', author_email='oktaysancak@gmail.com', url='http://github.com/os/slacker/', install_requires=['requests >= 2.2.1'], license='http://www....
<commit_before>from setuptools import setup setup( name='slacker', version='0.9.42', packages=['slacker'], description='Slack API client', author='Oktay Sancak', author_email='oktaysancak@gmail.com', url='http://github.com/os/slacker/', install_requires=['requests >= 2.2.1'], licen...
from setuptools import setup setup( name='slacker', version='0.9.42', packages=['slacker'], description='Slack API client', author='Oktay Sancak', author_email='oktaysancak@gmail.com', url='http://github.com/os/slacker/', install_requires=['requests >= 2.2.1'], license='http://www....
from setuptools import setup setup( name='slacker', version='0.9.42', packages=['slacker'], description='Slack API client', author='Oktay Sancak', author_email='oktaysancak@gmail.com', url='http://github.com/os/slacker/', install_requires=['requests >= 2.2.1'], license='http://www....
<commit_before>from setuptools import setup setup( name='slacker', version='0.9.42', packages=['slacker'], description='Slack API client', author='Oktay Sancak', author_email='oktaysancak@gmail.com', url='http://github.com/os/slacker/', install_requires=['requests >= 2.2.1'], licen...
fa98e9a126fb5c45ed0ff4b366ec2d0e4e748dc1
setup.py
setup.py
#!/usr/bin/env python from distutils.core import setup import subprocess import sys import os path = os.path.dirname(os.path.realpath(__file__)) submodule_path = os.path.join(path, "spacescout_admin") subprocess.call(["git", "submodule", "init"], cwd=path) subprocess.call(["git", "submodule", "update"], cwd=path) s...
#!/usr/bin/env python from distutils.core import setup import subprocess import sys import os path = os.path.dirname(os.path.realpath(__file__)) submodule_path = os.path.join(path, "spacescout_admin") subprocess.call(["git", "submodule", "init"], cwd=path) subprocess.call(["git", "submodule", "update"], cwd=path) s...
Revert to master (for prod host)
Revert to master (for prod host)
Python
apache-2.0
vegitron/spacescout_admin_wrapper
#!/usr/bin/env python from distutils.core import setup import subprocess import sys import os path = os.path.dirname(os.path.realpath(__file__)) submodule_path = os.path.join(path, "spacescout_admin") subprocess.call(["git", "submodule", "init"], cwd=path) subprocess.call(["git", "submodule", "update"], cwd=path) s...
#!/usr/bin/env python from distutils.core import setup import subprocess import sys import os path = os.path.dirname(os.path.realpath(__file__)) submodule_path = os.path.join(path, "spacescout_admin") subprocess.call(["git", "submodule", "init"], cwd=path) subprocess.call(["git", "submodule", "update"], cwd=path) s...
<commit_before>#!/usr/bin/env python from distutils.core import setup import subprocess import sys import os path = os.path.dirname(os.path.realpath(__file__)) submodule_path = os.path.join(path, "spacescout_admin") subprocess.call(["git", "submodule", "init"], cwd=path) subprocess.call(["git", "submodule", "update...
#!/usr/bin/env python from distutils.core import setup import subprocess import sys import os path = os.path.dirname(os.path.realpath(__file__)) submodule_path = os.path.join(path, "spacescout_admin") subprocess.call(["git", "submodule", "init"], cwd=path) subprocess.call(["git", "submodule", "update"], cwd=path) s...
#!/usr/bin/env python from distutils.core import setup import subprocess import sys import os path = os.path.dirname(os.path.realpath(__file__)) submodule_path = os.path.join(path, "spacescout_admin") subprocess.call(["git", "submodule", "init"], cwd=path) subprocess.call(["git", "submodule", "update"], cwd=path) s...
<commit_before>#!/usr/bin/env python from distutils.core import setup import subprocess import sys import os path = os.path.dirname(os.path.realpath(__file__)) submodule_path = os.path.join(path, "spacescout_admin") subprocess.call(["git", "submodule", "init"], cwd=path) subprocess.call(["git", "submodule", "update...
cf1de931650a3a5d30cd39e621edc5557af95da8
setup.py
setup.py
# encoding: utf-8 import os from setuptools import setup, find_packages README = open(os.path.join(os.path.dirname(__file__), 'README.rst')).read() os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir))) setup( name='django-emoji', version='2.0.0', packages=find_packages(exclude=('...
# encoding: utf-8 import os from setuptools import setup, find_packages README = open(os.path.join(os.path.dirname(__file__), 'README.rst')).read() os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir))) setup( name='django-emoji', version='2.1.0', packages=find_packages(exclude=('...
Update package version to 2.1.0
Update package version to 2.1.0
Python
mit
gaqzi/django-emoji,gaqzi/django-emoji,gaqzi/django-emoji
# encoding: utf-8 import os from setuptools import setup, find_packages README = open(os.path.join(os.path.dirname(__file__), 'README.rst')).read() os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir))) setup( name='django-emoji', version='2.0.0', packages=find_packages(exclude=('...
# encoding: utf-8 import os from setuptools import setup, find_packages README = open(os.path.join(os.path.dirname(__file__), 'README.rst')).read() os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir))) setup( name='django-emoji', version='2.1.0', packages=find_packages(exclude=('...
<commit_before># encoding: utf-8 import os from setuptools import setup, find_packages README = open(os.path.join(os.path.dirname(__file__), 'README.rst')).read() os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir))) setup( name='django-emoji', version='2.0.0', packages=find_pack...
# encoding: utf-8 import os from setuptools import setup, find_packages README = open(os.path.join(os.path.dirname(__file__), 'README.rst')).read() os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir))) setup( name='django-emoji', version='2.1.0', packages=find_packages(exclude=('...
# encoding: utf-8 import os from setuptools import setup, find_packages README = open(os.path.join(os.path.dirname(__file__), 'README.rst')).read() os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir))) setup( name='django-emoji', version='2.0.0', packages=find_packages(exclude=('...
<commit_before># encoding: utf-8 import os from setuptools import setup, find_packages README = open(os.path.join(os.path.dirname(__file__), 'README.rst')).read() os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir))) setup( name='django-emoji', version='2.0.0', packages=find_pack...
b8f15ec910e71ef47845c6751fffca81e2b1cbe1
setup.py
setup.py
#!/usr/bin/env python import os import sys try: from setuptools import setup except ImportError: from distutils.core import setup if sys.argv[-1] == 'publish': os.system('python setup.py sdist upload') sys.exit(0) with open('README.rst', 'r') as f: long_description = f.read() # Dynamically calcu...
#!/usr/bin/env python import os import sys try: from setuptools import setup except ImportError: from distutils.core import setup if sys.argv[-1] == 'publish': os.system('python setup.py sdist upload') sys.exit(0) with open('README.rst', 'r') as f: long_description = f.read() # Dynamically calcu...
Fix a remaining reference to 'swingtime' in a comment
Fix a remaining reference to 'swingtime' in a comment
Python
mit
jonge-democraten/mezzanine-fullcalendar
#!/usr/bin/env python import os import sys try: from setuptools import setup except ImportError: from distutils.core import setup if sys.argv[-1] == 'publish': os.system('python setup.py sdist upload') sys.exit(0) with open('README.rst', 'r') as f: long_description = f.read() # Dynamically calcu...
#!/usr/bin/env python import os import sys try: from setuptools import setup except ImportError: from distutils.core import setup if sys.argv[-1] == 'publish': os.system('python setup.py sdist upload') sys.exit(0) with open('README.rst', 'r') as f: long_description = f.read() # Dynamically calcu...
<commit_before>#!/usr/bin/env python import os import sys try: from setuptools import setup except ImportError: from distutils.core import setup if sys.argv[-1] == 'publish': os.system('python setup.py sdist upload') sys.exit(0) with open('README.rst', 'r') as f: long_description = f.read() # Dy...
#!/usr/bin/env python import os import sys try: from setuptools import setup except ImportError: from distutils.core import setup if sys.argv[-1] == 'publish': os.system('python setup.py sdist upload') sys.exit(0) with open('README.rst', 'r') as f: long_description = f.read() # Dynamically calcu...
#!/usr/bin/env python import os import sys try: from setuptools import setup except ImportError: from distutils.core import setup if sys.argv[-1] == 'publish': os.system('python setup.py sdist upload') sys.exit(0) with open('README.rst', 'r') as f: long_description = f.read() # Dynamically calcu...
<commit_before>#!/usr/bin/env python import os import sys try: from setuptools import setup except ImportError: from distutils.core import setup if sys.argv[-1] == 'publish': os.system('python setup.py sdist upload') sys.exit(0) with open('README.rst', 'r') as f: long_description = f.read() # Dy...
c308662a1f917f7f4b29791caa954e33452ab365
setup.py
setup.py
from setuptools import setup import os def read(filename): with open(filename) as fin: return fin.read() setup( name='jstree', version='0.1', author='William Grim', author_email='william@grimapps.com', url='https://github.com/grimwm/py-jstree', classifiers = [ 'Development Status :: 4 - Beta', ...
from setuptools import setup import os def read(filename): with open(filename) as fin: return fin.read() setup( name='jstree', version='0.1', author='William Grim', author_email='william@grimapps.com', url='https://github.com/grimwm/py-jstree', classifiers = [ 'Development Status :: 2 - Pre-Alph...
Downgrade the status of the project since it is new.
Downgrade the status of the project since it is new.
Python
apache-2.0
grimwm/py-jstree,grimwm/py-jstree
from setuptools import setup import os def read(filename): with open(filename) as fin: return fin.read() setup( name='jstree', version='0.1', author='William Grim', author_email='william@grimapps.com', url='https://github.com/grimwm/py-jstree', classifiers = [ 'Development Status :: 4 - Beta', ...
from setuptools import setup import os def read(filename): with open(filename) as fin: return fin.read() setup( name='jstree', version='0.1', author='William Grim', author_email='william@grimapps.com', url='https://github.com/grimwm/py-jstree', classifiers = [ 'Development Status :: 2 - Pre-Alph...
<commit_before>from setuptools import setup import os def read(filename): with open(filename) as fin: return fin.read() setup( name='jstree', version='0.1', author='William Grim', author_email='william@grimapps.com', url='https://github.com/grimwm/py-jstree', classifiers = [ 'Development Status ...
from setuptools import setup import os def read(filename): with open(filename) as fin: return fin.read() setup( name='jstree', version='0.1', author='William Grim', author_email='william@grimapps.com', url='https://github.com/grimwm/py-jstree', classifiers = [ 'Development Status :: 2 - Pre-Alph...
from setuptools import setup import os def read(filename): with open(filename) as fin: return fin.read() setup( name='jstree', version='0.1', author='William Grim', author_email='william@grimapps.com', url='https://github.com/grimwm/py-jstree', classifiers = [ 'Development Status :: 4 - Beta', ...
<commit_before>from setuptools import setup import os def read(filename): with open(filename) as fin: return fin.read() setup( name='jstree', version='0.1', author='William Grim', author_email='william@grimapps.com', url='https://github.com/grimwm/py-jstree', classifiers = [ 'Development Status ...
d9b582694560684f89d89b3fd0c3269665a843d2
setup.py
setup.py
#!/usr/bin/env python3 from setuptools import setup, find_packages setup( name='django-afip', version='0.8.0', description='AFIP integration for django', author='Hugo Osvaldo Barrera', author_email='hbarrera@z47.io', url='https://gitlab.com/hobarrera/django-afip', license='ISC', packag...
#!/usr/bin/env python3 from setuptools import setup, find_packages setup( name='django-afip', version='0.8.0', description='AFIP integration for django', author='Hugo Osvaldo Barrera', author_email='hbarrera@z47.io', url='https://gitlab.com/hobarrera/django-afip', license='ISC', packag...
Include package data in builds
Include package data in builds
Python
isc
hobarrera/django-afip,hobarrera/django-afip
#!/usr/bin/env python3 from setuptools import setup, find_packages setup( name='django-afip', version='0.8.0', description='AFIP integration for django', author='Hugo Osvaldo Barrera', author_email='hbarrera@z47.io', url='https://gitlab.com/hobarrera/django-afip', license='ISC', packag...
#!/usr/bin/env python3 from setuptools import setup, find_packages setup( name='django-afip', version='0.8.0', description='AFIP integration for django', author='Hugo Osvaldo Barrera', author_email='hbarrera@z47.io', url='https://gitlab.com/hobarrera/django-afip', license='ISC', packag...
<commit_before>#!/usr/bin/env python3 from setuptools import setup, find_packages setup( name='django-afip', version='0.8.0', description='AFIP integration for django', author='Hugo Osvaldo Barrera', author_email='hbarrera@z47.io', url='https://gitlab.com/hobarrera/django-afip', license='I...
#!/usr/bin/env python3 from setuptools import setup, find_packages setup( name='django-afip', version='0.8.0', description='AFIP integration for django', author='Hugo Osvaldo Barrera', author_email='hbarrera@z47.io', url='https://gitlab.com/hobarrera/django-afip', license='ISC', packag...
#!/usr/bin/env python3 from setuptools import setup, find_packages setup( name='django-afip', version='0.8.0', description='AFIP integration for django', author='Hugo Osvaldo Barrera', author_email='hbarrera@z47.io', url='https://gitlab.com/hobarrera/django-afip', license='ISC', packag...
<commit_before>#!/usr/bin/env python3 from setuptools import setup, find_packages setup( name='django-afip', version='0.8.0', description='AFIP integration for django', author='Hugo Osvaldo Barrera', author_email='hbarrera@z47.io', url='https://gitlab.com/hobarrera/django-afip', license='I...
bb83eb66896e99848d4426f6dc8b23b88f0b35bc
setup.py
setup.py
#!/usr/bin/env python # Copyright (c) Ralph Meijer. # See LICENSE for details. from setuptools import setup setup(name='wokkel', version='0.7.0', description='Twisted Jabber support library', author='Ralph Meijer', author_email='ralphm@ik.nu', maintainer_email='ralphm@ik.nu', url=...
#!/usr/bin/env python # Copyright (c) Ralph Meijer. # See LICENSE for details. from setuptools import setup # Make sure 'twisted' doesn't appear in top_level.txt try: from setuptools.command import egg_info egg_info.write_toplevel_names except (ImportError, AttributeError): pass else: def _top_level...
Make sure 'twisted' doesn't appear in the egg-info top_level.txt file.
Make sure 'twisted' doesn't appear in the egg-info top_level.txt file. Wokkel provides a plugin for twistd. As with all twisted plugins, these need to be placed in a directory twisted/plugins so that the plugin mechanism can find them. This is not a real package, and when building eggs the directory must appear in the...
Python
mit
ralphm/wokkel
#!/usr/bin/env python # Copyright (c) Ralph Meijer. # See LICENSE for details. from setuptools import setup setup(name='wokkel', version='0.7.0', description='Twisted Jabber support library', author='Ralph Meijer', author_email='ralphm@ik.nu', maintainer_email='ralphm@ik.nu', url=...
#!/usr/bin/env python # Copyright (c) Ralph Meijer. # See LICENSE for details. from setuptools import setup # Make sure 'twisted' doesn't appear in top_level.txt try: from setuptools.command import egg_info egg_info.write_toplevel_names except (ImportError, AttributeError): pass else: def _top_level...
<commit_before>#!/usr/bin/env python # Copyright (c) Ralph Meijer. # See LICENSE for details. from setuptools import setup setup(name='wokkel', version='0.7.0', description='Twisted Jabber support library', author='Ralph Meijer', author_email='ralphm@ik.nu', maintainer_email='ralphm@ik....
#!/usr/bin/env python # Copyright (c) Ralph Meijer. # See LICENSE for details. from setuptools import setup # Make sure 'twisted' doesn't appear in top_level.txt try: from setuptools.command import egg_info egg_info.write_toplevel_names except (ImportError, AttributeError): pass else: def _top_level...
#!/usr/bin/env python # Copyright (c) Ralph Meijer. # See LICENSE for details. from setuptools import setup setup(name='wokkel', version='0.7.0', description='Twisted Jabber support library', author='Ralph Meijer', author_email='ralphm@ik.nu', maintainer_email='ralphm@ik.nu', url=...
<commit_before>#!/usr/bin/env python # Copyright (c) Ralph Meijer. # See LICENSE for details. from setuptools import setup setup(name='wokkel', version='0.7.0', description='Twisted Jabber support library', author='Ralph Meijer', author_email='ralphm@ik.nu', maintainer_email='ralphm@ik....
1653f7ffca5514532d9d9ad6d379ac4db9974d61
setup.py
setup.py
#!/usr/bin/env python # -*- coding: utf-8 -*- try: from setuptools import setup except ImportError: from distutils.core import setup setup( name = 'coinmarketcap', packages = ['coinmarketcap'], version = '5.0.2', description = 'Python wrapper around the coinmarketcap.com API.', author = 'M...
#!/usr/bin/env python # -*- coding: utf-8 -*- try: from setuptools import setup except ImportError: from distutils.core import setup setup( name = 'coinmarketcap', packages = ['coinmarketcap'], version = '5.0.1', description = 'Python wrapper around the coinmarketcap.com API.', author = 'M...
Revert "fix UnicodeDecodeError for long_description", Py3 only workaround
Revert "fix UnicodeDecodeError for long_description", Py3 only workaround This reverts commit 417bf8df61dba0fa2e924008c4dbe204a609d4f2.
Python
apache-2.0
mrsmn/coinmarketcap-api
#!/usr/bin/env python # -*- coding: utf-8 -*- try: from setuptools import setup except ImportError: from distutils.core import setup setup( name = 'coinmarketcap', packages = ['coinmarketcap'], version = '5.0.2', description = 'Python wrapper around the coinmarketcap.com API.', author = 'M...
#!/usr/bin/env python # -*- coding: utf-8 -*- try: from setuptools import setup except ImportError: from distutils.core import setup setup( name = 'coinmarketcap', packages = ['coinmarketcap'], version = '5.0.1', description = 'Python wrapper around the coinmarketcap.com API.', author = 'M...
<commit_before>#!/usr/bin/env python # -*- coding: utf-8 -*- try: from setuptools import setup except ImportError: from distutils.core import setup setup( name = 'coinmarketcap', packages = ['coinmarketcap'], version = '5.0.2', description = 'Python wrapper around the coinmarketcap.com API.', ...
#!/usr/bin/env python # -*- coding: utf-8 -*- try: from setuptools import setup except ImportError: from distutils.core import setup setup( name = 'coinmarketcap', packages = ['coinmarketcap'], version = '5.0.1', description = 'Python wrapper around the coinmarketcap.com API.', author = 'M...
#!/usr/bin/env python # -*- coding: utf-8 -*- try: from setuptools import setup except ImportError: from distutils.core import setup setup( name = 'coinmarketcap', packages = ['coinmarketcap'], version = '5.0.2', description = 'Python wrapper around the coinmarketcap.com API.', author = 'M...
<commit_before>#!/usr/bin/env python # -*- coding: utf-8 -*- try: from setuptools import setup except ImportError: from distutils.core import setup setup( name = 'coinmarketcap', packages = ['coinmarketcap'], version = '5.0.2', description = 'Python wrapper around the coinmarketcap.com API.', ...
031bb5896e592905d163a719fa08e3902d9e4087
setup.py
setup.py
from setuptools import setup with open("README.rst") as readme_file: readme = readme_file.read() setup( name='pytest-describe', version='2.0.0', description='Describe-style plugin for pytest', long_description=readme, long_description_content_type='text/x-rst', url='https://github.com/py...
from setuptools import setup with open("README.rst") as readme_file: readme = readme_file.read() setup( name='pytest-describe', version='2.0.0', description='Describe-style plugin for pytest', long_description=readme, long_description_content_type='text/x-rst', url='https://github.com/py...
Add Python 3.9 to classifiers list
Add Python 3.9 to classifiers list
Python
mit
ropez/pytest-describe
from setuptools import setup with open("README.rst") as readme_file: readme = readme_file.read() setup( name='pytest-describe', version='2.0.0', description='Describe-style plugin for pytest', long_description=readme, long_description_content_type='text/x-rst', url='https://github.com/py...
from setuptools import setup with open("README.rst") as readme_file: readme = readme_file.read() setup( name='pytest-describe', version='2.0.0', description='Describe-style plugin for pytest', long_description=readme, long_description_content_type='text/x-rst', url='https://github.com/py...
<commit_before>from setuptools import setup with open("README.rst") as readme_file: readme = readme_file.read() setup( name='pytest-describe', version='2.0.0', description='Describe-style plugin for pytest', long_description=readme, long_description_content_type='text/x-rst', url='https:...
from setuptools import setup with open("README.rst") as readme_file: readme = readme_file.read() setup( name='pytest-describe', version='2.0.0', description='Describe-style plugin for pytest', long_description=readme, long_description_content_type='text/x-rst', url='https://github.com/py...
from setuptools import setup with open("README.rst") as readme_file: readme = readme_file.read() setup( name='pytest-describe', version='2.0.0', description='Describe-style plugin for pytest', long_description=readme, long_description_content_type='text/x-rst', url='https://github.com/py...
<commit_before>from setuptools import setup with open("README.rst") as readme_file: readme = readme_file.read() setup( name='pytest-describe', version='2.0.0', description='Describe-style plugin for pytest', long_description=readme, long_description_content_type='text/x-rst', url='https:...
a97eec8ed91061c1655c1b7956de5eeeb33d8c12
setup.py
setup.py
#!/usr/bin/env python from setuptools import setup, find_packages import os.path description = file( os.path.join(os.path.dirname(__file__), 'README.md'), 'rb').read() setup( name="bogglesolver", version="1.0.0", description="Solve a game of Boggle.", long_description=description, author="Ad...
#!/usr/bin/env python from setuptools import setup, find_packages import os.path description = open( os.path.join(os.path.dirname(__file__), 'README.md'), 'rb').read() setup( name="bogglesolver", version="1.0.0", description="Solve a game of Boggle.", long_description=description, author="Ad...
Switch file for open = Python3 support
Switch file for open = Python3 support
Python
mit
adamtheturtle/boggle-solver
#!/usr/bin/env python from setuptools import setup, find_packages import os.path description = file( os.path.join(os.path.dirname(__file__), 'README.md'), 'rb').read() setup( name="bogglesolver", version="1.0.0", description="Solve a game of Boggle.", long_description=description, author="Ad...
#!/usr/bin/env python from setuptools import setup, find_packages import os.path description = open( os.path.join(os.path.dirname(__file__), 'README.md'), 'rb').read() setup( name="bogglesolver", version="1.0.0", description="Solve a game of Boggle.", long_description=description, author="Ad...
<commit_before>#!/usr/bin/env python from setuptools import setup, find_packages import os.path description = file( os.path.join(os.path.dirname(__file__), 'README.md'), 'rb').read() setup( name="bogglesolver", version="1.0.0", description="Solve a game of Boggle.", long_description=description,...
#!/usr/bin/env python from setuptools import setup, find_packages import os.path description = open( os.path.join(os.path.dirname(__file__), 'README.md'), 'rb').read() setup( name="bogglesolver", version="1.0.0", description="Solve a game of Boggle.", long_description=description, author="Ad...
#!/usr/bin/env python from setuptools import setup, find_packages import os.path description = file( os.path.join(os.path.dirname(__file__), 'README.md'), 'rb').read() setup( name="bogglesolver", version="1.0.0", description="Solve a game of Boggle.", long_description=description, author="Ad...
<commit_before>#!/usr/bin/env python from setuptools import setup, find_packages import os.path description = file( os.path.join(os.path.dirname(__file__), 'README.md'), 'rb').read() setup( name="bogglesolver", version="1.0.0", description="Solve a game of Boggle.", long_description=description,...
39be87e4d213f86d7a2aef4f443907d01fcd7090
setup.py
setup.py
try: from setuptools import setup except ImportError: from distutils.core import setup setup( name='itunes-iap', version=__import__('itunesiap').__version__, description='Itunes In-app purchase validation api.', long_description=open('README.md').read(), author='Jeong YunWon', author_e...
from __future__ import with_statement try: from setuptools import setup except ImportError: from distutils.core import setup def get_readme(): try: with open('README.md') as f: return f.read().strip() except IOError: return '' setup( name='itunes-iap', version=__...
Use with statement for reading readme file
Use with statement for reading readme file 1. Without file closing it may cause "too many files" error on PyPy. It's complicated to explain, but related to difference of memory handling from CPython (reference counting) to PyPy (garbage collection). 2. README.md could be missed from distribution. For this ...
Python
bsd-2-clause
Eksmo/itunes-iap,silverlogic/itunes-iap
try: from setuptools import setup except ImportError: from distutils.core import setup setup( name='itunes-iap', version=__import__('itunesiap').__version__, description='Itunes In-app purchase validation api.', long_description=open('README.md').read(), author='Jeong YunWon', author_e...
from __future__ import with_statement try: from setuptools import setup except ImportError: from distutils.core import setup def get_readme(): try: with open('README.md') as f: return f.read().strip() except IOError: return '' setup( name='itunes-iap', version=__...
<commit_before> try: from setuptools import setup except ImportError: from distutils.core import setup setup( name='itunes-iap', version=__import__('itunesiap').__version__, description='Itunes In-app purchase validation api.', long_description=open('README.md').read(), author='Jeong YunWon...
from __future__ import with_statement try: from setuptools import setup except ImportError: from distutils.core import setup def get_readme(): try: with open('README.md') as f: return f.read().strip() except IOError: return '' setup( name='itunes-iap', version=__...
try: from setuptools import setup except ImportError: from distutils.core import setup setup( name='itunes-iap', version=__import__('itunesiap').__version__, description='Itunes In-app purchase validation api.', long_description=open('README.md').read(), author='Jeong YunWon', author_e...
<commit_before> try: from setuptools import setup except ImportError: from distutils.core import setup setup( name='itunes-iap', version=__import__('itunesiap').__version__, description='Itunes In-app purchase validation api.', long_description=open('README.md').read(), author='Jeong YunWon...
9dab8161b8c16db9ead083c80c97e31a8527ff66
setup.py
setup.py
# -*- coding: utf-8 -*- # from __future__ import print_function from setuptools import setup, find_packages import tunic DESCRIPTION = 'Deployment related Fabric utilities' AUTHOR = 'TSH Labs' EMAIL = 'projects@tshlabs.org' URL = 'http://www.tshlabs.org/' LICENSE = 'MIT' CLASSIFIERS = [ "Development Status :: ...
# -*- coding: utf-8 -*- # from __future__ import print_function from setuptools import setup, find_packages import tunic DESCRIPTION = 'Deployment related Fabric utilities' AUTHOR = 'TSH Labs' EMAIL = 'projects@tshlabs.org' URL = 'http://www.tshlabs.org/' LICENSE = 'MIT' CLASSIFIERS = [ "Development Status :: ...
Upgrade from alpha to beta
Upgrade from alpha to beta
Python
mit
tshlabs/tunic
# -*- coding: utf-8 -*- # from __future__ import print_function from setuptools import setup, find_packages import tunic DESCRIPTION = 'Deployment related Fabric utilities' AUTHOR = 'TSH Labs' EMAIL = 'projects@tshlabs.org' URL = 'http://www.tshlabs.org/' LICENSE = 'MIT' CLASSIFIERS = [ "Development Status :: ...
# -*- coding: utf-8 -*- # from __future__ import print_function from setuptools import setup, find_packages import tunic DESCRIPTION = 'Deployment related Fabric utilities' AUTHOR = 'TSH Labs' EMAIL = 'projects@tshlabs.org' URL = 'http://www.tshlabs.org/' LICENSE = 'MIT' CLASSIFIERS = [ "Development Status :: ...
<commit_before># -*- coding: utf-8 -*- # from __future__ import print_function from setuptools import setup, find_packages import tunic DESCRIPTION = 'Deployment related Fabric utilities' AUTHOR = 'TSH Labs' EMAIL = 'projects@tshlabs.org' URL = 'http://www.tshlabs.org/' LICENSE = 'MIT' CLASSIFIERS = [ "Develop...
# -*- coding: utf-8 -*- # from __future__ import print_function from setuptools import setup, find_packages import tunic DESCRIPTION = 'Deployment related Fabric utilities' AUTHOR = 'TSH Labs' EMAIL = 'projects@tshlabs.org' URL = 'http://www.tshlabs.org/' LICENSE = 'MIT' CLASSIFIERS = [ "Development Status :: ...
# -*- coding: utf-8 -*- # from __future__ import print_function from setuptools import setup, find_packages import tunic DESCRIPTION = 'Deployment related Fabric utilities' AUTHOR = 'TSH Labs' EMAIL = 'projects@tshlabs.org' URL = 'http://www.tshlabs.org/' LICENSE = 'MIT' CLASSIFIERS = [ "Development Status :: ...
<commit_before># -*- coding: utf-8 -*- # from __future__ import print_function from setuptools import setup, find_packages import tunic DESCRIPTION = 'Deployment related Fabric utilities' AUTHOR = 'TSH Labs' EMAIL = 'projects@tshlabs.org' URL = 'http://www.tshlabs.org/' LICENSE = 'MIT' CLASSIFIERS = [ "Develop...
981700e3b2c74e58a6a977856127f6f3e55c6186
setup.py
setup.py
#!/usr/bin/env python from setuptools import setup, find_packages setup( name="txyam2", version="0.5.1", description="Yet Another Memcached (YAM) client for Twisted.", author="Brian Muller", author_email="bamuller@gmail.com", license="MIT", url="http://github.com/bmuller/txyam", package...
#!/usr/bin/env python from setuptools import setup, find_packages setup( name="txyam", version="0.4+weasyl.1", description="Yet Another Memcached (YAM) client for Twisted.", author="Brian Muller", author_email="bamuller@gmail.com", license="MIT", url="http://github.com/bmuller/txyam", p...
Make version PEP 440 compliant. Name pkg 'txyam' (as still a branch)
Make version PEP 440 compliant. Name pkg 'txyam' (as still a branch)
Python
mit
Weasyl/txyam2
#!/usr/bin/env python from setuptools import setup, find_packages setup( name="txyam2", version="0.5.1", description="Yet Another Memcached (YAM) client for Twisted.", author="Brian Muller", author_email="bamuller@gmail.com", license="MIT", url="http://github.com/bmuller/txyam", package...
#!/usr/bin/env python from setuptools import setup, find_packages setup( name="txyam", version="0.4+weasyl.1", description="Yet Another Memcached (YAM) client for Twisted.", author="Brian Muller", author_email="bamuller@gmail.com", license="MIT", url="http://github.com/bmuller/txyam", p...
<commit_before>#!/usr/bin/env python from setuptools import setup, find_packages setup( name="txyam2", version="0.5.1", description="Yet Another Memcached (YAM) client for Twisted.", author="Brian Muller", author_email="bamuller@gmail.com", license="MIT", url="http://github.com/bmuller/txya...
#!/usr/bin/env python from setuptools import setup, find_packages setup( name="txyam", version="0.4+weasyl.1", description="Yet Another Memcached (YAM) client for Twisted.", author="Brian Muller", author_email="bamuller@gmail.com", license="MIT", url="http://github.com/bmuller/txyam", p...
#!/usr/bin/env python from setuptools import setup, find_packages setup( name="txyam2", version="0.5.1", description="Yet Another Memcached (YAM) client for Twisted.", author="Brian Muller", author_email="bamuller@gmail.com", license="MIT", url="http://github.com/bmuller/txyam", package...
<commit_before>#!/usr/bin/env python from setuptools import setup, find_packages setup( name="txyam2", version="0.5.1", description="Yet Another Memcached (YAM) client for Twisted.", author="Brian Muller", author_email="bamuller@gmail.com", license="MIT", url="http://github.com/bmuller/txya...
56243e84f4381e24e35a9d1621c0fb798401600f
setup.py
setup.py
from setuptools import setup, find_packages setup( name='snippet', version=__import__('snippet').__version__, description=__import__('snippet').__doc__, long_description=open('README.rst').read(), author='David Thenon', author_email='dthenon@emencia.com', url='http://pypi.python.org/pypi/em...
from setuptools import setup, find_packages setup( name='emencia-cms-snippet', version=__import__('snippet').__version__, description=__import__('snippet').__doc__, long_description=open('README.rst').read(), author='David Thenon', author_email='dthenon@emencia.com', url='http://pypi.python...
Correct name for Pypi package
Correct name for Pypi package
Python
bsd-3-clause
emencia/emencia-cms-snippet,emencia/emencia-cms-snippet,emencia/emencia-cms-snippet
from setuptools import setup, find_packages setup( name='snippet', version=__import__('snippet').__version__, description=__import__('snippet').__doc__, long_description=open('README.rst').read(), author='David Thenon', author_email='dthenon@emencia.com', url='http://pypi.python.org/pypi/em...
from setuptools import setup, find_packages setup( name='emencia-cms-snippet', version=__import__('snippet').__version__, description=__import__('snippet').__doc__, long_description=open('README.rst').read(), author='David Thenon', author_email='dthenon@emencia.com', url='http://pypi.python...
<commit_before>from setuptools import setup, find_packages setup( name='snippet', version=__import__('snippet').__version__, description=__import__('snippet').__doc__, long_description=open('README.rst').read(), author='David Thenon', author_email='dthenon@emencia.com', url='http://pypi.pyt...
from setuptools import setup, find_packages setup( name='emencia-cms-snippet', version=__import__('snippet').__version__, description=__import__('snippet').__doc__, long_description=open('README.rst').read(), author='David Thenon', author_email='dthenon@emencia.com', url='http://pypi.python...
from setuptools import setup, find_packages setup( name='snippet', version=__import__('snippet').__version__, description=__import__('snippet').__doc__, long_description=open('README.rst').read(), author='David Thenon', author_email='dthenon@emencia.com', url='http://pypi.python.org/pypi/em...
<commit_before>from setuptools import setup, find_packages setup( name='snippet', version=__import__('snippet').__version__, description=__import__('snippet').__doc__, long_description=open('README.rst').read(), author='David Thenon', author_email='dthenon@emencia.com', url='http://pypi.pyt...
356f95563007a510f8baafd2bbddb5ef4ec5e415
setup.py
setup.py
from setuptools import setup version = "0.3.0" setup( name="arxiv", version=version, packages=["arxiv"], # dependencies install_requires=[ 'feedparser', 'requests', ], # metadata for upload to PyPI author="Lukas Schwab", author_email="lukas.schwab@gmail.com", description="Python wrapper for the arXiv ...
from setuptools import setup version = "0.3.1" setup( name="arxiv", version=version, packages=["arxiv"], # dependencies install_requires=[ 'feedparser', 'requests', ], # metadata for upload to PyPI author="Lukas Schwab", author_email="lukas.schwab@gmail.com", description="Python wrapper for the arXiv ...
Increment version number for release
Increment version number for release
Python
mit
lukasschwab/arxiv.py
from setuptools import setup version = "0.3.0" setup( name="arxiv", version=version, packages=["arxiv"], # dependencies install_requires=[ 'feedparser', 'requests', ], # metadata for upload to PyPI author="Lukas Schwab", author_email="lukas.schwab@gmail.com", description="Python wrapper for the arXiv ...
from setuptools import setup version = "0.3.1" setup( name="arxiv", version=version, packages=["arxiv"], # dependencies install_requires=[ 'feedparser', 'requests', ], # metadata for upload to PyPI author="Lukas Schwab", author_email="lukas.schwab@gmail.com", description="Python wrapper for the arXiv ...
<commit_before>from setuptools import setup version = "0.3.0" setup( name="arxiv", version=version, packages=["arxiv"], # dependencies install_requires=[ 'feedparser', 'requests', ], # metadata for upload to PyPI author="Lukas Schwab", author_email="lukas.schwab@gmail.com", description="Python wrapper...
from setuptools import setup version = "0.3.1" setup( name="arxiv", version=version, packages=["arxiv"], # dependencies install_requires=[ 'feedparser', 'requests', ], # metadata for upload to PyPI author="Lukas Schwab", author_email="lukas.schwab@gmail.com", description="Python wrapper for the arXiv ...
from setuptools import setup version = "0.3.0" setup( name="arxiv", version=version, packages=["arxiv"], # dependencies install_requires=[ 'feedparser', 'requests', ], # metadata for upload to PyPI author="Lukas Schwab", author_email="lukas.schwab@gmail.com", description="Python wrapper for the arXiv ...
<commit_before>from setuptools import setup version = "0.3.0" setup( name="arxiv", version=version, packages=["arxiv"], # dependencies install_requires=[ 'feedparser', 'requests', ], # metadata for upload to PyPI author="Lukas Schwab", author_email="lukas.schwab@gmail.com", description="Python wrapper...
ba07645207fd61b669b0aee2fec0d6c685b71aed
setup.py
setup.py
#!/usr/bin/env python # -*- coding: utf-8 -*- from setuptools import setup setup(name='sophiabus230', version='0.1', description='Module to get the timetable of the Sophia Antipolis bus line 230', url='http://github.com/paraita/sophiabus230', author='Paraita Wohler', author_email='parait...
#!/usr/bin/env python # -*- coding: utf-8 -*- from setuptools import setup setup(name='sophiabus230', version='0.2', description='Module to get the timetable of the Sophia Antipolis bus line 230', url='http://github.com/paraita/sophiabus230', author='Paraita Wohler', author_email='parait...
Update the version before pushing to pypi
Update the version before pushing to pypi
Python
mit
paraita/sophiabus230,paraita/sophiabus230
#!/usr/bin/env python # -*- coding: utf-8 -*- from setuptools import setup setup(name='sophiabus230', version='0.1', description='Module to get the timetable of the Sophia Antipolis bus line 230', url='http://github.com/paraita/sophiabus230', author='Paraita Wohler', author_email='parait...
#!/usr/bin/env python # -*- coding: utf-8 -*- from setuptools import setup setup(name='sophiabus230', version='0.2', description='Module to get the timetable of the Sophia Antipolis bus line 230', url='http://github.com/paraita/sophiabus230', author='Paraita Wohler', author_email='parait...
<commit_before>#!/usr/bin/env python # -*- coding: utf-8 -*- from setuptools import setup setup(name='sophiabus230', version='0.1', description='Module to get the timetable of the Sophia Antipolis bus line 230', url='http://github.com/paraita/sophiabus230', author='Paraita Wohler', autho...
#!/usr/bin/env python # -*- coding: utf-8 -*- from setuptools import setup setup(name='sophiabus230', version='0.2', description='Module to get the timetable of the Sophia Antipolis bus line 230', url='http://github.com/paraita/sophiabus230', author='Paraita Wohler', author_email='parait...
#!/usr/bin/env python # -*- coding: utf-8 -*- from setuptools import setup setup(name='sophiabus230', version='0.1', description='Module to get the timetable of the Sophia Antipolis bus line 230', url='http://github.com/paraita/sophiabus230', author='Paraita Wohler', author_email='parait...
<commit_before>#!/usr/bin/env python # -*- coding: utf-8 -*- from setuptools import setup setup(name='sophiabus230', version='0.1', description='Module to get the timetable of the Sophia Antipolis bus line 230', url='http://github.com/paraita/sophiabus230', author='Paraita Wohler', autho...
e980c71884bd1a6b6c843d52cc2719f468fa077c
setup.py
setup.py
from setuptools import setup setup( name='scales-rpc', version='1.0.6', author='Steve Niemitz', author_email='sniemitz@twitter.com', url='https://www.github.com/steveniemitz/scales', description='A python RPC client stack', summary='A generic python RPC client framework.', license='MIT License', pack...
from setuptools import setup setup( name='scales-rpc', version='1.0.6', author='Steve Niemitz', author_email='sniemitz@twitter.com', url='https://www.github.com/steveniemitz/scales', description='A python RPC client stack', summary='A generic python RPC client framework.', license='MIT License', pack...
Fix for broken ci tests due to thift 0.10.0 release
Fix for broken ci tests due to thift 0.10.0 release
Python
mit
steveniemitz/scales,steveniemitz/scales
from setuptools import setup setup( name='scales-rpc', version='1.0.6', author='Steve Niemitz', author_email='sniemitz@twitter.com', url='https://www.github.com/steveniemitz/scales', description='A python RPC client stack', summary='A generic python RPC client framework.', license='MIT License', pack...
from setuptools import setup setup( name='scales-rpc', version='1.0.6', author='Steve Niemitz', author_email='sniemitz@twitter.com', url='https://www.github.com/steveniemitz/scales', description='A python RPC client stack', summary='A generic python RPC client framework.', license='MIT License', pack...
<commit_before>from setuptools import setup setup( name='scales-rpc', version='1.0.6', author='Steve Niemitz', author_email='sniemitz@twitter.com', url='https://www.github.com/steveniemitz/scales', description='A python RPC client stack', summary='A generic python RPC client framework.', license='MIT L...
from setuptools import setup setup( name='scales-rpc', version='1.0.6', author='Steve Niemitz', author_email='sniemitz@twitter.com', url='https://www.github.com/steveniemitz/scales', description='A python RPC client stack', summary='A generic python RPC client framework.', license='MIT License', pack...
from setuptools import setup setup( name='scales-rpc', version='1.0.6', author='Steve Niemitz', author_email='sniemitz@twitter.com', url='https://www.github.com/steveniemitz/scales', description='A python RPC client stack', summary='A generic python RPC client framework.', license='MIT License', pack...
<commit_before>from setuptools import setup setup( name='scales-rpc', version='1.0.6', author='Steve Niemitz', author_email='sniemitz@twitter.com', url='https://www.github.com/steveniemitz/scales', description='A python RPC client stack', summary='A generic python RPC client framework.', license='MIT L...
cbac3cc08d6f238039fa49478dba27521ed73fc1
setup.py
setup.py
#!/bin/python3 # coding: utf-8 """sphinxmark setup file.""" # To use a consistent encoding from codecs import open from os import path from setuptools import setup here = path.abspath(path.dirname(__file__)) # Get the long description from the README file with open(path.join(here, 'README.rst'), encoding='utf-8') a...
#!/bin/python3 # coding: utf-8 """sphinxmark setup file.""" # To use a consistent encoding from codecs import open from os import path from setuptools import setup here = path.abspath(path.dirname(__file__)) # Get the long description from the README file with open(path.join(here, 'README.rst'), encoding='utf-8') a...
Reset version for pypi upload
Reset version for pypi upload
Python
apache-2.0
kallimachos/sphinxmark
#!/bin/python3 # coding: utf-8 """sphinxmark setup file.""" # To use a consistent encoding from codecs import open from os import path from setuptools import setup here = path.abspath(path.dirname(__file__)) # Get the long description from the README file with open(path.join(here, 'README.rst'), encoding='utf-8') a...
#!/bin/python3 # coding: utf-8 """sphinxmark setup file.""" # To use a consistent encoding from codecs import open from os import path from setuptools import setup here = path.abspath(path.dirname(__file__)) # Get the long description from the README file with open(path.join(here, 'README.rst'), encoding='utf-8') a...
<commit_before>#!/bin/python3 # coding: utf-8 """sphinxmark setup file.""" # To use a consistent encoding from codecs import open from os import path from setuptools import setup here = path.abspath(path.dirname(__file__)) # Get the long description from the README file with open(path.join(here, 'README.rst'), enco...
#!/bin/python3 # coding: utf-8 """sphinxmark setup file.""" # To use a consistent encoding from codecs import open from os import path from setuptools import setup here = path.abspath(path.dirname(__file__)) # Get the long description from the README file with open(path.join(here, 'README.rst'), encoding='utf-8') a...
#!/bin/python3 # coding: utf-8 """sphinxmark setup file.""" # To use a consistent encoding from codecs import open from os import path from setuptools import setup here = path.abspath(path.dirname(__file__)) # Get the long description from the README file with open(path.join(here, 'README.rst'), encoding='utf-8') a...
<commit_before>#!/bin/python3 # coding: utf-8 """sphinxmark setup file.""" # To use a consistent encoding from codecs import open from os import path from setuptools import setup here = path.abspath(path.dirname(__file__)) # Get the long description from the README file with open(path.join(here, 'README.rst'), enco...
22558f86de3b76b3a9262ee5df3f8802b4c38f88
pylib/gfxprim/loaders/_extend_context.py
pylib/gfxprim/loaders/_extend_context.py
from ..utils import extend, add_swig_getmethod, add_swig_setmethod from . import loaders_c def extend_context(_context): """ Extends _context class with loader module methods for calling convenience. Called once on loaders module inicialization. """ @extend(_context, name='load') @staticmethod def Load(...
from ..utils import extend, add_swig_getmethod, add_swig_setmethod from . import loaders_c def extend_context(_context): """ Extends _context class with loader module methods for calling convenience. Called once on loaders module inicialization. """ @extend(_context, name='load') @staticmethod def Load(...
Fix the loaders extend context after API change.
pywrap: Fix the loaders extend context after API change.
Python
lgpl-2.1
gfxprim/gfxprim,gfxprim/gfxprim,gfxprim/gfxprim,gfxprim/gfxprim,gfxprim/gfxprim
from ..utils import extend, add_swig_getmethod, add_swig_setmethod from . import loaders_c def extend_context(_context): """ Extends _context class with loader module methods for calling convenience. Called once on loaders module inicialization. """ @extend(_context, name='load') @staticmethod def Load(...
from ..utils import extend, add_swig_getmethod, add_swig_setmethod from . import loaders_c def extend_context(_context): """ Extends _context class with loader module methods for calling convenience. Called once on loaders module inicialization. """ @extend(_context, name='load') @staticmethod def Load(...
<commit_before>from ..utils import extend, add_swig_getmethod, add_swig_setmethod from . import loaders_c def extend_context(_context): """ Extends _context class with loader module methods for calling convenience. Called once on loaders module inicialization. """ @extend(_context, name='load') @staticmet...
from ..utils import extend, add_swig_getmethod, add_swig_setmethod from . import loaders_c def extend_context(_context): """ Extends _context class with loader module methods for calling convenience. Called once on loaders module inicialization. """ @extend(_context, name='load') @staticmethod def Load(...
from ..utils import extend, add_swig_getmethod, add_swig_setmethod from . import loaders_c def extend_context(_context): """ Extends _context class with loader module methods for calling convenience. Called once on loaders module inicialization. """ @extend(_context, name='load') @staticmethod def Load(...
<commit_before>from ..utils import extend, add_swig_getmethod, add_swig_setmethod from . import loaders_c def extend_context(_context): """ Extends _context class with loader module methods for calling convenience. Called once on loaders module inicialization. """ @extend(_context, name='load') @staticmet...
6f6f6e183b574f8505b53ddb7651c8766992b953
pywikibot/families/lingualibre_family.py
pywikibot/families/lingualibre_family.py
"""Family module for Lingua Libre.""" # # (C) Pywikibot team, 2021 # # Distributed under the terms of the MIT license. # from pywikibot import family # The Lingua Libre family class Family(family.WikimediaFamily): """Family class for Lingua Libre. *New in version 6.5.* """ name = 'lingualibre' ...
"""Family module for Lingua Libre.""" # # (C) Pywikibot team, 2021 # # Distributed under the terms of the MIT license. # from pywikibot import family # The Lingua Libre family class Family(family.WikimediaFamily): """Family class for Lingua Libre. *New in version 6.5.* """ name = 'lingualibre' ...
Allow to request for item on Lingua Libre
Allow to request for item on Lingua Libre Bug: T286303 Change-Id: Ic0d8824d1bf326f2182fbb64d0cc2ed77f82fd4c
Python
mit
wikimedia/pywikibot-core,wikimedia/pywikibot-core
"""Family module for Lingua Libre.""" # # (C) Pywikibot team, 2021 # # Distributed under the terms of the MIT license. # from pywikibot import family # The Lingua Libre family class Family(family.WikimediaFamily): """Family class for Lingua Libre. *New in version 6.5.* """ name = 'lingualibre' ...
"""Family module for Lingua Libre.""" # # (C) Pywikibot team, 2021 # # Distributed under the terms of the MIT license. # from pywikibot import family # The Lingua Libre family class Family(family.WikimediaFamily): """Family class for Lingua Libre. *New in version 6.5.* """ name = 'lingualibre' ...
<commit_before>"""Family module for Lingua Libre.""" # # (C) Pywikibot team, 2021 # # Distributed under the terms of the MIT license. # from pywikibot import family # The Lingua Libre family class Family(family.WikimediaFamily): """Family class for Lingua Libre. *New in version 6.5.* """ name = 'li...
"""Family module for Lingua Libre.""" # # (C) Pywikibot team, 2021 # # Distributed under the terms of the MIT license. # from pywikibot import family # The Lingua Libre family class Family(family.WikimediaFamily): """Family class for Lingua Libre. *New in version 6.5.* """ name = 'lingualibre' ...
"""Family module for Lingua Libre.""" # # (C) Pywikibot team, 2021 # # Distributed under the terms of the MIT license. # from pywikibot import family # The Lingua Libre family class Family(family.WikimediaFamily): """Family class for Lingua Libre. *New in version 6.5.* """ name = 'lingualibre' ...
<commit_before>"""Family module for Lingua Libre.""" # # (C) Pywikibot team, 2021 # # Distributed under the terms of the MIT license. # from pywikibot import family # The Lingua Libre family class Family(family.WikimediaFamily): """Family class for Lingua Libre. *New in version 6.5.* """ name = 'li...
5d54b641b09ea1602475f560c993e76297e32d11
setup.py
setup.py
import setuptools def read_long_description(): with open('README.rst') as f: data = f.read() with open('CHANGES.rst') as f: data += '\n\n' + f.read() return data setup_params = dict( name="irc", description="IRC (Internet Relay Chat) protocol client library for Python", ...
import io import setuptools def read_long_description(): with io.open('README.rst', encoding='utf-8') as f: data = f.read() with io.open('CHANGES.rst', encoding='utf-8') as f: data += '\n\n' + f.read() return data setup_params = dict( name="irc", description="IRC (Int...
Fix builds on systems where LANG=C
Fix builds on systems where LANG=C
Python
mit
jaraco/irc
import setuptools def read_long_description(): with open('README.rst') as f: data = f.read() with open('CHANGES.rst') as f: data += '\n\n' + f.read() return data setup_params = dict( name="irc", description="IRC (Internet Relay Chat) protocol client library for Python", ...
import io import setuptools def read_long_description(): with io.open('README.rst', encoding='utf-8') as f: data = f.read() with io.open('CHANGES.rst', encoding='utf-8') as f: data += '\n\n' + f.read() return data setup_params = dict( name="irc", description="IRC (Int...
<commit_before>import setuptools def read_long_description(): with open('README.rst') as f: data = f.read() with open('CHANGES.rst') as f: data += '\n\n' + f.read() return data setup_params = dict( name="irc", description="IRC (Internet Relay Chat) protocol client librar...
import io import setuptools def read_long_description(): with io.open('README.rst', encoding='utf-8') as f: data = f.read() with io.open('CHANGES.rst', encoding='utf-8') as f: data += '\n\n' + f.read() return data setup_params = dict( name="irc", description="IRC (Int...
import setuptools def read_long_description(): with open('README.rst') as f: data = f.read() with open('CHANGES.rst') as f: data += '\n\n' + f.read() return data setup_params = dict( name="irc", description="IRC (Internet Relay Chat) protocol client library for Python", ...
<commit_before>import setuptools def read_long_description(): with open('README.rst') as f: data = f.read() with open('CHANGES.rst') as f: data += '\n\n' + f.read() return data setup_params = dict( name="irc", description="IRC (Internet Relay Chat) protocol client librar...
892f1dbc642c18726f5b1f4a182a366664496a84
setup.py
setup.py
from setuptools import setup setup( name='sfdc-bulk', packages=['sfdc_bulk'], version='0.1', description='Python client library for SFDC bulk API', url='https://github.com/donaldrauscher/sfdc-bulk', download_url='https://github.com/donaldrauscher/sfdc-bulk/archive/0.1.tar.gz', author='Donal...
from setuptools import setup setup( name='sfdc-bulk', packages=['sfdc_bulk'], version='0.2', description='Python client library for SFDC bulk API', url='https://github.com/donaldrauscher/sfdc-bulk', author='Donald Rauscher', author_email='donald.rauscher@gmail.com', license='MIT', i...
Remove download link from GH
Remove download link from GH
Python
mit
donaldrauscher/sfdc-bulk
from setuptools import setup setup( name='sfdc-bulk', packages=['sfdc_bulk'], version='0.1', description='Python client library for SFDC bulk API', url='https://github.com/donaldrauscher/sfdc-bulk', download_url='https://github.com/donaldrauscher/sfdc-bulk/archive/0.1.tar.gz', author='Donal...
from setuptools import setup setup( name='sfdc-bulk', packages=['sfdc_bulk'], version='0.2', description='Python client library for SFDC bulk API', url='https://github.com/donaldrauscher/sfdc-bulk', author='Donald Rauscher', author_email='donald.rauscher@gmail.com', license='MIT', i...
<commit_before>from setuptools import setup setup( name='sfdc-bulk', packages=['sfdc_bulk'], version='0.1', description='Python client library for SFDC bulk API', url='https://github.com/donaldrauscher/sfdc-bulk', download_url='https://github.com/donaldrauscher/sfdc-bulk/archive/0.1.tar.gz', ...
from setuptools import setup setup( name='sfdc-bulk', packages=['sfdc_bulk'], version='0.2', description='Python client library for SFDC bulk API', url='https://github.com/donaldrauscher/sfdc-bulk', author='Donald Rauscher', author_email='donald.rauscher@gmail.com', license='MIT', i...
from setuptools import setup setup( name='sfdc-bulk', packages=['sfdc_bulk'], version='0.1', description='Python client library for SFDC bulk API', url='https://github.com/donaldrauscher/sfdc-bulk', download_url='https://github.com/donaldrauscher/sfdc-bulk/archive/0.1.tar.gz', author='Donal...
<commit_before>from setuptools import setup setup( name='sfdc-bulk', packages=['sfdc_bulk'], version='0.1', description='Python client library for SFDC bulk API', url='https://github.com/donaldrauscher/sfdc-bulk', download_url='https://github.com/donaldrauscher/sfdc-bulk/archive/0.1.tar.gz', ...
6ebc59148b513f358a3b76c7364eb6cf6f97b0d5
setup.py
setup.py
from setuptools import setup setup(name='borg-summon', version='0.1', description='A wrapper for the backup program borg', url='http://github.com/grensjo/borg-summon', author='Anton Grensjö', author_email='anton@grensjo.se', license='MIT', packages=['borg_summon'], install_requires=[ ...
from setuptools import setup setup(name='borg-summon', version='0.1', description='A work-in-progress wrapper for automating BorgBackup use', url='https://github.com/grensjo/borg-summon', author='Anton Grensjö', author_email='anton@grensjo.se', license='MIT', packages=['borg_summon'], i...
Update project description and GitHub URL
Update project description and GitHub URL
Python
mit
grensjo/borg-summon
from setuptools import setup setup(name='borg-summon', version='0.1', description='A wrapper for the backup program borg', url='http://github.com/grensjo/borg-summon', author='Anton Grensjö', author_email='anton@grensjo.se', license='MIT', packages=['borg_summon'], install_requires=[ ...
from setuptools import setup setup(name='borg-summon', version='0.1', description='A work-in-progress wrapper for automating BorgBackup use', url='https://github.com/grensjo/borg-summon', author='Anton Grensjö', author_email='anton@grensjo.se', license='MIT', packages=['borg_summon'], i...
<commit_before>from setuptools import setup setup(name='borg-summon', version='0.1', description='A wrapper for the backup program borg', url='http://github.com/grensjo/borg-summon', author='Anton Grensjö', author_email='anton@grensjo.se', license='MIT', packages=['borg_summon'], instal...
from setuptools import setup setup(name='borg-summon', version='0.1', description='A work-in-progress wrapper for automating BorgBackup use', url='https://github.com/grensjo/borg-summon', author='Anton Grensjö', author_email='anton@grensjo.se', license='MIT', packages=['borg_summon'], i...
from setuptools import setup setup(name='borg-summon', version='0.1', description='A wrapper for the backup program borg', url='http://github.com/grensjo/borg-summon', author='Anton Grensjö', author_email='anton@grensjo.se', license='MIT', packages=['borg_summon'], install_requires=[ ...
<commit_before>from setuptools import setup setup(name='borg-summon', version='0.1', description='A wrapper for the backup program borg', url='http://github.com/grensjo/borg-summon', author='Anton Grensjö', author_email='anton@grensjo.se', license='MIT', packages=['borg_summon'], instal...
33ed50741218f5ec2ba7347aa9d83982316b6b64
setup.py
setup.py
# -*- coding: utf-8 -*- from setuptools import setup, find_packages with open('README.rst') as f: readme = f.read() with open('LICENSE') as f: license = f.read() setup( name='sample', version='0.0.1', description='Sample package for Python-Guide.org', long_description=readme, author='Ke...
# -*- coding: utf-8 -*- from setuptools import setup, find_packages with open('README.rst') as f: readme = f.read() with open('LICENSE') as f: license = f.read() setup( name='sample', version='0.1.0', description='Sample package for Python-Guide.org', long_description=readme, author='Ke...
Change initial version to be 0.1.0
Change initial version to be 0.1.0 If it's intended to use semantic versioning then it's doesn't make sense to start from a bug fix release.
Python
mit
johicks/twitterbias,azafred/samplemod,kennethreitz/samplemod,azafred/skeletor,Cyclid/example-python-project,introini/ourlist,azafred/samplemod,introini/ourlist,introini/ourlist,introini/ourlist,azafred/skeletor,tilt-silvie/samplemod
# -*- coding: utf-8 -*- from setuptools import setup, find_packages with open('README.rst') as f: readme = f.read() with open('LICENSE') as f: license = f.read() setup( name='sample', version='0.0.1', description='Sample package for Python-Guide.org', long_description=readme, author='Ke...
# -*- coding: utf-8 -*- from setuptools import setup, find_packages with open('README.rst') as f: readme = f.read() with open('LICENSE') as f: license = f.read() setup( name='sample', version='0.1.0', description='Sample package for Python-Guide.org', long_description=readme, author='Ke...
<commit_before># -*- coding: utf-8 -*- from setuptools import setup, find_packages with open('README.rst') as f: readme = f.read() with open('LICENSE') as f: license = f.read() setup( name='sample', version='0.0.1', description='Sample package for Python-Guide.org', long_description=readme,...
# -*- coding: utf-8 -*- from setuptools import setup, find_packages with open('README.rst') as f: readme = f.read() with open('LICENSE') as f: license = f.read() setup( name='sample', version='0.1.0', description='Sample package for Python-Guide.org', long_description=readme, author='Ke...
# -*- coding: utf-8 -*- from setuptools import setup, find_packages with open('README.rst') as f: readme = f.read() with open('LICENSE') as f: license = f.read() setup( name='sample', version='0.0.1', description='Sample package for Python-Guide.org', long_description=readme, author='Ke...
<commit_before># -*- coding: utf-8 -*- from setuptools import setup, find_packages with open('README.rst') as f: readme = f.read() with open('LICENSE') as f: license = f.read() setup( name='sample', version='0.0.1', description='Sample package for Python-Guide.org', long_description=readme,...
4fb253043d9b4841893bd8fd39bf27efee64c844
src/ice/runners/command_line_runner.py
src/ice/runners/command_line_runner.py
""" command_line_runner.py Created by Scott on 2014-08-14. Copyright (c) 2014 Scott Rice. All rights reserved. """ from ice_engine import IceEngine class CommandLineRunner(object): def run(self, argv): # TODO: Configure IceEngine based on the contents of argv engine = IceEngine() engine.run() # K...
""" command_line_runner.py Created by Scott on 2014-08-14. Copyright (c) 2014 Scott Rice. All rights reserved. """ import argparse from ice_engine import IceEngine class CommandLineRunner(object): def get_command_line_args(self, argv): parser = argparse.ArgumentParser() parser.add_argument('-c', '--conf...
Allow passing in config/consoles/emulators.txt locations from command line
Allow passing in config/consoles/emulators.txt locations from command line Summary: This will be really useful for Integration tests, along with whenever we get the desktop app running (since it will communicate with Ice via the command line) Test Plan: Run `src/ice.py --config=/Path/to/different/config`, where the d...
Python
mit
scottrice/Ice
""" command_line_runner.py Created by Scott on 2014-08-14. Copyright (c) 2014 Scott Rice. All rights reserved. """ from ice_engine import IceEngine class CommandLineRunner(object): def run(self, argv): # TODO: Configure IceEngine based on the contents of argv engine = IceEngine() engine.run() # K...
""" command_line_runner.py Created by Scott on 2014-08-14. Copyright (c) 2014 Scott Rice. All rights reserved. """ import argparse from ice_engine import IceEngine class CommandLineRunner(object): def get_command_line_args(self, argv): parser = argparse.ArgumentParser() parser.add_argument('-c', '--conf...
<commit_before>""" command_line_runner.py Created by Scott on 2014-08-14. Copyright (c) 2014 Scott Rice. All rights reserved. """ from ice_engine import IceEngine class CommandLineRunner(object): def run(self, argv): # TODO: Configure IceEngine based on the contents of argv engine = IceEngine() engin...
""" command_line_runner.py Created by Scott on 2014-08-14. Copyright (c) 2014 Scott Rice. All rights reserved. """ import argparse from ice_engine import IceEngine class CommandLineRunner(object): def get_command_line_args(self, argv): parser = argparse.ArgumentParser() parser.add_argument('-c', '--conf...
""" command_line_runner.py Created by Scott on 2014-08-14. Copyright (c) 2014 Scott Rice. All rights reserved. """ from ice_engine import IceEngine class CommandLineRunner(object): def run(self, argv): # TODO: Configure IceEngine based on the contents of argv engine = IceEngine() engine.run() # K...
<commit_before>""" command_line_runner.py Created by Scott on 2014-08-14. Copyright (c) 2014 Scott Rice. All rights reserved. """ from ice_engine import IceEngine class CommandLineRunner(object): def run(self, argv): # TODO: Configure IceEngine based on the contents of argv engine = IceEngine() engin...
9a70e812ece85b2bf1831ef68428e10abe05c2ae
cdc/actions.py
cdc/actions.py
import os from os import listdir from django.conf import settings def handle_uploaded_file(f, title, user): targetdir = 'uploads/' + user.__str__() + '/incoming/' if not os.path.exists(targetdir): os.makedirs(targetdir) with open(targetdir + title, 'wb+') as destination: for chunk in f.chu...
import os from os import listdir from django.conf import settings def handle_uploaded_file(f, title, user): targetdir = 'uploads/' + user.__str__() + '/incoming/' if not os.path.exists(targetdir): os.makedirs(targetdir) with open(targetdir + title, 'wb+') as destination: for chunk in f.chu...
Fix return value of list_files
Fix return value of list_files
Python
mit
mg1065/cdc2-2015-www,mg1065/cdc2-2015-www,mgerst/cdc2-2015-www,mgerst/cdc2-2015-www
import os from os import listdir from django.conf import settings def handle_uploaded_file(f, title, user): targetdir = 'uploads/' + user.__str__() + '/incoming/' if not os.path.exists(targetdir): os.makedirs(targetdir) with open(targetdir + title, 'wb+') as destination: for chunk in f.chu...
import os from os import listdir from django.conf import settings def handle_uploaded_file(f, title, user): targetdir = 'uploads/' + user.__str__() + '/incoming/' if not os.path.exists(targetdir): os.makedirs(targetdir) with open(targetdir + title, 'wb+') as destination: for chunk in f.chu...
<commit_before>import os from os import listdir from django.conf import settings def handle_uploaded_file(f, title, user): targetdir = 'uploads/' + user.__str__() + '/incoming/' if not os.path.exists(targetdir): os.makedirs(targetdir) with open(targetdir + title, 'wb+') as destination: for...
import os from os import listdir from django.conf import settings def handle_uploaded_file(f, title, user): targetdir = 'uploads/' + user.__str__() + '/incoming/' if not os.path.exists(targetdir): os.makedirs(targetdir) with open(targetdir + title, 'wb+') as destination: for chunk in f.chu...
import os from os import listdir from django.conf import settings def handle_uploaded_file(f, title, user): targetdir = 'uploads/' + user.__str__() + '/incoming/' if not os.path.exists(targetdir): os.makedirs(targetdir) with open(targetdir + title, 'wb+') as destination: for chunk in f.chu...
<commit_before>import os from os import listdir from django.conf import settings def handle_uploaded_file(f, title, user): targetdir = 'uploads/' + user.__str__() + '/incoming/' if not os.path.exists(targetdir): os.makedirs(targetdir) with open(targetdir + title, 'wb+') as destination: for...
7104882ffcd35c24d8df5b9aa909e9bc9619cba7
eli5/__init__.py
eli5/__init__.py
# -*- coding: utf-8 -*- from __future__ import absolute_import __version__ = '0.4.1' from .formatters import format_as_html, format_html_styles, format_as_text from .explain import explain_weights, explain_prediction from .sklearn import explain_weights_sklearn, explain_prediction_sklearn try: from .ipython imp...
# -*- coding: utf-8 -*- from __future__ import absolute_import __version__ = '0.4.1' from .formatters import format_as_html, format_html_styles, format_as_text from .explain import explain_weights, explain_prediction from .sklearn import explain_weights_sklearn, explain_prediction_sklearn try: from .ipython imp...
Handle improperly installed xgboost. Fixes GH-162.
Handle improperly installed xgboost. Fixes GH-162.
Python
mit
TeamHG-Memex/eli5,TeamHG-Memex/eli5,TeamHG-Memex/eli5
# -*- coding: utf-8 -*- from __future__ import absolute_import __version__ = '0.4.1' from .formatters import format_as_html, format_html_styles, format_as_text from .explain import explain_weights, explain_prediction from .sklearn import explain_weights_sklearn, explain_prediction_sklearn try: from .ipython imp...
# -*- coding: utf-8 -*- from __future__ import absolute_import __version__ = '0.4.1' from .formatters import format_as_html, format_html_styles, format_as_text from .explain import explain_weights, explain_prediction from .sklearn import explain_weights_sklearn, explain_prediction_sklearn try: from .ipython imp...
<commit_before># -*- coding: utf-8 -*- from __future__ import absolute_import __version__ = '0.4.1' from .formatters import format_as_html, format_html_styles, format_as_text from .explain import explain_weights, explain_prediction from .sklearn import explain_weights_sklearn, explain_prediction_sklearn try: fr...
# -*- coding: utf-8 -*- from __future__ import absolute_import __version__ = '0.4.1' from .formatters import format_as_html, format_html_styles, format_as_text from .explain import explain_weights, explain_prediction from .sklearn import explain_weights_sklearn, explain_prediction_sklearn try: from .ipython imp...
# -*- coding: utf-8 -*- from __future__ import absolute_import __version__ = '0.4.1' from .formatters import format_as_html, format_html_styles, format_as_text from .explain import explain_weights, explain_prediction from .sklearn import explain_weights_sklearn, explain_prediction_sklearn try: from .ipython imp...
<commit_before># -*- coding: utf-8 -*- from __future__ import absolute_import __version__ = '0.4.1' from .formatters import format_as_html, format_html_styles, format_as_text from .explain import explain_weights, explain_prediction from .sklearn import explain_weights_sklearn, explain_prediction_sklearn try: fr...
c4e4181617979247c5a891d8027077297d0a04da
modoboa_admin/management/commands/export_identities.py
modoboa_admin/management/commands/export_identities.py
import sys import csv from optparse import make_option from django.core.management.base import BaseCommand from modoboa.core import load_core_settings from modoboa.core.models import User from modoboa.core.extensions import exts_pool from modoboa.core.management.commands import CloseConnectionMixin from ...models imp...
import sys import csv from optparse import make_option from django.core.management.base import BaseCommand from modoboa.core import load_core_settings from modoboa.core.models import User from modoboa.core.extensions import exts_pool from modoboa.core.management.commands import CloseConnectionMixin from ...models imp...
Improve the speed of csv export file generation
Improve the speed of csv export file generation
Python
mit
bearstech/modoboa-admin,bearstech/modoboa-admin,bearstech/modoboa-admin
import sys import csv from optparse import make_option from django.core.management.base import BaseCommand from modoboa.core import load_core_settings from modoboa.core.models import User from modoboa.core.extensions import exts_pool from modoboa.core.management.commands import CloseConnectionMixin from ...models imp...
import sys import csv from optparse import make_option from django.core.management.base import BaseCommand from modoboa.core import load_core_settings from modoboa.core.models import User from modoboa.core.extensions import exts_pool from modoboa.core.management.commands import CloseConnectionMixin from ...models imp...
<commit_before>import sys import csv from optparse import make_option from django.core.management.base import BaseCommand from modoboa.core import load_core_settings from modoboa.core.models import User from modoboa.core.extensions import exts_pool from modoboa.core.management.commands import CloseConnectionMixin fro...
import sys import csv from optparse import make_option from django.core.management.base import BaseCommand from modoboa.core import load_core_settings from modoboa.core.models import User from modoboa.core.extensions import exts_pool from modoboa.core.management.commands import CloseConnectionMixin from ...models imp...
import sys import csv from optparse import make_option from django.core.management.base import BaseCommand from modoboa.core import load_core_settings from modoboa.core.models import User from modoboa.core.extensions import exts_pool from modoboa.core.management.commands import CloseConnectionMixin from ...models imp...
<commit_before>import sys import csv from optparse import make_option from django.core.management.base import BaseCommand from modoboa.core import load_core_settings from modoboa.core.models import User from modoboa.core.extensions import exts_pool from modoboa.core.management.commands import CloseConnectionMixin fro...
202fde782631f302278f37ccc49f8e136d0274b3
git_pre_commit_hook/builtin_plugins/flake8_check.py
git_pre_commit_hook/builtin_plugins/flake8_check.py
"""Check files with flake8.""" import flake8.main import re DEFAULTS = { 'ignore': 'E226', 'complexity': '10', } PYTHON_SHEBANG_REGEX = re.compile(r'''^#!.*python''') def check(file_staged_for_commit, options): if file_staged_for_commit.path.endswith('.py') or \ PYTHON_SHEBANG_REGEX.search...
"""Check files with flake8.""" import flake8.main import re DEFAULTS = { 'ignore': 'E226', # TODO (evvers@ya.ru): Change complexity to 11 when mccabe=0.2.2 released # https://github.com/flintwork/mccabe/issues/5 'complexity': '12' } PYTHON_SHEBANG_REGEX = re.compile(r'''^#!.*python''') def check(f...
Change default mccabe complexity to 12
Change default mccabe complexity to 12 See comments at code
Python
mit
evvers/git-pre-commit-hook
"""Check files with flake8.""" import flake8.main import re DEFAULTS = { 'ignore': 'E226', 'complexity': '10', } PYTHON_SHEBANG_REGEX = re.compile(r'''^#!.*python''') def check(file_staged_for_commit, options): if file_staged_for_commit.path.endswith('.py') or \ PYTHON_SHEBANG_REGEX.search...
"""Check files with flake8.""" import flake8.main import re DEFAULTS = { 'ignore': 'E226', # TODO (evvers@ya.ru): Change complexity to 11 when mccabe=0.2.2 released # https://github.com/flintwork/mccabe/issues/5 'complexity': '12' } PYTHON_SHEBANG_REGEX = re.compile(r'''^#!.*python''') def check(f...
<commit_before>"""Check files with flake8.""" import flake8.main import re DEFAULTS = { 'ignore': 'E226', 'complexity': '10', } PYTHON_SHEBANG_REGEX = re.compile(r'''^#!.*python''') def check(file_staged_for_commit, options): if file_staged_for_commit.path.endswith('.py') or \ PYTHON_SHEBA...
"""Check files with flake8.""" import flake8.main import re DEFAULTS = { 'ignore': 'E226', # TODO (evvers@ya.ru): Change complexity to 11 when mccabe=0.2.2 released # https://github.com/flintwork/mccabe/issues/5 'complexity': '12' } PYTHON_SHEBANG_REGEX = re.compile(r'''^#!.*python''') def check(f...
"""Check files with flake8.""" import flake8.main import re DEFAULTS = { 'ignore': 'E226', 'complexity': '10', } PYTHON_SHEBANG_REGEX = re.compile(r'''^#!.*python''') def check(file_staged_for_commit, options): if file_staged_for_commit.path.endswith('.py') or \ PYTHON_SHEBANG_REGEX.search...
<commit_before>"""Check files with flake8.""" import flake8.main import re DEFAULTS = { 'ignore': 'E226', 'complexity': '10', } PYTHON_SHEBANG_REGEX = re.compile(r'''^#!.*python''') def check(file_staged_for_commit, options): if file_staged_for_commit.path.endswith('.py') or \ PYTHON_SHEBA...
e72a71c045457bb459be4b7ea7e66e7438abdc95
terraform/templates/sch_log_parser.py
terraform/templates/sch_log_parser.py
import time from datetime import datetime def my_log_parser(logger, line): if line.count(',') >= 6: date, report_type, group_id, job_id, event, package, rest = line.split(',',6) if report_type == 'J' and event != 'Pending': date = datetime.strptime(date, "%Y-%m-%d %H:%M:%S") date = tim...
import time from datetime import datetime def my_log_parser(logger, line): if line.count(',') >= 6: date, report_type, group_id, job_id, event, package, rest = line.split(',',6) if report_type == 'J' and event != 'Pending': date = datetime.strptime(date, "%Y-%m-%d %H:%M:%S") ...
Fix dashboard script parsing failure
Fix dashboard script parsing failure Signed-off-by: Salim Alam <18ae4dd1e3db1d49a738226169e3b099325c79a0@chef.io>
Python
apache-2.0
habitat-sh/habitat,rsertelon/habitat,rsertelon/habitat,habitat-sh/habitat,rsertelon/habitat,rsertelon/habitat,habitat-sh/habitat,nathenharvey/habitat,nathenharvey/habitat,rsertelon/habitat,habitat-sh/habitat,habitat-sh/habitat,habitat-sh/habitat,georgemarshall/habitat,georgemarshall/habitat,nathenharvey/habitat,georgem...
import time from datetime import datetime def my_log_parser(logger, line): if line.count(',') >= 6: date, report_type, group_id, job_id, event, package, rest = line.split(',',6) if report_type == 'J' and event != 'Pending': date = datetime.strptime(date, "%Y-%m-%d %H:%M:%S") date = tim...
import time from datetime import datetime def my_log_parser(logger, line): if line.count(',') >= 6: date, report_type, group_id, job_id, event, package, rest = line.split(',',6) if report_type == 'J' and event != 'Pending': date = datetime.strptime(date, "%Y-%m-%d %H:%M:%S") ...
<commit_before>import time from datetime import datetime def my_log_parser(logger, line): if line.count(',') >= 6: date, report_type, group_id, job_id, event, package, rest = line.split(',',6) if report_type == 'J' and event != 'Pending': date = datetime.strptime(date, "%Y-%m-%d %H:%M:%S") ...
import time from datetime import datetime def my_log_parser(logger, line): if line.count(',') >= 6: date, report_type, group_id, job_id, event, package, rest = line.split(',',6) if report_type == 'J' and event != 'Pending': date = datetime.strptime(date, "%Y-%m-%d %H:%M:%S") ...
import time from datetime import datetime def my_log_parser(logger, line): if line.count(',') >= 6: date, report_type, group_id, job_id, event, package, rest = line.split(',',6) if report_type == 'J' and event != 'Pending': date = datetime.strptime(date, "%Y-%m-%d %H:%M:%S") date = tim...
<commit_before>import time from datetime import datetime def my_log_parser(logger, line): if line.count(',') >= 6: date, report_type, group_id, job_id, event, package, rest = line.split(',',6) if report_type == 'J' and event != 'Pending': date = datetime.strptime(date, "%Y-%m-%d %H:%M:%S") ...
9c75733c445900f579f3db4b98e7c8b71f084678
oscar_sagepay/dashboard/app.py
oscar_sagepay/dashboard/app.py
from django.conf.urls import patterns, url from django.contrib.admin.views.decorators import staff_member_required from oscar.core.application import Application from oscar.apps.dashboard.nav import register, Node from . import views node = Node('Datacash', 'sagepay-transaction-list') register(node, 100) class Sag...
from django.conf.urls import patterns, url from django.contrib.admin.views.decorators import staff_member_required from oscar.core.application import Application from . import views try: from oscar.apps.dashboard.nav import register, Node except ImportError: pass else: # Old way of registering Dashboard n...
Handle Oscar 0.4 dashboard navigation gracefully
Handle Oscar 0.4 dashboard navigation gracefully
Python
bsd-3-clause
django-oscar/django-oscar-sagepay-direct
from django.conf.urls import patterns, url from django.contrib.admin.views.decorators import staff_member_required from oscar.core.application import Application from oscar.apps.dashboard.nav import register, Node from . import views node = Node('Datacash', 'sagepay-transaction-list') register(node, 100) class Sag...
from django.conf.urls import patterns, url from django.contrib.admin.views.decorators import staff_member_required from oscar.core.application import Application from . import views try: from oscar.apps.dashboard.nav import register, Node except ImportError: pass else: # Old way of registering Dashboard n...
<commit_before>from django.conf.urls import patterns, url from django.contrib.admin.views.decorators import staff_member_required from oscar.core.application import Application from oscar.apps.dashboard.nav import register, Node from . import views node = Node('Datacash', 'sagepay-transaction-list') register(node, 1...
from django.conf.urls import patterns, url from django.contrib.admin.views.decorators import staff_member_required from oscar.core.application import Application from . import views try: from oscar.apps.dashboard.nav import register, Node except ImportError: pass else: # Old way of registering Dashboard n...
from django.conf.urls import patterns, url from django.contrib.admin.views.decorators import staff_member_required from oscar.core.application import Application from oscar.apps.dashboard.nav import register, Node from . import views node = Node('Datacash', 'sagepay-transaction-list') register(node, 100) class Sag...
<commit_before>from django.conf.urls import patterns, url from django.contrib.admin.views.decorators import staff_member_required from oscar.core.application import Application from oscar.apps.dashboard.nav import register, Node from . import views node = Node('Datacash', 'sagepay-transaction-list') register(node, 1...
454329c3cb6434dcdd2b4d89f127a87da8ee23ef
example/example_spin.py
example/example_spin.py
#!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import absolute_import, print_function import sys import time from pyspin import spin def show(name, frames): s = spin.Spinner(frames) print(name) for i in range(50): time.sleep(0.1) print("\r{0}".format(s.next()), end="") ...
#!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import absolute_import, print_function import sys import time from pyspin import spin def show(name, frames): s = spin.Spinner(frames) print(name) for i in range(50): print(u"\r{0}".format(s.next()), end="") sys.stdout.flush(...
Fix unicode issue in example code for python2.x
Fix unicode issue in example code for python2.x
Python
mit
lord63/py-spin
#!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import absolute_import, print_function import sys import time from pyspin import spin def show(name, frames): s = spin.Spinner(frames) print(name) for i in range(50): time.sleep(0.1) print("\r{0}".format(s.next()), end="") ...
#!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import absolute_import, print_function import sys import time from pyspin import spin def show(name, frames): s = spin.Spinner(frames) print(name) for i in range(50): print(u"\r{0}".format(s.next()), end="") sys.stdout.flush(...
<commit_before>#!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import absolute_import, print_function import sys import time from pyspin import spin def show(name, frames): s = spin.Spinner(frames) print(name) for i in range(50): time.sleep(0.1) print("\r{0}".format(s.next...
#!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import absolute_import, print_function import sys import time from pyspin import spin def show(name, frames): s = spin.Spinner(frames) print(name) for i in range(50): print(u"\r{0}".format(s.next()), end="") sys.stdout.flush(...
#!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import absolute_import, print_function import sys import time from pyspin import spin def show(name, frames): s = spin.Spinner(frames) print(name) for i in range(50): time.sleep(0.1) print("\r{0}".format(s.next()), end="") ...
<commit_before>#!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import absolute_import, print_function import sys import time from pyspin import spin def show(name, frames): s = spin.Spinner(frames) print(name) for i in range(50): time.sleep(0.1) print("\r{0}".format(s.next...
1af2795907b3a686d9bce4bdc94b89f3678dd1af
corehq/apps/sms/migrations/0049_auto_enable_turnio_ff.py
corehq/apps/sms/migrations/0049_auto_enable_turnio_ff.py
# Generated by Django 2.2.24 on 2021-06-10 09:13 from django.db import migrations from corehq.messaging.smsbackends.turn.models import SQLTurnWhatsAppBackend from corehq.toggles import TURN_IO_BACKEND, NAMESPACE_DOMAIN def auto_enable_turnio_ff_for_certain_domains(apps, schema_editor): for backend in SQLTurnWhat...
# Generated by Django 2.2.24 on 2021-06-10 09:13 from django.db import migrations from corehq.toggles import TURN_IO_BACKEND, NAMESPACE_DOMAIN def auto_enable_turnio_ff_for_certain_domains(apps, schema_editor): SQLTurnWhatsAppBackend = apps.get_model('sms', 'SQLTurnWhatsAppBackend') for backend in SQLTurnWh...
Use historical model in migration, not directly imported model
Use historical model in migration, not directly imported model
Python
bsd-3-clause
dimagi/commcare-hq,dimagi/commcare-hq,dimagi/commcare-hq,dimagi/commcare-hq,dimagi/commcare-hq
# Generated by Django 2.2.24 on 2021-06-10 09:13 from django.db import migrations from corehq.messaging.smsbackends.turn.models import SQLTurnWhatsAppBackend from corehq.toggles import TURN_IO_BACKEND, NAMESPACE_DOMAIN def auto_enable_turnio_ff_for_certain_domains(apps, schema_editor): for backend in SQLTurnWhat...
# Generated by Django 2.2.24 on 2021-06-10 09:13 from django.db import migrations from corehq.toggles import TURN_IO_BACKEND, NAMESPACE_DOMAIN def auto_enable_turnio_ff_for_certain_domains(apps, schema_editor): SQLTurnWhatsAppBackend = apps.get_model('sms', 'SQLTurnWhatsAppBackend') for backend in SQLTurnWh...
<commit_before># Generated by Django 2.2.24 on 2021-06-10 09:13 from django.db import migrations from corehq.messaging.smsbackends.turn.models import SQLTurnWhatsAppBackend from corehq.toggles import TURN_IO_BACKEND, NAMESPACE_DOMAIN def auto_enable_turnio_ff_for_certain_domains(apps, schema_editor): for backend...
# Generated by Django 2.2.24 on 2021-06-10 09:13 from django.db import migrations from corehq.toggles import TURN_IO_BACKEND, NAMESPACE_DOMAIN def auto_enable_turnio_ff_for_certain_domains(apps, schema_editor): SQLTurnWhatsAppBackend = apps.get_model('sms', 'SQLTurnWhatsAppBackend') for backend in SQLTurnWh...
# Generated by Django 2.2.24 on 2021-06-10 09:13 from django.db import migrations from corehq.messaging.smsbackends.turn.models import SQLTurnWhatsAppBackend from corehq.toggles import TURN_IO_BACKEND, NAMESPACE_DOMAIN def auto_enable_turnio_ff_for_certain_domains(apps, schema_editor): for backend in SQLTurnWhat...
<commit_before># Generated by Django 2.2.24 on 2021-06-10 09:13 from django.db import migrations from corehq.messaging.smsbackends.turn.models import SQLTurnWhatsAppBackend from corehq.toggles import TURN_IO_BACKEND, NAMESPACE_DOMAIN def auto_enable_turnio_ff_for_certain_domains(apps, schema_editor): for backend...