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
aad810071f5b0a93f312a93d3bfa12271ae477ee
ext/avalon-gunicorn.py
ext/avalon-gunicorn.py
# Configuration for running the Avalon Music Server under Gunicorn # http://docs.gunicorn.org # Note that this configuration omits a bunch of features that Gunicorn # has (such as running as a daemon, changing users, error and access # logging) because it is designed to be used when running Gunicorn # with supervisord...
# Configuration for running the Avalon Music Server under Gunicorn # http://docs.gunicorn.org # Note that this configuration omits a bunch of features that Gunicorn # has (such as running as a daemon, changing users, error and access # logging) because it is designed to be used when running Gunicorn # with supervisord...
Fix comment about why we use preload
Fix comment about why we use preload
Python
mit
tshlabs/avalonms
# Configuration for running the Avalon Music Server under Gunicorn # http://docs.gunicorn.org # Note that this configuration omits a bunch of features that Gunicorn # has (such as running as a daemon, changing users, error and access # logging) because it is designed to be used when running Gunicorn # with supervisord...
# Configuration for running the Avalon Music Server under Gunicorn # http://docs.gunicorn.org # Note that this configuration omits a bunch of features that Gunicorn # has (such as running as a daemon, changing users, error and access # logging) because it is designed to be used when running Gunicorn # with supervisord...
<commit_before># Configuration for running the Avalon Music Server under Gunicorn # http://docs.gunicorn.org # Note that this configuration omits a bunch of features that Gunicorn # has (such as running as a daemon, changing users, error and access # logging) because it is designed to be used when running Gunicorn # w...
# Configuration for running the Avalon Music Server under Gunicorn # http://docs.gunicorn.org # Note that this configuration omits a bunch of features that Gunicorn # has (such as running as a daemon, changing users, error and access # logging) because it is designed to be used when running Gunicorn # with supervisord...
# Configuration for running the Avalon Music Server under Gunicorn # http://docs.gunicorn.org # Note that this configuration omits a bunch of features that Gunicorn # has (such as running as a daemon, changing users, error and access # logging) because it is designed to be used when running Gunicorn # with supervisord...
<commit_before># Configuration for running the Avalon Music Server under Gunicorn # http://docs.gunicorn.org # Note that this configuration omits a bunch of features that Gunicorn # has (such as running as a daemon, changing users, error and access # logging) because it is designed to be used when running Gunicorn # w...
c53e296a9a548a3d817263c0d18e3e95f947665a
masters/master.client.webrtc.fyi/master_site_config.py
masters/master.client.webrtc.fyi/master_site_config.py
# Copyright 2013 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. """ActiveMaster definition.""" from config_bootstrap import Master class WebRTCFYI(Master.Master3): project_name = 'WebRTC FYI' master_port = 8063 sl...
# Copyright 2013 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. """ActiveMaster definition.""" from config_bootstrap import Master class WebRTCFYI(Master.Master3): project_name = 'WebRTC FYI' master_port = 8072 sl...
Change client.webrtc.fyi master ports as they conflict with master.client.quickoffice
Change client.webrtc.fyi master ports as they conflict with master.client.quickoffice Review URL: https://chromiumcodereview.appspot.com/23608005 git-svn-id: 239fca9b83025a0b6f823aeeca02ba5be3d9fd76@220055 0039d316-1c4b-4281-b951-d872f2087c98
Python
bsd-3-clause
eunchong/build,eunchong/build,eunchong/build,eunchong/build
# Copyright 2013 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. """ActiveMaster definition.""" from config_bootstrap import Master class WebRTCFYI(Master.Master3): project_name = 'WebRTC FYI' master_port = 8063 sl...
# Copyright 2013 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. """ActiveMaster definition.""" from config_bootstrap import Master class WebRTCFYI(Master.Master3): project_name = 'WebRTC FYI' master_port = 8072 sl...
<commit_before># Copyright 2013 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. """ActiveMaster definition.""" from config_bootstrap import Master class WebRTCFYI(Master.Master3): project_name = 'WebRTC FYI' master_p...
# Copyright 2013 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. """ActiveMaster definition.""" from config_bootstrap import Master class WebRTCFYI(Master.Master3): project_name = 'WebRTC FYI' master_port = 8072 sl...
# Copyright 2013 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. """ActiveMaster definition.""" from config_bootstrap import Master class WebRTCFYI(Master.Master3): project_name = 'WebRTC FYI' master_port = 8063 sl...
<commit_before># Copyright 2013 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. """ActiveMaster definition.""" from config_bootstrap import Master class WebRTCFYI(Master.Master3): project_name = 'WebRTC FYI' master_p...
29a1a39cf4f0fed6999bd787cce7e8e65c49ef4e
display_image.py
display_image.py
import matplotlib.pyplot as plt class ImageWindow: def __init__(self): self.imsh = None plt.ion() plt.show() def display(self, image): if self.imsh is None or not plt.fignum_exists(self.imsh.figure.number): self.imsh = plt.imshow(image, interpolation='nearest') ...
import matplotlib.pyplot as plt class ImageWindow: def __init__(self): self.imsh = None plt.ion() plt.show() def display(self, image): if self.imsh is None or not plt.fignum_exists(self.imsh.figure.number): self.imsh = plt.imshow(image, interpolation='nearest') ...
Set image to fill the entire matplotlib window
Set image to fill the entire matplotlib window
Python
mit
crowsonkb/style_transfer,crowsonkb/style_transfer,crowsonkb/style_transfer,crowsonkb/style_transfer
import matplotlib.pyplot as plt class ImageWindow: def __init__(self): self.imsh = None plt.ion() plt.show() def display(self, image): if self.imsh is None or not plt.fignum_exists(self.imsh.figure.number): self.imsh = plt.imshow(image, interpolation='nearest') ...
import matplotlib.pyplot as plt class ImageWindow: def __init__(self): self.imsh = None plt.ion() plt.show() def display(self, image): if self.imsh is None or not plt.fignum_exists(self.imsh.figure.number): self.imsh = plt.imshow(image, interpolation='nearest') ...
<commit_before>import matplotlib.pyplot as plt class ImageWindow: def __init__(self): self.imsh = None plt.ion() plt.show() def display(self, image): if self.imsh is None or not plt.fignum_exists(self.imsh.figure.number): self.imsh = plt.imshow(image, interpolation...
import matplotlib.pyplot as plt class ImageWindow: def __init__(self): self.imsh = None plt.ion() plt.show() def display(self, image): if self.imsh is None or not plt.fignum_exists(self.imsh.figure.number): self.imsh = plt.imshow(image, interpolation='nearest') ...
import matplotlib.pyplot as plt class ImageWindow: def __init__(self): self.imsh = None plt.ion() plt.show() def display(self, image): if self.imsh is None or not plt.fignum_exists(self.imsh.figure.number): self.imsh = plt.imshow(image, interpolation='nearest') ...
<commit_before>import matplotlib.pyplot as plt class ImageWindow: def __init__(self): self.imsh = None plt.ion() plt.show() def display(self, image): if self.imsh is None or not plt.fignum_exists(self.imsh.figure.number): self.imsh = plt.imshow(image, interpolation...
402056a272c94d3d28da62b08cac14ace18c835a
test/python_api/default-constructor/sb_address.py
test/python_api/default-constructor/sb_address.py
""" Fuzz tests an object after the default construction to make sure it does not crash lldb. """ import sys import lldb def fuzz_obj(obj): obj.GetFileAddress() obj.GetLoadAddress(lldb.SBTarget()) obj.OffsetAddress(sys.maxint) obj.GetDescription(lldb.SBStream()) obj.Clear()
""" Fuzz tests an object after the default construction to make sure it does not crash lldb. """ import sys import lldb def fuzz_obj(obj): obj.GetFileAddress() obj.GetLoadAddress(lldb.SBTarget()) obj.SetLoadAddress(0xffff, lldb.SBTarget()) obj.OffsetAddress(sys.maxint) obj.GetDescription(lldb.SBSt...
Add new API for SBAddress to the fuzz test:
Add new API for SBAddress to the fuzz test: SetLoadAddress (lldb::addr_t load_addr, lldb::SBTarget &target); git-svn-id: b33bab8abb5b18c12ee100cd7761ab452d00b2b0@135793 91177308-0d34-0410-b5e6-96231b3b80d8
Python
apache-2.0
llvm-mirror/lldb,apple/swift-lldb,llvm-mirror/lldb,llvm-mirror/lldb,llvm-mirror/lldb,apple/swift-lldb,apple/swift-lldb,apple/swift-lldb,apple/swift-lldb,apple/swift-lldb,llvm-mirror/lldb
""" Fuzz tests an object after the default construction to make sure it does not crash lldb. """ import sys import lldb def fuzz_obj(obj): obj.GetFileAddress() obj.GetLoadAddress(lldb.SBTarget()) obj.OffsetAddress(sys.maxint) obj.GetDescription(lldb.SBStream()) obj.Clear() Add new API for SBAddres...
""" Fuzz tests an object after the default construction to make sure it does not crash lldb. """ import sys import lldb def fuzz_obj(obj): obj.GetFileAddress() obj.GetLoadAddress(lldb.SBTarget()) obj.SetLoadAddress(0xffff, lldb.SBTarget()) obj.OffsetAddress(sys.maxint) obj.GetDescription(lldb.SBSt...
<commit_before>""" Fuzz tests an object after the default construction to make sure it does not crash lldb. """ import sys import lldb def fuzz_obj(obj): obj.GetFileAddress() obj.GetLoadAddress(lldb.SBTarget()) obj.OffsetAddress(sys.maxint) obj.GetDescription(lldb.SBStream()) obj.Clear() <commit_m...
""" Fuzz tests an object after the default construction to make sure it does not crash lldb. """ import sys import lldb def fuzz_obj(obj): obj.GetFileAddress() obj.GetLoadAddress(lldb.SBTarget()) obj.SetLoadAddress(0xffff, lldb.SBTarget()) obj.OffsetAddress(sys.maxint) obj.GetDescription(lldb.SBSt...
""" Fuzz tests an object after the default construction to make sure it does not crash lldb. """ import sys import lldb def fuzz_obj(obj): obj.GetFileAddress() obj.GetLoadAddress(lldb.SBTarget()) obj.OffsetAddress(sys.maxint) obj.GetDescription(lldb.SBStream()) obj.Clear() Add new API for SBAddres...
<commit_before>""" Fuzz tests an object after the default construction to make sure it does not crash lldb. """ import sys import lldb def fuzz_obj(obj): obj.GetFileAddress() obj.GetLoadAddress(lldb.SBTarget()) obj.OffsetAddress(sys.maxint) obj.GetDescription(lldb.SBStream()) obj.Clear() <commit_m...
eb06650567fe94b65e6ccf55446982af746761af
cumulusci/tasks/salesforce/communities_preflights.py
cumulusci/tasks/salesforce/communities_preflights.py
import requests from cumulusci.tasks.salesforce import BaseSalesforceApiTask class IsCommunitiesEnabled(BaseSalesforceApiTask): api_version = "48.0" def _run_task(self): s = requests.Session() s.get(self.org_config.start_url).raise_for_status() r = s.get( "{}/sites/servlet...
import requests from cumulusci.tasks.salesforce import BaseSalesforceApiTask class IsCommunitiesEnabled(BaseSalesforceApiTask): api_version = "48.0" def _run_task(self): s = requests.Session() s.get(self.org_config.start_url).raise_for_status() r = s.get( "{}/sites/servlet...
Clean logic in Communities preflight
Clean logic in Communities preflight
Python
bsd-3-clause
SalesforceFoundation/CumulusCI,SalesforceFoundation/CumulusCI
import requests from cumulusci.tasks.salesforce import BaseSalesforceApiTask class IsCommunitiesEnabled(BaseSalesforceApiTask): api_version = "48.0" def _run_task(self): s = requests.Session() s.get(self.org_config.start_url).raise_for_status() r = s.get( "{}/sites/servlet...
import requests from cumulusci.tasks.salesforce import BaseSalesforceApiTask class IsCommunitiesEnabled(BaseSalesforceApiTask): api_version = "48.0" def _run_task(self): s = requests.Session() s.get(self.org_config.start_url).raise_for_status() r = s.get( "{}/sites/servlet...
<commit_before>import requests from cumulusci.tasks.salesforce import BaseSalesforceApiTask class IsCommunitiesEnabled(BaseSalesforceApiTask): api_version = "48.0" def _run_task(self): s = requests.Session() s.get(self.org_config.start_url).raise_for_status() r = s.get( "{...
import requests from cumulusci.tasks.salesforce import BaseSalesforceApiTask class IsCommunitiesEnabled(BaseSalesforceApiTask): api_version = "48.0" def _run_task(self): s = requests.Session() s.get(self.org_config.start_url).raise_for_status() r = s.get( "{}/sites/servlet...
import requests from cumulusci.tasks.salesforce import BaseSalesforceApiTask class IsCommunitiesEnabled(BaseSalesforceApiTask): api_version = "48.0" def _run_task(self): s = requests.Session() s.get(self.org_config.start_url).raise_for_status() r = s.get( "{}/sites/servlet...
<commit_before>import requests from cumulusci.tasks.salesforce import BaseSalesforceApiTask class IsCommunitiesEnabled(BaseSalesforceApiTask): api_version = "48.0" def _run_task(self): s = requests.Session() s.get(self.org_config.start_url).raise_for_status() r = s.get( "{...
d5fb6c5320dbb6827e24dc22be08454f05aac83e
emails/tests.py
emails/tests.py
from django.test import TestCase from django.core.urlresolvers import reverse from common.util import create_admin, create_user class TestEmailRendering(TestCase): def setUp(self): self.user = create_user(username='user', password='password') self.admin = create_admin(username='admin', password='p...
from django.test import TestCase from django.core.urlresolvers import reverse from common.util import create_admin, create_user class TestEmailRendering(TestCase): def setUp(self): self.user = create_user(username='user', password='password') self.admin = create_admin(username='admin', password='p...
Test that regular users can send test emails
Test that regular users can send test emails
Python
agpl-3.0
Turupawn/website,lutris/website,Turupawn/website,Turupawn/website,lutris/website,Turupawn/website,lutris/website,lutris/website
from django.test import TestCase from django.core.urlresolvers import reverse from common.util import create_admin, create_user class TestEmailRendering(TestCase): def setUp(self): self.user = create_user(username='user', password='password') self.admin = create_admin(username='admin', password='p...
from django.test import TestCase from django.core.urlresolvers import reverse from common.util import create_admin, create_user class TestEmailRendering(TestCase): def setUp(self): self.user = create_user(username='user', password='password') self.admin = create_admin(username='admin', password='p...
<commit_before>from django.test import TestCase from django.core.urlresolvers import reverse from common.util import create_admin, create_user class TestEmailRendering(TestCase): def setUp(self): self.user = create_user(username='user', password='password') self.admin = create_admin(username='admi...
from django.test import TestCase from django.core.urlresolvers import reverse from common.util import create_admin, create_user class TestEmailRendering(TestCase): def setUp(self): self.user = create_user(username='user', password='password') self.admin = create_admin(username='admin', password='p...
from django.test import TestCase from django.core.urlresolvers import reverse from common.util import create_admin, create_user class TestEmailRendering(TestCase): def setUp(self): self.user = create_user(username='user', password='password') self.admin = create_admin(username='admin', password='p...
<commit_before>from django.test import TestCase from django.core.urlresolvers import reverse from common.util import create_admin, create_user class TestEmailRendering(TestCase): def setUp(self): self.user = create_user(username='user', password='password') self.admin = create_admin(username='admi...
186b1aabdf9574218204d1bc6da12be9b3cfb681
example/main.py
example/main.py
#!/usr/bin/env python3 import logging import sys assert sys.version >= '3.3', 'Please use Python 3.3 or higher.' from nacho.routing import Router from nacho.http import HttpServer from nacho.multithreading import Superviser from nacho.app import Application class Home(Application): def __call__(self, request_ar...
#!/usr/bin/env python3 import logging import sys assert sys.version >= '3.3', 'Please use Python 3.3 or higher.' from nacho.routing import Router from nacho.http import HttpServer from nacho.multithreading import Superviser from nacho.app import Application class Home(Application): def get(self, request_args=No...
Use method get in example app
Use method get in example app
Python
mit
beni55/nacho,avelino/nacho,beni55/nacho
#!/usr/bin/env python3 import logging import sys assert sys.version >= '3.3', 'Please use Python 3.3 or higher.' from nacho.routing import Router from nacho.http import HttpServer from nacho.multithreading import Superviser from nacho.app import Application class Home(Application): def __call__(self, request_ar...
#!/usr/bin/env python3 import logging import sys assert sys.version >= '3.3', 'Please use Python 3.3 or higher.' from nacho.routing import Router from nacho.http import HttpServer from nacho.multithreading import Superviser from nacho.app import Application class Home(Application): def get(self, request_args=No...
<commit_before>#!/usr/bin/env python3 import logging import sys assert sys.version >= '3.3', 'Please use Python 3.3 or higher.' from nacho.routing import Router from nacho.http import HttpServer from nacho.multithreading import Superviser from nacho.app import Application class Home(Application): def __call__(s...
#!/usr/bin/env python3 import logging import sys assert sys.version >= '3.3', 'Please use Python 3.3 or higher.' from nacho.routing import Router from nacho.http import HttpServer from nacho.multithreading import Superviser from nacho.app import Application class Home(Application): def get(self, request_args=No...
#!/usr/bin/env python3 import logging import sys assert sys.version >= '3.3', 'Please use Python 3.3 or higher.' from nacho.routing import Router from nacho.http import HttpServer from nacho.multithreading import Superviser from nacho.app import Application class Home(Application): def __call__(self, request_ar...
<commit_before>#!/usr/bin/env python3 import logging import sys assert sys.version >= '3.3', 'Please use Python 3.3 or higher.' from nacho.routing import Router from nacho.http import HttpServer from nacho.multithreading import Superviser from nacho.app import Application class Home(Application): def __call__(s...
a5e7423b01ffb4fed1987dfadbe9283480f04929
grazer/core/parsing.py
grazer/core/parsing.py
import re import logging logger = logging.getLogger("Parsing") def create_node(data): tag_part = r"(?P<tag>\w+)" attr_part = r"(?P<q>\[(?P<attr>\w+)=(\"|\')(?P<val>.+?)(\"|\')\])?" selector_part = r"(\{(?P<selector>\d+)\})?" p = tag_part + attr_part + selector_part patt = re.compile(p) m = p...
import re import logging logger = logging.getLogger("Parsing") def create_node(data): tag_part = r"(?P<tag>\w+)" attr_part = r"(?P<q>\[(?P<attr>\w+)=(\"|\')(?P<val>.+?)(\"|\')\])?" selector_part = r"(\{(?P<selector>\d+)\})?" p = tag_part + attr_part + selector_part patt = re.compile(p) m = p...
Fix for zero depth path
Fix for zero depth path
Python
mit
CodersOfTheNight/verata
import re import logging logger = logging.getLogger("Parsing") def create_node(data): tag_part = r"(?P<tag>\w+)" attr_part = r"(?P<q>\[(?P<attr>\w+)=(\"|\')(?P<val>.+?)(\"|\')\])?" selector_part = r"(\{(?P<selector>\d+)\})?" p = tag_part + attr_part + selector_part patt = re.compile(p) m = p...
import re import logging logger = logging.getLogger("Parsing") def create_node(data): tag_part = r"(?P<tag>\w+)" attr_part = r"(?P<q>\[(?P<attr>\w+)=(\"|\')(?P<val>.+?)(\"|\')\])?" selector_part = r"(\{(?P<selector>\d+)\})?" p = tag_part + attr_part + selector_part patt = re.compile(p) m = p...
<commit_before>import re import logging logger = logging.getLogger("Parsing") def create_node(data): tag_part = r"(?P<tag>\w+)" attr_part = r"(?P<q>\[(?P<attr>\w+)=(\"|\')(?P<val>.+?)(\"|\')\])?" selector_part = r"(\{(?P<selector>\d+)\})?" p = tag_part + attr_part + selector_part patt = re.compil...
import re import logging logger = logging.getLogger("Parsing") def create_node(data): tag_part = r"(?P<tag>\w+)" attr_part = r"(?P<q>\[(?P<attr>\w+)=(\"|\')(?P<val>.+?)(\"|\')\])?" selector_part = r"(\{(?P<selector>\d+)\})?" p = tag_part + attr_part + selector_part patt = re.compile(p) m = p...
import re import logging logger = logging.getLogger("Parsing") def create_node(data): tag_part = r"(?P<tag>\w+)" attr_part = r"(?P<q>\[(?P<attr>\w+)=(\"|\')(?P<val>.+?)(\"|\')\])?" selector_part = r"(\{(?P<selector>\d+)\})?" p = tag_part + attr_part + selector_part patt = re.compile(p) m = p...
<commit_before>import re import logging logger = logging.getLogger("Parsing") def create_node(data): tag_part = r"(?P<tag>\w+)" attr_part = r"(?P<q>\[(?P<attr>\w+)=(\"|\')(?P<val>.+?)(\"|\')\])?" selector_part = r"(\{(?P<selector>\d+)\})?" p = tag_part + attr_part + selector_part patt = re.compil...
5bbed41d8150f6d0657f1a7670b449619f3ba0f7
promgen/util.py
promgen/util.py
# Copyright (c) 2017 LINE Corporation # These sources are released under the terms of the MIT license: see LICENSE import requests from promgen.version import __version__ def post(url, *args, **kwargs): '''Wraps requests.post with our user-agent''' if 'headers' not in kwargs: kwargs['headers'] = {} ...
# Copyright (c) 2017 LINE Corporation # These sources are released under the terms of the MIT license: see LICENSE import requests.sessions from promgen.version import __version__ def post(url, **kwargs): with requests.sessions.Session() as session: session.headers['User-Agent'] = 'promgen/{}'.format(__...
Copy the pattern from requests.api to use a slightly more stable API
Copy the pattern from requests.api to use a slightly more stable API
Python
mit
kfdm/promgen,kfdm/promgen,kfdm/promgen,kfdm/promgen
# Copyright (c) 2017 LINE Corporation # These sources are released under the terms of the MIT license: see LICENSE import requests from promgen.version import __version__ def post(url, *args, **kwargs): '''Wraps requests.post with our user-agent''' if 'headers' not in kwargs: kwargs['headers'] = {} ...
# Copyright (c) 2017 LINE Corporation # These sources are released under the terms of the MIT license: see LICENSE import requests.sessions from promgen.version import __version__ def post(url, **kwargs): with requests.sessions.Session() as session: session.headers['User-Agent'] = 'promgen/{}'.format(__...
<commit_before># Copyright (c) 2017 LINE Corporation # These sources are released under the terms of the MIT license: see LICENSE import requests from promgen.version import __version__ def post(url, *args, **kwargs): '''Wraps requests.post with our user-agent''' if 'headers' not in kwargs: kwargs['...
# Copyright (c) 2017 LINE Corporation # These sources are released under the terms of the MIT license: see LICENSE import requests.sessions from promgen.version import __version__ def post(url, **kwargs): with requests.sessions.Session() as session: session.headers['User-Agent'] = 'promgen/{}'.format(__...
# Copyright (c) 2017 LINE Corporation # These sources are released under the terms of the MIT license: see LICENSE import requests from promgen.version import __version__ def post(url, *args, **kwargs): '''Wraps requests.post with our user-agent''' if 'headers' not in kwargs: kwargs['headers'] = {} ...
<commit_before># Copyright (c) 2017 LINE Corporation # These sources are released under the terms of the MIT license: see LICENSE import requests from promgen.version import __version__ def post(url, *args, **kwargs): '''Wraps requests.post with our user-agent''' if 'headers' not in kwargs: kwargs['...
00e9f7d239287896946511b81e2029a5db1f435c
scipy/fftpack/__init__.py
scipy/fftpack/__init__.py
# # fftpack - Discrete Fourier Transform algorithms. # # Created: Pearu Peterson, August,September 2002 from info import __all__,__doc__ from fftpack_version import fftpack_version as __version__ from basic import * from pseudo_diffs import * from helper import * from numpy.dual import register_func for k in ['fft'...
# # fftpack - Discrete Fourier Transform algorithms. # # Created: Pearu Peterson, August,September 2002 from info import __all__,__doc__ from fftpack_version import fftpack_version as __version__ from basic import * from pseudo_diffs import * from helper import * from numpy.dual import register_func for k in ['fft'...
Add dct and idct in scipy.fftpack namespace.
Add dct and idct in scipy.fftpack namespace. git-svn-id: 003f22d385e25de9cff933a5ea4efd77cb5e7b28@5519 d6536bca-fef9-0310-8506-e4c0a848fbcf
Python
bsd-3-clause
scipy/scipy-svn,lesserwhirls/scipy-cwt,lesserwhirls/scipy-cwt,scipy/scipy-svn,scipy/scipy-svn,jasonmccampbell/scipy-refactor,lesserwhirls/scipy-cwt,jasonmccampbell/scipy-refactor,jasonmccampbell/scipy-refactor,lesserwhirls/scipy-cwt,scipy/scipy-svn,jasonmccampbell/scipy-refactor
# # fftpack - Discrete Fourier Transform algorithms. # # Created: Pearu Peterson, August,September 2002 from info import __all__,__doc__ from fftpack_version import fftpack_version as __version__ from basic import * from pseudo_diffs import * from helper import * from numpy.dual import register_func for k in ['fft'...
# # fftpack - Discrete Fourier Transform algorithms. # # Created: Pearu Peterson, August,September 2002 from info import __all__,__doc__ from fftpack_version import fftpack_version as __version__ from basic import * from pseudo_diffs import * from helper import * from numpy.dual import register_func for k in ['fft'...
<commit_before># # fftpack - Discrete Fourier Transform algorithms. # # Created: Pearu Peterson, August,September 2002 from info import __all__,__doc__ from fftpack_version import fftpack_version as __version__ from basic import * from pseudo_diffs import * from helper import * from numpy.dual import register_func ...
# # fftpack - Discrete Fourier Transform algorithms. # # Created: Pearu Peterson, August,September 2002 from info import __all__,__doc__ from fftpack_version import fftpack_version as __version__ from basic import * from pseudo_diffs import * from helper import * from numpy.dual import register_func for k in ['fft'...
# # fftpack - Discrete Fourier Transform algorithms. # # Created: Pearu Peterson, August,September 2002 from info import __all__,__doc__ from fftpack_version import fftpack_version as __version__ from basic import * from pseudo_diffs import * from helper import * from numpy.dual import register_func for k in ['fft'...
<commit_before># # fftpack - Discrete Fourier Transform algorithms. # # Created: Pearu Peterson, August,September 2002 from info import __all__,__doc__ from fftpack_version import fftpack_version as __version__ from basic import * from pseudo_diffs import * from helper import * from numpy.dual import register_func ...
5a9fe4f8100a36fff3e4c4af21a76d18ac27766f
headers/cpp/headers.py
headers/cpp/headers.py
#!/usr/bin/env python """Find and print the headers #include'd in a source file.""" import os import sys from cpp import ast from cpp import utils _TRANSITIVE = False _INCLUDE_DIRS = ['.'] def ReadSource(relative_filename): source = None for path in _INCLUDE_DIRS: filename = os.path.join(path, re...
#!/usr/bin/env python """Find and print the headers #include'd in a source file.""" import os import sys from cpp import ast from cpp import utils # Allow a site to override the defaults if they choose. # Just put a siteheaders.py somewhere in the PYTHONPATH. try: import siteheaders except ImportError: site...
Allow a site to override the default search (include) directories.
Allow a site to override the default search (include) directories. git-svn-id: b0ea89ea3bf41df64b6a046736e217d0ae4a0fba@19 806ff5bb-693f-0410-b502-81bc3482ff28
Python
apache-2.0
myint/cppclean,myint/cppclean,myint/cppclean,myint/cppclean
#!/usr/bin/env python """Find and print the headers #include'd in a source file.""" import os import sys from cpp import ast from cpp import utils _TRANSITIVE = False _INCLUDE_DIRS = ['.'] def ReadSource(relative_filename): source = None for path in _INCLUDE_DIRS: filename = os.path.join(path, re...
#!/usr/bin/env python """Find and print the headers #include'd in a source file.""" import os import sys from cpp import ast from cpp import utils # Allow a site to override the defaults if they choose. # Just put a siteheaders.py somewhere in the PYTHONPATH. try: import siteheaders except ImportError: site...
<commit_before>#!/usr/bin/env python """Find and print the headers #include'd in a source file.""" import os import sys from cpp import ast from cpp import utils _TRANSITIVE = False _INCLUDE_DIRS = ['.'] def ReadSource(relative_filename): source = None for path in _INCLUDE_DIRS: filename = os.pat...
#!/usr/bin/env python """Find and print the headers #include'd in a source file.""" import os import sys from cpp import ast from cpp import utils # Allow a site to override the defaults if they choose. # Just put a siteheaders.py somewhere in the PYTHONPATH. try: import siteheaders except ImportError: site...
#!/usr/bin/env python """Find and print the headers #include'd in a source file.""" import os import sys from cpp import ast from cpp import utils _TRANSITIVE = False _INCLUDE_DIRS = ['.'] def ReadSource(relative_filename): source = None for path in _INCLUDE_DIRS: filename = os.path.join(path, re...
<commit_before>#!/usr/bin/env python """Find and print the headers #include'd in a source file.""" import os import sys from cpp import ast from cpp import utils _TRANSITIVE = False _INCLUDE_DIRS = ['.'] def ReadSource(relative_filename): source = None for path in _INCLUDE_DIRS: filename = os.pat...
85f8d0662901047115f2d852489a3a5be1a01226
datafilters/views.py
datafilters/views.py
try: from django.views.generic.base import ContextMixin as mixin_base except ImportError: mixin_base = object __all__ = ('FilterFormMixin',) class FilterFormMixin(mixin_base): """ Mixin that adds filtering behaviour for Class Based Views. Changed in a way that can play nicely with other CBV simpl...
from django.views.generic.list import MultipleObjectMixin __all__ = ('FilterFormMixin',) class FilterFormMixin(MultipleObjectMixin): """ Mixin that adds filtering behaviour for Class Based Views. Changed in a way that can play nicely with other CBV simply by overriding the get_queryset(self) and get_...
Set base class for view mixin to MultipleObjectMixin
Set base class for view mixin to MultipleObjectMixin
Python
mit
freevoid/django-datafilters,zorainc/django-datafilters,zorainc/django-datafilters
try: from django.views.generic.base import ContextMixin as mixin_base except ImportError: mixin_base = object __all__ = ('FilterFormMixin',) class FilterFormMixin(mixin_base): """ Mixin that adds filtering behaviour for Class Based Views. Changed in a way that can play nicely with other CBV simpl...
from django.views.generic.list import MultipleObjectMixin __all__ = ('FilterFormMixin',) class FilterFormMixin(MultipleObjectMixin): """ Mixin that adds filtering behaviour for Class Based Views. Changed in a way that can play nicely with other CBV simply by overriding the get_queryset(self) and get_...
<commit_before>try: from django.views.generic.base import ContextMixin as mixin_base except ImportError: mixin_base = object __all__ = ('FilterFormMixin',) class FilterFormMixin(mixin_base): """ Mixin that adds filtering behaviour for Class Based Views. Changed in a way that can play nicely with ...
from django.views.generic.list import MultipleObjectMixin __all__ = ('FilterFormMixin',) class FilterFormMixin(MultipleObjectMixin): """ Mixin that adds filtering behaviour for Class Based Views. Changed in a way that can play nicely with other CBV simply by overriding the get_queryset(self) and get_...
try: from django.views.generic.base import ContextMixin as mixin_base except ImportError: mixin_base = object __all__ = ('FilterFormMixin',) class FilterFormMixin(mixin_base): """ Mixin that adds filtering behaviour for Class Based Views. Changed in a way that can play nicely with other CBV simpl...
<commit_before>try: from django.views.generic.base import ContextMixin as mixin_base except ImportError: mixin_base = object __all__ = ('FilterFormMixin',) class FilterFormMixin(mixin_base): """ Mixin that adds filtering behaviour for Class Based Views. Changed in a way that can play nicely with ...
9a43f573f2072051c64fc6da432aaad5d31e0023
PyMarkdownGen/test/block_code_test.py
PyMarkdownGen/test/block_code_test.py
import unittest import PyMarkdownGen.PyMarkdownGen as md class BlockquoteTests(unittest.TestCase): def test_block_quote(self): expected = \ """> this is a > block quote > on multiple > lines. """ self.assertEqual(expected, md.gen_block_quote( ...
"""This module contains the unit tests for the formatting of block quotes. """ import unittest import PyMarkdownGen.PyMarkdownGen as md class BlockquoteTests(unittest.TestCase): """The test case (fixture) for testing block quotes.""" def test_block_quote(self): """Tests block quotes that cont...
Add docstrings for tests of block qotes
Add docstrings for tests of block qotes
Python
epl-1.0
LukasWoodtli/PyMarkdownGen
import unittest import PyMarkdownGen.PyMarkdownGen as md class BlockquoteTests(unittest.TestCase): def test_block_quote(self): expected = \ """> this is a > block quote > on multiple > lines. """ self.assertEqual(expected, md.gen_block_quote( ...
"""This module contains the unit tests for the formatting of block quotes. """ import unittest import PyMarkdownGen.PyMarkdownGen as md class BlockquoteTests(unittest.TestCase): """The test case (fixture) for testing block quotes.""" def test_block_quote(self): """Tests block quotes that cont...
<commit_before> import unittest import PyMarkdownGen.PyMarkdownGen as md class BlockquoteTests(unittest.TestCase): def test_block_quote(self): expected = \ """> this is a > block quote > on multiple > lines. """ self.assertEqual(expected, md.gen_block_quote( ...
"""This module contains the unit tests for the formatting of block quotes. """ import unittest import PyMarkdownGen.PyMarkdownGen as md class BlockquoteTests(unittest.TestCase): """The test case (fixture) for testing block quotes.""" def test_block_quote(self): """Tests block quotes that cont...
import unittest import PyMarkdownGen.PyMarkdownGen as md class BlockquoteTests(unittest.TestCase): def test_block_quote(self): expected = \ """> this is a > block quote > on multiple > lines. """ self.assertEqual(expected, md.gen_block_quote( ...
<commit_before> import unittest import PyMarkdownGen.PyMarkdownGen as md class BlockquoteTests(unittest.TestCase): def test_block_quote(self): expected = \ """> this is a > block quote > on multiple > lines. """ self.assertEqual(expected, md.gen_block_quote( ...
9330bcf1ae0ccde630e34a4eec8120dbdd44bcc4
utils/lit/tests/shared-output.py
utils/lit/tests/shared-output.py
# RUN: rm -rf %t && mkdir -p %t # RUN: echo 'lit_config.load_config(config, os.path.join("%{inputs}", "shared-output", "lit.cfg"))' > %t/lit.site.cfg # RUN: %{lit} %t # RUN: FileCheck %s < %t/Output/Shared/SHARED.tmp # RUN: FileCheck -check-prefix=NEGATIVE %s < %t/Output/Shared/SHARED.tmp # RUN: FileCheck -check-prefix...
# RUN: rm -rf %t && mkdir -p %t # RUN: echo 'lit_config.load_config(config, os.path.join("%S", "Inputs", "shared-output", "lit.cfg"))' > %t/lit.site.cfg # RUN: %{lit} %t # RUN: FileCheck %s < %t/Output/Shared/SHARED.tmp # RUN: FileCheck -check-prefix=NEGATIVE %s < %t/Output/Shared/SHARED.tmp # RUN: FileCheck -check-pre...
Fix new test harder for systems that don't use / as os.path.sep
lit.py: Fix new test harder for systems that don't use / as os.path.sep I didn't think about '%{inputs}' having the same problem. This one should be a fully Windows path name. git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@315779 91177308-0d34-0410-b5e6-96231b3b80d8
Python
apache-2.0
apple/swift-llvm,GPUOpen-Drivers/llvm,GPUOpen-Drivers/llvm,llvm-mirror/llvm,apple/swift-llvm,llvm-mirror/llvm,GPUOpen-Drivers/llvm,GPUOpen-Drivers/llvm,llvm-mirror/llvm,GPUOpen-Drivers/llvm,apple/swift-llvm,GPUOpen-Drivers/llvm,apple/swift-llvm,llvm-mirror/llvm,GPUOpen-Drivers/llvm,apple/swift-llvm,GPUOpen-Drivers/llvm...
# RUN: rm -rf %t && mkdir -p %t # RUN: echo 'lit_config.load_config(config, os.path.join("%{inputs}", "shared-output", "lit.cfg"))' > %t/lit.site.cfg # RUN: %{lit} %t # RUN: FileCheck %s < %t/Output/Shared/SHARED.tmp # RUN: FileCheck -check-prefix=NEGATIVE %s < %t/Output/Shared/SHARED.tmp # RUN: FileCheck -check-prefix...
# RUN: rm -rf %t && mkdir -p %t # RUN: echo 'lit_config.load_config(config, os.path.join("%S", "Inputs", "shared-output", "lit.cfg"))' > %t/lit.site.cfg # RUN: %{lit} %t # RUN: FileCheck %s < %t/Output/Shared/SHARED.tmp # RUN: FileCheck -check-prefix=NEGATIVE %s < %t/Output/Shared/SHARED.tmp # RUN: FileCheck -check-pre...
<commit_before># RUN: rm -rf %t && mkdir -p %t # RUN: echo 'lit_config.load_config(config, os.path.join("%{inputs}", "shared-output", "lit.cfg"))' > %t/lit.site.cfg # RUN: %{lit} %t # RUN: FileCheck %s < %t/Output/Shared/SHARED.tmp # RUN: FileCheck -check-prefix=NEGATIVE %s < %t/Output/Shared/SHARED.tmp # RUN: FileChec...
# RUN: rm -rf %t && mkdir -p %t # RUN: echo 'lit_config.load_config(config, os.path.join("%S", "Inputs", "shared-output", "lit.cfg"))' > %t/lit.site.cfg # RUN: %{lit} %t # RUN: FileCheck %s < %t/Output/Shared/SHARED.tmp # RUN: FileCheck -check-prefix=NEGATIVE %s < %t/Output/Shared/SHARED.tmp # RUN: FileCheck -check-pre...
# RUN: rm -rf %t && mkdir -p %t # RUN: echo 'lit_config.load_config(config, os.path.join("%{inputs}", "shared-output", "lit.cfg"))' > %t/lit.site.cfg # RUN: %{lit} %t # RUN: FileCheck %s < %t/Output/Shared/SHARED.tmp # RUN: FileCheck -check-prefix=NEGATIVE %s < %t/Output/Shared/SHARED.tmp # RUN: FileCheck -check-prefix...
<commit_before># RUN: rm -rf %t && mkdir -p %t # RUN: echo 'lit_config.load_config(config, os.path.join("%{inputs}", "shared-output", "lit.cfg"))' > %t/lit.site.cfg # RUN: %{lit} %t # RUN: FileCheck %s < %t/Output/Shared/SHARED.tmp # RUN: FileCheck -check-prefix=NEGATIVE %s < %t/Output/Shared/SHARED.tmp # RUN: FileChec...
4548cf2a5ec69f75c19169769fffe88ea3d061e1
djlint/analyzers/context.py
djlint/analyzers/context.py
"""Inspired by django.template.Context""" class ContextPopException(Exception): """pop() has been called more times than push()""" class Context(object): """A stack container for imports and assignments.""" def __init__(self): self.dicts = [{}] def push(self): d = {} self.d...
"""Inspired by django.template.Context""" class ContextPopException(Exception): """pop() has been called more times than push()""" class Context(object): """A stack container for imports and assignments.""" def __init__(self): self.dicts = [{}] def push(self): d = {} self.d...
Add has_value method to Context class
Add has_value method to Context class
Python
isc
alfredhq/djlint
"""Inspired by django.template.Context""" class ContextPopException(Exception): """pop() has been called more times than push()""" class Context(object): """A stack container for imports and assignments.""" def __init__(self): self.dicts = [{}] def push(self): d = {} self.d...
"""Inspired by django.template.Context""" class ContextPopException(Exception): """pop() has been called more times than push()""" class Context(object): """A stack container for imports and assignments.""" def __init__(self): self.dicts = [{}] def push(self): d = {} self.d...
<commit_before>"""Inspired by django.template.Context""" class ContextPopException(Exception): """pop() has been called more times than push()""" class Context(object): """A stack container for imports and assignments.""" def __init__(self): self.dicts = [{}] def push(self): d = {}...
"""Inspired by django.template.Context""" class ContextPopException(Exception): """pop() has been called more times than push()""" class Context(object): """A stack container for imports and assignments.""" def __init__(self): self.dicts = [{}] def push(self): d = {} self.d...
"""Inspired by django.template.Context""" class ContextPopException(Exception): """pop() has been called more times than push()""" class Context(object): """A stack container for imports and assignments.""" def __init__(self): self.dicts = [{}] def push(self): d = {} self.d...
<commit_before>"""Inspired by django.template.Context""" class ContextPopException(Exception): """pop() has been called more times than push()""" class Context(object): """A stack container for imports and assignments.""" def __init__(self): self.dicts = [{}] def push(self): d = {}...
7fbb06288af388f30d962da9dcee97d2c49dea82
serenata_toolbox/chamber_of_deputies/reimbursements.py
serenata_toolbox/chamber_of_deputies/reimbursements.py
import os.path from tempfile import gettempdir from urllib.request import urlretrieve from zipfile import ZipFile from .reimbursements_cleaner import ReimbursementsCleaner URL = 'https://www.camara.leg.br/cotas/Ano-{}.csv.zip' def extract_zip(zip_path, destination_path): zip_file = ZipFile(zip_path, 'r') zi...
import os.path from tempfile import gettempdir from urllib.request import urlretrieve from zipfile import ZipFile from .reimbursements_cleaner import ReimbursementsCleaner URL = 'https://www.camara.leg.br/cotas/Ano-{}.csv.zip' def extract_zip(zip_path, destination_path): zip_file = ZipFile(zip_path, 'r') zi...
Use f-string when calling method inside string
Use f-string when calling method inside string
Python
mit
datasciencebr/serenata-toolbox
import os.path from tempfile import gettempdir from urllib.request import urlretrieve from zipfile import ZipFile from .reimbursements_cleaner import ReimbursementsCleaner URL = 'https://www.camara.leg.br/cotas/Ano-{}.csv.zip' def extract_zip(zip_path, destination_path): zip_file = ZipFile(zip_path, 'r') zi...
import os.path from tempfile import gettempdir from urllib.request import urlretrieve from zipfile import ZipFile from .reimbursements_cleaner import ReimbursementsCleaner URL = 'https://www.camara.leg.br/cotas/Ano-{}.csv.zip' def extract_zip(zip_path, destination_path): zip_file = ZipFile(zip_path, 'r') zi...
<commit_before>import os.path from tempfile import gettempdir from urllib.request import urlretrieve from zipfile import ZipFile from .reimbursements_cleaner import ReimbursementsCleaner URL = 'https://www.camara.leg.br/cotas/Ano-{}.csv.zip' def extract_zip(zip_path, destination_path): zip_file = ZipFile(zip_pa...
import os.path from tempfile import gettempdir from urllib.request import urlretrieve from zipfile import ZipFile from .reimbursements_cleaner import ReimbursementsCleaner URL = 'https://www.camara.leg.br/cotas/Ano-{}.csv.zip' def extract_zip(zip_path, destination_path): zip_file = ZipFile(zip_path, 'r') zi...
import os.path from tempfile import gettempdir from urllib.request import urlretrieve from zipfile import ZipFile from .reimbursements_cleaner import ReimbursementsCleaner URL = 'https://www.camara.leg.br/cotas/Ano-{}.csv.zip' def extract_zip(zip_path, destination_path): zip_file = ZipFile(zip_path, 'r') zi...
<commit_before>import os.path from tempfile import gettempdir from urllib.request import urlretrieve from zipfile import ZipFile from .reimbursements_cleaner import ReimbursementsCleaner URL = 'https://www.camara.leg.br/cotas/Ano-{}.csv.zip' def extract_zip(zip_path, destination_path): zip_file = ZipFile(zip_pa...
cc3188e6870e378951efc3785f570496d1807813
aistreams/python/pip_package/setup.py
aistreams/python/pip_package/setup.py
# Copyright 2020 Google LLC # # 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, ...
# Copyright 2020 Google LLC # # 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, ...
Update minor version to 0.0.2.
Update minor version to 0.0.2. Change-Id: I48cd0789ec87d0edd20e9a2980a61b54f8c6b7a6
Python
apache-2.0
google/aistreams,google/aistreams,google/aistreams
# Copyright 2020 Google LLC # # 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, ...
# Copyright 2020 Google LLC # # 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, ...
<commit_before># Copyright 2020 Google LLC # # 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 ...
# Copyright 2020 Google LLC # # 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, ...
# Copyright 2020 Google LLC # # 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, ...
<commit_before># Copyright 2020 Google LLC # # 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 ...
2001f6460e31f3657c3ed2dc7e118452362ab847
month/widgets.py
month/widgets.py
""" Select widget for MonthField. Copied and modified from https://docs.djangoproject.com/en/1.8/ref/forms/widgets/#base-widget-classes """ from datetime import date from django.forms import widgets class MonthSelectorWidget(widgets.MultiWidget): def __init__(self, attrs=None): # create choices for days, m...
""" Select widget for MonthField. Copied and modified from https://docs.djangoproject.com/en/1.8/ref/forms/widgets/#base-widget-classes """ from datetime import date from django.forms import widgets class MonthSelectorWidget(widgets.MultiWidget): def __init__(self, attrs=None): # create choices for days, m...
Handle case where deconstruct receives string
Handle case where deconstruct receives string
Python
bsd-3-clause
mpachas/django-monthfield,clearspark/django-monthfield
""" Select widget for MonthField. Copied and modified from https://docs.djangoproject.com/en/1.8/ref/forms/widgets/#base-widget-classes """ from datetime import date from django.forms import widgets class MonthSelectorWidget(widgets.MultiWidget): def __init__(self, attrs=None): # create choices for days, m...
""" Select widget for MonthField. Copied and modified from https://docs.djangoproject.com/en/1.8/ref/forms/widgets/#base-widget-classes """ from datetime import date from django.forms import widgets class MonthSelectorWidget(widgets.MultiWidget): def __init__(self, attrs=None): # create choices for days, m...
<commit_before>""" Select widget for MonthField. Copied and modified from https://docs.djangoproject.com/en/1.8/ref/forms/widgets/#base-widget-classes """ from datetime import date from django.forms import widgets class MonthSelectorWidget(widgets.MultiWidget): def __init__(self, attrs=None): # create choi...
""" Select widget for MonthField. Copied and modified from https://docs.djangoproject.com/en/1.8/ref/forms/widgets/#base-widget-classes """ from datetime import date from django.forms import widgets class MonthSelectorWidget(widgets.MultiWidget): def __init__(self, attrs=None): # create choices for days, m...
""" Select widget for MonthField. Copied and modified from https://docs.djangoproject.com/en/1.8/ref/forms/widgets/#base-widget-classes """ from datetime import date from django.forms import widgets class MonthSelectorWidget(widgets.MultiWidget): def __init__(self, attrs=None): # create choices for days, m...
<commit_before>""" Select widget for MonthField. Copied and modified from https://docs.djangoproject.com/en/1.8/ref/forms/widgets/#base-widget-classes """ from datetime import date from django.forms import widgets class MonthSelectorWidget(widgets.MultiWidget): def __init__(self, attrs=None): # create choi...
9b774ae7e5725ffbf3f8f0780b67d1f7e5bff98d
ircelsos/sos.py
ircelsos/sos.py
# -*- coding: utf-8 -*- """ Created on Sun Jul 12 23:16:17 2015 @author: Joris Van den Bossche """ from __future__ import print_function from owslib.sos import SensorObservationService BASE_URL = 'http://sos.irceline.be/sos' def get_sos(): """Return a SensorObservationService instance""" return SensorObs...
# -*- coding: utf-8 -*- """ Created on Sun Jul 12 23:16:17 2015 @author: Joris Van den Bossche """ from __future__ import print_function import sys import os import datetime from xml.etree import ElementTree import requests from owslib.sos import SensorObservationService BASE_URL = 'http://sos.irceline.be/sos' d...
Enable offline import + save capabilities xml for reuse
Enable offline import + save capabilities xml for reuse
Python
bsd-2-clause
jorisvandenbossche/ircelsos
# -*- coding: utf-8 -*- """ Created on Sun Jul 12 23:16:17 2015 @author: Joris Van den Bossche """ from __future__ import print_function from owslib.sos import SensorObservationService BASE_URL = 'http://sos.irceline.be/sos' def get_sos(): """Return a SensorObservationService instance""" return SensorObs...
# -*- coding: utf-8 -*- """ Created on Sun Jul 12 23:16:17 2015 @author: Joris Van den Bossche """ from __future__ import print_function import sys import os import datetime from xml.etree import ElementTree import requests from owslib.sos import SensorObservationService BASE_URL = 'http://sos.irceline.be/sos' d...
<commit_before># -*- coding: utf-8 -*- """ Created on Sun Jul 12 23:16:17 2015 @author: Joris Van den Bossche """ from __future__ import print_function from owslib.sos import SensorObservationService BASE_URL = 'http://sos.irceline.be/sos' def get_sos(): """Return a SensorObservationService instance""" r...
# -*- coding: utf-8 -*- """ Created on Sun Jul 12 23:16:17 2015 @author: Joris Van den Bossche """ from __future__ import print_function import sys import os import datetime from xml.etree import ElementTree import requests from owslib.sos import SensorObservationService BASE_URL = 'http://sos.irceline.be/sos' d...
# -*- coding: utf-8 -*- """ Created on Sun Jul 12 23:16:17 2015 @author: Joris Van den Bossche """ from __future__ import print_function from owslib.sos import SensorObservationService BASE_URL = 'http://sos.irceline.be/sos' def get_sos(): """Return a SensorObservationService instance""" return SensorObs...
<commit_before># -*- coding: utf-8 -*- """ Created on Sun Jul 12 23:16:17 2015 @author: Joris Van den Bossche """ from __future__ import print_function from owslib.sos import SensorObservationService BASE_URL = 'http://sos.irceline.be/sos' def get_sos(): """Return a SensorObservationService instance""" r...
1d66cbb31ba6da6c72290352c234680caba89594
rpy2_helpers.py
rpy2_helpers.py
#! /usr/bin/env python2.7 """Avoid some boilerplate rpy2 usage code with helpers. Mostly I wrote this so that I can use xyplot without having to remember a lot of details. """ import click from rpy2.robjects import DataFrame, Formula, globalenv from rpy2.robjects.packages import importr grdevices = importr('grDevi...
#! /usr/bin/env python2.7 """Avoid some boilerplate rpy2 usage code with helpers. Mostly I wrote this so that I can use xyplot without having to remember a lot of details. """ import click from rpy2.robjects import DataFrame, Formula, globalenv from rpy2.robjects.packages import importr grdevices = importr('grDevi...
Document the xyplot function and support data dict
Document the xyplot function and support data dict
Python
mit
ecashin/rpy2_helpers
#! /usr/bin/env python2.7 """Avoid some boilerplate rpy2 usage code with helpers. Mostly I wrote this so that I can use xyplot without having to remember a lot of details. """ import click from rpy2.robjects import DataFrame, Formula, globalenv from rpy2.robjects.packages import importr grdevices = importr('grDevi...
#! /usr/bin/env python2.7 """Avoid some boilerplate rpy2 usage code with helpers. Mostly I wrote this so that I can use xyplot without having to remember a lot of details. """ import click from rpy2.robjects import DataFrame, Formula, globalenv from rpy2.robjects.packages import importr grdevices = importr('grDevi...
<commit_before>#! /usr/bin/env python2.7 """Avoid some boilerplate rpy2 usage code with helpers. Mostly I wrote this so that I can use xyplot without having to remember a lot of details. """ import click from rpy2.robjects import DataFrame, Formula, globalenv from rpy2.robjects.packages import importr grdevices = ...
#! /usr/bin/env python2.7 """Avoid some boilerplate rpy2 usage code with helpers. Mostly I wrote this so that I can use xyplot without having to remember a lot of details. """ import click from rpy2.robjects import DataFrame, Formula, globalenv from rpy2.robjects.packages import importr grdevices = importr('grDevi...
#! /usr/bin/env python2.7 """Avoid some boilerplate rpy2 usage code with helpers. Mostly I wrote this so that I can use xyplot without having to remember a lot of details. """ import click from rpy2.robjects import DataFrame, Formula, globalenv from rpy2.robjects.packages import importr grdevices = importr('grDevi...
<commit_before>#! /usr/bin/env python2.7 """Avoid some boilerplate rpy2 usage code with helpers. Mostly I wrote this so that I can use xyplot without having to remember a lot of details. """ import click from rpy2.robjects import DataFrame, Formula, globalenv from rpy2.robjects.packages import importr grdevices = ...
cac5d03fc56bf0d4fd6f2daba7942d5d379e344b
content/util/webassets_integration.py
content/util/webassets_integration.py
class Integration: def __init__(self, env): """ :type env: webassets.Environment """ self.env = env def asset_url(self, bundle_name): """ :type bundle_name: str """ return self.env[bundle_name].urls()[0] def register(self, app): app.j...
class Integration: def __init__(self, env): """ :type env: webassets.Environment """ self.env = env def asset_url(self, bundle_name): """ :type bundle_name: str """ urls = self.env[bundle_name].urls() return "/{}".format(urls[0]) # /{} to...
Prepend '/' to urls gotten from asset_url() to make them absolute. This fixes /projects/* documentation not displaying correctly.
Prepend '/' to urls gotten from asset_url() to make them absolute. This fixes /projects/* documentation not displaying correctly.
Python
apache-2.0
daboross/dabo.guru,daboross/dabo.guru,daboross/dabo.guru,daboross/dabo.guru
class Integration: def __init__(self, env): """ :type env: webassets.Environment """ self.env = env def asset_url(self, bundle_name): """ :type bundle_name: str """ return self.env[bundle_name].urls()[0] def register(self, app): app.j...
class Integration: def __init__(self, env): """ :type env: webassets.Environment """ self.env = env def asset_url(self, bundle_name): """ :type bundle_name: str """ urls = self.env[bundle_name].urls() return "/{}".format(urls[0]) # /{} to...
<commit_before>class Integration: def __init__(self, env): """ :type env: webassets.Environment """ self.env = env def asset_url(self, bundle_name): """ :type bundle_name: str """ return self.env[bundle_name].urls()[0] def register(self, app)...
class Integration: def __init__(self, env): """ :type env: webassets.Environment """ self.env = env def asset_url(self, bundle_name): """ :type bundle_name: str """ urls = self.env[bundle_name].urls() return "/{}".format(urls[0]) # /{} to...
class Integration: def __init__(self, env): """ :type env: webassets.Environment """ self.env = env def asset_url(self, bundle_name): """ :type bundle_name: str """ return self.env[bundle_name].urls()[0] def register(self, app): app.j...
<commit_before>class Integration: def __init__(self, env): """ :type env: webassets.Environment """ self.env = env def asset_url(self, bundle_name): """ :type bundle_name: str """ return self.env[bundle_name].urls()[0] def register(self, app)...
6ad8c9fc7846f51e2f784d38f9a92017552da996
lanes/models.py
lanes/models.py
from django.db import models from django.contrib.auth.models import User from kitabu.models.subjects import VariableSizeSubject, BaseSubject from kitabu.models.reservations import ReservationMaybeExclusive, ReservationGroup, BaseReservation from kitabu.models import validators from pools.models import Pool class La...
from django.db import models from django.contrib.auth.models import User from kitabu.models.subjects import VariableSizeSubject, BaseSubject from kitabu.models.reservations import ReservationMaybeExclusive, ReservationGroup, BaseReservation from kitabu.models import validators from pools.models import Pool class La...
Add new validators to SPA
Add new validators to SPA
Python
mit
mbad/kitabu,mbad/kitabu,mbad/kitabu
from django.db import models from django.contrib.auth.models import User from kitabu.models.subjects import VariableSizeSubject, BaseSubject from kitabu.models.reservations import ReservationMaybeExclusive, ReservationGroup, BaseReservation from kitabu.models import validators from pools.models import Pool class La...
from django.db import models from django.contrib.auth.models import User from kitabu.models.subjects import VariableSizeSubject, BaseSubject from kitabu.models.reservations import ReservationMaybeExclusive, ReservationGroup, BaseReservation from kitabu.models import validators from pools.models import Pool class La...
<commit_before>from django.db import models from django.contrib.auth.models import User from kitabu.models.subjects import VariableSizeSubject, BaseSubject from kitabu.models.reservations import ReservationMaybeExclusive, ReservationGroup, BaseReservation from kitabu.models import validators from pools.models import ...
from django.db import models from django.contrib.auth.models import User from kitabu.models.subjects import VariableSizeSubject, BaseSubject from kitabu.models.reservations import ReservationMaybeExclusive, ReservationGroup, BaseReservation from kitabu.models import validators from pools.models import Pool class La...
from django.db import models from django.contrib.auth.models import User from kitabu.models.subjects import VariableSizeSubject, BaseSubject from kitabu.models.reservations import ReservationMaybeExclusive, ReservationGroup, BaseReservation from kitabu.models import validators from pools.models import Pool class La...
<commit_before>from django.db import models from django.contrib.auth.models import User from kitabu.models.subjects import VariableSizeSubject, BaseSubject from kitabu.models.reservations import ReservationMaybeExclusive, ReservationGroup, BaseReservation from kitabu.models import validators from pools.models import ...
d6c4a38e172894a2240a658fe73ea9816e89cd03
deduplicated/web/__init__.py
deduplicated/web/__init__.py
# -*- coding: utf-8 -*- # # Copyright (c) 2015 Eduardo Klosowski # License: MIT (see LICENSE for details) # from flask import Flask, render_template import jinja2 from .. import Directory, directory_list, str_size # Init app jinja2.filters.FILTERS['str_size'] = str_size app = Flask(__name__) # Pages @app.route...
# -*- coding: utf-8 -*- # # Copyright (c) 2015 Eduardo Klosowski # License: MIT (see LICENSE for details) # from flask import Flask, redirect, render_template, request import jinja2 from .. import Directory, directory_list, str_size # Init app jinja2.filters.FILTERS['str_size'] = str_size app = Flask(__name__) ...
Add web function for add new directory
Add web function for add new directory
Python
mit
eduardoklosowski/deduplicated,eduardoklosowski/deduplicated
# -*- coding: utf-8 -*- # # Copyright (c) 2015 Eduardo Klosowski # License: MIT (see LICENSE for details) # from flask import Flask, render_template import jinja2 from .. import Directory, directory_list, str_size # Init app jinja2.filters.FILTERS['str_size'] = str_size app = Flask(__name__) # Pages @app.route...
# -*- coding: utf-8 -*- # # Copyright (c) 2015 Eduardo Klosowski # License: MIT (see LICENSE for details) # from flask import Flask, redirect, render_template, request import jinja2 from .. import Directory, directory_list, str_size # Init app jinja2.filters.FILTERS['str_size'] = str_size app = Flask(__name__) ...
<commit_before># -*- coding: utf-8 -*- # # Copyright (c) 2015 Eduardo Klosowski # License: MIT (see LICENSE for details) # from flask import Flask, render_template import jinja2 from .. import Directory, directory_list, str_size # Init app jinja2.filters.FILTERS['str_size'] = str_size app = Flask(__name__) # Pa...
# -*- coding: utf-8 -*- # # Copyright (c) 2015 Eduardo Klosowski # License: MIT (see LICENSE for details) # from flask import Flask, redirect, render_template, request import jinja2 from .. import Directory, directory_list, str_size # Init app jinja2.filters.FILTERS['str_size'] = str_size app = Flask(__name__) ...
# -*- coding: utf-8 -*- # # Copyright (c) 2015 Eduardo Klosowski # License: MIT (see LICENSE for details) # from flask import Flask, render_template import jinja2 from .. import Directory, directory_list, str_size # Init app jinja2.filters.FILTERS['str_size'] = str_size app = Flask(__name__) # Pages @app.route...
<commit_before># -*- coding: utf-8 -*- # # Copyright (c) 2015 Eduardo Klosowski # License: MIT (see LICENSE for details) # from flask import Flask, render_template import jinja2 from .. import Directory, directory_list, str_size # Init app jinja2.filters.FILTERS['str_size'] = str_size app = Flask(__name__) # Pa...
00adc1c77d2bcc231a7f8995558ed86bb8071ae7
zun/websocket/websocketclient.py
zun/websocket/websocketclient.py
# Copyright 2017 Linaro Limited # # 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 ...
# Copyright 2017 Linaro Limited # # 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 ...
Remove unused LOG in websocket
Remove unused LOG in websocket Change-Id: Ic45e5e4353dd816fd5416b880aa47df8542b2e02
Python
apache-2.0
kevin-zhaoshuai/zun,kevin-zhaoshuai/zun,kevin-zhaoshuai/zun
# Copyright 2017 Linaro Limited # # 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 ...
# Copyright 2017 Linaro Limited # # 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># Copyright 2017 Linaro Limited # # 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 app...
# Copyright 2017 Linaro Limited # # 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 ...
# Copyright 2017 Linaro Limited # # 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># Copyright 2017 Linaro Limited # # 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 app...
7fc366e4ca45cbbdf2c1ab4a476af40ba88a9ae8
defender/urls.py
defender/urls.py
from django.conf.urls import patterns, url from .views import block_view, unblock_ip_view, unblock_username_view urlpatterns = patterns( '', url(r'^blocks/$', block_view, name="defender_blocks_view"), url(r'^blocks/ip/(?P<ip_address>[a-z0-9-._]+)/unblock$', unblock_ip_view, name="defender_u...
from django.conf.urls import patterns, url from .views import block_view, unblock_ip_view, unblock_username_view urlpatterns = patterns( '', url(r'^blocks/$', block_view, name="defender_blocks_view"), url(r'^blocks/ip/(?P<ip_address>[A-Za-z0-9-._]+)/unblock$', unblock_ip_view, name="defende...
Fix for usernames with capital letters
Fix for usernames with capital letters
Python
apache-2.0
kencochrane/django-defender,kencochrane/django-defender
from django.conf.urls import patterns, url from .views import block_view, unblock_ip_view, unblock_username_view urlpatterns = patterns( '', url(r'^blocks/$', block_view, name="defender_blocks_view"), url(r'^blocks/ip/(?P<ip_address>[a-z0-9-._]+)/unblock$', unblock_ip_view, name="defender_u...
from django.conf.urls import patterns, url from .views import block_view, unblock_ip_view, unblock_username_view urlpatterns = patterns( '', url(r'^blocks/$', block_view, name="defender_blocks_view"), url(r'^blocks/ip/(?P<ip_address>[A-Za-z0-9-._]+)/unblock$', unblock_ip_view, name="defende...
<commit_before>from django.conf.urls import patterns, url from .views import block_view, unblock_ip_view, unblock_username_view urlpatterns = patterns( '', url(r'^blocks/$', block_view, name="defender_blocks_view"), url(r'^blocks/ip/(?P<ip_address>[a-z0-9-._]+)/unblock$', unblock_ip_view, n...
from django.conf.urls import patterns, url from .views import block_view, unblock_ip_view, unblock_username_view urlpatterns = patterns( '', url(r'^blocks/$', block_view, name="defender_blocks_view"), url(r'^blocks/ip/(?P<ip_address>[A-Za-z0-9-._]+)/unblock$', unblock_ip_view, name="defende...
from django.conf.urls import patterns, url from .views import block_view, unblock_ip_view, unblock_username_view urlpatterns = patterns( '', url(r'^blocks/$', block_view, name="defender_blocks_view"), url(r'^blocks/ip/(?P<ip_address>[a-z0-9-._]+)/unblock$', unblock_ip_view, name="defender_u...
<commit_before>from django.conf.urls import patterns, url from .views import block_view, unblock_ip_view, unblock_username_view urlpatterns = patterns( '', url(r'^blocks/$', block_view, name="defender_blocks_view"), url(r'^blocks/ip/(?P<ip_address>[a-z0-9-._]+)/unblock$', unblock_ip_view, n...
e2d51e23f530202b82ba13ae11c686deb1388435
prototype/BioID.py
prototype/BioID.py
#!/usr/bin/env python # # A class for auto identifying bioinformatics file formats. # By Lee & Matt import re import json import mmap class BioID: defs = None def __init__(self, defpath): with open(defpath, "r") as deffile: conts = deffile.read() self.defs = json.loads(conts)["fo...
#!/usr/bin/env python # # A class for auto identifying bioinformatics file formats. # By Lee & Matt import re import json import mmap class BioID: defs = None def __init__(self, defpath): with open(defpath, "r") as deffile: conts = deffile.read() self.defs = json.loads(conts)["formats"] @classmethod def...
Indent return in identify class.
Indent return in identify class.
Python
mit
LeeBergstrand/BioMagick,LeeBergstrand/BioMagick
#!/usr/bin/env python # # A class for auto identifying bioinformatics file formats. # By Lee & Matt import re import json import mmap class BioID: defs = None def __init__(self, defpath): with open(defpath, "r") as deffile: conts = deffile.read() self.defs = json.loads(conts)["fo...
#!/usr/bin/env python # # A class for auto identifying bioinformatics file formats. # By Lee & Matt import re import json import mmap class BioID: defs = None def __init__(self, defpath): with open(defpath, "r") as deffile: conts = deffile.read() self.defs = json.loads(conts)["formats"] @classmethod def...
<commit_before>#!/usr/bin/env python # # A class for auto identifying bioinformatics file formats. # By Lee & Matt import re import json import mmap class BioID: defs = None def __init__(self, defpath): with open(defpath, "r") as deffile: conts = deffile.read() self.defs = json.l...
#!/usr/bin/env python # # A class for auto identifying bioinformatics file formats. # By Lee & Matt import re import json import mmap class BioID: defs = None def __init__(self, defpath): with open(defpath, "r") as deffile: conts = deffile.read() self.defs = json.loads(conts)["formats"] @classmethod def...
#!/usr/bin/env python # # A class for auto identifying bioinformatics file formats. # By Lee & Matt import re import json import mmap class BioID: defs = None def __init__(self, defpath): with open(defpath, "r") as deffile: conts = deffile.read() self.defs = json.loads(conts)["fo...
<commit_before>#!/usr/bin/env python # # A class for auto identifying bioinformatics file formats. # By Lee & Matt import re import json import mmap class BioID: defs = None def __init__(self, defpath): with open(defpath, "r") as deffile: conts = deffile.read() self.defs = json.l...
be9c0169abd0419535fdc87b8f498cc65f5d7dd0
pycrawl/crawler.py
pycrawl/crawler.py
''' from pycrawl import crawler # Execute variants page = crawler.grab('http://www.pasarpanda.com') page = crawler.from_file('file.html') page = crawler.from_text("<html></html>") # methods page.html('#my_container') # get html content by given css selector page.text('#my_container') # get text content by given css s...
''' from pycrawl import crawler # Execute variants page = crawler.grab('http://www.pasarpanda.com') page = crawler.from_file('file.html') page = crawler.from_text("<html></html>") # methods page.html('#my_container') # get html content by given css selector page.text('#my_container') # get text content by given css s...
Modify the Page parameter with url supplied
Modify the Page parameter with url supplied
Python
mit
slaveofcode/pycrawler,slaveofcode/pycrawler
''' from pycrawl import crawler # Execute variants page = crawler.grab('http://www.pasarpanda.com') page = crawler.from_file('file.html') page = crawler.from_text("<html></html>") # methods page.html('#my_container') # get html content by given css selector page.text('#my_container') # get text content by given css s...
''' from pycrawl import crawler # Execute variants page = crawler.grab('http://www.pasarpanda.com') page = crawler.from_file('file.html') page = crawler.from_text("<html></html>") # methods page.html('#my_container') # get html content by given css selector page.text('#my_container') # get text content by given css s...
<commit_before>''' from pycrawl import crawler # Execute variants page = crawler.grab('http://www.pasarpanda.com') page = crawler.from_file('file.html') page = crawler.from_text("<html></html>") # methods page.html('#my_container') # get html content by given css selector page.text('#my_container') # get text content...
''' from pycrawl import crawler # Execute variants page = crawler.grab('http://www.pasarpanda.com') page = crawler.from_file('file.html') page = crawler.from_text("<html></html>") # methods page.html('#my_container') # get html content by given css selector page.text('#my_container') # get text content by given css s...
''' from pycrawl import crawler # Execute variants page = crawler.grab('http://www.pasarpanda.com') page = crawler.from_file('file.html') page = crawler.from_text("<html></html>") # methods page.html('#my_container') # get html content by given css selector page.text('#my_container') # get text content by given css s...
<commit_before>''' from pycrawl import crawler # Execute variants page = crawler.grab('http://www.pasarpanda.com') page = crawler.from_file('file.html') page = crawler.from_text("<html></html>") # methods page.html('#my_container') # get html content by given css selector page.text('#my_container') # get text content...
afac07ce173af3e7db4a6ba6dab4786903e217b7
ocradmin/ocr/tools/plugins/cuneiform_wrapper.py
ocradmin/ocr/tools/plugins/cuneiform_wrapper.py
""" Wrapper for Cuneiform. """ from generic_wrapper import * def main_class(): return CuneiformWrapper class CuneiformWrapper(GenericWrapper): """ Override certain methods of the OcropusWrapper to use Cuneiform for recognition of individual lines. """ name = "cuneiform" capabilities = (...
""" Wrapper for Cuneiform. """ import tempfile import subprocess as sp from ocradmin.ocr.tools import check_aborted, set_progress from ocradmin.ocr.utils import HocrParser from generic_wrapper import * def main_class(): return CuneiformWrapper class CuneiformWrapper(GenericWrapper): """ Override certai...
Allow Cuneiform to do full page conversions. Downsides: 1) it crashes on quite a lot of pages 2) there's no progress output
Allow Cuneiform to do full page conversions. Downsides: 1) it crashes on quite a lot of pages 2) there's no progress output
Python
apache-2.0
vitorio/ocropodium,vitorio/ocropodium,vitorio/ocropodium,vitorio/ocropodium
""" Wrapper for Cuneiform. """ from generic_wrapper import * def main_class(): return CuneiformWrapper class CuneiformWrapper(GenericWrapper): """ Override certain methods of the OcropusWrapper to use Cuneiform for recognition of individual lines. """ name = "cuneiform" capabilities = (...
""" Wrapper for Cuneiform. """ import tempfile import subprocess as sp from ocradmin.ocr.tools import check_aborted, set_progress from ocradmin.ocr.utils import HocrParser from generic_wrapper import * def main_class(): return CuneiformWrapper class CuneiformWrapper(GenericWrapper): """ Override certai...
<commit_before>""" Wrapper for Cuneiform. """ from generic_wrapper import * def main_class(): return CuneiformWrapper class CuneiformWrapper(GenericWrapper): """ Override certain methods of the OcropusWrapper to use Cuneiform for recognition of individual lines. """ name = "cuneiform" c...
""" Wrapper for Cuneiform. """ import tempfile import subprocess as sp from ocradmin.ocr.tools import check_aborted, set_progress from ocradmin.ocr.utils import HocrParser from generic_wrapper import * def main_class(): return CuneiformWrapper class CuneiformWrapper(GenericWrapper): """ Override certai...
""" Wrapper for Cuneiform. """ from generic_wrapper import * def main_class(): return CuneiformWrapper class CuneiformWrapper(GenericWrapper): """ Override certain methods of the OcropusWrapper to use Cuneiform for recognition of individual lines. """ name = "cuneiform" capabilities = (...
<commit_before>""" Wrapper for Cuneiform. """ from generic_wrapper import * def main_class(): return CuneiformWrapper class CuneiformWrapper(GenericWrapper): """ Override certain methods of the OcropusWrapper to use Cuneiform for recognition of individual lines. """ name = "cuneiform" c...
b04f6ff01e105883280e06e5d7a2d767664cd318
config/settings_production.py
config/settings_production.py
""" Django settings for pc_datamanger project. For more information on this file, see https://docs.djangoproject.com/en/1.6/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.6/ref/settings/ """ import os from .settings_basic import * from .settings import * DEB...
""" Django settings for pc_datamanger project. For more information on this file, see https://docs.djangoproject.com/en/1.6/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.6/ref/settings/ """ import os from .settings_basic import * from .settings import * DEB...
Read secret from correct location
Read secret from correct location
Python
agpl-3.0
mmilaprat/policycompass-services,policycompass/policycompass-services,policycompass/policycompass-services,policycompass/policycompass-services,mmilaprat/policycompass-services,mmilaprat/policycompass-services
""" Django settings for pc_datamanger project. For more information on this file, see https://docs.djangoproject.com/en/1.6/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.6/ref/settings/ """ import os from .settings_basic import * from .settings import * DEB...
""" Django settings for pc_datamanger project. For more information on this file, see https://docs.djangoproject.com/en/1.6/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.6/ref/settings/ """ import os from .settings_basic import * from .settings import * DEB...
<commit_before>""" Django settings for pc_datamanger project. For more information on this file, see https://docs.djangoproject.com/en/1.6/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.6/ref/settings/ """ import os from .settings_basic import * from .setting...
""" Django settings for pc_datamanger project. For more information on this file, see https://docs.djangoproject.com/en/1.6/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.6/ref/settings/ """ import os from .settings_basic import * from .settings import * DEB...
""" Django settings for pc_datamanger project. For more information on this file, see https://docs.djangoproject.com/en/1.6/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.6/ref/settings/ """ import os from .settings_basic import * from .settings import * DEB...
<commit_before>""" Django settings for pc_datamanger project. For more information on this file, see https://docs.djangoproject.com/en/1.6/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.6/ref/settings/ """ import os from .settings_basic import * from .setting...
c69e4e6f3aab80ad3ac28e7a6b13f309a1b2d205
alembic/versions/151b2f642877_text_to_json.py
alembic/versions/151b2f642877_text_to_json.py
"""text to JSON Revision ID: 151b2f642877 Revises: aee7291c81 Create Date: 2015-06-12 14:40:56.956657 """ # revision identifiers, used by Alembic. revision = '151b2f642877' down_revision = 'aee7291c81' from alembic import op import sqlalchemy as sa def upgrade(): query = 'ALTER TABLE project ALTER COLUMN info...
"""text to JSON Revision ID: 151b2f642877 Revises: ac115763654 Create Date: 2015-06-12 14:40:56.956657 """ # revision identifiers, used by Alembic. revision = '151b2f642877' down_revision = 'ac115763654' from alembic import op import sqlalchemy as sa def upgrade(): query = 'ALTER TABLE project ALTER COLUMN in...
Fix alembic revision after merge master
Fix alembic revision after merge master
Python
agpl-3.0
PyBossa/pybossa,Scifabric/pybossa,Scifabric/pybossa,PyBossa/pybossa,jean/pybossa,OpenNewsLabs/pybossa,geotagx/pybossa,geotagx/pybossa,OpenNewsLabs/pybossa,jean/pybossa
"""text to JSON Revision ID: 151b2f642877 Revises: aee7291c81 Create Date: 2015-06-12 14:40:56.956657 """ # revision identifiers, used by Alembic. revision = '151b2f642877' down_revision = 'aee7291c81' from alembic import op import sqlalchemy as sa def upgrade(): query = 'ALTER TABLE project ALTER COLUMN info...
"""text to JSON Revision ID: 151b2f642877 Revises: ac115763654 Create Date: 2015-06-12 14:40:56.956657 """ # revision identifiers, used by Alembic. revision = '151b2f642877' down_revision = 'ac115763654' from alembic import op import sqlalchemy as sa def upgrade(): query = 'ALTER TABLE project ALTER COLUMN in...
<commit_before>"""text to JSON Revision ID: 151b2f642877 Revises: aee7291c81 Create Date: 2015-06-12 14:40:56.956657 """ # revision identifiers, used by Alembic. revision = '151b2f642877' down_revision = 'aee7291c81' from alembic import op import sqlalchemy as sa def upgrade(): query = 'ALTER TABLE project AL...
"""text to JSON Revision ID: 151b2f642877 Revises: ac115763654 Create Date: 2015-06-12 14:40:56.956657 """ # revision identifiers, used by Alembic. revision = '151b2f642877' down_revision = 'ac115763654' from alembic import op import sqlalchemy as sa def upgrade(): query = 'ALTER TABLE project ALTER COLUMN in...
"""text to JSON Revision ID: 151b2f642877 Revises: aee7291c81 Create Date: 2015-06-12 14:40:56.956657 """ # revision identifiers, used by Alembic. revision = '151b2f642877' down_revision = 'aee7291c81' from alembic import op import sqlalchemy as sa def upgrade(): query = 'ALTER TABLE project ALTER COLUMN info...
<commit_before>"""text to JSON Revision ID: 151b2f642877 Revises: aee7291c81 Create Date: 2015-06-12 14:40:56.956657 """ # revision identifiers, used by Alembic. revision = '151b2f642877' down_revision = 'aee7291c81' from alembic import op import sqlalchemy as sa def upgrade(): query = 'ALTER TABLE project AL...
8c780f99dd82887a43c8ce661925f993fbc41003
readux/__init__.py
readux/__init__.py
from django.conf import settings __version_info__ = (1, 2, 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 a...
__version_info__ = (1, 3, 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...
Bump version to 1.3.0-dev after releasing 1.2
Bump version to 1.3.0-dev after releasing 1.2
Python
apache-2.0
emory-libraries/readux,emory-libraries/readux,emory-libraries/readux
from django.conf import settings __version_info__ = (1, 2, 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 a...
__version_info__ = (1, 3, 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>from django.conf import settings __version_info__ = (1, 2, 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...
__version_info__ = (1, 3, 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...
from django.conf import settings __version_info__ = (1, 2, 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 a...
<commit_before>from django.conf import settings __version_info__ = (1, 2, 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...
e06cc3da015505bc58eb705b5ee77fbbaae61a09
har/model/log.py
har/model/log.py
from datetime import datetime from har import db class Log(db.Model): id = db.Column(db.Integer, primary_key=True) subject_id = db.Column(db.Integer, db.ForeignKey('subject.device')) log_type = db.Column(db.String(40)) activity = db.Column(db.String(40)) sensor_placement = db.Column(db.String(40))...
from datetime import datetime from har import db class Log(db.Model): STATUS_PENDING = "pending" STATUS_PENDING = "trained" id = db.Column(db.Integer, primary_key=True) subject_id = db.Column(db.Integer, db.ForeignKey('subject.device')) log_type = db.Column(db.String(40)) activity = db.Colum...
Add status column to Log model
Add status column to Log model
Python
mit
ilhamadun/har,ilhamadun/har
from datetime import datetime from har import db class Log(db.Model): id = db.Column(db.Integer, primary_key=True) subject_id = db.Column(db.Integer, db.ForeignKey('subject.device')) log_type = db.Column(db.String(40)) activity = db.Column(db.String(40)) sensor_placement = db.Column(db.String(40))...
from datetime import datetime from har import db class Log(db.Model): STATUS_PENDING = "pending" STATUS_PENDING = "trained" id = db.Column(db.Integer, primary_key=True) subject_id = db.Column(db.Integer, db.ForeignKey('subject.device')) log_type = db.Column(db.String(40)) activity = db.Colum...
<commit_before>from datetime import datetime from har import db class Log(db.Model): id = db.Column(db.Integer, primary_key=True) subject_id = db.Column(db.Integer, db.ForeignKey('subject.device')) log_type = db.Column(db.String(40)) activity = db.Column(db.String(40)) sensor_placement = db.Column...
from datetime import datetime from har import db class Log(db.Model): STATUS_PENDING = "pending" STATUS_PENDING = "trained" id = db.Column(db.Integer, primary_key=True) subject_id = db.Column(db.Integer, db.ForeignKey('subject.device')) log_type = db.Column(db.String(40)) activity = db.Colum...
from datetime import datetime from har import db class Log(db.Model): id = db.Column(db.Integer, primary_key=True) subject_id = db.Column(db.Integer, db.ForeignKey('subject.device')) log_type = db.Column(db.String(40)) activity = db.Column(db.String(40)) sensor_placement = db.Column(db.String(40))...
<commit_before>from datetime import datetime from har import db class Log(db.Model): id = db.Column(db.Integer, primary_key=True) subject_id = db.Column(db.Integer, db.ForeignKey('subject.device')) log_type = db.Column(db.String(40)) activity = db.Column(db.String(40)) sensor_placement = db.Column...
a8080b402e408e5f2636039f24debd717f06b982
setup.py
setup.py
from setuptools import setup setup(name='mailosaur', version='3.0', description='Python client library for Mailosaur', url='https://mailosaur.com', author='Clickity Ltd', author_email='[email protected]', keywords='email automation testing selenium robot framework', licens...
from setuptools import setup setup(name='mailosaur', version='3.0.1', description='Python client library for Mailosaur', url='https://mailosaur.com', author='Clickity Ltd', author_email='[email protected]', keywords='email automation testing selenium robot framework', lice...
Bump version number to 3.0.1
Bump version number to 3.0.1
Python
mit
mailosaur/mailosaur-python,mailosaurapp/mailosaur-python,mailosaur/mailosaur-python
from setuptools import setup setup(name='mailosaur', version='3.0', description='Python client library for Mailosaur', url='https://mailosaur.com', author='Clickity Ltd', author_email='[email protected]', keywords='email automation testing selenium robot framework', licens...
from setuptools import setup setup(name='mailosaur', version='3.0.1', description='Python client library for Mailosaur', url='https://mailosaur.com', author='Clickity Ltd', author_email='[email protected]', keywords='email automation testing selenium robot framework', lice...
<commit_before>from setuptools import setup setup(name='mailosaur', version='3.0', description='Python client library for Mailosaur', url='https://mailosaur.com', author='Clickity Ltd', author_email='[email protected]', keywords='email automation testing selenium robot framework...
from setuptools import setup setup(name='mailosaur', version='3.0.1', description='Python client library for Mailosaur', url='https://mailosaur.com', author='Clickity Ltd', author_email='[email protected]', keywords='email automation testing selenium robot framework', lice...
from setuptools import setup setup(name='mailosaur', version='3.0', description='Python client library for Mailosaur', url='https://mailosaur.com', author='Clickity Ltd', author_email='[email protected]', keywords='email automation testing selenium robot framework', licens...
<commit_before>from setuptools import setup setup(name='mailosaur', version='3.0', description='Python client library for Mailosaur', url='https://mailosaur.com', author='Clickity Ltd', author_email='[email protected]', keywords='email automation testing selenium robot framework...
9da9ec6618de8c9a1276e44e81c32639d42efada
setup.py
setup.py
from distutils.core import setup setup( name='hy-py', version='0.0.2', packages=['hy'], license='MIT', author='Joakim Ekberg', author_email='[email protected]', url='https://github.com/kalasjocke/hy', long_description=open('README.md').read(), install_requires=open('requirement...
from distutils.core import setup setup( name='hy-py', version='0.0.3', packages=['hy', 'hy.adapters'], license='MIT', author='Joakim Ekberg', author_email='[email protected]', url='https://github.com/kalasjocke/hy', long_description=open('README.md').read(), install_requires=op...
Include the serializer adapters in the PyPI package
Include the serializer adapters in the PyPI package
Python
mit
kalasjocke/hyp
from distutils.core import setup setup( name='hy-py', version='0.0.2', packages=['hy'], license='MIT', author='Joakim Ekberg', author_email='[email protected]', url='https://github.com/kalasjocke/hy', long_description=open('README.md').read(), install_requires=open('requirement...
from distutils.core import setup setup( name='hy-py', version='0.0.3', packages=['hy', 'hy.adapters'], license='MIT', author='Joakim Ekberg', author_email='[email protected]', url='https://github.com/kalasjocke/hy', long_description=open('README.md').read(), install_requires=op...
<commit_before>from distutils.core import setup setup( name='hy-py', version='0.0.2', packages=['hy'], license='MIT', author='Joakim Ekberg', author_email='[email protected]', url='https://github.com/kalasjocke/hy', long_description=open('README.md').read(), install_requires=op...
from distutils.core import setup setup( name='hy-py', version='0.0.3', packages=['hy', 'hy.adapters'], license='MIT', author='Joakim Ekberg', author_email='[email protected]', url='https://github.com/kalasjocke/hy', long_description=open('README.md').read(), install_requires=op...
from distutils.core import setup setup( name='hy-py', version='0.0.2', packages=['hy'], license='MIT', author='Joakim Ekberg', author_email='[email protected]', url='https://github.com/kalasjocke/hy', long_description=open('README.md').read(), install_requires=open('requirement...
<commit_before>from distutils.core import setup setup( name='hy-py', version='0.0.2', packages=['hy'], license='MIT', author='Joakim Ekberg', author_email='[email protected]', url='https://github.com/kalasjocke/hy', long_description=open('README.md').read(), install_requires=op...
d03c10590dea3c6e38fbee9b3cadebff1a5f003e
setup.py
setup.py
#!/usr/bin/env python from setuptools import setup __version__ = '0.10' setup(name='GuessThatSong', version=__version__, install_requires=['Flask==0.12.1', 'SQLAlchemy>=1.1.9'], description='Song Trivia Game Web Application', long_description=open('README.md').read(), author='Matt ...
#!/usr/bin/env python from setuptools import setup __version__ = '0.1.0' setup(name='GuessThatSong', version=__version__, install_requires=['Flask==0.12.1', 'SQLAlchemy>=1.1.9', ], description='Song Trivia Game Web Application', long_description=open('README.md').read...
Fix version to conform to semver standard
Fix version to conform to semver standard
Python
mit
mattmurch/GuessThatSong,mattmurch/GuessThatSong
#!/usr/bin/env python from setuptools import setup __version__ = '0.10' setup(name='GuessThatSong', version=__version__, install_requires=['Flask==0.12.1', 'SQLAlchemy>=1.1.9'], description='Song Trivia Game Web Application', long_description=open('README.md').read(), author='Matt ...
#!/usr/bin/env python from setuptools import setup __version__ = '0.1.0' setup(name='GuessThatSong', version=__version__, install_requires=['Flask==0.12.1', 'SQLAlchemy>=1.1.9', ], description='Song Trivia Game Web Application', long_description=open('README.md').read...
<commit_before>#!/usr/bin/env python from setuptools import setup __version__ = '0.10' setup(name='GuessThatSong', version=__version__, install_requires=['Flask==0.12.1', 'SQLAlchemy>=1.1.9'], description='Song Trivia Game Web Application', long_description=open('README.md').read(), ...
#!/usr/bin/env python from setuptools import setup __version__ = '0.1.0' setup(name='GuessThatSong', version=__version__, install_requires=['Flask==0.12.1', 'SQLAlchemy>=1.1.9', ], description='Song Trivia Game Web Application', long_description=open('README.md').read...
#!/usr/bin/env python from setuptools import setup __version__ = '0.10' setup(name='GuessThatSong', version=__version__, install_requires=['Flask==0.12.1', 'SQLAlchemy>=1.1.9'], description='Song Trivia Game Web Application', long_description=open('README.md').read(), author='Matt ...
<commit_before>#!/usr/bin/env python from setuptools import setup __version__ = '0.10' setup(name='GuessThatSong', version=__version__, install_requires=['Flask==0.12.1', 'SQLAlchemy>=1.1.9'], description='Song Trivia Game Web Application', long_description=open('README.md').read(), ...
c1b97bbc6fc0603c0f2a809175edf88cd1e4a207
setup.py
setup.py
#!/usr/bin/env python from distutils.core import setup packages = [ 'upho', 'upho.phonon', 'upho.harmonic', 'upho.analysis', 'upho.structure', 'upho.irreps', 'upho.qpoints', 'group', ] scripts = [ 'scripts/upho_weights', 'scripts/upho_sf', 'scripts/qpoints', ] setup(name='up...
#!/usr/bin/env python from distutils.core import setup packages = [ 'upho', 'upho.phonon', 'upho.harmonic', 'upho.analysis', 'upho.structure', 'upho.irreps', 'upho.qpoints', 'group', ] scripts = [ 'scripts/upho_weights', 'scripts/upho_sf', 'scripts/qpoints', ] setup(name='up...
Add requirement of h5py and phonopy
Add requirement of h5py and phonopy
Python
mit
yuzie007/ph_unfolder,yuzie007/upho
#!/usr/bin/env python from distutils.core import setup packages = [ 'upho', 'upho.phonon', 'upho.harmonic', 'upho.analysis', 'upho.structure', 'upho.irreps', 'upho.qpoints', 'group', ] scripts = [ 'scripts/upho_weights', 'scripts/upho_sf', 'scripts/qpoints', ] setup(name='up...
#!/usr/bin/env python from distutils.core import setup packages = [ 'upho', 'upho.phonon', 'upho.harmonic', 'upho.analysis', 'upho.structure', 'upho.irreps', 'upho.qpoints', 'group', ] scripts = [ 'scripts/upho_weights', 'scripts/upho_sf', 'scripts/qpoints', ] setup(name='up...
<commit_before>#!/usr/bin/env python from distutils.core import setup packages = [ 'upho', 'upho.phonon', 'upho.harmonic', 'upho.analysis', 'upho.structure', 'upho.irreps', 'upho.qpoints', 'group', ] scripts = [ 'scripts/upho_weights', 'scripts/upho_sf', 'scripts/qpoints', ]...
#!/usr/bin/env python from distutils.core import setup packages = [ 'upho', 'upho.phonon', 'upho.harmonic', 'upho.analysis', 'upho.structure', 'upho.irreps', 'upho.qpoints', 'group', ] scripts = [ 'scripts/upho_weights', 'scripts/upho_sf', 'scripts/qpoints', ] setup(name='up...
#!/usr/bin/env python from distutils.core import setup packages = [ 'upho', 'upho.phonon', 'upho.harmonic', 'upho.analysis', 'upho.structure', 'upho.irreps', 'upho.qpoints', 'group', ] scripts = [ 'scripts/upho_weights', 'scripts/upho_sf', 'scripts/qpoints', ] setup(name='up...
<commit_before>#!/usr/bin/env python from distutils.core import setup packages = [ 'upho', 'upho.phonon', 'upho.harmonic', 'upho.analysis', 'upho.structure', 'upho.irreps', 'upho.qpoints', 'group', ] scripts = [ 'scripts/upho_weights', 'scripts/upho_sf', 'scripts/qpoints', ]...
f890663daa329e3f22d0f619ed6acf9365308c7c
apps/ignite/views.py
apps/ignite/views.py
from django.shortcuts import get_object_or_404 import jingo from challenges.models import Submission, Category from projects.models import Project def splash(request, project, slug, template_name='challenges/show.html'): """Show an individual project challenge.""" project = get_object_or_404(Project, slug=pr...
from django.shortcuts import get_object_or_404 import jingo from challenges.models import Submission, Category from projects.models import Project def splash(request, project, slug, template_name='challenges/show.html'): """Show an individual project challenge.""" project = get_object_or_404(Project, slug=pr...
Update splash view to use visible() method.
Update splash view to use visible() method.
Python
bsd-3-clause
mozilla/mozilla-ignite,mozilla/mozilla-ignite,mozilla/mozilla-ignite,mozilla/mozilla-ignite
from django.shortcuts import get_object_or_404 import jingo from challenges.models import Submission, Category from projects.models import Project def splash(request, project, slug, template_name='challenges/show.html'): """Show an individual project challenge.""" project = get_object_or_404(Project, slug=pr...
from django.shortcuts import get_object_or_404 import jingo from challenges.models import Submission, Category from projects.models import Project def splash(request, project, slug, template_name='challenges/show.html'): """Show an individual project challenge.""" project = get_object_or_404(Project, slug=pr...
<commit_before>from django.shortcuts import get_object_or_404 import jingo from challenges.models import Submission, Category from projects.models import Project def splash(request, project, slug, template_name='challenges/show.html'): """Show an individual project challenge.""" project = get_object_or_404(P...
from django.shortcuts import get_object_or_404 import jingo from challenges.models import Submission, Category from projects.models import Project def splash(request, project, slug, template_name='challenges/show.html'): """Show an individual project challenge.""" project = get_object_or_404(Project, slug=pr...
from django.shortcuts import get_object_or_404 import jingo from challenges.models import Submission, Category from projects.models import Project def splash(request, project, slug, template_name='challenges/show.html'): """Show an individual project challenge.""" project = get_object_or_404(Project, slug=pr...
<commit_before>from django.shortcuts import get_object_or_404 import jingo from challenges.models import Submission, Category from projects.models import Project def splash(request, project, slug, template_name='challenges/show.html'): """Show an individual project challenge.""" project = get_object_or_404(P...
d4b487ed1b276be230440e60ab3cdc81e73cff47
tests/unit/utils/test_utils.py
tests/unit/utils/test_utils.py
# coding=utf-8 ''' Test case for utils/__init__.py ''' from __future__ import unicode_literals, print_function, absolute_import from tests.support.unit import TestCase, skipIf from tests.support.mock import ( NO_MOCK, NO_MOCK_REASON, MagicMock, patch ) try: import pytest except ImportError: pyt...
# coding=utf-8 ''' Test case for utils/__init__.py ''' from __future__ import unicode_literals, print_function, absolute_import from tests.support.unit import TestCase, skipIf from tests.support.mock import ( NO_MOCK, NO_MOCK_REASON, MagicMock, patch ) try: import pytest except ImportError: pyt...
Add unit test to get opts from the environment
Add unit test to get opts from the environment
Python
apache-2.0
saltstack/salt,saltstack/salt,saltstack/salt,saltstack/salt,saltstack/salt
# coding=utf-8 ''' Test case for utils/__init__.py ''' from __future__ import unicode_literals, print_function, absolute_import from tests.support.unit import TestCase, skipIf from tests.support.mock import ( NO_MOCK, NO_MOCK_REASON, MagicMock, patch ) try: import pytest except ImportError: pyt...
# coding=utf-8 ''' Test case for utils/__init__.py ''' from __future__ import unicode_literals, print_function, absolute_import from tests.support.unit import TestCase, skipIf from tests.support.mock import ( NO_MOCK, NO_MOCK_REASON, MagicMock, patch ) try: import pytest except ImportError: pyt...
<commit_before># coding=utf-8 ''' Test case for utils/__init__.py ''' from __future__ import unicode_literals, print_function, absolute_import from tests.support.unit import TestCase, skipIf from tests.support.mock import ( NO_MOCK, NO_MOCK_REASON, MagicMock, patch ) try: import pytest except Impor...
# coding=utf-8 ''' Test case for utils/__init__.py ''' from __future__ import unicode_literals, print_function, absolute_import from tests.support.unit import TestCase, skipIf from tests.support.mock import ( NO_MOCK, NO_MOCK_REASON, MagicMock, patch ) try: import pytest except ImportError: pyt...
# coding=utf-8 ''' Test case for utils/__init__.py ''' from __future__ import unicode_literals, print_function, absolute_import from tests.support.unit import TestCase, skipIf from tests.support.mock import ( NO_MOCK, NO_MOCK_REASON, MagicMock, patch ) try: import pytest except ImportError: pyt...
<commit_before># coding=utf-8 ''' Test case for utils/__init__.py ''' from __future__ import unicode_literals, print_function, absolute_import from tests.support.unit import TestCase, skipIf from tests.support.mock import ( NO_MOCK, NO_MOCK_REASON, MagicMock, patch ) try: import pytest except Impor...
22c6ab4806745ed2b9291dcbf4c0fbe8a72aaeed
setup.py
setup.py
#!/usr/bin/env python # coding=utf-8 __author__ = '[email protected]' from setuptools import setup from sys import platform REQUIREMENTS = [] if platform.startswith('darwin'): REQUIREMENTS.append('pyobjc >= 2.5') setup( name="power", version="1.2", description="Cross-platform system power st...
#!/usr/bin/env python # coding=utf-8 __author__ = '[email protected]' from setuptools import setup from sys import platform REQUIREMENTS = [] if platform.startswith('darwin'): REQUIREMENTS.append('pyobjc >= 2.5') setup( name="power", version="1.2", description="Cross-platform system power st...
Add license, long description and fix classifiers.
Add license, long description and fix classifiers.
Python
mit
Kentzo/Power
#!/usr/bin/env python # coding=utf-8 __author__ = '[email protected]' from setuptools import setup from sys import platform REQUIREMENTS = [] if platform.startswith('darwin'): REQUIREMENTS.append('pyobjc >= 2.5') setup( name="power", version="1.2", description="Cross-platform system power st...
#!/usr/bin/env python # coding=utf-8 __author__ = '[email protected]' from setuptools import setup from sys import platform REQUIREMENTS = [] if platform.startswith('darwin'): REQUIREMENTS.append('pyobjc >= 2.5') setup( name="power", version="1.2", description="Cross-platform system power st...
<commit_before>#!/usr/bin/env python # coding=utf-8 __author__ = '[email protected]' from setuptools import setup from sys import platform REQUIREMENTS = [] if platform.startswith('darwin'): REQUIREMENTS.append('pyobjc >= 2.5') setup( name="power", version="1.2", description="Cross-platform ...
#!/usr/bin/env python # coding=utf-8 __author__ = '[email protected]' from setuptools import setup from sys import platform REQUIREMENTS = [] if platform.startswith('darwin'): REQUIREMENTS.append('pyobjc >= 2.5') setup( name="power", version="1.2", description="Cross-platform system power st...
#!/usr/bin/env python # coding=utf-8 __author__ = '[email protected]' from setuptools import setup from sys import platform REQUIREMENTS = [] if platform.startswith('darwin'): REQUIREMENTS.append('pyobjc >= 2.5') setup( name="power", version="1.2", description="Cross-platform system power st...
<commit_before>#!/usr/bin/env python # coding=utf-8 __author__ = '[email protected]' from setuptools import setup from sys import platform REQUIREMENTS = [] if platform.startswith('darwin'): REQUIREMENTS.append('pyobjc >= 2.5') setup( name="power", version="1.2", description="Cross-platform ...
665d980f62840fc0c8e531cab21faf8151d016d7
setup.py
setup.py
#!/usr/bin/evn python2 from setuptools import setup, find_packages setup(name='pprof', version='0.9.6', packages=find_packages(), install_requires=["SQLAlchemy==1.0.4", "cloud==2.8.5", "plumbum==1.4.2", "regex==2015.5.28", "wheel==0.24.0", "parse==1.6.6", ...
#!/usr/bin/evn python2 from setuptools import setup, find_packages setup(name='pprof', version='0.9.6', packages=find_packages(), install_requires=["SQLAlchemy==1.0.4", "cloud==2.8.5", "plumbum==1.4.2", "regex==2015.5.28", "wheel==0.24.0", "parse==1.6.6", ...
Add pyscopg2 to list of dependencies
Add pyscopg2 to list of dependencies Former-commit-id: afed58eea17319b11e3fafc1ef45c7cdf590fac0 Former-commit-id: 257ed272462ca52cc15bae9040296ace91e15843 [formerly 19b9a870795fb176a9fb49b427a00b70fc6e2b35] [formerly 5b2ece2b396282c63c2902d6128e3a1f2c982708 [formerly 1a662bf08f6e4b81939fe16c4422c7201c9394f5]] Former-...
Python
mit
PolyJIT/benchbuild,PolyJIT/benchbuild,PolyJIT/benchbuild,PolyJIT/benchbuild
#!/usr/bin/evn python2 from setuptools import setup, find_packages setup(name='pprof', version='0.9.6', packages=find_packages(), install_requires=["SQLAlchemy==1.0.4", "cloud==2.8.5", "plumbum==1.4.2", "regex==2015.5.28", "wheel==0.24.0", "parse==1.6.6", ...
#!/usr/bin/evn python2 from setuptools import setup, find_packages setup(name='pprof', version='0.9.6', packages=find_packages(), install_requires=["SQLAlchemy==1.0.4", "cloud==2.8.5", "plumbum==1.4.2", "regex==2015.5.28", "wheel==0.24.0", "parse==1.6.6", ...
<commit_before>#!/usr/bin/evn python2 from setuptools import setup, find_packages setup(name='pprof', version='0.9.6', packages=find_packages(), install_requires=["SQLAlchemy==1.0.4", "cloud==2.8.5", "plumbum==1.4.2", "regex==2015.5.28", "wheel==0.24.0", "parse==1.6.6", ...
#!/usr/bin/evn python2 from setuptools import setup, find_packages setup(name='pprof', version='0.9.6', packages=find_packages(), install_requires=["SQLAlchemy==1.0.4", "cloud==2.8.5", "plumbum==1.4.2", "regex==2015.5.28", "wheel==0.24.0", "parse==1.6.6", ...
#!/usr/bin/evn python2 from setuptools import setup, find_packages setup(name='pprof', version='0.9.6', packages=find_packages(), install_requires=["SQLAlchemy==1.0.4", "cloud==2.8.5", "plumbum==1.4.2", "regex==2015.5.28", "wheel==0.24.0", "parse==1.6.6", ...
<commit_before>#!/usr/bin/evn python2 from setuptools import setup, find_packages setup(name='pprof', version='0.9.6', packages=find_packages(), install_requires=["SQLAlchemy==1.0.4", "cloud==2.8.5", "plumbum==1.4.2", "regex==2015.5.28", "wheel==0.24.0", "parse==1.6.6", ...
44b78b4eee2b62cb4308b266008d79c218a032ca
setup.py
setup.py
# coding=utf-8 # Copyright 2021 The Balloon Learning Environment Authors. # # 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...
# coding=utf-8 # Copyright 2021 The Balloon Learning Environment Authors. # # 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...
Add gcsfs, tensorflow-datasets, zarr as dependencies.
Add gcsfs, tensorflow-datasets, zarr as dependencies. PiperOrigin-RevId: 414517642
Python
apache-2.0
google/balloon-learning-environment
# coding=utf-8 # Copyright 2021 The Balloon Learning Environment Authors. # # 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...
# coding=utf-8 # Copyright 2021 The Balloon Learning Environment Authors. # # 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...
<commit_before># coding=utf-8 # Copyright 2021 The Balloon Learning Environment Authors. # # 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 # #...
# coding=utf-8 # Copyright 2021 The Balloon Learning Environment Authors. # # 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...
# coding=utf-8 # Copyright 2021 The Balloon Learning Environment Authors. # # 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...
<commit_before># coding=utf-8 # Copyright 2021 The Balloon Learning Environment Authors. # # 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 # #...
2b9e66c124b0d62f177a3875220714f4324ec0c0
setup.py
setup.py
"""Install Mesh TensorFlow.""" from setuptools import find_packages from setuptools import setup setup( name='mesh-tensorflow', version='0.0.3', description='Mesh TensorFlow', author='Google Inc.', author_email='[email protected]', url='http://github.com/tensorflow/mesh', license='Apache...
"""Install Mesh TensorFlow.""" from setuptools import find_packages from setuptools import setup setup( name='mesh-tensorflow', version='0.0.4', description='Mesh TensorFlow', author='Google Inc.', author_email='[email protected]', url='http://github.com/tensorflow/mesh', license='Apache...
Set up release to mesh-tensorflow 0.0.4.
Set up release to mesh-tensorflow 0.0.4. PiperOrigin-RevId: 221204704
Python
apache-2.0
tensorflow/mesh,tensorflow/mesh
"""Install Mesh TensorFlow.""" from setuptools import find_packages from setuptools import setup setup( name='mesh-tensorflow', version='0.0.3', description='Mesh TensorFlow', author='Google Inc.', author_email='[email protected]', url='http://github.com/tensorflow/mesh', license='Apache...
"""Install Mesh TensorFlow.""" from setuptools import find_packages from setuptools import setup setup( name='mesh-tensorflow', version='0.0.4', description='Mesh TensorFlow', author='Google Inc.', author_email='[email protected]', url='http://github.com/tensorflow/mesh', license='Apache...
<commit_before>"""Install Mesh TensorFlow.""" from setuptools import find_packages from setuptools import setup setup( name='mesh-tensorflow', version='0.0.3', description='Mesh TensorFlow', author='Google Inc.', author_email='[email protected]', url='http://github.com/tensorflow/mesh', ...
"""Install Mesh TensorFlow.""" from setuptools import find_packages from setuptools import setup setup( name='mesh-tensorflow', version='0.0.4', description='Mesh TensorFlow', author='Google Inc.', author_email='[email protected]', url='http://github.com/tensorflow/mesh', license='Apache...
"""Install Mesh TensorFlow.""" from setuptools import find_packages from setuptools import setup setup( name='mesh-tensorflow', version='0.0.3', description='Mesh TensorFlow', author='Google Inc.', author_email='[email protected]', url='http://github.com/tensorflow/mesh', license='Apache...
<commit_before>"""Install Mesh TensorFlow.""" from setuptools import find_packages from setuptools import setup setup( name='mesh-tensorflow', version='0.0.3', description='Mesh TensorFlow', author='Google Inc.', author_email='[email protected]', url='http://github.com/tensorflow/mesh', ...
95ad476984d0bb095adf22f9486ab1f710370a53
setup.py
setup.py
from setuptools import setup setup(name='pygraphc', version='0.0.1', description='Event log clustering in Python', long_description='This package contains event log clustering method including non-graph and ' 'graph-based approaches.', classifiers=[ 'Developme...
from setuptools import setup setup(name='pygraphc', version='0.0.1', description='Event log clustering in Python', long_description='This package contains event log clustering method including non-graph and ' 'graph-based approaches.', classifiers=[ 'Developme...
Add scipy in requirements list
Add scipy in requirements list
Python
mit
studiawan/pygraphc
from setuptools import setup setup(name='pygraphc', version='0.0.1', description='Event log clustering in Python', long_description='This package contains event log clustering method including non-graph and ' 'graph-based approaches.', classifiers=[ 'Developme...
from setuptools import setup setup(name='pygraphc', version='0.0.1', description='Event log clustering in Python', long_description='This package contains event log clustering method including non-graph and ' 'graph-based approaches.', classifiers=[ 'Developme...
<commit_before>from setuptools import setup setup(name='pygraphc', version='0.0.1', description='Event log clustering in Python', long_description='This package contains event log clustering method including non-graph and ' 'graph-based approaches.', classifiers=[ ...
from setuptools import setup setup(name='pygraphc', version='0.0.1', description='Event log clustering in Python', long_description='This package contains event log clustering method including non-graph and ' 'graph-based approaches.', classifiers=[ 'Developme...
from setuptools import setup setup(name='pygraphc', version='0.0.1', description='Event log clustering in Python', long_description='This package contains event log clustering method including non-graph and ' 'graph-based approaches.', classifiers=[ 'Developme...
<commit_before>from setuptools import setup setup(name='pygraphc', version='0.0.1', description='Event log clustering in Python', long_description='This package contains event log clustering method including non-graph and ' 'graph-based approaches.', classifiers=[ ...
0e33f4ab0ad4cabc7b317fc1c17b187337ab958b
setup.py
setup.py
from setuptools import setup, find_packages setup(name='citrination-client', version='4.6.0', url='http://github.com/CitrineInformatics/python-citrination-client', description='Python client for accessing the Citrination api', packages=find_packages(exclude=('docs')), install_requires=[ ...
from setuptools import setup, find_packages setup(name='citrination-client', version='4.6.0', url='http://github.com/CitrineInformatics/python-citrination-client', description='Python client for accessing the Citrination api', packages=find_packages(exclude=('docs')), install_requires=[ ...
Update requests to address security concern
Update requests to address security concern
Python
apache-2.0
CitrineInformatics/python-citrination-client
from setuptools import setup, find_packages setup(name='citrination-client', version='4.6.0', url='http://github.com/CitrineInformatics/python-citrination-client', description='Python client for accessing the Citrination api', packages=find_packages(exclude=('docs')), install_requires=[ ...
from setuptools import setup, find_packages setup(name='citrination-client', version='4.6.0', url='http://github.com/CitrineInformatics/python-citrination-client', description='Python client for accessing the Citrination api', packages=find_packages(exclude=('docs')), install_requires=[ ...
<commit_before>from setuptools import setup, find_packages setup(name='citrination-client', version='4.6.0', url='http://github.com/CitrineInformatics/python-citrination-client', description='Python client for accessing the Citrination api', packages=find_packages(exclude=('docs')), insta...
from setuptools import setup, find_packages setup(name='citrination-client', version='4.6.0', url='http://github.com/CitrineInformatics/python-citrination-client', description='Python client for accessing the Citrination api', packages=find_packages(exclude=('docs')), install_requires=[ ...
from setuptools import setup, find_packages setup(name='citrination-client', version='4.6.0', url='http://github.com/CitrineInformatics/python-citrination-client', description='Python client for accessing the Citrination api', packages=find_packages(exclude=('docs')), install_requires=[ ...
<commit_before>from setuptools import setup, find_packages setup(name='citrination-client', version='4.6.0', url='http://github.com/CitrineInformatics/python-citrination-client', description='Python client for accessing the Citrination api', packages=find_packages(exclude=('docs')), insta...
8155233ee78208b0c6707b4c075f1a334b781264
setup.py
setup.py
#!/usr/bin/env python # -*- coding: utf-8 -*- # # # Copyright 2012 ShopWiki # # 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 requ...
#!/usr/bin/env python # -*- coding: utf-8 -*- # # # Copyright 2012 ShopWiki # # 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 requ...
Add pysqlite to the dependencies
Add pysqlite to the dependencies
Python
apache-2.0
patricklaw/clortho
#!/usr/bin/env python # -*- coding: utf-8 -*- # # # Copyright 2012 ShopWiki # # 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 requ...
#!/usr/bin/env python # -*- coding: utf-8 -*- # # # Copyright 2012 ShopWiki # # 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 requ...
<commit_before>#!/usr/bin/env python # -*- coding: utf-8 -*- # # # Copyright 2012 ShopWiki # # 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 ...
#!/usr/bin/env python # -*- coding: utf-8 -*- # # # Copyright 2012 ShopWiki # # 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 requ...
#!/usr/bin/env python # -*- coding: utf-8 -*- # # # Copyright 2012 ShopWiki # # 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 requ...
<commit_before>#!/usr/bin/env python # -*- coding: utf-8 -*- # # # Copyright 2012 ShopWiki # # 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 ...
d2699f79e544fdfee1745da00ad16a2950d6ee10
setup.py
setup.py
#! /usr/bin/env python from setuptools import setup PACKAGENAME = 'preconditions' setup( name=PACKAGENAME, description='Flexible, concise preconditions.', url='https://github.com/nejucomo/{0}'.format(PACKAGENAME), license='MIT', version='0.1.dev0', author='Nathan Wilcox', author_email='...
#! /usr/bin/env python import sys from setuptools import setup if 'upload' in sys.argv: if '--sign' not in sys.argv and sys.argv[1:] != ['upload', '--help']: raise SystemExit('Refusing to upload unsigned packages.') PACKAGENAME = 'preconditions' setup( name=PACKAGENAME, description='Flexible, ...
Add a "signature requirement" to the sdist upload command.
Add a "signature requirement" to the sdist upload command.
Python
mit
nejucomo/preconditions
#! /usr/bin/env python from setuptools import setup PACKAGENAME = 'preconditions' setup( name=PACKAGENAME, description='Flexible, concise preconditions.', url='https://github.com/nejucomo/{0}'.format(PACKAGENAME), license='MIT', version='0.1.dev0', author='Nathan Wilcox', author_email='...
#! /usr/bin/env python import sys from setuptools import setup if 'upload' in sys.argv: if '--sign' not in sys.argv and sys.argv[1:] != ['upload', '--help']: raise SystemExit('Refusing to upload unsigned packages.') PACKAGENAME = 'preconditions' setup( name=PACKAGENAME, description='Flexible, ...
<commit_before>#! /usr/bin/env python from setuptools import setup PACKAGENAME = 'preconditions' setup( name=PACKAGENAME, description='Flexible, concise preconditions.', url='https://github.com/nejucomo/{0}'.format(PACKAGENAME), license='MIT', version='0.1.dev0', author='Nathan Wilcox', ...
#! /usr/bin/env python import sys from setuptools import setup if 'upload' in sys.argv: if '--sign' not in sys.argv and sys.argv[1:] != ['upload', '--help']: raise SystemExit('Refusing to upload unsigned packages.') PACKAGENAME = 'preconditions' setup( name=PACKAGENAME, description='Flexible, ...
#! /usr/bin/env python from setuptools import setup PACKAGENAME = 'preconditions' setup( name=PACKAGENAME, description='Flexible, concise preconditions.', url='https://github.com/nejucomo/{0}'.format(PACKAGENAME), license='MIT', version='0.1.dev0', author='Nathan Wilcox', author_email='...
<commit_before>#! /usr/bin/env python from setuptools import setup PACKAGENAME = 'preconditions' setup( name=PACKAGENAME, description='Flexible, concise preconditions.', url='https://github.com/nejucomo/{0}'.format(PACKAGENAME), license='MIT', version='0.1.dev0', author='Nathan Wilcox', ...
17fed2073cd89ca2d3ff8d182b360542e4cf6e1a
setup.py
setup.py
""" setup.py for Flask-Limiter """ __author__ = "Ali-Akber Saifee" __email__ = "[email protected]" __copyright__ = "Copyright 2014, Ali-Akber Saifee" from setuptools import setup, find_packages import os import versioneer this_dir = os.path.abspath(os.path.dirname(__file__)) REQUIREMENTS = filter( None, open(os....
""" setup.py for Flask-Limiter """ __author__ = "Ali-Akber Saifee" __email__ = "[email protected]" __copyright__ = "Copyright 2014, Ali-Akber Saifee" from setuptools import setup, find_packages import os import versioneer this_dir = os.path.abspath(os.path.dirname(__file__)) REQUIREMENTS = filter( None, open(os....
Remove changelog from release description
Remove changelog from release description
Python
mit
alisaifee/flask-limiter,alisaifee/flask-limiter
""" setup.py for Flask-Limiter """ __author__ = "Ali-Akber Saifee" __email__ = "[email protected]" __copyright__ = "Copyright 2014, Ali-Akber Saifee" from setuptools import setup, find_packages import os import versioneer this_dir = os.path.abspath(os.path.dirname(__file__)) REQUIREMENTS = filter( None, open(os....
""" setup.py for Flask-Limiter """ __author__ = "Ali-Akber Saifee" __email__ = "[email protected]" __copyright__ = "Copyright 2014, Ali-Akber Saifee" from setuptools import setup, find_packages import os import versioneer this_dir = os.path.abspath(os.path.dirname(__file__)) REQUIREMENTS = filter( None, open(os....
<commit_before>""" setup.py for Flask-Limiter """ __author__ = "Ali-Akber Saifee" __email__ = "[email protected]" __copyright__ = "Copyright 2014, Ali-Akber Saifee" from setuptools import setup, find_packages import os import versioneer this_dir = os.path.abspath(os.path.dirname(__file__)) REQUIREMENTS = filter( ...
""" setup.py for Flask-Limiter """ __author__ = "Ali-Akber Saifee" __email__ = "[email protected]" __copyright__ = "Copyright 2014, Ali-Akber Saifee" from setuptools import setup, find_packages import os import versioneer this_dir = os.path.abspath(os.path.dirname(__file__)) REQUIREMENTS = filter( None, open(os....
""" setup.py for Flask-Limiter """ __author__ = "Ali-Akber Saifee" __email__ = "[email protected]" __copyright__ = "Copyright 2014, Ali-Akber Saifee" from setuptools import setup, find_packages import os import versioneer this_dir = os.path.abspath(os.path.dirname(__file__)) REQUIREMENTS = filter( None, open(os....
<commit_before>""" setup.py for Flask-Limiter """ __author__ = "Ali-Akber Saifee" __email__ = "[email protected]" __copyright__ = "Copyright 2014, Ali-Akber Saifee" from setuptools import setup, find_packages import os import versioneer this_dir = os.path.abspath(os.path.dirname(__file__)) REQUIREMENTS = filter( ...
d541611100740eceedae075e199bdf527761d01d
setup.py
setup.py
from distutils.core import setup import os package_data = [] BASE_DIR = os.path.dirname(__file__) walk_generator = os.walk(os.path.join(BASE_DIR, "project_template")) paths_and_files = [(paths, files) for paths, dirs, files in walk_generator] for path, files in paths_and_files: prefix = path[path.find("project_tem...
from distutils.core import setup import os package_data = [] BASE_DIR = os.path.dirname(__file__) walk_generator = os.walk(os.path.join(BASE_DIR, "project_template")) paths_and_files = [(paths, files) for paths, dirs, files in walk_generator] for path, files in paths_and_files: prefix = path[path.find("project_tem...
Tag version v1.0.0 -- first extracted version
Tag version v1.0.0 -- first extracted version
Python
apache-2.0
armstrong/armstrong.templates.tutorial
from distutils.core import setup import os package_data = [] BASE_DIR = os.path.dirname(__file__) walk_generator = os.walk(os.path.join(BASE_DIR, "project_template")) paths_and_files = [(paths, files) for paths, dirs, files in walk_generator] for path, files in paths_and_files: prefix = path[path.find("project_tem...
from distutils.core import setup import os package_data = [] BASE_DIR = os.path.dirname(__file__) walk_generator = os.walk(os.path.join(BASE_DIR, "project_template")) paths_and_files = [(paths, files) for paths, dirs, files in walk_generator] for path, files in paths_and_files: prefix = path[path.find("project_tem...
<commit_before>from distutils.core import setup import os package_data = [] BASE_DIR = os.path.dirname(__file__) walk_generator = os.walk(os.path.join(BASE_DIR, "project_template")) paths_and_files = [(paths, files) for paths, dirs, files in walk_generator] for path, files in paths_and_files: prefix = path[path.fi...
from distutils.core import setup import os package_data = [] BASE_DIR = os.path.dirname(__file__) walk_generator = os.walk(os.path.join(BASE_DIR, "project_template")) paths_and_files = [(paths, files) for paths, dirs, files in walk_generator] for path, files in paths_and_files: prefix = path[path.find("project_tem...
from distutils.core import setup import os package_data = [] BASE_DIR = os.path.dirname(__file__) walk_generator = os.walk(os.path.join(BASE_DIR, "project_template")) paths_and_files = [(paths, files) for paths, dirs, files in walk_generator] for path, files in paths_and_files: prefix = path[path.find("project_tem...
<commit_before>from distutils.core import setup import os package_data = [] BASE_DIR = os.path.dirname(__file__) walk_generator = os.walk(os.path.join(BASE_DIR, "project_template")) paths_and_files = [(paths, files) for paths, dirs, files in walk_generator] for path, files in paths_and_files: prefix = path[path.fi...
4ac37e35396e2393a9bbe2e954674537747e384b
setup.py
setup.py
#!/usr/bin/python import time from datetime import date from setuptools import setup from pagekite.common import APPVER import os try: # This borks sdist. os.remove('.SELF') except: pass setup( name="pagekite", version=APPVER.replace('github', 'dev%d' % (120*int(time.time()/120))), license="AGPLv3+"...
#!/usr/bin/python import time from datetime import date from setuptools import setup from pagekite.common import APPVER import os try: # This borks sdist. os.remove('.SELF') except: pass setup( name="pagekite", version=os.getenv( 'PAGEKITE_VERSION', APPVER.replace('github', 'dev%d' % (12...
Make it possible to manually override version numbers
Make it possible to manually override version numbers
Python
agpl-3.0
pagekite/PyPagekite,pagekite/PyPagekite,pagekite/PyPagekite
#!/usr/bin/python import time from datetime import date from setuptools import setup from pagekite.common import APPVER import os try: # This borks sdist. os.remove('.SELF') except: pass setup( name="pagekite", version=APPVER.replace('github', 'dev%d' % (120*int(time.time()/120))), license="AGPLv3+"...
#!/usr/bin/python import time from datetime import date from setuptools import setup from pagekite.common import APPVER import os try: # This borks sdist. os.remove('.SELF') except: pass setup( name="pagekite", version=os.getenv( 'PAGEKITE_VERSION', APPVER.replace('github', 'dev%d' % (12...
<commit_before>#!/usr/bin/python import time from datetime import date from setuptools import setup from pagekite.common import APPVER import os try: # This borks sdist. os.remove('.SELF') except: pass setup( name="pagekite", version=APPVER.replace('github', 'dev%d' % (120*int(time.time()/120))), li...
#!/usr/bin/python import time from datetime import date from setuptools import setup from pagekite.common import APPVER import os try: # This borks sdist. os.remove('.SELF') except: pass setup( name="pagekite", version=os.getenv( 'PAGEKITE_VERSION', APPVER.replace('github', 'dev%d' % (12...
#!/usr/bin/python import time from datetime import date from setuptools import setup from pagekite.common import APPVER import os try: # This borks sdist. os.remove('.SELF') except: pass setup( name="pagekite", version=APPVER.replace('github', 'dev%d' % (120*int(time.time()/120))), license="AGPLv3+"...
<commit_before>#!/usr/bin/python import time from datetime import date from setuptools import setup from pagekite.common import APPVER import os try: # This borks sdist. os.remove('.SELF') except: pass setup( name="pagekite", version=APPVER.replace('github', 'dev%d' % (120*int(time.time()/120))), li...
dcbc65d31c63dc731480867419fb45c9a631dd15
setup.py
setup.py
from setuptools import setup setup( name='livescrape', version='0.9.4', url='https://github.com/ondergetekende/python-livescrape', description='A toolkit to build pythonic web scraper libraries', author='Koert van der Veer', author_email='[email protected]', py_modules=["livescrape"],...
from setuptools import setup setup( name='livescrape', version='0.9.5', url='https://github.com/ondergetekende/python-livescrape', description='A toolkit to build pythonic web scraper libraries', author='Koert van der Veer', author_email='[email protected]', py_modules=["livescrape"],...
Prepare for 0.9.5 on pypi
Prepare for 0.9.5 on pypi
Python
mit
ondergetekende/livescrape
from setuptools import setup setup( name='livescrape', version='0.9.4', url='https://github.com/ondergetekende/python-livescrape', description='A toolkit to build pythonic web scraper libraries', author='Koert van der Veer', author_email='[email protected]', py_modules=["livescrape"],...
from setuptools import setup setup( name='livescrape', version='0.9.5', url='https://github.com/ondergetekende/python-livescrape', description='A toolkit to build pythonic web scraper libraries', author='Koert van der Veer', author_email='[email protected]', py_modules=["livescrape"],...
<commit_before>from setuptools import setup setup( name='livescrape', version='0.9.4', url='https://github.com/ondergetekende/python-livescrape', description='A toolkit to build pythonic web scraper libraries', author='Koert van der Veer', author_email='[email protected]', py_modules=...
from setuptools import setup setup( name='livescrape', version='0.9.5', url='https://github.com/ondergetekende/python-livescrape', description='A toolkit to build pythonic web scraper libraries', author='Koert van der Veer', author_email='[email protected]', py_modules=["livescrape"],...
from setuptools import setup setup( name='livescrape', version='0.9.4', url='https://github.com/ondergetekende/python-livescrape', description='A toolkit to build pythonic web scraper libraries', author='Koert van der Veer', author_email='[email protected]', py_modules=["livescrape"],...
<commit_before>from setuptools import setup setup( name='livescrape', version='0.9.4', url='https://github.com/ondergetekende/python-livescrape', description='A toolkit to build pythonic web scraper libraries', author='Koert van der Veer', author_email='[email protected]', py_modules=...
49e26262107abb58d7ca212270be36d52e8668e5
setup.py
setup.py
from setuptools import setup import multiprocessing version = '0.2.0' install_requires = ["scipy >= 0.13.3", "numpy >=1.8.1"] tests_require = ["nose"] setup( name='ddbscan', version=version, author='Allan Inocencio de Souza Costa', author_email='[email protected]', url='https...
from setuptools import setup import multiprocessing version = '0.2.1' install_requires = ["scipy >= 0.13.3", "numpy >=1.8.1"] tests_require = ["nose"] categories=[ 'Intended Audience :: Developers', 'License :: OSI Approved :: MIT License', 'Programming Language :: Python :: 2.7', ...
Change version with better package documentation
Change version with better package documentation
Python
mit
cloudwalkio/ddbscan,allanino/ddbscan
from setuptools import setup import multiprocessing version = '0.2.0' install_requires = ["scipy >= 0.13.3", "numpy >=1.8.1"] tests_require = ["nose"] setup( name='ddbscan', version=version, author='Allan Inocencio de Souza Costa', author_email='[email protected]', url='https...
from setuptools import setup import multiprocessing version = '0.2.1' install_requires = ["scipy >= 0.13.3", "numpy >=1.8.1"] tests_require = ["nose"] categories=[ 'Intended Audience :: Developers', 'License :: OSI Approved :: MIT License', 'Programming Language :: Python :: 2.7', ...
<commit_before>from setuptools import setup import multiprocessing version = '0.2.0' install_requires = ["scipy >= 0.13.3", "numpy >=1.8.1"] tests_require = ["nose"] setup( name='ddbscan', version=version, author='Allan Inocencio de Souza Costa', author_email='[email protected]',...
from setuptools import setup import multiprocessing version = '0.2.1' install_requires = ["scipy >= 0.13.3", "numpy >=1.8.1"] tests_require = ["nose"] categories=[ 'Intended Audience :: Developers', 'License :: OSI Approved :: MIT License', 'Programming Language :: Python :: 2.7', ...
from setuptools import setup import multiprocessing version = '0.2.0' install_requires = ["scipy >= 0.13.3", "numpy >=1.8.1"] tests_require = ["nose"] setup( name='ddbscan', version=version, author='Allan Inocencio de Souza Costa', author_email='[email protected]', url='https...
<commit_before>from setuptools import setup import multiprocessing version = '0.2.0' install_requires = ["scipy >= 0.13.3", "numpy >=1.8.1"] tests_require = ["nose"] setup( name='ddbscan', version=version, author='Allan Inocencio de Souza Costa', author_email='[email protected]',...
ec794b23c25f27f2d0bd427e1e546f707f0b65ec
setup.py
setup.py
from setuptools import setup setup(name='jump_consistent_hash', version='1.0.0', description='Implementation of the Jump Consistent Hash algorithm', author='Peter Renström', license='MIT', url='https://github.com/renstrom/python-jump-consistent-hash', packages=['jump'], test_...
from __future__ import print_function import sys from setuptools import setup if sys.version_info < (3, 2): print('ERROR: jump-consistent-hash requires Python version 3.2 or newer.', file=sys.stderr) sys.exit(1) setup(name='jump_consistent_hash', version='1.0.0', description='Impleme...
Add install-time error message for Python 3.1 and earlier.
Add install-time error message for Python 3.1 and earlier.
Python
mit
renstrom/python-jump-consistent-hash,renstrom/python-jump-consistent-hash,renstrom/python-jump-consistent-hash
from setuptools import setup setup(name='jump_consistent_hash', version='1.0.0', description='Implementation of the Jump Consistent Hash algorithm', author='Peter Renström', license='MIT', url='https://github.com/renstrom/python-jump-consistent-hash', packages=['jump'], test_...
from __future__ import print_function import sys from setuptools import setup if sys.version_info < (3, 2): print('ERROR: jump-consistent-hash requires Python version 3.2 or newer.', file=sys.stderr) sys.exit(1) setup(name='jump_consistent_hash', version='1.0.0', description='Impleme...
<commit_before>from setuptools import setup setup(name='jump_consistent_hash', version='1.0.0', description='Implementation of the Jump Consistent Hash algorithm', author='Peter Renström', license='MIT', url='https://github.com/renstrom/python-jump-consistent-hash', packages=['jump...
from __future__ import print_function import sys from setuptools import setup if sys.version_info < (3, 2): print('ERROR: jump-consistent-hash requires Python version 3.2 or newer.', file=sys.stderr) sys.exit(1) setup(name='jump_consistent_hash', version='1.0.0', description='Impleme...
from setuptools import setup setup(name='jump_consistent_hash', version='1.0.0', description='Implementation of the Jump Consistent Hash algorithm', author='Peter Renström', license='MIT', url='https://github.com/renstrom/python-jump-consistent-hash', packages=['jump'], test_...
<commit_before>from setuptools import setup setup(name='jump_consistent_hash', version='1.0.0', description='Implementation of the Jump Consistent Hash algorithm', author='Peter Renström', license='MIT', url='https://github.com/renstrom/python-jump-consistent-hash', packages=['jump...
1791407e845b7f552f9c4f87fa22116ea48f1892
setup.py
setup.py
from distutils.core import setup # setuptools breaks # Dynamically calculate the version based on knowledge.VERSION version_tuple = __import__('rest_hooks').VERSION version = '1.0.4' #'.'.join([str(v) for v in version_tuple]) setup( name = 'django-rest-hooks', description = 'A powerful mechanism for sending r...
from distutils.core import setup # setuptools breaks # Dynamically calculate the version based on knowledge.VERSION version_tuple = __import__('rest_hooks').VERSION version = '.'.join([str(v) for v in version_tuple]) setup( name = 'django-rest-hooks', description = 'A powerful mechanism for sending real time ...
Fix a hard-coded version number
Fix a hard-coded version number
Python
isc
zapier/django-rest-hooks,meric/django-rest-hooks,gvangool/django-rest-hooks,pombredanne/django-rest-hooks,PressLabs/django-rest-hooks-ng
from distutils.core import setup # setuptools breaks # Dynamically calculate the version based on knowledge.VERSION version_tuple = __import__('rest_hooks').VERSION version = '1.0.4' #'.'.join([str(v) for v in version_tuple]) setup( name = 'django-rest-hooks', description = 'A powerful mechanism for sending r...
from distutils.core import setup # setuptools breaks # Dynamically calculate the version based on knowledge.VERSION version_tuple = __import__('rest_hooks').VERSION version = '.'.join([str(v) for v in version_tuple]) setup( name = 'django-rest-hooks', description = 'A powerful mechanism for sending real time ...
<commit_before>from distutils.core import setup # setuptools breaks # Dynamically calculate the version based on knowledge.VERSION version_tuple = __import__('rest_hooks').VERSION version = '1.0.4' #'.'.join([str(v) for v in version_tuple]) setup( name = 'django-rest-hooks', description = 'A powerful mechanis...
from distutils.core import setup # setuptools breaks # Dynamically calculate the version based on knowledge.VERSION version_tuple = __import__('rest_hooks').VERSION version = '.'.join([str(v) for v in version_tuple]) setup( name = 'django-rest-hooks', description = 'A powerful mechanism for sending real time ...
from distutils.core import setup # setuptools breaks # Dynamically calculate the version based on knowledge.VERSION version_tuple = __import__('rest_hooks').VERSION version = '1.0.4' #'.'.join([str(v) for v in version_tuple]) setup( name = 'django-rest-hooks', description = 'A powerful mechanism for sending r...
<commit_before>from distutils.core import setup # setuptools breaks # Dynamically calculate the version based on knowledge.VERSION version_tuple = __import__('rest_hooks').VERSION version = '1.0.4' #'.'.join([str(v) for v in version_tuple]) setup( name = 'django-rest-hooks', description = 'A powerful mechanis...
1f1660f7a3c2ef4b87c306e71ba033a087add0bb
setup.py
setup.py
from setuptools import setup setup( name='pyhunter', packages=['pyhunter'], version='0.2', description='An (unofficial) Python wrapper for the Hunter.io API', author='Quentin Durantay', author_email='[email protected]', url='https://github.com/VonStruddle/PyHunter', download_u...
from setuptools import setup setup( name='pyhunter', packages=['pyhunter'], version='0.2', description='An (unofficial) Python wrapper for the Hunter.io API', author='Quentin Durantay', author_email='[email protected]', url='https://github.com/VonStruddle/PyHunter', download_u...
Adjust version in download url
Adjust version in download url
Python
mit
VonStruddle/PyHunter
from setuptools import setup setup( name='pyhunter', packages=['pyhunter'], version='0.2', description='An (unofficial) Python wrapper for the Hunter.io API', author='Quentin Durantay', author_email='[email protected]', url='https://github.com/VonStruddle/PyHunter', download_u...
from setuptools import setup setup( name='pyhunter', packages=['pyhunter'], version='0.2', description='An (unofficial) Python wrapper for the Hunter.io API', author='Quentin Durantay', author_email='[email protected]', url='https://github.com/VonStruddle/PyHunter', download_u...
<commit_before>from setuptools import setup setup( name='pyhunter', packages=['pyhunter'], version='0.2', description='An (unofficial) Python wrapper for the Hunter.io API', author='Quentin Durantay', author_email='[email protected]', url='https://github.com/VonStruddle/PyHunter',...
from setuptools import setup setup( name='pyhunter', packages=['pyhunter'], version='0.2', description='An (unofficial) Python wrapper for the Hunter.io API', author='Quentin Durantay', author_email='[email protected]', url='https://github.com/VonStruddle/PyHunter', download_u...
from setuptools import setup setup( name='pyhunter', packages=['pyhunter'], version='0.2', description='An (unofficial) Python wrapper for the Hunter.io API', author='Quentin Durantay', author_email='[email protected]', url='https://github.com/VonStruddle/PyHunter', download_u...
<commit_before>from setuptools import setup setup( name='pyhunter', packages=['pyhunter'], version='0.2', description='An (unofficial) Python wrapper for the Hunter.io API', author='Quentin Durantay', author_email='[email protected]', url='https://github.com/VonStruddle/PyHunter',...
8e67056ccd09a3b31edfb13bc38091606752c84d
setup.py
setup.py
from setuptools import setup, find_packages setup( name = "pcbmode", packages = find_packages(), use_scm_version=True, setup_requires=['setuptools_scm'], install_requires = ['lxml', 'pyparsing'], package_data = { 'pcbmode': ['stackups/*.json', 'styles/*/*.json', ...
from setuptools import setup, find_packages setup( name = "pcbmode", packages = find_packages(), use_scm_version=True, setup_requires=['setuptools_scm'], install_requires = ['lxml', 'pyparsing'], package_data = { 'pcbmode': ['stackups/*.json', 'styles/*/*.json', ...
Include pcbmode_config.json file in package
Include pcbmode_config.json file in package
Python
mit
ddm/pcbmode,boldport/pcbmode
from setuptools import setup, find_packages setup( name = "pcbmode", packages = find_packages(), use_scm_version=True, setup_requires=['setuptools_scm'], install_requires = ['lxml', 'pyparsing'], package_data = { 'pcbmode': ['stackups/*.json', 'styles/*/*.json', ...
from setuptools import setup, find_packages setup( name = "pcbmode", packages = find_packages(), use_scm_version=True, setup_requires=['setuptools_scm'], install_requires = ['lxml', 'pyparsing'], package_data = { 'pcbmode': ['stackups/*.json', 'styles/*/*.json', ...
<commit_before>from setuptools import setup, find_packages setup( name = "pcbmode", packages = find_packages(), use_scm_version=True, setup_requires=['setuptools_scm'], install_requires = ['lxml', 'pyparsing'], package_data = { 'pcbmode': ['stackups/*.json', 'styles...
from setuptools import setup, find_packages setup( name = "pcbmode", packages = find_packages(), use_scm_version=True, setup_requires=['setuptools_scm'], install_requires = ['lxml', 'pyparsing'], package_data = { 'pcbmode': ['stackups/*.json', 'styles/*/*.json', ...
from setuptools import setup, find_packages setup( name = "pcbmode", packages = find_packages(), use_scm_version=True, setup_requires=['setuptools_scm'], install_requires = ['lxml', 'pyparsing'], package_data = { 'pcbmode': ['stackups/*.json', 'styles/*/*.json', ...
<commit_before>from setuptools import setup, find_packages setup( name = "pcbmode", packages = find_packages(), use_scm_version=True, setup_requires=['setuptools_scm'], install_requires = ['lxml', 'pyparsing'], package_data = { 'pcbmode': ['stackups/*.json', 'styles...
974112e0ebd9397e3b3d3e49034465713b8df996
tools/lxlcrawler/lxlcrawler.py
tools/lxlcrawler/lxlcrawler.py
#!/usr/bin/env python3 from urllib.parse import urljoin from urllib.request import urlopen, Request import json import codecs reader = codecs.getreader("utf-8") def crawl(collection_url): while True: req = Request(collection_url, headers={'accept': 'application/json'}) data = json.load(reader(urlo...
#!/usr/bin/env python3 from urllib.parse import urljoin from urllib.request import urlopen, Request import json import codecs reader = codecs.getreader("utf-8") def crawl(collection_url): while True: req = Request(collection_url, headers={'accept': 'application/json'}) data = json.load(reader(urlo...
Handle both forms of next links
Handle both forms of next links
Python
cc0-1.0
Kungbib/datalab,Kungbib/datalab
#!/usr/bin/env python3 from urllib.parse import urljoin from urllib.request import urlopen, Request import json import codecs reader = codecs.getreader("utf-8") def crawl(collection_url): while True: req = Request(collection_url, headers={'accept': 'application/json'}) data = json.load(reader(urlo...
#!/usr/bin/env python3 from urllib.parse import urljoin from urllib.request import urlopen, Request import json import codecs reader = codecs.getreader("utf-8") def crawl(collection_url): while True: req = Request(collection_url, headers={'accept': 'application/json'}) data = json.load(reader(urlo...
<commit_before>#!/usr/bin/env python3 from urllib.parse import urljoin from urllib.request import urlopen, Request import json import codecs reader = codecs.getreader("utf-8") def crawl(collection_url): while True: req = Request(collection_url, headers={'accept': 'application/json'}) data = json.l...
#!/usr/bin/env python3 from urllib.parse import urljoin from urllib.request import urlopen, Request import json import codecs reader = codecs.getreader("utf-8") def crawl(collection_url): while True: req = Request(collection_url, headers={'accept': 'application/json'}) data = json.load(reader(urlo...
#!/usr/bin/env python3 from urllib.parse import urljoin from urllib.request import urlopen, Request import json import codecs reader = codecs.getreader("utf-8") def crawl(collection_url): while True: req = Request(collection_url, headers={'accept': 'application/json'}) data = json.load(reader(urlo...
<commit_before>#!/usr/bin/env python3 from urllib.parse import urljoin from urllib.request import urlopen, Request import json import codecs reader = codecs.getreader("utf-8") def crawl(collection_url): while True: req = Request(collection_url, headers={'accept': 'application/json'}) data = json.l...
e249e1c03fab60c2f09a171924f3a1f701a0c7aa
astropy/tests/image_tests.py
astropy/tests/image_tests.py
import matplotlib from matplotlib import pyplot as plt from ..utils.decorators import wraps MPL_VERSION = matplotlib.__version__ ROOT = "http://{server}/testing/astropy/2018-02-01T23:31:45.013149/{mpl_version}/" IMAGE_REFERENCE_DIR = ROOT.format(server='data.astropy.org', mpl_version=MPL_VERSION[:3] + '.x') def i...
import matplotlib from matplotlib import pyplot as plt from ..utils.decorators import wraps MPL_VERSION = matplotlib.__version__ ROOT = "http://{server}/testing/astropy/2018-02-01T23:31:45.013149/{mpl_version}/" IMAGE_REFERENCE_DIR = (ROOT.format(server='data.astropy.org', mpl_version=MPL_VERSION[:3] + '.x') + ',' ...
Add back mirror for image tests
Add back mirror for image tests
Python
bsd-3-clause
pllim/astropy,stargaser/astropy,MSeifert04/astropy,funbaker/astropy,larrybradley/astropy,astropy/astropy,pllim/astropy,lpsinger/astropy,saimn/astropy,MSeifert04/astropy,mhvk/astropy,dhomeier/astropy,aleksandr-bakanov/astropy,StuartLittlefair/astropy,bsipocz/astropy,astropy/astropy,lpsinger/astropy,bsipocz/astropy,DougB...
import matplotlib from matplotlib import pyplot as plt from ..utils.decorators import wraps MPL_VERSION = matplotlib.__version__ ROOT = "http://{server}/testing/astropy/2018-02-01T23:31:45.013149/{mpl_version}/" IMAGE_REFERENCE_DIR = ROOT.format(server='data.astropy.org', mpl_version=MPL_VERSION[:3] + '.x') def i...
import matplotlib from matplotlib import pyplot as plt from ..utils.decorators import wraps MPL_VERSION = matplotlib.__version__ ROOT = "http://{server}/testing/astropy/2018-02-01T23:31:45.013149/{mpl_version}/" IMAGE_REFERENCE_DIR = (ROOT.format(server='data.astropy.org', mpl_version=MPL_VERSION[:3] + '.x') + ',' ...
<commit_before>import matplotlib from matplotlib import pyplot as plt from ..utils.decorators import wraps MPL_VERSION = matplotlib.__version__ ROOT = "http://{server}/testing/astropy/2018-02-01T23:31:45.013149/{mpl_version}/" IMAGE_REFERENCE_DIR = ROOT.format(server='data.astropy.org', mpl_version=MPL_VERSION[:3] ...
import matplotlib from matplotlib import pyplot as plt from ..utils.decorators import wraps MPL_VERSION = matplotlib.__version__ ROOT = "http://{server}/testing/astropy/2018-02-01T23:31:45.013149/{mpl_version}/" IMAGE_REFERENCE_DIR = (ROOT.format(server='data.astropy.org', mpl_version=MPL_VERSION[:3] + '.x') + ',' ...
import matplotlib from matplotlib import pyplot as plt from ..utils.decorators import wraps MPL_VERSION = matplotlib.__version__ ROOT = "http://{server}/testing/astropy/2018-02-01T23:31:45.013149/{mpl_version}/" IMAGE_REFERENCE_DIR = ROOT.format(server='data.astropy.org', mpl_version=MPL_VERSION[:3] + '.x') def i...
<commit_before>import matplotlib from matplotlib import pyplot as plt from ..utils.decorators import wraps MPL_VERSION = matplotlib.__version__ ROOT = "http://{server}/testing/astropy/2018-02-01T23:31:45.013149/{mpl_version}/" IMAGE_REFERENCE_DIR = ROOT.format(server='data.astropy.org', mpl_version=MPL_VERSION[:3] ...
652fceb8f7d22c6cb22a81e4ce048ff8edd34e8b
migrations/versions/148_add_last_modified_column_for_events.py
migrations/versions/148_add_last_modified_column_for_events.py
"""add last_modified column for events Revision ID: 54dcea22a268 Revises: 41f957b595fc Create Date: 2015-03-16 23:15:55.908307 """ # revision identifiers, used by Alembic. revision = '54dcea22a268' down_revision = '41f957b595fc' from alembic import op from sqlalchemy.sql import text import sqlalchemy as sa def up...
"""add last_modified column for events Revision ID: 54dcea22a268 Revises: 486c7fa5b533 Create Date: 2015-03-16 23:15:55.908307 """ # revision identifiers, used by Alembic. revision = '54dcea22a268' down_revision = '486c7fa5b533' from alembic import op from sqlalchemy.sql import text import sqlalchemy as sa def up...
Undo revision changes to previous migration
Undo revision changes to previous migration
Python
agpl-3.0
Eagles2F/sync-engine,gale320/sync-engine,closeio/nylas,ErinCall/sync-engine,gale320/sync-engine,jobscore/sync-engine,ErinCall/sync-engine,ErinCall/sync-engine,ErinCall/sync-engine,wakermahmud/sync-engine,wakermahmud/sync-engine,gale320/sync-engine,nylas/sync-engine,nylas/sync-engine,wakermahmud/sync-engine,closeio/nyla...
"""add last_modified column for events Revision ID: 54dcea22a268 Revises: 41f957b595fc Create Date: 2015-03-16 23:15:55.908307 """ # revision identifiers, used by Alembic. revision = '54dcea22a268' down_revision = '41f957b595fc' from alembic import op from sqlalchemy.sql import text import sqlalchemy as sa def up...
"""add last_modified column for events Revision ID: 54dcea22a268 Revises: 486c7fa5b533 Create Date: 2015-03-16 23:15:55.908307 """ # revision identifiers, used by Alembic. revision = '54dcea22a268' down_revision = '486c7fa5b533' from alembic import op from sqlalchemy.sql import text import sqlalchemy as sa def up...
<commit_before>"""add last_modified column for events Revision ID: 54dcea22a268 Revises: 41f957b595fc Create Date: 2015-03-16 23:15:55.908307 """ # revision identifiers, used by Alembic. revision = '54dcea22a268' down_revision = '41f957b595fc' from alembic import op from sqlalchemy.sql import text import sqlalchemy...
"""add last_modified column for events Revision ID: 54dcea22a268 Revises: 486c7fa5b533 Create Date: 2015-03-16 23:15:55.908307 """ # revision identifiers, used by Alembic. revision = '54dcea22a268' down_revision = '486c7fa5b533' from alembic import op from sqlalchemy.sql import text import sqlalchemy as sa def up...
"""add last_modified column for events Revision ID: 54dcea22a268 Revises: 41f957b595fc Create Date: 2015-03-16 23:15:55.908307 """ # revision identifiers, used by Alembic. revision = '54dcea22a268' down_revision = '41f957b595fc' from alembic import op from sqlalchemy.sql import text import sqlalchemy as sa def up...
<commit_before>"""add last_modified column for events Revision ID: 54dcea22a268 Revises: 41f957b595fc Create Date: 2015-03-16 23:15:55.908307 """ # revision identifiers, used by Alembic. revision = '54dcea22a268' down_revision = '41f957b595fc' from alembic import op from sqlalchemy.sql import text import sqlalchemy...
926ee23ef946dc2eba0cae5321601c5fadad9e5e
examples/faceted_lineplot.py
examples/faceted_lineplot.py
""" Line plots on multiple facets ============================= _thumb: .45, .42 """ import seaborn as sns sns.set(style="ticks") dots = sns.load_dataset("dots") # Define a palette to ensure that colors will be # shared across the facets palette = dict(zip(dots.coherence.unique(), sns.color_palet...
""" Line plots on multiple facets ============================= _thumb: .45, .42 """ import seaborn as sns sns.set(style="ticks") dots = sns.load_dataset("dots") # Define a palette to ensure that colors will be # shared across the facets palette = dict(zip(dots.coherence.unique(), sns.color_palet...
Update dots lineplot example to use relplot
Update dots lineplot example to use relplot
Python
bsd-3-clause
sauliusl/seaborn,lukauskas/seaborn,petebachant/seaborn,phobson/seaborn,anntzer/seaborn,lukauskas/seaborn,mwaskom/seaborn,phobson/seaborn,arokem/seaborn,anntzer/seaborn,arokem/seaborn,mwaskom/seaborn
""" Line plots on multiple facets ============================= _thumb: .45, .42 """ import seaborn as sns sns.set(style="ticks") dots = sns.load_dataset("dots") # Define a palette to ensure that colors will be # shared across the facets palette = dict(zip(dots.coherence.unique(), sns.color_palet...
""" Line plots on multiple facets ============================= _thumb: .45, .42 """ import seaborn as sns sns.set(style="ticks") dots = sns.load_dataset("dots") # Define a palette to ensure that colors will be # shared across the facets palette = dict(zip(dots.coherence.unique(), sns.color_palet...
<commit_before>""" Line plots on multiple facets ============================= _thumb: .45, .42 """ import seaborn as sns sns.set(style="ticks") dots = sns.load_dataset("dots") # Define a palette to ensure that colors will be # shared across the facets palette = dict(zip(dots.coherence.unique(), ...
""" Line plots on multiple facets ============================= _thumb: .45, .42 """ import seaborn as sns sns.set(style="ticks") dots = sns.load_dataset("dots") # Define a palette to ensure that colors will be # shared across the facets palette = dict(zip(dots.coherence.unique(), sns.color_palet...
""" Line plots on multiple facets ============================= _thumb: .45, .42 """ import seaborn as sns sns.set(style="ticks") dots = sns.load_dataset("dots") # Define a palette to ensure that colors will be # shared across the facets palette = dict(zip(dots.coherence.unique(), sns.color_palet...
<commit_before>""" Line plots on multiple facets ============================= _thumb: .45, .42 """ import seaborn as sns sns.set(style="ticks") dots = sns.load_dataset("dots") # Define a palette to ensure that colors will be # shared across the facets palette = dict(zip(dots.coherence.unique(), ...
29fef644079a03fe0cfeb792dd47af7749382dba
unnaturalcode/http/__main__.py
unnaturalcode/http/__main__.py
#!/usr/bin/env python # Copyright (C) 2014 Eddie Antonio Santos # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published # by the Free Software Foundation, either version 3 of the License, or # (at your option) any later versio...
#!/usr/bin/env python # Copyright (C) 2014 Eddie Antonio Santos # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published # by the Free Software Foundation, either version 3 of the License, or # (at your option) any later versio...
Fix to allow invocation by `python unnaturalcode/http`
Fix to allow invocation by `python unnaturalcode/http`
Python
agpl-3.0
orezpraw/unnaturalcode,orezpraw/unnaturalcode,orezpraw/unnaturalcode,orezpraw/unnaturalcode,naturalness/unnaturalcode,orezpraw/unnaturalcode,naturalness/unnaturalcode,naturalness/unnaturalcode,orezpraw/unnaturalcode,naturalness/unnaturalcode,naturalness/unnaturalcode,naturalness/unnaturalcode,orezpraw/estimate-charm,na...
#!/usr/bin/env python # Copyright (C) 2014 Eddie Antonio Santos # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published # by the Free Software Foundation, either version 3 of the License, or # (at your option) any later versio...
#!/usr/bin/env python # Copyright (C) 2014 Eddie Antonio Santos # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published # by the Free Software Foundation, either version 3 of the License, or # (at your option) any later versio...
<commit_before>#!/usr/bin/env python # Copyright (C) 2014 Eddie Antonio Santos # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published # by the Free Software Foundation, either version 3 of the License, or # (at your option) a...
#!/usr/bin/env python # Copyright (C) 2014 Eddie Antonio Santos # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published # by the Free Software Foundation, either version 3 of the License, or # (at your option) any later versio...
#!/usr/bin/env python # Copyright (C) 2014 Eddie Antonio Santos # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published # by the Free Software Foundation, either version 3 of the License, or # (at your option) any later versio...
<commit_before>#!/usr/bin/env python # Copyright (C) 2014 Eddie Antonio Santos # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published # by the Free Software Foundation, either version 3 of the License, or # (at your option) a...
6bdad4defc78f984a293fe9e6e60eb33cb1aa541
espei/citing.py
espei/citing.py
""" Define citations for ESPEI """ ESPEI_CITATION = "B. Bocklund, R. Otis, A. Egorov, A. Obaied, I. Roslyakova, Z.-K. Liu, ESPEI for efficient thermodynamic database development, modification, and uncertainty quantification: application to Cu-Mg, MRS Commun. (2019) 1–10. doi:10.1557/mrc.2019.59." ESPEI_BIBTEX = """@ar...
""" Define citations for ESPEI """ ESPEI_CITATION = "B. Bocklund, R. Otis, A. Egorov, A. Obaied, I. Roslyakova, Z.-K. Liu, ESPEI for efficient thermodynamic database development, modification, and uncertainty quantification: application to Cu-Mg, MRS Commun. (2019) 1-10. doi:10.1557/mrc.2019.59." ESPEI_BIBTEX = """@ar...
Fix unicode in citation (again)
DOC: Fix unicode in citation (again)
Python
mit
PhasesResearchLab/ESPEI
""" Define citations for ESPEI """ ESPEI_CITATION = "B. Bocklund, R. Otis, A. Egorov, A. Obaied, I. Roslyakova, Z.-K. Liu, ESPEI for efficient thermodynamic database development, modification, and uncertainty quantification: application to Cu-Mg, MRS Commun. (2019) 1–10. doi:10.1557/mrc.2019.59." ESPEI_BIBTEX = """@ar...
""" Define citations for ESPEI """ ESPEI_CITATION = "B. Bocklund, R. Otis, A. Egorov, A. Obaied, I. Roslyakova, Z.-K. Liu, ESPEI for efficient thermodynamic database development, modification, and uncertainty quantification: application to Cu-Mg, MRS Commun. (2019) 1-10. doi:10.1557/mrc.2019.59." ESPEI_BIBTEX = """@ar...
<commit_before>""" Define citations for ESPEI """ ESPEI_CITATION = "B. Bocklund, R. Otis, A. Egorov, A. Obaied, I. Roslyakova, Z.-K. Liu, ESPEI for efficient thermodynamic database development, modification, and uncertainty quantification: application to Cu-Mg, MRS Commun. (2019) 1–10. doi:10.1557/mrc.2019.59." ESPEI_...
""" Define citations for ESPEI """ ESPEI_CITATION = "B. Bocklund, R. Otis, A. Egorov, A. Obaied, I. Roslyakova, Z.-K. Liu, ESPEI for efficient thermodynamic database development, modification, and uncertainty quantification: application to Cu-Mg, MRS Commun. (2019) 1-10. doi:10.1557/mrc.2019.59." ESPEI_BIBTEX = """@ar...
""" Define citations for ESPEI """ ESPEI_CITATION = "B. Bocklund, R. Otis, A. Egorov, A. Obaied, I. Roslyakova, Z.-K. Liu, ESPEI for efficient thermodynamic database development, modification, and uncertainty quantification: application to Cu-Mg, MRS Commun. (2019) 1–10. doi:10.1557/mrc.2019.59." ESPEI_BIBTEX = """@ar...
<commit_before>""" Define citations for ESPEI """ ESPEI_CITATION = "B. Bocklund, R. Otis, A. Egorov, A. Obaied, I. Roslyakova, Z.-K. Liu, ESPEI for efficient thermodynamic database development, modification, and uncertainty quantification: application to Cu-Mg, MRS Commun. (2019) 1–10. doi:10.1557/mrc.2019.59." ESPEI_...
36e37a5409ef7fce9286f5fa9c24a185592df59a
health_check/contrib/celery/backends.py
health_check/contrib/celery/backends.py
from django.conf import settings from health_check.backends import BaseHealthCheckBackend from health_check.exceptions import ( ServiceReturnedUnexpectedResult, ServiceUnavailable ) from .tasks import add class CeleryHealthCheck(BaseHealthCheckBackend): def check_status(self): timeout = getattr(sett...
from django.conf import settings from health_check.backends import BaseHealthCheckBackend from health_check.exceptions import ( ServiceReturnedUnexpectedResult, ServiceUnavailable ) from .tasks import add class CeleryHealthCheck(BaseHealthCheckBackend): def check_status(self): timeout = getattr(sett...
Revert "Clean results task Health Check"
Revert "Clean results task Health Check" This reverts commit 4d4148ea831d425327a3047ebb9be8c3129eaff6. Close #269
Python
mit
KristianOellegaard/django-health-check,KristianOellegaard/django-health-check
from django.conf import settings from health_check.backends import BaseHealthCheckBackend from health_check.exceptions import ( ServiceReturnedUnexpectedResult, ServiceUnavailable ) from .tasks import add class CeleryHealthCheck(BaseHealthCheckBackend): def check_status(self): timeout = getattr(sett...
from django.conf import settings from health_check.backends import BaseHealthCheckBackend from health_check.exceptions import ( ServiceReturnedUnexpectedResult, ServiceUnavailable ) from .tasks import add class CeleryHealthCheck(BaseHealthCheckBackend): def check_status(self): timeout = getattr(sett...
<commit_before>from django.conf import settings from health_check.backends import BaseHealthCheckBackend from health_check.exceptions import ( ServiceReturnedUnexpectedResult, ServiceUnavailable ) from .tasks import add class CeleryHealthCheck(BaseHealthCheckBackend): def check_status(self): timeout...
from django.conf import settings from health_check.backends import BaseHealthCheckBackend from health_check.exceptions import ( ServiceReturnedUnexpectedResult, ServiceUnavailable ) from .tasks import add class CeleryHealthCheck(BaseHealthCheckBackend): def check_status(self): timeout = getattr(sett...
from django.conf import settings from health_check.backends import BaseHealthCheckBackend from health_check.exceptions import ( ServiceReturnedUnexpectedResult, ServiceUnavailable ) from .tasks import add class CeleryHealthCheck(BaseHealthCheckBackend): def check_status(self): timeout = getattr(sett...
<commit_before>from django.conf import settings from health_check.backends import BaseHealthCheckBackend from health_check.exceptions import ( ServiceReturnedUnexpectedResult, ServiceUnavailable ) from .tasks import add class CeleryHealthCheck(BaseHealthCheckBackend): def check_status(self): timeout...
7229e9f43a94ab9336ef1dc2fe27a14fc6662a8b
knights/base.py
knights/base.py
import ast from . import parse class Template: def __init__(self, raw): self.raw = raw self.parser = parse.Parser(raw) self.nodelist = self.parser() code = ast.Expression( body=ast.GeneratorExp( elt=ast.Call( func=ast.Name(id='str'...
import ast from . import parse class Template: def __init__(self, raw): self.raw = raw self.parser = parse.Parser(raw) self.nodelist = self.parser() code = ast.Expression( body=ast.GeneratorExp( elt=ast.Call( func=ast.Name(id='str'...
Add tags and filters into the context
Add tags and filters into the context
Python
mit
funkybob/knights-templater,funkybob/knights-templater
import ast from . import parse class Template: def __init__(self, raw): self.raw = raw self.parser = parse.Parser(raw) self.nodelist = self.parser() code = ast.Expression( body=ast.GeneratorExp( elt=ast.Call( func=ast.Name(id='str'...
import ast from . import parse class Template: def __init__(self, raw): self.raw = raw self.parser = parse.Parser(raw) self.nodelist = self.parser() code = ast.Expression( body=ast.GeneratorExp( elt=ast.Call( func=ast.Name(id='str'...
<commit_before> import ast from . import parse class Template: def __init__(self, raw): self.raw = raw self.parser = parse.Parser(raw) self.nodelist = self.parser() code = ast.Expression( body=ast.GeneratorExp( elt=ast.Call( func=as...
import ast from . import parse class Template: def __init__(self, raw): self.raw = raw self.parser = parse.Parser(raw) self.nodelist = self.parser() code = ast.Expression( body=ast.GeneratorExp( elt=ast.Call( func=ast.Name(id='str'...
import ast from . import parse class Template: def __init__(self, raw): self.raw = raw self.parser = parse.Parser(raw) self.nodelist = self.parser() code = ast.Expression( body=ast.GeneratorExp( elt=ast.Call( func=ast.Name(id='str'...
<commit_before> import ast from . import parse class Template: def __init__(self, raw): self.raw = raw self.parser = parse.Parser(raw) self.nodelist = self.parser() code = ast.Expression( body=ast.GeneratorExp( elt=ast.Call( func=as...
812d3cdace821a77fdcb2e0441ba5fa2650bf5fd
pybo/bayesopt/utils.py
pybo/bayesopt/utils.py
""" Simple utilities for creating Bayesian optimization components. """ # future imports from __future__ import division from __future__ import absolute_import from __future__ import print_function # exported symbols __all__ = ['params'] def params(*args): """ Decorator for annotating a BO component with th...
""" Simple utilities for creating Bayesian optimization components. """ # future imports from __future__ import division from __future__ import absolute_import from __future__ import print_function # global imports import inspect # exported symbols __all__ = ['params'] def params(*args): """ Decorator for ...
Update params decorator with basic error checking.
Update params decorator with basic error checking.
Python
bsd-2-clause
mwhoffman/pybo,jhartford/pybo
""" Simple utilities for creating Bayesian optimization components. """ # future imports from __future__ import division from __future__ import absolute_import from __future__ import print_function # exported symbols __all__ = ['params'] def params(*args): """ Decorator for annotating a BO component with th...
""" Simple utilities for creating Bayesian optimization components. """ # future imports from __future__ import division from __future__ import absolute_import from __future__ import print_function # global imports import inspect # exported symbols __all__ = ['params'] def params(*args): """ Decorator for ...
<commit_before>""" Simple utilities for creating Bayesian optimization components. """ # future imports from __future__ import division from __future__ import absolute_import from __future__ import print_function # exported symbols __all__ = ['params'] def params(*args): """ Decorator for annotating a BO co...
""" Simple utilities for creating Bayesian optimization components. """ # future imports from __future__ import division from __future__ import absolute_import from __future__ import print_function # global imports import inspect # exported symbols __all__ = ['params'] def params(*args): """ Decorator for ...
""" Simple utilities for creating Bayesian optimization components. """ # future imports from __future__ import division from __future__ import absolute_import from __future__ import print_function # exported symbols __all__ = ['params'] def params(*args): """ Decorator for annotating a BO component with th...
<commit_before>""" Simple utilities for creating Bayesian optimization components. """ # future imports from __future__ import division from __future__ import absolute_import from __future__ import print_function # exported symbols __all__ = ['params'] def params(*args): """ Decorator for annotating a BO co...
03201b992adfada04e4104611ee27b125c157eeb
apps/local_apps/account/context_processors.py
apps/local_apps/account/context_processors.py
from account.models import Account, AnonymousAccount def openid(request): return {'openid': request.openid} def account(request): if request.user.is_authenticated(): try: account = Account._default_manager.get(user=request.user) except (Account.DoesNotExist, Account.MultipleObject...
from account.models import Account, AnonymousAccount def openid(request): return {'openid': request.openid} def account(request): if request.user.is_authenticated(): try: account = Account._default_manager.get(user=request.user) except Account.DoesNotExist: account = A...
Throw 500 error on multiple accounts in account context processor
Throw 500 error on multiple accounts in account context processor git-svn-id: 51ba99f60490c2ee9ba726ccda75a38950f5105d@1121 45601e1e-1555-4799-bd40-45c8c71eef50
Python
mit
amarandon/pinax,alex/pinax,amarandon/pinax,amarandon/pinax,amarandon/pinax,alex/pinax,alex/pinax
from account.models import Account, AnonymousAccount def openid(request): return {'openid': request.openid} def account(request): if request.user.is_authenticated(): try: account = Account._default_manager.get(user=request.user) except (Account.DoesNotExist, Account.MultipleObject...
from account.models import Account, AnonymousAccount def openid(request): return {'openid': request.openid} def account(request): if request.user.is_authenticated(): try: account = Account._default_manager.get(user=request.user) except Account.DoesNotExist: account = A...
<commit_before> from account.models import Account, AnonymousAccount def openid(request): return {'openid': request.openid} def account(request): if request.user.is_authenticated(): try: account = Account._default_manager.get(user=request.user) except (Account.DoesNotExist, Account...
from account.models import Account, AnonymousAccount def openid(request): return {'openid': request.openid} def account(request): if request.user.is_authenticated(): try: account = Account._default_manager.get(user=request.user) except Account.DoesNotExist: account = A...
from account.models import Account, AnonymousAccount def openid(request): return {'openid': request.openid} def account(request): if request.user.is_authenticated(): try: account = Account._default_manager.get(user=request.user) except (Account.DoesNotExist, Account.MultipleObject...
<commit_before> from account.models import Account, AnonymousAccount def openid(request): return {'openid': request.openid} def account(request): if request.user.is_authenticated(): try: account = Account._default_manager.get(user=request.user) except (Account.DoesNotExist, Account...
1c1d915596f5700a08efb6e5906a4ccfa0ddb932
tests/registryd/test_registry_startup.py
tests/registryd/test_registry_startup.py
# Pytest will pick up this module automatically when running just "pytest". # # Each test_*() function gets passed test fixtures, which are defined # in conftest.py. So, a function "def test_foo(bar)" will get a bar() # fixture created for it. PROPERTIES_IFACE = 'org.freedesktop.DBus.Properties' ACCESSIBLE_IFACE = 'o...
# Pytest will pick up this module automatically when running just "pytest". # # Each test_*() function gets passed test fixtures, which are defined # in conftest.py. So, a function "def test_foo(bar)" will get a bar() # fixture created for it. PROPERTIES_IFACE = 'org.freedesktop.DBus.Properties' ACCESSIBLE_IFACE = 'o...
Test that the registry's root has a null parent
Test that the registry's root has a null parent
Python
lgpl-2.1
GNOME/at-spi2-core,GNOME/at-spi2-core,GNOME/at-spi2-core
# Pytest will pick up this module automatically when running just "pytest". # # Each test_*() function gets passed test fixtures, which are defined # in conftest.py. So, a function "def test_foo(bar)" will get a bar() # fixture created for it. PROPERTIES_IFACE = 'org.freedesktop.DBus.Properties' ACCESSIBLE_IFACE = 'o...
# Pytest will pick up this module automatically when running just "pytest". # # Each test_*() function gets passed test fixtures, which are defined # in conftest.py. So, a function "def test_foo(bar)" will get a bar() # fixture created for it. PROPERTIES_IFACE = 'org.freedesktop.DBus.Properties' ACCESSIBLE_IFACE = 'o...
<commit_before># Pytest will pick up this module automatically when running just "pytest". # # Each test_*() function gets passed test fixtures, which are defined # in conftest.py. So, a function "def test_foo(bar)" will get a bar() # fixture created for it. PROPERTIES_IFACE = 'org.freedesktop.DBus.Properties' ACCESS...
# Pytest will pick up this module automatically when running just "pytest". # # Each test_*() function gets passed test fixtures, which are defined # in conftest.py. So, a function "def test_foo(bar)" will get a bar() # fixture created for it. PROPERTIES_IFACE = 'org.freedesktop.DBus.Properties' ACCESSIBLE_IFACE = 'o...
# Pytest will pick up this module automatically when running just "pytest". # # Each test_*() function gets passed test fixtures, which are defined # in conftest.py. So, a function "def test_foo(bar)" will get a bar() # fixture created for it. PROPERTIES_IFACE = 'org.freedesktop.DBus.Properties' ACCESSIBLE_IFACE = 'o...
<commit_before># Pytest will pick up this module automatically when running just "pytest". # # Each test_*() function gets passed test fixtures, which are defined # in conftest.py. So, a function "def test_foo(bar)" will get a bar() # fixture created for it. PROPERTIES_IFACE = 'org.freedesktop.DBus.Properties' ACCESS...
ea2d16c78eff88ba4a32a89793a7cd644e20cdb3
tools/perf/benchmarks/draw_properties.py
tools/perf/benchmarks/draw_properties.py
# Copyright 2015 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 core import perf_benchmark from measurements import draw_properties from telemetry import benchmark import page_sets # This benchmark depends on trac...
# Copyright 2015 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 core import perf_benchmark from measurements import draw_properties from telemetry import benchmark import page_sets # This benchmark depends on trac...
Disable the "draw properties" benchmark
Disable the "draw properties" benchmark We'd still like to be able to run this benchmark manually, but we don't need it to be run automatically. BUG=None CQ_EXTRA_TRYBOTS=tryserver.chromium.perf:linux_perf_bisect;tryserver.chromium.perf:mac_perf_bisect;tryserver.chromium.perf:win_perf_bisect;tryserver.chromium.perf:a...
Python
bsd-3-clause
Chilledheart/chromium,TheTypoMaster/chromium-crosswalk,Just-D/chromium-1,Chilledheart/chromium,TheTypoMaster/chromium-crosswalk,Just-D/chromium-1,Just-D/chromium-1,chuan9/chromium-crosswalk,axinging/chromium-crosswalk,Just-D/chromium-1,axinging/chromium-crosswalk,TheTypoMaster/chromium-crosswalk,axinging/chromium-cross...
# Copyright 2015 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 core import perf_benchmark from measurements import draw_properties from telemetry import benchmark import page_sets # This benchmark depends on trac...
# Copyright 2015 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 core import perf_benchmark from measurements import draw_properties from telemetry import benchmark import page_sets # This benchmark depends on trac...
<commit_before># Copyright 2015 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 core import perf_benchmark from measurements import draw_properties from telemetry import benchmark import page_sets # This benchmark ...
# Copyright 2015 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 core import perf_benchmark from measurements import draw_properties from telemetry import benchmark import page_sets # This benchmark depends on trac...
# Copyright 2015 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 core import perf_benchmark from measurements import draw_properties from telemetry import benchmark import page_sets # This benchmark depends on trac...
<commit_before># Copyright 2015 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 core import perf_benchmark from measurements import draw_properties from telemetry import benchmark import page_sets # This benchmark ...
e8d7a81f74566775aa243a2441939f778b5c266d
frigg/builds/serializers.py
frigg/builds/serializers.py
from rest_framework import serializers from .models import Build, BuildResult, Project class ProjectSerializer(serializers.ModelSerializer): class Meta: model = Project fields = ( 'id', 'owner', 'name', 'private', 'approved', ...
from rest_framework import serializers from .models import Build, BuildResult, Project class BuildResultSerializer(serializers.ModelSerializer): class Meta: model = BuildResult fields = ( 'id', 'coverage', 'succeeded', 'tasks', ) class Bu...
Add builds to project api
Add builds to project api
Python
mit
frigg/frigg-hq,frigg/frigg-hq,frigg/frigg-hq
from rest_framework import serializers from .models import Build, BuildResult, Project class ProjectSerializer(serializers.ModelSerializer): class Meta: model = Project fields = ( 'id', 'owner', 'name', 'private', 'approved', ...
from rest_framework import serializers from .models import Build, BuildResult, Project class BuildResultSerializer(serializers.ModelSerializer): class Meta: model = BuildResult fields = ( 'id', 'coverage', 'succeeded', 'tasks', ) class Bu...
<commit_before>from rest_framework import serializers from .models import Build, BuildResult, Project class ProjectSerializer(serializers.ModelSerializer): class Meta: model = Project fields = ( 'id', 'owner', 'name', 'private', 'approv...
from rest_framework import serializers from .models import Build, BuildResult, Project class BuildResultSerializer(serializers.ModelSerializer): class Meta: model = BuildResult fields = ( 'id', 'coverage', 'succeeded', 'tasks', ) class Bu...
from rest_framework import serializers from .models import Build, BuildResult, Project class ProjectSerializer(serializers.ModelSerializer): class Meta: model = Project fields = ( 'id', 'owner', 'name', 'private', 'approved', ...
<commit_before>from rest_framework import serializers from .models import Build, BuildResult, Project class ProjectSerializer(serializers.ModelSerializer): class Meta: model = Project fields = ( 'id', 'owner', 'name', 'private', 'approv...
8200beb4aa68a3e88a95394d2b8146ce264e1055
flask_authorization_panda/tests/test_basic_auth.py
flask_authorization_panda/tests/test_basic_auth.py
import json from base64 import b64encode import pytest from flask import Flask from flask_authorization_panda import basic_auth @pytest.fixture def flask_app(): app = Flask(__name__) app.config['TESTING'] = True @app.route('/') @basic_auth def hello_world(): return 'Hello World!' r...
from base64 import b64encode import pytest from flask import Flask, jsonify from flask_authorization_panda import basic_auth @pytest.fixture def flask_app(): app = Flask(__name__) app.config['TESTING'] = True @app.route('/') @basic_auth def hello_world(): return jsonify({"statusCode": 2...
Add unit test for successful completion.
Add unit test for successful completion.
Python
mit
eikonomega/flask-authorization-panda
import json from base64 import b64encode import pytest from flask import Flask from flask_authorization_panda import basic_auth @pytest.fixture def flask_app(): app = Flask(__name__) app.config['TESTING'] = True @app.route('/') @basic_auth def hello_world(): return 'Hello World!' r...
from base64 import b64encode import pytest from flask import Flask, jsonify from flask_authorization_panda import basic_auth @pytest.fixture def flask_app(): app = Flask(__name__) app.config['TESTING'] = True @app.route('/') @basic_auth def hello_world(): return jsonify({"statusCode": 2...
<commit_before>import json from base64 import b64encode import pytest from flask import Flask from flask_authorization_panda import basic_auth @pytest.fixture def flask_app(): app = Flask(__name__) app.config['TESTING'] = True @app.route('/') @basic_auth def hello_world(): return 'Hello...
from base64 import b64encode import pytest from flask import Flask, jsonify from flask_authorization_panda import basic_auth @pytest.fixture def flask_app(): app = Flask(__name__) app.config['TESTING'] = True @app.route('/') @basic_auth def hello_world(): return jsonify({"statusCode": 2...
import json from base64 import b64encode import pytest from flask import Flask from flask_authorization_panda import basic_auth @pytest.fixture def flask_app(): app = Flask(__name__) app.config['TESTING'] = True @app.route('/') @basic_auth def hello_world(): return 'Hello World!' r...
<commit_before>import json from base64 import b64encode import pytest from flask import Flask from flask_authorization_panda import basic_auth @pytest.fixture def flask_app(): app = Flask(__name__) app.config['TESTING'] = True @app.route('/') @basic_auth def hello_world(): return 'Hello...
aa7f1acbfa6f0f776623a4b3b387b7c38282d1de
genes/docker/main.py
genes/docker/main.py
from genes import apt import platform class Config: OS = platform.system() (DIST, _, CODE) = platform.linux_distribution() REPO = DIST.lower() + '-' + CODE def main(): if Config.OS == 'Linux': if Config.DIST == 'Ubuntu' or Config.DIST == 'Debian': apt.recv_key('58118E89F3A912897C07...
from genes import apt import platform class Config: OS = platform.system() (DIST, _, CODE) = platform.linux_distribution() REPO = DIST.lower() + '-' + CODE def main(): if Config.OS == 'Linux': if Config.DIST == 'Ubuntu' or Config.DIST == 'Debian': apt.recv_key('58118E89F3A912897C07...
Change assignment to boolean equals
Change assignment to boolean equals
Python
mit
hatchery/genepool,hatchery/Genepool2
from genes import apt import platform class Config: OS = platform.system() (DIST, _, CODE) = platform.linux_distribution() REPO = DIST.lower() + '-' + CODE def main(): if Config.OS == 'Linux': if Config.DIST == 'Ubuntu' or Config.DIST == 'Debian': apt.recv_key('58118E89F3A912897C07...
from genes import apt import platform class Config: OS = platform.system() (DIST, _, CODE) = platform.linux_distribution() REPO = DIST.lower() + '-' + CODE def main(): if Config.OS == 'Linux': if Config.DIST == 'Ubuntu' or Config.DIST == 'Debian': apt.recv_key('58118E89F3A912897C07...
<commit_before>from genes import apt import platform class Config: OS = platform.system() (DIST, _, CODE) = platform.linux_distribution() REPO = DIST.lower() + '-' + CODE def main(): if Config.OS == 'Linux': if Config.DIST == 'Ubuntu' or Config.DIST == 'Debian': apt.recv_key('58118...
from genes import apt import platform class Config: OS = platform.system() (DIST, _, CODE) = platform.linux_distribution() REPO = DIST.lower() + '-' + CODE def main(): if Config.OS == 'Linux': if Config.DIST == 'Ubuntu' or Config.DIST == 'Debian': apt.recv_key('58118E89F3A912897C07...
from genes import apt import platform class Config: OS = platform.system() (DIST, _, CODE) = platform.linux_distribution() REPO = DIST.lower() + '-' + CODE def main(): if Config.OS == 'Linux': if Config.DIST == 'Ubuntu' or Config.DIST == 'Debian': apt.recv_key('58118E89F3A912897C07...
<commit_before>from genes import apt import platform class Config: OS = platform.system() (DIST, _, CODE) = platform.linux_distribution() REPO = DIST.lower() + '-' + CODE def main(): if Config.OS == 'Linux': if Config.DIST == 'Ubuntu' or Config.DIST == 'Debian': apt.recv_key('58118...
f360b8ada2783636c1c77f47fa9b982581a3c944
lib/arguments.py
lib/arguments.py
from os import path from actions import VersionAction from argparse import ArgumentParser from functions import parse_extra_vars parser = ArgumentParser( prog='cikit', add_help=False, ) parser.add_argument( 'playbook', nargs='?', default='', help='The name of a playbook to run.', ) parser.add...
from os import path from actions import VersionAction from argparse import ArgumentParser from functions import parse_extra_vars parser = ArgumentParser( prog='cikit', add_help=False, ) parser.add_argument( 'playbook', nargs='?', default='', help='The name of a playbook to run.', ) options = ...
Add "-h" and "-v" to mutually exclusive group
[CIKit] Add "-h" and "-v" to mutually exclusive group
Python
apache-2.0
BR0kEN-/cikit,BR0kEN-/cikit,BR0kEN-/cikit,BR0kEN-/cikit,BR0kEN-/cikit
from os import path from actions import VersionAction from argparse import ArgumentParser from functions import parse_extra_vars parser = ArgumentParser( prog='cikit', add_help=False, ) parser.add_argument( 'playbook', nargs='?', default='', help='The name of a playbook to run.', ) parser.add...
from os import path from actions import VersionAction from argparse import ArgumentParser from functions import parse_extra_vars parser = ArgumentParser( prog='cikit', add_help=False, ) parser.add_argument( 'playbook', nargs='?', default='', help='The name of a playbook to run.', ) options = ...
<commit_before>from os import path from actions import VersionAction from argparse import ArgumentParser from functions import parse_extra_vars parser = ArgumentParser( prog='cikit', add_help=False, ) parser.add_argument( 'playbook', nargs='?', default='', help='The name of a playbook to run.'...
from os import path from actions import VersionAction from argparse import ArgumentParser from functions import parse_extra_vars parser = ArgumentParser( prog='cikit', add_help=False, ) parser.add_argument( 'playbook', nargs='?', default='', help='The name of a playbook to run.', ) options = ...
from os import path from actions import VersionAction from argparse import ArgumentParser from functions import parse_extra_vars parser = ArgumentParser( prog='cikit', add_help=False, ) parser.add_argument( 'playbook', nargs='?', default='', help='The name of a playbook to run.', ) parser.add...
<commit_before>from os import path from actions import VersionAction from argparse import ArgumentParser from functions import parse_extra_vars parser = ArgumentParser( prog='cikit', add_help=False, ) parser.add_argument( 'playbook', nargs='?', default='', help='The name of a playbook to run.'...
e8942651a43c7af1375b42ddd6521b4e65169b95
conanfile.py
conanfile.py
from conans import ConanFile, CMake class Core8(ConanFile): name = "core8" version = "0.1" url = "https://github.com/benvenutti/core8.git" settings = "os", "compiler", "build_type", "arch" license = "MIT" exports_sources = "*" def build(self): cmake = CMake(self.settings) s...
from conans import ConanFile, CMake class Core8(ConanFile): name = "core8" version = "0.1" url = "https://github.com/benvenutti/core8.git" description = """A Chip-8 VM implemented in C++""" settings = "os", "compiler", "build_type", "arch" license = "MIT" exports_sources = "*" def buil...
Add description and test build stage
Add description and test build stage
Python
mit
benvenutti/core8,benvenutti/core8
from conans import ConanFile, CMake class Core8(ConanFile): name = "core8" version = "0.1" url = "https://github.com/benvenutti/core8.git" settings = "os", "compiler", "build_type", "arch" license = "MIT" exports_sources = "*" def build(self): cmake = CMake(self.settings) s...
from conans import ConanFile, CMake class Core8(ConanFile): name = "core8" version = "0.1" url = "https://github.com/benvenutti/core8.git" description = """A Chip-8 VM implemented in C++""" settings = "os", "compiler", "build_type", "arch" license = "MIT" exports_sources = "*" def buil...
<commit_before>from conans import ConanFile, CMake class Core8(ConanFile): name = "core8" version = "0.1" url = "https://github.com/benvenutti/core8.git" settings = "os", "compiler", "build_type", "arch" license = "MIT" exports_sources = "*" def build(self): cmake = CMake(self.sett...
from conans import ConanFile, CMake class Core8(ConanFile): name = "core8" version = "0.1" url = "https://github.com/benvenutti/core8.git" description = """A Chip-8 VM implemented in C++""" settings = "os", "compiler", "build_type", "arch" license = "MIT" exports_sources = "*" def buil...
from conans import ConanFile, CMake class Core8(ConanFile): name = "core8" version = "0.1" url = "https://github.com/benvenutti/core8.git" settings = "os", "compiler", "build_type", "arch" license = "MIT" exports_sources = "*" def build(self): cmake = CMake(self.settings) s...
<commit_before>from conans import ConanFile, CMake class Core8(ConanFile): name = "core8" version = "0.1" url = "https://github.com/benvenutti/core8.git" settings = "os", "compiler", "build_type", "arch" license = "MIT" exports_sources = "*" def build(self): cmake = CMake(self.sett...
2f91ba989260c0723c9b02bd8d48805db637e350
dockci/migrations/0002.py
dockci/migrations/0002.py
""" Migrate config to docker hosts list """ import os import yaml filename = os.path.join('data', 'configs.yaml') with open(filename) as handle: data = yaml.load(handle) host = data.pop('docker_host') data['docker_hosts'] = [host] with open(filename, 'w') as handle: yaml.dump(data, handle, default_flow_styl...
""" Migrate config to docker hosts list """ import os import sys import yaml filename = os.path.join('data', 'configs.yaml') try: with open(filename) as handle: data = yaml.load(handle) except FileNotFoundError: # This is fine; will fail for new installs sys.exit(0) host = data.pop('docker_host')...
Handle no config.yaml in migrations
Handle no config.yaml in migrations
Python
isc
RickyCook/paas-in-a-day-dockci,RickyCook/paas-in-a-day-dockci
""" Migrate config to docker hosts list """ import os import yaml filename = os.path.join('data', 'configs.yaml') with open(filename) as handle: data = yaml.load(handle) host = data.pop('docker_host') data['docker_hosts'] = [host] with open(filename, 'w') as handle: yaml.dump(data, handle, default_flow_styl...
""" Migrate config to docker hosts list """ import os import sys import yaml filename = os.path.join('data', 'configs.yaml') try: with open(filename) as handle: data = yaml.load(handle) except FileNotFoundError: # This is fine; will fail for new installs sys.exit(0) host = data.pop('docker_host')...
<commit_before>""" Migrate config to docker hosts list """ import os import yaml filename = os.path.join('data', 'configs.yaml') with open(filename) as handle: data = yaml.load(handle) host = data.pop('docker_host') data['docker_hosts'] = [host] with open(filename, 'w') as handle: yaml.dump(data, handle, de...
""" Migrate config to docker hosts list """ import os import sys import yaml filename = os.path.join('data', 'configs.yaml') try: with open(filename) as handle: data = yaml.load(handle) except FileNotFoundError: # This is fine; will fail for new installs sys.exit(0) host = data.pop('docker_host')...
""" Migrate config to docker hosts list """ import os import yaml filename = os.path.join('data', 'configs.yaml') with open(filename) as handle: data = yaml.load(handle) host = data.pop('docker_host') data['docker_hosts'] = [host] with open(filename, 'w') as handle: yaml.dump(data, handle, default_flow_styl...
<commit_before>""" Migrate config to docker hosts list """ import os import yaml filename = os.path.join('data', 'configs.yaml') with open(filename) as handle: data = yaml.load(handle) host = data.pop('docker_host') data['docker_hosts'] = [host] with open(filename, 'w') as handle: yaml.dump(data, handle, de...
df9fdb39f78cd001b6f420d7c54c64886b378483
project/wsgi.py
project/wsgi.py
""" WSGI config for project project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/1.8/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault("DJANGO_SETTI...
""" WSGI config for project project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/1.8/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault("DJANGO_SETTI...
Configure WhiteNoise to serve static files
Configure WhiteNoise to serve static files
Python
apache-2.0
SethGreylyn/gwells,rstens/gwells,SethGreylyn/gwells,SethGreylyn/gwells,SethGreylyn/gwells,rstens/gwells,rstens/gwells,bcgov/gwells,rstens/gwells,bcgov/gwells,bcgov/gwells,bcgov/gwells
""" WSGI config for project project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/1.8/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault("DJANGO_SETTI...
""" WSGI config for project project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/1.8/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault("DJANGO_SETTI...
<commit_before>""" WSGI config for project project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/1.8/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefaul...
""" WSGI config for project project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/1.8/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault("DJANGO_SETTI...
""" WSGI config for project project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/1.8/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault("DJANGO_SETTI...
<commit_before>""" WSGI config for project project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/1.8/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefaul...
185950bfada928476f3a1ec4ec8479b9583e13ef
numba/tests/npyufunc/test_parallel_env_variable.py
numba/tests/npyufunc/test_parallel_env_variable.py
from numba.np.ufunc.parallel import get_thread_count from os import environ as env from numba.core import config import unittest class TestParallelEnvVariable(unittest.TestCase): """ Tests environment variables related to the underlying "parallel" functions for npyufuncs. """ _numba_parallel_test...
from numba.np.ufunc.parallel import get_thread_count from os import environ as env from numba.core import config import unittest class TestParallelEnvVariable(unittest.TestCase): """ Tests environment variables related to the underlying "parallel" functions for npyufuncs. """ _numba_parallel_test...
Reset the num threads to the env variable, not the default
Reset the num threads to the env variable, not the default
Python
bsd-2-clause
stuartarchibald/numba,seibert/numba,cpcloud/numba,sklam/numba,seibert/numba,stonebig/numba,numba/numba,sklam/numba,cpcloud/numba,gmarkall/numba,gmarkall/numba,IntelLabs/numba,seibert/numba,seibert/numba,IntelLabs/numba,cpcloud/numba,sklam/numba,gmarkall/numba,cpcloud/numba,IntelLabs/numba,numba/numba,stonebig/numba,sto...
from numba.np.ufunc.parallel import get_thread_count from os import environ as env from numba.core import config import unittest class TestParallelEnvVariable(unittest.TestCase): """ Tests environment variables related to the underlying "parallel" functions for npyufuncs. """ _numba_parallel_test...
from numba.np.ufunc.parallel import get_thread_count from os import environ as env from numba.core import config import unittest class TestParallelEnvVariable(unittest.TestCase): """ Tests environment variables related to the underlying "parallel" functions for npyufuncs. """ _numba_parallel_test...
<commit_before>from numba.np.ufunc.parallel import get_thread_count from os import environ as env from numba.core import config import unittest class TestParallelEnvVariable(unittest.TestCase): """ Tests environment variables related to the underlying "parallel" functions for npyufuncs. """ _numb...
from numba.np.ufunc.parallel import get_thread_count from os import environ as env from numba.core import config import unittest class TestParallelEnvVariable(unittest.TestCase): """ Tests environment variables related to the underlying "parallel" functions for npyufuncs. """ _numba_parallel_test...
from numba.np.ufunc.parallel import get_thread_count from os import environ as env from numba.core import config import unittest class TestParallelEnvVariable(unittest.TestCase): """ Tests environment variables related to the underlying "parallel" functions for npyufuncs. """ _numba_parallel_test...
<commit_before>from numba.np.ufunc.parallel import get_thread_count from os import environ as env from numba.core import config import unittest class TestParallelEnvVariable(unittest.TestCase): """ Tests environment variables related to the underlying "parallel" functions for npyufuncs. """ _numb...
b67b677d4092e5bec445649321b142d31cfc0fb6
linkatos/activities.py
linkatos/activities.py
from . import parser from . import printer from . import firebase as fb from . import reaction as react def is_empty(events): return ((events is None) or (len(events) == 0)) def is_url(url_cache): return url_cache is not None def is_reaction(index): return index is not None def event_consumer(expect...
from . import parser from . import printer from . import firebase as fb from . import reaction as react def is_empty(events): return ((events is None) or (len(events) == 0)) def is_url(url_cache): return url_cache is not None def is_reaction(index): return index is not None def remove_url_from(url_c...
Add function to remove reacted to urls
feat: Add function to remove reacted to urls
Python
mit
iwi/linkatos,iwi/linkatos
from . import parser from . import printer from . import firebase as fb from . import reaction as react def is_empty(events): return ((events is None) or (len(events) == 0)) def is_url(url_cache): return url_cache is not None def is_reaction(index): return index is not None def event_consumer(expect...
from . import parser from . import printer from . import firebase as fb from . import reaction as react def is_empty(events): return ((events is None) or (len(events) == 0)) def is_url(url_cache): return url_cache is not None def is_reaction(index): return index is not None def remove_url_from(url_c...
<commit_before>from . import parser from . import printer from . import firebase as fb from . import reaction as react def is_empty(events): return ((events is None) or (len(events) == 0)) def is_url(url_cache): return url_cache is not None def is_reaction(index): return index is not None def event_...
from . import parser from . import printer from . import firebase as fb from . import reaction as react def is_empty(events): return ((events is None) or (len(events) == 0)) def is_url(url_cache): return url_cache is not None def is_reaction(index): return index is not None def remove_url_from(url_c...
from . import parser from . import printer from . import firebase as fb from . import reaction as react def is_empty(events): return ((events is None) or (len(events) == 0)) def is_url(url_cache): return url_cache is not None def is_reaction(index): return index is not None def event_consumer(expect...
<commit_before>from . import parser from . import printer from . import firebase as fb from . import reaction as react def is_empty(events): return ((events is None) or (len(events) == 0)) def is_url(url_cache): return url_cache is not None def is_reaction(index): return index is not None def event_...
0c803c41fc7a54ddf0b8d1c580c39e7e2c325b8b
container/getPureElkIndex.py
container/getPureElkIndex.py
__author__ = 'terry' import sys from elasticsearch import Elasticsearch import time if __name__ == '__main__': time.sleep(5) # create a connection to the Elasticsearch database client = Elasticsearch(['pureelk-elasticsearch:9200'], retry_on_timeout=True) if client.indices.exists(index='pureelk-globa...
__author__ = 'terry' import sys from elasticsearch import Elasticsearch import time if __name__ == '__main__': time.sleep(5) # create a connection to the Elasticsearch database client = Elasticsearch(['pureelk-elasticsearch:9200'], retry_on_timeout=True) if client.exists(index='.kibana', doc_type='i...
Change the test for pureelk in elasticsearch
Change the test for pureelk in elasticsearch It makes more sense to test for a specific index pattern rather than pureelk-global-arrays index. The reason is if someone never adds an array startup code will try to re-add .kibana data
Python
apache-2.0
pureelk/pureelk,pureelk/pureelk,pureelk/pureelk,pureelk/pureelk
__author__ = 'terry' import sys from elasticsearch import Elasticsearch import time if __name__ == '__main__': time.sleep(5) # create a connection to the Elasticsearch database client = Elasticsearch(['pureelk-elasticsearch:9200'], retry_on_timeout=True) if client.indices.exists(index='pureelk-globa...
__author__ = 'terry' import sys from elasticsearch import Elasticsearch import time if __name__ == '__main__': time.sleep(5) # create a connection to the Elasticsearch database client = Elasticsearch(['pureelk-elasticsearch:9200'], retry_on_timeout=True) if client.exists(index='.kibana', doc_type='i...
<commit_before>__author__ = 'terry' import sys from elasticsearch import Elasticsearch import time if __name__ == '__main__': time.sleep(5) # create a connection to the Elasticsearch database client = Elasticsearch(['pureelk-elasticsearch:9200'], retry_on_timeout=True) if client.indices.exists(index...
__author__ = 'terry' import sys from elasticsearch import Elasticsearch import time if __name__ == '__main__': time.sleep(5) # create a connection to the Elasticsearch database client = Elasticsearch(['pureelk-elasticsearch:9200'], retry_on_timeout=True) if client.exists(index='.kibana', doc_type='i...
__author__ = 'terry' import sys from elasticsearch import Elasticsearch import time if __name__ == '__main__': time.sleep(5) # create a connection to the Elasticsearch database client = Elasticsearch(['pureelk-elasticsearch:9200'], retry_on_timeout=True) if client.indices.exists(index='pureelk-globa...
<commit_before>__author__ = 'terry' import sys from elasticsearch import Elasticsearch import time if __name__ == '__main__': time.sleep(5) # create a connection to the Elasticsearch database client = Elasticsearch(['pureelk-elasticsearch:9200'], retry_on_timeout=True) if client.indices.exists(index...
5ae97ea5eb7e07c9e967741bac5871379b643b39
nova/db/base.py
nova/db/base.py
# Copyright 2010 United States Government as represented by the # Administrator of the National Aeronautics and Space Administration. # All Rights Reserved. # # 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 ...
# Copyright 2010 United States Government as represented by the # Administrator of the National Aeronautics and Space Administration. # All Rights Reserved. # # 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 ...
Add super call to db Base class
Add super call to db Base class Without this call, multiple inheritance involving the db Base class does not work correctly. Change-Id: Iac6b99d34f00babb8b66fede4977bf75f0ed61d4
Python
apache-2.0
joker946/nova,alexandrucoman/vbox-nova-driver,felixma/nova,watonyweng/nova,devendermishrajio/nova,joker946/nova,Juniper/nova,NeCTAR-RC/nova,BeyondTheClouds/nova,redhat-openstack/nova,Yusuke1987/openstack_template,bgxavier/nova,ted-gould/nova,redhat-openstack/nova,phenoxim/nova,tudorvio/nova,jeffrey4l/nova,scripnichenko...
# Copyright 2010 United States Government as represented by the # Administrator of the National Aeronautics and Space Administration. # All Rights Reserved. # # 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 ...
# Copyright 2010 United States Government as represented by the # Administrator of the National Aeronautics and Space Administration. # All Rights Reserved. # # 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 ...
<commit_before># Copyright 2010 United States Government as represented by the # Administrator of the National Aeronautics and Space Administration. # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may...
# Copyright 2010 United States Government as represented by the # Administrator of the National Aeronautics and Space Administration. # All Rights Reserved. # # 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 ...
# Copyright 2010 United States Government as represented by the # Administrator of the National Aeronautics and Space Administration. # All Rights Reserved. # # 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 ...
<commit_before># Copyright 2010 United States Government as represented by the # Administrator of the National Aeronautics and Space Administration. # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may...
ae855bd4ba0da5667e6ba43b59d457e62e4c0d99
tests/util.py
tests/util.py
from robber import BadExpectation from robber.matchers.base import Base expectation_count = 0 fail_count = 0 old_match = Base.match def new_match(self): global expectation_count expectation_count += 1 try: old_match(self) except BadExpectation: global fail_count fail_count +...
from robber import BadExpectation from robber.matchers.base import Base expectation_count = 0 fail_count = 0 old_match = Base.match def new_match(self): global expectation_count expectation_count += 1 try: old_match(self) except BadExpectation: global fail_count fail_count +...
Make must_fail fully compatible with nose
[r] Make must_fail fully compatible with nose Originally, whenever you run a must_fail test alone and directly with nose, you would get this error message: 'ValueError: no such test method in <test reference>: test_decorated'
Python
mit
vesln/robber.py
from robber import BadExpectation from robber.matchers.base import Base expectation_count = 0 fail_count = 0 old_match = Base.match def new_match(self): global expectation_count expectation_count += 1 try: old_match(self) except BadExpectation: global fail_count fail_count +...
from robber import BadExpectation from robber.matchers.base import Base expectation_count = 0 fail_count = 0 old_match = Base.match def new_match(self): global expectation_count expectation_count += 1 try: old_match(self) except BadExpectation: global fail_count fail_count +...
<commit_before>from robber import BadExpectation from robber.matchers.base import Base expectation_count = 0 fail_count = 0 old_match = Base.match def new_match(self): global expectation_count expectation_count += 1 try: old_match(self) except BadExpectation: global fail_count ...
from robber import BadExpectation from robber.matchers.base import Base expectation_count = 0 fail_count = 0 old_match = Base.match def new_match(self): global expectation_count expectation_count += 1 try: old_match(self) except BadExpectation: global fail_count fail_count +...
from robber import BadExpectation from robber.matchers.base import Base expectation_count = 0 fail_count = 0 old_match = Base.match def new_match(self): global expectation_count expectation_count += 1 try: old_match(self) except BadExpectation: global fail_count fail_count +...
<commit_before>from robber import BadExpectation from robber.matchers.base import Base expectation_count = 0 fail_count = 0 old_match = Base.match def new_match(self): global expectation_count expectation_count += 1 try: old_match(self) except BadExpectation: global fail_count ...
f1aabcad9e6f6daae23c158c2fba7b28f0e57416
message_view.py
message_view.py
import sublime import sublime_plugin PANEL_NAME = "SublimeLinter Messages" OUTPUT_PANEL = "output." + PANEL_NAME def plugin_unloaded(): for window in sublime.windows(): window.destroy_output_panel(PANEL_NAME) class SublimeLinterDisplayPanelCommand(sublime_plugin.WindowCommand): def run(self, msg=""...
import sublime import sublime_plugin PANEL_NAME = "SublimeLinter Messages" OUTPUT_PANEL = "output." + PANEL_NAME def plugin_unloaded(): for window in sublime.windows(): window.destroy_output_panel(PANEL_NAME) class SublimeLinterDisplayPanelCommand(sublime_plugin.WindowCommand): def run(self, msg=""...
Fix mypy error by asserting
Fix mypy error by asserting Since we just asked `is_panel_active`, the following `find_output_panel` *must* succeed. So we `assert panel` to tell it mypy.
Python
mit
SublimeLinter/SublimeLinter3,SublimeLinter/SublimeLinter3
import sublime import sublime_plugin PANEL_NAME = "SublimeLinter Messages" OUTPUT_PANEL = "output." + PANEL_NAME def plugin_unloaded(): for window in sublime.windows(): window.destroy_output_panel(PANEL_NAME) class SublimeLinterDisplayPanelCommand(sublime_plugin.WindowCommand): def run(self, msg=""...
import sublime import sublime_plugin PANEL_NAME = "SublimeLinter Messages" OUTPUT_PANEL = "output." + PANEL_NAME def plugin_unloaded(): for window in sublime.windows(): window.destroy_output_panel(PANEL_NAME) class SublimeLinterDisplayPanelCommand(sublime_plugin.WindowCommand): def run(self, msg=""...
<commit_before>import sublime import sublime_plugin PANEL_NAME = "SublimeLinter Messages" OUTPUT_PANEL = "output." + PANEL_NAME def plugin_unloaded(): for window in sublime.windows(): window.destroy_output_panel(PANEL_NAME) class SublimeLinterDisplayPanelCommand(sublime_plugin.WindowCommand): def r...
import sublime import sublime_plugin PANEL_NAME = "SublimeLinter Messages" OUTPUT_PANEL = "output." + PANEL_NAME def plugin_unloaded(): for window in sublime.windows(): window.destroy_output_panel(PANEL_NAME) class SublimeLinterDisplayPanelCommand(sublime_plugin.WindowCommand): def run(self, msg=""...
import sublime import sublime_plugin PANEL_NAME = "SublimeLinter Messages" OUTPUT_PANEL = "output." + PANEL_NAME def plugin_unloaded(): for window in sublime.windows(): window.destroy_output_panel(PANEL_NAME) class SublimeLinterDisplayPanelCommand(sublime_plugin.WindowCommand): def run(self, msg=""...
<commit_before>import sublime import sublime_plugin PANEL_NAME = "SublimeLinter Messages" OUTPUT_PANEL = "output." + PANEL_NAME def plugin_unloaded(): for window in sublime.windows(): window.destroy_output_panel(PANEL_NAME) class SublimeLinterDisplayPanelCommand(sublime_plugin.WindowCommand): def r...
97506f25671c534eb643cf29f100e5f038d3fd64
EiCGraphAlgo/sindice/typeahead.py
EiCGraphAlgo/sindice/typeahead.py
''' Created on 17-sep.-2012 @author: ldevocht ''' import urllib.request import urllib.parse import lxml.objectify import logging logger = logging.getLogger('pathFinder') def dbPediaPrefix(prefix): gateway = 'http://lookup.dbpedia.org/api/search.asmx/PrefixSearch?QueryString={0}'.format(prefix) ...
''' Created on 17-sep.-2012 @author: ldevocht ''' import urllib.request import urllib.parse import lxml.objectify import logging logger = logging.getLogger('pathFinder') def dbPediaPrefix(prefix): gateway = 'http://lookup.dbpedia.org/api/search.asmx/PrefixSearch?QueryString={0}'.format(prefix) ...
Return empty list if nothing found
Return empty list if nothing found
Python
agpl-3.0
mmlab/eice,mmlab/eice,mmlab/eice,mmlab/eice
''' Created on 17-sep.-2012 @author: ldevocht ''' import urllib.request import urllib.parse import lxml.objectify import logging logger = logging.getLogger('pathFinder') def dbPediaPrefix(prefix): gateway = 'http://lookup.dbpedia.org/api/search.asmx/PrefixSearch?QueryString={0}'.format(prefix) ...
''' Created on 17-sep.-2012 @author: ldevocht ''' import urllib.request import urllib.parse import lxml.objectify import logging logger = logging.getLogger('pathFinder') def dbPediaPrefix(prefix): gateway = 'http://lookup.dbpedia.org/api/search.asmx/PrefixSearch?QueryString={0}'.format(prefix) ...
<commit_before>''' Created on 17-sep.-2012 @author: ldevocht ''' import urllib.request import urllib.parse import lxml.objectify import logging logger = logging.getLogger('pathFinder') def dbPediaPrefix(prefix): gateway = 'http://lookup.dbpedia.org/api/search.asmx/PrefixSearch?QueryString={0}'.forma...
''' Created on 17-sep.-2012 @author: ldevocht ''' import urllib.request import urllib.parse import lxml.objectify import logging logger = logging.getLogger('pathFinder') def dbPediaPrefix(prefix): gateway = 'http://lookup.dbpedia.org/api/search.asmx/PrefixSearch?QueryString={0}'.format(prefix) ...
''' Created on 17-sep.-2012 @author: ldevocht ''' import urllib.request import urllib.parse import lxml.objectify import logging logger = logging.getLogger('pathFinder') def dbPediaPrefix(prefix): gateway = 'http://lookup.dbpedia.org/api/search.asmx/PrefixSearch?QueryString={0}'.format(prefix) ...
<commit_before>''' Created on 17-sep.-2012 @author: ldevocht ''' import urllib.request import urllib.parse import lxml.objectify import logging logger = logging.getLogger('pathFinder') def dbPediaPrefix(prefix): gateway = 'http://lookup.dbpedia.org/api/search.asmx/PrefixSearch?QueryString={0}'.forma...
c8a7b9acc6c66a44eeb9ceac91587bb8ad08ad89
pagedown/utils.py
pagedown/utils.py
from django.conf import settings def compatible_staticpath(path): ''' Try to return a path compatible all the way back to Django 1.2. If anyone has a cleaner or better way to do this let me know! ''' try: # >= 1.4 from django.contrib.staticfiles.storage import staticfiles_storage ...
from django.conf import settings def compatible_staticpath(path): ''' Try to return a path compatible all the way back to Django 1.2. If anyone has a cleaner or better way to do this let me know! ''' try: # >= 1.4 from django.templatetags.static import static return static(...
Use `django.templatetags.static`to load the file
Use `django.templatetags.static`to load the file Debugging this issue: https://github.com/timmyomahony/django-pagedown/issues/25
Python
bsd-3-clause
timmyomahony/django-pagedown,timmyomahony/django-pagedown,timmyomahony/django-pagedown
from django.conf import settings def compatible_staticpath(path): ''' Try to return a path compatible all the way back to Django 1.2. If anyone has a cleaner or better way to do this let me know! ''' try: # >= 1.4 from django.contrib.staticfiles.storage import staticfiles_storage ...
from django.conf import settings def compatible_staticpath(path): ''' Try to return a path compatible all the way back to Django 1.2. If anyone has a cleaner or better way to do this let me know! ''' try: # >= 1.4 from django.templatetags.static import static return static(...
<commit_before>from django.conf import settings def compatible_staticpath(path): ''' Try to return a path compatible all the way back to Django 1.2. If anyone has a cleaner or better way to do this let me know! ''' try: # >= 1.4 from django.contrib.staticfiles.storage import static...
from django.conf import settings def compatible_staticpath(path): ''' Try to return a path compatible all the way back to Django 1.2. If anyone has a cleaner or better way to do this let me know! ''' try: # >= 1.4 from django.templatetags.static import static return static(...
from django.conf import settings def compatible_staticpath(path): ''' Try to return a path compatible all the way back to Django 1.2. If anyone has a cleaner or better way to do this let me know! ''' try: # >= 1.4 from django.contrib.staticfiles.storage import staticfiles_storage ...
<commit_before>from django.conf import settings def compatible_staticpath(path): ''' Try to return a path compatible all the way back to Django 1.2. If anyone has a cleaner or better way to do this let me know! ''' try: # >= 1.4 from django.contrib.staticfiles.storage import static...
6dfc0d6cec2d0bd9d873f4e0854cee46414c37ec
marked_tests.py
marked_tests.py
import unittest class MarkedTests(unittest.TestCase): pass if __name__ == '__main__': unittest.main()
import unittest import marked class MarkedTests(unittest.TestCase): pass if __name__ == '__main__': unittest.main()
Add import for marked to tests
Add import for marked to tests
Python
bsd-3-clause
1stvamp/marked
import unittest class MarkedTests(unittest.TestCase): pass if __name__ == '__main__': unittest.main() Add import for marked to tests
import unittest import marked class MarkedTests(unittest.TestCase): pass if __name__ == '__main__': unittest.main()
<commit_before>import unittest class MarkedTests(unittest.TestCase): pass if __name__ == '__main__': unittest.main() <commit_msg>Add import for marked to tests<commit_after>
import unittest import marked class MarkedTests(unittest.TestCase): pass if __name__ == '__main__': unittest.main()
import unittest class MarkedTests(unittest.TestCase): pass if __name__ == '__main__': unittest.main() Add import for marked to testsimport unittest import marked class MarkedTests(unittest.TestCase): pass if __name__ == '__main__': unittest.main()
<commit_before>import unittest class MarkedTests(unittest.TestCase): pass if __name__ == '__main__': unittest.main() <commit_msg>Add import for marked to tests<commit_after>import unittest import marked class MarkedTests(unittest.TestCase): pass if __name__ == '__main__': unittest.main()
3d06be213f7dc2c98cf77ddd497a603af2671e53
nbt/__init__.py
nbt/__init__.py
__all__ = ["chunk", "region", "world", "nbt"] from . import * VERSION = (1, 3) def _get_version(): return ".".join(VERSION)
__all__ = ["nbt", "world", "region", "chunk"] from . import * VERSION = (1, 3) def _get_version(): """Return the NBT version as string.""" return ".".join([str(v) for v in VERSION])
Fix nbt._get_version() Function did not work (it tried to join integers as a string) Also re-order __all__ for documentation purposes
Fix nbt._get_version() Function did not work (it tried to join integers as a string) Also re-order __all__ for documentation purposes
Python
mit
twoolie/NBT,cburschka/NBT,macfreek/NBT,devmario/NBT,fwaggle/NBT
__all__ = ["chunk", "region", "world", "nbt"] from . import * VERSION = (1, 3) def _get_version(): return ".".join(VERSION) Fix nbt._get_version() Function did not work (it tried to join integers as a string) Also re-order __all__ for documentation purposes
__all__ = ["nbt", "world", "region", "chunk"] from . import * VERSION = (1, 3) def _get_version(): """Return the NBT version as string.""" return ".".join([str(v) for v in VERSION])
<commit_before>__all__ = ["chunk", "region", "world", "nbt"] from . import * VERSION = (1, 3) def _get_version(): return ".".join(VERSION) <commit_msg>Fix nbt._get_version() Function did not work (it tried to join integers as a string) Also re-order __all__ for documentation purposes<commit_after>
__all__ = ["nbt", "world", "region", "chunk"] from . import * VERSION = (1, 3) def _get_version(): """Return the NBT version as string.""" return ".".join([str(v) for v in VERSION])
__all__ = ["chunk", "region", "world", "nbt"] from . import * VERSION = (1, 3) def _get_version(): return ".".join(VERSION) Fix nbt._get_version() Function did not work (it tried to join integers as a string) Also re-order __all__ for documentation purposes__all__ = ["nbt", "world", "region", "chunk"] from . import ...
<commit_before>__all__ = ["chunk", "region", "world", "nbt"] from . import * VERSION = (1, 3) def _get_version(): return ".".join(VERSION) <commit_msg>Fix nbt._get_version() Function did not work (it tried to join integers as a string) Also re-order __all__ for documentation purposes<commit_after>__all__ = ["nbt", "...
2f2ae3308256d2233e0363cb46ee88067da54b4b
modules/roles.py
modules/roles.py
import discord import shlex rolesTriggerString = '!role' # String to listen for as trigger async def parse_roles_command(message, client): server_roles = message.server.roles # Grab a list of all roles as Role objects server_roles_str = [x.name for x in server_roles] # String-ify it into their names msg =...
import discord import shlex rolesTriggerString = '!role' # String to listen for as trigger async def parse_roles_command(message, client): server_roles = message.server.roles # Grab a list of all roles as Role objects server_roles_str = [x.name for x in server_roles] # String-ify it into their names msg =...
Add role removal and logic cleanup
Add role removal and logic cleanup
Python
mit
suclearnub/scubot
import discord import shlex rolesTriggerString = '!role' # String to listen for as trigger async def parse_roles_command(message, client): server_roles = message.server.roles # Grab a list of all roles as Role objects server_roles_str = [x.name for x in server_roles] # String-ify it into their names msg =...
import discord import shlex rolesTriggerString = '!role' # String to listen for as trigger async def parse_roles_command(message, client): server_roles = message.server.roles # Grab a list of all roles as Role objects server_roles_str = [x.name for x in server_roles] # String-ify it into their names msg =...
<commit_before>import discord import shlex rolesTriggerString = '!role' # String to listen for as trigger async def parse_roles_command(message, client): server_roles = message.server.roles # Grab a list of all roles as Role objects server_roles_str = [x.name for x in server_roles] # String-ify it into their ...
import discord import shlex rolesTriggerString = '!role' # String to listen for as trigger async def parse_roles_command(message, client): server_roles = message.server.roles # Grab a list of all roles as Role objects server_roles_str = [x.name for x in server_roles] # String-ify it into their names msg =...
import discord import shlex rolesTriggerString = '!role' # String to listen for as trigger async def parse_roles_command(message, client): server_roles = message.server.roles # Grab a list of all roles as Role objects server_roles_str = [x.name for x in server_roles] # String-ify it into their names msg =...
<commit_before>import discord import shlex rolesTriggerString = '!role' # String to listen for as trigger async def parse_roles_command(message, client): server_roles = message.server.roles # Grab a list of all roles as Role objects server_roles_str = [x.name for x in server_roles] # String-ify it into their ...
0602aad845f0a04cdc535b97b4860469f600d9b0
django_tablib/datasets.py
django_tablib/datasets.py
from __future__ import absolute_import from .base import BaseDataset class SimpleDataset(BaseDataset): def __init__(self, queryset, headers=None): self.queryset = queryset if headers is None: fields = queryset.model._meta.fields self.header_list = [field.name for field in f...
from __future__ import absolute_import from .base import BaseDataset class SimpleDataset(BaseDataset): def __init__(self, queryset, headers=None): self.queryset = queryset if headers is None: fields = queryset.model._meta.fields self.header_list = [field.name for field in f...
Use isinstance to check type
Use isinstance to check type This should also allow to use subtypes like a SortedDict to pass in headers.
Python
mit
joshourisman/django-tablib,joshourisman/django-tablib,ebrelsford/django-tablib,ebrelsford/django-tablib
from __future__ import absolute_import from .base import BaseDataset class SimpleDataset(BaseDataset): def __init__(self, queryset, headers=None): self.queryset = queryset if headers is None: fields = queryset.model._meta.fields self.header_list = [field.name for field in f...
from __future__ import absolute_import from .base import BaseDataset class SimpleDataset(BaseDataset): def __init__(self, queryset, headers=None): self.queryset = queryset if headers is None: fields = queryset.model._meta.fields self.header_list = [field.name for field in f...
<commit_before>from __future__ import absolute_import from .base import BaseDataset class SimpleDataset(BaseDataset): def __init__(self, queryset, headers=None): self.queryset = queryset if headers is None: fields = queryset.model._meta.fields self.header_list = [field.name...
from __future__ import absolute_import from .base import BaseDataset class SimpleDataset(BaseDataset): def __init__(self, queryset, headers=None): self.queryset = queryset if headers is None: fields = queryset.model._meta.fields self.header_list = [field.name for field in f...
from __future__ import absolute_import from .base import BaseDataset class SimpleDataset(BaseDataset): def __init__(self, queryset, headers=None): self.queryset = queryset if headers is None: fields = queryset.model._meta.fields self.header_list = [field.name for field in f...
<commit_before>from __future__ import absolute_import from .base import BaseDataset class SimpleDataset(BaseDataset): def __init__(self, queryset, headers=None): self.queryset = queryset if headers is None: fields = queryset.model._meta.fields self.header_list = [field.name...
bd7cf1f28d20fff3434325f0281d5a5a528983f8
mangopaysdk/entities/card.py
mangopaysdk/entities/card.py
from mangopaysdk.entities.entitybase import EntityBase class Card(EntityBase): """Card entity""" def __init__(self, id = None): # MMYY self.ExpirationDate = None # first 6 and last 4 are real card numbers for example: 497010XXXXXX4414 self.Alias = None # The card ...
from mangopaysdk.entities.entitybase import EntityBase class Card(EntityBase): """Card entity""" def __init__(self, id = None): self.UserId = None # MMYY self.ExpirationDate = None # first 6 and last 4 are real card numbers for example: 497010XXXXXX4414 self.Alias...
Add extra missing items to the entity
Add extra missing items to the entity
Python
mit
chocopoche/mangopay2-python-sdk,Mangopay/mangopay2-python-sdk
from mangopaysdk.entities.entitybase import EntityBase class Card(EntityBase): """Card entity""" def __init__(self, id = None): # MMYY self.ExpirationDate = None # first 6 and last 4 are real card numbers for example: 497010XXXXXX4414 self.Alias = None # The card ...
from mangopaysdk.entities.entitybase import EntityBase class Card(EntityBase): """Card entity""" def __init__(self, id = None): self.UserId = None # MMYY self.ExpirationDate = None # first 6 and last 4 are real card numbers for example: 497010XXXXXX4414 self.Alias...
<commit_before>from mangopaysdk.entities.entitybase import EntityBase class Card(EntityBase): """Card entity""" def __init__(self, id = None): # MMYY self.ExpirationDate = None # first 6 and last 4 are real card numbers for example: 497010XXXXXX4414 self.Alias = None ...
from mangopaysdk.entities.entitybase import EntityBase class Card(EntityBase): """Card entity""" def __init__(self, id = None): self.UserId = None # MMYY self.ExpirationDate = None # first 6 and last 4 are real card numbers for example: 497010XXXXXX4414 self.Alias...
from mangopaysdk.entities.entitybase import EntityBase class Card(EntityBase): """Card entity""" def __init__(self, id = None): # MMYY self.ExpirationDate = None # first 6 and last 4 are real card numbers for example: 497010XXXXXX4414 self.Alias = None # The card ...
<commit_before>from mangopaysdk.entities.entitybase import EntityBase class Card(EntityBase): """Card entity""" def __init__(self, id = None): # MMYY self.ExpirationDate = None # first 6 and last 4 are real card numbers for example: 497010XXXXXX4414 self.Alias = None ...
a8c7067c3e3eb8931c9bdeb7a4a3e445ee6e338d
djasana/tests/test_connect.py
djasana/tests/test_connect.py
import unittest from django.core.exceptions import ImproperlyConfigured from django.test import override_settings from asana.error import NoAuthorizationError from djasana.connect import client_connect class ClientConnectTestCase(unittest.TestCase): @override_settings(ASANA_ACCESS_TOKEN=None, ASANA_CLIENT_ID=No...
import requests import unittest from django.core.exceptions import ImproperlyConfigured from django.test import override_settings from asana.error import NoAuthorizationError from djasana.connect import client_connect class ClientConnectTestCase(unittest.TestCase): @override_settings(ASANA_ACCESS_TOKEN=None, AS...
Fix test for no connection - In the case of no connectivity, test will skip rather than fail
Fix test for no connection - In the case of no connectivity, test will skip rather than fail
Python
mit
sbywater/django-asana
import unittest from django.core.exceptions import ImproperlyConfigured from django.test import override_settings from asana.error import NoAuthorizationError from djasana.connect import client_connect class ClientConnectTestCase(unittest.TestCase): @override_settings(ASANA_ACCESS_TOKEN=None, ASANA_CLIENT_ID=No...
import requests import unittest from django.core.exceptions import ImproperlyConfigured from django.test import override_settings from asana.error import NoAuthorizationError from djasana.connect import client_connect class ClientConnectTestCase(unittest.TestCase): @override_settings(ASANA_ACCESS_TOKEN=None, AS...
<commit_before>import unittest from django.core.exceptions import ImproperlyConfigured from django.test import override_settings from asana.error import NoAuthorizationError from djasana.connect import client_connect class ClientConnectTestCase(unittest.TestCase): @override_settings(ASANA_ACCESS_TOKEN=None, ASA...
import requests import unittest from django.core.exceptions import ImproperlyConfigured from django.test import override_settings from asana.error import NoAuthorizationError from djasana.connect import client_connect class ClientConnectTestCase(unittest.TestCase): @override_settings(ASANA_ACCESS_TOKEN=None, AS...
import unittest from django.core.exceptions import ImproperlyConfigured from django.test import override_settings from asana.error import NoAuthorizationError from djasana.connect import client_connect class ClientConnectTestCase(unittest.TestCase): @override_settings(ASANA_ACCESS_TOKEN=None, ASANA_CLIENT_ID=No...
<commit_before>import unittest from django.core.exceptions import ImproperlyConfigured from django.test import override_settings from asana.error import NoAuthorizationError from djasana.connect import client_connect class ClientConnectTestCase(unittest.TestCase): @override_settings(ASANA_ACCESS_TOKEN=None, ASA...
06a052c7f60fd413f39b8e313e44bfeea970896a
work/admin.py
work/admin.py
# -*- coding: utf-8 -*- from django.contrib import admin from django import forms from django.utils.translation import ugettext_lazy as _ from parler.admin import TranslatableTabularInline from adminsortable.admin import SortableTabularInline from cms.admin.placeholderadmin import PlaceholderAdminMixin from allink_cor...
# -*- coding: utf-8 -*- from django.contrib import admin from django import forms from parler.admin import TranslatableTabularInline from adminsortable.admin import SortableTabularInline from cms.admin.placeholderadmin import PlaceholderAdminMixin from allink_core.allink_base.admin import AllinkBaseAdminSortable from...
TEST allink_apps subtree - pulling
TEST allink_apps subtree - pulling
Python
bsd-3-clause
allink/allink-apps,allink/allink-apps
# -*- coding: utf-8 -*- from django.contrib import admin from django import forms from django.utils.translation import ugettext_lazy as _ from parler.admin import TranslatableTabularInline from adminsortable.admin import SortableTabularInline from cms.admin.placeholderadmin import PlaceholderAdminMixin from allink_cor...
# -*- coding: utf-8 -*- from django.contrib import admin from django import forms from parler.admin import TranslatableTabularInline from adminsortable.admin import SortableTabularInline from cms.admin.placeholderadmin import PlaceholderAdminMixin from allink_core.allink_base.admin import AllinkBaseAdminSortable from...
<commit_before># -*- coding: utf-8 -*- from django.contrib import admin from django import forms from django.utils.translation import ugettext_lazy as _ from parler.admin import TranslatableTabularInline from adminsortable.admin import SortableTabularInline from cms.admin.placeholderadmin import PlaceholderAdminMixin ...
# -*- coding: utf-8 -*- from django.contrib import admin from django import forms from parler.admin import TranslatableTabularInline from adminsortable.admin import SortableTabularInline from cms.admin.placeholderadmin import PlaceholderAdminMixin from allink_core.allink_base.admin import AllinkBaseAdminSortable from...
# -*- coding: utf-8 -*- from django.contrib import admin from django import forms from django.utils.translation import ugettext_lazy as _ from parler.admin import TranslatableTabularInline from adminsortable.admin import SortableTabularInline from cms.admin.placeholderadmin import PlaceholderAdminMixin from allink_cor...
<commit_before># -*- coding: utf-8 -*- from django.contrib import admin from django import forms from django.utils.translation import ugettext_lazy as _ from parler.admin import TranslatableTabularInline from adminsortable.admin import SortableTabularInline from cms.admin.placeholderadmin import PlaceholderAdminMixin ...
c811e0e02d06f8d5fd6a0b738546b0e200c706cd
fairseq/criterions/fairseq_criterion.py
fairseq/criterions/fairseq_criterion.py
# Copyright (c) 2017-present, Facebook, Inc. # All rights reserved. # # This source code is licensed under the license found in the LICENSE file in # the root directory of this source tree. An additional grant of patent rights # can be found in the PATENTS file in the same directory. from torch.nn.modules.loss import ...
# Copyright (c) 2017-present, Facebook, Inc. # All rights reserved. # # This source code is licensed under the license found in the LICENSE file in # the root directory of this source tree. An additional grant of patent rights # can be found in the PATENTS file in the same directory. from torch.nn.modules.loss import ...
Store task in the criterion base class
Store task in the criterion base class Summary: Pull Request resolved: https://github.com/fairinternal/fairseq-py/pull/737 Differential Revision: D16377805 Pulled By: myleott fbshipit-source-id: 1e090a02ff4fbba8695173f57d3cc5b88ae98bbf
Python
mit
pytorch/fairseq,pytorch/fairseq,pytorch/fairseq
# Copyright (c) 2017-present, Facebook, Inc. # All rights reserved. # # This source code is licensed under the license found in the LICENSE file in # the root directory of this source tree. An additional grant of patent rights # can be found in the PATENTS file in the same directory. from torch.nn.modules.loss import ...
# Copyright (c) 2017-present, Facebook, Inc. # All rights reserved. # # This source code is licensed under the license found in the LICENSE file in # the root directory of this source tree. An additional grant of patent rights # can be found in the PATENTS file in the same directory. from torch.nn.modules.loss import ...
<commit_before># Copyright (c) 2017-present, Facebook, Inc. # All rights reserved. # # This source code is licensed under the license found in the LICENSE file in # the root directory of this source tree. An additional grant of patent rights # can be found in the PATENTS file in the same directory. from torch.nn.modul...
# Copyright (c) 2017-present, Facebook, Inc. # All rights reserved. # # This source code is licensed under the license found in the LICENSE file in # the root directory of this source tree. An additional grant of patent rights # can be found in the PATENTS file in the same directory. from torch.nn.modules.loss import ...
# Copyright (c) 2017-present, Facebook, Inc. # All rights reserved. # # This source code is licensed under the license found in the LICENSE file in # the root directory of this source tree. An additional grant of patent rights # can be found in the PATENTS file in the same directory. from torch.nn.modules.loss import ...
<commit_before># Copyright (c) 2017-present, Facebook, Inc. # All rights reserved. # # This source code is licensed under the license found in the LICENSE file in # the root directory of this source tree. An additional grant of patent rights # can be found in the PATENTS file in the same directory. from torch.nn.modul...
0d6706383b6414459cf158b213f4102fa3452b5a
pmxbot/slack.py
pmxbot/slack.py
import time import importlib import pmxbot class Bot(pmxbot.core.Bot): def __init__(self, server, port, nickname, channels, password=None): token = pmxbot.config['slack token'] sc = importlib.import_module('slackclient') self.client = sc.SlackClient(token) def start(self): res = self.client.rtm_connect() ...
import time import importlib from tempora import schedule import pmxbot class Bot(pmxbot.core.Bot): def __init__(self, server, port, nickname, channels, password=None): token = pmxbot.config['slack token'] sc = importlib.import_module('slackclient') self.client = sc.SlackClient(token) self.scheduler = sche...
Implement scheduled task handling in Slack
Implement scheduled task handling in Slack
Python
mit
yougov/pmxbot,yougov/pmxbot,yougov/pmxbot
import time import importlib import pmxbot class Bot(pmxbot.core.Bot): def __init__(self, server, port, nickname, channels, password=None): token = pmxbot.config['slack token'] sc = importlib.import_module('slackclient') self.client = sc.SlackClient(token) def start(self): res = self.client.rtm_connect() ...
import time import importlib from tempora import schedule import pmxbot class Bot(pmxbot.core.Bot): def __init__(self, server, port, nickname, channels, password=None): token = pmxbot.config['slack token'] sc = importlib.import_module('slackclient') self.client = sc.SlackClient(token) self.scheduler = sche...
<commit_before>import time import importlib import pmxbot class Bot(pmxbot.core.Bot): def __init__(self, server, port, nickname, channels, password=None): token = pmxbot.config['slack token'] sc = importlib.import_module('slackclient') self.client = sc.SlackClient(token) def start(self): res = self.client...
import time import importlib from tempora import schedule import pmxbot class Bot(pmxbot.core.Bot): def __init__(self, server, port, nickname, channels, password=None): token = pmxbot.config['slack token'] sc = importlib.import_module('slackclient') self.client = sc.SlackClient(token) self.scheduler = sche...
import time import importlib import pmxbot class Bot(pmxbot.core.Bot): def __init__(self, server, port, nickname, channels, password=None): token = pmxbot.config['slack token'] sc = importlib.import_module('slackclient') self.client = sc.SlackClient(token) def start(self): res = self.client.rtm_connect() ...
<commit_before>import time import importlib import pmxbot class Bot(pmxbot.core.Bot): def __init__(self, server, port, nickname, channels, password=None): token = pmxbot.config['slack token'] sc = importlib.import_module('slackclient') self.client = sc.SlackClient(token) def start(self): res = self.client...
938725a3693ee885a761e5ba07e75d2b94d78661
pytask/profile/urls.py
pytask/profile/urls.py
from django.conf.urls.defaults import patterns from django.conf.urls.defaults import url urlpatterns = patterns('pytask.profile.views', url(r'^view/$', 'view_profile', name='view_profile'), url(r'^edit/$', 'edit_profile', name='edit_profile'), url(r'^notf/browse/$', 'browse_notifications', name='edit_prof...
from django.conf.urls.defaults import patterns from django.conf.urls.defaults import url urlpatterns = patterns('pytask.profile.views', url(r'^view/$', 'view_profile', name='view_profile'), url(r'^edit/$', 'edit_profile', name='edit_profile'), url(r'^notification/browse/$', 'browse_notifications', name='b...
Fix styling issue in URLConf.
Fix styling issue in URLConf.
Python
agpl-3.0
madhusudancs/pytask,madhusudancs/pytask,madhusudancs/pytask
from django.conf.urls.defaults import patterns from django.conf.urls.defaults import url urlpatterns = patterns('pytask.profile.views', url(r'^view/$', 'view_profile', name='view_profile'), url(r'^edit/$', 'edit_profile', name='edit_profile'), url(r'^notf/browse/$', 'browse_notifications', name='edit_prof...
from django.conf.urls.defaults import patterns from django.conf.urls.defaults import url urlpatterns = patterns('pytask.profile.views', url(r'^view/$', 'view_profile', name='view_profile'), url(r'^edit/$', 'edit_profile', name='edit_profile'), url(r'^notification/browse/$', 'browse_notifications', name='b...
<commit_before>from django.conf.urls.defaults import patterns from django.conf.urls.defaults import url urlpatterns = patterns('pytask.profile.views', url(r'^view/$', 'view_profile', name='view_profile'), url(r'^edit/$', 'edit_profile', name='edit_profile'), url(r'^notf/browse/$', 'browse_notifications', ...
from django.conf.urls.defaults import patterns from django.conf.urls.defaults import url urlpatterns = patterns('pytask.profile.views', url(r'^view/$', 'view_profile', name='view_profile'), url(r'^edit/$', 'edit_profile', name='edit_profile'), url(r'^notification/browse/$', 'browse_notifications', name='b...
from django.conf.urls.defaults import patterns from django.conf.urls.defaults import url urlpatterns = patterns('pytask.profile.views', url(r'^view/$', 'view_profile', name='view_profile'), url(r'^edit/$', 'edit_profile', name='edit_profile'), url(r'^notf/browse/$', 'browse_notifications', name='edit_prof...
<commit_before>from django.conf.urls.defaults import patterns from django.conf.urls.defaults import url urlpatterns = patterns('pytask.profile.views', url(r'^view/$', 'view_profile', name='view_profile'), url(r'^edit/$', 'edit_profile', name='edit_profile'), url(r'^notf/browse/$', 'browse_notifications', ...
f415a411f748ce5a8eb142d862970e00d0267004
tests/test_environment.py
tests/test_environment.py
# -*- coding: utf-8 -*- import pytest from cookiecutter.environment import StrictEnvironment from cookiecutter.exceptions import UnknownExtension def test_env_should_raise_for_unknown_extension(): context = { 'cookiecutter': { '_extensions': ['foobar'] } } with pytest.raises...
# -*- coding: utf-8 -*- import pytest from cookiecutter.environment import StrictEnvironment from cookiecutter.exceptions import UnknownExtension def test_env_should_raise_for_unknown_extension(): context = { 'cookiecutter': { '_extensions': ['foobar'] } } with pytest.raises...
Add a simple test to make sure cookiecutter comes with jinja2_time
Add a simple test to make sure cookiecutter comes with jinja2_time
Python
bsd-3-clause
Springerle/cookiecutter,dajose/cookiecutter,luzfcb/cookiecutter,michaeljoseph/cookiecutter,willingc/cookiecutter,luzfcb/cookiecutter,michaeljoseph/cookiecutter,Springerle/cookiecutter,dajose/cookiecutter,pjbull/cookiecutter,audreyr/cookiecutter,audreyr/cookiecutter,willingc/cookiecutter,pjbull/cookiecutter,hackebrot/co...
# -*- coding: utf-8 -*- import pytest from cookiecutter.environment import StrictEnvironment from cookiecutter.exceptions import UnknownExtension def test_env_should_raise_for_unknown_extension(): context = { 'cookiecutter': { '_extensions': ['foobar'] } } with pytest.raises...
# -*- coding: utf-8 -*- import pytest from cookiecutter.environment import StrictEnvironment from cookiecutter.exceptions import UnknownExtension def test_env_should_raise_for_unknown_extension(): context = { 'cookiecutter': { '_extensions': ['foobar'] } } with pytest.raises...
<commit_before># -*- coding: utf-8 -*- import pytest from cookiecutter.environment import StrictEnvironment from cookiecutter.exceptions import UnknownExtension def test_env_should_raise_for_unknown_extension(): context = { 'cookiecutter': { '_extensions': ['foobar'] } } wit...
# -*- coding: utf-8 -*- import pytest from cookiecutter.environment import StrictEnvironment from cookiecutter.exceptions import UnknownExtension def test_env_should_raise_for_unknown_extension(): context = { 'cookiecutter': { '_extensions': ['foobar'] } } with pytest.raises...
# -*- coding: utf-8 -*- import pytest from cookiecutter.environment import StrictEnvironment from cookiecutter.exceptions import UnknownExtension def test_env_should_raise_for_unknown_extension(): context = { 'cookiecutter': { '_extensions': ['foobar'] } } with pytest.raises...
<commit_before># -*- coding: utf-8 -*- import pytest from cookiecutter.environment import StrictEnvironment from cookiecutter.exceptions import UnknownExtension def test_env_should_raise_for_unknown_extension(): context = { 'cookiecutter': { '_extensions': ['foobar'] } } wit...
271ec40107411f6b7f8b6127adb06039228a9390
reports/serializers.py
reports/serializers.py
from django.utils import timezone from rest_framework import serializers from reports.utils import midnight, midnight_validator, one_month_after class ReportGenerationSerializer(serializers.Serializer): output_file = serializers.CharField() start_date = serializers.CharField(allow_blank=True, required=False) ...
from django.utils import timezone from rest_framework import serializers from reports.utils import midnight, midnight_validator, one_month_after class ReportGenerationSerializer(serializers.Serializer): output_file = serializers.CharField() start_date = serializers.CharField(allow_blank=True, required=False) ...
Fix error handing to be python 3 compatible
Fix error handing to be python 3 compatible
Python
bsd-3-clause
praekelt/hellomama-registration,praekelt/hellomama-registration
from django.utils import timezone from rest_framework import serializers from reports.utils import midnight, midnight_validator, one_month_after class ReportGenerationSerializer(serializers.Serializer): output_file = serializers.CharField() start_date = serializers.CharField(allow_blank=True, required=False) ...
from django.utils import timezone from rest_framework import serializers from reports.utils import midnight, midnight_validator, one_month_after class ReportGenerationSerializer(serializers.Serializer): output_file = serializers.CharField() start_date = serializers.CharField(allow_blank=True, required=False) ...
<commit_before>from django.utils import timezone from rest_framework import serializers from reports.utils import midnight, midnight_validator, one_month_after class ReportGenerationSerializer(serializers.Serializer): output_file = serializers.CharField() start_date = serializers.CharField(allow_blank=True, r...
from django.utils import timezone from rest_framework import serializers from reports.utils import midnight, midnight_validator, one_month_after class ReportGenerationSerializer(serializers.Serializer): output_file = serializers.CharField() start_date = serializers.CharField(allow_blank=True, required=False) ...
from django.utils import timezone from rest_framework import serializers from reports.utils import midnight, midnight_validator, one_month_after class ReportGenerationSerializer(serializers.Serializer): output_file = serializers.CharField() start_date = serializers.CharField(allow_blank=True, required=False) ...
<commit_before>from django.utils import timezone from rest_framework import serializers from reports.utils import midnight, midnight_validator, one_month_after class ReportGenerationSerializer(serializers.Serializer): output_file = serializers.CharField() start_date = serializers.CharField(allow_blank=True, r...
54674b79fecf7eec4f09e885e7d68c9b6181efcf
mollie/api/objects/base.py
mollie/api/objects/base.py
class Base(dict): def _get_property(self, name): """Return the named property from dictionary values.""" if not self[name]: return None return self[name]
class Base(dict): def _get_property(self, name): """Return the named property from dictionary values.""" if name not in self: return None return self[name]
Make _get_property to return none when name does not exist
Make _get_property to return none when name does not exist
Python
bsd-2-clause
mollie/mollie-api-python
class Base(dict): def _get_property(self, name): """Return the named property from dictionary values.""" if not self[name]: return None return self[name] Make _get_property to return none when name does not exist
class Base(dict): def _get_property(self, name): """Return the named property from dictionary values.""" if name not in self: return None return self[name]
<commit_before>class Base(dict): def _get_property(self, name): """Return the named property from dictionary values.""" if not self[name]: return None return self[name] <commit_msg>Make _get_property to return none when name does not exist<commit_after>
class Base(dict): def _get_property(self, name): """Return the named property from dictionary values.""" if name not in self: return None return self[name]
class Base(dict): def _get_property(self, name): """Return the named property from dictionary values.""" if not self[name]: return None return self[name] Make _get_property to return none when name does not existclass Base(dict): def _get_property(self, name): """Re...
<commit_before>class Base(dict): def _get_property(self, name): """Return the named property from dictionary values.""" if not self[name]: return None return self[name] <commit_msg>Make _get_property to return none when name does not exist<commit_after>class Base(dict): def...
13c3379717d1ad10a179f26838950090a2b6e4f4
pyxb/__init__.py
pyxb/__init__.py
"""PyWXSB -- Python W3C XML Schema Bindings. binding - Module used to generate the bindings and at runtime to support the generated bindings utils - Common utilities used in parsing, generating, and running xmlschema - Class that convert XMLSchema from a DOM model to a Python class model based on the XMLSchema compo...
"""PyWXSB -- Python W3C XML Schema Bindings. binding - Module used to generate the bindings and at runtime to support the generated bindings utils - Common utilities used in parsing, generating, and running xmlschema - Class that convert XMLSchema from a DOM model to a Python class model based on the XMLSchema compo...
Handle unicode and string creation correctly
Handle unicode and string creation correctly
Python
apache-2.0
jonfoster/pyxb-upstream-mirror,jonfoster/pyxb1,CantemoInternal/pyxb,jonfoster/pyxb-upstream-mirror,pabigot/pyxb,CantemoInternal/pyxb,jonfoster/pyxb2,balanced/PyXB,jonfoster/pyxb2,pabigot/pyxb,jonfoster/pyxb2,jonfoster/pyxb-upstream-mirror,jonfoster/pyxb1,balanced/PyXB,CantemoInternal/pyxb,balanced/PyXB
"""PyWXSB -- Python W3C XML Schema Bindings. binding - Module used to generate the bindings and at runtime to support the generated bindings utils - Common utilities used in parsing, generating, and running xmlschema - Class that convert XMLSchema from a DOM model to a Python class model based on the XMLSchema compo...
"""PyWXSB -- Python W3C XML Schema Bindings. binding - Module used to generate the bindings and at runtime to support the generated bindings utils - Common utilities used in parsing, generating, and running xmlschema - Class that convert XMLSchema from a DOM model to a Python class model based on the XMLSchema compo...
<commit_before>"""PyWXSB -- Python W3C XML Schema Bindings. binding - Module used to generate the bindings and at runtime to support the generated bindings utils - Common utilities used in parsing, generating, and running xmlschema - Class that convert XMLSchema from a DOM model to a Python class model based on the ...
"""PyWXSB -- Python W3C XML Schema Bindings. binding - Module used to generate the bindings and at runtime to support the generated bindings utils - Common utilities used in parsing, generating, and running xmlschema - Class that convert XMLSchema from a DOM model to a Python class model based on the XMLSchema compo...
"""PyWXSB -- Python W3C XML Schema Bindings. binding - Module used to generate the bindings and at runtime to support the generated bindings utils - Common utilities used in parsing, generating, and running xmlschema - Class that convert XMLSchema from a DOM model to a Python class model based on the XMLSchema compo...
<commit_before>"""PyWXSB -- Python W3C XML Schema Bindings. binding - Module used to generate the bindings and at runtime to support the generated bindings utils - Common utilities used in parsing, generating, and running xmlschema - Class that convert XMLSchema from a DOM model to a Python class model based on the ...
f2d02748202571bdb3b993788ea218a1a522488d
python/setup.py
python/setup.py
from distutils.core import setup from distutils.core import Extension from distutils.command.build_ext import build_ext as _build_ext import sys modules = [ Extension('wiringX.gpio', sources=['wiringX/wiringx.c', '../wiringX.c', '../hummingboard.c', '../bananapi.c', '../radxa.c', '../raspberrypi.c'], include_dirs=['...
from distutils.core import setup from distutils.core import Extension from distutils.command.build_ext import build_ext as _build_ext import sys modules = [ Extension('wiringX.gpio', sources=['wiringX/wiringx.c', '../wiringX.c', '../hummingboard.c', '../bananapi.c', '../radxa.c', '../raspberrypi.c', '../ci20.c'], in...
Fix issue with Python bindings caused by introduction of CI20 platform
Fix issue with Python bindings caused by introduction of CI20 platform this adds ci20.c to the compile path for Python bindings, otherwise you get the following: ImportError: /usr/lib/python3.4/site-packages/wiringX/gpio.cpython-34m.so: undefined symbol: ci20Init
Python
mpl-2.0
mwischer/wiringX,mwischer/wiringX,bkrepo/wiringX,wiringX/wiringX,mxOBS/wiringX,mxOBS/wiringX,mwischer/wiringX,mxOBS/wiringX,bkrepo/wiringX,wiringX/wiringX,bkrepo/wiringX,wiringX/wiringX
from distutils.core import setup from distutils.core import Extension from distutils.command.build_ext import build_ext as _build_ext import sys modules = [ Extension('wiringX.gpio', sources=['wiringX/wiringx.c', '../wiringX.c', '../hummingboard.c', '../bananapi.c', '../radxa.c', '../raspberrypi.c'], include_dirs=['...
from distutils.core import setup from distutils.core import Extension from distutils.command.build_ext import build_ext as _build_ext import sys modules = [ Extension('wiringX.gpio', sources=['wiringX/wiringx.c', '../wiringX.c', '../hummingboard.c', '../bananapi.c', '../radxa.c', '../raspberrypi.c', '../ci20.c'], in...
<commit_before>from distutils.core import setup from distutils.core import Extension from distutils.command.build_ext import build_ext as _build_ext import sys modules = [ Extension('wiringX.gpio', sources=['wiringX/wiringx.c', '../wiringX.c', '../hummingboard.c', '../bananapi.c', '../radxa.c', '../raspberrypi.c'], ...
from distutils.core import setup from distutils.core import Extension from distutils.command.build_ext import build_ext as _build_ext import sys modules = [ Extension('wiringX.gpio', sources=['wiringX/wiringx.c', '../wiringX.c', '../hummingboard.c', '../bananapi.c', '../radxa.c', '../raspberrypi.c', '../ci20.c'], in...
from distutils.core import setup from distutils.core import Extension from distutils.command.build_ext import build_ext as _build_ext import sys modules = [ Extension('wiringX.gpio', sources=['wiringX/wiringx.c', '../wiringX.c', '../hummingboard.c', '../bananapi.c', '../radxa.c', '../raspberrypi.c'], include_dirs=['...
<commit_before>from distutils.core import setup from distutils.core import Extension from distutils.command.build_ext import build_ext as _build_ext import sys modules = [ Extension('wiringX.gpio', sources=['wiringX/wiringx.c', '../wiringX.c', '../hummingboard.c', '../bananapi.c', '../radxa.c', '../raspberrypi.c'], ...
2537cdf45650eb2d7d57d5e108a11658b4d64898
saleor/product/urls.py
saleor/product/urls.py
from django.conf.urls import patterns, url from . import views urlpatterns = [ url(r'^(?P<slug>[a-z0-9-]+?)-(?P<product_id>[0-9]+)/$', views.product_details, name='details'), url(r'^category/(?P<slug>[a-z0-9-]+?)/$', views.category_index, name='category') ]
from django.conf.urls import url from . import views urlpatterns = [ url(r'^(?P<slug>[a-z0-9-]+?)-(?P<product_id>[0-9]+)/$', views.product_details, name='details'), url(r'^category/(?P<slug>[\w-]+?)/$', views.category_index, name='category') ]
Fix url pattern for category's slug
Fix url pattern for category's slug
Python
bsd-3-clause
arth-co/saleor,HyperManTT/ECommerceSaleor,HyperManTT/ECommerceSaleor,rchav/vinerack,paweltin/saleor,avorio/saleor,arth-co/saleor,tfroehlich82/saleor,dashmug/saleor,maferelo/saleor,avorio/saleor,laosunhust/saleor,itbabu/saleor,KenMutemi/saleor,car3oon/saleor,Drekscott/Motlaesaleor,maferelo/saleor,taedori81/saleor,Dreksc...
from django.conf.urls import patterns, url from . import views urlpatterns = [ url(r'^(?P<slug>[a-z0-9-]+?)-(?P<product_id>[0-9]+)/$', views.product_details, name='details'), url(r'^category/(?P<slug>[a-z0-9-]+?)/$', views.category_index, name='category') ] Fix url pattern for category's slug
from django.conf.urls import url from . import views urlpatterns = [ url(r'^(?P<slug>[a-z0-9-]+?)-(?P<product_id>[0-9]+)/$', views.product_details, name='details'), url(r'^category/(?P<slug>[\w-]+?)/$', views.category_index, name='category') ]
<commit_before>from django.conf.urls import patterns, url from . import views urlpatterns = [ url(r'^(?P<slug>[a-z0-9-]+?)-(?P<product_id>[0-9]+)/$', views.product_details, name='details'), url(r'^category/(?P<slug>[a-z0-9-]+?)/$', views.category_index, name='category') ] <commit_msg>Fix url ...
from django.conf.urls import url from . import views urlpatterns = [ url(r'^(?P<slug>[a-z0-9-]+?)-(?P<product_id>[0-9]+)/$', views.product_details, name='details'), url(r'^category/(?P<slug>[\w-]+?)/$', views.category_index, name='category') ]
from django.conf.urls import patterns, url from . import views urlpatterns = [ url(r'^(?P<slug>[a-z0-9-]+?)-(?P<product_id>[0-9]+)/$', views.product_details, name='details'), url(r'^category/(?P<slug>[a-z0-9-]+?)/$', views.category_index, name='category') ] Fix url pattern for category's slug...
<commit_before>from django.conf.urls import patterns, url from . import views urlpatterns = [ url(r'^(?P<slug>[a-z0-9-]+?)-(?P<product_id>[0-9]+)/$', views.product_details, name='details'), url(r'^category/(?P<slug>[a-z0-9-]+?)/$', views.category_index, name='category') ] <commit_msg>Fix url ...
28f6be52b429eb999a70ff900f526142fc5f162c
tests/test_exec_mixin.py
tests/test_exec_mixin.py
from gears.asset_handler import AssetHandlerError, ExecMixin from mock import patch, Mock from unittest2 import TestCase class Exec(ExecMixin): executable = 'program' class ExecMixinTests(TestCase): @patch('gears.asset_handler.Popen') def test_returns_stdout_on_success(self, Popen): result = Mo...
from __future__ import with_statement from gears.asset_handler import AssetHandlerError, ExecMixin from mock import patch, Mock from unittest2 import TestCase class Exec(ExecMixin): executable = 'program' class ExecMixinTests(TestCase): @patch('gears.asset_handler.Popen') def test_returns_stdout_on_suc...
Fix Python 2.5 support in tests
Fix Python 2.5 support in tests
Python
isc
gears/gears,gears/gears,gears/gears
from gears.asset_handler import AssetHandlerError, ExecMixin from mock import patch, Mock from unittest2 import TestCase class Exec(ExecMixin): executable = 'program' class ExecMixinTests(TestCase): @patch('gears.asset_handler.Popen') def test_returns_stdout_on_success(self, Popen): result = Mo...
from __future__ import with_statement from gears.asset_handler import AssetHandlerError, ExecMixin from mock import patch, Mock from unittest2 import TestCase class Exec(ExecMixin): executable = 'program' class ExecMixinTests(TestCase): @patch('gears.asset_handler.Popen') def test_returns_stdout_on_suc...
<commit_before>from gears.asset_handler import AssetHandlerError, ExecMixin from mock import patch, Mock from unittest2 import TestCase class Exec(ExecMixin): executable = 'program' class ExecMixinTests(TestCase): @patch('gears.asset_handler.Popen') def test_returns_stdout_on_success(self, Popen): ...
from __future__ import with_statement from gears.asset_handler import AssetHandlerError, ExecMixin from mock import patch, Mock from unittest2 import TestCase class Exec(ExecMixin): executable = 'program' class ExecMixinTests(TestCase): @patch('gears.asset_handler.Popen') def test_returns_stdout_on_suc...
from gears.asset_handler import AssetHandlerError, ExecMixin from mock import patch, Mock from unittest2 import TestCase class Exec(ExecMixin): executable = 'program' class ExecMixinTests(TestCase): @patch('gears.asset_handler.Popen') def test_returns_stdout_on_success(self, Popen): result = Mo...
<commit_before>from gears.asset_handler import AssetHandlerError, ExecMixin from mock import patch, Mock from unittest2 import TestCase class Exec(ExecMixin): executable = 'program' class ExecMixinTests(TestCase): @patch('gears.asset_handler.Popen') def test_returns_stdout_on_success(self, Popen): ...
d83d2bb2ea9bc690a5b279a88fdc22fa23e6299a
tests/test_pagination.py
tests/test_pagination.py
import unittest import sys import os try: from instagram_private_api_extensions import pagination except ImportError: sys.path.append(os.path.join(os.path.dirname(__file__), '..')) from instagram_private_api_extensions import pagination class TestPagination(unittest.TestCase): def test_page(self): ...
import unittest import sys import os try: from instagram_private_api_extensions import pagination except ImportError: sys.path.append(os.path.join(os.path.dirname(__file__), '..')) from instagram_private_api_extensions import pagination class TestPagination(unittest.TestCase): def test_page(self): ...
Add wait for pagination test
Add wait for pagination test
Python
mit
ping/instagram_private_api_extensions
import unittest import sys import os try: from instagram_private_api_extensions import pagination except ImportError: sys.path.append(os.path.join(os.path.dirname(__file__), '..')) from instagram_private_api_extensions import pagination class TestPagination(unittest.TestCase): def test_page(self): ...
import unittest import sys import os try: from instagram_private_api_extensions import pagination except ImportError: sys.path.append(os.path.join(os.path.dirname(__file__), '..')) from instagram_private_api_extensions import pagination class TestPagination(unittest.TestCase): def test_page(self): ...
<commit_before>import unittest import sys import os try: from instagram_private_api_extensions import pagination except ImportError: sys.path.append(os.path.join(os.path.dirname(__file__), '..')) from instagram_private_api_extensions import pagination class TestPagination(unittest.TestCase): def tes...
import unittest import sys import os try: from instagram_private_api_extensions import pagination except ImportError: sys.path.append(os.path.join(os.path.dirname(__file__), '..')) from instagram_private_api_extensions import pagination class TestPagination(unittest.TestCase): def test_page(self): ...
import unittest import sys import os try: from instagram_private_api_extensions import pagination except ImportError: sys.path.append(os.path.join(os.path.dirname(__file__), '..')) from instagram_private_api_extensions import pagination class TestPagination(unittest.TestCase): def test_page(self): ...
<commit_before>import unittest import sys import os try: from instagram_private_api_extensions import pagination except ImportError: sys.path.append(os.path.join(os.path.dirname(__file__), '..')) from instagram_private_api_extensions import pagination class TestPagination(unittest.TestCase): def tes...