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
2f28efa4bef5759392a46fe3457c87c94911e1ba
tools/api-client/python/interactive_mode.py
tools/api-client/python/interactive_mode.py
# Here's an example of stuff to copy and paste into an interactive Python interpreter to get a connection loaded. # Or you can load it with 'python -i interactive-mode.py'. # Set some variables. bmrc = "~/.bmrc" site = "www" bmutilspath = "./lib" # Import everything, make a connection, and try to log in. import jso...
# Here's an example of stuff to copy and paste into an interactive Python # interpreter to get a connection loaded. # Or you can load it with 'python -i interactive_mode.py'. # Set some variables. bmrc = "~/.bmrc" site = "www" bmutilspath = "./lib" # Import everything, make a connection, and try to log in. import j...
Print the JSON dump, so it's prettier.
Print the JSON dump, so it's prettier.
Python
bsd-3-clause
dwvanstone/buttonmen,dwvanstone/buttonmen,dwvanstone/buttonmen,dwvanstone/buttonmen,dwvanstone/buttonmen,dwvanstone/buttonmen
# Here's an example of stuff to copy and paste into an interactive Python interpreter to get a connection loaded. # Or you can load it with 'python -i interactive-mode.py'. # Set some variables. bmrc = "~/.bmrc" site = "www" bmutilspath = "./lib" # Import everything, make a connection, and try to log in. import jso...
# Here's an example of stuff to copy and paste into an interactive Python # interpreter to get a connection loaded. # Or you can load it with 'python -i interactive_mode.py'. # Set some variables. bmrc = "~/.bmrc" site = "www" bmutilspath = "./lib" # Import everything, make a connection, and try to log in. import j...
<commit_before># Here's an example of stuff to copy and paste into an interactive Python interpreter to get a connection loaded. # Or you can load it with 'python -i interactive-mode.py'. # Set some variables. bmrc = "~/.bmrc" site = "www" bmutilspath = "./lib" # Import everything, make a connection, and try to log ...
# Here's an example of stuff to copy and paste into an interactive Python # interpreter to get a connection loaded. # Or you can load it with 'python -i interactive_mode.py'. # Set some variables. bmrc = "~/.bmrc" site = "www" bmutilspath = "./lib" # Import everything, make a connection, and try to log in. import j...
# Here's an example of stuff to copy and paste into an interactive Python interpreter to get a connection loaded. # Or you can load it with 'python -i interactive-mode.py'. # Set some variables. bmrc = "~/.bmrc" site = "www" bmutilspath = "./lib" # Import everything, make a connection, and try to log in. import jso...
<commit_before># Here's an example of stuff to copy and paste into an interactive Python interpreter to get a connection loaded. # Or you can load it with 'python -i interactive-mode.py'. # Set some variables. bmrc = "~/.bmrc" site = "www" bmutilspath = "./lib" # Import everything, make a connection, and try to log ...
db8dea37028432c89e098728970fbaa265e49359
bookmarks/core/models.py
bookmarks/core/models.py
from __future__ import unicode_literals from django.db import models from django.utils import timezone from taggit.managers import TaggableManager class Bookmark(models.Model): title = models.CharField(max_length=200, blank=True, null=True) description = models.TextField(blank=True, null=True) date_adde...
from __future__ import unicode_literals from django.db import models from django.utils import timezone from taggit.managers import TaggableManager class Bookmark(models.Model): title = models.CharField(max_length=200, blank=True, null=True) description = models.TextField(blank=True, null=True) date_adde...
Increase max length of url field.
Increase max length of url field.
Python
mit
tom-henderson/bookmarks,tom-henderson/bookmarks,tom-henderson/bookmarks
from __future__ import unicode_literals from django.db import models from django.utils import timezone from taggit.managers import TaggableManager class Bookmark(models.Model): title = models.CharField(max_length=200, blank=True, null=True) description = models.TextField(blank=True, null=True) date_adde...
from __future__ import unicode_literals from django.db import models from django.utils import timezone from taggit.managers import TaggableManager class Bookmark(models.Model): title = models.CharField(max_length=200, blank=True, null=True) description = models.TextField(blank=True, null=True) date_adde...
<commit_before>from __future__ import unicode_literals from django.db import models from django.utils import timezone from taggit.managers import TaggableManager class Bookmark(models.Model): title = models.CharField(max_length=200, blank=True, null=True) description = models.TextField(blank=True, null=True...
from __future__ import unicode_literals from django.db import models from django.utils import timezone from taggit.managers import TaggableManager class Bookmark(models.Model): title = models.CharField(max_length=200, blank=True, null=True) description = models.TextField(blank=True, null=True) date_adde...
from __future__ import unicode_literals from django.db import models from django.utils import timezone from taggit.managers import TaggableManager class Bookmark(models.Model): title = models.CharField(max_length=200, blank=True, null=True) description = models.TextField(blank=True, null=True) date_adde...
<commit_before>from __future__ import unicode_literals from django.db import models from django.utils import timezone from taggit.managers import TaggableManager class Bookmark(models.Model): title = models.CharField(max_length=200, blank=True, null=True) description = models.TextField(blank=True, null=True...
17c81bb4acb51907f6a4df9a1a436611e730c15d
test/geocoders/teleport.py
test/geocoders/teleport.py
# -*- coding: UTF-8 -*- from geopy.geocoders import Teleport from test.geocoders.util import GeocoderTestBase class TeleportTestCaseUnitTest(GeocoderTestBase): def test_user_agent_custom(self): geocoder = Teleport( user_agent='my_user_agent/1.0' ) self.assertEqual(geocoder.hea...
# -*- coding: UTF-8 -*- from geopy.geocoders import Teleport from test.geocoders.util import GeocoderTestBase class TeleportTestCaseUnitTest(GeocoderTestBase): def test_user_agent_custom(self): geocoder = Teleport( user_agent='my_user_agent/1.0' ) self.assertEqual(geocoder.hea...
Use http scheme to reduce test times
Use http scheme to reduce test times
Python
mit
magnushiie/geopy,magnushiie/geopy
# -*- coding: UTF-8 -*- from geopy.geocoders import Teleport from test.geocoders.util import GeocoderTestBase class TeleportTestCaseUnitTest(GeocoderTestBase): def test_user_agent_custom(self): geocoder = Teleport( user_agent='my_user_agent/1.0' ) self.assertEqual(geocoder.hea...
# -*- coding: UTF-8 -*- from geopy.geocoders import Teleport from test.geocoders.util import GeocoderTestBase class TeleportTestCaseUnitTest(GeocoderTestBase): def test_user_agent_custom(self): geocoder = Teleport( user_agent='my_user_agent/1.0' ) self.assertEqual(geocoder.hea...
<commit_before># -*- coding: UTF-8 -*- from geopy.geocoders import Teleport from test.geocoders.util import GeocoderTestBase class TeleportTestCaseUnitTest(GeocoderTestBase): def test_user_agent_custom(self): geocoder = Teleport( user_agent='my_user_agent/1.0' ) self.assertEqu...
# -*- coding: UTF-8 -*- from geopy.geocoders import Teleport from test.geocoders.util import GeocoderTestBase class TeleportTestCaseUnitTest(GeocoderTestBase): def test_user_agent_custom(self): geocoder = Teleport( user_agent='my_user_agent/1.0' ) self.assertEqual(geocoder.hea...
# -*- coding: UTF-8 -*- from geopy.geocoders import Teleport from test.geocoders.util import GeocoderTestBase class TeleportTestCaseUnitTest(GeocoderTestBase): def test_user_agent_custom(self): geocoder = Teleport( user_agent='my_user_agent/1.0' ) self.assertEqual(geocoder.hea...
<commit_before># -*- coding: UTF-8 -*- from geopy.geocoders import Teleport from test.geocoders.util import GeocoderTestBase class TeleportTestCaseUnitTest(GeocoderTestBase): def test_user_agent_custom(self): geocoder = Teleport( user_agent='my_user_agent/1.0' ) self.assertEqu...
d29e87eeb062df4d52c0c744919be4cae770fc2c
testing/config/settings/__init__.py
testing/config/settings/__init__.py
# include settimgs from daiquiri from daiquiri.core.settings.django import * from daiquiri.core.settings.celery import * from daiquiri.core.settings.daiquiri import * from daiquiri.core.settings.logging import * from daiquiri.core.settings.vendor import * from daiquiri.archive.settings import * from daiquiri.auth.sett...
# include settimgs from daiquiri from daiquiri.core.settings.django import * from daiquiri.core.settings.celery import * from daiquiri.core.settings.daiquiri import * from daiquiri.core.settings.logging import * from daiquiri.core.settings.vendor import * from daiquiri.archive.settings import * from daiquiri.auth.sett...
Add registry settings to testing
Add registry settings to testing
Python
apache-2.0
aipescience/django-daiquiri,aipescience/django-daiquiri,aipescience/django-daiquiri
# include settimgs from daiquiri from daiquiri.core.settings.django import * from daiquiri.core.settings.celery import * from daiquiri.core.settings.daiquiri import * from daiquiri.core.settings.logging import * from daiquiri.core.settings.vendor import * from daiquiri.archive.settings import * from daiquiri.auth.sett...
# include settimgs from daiquiri from daiquiri.core.settings.django import * from daiquiri.core.settings.celery import * from daiquiri.core.settings.daiquiri import * from daiquiri.core.settings.logging import * from daiquiri.core.settings.vendor import * from daiquiri.archive.settings import * from daiquiri.auth.sett...
<commit_before># include settimgs from daiquiri from daiquiri.core.settings.django import * from daiquiri.core.settings.celery import * from daiquiri.core.settings.daiquiri import * from daiquiri.core.settings.logging import * from daiquiri.core.settings.vendor import * from daiquiri.archive.settings import * from dai...
# include settimgs from daiquiri from daiquiri.core.settings.django import * from daiquiri.core.settings.celery import * from daiquiri.core.settings.daiquiri import * from daiquiri.core.settings.logging import * from daiquiri.core.settings.vendor import * from daiquiri.archive.settings import * from daiquiri.auth.sett...
# include settimgs from daiquiri from daiquiri.core.settings.django import * from daiquiri.core.settings.celery import * from daiquiri.core.settings.daiquiri import * from daiquiri.core.settings.logging import * from daiquiri.core.settings.vendor import * from daiquiri.archive.settings import * from daiquiri.auth.sett...
<commit_before># include settimgs from daiquiri from daiquiri.core.settings.django import * from daiquiri.core.settings.celery import * from daiquiri.core.settings.daiquiri import * from daiquiri.core.settings.logging import * from daiquiri.core.settings.vendor import * from daiquiri.archive.settings import * from dai...
069d658291276e237ce6304c306a1676ba94a650
pricing/get-lookup-pricing/get-lookup-pricing.py
pricing/get-lookup-pricing/get-lookup-pricing.py
from twilio.rest import TwilioPricingClient, TwilioLookupsClient #auth credentials account_sid = "ACCOUNT_SID" auth_token = "AUTH_TOKEN" #Use Lookup API to get country code / MCC / MNC that corresponds to given phone number phone_number = "+15108675309" print "Find outbound SMS price to:",phone_number client = Twili...
from twilio.rest import TwilioPricingClient, TwilioLookupsClient #auth credentials account_sid = "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" auth_token = "{{ auth_token }}" #Use Lookup API to get country code / MCC / MNC that corresponds to given phone number phone_number = "+15108675309" print "Find outbound SMS price to:...
Correct errors in pricing snippets
Correct errors in pricing snippets
Python
mit
TwilioDevEd/api-snippets,TwilioDevEd/api-snippets,teoreteetik/api-snippets,TwilioDevEd/api-snippets,teoreteetik/api-snippets,teoreteetik/api-snippets,TwilioDevEd/api-snippets,teoreteetik/api-snippets,TwilioDevEd/api-snippets,teoreteetik/api-snippets,TwilioDevEd/api-snippets,TwilioDevEd/api-snippets,teoreteetik/api-snip...
from twilio.rest import TwilioPricingClient, TwilioLookupsClient #auth credentials account_sid = "ACCOUNT_SID" auth_token = "AUTH_TOKEN" #Use Lookup API to get country code / MCC / MNC that corresponds to given phone number phone_number = "+15108675309" print "Find outbound SMS price to:",phone_number client = Twili...
from twilio.rest import TwilioPricingClient, TwilioLookupsClient #auth credentials account_sid = "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" auth_token = "{{ auth_token }}" #Use Lookup API to get country code / MCC / MNC that corresponds to given phone number phone_number = "+15108675309" print "Find outbound SMS price to:...
<commit_before>from twilio.rest import TwilioPricingClient, TwilioLookupsClient #auth credentials account_sid = "ACCOUNT_SID" auth_token = "AUTH_TOKEN" #Use Lookup API to get country code / MCC / MNC that corresponds to given phone number phone_number = "+15108675309" print "Find outbound SMS price to:",phone_number...
from twilio.rest import TwilioPricingClient, TwilioLookupsClient #auth credentials account_sid = "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" auth_token = "{{ auth_token }}" #Use Lookup API to get country code / MCC / MNC that corresponds to given phone number phone_number = "+15108675309" print "Find outbound SMS price to:...
from twilio.rest import TwilioPricingClient, TwilioLookupsClient #auth credentials account_sid = "ACCOUNT_SID" auth_token = "AUTH_TOKEN" #Use Lookup API to get country code / MCC / MNC that corresponds to given phone number phone_number = "+15108675309" print "Find outbound SMS price to:",phone_number client = Twili...
<commit_before>from twilio.rest import TwilioPricingClient, TwilioLookupsClient #auth credentials account_sid = "ACCOUNT_SID" auth_token = "AUTH_TOKEN" #Use Lookup API to get country code / MCC / MNC that corresponds to given phone number phone_number = "+15108675309" print "Find outbound SMS price to:",phone_number...
c2737cc54eff558b59bfcfac9e1f9772e07a2c6f
examples/python/setup.py
examples/python/setup.py
try: from setuptools import setup except ImportError: from distutils.core import setup config = { 'description': 'Python Connector for Mongrel2', 'author': 'Zed A. Shaw', 'url': 'http://pypi.python.org/pypi/mongrel2-python', 'download_url': 'http://pypi.python.org/pypi/mongrel2-python', 'a...
try: from setuptools import setup except ImportError: from distutils.core import setup config = { 'description': 'Python Connector for Mongrel2', 'author': 'Zed A. Shaw', 'url': 'http://pypi.python.org/pypi/mongrel2-python', 'download_url': 'http://pypi.python.org/pypi/mongrel2-python', 'a...
Make m2sh have the same version number as mongrel2.
Make m2sh have the same version number as mongrel2.
Python
bsd-3-clause
solidrails/mongrel2,solidrails/mongrel2,solidrails/mongrel2,solidrails/mongrel2
try: from setuptools import setup except ImportError: from distutils.core import setup config = { 'description': 'Python Connector for Mongrel2', 'author': 'Zed A. Shaw', 'url': 'http://pypi.python.org/pypi/mongrel2-python', 'download_url': 'http://pypi.python.org/pypi/mongrel2-python', 'a...
try: from setuptools import setup except ImportError: from distutils.core import setup config = { 'description': 'Python Connector for Mongrel2', 'author': 'Zed A. Shaw', 'url': 'http://pypi.python.org/pypi/mongrel2-python', 'download_url': 'http://pypi.python.org/pypi/mongrel2-python', 'a...
<commit_before> try: from setuptools import setup except ImportError: from distutils.core import setup config = { 'description': 'Python Connector for Mongrel2', 'author': 'Zed A. Shaw', 'url': 'http://pypi.python.org/pypi/mongrel2-python', 'download_url': 'http://pypi.python.org/pypi/mongrel2-...
try: from setuptools import setup except ImportError: from distutils.core import setup config = { 'description': 'Python Connector for Mongrel2', 'author': 'Zed A. Shaw', 'url': 'http://pypi.python.org/pypi/mongrel2-python', 'download_url': 'http://pypi.python.org/pypi/mongrel2-python', 'a...
try: from setuptools import setup except ImportError: from distutils.core import setup config = { 'description': 'Python Connector for Mongrel2', 'author': 'Zed A. Shaw', 'url': 'http://pypi.python.org/pypi/mongrel2-python', 'download_url': 'http://pypi.python.org/pypi/mongrel2-python', 'a...
<commit_before> try: from setuptools import setup except ImportError: from distutils.core import setup config = { 'description': 'Python Connector for Mongrel2', 'author': 'Zed A. Shaw', 'url': 'http://pypi.python.org/pypi/mongrel2-python', 'download_url': 'http://pypi.python.org/pypi/mongrel2-...
f3b87dcad47e77a3383de6fef17080661471a4a3
facturapdf/generators.py
facturapdf/generators.py
import re from reportlab import platypus from facturapdf import flowables, helper def element(item): elements = { 'framebreak': {'class': platypus.FrameBreak}, 'simpleline': {'class': flowables.SimpleLine, 'cast': {0: float, 1: float}}, 'paragraph': {'class': flowables.Paragraph}, ...
import re from reportlab import platypus from facturapdf import flowables, helper def element(item): elements = { 'framebreak': {'class': platypus.FrameBreak}, 'simpleline': {'class': flowables.SimpleLine, 'cast': {0: float, 1: float}}, 'paragraph': {'class': flowables.Paragraph}, ...
Use dict iteration compatible with Python 2 and 3
Use dict iteration compatible with Python 2 and 3
Python
bsd-3-clause
initios/factura-pdf
import re from reportlab import platypus from facturapdf import flowables, helper def element(item): elements = { 'framebreak': {'class': platypus.FrameBreak}, 'simpleline': {'class': flowables.SimpleLine, 'cast': {0: float, 1: float}}, 'paragraph': {'class': flowables.Paragraph}, ...
import re from reportlab import platypus from facturapdf import flowables, helper def element(item): elements = { 'framebreak': {'class': platypus.FrameBreak}, 'simpleline': {'class': flowables.SimpleLine, 'cast': {0: float, 1: float}}, 'paragraph': {'class': flowables.Paragraph}, ...
<commit_before>import re from reportlab import platypus from facturapdf import flowables, helper def element(item): elements = { 'framebreak': {'class': platypus.FrameBreak}, 'simpleline': {'class': flowables.SimpleLine, 'cast': {0: float, 1: float}}, 'paragraph': {'class': flowables.Para...
import re from reportlab import platypus from facturapdf import flowables, helper def element(item): elements = { 'framebreak': {'class': platypus.FrameBreak}, 'simpleline': {'class': flowables.SimpleLine, 'cast': {0: float, 1: float}}, 'paragraph': {'class': flowables.Paragraph}, ...
import re from reportlab import platypus from facturapdf import flowables, helper def element(item): elements = { 'framebreak': {'class': platypus.FrameBreak}, 'simpleline': {'class': flowables.SimpleLine, 'cast': {0: float, 1: float}}, 'paragraph': {'class': flowables.Paragraph}, ...
<commit_before>import re from reportlab import platypus from facturapdf import flowables, helper def element(item): elements = { 'framebreak': {'class': platypus.FrameBreak}, 'simpleline': {'class': flowables.SimpleLine, 'cast': {0: float, 1: float}}, 'paragraph': {'class': flowables.Para...
00bedbd90c46d4cabcd22748bee047732d29417c
members/guardianfetch.py
members/guardianfetch.py
#!/usr/bin/python import urllib, re base = 'http://politics.guardian.co.uk' out = open('../rawdata/mpinfo/guardian-mpsurls2005.txt', 'w') for i in range(-272, -266): url = '%s/person/browse/mps/az/0,,%d,00.html' % (base, i) fp = urllib.urlopen(url) index = fp.read() fp.close() m = re.findall('<a href="(/person/0...
#!/usr/bin/python import sys sys.path.append("../pyscraper") import urllib, re base = 'http://politics.guardian.co.uk' from BeautifulSoup import BeautifulSoup out = open('../rawdata/mpinfo/guardian-mpsurls2005.txt', 'w') for i in range(-272, -266): url = '%s/person/browse/mps/az/0,,%d,00.html' % (base, i) fp = urllib...
Update for new person page format
Update for new person page format git-svn-id: 285608342ca21a36fbe1c940a1767f009072314d@8369 9cc54934-f9f6-0310-8a8d-e8e977684441
Python
agpl-3.0
henare/parlparse,henare/parlparse,spudmind/parlparse,spudmind/parlparse,henare/parlparse,spudmind/parlparse,spudmind/parlparse,henare/parlparse,henare/parlparse,spudmind/parlparse
#!/usr/bin/python import urllib, re base = 'http://politics.guardian.co.uk' out = open('../rawdata/mpinfo/guardian-mpsurls2005.txt', 'w') for i in range(-272, -266): url = '%s/person/browse/mps/az/0,,%d,00.html' % (base, i) fp = urllib.urlopen(url) index = fp.read() fp.close() m = re.findall('<a href="(/person/0...
#!/usr/bin/python import sys sys.path.append("../pyscraper") import urllib, re base = 'http://politics.guardian.co.uk' from BeautifulSoup import BeautifulSoup out = open('../rawdata/mpinfo/guardian-mpsurls2005.txt', 'w') for i in range(-272, -266): url = '%s/person/browse/mps/az/0,,%d,00.html' % (base, i) fp = urllib...
<commit_before>#!/usr/bin/python import urllib, re base = 'http://politics.guardian.co.uk' out = open('../rawdata/mpinfo/guardian-mpsurls2005.txt', 'w') for i in range(-272, -266): url = '%s/person/browse/mps/az/0,,%d,00.html' % (base, i) fp = urllib.urlopen(url) index = fp.read() fp.close() m = re.findall('<a h...
#!/usr/bin/python import sys sys.path.append("../pyscraper") import urllib, re base = 'http://politics.guardian.co.uk' from BeautifulSoup import BeautifulSoup out = open('../rawdata/mpinfo/guardian-mpsurls2005.txt', 'w') for i in range(-272, -266): url = '%s/person/browse/mps/az/0,,%d,00.html' % (base, i) fp = urllib...
#!/usr/bin/python import urllib, re base = 'http://politics.guardian.co.uk' out = open('../rawdata/mpinfo/guardian-mpsurls2005.txt', 'w') for i in range(-272, -266): url = '%s/person/browse/mps/az/0,,%d,00.html' % (base, i) fp = urllib.urlopen(url) index = fp.read() fp.close() m = re.findall('<a href="(/person/0...
<commit_before>#!/usr/bin/python import urllib, re base = 'http://politics.guardian.co.uk' out = open('../rawdata/mpinfo/guardian-mpsurls2005.txt', 'w') for i in range(-272, -266): url = '%s/person/browse/mps/az/0,,%d,00.html' % (base, i) fp = urllib.urlopen(url) index = fp.read() fp.close() m = re.findall('<a h...
3b8dd8c41e78146a1d3914e03f99ce89b1624d26
modules/pipestrconcat.py
modules/pipestrconcat.py
# pipestrconcat.py #aka stringbuilder # from pipe2py import util def pipe_strconcat(context, _INPUT, conf, **kwargs): """This source builds a string. Keyword arguments: context -- pipeline context _INPUT -- source generator conf: part -- parts Yields (_OUTPUT): string ...
# pipestrconcat.py #aka stringbuilder # from pipe2py import util def pipe_strconcat(context, _INPUT, conf, **kwargs): """This source builds a string. Keyword arguments: context -- pipeline context _INPUT -- source generator conf: part -- parts Yields (_OUTPUT): string ...
Allow singleton conf['part'] for strconcat
Allow singleton conf['part'] for strconcat
Python
mit
nerevu/riko,nerevu/riko
# pipestrconcat.py #aka stringbuilder # from pipe2py import util def pipe_strconcat(context, _INPUT, conf, **kwargs): """This source builds a string. Keyword arguments: context -- pipeline context _INPUT -- source generator conf: part -- parts Yields (_OUTPUT): string ...
# pipestrconcat.py #aka stringbuilder # from pipe2py import util def pipe_strconcat(context, _INPUT, conf, **kwargs): """This source builds a string. Keyword arguments: context -- pipeline context _INPUT -- source generator conf: part -- parts Yields (_OUTPUT): string ...
<commit_before># pipestrconcat.py #aka stringbuilder # from pipe2py import util def pipe_strconcat(context, _INPUT, conf, **kwargs): """This source builds a string. Keyword arguments: context -- pipeline context _INPUT -- source generator conf: part -- parts Yields (_OUTPUT)...
# pipestrconcat.py #aka stringbuilder # from pipe2py import util def pipe_strconcat(context, _INPUT, conf, **kwargs): """This source builds a string. Keyword arguments: context -- pipeline context _INPUT -- source generator conf: part -- parts Yields (_OUTPUT): string ...
# pipestrconcat.py #aka stringbuilder # from pipe2py import util def pipe_strconcat(context, _INPUT, conf, **kwargs): """This source builds a string. Keyword arguments: context -- pipeline context _INPUT -- source generator conf: part -- parts Yields (_OUTPUT): string ...
<commit_before># pipestrconcat.py #aka stringbuilder # from pipe2py import util def pipe_strconcat(context, _INPUT, conf, **kwargs): """This source builds a string. Keyword arguments: context -- pipeline context _INPUT -- source generator conf: part -- parts Yields (_OUTPUT)...
d9971a831a622f606d62825957c970a791d53d75
symaps_proxies/settings/base.py
symaps_proxies/settings/base.py
# -*- coding: utf-8 -*- AWS_VPCS = [ { 'CidrBlock': '15.0.0.0/16', 'Tags': [ { 'Key': 'Name', 'Value': 'symaps-prod-proxies' } ], 'create_internet_gateway': True }, { 'CidrBlock': '16.0.0.0/16', 'Tags': ...
# -*- coding: utf-8 -*- AWS_VPCS = [ { 'CidrBlock': '15.0.0.0/16', 'Tags': [ { 'Key': 'Name', 'Value': 'symaps-prod-proxies' } ], 'create_internet_gateway': True, 'subnets': [ { 'CidrBlock': ...
Simplify the aws vpcs settings for testing
Simplify the aws vpcs settings for testing
Python
mit
davidlonjon/aws-proxies,davidlonjon/aws-proxies
# -*- coding: utf-8 -*- AWS_VPCS = [ { 'CidrBlock': '15.0.0.0/16', 'Tags': [ { 'Key': 'Name', 'Value': 'symaps-prod-proxies' } ], 'create_internet_gateway': True }, { 'CidrBlock': '16.0.0.0/16', 'Tags': ...
# -*- coding: utf-8 -*- AWS_VPCS = [ { 'CidrBlock': '15.0.0.0/16', 'Tags': [ { 'Key': 'Name', 'Value': 'symaps-prod-proxies' } ], 'create_internet_gateway': True, 'subnets': [ { 'CidrBlock': ...
<commit_before># -*- coding: utf-8 -*- AWS_VPCS = [ { 'CidrBlock': '15.0.0.0/16', 'Tags': [ { 'Key': 'Name', 'Value': 'symaps-prod-proxies' } ], 'create_internet_gateway': True }, { 'CidrBlock': '16.0.0.0/16', ...
# -*- coding: utf-8 -*- AWS_VPCS = [ { 'CidrBlock': '15.0.0.0/16', 'Tags': [ { 'Key': 'Name', 'Value': 'symaps-prod-proxies' } ], 'create_internet_gateway': True, 'subnets': [ { 'CidrBlock': ...
# -*- coding: utf-8 -*- AWS_VPCS = [ { 'CidrBlock': '15.0.0.0/16', 'Tags': [ { 'Key': 'Name', 'Value': 'symaps-prod-proxies' } ], 'create_internet_gateway': True }, { 'CidrBlock': '16.0.0.0/16', 'Tags': ...
<commit_before># -*- coding: utf-8 -*- AWS_VPCS = [ { 'CidrBlock': '15.0.0.0/16', 'Tags': [ { 'Key': 'Name', 'Value': 'symaps-prod-proxies' } ], 'create_internet_gateway': True }, { 'CidrBlock': '16.0.0.0/16', ...
fe870120076454e1baf72831e4346e9ad575771b
applications/urls.py
applications/urls.py
from django.conf.urls import url from applications import views app_name = 'application' urlpatterns = [ # url(r'^notyet$', views.no_application, name='no_application'), # url(r'^$', views.project_application_form, name='project_application_form'), url(r'^$', views.application_form, name='application_form...
from django.conf.urls import url from applications import views app_name = 'application' urlpatterns = [ # url(r'^notyet$', views.no_application, name='no_application'), # url(r'^$', views.project_application_form, name='project_application_form'), url(r'^$', views.application_form, name='application_form...
Comment out url for application sent.
Comment out url for application sent.
Python
mit
hackerspace-ntnu/website,hackerspace-ntnu/website,hackerspace-ntnu/website
from django.conf.urls import url from applications import views app_name = 'application' urlpatterns = [ # url(r'^notyet$', views.no_application, name='no_application'), # url(r'^$', views.project_application_form, name='project_application_form'), url(r'^$', views.application_form, name='application_form...
from django.conf.urls import url from applications import views app_name = 'application' urlpatterns = [ # url(r'^notyet$', views.no_application, name='no_application'), # url(r'^$', views.project_application_form, name='project_application_form'), url(r'^$', views.application_form, name='application_form...
<commit_before>from django.conf.urls import url from applications import views app_name = 'application' urlpatterns = [ # url(r'^notyet$', views.no_application, name='no_application'), # url(r'^$', views.project_application_form, name='project_application_form'), url(r'^$', views.application_form, name='a...
from django.conf.urls import url from applications import views app_name = 'application' urlpatterns = [ # url(r'^notyet$', views.no_application, name='no_application'), # url(r'^$', views.project_application_form, name='project_application_form'), url(r'^$', views.application_form, name='application_form...
from django.conf.urls import url from applications import views app_name = 'application' urlpatterns = [ # url(r'^notyet$', views.no_application, name='no_application'), # url(r'^$', views.project_application_form, name='project_application_form'), url(r'^$', views.application_form, name='application_form...
<commit_before>from django.conf.urls import url from applications import views app_name = 'application' urlpatterns = [ # url(r'^notyet$', views.no_application, name='no_application'), # url(r'^$', views.project_application_form, name='project_application_form'), url(r'^$', views.application_form, name='a...
830f8281f80f363be8433be562ea52b817ceefe3
engine/extensions/pychan/tools.py
engine/extensions/pychan/tools.py
# coding: utf-8 ### Functools ### def applyOnlySuitable(func,**kwargs): """ This nifty little function takes another function and applies it to a dictionary of keyword arguments. If the supplied function does not expect one or more of the keyword arguments, these are silently discarded. The result of the applicat...
# coding: utf-8 ### Functools ### def applyOnlySuitable(func,**kwargs): """ This nifty little function takes another function and applies it to a dictionary of keyword arguments. If the supplied function does not expect one or more of the keyword arguments, these are silently discarded. The result of the applicat...
Simplify callback creation with a functional utility function.
PyChan: Simplify callback creation with a functional utility function.
Python
lgpl-2.1
cbeck88/fifengine,gravitystorm/fifengine,cbeck88/fifengine,cbeck88/fifengine,fifengine/fifengine,fifengine/fifengine,Niektory/fifengine,gravitystorm/fifengine,fifengine/fifengine,Niektory/fifengine,gravitystorm/fifengine,gravitystorm/fifengine,Niektory/fifengine,cbeck88/fifengine
# coding: utf-8 ### Functools ### def applyOnlySuitable(func,**kwargs): """ This nifty little function takes another function and applies it to a dictionary of keyword arguments. If the supplied function does not expect one or more of the keyword arguments, these are silently discarded. The result of the applicat...
# coding: utf-8 ### Functools ### def applyOnlySuitable(func,**kwargs): """ This nifty little function takes another function and applies it to a dictionary of keyword arguments. If the supplied function does not expect one or more of the keyword arguments, these are silently discarded. The result of the applicat...
<commit_before># coding: utf-8 ### Functools ### def applyOnlySuitable(func,**kwargs): """ This nifty little function takes another function and applies it to a dictionary of keyword arguments. If the supplied function does not expect one or more of the keyword arguments, these are silently discarded. The result ...
# coding: utf-8 ### Functools ### def applyOnlySuitable(func,**kwargs): """ This nifty little function takes another function and applies it to a dictionary of keyword arguments. If the supplied function does not expect one or more of the keyword arguments, these are silently discarded. The result of the applicat...
# coding: utf-8 ### Functools ### def applyOnlySuitable(func,**kwargs): """ This nifty little function takes another function and applies it to a dictionary of keyword arguments. If the supplied function does not expect one or more of the keyword arguments, these are silently discarded. The result of the applicat...
<commit_before># coding: utf-8 ### Functools ### def applyOnlySuitable(func,**kwargs): """ This nifty little function takes another function and applies it to a dictionary of keyword arguments. If the supplied function does not expect one or more of the keyword arguments, these are silently discarded. The result ...
a2274f52e4567de4209e3394060fe62276ad3546
test/mitmproxy/test_examples.py
test/mitmproxy/test_examples.py
import glob from mitmproxy import utils, script from mitmproxy.proxy import config from . import tservers def test_load_scripts(): example_dir = utils.Data(__name__).path("../../examples") scripts = glob.glob("%s/*.py" % example_dir) tmaster = tservers.TestMaster(config.ProxyConfig()) for f in scrip...
import glob from mitmproxy import utils, script from mitmproxy.proxy import config from netlib import tutils as netutils from netlib.http import Headers from . import tservers, tutils from examples import ( modify_form, ) def test_load_scripts(): example_dir = utils.Data(__name__).path("../../examples") ...
Add tests for modify_form example
Add tests for modify_form example
Python
mit
xaxa89/mitmproxy,vhaupert/mitmproxy,ddworken/mitmproxy,gzzhanghao/mitmproxy,Kriechi/mitmproxy,zlorb/mitmproxy,StevenVanAcker/mitmproxy,vhaupert/mitmproxy,ddworken/mitmproxy,dwfreed/mitmproxy,mosajjal/mitmproxy,jvillacorta/mitmproxy,gzzhanghao/mitmproxy,mhils/mitmproxy,dwfreed/mitmproxy,tdickers/mitmproxy,cortesi/mitmpr...
import glob from mitmproxy import utils, script from mitmproxy.proxy import config from . import tservers def test_load_scripts(): example_dir = utils.Data(__name__).path("../../examples") scripts = glob.glob("%s/*.py" % example_dir) tmaster = tservers.TestMaster(config.ProxyConfig()) for f in scrip...
import glob from mitmproxy import utils, script from mitmproxy.proxy import config from netlib import tutils as netutils from netlib.http import Headers from . import tservers, tutils from examples import ( modify_form, ) def test_load_scripts(): example_dir = utils.Data(__name__).path("../../examples") ...
<commit_before>import glob from mitmproxy import utils, script from mitmproxy.proxy import config from . import tservers def test_load_scripts(): example_dir = utils.Data(__name__).path("../../examples") scripts = glob.glob("%s/*.py" % example_dir) tmaster = tservers.TestMaster(config.ProxyConfig()) ...
import glob from mitmproxy import utils, script from mitmproxy.proxy import config from netlib import tutils as netutils from netlib.http import Headers from . import tservers, tutils from examples import ( modify_form, ) def test_load_scripts(): example_dir = utils.Data(__name__).path("../../examples") ...
import glob from mitmproxy import utils, script from mitmproxy.proxy import config from . import tservers def test_load_scripts(): example_dir = utils.Data(__name__).path("../../examples") scripts = glob.glob("%s/*.py" % example_dir) tmaster = tservers.TestMaster(config.ProxyConfig()) for f in scrip...
<commit_before>import glob from mitmproxy import utils, script from mitmproxy.proxy import config from . import tservers def test_load_scripts(): example_dir = utils.Data(__name__).path("../../examples") scripts = glob.glob("%s/*.py" % example_dir) tmaster = tservers.TestMaster(config.ProxyConfig()) ...
59119f8a3f97b833559404a5f89cc66243fe06ca
opal/tests/test_views.py
opal/tests/test_views.py
""" Unittests for opal.views """ from django.test import TestCase from opal import views class ColumnContextTestCase(TestCase): pass
""" Unittests for opal.views """ from opal.core.test import OpalTestCase from opal import models from opal import views class BaseViewTestCase(OpalTestCase): def setUp(self): self.patient = models.Patient.objects.create() self.episode = self.patient.create_episode() def get_request(self, path...
Add some extra View tests
Add some extra View tests
Python
agpl-3.0
khchine5/opal,khchine5/opal,khchine5/opal
""" Unittests for opal.views """ from django.test import TestCase from opal import views class ColumnContextTestCase(TestCase): pass Add some extra View tests
""" Unittests for opal.views """ from opal.core.test import OpalTestCase from opal import models from opal import views class BaseViewTestCase(OpalTestCase): def setUp(self): self.patient = models.Patient.objects.create() self.episode = self.patient.create_episode() def get_request(self, path...
<commit_before>""" Unittests for opal.views """ from django.test import TestCase from opal import views class ColumnContextTestCase(TestCase): pass <commit_msg>Add some extra View tests<commit_after>
""" Unittests for opal.views """ from opal.core.test import OpalTestCase from opal import models from opal import views class BaseViewTestCase(OpalTestCase): def setUp(self): self.patient = models.Patient.objects.create() self.episode = self.patient.create_episode() def get_request(self, path...
""" Unittests for opal.views """ from django.test import TestCase from opal import views class ColumnContextTestCase(TestCase): pass Add some extra View tests""" Unittests for opal.views """ from opal.core.test import OpalTestCase from opal import models from opal import views class BaseViewTestCase(OpalTestCas...
<commit_before>""" Unittests for opal.views """ from django.test import TestCase from opal import views class ColumnContextTestCase(TestCase): pass <commit_msg>Add some extra View tests<commit_after>""" Unittests for opal.views """ from opal.core.test import OpalTestCase from opal import models from opal import ...
7ddaa5a5f9bee7e21c1221950c50c8688e815e01
wtforms/ext/sqlalchemy/__init__.py
wtforms/ext/sqlalchemy/__init__.py
import warnings warnings.warn( 'wtforms.ext.sqlalchemy is deprecated, and will be removed in WTForms 3.0. ' 'Instead transition to the excellent WTForms-Alchemy package: ' 'https://github.com/kvesteri/wtforms-alchemy', DeprecationWarning )
import warnings warnings.warn( 'wtforms.ext.sqlalchemy is deprecated, and will be removed in WTForms 3.0. ' 'The package has been extracted to a separate package wtforms_sqlalchemy: ' 'https://github.com/wtforms/wtforms-sqlalchemy .\n' 'Or alternately, check out the WTForms-Alchemy package which provid...
Add pointer to WTForms-SQLAlchemy in Deprecation
Add pointer to WTForms-SQLAlchemy in Deprecation Closes #221
Python
bsd-3-clause
crast/wtforms,cklein/wtforms,wtforms/wtforms
import warnings warnings.warn( 'wtforms.ext.sqlalchemy is deprecated, and will be removed in WTForms 3.0. ' 'Instead transition to the excellent WTForms-Alchemy package: ' 'https://github.com/kvesteri/wtforms-alchemy', DeprecationWarning ) Add pointer to WTForms-SQLAlchemy in Deprecation Closes #221
import warnings warnings.warn( 'wtforms.ext.sqlalchemy is deprecated, and will be removed in WTForms 3.0. ' 'The package has been extracted to a separate package wtforms_sqlalchemy: ' 'https://github.com/wtforms/wtforms-sqlalchemy .\n' 'Or alternately, check out the WTForms-Alchemy package which provid...
<commit_before>import warnings warnings.warn( 'wtforms.ext.sqlalchemy is deprecated, and will be removed in WTForms 3.0. ' 'Instead transition to the excellent WTForms-Alchemy package: ' 'https://github.com/kvesteri/wtforms-alchemy', DeprecationWarning ) <commit_msg>Add pointer to WTForms-SQLAlchemy in...
import warnings warnings.warn( 'wtforms.ext.sqlalchemy is deprecated, and will be removed in WTForms 3.0. ' 'The package has been extracted to a separate package wtforms_sqlalchemy: ' 'https://github.com/wtforms/wtforms-sqlalchemy .\n' 'Or alternately, check out the WTForms-Alchemy package which provid...
import warnings warnings.warn( 'wtforms.ext.sqlalchemy is deprecated, and will be removed in WTForms 3.0. ' 'Instead transition to the excellent WTForms-Alchemy package: ' 'https://github.com/kvesteri/wtforms-alchemy', DeprecationWarning ) Add pointer to WTForms-SQLAlchemy in Deprecation Closes #221im...
<commit_before>import warnings warnings.warn( 'wtforms.ext.sqlalchemy is deprecated, and will be removed in WTForms 3.0. ' 'Instead transition to the excellent WTForms-Alchemy package: ' 'https://github.com/kvesteri/wtforms-alchemy', DeprecationWarning ) <commit_msg>Add pointer to WTForms-SQLAlchemy in...
b7cee426db61801fd118758bb2f47944f3b8fd37
binaryornot/check.py
binaryornot/check.py
#!/usr/bin/env python # -*- coding: utf-8 -*- def get_starting_chunk(filename): with(filename, 'r') as f: chunk = open(filename).read(1024) return chunk def is_binary_string(bytes_to_check): """ :param bytes: A chunk of bytes to check. :returns: True if appears to be a binary, otherwi...
#!/usr/bin/env python # -*- coding: utf-8 -*- def get_starting_chunk(filename): with open(filename, 'r') as f: chunk = f.read(1024) return chunk def is_binary_string(bytes_to_check): """ :param bytes: A chunk of bytes to check. :returns: True if appears to be a binary, otherwise False...
Fix file opening and make tests pass.
Fix file opening and make tests pass.
Python
bsd-3-clause
hackebrot/binaryornot,0k/binaryornot,hackebrot/binaryornot,hackebrot/binaryornot,pombredanne/binaryornot,audreyr/binaryornot,pombredanne/binaryornot,audreyr/binaryornot,0k/binaryornot,pombredanne/binaryornot,audreyr/binaryornot
#!/usr/bin/env python # -*- coding: utf-8 -*- def get_starting_chunk(filename): with(filename, 'r') as f: chunk = open(filename).read(1024) return chunk def is_binary_string(bytes_to_check): """ :param bytes: A chunk of bytes to check. :returns: True if appears to be a binary, otherwi...
#!/usr/bin/env python # -*- coding: utf-8 -*- def get_starting_chunk(filename): with open(filename, 'r') as f: chunk = f.read(1024) return chunk def is_binary_string(bytes_to_check): """ :param bytes: A chunk of bytes to check. :returns: True if appears to be a binary, otherwise False...
<commit_before>#!/usr/bin/env python # -*- coding: utf-8 -*- def get_starting_chunk(filename): with(filename, 'r') as f: chunk = open(filename).read(1024) return chunk def is_binary_string(bytes_to_check): """ :param bytes: A chunk of bytes to check. :returns: True if appears to be a ...
#!/usr/bin/env python # -*- coding: utf-8 -*- def get_starting_chunk(filename): with open(filename, 'r') as f: chunk = f.read(1024) return chunk def is_binary_string(bytes_to_check): """ :param bytes: A chunk of bytes to check. :returns: True if appears to be a binary, otherwise False...
#!/usr/bin/env python # -*- coding: utf-8 -*- def get_starting_chunk(filename): with(filename, 'r') as f: chunk = open(filename).read(1024) return chunk def is_binary_string(bytes_to_check): """ :param bytes: A chunk of bytes to check. :returns: True if appears to be a binary, otherwi...
<commit_before>#!/usr/bin/env python # -*- coding: utf-8 -*- def get_starting_chunk(filename): with(filename, 'r') as f: chunk = open(filename).read(1024) return chunk def is_binary_string(bytes_to_check): """ :param bytes: A chunk of bytes to check. :returns: True if appears to be a ...
2be9da941fbbf17a54abd79ecae80d0245c1912e
moulinette/utils/stream.py
moulinette/utils/stream.py
from threading import Thread from Queue import Queue, Empty # Read from a stream --------------------------------------------------- class NonBlockingStreamReader: """A non-blocking stream reader Open a separate thread which reads lines from the stream whenever data becomes available and stores the data...
import threading import Queue # Read from a stream --------------------------------------------------- class AsynchronousFileReader(threading.Thread): """ Helper class to implement asynchronous reading of a file in a separate thread. Pushes read lines on a queue to be consumed in another thread. ...
Use a new asynchronous file reader helper
[ref] Use a new asynchronous file reader helper
Python
agpl-3.0
YunoHost/moulinette
from threading import Thread from Queue import Queue, Empty # Read from a stream --------------------------------------------------- class NonBlockingStreamReader: """A non-blocking stream reader Open a separate thread which reads lines from the stream whenever data becomes available and stores the data...
import threading import Queue # Read from a stream --------------------------------------------------- class AsynchronousFileReader(threading.Thread): """ Helper class to implement asynchronous reading of a file in a separate thread. Pushes read lines on a queue to be consumed in another thread. ...
<commit_before>from threading import Thread from Queue import Queue, Empty # Read from a stream --------------------------------------------------- class NonBlockingStreamReader: """A non-blocking stream reader Open a separate thread which reads lines from the stream whenever data becomes available and ...
import threading import Queue # Read from a stream --------------------------------------------------- class AsynchronousFileReader(threading.Thread): """ Helper class to implement asynchronous reading of a file in a separate thread. Pushes read lines on a queue to be consumed in another thread. ...
from threading import Thread from Queue import Queue, Empty # Read from a stream --------------------------------------------------- class NonBlockingStreamReader: """A non-blocking stream reader Open a separate thread which reads lines from the stream whenever data becomes available and stores the data...
<commit_before>from threading import Thread from Queue import Queue, Empty # Read from a stream --------------------------------------------------- class NonBlockingStreamReader: """A non-blocking stream reader Open a separate thread which reads lines from the stream whenever data becomes available and ...
4c7c1aa8b3bb1994183618ee44f8dd5a89884bfa
awx/sso/strategies/django_strategy.py
awx/sso/strategies/django_strategy.py
# Copyright (c) 2017 Ansible, Inc. # All Rights Reserved. from social.strategies.django_strategy import DjangoStrategy class AWXDjangoStrategy(DjangoStrategy): """A DjangoStrategy for python-social-auth containing fixes and updates from social-app-django TODO: Revert back to using the default Djan...
# Copyright (c) 2017 Ansible, Inc. # All Rights Reserved. from social.strategies.django_strategy import DjangoStrategy class AWXDjangoStrategy(DjangoStrategy): """A DjangoStrategy for python-social-auth containing fixes and updates from social-app-django TODO: Revert back to using the default Djan...
Fix typo in AWXDjangoStrategy constructor
Fix typo in AWXDjangoStrategy constructor Signed-off-by: Matvey Kruglov <a9c5c297e6de9a9c1390d88b6df170967c0ffb3a@gmail.com>
Python
apache-2.0
wwitzel3/awx,wwitzel3/awx,wwitzel3/awx,wwitzel3/awx
# Copyright (c) 2017 Ansible, Inc. # All Rights Reserved. from social.strategies.django_strategy import DjangoStrategy class AWXDjangoStrategy(DjangoStrategy): """A DjangoStrategy for python-social-auth containing fixes and updates from social-app-django TODO: Revert back to using the default Djan...
# Copyright (c) 2017 Ansible, Inc. # All Rights Reserved. from social.strategies.django_strategy import DjangoStrategy class AWXDjangoStrategy(DjangoStrategy): """A DjangoStrategy for python-social-auth containing fixes and updates from social-app-django TODO: Revert back to using the default Djan...
<commit_before># Copyright (c) 2017 Ansible, Inc. # All Rights Reserved. from social.strategies.django_strategy import DjangoStrategy class AWXDjangoStrategy(DjangoStrategy): """A DjangoStrategy for python-social-auth containing fixes and updates from social-app-django TODO: Revert back to using t...
# Copyright (c) 2017 Ansible, Inc. # All Rights Reserved. from social.strategies.django_strategy import DjangoStrategy class AWXDjangoStrategy(DjangoStrategy): """A DjangoStrategy for python-social-auth containing fixes and updates from social-app-django TODO: Revert back to using the default Djan...
# Copyright (c) 2017 Ansible, Inc. # All Rights Reserved. from social.strategies.django_strategy import DjangoStrategy class AWXDjangoStrategy(DjangoStrategy): """A DjangoStrategy for python-social-auth containing fixes and updates from social-app-django TODO: Revert back to using the default Djan...
<commit_before># Copyright (c) 2017 Ansible, Inc. # All Rights Reserved. from social.strategies.django_strategy import DjangoStrategy class AWXDjangoStrategy(DjangoStrategy): """A DjangoStrategy for python-social-auth containing fixes and updates from social-app-django TODO: Revert back to using t...
bab058be7b830a38d75eebf53170a805e726308c
keyring/util/platform.py
keyring/util/platform.py
import os import sys # While we support Python 2.4, use a convoluted technique to import # platform from the stdlib. # With Python 2.5 or later, just do "from __future__ import absolute_import" # and "import platform" exec('__import__("platform", globals=dict())') platform = sys.modules['platform'] def _data_root_W...
import os import sys # While we support Python 2.4, use a convoluted technique to import # platform from the stdlib. # With Python 2.5 or later, just do "from __future__ import absolute_import" # and "import platform" exec('__import__("platform", globals=dict())') platform = sys.modules['platform'] def _data_root_W...
Fix regression on Windows XP in determining data root
Fix regression on Windows XP in determining data root
Python
mit
jaraco/keyring
import os import sys # While we support Python 2.4, use a convoluted technique to import # platform from the stdlib. # With Python 2.5 or later, just do "from __future__ import absolute_import" # and "import platform" exec('__import__("platform", globals=dict())') platform = sys.modules['platform'] def _data_root_W...
import os import sys # While we support Python 2.4, use a convoluted technique to import # platform from the stdlib. # With Python 2.5 or later, just do "from __future__ import absolute_import" # and "import platform" exec('__import__("platform", globals=dict())') platform = sys.modules['platform'] def _data_root_W...
<commit_before>import os import sys # While we support Python 2.4, use a convoluted technique to import # platform from the stdlib. # With Python 2.5 or later, just do "from __future__ import absolute_import" # and "import platform" exec('__import__("platform", globals=dict())') platform = sys.modules['platform'] d...
import os import sys # While we support Python 2.4, use a convoluted technique to import # platform from the stdlib. # With Python 2.5 or later, just do "from __future__ import absolute_import" # and "import platform" exec('__import__("platform", globals=dict())') platform = sys.modules['platform'] def _data_root_W...
import os import sys # While we support Python 2.4, use a convoluted technique to import # platform from the stdlib. # With Python 2.5 or later, just do "from __future__ import absolute_import" # and "import platform" exec('__import__("platform", globals=dict())') platform = sys.modules['platform'] def _data_root_W...
<commit_before>import os import sys # While we support Python 2.4, use a convoluted technique to import # platform from the stdlib. # With Python 2.5 or later, just do "from __future__ import absolute_import" # and "import platform" exec('__import__("platform", globals=dict())') platform = sys.modules['platform'] d...
eb22ca95b79e115130c957614ca9d07237360cf8
src/django_registration/signals.py
src/django_registration/signals.py
""" Custom signals sent during the registration and activation processes. """ from django.dispatch import Signal # A new user has registered. user_registered = Signal(providing_args=["user", "request"]) # A user has activated his or her account. user_activated = Signal(providing_args=["user", "request"])
""" Custom signals sent during the registration and activation processes. """ from django.dispatch import Signal # A new user has registered. # Provided args: user, request user_registered = Signal() # A user has activated his or her account. # Provided args: user, request user_activated = Signal()
Fix RemovedInDjango40Warning from Signal arguments
Fix RemovedInDjango40Warning from Signal arguments Fix to removove the following warning I've started to see when running unittest in my django project. """/<path to venv/lib/python3.7/site-packages/django_registration/signals.py:13: RemovedInDjango40Warning: The providing_args argument is deprecated. As it is purely...
Python
bsd-3-clause
ubernostrum/django-registration
""" Custom signals sent during the registration and activation processes. """ from django.dispatch import Signal # A new user has registered. user_registered = Signal(providing_args=["user", "request"]) # A user has activated his or her account. user_activated = Signal(providing_args=["user", "request"]) Fix Remov...
""" Custom signals sent during the registration and activation processes. """ from django.dispatch import Signal # A new user has registered. # Provided args: user, request user_registered = Signal() # A user has activated his or her account. # Provided args: user, request user_activated = Signal()
<commit_before>""" Custom signals sent during the registration and activation processes. """ from django.dispatch import Signal # A new user has registered. user_registered = Signal(providing_args=["user", "request"]) # A user has activated his or her account. user_activated = Signal(providing_args=["user", "reque...
""" Custom signals sent during the registration and activation processes. """ from django.dispatch import Signal # A new user has registered. # Provided args: user, request user_registered = Signal() # A user has activated his or her account. # Provided args: user, request user_activated = Signal()
""" Custom signals sent during the registration and activation processes. """ from django.dispatch import Signal # A new user has registered. user_registered = Signal(providing_args=["user", "request"]) # A user has activated his or her account. user_activated = Signal(providing_args=["user", "request"]) Fix Remov...
<commit_before>""" Custom signals sent during the registration and activation processes. """ from django.dispatch import Signal # A new user has registered. user_registered = Signal(providing_args=["user", "request"]) # A user has activated his or her account. user_activated = Signal(providing_args=["user", "reque...
d63eec8ec53b4a20d4ac5149b7eb7cfa2d094e2d
calc.py
calc.py
"""calc.py: A simple Python calculator.""" import sys def add_all(nums): return sum(nums) def multiply_all(nums): return reduce(lambda a, b: a * b, nums) if __name__ == '__main__': command = sys.argv[1] nums = map(float, sys.argv[2:]) if command == 'add': print(add_all(nums)) elif c...
"""calc.py: A simple Python calculator.""" import sys def add_all(nums): return sum(nums) def multiply_all(nums): return reduce(lambda a, b: a * b, nums) if __name__ == '__main__': command = sys.argv[1] nums = map(float, sys.argv[2:]) if command == 'add': print(add_all(nums)) elif c...
Add usage message if instruction not recognized
Add usage message if instruction not recognized
Python
bsd-3-clause
martaenciso/calc
"""calc.py: A simple Python calculator.""" import sys def add_all(nums): return sum(nums) def multiply_all(nums): return reduce(lambda a, b: a * b, nums) if __name__ == '__main__': command = sys.argv[1] nums = map(float, sys.argv[2:]) if command == 'add': print(add_all(nums)) elif c...
"""calc.py: A simple Python calculator.""" import sys def add_all(nums): return sum(nums) def multiply_all(nums): return reduce(lambda a, b: a * b, nums) if __name__ == '__main__': command = sys.argv[1] nums = map(float, sys.argv[2:]) if command == 'add': print(add_all(nums)) elif c...
<commit_before>"""calc.py: A simple Python calculator.""" import sys def add_all(nums): return sum(nums) def multiply_all(nums): return reduce(lambda a, b: a * b, nums) if __name__ == '__main__': command = sys.argv[1] nums = map(float, sys.argv[2:]) if command == 'add': print(add_all(nu...
"""calc.py: A simple Python calculator.""" import sys def add_all(nums): return sum(nums) def multiply_all(nums): return reduce(lambda a, b: a * b, nums) if __name__ == '__main__': command = sys.argv[1] nums = map(float, sys.argv[2:]) if command == 'add': print(add_all(nums)) elif c...
"""calc.py: A simple Python calculator.""" import sys def add_all(nums): return sum(nums) def multiply_all(nums): return reduce(lambda a, b: a * b, nums) if __name__ == '__main__': command = sys.argv[1] nums = map(float, sys.argv[2:]) if command == 'add': print(add_all(nums)) elif c...
<commit_before>"""calc.py: A simple Python calculator.""" import sys def add_all(nums): return sum(nums) def multiply_all(nums): return reduce(lambda a, b: a * b, nums) if __name__ == '__main__': command = sys.argv[1] nums = map(float, sys.argv[2:]) if command == 'add': print(add_all(nu...
303384ff5345e08dfd50ef78871742f0dd2903b6
src/main/python/pgshovel/utilities/__init__.py
src/main/python/pgshovel/utilities/__init__.py
import importlib import sys from contextlib import contextmanager def load(path): """ Loads a module member from a lookup path (using ``path.to.module:member`` syntax.) """ module, name = path.split(':') return getattr(importlib.import_module(module), name) @contextmanager def import_extras(...
import importlib import operator import sys from contextlib import contextmanager def load(path): """ Loads a module member from a lookup path. Paths are composed of two sections: a module path, and an attribute path, separated by a colon. For example:: >>> from pgshovel.utilities impor...
Allow deep attribute access in dynamic loading utility.
Allow deep attribute access in dynamic loading utility. Summary: This will help for parameterizing access to methods of singleton objects, such as the `msgpack` codec: >>> from pgshovel.utilities import load >>> load('pgshovel.contrib.msgpack:codec.decode') <bound method MessagePackCodec.decode of <pgshov...
Python
apache-2.0
fuziontech/pgshovel,disqus/pgshovel,fuziontech/pgshovel,disqus/pgshovel,fuziontech/pgshovel
import importlib import sys from contextlib import contextmanager def load(path): """ Loads a module member from a lookup path (using ``path.to.module:member`` syntax.) """ module, name = path.split(':') return getattr(importlib.import_module(module), name) @contextmanager def import_extras(...
import importlib import operator import sys from contextlib import contextmanager def load(path): """ Loads a module member from a lookup path. Paths are composed of two sections: a module path, and an attribute path, separated by a colon. For example:: >>> from pgshovel.utilities impor...
<commit_before>import importlib import sys from contextlib import contextmanager def load(path): """ Loads a module member from a lookup path (using ``path.to.module:member`` syntax.) """ module, name = path.split(':') return getattr(importlib.import_module(module), name) @contextmanager def...
import importlib import operator import sys from contextlib import contextmanager def load(path): """ Loads a module member from a lookup path. Paths are composed of two sections: a module path, and an attribute path, separated by a colon. For example:: >>> from pgshovel.utilities impor...
import importlib import sys from contextlib import contextmanager def load(path): """ Loads a module member from a lookup path (using ``path.to.module:member`` syntax.) """ module, name = path.split(':') return getattr(importlib.import_module(module), name) @contextmanager def import_extras(...
<commit_before>import importlib import sys from contextlib import contextmanager def load(path): """ Loads a module member from a lookup path (using ``path.to.module:member`` syntax.) """ module, name = path.split(':') return getattr(importlib.import_module(module), name) @contextmanager def...
8e5443c7f302957f18db116761f7e410e03eb1fb
app/main/errors.py
app/main/errors.py
# coding=utf-8 from flask import render_template from . import main from dmapiclient import APIError @main.app_errorhandler(APIError) def api_error_handler(e): return _render_error_page(e.status_code) @main.app_errorhandler(404) def page_not_found(e): return _render_error_page(404) @main.app_errorhandler...
# coding=utf-8 from flask import render_template from . import main from ..api_client.error import APIError @main.app_errorhandler(APIError) def api_error_handler(e): return _render_error_page(e.status_code) @main.app_errorhandler(404) def page_not_found(e): return _render_error_page(404) @main.app_error...
Change app-level error handler to use api_client.error exceptions
Change app-level error handler to use api_client.error exceptions
Python
mit
AusDTO/dto-digitalmarketplace-buyer-frontend,AusDTO/dto-digitalmarketplace-buyer-frontend,AusDTO/dto-digitalmarketplace-buyer-frontend,AusDTO/dto-digitalmarketplace-buyer-frontend
# coding=utf-8 from flask import render_template from . import main from dmapiclient import APIError @main.app_errorhandler(APIError) def api_error_handler(e): return _render_error_page(e.status_code) @main.app_errorhandler(404) def page_not_found(e): return _render_error_page(404) @main.app_errorhandler...
# coding=utf-8 from flask import render_template from . import main from ..api_client.error import APIError @main.app_errorhandler(APIError) def api_error_handler(e): return _render_error_page(e.status_code) @main.app_errorhandler(404) def page_not_found(e): return _render_error_page(404) @main.app_error...
<commit_before># coding=utf-8 from flask import render_template from . import main from dmapiclient import APIError @main.app_errorhandler(APIError) def api_error_handler(e): return _render_error_page(e.status_code) @main.app_errorhandler(404) def page_not_found(e): return _render_error_page(404) @main.a...
# coding=utf-8 from flask import render_template from . import main from ..api_client.error import APIError @main.app_errorhandler(APIError) def api_error_handler(e): return _render_error_page(e.status_code) @main.app_errorhandler(404) def page_not_found(e): return _render_error_page(404) @main.app_error...
# coding=utf-8 from flask import render_template from . import main from dmapiclient import APIError @main.app_errorhandler(APIError) def api_error_handler(e): return _render_error_page(e.status_code) @main.app_errorhandler(404) def page_not_found(e): return _render_error_page(404) @main.app_errorhandler...
<commit_before># coding=utf-8 from flask import render_template from . import main from dmapiclient import APIError @main.app_errorhandler(APIError) def api_error_handler(e): return _render_error_page(e.status_code) @main.app_errorhandler(404) def page_not_found(e): return _render_error_page(404) @main.a...
f6540575792beb2306736e967e5399df58c50337
qutip/tests/test_heom.py
qutip/tests/test_heom.py
""" Tests for qutip.nonmarkov.heom. """ from qutip.nonmarkov.heom import ( BathExponent, Bath, BosonicBath, DrudeLorentzBath, DrudeLorentzPadeBath, UnderDampedBath, FermionicBath, LorentzianBath, LorentzianPadeBath, HEOMSolver, HSolverDL, ) class TestBathAPI: def test_...
""" Tests for qutip.nonmarkov.heom. """ from qutip.nonmarkov.heom import ( BathExponent, Bath, BosonicBath, DrudeLorentzBath, DrudeLorentzPadeBath, UnderDampedBath, FermionicBath, LorentzianBath, LorentzianPadeBath, HEOMSolver, HSolverDL, HierarchyADOs, HierarchyADOs...
Test that HierarchyADOs and HierarchyADOsState are part of the HEOM api.
Test that HierarchyADOs and HierarchyADOsState are part of the HEOM api.
Python
bsd-3-clause
cgranade/qutip,qutip/qutip,qutip/qutip,cgranade/qutip
""" Tests for qutip.nonmarkov.heom. """ from qutip.nonmarkov.heom import ( BathExponent, Bath, BosonicBath, DrudeLorentzBath, DrudeLorentzPadeBath, UnderDampedBath, FermionicBath, LorentzianBath, LorentzianPadeBath, HEOMSolver, HSolverDL, ) class TestBathAPI: def test_...
""" Tests for qutip.nonmarkov.heom. """ from qutip.nonmarkov.heom import ( BathExponent, Bath, BosonicBath, DrudeLorentzBath, DrudeLorentzPadeBath, UnderDampedBath, FermionicBath, LorentzianBath, LorentzianPadeBath, HEOMSolver, HSolverDL, HierarchyADOs, HierarchyADOs...
<commit_before>""" Tests for qutip.nonmarkov.heom. """ from qutip.nonmarkov.heom import ( BathExponent, Bath, BosonicBath, DrudeLorentzBath, DrudeLorentzPadeBath, UnderDampedBath, FermionicBath, LorentzianBath, LorentzianPadeBath, HEOMSolver, HSolverDL, ) class TestBathAPI...
""" Tests for qutip.nonmarkov.heom. """ from qutip.nonmarkov.heom import ( BathExponent, Bath, BosonicBath, DrudeLorentzBath, DrudeLorentzPadeBath, UnderDampedBath, FermionicBath, LorentzianBath, LorentzianPadeBath, HEOMSolver, HSolverDL, HierarchyADOs, HierarchyADOs...
""" Tests for qutip.nonmarkov.heom. """ from qutip.nonmarkov.heom import ( BathExponent, Bath, BosonicBath, DrudeLorentzBath, DrudeLorentzPadeBath, UnderDampedBath, FermionicBath, LorentzianBath, LorentzianPadeBath, HEOMSolver, HSolverDL, ) class TestBathAPI: def test_...
<commit_before>""" Tests for qutip.nonmarkov.heom. """ from qutip.nonmarkov.heom import ( BathExponent, Bath, BosonicBath, DrudeLorentzBath, DrudeLorentzPadeBath, UnderDampedBath, FermionicBath, LorentzianBath, LorentzianPadeBath, HEOMSolver, HSolverDL, ) class TestBathAPI...
4c1116f592731885f87421d8d3e85fa51fc785f9
apps/home/views.py
apps/home/views.py
# (c) Crown Owned Copyright, 2016. Dstl. from django.core.urlresolvers import reverse from django.shortcuts import redirect from django.views.generic.base import View class Home(View): # Get the homepage. If the user isn't logged in, (we can find no trace # of the user) or they are logged in but somehow...
# (c) Crown Owned Copyright, 2016. Dstl. from django.core.urlresolvers import reverse from django.shortcuts import redirect from django.views.generic.base import View from django.contrib.auth import login class Home(View): # Get the homepage. If the user isn't logged in, (we can find no trace # of the us...
Handle the user id coming in via a header.
Handle the user id coming in via a header.
Python
mit
dstl/lighthouse,dstl/lighthouse,dstl/lighthouse,dstl/lighthouse,dstl/lighthouse
# (c) Crown Owned Copyright, 2016. Dstl. from django.core.urlresolvers import reverse from django.shortcuts import redirect from django.views.generic.base import View class Home(View): # Get the homepage. If the user isn't logged in, (we can find no trace # of the user) or they are logged in but somehow...
# (c) Crown Owned Copyright, 2016. Dstl. from django.core.urlresolvers import reverse from django.shortcuts import redirect from django.views.generic.base import View from django.contrib.auth import login class Home(View): # Get the homepage. If the user isn't logged in, (we can find no trace # of the us...
<commit_before># (c) Crown Owned Copyright, 2016. Dstl. from django.core.urlresolvers import reverse from django.shortcuts import redirect from django.views.generic.base import View class Home(View): # Get the homepage. If the user isn't logged in, (we can find no trace # of the user) or they are logged...
# (c) Crown Owned Copyright, 2016. Dstl. from django.core.urlresolvers import reverse from django.shortcuts import redirect from django.views.generic.base import View from django.contrib.auth import login class Home(View): # Get the homepage. If the user isn't logged in, (we can find no trace # of the us...
# (c) Crown Owned Copyright, 2016. Dstl. from django.core.urlresolvers import reverse from django.shortcuts import redirect from django.views.generic.base import View class Home(View): # Get the homepage. If the user isn't logged in, (we can find no trace # of the user) or they are logged in but somehow...
<commit_before># (c) Crown Owned Copyright, 2016. Dstl. from django.core.urlresolvers import reverse from django.shortcuts import redirect from django.views.generic.base import View class Home(View): # Get the homepage. If the user isn't logged in, (we can find no trace # of the user) or they are logged...
564e611d7cb0b94e71c53e69971a49c312a0f7f8
tob-api/tob_api/custom_settings_ongov.py
tob-api/tob_api/custom_settings_ongov.py
''' Enclose property names in double quotes in order to JSON serialize the contents in the API ''' CUSTOMIZATIONS = { "serializers": { "Location": { "includeFields":{ "id", "verifiableOrgId", ...
''' Enclose property names in double quotes in order to JSON serialize the contents in the API ''' CUSTOMIZATIONS = { "serializers": { "Location": { "includeFields":[ "id", "verifiableOrgId", ...
Fix ongov customs settings formatting.
Fix ongov customs settings formatting.
Python
apache-2.0
swcurran/TheOrgBook,WadeBarnes/TheOrgBook,swcurran/TheOrgBook,swcurran/TheOrgBook,WadeBarnes/TheOrgBook,swcurran/TheOrgBook,WadeBarnes/TheOrgBook,WadeBarnes/TheOrgBook,WadeBarnes/TheOrgBook,swcurran/TheOrgBook
''' Enclose property names in double quotes in order to JSON serialize the contents in the API ''' CUSTOMIZATIONS = { "serializers": { "Location": { "includeFields":{ "id", "verifiableOrgId", ...
''' Enclose property names in double quotes in order to JSON serialize the contents in the API ''' CUSTOMIZATIONS = { "serializers": { "Location": { "includeFields":[ "id", "verifiableOrgId", ...
<commit_before>''' Enclose property names in double quotes in order to JSON serialize the contents in the API ''' CUSTOMIZATIONS = { "serializers": { "Location": { "includeFields":{ "id", "verifiableOrgId"...
''' Enclose property names in double quotes in order to JSON serialize the contents in the API ''' CUSTOMIZATIONS = { "serializers": { "Location": { "includeFields":[ "id", "verifiableOrgId", ...
''' Enclose property names in double quotes in order to JSON serialize the contents in the API ''' CUSTOMIZATIONS = { "serializers": { "Location": { "includeFields":{ "id", "verifiableOrgId", ...
<commit_before>''' Enclose property names in double quotes in order to JSON serialize the contents in the API ''' CUSTOMIZATIONS = { "serializers": { "Location": { "includeFields":{ "id", "verifiableOrgId"...
1f7c21280b7135f026f1ff807ffc50c97587f6fd
project/api/managers.py
project/api/managers.py
# Django from django.contrib.auth.models import BaseUserManager class UserManager(BaseUserManager): def create_user(self, email, password='', **kwargs): user = self.model( email=email, password='', is_active=True, **kwargs ) user.save(using=...
# Django from django.contrib.auth.models import BaseUserManager class UserManager(BaseUserManager): def create_user(self, email, password='', person, **kwargs): user = self.model( email=email, password='', person=person, is_active=True, **kwargs...
Update manager for Person requirement
Update manager for Person requirement
Python
bsd-2-clause
barberscore/barberscore-api,barberscore/barberscore-api,dbinetti/barberscore,dbinetti/barberscore,dbinetti/barberscore-django,dbinetti/barberscore-django,barberscore/barberscore-api,barberscore/barberscore-api
# Django from django.contrib.auth.models import BaseUserManager class UserManager(BaseUserManager): def create_user(self, email, password='', **kwargs): user = self.model( email=email, password='', is_active=True, **kwargs ) user.save(using=...
# Django from django.contrib.auth.models import BaseUserManager class UserManager(BaseUserManager): def create_user(self, email, password='', person, **kwargs): user = self.model( email=email, password='', person=person, is_active=True, **kwargs...
<commit_before># Django from django.contrib.auth.models import BaseUserManager class UserManager(BaseUserManager): def create_user(self, email, password='', **kwargs): user = self.model( email=email, password='', is_active=True, **kwargs ) u...
# Django from django.contrib.auth.models import BaseUserManager class UserManager(BaseUserManager): def create_user(self, email, password='', person, **kwargs): user = self.model( email=email, password='', person=person, is_active=True, **kwargs...
# Django from django.contrib.auth.models import BaseUserManager class UserManager(BaseUserManager): def create_user(self, email, password='', **kwargs): user = self.model( email=email, password='', is_active=True, **kwargs ) user.save(using=...
<commit_before># Django from django.contrib.auth.models import BaseUserManager class UserManager(BaseUserManager): def create_user(self, email, password='', **kwargs): user = self.model( email=email, password='', is_active=True, **kwargs ) u...
06bfabc328c4aa32120fd7e52302db76974c2d1b
greengraph/command.py
greengraph/command.py
from argparse import ArgumentParser from matplotlib import pyplot as plt from graph import Greengraph def process(): parser = ArgumentParser( description="Produce graph quantifying the amount of green land between two locations") parser.add_argument("--start", nargs="+", help="...
from argparse import ArgumentParser from matplotlib import pyplot as plt from graph import Greengraph def process(): parser = ArgumentParser( description="Produce graph quantifying the amount of green land between two locations") parser.add_argument("--start", nargs="+", help="...
Correct error where && was used instead of and
Correct error where && was used instead of and
Python
mit
MikeVasmer/GreenGraphCoursework
from argparse import ArgumentParser from matplotlib import pyplot as plt from graph import Greengraph def process(): parser = ArgumentParser( description="Produce graph quantifying the amount of green land between two locations") parser.add_argument("--start", nargs="+", help="...
from argparse import ArgumentParser from matplotlib import pyplot as plt from graph import Greengraph def process(): parser = ArgumentParser( description="Produce graph quantifying the amount of green land between two locations") parser.add_argument("--start", nargs="+", help="...
<commit_before>from argparse import ArgumentParser from matplotlib import pyplot as plt from graph import Greengraph def process(): parser = ArgumentParser( description="Produce graph quantifying the amount of green land between two locations") parser.add_argument("--start", nargs="+", ...
from argparse import ArgumentParser from matplotlib import pyplot as plt from graph import Greengraph def process(): parser = ArgumentParser( description="Produce graph quantifying the amount of green land between two locations") parser.add_argument("--start", nargs="+", help="...
from argparse import ArgumentParser from matplotlib import pyplot as plt from graph import Greengraph def process(): parser = ArgumentParser( description="Produce graph quantifying the amount of green land between two locations") parser.add_argument("--start", nargs="+", help="...
<commit_before>from argparse import ArgumentParser from matplotlib import pyplot as plt from graph import Greengraph def process(): parser = ArgumentParser( description="Produce graph quantifying the amount of green land between two locations") parser.add_argument("--start", nargs="+", ...
0b82a5c10a9e728f6f5424429a70fd2951c9b5c5
pythonmisp/__init__.py
pythonmisp/__init__.py
from .misp import MispTag, MispEvent, MispServer, MispAttribute, MispShadowAttribute
from .misp import MispTag, MispEvent, MispServer, MispAttribute, MispShadowAttribute, MispTransportError
Add MispTransportError in package import
Add MispTransportError in package import
Python
apache-2.0
nbareil/python-misp
from .misp import MispTag, MispEvent, MispServer, MispAttribute, MispShadowAttribute Add MispTransportError in package import
from .misp import MispTag, MispEvent, MispServer, MispAttribute, MispShadowAttribute, MispTransportError
<commit_before>from .misp import MispTag, MispEvent, MispServer, MispAttribute, MispShadowAttribute <commit_msg>Add MispTransportError in package import<commit_after>
from .misp import MispTag, MispEvent, MispServer, MispAttribute, MispShadowAttribute, MispTransportError
from .misp import MispTag, MispEvent, MispServer, MispAttribute, MispShadowAttribute Add MispTransportError in package importfrom .misp import MispTag, MispEvent, MispServer, MispAttribute, MispShadowAttribute, MispTransportError
<commit_before>from .misp import MispTag, MispEvent, MispServer, MispAttribute, MispShadowAttribute <commit_msg>Add MispTransportError in package import<commit_after>from .misp import MispTag, MispEvent, MispServer, MispAttribute, MispShadowAttribute, MispTransportError
b7d928b473ec6b1eb60707783842d78b9a9ecdec
info.py
info.py
#!/usr/bin/env python # Print information columns of number values. import sys import numpy as np from dwi import asciifile for filename in sys.argv[1:]: af = asciifile.AsciiFile(filename) print filename print af.d['description'] params = af.params() for i, a in enumerate(af.a.T): d = di...
#!/usr/bin/env python # Print information columns of number values. import sys import numpy as np from dwi import asciifile for filename in sys.argv[1:]: af = asciifile.AsciiFile(filename) print filename if af.d.has_key('description'): print af.d['description'] params = af.params() for i...
Print sum. Print description only if it exists.
Print sum. Print description only if it exists.
Python
mit
jupito/dwilib,jupito/dwilib
#!/usr/bin/env python # Print information columns of number values. import sys import numpy as np from dwi import asciifile for filename in sys.argv[1:]: af = asciifile.AsciiFile(filename) print filename print af.d['description'] params = af.params() for i, a in enumerate(af.a.T): d = di...
#!/usr/bin/env python # Print information columns of number values. import sys import numpy as np from dwi import asciifile for filename in sys.argv[1:]: af = asciifile.AsciiFile(filename) print filename if af.d.has_key('description'): print af.d['description'] params = af.params() for i...
<commit_before>#!/usr/bin/env python # Print information columns of number values. import sys import numpy as np from dwi import asciifile for filename in sys.argv[1:]: af = asciifile.AsciiFile(filename) print filename print af.d['description'] params = af.params() for i, a in enumerate(af.a.T):...
#!/usr/bin/env python # Print information columns of number values. import sys import numpy as np from dwi import asciifile for filename in sys.argv[1:]: af = asciifile.AsciiFile(filename) print filename if af.d.has_key('description'): print af.d['description'] params = af.params() for i...
#!/usr/bin/env python # Print information columns of number values. import sys import numpy as np from dwi import asciifile for filename in sys.argv[1:]: af = asciifile.AsciiFile(filename) print filename print af.d['description'] params = af.params() for i, a in enumerate(af.a.T): d = di...
<commit_before>#!/usr/bin/env python # Print information columns of number values. import sys import numpy as np from dwi import asciifile for filename in sys.argv[1:]: af = asciifile.AsciiFile(filename) print filename print af.d['description'] params = af.params() for i, a in enumerate(af.a.T):...
b773186f4e39e531e162e3d56a129a21129864e7
bookmarks/views.py
bookmarks/views.py
from rest_framework import serializers from rest_framework_json_api.views import ModelViewSet from .models import Collection, Item class ItemSerializer(serializers.ModelSerializer): class Meta: model = Item fields = ["id", "key", "value", "kind", "row", "collection"] class ItemViewSet(ModelView...
from rest_framework import serializers from rest_framework_json_api.views import ModelViewSet from .models import Collection, Item class ItemSerializer(serializers.ModelSerializer): class Meta: model = Item fields = ["id", "key", "value", "kind", "row", "collection"] class ItemViewSet(ModelView...
Add item_set to collections response
Add item_set to collections response
Python
mit
GSC-RNSIT/bookmark-manager,GSC-RNSIT/bookmark-manager,rohithpr/bookmark-manager,rohithpr/bookmark-manager
from rest_framework import serializers from rest_framework_json_api.views import ModelViewSet from .models import Collection, Item class ItemSerializer(serializers.ModelSerializer): class Meta: model = Item fields = ["id", "key", "value", "kind", "row", "collection"] class ItemViewSet(ModelView...
from rest_framework import serializers from rest_framework_json_api.views import ModelViewSet from .models import Collection, Item class ItemSerializer(serializers.ModelSerializer): class Meta: model = Item fields = ["id", "key", "value", "kind", "row", "collection"] class ItemViewSet(ModelView...
<commit_before>from rest_framework import serializers from rest_framework_json_api.views import ModelViewSet from .models import Collection, Item class ItemSerializer(serializers.ModelSerializer): class Meta: model = Item fields = ["id", "key", "value", "kind", "row", "collection"] class ItemVi...
from rest_framework import serializers from rest_framework_json_api.views import ModelViewSet from .models import Collection, Item class ItemSerializer(serializers.ModelSerializer): class Meta: model = Item fields = ["id", "key", "value", "kind", "row", "collection"] class ItemViewSet(ModelView...
from rest_framework import serializers from rest_framework_json_api.views import ModelViewSet from .models import Collection, Item class ItemSerializer(serializers.ModelSerializer): class Meta: model = Item fields = ["id", "key", "value", "kind", "row", "collection"] class ItemViewSet(ModelView...
<commit_before>from rest_framework import serializers from rest_framework_json_api.views import ModelViewSet from .models import Collection, Item class ItemSerializer(serializers.ModelSerializer): class Meta: model = Item fields = ["id", "key", "value", "kind", "row", "collection"] class ItemVi...
fc609dd987593d58cddec3af8865a1d3a456fb43
modules/expansion/dns.py
modules/expansion/dns.py
import json import dns.resolver mispattributes = {'input':['hostname', 'domain'], 'output':['ip-src', 'ip-dst']} def handler(q=False): if q is False: return False request = json.loads(q) if request.get('hostname'): toquery = request['hostname'] elif request.get('domain'): toque...
import json import dns.resolver mispattributes = {'input':['hostname', 'domain'], 'output':['ip-src', 'ip-dst']} moduleinfo = "0.1" def handler(q=False): if q is False: return False request = json.loads(q) if request.get('hostname'): toquery = request['hostname'] elif request.get('doma...
Add a version per default
Add a version per default
Python
agpl-3.0
amuehlem/misp-modules,amuehlem/misp-modules,Rafiot/misp-modules,VirusTotal/misp-modules,amuehlem/misp-modules,MISP/misp-modules,VirusTotal/misp-modules,Rafiot/misp-modules,Rafiot/misp-modules,VirusTotal/misp-modules,MISP/misp-modules,MISP/misp-modules
import json import dns.resolver mispattributes = {'input':['hostname', 'domain'], 'output':['ip-src', 'ip-dst']} def handler(q=False): if q is False: return False request = json.loads(q) if request.get('hostname'): toquery = request['hostname'] elif request.get('domain'): toque...
import json import dns.resolver mispattributes = {'input':['hostname', 'domain'], 'output':['ip-src', 'ip-dst']} moduleinfo = "0.1" def handler(q=False): if q is False: return False request = json.loads(q) if request.get('hostname'): toquery = request['hostname'] elif request.get('doma...
<commit_before>import json import dns.resolver mispattributes = {'input':['hostname', 'domain'], 'output':['ip-src', 'ip-dst']} def handler(q=False): if q is False: return False request = json.loads(q) if request.get('hostname'): toquery = request['hostname'] elif request.get('domain')...
import json import dns.resolver mispattributes = {'input':['hostname', 'domain'], 'output':['ip-src', 'ip-dst']} moduleinfo = "0.1" def handler(q=False): if q is False: return False request = json.loads(q) if request.get('hostname'): toquery = request['hostname'] elif request.get('doma...
import json import dns.resolver mispattributes = {'input':['hostname', 'domain'], 'output':['ip-src', 'ip-dst']} def handler(q=False): if q is False: return False request = json.loads(q) if request.get('hostname'): toquery = request['hostname'] elif request.get('domain'): toque...
<commit_before>import json import dns.resolver mispattributes = {'input':['hostname', 'domain'], 'output':['ip-src', 'ip-dst']} def handler(q=False): if q is False: return False request = json.loads(q) if request.get('hostname'): toquery = request['hostname'] elif request.get('domain')...
c1fbc761e10e06effa49ede1f8dbc04189999bd5
niftynet/layer/post_processing.py
niftynet/layer/post_processing.py
# -*- coding: utf-8 -*- from __future__ import absolute_import, print_function import tensorflow as tf from niftynet.utilities.util_common import look_up_operations from niftynet.layer.base_layer import Layer SUPPORTED_OPS = {"SOFTMAX", "ARGMAX", "IDENTITY"} class PostProcessingLayer(Layer): """ This layer...
# -*- coding: utf-8 -*- from __future__ import absolute_import, print_function import tensorflow as tf from niftynet.utilities.util_common import look_up_operations from niftynet.layer.base_layer import Layer SUPPORTED_OPS = {"SOFTMAX", "ARGMAX", "IDENTITY"} class PostProcessingLayer(Layer): """ This layer...
Change label output to int32 for compatibility with some viewers
Change label output to int32 for compatibility with some viewers
Python
apache-2.0
NifTK/NiftyNet,NifTK/NiftyNet,NifTK/NiftyNet,NifTK/NiftyNet
# -*- coding: utf-8 -*- from __future__ import absolute_import, print_function import tensorflow as tf from niftynet.utilities.util_common import look_up_operations from niftynet.layer.base_layer import Layer SUPPORTED_OPS = {"SOFTMAX", "ARGMAX", "IDENTITY"} class PostProcessingLayer(Layer): """ This layer...
# -*- coding: utf-8 -*- from __future__ import absolute_import, print_function import tensorflow as tf from niftynet.utilities.util_common import look_up_operations from niftynet.layer.base_layer import Layer SUPPORTED_OPS = {"SOFTMAX", "ARGMAX", "IDENTITY"} class PostProcessingLayer(Layer): """ This layer...
<commit_before># -*- coding: utf-8 -*- from __future__ import absolute_import, print_function import tensorflow as tf from niftynet.utilities.util_common import look_up_operations from niftynet.layer.base_layer import Layer SUPPORTED_OPS = {"SOFTMAX", "ARGMAX", "IDENTITY"} class PostProcessingLayer(Layer): """...
# -*- coding: utf-8 -*- from __future__ import absolute_import, print_function import tensorflow as tf from niftynet.utilities.util_common import look_up_operations from niftynet.layer.base_layer import Layer SUPPORTED_OPS = {"SOFTMAX", "ARGMAX", "IDENTITY"} class PostProcessingLayer(Layer): """ This layer...
# -*- coding: utf-8 -*- from __future__ import absolute_import, print_function import tensorflow as tf from niftynet.utilities.util_common import look_up_operations from niftynet.layer.base_layer import Layer SUPPORTED_OPS = {"SOFTMAX", "ARGMAX", "IDENTITY"} class PostProcessingLayer(Layer): """ This layer...
<commit_before># -*- coding: utf-8 -*- from __future__ import absolute_import, print_function import tensorflow as tf from niftynet.utilities.util_common import look_up_operations from niftynet.layer.base_layer import Layer SUPPORTED_OPS = {"SOFTMAX", "ARGMAX", "IDENTITY"} class PostProcessingLayer(Layer): """...
02e7875bb8792741cfcf1b94561c5c5a418fcfbc
stable_baselines/__init__.py
stable_baselines/__init__.py
from stable_baselines.a2c import A2C from stable_baselines.acer import ACER from stable_baselines.acktr import ACKTR # from stable_baselines.ddpg import DDPG from stable_baselines.deepq import DeepQ from stable_baselines.gail import GAIL from stable_baselines.ppo1 import PPO1 from stable_baselines.ppo2 import PPO2 from...
from stable_baselines.a2c import A2C from stable_baselines.acer import ACER from stable_baselines.acktr import ACKTR from stable_baselines.ddpg import DDPG from stable_baselines.deepq import DeepQ from stable_baselines.gail import GAIL from stable_baselines.ppo1 import PPO1 from stable_baselines.ppo2 import PPO2 from s...
Revert "Try fixing circular import"
Revert "Try fixing circular import" This reverts commit 1a23578be15c06c8d8688bcceffac4af2e980c95.
Python
mit
hill-a/stable-baselines,hill-a/stable-baselines
from stable_baselines.a2c import A2C from stable_baselines.acer import ACER from stable_baselines.acktr import ACKTR # from stable_baselines.ddpg import DDPG from stable_baselines.deepq import DeepQ from stable_baselines.gail import GAIL from stable_baselines.ppo1 import PPO1 from stable_baselines.ppo2 import PPO2 from...
from stable_baselines.a2c import A2C from stable_baselines.acer import ACER from stable_baselines.acktr import ACKTR from stable_baselines.ddpg import DDPG from stable_baselines.deepq import DeepQ from stable_baselines.gail import GAIL from stable_baselines.ppo1 import PPO1 from stable_baselines.ppo2 import PPO2 from s...
<commit_before>from stable_baselines.a2c import A2C from stable_baselines.acer import ACER from stable_baselines.acktr import ACKTR # from stable_baselines.ddpg import DDPG from stable_baselines.deepq import DeepQ from stable_baselines.gail import GAIL from stable_baselines.ppo1 import PPO1 from stable_baselines.ppo2 i...
from stable_baselines.a2c import A2C from stable_baselines.acer import ACER from stable_baselines.acktr import ACKTR from stable_baselines.ddpg import DDPG from stable_baselines.deepq import DeepQ from stable_baselines.gail import GAIL from stable_baselines.ppo1 import PPO1 from stable_baselines.ppo2 import PPO2 from s...
from stable_baselines.a2c import A2C from stable_baselines.acer import ACER from stable_baselines.acktr import ACKTR # from stable_baselines.ddpg import DDPG from stable_baselines.deepq import DeepQ from stable_baselines.gail import GAIL from stable_baselines.ppo1 import PPO1 from stable_baselines.ppo2 import PPO2 from...
<commit_before>from stable_baselines.a2c import A2C from stable_baselines.acer import ACER from stable_baselines.acktr import ACKTR # from stable_baselines.ddpg import DDPG from stable_baselines.deepq import DeepQ from stable_baselines.gail import GAIL from stable_baselines.ppo1 import PPO1 from stable_baselines.ppo2 i...
332c21f97936baab6901fccb3b6d28eaee83729c
skimage/_shared/utils.py
skimage/_shared/utils.py
import warnings import functools __all__ = ['deprecated'] class deprecated(object): """Decorator to mark deprecated functions with warning. Adapted from <http://wiki.python.org/moin/PythonDecoratorLibrary>. Parameters ---------- alt_func : str If given, tell user what function to use i...
import warnings import functools __all__ = ['deprecated'] class deprecated(object): """Decorator to mark deprecated functions with warning. Adapted from <http://wiki.python.org/moin/PythonDecoratorLibrary>. Parameters ---------- alt_func : str If given, tell user what function to use i...
Make deprecation warning in doc string bold
Make deprecation warning in doc string bold
Python
bsd-3-clause
chintak/scikit-image,warmspringwinds/scikit-image,SamHames/scikit-image,almarklein/scikit-image,chriscrosscutler/scikit-image,chriscrosscutler/scikit-image,SamHames/scikit-image,michaelpacer/scikit-image,almarklein/scikit-image,bennlich/scikit-image,bsipocz/scikit-image,ClinicalGraphics/scikit-image,dpshelio/scikit-ima...
import warnings import functools __all__ = ['deprecated'] class deprecated(object): """Decorator to mark deprecated functions with warning. Adapted from <http://wiki.python.org/moin/PythonDecoratorLibrary>. Parameters ---------- alt_func : str If given, tell user what function to use i...
import warnings import functools __all__ = ['deprecated'] class deprecated(object): """Decorator to mark deprecated functions with warning. Adapted from <http://wiki.python.org/moin/PythonDecoratorLibrary>. Parameters ---------- alt_func : str If given, tell user what function to use i...
<commit_before>import warnings import functools __all__ = ['deprecated'] class deprecated(object): """Decorator to mark deprecated functions with warning. Adapted from <http://wiki.python.org/moin/PythonDecoratorLibrary>. Parameters ---------- alt_func : str If given, tell user what fu...
import warnings import functools __all__ = ['deprecated'] class deprecated(object): """Decorator to mark deprecated functions with warning. Adapted from <http://wiki.python.org/moin/PythonDecoratorLibrary>. Parameters ---------- alt_func : str If given, tell user what function to use i...
import warnings import functools __all__ = ['deprecated'] class deprecated(object): """Decorator to mark deprecated functions with warning. Adapted from <http://wiki.python.org/moin/PythonDecoratorLibrary>. Parameters ---------- alt_func : str If given, tell user what function to use i...
<commit_before>import warnings import functools __all__ = ['deprecated'] class deprecated(object): """Decorator to mark deprecated functions with warning. Adapted from <http://wiki.python.org/moin/PythonDecoratorLibrary>. Parameters ---------- alt_func : str If given, tell user what fu...
07bc7efb756e2bc99f59c59476379bc186f36143
sktracker/io/__init__.py
sktracker/io/__init__.py
"""`sktracker.io` module is designed to easly and quickly open Tiff files and to be able to parse and import any kind of metadata. Finally, an OME module is provided to read and write OME xml metadata. See https://www.openmicroscopy.org/site/support/ome-model/ for details. """ from .tifffile import imsave from .tiff...
"""`sktracker.io` module is designed to easly and quickly open Tiff files and to be able to parse and import any kind of metadata. Finally, an OME module is provided to read and write OME xml metadata. See https://www.openmicroscopy.org/site/support/ome-model/ for details. """ # Remove warnings for tifffile.py impor...
Remove warning messages for tifffile.py
Remove warning messages for tifffile.py
Python
bsd-3-clause
bnoi/scikit-tracker,bnoi/scikit-tracker,bnoi/scikit-tracker
"""`sktracker.io` module is designed to easly and quickly open Tiff files and to be able to parse and import any kind of metadata. Finally, an OME module is provided to read and write OME xml metadata. See https://www.openmicroscopy.org/site/support/ome-model/ for details. """ from .tifffile import imsave from .tiff...
"""`sktracker.io` module is designed to easly and quickly open Tiff files and to be able to parse and import any kind of metadata. Finally, an OME module is provided to read and write OME xml metadata. See https://www.openmicroscopy.org/site/support/ome-model/ for details. """ # Remove warnings for tifffile.py impor...
<commit_before>"""`sktracker.io` module is designed to easly and quickly open Tiff files and to be able to parse and import any kind of metadata. Finally, an OME module is provided to read and write OME xml metadata. See https://www.openmicroscopy.org/site/support/ome-model/ for details. """ from .tifffile import im...
"""`sktracker.io` module is designed to easly and quickly open Tiff files and to be able to parse and import any kind of metadata. Finally, an OME module is provided to read and write OME xml metadata. See https://www.openmicroscopy.org/site/support/ome-model/ for details. """ # Remove warnings for tifffile.py impor...
"""`sktracker.io` module is designed to easly and quickly open Tiff files and to be able to parse and import any kind of metadata. Finally, an OME module is provided to read and write OME xml metadata. See https://www.openmicroscopy.org/site/support/ome-model/ for details. """ from .tifffile import imsave from .tiff...
<commit_before>"""`sktracker.io` module is designed to easly and quickly open Tiff files and to be able to parse and import any kind of metadata. Finally, an OME module is provided to read and write OME xml metadata. See https://www.openmicroscopy.org/site/support/ome-model/ for details. """ from .tifffile import im...
b86a0aa55bb6f30be07cff5e3e6cdb27d84b0024
Insertion_sort/insertion_sort.py
Insertion_sort/insertion_sort.py
def insertion_sort(seq): for i in range(1, len(l)): for j in range(i, 0, -1): if l[j - 1] < l[j]: break l[j - 1], l[j] = l[j], l[j - 1] return l
def insertion_sort(l): for i in range(1, len(l)): for j in range(i, 0, -1): if l[j - 1] < l[j]: break l[j - 1], l[j] = l[j], l[j - 1] return l
Revert "Added implementation of selection sort"
Revert "Added implementation of selection sort" This reverts commit acf509f392d536c61c0dbed3a07ed24849b00928.
Python
mit
wizh/algorithms
def insertion_sort(seq): for i in range(1, len(l)): for j in range(i, 0, -1): if l[j - 1] < l[j]: break l[j - 1], l[j] = l[j], l[j - 1] return lRevert "Added implementation of selection sort" This reverts commit acf509f392d536c61c0dbed3a07ed24849b00928.
def insertion_sort(l): for i in range(1, len(l)): for j in range(i, 0, -1): if l[j - 1] < l[j]: break l[j - 1], l[j] = l[j], l[j - 1] return l
<commit_before>def insertion_sort(seq): for i in range(1, len(l)): for j in range(i, 0, -1): if l[j - 1] < l[j]: break l[j - 1], l[j] = l[j], l[j - 1] return l<commit_msg>Revert "Added implementation of selection sort" This reverts commit acf509f392d536c61c0dbed...
def insertion_sort(l): for i in range(1, len(l)): for j in range(i, 0, -1): if l[j - 1] < l[j]: break l[j - 1], l[j] = l[j], l[j - 1] return l
def insertion_sort(seq): for i in range(1, len(l)): for j in range(i, 0, -1): if l[j - 1] < l[j]: break l[j - 1], l[j] = l[j], l[j - 1] return lRevert "Added implementation of selection sort" This reverts commit acf509f392d536c61c0dbed3a07ed24849b00928.def inser...
<commit_before>def insertion_sort(seq): for i in range(1, len(l)): for j in range(i, 0, -1): if l[j - 1] < l[j]: break l[j - 1], l[j] = l[j], l[j - 1] return l<commit_msg>Revert "Added implementation of selection sort" This reverts commit acf509f392d536c61c0dbed...
6ab4fc7af637976a92846005c4d1d35693e893a0
rivescript/__main__.py
rivescript/__main__.py
#!/usr/bin/env python from __future__ import absolute_import """RiveScript's __main__.py This script is executed when you run `python rivescript` directly. It does nothing more than load the interactive mode of RiveScript.""" __docformat__ = 'plaintext' from rivescript.interactive import interactive_mode if __nam...
#!/usr/bin/env python from __future__ import absolute_import """RiveScript's __main__.py This script is executed when you run `python rivescript` directly. It does nothing more than load the interactive mode of RiveScript.""" __docformat__ = 'plaintext' # Boilerplate to allow running as script directly. # See: htt...
Fix running the module directly
Fix running the module directly After rearranging the package structure, running the rivescript module directly stopped working due to relative import errors. Fix it so that it can be run directly while still working when imported as normal.
Python
mit
Dinh-Hung-Tu/rivescript-python,FujiMakoto/makoto-rivescript,aichaos/rivescript-python,FujiMakoto/makoto-rivescript,plasmashadow/rivescript-python,aichaos/rivescript-python,FujiMakoto/makoto-rivescript,plasmashadow/rivescript-python,aichaos/rivescript-python,plasmashadow/rivescript-python,Dinh-Hung-Tu/rivescript-python,...
#!/usr/bin/env python from __future__ import absolute_import """RiveScript's __main__.py This script is executed when you run `python rivescript` directly. It does nothing more than load the interactive mode of RiveScript.""" __docformat__ = 'plaintext' from rivescript.interactive import interactive_mode if __nam...
#!/usr/bin/env python from __future__ import absolute_import """RiveScript's __main__.py This script is executed when you run `python rivescript` directly. It does nothing more than load the interactive mode of RiveScript.""" __docformat__ = 'plaintext' # Boilerplate to allow running as script directly. # See: htt...
<commit_before>#!/usr/bin/env python from __future__ import absolute_import """RiveScript's __main__.py This script is executed when you run `python rivescript` directly. It does nothing more than load the interactive mode of RiveScript.""" __docformat__ = 'plaintext' from rivescript.interactive import interactive...
#!/usr/bin/env python from __future__ import absolute_import """RiveScript's __main__.py This script is executed when you run `python rivescript` directly. It does nothing more than load the interactive mode of RiveScript.""" __docformat__ = 'plaintext' # Boilerplate to allow running as script directly. # See: htt...
#!/usr/bin/env python from __future__ import absolute_import """RiveScript's __main__.py This script is executed when you run `python rivescript` directly. It does nothing more than load the interactive mode of RiveScript.""" __docformat__ = 'plaintext' from rivescript.interactive import interactive_mode if __nam...
<commit_before>#!/usr/bin/env python from __future__ import absolute_import """RiveScript's __main__.py This script is executed when you run `python rivescript` directly. It does nothing more than load the interactive mode of RiveScript.""" __docformat__ = 'plaintext' from rivescript.interactive import interactive...
79087444a858c33362c5a31200f158c6edda95df
humans/utils.py
humans/utils.py
from django.conf import settings from django.utils import timezone from datetime import datetime def key_state(key): results = settings.GPG_OBJ.import_keys(key).results keys = settings.GPG_OBJ.list_keys() if not results or not results[0]["fingerprint"]: return None, "invalid" else: sta...
from django.conf import settings from django.utils import timezone from datetime import datetime def key_state(key): results = settings.GPG_OBJ.import_keys(key).results keys = settings.GPG_OBJ.list_keys() if not results or not results[0]["fingerprint"]: return None, "invalid" else: sta...
Fix 'float is required' when key has no exp date
Fix 'float is required' when key has no exp date No expiration date was defaulting to "", which was throwing an error when creating the expire date timestamp.
Python
mit
whitesmith/hawkpost,whitesmith/hawkpost,whitesmith/hawkpost
from django.conf import settings from django.utils import timezone from datetime import datetime def key_state(key): results = settings.GPG_OBJ.import_keys(key).results keys = settings.GPG_OBJ.list_keys() if not results or not results[0]["fingerprint"]: return None, "invalid" else: sta...
from django.conf import settings from django.utils import timezone from datetime import datetime def key_state(key): results = settings.GPG_OBJ.import_keys(key).results keys = settings.GPG_OBJ.list_keys() if not results or not results[0]["fingerprint"]: return None, "invalid" else: sta...
<commit_before>from django.conf import settings from django.utils import timezone from datetime import datetime def key_state(key): results = settings.GPG_OBJ.import_keys(key).results keys = settings.GPG_OBJ.list_keys() if not results or not results[0]["fingerprint"]: return None, "invalid" el...
from django.conf import settings from django.utils import timezone from datetime import datetime def key_state(key): results = settings.GPG_OBJ.import_keys(key).results keys = settings.GPG_OBJ.list_keys() if not results or not results[0]["fingerprint"]: return None, "invalid" else: sta...
from django.conf import settings from django.utils import timezone from datetime import datetime def key_state(key): results = settings.GPG_OBJ.import_keys(key).results keys = settings.GPG_OBJ.list_keys() if not results or not results[0]["fingerprint"]: return None, "invalid" else: sta...
<commit_before>from django.conf import settings from django.utils import timezone from datetime import datetime def key_state(key): results = settings.GPG_OBJ.import_keys(key).results keys = settings.GPG_OBJ.list_keys() if not results or not results[0]["fingerprint"]: return None, "invalid" el...
6ebb2b021594633a66f2ff90121d4a39eec96cc8
test_project/test_project/urls.py
test_project/test_project/urls.py
from django.conf.urls import patterns, include, url # Uncomment the next two lines to enable the admin: # from django.contrib import admin # admin.autodiscover() urlpatterns = patterns('', url(r'^', include('test_app.urls')), )
from django.conf.urls import patterns, include, url from django.http import HttpResponseNotFound # Uncomment the next two lines to enable the admin: # from django.contrib import admin # admin.autodiscover() urlpatterns = patterns('', url(r'^', include('test_app.urls')), ) def custom404(request): return HttpR...
Use a custom 404 handler to avoid using the default template loader.
Use a custom 404 handler to avoid using the default template loader.
Python
mit
liberation/django-elasticsearch,leotsem/django-elasticsearch,sadnoodles/django-elasticsearch,alsur/django-elasticsearch
from django.conf.urls import patterns, include, url # Uncomment the next two lines to enable the admin: # from django.contrib import admin # admin.autodiscover() urlpatterns = patterns('', url(r'^', include('test_app.urls')), ) Use a custom 404 handler to avoid using the default template loader.
from django.conf.urls import patterns, include, url from django.http import HttpResponseNotFound # Uncomment the next two lines to enable the admin: # from django.contrib import admin # admin.autodiscover() urlpatterns = patterns('', url(r'^', include('test_app.urls')), ) def custom404(request): return HttpR...
<commit_before>from django.conf.urls import patterns, include, url # Uncomment the next two lines to enable the admin: # from django.contrib import admin # admin.autodiscover() urlpatterns = patterns('', url(r'^', include('test_app.urls')), ) <commit_msg>Use a custom 404 handler to avoid using the default templat...
from django.conf.urls import patterns, include, url from django.http import HttpResponseNotFound # Uncomment the next two lines to enable the admin: # from django.contrib import admin # admin.autodiscover() urlpatterns = patterns('', url(r'^', include('test_app.urls')), ) def custom404(request): return HttpR...
from django.conf.urls import patterns, include, url # Uncomment the next two lines to enable the admin: # from django.contrib import admin # admin.autodiscover() urlpatterns = patterns('', url(r'^', include('test_app.urls')), ) Use a custom 404 handler to avoid using the default template loader.from django.conf.u...
<commit_before>from django.conf.urls import patterns, include, url # Uncomment the next two lines to enable the admin: # from django.contrib import admin # admin.autodiscover() urlpatterns = patterns('', url(r'^', include('test_app.urls')), ) <commit_msg>Use a custom 404 handler to avoid using the default templat...
399e8ae093034ca69030f15dff8e9b570baf0cf5
paper_to_git/database.py
paper_to_git/database.py
from peewee import SqliteDatabase, OperationalError __all__ = [ 'BaseDatabase', ] class BaseDatabase: """The base database class to be used with Peewee. """ def __init__(self, url=None): self.url = url self.db = SqliteDatabase(None) def initialize(self, url=None): if...
from peewee import SqliteDatabase, OperationalError __all__ = [ 'BaseDatabase', ] class BaseDatabase: """The base database class to be used with Peewee. """ def __init__(self, url=None): self.url = url self.db = SqliteDatabase(None) def initialize(self, url=None): if...
Add model Sync to repo.
Add model Sync to repo.
Python
apache-2.0
maxking/paper-to-git,maxking/paper-to-git
from peewee import SqliteDatabase, OperationalError __all__ = [ 'BaseDatabase', ] class BaseDatabase: """The base database class to be used with Peewee. """ def __init__(self, url=None): self.url = url self.db = SqliteDatabase(None) def initialize(self, url=None): if...
from peewee import SqliteDatabase, OperationalError __all__ = [ 'BaseDatabase', ] class BaseDatabase: """The base database class to be used with Peewee. """ def __init__(self, url=None): self.url = url self.db = SqliteDatabase(None) def initialize(self, url=None): if...
<commit_before>from peewee import SqliteDatabase, OperationalError __all__ = [ 'BaseDatabase', ] class BaseDatabase: """The base database class to be used with Peewee. """ def __init__(self, url=None): self.url = url self.db = SqliteDatabase(None) def initialize(self, url=No...
from peewee import SqliteDatabase, OperationalError __all__ = [ 'BaseDatabase', ] class BaseDatabase: """The base database class to be used with Peewee. """ def __init__(self, url=None): self.url = url self.db = SqliteDatabase(None) def initialize(self, url=None): if...
from peewee import SqliteDatabase, OperationalError __all__ = [ 'BaseDatabase', ] class BaseDatabase: """The base database class to be used with Peewee. """ def __init__(self, url=None): self.url = url self.db = SqliteDatabase(None) def initialize(self, url=None): if...
<commit_before>from peewee import SqliteDatabase, OperationalError __all__ = [ 'BaseDatabase', ] class BaseDatabase: """The base database class to be used with Peewee. """ def __init__(self, url=None): self.url = url self.db = SqliteDatabase(None) def initialize(self, url=No...
579fa16e21b580f2469e3c098a26ec480ea0dba5
meetings/conferences/urls.py
meetings/conferences/urls.py
from django.conf.urls import url, include from conferences import views urlpatterns = [ url(r'^$', views.ConferenceList.as_view(), name='list'), url(r'^(?P<pk>[0-9]+)/$', views.ConferenceDetail.as_view(), name='detail'), url(r'^(?P<conference_id>[0-9]+)/submissions/', include('submissions.urls', na...
from django.conf.urls import url, include from conferences import views urlpatterns = [ url(r'^$', views.ConferenceList.as_view(), name='list'), url(r'^(?P<pk>[-\w]+)/$', views.ConferenceDetail.as_view(), name='detail'), url(r'^(?P<conference_id>[-\w]+)/submissions/', include('submissions.urls', na...
Change url config for slugs
Change url config for slugs
Python
apache-2.0
leodomingo/osf-meetings,jnayak1/osf-meetings,leodomingo/osf-meetings,jnayak1/osf-meetings,leodomingo/osf-meetings,jnayak1/osf-meetings,jnayak1/osf-meetings,leodomingo/osf-meetings
from django.conf.urls import url, include from conferences import views urlpatterns = [ url(r'^$', views.ConferenceList.as_view(), name='list'), url(r'^(?P<pk>[0-9]+)/$', views.ConferenceDetail.as_view(), name='detail'), url(r'^(?P<conference_id>[0-9]+)/submissions/', include('submissions.urls', na...
from django.conf.urls import url, include from conferences import views urlpatterns = [ url(r'^$', views.ConferenceList.as_view(), name='list'), url(r'^(?P<pk>[-\w]+)/$', views.ConferenceDetail.as_view(), name='detail'), url(r'^(?P<conference_id>[-\w]+)/submissions/', include('submissions.urls', na...
<commit_before>from django.conf.urls import url, include from conferences import views urlpatterns = [ url(r'^$', views.ConferenceList.as_view(), name='list'), url(r'^(?P<pk>[0-9]+)/$', views.ConferenceDetail.as_view(), name='detail'), url(r'^(?P<conference_id>[0-9]+)/submissions/', include('submis...
from django.conf.urls import url, include from conferences import views urlpatterns = [ url(r'^$', views.ConferenceList.as_view(), name='list'), url(r'^(?P<pk>[-\w]+)/$', views.ConferenceDetail.as_view(), name='detail'), url(r'^(?P<conference_id>[-\w]+)/submissions/', include('submissions.urls', na...
from django.conf.urls import url, include from conferences import views urlpatterns = [ url(r'^$', views.ConferenceList.as_view(), name='list'), url(r'^(?P<pk>[0-9]+)/$', views.ConferenceDetail.as_view(), name='detail'), url(r'^(?P<conference_id>[0-9]+)/submissions/', include('submissions.urls', na...
<commit_before>from django.conf.urls import url, include from conferences import views urlpatterns = [ url(r'^$', views.ConferenceList.as_view(), name='list'), url(r'^(?P<pk>[0-9]+)/$', views.ConferenceDetail.as_view(), name='detail'), url(r'^(?P<conference_id>[0-9]+)/submissions/', include('submis...
9ec465771ed3b6b1b0be85468f73086fcfdbb76d
siemstress/__init__.py
siemstress/__init__.py
__version__ = '0.4-alpha' __author__ = 'Dan Persons <dpersonsdev@gmail.com>' __license__ = 'MIT License' __github__ = 'https://github.com/dogoncouch/siemstress' __all__ = ['parsecore', 'querycore', 'query', 'triggercore', 'trigger'] import siemstress.query import siemstress.trigger
__version__ = '0.4-alpha' __author__ = 'Dan Persons <dpersonsdev@gmail.com>' __license__ = 'MIT License' __github__ = 'https://github.com/dogoncouch/siemstress' __all__ = ['parsecore', 'querycore', 'query', 'triggercore', 'trigger', 'util'] import siemstress.query import siemstress.trigger import siemstress.ut...
Add util module for DB testing
Add util module for DB testing
Python
mit
dogoncouch/siemstress
__version__ = '0.4-alpha' __author__ = 'Dan Persons <dpersonsdev@gmail.com>' __license__ = 'MIT License' __github__ = 'https://github.com/dogoncouch/siemstress' __all__ = ['parsecore', 'querycore', 'query', 'triggercore', 'trigger'] import siemstress.query import siemstress.trigger Add util module for DB testing
__version__ = '0.4-alpha' __author__ = 'Dan Persons <dpersonsdev@gmail.com>' __license__ = 'MIT License' __github__ = 'https://github.com/dogoncouch/siemstress' __all__ = ['parsecore', 'querycore', 'query', 'triggercore', 'trigger', 'util'] import siemstress.query import siemstress.trigger import siemstress.ut...
<commit_before>__version__ = '0.4-alpha' __author__ = 'Dan Persons <dpersonsdev@gmail.com>' __license__ = 'MIT License' __github__ = 'https://github.com/dogoncouch/siemstress' __all__ = ['parsecore', 'querycore', 'query', 'triggercore', 'trigger'] import siemstress.query import siemstress.trigger <commit_msg>Add util ...
__version__ = '0.4-alpha' __author__ = 'Dan Persons <dpersonsdev@gmail.com>' __license__ = 'MIT License' __github__ = 'https://github.com/dogoncouch/siemstress' __all__ = ['parsecore', 'querycore', 'query', 'triggercore', 'trigger', 'util'] import siemstress.query import siemstress.trigger import siemstress.ut...
__version__ = '0.4-alpha' __author__ = 'Dan Persons <dpersonsdev@gmail.com>' __license__ = 'MIT License' __github__ = 'https://github.com/dogoncouch/siemstress' __all__ = ['parsecore', 'querycore', 'query', 'triggercore', 'trigger'] import siemstress.query import siemstress.trigger Add util module for DB testing__vers...
<commit_before>__version__ = '0.4-alpha' __author__ = 'Dan Persons <dpersonsdev@gmail.com>' __license__ = 'MIT License' __github__ = 'https://github.com/dogoncouch/siemstress' __all__ = ['parsecore', 'querycore', 'query', 'triggercore', 'trigger'] import siemstress.query import siemstress.trigger <commit_msg>Add util ...
ab49b07f89dcc000201742275c7109597a032d9b
setup.py
setup.py
#!/usr/bin/env python import os import setuptools NAME = 'takeyourmeds' DATA = ( 'static', 'templates', ) def find_data(dirs): result = [] for x in dirs: for y, _, _ in os.walk(x): result.append(os.path.join(y, '*')) return result setuptools.setup( name=NAME, scripts...
#!/usr/bin/env python import os from setuptools import setup, find_packages NAME = 'takeyourmeds' DATA = ( 'static', 'templates', ) def find_data(dirs): result = [] for x in dirs: for y, _, _ in os.walk(x): result.append(os.path.join(y, '*')) return result setup( name=N...
Use find_packages so we actually install everything..
Use find_packages so we actually install everything..
Python
mit
takeyourmeds/takeyourmeds-web,takeyourmeds/takeyourmeds-web,takeyourmeds/takeyourmeds-web,takeyourmeds/takeyourmeds-web
#!/usr/bin/env python import os import setuptools NAME = 'takeyourmeds' DATA = ( 'static', 'templates', ) def find_data(dirs): result = [] for x in dirs: for y, _, _ in os.walk(x): result.append(os.path.join(y, '*')) return result setuptools.setup( name=NAME, scripts...
#!/usr/bin/env python import os from setuptools import setup, find_packages NAME = 'takeyourmeds' DATA = ( 'static', 'templates', ) def find_data(dirs): result = [] for x in dirs: for y, _, _ in os.walk(x): result.append(os.path.join(y, '*')) return result setup( name=N...
<commit_before>#!/usr/bin/env python import os import setuptools NAME = 'takeyourmeds' DATA = ( 'static', 'templates', ) def find_data(dirs): result = [] for x in dirs: for y, _, _ in os.walk(x): result.append(os.path.join(y, '*')) return result setuptools.setup( name=NA...
#!/usr/bin/env python import os from setuptools import setup, find_packages NAME = 'takeyourmeds' DATA = ( 'static', 'templates', ) def find_data(dirs): result = [] for x in dirs: for y, _, _ in os.walk(x): result.append(os.path.join(y, '*')) return result setup( name=N...
#!/usr/bin/env python import os import setuptools NAME = 'takeyourmeds' DATA = ( 'static', 'templates', ) def find_data(dirs): result = [] for x in dirs: for y, _, _ in os.walk(x): result.append(os.path.join(y, '*')) return result setuptools.setup( name=NAME, scripts...
<commit_before>#!/usr/bin/env python import os import setuptools NAME = 'takeyourmeds' DATA = ( 'static', 'templates', ) def find_data(dirs): result = [] for x in dirs: for y, _, _ in os.walk(x): result.append(os.path.join(y, '*')) return result setuptools.setup( name=NA...
5fc27215618ac6e160b193e82dea4f222bfeaaf2
setup.py
setup.py
""" setup.py """ __author__ = 'Gavin M. Roy' __email__ = 'gmr@myyearbook.com' __since__ = '2011-09-13' from hockeyapp import __version__ from setuptools import setup long_description = """Python client for the HockeyApp.net API""" setup(name='hockeyapp', version=__version__, description="HockeyApp.net AP...
""" setup.py """ __author__ = 'Gavin M. Roy' __email__ = 'gmr@myyearbook.com' __since__ = '2011-09-13' from hockeyapp import __version__ from setuptools import setup long_description = """Python client for the HockeyApp.net API""" setup(name='hockeyapp', version=__version__, description="HockeyApp.net AP...
Add argparse as a dependency to setyp.py
Add argparse as a dependency to setyp.py Needed for python 2.6 Change-Id: I87df47c7b814024b1ec91d227f45762711de03c0
Python
bsd-3-clause
gmr/hockeyapp,vkotovv/hockeyapp
""" setup.py """ __author__ = 'Gavin M. Roy' __email__ = 'gmr@myyearbook.com' __since__ = '2011-09-13' from hockeyapp import __version__ from setuptools import setup long_description = """Python client for the HockeyApp.net API""" setup(name='hockeyapp', version=__version__, description="HockeyApp.net AP...
""" setup.py """ __author__ = 'Gavin M. Roy' __email__ = 'gmr@myyearbook.com' __since__ = '2011-09-13' from hockeyapp import __version__ from setuptools import setup long_description = """Python client for the HockeyApp.net API""" setup(name='hockeyapp', version=__version__, description="HockeyApp.net AP...
<commit_before>""" setup.py """ __author__ = 'Gavin M. Roy' __email__ = 'gmr@myyearbook.com' __since__ = '2011-09-13' from hockeyapp import __version__ from setuptools import setup long_description = """Python client for the HockeyApp.net API""" setup(name='hockeyapp', version=__version__, description="H...
""" setup.py """ __author__ = 'Gavin M. Roy' __email__ = 'gmr@myyearbook.com' __since__ = '2011-09-13' from hockeyapp import __version__ from setuptools import setup long_description = """Python client for the HockeyApp.net API""" setup(name='hockeyapp', version=__version__, description="HockeyApp.net AP...
""" setup.py """ __author__ = 'Gavin M. Roy' __email__ = 'gmr@myyearbook.com' __since__ = '2011-09-13' from hockeyapp import __version__ from setuptools import setup long_description = """Python client for the HockeyApp.net API""" setup(name='hockeyapp', version=__version__, description="HockeyApp.net AP...
<commit_before>""" setup.py """ __author__ = 'Gavin M. Roy' __email__ = 'gmr@myyearbook.com' __since__ = '2011-09-13' from hockeyapp import __version__ from setuptools import setup long_description = """Python client for the HockeyApp.net API""" setup(name='hockeyapp', version=__version__, description="H...
8472078e29ca70843e19e24b6c3290dab20e80de
setup.py
setup.py
from setuptools import setup, find_packages # Parse the version from the mapbox module. with open('mapboxcli/__init__.py') as f: for line in f: if line.find("__version__") >= 0: version = line.split("=")[1].strip() version = version.strip('"') version = version.strip("'...
from setuptools import setup, find_packages # Parse the version from the mapbox module. with open('mapboxcli/__init__.py') as f: for line in f: if line.find("__version__") >= 0: version = line.split("=")[1].strip() version = version.strip('"') version = version.strip("'...
Add mock to test extras
Add mock to test extras
Python
mit
mapbox/mapbox-cli-py
from setuptools import setup, find_packages # Parse the version from the mapbox module. with open('mapboxcli/__init__.py') as f: for line in f: if line.find("__version__") >= 0: version = line.split("=")[1].strip() version = version.strip('"') version = version.strip("'...
from setuptools import setup, find_packages # Parse the version from the mapbox module. with open('mapboxcli/__init__.py') as f: for line in f: if line.find("__version__") >= 0: version = line.split("=")[1].strip() version = version.strip('"') version = version.strip("'...
<commit_before>from setuptools import setup, find_packages # Parse the version from the mapbox module. with open('mapboxcli/__init__.py') as f: for line in f: if line.find("__version__") >= 0: version = line.split("=")[1].strip() version = version.strip('"') version = v...
from setuptools import setup, find_packages # Parse the version from the mapbox module. with open('mapboxcli/__init__.py') as f: for line in f: if line.find("__version__") >= 0: version = line.split("=")[1].strip() version = version.strip('"') version = version.strip("'...
from setuptools import setup, find_packages # Parse the version from the mapbox module. with open('mapboxcli/__init__.py') as f: for line in f: if line.find("__version__") >= 0: version = line.split("=")[1].strip() version = version.strip('"') version = version.strip("'...
<commit_before>from setuptools import setup, find_packages # Parse the version from the mapbox module. with open('mapboxcli/__init__.py') as f: for line in f: if line.find("__version__") >= 0: version = line.split("=")[1].strip() version = version.strip('"') version = v...
540e58ca66783bf04fa5dee0b447bb3764cd087a
setup.py
setup.py
from setuptools import setup setup( name="ftfy", version='3.3.0', maintainer='Luminoso Technologies, Inc.', maintainer_email='info@luminoso.com', license="MIT", url='http://github.com/LuminosoInsight/python-ftfy', platforms=["any"], description="Fixes some problems with Unicode text aft...
from setuptools import setup setup( name="ftfy", version='3.3.0', maintainer='Luminoso Technologies, Inc.', maintainer_email='info@luminoso.com', license="MIT", url='http://github.com/LuminosoInsight/python-ftfy', platforms=["any"], description="Fixes some problems with Unicode text aft...
Stop claiming support for 2.6
Stop claiming support for 2.6 I don't even have a Python 2.6 interpreter.
Python
mit
LuminosoInsight/python-ftfy
from setuptools import setup setup( name="ftfy", version='3.3.0', maintainer='Luminoso Technologies, Inc.', maintainer_email='info@luminoso.com', license="MIT", url='http://github.com/LuminosoInsight/python-ftfy', platforms=["any"], description="Fixes some problems with Unicode text aft...
from setuptools import setup setup( name="ftfy", version='3.3.0', maintainer='Luminoso Technologies, Inc.', maintainer_email='info@luminoso.com', license="MIT", url='http://github.com/LuminosoInsight/python-ftfy', platforms=["any"], description="Fixes some problems with Unicode text aft...
<commit_before>from setuptools import setup setup( name="ftfy", version='3.3.0', maintainer='Luminoso Technologies, Inc.', maintainer_email='info@luminoso.com', license="MIT", url='http://github.com/LuminosoInsight/python-ftfy', platforms=["any"], description="Fixes some problems with U...
from setuptools import setup setup( name="ftfy", version='3.3.0', maintainer='Luminoso Technologies, Inc.', maintainer_email='info@luminoso.com', license="MIT", url='http://github.com/LuminosoInsight/python-ftfy', platforms=["any"], description="Fixes some problems with Unicode text aft...
from setuptools import setup setup( name="ftfy", version='3.3.0', maintainer='Luminoso Technologies, Inc.', maintainer_email='info@luminoso.com', license="MIT", url='http://github.com/LuminosoInsight/python-ftfy', platforms=["any"], description="Fixes some problems with Unicode text aft...
<commit_before>from setuptools import setup setup( name="ftfy", version='3.3.0', maintainer='Luminoso Technologies, Inc.', maintainer_email='info@luminoso.com', license="MIT", url='http://github.com/LuminosoInsight/python-ftfy', platforms=["any"], description="Fixes some problems with U...
576aaf93c8d8ed5c81bef85d0561609252de7169
setup.py
setup.py
from setuptools import setup, find_packages import simple_virtuoso_migrate setup( name = "simple-virtuoso-migrate", version = simple_virtuoso_migrate.SIMPLE_VIRTUOSO_MIGRATE_VERSION, packages = find_packages(), author = "Percy Rivera", author_email = "priverasalas@gmail.com", description = "si...
from setuptools import setup, find_packages import simple_virtuoso_migrate setup( name = "simple-virtuoso-migrate", version = simple_virtuoso_migrate.SIMPLE_VIRTUOSO_MIGRATE_VERSION, packages = find_packages(), author = "Percy Rivera", author_email = "priverasalas@gmail.com", description = "si...
Upgrade versions of test tools
Upgrade versions of test tools
Python
apache-2.0
globocom/simple-virtuoso-migrate,globocom/simple-virtuoso-migrate
from setuptools import setup, find_packages import simple_virtuoso_migrate setup( name = "simple-virtuoso-migrate", version = simple_virtuoso_migrate.SIMPLE_VIRTUOSO_MIGRATE_VERSION, packages = find_packages(), author = "Percy Rivera", author_email = "priverasalas@gmail.com", description = "si...
from setuptools import setup, find_packages import simple_virtuoso_migrate setup( name = "simple-virtuoso-migrate", version = simple_virtuoso_migrate.SIMPLE_VIRTUOSO_MIGRATE_VERSION, packages = find_packages(), author = "Percy Rivera", author_email = "priverasalas@gmail.com", description = "si...
<commit_before>from setuptools import setup, find_packages import simple_virtuoso_migrate setup( name = "simple-virtuoso-migrate", version = simple_virtuoso_migrate.SIMPLE_VIRTUOSO_MIGRATE_VERSION, packages = find_packages(), author = "Percy Rivera", author_email = "priverasalas@gmail.com", de...
from setuptools import setup, find_packages import simple_virtuoso_migrate setup( name = "simple-virtuoso-migrate", version = simple_virtuoso_migrate.SIMPLE_VIRTUOSO_MIGRATE_VERSION, packages = find_packages(), author = "Percy Rivera", author_email = "priverasalas@gmail.com", description = "si...
from setuptools import setup, find_packages import simple_virtuoso_migrate setup( name = "simple-virtuoso-migrate", version = simple_virtuoso_migrate.SIMPLE_VIRTUOSO_MIGRATE_VERSION, packages = find_packages(), author = "Percy Rivera", author_email = "priverasalas@gmail.com", description = "si...
<commit_before>from setuptools import setup, find_packages import simple_virtuoso_migrate setup( name = "simple-virtuoso-migrate", version = simple_virtuoso_migrate.SIMPLE_VIRTUOSO_MIGRATE_VERSION, packages = find_packages(), author = "Percy Rivera", author_email = "priverasalas@gmail.com", de...
977ffecdef01bd5041c3f206dbf311211f03a054
setup.py
setup.py
''' (c) 2014 Farsight Security Inc. (c) 2010 Victor Ng Released under the MIT license. See license.txt. ''' from setuptools import setup from setuptools.extension import Extension from Cython.Distutils import build_ext from os.path import join import os ext_modules=[ Extension("mmaparray", ex...
''' (c) 2014 Farsight Security Inc. (c) 2010 Victor Ng Released under the MIT license. See license.txt. ''' from setuptools import setup from setuptools.extension import Extension from Cython.Distutils import build_ext from os.path import join import os ext_modules=[ Extension("mmaparray", ex...
Add _GNU_SOURCE definition to ext_module
Add _GNU_SOURCE definition to ext_module
Python
mit
farsightsec/mmaparray,farsightsec/mmaparray
''' (c) 2014 Farsight Security Inc. (c) 2010 Victor Ng Released under the MIT license. See license.txt. ''' from setuptools import setup from setuptools.extension import Extension from Cython.Distutils import build_ext from os.path import join import os ext_modules=[ Extension("mmaparray", ex...
''' (c) 2014 Farsight Security Inc. (c) 2010 Victor Ng Released under the MIT license. See license.txt. ''' from setuptools import setup from setuptools.extension import Extension from Cython.Distutils import build_ext from os.path import join import os ext_modules=[ Extension("mmaparray", ex...
<commit_before>''' (c) 2014 Farsight Security Inc. (c) 2010 Victor Ng Released under the MIT license. See license.txt. ''' from setuptools import setup from setuptools.extension import Extension from Cython.Distutils import build_ext from os.path import join import os ext_modules=[ Extension("mmaparray", ...
''' (c) 2014 Farsight Security Inc. (c) 2010 Victor Ng Released under the MIT license. See license.txt. ''' from setuptools import setup from setuptools.extension import Extension from Cython.Distutils import build_ext from os.path import join import os ext_modules=[ Extension("mmaparray", ex...
''' (c) 2014 Farsight Security Inc. (c) 2010 Victor Ng Released under the MIT license. See license.txt. ''' from setuptools import setup from setuptools.extension import Extension from Cython.Distutils import build_ext from os.path import join import os ext_modules=[ Extension("mmaparray", ex...
<commit_before>''' (c) 2014 Farsight Security Inc. (c) 2010 Victor Ng Released under the MIT license. See license.txt. ''' from setuptools import setup from setuptools.extension import Extension from Cython.Distutils import build_ext from os.path import join import os ext_modules=[ Extension("mmaparray", ...
53a597539c5f6ddbec04e51bfafb0402c4e31fdc
setup.py
setup.py
#!/usr/bin/env python # -*- coding: utf-8 -*- # # License: MIT # vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: """ django twitter bootstrap form setup script """ __author__ = "Guillaume Luchet <guillaume@geelweb.org>" __version__ = "0.1" import sys from setuptools import setup, find_packages author_data ...
#!/usr/bin/env python # -*- coding: utf-8 -*- # # License: MIT # vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: """ django twitter bootstrap form setup script """ __author__ = "Guillaume Luchet <guillaume@geelweb.org>" __version__ = "0.1" import sys from setuptools import setup, find_packages author_data ...
Add keywords and update package name
Add keywords and update package name
Python
mit
geelweb/django-twitter-bootstrap-form,geelweb/django-twitter-bootstrap-form
#!/usr/bin/env python # -*- coding: utf-8 -*- # # License: MIT # vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: """ django twitter bootstrap form setup script """ __author__ = "Guillaume Luchet <guillaume@geelweb.org>" __version__ = "0.1" import sys from setuptools import setup, find_packages author_data ...
#!/usr/bin/env python # -*- coding: utf-8 -*- # # License: MIT # vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: """ django twitter bootstrap form setup script """ __author__ = "Guillaume Luchet <guillaume@geelweb.org>" __version__ = "0.1" import sys from setuptools import setup, find_packages author_data ...
<commit_before>#!/usr/bin/env python # -*- coding: utf-8 -*- # # License: MIT # vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: """ django twitter bootstrap form setup script """ __author__ = "Guillaume Luchet <guillaume@geelweb.org>" __version__ = "0.1" import sys from setuptools import setup, find_package...
#!/usr/bin/env python # -*- coding: utf-8 -*- # # License: MIT # vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: """ django twitter bootstrap form setup script """ __author__ = "Guillaume Luchet <guillaume@geelweb.org>" __version__ = "0.1" import sys from setuptools import setup, find_packages author_data ...
#!/usr/bin/env python # -*- coding: utf-8 -*- # # License: MIT # vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: """ django twitter bootstrap form setup script """ __author__ = "Guillaume Luchet <guillaume@geelweb.org>" __version__ = "0.1" import sys from setuptools import setup, find_packages author_data ...
<commit_before>#!/usr/bin/env python # -*- coding: utf-8 -*- # # License: MIT # vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: """ django twitter bootstrap form setup script """ __author__ = "Guillaume Luchet <guillaume@geelweb.org>" __version__ = "0.1" import sys from setuptools import setup, find_package...
c4d9508014f1a0deeb2fbe14e9ee693df849ebdb
setup.py
setup.py
# -*- coding: utf-8 -*- from setuptools import setup, find_packages install_requires = ( 'cnx-epub', 'cnx-query-grammar', 'colander', 'openstax-accounts>=0.5', 'PasteDeploy', 'pyramid', 'psycopg2>=2.5', 'requests', 'tzlocal', 'waitress', ...
# -*- coding: utf-8 -*- from setuptools import setup, find_packages install_requires = ( 'cnx-epub', 'cnx-query-grammar', 'colander', 'openstax-accounts>=0.5', 'PasteDeploy', 'pyramid', 'psycopg2>=2.5', 'requests', 'tzlocal', 'waitress', ...
Exclude tests and include sql files in cnx-authoring package
Exclude tests and include sql files in cnx-authoring package Remove include_package_data=True as it looks for MANIFEST.in instead of using the package_data that we specified in setup.py. Tested by running: ```bash rm -rf cnx_authoring.egg-info dist python setup.py sdist ``` Close #51
Python
agpl-3.0
Connexions/cnx-authoring
# -*- coding: utf-8 -*- from setuptools import setup, find_packages install_requires = ( 'cnx-epub', 'cnx-query-grammar', 'colander', 'openstax-accounts>=0.5', 'PasteDeploy', 'pyramid', 'psycopg2>=2.5', 'requests', 'tzlocal', 'waitress', ...
# -*- coding: utf-8 -*- from setuptools import setup, find_packages install_requires = ( 'cnx-epub', 'cnx-query-grammar', 'colander', 'openstax-accounts>=0.5', 'PasteDeploy', 'pyramid', 'psycopg2>=2.5', 'requests', 'tzlocal', 'waitress', ...
<commit_before># -*- coding: utf-8 -*- from setuptools import setup, find_packages install_requires = ( 'cnx-epub', 'cnx-query-grammar', 'colander', 'openstax-accounts>=0.5', 'PasteDeploy', 'pyramid', 'psycopg2>=2.5', 'requests', 'tzlocal', ...
# -*- coding: utf-8 -*- from setuptools import setup, find_packages install_requires = ( 'cnx-epub', 'cnx-query-grammar', 'colander', 'openstax-accounts>=0.5', 'PasteDeploy', 'pyramid', 'psycopg2>=2.5', 'requests', 'tzlocal', 'waitress', ...
# -*- coding: utf-8 -*- from setuptools import setup, find_packages install_requires = ( 'cnx-epub', 'cnx-query-grammar', 'colander', 'openstax-accounts>=0.5', 'PasteDeploy', 'pyramid', 'psycopg2>=2.5', 'requests', 'tzlocal', 'waitress', ...
<commit_before># -*- coding: utf-8 -*- from setuptools import setup, find_packages install_requires = ( 'cnx-epub', 'cnx-query-grammar', 'colander', 'openstax-accounts>=0.5', 'PasteDeploy', 'pyramid', 'psycopg2>=2.5', 'requests', 'tzlocal', ...
450e9415f90c92d64f814c363248db8250c5a8f2
rest_framework_json_api/mixins.py
rest_framework_json_api/mixins.py
""" Class Mixins. """ class MultipleIDMixin(object): """ Override get_queryset for multiple id support """ def get_queryset(self): """ Override :meth:``get_queryset`` """ ids = dict(getattr(self.request, 'query_params', self.request.QUERY_PARAMS)).get('ids[]') if...
""" Class Mixins. """ class MultipleIDMixin(object): """ Override get_queryset for multiple id support """ def get_queryset(self): """ Override :meth:``get_queryset`` """ if hasattr(self.request, 'query_params'): ids = dict(self.request.query_params).get('ids...
Fix for deprecation of `request.QUERY_PARAMS` in DRF 3.2`
Fix for deprecation of `request.QUERY_PARAMS` in DRF 3.2`
Python
bsd-2-clause
grapo/django-rest-framework-json-api,aquavitae/django-rest-framework-json-api,scottfisk/django-rest-framework-json-api,Instawork/django-rest-framework-json-api,lukaslundgren/django-rest-framework-json-api,django-json-api/django-rest-framework-json-api,leo-naeka/django-rest-framework-json-api,django-json-api/django-rest...
""" Class Mixins. """ class MultipleIDMixin(object): """ Override get_queryset for multiple id support """ def get_queryset(self): """ Override :meth:``get_queryset`` """ ids = dict(getattr(self.request, 'query_params', self.request.QUERY_PARAMS)).get('ids[]') if...
""" Class Mixins. """ class MultipleIDMixin(object): """ Override get_queryset for multiple id support """ def get_queryset(self): """ Override :meth:``get_queryset`` """ if hasattr(self.request, 'query_params'): ids = dict(self.request.query_params).get('ids...
<commit_before>""" Class Mixins. """ class MultipleIDMixin(object): """ Override get_queryset for multiple id support """ def get_queryset(self): """ Override :meth:``get_queryset`` """ ids = dict(getattr(self.request, 'query_params', self.request.QUERY_PARAMS)).get('ids...
""" Class Mixins. """ class MultipleIDMixin(object): """ Override get_queryset for multiple id support """ def get_queryset(self): """ Override :meth:``get_queryset`` """ if hasattr(self.request, 'query_params'): ids = dict(self.request.query_params).get('ids...
""" Class Mixins. """ class MultipleIDMixin(object): """ Override get_queryset for multiple id support """ def get_queryset(self): """ Override :meth:``get_queryset`` """ ids = dict(getattr(self.request, 'query_params', self.request.QUERY_PARAMS)).get('ids[]') if...
<commit_before>""" Class Mixins. """ class MultipleIDMixin(object): """ Override get_queryset for multiple id support """ def get_queryset(self): """ Override :meth:``get_queryset`` """ ids = dict(getattr(self.request, 'query_params', self.request.QUERY_PARAMS)).get('ids...
dd11bcd4011ba911642b2e13d0db2440f749afa1
setup.py
setup.py
try: from setuptools import setup except ImportError: from distutils.core import setup Version = "0.01" setup(name = "coverage-reporter", version = Version, description = "Coverage reporting tool", long_description="Allows more complicated reporting of information from figleaf and other...
try: from setuptools import setup except ImportError: from distutils.core import setup Version = "0.01" setup(name = "coverage-reporter", version = Version, description = "Coverage reporting tool", long_description="Allows more complicated reporting of information from figleaf and other...
Mark this project as using the MIT License.
Mark this project as using the MIT License.
Python
mit
dugan/coverage-reporter
try: from setuptools import setup except ImportError: from distutils.core import setup Version = "0.01" setup(name = "coverage-reporter", version = Version, description = "Coverage reporting tool", long_description="Allows more complicated reporting of information from figleaf and other...
try: from setuptools import setup except ImportError: from distutils.core import setup Version = "0.01" setup(name = "coverage-reporter", version = Version, description = "Coverage reporting tool", long_description="Allows more complicated reporting of information from figleaf and other...
<commit_before> try: from setuptools import setup except ImportError: from distutils.core import setup Version = "0.01" setup(name = "coverage-reporter", version = Version, description = "Coverage reporting tool", long_description="Allows more complicated reporting of information from fi...
try: from setuptools import setup except ImportError: from distutils.core import setup Version = "0.01" setup(name = "coverage-reporter", version = Version, description = "Coverage reporting tool", long_description="Allows more complicated reporting of information from figleaf and other...
try: from setuptools import setup except ImportError: from distutils.core import setup Version = "0.01" setup(name = "coverage-reporter", version = Version, description = "Coverage reporting tool", long_description="Allows more complicated reporting of information from figleaf and other...
<commit_before> try: from setuptools import setup except ImportError: from distutils.core import setup Version = "0.01" setup(name = "coverage-reporter", version = Version, description = "Coverage reporting tool", long_description="Allows more complicated reporting of information from fi...
9fcd338b568ec46ac16661a9aa497e619c092eeb
setup.py
setup.py
from distutils.core import setup setup(name='dshelpers', version='1.1.0', description="Provides some helpers functions used by the ScraperWiki Data Services team.", long_description="Provides some helpers functions used by the ScraperWiki Data Services team.", classifiers=["Development Status ::...
from distutils.core import setup setup(name='dshelpers', version='1.1.0', description="Provides some helpers functions used by the ScraperWiki Data Services team.", long_description="Provides some helpers functions used by the ScraperWiki Data Services team.", classifiers=["Development Status ::...
Change URL from ScraperWiki > source
Change URL from ScraperWiki > source
Python
bsd-2-clause
scraperwiki/data-services-helpers
from distutils.core import setup setup(name='dshelpers', version='1.1.0', description="Provides some helpers functions used by the ScraperWiki Data Services team.", long_description="Provides some helpers functions used by the ScraperWiki Data Services team.", classifiers=["Development Status ::...
from distutils.core import setup setup(name='dshelpers', version='1.1.0', description="Provides some helpers functions used by the ScraperWiki Data Services team.", long_description="Provides some helpers functions used by the ScraperWiki Data Services team.", classifiers=["Development Status ::...
<commit_before>from distutils.core import setup setup(name='dshelpers', version='1.1.0', description="Provides some helpers functions used by the ScraperWiki Data Services team.", long_description="Provides some helpers functions used by the ScraperWiki Data Services team.", classifiers=["Develo...
from distutils.core import setup setup(name='dshelpers', version='1.1.0', description="Provides some helpers functions used by the ScraperWiki Data Services team.", long_description="Provides some helpers functions used by the ScraperWiki Data Services team.", classifiers=["Development Status ::...
from distutils.core import setup setup(name='dshelpers', version='1.1.0', description="Provides some helpers functions used by the ScraperWiki Data Services team.", long_description="Provides some helpers functions used by the ScraperWiki Data Services team.", classifiers=["Development Status ::...
<commit_before>from distutils.core import setup setup(name='dshelpers', version='1.1.0', description="Provides some helpers functions used by the ScraperWiki Data Services team.", long_description="Provides some helpers functions used by the ScraperWiki Data Services team.", classifiers=["Develo...
d1951085f60f2d91d5ab0b42d83fbd5733bfa706
setup.py
setup.py
from setuptools import setup, find_packages setup( name = 'slf-project-one', version = '0.1dev', packages = find_packages(), license = 'BSD', long_description = open('README.rst').read(), )
from setuptools import setup, find_packages setup( name = 'slf-project-one', version = '0.1dev', packages = find_packages(), license = 'BSD', long_description = open('README.rst').read(), # This causes the main function in project_one to be run when the # project_one command is executed. ...
Configure project_one as a script.
Configure project_one as a script. This automatically runs main() when typing 'project_one' in the command line (after installing).
Python
bsd-3-clause
dokterbob/slf-project-one
from setuptools import setup, find_packages setup( name = 'slf-project-one', version = '0.1dev', packages = find_packages(), license = 'BSD', long_description = open('README.rst').read(), ) Configure project_one as a script. This automatically runs main() when typing 'project_one' in the command l...
from setuptools import setup, find_packages setup( name = 'slf-project-one', version = '0.1dev', packages = find_packages(), license = 'BSD', long_description = open('README.rst').read(), # This causes the main function in project_one to be run when the # project_one command is executed. ...
<commit_before>from setuptools import setup, find_packages setup( name = 'slf-project-one', version = '0.1dev', packages = find_packages(), license = 'BSD', long_description = open('README.rst').read(), ) <commit_msg>Configure project_one as a script. This automatically runs main() when typing 'pr...
from setuptools import setup, find_packages setup( name = 'slf-project-one', version = '0.1dev', packages = find_packages(), license = 'BSD', long_description = open('README.rst').read(), # This causes the main function in project_one to be run when the # project_one command is executed. ...
from setuptools import setup, find_packages setup( name = 'slf-project-one', version = '0.1dev', packages = find_packages(), license = 'BSD', long_description = open('README.rst').read(), ) Configure project_one as a script. This automatically runs main() when typing 'project_one' in the command l...
<commit_before>from setuptools import setup, find_packages setup( name = 'slf-project-one', version = '0.1dev', packages = find_packages(), license = 'BSD', long_description = open('README.rst').read(), ) <commit_msg>Configure project_one as a script. This automatically runs main() when typing 'pr...
a7e6df9654bb526ed3d88d44fef44bf2a9ae493d
setup.py
setup.py
from setuptools import setup version = "0.3.1" setup( name="arxiv", version=version, packages=["arxiv"], # dependencies install_requires=[ 'feedparser', 'requests', 'pytest-runner', ], tests_require=[ "pytest", ], # metadata for upload to PyPI a...
from setuptools import setup version = "0.4.0" setup( name="arxiv", version=version, packages=["arxiv"], # dependencies install_requires=[ 'feedparser', 'requests', 'pytest-runner', ], tests_require=[ "pytest", ], # metadata for upload to PyPI a...
Increment version to 0.4.0 for release
Increment version to 0.4.0 for release
Python
mit
lukasschwab/arxiv.py
from setuptools import setup version = "0.3.1" setup( name="arxiv", version=version, packages=["arxiv"], # dependencies install_requires=[ 'feedparser', 'requests', 'pytest-runner', ], tests_require=[ "pytest", ], # metadata for upload to PyPI a...
from setuptools import setup version = "0.4.0" setup( name="arxiv", version=version, packages=["arxiv"], # dependencies install_requires=[ 'feedparser', 'requests', 'pytest-runner', ], tests_require=[ "pytest", ], # metadata for upload to PyPI a...
<commit_before>from setuptools import setup version = "0.3.1" setup( name="arxiv", version=version, packages=["arxiv"], # dependencies install_requires=[ 'feedparser', 'requests', 'pytest-runner', ], tests_require=[ "pytest", ], # metadata for uploa...
from setuptools import setup version = "0.4.0" setup( name="arxiv", version=version, packages=["arxiv"], # dependencies install_requires=[ 'feedparser', 'requests', 'pytest-runner', ], tests_require=[ "pytest", ], # metadata for upload to PyPI a...
from setuptools import setup version = "0.3.1" setup( name="arxiv", version=version, packages=["arxiv"], # dependencies install_requires=[ 'feedparser', 'requests', 'pytest-runner', ], tests_require=[ "pytest", ], # metadata for upload to PyPI a...
<commit_before>from setuptools import setup version = "0.3.1" setup( name="arxiv", version=version, packages=["arxiv"], # dependencies install_requires=[ 'feedparser', 'requests', 'pytest-runner', ], tests_require=[ "pytest", ], # metadata for uploa...
f562e0d2f258df59b9bfb74a5d18424a42bea65d
seleniumbase/config/proxy_list.py
seleniumbase/config/proxy_list.py
""" Proxy Server "Phone Book". Simplify running browser tests through a proxy server by adding your frequently-used proxies here. Now you can do something like this on the command line: "pytest SOME_TEST.py --proxy=proxy1" Format of PROXY_LIST server entries: * "ip_address:port" OR "username:password@ip_address:po...
""" Proxy Server "Phone Book". Simplify running browser tests through a proxy server by adding your frequently-used proxies here. Now you can do something like this on the command line: "pytest SOME_TEST.py --proxy=proxy1" Format of PROXY_LIST server entries: * "ip_address:port" OR "username:password@ip_address:po...
Update the proxy server examples
Update the proxy server examples
Python
mit
seleniumbase/SeleniumBase,mdmintz/SeleniumBase,mdmintz/SeleniumBase,mdmintz/SeleniumBase,seleniumbase/SeleniumBase,seleniumbase/SeleniumBase,mdmintz/SeleniumBase,seleniumbase/SeleniumBase
""" Proxy Server "Phone Book". Simplify running browser tests through a proxy server by adding your frequently-used proxies here. Now you can do something like this on the command line: "pytest SOME_TEST.py --proxy=proxy1" Format of PROXY_LIST server entries: * "ip_address:port" OR "username:password@ip_address:po...
""" Proxy Server "Phone Book". Simplify running browser tests through a proxy server by adding your frequently-used proxies here. Now you can do something like this on the command line: "pytest SOME_TEST.py --proxy=proxy1" Format of PROXY_LIST server entries: * "ip_address:port" OR "username:password@ip_address:po...
<commit_before>""" Proxy Server "Phone Book". Simplify running browser tests through a proxy server by adding your frequently-used proxies here. Now you can do something like this on the command line: "pytest SOME_TEST.py --proxy=proxy1" Format of PROXY_LIST server entries: * "ip_address:port" OR "username:passwor...
""" Proxy Server "Phone Book". Simplify running browser tests through a proxy server by adding your frequently-used proxies here. Now you can do something like this on the command line: "pytest SOME_TEST.py --proxy=proxy1" Format of PROXY_LIST server entries: * "ip_address:port" OR "username:password@ip_address:po...
""" Proxy Server "Phone Book". Simplify running browser tests through a proxy server by adding your frequently-used proxies here. Now you can do something like this on the command line: "pytest SOME_TEST.py --proxy=proxy1" Format of PROXY_LIST server entries: * "ip_address:port" OR "username:password@ip_address:po...
<commit_before>""" Proxy Server "Phone Book". Simplify running browser tests through a proxy server by adding your frequently-used proxies here. Now you can do something like this on the command line: "pytest SOME_TEST.py --proxy=proxy1" Format of PROXY_LIST server entries: * "ip_address:port" OR "username:passwor...
296223d370baea719c56726d71118ec0d4a8a665
setup.py
setup.py
import os import sys from setuptools import setup, find_packages os.chdir(os.path.dirname(sys.argv[0]) or ".") import libsongtext version = '%s.%s.%s' % libsongtext.__version__ try: long_description = open('README.rst', 'U').read() except IOError: long_description = 'See https://github.com/ysim/songtext' s...
import os import sys from setuptools import setup, find_packages os.chdir(os.path.dirname(sys.argv[0]) or ".") import libsongtext version = '%s.%s.%s' % libsongtext.__version__ try: long_description = open('README.rst', 'U').read() except IOError: long_description = 'See https://github.com/ysim/songtext' s...
Upgrade lxml package from 4.3.0 -> 4.3.4
Upgrade lxml package from 4.3.0 -> 4.3.4
Python
bsd-2-clause
ysim/songtext,ysim/songtext
import os import sys from setuptools import setup, find_packages os.chdir(os.path.dirname(sys.argv[0]) or ".") import libsongtext version = '%s.%s.%s' % libsongtext.__version__ try: long_description = open('README.rst', 'U').read() except IOError: long_description = 'See https://github.com/ysim/songtext' s...
import os import sys from setuptools import setup, find_packages os.chdir(os.path.dirname(sys.argv[0]) or ".") import libsongtext version = '%s.%s.%s' % libsongtext.__version__ try: long_description = open('README.rst', 'U').read() except IOError: long_description = 'See https://github.com/ysim/songtext' s...
<commit_before>import os import sys from setuptools import setup, find_packages os.chdir(os.path.dirname(sys.argv[0]) or ".") import libsongtext version = '%s.%s.%s' % libsongtext.__version__ try: long_description = open('README.rst', 'U').read() except IOError: long_description = 'See https://github.com/ys...
import os import sys from setuptools import setup, find_packages os.chdir(os.path.dirname(sys.argv[0]) or ".") import libsongtext version = '%s.%s.%s' % libsongtext.__version__ try: long_description = open('README.rst', 'U').read() except IOError: long_description = 'See https://github.com/ysim/songtext' s...
import os import sys from setuptools import setup, find_packages os.chdir(os.path.dirname(sys.argv[0]) or ".") import libsongtext version = '%s.%s.%s' % libsongtext.__version__ try: long_description = open('README.rst', 'U').read() except IOError: long_description = 'See https://github.com/ysim/songtext' s...
<commit_before>import os import sys from setuptools import setup, find_packages os.chdir(os.path.dirname(sys.argv[0]) or ".") import libsongtext version = '%s.%s.%s' % libsongtext.__version__ try: long_description = open('README.rst', 'U').read() except IOError: long_description = 'See https://github.com/ys...
f6d6cae28b5fdc49a5f56fe1713bd0fbb02c1dff
setup.py
setup.py
# -*- coding: utf-8 -*- from setuptools import setup, find_packages from codecs import open from os import path import pubcode here = path.abspath(path.dirname(__file__)) with open(path.join(here, 'README.rst'), encoding='utf-8') as f: long_description = f.read() setup( name='PubCode', version=pubcode.__...
# -*- coding: utf-8 -*- from setuptools import setup, find_packages from codecs import open from os import path import pubcode here = path.abspath(path.dirname(__file__)) with open(path.join(here, 'README.rst'), encoding='utf-8') as f: long_description = f.read() setup( name='PubCode', version=pubcode.__...
Add future to install requirements.
Add future to install requirements.
Python
mit
Venti-/pubcode
# -*- coding: utf-8 -*- from setuptools import setup, find_packages from codecs import open from os import path import pubcode here = path.abspath(path.dirname(__file__)) with open(path.join(here, 'README.rst'), encoding='utf-8') as f: long_description = f.read() setup( name='PubCode', version=pubcode.__...
# -*- coding: utf-8 -*- from setuptools import setup, find_packages from codecs import open from os import path import pubcode here = path.abspath(path.dirname(__file__)) with open(path.join(here, 'README.rst'), encoding='utf-8') as f: long_description = f.read() setup( name='PubCode', version=pubcode.__...
<commit_before># -*- coding: utf-8 -*- from setuptools import setup, find_packages from codecs import open from os import path import pubcode here = path.abspath(path.dirname(__file__)) with open(path.join(here, 'README.rst'), encoding='utf-8') as f: long_description = f.read() setup( name='PubCode', ver...
# -*- coding: utf-8 -*- from setuptools import setup, find_packages from codecs import open from os import path import pubcode here = path.abspath(path.dirname(__file__)) with open(path.join(here, 'README.rst'), encoding='utf-8') as f: long_description = f.read() setup( name='PubCode', version=pubcode.__...
# -*- coding: utf-8 -*- from setuptools import setup, find_packages from codecs import open from os import path import pubcode here = path.abspath(path.dirname(__file__)) with open(path.join(here, 'README.rst'), encoding='utf-8') as f: long_description = f.read() setup( name='PubCode', version=pubcode.__...
<commit_before># -*- coding: utf-8 -*- from setuptools import setup, find_packages from codecs import open from os import path import pubcode here = path.abspath(path.dirname(__file__)) with open(path.join(here, 'README.rst'), encoding='utf-8') as f: long_description = f.read() setup( name='PubCode', ver...
6775a5c58bd85dce644330dfd509d8f23135c5fe
setup.py
setup.py
#!/usr/bin/env python from setuptools import setup, find_packages with open('README.rst') as readme_file: README = readme_file.read() install_requires = [ 'click==6.6', 'botocore>=1.5.40,<2.0.0', 'typing==3.5.3.0', 'six>=1.10.0,<2.0.0', 'pip>=9,<10' ] setup( name='chalice', version=...
#!/usr/bin/env python from setuptools import setup, find_packages with open('README.rst') as readme_file: README = readme_file.read() install_requires = [ 'click==6.6', 'botocore>=1.5.40,<2.0.0', 'typing==3.5.3.0', 'six>=1.10.0,<2.0.0', 'pip>=9,<10' ] setup( name='chalice', version=...
Change dev status to beta, not pre-alpha
Change dev status to beta, not pre-alpha There's no RC classifier, so beta looks like the closest one we can use.
Python
apache-2.0
awslabs/chalice
#!/usr/bin/env python from setuptools import setup, find_packages with open('README.rst') as readme_file: README = readme_file.read() install_requires = [ 'click==6.6', 'botocore>=1.5.40,<2.0.0', 'typing==3.5.3.0', 'six>=1.10.0,<2.0.0', 'pip>=9,<10' ] setup( name='chalice', version=...
#!/usr/bin/env python from setuptools import setup, find_packages with open('README.rst') as readme_file: README = readme_file.read() install_requires = [ 'click==6.6', 'botocore>=1.5.40,<2.0.0', 'typing==3.5.3.0', 'six>=1.10.0,<2.0.0', 'pip>=9,<10' ] setup( name='chalice', version=...
<commit_before>#!/usr/bin/env python from setuptools import setup, find_packages with open('README.rst') as readme_file: README = readme_file.read() install_requires = [ 'click==6.6', 'botocore>=1.5.40,<2.0.0', 'typing==3.5.3.0', 'six>=1.10.0,<2.0.0', 'pip>=9,<10' ] setup( name='chalice...
#!/usr/bin/env python from setuptools import setup, find_packages with open('README.rst') as readme_file: README = readme_file.read() install_requires = [ 'click==6.6', 'botocore>=1.5.40,<2.0.0', 'typing==3.5.3.0', 'six>=1.10.0,<2.0.0', 'pip>=9,<10' ] setup( name='chalice', version=...
#!/usr/bin/env python from setuptools import setup, find_packages with open('README.rst') as readme_file: README = readme_file.read() install_requires = [ 'click==6.6', 'botocore>=1.5.40,<2.0.0', 'typing==3.5.3.0', 'six>=1.10.0,<2.0.0', 'pip>=9,<10' ] setup( name='chalice', version=...
<commit_before>#!/usr/bin/env python from setuptools import setup, find_packages with open('README.rst') as readme_file: README = readme_file.read() install_requires = [ 'click==6.6', 'botocore>=1.5.40,<2.0.0', 'typing==3.5.3.0', 'six>=1.10.0,<2.0.0', 'pip>=9,<10' ] setup( name='chalice...
94318fdc01afe6c21626ff074bafe46a6efafeb0
setup.py
setup.py
#!/usr/bin/env python # -*- coding: utf-8 -*- """The setup script.""" from setuptools import setup, find_packages with open('README.rst') as readme_file: readme = readme_file.read() with open('HISTORY.rst') as history_file: history = history_file.read() setup( name='django_excel_tools', version='0....
#!/usr/bin/env python # -*- coding: utf-8 -*- """The setup script.""" from setuptools import setup, find_packages with open('README.rst') as readme_file: readme = readme_file.read() with open('HISTORY.rst') as history_file: history = history_file.read() setup( name='django_excel_tools', version='0....
Update feature version to 0.1.0
Update feature version to 0.1.0
Python
mit
NorakGithub/django-excel-tools
#!/usr/bin/env python # -*- coding: utf-8 -*- """The setup script.""" from setuptools import setup, find_packages with open('README.rst') as readme_file: readme = readme_file.read() with open('HISTORY.rst') as history_file: history = history_file.read() setup( name='django_excel_tools', version='0....
#!/usr/bin/env python # -*- coding: utf-8 -*- """The setup script.""" from setuptools import setup, find_packages with open('README.rst') as readme_file: readme = readme_file.read() with open('HISTORY.rst') as history_file: history = history_file.read() setup( name='django_excel_tools', version='0....
<commit_before>#!/usr/bin/env python # -*- coding: utf-8 -*- """The setup script.""" from setuptools import setup, find_packages with open('README.rst') as readme_file: readme = readme_file.read() with open('HISTORY.rst') as history_file: history = history_file.read() setup( name='django_excel_tools', ...
#!/usr/bin/env python # -*- coding: utf-8 -*- """The setup script.""" from setuptools import setup, find_packages with open('README.rst') as readme_file: readme = readme_file.read() with open('HISTORY.rst') as history_file: history = history_file.read() setup( name='django_excel_tools', version='0....
#!/usr/bin/env python # -*- coding: utf-8 -*- """The setup script.""" from setuptools import setup, find_packages with open('README.rst') as readme_file: readme = readme_file.read() with open('HISTORY.rst') as history_file: history = history_file.read() setup( name='django_excel_tools', version='0....
<commit_before>#!/usr/bin/env python # -*- coding: utf-8 -*- """The setup script.""" from setuptools import setup, find_packages with open('README.rst') as readme_file: readme = readme_file.read() with open('HISTORY.rst') as history_file: history = history_file.read() setup( name='django_excel_tools', ...
8e56648242669697612b4e290e1d5d8e1f06dba9
setup.py
setup.py
from setuptools import setup, find_packages import os from osuapi import __version__ as version, __title__ as name, __author__ as author, __license__ as license import pypandoc def read(fname): return open(os.path.join(os.path.dirname(__file__), fname)).read() with open('README.md') as readme_md: readme = py...
from setuptools import setup, find_packages import os from osuapi import __version__ as version, __title__ as name, __author__ as author, __license__ as license def read(fname): return open(os.path.join(os.path.dirname(__file__), fname)).read() try: import pypandoc except ImportError: readme = None else:...
Fix implicit dependency on pypandoc
Fix implicit dependency on pypandoc
Python
mit
khazhyk/osuapi
from setuptools import setup, find_packages import os from osuapi import __version__ as version, __title__ as name, __author__ as author, __license__ as license import pypandoc def read(fname): return open(os.path.join(os.path.dirname(__file__), fname)).read() with open('README.md') as readme_md: readme = py...
from setuptools import setup, find_packages import os from osuapi import __version__ as version, __title__ as name, __author__ as author, __license__ as license def read(fname): return open(os.path.join(os.path.dirname(__file__), fname)).read() try: import pypandoc except ImportError: readme = None else:...
<commit_before>from setuptools import setup, find_packages import os from osuapi import __version__ as version, __title__ as name, __author__ as author, __license__ as license import pypandoc def read(fname): return open(os.path.join(os.path.dirname(__file__), fname)).read() with open('README.md') as readme_md: ...
from setuptools import setup, find_packages import os from osuapi import __version__ as version, __title__ as name, __author__ as author, __license__ as license def read(fname): return open(os.path.join(os.path.dirname(__file__), fname)).read() try: import pypandoc except ImportError: readme = None else:...
from setuptools import setup, find_packages import os from osuapi import __version__ as version, __title__ as name, __author__ as author, __license__ as license import pypandoc def read(fname): return open(os.path.join(os.path.dirname(__file__), fname)).read() with open('README.md') as readme_md: readme = py...
<commit_before>from setuptools import setup, find_packages import os from osuapi import __version__ as version, __title__ as name, __author__ as author, __license__ as license import pypandoc def read(fname): return open(os.path.join(os.path.dirname(__file__), fname)).read() with open('README.md') as readme_md: ...
c45b89a6be7df2131dc5ed2e29b1cc2fe6ea061f
setup.py
setup.py
import os from setuptools import setup def get_version(): """ Get the version from version module without importing more than necessary. """ version_module_path = os.path.join(os.path.dirname(__file__), "eliot", "_version.py") # The version module conta...
import os from setuptools import setup def get_version(): """ Get the version from version module without importing more than necessary. """ version_module_path = os.path.join(os.path.dirname(__file__), "eliot", "_version.py") # The version module conta...
Add coverage as optional dev requirement.
Add coverage as optional dev requirement.
Python
apache-2.0
ScatterHQ/eliot,ScatterHQ/eliot,ScatterHQ/eliot,ClusterHQ/eliot,iffy/eliot
import os from setuptools import setup def get_version(): """ Get the version from version module without importing more than necessary. """ version_module_path = os.path.join(os.path.dirname(__file__), "eliot", "_version.py") # The version module conta...
import os from setuptools import setup def get_version(): """ Get the version from version module without importing more than necessary. """ version_module_path = os.path.join(os.path.dirname(__file__), "eliot", "_version.py") # The version module conta...
<commit_before>import os from setuptools import setup def get_version(): """ Get the version from version module without importing more than necessary. """ version_module_path = os.path.join(os.path.dirname(__file__), "eliot", "_version.py") # The versi...
import os from setuptools import setup def get_version(): """ Get the version from version module without importing more than necessary. """ version_module_path = os.path.join(os.path.dirname(__file__), "eliot", "_version.py") # The version module conta...
import os from setuptools import setup def get_version(): """ Get the version from version module without importing more than necessary. """ version_module_path = os.path.join(os.path.dirname(__file__), "eliot", "_version.py") # The version module conta...
<commit_before>import os from setuptools import setup def get_version(): """ Get the version from version module without importing more than necessary. """ version_module_path = os.path.join(os.path.dirname(__file__), "eliot", "_version.py") # The versi...
4da7debc49cc87a243f8fc93a2fccbd4e276da26
setup.py
setup.py
import sys # Make sure we are running python3.5+ if 10 * sys.version_info[0] + sys.version_info[1] < 35: sys.exit("Sorry, only Python 3.5+ is supported.") from setuptools import setup def readme(): with open('README.rst') as f: return f.read() setup( name = 'med2image', ve...
import sys # Make sure we are running python3.5+ if 10 * sys.version_info[0] + sys.version_info[1] < 35: sys.exit("Sorry, only Python 3.5+ is supported.") from setuptools import setup def readme(): with open('README.rst') as f: return f.read() setup( name = 'med2image', ve...
Add 'dicom' package to the requirements
Add 'dicom' package to the requirements
Python
mit
FNNDSC/med2image,FNNDSC/med2image
import sys # Make sure we are running python3.5+ if 10 * sys.version_info[0] + sys.version_info[1] < 35: sys.exit("Sorry, only Python 3.5+ is supported.") from setuptools import setup def readme(): with open('README.rst') as f: return f.read() setup( name = 'med2image', ve...
import sys # Make sure we are running python3.5+ if 10 * sys.version_info[0] + sys.version_info[1] < 35: sys.exit("Sorry, only Python 3.5+ is supported.") from setuptools import setup def readme(): with open('README.rst') as f: return f.read() setup( name = 'med2image', ve...
<commit_before>import sys # Make sure we are running python3.5+ if 10 * sys.version_info[0] + sys.version_info[1] < 35: sys.exit("Sorry, only Python 3.5+ is supported.") from setuptools import setup def readme(): with open('README.rst') as f: return f.read() setup( name = 'med2i...
import sys # Make sure we are running python3.5+ if 10 * sys.version_info[0] + sys.version_info[1] < 35: sys.exit("Sorry, only Python 3.5+ is supported.") from setuptools import setup def readme(): with open('README.rst') as f: return f.read() setup( name = 'med2image', ve...
import sys # Make sure we are running python3.5+ if 10 * sys.version_info[0] + sys.version_info[1] < 35: sys.exit("Sorry, only Python 3.5+ is supported.") from setuptools import setup def readme(): with open('README.rst') as f: return f.read() setup( name = 'med2image', ve...
<commit_before>import sys # Make sure we are running python3.5+ if 10 * sys.version_info[0] + sys.version_info[1] < 35: sys.exit("Sorry, only Python 3.5+ is supported.") from setuptools import setup def readme(): with open('README.rst') as f: return f.read() setup( name = 'med2i...
61eaf65a721ffe5820522a1d4afac5cdafe2a0a3
deuce/drivers/storage/blocks/disk/DiskStorageDriver.py
deuce/drivers/storage/blocks/disk/DiskStorageDriver.py
from pecan import conf import os class DiskStorageDriver(object): """A driver for storing blocks onto local disk IMPORTANT: This driver should not be considered secure and therefore should not be ran in any production environment. """ def __init__(self): # Load the pecan config ...
from pecan import conf import os import io class DiskStorageDriver(object): """A driver for storing blocks onto local disk IMPORTANT: This driver should not be considered secure and therefore should not be ran in any production environment. """ def __init__(self): # Load the pecan c...
Save one block to storage
Save one block to storage
Python
apache-2.0
rackerlabs/deuce
from pecan import conf import os class DiskStorageDriver(object): """A driver for storing blocks onto local disk IMPORTANT: This driver should not be considered secure and therefore should not be ran in any production environment. """ def __init__(self): # Load the pecan config ...
from pecan import conf import os import io class DiskStorageDriver(object): """A driver for storing blocks onto local disk IMPORTANT: This driver should not be considered secure and therefore should not be ran in any production environment. """ def __init__(self): # Load the pecan c...
<commit_before> from pecan import conf import os class DiskStorageDriver(object): """A driver for storing blocks onto local disk IMPORTANT: This driver should not be considered secure and therefore should not be ran in any production environment. """ def __init__(self): # Load the pe...
from pecan import conf import os import io class DiskStorageDriver(object): """A driver for storing blocks onto local disk IMPORTANT: This driver should not be considered secure and therefore should not be ran in any production environment. """ def __init__(self): # Load the pecan c...
from pecan import conf import os class DiskStorageDriver(object): """A driver for storing blocks onto local disk IMPORTANT: This driver should not be considered secure and therefore should not be ran in any production environment. """ def __init__(self): # Load the pecan config ...
<commit_before> from pecan import conf import os class DiskStorageDriver(object): """A driver for storing blocks onto local disk IMPORTANT: This driver should not be considered secure and therefore should not be ran in any production environment. """ def __init__(self): # Load the pe...
edcdf92d1c9aca515ac05a165e6bfc2392be6d46
setup.py
setup.py
import os from setuptools import setup here = os.path.abspath(os.path.dirname(__file__)) with open(os.path.join(here, 'README.rst')) as f: README = f.read() requires = [ 'pyodbc', 'peewee' ] version = '0.1.3' setup( name='peewee_mssql', version=version, py_modules=['peewee_mssql'], ...
import os from setuptools import setup here = os.path.abspath(os.path.dirname(__file__)) with open(os.path.join(here, 'README.rst')) as f: README = f.read() requires = [ 'pyodbc', 'peewee' ] version = '0.1.4' setup( name='peewee_mssqlserv', version=version, py_modules=['peewee_mssqlser...
Package name changed due to collision on PyPi
Package name changed due to collision on PyPi
Python
mit
brake/peewee_mssql
import os from setuptools import setup here = os.path.abspath(os.path.dirname(__file__)) with open(os.path.join(here, 'README.rst')) as f: README = f.read() requires = [ 'pyodbc', 'peewee' ] version = '0.1.3' setup( name='peewee_mssql', version=version, py_modules=['peewee_mssql'], ...
import os from setuptools import setup here = os.path.abspath(os.path.dirname(__file__)) with open(os.path.join(here, 'README.rst')) as f: README = f.read() requires = [ 'pyodbc', 'peewee' ] version = '0.1.4' setup( name='peewee_mssqlserv', version=version, py_modules=['peewee_mssqlser...
<commit_before>import os from setuptools import setup here = os.path.abspath(os.path.dirname(__file__)) with open(os.path.join(here, 'README.rst')) as f: README = f.read() requires = [ 'pyodbc', 'peewee' ] version = '0.1.3' setup( name='peewee_mssql', version=version, py_modules=['peew...
import os from setuptools import setup here = os.path.abspath(os.path.dirname(__file__)) with open(os.path.join(here, 'README.rst')) as f: README = f.read() requires = [ 'pyodbc', 'peewee' ] version = '0.1.4' setup( name='peewee_mssqlserv', version=version, py_modules=['peewee_mssqlser...
import os from setuptools import setup here = os.path.abspath(os.path.dirname(__file__)) with open(os.path.join(here, 'README.rst')) as f: README = f.read() requires = [ 'pyodbc', 'peewee' ] version = '0.1.3' setup( name='peewee_mssql', version=version, py_modules=['peewee_mssql'], ...
<commit_before>import os from setuptools import setup here = os.path.abspath(os.path.dirname(__file__)) with open(os.path.join(here, 'README.rst')) as f: README = f.read() requires = [ 'pyodbc', 'peewee' ] version = '0.1.3' setup( name='peewee_mssql', version=version, py_modules=['peew...
29da663d6b27e760087fed62ee5717b47f26531a
setup.py
setup.py
from setuptools import find_packages, setup setup( name='tchannel', version='0.10.1.dev0', author='Abhinav Gupta, Aiden Scandella, Bryce Lampe, Grayson Koonce, Junchao Wu', author_email='dev@uber.com', description='Network multiplexing and framing protocol for RPC', license='MIT', url='htt...
from setuptools import find_packages, setup setup( name='tchannel', version='0.10.1.dev0', author='Abhinav Gupta, Aiden Scandella, Bryce Lampe, Grayson Koonce, Junchao Wu', author_email='dev@uber.com', description='Network multiplexing and framing protocol for RPC', license='MIT', url='htt...
Remove include clause from find_packages
Remove include clause from find_packages It's not supported on older versions of pip
Python
mit
Willyham/tchannel-python,uber/tchannel-python,uber/tchannel-python,Willyham/tchannel-python
from setuptools import find_packages, setup setup( name='tchannel', version='0.10.1.dev0', author='Abhinav Gupta, Aiden Scandella, Bryce Lampe, Grayson Koonce, Junchao Wu', author_email='dev@uber.com', description='Network multiplexing and framing protocol for RPC', license='MIT', url='htt...
from setuptools import find_packages, setup setup( name='tchannel', version='0.10.1.dev0', author='Abhinav Gupta, Aiden Scandella, Bryce Lampe, Grayson Koonce, Junchao Wu', author_email='dev@uber.com', description='Network multiplexing and framing protocol for RPC', license='MIT', url='htt...
<commit_before>from setuptools import find_packages, setup setup( name='tchannel', version='0.10.1.dev0', author='Abhinav Gupta, Aiden Scandella, Bryce Lampe, Grayson Koonce, Junchao Wu', author_email='dev@uber.com', description='Network multiplexing and framing protocol for RPC', license='MIT...
from setuptools import find_packages, setup setup( name='tchannel', version='0.10.1.dev0', author='Abhinav Gupta, Aiden Scandella, Bryce Lampe, Grayson Koonce, Junchao Wu', author_email='dev@uber.com', description='Network multiplexing and framing protocol for RPC', license='MIT', url='htt...
from setuptools import find_packages, setup setup( name='tchannel', version='0.10.1.dev0', author='Abhinav Gupta, Aiden Scandella, Bryce Lampe, Grayson Koonce, Junchao Wu', author_email='dev@uber.com', description='Network multiplexing and framing protocol for RPC', license='MIT', url='htt...
<commit_before>from setuptools import find_packages, setup setup( name='tchannel', version='0.10.1.dev0', author='Abhinav Gupta, Aiden Scandella, Bryce Lampe, Grayson Koonce, Junchao Wu', author_email='dev@uber.com', description='Network multiplexing and framing protocol for RPC', license='MIT...
8b4fc00e7a5ac1d416d54952cbb6d09ef328a9c3
cache_keras_weights.py
cache_keras_weights.py
from keras.applications.resnet50 import ResNet50 from keras.applications.vgg16 import VGG16 from keras.applications.vgg19 import VGG19 from keras.applications.inception_v3 import InceptionV3 resnet = ResNet50(weights='imagenet') vgg16 = VGG16(weights='imagenet') vgg19 = VGG19(weights='imagenet') inception = InceptionV...
from keras.applications.resnet50 import ResNet50 from keras.applications.vgg16 import VGG16 from keras.applications.vgg19 import VGG19 from keras.applications.inception_v3 import InceptionV3 from keras.applications.xception import Xception resnet = ResNet50(weights='imagenet') vgg16 = VGG16(weights='imagenet') vgg19 =...
Add Xception to keras cache
Add Xception to keras cache
Python
apache-2.0
Kaggle/docker-python,Kaggle/docker-python
from keras.applications.resnet50 import ResNet50 from keras.applications.vgg16 import VGG16 from keras.applications.vgg19 import VGG19 from keras.applications.inception_v3 import InceptionV3 resnet = ResNet50(weights='imagenet') vgg16 = VGG16(weights='imagenet') vgg19 = VGG19(weights='imagenet') inception = InceptionV...
from keras.applications.resnet50 import ResNet50 from keras.applications.vgg16 import VGG16 from keras.applications.vgg19 import VGG19 from keras.applications.inception_v3 import InceptionV3 from keras.applications.xception import Xception resnet = ResNet50(weights='imagenet') vgg16 = VGG16(weights='imagenet') vgg19 =...
<commit_before>from keras.applications.resnet50 import ResNet50 from keras.applications.vgg16 import VGG16 from keras.applications.vgg19 import VGG19 from keras.applications.inception_v3 import InceptionV3 resnet = ResNet50(weights='imagenet') vgg16 = VGG16(weights='imagenet') vgg19 = VGG19(weights='imagenet') incepti...
from keras.applications.resnet50 import ResNet50 from keras.applications.vgg16 import VGG16 from keras.applications.vgg19 import VGG19 from keras.applications.inception_v3 import InceptionV3 from keras.applications.xception import Xception resnet = ResNet50(weights='imagenet') vgg16 = VGG16(weights='imagenet') vgg19 =...
from keras.applications.resnet50 import ResNet50 from keras.applications.vgg16 import VGG16 from keras.applications.vgg19 import VGG19 from keras.applications.inception_v3 import InceptionV3 resnet = ResNet50(weights='imagenet') vgg16 = VGG16(weights='imagenet') vgg19 = VGG19(weights='imagenet') inception = InceptionV...
<commit_before>from keras.applications.resnet50 import ResNet50 from keras.applications.vgg16 import VGG16 from keras.applications.vgg19 import VGG19 from keras.applications.inception_v3 import InceptionV3 resnet = ResNet50(weights='imagenet') vgg16 = VGG16(weights='imagenet') vgg19 = VGG19(weights='imagenet') incepti...
d629cc508cb2d3eab83e259d9aefc9885076a407
setup.py
setup.py
from setuptools import setup, find_packages setup( name='wagtailcodeblock', version="0.4.0", description='Wagtail Code Block provides PrismJS syntax highlighting in Wagtail.', long_description='A Wagtail Streamfield block for source code with real-time syntax highlighting.', author='Tim Allen', ...
from setuptools import setup, find_packages setup( name='wagtailcodeblock', version="0.4.0", description='Wagtail Code Block provides PrismJS syntax highlighting in Wagtail.', long_description='A Wagtail Streamfield block for source code with real-time syntax highlighting.', author='Tim Allen', ...
Move up to be a beta.
Move up to be a beta.
Python
bsd-3-clause
FlipperPA/wagtailcodeblock,FlipperPA/wagtailcodeblock,FlipperPA/wagtailcodeblock
from setuptools import setup, find_packages setup( name='wagtailcodeblock', version="0.4.0", description='Wagtail Code Block provides PrismJS syntax highlighting in Wagtail.', long_description='A Wagtail Streamfield block for source code with real-time syntax highlighting.', author='Tim Allen', ...
from setuptools import setup, find_packages setup( name='wagtailcodeblock', version="0.4.0", description='Wagtail Code Block provides PrismJS syntax highlighting in Wagtail.', long_description='A Wagtail Streamfield block for source code with real-time syntax highlighting.', author='Tim Allen', ...
<commit_before>from setuptools import setup, find_packages setup( name='wagtailcodeblock', version="0.4.0", description='Wagtail Code Block provides PrismJS syntax highlighting in Wagtail.', long_description='A Wagtail Streamfield block for source code with real-time syntax highlighting.', author='T...
from setuptools import setup, find_packages setup( name='wagtailcodeblock', version="0.4.0", description='Wagtail Code Block provides PrismJS syntax highlighting in Wagtail.', long_description='A Wagtail Streamfield block for source code with real-time syntax highlighting.', author='Tim Allen', ...
from setuptools import setup, find_packages setup( name='wagtailcodeblock', version="0.4.0", description='Wagtail Code Block provides PrismJS syntax highlighting in Wagtail.', long_description='A Wagtail Streamfield block for source code with real-time syntax highlighting.', author='Tim Allen', ...
<commit_before>from setuptools import setup, find_packages setup( name='wagtailcodeblock', version="0.4.0", description='Wagtail Code Block provides PrismJS syntax highlighting in Wagtail.', long_description='A Wagtail Streamfield block for source code with real-time syntax highlighting.', author='T...
b64c713555bfbfa4eb8d483a6da17853ceaa6078
setup.py
setup.py
from setuptools import setup, find_packages setup( name='autobuilder', version='1.0.3', packages=find_packages(), license='MIT', author='Matt Madison', author_email='matt@madison.systems', entry_points={ 'console_scripts': [ 'update-sstate-mirror = autobuilder.scripts.up...
from setuptools import setup, find_packages setup( name='autobuilder', version='1.0.3', packages=find_packages(), license='MIT', author='Matt Madison', author_email='matt@madison.systems', entry_points={ 'console_scripts': [ 'update-sstate-mirror = autobuilder.scripts.up...
Update buildbot packages to >= 1.5.0.
Update buildbot packages to >= 1.5.0.
Python
mit
madisongh/autobuilder
from setuptools import setup, find_packages setup( name='autobuilder', version='1.0.3', packages=find_packages(), license='MIT', author='Matt Madison', author_email='matt@madison.systems', entry_points={ 'console_scripts': [ 'update-sstate-mirror = autobuilder.scripts.up...
from setuptools import setup, find_packages setup( name='autobuilder', version='1.0.3', packages=find_packages(), license='MIT', author='Matt Madison', author_email='matt@madison.systems', entry_points={ 'console_scripts': [ 'update-sstate-mirror = autobuilder.scripts.up...
<commit_before>from setuptools import setup, find_packages setup( name='autobuilder', version='1.0.3', packages=find_packages(), license='MIT', author='Matt Madison', author_email='matt@madison.systems', entry_points={ 'console_scripts': [ 'update-sstate-mirror = autobui...
from setuptools import setup, find_packages setup( name='autobuilder', version='1.0.3', packages=find_packages(), license='MIT', author='Matt Madison', author_email='matt@madison.systems', entry_points={ 'console_scripts': [ 'update-sstate-mirror = autobuilder.scripts.up...
from setuptools import setup, find_packages setup( name='autobuilder', version='1.0.3', packages=find_packages(), license='MIT', author='Matt Madison', author_email='matt@madison.systems', entry_points={ 'console_scripts': [ 'update-sstate-mirror = autobuilder.scripts.up...
<commit_before>from setuptools import setup, find_packages setup( name='autobuilder', version='1.0.3', packages=find_packages(), license='MIT', author='Matt Madison', author_email='matt@madison.systems', entry_points={ 'console_scripts': [ 'update-sstate-mirror = autobui...
e5ac63b4615b4166d7e7866c9f169e4c9f86f46c
setup.py
setup.py
from distutils.core import setup setup( name='django-emailuser', version='1.0', description='simple User model identified by email address', packages=['emailuser'], author='Mark Paschal', author_email='markpasc@markpasc.org', url='https://github.com/duncaningram/django-emailuser', cl...
from distutils.core import setup setup( name='django-emailuser', version='1.0', description='simple User model identified by email address', packages=['emailuser', 'emailuser.management', 'emailuser.management.commands'], author='Mark Paschal', author_email='markpasc@markpasc.org', url='h...
Install the management command too when installing as a distribution
Install the management command too when installing as a distribution
Python
mit
markpasc/django-emailuser,duncaningram/django-emailuser
from distutils.core import setup setup( name='django-emailuser', version='1.0', description='simple User model identified by email address', packages=['emailuser'], author='Mark Paschal', author_email='markpasc@markpasc.org', url='https://github.com/duncaningram/django-emailuser', cl...
from distutils.core import setup setup( name='django-emailuser', version='1.0', description='simple User model identified by email address', packages=['emailuser', 'emailuser.management', 'emailuser.management.commands'], author='Mark Paschal', author_email='markpasc@markpasc.org', url='h...
<commit_before>from distutils.core import setup setup( name='django-emailuser', version='1.0', description='simple User model identified by email address', packages=['emailuser'], author='Mark Paschal', author_email='markpasc@markpasc.org', url='https://github.com/duncaningram/django-emai...
from distutils.core import setup setup( name='django-emailuser', version='1.0', description='simple User model identified by email address', packages=['emailuser', 'emailuser.management', 'emailuser.management.commands'], author='Mark Paschal', author_email='markpasc@markpasc.org', url='h...
from distutils.core import setup setup( name='django-emailuser', version='1.0', description='simple User model identified by email address', packages=['emailuser'], author='Mark Paschal', author_email='markpasc@markpasc.org', url='https://github.com/duncaningram/django-emailuser', cl...
<commit_before>from distutils.core import setup setup( name='django-emailuser', version='1.0', description='simple User model identified by email address', packages=['emailuser'], author='Mark Paschal', author_email='markpasc@markpasc.org', url='https://github.com/duncaningram/django-emai...
1a13e9da4e3955aaa7c52792d91638966d29de9c
sensor_consumers/bathroom_door.py
sensor_consumers/bathroom_door.py
# coding=utf-8 from local_settings import * from utils import SensorConsumerBase import redis import datetime import sys class Bathroom(SensorConsumerBase): def __init__(self): SensorConsumerBase.__init__(self, "bathroom") def run(self): self.subscribe("bathroom-pubsub", self.pubsub_callback)...
# coding=utf-8 from local_settings import * from utils import SensorConsumerBase import redis import datetime import sys class Bathroom(SensorConsumerBase): def __init__(self): SensorConsumerBase.__init__(self, "indoor_air_quality") def run(self): self.subscribe("bathroom-pubsub", self.pubsub...
Use a single database for all air quality measurements
Use a single database for all air quality measurements
Python
bsd-3-clause
ojarva/home-info-display,ojarva/home-info-display,ojarva/home-info-display,ojarva/home-info-display
# coding=utf-8 from local_settings import * from utils import SensorConsumerBase import redis import datetime import sys class Bathroom(SensorConsumerBase): def __init__(self): SensorConsumerBase.__init__(self, "bathroom") def run(self): self.subscribe("bathroom-pubsub", self.pubsub_callback)...
# coding=utf-8 from local_settings import * from utils import SensorConsumerBase import redis import datetime import sys class Bathroom(SensorConsumerBase): def __init__(self): SensorConsumerBase.__init__(self, "indoor_air_quality") def run(self): self.subscribe("bathroom-pubsub", self.pubsub...
<commit_before># coding=utf-8 from local_settings import * from utils import SensorConsumerBase import redis import datetime import sys class Bathroom(SensorConsumerBase): def __init__(self): SensorConsumerBase.__init__(self, "bathroom") def run(self): self.subscribe("bathroom-pubsub", self.p...
# coding=utf-8 from local_settings import * from utils import SensorConsumerBase import redis import datetime import sys class Bathroom(SensorConsumerBase): def __init__(self): SensorConsumerBase.__init__(self, "indoor_air_quality") def run(self): self.subscribe("bathroom-pubsub", self.pubsub...
# coding=utf-8 from local_settings import * from utils import SensorConsumerBase import redis import datetime import sys class Bathroom(SensorConsumerBase): def __init__(self): SensorConsumerBase.__init__(self, "bathroom") def run(self): self.subscribe("bathroom-pubsub", self.pubsub_callback)...
<commit_before># coding=utf-8 from local_settings import * from utils import SensorConsumerBase import redis import datetime import sys class Bathroom(SensorConsumerBase): def __init__(self): SensorConsumerBase.__init__(self, "bathroom") def run(self): self.subscribe("bathroom-pubsub", self.p...
13c26818cbb217ac4e27b94f188f239152fa85b8
timer.py
timer.py
#!/usr/bin/env python # encoding: utf-8 from __future__ import division, print_function from time import time class Timer(object): """ Simple timing object. Usage: with Timer('Function took'): do_something() """ def __init__(self, msg='Timer'): """ :msg: Additio...
#!/usr/bin/env python # encoding: utf-8 from __future__ import division, print_function from time import time class Timer(object): """ Simple timing object. Usage: with Timer('Function took'): do_something() """ def __init__(self, msg='Timer'): """ :msg: Additio...
Set start variable in init function
Set start variable in init function
Python
unlicense
dseuss/pythonlibs
#!/usr/bin/env python # encoding: utf-8 from __future__ import division, print_function from time import time class Timer(object): """ Simple timing object. Usage: with Timer('Function took'): do_something() """ def __init__(self, msg='Timer'): """ :msg: Additio...
#!/usr/bin/env python # encoding: utf-8 from __future__ import division, print_function from time import time class Timer(object): """ Simple timing object. Usage: with Timer('Function took'): do_something() """ def __init__(self, msg='Timer'): """ :msg: Additio...
<commit_before>#!/usr/bin/env python # encoding: utf-8 from __future__ import division, print_function from time import time class Timer(object): """ Simple timing object. Usage: with Timer('Function took'): do_something() """ def __init__(self, msg='Timer'): """ ...
#!/usr/bin/env python # encoding: utf-8 from __future__ import division, print_function from time import time class Timer(object): """ Simple timing object. Usage: with Timer('Function took'): do_something() """ def __init__(self, msg='Timer'): """ :msg: Additio...
#!/usr/bin/env python # encoding: utf-8 from __future__ import division, print_function from time import time class Timer(object): """ Simple timing object. Usage: with Timer('Function took'): do_something() """ def __init__(self, msg='Timer'): """ :msg: Additio...
<commit_before>#!/usr/bin/env python # encoding: utf-8 from __future__ import division, print_function from time import time class Timer(object): """ Simple timing object. Usage: with Timer('Function took'): do_something() """ def __init__(self, msg='Timer'): """ ...
af59d91afdddf9a5f3f673dd7bba98ad4538ec55
go_store_service/tests/test_api_handler.py
go_store_service/tests/test_api_handler.py
from unittest import TestCase from go_store_service.api_handler import ( ApiApplication, create_urlspec_regex, CollectionHandler, ElementHandler) class TestCreateUrlspecRegex(TestCase): def test_no_variables(self): self.assertEqual(create_urlspec_regex("/foo/bar"), "/foo/bar") class TestApiAppl...
from unittest import TestCase from go_store_service.api_handler import ( ApiApplication, create_urlspec_regex, CollectionHandler, ElementHandler) class TestCreateUrlspecRegex(TestCase): def test_no_variables(self): self.assertEqual(create_urlspec_regex("/foo/bar"), "/foo/bar") def test_one_v...
Add test for passing paths with variables to create_urlspec_regex.
Add test for passing paths with variables to create_urlspec_regex.
Python
bsd-3-clause
praekelt/go-store-service
from unittest import TestCase from go_store_service.api_handler import ( ApiApplication, create_urlspec_regex, CollectionHandler, ElementHandler) class TestCreateUrlspecRegex(TestCase): def test_no_variables(self): self.assertEqual(create_urlspec_regex("/foo/bar"), "/foo/bar") class TestApiAppl...
from unittest import TestCase from go_store_service.api_handler import ( ApiApplication, create_urlspec_regex, CollectionHandler, ElementHandler) class TestCreateUrlspecRegex(TestCase): def test_no_variables(self): self.assertEqual(create_urlspec_regex("/foo/bar"), "/foo/bar") def test_one_v...
<commit_before>from unittest import TestCase from go_store_service.api_handler import ( ApiApplication, create_urlspec_regex, CollectionHandler, ElementHandler) class TestCreateUrlspecRegex(TestCase): def test_no_variables(self): self.assertEqual(create_urlspec_regex("/foo/bar"), "/foo/bar") cl...
from unittest import TestCase from go_store_service.api_handler import ( ApiApplication, create_urlspec_regex, CollectionHandler, ElementHandler) class TestCreateUrlspecRegex(TestCase): def test_no_variables(self): self.assertEqual(create_urlspec_regex("/foo/bar"), "/foo/bar") def test_one_v...
from unittest import TestCase from go_store_service.api_handler import ( ApiApplication, create_urlspec_regex, CollectionHandler, ElementHandler) class TestCreateUrlspecRegex(TestCase): def test_no_variables(self): self.assertEqual(create_urlspec_regex("/foo/bar"), "/foo/bar") class TestApiAppl...
<commit_before>from unittest import TestCase from go_store_service.api_handler import ( ApiApplication, create_urlspec_regex, CollectionHandler, ElementHandler) class TestCreateUrlspecRegex(TestCase): def test_no_variables(self): self.assertEqual(create_urlspec_regex("/foo/bar"), "/foo/bar") cl...
539fae27f9911b9ad13edc5244ffbd12b1509006
utils.py
utils.py
""" Author(s): Matthew Loper See LICENCE.txt for licensing and contact information. """ __all__ = ['mstack', 'wget'] def mstack(vs, fs): import chumpy as ch import numpy as np lengths = [v.shape[0] for v in vs] f = np.vstack([fs[i]+np.sum(lengths[:i]).astype(np.uint32) for i in range(len(fs))]) v ...
""" Author(s): Matthew Loper See LICENCE.txt for licensing and contact information. """ __all__ = ['mstack', 'wget'] def mstack(vs, fs): import chumpy as ch import numpy as np lengths = [v.shape[0] for v in vs] f = np.vstack([fs[i]+np.sum(lengths[:i]).astype(np.uint32) for i in range(len(fs))]) v ...
Fix for python2/3 compatibility issue with urllib
Fix for python2/3 compatibility issue with urllib
Python
mit
mattloper/opendr,mattloper/opendr
""" Author(s): Matthew Loper See LICENCE.txt for licensing and contact information. """ __all__ = ['mstack', 'wget'] def mstack(vs, fs): import chumpy as ch import numpy as np lengths = [v.shape[0] for v in vs] f = np.vstack([fs[i]+np.sum(lengths[:i]).astype(np.uint32) for i in range(len(fs))]) v ...
""" Author(s): Matthew Loper See LICENCE.txt for licensing and contact information. """ __all__ = ['mstack', 'wget'] def mstack(vs, fs): import chumpy as ch import numpy as np lengths = [v.shape[0] for v in vs] f = np.vstack([fs[i]+np.sum(lengths[:i]).astype(np.uint32) for i in range(len(fs))]) v ...
<commit_before>""" Author(s): Matthew Loper See LICENCE.txt for licensing and contact information. """ __all__ = ['mstack', 'wget'] def mstack(vs, fs): import chumpy as ch import numpy as np lengths = [v.shape[0] for v in vs] f = np.vstack([fs[i]+np.sum(lengths[:i]).astype(np.uint32) for i in range(le...
""" Author(s): Matthew Loper See LICENCE.txt for licensing and contact information. """ __all__ = ['mstack', 'wget'] def mstack(vs, fs): import chumpy as ch import numpy as np lengths = [v.shape[0] for v in vs] f = np.vstack([fs[i]+np.sum(lengths[:i]).astype(np.uint32) for i in range(len(fs))]) v ...
""" Author(s): Matthew Loper See LICENCE.txt for licensing and contact information. """ __all__ = ['mstack', 'wget'] def mstack(vs, fs): import chumpy as ch import numpy as np lengths = [v.shape[0] for v in vs] f = np.vstack([fs[i]+np.sum(lengths[:i]).astype(np.uint32) for i in range(len(fs))]) v ...
<commit_before>""" Author(s): Matthew Loper See LICENCE.txt for licensing and contact information. """ __all__ = ['mstack', 'wget'] def mstack(vs, fs): import chumpy as ch import numpy as np lengths = [v.shape[0] for v in vs] f = np.vstack([fs[i]+np.sum(lengths[:i]).astype(np.uint32) for i in range(le...
69d1f91c48ab022a56232debdec14f5a5a449cbc
src/handlers/custom.py
src/handlers/custom.py
import flask from handlers import app import db.query as q @app.route('/') def index(): return app.send_static_file('index.html') @app.route('/api/perspective/random') def random_perspective(): return flask.jsonify( q.random_perspective().to_dict() )
import flask from handlers import app import db.query as q @app.route('/') def index(): return app.send_static_file('index.html') @app.route('/api/perspective/random') def random_perspective(): random_id = q.random_perspective().id return flask.redirect('/api/perspective/%s' % random_id) @app.route('/api/roun...
Use flask redirects for random perspective and latest round
Use flask redirects for random perspective and latest round
Python
apache-2.0
pascalc/narrative-roulette,pascalc/narrative-roulette
import flask from handlers import app import db.query as q @app.route('/') def index(): return app.send_static_file('index.html') @app.route('/api/perspective/random') def random_perspective(): return flask.jsonify( q.random_perspective().to_dict() ) Use flask redirects for random perspective and latest ro...
import flask from handlers import app import db.query as q @app.route('/') def index(): return app.send_static_file('index.html') @app.route('/api/perspective/random') def random_perspective(): random_id = q.random_perspective().id return flask.redirect('/api/perspective/%s' % random_id) @app.route('/api/roun...
<commit_before>import flask from handlers import app import db.query as q @app.route('/') def index(): return app.send_static_file('index.html') @app.route('/api/perspective/random') def random_perspective(): return flask.jsonify( q.random_perspective().to_dict() ) <commit_msg>Use flask redirects for rando...
import flask from handlers import app import db.query as q @app.route('/') def index(): return app.send_static_file('index.html') @app.route('/api/perspective/random') def random_perspective(): random_id = q.random_perspective().id return flask.redirect('/api/perspective/%s' % random_id) @app.route('/api/roun...
import flask from handlers import app import db.query as q @app.route('/') def index(): return app.send_static_file('index.html') @app.route('/api/perspective/random') def random_perspective(): return flask.jsonify( q.random_perspective().to_dict() ) Use flask redirects for random perspective and latest ro...
<commit_before>import flask from handlers import app import db.query as q @app.route('/') def index(): return app.send_static_file('index.html') @app.route('/api/perspective/random') def random_perspective(): return flask.jsonify( q.random_perspective().to_dict() ) <commit_msg>Use flask redirects for rando...
cf20a04b0fb50993e746945f586160b96a0f16b1
magnum/api/validation.py
magnum/api/validation.py
# Copyright 2015 Huawei Technologies Co.,LTD. # # 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 2015 Huawei Technologies Co.,LTD. # # 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...
Correct the usage of decorator.decorator
Correct the usage of decorator.decorator Correct the usage of decorator.decorator as described in [1]. [1]http://pythonhosted.org/decorator/documentation.html#decorator-decorator Change-Id: Ia71b751f364e09541faecf6a43f252e0b856558e Closes-Bug: #1483464
Python
apache-2.0
Alzon/SUR,eshijia/SUR,jay-lau/magnum,dimtruck/magnum,ArchiFleKs/magnum,Tennyson53/magnum,Alzon/SUR,eshijia/magnum,Tennyson53/magnum,ddepaoli3/magnum,annegentle/magnum,ramielrowe/magnum,eshijia/magnum,ArchiFleKs/magnum,openstack/magnum,ramielrowe/magnum,mjbrewer/testindex,mjbrewer/testindex,Tennyson53/SUR,ffantast/magnu...
# Copyright 2015 Huawei Technologies Co.,LTD. # # 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 2015 Huawei Technologies Co.,LTD. # # 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...
<commit_before># Copyright 2015 Huawei Technologies Co.,LTD. # # 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 applicabl...
# Copyright 2015 Huawei Technologies Co.,LTD. # # 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 2015 Huawei Technologies Co.,LTD. # # 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...
<commit_before># Copyright 2015 Huawei Technologies Co.,LTD. # # 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 applicabl...
daeb8e38ec5b15650b9c5933789b6eab14b4a0a8
website/jdevents/models.py
website/jdevents/models.py
from django.db import models from django.utils.translation import ugettext_lazy as _ from mezzanine.core.models import Displayable, RichText class Event(Displayable, RichText): """ Main object for each event. Derives from Displayable, which by default - it is related to a certain Site ob...
from django.db import models from django.utils.translation import ugettext_lazy as _ from mezzanine.core.models import Displayable, RichText class Event(Displayable, RichText): """ Main object for each event. Derives from Displayable, which by default - it is related to a certain Site ob...
Add posibility to add extra information to occurence.
Add posibility to add extra information to occurence.
Python
mit
jonge-democraten/website,jonge-democraten/website,jonge-democraten/website,jonge-democraten/website
from django.db import models from django.utils.translation import ugettext_lazy as _ from mezzanine.core.models import Displayable, RichText class Event(Displayable, RichText): """ Main object for each event. Derives from Displayable, which by default - it is related to a certain Site ob...
from django.db import models from django.utils.translation import ugettext_lazy as _ from mezzanine.core.models import Displayable, RichText class Event(Displayable, RichText): """ Main object for each event. Derives from Displayable, which by default - it is related to a certain Site ob...
<commit_before>from django.db import models from django.utils.translation import ugettext_lazy as _ from mezzanine.core.models import Displayable, RichText class Event(Displayable, RichText): """ Main object for each event. Derives from Displayable, which by default - it is related to a ...
from django.db import models from django.utils.translation import ugettext_lazy as _ from mezzanine.core.models import Displayable, RichText class Event(Displayable, RichText): """ Main object for each event. Derives from Displayable, which by default - it is related to a certain Site ob...
from django.db import models from django.utils.translation import ugettext_lazy as _ from mezzanine.core.models import Displayable, RichText class Event(Displayable, RichText): """ Main object for each event. Derives from Displayable, which by default - it is related to a certain Site ob...
<commit_before>from django.db import models from django.utils.translation import ugettext_lazy as _ from mezzanine.core.models import Displayable, RichText class Event(Displayable, RichText): """ Main object for each event. Derives from Displayable, which by default - it is related to a ...
cbe39a8f63ca792715370bac7d28b39bae8b0c86
LandPortalEntities/lpentities/measurement_unit.py
LandPortalEntities/lpentities/measurement_unit.py
''' Created on 02/02/2014 @author: Miguel Otero ''' class MeasurementUnit(object): ''' classdocs ''' RANK = "rank" INDEX = "index" UNITS = "units" SQ_KM = "sq. km" PERCENTAGE = "%" #Enum possible convert_to values def __init__(self, name=None, convert_to=None, factor=1): ...
''' Created on 02/02/2014 @author: Miguel Otero ''' class MeasurementUnit(object): ''' classdocs ''' RANK = "rank" INDEX = "index" UNITS = "units" SQ_KM = "sq. km" PERCENTAGE = "%" #Enum possible convert_to values def __init__(self, name=None, convert_to=None, factor=1): ...
Fix small problem with properties
Fix small problem with properties
Python
mit
weso/landportal-importers,landportal/landbook-importers,landportal/landbook-importers
''' Created on 02/02/2014 @author: Miguel Otero ''' class MeasurementUnit(object): ''' classdocs ''' RANK = "rank" INDEX = "index" UNITS = "units" SQ_KM = "sq. km" PERCENTAGE = "%" #Enum possible convert_to values def __init__(self, name=None, convert_to=None, factor=1): ...
''' Created on 02/02/2014 @author: Miguel Otero ''' class MeasurementUnit(object): ''' classdocs ''' RANK = "rank" INDEX = "index" UNITS = "units" SQ_KM = "sq. km" PERCENTAGE = "%" #Enum possible convert_to values def __init__(self, name=None, convert_to=None, factor=1): ...
<commit_before>''' Created on 02/02/2014 @author: Miguel Otero ''' class MeasurementUnit(object): ''' classdocs ''' RANK = "rank" INDEX = "index" UNITS = "units" SQ_KM = "sq. km" PERCENTAGE = "%" #Enum possible convert_to values def __init__(self, name=None, convert_to=Non...
''' Created on 02/02/2014 @author: Miguel Otero ''' class MeasurementUnit(object): ''' classdocs ''' RANK = "rank" INDEX = "index" UNITS = "units" SQ_KM = "sq. km" PERCENTAGE = "%" #Enum possible convert_to values def __init__(self, name=None, convert_to=None, factor=1): ...
''' Created on 02/02/2014 @author: Miguel Otero ''' class MeasurementUnit(object): ''' classdocs ''' RANK = "rank" INDEX = "index" UNITS = "units" SQ_KM = "sq. km" PERCENTAGE = "%" #Enum possible convert_to values def __init__(self, name=None, convert_to=None, factor=1): ...
<commit_before>''' Created on 02/02/2014 @author: Miguel Otero ''' class MeasurementUnit(object): ''' classdocs ''' RANK = "rank" INDEX = "index" UNITS = "units" SQ_KM = "sq. km" PERCENTAGE = "%" #Enum possible convert_to values def __init__(self, name=None, convert_to=Non...
ff39617b554d0feefc8d5518d33894e4c2e88941
python/setup.py
python/setup.py
from setuptools import setup, find_packages setup( name='dex', version='0.0.1', description='A research language for typed, functional array processing', license='BSD', author='Adam Paszke', author_email='apaszke@google.com', packages=find_packages(), package_data={'dex': ['libDex.so']}, install_requ...
from setuptools import setup, find_packages import os # Check dex so file exists in dex directory. so_file = "libDex.so" dex_dir = os.path.join(os.path.dirname(__file__), 'dex') if not os.path.exists(os.path.join(dex_dir, so_file)): raise FileNotFoundError(f"{so_file} not found in dex/, " ...
Add check for libDex.so file in dex dir.
Add check for libDex.so file in dex dir.
Python
bsd-3-clause
google-research/dex-lang,google-research/dex-lang,google-research/dex-lang,google-research/dex-lang,google-research/dex-lang,google-research/dex-lang
from setuptools import setup, find_packages setup( name='dex', version='0.0.1', description='A research language for typed, functional array processing', license='BSD', author='Adam Paszke', author_email='apaszke@google.com', packages=find_packages(), package_data={'dex': ['libDex.so']}, install_requ...
from setuptools import setup, find_packages import os # Check dex so file exists in dex directory. so_file = "libDex.so" dex_dir = os.path.join(os.path.dirname(__file__), 'dex') if not os.path.exists(os.path.join(dex_dir, so_file)): raise FileNotFoundError(f"{so_file} not found in dex/, " ...
<commit_before>from setuptools import setup, find_packages setup( name='dex', version='0.0.1', description='A research language for typed, functional array processing', license='BSD', author='Adam Paszke', author_email='apaszke@google.com', packages=find_packages(), package_data={'dex': ['libDex.so']},...
from setuptools import setup, find_packages import os # Check dex so file exists in dex directory. so_file = "libDex.so" dex_dir = os.path.join(os.path.dirname(__file__), 'dex') if not os.path.exists(os.path.join(dex_dir, so_file)): raise FileNotFoundError(f"{so_file} not found in dex/, " ...
from setuptools import setup, find_packages setup( name='dex', version='0.0.1', description='A research language for typed, functional array processing', license='BSD', author='Adam Paszke', author_email='apaszke@google.com', packages=find_packages(), package_data={'dex': ['libDex.so']}, install_requ...
<commit_before>from setuptools import setup, find_packages setup( name='dex', version='0.0.1', description='A research language for typed, functional array processing', license='BSD', author='Adam Paszke', author_email='apaszke@google.com', packages=find_packages(), package_data={'dex': ['libDex.so']},...
6ff8ffe74c5d107133258f051430d17cf421d105
ella/ellaadmin/management/__init__.py
ella/ellaadmin/management/__init__.py
""" Copied over from django.contrib.auth.management """ from django.dispatch import dispatcher from django.db.models import get_models, signals def _get_permission_codename(action, opts): return u'%s_%s' % (action, opts.object_name.lower()) def _get_all_permissions(opts): "Returns (codename, name) for all per...
""" Copied over from django.contrib.auth.management """ from django.dispatch import dispatcher from django.db.models import get_models, signals def _get_permission_codename(action, opts): return u'%s_%s' % (action, opts.object_name.lower()) def _get_all_permissions(opts): "Returns (codename, name) for all per...
Update signals for latest django
Update signals for latest django git-svn-id: 80df2eab91b5a6f595a6fdab3c86ff0105eb9aae@1867 2d143e24-0a30-0410-89d7-a2e95868dc81
Python
bsd-3-clause
ella/ella,WhiskeyMedia/ella,petrlosa/ella,whalerock/ella,WhiskeyMedia/ella,MichalMaM/ella,whalerock/ella,petrlosa/ella,MichalMaM/ella,whalerock/ella
""" Copied over from django.contrib.auth.management """ from django.dispatch import dispatcher from django.db.models import get_models, signals def _get_permission_codename(action, opts): return u'%s_%s' % (action, opts.object_name.lower()) def _get_all_permissions(opts): "Returns (codename, name) for all per...
""" Copied over from django.contrib.auth.management """ from django.dispatch import dispatcher from django.db.models import get_models, signals def _get_permission_codename(action, opts): return u'%s_%s' % (action, opts.object_name.lower()) def _get_all_permissions(opts): "Returns (codename, name) for all per...
<commit_before>""" Copied over from django.contrib.auth.management """ from django.dispatch import dispatcher from django.db.models import get_models, signals def _get_permission_codename(action, opts): return u'%s_%s' % (action, opts.object_name.lower()) def _get_all_permissions(opts): "Returns (codename, na...
""" Copied over from django.contrib.auth.management """ from django.dispatch import dispatcher from django.db.models import get_models, signals def _get_permission_codename(action, opts): return u'%s_%s' % (action, opts.object_name.lower()) def _get_all_permissions(opts): "Returns (codename, name) for all per...
""" Copied over from django.contrib.auth.management """ from django.dispatch import dispatcher from django.db.models import get_models, signals def _get_permission_codename(action, opts): return u'%s_%s' % (action, opts.object_name.lower()) def _get_all_permissions(opts): "Returns (codename, name) for all per...
<commit_before>""" Copied over from django.contrib.auth.management """ from django.dispatch import dispatcher from django.db.models import get_models, signals def _get_permission_codename(action, opts): return u'%s_%s' % (action, opts.object_name.lower()) def _get_all_permissions(opts): "Returns (codename, na...
b170c077ccd86280715dbc57cf2cac9a2327ff4b
django/__init__.py
django/__init__.py
VERSION = (1, 5, 0, 'final', 2) def get_version(*args, **kwargs): # Don't litter django/__init__.py with all the get_version stuff. # Only import if it's actually called. from django.utils.version import get_version return get_version(*args, **kwargs)
VERSION = (1, 5, 0, 'final', 0) def get_version(*args, **kwargs): # Don't litter django/__init__.py with all the get_version stuff. # Only import if it's actually called. from django.utils.version import get_version return get_version(*args, **kwargs)
Correct final element of version tuple.
[1.5.x] Correct final element of version tuple.
Python
bsd-3-clause
ccn-2m/django,bliti/django-nonrel-1.5,ccn-2m/django,hasadna/django,alx-eu/django,ccn-2m/django,alx-eu/django,hasadna/django,alx-eu/django,imtapps/django-imt-fork,ccn-2m/django,bliti/django-nonrel-1.5,bliti/django-nonrel-1.5,alx-eu/django,imtapps/django-imt-fork,imtapps/django-imt-fork,hasadna/django
VERSION = (1, 5, 0, 'final', 2) def get_version(*args, **kwargs): # Don't litter django/__init__.py with all the get_version stuff. # Only import if it's actually called. from django.utils.version import get_version return get_version(*args, **kwargs) [1.5.x] Correct final element of version tuple.
VERSION = (1, 5, 0, 'final', 0) def get_version(*args, **kwargs): # Don't litter django/__init__.py with all the get_version stuff. # Only import if it's actually called. from django.utils.version import get_version return get_version(*args, **kwargs)
<commit_before>VERSION = (1, 5, 0, 'final', 2) def get_version(*args, **kwargs): # Don't litter django/__init__.py with all the get_version stuff. # Only import if it's actually called. from django.utils.version import get_version return get_version(*args, **kwargs) <commit_msg>[1.5.x] Correct final el...
VERSION = (1, 5, 0, 'final', 0) def get_version(*args, **kwargs): # Don't litter django/__init__.py with all the get_version stuff. # Only import if it's actually called. from django.utils.version import get_version return get_version(*args, **kwargs)
VERSION = (1, 5, 0, 'final', 2) def get_version(*args, **kwargs): # Don't litter django/__init__.py with all the get_version stuff. # Only import if it's actually called. from django.utils.version import get_version return get_version(*args, **kwargs) [1.5.x] Correct final element of version tuple.VERS...
<commit_before>VERSION = (1, 5, 0, 'final', 2) def get_version(*args, **kwargs): # Don't litter django/__init__.py with all the get_version stuff. # Only import if it's actually called. from django.utils.version import get_version return get_version(*args, **kwargs) <commit_msg>[1.5.x] Correct final el...
2b07fdcefdc915e69580016d9c0a08ab8e478ce7
chatterbot/adapters/logic/closest_match.py
chatterbot/adapters/logic/closest_match.py
# -*- coding: utf-8 -*- from .base_match import BaseMatchAdapter from fuzzywuzzy import fuzz class ClosestMatchAdapter(BaseMatchAdapter): """ The ClosestMatchAdapter creates a response by using fuzzywuzzy's process class to extract the most similar response to the input. This adapter selects a respons...
# -*- coding: utf-8 -*- from .base_match import BaseMatchAdapter from fuzzywuzzy import fuzz class ClosestMatchAdapter(BaseMatchAdapter): """ The ClosestMatchAdapter creates a response by using fuzzywuzzy's process class to extract the most similar response to the input. This adapter selects a respons...
Remove commented out method call.
Remove commented out method call.
Python
bsd-3-clause
Reinaesaya/OUIRL-ChatBot,maclogan/VirtualPenPal,Gustavo6046/ChatterBot,vkosuri/ChatterBot,gunthercox/ChatterBot,Reinaesaya/OUIRL-ChatBot,davizucon/ChatterBot
# -*- coding: utf-8 -*- from .base_match import BaseMatchAdapter from fuzzywuzzy import fuzz class ClosestMatchAdapter(BaseMatchAdapter): """ The ClosestMatchAdapter creates a response by using fuzzywuzzy's process class to extract the most similar response to the input. This adapter selects a respons...
# -*- coding: utf-8 -*- from .base_match import BaseMatchAdapter from fuzzywuzzy import fuzz class ClosestMatchAdapter(BaseMatchAdapter): """ The ClosestMatchAdapter creates a response by using fuzzywuzzy's process class to extract the most similar response to the input. This adapter selects a respons...
<commit_before># -*- coding: utf-8 -*- from .base_match import BaseMatchAdapter from fuzzywuzzy import fuzz class ClosestMatchAdapter(BaseMatchAdapter): """ The ClosestMatchAdapter creates a response by using fuzzywuzzy's process class to extract the most similar response to the input. This adapter se...
# -*- coding: utf-8 -*- from .base_match import BaseMatchAdapter from fuzzywuzzy import fuzz class ClosestMatchAdapter(BaseMatchAdapter): """ The ClosestMatchAdapter creates a response by using fuzzywuzzy's process class to extract the most similar response to the input. This adapter selects a respons...
# -*- coding: utf-8 -*- from .base_match import BaseMatchAdapter from fuzzywuzzy import fuzz class ClosestMatchAdapter(BaseMatchAdapter): """ The ClosestMatchAdapter creates a response by using fuzzywuzzy's process class to extract the most similar response to the input. This adapter selects a respons...
<commit_before># -*- coding: utf-8 -*- from .base_match import BaseMatchAdapter from fuzzywuzzy import fuzz class ClosestMatchAdapter(BaseMatchAdapter): """ The ClosestMatchAdapter creates a response by using fuzzywuzzy's process class to extract the most similar response to the input. This adapter se...
a6441de03522f9352742cba5a8a656785de05455
tests/mock_vws/test_query.py
tests/mock_vws/test_query.py
""" Tests for the mock of the query endpoint. https://library.vuforia.com/articles/Solution/How-To-Perform-an-Image-Recognition-Query. """ import pytest import requests from tests.mock_vws.utils import Endpoint, assert_query_success @pytest.mark.usefixtures('verify_mock_vuforia') class TestQuery: """ Tests...
""" Tests for the mock of the query endpoint. https://library.vuforia.com/articles/Solution/How-To-Perform-an-Image-Recognition-Query. """ import io from urllib.parse import urljoin import pytest import requests from requests_mock import POST from urllib3.filepost import encode_multipart_formdata from tests.mock_vw...
Use raw request making in query test
Use raw request making in query test
Python
mit
adamtheturtle/vws-python,adamtheturtle/vws-python
""" Tests for the mock of the query endpoint. https://library.vuforia.com/articles/Solution/How-To-Perform-an-Image-Recognition-Query. """ import pytest import requests from tests.mock_vws.utils import Endpoint, assert_query_success @pytest.mark.usefixtures('verify_mock_vuforia') class TestQuery: """ Tests...
""" Tests for the mock of the query endpoint. https://library.vuforia.com/articles/Solution/How-To-Perform-an-Image-Recognition-Query. """ import io from urllib.parse import urljoin import pytest import requests from requests_mock import POST from urllib3.filepost import encode_multipart_formdata from tests.mock_vw...
<commit_before>""" Tests for the mock of the query endpoint. https://library.vuforia.com/articles/Solution/How-To-Perform-an-Image-Recognition-Query. """ import pytest import requests from tests.mock_vws.utils import Endpoint, assert_query_success @pytest.mark.usefixtures('verify_mock_vuforia') class TestQuery: ...
""" Tests for the mock of the query endpoint. https://library.vuforia.com/articles/Solution/How-To-Perform-an-Image-Recognition-Query. """ import io from urllib.parse import urljoin import pytest import requests from requests_mock import POST from urllib3.filepost import encode_multipart_formdata from tests.mock_vw...
""" Tests for the mock of the query endpoint. https://library.vuforia.com/articles/Solution/How-To-Perform-an-Image-Recognition-Query. """ import pytest import requests from tests.mock_vws.utils import Endpoint, assert_query_success @pytest.mark.usefixtures('verify_mock_vuforia') class TestQuery: """ Tests...
<commit_before>""" Tests for the mock of the query endpoint. https://library.vuforia.com/articles/Solution/How-To-Perform-an-Image-Recognition-Query. """ import pytest import requests from tests.mock_vws.utils import Endpoint, assert_query_success @pytest.mark.usefixtures('verify_mock_vuforia') class TestQuery: ...
2295ccdca2ae208bcfb44c09b2a07cf525baebfc
docker/settings.py
docker/settings.py
from .base_settings import * import os INSTALLED_APPS += [ 'data_aggregator.apps.DataAggregatorConfig', 'webpack_loader', ] if os.getenv('ENV') == 'localdev': DEBUG = True DATA_AGGREGATOR_ACCESS_GROUP = 'u_test_group' DATA_AGGREGATOR_THREADING_ENABLED = False RESTCLIENTS_DAO_CACHE_CLASS = None...
from .base_settings import * import os INSTALLED_APPS += [ 'data_aggregator.apps.DataAggregatorConfig', 'webpack_loader', ] if os.getenv('ENV') == 'localdev': DEBUG = True DATA_AGGREGATOR_ACCESS_GROUP = 'u_test_group' DATA_AGGREGATOR_THREADING_ENABLED = False RESTCLIENTS_DAO_CACHE_CLASS = None...
Increase rest client pool size to 100
Increase rest client pool size to 100
Python
apache-2.0
uw-it-aca/canvas-analytics,uw-it-aca/canvas-analytics,uw-it-aca/canvas-analytics,uw-it-aca/canvas-analytics
from .base_settings import * import os INSTALLED_APPS += [ 'data_aggregator.apps.DataAggregatorConfig', 'webpack_loader', ] if os.getenv('ENV') == 'localdev': DEBUG = True DATA_AGGREGATOR_ACCESS_GROUP = 'u_test_group' DATA_AGGREGATOR_THREADING_ENABLED = False RESTCLIENTS_DAO_CACHE_CLASS = None...
from .base_settings import * import os INSTALLED_APPS += [ 'data_aggregator.apps.DataAggregatorConfig', 'webpack_loader', ] if os.getenv('ENV') == 'localdev': DEBUG = True DATA_AGGREGATOR_ACCESS_GROUP = 'u_test_group' DATA_AGGREGATOR_THREADING_ENABLED = False RESTCLIENTS_DAO_CACHE_CLASS = None...
<commit_before>from .base_settings import * import os INSTALLED_APPS += [ 'data_aggregator.apps.DataAggregatorConfig', 'webpack_loader', ] if os.getenv('ENV') == 'localdev': DEBUG = True DATA_AGGREGATOR_ACCESS_GROUP = 'u_test_group' DATA_AGGREGATOR_THREADING_ENABLED = False RESTCLIENTS_DAO_CAC...
from .base_settings import * import os INSTALLED_APPS += [ 'data_aggregator.apps.DataAggregatorConfig', 'webpack_loader', ] if os.getenv('ENV') == 'localdev': DEBUG = True DATA_AGGREGATOR_ACCESS_GROUP = 'u_test_group' DATA_AGGREGATOR_THREADING_ENABLED = False RESTCLIENTS_DAO_CACHE_CLASS = None...
from .base_settings import * import os INSTALLED_APPS += [ 'data_aggregator.apps.DataAggregatorConfig', 'webpack_loader', ] if os.getenv('ENV') == 'localdev': DEBUG = True DATA_AGGREGATOR_ACCESS_GROUP = 'u_test_group' DATA_AGGREGATOR_THREADING_ENABLED = False RESTCLIENTS_DAO_CACHE_CLASS = None...
<commit_before>from .base_settings import * import os INSTALLED_APPS += [ 'data_aggregator.apps.DataAggregatorConfig', 'webpack_loader', ] if os.getenv('ENV') == 'localdev': DEBUG = True DATA_AGGREGATOR_ACCESS_GROUP = 'u_test_group' DATA_AGGREGATOR_THREADING_ENABLED = False RESTCLIENTS_DAO_CAC...
7798de3a4ce6428e15394c5e3d00f5db5745f7af
src/puzzle/steps/image/_base_image_step.py
src/puzzle/steps/image/_base_image_step.py
from typing import Any, NamedTuple, Optional import numpy as np from data.image import image from puzzle.steps import step class ImageChangeEvent(NamedTuple): pass class BaseImageStep(step.Step): _source: image.Image _result: Optional[image.Image] def __init__(self, source: image.Image, depen...
from typing import Any, NamedTuple, Optional import numpy as np from data.image import image from puzzle.steps import step class ImageChangeEvent(NamedTuple): pass class BaseImageStep(step.Step): _source: image.Image _result: Optional[image.Image] def __init__(self, source: image.Image, depen...
Allow descendents of BaseImageStep to override source Image.
Allow descendents of BaseImageStep to override source Image.
Python
mit
PhilHarnish/forge,PhilHarnish/forge,PhilHarnish/forge,PhilHarnish/forge,PhilHarnish/forge,PhilHarnish/forge
from typing import Any, NamedTuple, Optional import numpy as np from data.image import image from puzzle.steps import step class ImageChangeEvent(NamedTuple): pass class BaseImageStep(step.Step): _source: image.Image _result: Optional[image.Image] def __init__(self, source: image.Image, depen...
from typing import Any, NamedTuple, Optional import numpy as np from data.image import image from puzzle.steps import step class ImageChangeEvent(NamedTuple): pass class BaseImageStep(step.Step): _source: image.Image _result: Optional[image.Image] def __init__(self, source: image.Image, depen...
<commit_before>from typing import Any, NamedTuple, Optional import numpy as np from data.image import image from puzzle.steps import step class ImageChangeEvent(NamedTuple): pass class BaseImageStep(step.Step): _source: image.Image _result: Optional[image.Image] def __init__(self, source: image.Ima...
from typing import Any, NamedTuple, Optional import numpy as np from data.image import image from puzzle.steps import step class ImageChangeEvent(NamedTuple): pass class BaseImageStep(step.Step): _source: image.Image _result: Optional[image.Image] def __init__(self, source: image.Image, depen...
from typing import Any, NamedTuple, Optional import numpy as np from data.image import image from puzzle.steps import step class ImageChangeEvent(NamedTuple): pass class BaseImageStep(step.Step): _source: image.Image _result: Optional[image.Image] def __init__(self, source: image.Image, depen...
<commit_before>from typing import Any, NamedTuple, Optional import numpy as np from data.image import image from puzzle.steps import step class ImageChangeEvent(NamedTuple): pass class BaseImageStep(step.Step): _source: image.Image _result: Optional[image.Image] def __init__(self, source: image.Ima...
d3ebf779f3da800145e84913cb202a1e508c9d30
abelfunctions/__init__.py
abelfunctions/__init__.py
""" abelfunctions is a Python library for computing with Abelian functions, algebraic curves, and solving integrable Partial Differential Equations. The code is available as a git repository at https://github.com/cswiercz/abelfunctions """ # from puiseux import puiseux # from integralbasis import integral_basis ...
""" abelfunctions is a Python library for computing with Abelian functions, algebraic curves, and solving integrable Partial Differential Equations. The code is available as a git repository at https://github.com/cswiercz/abelfunctions """ from riemann_surface import RiemannSurface from riemanntheta import Riema...
Make 'from abelfunctions import *' work.
Make 'from abelfunctions import *' work.
Python
mit
abelfunctions/abelfunctions,cswiercz/abelfunctions,cswiercz/abelfunctions,abelfunctions/abelfunctions,cswiercz/abelfunctions,abelfunctions/abelfunctions
""" abelfunctions is a Python library for computing with Abelian functions, algebraic curves, and solving integrable Partial Differential Equations. The code is available as a git repository at https://github.com/cswiercz/abelfunctions """ # from puiseux import puiseux # from integralbasis import integral_basis ...
""" abelfunctions is a Python library for computing with Abelian functions, algebraic curves, and solving integrable Partial Differential Equations. The code is available as a git repository at https://github.com/cswiercz/abelfunctions """ from riemann_surface import RiemannSurface from riemanntheta import Riema...
<commit_before>""" abelfunctions is a Python library for computing with Abelian functions, algebraic curves, and solving integrable Partial Differential Equations. The code is available as a git repository at https://github.com/cswiercz/abelfunctions """ # from puiseux import puiseux # from integralbasis import ...
""" abelfunctions is a Python library for computing with Abelian functions, algebraic curves, and solving integrable Partial Differential Equations. The code is available as a git repository at https://github.com/cswiercz/abelfunctions """ from riemann_surface import RiemannSurface from riemanntheta import Riema...
""" abelfunctions is a Python library for computing with Abelian functions, algebraic curves, and solving integrable Partial Differential Equations. The code is available as a git repository at https://github.com/cswiercz/abelfunctions """ # from puiseux import puiseux # from integralbasis import integral_basis ...
<commit_before>""" abelfunctions is a Python library for computing with Abelian functions, algebraic curves, and solving integrable Partial Differential Equations. The code is available as a git repository at https://github.com/cswiercz/abelfunctions """ # from puiseux import puiseux # from integralbasis import ...
4e2237d53d3f78e1cc11aeba1a1599c296e0c280
tests/integration/test_wordpress_import.py
tests/integration/test_wordpress_import.py
# -*- coding: utf-8 -*- """ Testing the wordpress import. It will do create a new site with the import_wordpress command and use that newly created site to make a build. """ import os import os.path import pytest from nikola import __main__ from ..base import cd from .test_empty_build import ( # NOQA test_arc...
# -*- coding: utf-8 -*- """ Testing the wordpress import. It will do create a new site with the import_wordpress command and use that newly created site to make a build. """ import os.path from glob import glob import pytest from nikola import __main__ from ..base import cd from .test_empty_build import ( # NOQA ...
Test that pages and posts are filled.
Test that pages and posts are filled.
Python
mit
getnikola/nikola,getnikola/nikola,getnikola/nikola,okin/nikola,okin/nikola,okin/nikola,okin/nikola,getnikola/nikola
# -*- coding: utf-8 -*- """ Testing the wordpress import. It will do create a new site with the import_wordpress command and use that newly created site to make a build. """ import os import os.path import pytest from nikola import __main__ from ..base import cd from .test_empty_build import ( # NOQA test_arc...
# -*- coding: utf-8 -*- """ Testing the wordpress import. It will do create a new site with the import_wordpress command and use that newly created site to make a build. """ import os.path from glob import glob import pytest from nikola import __main__ from ..base import cd from .test_empty_build import ( # NOQA ...
<commit_before># -*- coding: utf-8 -*- """ Testing the wordpress import. It will do create a new site with the import_wordpress command and use that newly created site to make a build. """ import os import os.path import pytest from nikola import __main__ from ..base import cd from .test_empty_build import ( # NO...
# -*- coding: utf-8 -*- """ Testing the wordpress import. It will do create a new site with the import_wordpress command and use that newly created site to make a build. """ import os.path from glob import glob import pytest from nikola import __main__ from ..base import cd from .test_empty_build import ( # NOQA ...
# -*- coding: utf-8 -*- """ Testing the wordpress import. It will do create a new site with the import_wordpress command and use that newly created site to make a build. """ import os import os.path import pytest from nikola import __main__ from ..base import cd from .test_empty_build import ( # NOQA test_arc...
<commit_before># -*- coding: utf-8 -*- """ Testing the wordpress import. It will do create a new site with the import_wordpress command and use that newly created site to make a build. """ import os import os.path import pytest from nikola import __main__ from ..base import cd from .test_empty_build import ( # NO...
db1af67bab58b831dcf63f63bfefc0e28e4ced55
congress_tempest_tests/config.py
congress_tempest_tests/config.py
# Copyright 2015 Intel Corp # 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 copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by ap...
# Copyright 2015 Intel Corp # 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 copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by ap...
Add congress to service_available group
Add congress to service_available group Add congress to service_available group. used in tempest plugin to check if service is available or not Change-Id: Ia3edbb545819d76a6563ee50c2dcdad6013f90e9
Python
apache-2.0
ramineni/my_congress,ramineni/my_congress,ramineni/my_congress,ramineni/my_congress,openstack/congress,openstack/congress
# Copyright 2015 Intel Corp # 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 copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by ap...
# Copyright 2015 Intel Corp # 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 copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by ap...
<commit_before># Copyright 2015 Intel Corp # 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 copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless...
# Copyright 2015 Intel Corp # 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 copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by ap...
# Copyright 2015 Intel Corp # 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 copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by ap...
<commit_before># Copyright 2015 Intel Corp # 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 copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless...
609864faf36b9a82db9fd63d28b5a0da7a22c4f5
eforge/__init__.py
eforge/__init__.py
# -*- coding: utf-8 -*- # EForge project management system, Copyright © 2010, Element43 # # Permission to use, copy, modify, and/or distribute this software for any # purpose with or without fee is hereby granted, provided that the above # copyright notice and this permission notice appear in all copies. # # THE SOFTWA...
# -*- coding: utf-8 -*- # EForge project management system, Copyright © 2010, Element43 # # Permission to use, copy, modify, and/or distribute this software for any # purpose with or without fee is hereby granted, provided that the above # copyright notice and this permission notice appear in all copies. # # THE SOFTWA...
Change master version information to 0.5.99 (git master)
Change master version information to 0.5.99 (git master) Todo: We should probably add the smarts to EForge to grab the git revision for master, at least if Dulwich is installed :-)
Python
isc
oshepherd/eforge,oshepherd/eforge,oshepherd/eforge
# -*- coding: utf-8 -*- # EForge project management system, Copyright © 2010, Element43 # # Permission to use, copy, modify, and/or distribute this software for any # purpose with or without fee is hereby granted, provided that the above # copyright notice and this permission notice appear in all copies. # # THE SOFTWA...
# -*- coding: utf-8 -*- # EForge project management system, Copyright © 2010, Element43 # # Permission to use, copy, modify, and/or distribute this software for any # purpose with or without fee is hereby granted, provided that the above # copyright notice and this permission notice appear in all copies. # # THE SOFTWA...
<commit_before># -*- coding: utf-8 -*- # EForge project management system, Copyright © 2010, Element43 # # Permission to use, copy, modify, and/or distribute this software for any # purpose with or without fee is hereby granted, provided that the above # copyright notice and this permission notice appear in all copies....
# -*- coding: utf-8 -*- # EForge project management system, Copyright © 2010, Element43 # # Permission to use, copy, modify, and/or distribute this software for any # purpose with or without fee is hereby granted, provided that the above # copyright notice and this permission notice appear in all copies. # # THE SOFTWA...
# -*- coding: utf-8 -*- # EForge project management system, Copyright © 2010, Element43 # # Permission to use, copy, modify, and/or distribute this software for any # purpose with or without fee is hereby granted, provided that the above # copyright notice and this permission notice appear in all copies. # # THE SOFTWA...
<commit_before># -*- coding: utf-8 -*- # EForge project management system, Copyright © 2010, Element43 # # Permission to use, copy, modify, and/or distribute this software for any # purpose with or without fee is hereby granted, provided that the above # copyright notice and this permission notice appear in all copies....
b6645c81c4e45a03297ebb5e4fb65fcef952a1f9
ci/get_latest_conda_build_path.py
ci/get_latest_conda_build_path.py
import sys import os import yaml import jinja2 import glob from conda_build.config import config from conda_build.metadata import MetaData from distutils.version import LooseVersion recipe_metadata = MetaData(os.path.join(sys.argv[1])) binary_package_glob = os.path.join(config.bldpkgs_dir, '{0}*.tar.bz2'.format(recipe...
import sys import os import yaml import jinja2 import glob from conda_build.config import Config from conda_build.metadata import MetaData from distutils.version import LooseVersion config = Config() recipe_metadata = MetaData(os.path.join(sys.argv[1])) binary_package_glob = os.path.join(config.bldpkgs_dir, '{0}*.tar....
Update get build path script for conda-build 2.0
Update get build path script for conda-build 2.0 In conda-build 2.0 the config API changed.
Python
bsd-3-clause
amacd31/hydromath,amacd31/hydromath
import sys import os import yaml import jinja2 import glob from conda_build.config import config from conda_build.metadata import MetaData from distutils.version import LooseVersion recipe_metadata = MetaData(os.path.join(sys.argv[1])) binary_package_glob = os.path.join(config.bldpkgs_dir, '{0}*.tar.bz2'.format(recipe...
import sys import os import yaml import jinja2 import glob from conda_build.config import Config from conda_build.metadata import MetaData from distutils.version import LooseVersion config = Config() recipe_metadata = MetaData(os.path.join(sys.argv[1])) binary_package_glob = os.path.join(config.bldpkgs_dir, '{0}*.tar....
<commit_before>import sys import os import yaml import jinja2 import glob from conda_build.config import config from conda_build.metadata import MetaData from distutils.version import LooseVersion recipe_metadata = MetaData(os.path.join(sys.argv[1])) binary_package_glob = os.path.join(config.bldpkgs_dir, '{0}*.tar.bz2...
import sys import os import yaml import jinja2 import glob from conda_build.config import Config from conda_build.metadata import MetaData from distutils.version import LooseVersion config = Config() recipe_metadata = MetaData(os.path.join(sys.argv[1])) binary_package_glob = os.path.join(config.bldpkgs_dir, '{0}*.tar....
import sys import os import yaml import jinja2 import glob from conda_build.config import config from conda_build.metadata import MetaData from distutils.version import LooseVersion recipe_metadata = MetaData(os.path.join(sys.argv[1])) binary_package_glob = os.path.join(config.bldpkgs_dir, '{0}*.tar.bz2'.format(recipe...
<commit_before>import sys import os import yaml import jinja2 import glob from conda_build.config import config from conda_build.metadata import MetaData from distutils.version import LooseVersion recipe_metadata = MetaData(os.path.join(sys.argv[1])) binary_package_glob = os.path.join(config.bldpkgs_dir, '{0}*.tar.bz2...
f4550e5a341baab9b1193766595a86d57e253806
rnacentral/apiv1/urls.py
rnacentral/apiv1/urls.py
""" Copyright [2009-2014] EMBL-European Bioinformatics Institute 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 a...
""" Copyright [2009-2014] EMBL-European Bioinformatics Institute 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 a...
Add url namespaces and app_names to apiv1
Add url namespaces and app_names to apiv1
Python
apache-2.0
RNAcentral/rnacentral-webcode,RNAcentral/rnacentral-webcode,RNAcentral/rnacentral-webcode,RNAcentral/rnacentral-webcode
""" Copyright [2009-2014] EMBL-European Bioinformatics Institute 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 a...
""" Copyright [2009-2014] EMBL-European Bioinformatics Institute 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 a...
<commit_before>""" Copyright [2009-2014] EMBL-European Bioinformatics Institute 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 appl...
""" Copyright [2009-2014] EMBL-European Bioinformatics Institute 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 a...
""" Copyright [2009-2014] EMBL-European Bioinformatics Institute 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 a...
<commit_before>""" Copyright [2009-2014] EMBL-European Bioinformatics Institute 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 appl...
894fea9aecf62cb5a04d1fd02b48d3a263e16a81
corehq/motech/const.py
corehq/motech/const.py
PASSWORD_PLACEHOLDER = '*' * 16 # If any remote service does not respond within 10 minutes, time out REQUEST_TIMEOUT = 600 ALGO_AES = 'aes' DATA_TYPE_UNKNOWN = None COMMCARE_DATA_TYPE_TEXT = 'cc_text' COMMCARE_DATA_TYPE_INTEGER = 'cc_integer' COMMCARE_DATA_TYPE_DECIMAL = 'cc_decimal' COMMCARE_DATA_TYPE_DATE = 'cc...
PASSWORD_PLACEHOLDER = '*' * 16 # If any remote service does not respond within 5 minutes, time out REQUEST_TIMEOUT = 5 * 60 ALGO_AES = 'aes' DATA_TYPE_UNKNOWN = None COMMCARE_DATA_TYPE_TEXT = 'cc_text' COMMCARE_DATA_TYPE_INTEGER = 'cc_integer' COMMCARE_DATA_TYPE_DECIMAL = 'cc_decimal' COMMCARE_DATA_TYPE_DATE = '...
Reduce normal request timeout to 5 minutes
Reduce normal request timeout to 5 minutes
Python
bsd-3-clause
dimagi/commcare-hq,dimagi/commcare-hq,dimagi/commcare-hq,dimagi/commcare-hq,dimagi/commcare-hq
PASSWORD_PLACEHOLDER = '*' * 16 # If any remote service does not respond within 10 minutes, time out REQUEST_TIMEOUT = 600 ALGO_AES = 'aes' DATA_TYPE_UNKNOWN = None COMMCARE_DATA_TYPE_TEXT = 'cc_text' COMMCARE_DATA_TYPE_INTEGER = 'cc_integer' COMMCARE_DATA_TYPE_DECIMAL = 'cc_decimal' COMMCARE_DATA_TYPE_DATE = 'cc...
PASSWORD_PLACEHOLDER = '*' * 16 # If any remote service does not respond within 5 minutes, time out REQUEST_TIMEOUT = 5 * 60 ALGO_AES = 'aes' DATA_TYPE_UNKNOWN = None COMMCARE_DATA_TYPE_TEXT = 'cc_text' COMMCARE_DATA_TYPE_INTEGER = 'cc_integer' COMMCARE_DATA_TYPE_DECIMAL = 'cc_decimal' COMMCARE_DATA_TYPE_DATE = '...
<commit_before> PASSWORD_PLACEHOLDER = '*' * 16 # If any remote service does not respond within 10 minutes, time out REQUEST_TIMEOUT = 600 ALGO_AES = 'aes' DATA_TYPE_UNKNOWN = None COMMCARE_DATA_TYPE_TEXT = 'cc_text' COMMCARE_DATA_TYPE_INTEGER = 'cc_integer' COMMCARE_DATA_TYPE_DECIMAL = 'cc_decimal' COMMCARE_DATA_...
PASSWORD_PLACEHOLDER = '*' * 16 # If any remote service does not respond within 5 minutes, time out REQUEST_TIMEOUT = 5 * 60 ALGO_AES = 'aes' DATA_TYPE_UNKNOWN = None COMMCARE_DATA_TYPE_TEXT = 'cc_text' COMMCARE_DATA_TYPE_INTEGER = 'cc_integer' COMMCARE_DATA_TYPE_DECIMAL = 'cc_decimal' COMMCARE_DATA_TYPE_DATE = '...
PASSWORD_PLACEHOLDER = '*' * 16 # If any remote service does not respond within 10 minutes, time out REQUEST_TIMEOUT = 600 ALGO_AES = 'aes' DATA_TYPE_UNKNOWN = None COMMCARE_DATA_TYPE_TEXT = 'cc_text' COMMCARE_DATA_TYPE_INTEGER = 'cc_integer' COMMCARE_DATA_TYPE_DECIMAL = 'cc_decimal' COMMCARE_DATA_TYPE_DATE = 'cc...
<commit_before> PASSWORD_PLACEHOLDER = '*' * 16 # If any remote service does not respond within 10 minutes, time out REQUEST_TIMEOUT = 600 ALGO_AES = 'aes' DATA_TYPE_UNKNOWN = None COMMCARE_DATA_TYPE_TEXT = 'cc_text' COMMCARE_DATA_TYPE_INTEGER = 'cc_integer' COMMCARE_DATA_TYPE_DECIMAL = 'cc_decimal' COMMCARE_DATA_...
2f5e8d51db04520600738064a0a97742a5f59dbb
nengo_spinnaker/utils/__init__.py
nengo_spinnaker/utils/__init__.py
import nengo from . import fixpoint as fp def totuple(a): """Convert any object (e.g., numpy array) to a Tuple. http://stackoverflow.com/questions/10016352/convert-numpy-array-to-tuple """ try: return totuple(totuple(i) for i in a) except TypeError: return a def get_connection_...
import nengo from . import fixpoint as fp def totuple(a): """Convert any object (e.g., numpy array) to a Tuple. http://stackoverflow.com/questions/10016352/convert-numpy-array-to-tuple """ try: return tuple(totuple(i) for i in a) except TypeError: return a def get_connection_wi...
Fix recursive bug in totuple. Not sure how it got there.
Fix recursive bug in totuple. Not sure how it got there. (cherry picked from commit ae1f7beb5188eaf09fc3f7efc1061a15a12aecf2)
Python
mit
ctn-archive/nengo_spinnaker_2014,ctn-archive/nengo_spinnaker_2014,ctn-archive/nengo_spinnaker_2014,ctn-archive/nengo_spinnaker_2014
import nengo from . import fixpoint as fp def totuple(a): """Convert any object (e.g., numpy array) to a Tuple. http://stackoverflow.com/questions/10016352/convert-numpy-array-to-tuple """ try: return totuple(totuple(i) for i in a) except TypeError: return a def get_connection_...
import nengo from . import fixpoint as fp def totuple(a): """Convert any object (e.g., numpy array) to a Tuple. http://stackoverflow.com/questions/10016352/convert-numpy-array-to-tuple """ try: return tuple(totuple(i) for i in a) except TypeError: return a def get_connection_wi...
<commit_before>import nengo from . import fixpoint as fp def totuple(a): """Convert any object (e.g., numpy array) to a Tuple. http://stackoverflow.com/questions/10016352/convert-numpy-array-to-tuple """ try: return totuple(totuple(i) for i in a) except TypeError: return a def ...
import nengo from . import fixpoint as fp def totuple(a): """Convert any object (e.g., numpy array) to a Tuple. http://stackoverflow.com/questions/10016352/convert-numpy-array-to-tuple """ try: return tuple(totuple(i) for i in a) except TypeError: return a def get_connection_wi...
import nengo from . import fixpoint as fp def totuple(a): """Convert any object (e.g., numpy array) to a Tuple. http://stackoverflow.com/questions/10016352/convert-numpy-array-to-tuple """ try: return totuple(totuple(i) for i in a) except TypeError: return a def get_connection_...
<commit_before>import nengo from . import fixpoint as fp def totuple(a): """Convert any object (e.g., numpy array) to a Tuple. http://stackoverflow.com/questions/10016352/convert-numpy-array-to-tuple """ try: return totuple(totuple(i) for i in a) except TypeError: return a def ...
099b8d9b6d546d035e63b6db8714c44364537efd
yolapy/services.py
yolapy/services.py
from demands import HTTPServiceClient from yolapy.resources import campaign, partner, site, subscription, user class Yola( HTTPServiceClient, campaign.CampaignResourceMixin, partner.PartnerResourceMixin, site.SiteResourceMixin, subscription.SubscriptionResourceMixin, user.UserResourceMixin): ...
from demands import HTTPServiceClient from yolapy.configuration import get_config from yolapy.resources import campaign, partner, site, subscription, user class Yola( HTTPServiceClient, campaign.CampaignResourceMixin, partner.PartnerResourceMixin, site.SiteResourceMixin, subscription.Subscript...
Update client init, use configuration to set default `auth` and `url`
Update client init, use configuration to set default `auth` and `url`
Python
mit
yola/yolapy
from demands import HTTPServiceClient from yolapy.resources import campaign, partner, site, subscription, user class Yola( HTTPServiceClient, campaign.CampaignResourceMixin, partner.PartnerResourceMixin, site.SiteResourceMixin, subscription.SubscriptionResourceMixin, user.UserResourceMixin): ...
from demands import HTTPServiceClient from yolapy.configuration import get_config from yolapy.resources import campaign, partner, site, subscription, user class Yola( HTTPServiceClient, campaign.CampaignResourceMixin, partner.PartnerResourceMixin, site.SiteResourceMixin, subscription.Subscript...
<commit_before>from demands import HTTPServiceClient from yolapy.resources import campaign, partner, site, subscription, user class Yola( HTTPServiceClient, campaign.CampaignResourceMixin, partner.PartnerResourceMixin, site.SiteResourceMixin, subscription.SubscriptionResourceMixin, user.UserR...
from demands import HTTPServiceClient from yolapy.configuration import get_config from yolapy.resources import campaign, partner, site, subscription, user class Yola( HTTPServiceClient, campaign.CampaignResourceMixin, partner.PartnerResourceMixin, site.SiteResourceMixin, subscription.Subscript...
from demands import HTTPServiceClient from yolapy.resources import campaign, partner, site, subscription, user class Yola( HTTPServiceClient, campaign.CampaignResourceMixin, partner.PartnerResourceMixin, site.SiteResourceMixin, subscription.SubscriptionResourceMixin, user.UserResourceMixin): ...
<commit_before>from demands import HTTPServiceClient from yolapy.resources import campaign, partner, site, subscription, user class Yola( HTTPServiceClient, campaign.CampaignResourceMixin, partner.PartnerResourceMixin, site.SiteResourceMixin, subscription.SubscriptionResourceMixin, user.UserR...
1ff766471df0c0171722c97f21ea1033f21e44f3
src/valid_parentheses.py
src/valid_parentheses.py
def isValid( s): if not s: return False stack = [] map = {'(':')', '[':']', '{':'}'} for c in s: if c in map.keys(): stack.append(c) else: if len(stack) > 0: top = stack.pop() if map[top] != c: return F...
""" Source : https://oj.leetcode.com/problems/valid-parentheses/ Author : Changxi Wu Date : 2015-01-20 Given a string containing just the characters '(', ')', '{', '}', '[' and ']', determine if the input string is valid. The brackets must close in the correct order, "()" and "()[]{}" are all valid but "(]" and "...
Add question desciption for valid parentheses
Add question desciption for valid parentheses
Python
mit
chancyWu/leetcode
def isValid( s): if not s: return False stack = [] map = {'(':')', '[':']', '{':'}'} for c in s: if c in map.keys(): stack.append(c) else: if len(stack) > 0: top = stack.pop() if map[top] != c: return F...
""" Source : https://oj.leetcode.com/problems/valid-parentheses/ Author : Changxi Wu Date : 2015-01-20 Given a string containing just the characters '(', ')', '{', '}', '[' and ']', determine if the input string is valid. The brackets must close in the correct order, "()" and "()[]{}" are all valid but "(]" and "...
<commit_before> def isValid( s): if not s: return False stack = [] map = {'(':')', '[':']', '{':'}'} for c in s: if c in map.keys(): stack.append(c) else: if len(stack) > 0: top = stack.pop() if map[top] != c: ...
""" Source : https://oj.leetcode.com/problems/valid-parentheses/ Author : Changxi Wu Date : 2015-01-20 Given a string containing just the characters '(', ')', '{', '}', '[' and ']', determine if the input string is valid. The brackets must close in the correct order, "()" and "()[]{}" are all valid but "(]" and "...
def isValid( s): if not s: return False stack = [] map = {'(':')', '[':']', '{':'}'} for c in s: if c in map.keys(): stack.append(c) else: if len(stack) > 0: top = stack.pop() if map[top] != c: return F...
<commit_before> def isValid( s): if not s: return False stack = [] map = {'(':')', '[':']', '{':'}'} for c in s: if c in map.keys(): stack.append(c) else: if len(stack) > 0: top = stack.pop() if map[top] != c: ...
eacc79f1e1a7a0748d9202eb2c9a90291abe3fd7
dwitter/templatetags/insert_magic_links.py
dwitter/templatetags/insert_magic_links.py
import re from django import template register = template.Library() def to_link(m): text = m.group('text') dweet_id = m.group('dweet_id') username = m.group('username') if username is None: path = '/d/' + dweet_id # hardcode for speed! # path = reverse('dweet_show', kwargs={'dweet_i...
import re from django import template register = template.Library() def to_link(m): text = m.group('text') dweet_id = m.group('dweet_id') username = m.group('username') if username is None: url = 'd/' + dweet_id else: url = 'u/' + username result = '<a href="/{0}">{0}</a>'.f...
Update magic links for dweet and user links
Update magic links for dweet and user links
Python
apache-2.0
lionleaf/dwitter,lionleaf/dwitter,lionleaf/dwitter
import re from django import template register = template.Library() def to_link(m): text = m.group('text') dweet_id = m.group('dweet_id') username = m.group('username') if username is None: path = '/d/' + dweet_id # hardcode for speed! # path = reverse('dweet_show', kwargs={'dweet_i...
import re from django import template register = template.Library() def to_link(m): text = m.group('text') dweet_id = m.group('dweet_id') username = m.group('username') if username is None: url = 'd/' + dweet_id else: url = 'u/' + username result = '<a href="/{0}">{0}</a>'.f...
<commit_before>import re from django import template register = template.Library() def to_link(m): text = m.group('text') dweet_id = m.group('dweet_id') username = m.group('username') if username is None: path = '/d/' + dweet_id # hardcode for speed! # path = reverse('dweet_show', k...
import re from django import template register = template.Library() def to_link(m): text = m.group('text') dweet_id = m.group('dweet_id') username = m.group('username') if username is None: url = 'd/' + dweet_id else: url = 'u/' + username result = '<a href="/{0}">{0}</a>'.f...
import re from django import template register = template.Library() def to_link(m): text = m.group('text') dweet_id = m.group('dweet_id') username = m.group('username') if username is None: path = '/d/' + dweet_id # hardcode for speed! # path = reverse('dweet_show', kwargs={'dweet_i...
<commit_before>import re from django import template register = template.Library() def to_link(m): text = m.group('text') dweet_id = m.group('dweet_id') username = m.group('username') if username is None: path = '/d/' + dweet_id # hardcode for speed! # path = reverse('dweet_show', k...
48d02d2c9cea083946c68e494309d7597ec2d878
pyfire/tests/__init__.py
pyfire/tests/__init__.py
# -*- coding: utf-8 -*- """ pyfire.tests ~~~~~~~~~~~~ All unittests live here :copyright: (c) 2011 by the pyfire Team, see AUTHORS for more details. :license: BSD, see LICENSE for more details. """
# -*- coding: utf-8 -*- """ pyfire.tests ~~~~~~~~~~~~ All unittests live here :copyright: (c) 2011 by the pyfire Team, see AUTHORS for more details. :license: BSD, see LICENSE for more details. """ import unittest class PyfireTestCase(unittest.TestCase): """All our unittests are based on thi...
Create unit test base class
Create unit test base class
Python
bsd-3-clause
IgnitedAndExploded/pyfire,IgnitedAndExploded/pyfire
# -*- coding: utf-8 -*- """ pyfire.tests ~~~~~~~~~~~~ All unittests live here :copyright: (c) 2011 by the pyfire Team, see AUTHORS for more details. :license: BSD, see LICENSE for more details. """Create unit test base class
# -*- coding: utf-8 -*- """ pyfire.tests ~~~~~~~~~~~~ All unittests live here :copyright: (c) 2011 by the pyfire Team, see AUTHORS for more details. :license: BSD, see LICENSE for more details. """ import unittest class PyfireTestCase(unittest.TestCase): """All our unittests are based on thi...
<commit_before># -*- coding: utf-8 -*- """ pyfire.tests ~~~~~~~~~~~~ All unittests live here :copyright: (c) 2011 by the pyfire Team, see AUTHORS for more details. :license: BSD, see LICENSE for more details. """<commit_msg>Create unit test base class<commit_after>
# -*- coding: utf-8 -*- """ pyfire.tests ~~~~~~~~~~~~ All unittests live here :copyright: (c) 2011 by the pyfire Team, see AUTHORS for more details. :license: BSD, see LICENSE for more details. """ import unittest class PyfireTestCase(unittest.TestCase): """All our unittests are based on thi...
# -*- coding: utf-8 -*- """ pyfire.tests ~~~~~~~~~~~~ All unittests live here :copyright: (c) 2011 by the pyfire Team, see AUTHORS for more details. :license: BSD, see LICENSE for more details. """Create unit test base class# -*- coding: utf-8 -*- """ pyfire.tests ~~~~~~~~~~~~ All uni...
<commit_before># -*- coding: utf-8 -*- """ pyfire.tests ~~~~~~~~~~~~ All unittests live here :copyright: (c) 2011 by the pyfire Team, see AUTHORS for more details. :license: BSD, see LICENSE for more details. """<commit_msg>Create unit test base class<commit_after># -*- coding: utf-8 -*- """ p...
7e2b60a7f7b32c235f931f9e7263ccefc84c79e2
gittip/orm/__init__.py
gittip/orm/__init__.py
from __future__ import unicode_literals import os import pdb from sqlalchemy import create_engine, MetaData from sqlalchemy.ext.declarative import declarative_base from sqlalchemy.orm import sessionmaker, scoped_session class Model(object): def __repr__(self): cols = self.__mapper__.c.keys() class...
from __future__ import unicode_literals import os import pdb from sqlalchemy import create_engine, MetaData from sqlalchemy.ext.declarative import declarative_base from sqlalchemy.orm import sessionmaker, scoped_session class Model(object): def __repr__(self): cols = self.__mapper__.c.keys() class...
Add convenience methods for creating/deleting all tables, for bootstrapping/testing use
Add convenience methods for creating/deleting all tables, for bootstrapping/testing use Signed-off-by: Joonas Bergius <9be13466ab086d7a8db93edb14ffb6760790b15e@gmail.com>
Python
mit
studio666/gratipay.com,gratipay/gratipay.com,eXcomm/gratipay.com,MikeFair/www.gittip.com,MikeFair/www.gittip.com,studio666/gratipay.com,mccolgst/www.gittip.com,bountysource/www.gittip.com,eXcomm/gratipay.com,gratipay/gratipay.com,mccolgst/www.gittip.com,gratipay/gratipay.com,bountysource/www.gittip.com,MikeFair/www.git...
from __future__ import unicode_literals import os import pdb from sqlalchemy import create_engine, MetaData from sqlalchemy.ext.declarative import declarative_base from sqlalchemy.orm import sessionmaker, scoped_session class Model(object): def __repr__(self): cols = self.__mapper__.c.keys() class...
from __future__ import unicode_literals import os import pdb from sqlalchemy import create_engine, MetaData from sqlalchemy.ext.declarative import declarative_base from sqlalchemy.orm import sessionmaker, scoped_session class Model(object): def __repr__(self): cols = self.__mapper__.c.keys() class...
<commit_before>from __future__ import unicode_literals import os import pdb from sqlalchemy import create_engine, MetaData from sqlalchemy.ext.declarative import declarative_base from sqlalchemy.orm import sessionmaker, scoped_session class Model(object): def __repr__(self): cols = self.__mapper__.c.keys(...
from __future__ import unicode_literals import os import pdb from sqlalchemy import create_engine, MetaData from sqlalchemy.ext.declarative import declarative_base from sqlalchemy.orm import sessionmaker, scoped_session class Model(object): def __repr__(self): cols = self.__mapper__.c.keys() class...
from __future__ import unicode_literals import os import pdb from sqlalchemy import create_engine, MetaData from sqlalchemy.ext.declarative import declarative_base from sqlalchemy.orm import sessionmaker, scoped_session class Model(object): def __repr__(self): cols = self.__mapper__.c.keys() class...
<commit_before>from __future__ import unicode_literals import os import pdb from sqlalchemy import create_engine, MetaData from sqlalchemy.ext.declarative import declarative_base from sqlalchemy.orm import sessionmaker, scoped_session class Model(object): def __repr__(self): cols = self.__mapper__.c.keys(...
d7a8162ab33224742258838b90e11f8845198a95
src/sentry/quotas/base.py
src/sentry/quotas/base.py
""" sentry.quotas.base ~~~~~~~~~~~~~~~~~~ :copyright: (c) 2010-2013 by the Sentry Team, see AUTHORS for more details. :license: BSD, see LICENSE for more details. """ from __future__ import absolute_import from django.conf import settings class Quota(object): """ Quotas handle tracking a project's event usa...
""" sentry.quotas.base ~~~~~~~~~~~~~~~~~~ :copyright: (c) 2010-2013 by the Sentry Team, see AUTHORS for more details. :license: BSD, see LICENSE for more details. """ from __future__ import absolute_import from django.conf import settings class Quota(object): """ Quotas handle tracking a project's event usa...
Handle empty quota in translate_quota
Handle empty quota in translate_quota
Python
bsd-3-clause
mvaled/sentry,mvaled/sentry,ifduyue/sentry,zenefits/sentry,kevinlondon/sentry,1tush/sentry,Natim/sentry,argonemyth/sentry,BayanGroup/sentry,jean/sentry,fuziontech/sentry,BayanGroup/sentry,drcapulet/sentry,felixbuenemann/sentry,ifduyue/sentry,kevinastone/sentry,llonchj/sentry,mitsuhiko/sentry,looker/sentry,Kryz/sentry,f...
""" sentry.quotas.base ~~~~~~~~~~~~~~~~~~ :copyright: (c) 2010-2013 by the Sentry Team, see AUTHORS for more details. :license: BSD, see LICENSE for more details. """ from __future__ import absolute_import from django.conf import settings class Quota(object): """ Quotas handle tracking a project's event usa...
""" sentry.quotas.base ~~~~~~~~~~~~~~~~~~ :copyright: (c) 2010-2013 by the Sentry Team, see AUTHORS for more details. :license: BSD, see LICENSE for more details. """ from __future__ import absolute_import from django.conf import settings class Quota(object): """ Quotas handle tracking a project's event usa...
<commit_before>""" sentry.quotas.base ~~~~~~~~~~~~~~~~~~ :copyright: (c) 2010-2013 by the Sentry Team, see AUTHORS for more details. :license: BSD, see LICENSE for more details. """ from __future__ import absolute_import from django.conf import settings class Quota(object): """ Quotas handle tracking a proj...
""" sentry.quotas.base ~~~~~~~~~~~~~~~~~~ :copyright: (c) 2010-2013 by the Sentry Team, see AUTHORS for more details. :license: BSD, see LICENSE for more details. """ from __future__ import absolute_import from django.conf import settings class Quota(object): """ Quotas handle tracking a project's event usa...
""" sentry.quotas.base ~~~~~~~~~~~~~~~~~~ :copyright: (c) 2010-2013 by the Sentry Team, see AUTHORS for more details. :license: BSD, see LICENSE for more details. """ from __future__ import absolute_import from django.conf import settings class Quota(object): """ Quotas handle tracking a project's event usa...
<commit_before>""" sentry.quotas.base ~~~~~~~~~~~~~~~~~~ :copyright: (c) 2010-2013 by the Sentry Team, see AUTHORS for more details. :license: BSD, see LICENSE for more details. """ from __future__ import absolute_import from django.conf import settings class Quota(object): """ Quotas handle tracking a proj...