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
d852781fe93c7a37b90387e2b388bf18ed3823d1
command/install_ext.py
command/install_ext.py
"""install_ext Implement the Distutils "install_ext" command to install extension modules.""" # created 1999/09/12, Greg Ward __revision__ = "$Id$" from distutils.core import Command from distutils.util import copy_tree class install_ext (Command): description = "install C/C++ extension modules" user...
"""install_ext Implement the Distutils "install_ext" command to install extension modules.""" # created 1999/09/12, Greg Ward __revision__ = "$Id$" from distutils.core import Command from distutils.util import copy_tree class install_ext (Command): description = "install C/C++ extension modules" user...
Fix how we set 'build_dir' and 'install_dir' options from 'install' options -- irrelevant because this file is about to go away, but oh well.
Fix how we set 'build_dir' and 'install_dir' options from 'install' options -- irrelevant because this file is about to go away, but oh well.
Python
mit
pypa/setuptools,pypa/setuptools,pypa/setuptools
"""install_ext Implement the Distutils "install_ext" command to install extension modules.""" # created 1999/09/12, Greg Ward __revision__ = "$Id$" from distutils.core import Command from distutils.util import copy_tree class install_ext (Command): description = "install C/C++ extension modules" user...
"""install_ext Implement the Distutils "install_ext" command to install extension modules.""" # created 1999/09/12, Greg Ward __revision__ = "$Id$" from distutils.core import Command from distutils.util import copy_tree class install_ext (Command): description = "install C/C++ extension modules" user...
<commit_before>"""install_ext Implement the Distutils "install_ext" command to install extension modules.""" # created 1999/09/12, Greg Ward __revision__ = "$Id$" from distutils.core import Command from distutils.util import copy_tree class install_ext (Command): description = "install C/C++ extension modules...
"""install_ext Implement the Distutils "install_ext" command to install extension modules.""" # created 1999/09/12, Greg Ward __revision__ = "$Id$" from distutils.core import Command from distutils.util import copy_tree class install_ext (Command): description = "install C/C++ extension modules" user...
"""install_ext Implement the Distutils "install_ext" command to install extension modules.""" # created 1999/09/12, Greg Ward __revision__ = "$Id$" from distutils.core import Command from distutils.util import copy_tree class install_ext (Command): description = "install C/C++ extension modules" user...
<commit_before>"""install_ext Implement the Distutils "install_ext" command to install extension modules.""" # created 1999/09/12, Greg Ward __revision__ = "$Id$" from distutils.core import Command from distutils.util import copy_tree class install_ext (Command): description = "install C/C++ extension modules...
aace7956091f10af19dfe9eaaf12aef8b0f9f579
new_validity.py
new_validity.py
import pandas as pd import numpy as np import operator from sys import argv import os def extract( file_name ): with open(file_name) as f: for i,line in enumerate(f,1): if "SCN" in line: return i os.system('ltahdr -i'+ argv[1]+ '> lta_fi...
import pandas as pd import numpy as np import operator from sys import argv import os def extract( file_name ): with open(file_name) as f: for i,line in enumerate(f,1): if "SCN" in line: return i def main(lta_name): os.system('ltahdr -i'+ lta_name + '> lta_file.txt') di...
Insert main body of code into function
Insert main body of code into function
Python
mit
NCRA-TIFR/gadpu,NCRA-TIFR/gadpu
import pandas as pd import numpy as np import operator from sys import argv import os def extract( file_name ): with open(file_name) as f: for i,line in enumerate(f,1): if "SCN" in line: return i os.system('ltahdr -i'+ argv[1]+ '> lta_fi...
import pandas as pd import numpy as np import operator from sys import argv import os def extract( file_name ): with open(file_name) as f: for i,line in enumerate(f,1): if "SCN" in line: return i def main(lta_name): os.system('ltahdr -i'+ lta_name + '> lta_file.txt') di...
<commit_before>import pandas as pd import numpy as np import operator from sys import argv import os def extract( file_name ): with open(file_name) as f: for i,line in enumerate(f,1): if "SCN" in line: return i os.system('ltahdr -i'+ arg...
import pandas as pd import numpy as np import operator from sys import argv import os def extract( file_name ): with open(file_name) as f: for i,line in enumerate(f,1): if "SCN" in line: return i def main(lta_name): os.system('ltahdr -i'+ lta_name + '> lta_file.txt') di...
import pandas as pd import numpy as np import operator from sys import argv import os def extract( file_name ): with open(file_name) as f: for i,line in enumerate(f,1): if "SCN" in line: return i os.system('ltahdr -i'+ argv[1]+ '> lta_fi...
<commit_before>import pandas as pd import numpy as np import operator from sys import argv import os def extract( file_name ): with open(file_name) as f: for i,line in enumerate(f,1): if "SCN" in line: return i os.system('ltahdr -i'+ arg...
7cd69c1a4b8cc221bbbb40d5b2a1a53a835b11e9
nhs/raw/urls.py
nhs/raw/urls.py
""" URLs for the Raw data dumps. """ from django.conf.urls.defaults import patterns, url from nhs.raw.views import Ratio, Drug urlpatterns = patterns( '', url(r'/ratio/(?P<bucket1>[0-9A-Z]+)/(?P<bucket2>[0-9A-Z]+)/ratio.zip$', Ratio.as_view(), name='rawcompare'), url(r'/drug/percapitamap/ccg/(?P...
""" URLs for the Raw data dumps. """ from django.conf.urls.defaults import patterns, url from nhs.raw.views import Ratio, Drug urlpatterns = patterns( '', url(r'/ratio/(?P<bucket1>[0-9A-Z]+)/(?P<bucket2>[0-9A-Z]+)/ratio.zip$', Ratio.as_view(), name='rawcompare'), url(r'/drug/(?P<bnf_code>[0-9A-Z...
Update URls for raw download.
Update URls for raw download.
Python
agpl-3.0
openhealthcare/open-prescribing,openhealthcare/open-prescribing,openhealthcare/open-prescribing
""" URLs for the Raw data dumps. """ from django.conf.urls.defaults import patterns, url from nhs.raw.views import Ratio, Drug urlpatterns = patterns( '', url(r'/ratio/(?P<bucket1>[0-9A-Z]+)/(?P<bucket2>[0-9A-Z]+)/ratio.zip$', Ratio.as_view(), name='rawcompare'), url(r'/drug/percapitamap/ccg/(?P...
""" URLs for the Raw data dumps. """ from django.conf.urls.defaults import patterns, url from nhs.raw.views import Ratio, Drug urlpatterns = patterns( '', url(r'/ratio/(?P<bucket1>[0-9A-Z]+)/(?P<bucket2>[0-9A-Z]+)/ratio.zip$', Ratio.as_view(), name='rawcompare'), url(r'/drug/(?P<bnf_code>[0-9A-Z...
<commit_before>""" URLs for the Raw data dumps. """ from django.conf.urls.defaults import patterns, url from nhs.raw.views import Ratio, Drug urlpatterns = patterns( '', url(r'/ratio/(?P<bucket1>[0-9A-Z]+)/(?P<bucket2>[0-9A-Z]+)/ratio.zip$', Ratio.as_view(), name='rawcompare'), url(r'/drug/perca...
""" URLs for the Raw data dumps. """ from django.conf.urls.defaults import patterns, url from nhs.raw.views import Ratio, Drug urlpatterns = patterns( '', url(r'/ratio/(?P<bucket1>[0-9A-Z]+)/(?P<bucket2>[0-9A-Z]+)/ratio.zip$', Ratio.as_view(), name='rawcompare'), url(r'/drug/(?P<bnf_code>[0-9A-Z...
""" URLs for the Raw data dumps. """ from django.conf.urls.defaults import patterns, url from nhs.raw.views import Ratio, Drug urlpatterns = patterns( '', url(r'/ratio/(?P<bucket1>[0-9A-Z]+)/(?P<bucket2>[0-9A-Z]+)/ratio.zip$', Ratio.as_view(), name='rawcompare'), url(r'/drug/percapitamap/ccg/(?P...
<commit_before>""" URLs for the Raw data dumps. """ from django.conf.urls.defaults import patterns, url from nhs.raw.views import Ratio, Drug urlpatterns = patterns( '', url(r'/ratio/(?P<bucket1>[0-9A-Z]+)/(?P<bucket2>[0-9A-Z]+)/ratio.zip$', Ratio.as_view(), name='rawcompare'), url(r'/drug/perca...
3f1f666606a0b092c796fab27a67b2dde5a33cb9
nipype/setup.py
nipype/setup.py
def configuration(parent_package='',top_path=None): from numpy.distutils.misc_util import Configuration config = Configuration('nipype', parent_package, top_path) # List all packages to be loaded here config.add_subpackage('interfaces') config.add_subpackage('pipeline') config.add_subpackage('u...
def configuration(parent_package='',top_path=None): from numpy.distutils.misc_util import Configuration config = Configuration('nipype', parent_package, top_path) # List all packages to be loaded here config.add_subpackage('algorithms') config.add_subpackage('interfaces') config.add_subpackage(...
Add missing packages for install: algorithms, testing.
Add missing packages for install: algorithms, testing. git-svn-id: 24f545668198cdd163a527378499f2123e59bf9f@527 ead46cd0-7350-4e37-8683-fc4c6f79bf00
Python
bsd-3-clause
christianbrodbeck/nipype,arokem/nipype,carlohamalainen/nipype,pearsonlab/nipype,sgiavasis/nipype,gerddie/nipype,blakedewey/nipype,FredLoney/nipype,fprados/nipype,grlee77/nipype,sgiavasis/nipype,JohnGriffiths/nipype,iglpdc/nipype,gerddie/nipype,iglpdc/nipype,dmordom/nipype,arokem/nipype,FCP-INDI/nipype,mick-d/nipype_sou...
def configuration(parent_package='',top_path=None): from numpy.distutils.misc_util import Configuration config = Configuration('nipype', parent_package, top_path) # List all packages to be loaded here config.add_subpackage('interfaces') config.add_subpackage('pipeline') config.add_subpackage('u...
def configuration(parent_package='',top_path=None): from numpy.distutils.misc_util import Configuration config = Configuration('nipype', parent_package, top_path) # List all packages to be loaded here config.add_subpackage('algorithms') config.add_subpackage('interfaces') config.add_subpackage(...
<commit_before>def configuration(parent_package='',top_path=None): from numpy.distutils.misc_util import Configuration config = Configuration('nipype', parent_package, top_path) # List all packages to be loaded here config.add_subpackage('interfaces') config.add_subpackage('pipeline') config.ad...
def configuration(parent_package='',top_path=None): from numpy.distutils.misc_util import Configuration config = Configuration('nipype', parent_package, top_path) # List all packages to be loaded here config.add_subpackage('algorithms') config.add_subpackage('interfaces') config.add_subpackage(...
def configuration(parent_package='',top_path=None): from numpy.distutils.misc_util import Configuration config = Configuration('nipype', parent_package, top_path) # List all packages to be loaded here config.add_subpackage('interfaces') config.add_subpackage('pipeline') config.add_subpackage('u...
<commit_before>def configuration(parent_package='',top_path=None): from numpy.distutils.misc_util import Configuration config = Configuration('nipype', parent_package, top_path) # List all packages to be loaded here config.add_subpackage('interfaces') config.add_subpackage('pipeline') config.ad...
4417b3c701e44fbf94fb7375a7a3f148f1ee6112
tilequeue/queue/file.py
tilequeue/queue/file.py
from tilequeue.tile import serialize_coord, deserialize_coord, CoordMessage import threading class OutputFileQueue(object): def __init__(self, fp): self.fp = fp self.lock = threading.RLock() def enqueue(self, coord): with self.lock: payload = serialize_coord(coord) ...
from tilequeue.tile import serialize_coord, deserialize_coord, CoordMessage import threading class OutputFileQueue(object): def __init__(self, fp): self.fp = fp self._lock = threading.RLock() def enqueue(self, coord): with self._lock: payload = serialize_coord(coord) ...
Rename lock to _lock to imply that it's private.
Rename lock to _lock to imply that it's private. tilequeue/queue/file.py -The `lock` instance variable shouldn't be used outside of the `OutputFileQueue`'s methods.
Python
mit
tilezen/tilequeue,mapzen/tilequeue
from tilequeue.tile import serialize_coord, deserialize_coord, CoordMessage import threading class OutputFileQueue(object): def __init__(self, fp): self.fp = fp self.lock = threading.RLock() def enqueue(self, coord): with self.lock: payload = serialize_coord(coord) ...
from tilequeue.tile import serialize_coord, deserialize_coord, CoordMessage import threading class OutputFileQueue(object): def __init__(self, fp): self.fp = fp self._lock = threading.RLock() def enqueue(self, coord): with self._lock: payload = serialize_coord(coord) ...
<commit_before>from tilequeue.tile import serialize_coord, deserialize_coord, CoordMessage import threading class OutputFileQueue(object): def __init__(self, fp): self.fp = fp self.lock = threading.RLock() def enqueue(self, coord): with self.lock: payload = serialize_coor...
from tilequeue.tile import serialize_coord, deserialize_coord, CoordMessage import threading class OutputFileQueue(object): def __init__(self, fp): self.fp = fp self._lock = threading.RLock() def enqueue(self, coord): with self._lock: payload = serialize_coord(coord) ...
from tilequeue.tile import serialize_coord, deserialize_coord, CoordMessage import threading class OutputFileQueue(object): def __init__(self, fp): self.fp = fp self.lock = threading.RLock() def enqueue(self, coord): with self.lock: payload = serialize_coord(coord) ...
<commit_before>from tilequeue.tile import serialize_coord, deserialize_coord, CoordMessage import threading class OutputFileQueue(object): def __init__(self, fp): self.fp = fp self.lock = threading.RLock() def enqueue(self, coord): with self.lock: payload = serialize_coor...
4403808f07e39fbc420704b33cb74fea9af72b9f
modelview/urls.py
modelview/urls.py
from django.conf.urls import url from modelview import views from oeplatform import settings from django.conf.urls.static import static urlpatterns = [ url(r'^(?P<sheettype>[\w\d_]+)s/$', views.listsheets, {}, name='modellist'), url(r'^overview/$', views.overview, {}), url(r'^(?P<sheettype>[\w\d_]+)s/add/...
from django.conf.urls import url from modelview import views from oeplatform import settings from django.conf.urls.static import static urlpatterns = [ url(r'^(?P<sheettype>[\w\d_]+)s/$', views.listsheets, {}, name='modellist'), url(r'^overview/$', views.overview, {}), url(r'^(?P<sheettype>[\w\d_]+)s/add/...
Simplify regex in url matching
Simplify regex in url matching
Python
agpl-3.0
openego/oeplatform,openego/oeplatform,openego/oeplatform,openego/oeplatform
from django.conf.urls import url from modelview import views from oeplatform import settings from django.conf.urls.static import static urlpatterns = [ url(r'^(?P<sheettype>[\w\d_]+)s/$', views.listsheets, {}, name='modellist'), url(r'^overview/$', views.overview, {}), url(r'^(?P<sheettype>[\w\d_]+)s/add/...
from django.conf.urls import url from modelview import views from oeplatform import settings from django.conf.urls.static import static urlpatterns = [ url(r'^(?P<sheettype>[\w\d_]+)s/$', views.listsheets, {}, name='modellist'), url(r'^overview/$', views.overview, {}), url(r'^(?P<sheettype>[\w\d_]+)s/add/...
<commit_before>from django.conf.urls import url from modelview import views from oeplatform import settings from django.conf.urls.static import static urlpatterns = [ url(r'^(?P<sheettype>[\w\d_]+)s/$', views.listsheets, {}, name='modellist'), url(r'^overview/$', views.overview, {}), url(r'^(?P<sheettype>...
from django.conf.urls import url from modelview import views from oeplatform import settings from django.conf.urls.static import static urlpatterns = [ url(r'^(?P<sheettype>[\w\d_]+)s/$', views.listsheets, {}, name='modellist'), url(r'^overview/$', views.overview, {}), url(r'^(?P<sheettype>[\w\d_]+)s/add/...
from django.conf.urls import url from modelview import views from oeplatform import settings from django.conf.urls.static import static urlpatterns = [ url(r'^(?P<sheettype>[\w\d_]+)s/$', views.listsheets, {}, name='modellist'), url(r'^overview/$', views.overview, {}), url(r'^(?P<sheettype>[\w\d_]+)s/add/...
<commit_before>from django.conf.urls import url from modelview import views from oeplatform import settings from django.conf.urls.static import static urlpatterns = [ url(r'^(?P<sheettype>[\w\d_]+)s/$', views.listsheets, {}, name='modellist'), url(r'^overview/$', views.overview, {}), url(r'^(?P<sheettype>...
d54854c11094e0ca8598e59de0bc0795dc8143c9
lib/recordclass/__init__.py
lib/recordclass/__init__.py
# The MIT License (MIT) # # Copyright (c) <2011-2014> <Shibzukhov Zaur, szport at gmail dot com> # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including witho...
# The MIT License (MIT) # # Copyright (c) <2011-2014> <Shibzukhov Zaur, szport at gmail dot com> # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including witho...
Add import of RecordClass to init
Add import of RecordClass to init --HG-- branch : typing
Python
mit
vovanbo/trafaretrecord,vovanbo/trafaretrecord
# The MIT License (MIT) # # Copyright (c) <2011-2014> <Shibzukhov Zaur, szport at gmail dot com> # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including witho...
# The MIT License (MIT) # # Copyright (c) <2011-2014> <Shibzukhov Zaur, szport at gmail dot com> # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including witho...
<commit_before># The MIT License (MIT) # # Copyright (c) <2011-2014> <Shibzukhov Zaur, szport at gmail dot com> # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, ...
# The MIT License (MIT) # # Copyright (c) <2011-2014> <Shibzukhov Zaur, szport at gmail dot com> # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including witho...
# The MIT License (MIT) # # Copyright (c) <2011-2014> <Shibzukhov Zaur, szport at gmail dot com> # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including witho...
<commit_before># The MIT License (MIT) # # Copyright (c) <2011-2014> <Shibzukhov Zaur, szport at gmail dot com> # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, ...
8e0cf99380b284ff4f7b962f622933c243828be7
setup.py
setup.py
from setuptools import setup, find_packages setup( name="django-posgtres-geometry", version="0.1.2", packages=find_packages(), install_requires=['django', 'psycopg2'], description="Django ORM field for Postgres geometry types", author="Daniele Esposti", author_email="expo@expobrain.net", ...
from setuptools import setup, find_packages setup( name="django-postgres-geometry", version="0.1.2", packages=find_packages(), install_requires=['django', 'psycopg2'], description="Django ORM field for Postgres geometry types", author="Daniele Esposti", author_email="expo@expobrain.net", ...
Fix typo in package name
Fix typo in package name
Python
mit
team23/django-postgres-geometry
from setuptools import setup, find_packages setup( name="django-posgtres-geometry", version="0.1.2", packages=find_packages(), install_requires=['django', 'psycopg2'], description="Django ORM field for Postgres geometry types", author="Daniele Esposti", author_email="expo@expobrain.net", ...
from setuptools import setup, find_packages setup( name="django-postgres-geometry", version="0.1.2", packages=find_packages(), install_requires=['django', 'psycopg2'], description="Django ORM field for Postgres geometry types", author="Daniele Esposti", author_email="expo@expobrain.net", ...
<commit_before>from setuptools import setup, find_packages setup( name="django-posgtres-geometry", version="0.1.2", packages=find_packages(), install_requires=['django', 'psycopg2'], description="Django ORM field for Postgres geometry types", author="Daniele Esposti", author_email="expo@ex...
from setuptools import setup, find_packages setup( name="django-postgres-geometry", version="0.1.2", packages=find_packages(), install_requires=['django', 'psycopg2'], description="Django ORM field for Postgres geometry types", author="Daniele Esposti", author_email="expo@expobrain.net", ...
from setuptools import setup, find_packages setup( name="django-posgtres-geometry", version="0.1.2", packages=find_packages(), install_requires=['django', 'psycopg2'], description="Django ORM field for Postgres geometry types", author="Daniele Esposti", author_email="expo@expobrain.net", ...
<commit_before>from setuptools import setup, find_packages setup( name="django-posgtres-geometry", version="0.1.2", packages=find_packages(), install_requires=['django', 'psycopg2'], description="Django ORM field for Postgres geometry types", author="Daniele Esposti", author_email="expo@ex...
f0a1555d9767db413d39b08865e2e3aa8f633d2f
setup.py
setup.py
#! /usr/bin/env python from ez_setup import use_setuptools use_setuptools() from setuptools import setup, find_packages setup(name='permamodel', version='0.1.0', author='Elchin Jafarov and Scott Stewart', author_email='james.stewart@colorado.edu', description='Permamodel', long_descripti...
#! /usr/bin/env python from ez_setup import use_setuptools use_setuptools() from setuptools import setup, find_packages setup(name='permamodel', version='0.1.0', author='Elchin Jafarov and Scott Stewart', author_email='james.stewart@colorado.edu', description='Permamodel', long_descripti...
Add data files for KuModel to package data
Add data files for KuModel to package data
Python
mit
permamodel/permamodel,permamodel/permamodel
#! /usr/bin/env python from ez_setup import use_setuptools use_setuptools() from setuptools import setup, find_packages setup(name='permamodel', version='0.1.0', author='Elchin Jafarov and Scott Stewart', author_email='james.stewart@colorado.edu', description='Permamodel', long_descripti...
#! /usr/bin/env python from ez_setup import use_setuptools use_setuptools() from setuptools import setup, find_packages setup(name='permamodel', version='0.1.0', author='Elchin Jafarov and Scott Stewart', author_email='james.stewart@colorado.edu', description='Permamodel', long_descripti...
<commit_before>#! /usr/bin/env python from ez_setup import use_setuptools use_setuptools() from setuptools import setup, find_packages setup(name='permamodel', version='0.1.0', author='Elchin Jafarov and Scott Stewart', author_email='james.stewart@colorado.edu', description='Permamodel', ...
#! /usr/bin/env python from ez_setup import use_setuptools use_setuptools() from setuptools import setup, find_packages setup(name='permamodel', version='0.1.0', author='Elchin Jafarov and Scott Stewart', author_email='james.stewart@colorado.edu', description='Permamodel', long_descripti...
#! /usr/bin/env python from ez_setup import use_setuptools use_setuptools() from setuptools import setup, find_packages setup(name='permamodel', version='0.1.0', author='Elchin Jafarov and Scott Stewart', author_email='james.stewart@colorado.edu', description='Permamodel', long_descripti...
<commit_before>#! /usr/bin/env python from ez_setup import use_setuptools use_setuptools() from setuptools import setup, find_packages setup(name='permamodel', version='0.1.0', author='Elchin Jafarov and Scott Stewart', author_email='james.stewart@colorado.edu', description='Permamodel', ...
ab6393c6b032689417c22d40fdce88807190b672
setup.py
setup.py
from setuptools import setup, find_packages with open('README.rst') as f: readme = f.read() with open('LICENSE') as f: license = f.read() with open('requirements.txt') as f: requirements = f.readlines() setup( name='pycc', version='1.0.0', url='https://github.com/kevinconway/pycc', lice...
from setuptools import setup, find_packages with open('README.rst') as f: readme = f.read() with open('LICENSE') as f: license = f.read() with open('requirements.txt') as f: requirements = f.readlines() setup( name='pycc', version='2.0.0', url='https://github.com/kevinconway/pycc', lice...
Change version number to reflect recent changes
Change version number to reflect recent changes Bumping a major version to reflect the interface and extension changes which have occurred. Signed-off-by: Kevin Conway <3473c1f185ca03eadc40ad288d84425b54fd7d57@gmail.com>
Python
apache-2.0
kevinconway/pycc,kevinconway/pycc
from setuptools import setup, find_packages with open('README.rst') as f: readme = f.read() with open('LICENSE') as f: license = f.read() with open('requirements.txt') as f: requirements = f.readlines() setup( name='pycc', version='1.0.0', url='https://github.com/kevinconway/pycc', lice...
from setuptools import setup, find_packages with open('README.rst') as f: readme = f.read() with open('LICENSE') as f: license = f.read() with open('requirements.txt') as f: requirements = f.readlines() setup( name='pycc', version='2.0.0', url='https://github.com/kevinconway/pycc', lice...
<commit_before>from setuptools import setup, find_packages with open('README.rst') as f: readme = f.read() with open('LICENSE') as f: license = f.read() with open('requirements.txt') as f: requirements = f.readlines() setup( name='pycc', version='1.0.0', url='https://github.com/kevinconway/...
from setuptools import setup, find_packages with open('README.rst') as f: readme = f.read() with open('LICENSE') as f: license = f.read() with open('requirements.txt') as f: requirements = f.readlines() setup( name='pycc', version='2.0.0', url='https://github.com/kevinconway/pycc', lice...
from setuptools import setup, find_packages with open('README.rst') as f: readme = f.read() with open('LICENSE') as f: license = f.read() with open('requirements.txt') as f: requirements = f.readlines() setup( name='pycc', version='1.0.0', url='https://github.com/kevinconway/pycc', lice...
<commit_before>from setuptools import setup, find_packages with open('README.rst') as f: readme = f.read() with open('LICENSE') as f: license = f.read() with open('requirements.txt') as f: requirements = f.readlines() setup( name='pycc', version='1.0.0', url='https://github.com/kevinconway/...
5c53a20363786bdecc4414631ad776abb1dd72d1
setup.py
setup.py
#!/usr/bin/env python from setuptools import setup import argparse_addons setup(name='argparse_addons', version=argparse_addons.__version__, description=('Additional argparse types and actions.'), long_description=open('README.rst', 'r').read(), author='Erik Moqvist', author_email='erik....
#!/usr/bin/env python from setuptools import setup import argparse_addons setup(name='argparse_addons', version=argparse_addons.__version__, description=('Additional argparse types and actions.'), long_description=open('README.rst', 'r').read(), author='Erik Moqvist', author_email='erik....
Document 3.6+ support in classifiers and python_requires
Document 3.6+ support in classifiers and python_requires
Python
mit
eerimoq/argparse_addons
#!/usr/bin/env python from setuptools import setup import argparse_addons setup(name='argparse_addons', version=argparse_addons.__version__, description=('Additional argparse types and actions.'), long_description=open('README.rst', 'r').read(), author='Erik Moqvist', author_email='erik....
#!/usr/bin/env python from setuptools import setup import argparse_addons setup(name='argparse_addons', version=argparse_addons.__version__, description=('Additional argparse types and actions.'), long_description=open('README.rst', 'r').read(), author='Erik Moqvist', author_email='erik....
<commit_before>#!/usr/bin/env python from setuptools import setup import argparse_addons setup(name='argparse_addons', version=argparse_addons.__version__, description=('Additional argparse types and actions.'), long_description=open('README.rst', 'r').read(), author='Erik Moqvist', auth...
#!/usr/bin/env python from setuptools import setup import argparse_addons setup(name='argparse_addons', version=argparse_addons.__version__, description=('Additional argparse types and actions.'), long_description=open('README.rst', 'r').read(), author='Erik Moqvist', author_email='erik....
#!/usr/bin/env python from setuptools import setup import argparse_addons setup(name='argparse_addons', version=argparse_addons.__version__, description=('Additional argparse types and actions.'), long_description=open('README.rst', 'r').read(), author='Erik Moqvist', author_email='erik....
<commit_before>#!/usr/bin/env python from setuptools import setup import argparse_addons setup(name='argparse_addons', version=argparse_addons.__version__, description=('Additional argparse types and actions.'), long_description=open('README.rst', 'r').read(), author='Erik Moqvist', auth...
83b7b66c2558f292ba686583388065b6b2da25cb
setup.py
setup.py
from setuptools import setup, find_packages setup( name='ppci', description="Pure python compiler infrastructure", scripts=["bin/zcc.py", "bin/st-flash.py", 'bin/hexutil.py'], version='0.0.1', author='Windel Bouwman', include_package_data=True, packages=find_packages(exclude=["*.test.*", "t...
from setuptools import setup, find_packages setup( name='ppci', description="Pure python compiler infrastructure", scripts=["bin/zcc.py", "bin/st-flash.py", 'bin/hexutil.py'], version='0.0.1', author='Windel Bouwman', include_package_data=True, packages=find_packages(exclude=["*.test.*", "t...
Add doc files for packages
Add doc files for packages
Python
bsd-2-clause
windelbouwman/ppci-mirror,windelbouwman/ppci-mirror,windelbouwman/ppci-mirror,windelbouwman/ppci-mirror,windelbouwman/ppci-mirror,windelbouwman/ppci-mirror
from setuptools import setup, find_packages setup( name='ppci', description="Pure python compiler infrastructure", scripts=["bin/zcc.py", "bin/st-flash.py", 'bin/hexutil.py'], version='0.0.1', author='Windel Bouwman', include_package_data=True, packages=find_packages(exclude=["*.test.*", "t...
from setuptools import setup, find_packages setup( name='ppci', description="Pure python compiler infrastructure", scripts=["bin/zcc.py", "bin/st-flash.py", 'bin/hexutil.py'], version='0.0.1', author='Windel Bouwman', include_package_data=True, packages=find_packages(exclude=["*.test.*", "t...
<commit_before>from setuptools import setup, find_packages setup( name='ppci', description="Pure python compiler infrastructure", scripts=["bin/zcc.py", "bin/st-flash.py", 'bin/hexutil.py'], version='0.0.1', author='Windel Bouwman', include_package_data=True, packages=find_packages(exclude=...
from setuptools import setup, find_packages setup( name='ppci', description="Pure python compiler infrastructure", scripts=["bin/zcc.py", "bin/st-flash.py", 'bin/hexutil.py'], version='0.0.1', author='Windel Bouwman', include_package_data=True, packages=find_packages(exclude=["*.test.*", "t...
from setuptools import setup, find_packages setup( name='ppci', description="Pure python compiler infrastructure", scripts=["bin/zcc.py", "bin/st-flash.py", 'bin/hexutil.py'], version='0.0.1', author='Windel Bouwman', include_package_data=True, packages=find_packages(exclude=["*.test.*", "t...
<commit_before>from setuptools import setup, find_packages setup( name='ppci', description="Pure python compiler infrastructure", scripts=["bin/zcc.py", "bin/st-flash.py", 'bin/hexutil.py'], version='0.0.1', author='Windel Bouwman', include_package_data=True, packages=find_packages(exclude=...
7c9dac667c47d41c2da52ff993967f27016f6ba9
profile_benchmark.py
profile_benchmark.py
# Profile the basic test execution from pyresttest import resttest from pyresttest.benchmarks import Benchmark import cProfile test = Benchmark() test.warmup_runs = 0 test.benchmark_runs = 1000 test.raw_metrics = set() test.metrics = {'total_time'} test.aggregated_metrics = {'total_time': ['total','mean']} test.url =...
# Profile the basic test execution from pyresttest import resttest from pyresttest.benchmarks import Benchmark from pyresttest.binding import Context from pyresttest.contenthandling import ContentHandler from pyresttest.generators import factory_generate_ids import cProfile test = Benchmark() test.warmup_runs = 0 te...
Add profiler benchmark for generator functionality
Add profiler benchmark for generator functionality
Python
apache-2.0
MorrisJobke/pyresttest,alazaro/pyresttest,suvarnaraju/pyresttest,sunyanhui/pyresttest,wirewit/pyresttest,holdenweb/pyresttest,suvarnaraju/pyresttest,janusnic/pyresttest,MorrisJobke/pyresttest,alazaro/pyresttest,wirewit/pyresttest,sunyanhui/pyresttest,svanoort/pyresttest,netjunki/pyresttest,janusnic/pyresttest,TimYi/pyr...
# Profile the basic test execution from pyresttest import resttest from pyresttest.benchmarks import Benchmark import cProfile test = Benchmark() test.warmup_runs = 0 test.benchmark_runs = 1000 test.raw_metrics = set() test.metrics = {'total_time'} test.aggregated_metrics = {'total_time': ['total','mean']} test.url =...
# Profile the basic test execution from pyresttest import resttest from pyresttest.benchmarks import Benchmark from pyresttest.binding import Context from pyresttest.contenthandling import ContentHandler from pyresttest.generators import factory_generate_ids import cProfile test = Benchmark() test.warmup_runs = 0 te...
<commit_before># Profile the basic test execution from pyresttest import resttest from pyresttest.benchmarks import Benchmark import cProfile test = Benchmark() test.warmup_runs = 0 test.benchmark_runs = 1000 test.raw_metrics = set() test.metrics = {'total_time'} test.aggregated_metrics = {'total_time': ['total','mea...
# Profile the basic test execution from pyresttest import resttest from pyresttest.benchmarks import Benchmark from pyresttest.binding import Context from pyresttest.contenthandling import ContentHandler from pyresttest.generators import factory_generate_ids import cProfile test = Benchmark() test.warmup_runs = 0 te...
# Profile the basic test execution from pyresttest import resttest from pyresttest.benchmarks import Benchmark import cProfile test = Benchmark() test.warmup_runs = 0 test.benchmark_runs = 1000 test.raw_metrics = set() test.metrics = {'total_time'} test.aggregated_metrics = {'total_time': ['total','mean']} test.url =...
<commit_before># Profile the basic test execution from pyresttest import resttest from pyresttest.benchmarks import Benchmark import cProfile test = Benchmark() test.warmup_runs = 0 test.benchmark_runs = 1000 test.raw_metrics = set() test.metrics = {'total_time'} test.aggregated_metrics = {'total_time': ['total','mea...
e3fbf8ca10f0ed522bd2e819479bd93243ec4990
setup.py
setup.py
from setuptools import setup, find_packages setup( name='validation', url='https://github.com/JOIVY/validation', version='0.0.1', author='Ben Mather', author_email='bwhmather@bwhmather.com', maintainer='', license='BSD', description=( "A library for runtime type checking and va...
from setuptools import setup, find_packages setup( name='validation', url='https://github.com/JOIVY/validation', version='0.0.1', author='Ben Mather', author_email='bwhmather@bwhmather.com', maintainer='', license='BSD', description=( "A library for runtime type checking and va...
Add dependency on six to help support legacy python2
Add dependency on six to help support legacy python2
Python
apache-2.0
JOIVY/validation
from setuptools import setup, find_packages setup( name='validation', url='https://github.com/JOIVY/validation', version='0.0.1', author='Ben Mather', author_email='bwhmather@bwhmather.com', maintainer='', license='BSD', description=( "A library for runtime type checking and va...
from setuptools import setup, find_packages setup( name='validation', url='https://github.com/JOIVY/validation', version='0.0.1', author='Ben Mather', author_email='bwhmather@bwhmather.com', maintainer='', license='BSD', description=( "A library for runtime type checking and va...
<commit_before>from setuptools import setup, find_packages setup( name='validation', url='https://github.com/JOIVY/validation', version='0.0.1', author='Ben Mather', author_email='bwhmather@bwhmather.com', maintainer='', license='BSD', description=( "A library for runtime type ...
from setuptools import setup, find_packages setup( name='validation', url='https://github.com/JOIVY/validation', version='0.0.1', author='Ben Mather', author_email='bwhmather@bwhmather.com', maintainer='', license='BSD', description=( "A library for runtime type checking and va...
from setuptools import setup, find_packages setup( name='validation', url='https://github.com/JOIVY/validation', version='0.0.1', author='Ben Mather', author_email='bwhmather@bwhmather.com', maintainer='', license='BSD', description=( "A library for runtime type checking and va...
<commit_before>from setuptools import setup, find_packages setup( name='validation', url='https://github.com/JOIVY/validation', version='0.0.1', author='Ben Mather', author_email='bwhmather@bwhmather.com', maintainer='', license='BSD', description=( "A library for runtime type ...
1f272ede03be0a9953839b1d19fe8a61ebef488f
setup.py
setup.py
#!/usr/bin/env python from setuptools import setup setup(name='l1', version='0.1', description='L1', author='Bugra Akyildiz', author_email='vbugra@gmail.com', url='bugra.github.io', packages=['l1'], install_requires=['pandas==1.2.1', 'cvxopt==1.2.5.pos...
#!/usr/bin/env python from setuptools import setup setup(name='l1', version='0.1', description='L1', author='Bugra Akyildiz', author_email='vbugra@gmail.com', url='bugra.github.io', packages=['l1'], install_requires=['pandas==1.2.1', 'cvxopt==1.2.6', ...
Bump cvxopt from 1.2.5.post1 to 1.2.6
Bump cvxopt from 1.2.5.post1 to 1.2.6 Bumps [cvxopt](http://cvxopt.org) from 1.2.5.post1 to 1.2.6. Signed-off-by: dependabot-preview[bot] <5bdcd3c0d4d24ae3e71b3b452a024c6324c7e4bb@dependabot.com>
Python
apache-2.0
bugra/l1
#!/usr/bin/env python from setuptools import setup setup(name='l1', version='0.1', description='L1', author='Bugra Akyildiz', author_email='vbugra@gmail.com', url='bugra.github.io', packages=['l1'], install_requires=['pandas==1.2.1', 'cvxopt==1.2.5.pos...
#!/usr/bin/env python from setuptools import setup setup(name='l1', version='0.1', description='L1', author='Bugra Akyildiz', author_email='vbugra@gmail.com', url='bugra.github.io', packages=['l1'], install_requires=['pandas==1.2.1', 'cvxopt==1.2.6', ...
<commit_before>#!/usr/bin/env python from setuptools import setup setup(name='l1', version='0.1', description='L1', author='Bugra Akyildiz', author_email='vbugra@gmail.com', url='bugra.github.io', packages=['l1'], install_requires=['pandas==1.2.1', 'cv...
#!/usr/bin/env python from setuptools import setup setup(name='l1', version='0.1', description='L1', author='Bugra Akyildiz', author_email='vbugra@gmail.com', url='bugra.github.io', packages=['l1'], install_requires=['pandas==1.2.1', 'cvxopt==1.2.6', ...
#!/usr/bin/env python from setuptools import setup setup(name='l1', version='0.1', description='L1', author='Bugra Akyildiz', author_email='vbugra@gmail.com', url='bugra.github.io', packages=['l1'], install_requires=['pandas==1.2.1', 'cvxopt==1.2.5.pos...
<commit_before>#!/usr/bin/env python from setuptools import setup setup(name='l1', version='0.1', description='L1', author='Bugra Akyildiz', author_email='vbugra@gmail.com', url='bugra.github.io', packages=['l1'], install_requires=['pandas==1.2.1', 'cv...
323d52928fa58196299e1dde0c5b3ef0d1451d9f
setup.py
setup.py
from setuptools import find_packages, setup import sys if 'install' in sys.argv: import webbrowser webbrowser.open('https://www.youtube.com/watch?v=NMZcwXh7HDA', new=2, autoraise=True) setup( name='rdalal', version='1.0', description='Install some sweet Rehan', author='Will Kahn-Greene', ...
from setuptools import find_packages, setup import sys if 'install' in sys.argv: import webbrowser webbrowser.open('https://www.youtube.com/watch?v=NMZcwXh7HDA', new=2, autoraise=True) setup( name='rdalal', version='1.1', description='Install some sweet Rehan', author='Will Kahn-Greene', ...
Set to 1.1 for new release
Set to 1.1 for new release
Python
bsd-3-clause
willkg/rdalal
from setuptools import find_packages, setup import sys if 'install' in sys.argv: import webbrowser webbrowser.open('https://www.youtube.com/watch?v=NMZcwXh7HDA', new=2, autoraise=True) setup( name='rdalal', version='1.0', description='Install some sweet Rehan', author='Will Kahn-Greene', ...
from setuptools import find_packages, setup import sys if 'install' in sys.argv: import webbrowser webbrowser.open('https://www.youtube.com/watch?v=NMZcwXh7HDA', new=2, autoraise=True) setup( name='rdalal', version='1.1', description='Install some sweet Rehan', author='Will Kahn-Greene', ...
<commit_before>from setuptools import find_packages, setup import sys if 'install' in sys.argv: import webbrowser webbrowser.open('https://www.youtube.com/watch?v=NMZcwXh7HDA', new=2, autoraise=True) setup( name='rdalal', version='1.0', description='Install some sweet Rehan', author='Will Ka...
from setuptools import find_packages, setup import sys if 'install' in sys.argv: import webbrowser webbrowser.open('https://www.youtube.com/watch?v=NMZcwXh7HDA', new=2, autoraise=True) setup( name='rdalal', version='1.1', description='Install some sweet Rehan', author='Will Kahn-Greene', ...
from setuptools import find_packages, setup import sys if 'install' in sys.argv: import webbrowser webbrowser.open('https://www.youtube.com/watch?v=NMZcwXh7HDA', new=2, autoraise=True) setup( name='rdalal', version='1.0', description='Install some sweet Rehan', author='Will Kahn-Greene', ...
<commit_before>from setuptools import find_packages, setup import sys if 'install' in sys.argv: import webbrowser webbrowser.open('https://www.youtube.com/watch?v=NMZcwXh7HDA', new=2, autoraise=True) setup( name='rdalal', version='1.0', description='Install some sweet Rehan', author='Will Ka...
ae09eb021d6b119a2fdb9a82852ab424acf8f409
setup.py
setup.py
from setuptools import setup cli_tools = ["spritecss = spritecss.main:main"] setup(name="spritecss", version="0.5", url="http://yostudios.se/", author="Yo Studios AB", author_email="opensource@yostudios.se", description="Do-what-I-mean automatic CSS spritemapper", license="MIT/X11", packages=[...
from setuptools import setup cli_tools = ["spritemapper = spritecss.main:main"] setup(name="spritemapper", version="0.5", url="http://yostudios.se/", author="Yo Studios AB", author_email="opensource@yostudios.se", description="Do-what-I-mean automatic CSS spritemapper", license="MIT/X11", pack...
Rename distribution, binary to spritemapper
Rename distribution, binary to spritemapper
Python
mit
wpj-cz/Spritemapper,yostudios/Spritemapper,yostudios/Spritemapper,wpj-cz/Spritemapper,wpj-cz/Spritemapper,wpj-cz/Spritemapper,yostudios/Spritemapper
from setuptools import setup cli_tools = ["spritecss = spritecss.main:main"] setup(name="spritecss", version="0.5", url="http://yostudios.se/", author="Yo Studios AB", author_email="opensource@yostudios.se", description="Do-what-I-mean automatic CSS spritemapper", license="MIT/X11", packages=[...
from setuptools import setup cli_tools = ["spritemapper = spritecss.main:main"] setup(name="spritemapper", version="0.5", url="http://yostudios.se/", author="Yo Studios AB", author_email="opensource@yostudios.se", description="Do-what-I-mean automatic CSS spritemapper", license="MIT/X11", pack...
<commit_before>from setuptools import setup cli_tools = ["spritecss = spritecss.main:main"] setup(name="spritecss", version="0.5", url="http://yostudios.se/", author="Yo Studios AB", author_email="opensource@yostudios.se", description="Do-what-I-mean automatic CSS spritemapper", license="MIT/X11", ...
from setuptools import setup cli_tools = ["spritemapper = spritecss.main:main"] setup(name="spritemapper", version="0.5", url="http://yostudios.se/", author="Yo Studios AB", author_email="opensource@yostudios.se", description="Do-what-I-mean automatic CSS spritemapper", license="MIT/X11", pack...
from setuptools import setup cli_tools = ["spritecss = spritecss.main:main"] setup(name="spritecss", version="0.5", url="http://yostudios.se/", author="Yo Studios AB", author_email="opensource@yostudios.se", description="Do-what-I-mean automatic CSS spritemapper", license="MIT/X11", packages=[...
<commit_before>from setuptools import setup cli_tools = ["spritecss = spritecss.main:main"] setup(name="spritecss", version="0.5", url="http://yostudios.se/", author="Yo Studios AB", author_email="opensource@yostudios.se", description="Do-what-I-mean automatic CSS spritemapper", license="MIT/X11", ...
3154a8bd09e8d445de6893862c646c9fb983021d
setup.py
setup.py
#!/usr/bin/env python3 from setuptools import find_packages, setup setup( name='django-afip', description='AFIP integration for django', author='Hugo Osvaldo Barrera', author_email='hugo@barrera.io', url='https://gitlab.com/hobarrera/django-afip', license='ISC', packages=find_packages(), ...
#!/usr/bin/env python3 from setuptools import find_packages, setup setup( name='django-afip', description='AFIP integration for django', author='Hugo Osvaldo Barrera', author_email='hugo@barrera.io', url='https://gitlab.com/hobarrera/django-afip', license='ISC', packages=find_packages(), ...
Add classifiers for py35 and py36
Add classifiers for py35 and py36
Python
isc
hobarrera/django-afip,hobarrera/django-afip
#!/usr/bin/env python3 from setuptools import find_packages, setup setup( name='django-afip', description='AFIP integration for django', author='Hugo Osvaldo Barrera', author_email='hugo@barrera.io', url='https://gitlab.com/hobarrera/django-afip', license='ISC', packages=find_packages(), ...
#!/usr/bin/env python3 from setuptools import find_packages, setup setup( name='django-afip', description='AFIP integration for django', author='Hugo Osvaldo Barrera', author_email='hugo@barrera.io', url='https://gitlab.com/hobarrera/django-afip', license='ISC', packages=find_packages(), ...
<commit_before>#!/usr/bin/env python3 from setuptools import find_packages, setup setup( name='django-afip', description='AFIP integration for django', author='Hugo Osvaldo Barrera', author_email='hugo@barrera.io', url='https://gitlab.com/hobarrera/django-afip', license='ISC', packages=fin...
#!/usr/bin/env python3 from setuptools import find_packages, setup setup( name='django-afip', description='AFIP integration for django', author='Hugo Osvaldo Barrera', author_email='hugo@barrera.io', url='https://gitlab.com/hobarrera/django-afip', license='ISC', packages=find_packages(), ...
#!/usr/bin/env python3 from setuptools import find_packages, setup setup( name='django-afip', description='AFIP integration for django', author='Hugo Osvaldo Barrera', author_email='hugo@barrera.io', url='https://gitlab.com/hobarrera/django-afip', license='ISC', packages=find_packages(), ...
<commit_before>#!/usr/bin/env python3 from setuptools import find_packages, setup setup( name='django-afip', description='AFIP integration for django', author='Hugo Osvaldo Barrera', author_email='hugo@barrera.io', url='https://gitlab.com/hobarrera/django-afip', license='ISC', packages=fin...
fe7d10780cd3c98277c64621c07daab0837b6722
setup.py
setup.py
from setuptools import setup, find_packages from lighthouse import __version__ classifiers = [] with open("classifiers.txt") as fd: classifiers = fd.readlines() setup( name="lighthouse", version=__version__, description="Service discovery tool focused on ease-of-use and resiliency", author="Wil...
from setuptools import setup, find_packages from lighthouse import __version__ classifiers = [] with open("classifiers.txt") as fd: classifiers = fd.readlines() setup( name="lighthouse", version=__version__, description="Service discovery tool focused on ease-of-use and resiliency", author="Wil...
Add the futures lib backport as a dependency.
Add the futures lib backport as a dependency.
Python
apache-2.0
wglass/lighthouse
from setuptools import setup, find_packages from lighthouse import __version__ classifiers = [] with open("classifiers.txt") as fd: classifiers = fd.readlines() setup( name="lighthouse", version=__version__, description="Service discovery tool focused on ease-of-use and resiliency", author="Wil...
from setuptools import setup, find_packages from lighthouse import __version__ classifiers = [] with open("classifiers.txt") as fd: classifiers = fd.readlines() setup( name="lighthouse", version=__version__, description="Service discovery tool focused on ease-of-use and resiliency", author="Wil...
<commit_before>from setuptools import setup, find_packages from lighthouse import __version__ classifiers = [] with open("classifiers.txt") as fd: classifiers = fd.readlines() setup( name="lighthouse", version=__version__, description="Service discovery tool focused on ease-of-use and resiliency", ...
from setuptools import setup, find_packages from lighthouse import __version__ classifiers = [] with open("classifiers.txt") as fd: classifiers = fd.readlines() setup( name="lighthouse", version=__version__, description="Service discovery tool focused on ease-of-use and resiliency", author="Wil...
from setuptools import setup, find_packages from lighthouse import __version__ classifiers = [] with open("classifiers.txt") as fd: classifiers = fd.readlines() setup( name="lighthouse", version=__version__, description="Service discovery tool focused on ease-of-use and resiliency", author="Wil...
<commit_before>from setuptools import setup, find_packages from lighthouse import __version__ classifiers = [] with open("classifiers.txt") as fd: classifiers = fd.readlines() setup( name="lighthouse", version=__version__, description="Service discovery tool focused on ease-of-use and resiliency", ...
4c75f1ecb9a0a6533b02834ec2a0db91472f7f32
setup.py
setup.py
from setuptools import setup, find_packages setup( name='jupyterhub-kubespawner', version='0.5.1', install_requires=[ 'jupyterhub', 'pyyaml', 'kubernetes==2.*', 'escapism', ], setup_requires=['pytest-runner'], tests_require=['pytest'], description='JupyterHub...
from setuptools import setup, find_packages setup( name='jupyterhub-kubespawner', version='0.5.1', install_requires=[ 'jupyterhub', 'pyyaml', 'kubernetes==2.*', 'escapism', 'jupyter', ], setup_requires=['pytest-runner'], tests_require=['pytest'], desc...
Add jupyter to satisfy jupyterhub dependency
Add jupyter to satisfy jupyterhub dependency
Python
bsd-3-clause
jupyterhub/kubespawner,ktong/kubespawner,yuvipanda/jupyterhub-kubernetes-spawner
from setuptools import setup, find_packages setup( name='jupyterhub-kubespawner', version='0.5.1', install_requires=[ 'jupyterhub', 'pyyaml', 'kubernetes==2.*', 'escapism', ], setup_requires=['pytest-runner'], tests_require=['pytest'], description='JupyterHub...
from setuptools import setup, find_packages setup( name='jupyterhub-kubespawner', version='0.5.1', install_requires=[ 'jupyterhub', 'pyyaml', 'kubernetes==2.*', 'escapism', 'jupyter', ], setup_requires=['pytest-runner'], tests_require=['pytest'], desc...
<commit_before>from setuptools import setup, find_packages setup( name='jupyterhub-kubespawner', version='0.5.1', install_requires=[ 'jupyterhub', 'pyyaml', 'kubernetes==2.*', 'escapism', ], setup_requires=['pytest-runner'], tests_require=['pytest'], descript...
from setuptools import setup, find_packages setup( name='jupyterhub-kubespawner', version='0.5.1', install_requires=[ 'jupyterhub', 'pyyaml', 'kubernetes==2.*', 'escapism', 'jupyter', ], setup_requires=['pytest-runner'], tests_require=['pytest'], desc...
from setuptools import setup, find_packages setup( name='jupyterhub-kubespawner', version='0.5.1', install_requires=[ 'jupyterhub', 'pyyaml', 'kubernetes==2.*', 'escapism', ], setup_requires=['pytest-runner'], tests_require=['pytest'], description='JupyterHub...
<commit_before>from setuptools import setup, find_packages setup( name='jupyterhub-kubespawner', version='0.5.1', install_requires=[ 'jupyterhub', 'pyyaml', 'kubernetes==2.*', 'escapism', ], setup_requires=['pytest-runner'], tests_require=['pytest'], descript...
92af23a3677d57364ec3d7bf6aaf8d320dd4fe94
setup.py
setup.py
from setuptools import setup, find_packages setup( name="vxtwinio", version="0.0.1a", url="https://github.com/praekelt/vumi-twilio-api", license="BSD", description="Provides a REST API to Vumi that emulates the Twilio API", long_description=open("README.rst", "r").read(), author="Praekelt F...
from setuptools import setup, find_packages setup( name="vxtwinio", version="0.0.1a", url="https://github.com/praekelt/vumi-twilio-api", license="BSD", description="Provides a REST API to Vumi that emulates the Twilio API", long_description=open("README.rst", "r").read(), author="Praekelt F...
Add vumi and klein to requirements
Add vumi and klein to requirements
Python
bsd-3-clause
praekelt/vumi-twilio-api
from setuptools import setup, find_packages setup( name="vxtwinio", version="0.0.1a", url="https://github.com/praekelt/vumi-twilio-api", license="BSD", description="Provides a REST API to Vumi that emulates the Twilio API", long_description=open("README.rst", "r").read(), author="Praekelt F...
from setuptools import setup, find_packages setup( name="vxtwinio", version="0.0.1a", url="https://github.com/praekelt/vumi-twilio-api", license="BSD", description="Provides a REST API to Vumi that emulates the Twilio API", long_description=open("README.rst", "r").read(), author="Praekelt F...
<commit_before>from setuptools import setup, find_packages setup( name="vxtwinio", version="0.0.1a", url="https://github.com/praekelt/vumi-twilio-api", license="BSD", description="Provides a REST API to Vumi that emulates the Twilio API", long_description=open("README.rst", "r").read(), aut...
from setuptools import setup, find_packages setup( name="vxtwinio", version="0.0.1a", url="https://github.com/praekelt/vumi-twilio-api", license="BSD", description="Provides a REST API to Vumi that emulates the Twilio API", long_description=open("README.rst", "r").read(), author="Praekelt F...
from setuptools import setup, find_packages setup( name="vxtwinio", version="0.0.1a", url="https://github.com/praekelt/vumi-twilio-api", license="BSD", description="Provides a REST API to Vumi that emulates the Twilio API", long_description=open("README.rst", "r").read(), author="Praekelt F...
<commit_before>from setuptools import setup, find_packages setup( name="vxtwinio", version="0.0.1a", url="https://github.com/praekelt/vumi-twilio-api", license="BSD", description="Provides a REST API to Vumi that emulates the Twilio API", long_description=open("README.rst", "r").read(), aut...
f176a726debd870fa2f75bdf7ccf8229bab95da4
setup.py
setup.py
#!/usr/bin/env python from setuptools import setup, find_packages import sys import os import glob setup(name = "scilifelab", version = "0.2.2", author = "Science for Life Laboratory", author_email = "genomics_support@scilifelab.se", description = "Useful scripts for use at SciLifeLab", l...
#!/usr/bin/env python from setuptools import setup, find_packages import sys import os import glob setup(name = "scilifelab", version = "0.2.2", author = "Science for Life Laboratory", author_email = "genomics_support@scilifelab.se", description = "Useful scripts for use at SciLifeLab", l...
Set template wildcard to *.mako
Set template wildcard to *.mako
Python
mit
senthil10/scilifelab,SciLifeLab/scilifelab,SciLifeLab/scilifelab,SciLifeLab/scilifelab,kate-v-stepanova/scilifelab,jun-wan/scilifelab,senthil10/scilifelab,kate-v-stepanova/scilifelab,jun-wan/scilifelab,SciLifeLab/scilifelab,kate-v-stepanova/scilifelab,jun-wan/scilifelab,senthil10/scilifelab,jun-wan/scilifelab,kate-v-st...
#!/usr/bin/env python from setuptools import setup, find_packages import sys import os import glob setup(name = "scilifelab", version = "0.2.2", author = "Science for Life Laboratory", author_email = "genomics_support@scilifelab.se", description = "Useful scripts for use at SciLifeLab", l...
#!/usr/bin/env python from setuptools import setup, find_packages import sys import os import glob setup(name = "scilifelab", version = "0.2.2", author = "Science for Life Laboratory", author_email = "genomics_support@scilifelab.se", description = "Useful scripts for use at SciLifeLab", l...
<commit_before>#!/usr/bin/env python from setuptools import setup, find_packages import sys import os import glob setup(name = "scilifelab", version = "0.2.2", author = "Science for Life Laboratory", author_email = "genomics_support@scilifelab.se", description = "Useful scripts for use at SciLi...
#!/usr/bin/env python from setuptools import setup, find_packages import sys import os import glob setup(name = "scilifelab", version = "0.2.2", author = "Science for Life Laboratory", author_email = "genomics_support@scilifelab.se", description = "Useful scripts for use at SciLifeLab", l...
#!/usr/bin/env python from setuptools import setup, find_packages import sys import os import glob setup(name = "scilifelab", version = "0.2.2", author = "Science for Life Laboratory", author_email = "genomics_support@scilifelab.se", description = "Useful scripts for use at SciLifeLab", l...
<commit_before>#!/usr/bin/env python from setuptools import setup, find_packages import sys import os import glob setup(name = "scilifelab", version = "0.2.2", author = "Science for Life Laboratory", author_email = "genomics_support@scilifelab.se", description = "Useful scripts for use at SciLi...
e211c9cb76a2f20e8b00a88e148850829ad86ec5
setup.py
setup.py
from distutils.core import setup from setuptools import setup, find_packages setup( name = "django-webmaster-verification", version = "0.1", author = "Nicolas Kuttler", author_email = "pypi@nicolaskuttler.com", description = "Webmaster tools verification for Django", long_description = open("RE...
try: from setuptools import setup except ImportError: from distutils.core import setup setup( name = "django-webmaster-verification", version = "0.1", author = "Nicolas Kuttler", author_email = "pypi@nicolaskuttler.com", description = "Webmaster tools verification for Django", long_desc...
Update according to the django wiki
Update according to the django wiki https://code.djangoproject.com/wiki/DosAndDontsForApplicationWriters
Python
bsd-3-clause
nkuttler/django-webmaster-verification,nkuttler/django-webmaster-verification
from distutils.core import setup from setuptools import setup, find_packages setup( name = "django-webmaster-verification", version = "0.1", author = "Nicolas Kuttler", author_email = "pypi@nicolaskuttler.com", description = "Webmaster tools verification for Django", long_description = open("RE...
try: from setuptools import setup except ImportError: from distutils.core import setup setup( name = "django-webmaster-verification", version = "0.1", author = "Nicolas Kuttler", author_email = "pypi@nicolaskuttler.com", description = "Webmaster tools verification for Django", long_desc...
<commit_before>from distutils.core import setup from setuptools import setup, find_packages setup( name = "django-webmaster-verification", version = "0.1", author = "Nicolas Kuttler", author_email = "pypi@nicolaskuttler.com", description = "Webmaster tools verification for Django", long_descrip...
try: from setuptools import setup except ImportError: from distutils.core import setup setup( name = "django-webmaster-verification", version = "0.1", author = "Nicolas Kuttler", author_email = "pypi@nicolaskuttler.com", description = "Webmaster tools verification for Django", long_desc...
from distutils.core import setup from setuptools import setup, find_packages setup( name = "django-webmaster-verification", version = "0.1", author = "Nicolas Kuttler", author_email = "pypi@nicolaskuttler.com", description = "Webmaster tools verification for Django", long_description = open("RE...
<commit_before>from distutils.core import setup from setuptools import setup, find_packages setup( name = "django-webmaster-verification", version = "0.1", author = "Nicolas Kuttler", author_email = "pypi@nicolaskuttler.com", description = "Webmaster tools verification for Django", long_descrip...
26e30e7f283a9ffb0a9a9a3f1a6f11f11bbab1e1
setup.py
setup.py
#!/usr/bin/env python from setuptools import setup, find_packages import os here = os.path.abspath(os.path.dirname(__file__)) with open(os.path.join(here, 'README')) as f: README = f.read() requires = [] setup(name='python-bitcoinlib', version='0.2.1', description='This python library provides an easy i...
#!/usr/bin/env python from setuptools import setup, find_packages import os here = os.path.abspath(os.path.dirname(__file__)) with open(os.path.join(here, 'README')) as f: README = f.read() requires = [] setup(name='python-bitcoinlib', version='0.2.2-SNAPSHOT', description='This python library provides ...
Reset version for future development
Reset version for future development
Python
mit
petertodd/dust-b-gone
#!/usr/bin/env python from setuptools import setup, find_packages import os here = os.path.abspath(os.path.dirname(__file__)) with open(os.path.join(here, 'README')) as f: README = f.read() requires = [] setup(name='python-bitcoinlib', version='0.2.1', description='This python library provides an easy i...
#!/usr/bin/env python from setuptools import setup, find_packages import os here = os.path.abspath(os.path.dirname(__file__)) with open(os.path.join(here, 'README')) as f: README = f.read() requires = [] setup(name='python-bitcoinlib', version='0.2.2-SNAPSHOT', description='This python library provides ...
<commit_before>#!/usr/bin/env python from setuptools import setup, find_packages import os here = os.path.abspath(os.path.dirname(__file__)) with open(os.path.join(here, 'README')) as f: README = f.read() requires = [] setup(name='python-bitcoinlib', version='0.2.1', description='This python library pro...
#!/usr/bin/env python from setuptools import setup, find_packages import os here = os.path.abspath(os.path.dirname(__file__)) with open(os.path.join(here, 'README')) as f: README = f.read() requires = [] setup(name='python-bitcoinlib', version='0.2.2-SNAPSHOT', description='This python library provides ...
#!/usr/bin/env python from setuptools import setup, find_packages import os here = os.path.abspath(os.path.dirname(__file__)) with open(os.path.join(here, 'README')) as f: README = f.read() requires = [] setup(name='python-bitcoinlib', version='0.2.1', description='This python library provides an easy i...
<commit_before>#!/usr/bin/env python from setuptools import setup, find_packages import os here = os.path.abspath(os.path.dirname(__file__)) with open(os.path.join(here, 'README')) as f: README = f.read() requires = [] setup(name='python-bitcoinlib', version='0.2.1', description='This python library pro...
8a2fa728cc62b61eb83f180fb73784d06482ec2e
setup.py
setup.py
import io import os import re from setuptools import setup, find_packages def find_version(): file_dir = os.path.dirname(__file__) with io.open(os.path.join(file_dir, 'auth0', '__init__.py')) as f: version = re.search(r'^__version__ = [\'"]([^\'"]*)[\'"]', f.read()) if version: ret...
import io import os import re from setuptools import setup, find_packages def find_version(): file_dir = os.path.dirname(__file__) with io.open(os.path.join(file_dir, 'auth0', '__init__.py')) as f: version = re.search(r'^__version__ = [\'"]([^\'"]*)[\'"]', f.read()) if version: ret...
Update supported versions to match supported CPython versions
Update supported versions to match supported CPython versions
Python
mit
auth0/auth0-python,auth0/auth0-python
import io import os import re from setuptools import setup, find_packages def find_version(): file_dir = os.path.dirname(__file__) with io.open(os.path.join(file_dir, 'auth0', '__init__.py')) as f: version = re.search(r'^__version__ = [\'"]([^\'"]*)[\'"]', f.read()) if version: ret...
import io import os import re from setuptools import setup, find_packages def find_version(): file_dir = os.path.dirname(__file__) with io.open(os.path.join(file_dir, 'auth0', '__init__.py')) as f: version = re.search(r'^__version__ = [\'"]([^\'"]*)[\'"]', f.read()) if version: ret...
<commit_before>import io import os import re from setuptools import setup, find_packages def find_version(): file_dir = os.path.dirname(__file__) with io.open(os.path.join(file_dir, 'auth0', '__init__.py')) as f: version = re.search(r'^__version__ = [\'"]([^\'"]*)[\'"]', f.read()) if version: ...
import io import os import re from setuptools import setup, find_packages def find_version(): file_dir = os.path.dirname(__file__) with io.open(os.path.join(file_dir, 'auth0', '__init__.py')) as f: version = re.search(r'^__version__ = [\'"]([^\'"]*)[\'"]', f.read()) if version: ret...
import io import os import re from setuptools import setup, find_packages def find_version(): file_dir = os.path.dirname(__file__) with io.open(os.path.join(file_dir, 'auth0', '__init__.py')) as f: version = re.search(r'^__version__ = [\'"]([^\'"]*)[\'"]', f.read()) if version: ret...
<commit_before>import io import os import re from setuptools import setup, find_packages def find_version(): file_dir = os.path.dirname(__file__) with io.open(os.path.join(file_dir, 'auth0', '__init__.py')) as f: version = re.search(r'^__version__ = [\'"]([^\'"]*)[\'"]', f.read()) if version: ...
9c8289f531abfd75a1c378f53ea58136e29e662c
setup.py
setup.py
from setuptools import setup setup( name='exp_sdk', packages= ['exp_sdk'], version='1.0.0a2', description='EXP Python SDK', author='Scala', author_email='james.dalessio@scala.com', url='https://github.com/scalainc/exp-python2-sdk', download_url='https://github.com/scalainc/exp-python2-sdk/tarball/1.0....
from setuptools import setup setup( name='exp_sdk', packages= ['exp_sdk'], version='1.0.0rc1', description='EXP Python SDK', author='Scala', author_email='james.dalessio@scala.com', url='https://github.com/scalainc/exp-python2-sdk', download_url='https://github.com/scalainc/exp-python2-sdk/tarball/1.0...
Move to rc1. Figuring this out.
Move to rc1. Figuring this out.
Python
mit
ScalaInc/exp-python2-sdk,ScalaInc/exp-python2-sdk
from setuptools import setup setup( name='exp_sdk', packages= ['exp_sdk'], version='1.0.0a2', description='EXP Python SDK', author='Scala', author_email='james.dalessio@scala.com', url='https://github.com/scalainc/exp-python2-sdk', download_url='https://github.com/scalainc/exp-python2-sdk/tarball/1.0....
from setuptools import setup setup( name='exp_sdk', packages= ['exp_sdk'], version='1.0.0rc1', description='EXP Python SDK', author='Scala', author_email='james.dalessio@scala.com', url='https://github.com/scalainc/exp-python2-sdk', download_url='https://github.com/scalainc/exp-python2-sdk/tarball/1.0...
<commit_before> from setuptools import setup setup( name='exp_sdk', packages= ['exp_sdk'], version='1.0.0a2', description='EXP Python SDK', author='Scala', author_email='james.dalessio@scala.com', url='https://github.com/scalainc/exp-python2-sdk', download_url='https://github.com/scalainc/exp-python2-s...
from setuptools import setup setup( name='exp_sdk', packages= ['exp_sdk'], version='1.0.0rc1', description='EXP Python SDK', author='Scala', author_email='james.dalessio@scala.com', url='https://github.com/scalainc/exp-python2-sdk', download_url='https://github.com/scalainc/exp-python2-sdk/tarball/1.0...
from setuptools import setup setup( name='exp_sdk', packages= ['exp_sdk'], version='1.0.0a2', description='EXP Python SDK', author='Scala', author_email='james.dalessio@scala.com', url='https://github.com/scalainc/exp-python2-sdk', download_url='https://github.com/scalainc/exp-python2-sdk/tarball/1.0....
<commit_before> from setuptools import setup setup( name='exp_sdk', packages= ['exp_sdk'], version='1.0.0a2', description='EXP Python SDK', author='Scala', author_email='james.dalessio@scala.com', url='https://github.com/scalainc/exp-python2-sdk', download_url='https://github.com/scalainc/exp-python2-s...
8bc2395dd1814f0fa02dc8c48db1cae3f340c6a6
setup.py
setup.py
from setuptools import setup, find_packages install_requires = [ 'dill==0.2.5', 'easydict==1.6', 'h5py==2.6.0', 'jsonpickle==0.9.3', 'Keras==1.2.0', 'nflgame==1.2.20', 'numpy==1.11.2', 'pandas==0.19.1', 'scikit-learn==0.18.1', 'scipy==0.18.1', 'tensorflow==0.12.0rc1', '...
from setuptools import setup, find_packages install_requires = [ 'dill==0.2.5', 'easydict==1.6', 'h5py==2.6.0', 'jsonpickle==0.9.3', 'Keras==1.2.0', 'nflgame==1.2.20', 'numpy==1.11.2', 'pandas==0.19.1', 'scikit-learn==0.18.1', 'scipy==0.18.1', 'tensorflow==0.12.0rc1', '...
Add classifier pkl to package data
Add classifier pkl to package data
Python
mit
kahnjw/wincast
from setuptools import setup, find_packages install_requires = [ 'dill==0.2.5', 'easydict==1.6', 'h5py==2.6.0', 'jsonpickle==0.9.3', 'Keras==1.2.0', 'nflgame==1.2.20', 'numpy==1.11.2', 'pandas==0.19.1', 'scikit-learn==0.18.1', 'scipy==0.18.1', 'tensorflow==0.12.0rc1', '...
from setuptools import setup, find_packages install_requires = [ 'dill==0.2.5', 'easydict==1.6', 'h5py==2.6.0', 'jsonpickle==0.9.3', 'Keras==1.2.0', 'nflgame==1.2.20', 'numpy==1.11.2', 'pandas==0.19.1', 'scikit-learn==0.18.1', 'scipy==0.18.1', 'tensorflow==0.12.0rc1', '...
<commit_before>from setuptools import setup, find_packages install_requires = [ 'dill==0.2.5', 'easydict==1.6', 'h5py==2.6.0', 'jsonpickle==0.9.3', 'Keras==1.2.0', 'nflgame==1.2.20', 'numpy==1.11.2', 'pandas==0.19.1', 'scikit-learn==0.18.1', 'scipy==0.18.1', 'tensorflow==0....
from setuptools import setup, find_packages install_requires = [ 'dill==0.2.5', 'easydict==1.6', 'h5py==2.6.0', 'jsonpickle==0.9.3', 'Keras==1.2.0', 'nflgame==1.2.20', 'numpy==1.11.2', 'pandas==0.19.1', 'scikit-learn==0.18.1', 'scipy==0.18.1', 'tensorflow==0.12.0rc1', '...
from setuptools import setup, find_packages install_requires = [ 'dill==0.2.5', 'easydict==1.6', 'h5py==2.6.0', 'jsonpickle==0.9.3', 'Keras==1.2.0', 'nflgame==1.2.20', 'numpy==1.11.2', 'pandas==0.19.1', 'scikit-learn==0.18.1', 'scipy==0.18.1', 'tensorflow==0.12.0rc1', '...
<commit_before>from setuptools import setup, find_packages install_requires = [ 'dill==0.2.5', 'easydict==1.6', 'h5py==2.6.0', 'jsonpickle==0.9.3', 'Keras==1.2.0', 'nflgame==1.2.20', 'numpy==1.11.2', 'pandas==0.19.1', 'scikit-learn==0.18.1', 'scipy==0.18.1', 'tensorflow==0....
ebb742165ada521b7d883d3d228d69edc9b1fee7
odictliteral.py
odictliteral.py
try: from collections import OrderedDict except: from ordereddict import OrderedDict try: from reprlib import recursive_repr except: # don't cope with recursive repr calls in py2 def recursive_repr(fillvalue='...'): return (lambda f: f) try: from collections.abc import Iterable except: Ite...
try: from collections import OrderedDict except: from ordereddict import OrderedDict try: from reprlib import recursive_repr except: # don't cope with recursive repr calls in py2 def recursive_repr(fillvalue='...'): return (lambda f: f) try: from collections.abc import Iterable except: Ite...
Use repr instead of str for odict repr
Use repr instead of str for odict repr
Python
unlicense
ajtowns/odictliteral
try: from collections import OrderedDict except: from ordereddict import OrderedDict try: from reprlib import recursive_repr except: # don't cope with recursive repr calls in py2 def recursive_repr(fillvalue='...'): return (lambda f: f) try: from collections.abc import Iterable except: Ite...
try: from collections import OrderedDict except: from ordereddict import OrderedDict try: from reprlib import recursive_repr except: # don't cope with recursive repr calls in py2 def recursive_repr(fillvalue='...'): return (lambda f: f) try: from collections.abc import Iterable except: Ite...
<commit_before>try: from collections import OrderedDict except: from ordereddict import OrderedDict try: from reprlib import recursive_repr except: # don't cope with recursive repr calls in py2 def recursive_repr(fillvalue='...'): return (lambda f: f) try: from collections.abc import Iterable ...
try: from collections import OrderedDict except: from ordereddict import OrderedDict try: from reprlib import recursive_repr except: # don't cope with recursive repr calls in py2 def recursive_repr(fillvalue='...'): return (lambda f: f) try: from collections.abc import Iterable except: Ite...
try: from collections import OrderedDict except: from ordereddict import OrderedDict try: from reprlib import recursive_repr except: # don't cope with recursive repr calls in py2 def recursive_repr(fillvalue='...'): return (lambda f: f) try: from collections.abc import Iterable except: Ite...
<commit_before>try: from collections import OrderedDict except: from ordereddict import OrderedDict try: from reprlib import recursive_repr except: # don't cope with recursive repr calls in py2 def recursive_repr(fillvalue='...'): return (lambda f: f) try: from collections.abc import Iterable ...
bc65fb47a777c0ef501bb492d8003d01ce22b233
libpam/utc-time/utc-time.py
libpam/utc-time/utc-time.py
#!/usr/bin/env python import time print 'Content-Type: text/javascript' print '' print 'var timeskew = new Date().getTime() - ' + str(time.time()*1000) + ';'
#!/usr/bin/env python import time t = time.time() u = time.gmtime(t) s = time.strftime('%a, %e %b %Y %T GMT', u) print 'Content-Type: text/javascript' print 'Cache-Control: no-cache' print 'Date: ' + s print 'Expires: ' + s print '' print 'var timeskew = new Date().getTime() - ' + str(t*1000) + ';'
Disable caching of stale time stamp information.
Disable caching of stale time stamp information.
Python
apache-2.0
fargly/google-authenticator,google/google-authenticator,fargly/google-authenticator,fargly/google-authenticator,google/google-authenticator
#!/usr/bin/env python import time print 'Content-Type: text/javascript' print '' print 'var timeskew = new Date().getTime() - ' + str(time.time()*1000) + ';' Disable caching of stale time stamp information.
#!/usr/bin/env python import time t = time.time() u = time.gmtime(t) s = time.strftime('%a, %e %b %Y %T GMT', u) print 'Content-Type: text/javascript' print 'Cache-Control: no-cache' print 'Date: ' + s print 'Expires: ' + s print '' print 'var timeskew = new Date().getTime() - ' + str(t*1000) + ';'
<commit_before>#!/usr/bin/env python import time print 'Content-Type: text/javascript' print '' print 'var timeskew = new Date().getTime() - ' + str(time.time()*1000) + ';' <commit_msg>Disable caching of stale time stamp information.<commit_after>
#!/usr/bin/env python import time t = time.time() u = time.gmtime(t) s = time.strftime('%a, %e %b %Y %T GMT', u) print 'Content-Type: text/javascript' print 'Cache-Control: no-cache' print 'Date: ' + s print 'Expires: ' + s print '' print 'var timeskew = new Date().getTime() - ' + str(t*1000) + ';'
#!/usr/bin/env python import time print 'Content-Type: text/javascript' print '' print 'var timeskew = new Date().getTime() - ' + str(time.time()*1000) + ';' Disable caching of stale time stamp information.#!/usr/bin/env python import time t = time.time() u = time.gmtime(t) s = time.strftime('%a, %e %b %Y %T GMT', u) p...
<commit_before>#!/usr/bin/env python import time print 'Content-Type: text/javascript' print '' print 'var timeskew = new Date().getTime() - ' + str(time.time()*1000) + ';' <commit_msg>Disable caching of stale time stamp information.<commit_after>#!/usr/bin/env python import time t = time.time() u = time.gmtime(t) s = ...
5a808dfa9ae8661382fbc00641562f2024931b57
test/test_packages.py
test/test_packages.py
import pytest @pytest.mark.parametrize("name", [ ("apt-file"), ("apt-transport-https"), ("blktrace"), ("ca-certificates"), ("chromium-browser"), ("cron"), ("curl"), ("diod"), ("docker-ce"), ("fonts-font-awesome"), ("git"), ("gnupg"), ("handbrake"), ("handbrake-cli"), ("haveged"), ("htop...
import pytest @pytest.mark.parametrize("name", [ ("apt-file"), ("apt-transport-https"), ("blktrace"), ("ca-certificates"), ("chromium-browser"), ("cron"), ("curl"), ("diod"), ("docker-ce"), ("fonts-font-awesome"), ("git"), ("gnupg"), ("handbrake"), ("handbrake-cli"), ("haveged"), ("htop...
Update for vim plugin changes
Update for vim plugin changes
Python
mit
wicksy/laptop-build,wicksy/laptop-build,wicksy/laptop-build,wicksy/laptop-build
import pytest @pytest.mark.parametrize("name", [ ("apt-file"), ("apt-transport-https"), ("blktrace"), ("ca-certificates"), ("chromium-browser"), ("cron"), ("curl"), ("diod"), ("docker-ce"), ("fonts-font-awesome"), ("git"), ("gnupg"), ("handbrake"), ("handbrake-cli"), ("haveged"), ("htop...
import pytest @pytest.mark.parametrize("name", [ ("apt-file"), ("apt-transport-https"), ("blktrace"), ("ca-certificates"), ("chromium-browser"), ("cron"), ("curl"), ("diod"), ("docker-ce"), ("fonts-font-awesome"), ("git"), ("gnupg"), ("handbrake"), ("handbrake-cli"), ("haveged"), ("htop...
<commit_before>import pytest @pytest.mark.parametrize("name", [ ("apt-file"), ("apt-transport-https"), ("blktrace"), ("ca-certificates"), ("chromium-browser"), ("cron"), ("curl"), ("diod"), ("docker-ce"), ("fonts-font-awesome"), ("git"), ("gnupg"), ("handbrake"), ("handbrake-cli"), ("have...
import pytest @pytest.mark.parametrize("name", [ ("apt-file"), ("apt-transport-https"), ("blktrace"), ("ca-certificates"), ("chromium-browser"), ("cron"), ("curl"), ("diod"), ("docker-ce"), ("fonts-font-awesome"), ("git"), ("gnupg"), ("handbrake"), ("handbrake-cli"), ("haveged"), ("htop...
import pytest @pytest.mark.parametrize("name", [ ("apt-file"), ("apt-transport-https"), ("blktrace"), ("ca-certificates"), ("chromium-browser"), ("cron"), ("curl"), ("diod"), ("docker-ce"), ("fonts-font-awesome"), ("git"), ("gnupg"), ("handbrake"), ("handbrake-cli"), ("haveged"), ("htop...
<commit_before>import pytest @pytest.mark.parametrize("name", [ ("apt-file"), ("apt-transport-https"), ("blktrace"), ("ca-certificates"), ("chromium-browser"), ("cron"), ("curl"), ("diod"), ("docker-ce"), ("fonts-font-awesome"), ("git"), ("gnupg"), ("handbrake"), ("handbrake-cli"), ("have...
51413c8cb63bfdc4fba3f0a144459b0082ce2bf2
tests/basics/list1.py
tests/basics/list1.py
# basic list functionality x = [1, 2, 3 * 4] print(x) x[0] = 4 print(x) x[1] += -4 print(x) x.append(5) print(x) f = x.append f(4) print(x) x.extend([100, 200]) print(x) x += [2, 1] print(x) print(x[1:]) print(x[:-1]) print(x[2:3])
# basic list functionality x = [1, 2, 3 * 4] print(x) x[0] = 4 print(x) x[1] += -4 print(x) x.append(5) print(x) f = x.append f(4) print(x) x.extend([100, 200]) print(x) x += [2, 1] print(x) print(x[1:]) print(x[:-1]) print(x[2:3]) try: print(x[1.0]) except TypeError: print("TypeError")
Add test for implicit float to int conversion (not allowed!)
tests: Add test for implicit float to int conversion (not allowed!)
Python
mit
pramasoul/micropython,dmazzella/micropython,HenrikSolver/micropython,turbinenreiter/micropython,stonegithubs/micropython,bvernoux/micropython,ernesto-g/micropython,ernesto-g/micropython,blazewicz/micropython,cloudformdesign/micropython,puuu/micropython,slzatz/micropython,omtinez/micropython,SHA2017-badge/micropython-es...
# basic list functionality x = [1, 2, 3 * 4] print(x) x[0] = 4 print(x) x[1] += -4 print(x) x.append(5) print(x) f = x.append f(4) print(x) x.extend([100, 200]) print(x) x += [2, 1] print(x) print(x[1:]) print(x[:-1]) print(x[2:3]) tests: Add test for implicit float to int conversion (not allowed!)
# basic list functionality x = [1, 2, 3 * 4] print(x) x[0] = 4 print(x) x[1] += -4 print(x) x.append(5) print(x) f = x.append f(4) print(x) x.extend([100, 200]) print(x) x += [2, 1] print(x) print(x[1:]) print(x[:-1]) print(x[2:3]) try: print(x[1.0]) except TypeError: print("TypeError")
<commit_before># basic list functionality x = [1, 2, 3 * 4] print(x) x[0] = 4 print(x) x[1] += -4 print(x) x.append(5) print(x) f = x.append f(4) print(x) x.extend([100, 200]) print(x) x += [2, 1] print(x) print(x[1:]) print(x[:-1]) print(x[2:3]) <commit_msg>tests: Add test for implicit float to int conversion (not ...
# basic list functionality x = [1, 2, 3 * 4] print(x) x[0] = 4 print(x) x[1] += -4 print(x) x.append(5) print(x) f = x.append f(4) print(x) x.extend([100, 200]) print(x) x += [2, 1] print(x) print(x[1:]) print(x[:-1]) print(x[2:3]) try: print(x[1.0]) except TypeError: print("TypeError")
# basic list functionality x = [1, 2, 3 * 4] print(x) x[0] = 4 print(x) x[1] += -4 print(x) x.append(5) print(x) f = x.append f(4) print(x) x.extend([100, 200]) print(x) x += [2, 1] print(x) print(x[1:]) print(x[:-1]) print(x[2:3]) tests: Add test for implicit float to int conversion (not allowed!)# basic list funct...
<commit_before># basic list functionality x = [1, 2, 3 * 4] print(x) x[0] = 4 print(x) x[1] += -4 print(x) x.append(5) print(x) f = x.append f(4) print(x) x.extend([100, 200]) print(x) x += [2, 1] print(x) print(x[1:]) print(x[:-1]) print(x[2:3]) <commit_msg>tests: Add test for implicit float to int conversion (not ...
ec7bbe8ac8715ea22142680f0d880a7d0b71c687
paws/request.py
paws/request.py
from urlparse import parse_qs from utils import cached_property, MultiDict class Request(object): def __init__(self, event, context): self.event = event self.context = context @property def method(self): return self.event['httpMethod'] @property def query(self): ...
from Cookie import SimpleCookie from urlparse import parse_qs from utils import MultiDict, cached_property class Request(object): def __init__(self, event, context): self.event = event self.context = context @property def method(self): return self.event['httpMethod'] @proper...
Add cookies property to Request
Add cookies property to Request
Python
bsd-3-clause
funkybob/paws
from urlparse import parse_qs from utils import cached_property, MultiDict class Request(object): def __init__(self, event, context): self.event = event self.context = context @property def method(self): return self.event['httpMethod'] @property def query(self): ...
from Cookie import SimpleCookie from urlparse import parse_qs from utils import MultiDict, cached_property class Request(object): def __init__(self, event, context): self.event = event self.context = context @property def method(self): return self.event['httpMethod'] @proper...
<commit_before>from urlparse import parse_qs from utils import cached_property, MultiDict class Request(object): def __init__(self, event, context): self.event = event self.context = context @property def method(self): return self.event['httpMethod'] @property def query(...
from Cookie import SimpleCookie from urlparse import parse_qs from utils import MultiDict, cached_property class Request(object): def __init__(self, event, context): self.event = event self.context = context @property def method(self): return self.event['httpMethod'] @proper...
from urlparse import parse_qs from utils import cached_property, MultiDict class Request(object): def __init__(self, event, context): self.event = event self.context = context @property def method(self): return self.event['httpMethod'] @property def query(self): ...
<commit_before>from urlparse import parse_qs from utils import cached_property, MultiDict class Request(object): def __init__(self, event, context): self.event = event self.context = context @property def method(self): return self.event['httpMethod'] @property def query(...
423d40b8162ff2763346ddf0a115760c6efb4222
tests/test_classes.py
tests/test_classes.py
from thinglang import run def test_class_integration(): assert run(""" thing Person has text name has number age created with name self.name = name self.age = 0 does grow_up self.age = self.age + 1 does say_hello with excitement_level Output.write("Hello from...
from unittest.mock import patch import io from thinglang import run def test_class_integration(): with patch('sys.stdin', io.StringIO('yotam\n19\n5')): assert run(""" thing Person has text name has number age setup with name self.name = name does say_hello with repeat_count ...
Update class integration test to use new syntax and output assertion
Update class integration test to use new syntax and output assertion
Python
mit
ytanay/thinglang,ytanay/thinglang,ytanay/thinglang,ytanay/thinglang
from thinglang import run def test_class_integration(): assert run(""" thing Person has text name has number age created with name self.name = name self.age = 0 does grow_up self.age = self.age + 1 does say_hello with excitement_level Output.write("Hello from...
from unittest.mock import patch import io from thinglang import run def test_class_integration(): with patch('sys.stdin', io.StringIO('yotam\n19\n5')): assert run(""" thing Person has text name has number age setup with name self.name = name does say_hello with repeat_count ...
<commit_before>from thinglang import run def test_class_integration(): assert run(""" thing Person has text name has number age created with name self.name = name self.age = 0 does grow_up self.age = self.age + 1 does say_hello with excitement_level Output.wr...
from unittest.mock import patch import io from thinglang import run def test_class_integration(): with patch('sys.stdin', io.StringIO('yotam\n19\n5')): assert run(""" thing Person has text name has number age setup with name self.name = name does say_hello with repeat_count ...
from thinglang import run def test_class_integration(): assert run(""" thing Person has text name has number age created with name self.name = name self.age = 0 does grow_up self.age = self.age + 1 does say_hello with excitement_level Output.write("Hello from...
<commit_before>from thinglang import run def test_class_integration(): assert run(""" thing Person has text name has number age created with name self.name = name self.age = 0 does grow_up self.age = self.age + 1 does say_hello with excitement_level Output.wr...
d825a94007c9ef2d464528572ea99aa2636ea4fa
tests/test_convert.py
tests/test_convert.py
import pytest # type: ignore from ppb_vector import Vector2 from utils import vector_likes @pytest.mark.parametrize('vector_like', vector_likes(), ids=lambda x: type(x).__name__) # type: ignore def test_convert_subclass(vector_like): class V(Vector2): pass # test_binop_vectorlike already checks the output v...
import pytest # type: ignore from ppb_vector import Vector2 from utils import vector_likes @pytest.mark.parametrize('vector_like', vector_likes(), ids=lambda x: type(x).__name__) # type: ignore def test_convert_subclass(vector_like): class V(Vector2): pass vector = V.convert(vector_like) assert isinstan...
Test converted vector equals original vector-like
tests/convert: Test converted vector equals original vector-like The comment mentioned that property was tested by `test_binop_vectorlike`, but Vector2.convert isn't a binary operator, so it isn't exercised by that test.
Python
artistic-2.0
ppb/ppb-vector,ppb/ppb-vector
import pytest # type: ignore from ppb_vector import Vector2 from utils import vector_likes @pytest.mark.parametrize('vector_like', vector_likes(), ids=lambda x: type(x).__name__) # type: ignore def test_convert_subclass(vector_like): class V(Vector2): pass # test_binop_vectorlike already checks the output v...
import pytest # type: ignore from ppb_vector import Vector2 from utils import vector_likes @pytest.mark.parametrize('vector_like', vector_likes(), ids=lambda x: type(x).__name__) # type: ignore def test_convert_subclass(vector_like): class V(Vector2): pass vector = V.convert(vector_like) assert isinstan...
<commit_before>import pytest # type: ignore from ppb_vector import Vector2 from utils import vector_likes @pytest.mark.parametrize('vector_like', vector_likes(), ids=lambda x: type(x).__name__) # type: ignore def test_convert_subclass(vector_like): class V(Vector2): pass # test_binop_vectorlike already chec...
import pytest # type: ignore from ppb_vector import Vector2 from utils import vector_likes @pytest.mark.parametrize('vector_like', vector_likes(), ids=lambda x: type(x).__name__) # type: ignore def test_convert_subclass(vector_like): class V(Vector2): pass vector = V.convert(vector_like) assert isinstan...
import pytest # type: ignore from ppb_vector import Vector2 from utils import vector_likes @pytest.mark.parametrize('vector_like', vector_likes(), ids=lambda x: type(x).__name__) # type: ignore def test_convert_subclass(vector_like): class V(Vector2): pass # test_binop_vectorlike already checks the output v...
<commit_before>import pytest # type: ignore from ppb_vector import Vector2 from utils import vector_likes @pytest.mark.parametrize('vector_like', vector_likes(), ids=lambda x: type(x).__name__) # type: ignore def test_convert_subclass(vector_like): class V(Vector2): pass # test_binop_vectorlike already chec...
f4bc89564828011d2306e16cdc84e053beb7c1d6
tests/test_logging.py
tests/test_logging.py
from .fixtures import elasticsearch import pytest image_flavor = pytest.config.getoption('--image-flavor') def test_elasticsearch_logs_are_in_docker_logs(elasticsearch): elasticsearch.assert_in_docker_log('o.e.n.Node') # eg. elasticsearch1 | [2017-07-04T00:54:22,604][INFO ][o.e.n.Node ] [docker-test-node-1]...
from .fixtures import elasticsearch import pytest image_flavor = pytest.config.getoption('--image-flavor') def test_elasticsearch_logs_are_in_docker_logs(elasticsearch): elasticsearch.assert_in_docker_log('o.e.n.Node') # eg. elasticsearch1 | [2017-07-04T00:54:22,604][INFO ][o.e.n.Node ] [docker-test-node-1]...
Remove test that sporadically gives false negatives
Remove test that sporadically gives false negatives Nothing worse than an unreliable test; remove this test as there can be errors in the logs that do not necessarily correspond to a broken image. Relates #119
Python
apache-2.0
jarpy/elasticsearch-docker,jarpy/elasticsearch-docker
from .fixtures import elasticsearch import pytest image_flavor = pytest.config.getoption('--image-flavor') def test_elasticsearch_logs_are_in_docker_logs(elasticsearch): elasticsearch.assert_in_docker_log('o.e.n.Node') # eg. elasticsearch1 | [2017-07-04T00:54:22,604][INFO ][o.e.n.Node ] [docker-test-node-1]...
from .fixtures import elasticsearch import pytest image_flavor = pytest.config.getoption('--image-flavor') def test_elasticsearch_logs_are_in_docker_logs(elasticsearch): elasticsearch.assert_in_docker_log('o.e.n.Node') # eg. elasticsearch1 | [2017-07-04T00:54:22,604][INFO ][o.e.n.Node ] [docker-test-node-1]...
<commit_before>from .fixtures import elasticsearch import pytest image_flavor = pytest.config.getoption('--image-flavor') def test_elasticsearch_logs_are_in_docker_logs(elasticsearch): elasticsearch.assert_in_docker_log('o.e.n.Node') # eg. elasticsearch1 | [2017-07-04T00:54:22,604][INFO ][o.e.n.Node ] [dock...
from .fixtures import elasticsearch import pytest image_flavor = pytest.config.getoption('--image-flavor') def test_elasticsearch_logs_are_in_docker_logs(elasticsearch): elasticsearch.assert_in_docker_log('o.e.n.Node') # eg. elasticsearch1 | [2017-07-04T00:54:22,604][INFO ][o.e.n.Node ] [docker-test-node-1]...
from .fixtures import elasticsearch import pytest image_flavor = pytest.config.getoption('--image-flavor') def test_elasticsearch_logs_are_in_docker_logs(elasticsearch): elasticsearch.assert_in_docker_log('o.e.n.Node') # eg. elasticsearch1 | [2017-07-04T00:54:22,604][INFO ][o.e.n.Node ] [docker-test-node-1]...
<commit_before>from .fixtures import elasticsearch import pytest image_flavor = pytest.config.getoption('--image-flavor') def test_elasticsearch_logs_are_in_docker_logs(elasticsearch): elasticsearch.assert_in_docker_log('o.e.n.Node') # eg. elasticsearch1 | [2017-07-04T00:54:22,604][INFO ][o.e.n.Node ] [dock...
f0157d9523f09d6a1392685f7b13cfac9f6bf6c0
dad/worker/__init__.py
dad/worker/__init__.py
import click from flask import Flask, current_app app = Flask(__name__) app.config.from_object('dad.worker.settings') import dad.worker.server # noqa @click.command() @click.option('--port', '-p', default=6010) def run(port): with app.app_context(): dad.worker.server.register(current_app) app.run(p...
import os import yaml import click from flask import Flask, current_app app = Flask(__name__) app.config.from_object('dad.worker.settings') if os.environ.get('APP_SETTINGS_YAML'): config = yaml.safe_load(open(os.environ['APP_SETTINGS_YAML'])) app.config.update(config) import dad.worker.server # noqa @cl...
Allow overriding the config with app settings yaml in the worker process.
Allow overriding the config with app settings yaml in the worker process.
Python
bsd-3-clause
ionrock/dadd,ionrock/dadd,ionrock/dadd,ionrock/dadd
import click from flask import Flask, current_app app = Flask(__name__) app.config.from_object('dad.worker.settings') import dad.worker.server # noqa @click.command() @click.option('--port', '-p', default=6010) def run(port): with app.app_context(): dad.worker.server.register(current_app) app.run(p...
import os import yaml import click from flask import Flask, current_app app = Flask(__name__) app.config.from_object('dad.worker.settings') if os.environ.get('APP_SETTINGS_YAML'): config = yaml.safe_load(open(os.environ['APP_SETTINGS_YAML'])) app.config.update(config) import dad.worker.server # noqa @cl...
<commit_before>import click from flask import Flask, current_app app = Flask(__name__) app.config.from_object('dad.worker.settings') import dad.worker.server # noqa @click.command() @click.option('--port', '-p', default=6010) def run(port): with app.app_context(): dad.worker.server.register(current_app...
import os import yaml import click from flask import Flask, current_app app = Flask(__name__) app.config.from_object('dad.worker.settings') if os.environ.get('APP_SETTINGS_YAML'): config = yaml.safe_load(open(os.environ['APP_SETTINGS_YAML'])) app.config.update(config) import dad.worker.server # noqa @cl...
import click from flask import Flask, current_app app = Flask(__name__) app.config.from_object('dad.worker.settings') import dad.worker.server # noqa @click.command() @click.option('--port', '-p', default=6010) def run(port): with app.app_context(): dad.worker.server.register(current_app) app.run(p...
<commit_before>import click from flask import Flask, current_app app = Flask(__name__) app.config.from_object('dad.worker.settings') import dad.worker.server # noqa @click.command() @click.option('--port', '-p', default=6010) def run(port): with app.app_context(): dad.worker.server.register(current_app...
aaeabe5d6a987a04b6e78853eb1dfd7d4b85e505
examples/demo2.py
examples/demo2.py
import os import sys sys.path.insert(0, os.path.join(os.path.dirname(__file__), '..')) import logging import threading import xmpp2 from xmpp2 import XML USERNAME = 'yourusername' PASSWORD = 'yourpassword' SERVER = 'example.com' logging.basicConfig(level=logging.DEBUG) logging.getLogger('xmpp2.xml.handler').setLevel(...
import os import sys sys.path.insert(0, os.path.join(os.path.dirname(__file__), '..')) import logging import threading import xmpp2 from xmpp2 import XML USERNAME = 'yourusername' PASSWORD = 'yourpassword' SERVER = 'example.com' logging.basicConfig(level=logging.DEBUG) logging.getLogger('xmpp2.xml.handler').setLevel(...
Add '\n' so it would flush.
Add '\n' so it would flush.
Python
mit
easies/xmpp2
import os import sys sys.path.insert(0, os.path.join(os.path.dirname(__file__), '..')) import logging import threading import xmpp2 from xmpp2 import XML USERNAME = 'yourusername' PASSWORD = 'yourpassword' SERVER = 'example.com' logging.basicConfig(level=logging.DEBUG) logging.getLogger('xmpp2.xml.handler').setLevel(...
import os import sys sys.path.insert(0, os.path.join(os.path.dirname(__file__), '..')) import logging import threading import xmpp2 from xmpp2 import XML USERNAME = 'yourusername' PASSWORD = 'yourpassword' SERVER = 'example.com' logging.basicConfig(level=logging.DEBUG) logging.getLogger('xmpp2.xml.handler').setLevel(...
<commit_before>import os import sys sys.path.insert(0, os.path.join(os.path.dirname(__file__), '..')) import logging import threading import xmpp2 from xmpp2 import XML USERNAME = 'yourusername' PASSWORD = 'yourpassword' SERVER = 'example.com' logging.basicConfig(level=logging.DEBUG) logging.getLogger('xmpp2.xml.hand...
import os import sys sys.path.insert(0, os.path.join(os.path.dirname(__file__), '..')) import logging import threading import xmpp2 from xmpp2 import XML USERNAME = 'yourusername' PASSWORD = 'yourpassword' SERVER = 'example.com' logging.basicConfig(level=logging.DEBUG) logging.getLogger('xmpp2.xml.handler').setLevel(...
import os import sys sys.path.insert(0, os.path.join(os.path.dirname(__file__), '..')) import logging import threading import xmpp2 from xmpp2 import XML USERNAME = 'yourusername' PASSWORD = 'yourpassword' SERVER = 'example.com' logging.basicConfig(level=logging.DEBUG) logging.getLogger('xmpp2.xml.handler').setLevel(...
<commit_before>import os import sys sys.path.insert(0, os.path.join(os.path.dirname(__file__), '..')) import logging import threading import xmpp2 from xmpp2 import XML USERNAME = 'yourusername' PASSWORD = 'yourpassword' SERVER = 'example.com' logging.basicConfig(level=logging.DEBUG) logging.getLogger('xmpp2.xml.hand...
26b1b92d23eddd3496aa77a97d93bc7745047f24
dashboard/run_tests.py
dashboard/run_tests.py
#!/usr/bin/python """Runs the unit test suite for perf dashboard.""" import argparse import dev_appserver import os import sys import unittest _DASHBOARD_PARENT = os.path.join(os.path.dirname(__file__)) _DASHBOARD = os.path.join(_DASHBOARD_PARENT, 'dashboard') def _GetTests(args): loader = unittest.TestLoader() ...
#!/usr/bin/python """Runs the unit test suite for perf dashboard.""" import argparse import dev_appserver import logging import os import sys import unittest _DASHBOARD_PARENT = os.path.join(os.path.dirname(__file__)) _DASHBOARD = os.path.join(_DASHBOARD_PARENT, 'dashboard') def _GetTests(args): loader = unittes...
Stop printing logs while running dashboard tests in catapult.
Stop printing logs while running dashboard tests in catapult. Some of the dashboard tests invoke functions which log errors, but these are not interesting or indicative of actual errors when running the test. By setting the logging level in run_tests.py, this makes it so no log messages are printed when run_tests.py ...
Python
bsd-3-clause
catapult-project/catapult,zeptonaut/catapult,catapult-project/catapult-csm,modulexcite/catapult,catapult-project/catapult-csm,danbeam/catapult,sahiljain/catapult,dstockwell/catapult,SummerLW/Perf-Insight-Report,SummerLW/Perf-Insight-Report,sahiljain/catapult,SummerLW/Perf-Insight-Report,benschmaus/catapult,catapult-pro...
#!/usr/bin/python """Runs the unit test suite for perf dashboard.""" import argparse import dev_appserver import os import sys import unittest _DASHBOARD_PARENT = os.path.join(os.path.dirname(__file__)) _DASHBOARD = os.path.join(_DASHBOARD_PARENT, 'dashboard') def _GetTests(args): loader = unittest.TestLoader() ...
#!/usr/bin/python """Runs the unit test suite for perf dashboard.""" import argparse import dev_appserver import logging import os import sys import unittest _DASHBOARD_PARENT = os.path.join(os.path.dirname(__file__)) _DASHBOARD = os.path.join(_DASHBOARD_PARENT, 'dashboard') def _GetTests(args): loader = unittes...
<commit_before>#!/usr/bin/python """Runs the unit test suite for perf dashboard.""" import argparse import dev_appserver import os import sys import unittest _DASHBOARD_PARENT = os.path.join(os.path.dirname(__file__)) _DASHBOARD = os.path.join(_DASHBOARD_PARENT, 'dashboard') def _GetTests(args): loader = unittes...
#!/usr/bin/python """Runs the unit test suite for perf dashboard.""" import argparse import dev_appserver import logging import os import sys import unittest _DASHBOARD_PARENT = os.path.join(os.path.dirname(__file__)) _DASHBOARD = os.path.join(_DASHBOARD_PARENT, 'dashboard') def _GetTests(args): loader = unittes...
#!/usr/bin/python """Runs the unit test suite for perf dashboard.""" import argparse import dev_appserver import os import sys import unittest _DASHBOARD_PARENT = os.path.join(os.path.dirname(__file__)) _DASHBOARD = os.path.join(_DASHBOARD_PARENT, 'dashboard') def _GetTests(args): loader = unittest.TestLoader() ...
<commit_before>#!/usr/bin/python """Runs the unit test suite for perf dashboard.""" import argparse import dev_appserver import os import sys import unittest _DASHBOARD_PARENT = os.path.join(os.path.dirname(__file__)) _DASHBOARD = os.path.join(_DASHBOARD_PARENT, 'dashboard') def _GetTests(args): loader = unittes...
bd30e0596a6310962ea0cf2e83a3ccd6eb9cf4ff
dimod/package_info.py
dimod/package_info.py
# Copyright 2018 D-Wave Systems Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or...
# Copyright 2018 D-Wave Systems Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or...
Update version 0.8.18 -> 0.8.19
Update version 0.8.18 -> 0.8.19 Fixes ------ * Fix osx wheels for 10.9 binary compatibility * `ConnectedComponentComposites` now correctly fixes variables according to vartype
Python
apache-2.0
dwavesystems/dimod,dwavesystems/dimod
# Copyright 2018 D-Wave Systems Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or...
# Copyright 2018 D-Wave Systems Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or...
<commit_before># Copyright 2018 D-Wave Systems Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by ap...
# Copyright 2018 D-Wave Systems Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or...
# Copyright 2018 D-Wave Systems Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or...
<commit_before># Copyright 2018 D-Wave Systems Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by ap...
da85cfae848df4cee5ccf2cbbbc370848ea172a7
src/txkube/_memory.py
src/txkube/_memory.py
# Copyright Least Authority Enterprises. # See LICENSE for details. """ An in-memory implementation of the Kubernetes client interface. """ from zope.interface import implementer from twisted.python.url import URL from twisted.web.resource import Resource from treq.testing import RequestTraversalAgent from . impo...
# Copyright Least Authority Enterprises. # See LICENSE for details. """ An in-memory implementation of the Kubernetes client interface. """ from zope.interface import implementer from twisted.python.url import URL from twisted.web.resource import Resource from treq.testing import RequestTraversalAgent from . impo...
Use a non-routeable address for this URL.
Use a non-routeable address for this URL. We do not anticipate ever sending any traffic to this since this is the in-memory-only implementation.
Python
mit
LeastAuthority/txkube
# Copyright Least Authority Enterprises. # See LICENSE for details. """ An in-memory implementation of the Kubernetes client interface. """ from zope.interface import implementer from twisted.python.url import URL from twisted.web.resource import Resource from treq.testing import RequestTraversalAgent from . impo...
# Copyright Least Authority Enterprises. # See LICENSE for details. """ An in-memory implementation of the Kubernetes client interface. """ from zope.interface import implementer from twisted.python.url import URL from twisted.web.resource import Resource from treq.testing import RequestTraversalAgent from . impo...
<commit_before># Copyright Least Authority Enterprises. # See LICENSE for details. """ An in-memory implementation of the Kubernetes client interface. """ from zope.interface import implementer from twisted.python.url import URL from twisted.web.resource import Resource from treq.testing import RequestTraversalAge...
# Copyright Least Authority Enterprises. # See LICENSE for details. """ An in-memory implementation of the Kubernetes client interface. """ from zope.interface import implementer from twisted.python.url import URL from twisted.web.resource import Resource from treq.testing import RequestTraversalAgent from . impo...
# Copyright Least Authority Enterprises. # See LICENSE for details. """ An in-memory implementation of the Kubernetes client interface. """ from zope.interface import implementer from twisted.python.url import URL from twisted.web.resource import Resource from treq.testing import RequestTraversalAgent from . impo...
<commit_before># Copyright Least Authority Enterprises. # See LICENSE for details. """ An in-memory implementation of the Kubernetes client interface. """ from zope.interface import implementer from twisted.python.url import URL from twisted.web.resource import Resource from treq.testing import RequestTraversalAge...
135d8da492c4ee763727c2df75b20274c7e17cf0
qiprofile_rest/model/__init__.py
qiprofile_rest/model/__init__.py
""" The qiprofile Mongodb data model. The model field choices are listed in the preferred display order, most common to least common. The data capture client has the following responsibility: * Validate the data upon input as determined by the model validation below. * Resolve conflicts between data capture and...
""" The qiprofile Mongodb data model. The model field choices are listed in the preferred display order, most common to least common. The data capture client has the following responsibility: * Validate the data upon input as determined by the model validation documentation. * Resolve conflicts between data captu...
Make implementation node a comment rather than public documentation.
Make implementation node a comment rather than public documentation.
Python
bsd-2-clause
ohsu-qin/qirest,ohsu-qin/qiprofile-rest
""" The qiprofile Mongodb data model. The model field choices are listed in the preferred display order, most common to least common. The data capture client has the following responsibility: * Validate the data upon input as determined by the model validation below. * Resolve conflicts between data capture and...
""" The qiprofile Mongodb data model. The model field choices are listed in the preferred display order, most common to least common. The data capture client has the following responsibility: * Validate the data upon input as determined by the model validation documentation. * Resolve conflicts between data captu...
<commit_before>""" The qiprofile Mongodb data model. The model field choices are listed in the preferred display order, most common to least common. The data capture client has the following responsibility: * Validate the data upon input as determined by the model validation below. * Resolve conflicts between d...
""" The qiprofile Mongodb data model. The model field choices are listed in the preferred display order, most common to least common. The data capture client has the following responsibility: * Validate the data upon input as determined by the model validation documentation. * Resolve conflicts between data captu...
""" The qiprofile Mongodb data model. The model field choices are listed in the preferred display order, most common to least common. The data capture client has the following responsibility: * Validate the data upon input as determined by the model validation below. * Resolve conflicts between data capture and...
<commit_before>""" The qiprofile Mongodb data model. The model field choices are listed in the preferred display order, most common to least common. The data capture client has the following responsibility: * Validate the data upon input as determined by the model validation below. * Resolve conflicts between d...
888fd7120f2a3a1cd5ec73da16705c27cda049fc
readthedocs/settings/postgres.py
readthedocs/settings/postgres.py
from .base import * DATABASES = { 'default': { 'ENGINE': 'django.db.backends.postgresql_psycopg2', 'NAME': 'docs', 'USER': 'postgres', # Not used with sqlite3. 'PASSWORD': '', 'HOST': 'golem', 'PORT': '', } } DEBUG = False TEMPLATE_DEBUG = F...
from .base import * DATABASES = { 'default': { 'ENGINE': 'django.db.backends.postgresql_psycopg2', 'NAME': 'docs', 'USER': 'postgres', # Not used with sqlite3. 'PASSWORD': '', 'HOST': 'golem', 'PORT': '', } } DEBUG = False TEMPLATE_DEBUG = F...
Kill cache sessions for now.
Kill cache sessions for now.
Python
mit
asampat3090/readthedocs.org,KamranMackey/readthedocs.org,sils1297/readthedocs.org,kdkeyser/readthedocs.org,LukasBoersma/readthedocs.org,mrshoki/readthedocs.org,Carreau/readthedocs.org,fujita-shintaro/readthedocs.org,sid-kap/readthedocs.org,sunnyzwh/readthedocs.org,kenshinthebattosai/readthedocs.org,sunnyzwh/readthedocs...
from .base import * DATABASES = { 'default': { 'ENGINE': 'django.db.backends.postgresql_psycopg2', 'NAME': 'docs', 'USER': 'postgres', # Not used with sqlite3. 'PASSWORD': '', 'HOST': 'golem', 'PORT': '', } } DEBUG = False TEMPLATE_DEBUG = F...
from .base import * DATABASES = { 'default': { 'ENGINE': 'django.db.backends.postgresql_psycopg2', 'NAME': 'docs', 'USER': 'postgres', # Not used with sqlite3. 'PASSWORD': '', 'HOST': 'golem', 'PORT': '', } } DEBUG = False TEMPLATE_DEBUG = F...
<commit_before>from .base import * DATABASES = { 'default': { 'ENGINE': 'django.db.backends.postgresql_psycopg2', 'NAME': 'docs', 'USER': 'postgres', # Not used with sqlite3. 'PASSWORD': '', 'HOST': 'golem', 'PORT': '', } } DEBUG = False TEM...
from .base import * DATABASES = { 'default': { 'ENGINE': 'django.db.backends.postgresql_psycopg2', 'NAME': 'docs', 'USER': 'postgres', # Not used with sqlite3. 'PASSWORD': '', 'HOST': 'golem', 'PORT': '', } } DEBUG = False TEMPLATE_DEBUG = F...
from .base import * DATABASES = { 'default': { 'ENGINE': 'django.db.backends.postgresql_psycopg2', 'NAME': 'docs', 'USER': 'postgres', # Not used with sqlite3. 'PASSWORD': '', 'HOST': 'golem', 'PORT': '', } } DEBUG = False TEMPLATE_DEBUG = F...
<commit_before>from .base import * DATABASES = { 'default': { 'ENGINE': 'django.db.backends.postgresql_psycopg2', 'NAME': 'docs', 'USER': 'postgres', # Not used with sqlite3. 'PASSWORD': '', 'HOST': 'golem', 'PORT': '', } } DEBUG = False TEM...
6d2172a72ca3fc5de628c49bce9c0cbf191a9a61
submitter/__main__.py
submitter/__main__.py
#!/usr/bin/env python # -*- coding: utf-8 -*- import os import logging import sys from datetime import datetime from .config import Config from .submit import submit c = Config(os.environ) if c.verbose: level=logging.DEBUG else: level=logging.INFO logging.basicConfig(format='%(message)s', level=level) loggi...
#!/usr/bin/env python # -*- coding: utf-8 -*- import os import logging import sys from datetime import datetime from .config import Config from .submit import submit, SUCCESS, NOOP c = Config(os.environ) if c.verbose: level=logging.DEBUG else: level=logging.INFO logging.basicConfig(format='%(message)s', lev...
Exit with an appropriate status.
Exit with an appropriate status.
Python
apache-2.0
deconst/submitter,deconst/submitter
#!/usr/bin/env python # -*- coding: utf-8 -*- import os import logging import sys from datetime import datetime from .config import Config from .submit import submit c = Config(os.environ) if c.verbose: level=logging.DEBUG else: level=logging.INFO logging.basicConfig(format='%(message)s', level=level) loggi...
#!/usr/bin/env python # -*- coding: utf-8 -*- import os import logging import sys from datetime import datetime from .config import Config from .submit import submit, SUCCESS, NOOP c = Config(os.environ) if c.verbose: level=logging.DEBUG else: level=logging.INFO logging.basicConfig(format='%(message)s', lev...
<commit_before>#!/usr/bin/env python # -*- coding: utf-8 -*- import os import logging import sys from datetime import datetime from .config import Config from .submit import submit c = Config(os.environ) if c.verbose: level=logging.DEBUG else: level=logging.INFO logging.basicConfig(format='%(message)s', lev...
#!/usr/bin/env python # -*- coding: utf-8 -*- import os import logging import sys from datetime import datetime from .config import Config from .submit import submit, SUCCESS, NOOP c = Config(os.environ) if c.verbose: level=logging.DEBUG else: level=logging.INFO logging.basicConfig(format='%(message)s', lev...
#!/usr/bin/env python # -*- coding: utf-8 -*- import os import logging import sys from datetime import datetime from .config import Config from .submit import submit c = Config(os.environ) if c.verbose: level=logging.DEBUG else: level=logging.INFO logging.basicConfig(format='%(message)s', level=level) loggi...
<commit_before>#!/usr/bin/env python # -*- coding: utf-8 -*- import os import logging import sys from datetime import datetime from .config import Config from .submit import submit c = Config(os.environ) if c.verbose: level=logging.DEBUG else: level=logging.INFO logging.basicConfig(format='%(message)s', lev...
d0bd57cbdf8ba451e12f7e6b2574cd77132f0f3b
kboard/board/forms.py
kboard/board/forms.py
from django import forms from django_summernote.widgets import SummernoteWidget from django.core.exceptions import NON_FIELD_ERRORS from .models import Post class PostForm(forms.ModelForm): class Meta: model = Post fields = ('title', 'content', 'file') widgets = { 'title': for...
from django import forms from django.forms.utils import ErrorList from django_summernote.widgets import SummernoteWidget from .models import Post EMPTY_TITLE_ERROR = "제목을 입력하세요" class DivErrorList(ErrorList): def __str__(self): return self.as_divs() def as_divs(self): if not self: ...
Customize the error list format in modelform
Customize the error list format in modelform
Python
mit
cjh5414/kboard,darjeeling/k-board,cjh5414/kboard,hyesun03/k-board,guswnsxodlf/k-board,kboard/kboard,guswnsxodlf/k-board,kboard/kboard,hyesun03/k-board,cjh5414/kboard,guswnsxodlf/k-board,kboard/kboard,hyesun03/k-board
from django import forms from django_summernote.widgets import SummernoteWidget from django.core.exceptions import NON_FIELD_ERRORS from .models import Post class PostForm(forms.ModelForm): class Meta: model = Post fields = ('title', 'content', 'file') widgets = { 'title': for...
from django import forms from django.forms.utils import ErrorList from django_summernote.widgets import SummernoteWidget from .models import Post EMPTY_TITLE_ERROR = "제목을 입력하세요" class DivErrorList(ErrorList): def __str__(self): return self.as_divs() def as_divs(self): if not self: ...
<commit_before>from django import forms from django_summernote.widgets import SummernoteWidget from django.core.exceptions import NON_FIELD_ERRORS from .models import Post class PostForm(forms.ModelForm): class Meta: model = Post fields = ('title', 'content', 'file') widgets = { ...
from django import forms from django.forms.utils import ErrorList from django_summernote.widgets import SummernoteWidget from .models import Post EMPTY_TITLE_ERROR = "제목을 입력하세요" class DivErrorList(ErrorList): def __str__(self): return self.as_divs() def as_divs(self): if not self: ...
from django import forms from django_summernote.widgets import SummernoteWidget from django.core.exceptions import NON_FIELD_ERRORS from .models import Post class PostForm(forms.ModelForm): class Meta: model = Post fields = ('title', 'content', 'file') widgets = { 'title': for...
<commit_before>from django import forms from django_summernote.widgets import SummernoteWidget from django.core.exceptions import NON_FIELD_ERRORS from .models import Post class PostForm(forms.ModelForm): class Meta: model = Post fields = ('title', 'content', 'file') widgets = { ...
2f29db7bd30b3db40f6577a4718623f6cd97a5cf
search/sorting.py
search/sorting.py
def sort_by_property(prop): def _sort_by_property(items): return sorted(items, key=lambda item: getattr(item, prop), reverse=True) return _sort_by_property sort_by_popularity = sort_by_property('popularity')
def sort_by_property(prop, reverse=False): def _sort_by_property(items): return sorted(items, key=lambda item: getattr(item, prop), reverse=reverse) return _sort_by_property sort_by_popularity = sort_by_property('popularity', reverse=True)
Make it possible to control reverse
Make it possible to control reverse
Python
mit
vanng822/geosearch,vanng822/geosearch,vanng822/geosearch
def sort_by_property(prop): def _sort_by_property(items): return sorted(items, key=lambda item: getattr(item, prop), reverse=True) return _sort_by_property sort_by_popularity = sort_by_property('popularity') Make it possible to control reverse
def sort_by_property(prop, reverse=False): def _sort_by_property(items): return sorted(items, key=lambda item: getattr(item, prop), reverse=reverse) return _sort_by_property sort_by_popularity = sort_by_property('popularity', reverse=True)
<commit_before> def sort_by_property(prop): def _sort_by_property(items): return sorted(items, key=lambda item: getattr(item, prop), reverse=True) return _sort_by_property sort_by_popularity = sort_by_property('popularity') <commit_msg>Make it possible to co...
def sort_by_property(prop, reverse=False): def _sort_by_property(items): return sorted(items, key=lambda item: getattr(item, prop), reverse=reverse) return _sort_by_property sort_by_popularity = sort_by_property('popularity', reverse=True)
def sort_by_property(prop): def _sort_by_property(items): return sorted(items, key=lambda item: getattr(item, prop), reverse=True) return _sort_by_property sort_by_popularity = sort_by_property('popularity') Make it possible to control reverse def sort_by_p...
<commit_before> def sort_by_property(prop): def _sort_by_property(items): return sorted(items, key=lambda item: getattr(item, prop), reverse=True) return _sort_by_property sort_by_popularity = sort_by_property('popularity') <commit_msg>Make it possible to co...
9797c47fea8f5f690ed3989142b0f7e508e13fa0
pskb_website/cache.py
pskb_website/cache.py
""" Caching utilities """ import urlparse from . import app url = None redis_obj = None try: import redis except ImportError: app.logger.warning('No caching available, missing redis module') else: try: url = urlparse.urlparse(app.config['REDISCLOUD_URL']) except KeyError: app.logger....
""" Caching utilities """ import functools import urlparse from . import app url = None redis_obj = None try: import redis except ImportError: app.logger.warning('No caching available, missing redis module') else: try: url = urlparse.urlparse(app.config['REDISCLOUD_URL']) except KeyError: ...
Add small decorator to check for valid redis instance
Add small decorator to check for valid redis instance
Python
agpl-3.0
paulocheque/guides-cms,pluralsight/guides-cms,pluralsight/guides-cms,pluralsight/guides-cms,paulocheque/guides-cms,paulocheque/guides-cms
""" Caching utilities """ import urlparse from . import app url = None redis_obj = None try: import redis except ImportError: app.logger.warning('No caching available, missing redis module') else: try: url = urlparse.urlparse(app.config['REDISCLOUD_URL']) except KeyError: app.logger....
""" Caching utilities """ import functools import urlparse from . import app url = None redis_obj = None try: import redis except ImportError: app.logger.warning('No caching available, missing redis module') else: try: url = urlparse.urlparse(app.config['REDISCLOUD_URL']) except KeyError: ...
<commit_before>""" Caching utilities """ import urlparse from . import app url = None redis_obj = None try: import redis except ImportError: app.logger.warning('No caching available, missing redis module') else: try: url = urlparse.urlparse(app.config['REDISCLOUD_URL']) except KeyError: ...
""" Caching utilities """ import functools import urlparse from . import app url = None redis_obj = None try: import redis except ImportError: app.logger.warning('No caching available, missing redis module') else: try: url = urlparse.urlparse(app.config['REDISCLOUD_URL']) except KeyError: ...
""" Caching utilities """ import urlparse from . import app url = None redis_obj = None try: import redis except ImportError: app.logger.warning('No caching available, missing redis module') else: try: url = urlparse.urlparse(app.config['REDISCLOUD_URL']) except KeyError: app.logger....
<commit_before>""" Caching utilities """ import urlparse from . import app url = None redis_obj = None try: import redis except ImportError: app.logger.warning('No caching available, missing redis module') else: try: url = urlparse.urlparse(app.config['REDISCLOUD_URL']) except KeyError: ...
fc8c7a62b737e4f291250c4d45bf34ae944ef6da
sweettooth/upload/urls.py
sweettooth/upload/urls.py
from django.conf.urls.defaults import patterns, url slug_charset = "[a-zA-Z0-9-_]" urlpatterns = patterns('upload', url(r'^$', 'views.upload_file', dict(slug=None), name='upload-file'), url(r'(?P<slug>%s+)/$' % (slug_charset,), 'views.upload_file', name='upload-file'), url(r'edit-data/$', 'views.upload_e...
from django.conf.urls.defaults import patterns, url slug_charset = "[a-zA-Z0-9-_]" urlpatterns = patterns('upload', url(r'^$', 'views.upload_file', dict(slug=None), name='upload-file'), url(r'new-version/(?P<slug>%s+)/$' % (slug_charset,), 'views.upload_file', name='upload-file'), url(r'edit-data/$', 'vi...
Adjust URL for new version upload, was competing with 'edit-data'.
Adjust URL for new version upload, was competing with 'edit-data'.
Python
agpl-3.0
magcius/sweettooth,GNOME/extensions-web,GNOME/extensions-web,GNOME/extensions-web,magcius/sweettooth,GNOME/extensions-web
from django.conf.urls.defaults import patterns, url slug_charset = "[a-zA-Z0-9-_]" urlpatterns = patterns('upload', url(r'^$', 'views.upload_file', dict(slug=None), name='upload-file'), url(r'(?P<slug>%s+)/$' % (slug_charset,), 'views.upload_file', name='upload-file'), url(r'edit-data/$', 'views.upload_e...
from django.conf.urls.defaults import patterns, url slug_charset = "[a-zA-Z0-9-_]" urlpatterns = patterns('upload', url(r'^$', 'views.upload_file', dict(slug=None), name='upload-file'), url(r'new-version/(?P<slug>%s+)/$' % (slug_charset,), 'views.upload_file', name='upload-file'), url(r'edit-data/$', 'vi...
<commit_before> from django.conf.urls.defaults import patterns, url slug_charset = "[a-zA-Z0-9-_]" urlpatterns = patterns('upload', url(r'^$', 'views.upload_file', dict(slug=None), name='upload-file'), url(r'(?P<slug>%s+)/$' % (slug_charset,), 'views.upload_file', name='upload-file'), url(r'edit-data/$', ...
from django.conf.urls.defaults import patterns, url slug_charset = "[a-zA-Z0-9-_]" urlpatterns = patterns('upload', url(r'^$', 'views.upload_file', dict(slug=None), name='upload-file'), url(r'new-version/(?P<slug>%s+)/$' % (slug_charset,), 'views.upload_file', name='upload-file'), url(r'edit-data/$', 'vi...
from django.conf.urls.defaults import patterns, url slug_charset = "[a-zA-Z0-9-_]" urlpatterns = patterns('upload', url(r'^$', 'views.upload_file', dict(slug=None), name='upload-file'), url(r'(?P<slug>%s+)/$' % (slug_charset,), 'views.upload_file', name='upload-file'), url(r'edit-data/$', 'views.upload_e...
<commit_before> from django.conf.urls.defaults import patterns, url slug_charset = "[a-zA-Z0-9-_]" urlpatterns = patterns('upload', url(r'^$', 'views.upload_file', dict(slug=None), name='upload-file'), url(r'(?P<slug>%s+)/$' % (slug_charset,), 'views.upload_file', name='upload-file'), url(r'edit-data/$', ...
ada3e5dca1e777187a0933bd7b83fcb38c4faf66
nightreads/user_manager/forms.py
nightreads/user_manager/forms.py
from django import forms class SubscribeForm(forms.Form): email = forms.EmailField() tags = forms.CharField() def clean(self): tags = self.cleaned_data['tags'].split(',') self.cleaned_data['tags'] = [t.strip().lower() for t in tags] return self.cleaned_data class UnsubscribeForm...
from django import forms class SubscribeForm(forms.Form): email = forms.EmailField() tags = forms.CharField() def clean_tags(self): tags = self.cleaned_data['tags'].split(',') return [t.strip().lower() for t in tags] class UnsubscribeForm(forms.Form): email = forms.EmailField()
Use `clean_tags` instead of `clean`
Use `clean_tags` instead of `clean`
Python
mit
avinassh/nightreads,avinassh/nightreads
from django import forms class SubscribeForm(forms.Form): email = forms.EmailField() tags = forms.CharField() def clean(self): tags = self.cleaned_data['tags'].split(',') self.cleaned_data['tags'] = [t.strip().lower() for t in tags] return self.cleaned_data class UnsubscribeForm...
from django import forms class SubscribeForm(forms.Form): email = forms.EmailField() tags = forms.CharField() def clean_tags(self): tags = self.cleaned_data['tags'].split(',') return [t.strip().lower() for t in tags] class UnsubscribeForm(forms.Form): email = forms.EmailField()
<commit_before>from django import forms class SubscribeForm(forms.Form): email = forms.EmailField() tags = forms.CharField() def clean(self): tags = self.cleaned_data['tags'].split(',') self.cleaned_data['tags'] = [t.strip().lower() for t in tags] return self.cleaned_data class ...
from django import forms class SubscribeForm(forms.Form): email = forms.EmailField() tags = forms.CharField() def clean_tags(self): tags = self.cleaned_data['tags'].split(',') return [t.strip().lower() for t in tags] class UnsubscribeForm(forms.Form): email = forms.EmailField()
from django import forms class SubscribeForm(forms.Form): email = forms.EmailField() tags = forms.CharField() def clean(self): tags = self.cleaned_data['tags'].split(',') self.cleaned_data['tags'] = [t.strip().lower() for t in tags] return self.cleaned_data class UnsubscribeForm...
<commit_before>from django import forms class SubscribeForm(forms.Form): email = forms.EmailField() tags = forms.CharField() def clean(self): tags = self.cleaned_data['tags'].split(',') self.cleaned_data['tags'] = [t.strip().lower() for t in tags] return self.cleaned_data class ...
d4de2b2ff0cb7ba6ad4eed7fe2c0b70801e3c057
juriscraper/opinions/united_states/state/massappct128.py
juriscraper/opinions/united_states/state/massappct128.py
""" Scraper for Massachusetts Appeals Court CourtID: massapp Court Short Name: MS Author: William Palin Court Contact: SJCReporter@sjc.state.ma.us (617) 557-1030 Reviewer: Date: 2020-01-17 """ from juriscraper.opinions.united_states.state import mass class Site(mass.Site): def __init__(self, *args, **kwargs): ...
""" Scraper for Massachusetts Appeals Court CourtID: massapp Court Short Name: MS Author: William Palin Court Contact: SJCReporter@sjc.state.ma.us (617) 557-1030 Reviewer: Date: 2020-01-17 """ from juriscraper.opinions.united_states.state import mass class Site(mass.Site): def __init__(self, *args, **kwargs): ...
Change url to 128archive.com website.
fix(mass128): Change url to 128archive.com website.
Python
bsd-2-clause
freelawproject/juriscraper,freelawproject/juriscraper
""" Scraper for Massachusetts Appeals Court CourtID: massapp Court Short Name: MS Author: William Palin Court Contact: SJCReporter@sjc.state.ma.us (617) 557-1030 Reviewer: Date: 2020-01-17 """ from juriscraper.opinions.united_states.state import mass class Site(mass.Site): def __init__(self, *args, **kwargs): ...
""" Scraper for Massachusetts Appeals Court CourtID: massapp Court Short Name: MS Author: William Palin Court Contact: SJCReporter@sjc.state.ma.us (617) 557-1030 Reviewer: Date: 2020-01-17 """ from juriscraper.opinions.united_states.state import mass class Site(mass.Site): def __init__(self, *args, **kwargs): ...
<commit_before>""" Scraper for Massachusetts Appeals Court CourtID: massapp Court Short Name: MS Author: William Palin Court Contact: SJCReporter@sjc.state.ma.us (617) 557-1030 Reviewer: Date: 2020-01-17 """ from juriscraper.opinions.united_states.state import mass class Site(mass.Site): def __init__(self, *args...
""" Scraper for Massachusetts Appeals Court CourtID: massapp Court Short Name: MS Author: William Palin Court Contact: SJCReporter@sjc.state.ma.us (617) 557-1030 Reviewer: Date: 2020-01-17 """ from juriscraper.opinions.united_states.state import mass class Site(mass.Site): def __init__(self, *args, **kwargs): ...
""" Scraper for Massachusetts Appeals Court CourtID: massapp Court Short Name: MS Author: William Palin Court Contact: SJCReporter@sjc.state.ma.us (617) 557-1030 Reviewer: Date: 2020-01-17 """ from juriscraper.opinions.united_states.state import mass class Site(mass.Site): def __init__(self, *args, **kwargs): ...
<commit_before>""" Scraper for Massachusetts Appeals Court CourtID: massapp Court Short Name: MS Author: William Palin Court Contact: SJCReporter@sjc.state.ma.us (617) 557-1030 Reviewer: Date: 2020-01-17 """ from juriscraper.opinions.united_states.state import mass class Site(mass.Site): def __init__(self, *args...
3f4ef89512da6a3e89f27121446ec59773869017
setuptools/tests/test_setuptools.py
setuptools/tests/test_setuptools.py
import os import pytest import setuptools @pytest.fixture def example_source(tmpdir): tmpdir.mkdir('foo') (tmpdir / 'foo/bar.py').write('') (tmpdir / 'readme.txt').write('') return tmpdir def test_findall(example_source): found = list(setuptools.findall(str(example_source))) expected = ['r...
import os import pytest import setuptools @pytest.fixture def example_source(tmpdir): tmpdir.mkdir('foo') (tmpdir / 'foo/bar.py').write('') (tmpdir / 'readme.txt').write('') return tmpdir def test_findall(example_source): found = list(setuptools.findall(str(example_source))) expected = ['r...
Fix failing test on Windows due to path separator
Fix failing test on Windows due to path separator
Python
mit
pypa/setuptools,pypa/setuptools,pypa/setuptools
import os import pytest import setuptools @pytest.fixture def example_source(tmpdir): tmpdir.mkdir('foo') (tmpdir / 'foo/bar.py').write('') (tmpdir / 'readme.txt').write('') return tmpdir def test_findall(example_source): found = list(setuptools.findall(str(example_source))) expected = ['r...
import os import pytest import setuptools @pytest.fixture def example_source(tmpdir): tmpdir.mkdir('foo') (tmpdir / 'foo/bar.py').write('') (tmpdir / 'readme.txt').write('') return tmpdir def test_findall(example_source): found = list(setuptools.findall(str(example_source))) expected = ['r...
<commit_before>import os import pytest import setuptools @pytest.fixture def example_source(tmpdir): tmpdir.mkdir('foo') (tmpdir / 'foo/bar.py').write('') (tmpdir / 'readme.txt').write('') return tmpdir def test_findall(example_source): found = list(setuptools.findall(str(example_source))) ...
import os import pytest import setuptools @pytest.fixture def example_source(tmpdir): tmpdir.mkdir('foo') (tmpdir / 'foo/bar.py').write('') (tmpdir / 'readme.txt').write('') return tmpdir def test_findall(example_source): found = list(setuptools.findall(str(example_source))) expected = ['r...
import os import pytest import setuptools @pytest.fixture def example_source(tmpdir): tmpdir.mkdir('foo') (tmpdir / 'foo/bar.py').write('') (tmpdir / 'readme.txt').write('') return tmpdir def test_findall(example_source): found = list(setuptools.findall(str(example_source))) expected = ['r...
<commit_before>import os import pytest import setuptools @pytest.fixture def example_source(tmpdir): tmpdir.mkdir('foo') (tmpdir / 'foo/bar.py').write('') (tmpdir / 'readme.txt').write('') return tmpdir def test_findall(example_source): found = list(setuptools.findall(str(example_source))) ...
67469ca12b6145eed4051bd85c928f88d4d13791
get_merged_prs_since_tag.py
get_merged_prs_since_tag.py
#!/usr/bin/env python3 """Get a markdown-formatted list of PRs merged since a certain tag.""" import github_tools Repo = github_tools.get_repo() # TODO: implement getting date from repo tag./ tagname = '0.8.1' tags = Repo.get_tags() for t in tags: if t.name == tagname: startdate = t.commit.commit.commit...
#!/usr/bin/env python3 """Get a markdown-formatted list of PRs merged since a certain tag.""" import github_tools Repo = github_tools.get_repo() # TODO: implement getting date from repo tag. tagname = '0.8.1' tags = Repo.get_tags() for t in tags: if t.name == tagname: startdate = t.commit.commit.committ...
Refactor script to clean up code a bit.
Refactor script to clean up code a bit.
Python
mit
bilderbuchi/OF_repo_utilities
#!/usr/bin/env python3 """Get a markdown-formatted list of PRs merged since a certain tag.""" import github_tools Repo = github_tools.get_repo() # TODO: implement getting date from repo tag./ tagname = '0.8.1' tags = Repo.get_tags() for t in tags: if t.name == tagname: startdate = t.commit.commit.commit...
#!/usr/bin/env python3 """Get a markdown-formatted list of PRs merged since a certain tag.""" import github_tools Repo = github_tools.get_repo() # TODO: implement getting date from repo tag. tagname = '0.8.1' tags = Repo.get_tags() for t in tags: if t.name == tagname: startdate = t.commit.commit.committ...
<commit_before>#!/usr/bin/env python3 """Get a markdown-formatted list of PRs merged since a certain tag.""" import github_tools Repo = github_tools.get_repo() # TODO: implement getting date from repo tag./ tagname = '0.8.1' tags = Repo.get_tags() for t in tags: if t.name == tagname: startdate = t.commi...
#!/usr/bin/env python3 """Get a markdown-formatted list of PRs merged since a certain tag.""" import github_tools Repo = github_tools.get_repo() # TODO: implement getting date from repo tag. tagname = '0.8.1' tags = Repo.get_tags() for t in tags: if t.name == tagname: startdate = t.commit.commit.committ...
#!/usr/bin/env python3 """Get a markdown-formatted list of PRs merged since a certain tag.""" import github_tools Repo = github_tools.get_repo() # TODO: implement getting date from repo tag./ tagname = '0.8.1' tags = Repo.get_tags() for t in tags: if t.name == tagname: startdate = t.commit.commit.commit...
<commit_before>#!/usr/bin/env python3 """Get a markdown-formatted list of PRs merged since a certain tag.""" import github_tools Repo = github_tools.get_repo() # TODO: implement getting date from repo tag./ tagname = '0.8.1' tags = Repo.get_tags() for t in tags: if t.name == tagname: startdate = t.commi...
7131b2d82a856bfb4f7348567b8795243a24074a
dsub/_dsub_version.py
dsub/_dsub_version.py
# Copyright 2017 Google Inc. 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 applicable law or a...
# Copyright 2017 Google Inc. 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 applicable law or a...
Update dsub version to 0.4.6.dev0
Update dsub version to 0.4.6.dev0 PiperOrigin-RevId: 393201424
Python
apache-2.0
DataBiosphere/dsub,DataBiosphere/dsub
# Copyright 2017 Google Inc. 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 applicable law or a...
# Copyright 2017 Google Inc. 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 applicable law or a...
<commit_before># Copyright 2017 Google Inc. 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 appl...
# Copyright 2017 Google Inc. 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 applicable law or a...
# Copyright 2017 Google Inc. 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 applicable law or a...
<commit_before># Copyright 2017 Google Inc. 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 appl...
cddbc2acdd16047c76c7f89e294c7f4918df6e93
elections/uk/forms.py
elections/uk/forms.py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django import forms from django.core.exceptions import ValidationError from candidates.mapit import BaseMapItException from popolo.models import Area from compat import text_type from .mapit import get_areas_from_postcode class PostcodeForm(form...
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django import forms from django.core.exceptions import ValidationError from candidates.mapit import BaseMapItException from popolo.models import Area from compat import text_type from .mapit import get_areas_from_postcode class PostcodeForm(form...
Change max length on home page search form
Change max length on home page search form
Python
agpl-3.0
DemocracyClub/yournextrepresentative,DemocracyClub/yournextrepresentative,DemocracyClub/yournextrepresentative
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django import forms from django.core.exceptions import ValidationError from candidates.mapit import BaseMapItException from popolo.models import Area from compat import text_type from .mapit import get_areas_from_postcode class PostcodeForm(form...
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django import forms from django.core.exceptions import ValidationError from candidates.mapit import BaseMapItException from popolo.models import Area from compat import text_type from .mapit import get_areas_from_postcode class PostcodeForm(form...
<commit_before># -*- coding: utf-8 -*- from __future__ import unicode_literals from django import forms from django.core.exceptions import ValidationError from candidates.mapit import BaseMapItException from popolo.models import Area from compat import text_type from .mapit import get_areas_from_postcode class Po...
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django import forms from django.core.exceptions import ValidationError from candidates.mapit import BaseMapItException from popolo.models import Area from compat import text_type from .mapit import get_areas_from_postcode class PostcodeForm(form...
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django import forms from django.core.exceptions import ValidationError from candidates.mapit import BaseMapItException from popolo.models import Area from compat import text_type from .mapit import get_areas_from_postcode class PostcodeForm(form...
<commit_before># -*- coding: utf-8 -*- from __future__ import unicode_literals from django import forms from django.core.exceptions import ValidationError from candidates.mapit import BaseMapItException from popolo.models import Area from compat import text_type from .mapit import get_areas_from_postcode class Po...
00c5f9b382fd1b060a973a3a3a1db33c280f2dd7
respite/middleware.py
respite/middleware.py
import re from django.http import QueryDict class HttpMethodOverrideMiddleware: """ Facilitate for overriding the HTTP method with the X-HTTP-Method-Override header or a '_method' HTTP POST parameter. """ def process_request(self, request): if request.META.has_key('HTTP_X_HTTP_METHOD_OVER...
import re from django.http import QueryDict class HttpMethodOverrideMiddleware: """ Facilitate for overriding the HTTP method with the X-HTTP-Method-Override header or a '_method' HTTP POST parameter. """ def process_request(self, request): if 'HTTP_X_HTTP_METHOD_OVERRIDE' in request.META...
Refactor to use 'in' instead of 'has_key'
Refactor to use 'in' instead of 'has_key'
Python
mit
jgorset/django-respite,jgorset/django-respite,jgorset/django-respite
import re from django.http import QueryDict class HttpMethodOverrideMiddleware: """ Facilitate for overriding the HTTP method with the X-HTTP-Method-Override header or a '_method' HTTP POST parameter. """ def process_request(self, request): if request.META.has_key('HTTP_X_HTTP_METHOD_OVER...
import re from django.http import QueryDict class HttpMethodOverrideMiddleware: """ Facilitate for overriding the HTTP method with the X-HTTP-Method-Override header or a '_method' HTTP POST parameter. """ def process_request(self, request): if 'HTTP_X_HTTP_METHOD_OVERRIDE' in request.META...
<commit_before>import re from django.http import QueryDict class HttpMethodOverrideMiddleware: """ Facilitate for overriding the HTTP method with the X-HTTP-Method-Override header or a '_method' HTTP POST parameter. """ def process_request(self, request): if request.META.has_key('HTTP_X_H...
import re from django.http import QueryDict class HttpMethodOverrideMiddleware: """ Facilitate for overriding the HTTP method with the X-HTTP-Method-Override header or a '_method' HTTP POST parameter. """ def process_request(self, request): if 'HTTP_X_HTTP_METHOD_OVERRIDE' in request.META...
import re from django.http import QueryDict class HttpMethodOverrideMiddleware: """ Facilitate for overriding the HTTP method with the X-HTTP-Method-Override header or a '_method' HTTP POST parameter. """ def process_request(self, request): if request.META.has_key('HTTP_X_HTTP_METHOD_OVER...
<commit_before>import re from django.http import QueryDict class HttpMethodOverrideMiddleware: """ Facilitate for overriding the HTTP method with the X-HTTP-Method-Override header or a '_method' HTTP POST parameter. """ def process_request(self, request): if request.META.has_key('HTTP_X_H...
b74a95c81958ca567052e27f4df6d211d75f4a90
contentcuration/contentcuration/dev_settings.py
contentcuration/contentcuration/dev_settings.py
import logging import os from .test_settings import * try: import debug_panel except ImportError: # no debug panel, no use trying to add it to our middleware pass else: # if debug_panel exists, add it to our INSTALLED_APPS INSTALLED_APPS += ('debug_panel', 'debug_toolbar', 'pympler') MIDDLEWA...
import logging import os from .test_settings import * try: import debug_panel except ImportError: # no debug panel, no use trying to add it to our middleware pass else: # if debug_panel exists, add it to our INSTALLED_APPS INSTALLED_APPS += ('debug_panel', 'debug_toolbar', 'pympler') MIDDLEWA...
Update testing request sheet in debug mode
Update testing request sheet in debug mode
Python
mit
jayoshih/content-curation,jayoshih/content-curation,DXCanas/content-curation,fle-internal/content-curation,DXCanas/content-curation,DXCanas/content-curation,fle-internal/content-curation,fle-internal/content-curation,jayoshih/content-curation,DXCanas/content-curation,fle-internal/content-curation,jayoshih/content-curat...
import logging import os from .test_settings import * try: import debug_panel except ImportError: # no debug panel, no use trying to add it to our middleware pass else: # if debug_panel exists, add it to our INSTALLED_APPS INSTALLED_APPS += ('debug_panel', 'debug_toolbar', 'pympler') MIDDLEWA...
import logging import os from .test_settings import * try: import debug_panel except ImportError: # no debug panel, no use trying to add it to our middleware pass else: # if debug_panel exists, add it to our INSTALLED_APPS INSTALLED_APPS += ('debug_panel', 'debug_toolbar', 'pympler') MIDDLEWA...
<commit_before>import logging import os from .test_settings import * try: import debug_panel except ImportError: # no debug panel, no use trying to add it to our middleware pass else: # if debug_panel exists, add it to our INSTALLED_APPS INSTALLED_APPS += ('debug_panel', 'debug_toolbar', 'pympler...
import logging import os from .test_settings import * try: import debug_panel except ImportError: # no debug panel, no use trying to add it to our middleware pass else: # if debug_panel exists, add it to our INSTALLED_APPS INSTALLED_APPS += ('debug_panel', 'debug_toolbar', 'pympler') MIDDLEWA...
import logging import os from .test_settings import * try: import debug_panel except ImportError: # no debug panel, no use trying to add it to our middleware pass else: # if debug_panel exists, add it to our INSTALLED_APPS INSTALLED_APPS += ('debug_panel', 'debug_toolbar', 'pympler') MIDDLEWA...
<commit_before>import logging import os from .test_settings import * try: import debug_panel except ImportError: # no debug panel, no use trying to add it to our middleware pass else: # if debug_panel exists, add it to our INSTALLED_APPS INSTALLED_APPS += ('debug_panel', 'debug_toolbar', 'pympler...
b5db068a5545880d5d66d0be3ce88ccc393adcb0
h5py/_hl/__init__.py
h5py/_hl/__init__.py
# This file is part of h5py, a Python interface to the HDF5 library. # # http://www.h5py.org # # Copyright 2008-2013 Andrew Collette and contributors # # License: Standard 3-clause BSD; see "license.txt" for full license terms # and contributor agreement. from __future__ import absolute_import
# This file is part of h5py, a Python interface to the HDF5 library. # # http://www.h5py.org # # Copyright 2008-2013 Andrew Collette and contributors # # License: Standard 3-clause BSD; see "license.txt" for full license terms # and contributor agreement. """ This subpackage implements the high-level in...
Fix lint issues in _hl subpackage
Fix lint issues in _hl subpackage
Python
bsd-3-clause
h5py/h5py,h5py/h5py,h5py/h5py
# This file is part of h5py, a Python interface to the HDF5 library. # # http://www.h5py.org # # Copyright 2008-2013 Andrew Collette and contributors # # License: Standard 3-clause BSD; see "license.txt" for full license terms # and contributor agreement. from __future__ import absolute_import Fix lint iss...
# This file is part of h5py, a Python interface to the HDF5 library. # # http://www.h5py.org # # Copyright 2008-2013 Andrew Collette and contributors # # License: Standard 3-clause BSD; see "license.txt" for full license terms # and contributor agreement. """ This subpackage implements the high-level in...
<commit_before># This file is part of h5py, a Python interface to the HDF5 library. # # http://www.h5py.org # # Copyright 2008-2013 Andrew Collette and contributors # # License: Standard 3-clause BSD; see "license.txt" for full license terms # and contributor agreement. from __future__ import absolute_impor...
# This file is part of h5py, a Python interface to the HDF5 library. # # http://www.h5py.org # # Copyright 2008-2013 Andrew Collette and contributors # # License: Standard 3-clause BSD; see "license.txt" for full license terms # and contributor agreement. """ This subpackage implements the high-level in...
# This file is part of h5py, a Python interface to the HDF5 library. # # http://www.h5py.org # # Copyright 2008-2013 Andrew Collette and contributors # # License: Standard 3-clause BSD; see "license.txt" for full license terms # and contributor agreement. from __future__ import absolute_import Fix lint iss...
<commit_before># This file is part of h5py, a Python interface to the HDF5 library. # # http://www.h5py.org # # Copyright 2008-2013 Andrew Collette and contributors # # License: Standard 3-clause BSD; see "license.txt" for full license terms # and contributor agreement. from __future__ import absolute_impor...
3f2f8e1cf57c44b589b053902e2945cd2486414d
src/dashboard/src/components/accounts/backends.py
src/dashboard/src/components/accounts/backends.py
import re from django.conf import settings from django.dispatch import receiver from django_auth_ldap.backend import LDAPBackend, populate_user from shibboleth.backends import ShibbolethRemoteUserBackend from components.helpers import generate_api_key class CustomShibbolethRemoteUserBackend(ShibbolethRemoteUserBac...
import re from django.conf import settings from django.dispatch import receiver from django_auth_ldap.backend import LDAPBackend, populate_user from shibboleth.backends import ShibbolethRemoteUserBackend from components.helpers import generate_api_key class CustomShibbolethRemoteUserBackend(ShibbolethRemoteUserBac...
Fix API key generation with LDAP
Fix API key generation with LDAP * Only generate on first login, not every login * Handle case where user has not yet been saved
Python
agpl-3.0
artefactual/archivematica,artefactual/archivematica,artefactual/archivematica,artefactual/archivematica
import re from django.conf import settings from django.dispatch import receiver from django_auth_ldap.backend import LDAPBackend, populate_user from shibboleth.backends import ShibbolethRemoteUserBackend from components.helpers import generate_api_key class CustomShibbolethRemoteUserBackend(ShibbolethRemoteUserBac...
import re from django.conf import settings from django.dispatch import receiver from django_auth_ldap.backend import LDAPBackend, populate_user from shibboleth.backends import ShibbolethRemoteUserBackend from components.helpers import generate_api_key class CustomShibbolethRemoteUserBackend(ShibbolethRemoteUserBac...
<commit_before>import re from django.conf import settings from django.dispatch import receiver from django_auth_ldap.backend import LDAPBackend, populate_user from shibboleth.backends import ShibbolethRemoteUserBackend from components.helpers import generate_api_key class CustomShibbolethRemoteUserBackend(Shibbole...
import re from django.conf import settings from django.dispatch import receiver from django_auth_ldap.backend import LDAPBackend, populate_user from shibboleth.backends import ShibbolethRemoteUserBackend from components.helpers import generate_api_key class CustomShibbolethRemoteUserBackend(ShibbolethRemoteUserBac...
import re from django.conf import settings from django.dispatch import receiver from django_auth_ldap.backend import LDAPBackend, populate_user from shibboleth.backends import ShibbolethRemoteUserBackend from components.helpers import generate_api_key class CustomShibbolethRemoteUserBackend(ShibbolethRemoteUserBac...
<commit_before>import re from django.conf import settings from django.dispatch import receiver from django_auth_ldap.backend import LDAPBackend, populate_user from shibboleth.backends import ShibbolethRemoteUserBackend from components.helpers import generate_api_key class CustomShibbolethRemoteUserBackend(Shibbole...
cfa1b895b5b3e44dd66565add95f636736153536
marvin/stats/views.py
marvin/stats/views.py
from flask import Flask from flask import render_template from marvin import client import logging app = Flask(__name__, static_url_path='/static') @app.route('/') def home_page(): # get list of transfered files files = client.list_files() return render_template('home_page.html', files=files) def start(...
from flask import Flask from flask import render_template from marvin.client import connect import logging app = Flask(__name__, static_url_path='/static') @app.route('/') def home_page(): # get list of transfered files server = connect() files = server.list_sending() return render_template('home_pag...
Rewrite to new client usage
Rewrite to new client usage
Python
mit
dou-hackathon-2015-marvin/marvin,dou-hackathon-2015-marvin/marvin,dou-hackathon-2015-marvin/marvin,dou-hackathon-2015-marvin/marvin
from flask import Flask from flask import render_template from marvin import client import logging app = Flask(__name__, static_url_path='/static') @app.route('/') def home_page(): # get list of transfered files files = client.list_files() return render_template('home_page.html', files=files) def start(...
from flask import Flask from flask import render_template from marvin.client import connect import logging app = Flask(__name__, static_url_path='/static') @app.route('/') def home_page(): # get list of transfered files server = connect() files = server.list_sending() return render_template('home_pag...
<commit_before> from flask import Flask from flask import render_template from marvin import client import logging app = Flask(__name__, static_url_path='/static') @app.route('/') def home_page(): # get list of transfered files files = client.list_files() return render_template('home_page.html', files=fil...
from flask import Flask from flask import render_template from marvin.client import connect import logging app = Flask(__name__, static_url_path='/static') @app.route('/') def home_page(): # get list of transfered files server = connect() files = server.list_sending() return render_template('home_pag...
from flask import Flask from flask import render_template from marvin import client import logging app = Flask(__name__, static_url_path='/static') @app.route('/') def home_page(): # get list of transfered files files = client.list_files() return render_template('home_page.html', files=files) def start(...
<commit_before> from flask import Flask from flask import render_template from marvin import client import logging app = Flask(__name__, static_url_path='/static') @app.route('/') def home_page(): # get list of transfered files files = client.list_files() return render_template('home_page.html', files=fil...
6b870b6605827472ff86f1d180fe94fa5bb5ea5d
TimeSeriesTools/__init__.py
TimeSeriesTools/__init__.py
__author__ = 'To\xc3\xb1o G. Quintela (tgq.spm@gmail.com)' __version__ = '0.0.0' #from pyCausality.TimeSeries.TS import * #from pyCausality.TimeSeries.automatic_thresholding import * #from pyCausality.TimeSeries.distances import * #from pyCausality.TimeSeries.measures import * #from pyCausality.TimeSeries.smoothing...
__author__ = 'To\xc3\xb1o G. Quintela (tgq.spm@gmail.com)' __version__ = '0.0.0' #from pyCausality.TimeSeries.TS import * #from pyCausality.TimeSeries.automatic_thresholding import * #from pyCausality.TimeSeries.distances import * #from pyCausality.TimeSeries.measures import * #from pyCausality.TimeSeries.smoothing...
Add utils tests into testing module.
Add utils tests into testing module.
Python
mit
tgquintela/TimeSeriesTools,tgquintela/TimeSeriesTools
__author__ = 'To\xc3\xb1o G. Quintela (tgq.spm@gmail.com)' __version__ = '0.0.0' #from pyCausality.TimeSeries.TS import * #from pyCausality.TimeSeries.automatic_thresholding import * #from pyCausality.TimeSeries.distances import * #from pyCausality.TimeSeries.measures import * #from pyCausality.TimeSeries.smoothing...
__author__ = 'To\xc3\xb1o G. Quintela (tgq.spm@gmail.com)' __version__ = '0.0.0' #from pyCausality.TimeSeries.TS import * #from pyCausality.TimeSeries.automatic_thresholding import * #from pyCausality.TimeSeries.distances import * #from pyCausality.TimeSeries.measures import * #from pyCausality.TimeSeries.smoothing...
<commit_before> __author__ = 'To\xc3\xb1o G. Quintela (tgq.spm@gmail.com)' __version__ = '0.0.0' #from pyCausality.TimeSeries.TS import * #from pyCausality.TimeSeries.automatic_thresholding import * #from pyCausality.TimeSeries.distances import * #from pyCausality.TimeSeries.measures import * #from pyCausality.TimeS...
__author__ = 'To\xc3\xb1o G. Quintela (tgq.spm@gmail.com)' __version__ = '0.0.0' #from pyCausality.TimeSeries.TS import * #from pyCausality.TimeSeries.automatic_thresholding import * #from pyCausality.TimeSeries.distances import * #from pyCausality.TimeSeries.measures import * #from pyCausality.TimeSeries.smoothing...
__author__ = 'To\xc3\xb1o G. Quintela (tgq.spm@gmail.com)' __version__ = '0.0.0' #from pyCausality.TimeSeries.TS import * #from pyCausality.TimeSeries.automatic_thresholding import * #from pyCausality.TimeSeries.distances import * #from pyCausality.TimeSeries.measures import * #from pyCausality.TimeSeries.smoothing...
<commit_before> __author__ = 'To\xc3\xb1o G. Quintela (tgq.spm@gmail.com)' __version__ = '0.0.0' #from pyCausality.TimeSeries.TS import * #from pyCausality.TimeSeries.automatic_thresholding import * #from pyCausality.TimeSeries.distances import * #from pyCausality.TimeSeries.measures import * #from pyCausality.TimeS...
e103f3bcb4e6488295503dea2f788b98c4b7d43e
domotica/alarm.py
domotica/alarm.py
import s7 class Alarm: ALARM_DB = 12 def __init__(self, s7conn): self._s7conn = s7conn def arm(self): # Toggle bit self._s7con.writeBit(self.ALARM_DB, 0, 1, 1) self._s7con.writeBit(self.ALARM_DB, 0, 1, 0) def disarm(self): # Toggle bit self._s7con.writ...
import s7 class Alarm: ALARM_DB = 12 def __init__(self, s7conn): self._s7conn = s7conn def arm(self): # Toggle bit self._s7conn.writeBit(self.ALARM_DB, 0, 1, 1) self._s7conn.writeBit(self.ALARM_DB, 0, 1, 0) def disarm(self): # Toggle bit self._s7conn.w...
Fix typo in variable name
Fix typo in variable name s7conn vs. s7con
Python
bsd-2-clause
kprovost/domotica,kprovost/domotica
import s7 class Alarm: ALARM_DB = 12 def __init__(self, s7conn): self._s7conn = s7conn def arm(self): # Toggle bit self._s7con.writeBit(self.ALARM_DB, 0, 1, 1) self._s7con.writeBit(self.ALARM_DB, 0, 1, 0) def disarm(self): # Toggle bit self._s7con.writ...
import s7 class Alarm: ALARM_DB = 12 def __init__(self, s7conn): self._s7conn = s7conn def arm(self): # Toggle bit self._s7conn.writeBit(self.ALARM_DB, 0, 1, 1) self._s7conn.writeBit(self.ALARM_DB, 0, 1, 0) def disarm(self): # Toggle bit self._s7conn.w...
<commit_before>import s7 class Alarm: ALARM_DB = 12 def __init__(self, s7conn): self._s7conn = s7conn def arm(self): # Toggle bit self._s7con.writeBit(self.ALARM_DB, 0, 1, 1) self._s7con.writeBit(self.ALARM_DB, 0, 1, 0) def disarm(self): # Toggle bit s...
import s7 class Alarm: ALARM_DB = 12 def __init__(self, s7conn): self._s7conn = s7conn def arm(self): # Toggle bit self._s7conn.writeBit(self.ALARM_DB, 0, 1, 1) self._s7conn.writeBit(self.ALARM_DB, 0, 1, 0) def disarm(self): # Toggle bit self._s7conn.w...
import s7 class Alarm: ALARM_DB = 12 def __init__(self, s7conn): self._s7conn = s7conn def arm(self): # Toggle bit self._s7con.writeBit(self.ALARM_DB, 0, 1, 1) self._s7con.writeBit(self.ALARM_DB, 0, 1, 0) def disarm(self): # Toggle bit self._s7con.writ...
<commit_before>import s7 class Alarm: ALARM_DB = 12 def __init__(self, s7conn): self._s7conn = s7conn def arm(self): # Toggle bit self._s7con.writeBit(self.ALARM_DB, 0, 1, 1) self._s7con.writeBit(self.ALARM_DB, 0, 1, 0) def disarm(self): # Toggle bit s...
57a5042b8a01c16937206678924f6fe9c5273cc9
example/__init__.py
example/__init__.py
from flask import Flask, render_template from flask_nav import Nav from flask_nav.elements import * nav = Nav() class UserGreeting(Text): def __init__(self): pass @property def text(self): return 'Hello, {}'.format('bob') # registers the "top" menubar nav.register_element('top', Navbar...
from flask import Flask, render_template from flask_nav import Nav from flask_nav.elements import * nav = Nav() # registers the "top" menubar nav.register_element('top', Navbar( View('Widgits, Inc.', 'index'), View('Our Mission', 'about'), Subgroup( 'Products', View('Wg240-Series', 'produ...
Remove accidentally added UserGreeting from example app.
Remove accidentally added UserGreeting from example app.
Python
mit
mbr/flask-nav,mbr/flask-nav
from flask import Flask, render_template from flask_nav import Nav from flask_nav.elements import * nav = Nav() class UserGreeting(Text): def __init__(self): pass @property def text(self): return 'Hello, {}'.format('bob') # registers the "top" menubar nav.register_element('top', Navbar...
from flask import Flask, render_template from flask_nav import Nav from flask_nav.elements import * nav = Nav() # registers the "top" menubar nav.register_element('top', Navbar( View('Widgits, Inc.', 'index'), View('Our Mission', 'about'), Subgroup( 'Products', View('Wg240-Series', 'produ...
<commit_before>from flask import Flask, render_template from flask_nav import Nav from flask_nav.elements import * nav = Nav() class UserGreeting(Text): def __init__(self): pass @property def text(self): return 'Hello, {}'.format('bob') # registers the "top" menubar nav.register_elemen...
from flask import Flask, render_template from flask_nav import Nav from flask_nav.elements import * nav = Nav() # registers the "top" menubar nav.register_element('top', Navbar( View('Widgits, Inc.', 'index'), View('Our Mission', 'about'), Subgroup( 'Products', View('Wg240-Series', 'produ...
from flask import Flask, render_template from flask_nav import Nav from flask_nav.elements import * nav = Nav() class UserGreeting(Text): def __init__(self): pass @property def text(self): return 'Hello, {}'.format('bob') # registers the "top" menubar nav.register_element('top', Navbar...
<commit_before>from flask import Flask, render_template from flask_nav import Nav from flask_nav.elements import * nav = Nav() class UserGreeting(Text): def __init__(self): pass @property def text(self): return 'Hello, {}'.format('bob') # registers the "top" menubar nav.register_elemen...
644252445b6c9b2729e73f97ba20e96dcfadb73b
tests/test_parser.py
tests/test_parser.py
from gogoutils.parser import Parser def test_parser_url(): """Test parsing of url""" urls = [ 'http://github.com/gogoair/test', 'https://github.com/gogoair/test', 'http://github.com/gogoair/test.git', 'https://github.com/gogoair/test.git', 'https://username@testgithub....
from gogoutils.parser import Parser def test_parser_url(): """Test parsing of url""" urls = [ 'http://github.com/gogoair/test', 'https://github.com/gogoair/test', 'http://github.com/gogoair/test.git', 'https://github.com/gogoair/test.git', 'https://username@testgithub....
Add additional git url formats
Add additional git url formats
Python
apache-2.0
gogoair/gogo-utils
from gogoutils.parser import Parser def test_parser_url(): """Test parsing of url""" urls = [ 'http://github.com/gogoair/test', 'https://github.com/gogoair/test', 'http://github.com/gogoair/test.git', 'https://github.com/gogoair/test.git', 'https://username@testgithub....
from gogoutils.parser import Parser def test_parser_url(): """Test parsing of url""" urls = [ 'http://github.com/gogoair/test', 'https://github.com/gogoair/test', 'http://github.com/gogoair/test.git', 'https://github.com/gogoair/test.git', 'https://username@testgithub....
<commit_before>from gogoutils.parser import Parser def test_parser_url(): """Test parsing of url""" urls = [ 'http://github.com/gogoair/test', 'https://github.com/gogoair/test', 'http://github.com/gogoair/test.git', 'https://github.com/gogoair/test.git', 'https://usern...
from gogoutils.parser import Parser def test_parser_url(): """Test parsing of url""" urls = [ 'http://github.com/gogoair/test', 'https://github.com/gogoair/test', 'http://github.com/gogoair/test.git', 'https://github.com/gogoair/test.git', 'https://username@testgithub....
from gogoutils.parser import Parser def test_parser_url(): """Test parsing of url""" urls = [ 'http://github.com/gogoair/test', 'https://github.com/gogoair/test', 'http://github.com/gogoair/test.git', 'https://github.com/gogoair/test.git', 'https://username@testgithub....
<commit_before>from gogoutils.parser import Parser def test_parser_url(): """Test parsing of url""" urls = [ 'http://github.com/gogoair/test', 'https://github.com/gogoair/test', 'http://github.com/gogoair/test.git', 'https://github.com/gogoair/test.git', 'https://usern...
abea380145ca0d2ebc1b68876b9cde0322be4db5
astral/api/handlers/ping.py
astral/api/handlers/ping.py
from astral.api.handlers.base import BaseHandler from astral.conf import settings import logging log = logging.getLogger(__name__) class PingHandler(BaseHandler): def get(self): """If 'bytes' is specified in the query string, return that number of random bytes (for the purposes of a downstream ba...
from astral.api.handlers.base import BaseHandler from astral.conf import settings import logging log = logging.getLogger(__name__) class PingHandler(BaseHandler): def get(self): """If 'bytes' is specified in the query string, return that number of random bytes (for the purposes of a downstream ba...
Use min of specified byte count and limit, not max.
Use min of specified byte count and limit, not max.
Python
mit
peplin/astral
from astral.api.handlers.base import BaseHandler from astral.conf import settings import logging log = logging.getLogger(__name__) class PingHandler(BaseHandler): def get(self): """If 'bytes' is specified in the query string, return that number of random bytes (for the purposes of a downstream ba...
from astral.api.handlers.base import BaseHandler from astral.conf import settings import logging log = logging.getLogger(__name__) class PingHandler(BaseHandler): def get(self): """If 'bytes' is specified in the query string, return that number of random bytes (for the purposes of a downstream ba...
<commit_before>from astral.api.handlers.base import BaseHandler from astral.conf import settings import logging log = logging.getLogger(__name__) class PingHandler(BaseHandler): def get(self): """If 'bytes' is specified in the query string, return that number of random bytes (for the purposes of ...
from astral.api.handlers.base import BaseHandler from astral.conf import settings import logging log = logging.getLogger(__name__) class PingHandler(BaseHandler): def get(self): """If 'bytes' is specified in the query string, return that number of random bytes (for the purposes of a downstream ba...
from astral.api.handlers.base import BaseHandler from astral.conf import settings import logging log = logging.getLogger(__name__) class PingHandler(BaseHandler): def get(self): """If 'bytes' is specified in the query string, return that number of random bytes (for the purposes of a downstream ba...
<commit_before>from astral.api.handlers.base import BaseHandler from astral.conf import settings import logging log = logging.getLogger(__name__) class PingHandler(BaseHandler): def get(self): """If 'bytes' is specified in the query string, return that number of random bytes (for the purposes of ...
96dc9e590b81926fddb83a85a1352039c10c1509
links/mlp.py
links/mlp.py
from __future__ import division from __future__ import unicode_literals from __future__ import print_function from __future__ import absolute_import from builtins import super from builtins import range from future import standard_library standard_library.install_aliases() import random import numpy as np import chain...
from __future__ import division from __future__ import unicode_literals from __future__ import print_function from __future__ import absolute_import from builtins import super from builtins import range from future import standard_library standard_library.install_aliases() import random import numpy as np import chain...
Support configuration with no hidden-layer
Support configuration with no hidden-layer
Python
mit
toslunar/chainerrl,toslunar/chainerrl
from __future__ import division from __future__ import unicode_literals from __future__ import print_function from __future__ import absolute_import from builtins import super from builtins import range from future import standard_library standard_library.install_aliases() import random import numpy as np import chain...
from __future__ import division from __future__ import unicode_literals from __future__ import print_function from __future__ import absolute_import from builtins import super from builtins import range from future import standard_library standard_library.install_aliases() import random import numpy as np import chain...
<commit_before>from __future__ import division from __future__ import unicode_literals from __future__ import print_function from __future__ import absolute_import from builtins import super from builtins import range from future import standard_library standard_library.install_aliases() import random import numpy as ...
from __future__ import division from __future__ import unicode_literals from __future__ import print_function from __future__ import absolute_import from builtins import super from builtins import range from future import standard_library standard_library.install_aliases() import random import numpy as np import chain...
from __future__ import division from __future__ import unicode_literals from __future__ import print_function from __future__ import absolute_import from builtins import super from builtins import range from future import standard_library standard_library.install_aliases() import random import numpy as np import chain...
<commit_before>from __future__ import division from __future__ import unicode_literals from __future__ import print_function from __future__ import absolute_import from builtins import super from builtins import range from future import standard_library standard_library.install_aliases() import random import numpy as ...
5a88126b53bbd47a4c8899b50bdbf0d913183bd5
norm/test/test_porcelain.py
norm/test/test_porcelain.py
from twisted.trial.unittest import TestCase from twisted.internet import defer import os from norm.porcelain import makePool postgres_url = os.environ.get('NORM_POSTGRESQL_URI', None) skip_postgres = ('You must define NORM_POSTGRESQL_URI in order to run this ' 'postgres test') if postgres_url: ...
from twisted.trial.unittest import TestCase from twisted.internet import defer import os from norm.porcelain import makePool postgres_url = os.environ.get('NORM_POSTGRESQL_URI', None) skip_postgres = ('You must define NORM_POSTGRESQL_URI in order to run this ' 'postgres test') if postgres_url: ...
Fix postgres porcelain test and add sqlite one
Fix postgres porcelain test and add sqlite one
Python
mit
iffy/norm,iffy/norm
from twisted.trial.unittest import TestCase from twisted.internet import defer import os from norm.porcelain import makePool postgres_url = os.environ.get('NORM_POSTGRESQL_URI', None) skip_postgres = ('You must define NORM_POSTGRESQL_URI in order to run this ' 'postgres test') if postgres_url: ...
from twisted.trial.unittest import TestCase from twisted.internet import defer import os from norm.porcelain import makePool postgres_url = os.environ.get('NORM_POSTGRESQL_URI', None) skip_postgres = ('You must define NORM_POSTGRESQL_URI in order to run this ' 'postgres test') if postgres_url: ...
<commit_before>from twisted.trial.unittest import TestCase from twisted.internet import defer import os from norm.porcelain import makePool postgres_url = os.environ.get('NORM_POSTGRESQL_URI', None) skip_postgres = ('You must define NORM_POSTGRESQL_URI in order to run this ' 'postgres test') if po...
from twisted.trial.unittest import TestCase from twisted.internet import defer import os from norm.porcelain import makePool postgres_url = os.environ.get('NORM_POSTGRESQL_URI', None) skip_postgres = ('You must define NORM_POSTGRESQL_URI in order to run this ' 'postgres test') if postgres_url: ...
from twisted.trial.unittest import TestCase from twisted.internet import defer import os from norm.porcelain import makePool postgres_url = os.environ.get('NORM_POSTGRESQL_URI', None) skip_postgres = ('You must define NORM_POSTGRESQL_URI in order to run this ' 'postgres test') if postgres_url: ...
<commit_before>from twisted.trial.unittest import TestCase from twisted.internet import defer import os from norm.porcelain import makePool postgres_url = os.environ.get('NORM_POSTGRESQL_URI', None) skip_postgres = ('You must define NORM_POSTGRESQL_URI in order to run this ' 'postgres test') if po...
7d7043560f26c31346472b6452e8b191729c54a3
offsite_storage/settings.py
offsite_storage/settings.py
from django.conf import settings AWS_ACCESS_KEY_ID = getattr(settings, 'AWS_ACCESS_KEY_ID') AWS_SECRET_ACCESS_KEY = getattr(settings, 'AWS_SECRET_ACCESS_KEY') AWS_STATIC_BUCKET_NAME = getattr(settings, 'AWS_STATIC_BUCKET_NAME') AWS_MEDIA_ACCESS_KEY_ID = getattr( settings, 'AWS_MEDIA_ACCESS_KEY_ID', AWS_ACCESS_KE...
from django.conf import settings AWS_ACCESS_KEY_ID = getattr(settings, 'AWS_ACCESS_KEY_ID') AWS_SECRET_ACCESS_KEY = getattr(settings, 'AWS_SECRET_ACCESS_KEY') AWS_STATIC_BUCKET_NAME = getattr(settings, 'AWS_STATIC_BUCKET_NAME') AWS_MEDIA_ACCESS_KEY_ID = getattr( settings, 'AWS_MEDIA_ACCESS_KEY_ID', AWS_ACCESS_KE...
Use custom endpoint url in AWS_HOST_URL variable
Use custom endpoint url in AWS_HOST_URL variable
Python
bsd-3-clause
mirumee/django-offsite-storage
from django.conf import settings AWS_ACCESS_KEY_ID = getattr(settings, 'AWS_ACCESS_KEY_ID') AWS_SECRET_ACCESS_KEY = getattr(settings, 'AWS_SECRET_ACCESS_KEY') AWS_STATIC_BUCKET_NAME = getattr(settings, 'AWS_STATIC_BUCKET_NAME') AWS_MEDIA_ACCESS_KEY_ID = getattr( settings, 'AWS_MEDIA_ACCESS_KEY_ID', AWS_ACCESS_KE...
from django.conf import settings AWS_ACCESS_KEY_ID = getattr(settings, 'AWS_ACCESS_KEY_ID') AWS_SECRET_ACCESS_KEY = getattr(settings, 'AWS_SECRET_ACCESS_KEY') AWS_STATIC_BUCKET_NAME = getattr(settings, 'AWS_STATIC_BUCKET_NAME') AWS_MEDIA_ACCESS_KEY_ID = getattr( settings, 'AWS_MEDIA_ACCESS_KEY_ID', AWS_ACCESS_KE...
<commit_before>from django.conf import settings AWS_ACCESS_KEY_ID = getattr(settings, 'AWS_ACCESS_KEY_ID') AWS_SECRET_ACCESS_KEY = getattr(settings, 'AWS_SECRET_ACCESS_KEY') AWS_STATIC_BUCKET_NAME = getattr(settings, 'AWS_STATIC_BUCKET_NAME') AWS_MEDIA_ACCESS_KEY_ID = getattr( settings, 'AWS_MEDIA_ACCESS_KEY_ID'...
from django.conf import settings AWS_ACCESS_KEY_ID = getattr(settings, 'AWS_ACCESS_KEY_ID') AWS_SECRET_ACCESS_KEY = getattr(settings, 'AWS_SECRET_ACCESS_KEY') AWS_STATIC_BUCKET_NAME = getattr(settings, 'AWS_STATIC_BUCKET_NAME') AWS_MEDIA_ACCESS_KEY_ID = getattr( settings, 'AWS_MEDIA_ACCESS_KEY_ID', AWS_ACCESS_KE...
from django.conf import settings AWS_ACCESS_KEY_ID = getattr(settings, 'AWS_ACCESS_KEY_ID') AWS_SECRET_ACCESS_KEY = getattr(settings, 'AWS_SECRET_ACCESS_KEY') AWS_STATIC_BUCKET_NAME = getattr(settings, 'AWS_STATIC_BUCKET_NAME') AWS_MEDIA_ACCESS_KEY_ID = getattr( settings, 'AWS_MEDIA_ACCESS_KEY_ID', AWS_ACCESS_KE...
<commit_before>from django.conf import settings AWS_ACCESS_KEY_ID = getattr(settings, 'AWS_ACCESS_KEY_ID') AWS_SECRET_ACCESS_KEY = getattr(settings, 'AWS_SECRET_ACCESS_KEY') AWS_STATIC_BUCKET_NAME = getattr(settings, 'AWS_STATIC_BUCKET_NAME') AWS_MEDIA_ACCESS_KEY_ID = getattr( settings, 'AWS_MEDIA_ACCESS_KEY_ID'...
e45f777f74cf8dc48c48732269be4c37c8966c76
h2o-py/tests/testdir_munging/unop/pyunit_cor.py
h2o-py/tests/testdir_munging/unop/pyunit_cor.py
from builtins import range import sys sys.path.insert(1,"../../../") import h2o from tests import pyunit_utils ## # Test out the cor() functionality # If NAs in the frame, they are skipped in calculation unless na.rm = F # If any categorical columns, throw an error ## import numpy as np def cor_test(): iris...
from builtins import range import sys sys.path.insert(1,"../../../") import h2o from tests import pyunit_utils ## # Test out the cor() functionality # If NAs in the frame, they are skipped in calculation unless na.rm = F # If any categorical columns, throw an error ## import numpy as np def cor_test(): iris...
Add parenthesis to print statement
Add parenthesis to print statement
Python
apache-2.0
mathemage/h2o-3,h2oai/h2o-3,h2oai/h2o-dev,jangorecki/h2o-3,h2oai/h2o-dev,jangorecki/h2o-3,mathemage/h2o-3,h2oai/h2o-3,spennihana/h2o-3,jangorecki/h2o-3,spennihana/h2o-3,michalkurka/h2o-3,spennihana/h2o-3,spennihana/h2o-3,spennihana/h2o-3,jangorecki/h2o-3,h2oai/h2o-3,h2oai/h2o-dev,h2oai/h2o-3,michalkurka/h2o-3,michalkur...
from builtins import range import sys sys.path.insert(1,"../../../") import h2o from tests import pyunit_utils ## # Test out the cor() functionality # If NAs in the frame, they are skipped in calculation unless na.rm = F # If any categorical columns, throw an error ## import numpy as np def cor_test(): iris...
from builtins import range import sys sys.path.insert(1,"../../../") import h2o from tests import pyunit_utils ## # Test out the cor() functionality # If NAs in the frame, they are skipped in calculation unless na.rm = F # If any categorical columns, throw an error ## import numpy as np def cor_test(): iris...
<commit_before>from builtins import range import sys sys.path.insert(1,"../../../") import h2o from tests import pyunit_utils ## # Test out the cor() functionality # If NAs in the frame, they are skipped in calculation unless na.rm = F # If any categorical columns, throw an error ## import numpy as np def cor_test...
from builtins import range import sys sys.path.insert(1,"../../../") import h2o from tests import pyunit_utils ## # Test out the cor() functionality # If NAs in the frame, they are skipped in calculation unless na.rm = F # If any categorical columns, throw an error ## import numpy as np def cor_test(): iris...
from builtins import range import sys sys.path.insert(1,"../../../") import h2o from tests import pyunit_utils ## # Test out the cor() functionality # If NAs in the frame, they are skipped in calculation unless na.rm = F # If any categorical columns, throw an error ## import numpy as np def cor_test(): iris...
<commit_before>from builtins import range import sys sys.path.insert(1,"../../../") import h2o from tests import pyunit_utils ## # Test out the cor() functionality # If NAs in the frame, they are skipped in calculation unless na.rm = F # If any categorical columns, throw an error ## import numpy as np def cor_test...
1daf5825580d31e3f2825b5b5edfaa2aed8146fe
mopidy/internal/gi.py
mopidy/internal/gi.py
from __future__ import absolute_import, unicode_literals import textwrap try: import gi gi.require_version('Gst', '1.0') gi.require_version('GstPbutils', '1.0') from gi.repository import GLib, GObject, Gst, GstPbutils except ImportError: print(textwrap.dedent(""" ERROR: A GObject Python p...
from __future__ import absolute_import, unicode_literals import sys import textwrap try: import gi gi.require_version('Gst', '1.0') gi.require_version('GstPbutils', '1.0') from gi.repository import GLib, GObject, Gst, GstPbutils except ImportError: print(textwrap.dedent(""" ERROR: A GObje...
Check GStreamer version on start
gst1: Check GStreamer version on start If GStreamer is too old, it fails like this: $ mopidy ERROR: Mopidy requires GStreamer >= 1.2, but found GStreamer 1.0.0.
Python
apache-2.0
kingosticks/mopidy,jodal/mopidy,mokieyue/mopidy,tkem/mopidy,kingosticks/mopidy,tkem/mopidy,mokieyue/mopidy,adamcik/mopidy,adamcik/mopidy,jodal/mopidy,mopidy/mopidy,vrs01/mopidy,ZenithDK/mopidy,ZenithDK/mopidy,tkem/mopidy,jodal/mopidy,jcass77/mopidy,mopidy/mopidy,adamcik/mopidy,tkem/mopidy,mokieyue/mopidy,jcass77/mopidy...
from __future__ import absolute_import, unicode_literals import textwrap try: import gi gi.require_version('Gst', '1.0') gi.require_version('GstPbutils', '1.0') from gi.repository import GLib, GObject, Gst, GstPbutils except ImportError: print(textwrap.dedent(""" ERROR: A GObject Python p...
from __future__ import absolute_import, unicode_literals import sys import textwrap try: import gi gi.require_version('Gst', '1.0') gi.require_version('GstPbutils', '1.0') from gi.repository import GLib, GObject, Gst, GstPbutils except ImportError: print(textwrap.dedent(""" ERROR: A GObje...
<commit_before>from __future__ import absolute_import, unicode_literals import textwrap try: import gi gi.require_version('Gst', '1.0') gi.require_version('GstPbutils', '1.0') from gi.repository import GLib, GObject, Gst, GstPbutils except ImportError: print(textwrap.dedent(""" ERROR: A G...
from __future__ import absolute_import, unicode_literals import sys import textwrap try: import gi gi.require_version('Gst', '1.0') gi.require_version('GstPbutils', '1.0') from gi.repository import GLib, GObject, Gst, GstPbutils except ImportError: print(textwrap.dedent(""" ERROR: A GObje...
from __future__ import absolute_import, unicode_literals import textwrap try: import gi gi.require_version('Gst', '1.0') gi.require_version('GstPbutils', '1.0') from gi.repository import GLib, GObject, Gst, GstPbutils except ImportError: print(textwrap.dedent(""" ERROR: A GObject Python p...
<commit_before>from __future__ import absolute_import, unicode_literals import textwrap try: import gi gi.require_version('Gst', '1.0') gi.require_version('GstPbutils', '1.0') from gi.repository import GLib, GObject, Gst, GstPbutils except ImportError: print(textwrap.dedent(""" ERROR: A G...
b65c95ca400f91648a53553f51979f5ceb7a0d94
test/test-unrealcv.py
test/test-unrealcv.py
# TODO: Test robustness, test speed import unittest, time, sys, argparse, threading sys.path.append('./test/ipc') from common_conf import * from test_dev_server import TestDevServer from test_client import TestUE4CVClient if __name__ == '__main__': parser = argparse.ArgumentParser() parser.add_argument('--trav...
''' Run python test.py to test unrealcv ''' import unittest, time, sys, argparse, threading from common_conf import * def run_full_test(): pass def run_travis_test(): sys.path.append('./test/ipc') from test_dev_server import TestDevServer from test_client import TestUE4CVClient load = unittest.Tes...
Clean up the portal of test script.
Clean up the portal of test script.
Python
mit
unrealcv/unrealcv,qiuwch/unrealcv,qiuwch/unrealcv,qiuwch/unrealcv,qiuwch/unrealcv,unrealcv/unrealcv,qiuwch/unrealcv,unrealcv/unrealcv,qiuwch/unrealcv,unrealcv/unrealcv,unrealcv/unrealcv
# TODO: Test robustness, test speed import unittest, time, sys, argparse, threading sys.path.append('./test/ipc') from common_conf import * from test_dev_server import TestDevServer from test_client import TestUE4CVClient if __name__ == '__main__': parser = argparse.ArgumentParser() parser.add_argument('--trav...
''' Run python test.py to test unrealcv ''' import unittest, time, sys, argparse, threading from common_conf import * def run_full_test(): pass def run_travis_test(): sys.path.append('./test/ipc') from test_dev_server import TestDevServer from test_client import TestUE4CVClient load = unittest.Tes...
<commit_before># TODO: Test robustness, test speed import unittest, time, sys, argparse, threading sys.path.append('./test/ipc') from common_conf import * from test_dev_server import TestDevServer from test_client import TestUE4CVClient if __name__ == '__main__': parser = argparse.ArgumentParser() parser.add_a...
''' Run python test.py to test unrealcv ''' import unittest, time, sys, argparse, threading from common_conf import * def run_full_test(): pass def run_travis_test(): sys.path.append('./test/ipc') from test_dev_server import TestDevServer from test_client import TestUE4CVClient load = unittest.Tes...
# TODO: Test robustness, test speed import unittest, time, sys, argparse, threading sys.path.append('./test/ipc') from common_conf import * from test_dev_server import TestDevServer from test_client import TestUE4CVClient if __name__ == '__main__': parser = argparse.ArgumentParser() parser.add_argument('--trav...
<commit_before># TODO: Test robustness, test speed import unittest, time, sys, argparse, threading sys.path.append('./test/ipc') from common_conf import * from test_dev_server import TestDevServer from test_client import TestUE4CVClient if __name__ == '__main__': parser = argparse.ArgumentParser() parser.add_a...
26250bf43e659c03576a4d7e4d986b622a18bb48
swifpy/dictionary.py
swifpy/dictionary.py
import typing as tp import builtins as py from .optional import Optional, optional K = tp.TypeVar('K') V = tp.TypeVar('V') class Dictionary(tp.Generic[K, V], tp.Iterable[tp.Tuple[K, V]]): def __init__(self, entries: tp.Dict[K, V]) -> None: self._entries: tp.Dict[K, V] = py.dict(entries) def __getite...
import typing as tp import builtins as py from .optional import Optional, optional K = tp.TypeVar('K') V = tp.TypeVar('V') class Dictionary(tp.Generic[K, V], tp.Iterable[tp.Tuple[K, V]]): def __init__(self, entries: tp.Dict[K, V]) -> None: self._entries: tp.Dict[K, V] = py.dict(entries) def __getite...
Implement `keys` and `values` of `Dictionary`
Implement `keys` and `values` of `Dictionary`
Python
mit
koher/swifpy
import typing as tp import builtins as py from .optional import Optional, optional K = tp.TypeVar('K') V = tp.TypeVar('V') class Dictionary(tp.Generic[K, V], tp.Iterable[tp.Tuple[K, V]]): def __init__(self, entries: tp.Dict[K, V]) -> None: self._entries: tp.Dict[K, V] = py.dict(entries) def __getite...
import typing as tp import builtins as py from .optional import Optional, optional K = tp.TypeVar('K') V = tp.TypeVar('V') class Dictionary(tp.Generic[K, V], tp.Iterable[tp.Tuple[K, V]]): def __init__(self, entries: tp.Dict[K, V]) -> None: self._entries: tp.Dict[K, V] = py.dict(entries) def __getite...
<commit_before>import typing as tp import builtins as py from .optional import Optional, optional K = tp.TypeVar('K') V = tp.TypeVar('V') class Dictionary(tp.Generic[K, V], tp.Iterable[tp.Tuple[K, V]]): def __init__(self, entries: tp.Dict[K, V]) -> None: self._entries: tp.Dict[K, V] = py.dict(entries) ...
import typing as tp import builtins as py from .optional import Optional, optional K = tp.TypeVar('K') V = tp.TypeVar('V') class Dictionary(tp.Generic[K, V], tp.Iterable[tp.Tuple[K, V]]): def __init__(self, entries: tp.Dict[K, V]) -> None: self._entries: tp.Dict[K, V] = py.dict(entries) def __getite...
import typing as tp import builtins as py from .optional import Optional, optional K = tp.TypeVar('K') V = tp.TypeVar('V') class Dictionary(tp.Generic[K, V], tp.Iterable[tp.Tuple[K, V]]): def __init__(self, entries: tp.Dict[K, V]) -> None: self._entries: tp.Dict[K, V] = py.dict(entries) def __getite...
<commit_before>import typing as tp import builtins as py from .optional import Optional, optional K = tp.TypeVar('K') V = tp.TypeVar('V') class Dictionary(tp.Generic[K, V], tp.Iterable[tp.Tuple[K, V]]): def __init__(self, entries: tp.Dict[K, V]) -> None: self._entries: tp.Dict[K, V] = py.dict(entries) ...
5b18bcfa03876dbfda75b14bf8239f01c1f70ec2
fftresize/fftresize.py
fftresize/fftresize.py
#!/usr/bin/env python2 '''Resize images using the FFT FFTresize resizes images using zero-padding in the frequency domain. ''' from fftinterp import interp2 import imutils from numpy import zeros as _zeros __author__ = 'Mansour Moufid' __copyright__ = 'Copyright 2013, Mansour Moufid' __license__ = 'ISC' __version...
#!/usr/bin/env python2 '''Resize images using the FFT FFTresize resizes images using zero-padding in the frequency domain. ''' from numpy import zeros as _zeros from . import fftinterp from . import imutils __author__ = 'Mansour Moufid' __copyright__ = 'Copyright 2013, Mansour Moufid' __license__ = 'ISC' __versi...
Use relative imports in the package.
Use relative imports in the package.
Python
isc
eliteraspberries/fftresize
#!/usr/bin/env python2 '''Resize images using the FFT FFTresize resizes images using zero-padding in the frequency domain. ''' from fftinterp import interp2 import imutils from numpy import zeros as _zeros __author__ = 'Mansour Moufid' __copyright__ = 'Copyright 2013, Mansour Moufid' __license__ = 'ISC' __version...
#!/usr/bin/env python2 '''Resize images using the FFT FFTresize resizes images using zero-padding in the frequency domain. ''' from numpy import zeros as _zeros from . import fftinterp from . import imutils __author__ = 'Mansour Moufid' __copyright__ = 'Copyright 2013, Mansour Moufid' __license__ = 'ISC' __versi...
<commit_before>#!/usr/bin/env python2 '''Resize images using the FFT FFTresize resizes images using zero-padding in the frequency domain. ''' from fftinterp import interp2 import imutils from numpy import zeros as _zeros __author__ = 'Mansour Moufid' __copyright__ = 'Copyright 2013, Mansour Moufid' __license__ = ...
#!/usr/bin/env python2 '''Resize images using the FFT FFTresize resizes images using zero-padding in the frequency domain. ''' from numpy import zeros as _zeros from . import fftinterp from . import imutils __author__ = 'Mansour Moufid' __copyright__ = 'Copyright 2013, Mansour Moufid' __license__ = 'ISC' __versi...
#!/usr/bin/env python2 '''Resize images using the FFT FFTresize resizes images using zero-padding in the frequency domain. ''' from fftinterp import interp2 import imutils from numpy import zeros as _zeros __author__ = 'Mansour Moufid' __copyright__ = 'Copyright 2013, Mansour Moufid' __license__ = 'ISC' __version...
<commit_before>#!/usr/bin/env python2 '''Resize images using the FFT FFTresize resizes images using zero-padding in the frequency domain. ''' from fftinterp import interp2 import imutils from numpy import zeros as _zeros __author__ = 'Mansour Moufid' __copyright__ = 'Copyright 2013, Mansour Moufid' __license__ = ...
8d0325e28a1836a8afdfc33916d36a3e259ad131
fil_finder/__init__.py
fil_finder/__init__.py
# Licensed under an MIT open source license - see LICENSE __version__ = "1.2.2" from .analysis import Analysis from .filfind_class import fil_finder_2D from .width_profiles import filament_profile
# Licensed under an MIT open source license - see LICENSE __version__ = "1.2.2" from .analysis import Analysis from .filfind_class import fil_finder_2D
Revert importing from the top
Revert importing from the top
Python
mit
e-koch/FilFinder
# Licensed under an MIT open source license - see LICENSE __version__ = "1.2.2" from .analysis import Analysis from .filfind_class import fil_finder_2D from .width_profiles import filament_profile Revert importing from the top
# Licensed under an MIT open source license - see LICENSE __version__ = "1.2.2" from .analysis import Analysis from .filfind_class import fil_finder_2D
<commit_before># Licensed under an MIT open source license - see LICENSE __version__ = "1.2.2" from .analysis import Analysis from .filfind_class import fil_finder_2D from .width_profiles import filament_profile <commit_msg>Revert importing from the top<commit_after>
# Licensed under an MIT open source license - see LICENSE __version__ = "1.2.2" from .analysis import Analysis from .filfind_class import fil_finder_2D
# Licensed under an MIT open source license - see LICENSE __version__ = "1.2.2" from .analysis import Analysis from .filfind_class import fil_finder_2D from .width_profiles import filament_profile Revert importing from the top# Licensed under an MIT open source license - see LICENSE __version__ = "1.2.2" from .anal...
<commit_before># Licensed under an MIT open source license - see LICENSE __version__ = "1.2.2" from .analysis import Analysis from .filfind_class import fil_finder_2D from .width_profiles import filament_profile <commit_msg>Revert importing from the top<commit_after># Licensed under an MIT open source license - see L...
77c245240fcccf1c7c6f3251168801de45182b8d
klaxer/__init__.py
klaxer/__init__.py
"""Entry point for all things Klaxer""" __author__ = 'Aru Sahni, Kevin Dwyer, Justin Shelton, Dylan Bernard, Will Schneider, et al' __version__ = '0.0.1' __license__ = 'MIT' APP_NAME = 'Klaxer'
"""Entry point for all things Klaxer""" __author__ = 'Aru Sahni, Kevin Dwyer, Justin Shelton, Dylan Bernard, et al' __version__ = '0.0.1' __license__ = 'MIT' APP_NAME = 'Klaxer'
Adjust author list to only include contributors.
Adjust author list to only include contributors.
Python
mit
klaxer/klaxer
"""Entry point for all things Klaxer""" __author__ = 'Aru Sahni, Kevin Dwyer, Justin Shelton, Dylan Bernard, Will Schneider, et al' __version__ = '0.0.1' __license__ = 'MIT' APP_NAME = 'Klaxer' Adjust author list to only include contributors.
"""Entry point for all things Klaxer""" __author__ = 'Aru Sahni, Kevin Dwyer, Justin Shelton, Dylan Bernard, et al' __version__ = '0.0.1' __license__ = 'MIT' APP_NAME = 'Klaxer'
<commit_before>"""Entry point for all things Klaxer""" __author__ = 'Aru Sahni, Kevin Dwyer, Justin Shelton, Dylan Bernard, Will Schneider, et al' __version__ = '0.0.1' __license__ = 'MIT' APP_NAME = 'Klaxer' <commit_msg>Adjust author list to only include contributors.<commit_after>
"""Entry point for all things Klaxer""" __author__ = 'Aru Sahni, Kevin Dwyer, Justin Shelton, Dylan Bernard, et al' __version__ = '0.0.1' __license__ = 'MIT' APP_NAME = 'Klaxer'
"""Entry point for all things Klaxer""" __author__ = 'Aru Sahni, Kevin Dwyer, Justin Shelton, Dylan Bernard, Will Schneider, et al' __version__ = '0.0.1' __license__ = 'MIT' APP_NAME = 'Klaxer' Adjust author list to only include contributors."""Entry point for all things Klaxer""" __author__ = 'Aru Sahni, Kevin Dwye...
<commit_before>"""Entry point for all things Klaxer""" __author__ = 'Aru Sahni, Kevin Dwyer, Justin Shelton, Dylan Bernard, Will Schneider, et al' __version__ = '0.0.1' __license__ = 'MIT' APP_NAME = 'Klaxer' <commit_msg>Adjust author list to only include contributors.<commit_after>"""Entry point for all things Klaxe...
feddcfd9153da81777c25571f35ee3c97e655c64
generate_migrations.py
generate_migrations.py
#!/usr/bin/env python # coding: utf-8 import sys from argparse import ArgumentParser from os.path import abspath from os.path import dirname # Modify the path so that our djoauth2 app is in it. parent_dir = dirname(abspath(__file__)) sys.path.insert(0, parent_dir) # Load Django-related settings; necessary for tests t...
#!/usr/bin/env python # coding: utf-8 import sys from argparse import ArgumentParser from os.path import abspath from os.path import dirname # Modify the path so that our djoauth2 app is in it. parent_dir = dirname(abspath(__file__)) sys.path.insert(0, parent_dir) # Load Django-related settings; necessary for tests t...
Refactor migrations after generating to ensure custom user model compatibility.
Refactor migrations after generating to ensure custom user model compatibility.
Python
mit
vden/djoauth2-ng,Locu/djoauth2,seler/djoauth2,vden/djoauth2-ng,seler/djoauth2,Locu/djoauth2
#!/usr/bin/env python # coding: utf-8 import sys from argparse import ArgumentParser from os.path import abspath from os.path import dirname # Modify the path so that our djoauth2 app is in it. parent_dir = dirname(abspath(__file__)) sys.path.insert(0, parent_dir) # Load Django-related settings; necessary for tests t...
#!/usr/bin/env python # coding: utf-8 import sys from argparse import ArgumentParser from os.path import abspath from os.path import dirname # Modify the path so that our djoauth2 app is in it. parent_dir = dirname(abspath(__file__)) sys.path.insert(0, parent_dir) # Load Django-related settings; necessary for tests t...
<commit_before>#!/usr/bin/env python # coding: utf-8 import sys from argparse import ArgumentParser from os.path import abspath from os.path import dirname # Modify the path so that our djoauth2 app is in it. parent_dir = dirname(abspath(__file__)) sys.path.insert(0, parent_dir) # Load Django-related settings; necess...
#!/usr/bin/env python # coding: utf-8 import sys from argparse import ArgumentParser from os.path import abspath from os.path import dirname # Modify the path so that our djoauth2 app is in it. parent_dir = dirname(abspath(__file__)) sys.path.insert(0, parent_dir) # Load Django-related settings; necessary for tests t...
#!/usr/bin/env python # coding: utf-8 import sys from argparse import ArgumentParser from os.path import abspath from os.path import dirname # Modify the path so that our djoauth2 app is in it. parent_dir = dirname(abspath(__file__)) sys.path.insert(0, parent_dir) # Load Django-related settings; necessary for tests t...
<commit_before>#!/usr/bin/env python # coding: utf-8 import sys from argparse import ArgumentParser from os.path import abspath from os.path import dirname # Modify the path so that our djoauth2 app is in it. parent_dir = dirname(abspath(__file__)) sys.path.insert(0, parent_dir) # Load Django-related settings; necess...
93c6e5d39b1779f0eca9b28f5111d7c402ebc1ba
geotagging/views.py
geotagging/views.py
from django.http import HttpResponseRedirect from django.shortcuts import render_to_response from django.template import RequestContext from django.contrib.contenttypes.models import ContentType from geotagging.models import Point def add_edit_point(request, content_type_id, object_id, template=Non...
from django.http import HttpResponseRedirect from django.shortcuts import render_to_response from django.template import RequestContext from django.contrib.contenttypes.models import ContentType from django.core.exceptions import ObjectDoesNotExist from geotagging.models import Point def add_edit_point(request, cont...
Fix a bug when you try to add a geo tag to an object that does not have already one
Fix a bug when you try to add a geo tag to an object that does not have already one
Python
bsd-3-clause
lincolnloop/django-geotagging,lincolnloop/django-geotagging
from django.http import HttpResponseRedirect from django.shortcuts import render_to_response from django.template import RequestContext from django.contrib.contenttypes.models import ContentType from geotagging.models import Point def add_edit_point(request, content_type_id, object_id, template=Non...
from django.http import HttpResponseRedirect from django.shortcuts import render_to_response from django.template import RequestContext from django.contrib.contenttypes.models import ContentType from django.core.exceptions import ObjectDoesNotExist from geotagging.models import Point def add_edit_point(request, cont...
<commit_before>from django.http import HttpResponseRedirect from django.shortcuts import render_to_response from django.template import RequestContext from django.contrib.contenttypes.models import ContentType from geotagging.models import Point def add_edit_point(request, content_type_id, object_id, ...
from django.http import HttpResponseRedirect from django.shortcuts import render_to_response from django.template import RequestContext from django.contrib.contenttypes.models import ContentType from django.core.exceptions import ObjectDoesNotExist from geotagging.models import Point def add_edit_point(request, cont...
from django.http import HttpResponseRedirect from django.shortcuts import render_to_response from django.template import RequestContext from django.contrib.contenttypes.models import ContentType from geotagging.models import Point def add_edit_point(request, content_type_id, object_id, template=Non...
<commit_before>from django.http import HttpResponseRedirect from django.shortcuts import render_to_response from django.template import RequestContext from django.contrib.contenttypes.models import ContentType from geotagging.models import Point def add_edit_point(request, content_type_id, object_id, ...
c485ac39ede0bfbcc6b68fd10ed35ff692124c6d
server/api/auth.py
server/api/auth.py
"""All routes regarding authentication.""" from datetime import datetime from sqlalchemy import or_ from webargs.flaskparser import use_args from server import user_bp from server.extensions import db from server.models import User from server.responses import bad_request, ok from server.validation.user import login_...
"""All routes regarding authentication.""" from datetime import datetime from sqlalchemy import or_ from webargs.flaskparser import use_args from server import user_bp from server.extensions import db from server.models import User from server.responses import bad_request, ok from server.validation.user import login_...
Send user id and token
Send user id and token
Python
mit
Nukesor/spacesurvival,Nukesor/spacesurvival,Nukesor/spacesurvival,Nukesor/spacesurvival
"""All routes regarding authentication.""" from datetime import datetime from sqlalchemy import or_ from webargs.flaskparser import use_args from server import user_bp from server.extensions import db from server.models import User from server.responses import bad_request, ok from server.validation.user import login_...
"""All routes regarding authentication.""" from datetime import datetime from sqlalchemy import or_ from webargs.flaskparser import use_args from server import user_bp from server.extensions import db from server.models import User from server.responses import bad_request, ok from server.validation.user import login_...
<commit_before>"""All routes regarding authentication.""" from datetime import datetime from sqlalchemy import or_ from webargs.flaskparser import use_args from server import user_bp from server.extensions import db from server.models import User from server.responses import bad_request, ok from server.validation.use...
"""All routes regarding authentication.""" from datetime import datetime from sqlalchemy import or_ from webargs.flaskparser import use_args from server import user_bp from server.extensions import db from server.models import User from server.responses import bad_request, ok from server.validation.user import login_...
"""All routes regarding authentication.""" from datetime import datetime from sqlalchemy import or_ from webargs.flaskparser import use_args from server import user_bp from server.extensions import db from server.models import User from server.responses import bad_request, ok from server.validation.user import login_...
<commit_before>"""All routes regarding authentication.""" from datetime import datetime from sqlalchemy import or_ from webargs.flaskparser import use_args from server import user_bp from server.extensions import db from server.models import User from server.responses import bad_request, ok from server.validation.use...
84816dda37d071e521f65449ee59c992b5e302bc
megaprojects/blog/models.py
megaprojects/blog/models.py
from django.core.urlresolvers import reverse from django.db import models from django.utils import timezone from core.models import AuthorModel, ImageModel from .managers import PostManager, ImageManager import util STATUS_CHOICES = [('d', 'Draft'), ('p', 'Published'), ('w', 'Withdrawn')] class Post(AuthorModel)...
from django.core.urlresolvers import reverse from django.db import models from django.utils import timezone from core.models import AuthorModel, ImageModel from .managers import PostManager, ImageManager import util STATUS_CHOICES = [('d', 'Draft'), ('p', 'Published'), ('w', 'Withdrawn')] class Post(AuthorModel)...
Add property for Post thumbnail
Add property for Post thumbnail
Python
apache-2.0
megaprojectske/megaprojects.co.ke,megaprojectske/megaprojects.co.ke,megaprojectske/megaprojects.co.ke
from django.core.urlresolvers import reverse from django.db import models from django.utils import timezone from core.models import AuthorModel, ImageModel from .managers import PostManager, ImageManager import util STATUS_CHOICES = [('d', 'Draft'), ('p', 'Published'), ('w', 'Withdrawn')] class Post(AuthorModel)...
from django.core.urlresolvers import reverse from django.db import models from django.utils import timezone from core.models import AuthorModel, ImageModel from .managers import PostManager, ImageManager import util STATUS_CHOICES = [('d', 'Draft'), ('p', 'Published'), ('w', 'Withdrawn')] class Post(AuthorModel)...
<commit_before>from django.core.urlresolvers import reverse from django.db import models from django.utils import timezone from core.models import AuthorModel, ImageModel from .managers import PostManager, ImageManager import util STATUS_CHOICES = [('d', 'Draft'), ('p', 'Published'), ('w', 'Withdrawn')] class Po...
from django.core.urlresolvers import reverse from django.db import models from django.utils import timezone from core.models import AuthorModel, ImageModel from .managers import PostManager, ImageManager import util STATUS_CHOICES = [('d', 'Draft'), ('p', 'Published'), ('w', 'Withdrawn')] class Post(AuthorModel)...
from django.core.urlresolvers import reverse from django.db import models from django.utils import timezone from core.models import AuthorModel, ImageModel from .managers import PostManager, ImageManager import util STATUS_CHOICES = [('d', 'Draft'), ('p', 'Published'), ('w', 'Withdrawn')] class Post(AuthorModel)...
<commit_before>from django.core.urlresolvers import reverse from django.db import models from django.utils import timezone from core.models import AuthorModel, ImageModel from .managers import PostManager, ImageManager import util STATUS_CHOICES = [('d', 'Draft'), ('p', 'Published'), ('w', 'Withdrawn')] class Po...
3350460fdb4f0360b9251f30340ed9d1b6f97839
shibboleth/urls.py
shibboleth/urls.py
from distutils.version import StrictVersion import django if StrictVersion(django.get_version()) >= StrictVersion('1.6'): from django.conf.urls import patterns, url, include else: from django.conf.urls.defaults import * from views import ShibbolethView, ShibbolethLogoutView, ShibbolethLoginView urlpatt...
from distutils.version import StrictVersion import django if StrictVersion(django.get_version()) < StrictVersion('1.4'): from django.conf.urls.defaults import * else: from django.conf.urls import patterns, url from views import ShibbolethView, ShibbolethLogoutView, ShibbolethLoginView urlpatterns = p...
Change version check. Remove include import.
Change version check. Remove include import.
Python
mit
trevoriancox/django-shibboleth-remoteuser,CloudComputingCourse/django-shibboleth-remoteuser,KonstantinSchubert/django-shibboleth-adapter,ties/django-shibboleth-remoteuser,denisvlr/django-shibboleth-remoteuser,ties/django-shibboleth-remoteuser,uchicago-library/django-shibboleth-remoteuser,trevoriancox/django-shibboleth-...
from distutils.version import StrictVersion import django if StrictVersion(django.get_version()) >= StrictVersion('1.6'): from django.conf.urls import patterns, url, include else: from django.conf.urls.defaults import * from views import ShibbolethView, ShibbolethLogoutView, ShibbolethLoginView urlpatt...
from distutils.version import StrictVersion import django if StrictVersion(django.get_version()) < StrictVersion('1.4'): from django.conf.urls.defaults import * else: from django.conf.urls import patterns, url from views import ShibbolethView, ShibbolethLogoutView, ShibbolethLoginView urlpatterns = p...
<commit_before>from distutils.version import StrictVersion import django if StrictVersion(django.get_version()) >= StrictVersion('1.6'): from django.conf.urls import patterns, url, include else: from django.conf.urls.defaults import * from views import ShibbolethView, ShibbolethLogoutView, ShibbolethLogin...
from distutils.version import StrictVersion import django if StrictVersion(django.get_version()) < StrictVersion('1.4'): from django.conf.urls.defaults import * else: from django.conf.urls import patterns, url from views import ShibbolethView, ShibbolethLogoutView, ShibbolethLoginView urlpatterns = p...
from distutils.version import StrictVersion import django if StrictVersion(django.get_version()) >= StrictVersion('1.6'): from django.conf.urls import patterns, url, include else: from django.conf.urls.defaults import * from views import ShibbolethView, ShibbolethLogoutView, ShibbolethLoginView urlpatt...
<commit_before>from distutils.version import StrictVersion import django if StrictVersion(django.get_version()) >= StrictVersion('1.6'): from django.conf.urls import patterns, url, include else: from django.conf.urls.defaults import * from views import ShibbolethView, ShibbolethLogoutView, ShibbolethLogin...
baf3ef0ddcb7b59973750443f4c0a3732dd0f12a
spacy/cli/__init__.py
spacy/cli/__init__.py
from .download import download from .info import info from .link import link from .package import package from .train import train, train_config from .model import model from .convert import convert
from .download import download from .info import info from .link import link from .package import package from .train import train from .model import model from .convert import convert
Remove import of removed train_config script
Remove import of removed train_config script
Python
mit
spacy-io/spaCy,explosion/spaCy,aikramer2/spaCy,explosion/spaCy,recognai/spaCy,explosion/spaCy,explosion/spaCy,recognai/spaCy,aikramer2/spaCy,aikramer2/spaCy,honnibal/spaCy,spacy-io/spaCy,recognai/spaCy,honnibal/spaCy,explosion/spaCy,honnibal/spaCy,explosion/spaCy,aikramer2/spaCy,recognai/spaCy,aikramer2/spaCy,recognai/...
from .download import download from .info import info from .link import link from .package import package from .train import train, train_config from .model import model from .convert import convert Remove import of removed train_config script
from .download import download from .info import info from .link import link from .package import package from .train import train from .model import model from .convert import convert
<commit_before>from .download import download from .info import info from .link import link from .package import package from .train import train, train_config from .model import model from .convert import convert <commit_msg>Remove import of removed train_config script<commit_after>
from .download import download from .info import info from .link import link from .package import package from .train import train from .model import model from .convert import convert
from .download import download from .info import info from .link import link from .package import package from .train import train, train_config from .model import model from .convert import convert Remove import of removed train_config scriptfrom .download import download from .info import info from .link import link ...
<commit_before>from .download import download from .info import info from .link import link from .package import package from .train import train, train_config from .model import model from .convert import convert <commit_msg>Remove import of removed train_config script<commit_after>from .download import download from ...
cf77d5b49416c33b05955a66450adda289a342d0
main.py
main.py
from createCollection import createCollection from ObjectFactories.ItemFactory import ItemFactory from DataObjects.Collection import Collection import datetime, json, os.path, argparse CONST_COLLECTIONS_NAME = 'collections' def generateArgumentsFromParser(): parser = parser = argparse.ArgumentParser(description="...
from createCollection import createCollection from ObjectFactories.ItemFactory import ItemFactory from DataObjects.Collection import Collection import datetime, json, os.path, argparse CONST_COLLECTIONS_NAME = 'collections' def generateArgumentsFromParser(): parser = parser = argparse.ArgumentParser(description="...
Implement dynamic username and collection type
Implement dynamic username and collection type
Python
apache-2.0
AmosGarner/PyInventory
from createCollection import createCollection from ObjectFactories.ItemFactory import ItemFactory from DataObjects.Collection import Collection import datetime, json, os.path, argparse CONST_COLLECTIONS_NAME = 'collections' def generateArgumentsFromParser(): parser = parser = argparse.ArgumentParser(description="...
from createCollection import createCollection from ObjectFactories.ItemFactory import ItemFactory from DataObjects.Collection import Collection import datetime, json, os.path, argparse CONST_COLLECTIONS_NAME = 'collections' def generateArgumentsFromParser(): parser = parser = argparse.ArgumentParser(description="...
<commit_before>from createCollection import createCollection from ObjectFactories.ItemFactory import ItemFactory from DataObjects.Collection import Collection import datetime, json, os.path, argparse CONST_COLLECTIONS_NAME = 'collections' def generateArgumentsFromParser(): parser = parser = argparse.ArgumentParse...
from createCollection import createCollection from ObjectFactories.ItemFactory import ItemFactory from DataObjects.Collection import Collection import datetime, json, os.path, argparse CONST_COLLECTIONS_NAME = 'collections' def generateArgumentsFromParser(): parser = parser = argparse.ArgumentParser(description="...
from createCollection import createCollection from ObjectFactories.ItemFactory import ItemFactory from DataObjects.Collection import Collection import datetime, json, os.path, argparse CONST_COLLECTIONS_NAME = 'collections' def generateArgumentsFromParser(): parser = parser = argparse.ArgumentParser(description="...
<commit_before>from createCollection import createCollection from ObjectFactories.ItemFactory import ItemFactory from DataObjects.Collection import Collection import datetime, json, os.path, argparse CONST_COLLECTIONS_NAME = 'collections' def generateArgumentsFromParser(): parser = parser = argparse.ArgumentParse...
6eaa58149bae1c5462fc79255656321145a4b45f
hashbrown/models.py
hashbrown/models.py
from django.db import models from .compat import User class Switch(models.Model): label = models.CharField(max_length=200) description = models.TextField( help_text='Short description of what this switch is doing', blank=True) globally_active = models.BooleanField(default=False) users = mod...
from django.db import models from .compat import User class Switch(models.Model): label = models.CharField(max_length=200) description = models.TextField( help_text='Short description of what this switch is doing', blank=True) globally_active = models.BooleanField(default=False) users = mod...
Allow no selected users when editing a switch.
Allow no selected users when editing a switch.
Python
bsd-2-clause
potatolondon/django-hashbrown
from django.db import models from .compat import User class Switch(models.Model): label = models.CharField(max_length=200) description = models.TextField( help_text='Short description of what this switch is doing', blank=True) globally_active = models.BooleanField(default=False) users = mod...
from django.db import models from .compat import User class Switch(models.Model): label = models.CharField(max_length=200) description = models.TextField( help_text='Short description of what this switch is doing', blank=True) globally_active = models.BooleanField(default=False) users = mod...
<commit_before>from django.db import models from .compat import User class Switch(models.Model): label = models.CharField(max_length=200) description = models.TextField( help_text='Short description of what this switch is doing', blank=True) globally_active = models.BooleanField(default=False) ...
from django.db import models from .compat import User class Switch(models.Model): label = models.CharField(max_length=200) description = models.TextField( help_text='Short description of what this switch is doing', blank=True) globally_active = models.BooleanField(default=False) users = mod...
from django.db import models from .compat import User class Switch(models.Model): label = models.CharField(max_length=200) description = models.TextField( help_text='Short description of what this switch is doing', blank=True) globally_active = models.BooleanField(default=False) users = mod...
<commit_before>from django.db import models from .compat import User class Switch(models.Model): label = models.CharField(max_length=200) description = models.TextField( help_text='Short description of what this switch is doing', blank=True) globally_active = models.BooleanField(default=False) ...
f4eac1d029b79c5dc5a6a07e696f9ea4c341342f
gittip/models/user.py
gittip/models/user.py
import uuid from gittip.orm import db from gittip.models.participant import Participant class User(Participant): """Represent a website user. Every current website user is also a participant, though if the user is anonymous then the methods from Participant will fail with NoParticipantId. """ @...
import uuid from gittip.orm import db from gittip.models.participant import Participant class User(Participant): """Represent a website user. Every current website user is also a participant, though if the user is anonymous then the methods from gittip.Participant will fail with NoParticipantId. Th...
Clarify comment re: Participant class
Clarify comment re: Participant class This refers to the old participant class, which is going away.
Python
cc0-1.0
bountysource/www.gittip.com,mccolgst/www.gittip.com,eXcomm/gratipay.com,gratipay/gratipay.com,eXcomm/gratipay.com,studio666/gratipay.com,bountysource/www.gittip.com,mccolgst/www.gittip.com,mccolgst/www.gittip.com,bountysource/www.gittip.com,mccolgst/www.gittip.com,gratipay/gratipay.com,eXcomm/gratipay.com,gratipay/grat...
import uuid from gittip.orm import db from gittip.models.participant import Participant class User(Participant): """Represent a website user. Every current website user is also a participant, though if the user is anonymous then the methods from Participant will fail with NoParticipantId. """ @...
import uuid from gittip.orm import db from gittip.models.participant import Participant class User(Participant): """Represent a website user. Every current website user is also a participant, though if the user is anonymous then the methods from gittip.Participant will fail with NoParticipantId. Th...
<commit_before>import uuid from gittip.orm import db from gittip.models.participant import Participant class User(Participant): """Represent a website user. Every current website user is also a participant, though if the user is anonymous then the methods from Participant will fail with NoParticipantId....
import uuid from gittip.orm import db from gittip.models.participant import Participant class User(Participant): """Represent a website user. Every current website user is also a participant, though if the user is anonymous then the methods from gittip.Participant will fail with NoParticipantId. Th...
import uuid from gittip.orm import db from gittip.models.participant import Participant class User(Participant): """Represent a website user. Every current website user is also a participant, though if the user is anonymous then the methods from Participant will fail with NoParticipantId. """ @...
<commit_before>import uuid from gittip.orm import db from gittip.models.participant import Participant class User(Participant): """Represent a website user. Every current website user is also a participant, though if the user is anonymous then the methods from Participant will fail with NoParticipantId....
ae9b50b72d69a06c47cff0bc78d58346399b65d3
hdbscan/__init__.py
hdbscan/__init__.py
from .hdbscan_ import HDBSCAN, hdbscan from .robust_single_linkage_ import RobustSingleLinkage, robust_single_linkage
from .hdbscan_ import HDBSCAN, hdbscan from .robust_single_linkage_ import RobustSingleLinkage, robust_single_linkage from .prediction import approximate_predict, membership_vector, all_points_membership_vectors
Add prediction functions to imports in init
Add prediction functions to imports in init
Python
bsd-3-clause
scikit-learn-contrib/hdbscan,lmcinnes/hdbscan,lmcinnes/hdbscan,scikit-learn-contrib/hdbscan
from .hdbscan_ import HDBSCAN, hdbscan from .robust_single_linkage_ import RobustSingleLinkage, robust_single_linkage Add prediction functions to imports in init
from .hdbscan_ import HDBSCAN, hdbscan from .robust_single_linkage_ import RobustSingleLinkage, robust_single_linkage from .prediction import approximate_predict, membership_vector, all_points_membership_vectors
<commit_before>from .hdbscan_ import HDBSCAN, hdbscan from .robust_single_linkage_ import RobustSingleLinkage, robust_single_linkage <commit_msg>Add prediction functions to imports in init<commit_after>
from .hdbscan_ import HDBSCAN, hdbscan from .robust_single_linkage_ import RobustSingleLinkage, robust_single_linkage from .prediction import approximate_predict, membership_vector, all_points_membership_vectors
from .hdbscan_ import HDBSCAN, hdbscan from .robust_single_linkage_ import RobustSingleLinkage, robust_single_linkage Add prediction functions to imports in initfrom .hdbscan_ import HDBSCAN, hdbscan from .robust_single_linkage_ import RobustSingleLinkage, robust_single_linkage from .prediction import approximate_predi...
<commit_before>from .hdbscan_ import HDBSCAN, hdbscan from .robust_single_linkage_ import RobustSingleLinkage, robust_single_linkage <commit_msg>Add prediction functions to imports in init<commit_after>from .hdbscan_ import HDBSCAN, hdbscan from .robust_single_linkage_ import RobustSingleLinkage, robust_single_linkage ...
f93888778e1710136d3ba5cc5365711a1c658ff6
data/pipeline/run/30_exoplanets/exoread.py
data/pipeline/run/30_exoplanets/exoread.py
#!/usr/bin/env python import json import sys import csv from pymongo import MongoClient if len(sys.argv) < 2: print 'usage: python read.py filepath' sys.exit(1) reader = csv.DictReader(open(sys.argv[1]), delimiter=',', quotechar='"') conn = MongoClient() db = conn.asterank coll = db.exo coll.drop() coll.ensure_i...
#!/usr/bin/env python import json import sys import csv from pymongo import MongoClient if len(sys.argv) < 2: print 'usage: python read.py filepath' sys.exit(1) reader = csv.DictReader(open(sys.argv[1]), delimiter=',', quotechar='"') conn = MongoClient() db = conn.asterank coll = db.exo coll.drop() coll.ensure_i...
Clean things up a little
Clean things up a little
Python
mit
typpo/asterank,typpo/asterank,typpo/asterank,typpo/asterank
#!/usr/bin/env python import json import sys import csv from pymongo import MongoClient if len(sys.argv) < 2: print 'usage: python read.py filepath' sys.exit(1) reader = csv.DictReader(open(sys.argv[1]), delimiter=',', quotechar='"') conn = MongoClient() db = conn.asterank coll = db.exo coll.drop() coll.ensure_i...
#!/usr/bin/env python import json import sys import csv from pymongo import MongoClient if len(sys.argv) < 2: print 'usage: python read.py filepath' sys.exit(1) reader = csv.DictReader(open(sys.argv[1]), delimiter=',', quotechar='"') conn = MongoClient() db = conn.asterank coll = db.exo coll.drop() coll.ensure_i...
<commit_before>#!/usr/bin/env python import json import sys import csv from pymongo import MongoClient if len(sys.argv) < 2: print 'usage: python read.py filepath' sys.exit(1) reader = csv.DictReader(open(sys.argv[1]), delimiter=',', quotechar='"') conn = MongoClient() db = conn.asterank coll = db.exo coll.drop(...
#!/usr/bin/env python import json import sys import csv from pymongo import MongoClient if len(sys.argv) < 2: print 'usage: python read.py filepath' sys.exit(1) reader = csv.DictReader(open(sys.argv[1]), delimiter=',', quotechar='"') conn = MongoClient() db = conn.asterank coll = db.exo coll.drop() coll.ensure_i...
#!/usr/bin/env python import json import sys import csv from pymongo import MongoClient if len(sys.argv) < 2: print 'usage: python read.py filepath' sys.exit(1) reader = csv.DictReader(open(sys.argv[1]), delimiter=',', quotechar='"') conn = MongoClient() db = conn.asterank coll = db.exo coll.drop() coll.ensure_i...
<commit_before>#!/usr/bin/env python import json import sys import csv from pymongo import MongoClient if len(sys.argv) < 2: print 'usage: python read.py filepath' sys.exit(1) reader = csv.DictReader(open(sys.argv[1]), delimiter=',', quotechar='"') conn = MongoClient() db = conn.asterank coll = db.exo coll.drop(...
c600d1e1ad3cef69f6028afd64e14a04c747e1c6
tests/test_install.py
tests/test_install.py
import sys import os from subprocess import check_call from pew._utils import invoke_pew as invoke from utils import skip_windows, connection_required import pytest def skip_marker(f): return skip_windows(reason='Pythonz unavailable in Windows')( pytest.mark.skipif( sys.platform == 'cygwin', ...
import sys import os from subprocess import check_call from pew._utils import invoke_pew as invoke from utils import skip_windows, connection_required import pytest def skip_marker(f): return skip_windows(reason='Pythonz unavailable in Windows')( pytest.mark.skipif( sys.platform == 'cygwin', ...
Replace version of Python to install in test_{un,}install test
Replace version of Python to install in test_{un,}install test PyPy 2.6.1's download link is not working anymore.
Python
mit
berdario/pew,berdario/pew
import sys import os from subprocess import check_call from pew._utils import invoke_pew as invoke from utils import skip_windows, connection_required import pytest def skip_marker(f): return skip_windows(reason='Pythonz unavailable in Windows')( pytest.mark.skipif( sys.platform == 'cygwin', ...
import sys import os from subprocess import check_call from pew._utils import invoke_pew as invoke from utils import skip_windows, connection_required import pytest def skip_marker(f): return skip_windows(reason='Pythonz unavailable in Windows')( pytest.mark.skipif( sys.platform == 'cygwin', ...
<commit_before>import sys import os from subprocess import check_call from pew._utils import invoke_pew as invoke from utils import skip_windows, connection_required import pytest def skip_marker(f): return skip_windows(reason='Pythonz unavailable in Windows')( pytest.mark.skipif( sys.platform ...
import sys import os from subprocess import check_call from pew._utils import invoke_pew as invoke from utils import skip_windows, connection_required import pytest def skip_marker(f): return skip_windows(reason='Pythonz unavailable in Windows')( pytest.mark.skipif( sys.platform == 'cygwin', ...
import sys import os from subprocess import check_call from pew._utils import invoke_pew as invoke from utils import skip_windows, connection_required import pytest def skip_marker(f): return skip_windows(reason='Pythonz unavailable in Windows')( pytest.mark.skipif( sys.platform == 'cygwin', ...
<commit_before>import sys import os from subprocess import check_call from pew._utils import invoke_pew as invoke from utils import skip_windows, connection_required import pytest def skip_marker(f): return skip_windows(reason='Pythonz unavailable in Windows')( pytest.mark.skipif( sys.platform ...
5038c49c1597ef6182c429dd63b34045a69de945
tests/test_version.py
tests/test_version.py
# coding=utf-8 import os, sys sys.path.insert(0, os.path.dirname(os.path.dirname(__file__))) import re version_regex = re.compile(r'^\d+\.\d+') import lasio.las_version def test_verify_default_vcs_tool(): result = lasio.las_version._get_vcs_version() if 'GITHUB_WORKFLOW' in os.environ: assert resul...
# coding=utf-8 import os, sys sys.path.insert(0, os.path.dirname(os.path.dirname(__file__))) import re version_regex = re.compile(r'^\d+\.\d+') import lasio.las_version def test_non_existent_vcs_tool(): version_cmd = ["gt", "describe", "--tags", "--match", "v*"] result = lasio.las_version._get_vcs_version(v...
Add check for pushed tag version to version tests
Add check for pushed tag version to version tests When getting Lasio's version in GITHUB_WORK flow environment, test for both a '--no-tag' empty string version and a pushed release tag string version.
Python
mit
kinverarity1/lasio,kwinkunks/lasio,kinverarity1/las-reader
# coding=utf-8 import os, sys sys.path.insert(0, os.path.dirname(os.path.dirname(__file__))) import re version_regex = re.compile(r'^\d+\.\d+') import lasio.las_version def test_verify_default_vcs_tool(): result = lasio.las_version._get_vcs_version() if 'GITHUB_WORKFLOW' in os.environ: assert resul...
# coding=utf-8 import os, sys sys.path.insert(0, os.path.dirname(os.path.dirname(__file__))) import re version_regex = re.compile(r'^\d+\.\d+') import lasio.las_version def test_non_existent_vcs_tool(): version_cmd = ["gt", "describe", "--tags", "--match", "v*"] result = lasio.las_version._get_vcs_version(v...
<commit_before># coding=utf-8 import os, sys sys.path.insert(0, os.path.dirname(os.path.dirname(__file__))) import re version_regex = re.compile(r'^\d+\.\d+') import lasio.las_version def test_verify_default_vcs_tool(): result = lasio.las_version._get_vcs_version() if 'GITHUB_WORKFLOW' in os.environ: ...
# coding=utf-8 import os, sys sys.path.insert(0, os.path.dirname(os.path.dirname(__file__))) import re version_regex = re.compile(r'^\d+\.\d+') import lasio.las_version def test_non_existent_vcs_tool(): version_cmd = ["gt", "describe", "--tags", "--match", "v*"] result = lasio.las_version._get_vcs_version(v...
# coding=utf-8 import os, sys sys.path.insert(0, os.path.dirname(os.path.dirname(__file__))) import re version_regex = re.compile(r'^\d+\.\d+') import lasio.las_version def test_verify_default_vcs_tool(): result = lasio.las_version._get_vcs_version() if 'GITHUB_WORKFLOW' in os.environ: assert resul...
<commit_before># coding=utf-8 import os, sys sys.path.insert(0, os.path.dirname(os.path.dirname(__file__))) import re version_regex = re.compile(r'^\d+\.\d+') import lasio.las_version def test_verify_default_vcs_tool(): result = lasio.las_version._get_vcs_version() if 'GITHUB_WORKFLOW' in os.environ: ...
e5351bba6cdf7b76da895afda80c18309c7f90eb
tests/test_config.py
tests/test_config.py
from yacron import config def test_mergedicts(): assert dict(config.mergedicts({"a": 1}, {"b": 2})) == {"a": 1, "b": 2} def test_mergedicts_nested(): assert dict(config.mergedicts( {"a": {'x': 1, 'y': 2, 'z': 3}}, {'a': {'y': 10}, "b": 2})) == \ {"a": {'x': 1, 'y': 10, 'z': 3}, "b": 2} def test_merg...
from yacron import config def test_mergedicts(): assert dict(config.mergedicts({"a": 1}, {"b": 2})) == {"a": 1, "b": 2} def test_mergedicts_nested(): assert (dict(config.mergedicts( {"a": {'x': 1, 'y': 2, 'z': 3}}, {'a': {'y': 10}, "b": 2} )) == {"a": {'x': 1, 'y': 10, 'z': 3}, "b": 2}) ...
Replace tabs with spaces, use parens to get rid of backslashes
Replace tabs with spaces, use parens to get rid of backslashes
Python
mit
gjcarneiro/yacron
from yacron import config def test_mergedicts(): assert dict(config.mergedicts({"a": 1}, {"b": 2})) == {"a": 1, "b": 2} def test_mergedicts_nested(): assert dict(config.mergedicts( {"a": {'x': 1, 'y': 2, 'z': 3}}, {'a': {'y': 10}, "b": 2})) == \ {"a": {'x': 1, 'y': 10, 'z': 3}, "b": 2} def test_merg...
from yacron import config def test_mergedicts(): assert dict(config.mergedicts({"a": 1}, {"b": 2})) == {"a": 1, "b": 2} def test_mergedicts_nested(): assert (dict(config.mergedicts( {"a": {'x': 1, 'y': 2, 'z': 3}}, {'a': {'y': 10}, "b": 2} )) == {"a": {'x': 1, 'y': 10, 'z': 3}, "b": 2}) ...
<commit_before>from yacron import config def test_mergedicts(): assert dict(config.mergedicts({"a": 1}, {"b": 2})) == {"a": 1, "b": 2} def test_mergedicts_nested(): assert dict(config.mergedicts( {"a": {'x': 1, 'y': 2, 'z': 3}}, {'a': {'y': 10}, "b": 2})) == \ {"a": {'x': 1, 'y': 10, 'z': 3}, "b": 2} ...
from yacron import config def test_mergedicts(): assert dict(config.mergedicts({"a": 1}, {"b": 2})) == {"a": 1, "b": 2} def test_mergedicts_nested(): assert (dict(config.mergedicts( {"a": {'x': 1, 'y': 2, 'z': 3}}, {'a': {'y': 10}, "b": 2} )) == {"a": {'x': 1, 'y': 10, 'z': 3}, "b": 2}) ...
from yacron import config def test_mergedicts(): assert dict(config.mergedicts({"a": 1}, {"b": 2})) == {"a": 1, "b": 2} def test_mergedicts_nested(): assert dict(config.mergedicts( {"a": {'x': 1, 'y': 2, 'z': 3}}, {'a': {'y': 10}, "b": 2})) == \ {"a": {'x': 1, 'y': 10, 'z': 3}, "b": 2} def test_merg...
<commit_before>from yacron import config def test_mergedicts(): assert dict(config.mergedicts({"a": 1}, {"b": 2})) == {"a": 1, "b": 2} def test_mergedicts_nested(): assert dict(config.mergedicts( {"a": {'x': 1, 'y': 2, 'z': 3}}, {'a': {'y': 10}, "b": 2})) == \ {"a": {'x': 1, 'y': 10, 'z': 3}, "b": 2} ...
eca2199c90fa169acef8672458df0df3e6d65fad
tests/test_device.py
tests/test_device.py
def test_test(): assert True
import pytest from xbee_helper import device, exceptions, ZigBee def test_raise_if_error_no_status(): """ Should return None without raising if there's no "status" key in frame. """ assert device.raise_if_error({}) is None def test_raise_if_error_zero(): """ Should return None without raisi...
Add tests for raise_if_error function
Add tests for raise_if_error function
Python
mit
flyte/xbee-helper
def test_test(): assert True Add tests for raise_if_error function
import pytest from xbee_helper import device, exceptions, ZigBee def test_raise_if_error_no_status(): """ Should return None without raising if there's no "status" key in frame. """ assert device.raise_if_error({}) is None def test_raise_if_error_zero(): """ Should return None without raisi...
<commit_before>def test_test(): assert True <commit_msg>Add tests for raise_if_error function<commit_after>
import pytest from xbee_helper import device, exceptions, ZigBee def test_raise_if_error_no_status(): """ Should return None without raising if there's no "status" key in frame. """ assert device.raise_if_error({}) is None def test_raise_if_error_zero(): """ Should return None without raisi...
def test_test(): assert True Add tests for raise_if_error functionimport pytest from xbee_helper import device, exceptions, ZigBee def test_raise_if_error_no_status(): """ Should return None without raising if there's no "status" key in frame. """ assert device.raise_if_error({}) is None def te...
<commit_before>def test_test(): assert True <commit_msg>Add tests for raise_if_error function<commit_after>import pytest from xbee_helper import device, exceptions, ZigBee def test_raise_if_error_no_status(): """ Should return None without raising if there's no "status" key in frame. """ assert d...
fd909f383ab8a930c8a858144e0566075821f019
tests/test_search.py
tests/test_search.py
from sharepa.search import ShareSearch from sharepa.search import basic_search import elasticsearch_dsl import types def test_basic_search(): results = basic_search.execute() assert results.hits assert results.aggregations def test_no_title_search(): my_search = ShareSearch() my_search = my_se...
from sharepa.search import ShareSearch from sharepa.search import basic_search import vcr import types import elasticsearch_dsl def test_basic_search(): results = basic_search.execute() assert results.hits assert results.aggregations def test_no_title_search(): my_search = ShareSearch() my_sea...
Add vcr to scan test
Add vcr to scan test
Python
mit
fabianvf/sharepa,erinspace/sharepa,samanehsan/sharepa,CenterForOpenScience/sharepa
from sharepa.search import ShareSearch from sharepa.search import basic_search import elasticsearch_dsl import types def test_basic_search(): results = basic_search.execute() assert results.hits assert results.aggregations def test_no_title_search(): my_search = ShareSearch() my_search = my_se...
from sharepa.search import ShareSearch from sharepa.search import basic_search import vcr import types import elasticsearch_dsl def test_basic_search(): results = basic_search.execute() assert results.hits assert results.aggregations def test_no_title_search(): my_search = ShareSearch() my_sea...
<commit_before>from sharepa.search import ShareSearch from sharepa.search import basic_search import elasticsearch_dsl import types def test_basic_search(): results = basic_search.execute() assert results.hits assert results.aggregations def test_no_title_search(): my_search = ShareSearch() my...
from sharepa.search import ShareSearch from sharepa.search import basic_search import vcr import types import elasticsearch_dsl def test_basic_search(): results = basic_search.execute() assert results.hits assert results.aggregations def test_no_title_search(): my_search = ShareSearch() my_sea...
from sharepa.search import ShareSearch from sharepa.search import basic_search import elasticsearch_dsl import types def test_basic_search(): results = basic_search.execute() assert results.hits assert results.aggregations def test_no_title_search(): my_search = ShareSearch() my_search = my_se...
<commit_before>from sharepa.search import ShareSearch from sharepa.search import basic_search import elasticsearch_dsl import types def test_basic_search(): results = basic_search.execute() assert results.hits assert results.aggregations def test_no_title_search(): my_search = ShareSearch() my...
1efb717cec51ce5d2aa67d668528cb0fcdde94e8
scuevals_api/auth/decorators.py
scuevals_api/auth/decorators.py
from functools import wraps from flask_jwt_extended import get_jwt_identity, jwt_required, current_user from werkzeug.exceptions import Unauthorized from scuevals_api.models import User def optional_arg_decorator(fn): def wrapped_decorator(*args): if len(args) == 1 and callable(args[0]): retu...
from functools import wraps from flask_jwt_extended import get_jwt_identity, jwt_required, current_user from werkzeug.exceptions import Unauthorized from scuevals_api.models import User def optional_arg_decorator(fn): def wrapped_decorator(*args): if len(args) == 1 and callable(args[0]): retu...
Allow multiple permissions for an endpoint
Allow multiple permissions for an endpoint
Python
agpl-3.0
SCUEvals/scuevals-api,SCUEvals/scuevals-api
from functools import wraps from flask_jwt_extended import get_jwt_identity, jwt_required, current_user from werkzeug.exceptions import Unauthorized from scuevals_api.models import User def optional_arg_decorator(fn): def wrapped_decorator(*args): if len(args) == 1 and callable(args[0]): retu...
from functools import wraps from flask_jwt_extended import get_jwt_identity, jwt_required, current_user from werkzeug.exceptions import Unauthorized from scuevals_api.models import User def optional_arg_decorator(fn): def wrapped_decorator(*args): if len(args) == 1 and callable(args[0]): retu...
<commit_before>from functools import wraps from flask_jwt_extended import get_jwt_identity, jwt_required, current_user from werkzeug.exceptions import Unauthorized from scuevals_api.models import User def optional_arg_decorator(fn): def wrapped_decorator(*args): if len(args) == 1 and callable(args[0]): ...
from functools import wraps from flask_jwt_extended import get_jwt_identity, jwt_required, current_user from werkzeug.exceptions import Unauthorized from scuevals_api.models import User def optional_arg_decorator(fn): def wrapped_decorator(*args): if len(args) == 1 and callable(args[0]): retu...
from functools import wraps from flask_jwt_extended import get_jwt_identity, jwt_required, current_user from werkzeug.exceptions import Unauthorized from scuevals_api.models import User def optional_arg_decorator(fn): def wrapped_decorator(*args): if len(args) == 1 and callable(args[0]): retu...
<commit_before>from functools import wraps from flask_jwt_extended import get_jwt_identity, jwt_required, current_user from werkzeug.exceptions import Unauthorized from scuevals_api.models import User def optional_arg_decorator(fn): def wrapped_decorator(*args): if len(args) == 1 and callable(args[0]): ...
4fa9cff24867d3288d4f46c669151e823e934df0
nmea.py
nmea.py
import re def gpgga_get_position(gpgga_sentence): gps = re.search("\$GPGGA,,([0-9]+\.[0-9]+),([NS]),([0-9]+\.[0-9]+),([WE]),,,,([0-9]+),M,+\*(\w+)", gpgga_sentence) position = {} position['lat'] = gps.group(1) position['lat_coord'] = gps.group(2) position['long'] = gps.group(3) position['long_coord'] = gps.group...
import re def gpgga_get_position(gpgga_sentence): sentence = gpgga_sentence.split(",") position = {} position['lat'] = sentence[2] position['lat_coord'] = sentence[3] position['lon'] = sentence[4] position['lon_coord'] = sentence[5] position['height'] = str(int(float(sentence[11]) * 3.28084)).zfill(6) return ...
Simplify how we get lat and long from GPGGA sentence.
Simplify how we get lat and long from GPGGA sentence.
Python
mit
elielsardanons/dstar_sniffer,elielsardanons/dstar_sniffer
import re def gpgga_get_position(gpgga_sentence): gps = re.search("\$GPGGA,,([0-9]+\.[0-9]+),([NS]),([0-9]+\.[0-9]+),([WE]),,,,([0-9]+),M,+\*(\w+)", gpgga_sentence) position = {} position['lat'] = gps.group(1) position['lat_coord'] = gps.group(2) position['long'] = gps.group(3) position['long_coord'] = gps.group...
import re def gpgga_get_position(gpgga_sentence): sentence = gpgga_sentence.split(",") position = {} position['lat'] = sentence[2] position['lat_coord'] = sentence[3] position['lon'] = sentence[4] position['lon_coord'] = sentence[5] position['height'] = str(int(float(sentence[11]) * 3.28084)).zfill(6) return ...
<commit_before>import re def gpgga_get_position(gpgga_sentence): gps = re.search("\$GPGGA,,([0-9]+\.[0-9]+),([NS]),([0-9]+\.[0-9]+),([WE]),,,,([0-9]+),M,+\*(\w+)", gpgga_sentence) position = {} position['lat'] = gps.group(1) position['lat_coord'] = gps.group(2) position['long'] = gps.group(3) position['long_coor...
import re def gpgga_get_position(gpgga_sentence): sentence = gpgga_sentence.split(",") position = {} position['lat'] = sentence[2] position['lat_coord'] = sentence[3] position['lon'] = sentence[4] position['lon_coord'] = sentence[5] position['height'] = str(int(float(sentence[11]) * 3.28084)).zfill(6) return ...
import re def gpgga_get_position(gpgga_sentence): gps = re.search("\$GPGGA,,([0-9]+\.[0-9]+),([NS]),([0-9]+\.[0-9]+),([WE]),,,,([0-9]+),M,+\*(\w+)", gpgga_sentence) position = {} position['lat'] = gps.group(1) position['lat_coord'] = gps.group(2) position['long'] = gps.group(3) position['long_coord'] = gps.group...
<commit_before>import re def gpgga_get_position(gpgga_sentence): gps = re.search("\$GPGGA,,([0-9]+\.[0-9]+),([NS]),([0-9]+\.[0-9]+),([WE]),,,,([0-9]+),M,+\*(\w+)", gpgga_sentence) position = {} position['lat'] = gps.group(1) position['lat_coord'] = gps.group(2) position['long'] = gps.group(3) position['long_coor...
c0312176d9a53eeb6ffdc7e44e3a5c240072b33c
trac/upgrades/db20.py
trac/upgrades/db20.py
from trac.db import Table, Column, Index, DatabaseManager from trac.core import TracError from trac.versioncontrol.cache import CACHE_YOUNGEST_REV def do_upgrade(env, ver, cursor): """Modify the repository cache scheme (if needed) Now we use the 'youngest_rev' entry in the system table to explicit...
from trac.db import Table, Column, Index, DatabaseManager from trac.core import TracError from trac.versioncontrol.cache import CACHE_YOUNGEST_REV def do_upgrade(env, ver, cursor): """Modify the repository cache scheme (if needed) Now we use the 'youngest_rev' entry in the system table to explicitly store...
Make db upgrade step 20 more robust.
Make db upgrade step 20 more robust. git-svn-id: 0d96b0c1a6983ccc08b3732614f4d6bfcf9cbb42@5815 af82e41b-90c4-0310-8c96-b1721e28e2e2
Python
bsd-3-clause
rbaumg/trac,rbaumg/trac,rbaumg/trac,rbaumg/trac
from trac.db import Table, Column, Index, DatabaseManager from trac.core import TracError from trac.versioncontrol.cache import CACHE_YOUNGEST_REV def do_upgrade(env, ver, cursor): """Modify the repository cache scheme (if needed) Now we use the 'youngest_rev' entry in the system table to explicit...
from trac.db import Table, Column, Index, DatabaseManager from trac.core import TracError from trac.versioncontrol.cache import CACHE_YOUNGEST_REV def do_upgrade(env, ver, cursor): """Modify the repository cache scheme (if needed) Now we use the 'youngest_rev' entry in the system table to explicitly store...
<commit_before>from trac.db import Table, Column, Index, DatabaseManager from trac.core import TracError from trac.versioncontrol.cache import CACHE_YOUNGEST_REV def do_upgrade(env, ver, cursor): """Modify the repository cache scheme (if needed) Now we use the 'youngest_rev' entry in the system table ...
from trac.db import Table, Column, Index, DatabaseManager from trac.core import TracError from trac.versioncontrol.cache import CACHE_YOUNGEST_REV def do_upgrade(env, ver, cursor): """Modify the repository cache scheme (if needed) Now we use the 'youngest_rev' entry in the system table to explicitly store...
from trac.db import Table, Column, Index, DatabaseManager from trac.core import TracError from trac.versioncontrol.cache import CACHE_YOUNGEST_REV def do_upgrade(env, ver, cursor): """Modify the repository cache scheme (if needed) Now we use the 'youngest_rev' entry in the system table to explicit...
<commit_before>from trac.db import Table, Column, Index, DatabaseManager from trac.core import TracError from trac.versioncontrol.cache import CACHE_YOUNGEST_REV def do_upgrade(env, ver, cursor): """Modify the repository cache scheme (if needed) Now we use the 'youngest_rev' entry in the system table ...
72302898ba5a6fc74dcedfc6f2049f4a0c1299ac
src/conftest.py
src/conftest.py
import pytest def pytest_addoption(parser): parser.addoption("--filter-project-name", action="store", default=None, help="pass a project name to filter a test file to run only tests related to it") @pytest.fixture def filter_project_name(request): ...
import logging import pytest import buildercore.config LOG = logging.getLogger("conftest") def pytest_addoption(parser): parser.addoption("--filter-project-name", action="store", default=None, help="pass a project name to filter a test file to run onl...
Add logs for test start and end
Add logs for test start and end
Python
mit
elifesciences/builder,elifesciences/builder
import pytest def pytest_addoption(parser): parser.addoption("--filter-project-name", action="store", default=None, help="pass a project name to filter a test file to run only tests related to it") @pytest.fixture def filter_project_name(request): ...
import logging import pytest import buildercore.config LOG = logging.getLogger("conftest") def pytest_addoption(parser): parser.addoption("--filter-project-name", action="store", default=None, help="pass a project name to filter a test file to run onl...
<commit_before>import pytest def pytest_addoption(parser): parser.addoption("--filter-project-name", action="store", default=None, help="pass a project name to filter a test file to run only tests related to it") @pytest.fixture def filter_project_nam...
import logging import pytest import buildercore.config LOG = logging.getLogger("conftest") def pytest_addoption(parser): parser.addoption("--filter-project-name", action="store", default=None, help="pass a project name to filter a test file to run onl...
import pytest def pytest_addoption(parser): parser.addoption("--filter-project-name", action="store", default=None, help="pass a project name to filter a test file to run only tests related to it") @pytest.fixture def filter_project_name(request): ...
<commit_before>import pytest def pytest_addoption(parser): parser.addoption("--filter-project-name", action="store", default=None, help="pass a project name to filter a test file to run only tests related to it") @pytest.fixture def filter_project_nam...
74f0cfae2e56157c4bd3e5dde6d68cd8e40cf412
feincms/module/page/extensions/symlinks.py
feincms/module/page/extensions/symlinks.py
""" This introduces a new page type, which has no content of its own but inherits all content from the linked page. """ from django.db import models from django.utils.translation import ugettext_lazy as _ from feincms._internal import monkeypatch_property def register(cls, admin_cls): cls.add_to_class('symlinke...
""" This introduces a new page type, which has no content of its own but inherits all content from the linked page. """ from django.db import models from django.utils.translation import ugettext_lazy as _ from feincms._internal import monkeypatch_property def register(cls, admin_cls): cls.add_to_class('symlinke...
Move symlinked page field to "Other options"
Move symlinked page field to "Other options"
Python
bsd-3-clause
feincms/feincms,nickburlett/feincms,michaelkuty/feincms,feincms/feincms,nickburlett/feincms,matthiask/feincms2-content,matthiask/feincms2-content,joshuajonah/feincms,matthiask/django-content-editor,pjdelport/feincms,joshuajonah/feincms,matthiask/feincms2-content,michaelkuty/feincms,michaelkuty/feincms,nickburlett/feinc...
""" This introduces a new page type, which has no content of its own but inherits all content from the linked page. """ from django.db import models from django.utils.translation import ugettext_lazy as _ from feincms._internal import monkeypatch_property def register(cls, admin_cls): cls.add_to_class('symlinke...
""" This introduces a new page type, which has no content of its own but inherits all content from the linked page. """ from django.db import models from django.utils.translation import ugettext_lazy as _ from feincms._internal import monkeypatch_property def register(cls, admin_cls): cls.add_to_class('symlinke...
<commit_before>""" This introduces a new page type, which has no content of its own but inherits all content from the linked page. """ from django.db import models from django.utils.translation import ugettext_lazy as _ from feincms._internal import monkeypatch_property def register(cls, admin_cls): cls.add_to_...
""" This introduces a new page type, which has no content of its own but inherits all content from the linked page. """ from django.db import models from django.utils.translation import ugettext_lazy as _ from feincms._internal import monkeypatch_property def register(cls, admin_cls): cls.add_to_class('symlinke...
""" This introduces a new page type, which has no content of its own but inherits all content from the linked page. """ from django.db import models from django.utils.translation import ugettext_lazy as _ from feincms._internal import monkeypatch_property def register(cls, admin_cls): cls.add_to_class('symlinke...
<commit_before>""" This introduces a new page type, which has no content of its own but inherits all content from the linked page. """ from django.db import models from django.utils.translation import ugettext_lazy as _ from feincms._internal import monkeypatch_property def register(cls, admin_cls): cls.add_to_...
697ffec14e11e3558c8ebd33637aeebd7119a772
mltsp/__init__.py
mltsp/__init__.py
"""Machine Learning Time-Series Platform (MLTSP) See http://mltsp.io for more information. """ __version__ = '0.3dev' def install(): """Install MLTSP config file in ~/.config/mltsp/mltsp.yaml. """ import os import shutil cfg = os.path.expanduser('~/.config/mltsp/mltsp.yaml') cfg_dir = os.p...
"""Machine Learning Time-Series Platform (MLTSP) See http://mltsp.io for more information. """ __version__ = '0.3dev' def install(): """Install MLTSP config file in ~/.config/mltsp/mltsp.yaml. """ import os import shutil from distutils.dir_util import copy_tree data_src = os.path.join(os.p...
Copy data directory to ~/.local/mltsp during install; fix path to mltsp.yaml.example
Copy data directory to ~/.local/mltsp during install; fix path to mltsp.yaml.example
Python
bsd-3-clause
mltsp/mltsp,bnaul/mltsp,acrellin/mltsp,bnaul/mltsp,bnaul/mltsp,acrellin/mltsp,acrellin/mltsp,bnaul/mltsp,mltsp/mltsp,mltsp/mltsp,mltsp/mltsp,bnaul/mltsp,acrellin/mltsp,bnaul/mltsp,acrellin/mltsp,mltsp/mltsp,acrellin/mltsp,mltsp/mltsp
"""Machine Learning Time-Series Platform (MLTSP) See http://mltsp.io for more information. """ __version__ = '0.3dev' def install(): """Install MLTSP config file in ~/.config/mltsp/mltsp.yaml. """ import os import shutil cfg = os.path.expanduser('~/.config/mltsp/mltsp.yaml') cfg_dir = os.p...
"""Machine Learning Time-Series Platform (MLTSP) See http://mltsp.io for more information. """ __version__ = '0.3dev' def install(): """Install MLTSP config file in ~/.config/mltsp/mltsp.yaml. """ import os import shutil from distutils.dir_util import copy_tree data_src = os.path.join(os.p...
<commit_before>"""Machine Learning Time-Series Platform (MLTSP) See http://mltsp.io for more information. """ __version__ = '0.3dev' def install(): """Install MLTSP config file in ~/.config/mltsp/mltsp.yaml. """ import os import shutil cfg = os.path.expanduser('~/.config/mltsp/mltsp.yaml') ...
"""Machine Learning Time-Series Platform (MLTSP) See http://mltsp.io for more information. """ __version__ = '0.3dev' def install(): """Install MLTSP config file in ~/.config/mltsp/mltsp.yaml. """ import os import shutil from distutils.dir_util import copy_tree data_src = os.path.join(os.p...
"""Machine Learning Time-Series Platform (MLTSP) See http://mltsp.io for more information. """ __version__ = '0.3dev' def install(): """Install MLTSP config file in ~/.config/mltsp/mltsp.yaml. """ import os import shutil cfg = os.path.expanduser('~/.config/mltsp/mltsp.yaml') cfg_dir = os.p...
<commit_before>"""Machine Learning Time-Series Platform (MLTSP) See http://mltsp.io for more information. """ __version__ = '0.3dev' def install(): """Install MLTSP config file in ~/.config/mltsp/mltsp.yaml. """ import os import shutil cfg = os.path.expanduser('~/.config/mltsp/mltsp.yaml') ...
8a0fc8a9241a7d090f801101cd5324d15e7ae990
heutagogy/views.py
heutagogy/views.py
from heutagogy import app import heutagogy.persistence from flask import request, jsonify, Response import json import datetime import sqlite3 heutagogy.persistence.initialize() @app.route('/') def index(): return 'Hello, world!' @app.route('/api/v1/bookmarks', methods=['POST']) def bookmarks_post(): r = re...
from heutagogy import app import heutagogy.persistence from flask import request, jsonify, Response import json import datetime import sqlite3 heutagogy.persistence.initialize() @app.route('/') def index(): return 'Hello, world!' @app.route('/api/v1/bookmarks', methods=['POST']) def bookmarks_post(): r = re...
Fix reading json from client (ignore mimetype).
Fix reading json from client (ignore mimetype). • http://stackoverflow.com/a/14112400/2517622
Python
agpl-3.0
heutagogy/heutagogy-backend,heutagogy/heutagogy-backend
from heutagogy import app import heutagogy.persistence from flask import request, jsonify, Response import json import datetime import sqlite3 heutagogy.persistence.initialize() @app.route('/') def index(): return 'Hello, world!' @app.route('/api/v1/bookmarks', methods=['POST']) def bookmarks_post(): r = re...
from heutagogy import app import heutagogy.persistence from flask import request, jsonify, Response import json import datetime import sqlite3 heutagogy.persistence.initialize() @app.route('/') def index(): return 'Hello, world!' @app.route('/api/v1/bookmarks', methods=['POST']) def bookmarks_post(): r = re...
<commit_before>from heutagogy import app import heutagogy.persistence from flask import request, jsonify, Response import json import datetime import sqlite3 heutagogy.persistence.initialize() @app.route('/') def index(): return 'Hello, world!' @app.route('/api/v1/bookmarks', methods=['POST']) def bookmarks_pos...
from heutagogy import app import heutagogy.persistence from flask import request, jsonify, Response import json import datetime import sqlite3 heutagogy.persistence.initialize() @app.route('/') def index(): return 'Hello, world!' @app.route('/api/v1/bookmarks', methods=['POST']) def bookmarks_post(): r = re...
from heutagogy import app import heutagogy.persistence from flask import request, jsonify, Response import json import datetime import sqlite3 heutagogy.persistence.initialize() @app.route('/') def index(): return 'Hello, world!' @app.route('/api/v1/bookmarks', methods=['POST']) def bookmarks_post(): r = re...
<commit_before>from heutagogy import app import heutagogy.persistence from flask import request, jsonify, Response import json import datetime import sqlite3 heutagogy.persistence.initialize() @app.route('/') def index(): return 'Hello, world!' @app.route('/api/v1/bookmarks', methods=['POST']) def bookmarks_pos...
2f2f18abbcde94e61c38a519b3b8d959be2e0301
modules/roles.py
modules/roles.py
import discord rolesTriggerString = '!role' async def parse_roles_command(message, client): msg = 'Role!' await client.send_message(message.channel, msg)
import discord import shlex rolesTriggerString = '!role' async def parse_roles_command(message, client): msg = shlex.split(message.content) if len(msg) != 1 await client.send_message(message.channel, msg[1]) else: break
Modify to use shlex for getting command arguments
Modify to use shlex for getting command arguments
Python
mit
suclearnub/scubot
import discord rolesTriggerString = '!role' async def parse_roles_command(message, client): msg = 'Role!' await client.send_message(message.channel, msg) Modify to use shlex for getting command arguments
import discord import shlex rolesTriggerString = '!role' async def parse_roles_command(message, client): msg = shlex.split(message.content) if len(msg) != 1 await client.send_message(message.channel, msg[1]) else: break
<commit_before>import discord rolesTriggerString = '!role' async def parse_roles_command(message, client): msg = 'Role!' await client.send_message(message.channel, msg) <commit_msg>Modify to use shlex for getting command arguments<commit_after>
import discord import shlex rolesTriggerString = '!role' async def parse_roles_command(message, client): msg = shlex.split(message.content) if len(msg) != 1 await client.send_message(message.channel, msg[1]) else: break
import discord rolesTriggerString = '!role' async def parse_roles_command(message, client): msg = 'Role!' await client.send_message(message.channel, msg) Modify to use shlex for getting command argumentsimport discord import shlex rolesTriggerString = '!role' async def parse_roles_command(message, client): ...
<commit_before>import discord rolesTriggerString = '!role' async def parse_roles_command(message, client): msg = 'Role!' await client.send_message(message.channel, msg) <commit_msg>Modify to use shlex for getting command arguments<commit_after>import discord import shlex rolesTriggerString = '!role' async d...
62d2a3ebfb2fb5cd9784be9b5020043e15726702
impala/defaults.py
impala/defaults.py
DEBUG = False SECRET_KEY = "changeme" SQLALCHEMY_DATABASE_URI = "postgresql://impala:changeme@localhost/impala"
DEBUG = False SECRET_KEY = "changeme" SQLALCHEMY_DATABASE_URI = "postgresql://impala:changeme@localhost/impala" # smuggler:hunter2 M2M_USERS = {'smuggler': { 'access': ['librarian'], 'password_hash': '$pbkdf2-sha256$29000$g3Du3Zuz1hoDYKx1Tsm5tw$3hZ/b6WaNWaP4Q4zgIpL8nKjaTumekv5l97TkJx4ZBo'}}
Add auth example to default config
Add auth example to default config
Python
agpl-3.0
wuvt/impala,wuvt/impala
DEBUG = False SECRET_KEY = "changeme" SQLALCHEMY_DATABASE_URI = "postgresql://impala:changeme@localhost/impala" Add auth example to default config
DEBUG = False SECRET_KEY = "changeme" SQLALCHEMY_DATABASE_URI = "postgresql://impala:changeme@localhost/impala" # smuggler:hunter2 M2M_USERS = {'smuggler': { 'access': ['librarian'], 'password_hash': '$pbkdf2-sha256$29000$g3Du3Zuz1hoDYKx1Tsm5tw$3hZ/b6WaNWaP4Q4zgIpL8nKjaTumekv5l97TkJx4ZBo'}}
<commit_before>DEBUG = False SECRET_KEY = "changeme" SQLALCHEMY_DATABASE_URI = "postgresql://impala:changeme@localhost/impala" <commit_msg>Add auth example to default config<commit_after>
DEBUG = False SECRET_KEY = "changeme" SQLALCHEMY_DATABASE_URI = "postgresql://impala:changeme@localhost/impala" # smuggler:hunter2 M2M_USERS = {'smuggler': { 'access': ['librarian'], 'password_hash': '$pbkdf2-sha256$29000$g3Du3Zuz1hoDYKx1Tsm5tw$3hZ/b6WaNWaP4Q4zgIpL8nKjaTumekv5l97TkJx4ZBo'}}
DEBUG = False SECRET_KEY = "changeme" SQLALCHEMY_DATABASE_URI = "postgresql://impala:changeme@localhost/impala" Add auth example to default configDEBUG = False SECRET_KEY = "changeme" SQLALCHEMY_DATABASE_URI = "postgresql://impala:changeme@localhost/impala" # smuggler:hunter2 M2M_USERS = {'smuggler': { 'access': ['libr...
<commit_before>DEBUG = False SECRET_KEY = "changeme" SQLALCHEMY_DATABASE_URI = "postgresql://impala:changeme@localhost/impala" <commit_msg>Add auth example to default config<commit_after>DEBUG = False SECRET_KEY = "changeme" SQLALCHEMY_DATABASE_URI = "postgresql://impala:changeme@localhost/impala" # smuggler:hunter2 M2...
21cb063ec63792ddeb45a62570a8565c69f2091b
tests/functional/test_product.py
tests/functional/test_product.py
from .base import FunctionalTest from store.tests.factories import * class ProductTest(FunctionalTest): def test_product_navigation(self): # Create a product product = ProductFactory.create() # Get the product detail page self.browser.get(self.live_server_url + product.get_absol...
from .base import FunctionalTest from store.tests.factories import * class ProductTest(FunctionalTest): def setUp(self): super(ProductTest, self).setUp() # Create a product self.product = ProductFactory.create() def test_product_navigation(self): # Get the product detail pag...
Create product in setUp() method for DRY
Create product in setUp() method for DRY Create the product to be reused in the test methods in the setUp method that is run before each test method
Python
bsd-3-clause
kevgathuku/compshop,andela-kndungu/compshop,andela-kndungu/compshop,andela-kndungu/compshop,kevgathuku/compshop,andela-kndungu/compshop,kevgathuku/compshop,kevgathuku/compshop
from .base import FunctionalTest from store.tests.factories import * class ProductTest(FunctionalTest): def test_product_navigation(self): # Create a product product = ProductFactory.create() # Get the product detail page self.browser.get(self.live_server_url + product.get_absol...
from .base import FunctionalTest from store.tests.factories import * class ProductTest(FunctionalTest): def setUp(self): super(ProductTest, self).setUp() # Create a product self.product = ProductFactory.create() def test_product_navigation(self): # Get the product detail pag...
<commit_before>from .base import FunctionalTest from store.tests.factories import * class ProductTest(FunctionalTest): def test_product_navigation(self): # Create a product product = ProductFactory.create() # Get the product detail page self.browser.get(self.live_server_url + pr...
from .base import FunctionalTest from store.tests.factories import * class ProductTest(FunctionalTest): def setUp(self): super(ProductTest, self).setUp() # Create a product self.product = ProductFactory.create() def test_product_navigation(self): # Get the product detail pag...
from .base import FunctionalTest from store.tests.factories import * class ProductTest(FunctionalTest): def test_product_navigation(self): # Create a product product = ProductFactory.create() # Get the product detail page self.browser.get(self.live_server_url + product.get_absol...
<commit_before>from .base import FunctionalTest from store.tests.factories import * class ProductTest(FunctionalTest): def test_product_navigation(self): # Create a product product = ProductFactory.create() # Get the product detail page self.browser.get(self.live_server_url + pr...
f3687b849dd01e9af32e6786ed6a813448cf8a38
kaitaistructures.py
kaitaistructures.py
from struct import unpack class KaitaiStruct: def read_u1(self): return unpack('B', self._io.read(1))[0]
from struct import unpack class KaitaiStruct: def close(self): self._io.close() def read_u1(self): return unpack('B', self._io.read(1))[0]
Fix formatting as per PEP8
Fix formatting as per PEP8
Python
mit
kaitai-io/kaitai_struct_python_runtime
from struct import unpack class KaitaiStruct: def read_u1(self): return unpack('B', self._io.read(1))[0] Fix formatting as per PEP8
from struct import unpack class KaitaiStruct: def close(self): self._io.close() def read_u1(self): return unpack('B', self._io.read(1))[0]
<commit_before>from struct import unpack class KaitaiStruct: def read_u1(self): return unpack('B', self._io.read(1))[0] <commit_msg>Fix formatting as per PEP8<commit_after>
from struct import unpack class KaitaiStruct: def close(self): self._io.close() def read_u1(self): return unpack('B', self._io.read(1))[0]
from struct import unpack class KaitaiStruct: def read_u1(self): return unpack('B', self._io.read(1))[0] Fix formatting as per PEP8from struct import unpack class KaitaiStruct: def close(self): self._io.close() def read_u1(self): return unpack('B', self._io.read(1))[0]
<commit_before>from struct import unpack class KaitaiStruct: def read_u1(self): return unpack('B', self._io.read(1))[0] <commit_msg>Fix formatting as per PEP8<commit_after>from struct import unpack class KaitaiStruct: def close(self): self._io.close() def read_u1(self): return unpack('B...