commit stringlengths 40 40 | old_file stringlengths 4 150 | new_file stringlengths 4 150 | old_contents stringlengths 0 3.26k | new_contents stringlengths 1 4.43k | subject stringlengths 15 501 | message stringlengths 15 4.06k | lang stringclasses 4
values | license stringclasses 13
values | repos stringlengths 5 91.5k | diff stringlengths 0 4.35k |
|---|---|---|---|---|---|---|---|---|---|---|
886254938707035bbf404206cf62eabd29f54bb4 | setup.py | setup.py | try:
from setuptools import setup
except ImportError:
from distutils.core import setup
import toml
with open("README.rst") as readme_file:
readme_string = readme_file.read()
setup(
name="toml",
version=toml.__version__,
description="Python Library for Tom's Obvious, Minimal Language",
aut... | try:
from setuptools import setup
except ImportError:
from distutils.core import setup
import toml
with open("README.rst") as readme_file:
readme_string = readme_file.read()
setup(
name="toml",
version=toml.__version__,
description="Python Library for Tom's Obvious, Minimal Language",
aut... | Add trove classifiers for additional Python support | Add trove classifiers for additional Python support
- Include classifier for general Python 2/3 support.
- Include classifier for general PyPy support.
- Include classifier for Python 3.7 support. Testing added in
0c1bbf6be93b2f0a110a9000fb514301c4d5ab89.
| Python | mit | uiri/toml,uiri/toml | ---
+++
@@ -19,10 +19,17 @@
license="License :: OSI Approved :: MIT License",
long_description=readme_string,
classifiers=[
+ 'Programming Language :: Python',
+ 'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.6',
'Programming Language :: Pyth... |
e5e2b270d7bdf1b8225405619908389319686146 | tests/test_demos.py | tests/test_demos.py | import os
from dallinger import db
class TestBartlett1932(object):
"""Tests for the Bartlett1932 demo class"""
def _make_one(self):
from demos.bartlett1932.experiment import Bartlett1932
return Bartlett1932(self._db)
def setup(self):
self._db = db.init_db(drop_all=True)
#... | import os
import subprocess
from dallinger import db
class TestDemos(object):
"""Verify all the built-in demos."""
def test_verify_all_demos(self):
demo_paths = os.listdir("demos")
for demo_path in demo_paths:
if os.path.isdir(demo_path):
os.chdir(demo_path)
... | Test by verifying all demos | Test by verifying all demos
| Python | mit | Dallinger/Dallinger,Dallinger/Dallinger,Dallinger/Dallinger,Dallinger/Dallinger,jcpeterson/Dallinger,jcpeterson/Dallinger,Dallinger/Dallinger,jcpeterson/Dallinger,jcpeterson/Dallinger,jcpeterson/Dallinger | ---
+++
@@ -1,5 +1,19 @@
import os
+import subprocess
+
from dallinger import db
+
+
+class TestDemos(object):
+ """Verify all the built-in demos."""
+
+ def test_verify_all_demos(self):
+ demo_paths = os.listdir("demos")
+ for demo_path in demo_paths:
+ if os.path.isdir(demo_path):
+... |
64b26ba9cab7d432d3e4185a8edb12f9257ab473 | setup.py | setup.py | # -*- coding: utf-8 -*-
from distutils.core import setup
setup(
name = 'grades',
packages = ['grades'],
scripts = ['bin/grades'],
version = '0.1',
description = 'Minimalist grades management for teachers.',
author = 'Loïc Séguin-C.',
author_email = 'loicseguin@gmail.com',
url = 'https:... | # -*- coding: utf-8 -*-
from distutils.core import setup
setup(
name = 'grades',
packages = ['grades'],
scripts = ['bin/grades'],
version = '0.1',
description = 'Minimalist grades management for teachers.',
author = 'Loïc Séguin-C.',
author_email = 'loicseguin@gmail.com',
url = 'https:... | Use README.rst as long description. | Use README.rst as long description.
| Python | bsd-3-clause | loicseguin/grades | ---
+++
@@ -26,9 +26,5 @@
'Topic :: Text Processing',
'Topic :: Utilities'
],
- long_description = """For managing student grades, most teachers use
- spreadsheet tools. With these tools, it is hard to maintain grades in plain
- text files that are easily readable by humans. The go... |
0922c8d06264f02f9b8de59e3546e499c8599326 | tests/test_views.py | tests/test_views.py | import unittest
from flask import current_app, url_for, get_flashed_messages
from app import create_app, db
from app.models import *
class TestCreateAdmissionView(unittest.TestCase):
def setUp(self):
self.app = create_app('testing')
self.app_context = self.app.app_context()
self.app_contex... | import unittest
from flask import current_app, url_for, get_flashed_messages
from app import create_app, db
from app.models import *
class TestCreateAdmissionView(unittest.TestCase):
def setUp(self):
self.app = create_app('testing')
self.app_context = self.app.app_context()
self.app_contex... | Change id_lvrs_internt to string. Test if there's only one created | :bug: Change id_lvrs_internt to string. Test if there's only one created
| Python | mit | gems-uff/labsys,gems-uff/labsys,gems-uff/labsys | ---
+++
@@ -25,7 +25,7 @@
db.session.add(a)
db.session.commit()
data = {
- 'id_lvrs_intern': 1,
+ 'id_lvrs_intern': '1',
'samples-0-collection_date': '12/12/2012',
'samples-0-admission_date': '13/12/2012',
}
@@ -34,3 +34,5 @@
... |
04534c096900ab09dda4caab5a4d5d6f00a340cb | setup.py | setup.py | from setuptools import setup, find_packages
with open('README.rst') as f:
long_description = f.read()
setup(
name='ocdsmerge',
version='0.5.6',
author='Open Contracting Partnership',
author_email='data@open-contracting.org',
url='https://github.com/open-contracting/ocds-merge',
description... | from setuptools import setup, find_packages
with open('README.rst') as f:
long_description = f.read()
setup(
name='ocdsmerge',
version='0.5.6',
author='Open Contracting Partnership',
author_email='data@open-contracting.org',
url='https://github.com/open-contracting/ocds-merge',
description... | Exclude any future tests sub-packages from build. | Exclude any future tests sub-packages from build.
| Python | bsd-3-clause | open-contracting/ocds-merge | ---
+++
@@ -11,7 +11,7 @@
url='https://github.com/open-contracting/ocds-merge',
description='A library and reference implementation for merging OCDS releases',
license='BSD',
- packages=find_packages(exclude=['tests']),
+ packages=find_packages(exclude=['tests', 'tests.*']),
long_description... |
6752007377e57850f21553e1aa2b85ca64c6e769 | pesabot/client.py | pesabot/client.py | import requests
from requests.auth import HTTPBasicAuth
BASE_URL = 'https://pesabot.com/api/v1/'
class Client(object):
def __init__(self, email, password):
self.auth = HTTPBasicAuth(email, password)
def call(self, path, method='GET', payload={}):
if method == 'POST':
res = request... | import requests
from requests.auth import HTTPBasicAuth
BASE_URL = 'https://pesabot.com/api/v1/'
class Client(object):
def __init__(self, email, password):
self.auth = None
if email and password:
self.auth = HTTPBasicAuth(email, password)
def call(self, path, method='GET', payload... | Make auth optional for allow any routes to work | Make auth optional for allow any routes to work
| Python | mit | pesabot/pesabot-py | ---
+++
@@ -5,7 +5,9 @@
class Client(object):
def __init__(self, email, password):
- self.auth = HTTPBasicAuth(email, password)
+ self.auth = None
+ if email and password:
+ self.auth = HTTPBasicAuth(email, password)
def call(self, path, method='GET', payload={}):
... |
cd92e7186d8b0e1f8103b6f622c0622e7db88fb8 | thecodingloverss.py | thecodingloverss.py | import feedparser, sys, urllib2
from bs4 import BeautifulSoup as BS
from feedgen.feed import FeedGenerator
from flask import Flask
app = Flask(__name__)
@app.route('/')
def index():
d = feedparser.parse('http://thecodinglove.com/rss')
fg = FeedGenerator()
fg.title('The coding love with images.')
fg... | import feedparser, sys, urllib2
from bs4 import BeautifulSoup as BS
from feedgen.feed import FeedGenerator
from flask import Flask
app = Flask(__name__)
@app.route('/')
def index():
d = feedparser.parse('http://thecodinglove.com/rss')
fg = FeedGenerator()
fg.title('The coding love with images.')
fg... | Set published date so the posts come in order. | Set published date so the posts come in order.
| Python | mit | chrillux/thecodingloverss | ---
+++
@@ -23,12 +23,15 @@
href = entry.links[0].href
bs = BS(urllib2.urlopen(href), "lxml")
+ published = entry.published
+
image = bs.p.img.get('src')
imgsrc='<img src="%s">' % image
fe = fg.add_entry()
fe.id(href)
fe.link(href=href)
+ ... |
f71a166598ab35bc15f298226bb510d43f78c810 | bids/analysis/transformations/__init__.py | bids/analysis/transformations/__init__.py | from .compute import (sum, product, scale, orthogonalize, threshold, and_, or_,
not_, demean, convolve_HRF)
from .munge import (split, rename, assign, copy, factor, filter, select,
remove, replace, to_dense)
__all__ = [
'and_',
'assign',
'convolve_HRF',
'copy',... | from .compute import (sum, product, scale, orthogonalize, threshold, and_, or_,
not_, demean, convolve)
from .munge import (split, rename, assign, copy, factor, filter, select,
delete, replace, to_dense)
__all__ = [
'and_',
'assign',
'convolve',
'copy',
'de... | Fix imports for renamed transformations | Fix imports for renamed transformations
| Python | mit | INCF/pybids | ---
+++
@@ -1,21 +1,21 @@
from .compute import (sum, product, scale, orthogonalize, threshold, and_, or_,
- not_, demean, convolve_HRF)
+ not_, demean, convolve)
from .munge import (split, rename, assign, copy, factor, filter, select,
- remove, replace, t... |
b5bef82ea6eb4269a164eda3ba95d7212f1c76d1 | lib/cli/run_worker.py | lib/cli/run_worker.py | import sys
from rq import Queue, Connection, Worker
import cli
import worker
class RunWorkerCli(cli.BaseCli):
'''
A wrapper for RQ workers.
Wrapping RQ is the only way to generate notifications when a job fails.
'''
def _get_args(self, arg_parser):
''' Customize arguments. '''
... | import sys
from redis import Redis
from rq import Queue, Connection, Worker
import cli
import worker
class RunWorkerCli(cli.BaseCli):
'''
A wrapper for RQ workers.
Wrapping RQ is the only way to generate notifications when a job fails.
'''
def _get_args(self, arg_parser):
''' Customize ... | Use connection settings from conf file. | Use connection settings from conf file.
| Python | apache-2.0 | TeamHG-Memex/hgprofiler,TeamHG-Memex/hgprofiler,TeamHG-Memex/hgprofiler,TeamHG-Memex/hgprofiler | ---
+++
@@ -1,5 +1,5 @@
import sys
-
+from redis import Redis
from rq import Queue, Connection, Worker
import cli
@@ -29,7 +29,11 @@
Adapted from http://python-rq.org/docs/workers/.
'''
- with Connection():
+ redis_config = dict(config.items('redis'))
+ port = redis_confi... |
621fc3e10ad296c21a27160a8a1263cf69e3079f | setup.py | setup.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import uuid
from pip.req import parse_requirements
from setuptools import setup, find_packages
requirements = parse_requirements('requirements.txt', session=uuid.uuid1())
reqs = [str(ir.req) for ir in requirements]
readme = open('README.rst').read()
setup(name='nuts',
... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import uuid
from pip.req import parse_requirements
from setuptools import setup, find_packages
requirements = parse_requirements('requirements.txt', session=uuid.uuid1())
reqs = [str(ir.req) for ir in requirements]
readme = open('README.rst').read()
setup(name='nuts',
... | Fix missing testSchema in package | Fix missing testSchema in package
| Python | mit | HSRNetwork/Nuts | ---
+++
@@ -11,12 +11,13 @@
readme = open('README.rst').read()
setup(name='nuts',
- version='1.1',
+ version='1.1.1',
description='A Network Unit Test System',
author='Andreas Stalder, David Meister, Matthias Gabriel, Urs Baumann',
author_email='astalder@hsr.ch, dmeister@hsr.ch, mga... |
774f7ac425f0a16934dae12d474982c5916435b4 | setup.py | setup.py | from setuptools import setup
setup(
name='slacker',
version='0.6.1',
packages=['slacker'],
description='Slack API client',
author='Oktay Sancak',
author_email='oktaysancak@gmail.com',
url='http://github.com/os/slacker/',
install_requires=['requests >= 2.2.1'],
license='http://www.a... | from setuptools import setup
setup(
name='slacker',
version='0.6.2',
packages=['slacker'],
description='Slack API client',
author='Oktay Sancak',
author_email='oktaysancak@gmail.com',
url='http://github.com/os/slacker/',
install_requires=['requests >= 2.2.1'],
license='http://www.a... | Set version number to 0.6.2. | Set version number to 0.6.2.
| Python | apache-2.0 | techartorg/slacker,olasitarska/slacker,wkentaro/slacker,kashyap32/slacker,STANAPO/slacker,dastergon/slacker,wasabi0522/slacker,BetterWorks/slacker,hreeder/slacker,os/slacker | ---
+++
@@ -3,7 +3,7 @@
setup(
name='slacker',
- version='0.6.1',
+ version='0.6.2',
packages=['slacker'],
description='Slack API client',
author='Oktay Sancak', |
cb08d632fac453403bc8b91391b14669dbe932cc | circonus/__init__.py | circonus/__init__.py | from __future__ import absolute_import
__title__ = "circonus"
__version__ = "0.0.0"
from logging import NullHandler
import logging
from circonus.client import CirconusClient
logging.getLogger(__name__).addHandler(NullHandler())
| __title__ = "circonus"
__version__ = "0.0.0"
from logging import NullHandler
import logging
from circonus.client import CirconusClient
logging.getLogger(__name__).addHandler(NullHandler())
| Remove unnecessary absolute import statement. | Remove unnecessary absolute import statement.
| Python | mit | monetate/circonus,monetate/circonus | ---
+++
@@ -1,6 +1,3 @@
-from __future__ import absolute_import
-
-
__title__ = "circonus"
__version__ = "0.0.0"
|
3089eae072bd2e871c11251961ec35a09b83dd38 | setup.py | setup.py | #
# This file is part of Python-AD. Python-AD is free software that is made
# available under the MIT license. Consult the file "LICENSE" that is
# distributed together with this file for the exact licensing terms.
#
# Python-AD is copyright (c) 2007 by the Python-AD authors. See the file
# "AUTHORS" for a complete ove... | #
# This file is part of Python-AD. Python-AD is free software that is made
# available under the MIT license. Consult the file "LICENSE" that is
# distributed together with this file for the exact licensing terms.
#
# Python-AD is copyright (c) 2007 by the Python-AD authors. See the file
# "AUTHORS" for a complete ove... | Change email address and home page. | Change email address and home page.
| Python | mit | geertj/python-ad,theatlantic/python-active-directory,sfu-rcg/python-ad,geertj/python-ad,theatlantic/python-active-directory,sfu-rcg/python-ad | ---
+++
@@ -13,8 +13,8 @@
version = '0.9',
description = 'An AD client library for Python',
author = 'Geert Jansen',
- author_email = 'geert@boskant.nl',
- url = 'http://code.google.com/p/python-ad',
+ author_email = 'geertj@gmail.com',
+ url = 'https://github.com/geertj/python-ad',
li... |
a55957996f3e6ae1b7b98bea477e14da2070733e | setup.py | setup.py | #!/usr/bin/env python
from setuptools import setup
setup(
name='bandicoot',
author='Yves-Alexandre de Montjoye',
author_email='yvesalexandre@demontjoye.com',
version="0.4",
url="https://github.com/yvesalexandre/bandicoot",
license="MIT",
packages=[
'bandicoot',
'bandicoot.h... | #!/usr/bin/env python
from setuptools import setup
setup(
name='bandicoot',
author='Yves-Alexandre de Montjoye',
author_email='yvesalexandre@demontjoye.com',
version="0.4",
url="https://github.com/yvesalexandre/bandicoot",
license="MIT",
packages=[
'bandicoot',
'bandicoot.h... | Update PyPI classifiers and test requirements | Update PyPI classifiers and test requirements
| Python | mit | yvesalexandre/bandicoot,yvesalexandre/bandicoot,yvesalexandre/bandicoot | ---
+++
@@ -23,6 +23,10 @@
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
+ 'Programming Language :: Python :: 3',
'Topic :: Scientific/Engineering :: Information Analysis',
'Topic :: Scientific/Engi... |
d1182f48c086a1a875a6cf1b489a8aa172032141 | setup.py | setup.py | #!/usr/bin/env python
from setuptools import setup
import pypandoc
setup(
name='SVN-Ignore',
py_modules=['sr', 'src.cli', 'src.svn_ignore'],
version='1.1.1',
description='An utility that provides .svnignore functionality similar to GIT',
long_description=pypandoc.convert('README.md','rst',format=... | #!/usr/bin/env python
from setuptools import setup
def get_long_description():
try:
import pypandoc
long_description = pypandoc.convert('README.md','rst',format='markdown')
except Exception:
print('WARNING: Failed to convert README.md to rst, pypandoc was not present')
f = open... | Add a fallback for when pypandoc is not present | Add a fallback for when pypandoc is not present
Signed-off-by: Jord Nijhuis
| Python | mit | Sidesplitter/SVN-Ignore | ---
+++
@@ -1,15 +1,25 @@
#!/usr/bin/env python
from setuptools import setup
-import pypandoc
+def get_long_description():
+ try:
+ import pypandoc
+ long_description = pypandoc.convert('README.md','rst',format='markdown')
+ except Exception:
+ print('WARNING: Failed to convert README... |
05196edc526d8843119ae0e8776ff1e02660251d | setup.py | setup.py | from setuptools import setup
setup(name='solcast',
version='0.2.1a',
description='Client library for the Solcast API',
license='MIT',
url='https://github.com/cjtapper/solcast-py',
author='Chris Tapper',
author_email='cj.tapper@gmail.com',
packages=['solcast'],
install_req... | from setuptools import setup
setup(name='solcast',
version='0.2.1',
description='Client library for the Solcast API',
license='MIT',
url='https://github.com/cjtapper/solcast-py',
author='Chris Tapper',
author_email='cj.tapper@gmail.com',
packages=['solcast'],
install_requ... | Prepare version 0.2.1 for merge | Prepare version 0.2.1 for merge
| Python | mit | cjtapper/solcast-py | ---
+++
@@ -1,6 +1,6 @@
from setuptools import setup
setup(name='solcast',
- version='0.2.1a',
+ version='0.2.1',
description='Client library for the Solcast API',
license='MIT',
url='https://github.com/cjtapper/solcast-py', |
085ad8285e795019909b7fe58fe1c67b2f7bd92a | setup.py | setup.py | # encoding: utf-8
import os
from setuptools import setup, find_packages
# Utility function to read the README file.
# Used for the long_description. It's nice, because now 1) we have a top level
# README file and 2) it's easier to type in the README file than to put a raw
# string in below ...
def read(fname):
re... | # encoding: utf-8
import os
from setuptools import setup, find_packages
# Utility function to read the README file.
# Used for the long_description. It's nice, because now 1) we have a top level
# README file and 2) it's easier to type in the README file than to put a raw
# string in below ...
def read(fname):
re... | Revert "version 0.7.3 - fix DateFields" | Revert "version 0.7.3 - fix DateFields"
This reverts commit ea9568f0c30cb0bffeaeb0bd4dd809a724f535ce.
| Python | bsd-3-clause | multmeio/django-hstore-flattenfields,multmeio/django-hstore-flattenfields | ---
+++
@@ -11,7 +11,7 @@
setup(
name='django_hstore_flattenfields',
- version='0.7.3',
+ version='0.7.2',
description='Django with dynamic fields in hstore',
author=u'Iuri Diniz',
author_email='iuridiniz@gmail.com', |
4975df993b4c05cf8108a278d941852fa959cd2c | setup.py | setup.py | from setuptools import setup, find_packages
try:
from pyqt_distutils.build_ui import build_ui
cmdclass={'build_ui': build_ui}
except ImportError:
cmdclass={}
setup(
name='gauges',
version='0.1',
description='PyQt5 + Autobahn/Twisted version of Gauges Crossbar demo',
url='http://github.com/... | from setuptools import setup, find_packages
try:
from pyqt_distutils.build_ui import build_ui
cmdclass={'build_ui': build_ui}
except ImportError:
cmdclass={}
setup(
name='gauges',
version='0.1',
description='PyQt5 + Autobahn/Twisted version of Gauges Crossbar demo',
url='http://github.com/... | Change qt5reactor-fork dependency to qt5reactor. | Change qt5reactor-fork dependency to qt5reactor.
The author of qt5reactor has now changed the name.
| Python | mit | estan/gauges | ---
+++
@@ -27,7 +27,7 @@
'twisted',
'pyOpenSSL',
'service_identity',
- 'qt5reactor-fork',
+ 'qt5reactor',
],
entry_points={
'gui_scripts': [ |
75228cef16a6f2e135757475632f25ce3ef447fb | setup.py | setup.py | """
Flask-Ask
-------------
Easy Alexa Skills Kit integration for Flask
"""
from setuptools import setup
from pip.req import parse_requirements
setup(
name='Flask-Ask',
version='0.9.7',
url='https://github.com/johnwheeler/flask-ask',
license='Apache 2.0',
author='John Wheeler',
author_email='j... | """
Flask-Ask
-------------
Easy Alexa Skills Kit integration for Flask
"""
from setuptools import setup
def parse_requirements(filename):
""" load requirements from a pip requirements file """
lineiter = (line.strip() for line in open(filename))
return [line for line in lineiter if line and not line.star... | Fix issue with PIP 10 | Fix issue with PIP 10 | Python | apache-2.0 | johnwheeler/flask-ask | ---
+++
@@ -5,7 +5,11 @@
Easy Alexa Skills Kit integration for Flask
"""
from setuptools import setup
-from pip.req import parse_requirements
+
+def parse_requirements(filename):
+ """ load requirements from a pip requirements file """
+ lineiter = (line.strip() for line in open(filename))
+ return [line ... |
a39019b62a0281e7bd046fc614e42332fd3b92bd | setup.py | setup.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
from setuptools import setup, find_packages
setup(
name = 'cloudsizzle',
fullname = 'CloudSizzle',
version = '0.1',
author = '',
author_email = '',
license = 'MIT',
url = 'http://cloudsizzle.cs.hut.fi',
description = 'Social study... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
from setuptools import setup, find_packages
setup(
name = 'cloudsizzle',
fullname = 'CloudSizzle',
version = '0.1',
author = '',
author_email = '',
license = 'MIT',
url = 'http://cloudsizzle.cs.hut.fi',
description = 'Social study... | Add MiniMock to the list of unittest dependencies. | Add MiniMock to the list of unittest dependencies.
| Python | mit | jpvanhal/cloudsizzle,jpvanhal/cloudsizzle | ---
+++
@@ -22,6 +22,9 @@
packages = find_packages(),
include_package_data = True,
test_suite = 'cloudsizzle.tests.suite',
+ tests_require = [
+ 'MiniMock >= 1.2',
+ ],
dependency_links = [
'http://public.futurice.com/~ekan/eggs',
'http://ftp.edgewall.com/pub/bitten/... |
2706d3086eaff99538eacaafa58776393ab1f5d6 | setup.py | setup.py | from setuptools import setup
from storm import version
# magic
setup(
name='tornado-storm',
version=version,
description='A simple ORM for Tornado',
author='Craig Campbell',
author_email='iamcraigcampbell@gmail.com',
url='https://github.com/ccampbell/storm',
download_url='https://github.com... | from setuptools import setup, find_packages
from storm import version
# magic
setup(
name='tornado-storm',
version=version,
description='A simple ORM for Tornado',
author='Craig Campbell',
author_email='iamcraigcampbell@gmail.com',
url='https://github.com/ccampbell/storm',
download_url='htt... | Make sure installation works locally | Make sure installation works locally
| Python | mit | ccampbell/storm,liujiantong/storm | ---
+++
@@ -1,4 +1,4 @@
-from setuptools import setup
+from setuptools import setup, find_packages
from storm import version
# magic
@@ -11,7 +11,8 @@
url='https://github.com/ccampbell/storm',
download_url='https://github.com/ccampbell/storm/archive/0.1.0.zip#egg=tornado-storm-0.1.0',
license='MIT'... |
1cc218ca24574813408eb460b801fd0ecefe514b | setup.py | setup.py | from setuptools import setup, find_packages
setup(
name='django-mininews',
version='0.1',
packages=find_packages(exclude=['example_project']),
license='MIT',
description='Boilerplate for creating publishable lists of objects',
long_description=open('README.rst').read(),
install_requires=[
... | from setuptools import setup, find_packages
setup(
name='django-mininews',
version='0.1',
packages=find_packages(exclude=['example_project']),
license='MIT',
description='Boilerplate for creating publishable lists of objects',
long_description=open('README.rst').read(),
install_requires=[
... | Add version numbers to dependencies | Add version numbers to dependencies
| Python | mit | richardbarran/django-mininews,richardbarran/django-mininews,richardbarran/django-minipub,richardbarran/django-minipub,richardbarran/django-mininews | ---
+++
@@ -8,8 +8,8 @@
description='Boilerplate for creating publishable lists of objects',
long_description=open('README.rst').read(),
install_requires=[
- 'django-model-utils',
- 'factory-boy',
+ 'django-model-utils==2.0.3',
+ 'factory-boy==2.3.1',
],
url='https://github.com/... |
226ee320cf35c530a6aa7f94bd64fc71908234e3 | setup.py | setup.py | from setuptools import setup, find_packages
setup(
name="ducted",
version='1.2',
url='http://github.com/ducted/duct',
license='MIT',
description="A monitoring agent and event processor",
author='Colin Alston',
author_email='colin.alston@gmail.com',
packages=find_packages() + [
... | from setuptools import setup, find_packages
setup(
name="ducted",
version='1.2',
url='http://github.com/ducted/duct',
license='MIT',
description="A monitoring agent and event processor",
author='Colin Alston',
author_email='colin.alston@gmail.com',
packages=find_packages() + [
... | Add service identity package to quiet warnings | Add service identity package to quiet warnings
| Python | mit | ducted/duct,ducted/duct,ducted/duct,ducted/duct | ---
+++
@@ -25,6 +25,7 @@
'construct<2.6',
'pysnmp==4.2.5',
'cryptography',
+ 'service_identity'
],
classifiers=[
'Development Status :: 5 - Production/Stable', |
b1754f63327e641693a733afccd79dbf92666dec | setup.py | setup.py | from setuptools import find_packages, setup
import os
# Get version and release info, which is all stored in pulse2percept/version.py
ver_file = os.path.join('pulse2percept', 'version.py')
with open(ver_file) as f:
exec(f.read())
opts = dict(name=NAME,
maintainer=MAINTAINER,
maintainer_ema... | from setuptools import find_packages, setup
import os
# Get version and release info, which is all stored in pulse2percept/version.py
ver_file = os.path.join('pulse2percept', 'version.py')
with open(ver_file) as f:
exec(f.read())
opts = dict(name=NAME,
maintainer=MAINTAINER,
maintainer_ema... | Add install_requires for smoother pip installation | Add install_requires for smoother pip installation
See also: https://github.com/uwescience/shablona/pull/54 | Python | bsd-3-clause | mbeyeler/pulse2percept,uwescience/pulse2percept,uwescience/pulse2percept,uwescience/pulse2percept | ---
+++
@@ -20,6 +20,7 @@
platforms=PLATFORMS,
version=VERSION,
packages=find_packages(),
+ install_requires=REQUIRES,
requires=REQUIRES)
|
0f9fa91b3aeba056f1c1153c7920f085f5a0788c | setup.py | setup.py | """
Flask-JWT-Extended
-------------------
Flask-Login provides jwt endpoint protection for Flask.
"""
from setuptools import setup
setup(name='Flask-JWT-Extended',
version='1.5.0',
url='https://github.com/vimalloc/flask-jwt-extended',
license='MIT',
author='Landon Gilbert-Bland',
author_... | """
Flask-JWT-Extended
-------------------
Flask-Login provides jwt endpoint protection for Flask.
"""
from setuptools import setup
setup(name='Flask-JWT-Extended',
version='1.5.0',
url='https://github.com/vimalloc/flask-jwt-extended',
license='MIT',
author='Landon Gilbert-Bland',
author_... | Make cryptography an optional install dependency | Make cryptography an optional install dependency
| Python | mit | vimalloc/flask-jwt-extended | ---
+++
@@ -17,7 +17,10 @@
packages=['flask_jwt_extended'],
zip_safe=False,
platforms='any',
- install_requires=['Flask', 'PyJWT', 'simplekv', 'cryptography'],
+ install_requires=['Flask', 'PyJWT', 'simplekv'],
+ extras_require={
+ 'asymmetric_crypto': ["cryptography"]
+ ... |
2a42a82d72d8bfbf11b605002bc4781fee320ea3 | setup.py | setup.py | import sys
try:
from setuptools import setup
except ImportError:
from distutils import setup
if sys.version_info[0] == 2:
base_dir = 'python2'
elif sys.version_info[0] == 3:
base_dir = 'python3'
readme = open('README.rst', 'r')
README_TEXT = readme.read()
readme.close()
setup(
name='aniso8601',
... | import sys
try:
from setuptools import setup
except ImportError:
from distutils import setup
if sys.version_info[0] == 2:
base_dir = 'python2'
elif sys.version_info[0] == 3:
base_dir = 'python3'
readme = open('README.rst', 'r')
README_TEXT = readme.read()
readme.close()
setup(
name='aniso8601',
... | Add python2 specifically to classifier list. | Add python2 specifically to classifier list.
| Python | bsd-3-clause | 3stack-software/python-aniso8601-relativedelta | ---
+++
@@ -31,6 +31,7 @@
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
+ 'Programming Language :: Python :: 2',
'Programming Language :: Python :: 3',
'Topic :: Software Development :: Libraries ::... |
d3e20471497cad17d5f8a2c70d7be53f80efe000 | setup.py | setup.py | from setuptools import setup
setup(name='pagerduty_events_api',
version='0.2.0',
description='Python wrapper for Pagerduty Events API',
url='https://github.com/BlasiusVonSzerencsi/pagerduty-events-api',
download_url='https://github.com/BlasiusVonSzerencsi/pagerduty-events-api/tarball/0.1.1',
... | from setuptools import setup
setup(name='pagerduty_events_api',
version='0.2.0',
description='Python wrapper for Pagerduty Events API',
url='https://github.com/BlasiusVonSzerencsi/pagerduty-events-api',
download_url='https://github.com/BlasiusVonSzerencsi/pagerduty-events-api/tarball/0.2.0',
... | Update download URL to match current version / tag. | Update download URL to match current version / tag.
| Python | mit | BlasiusVonSzerencsi/pagerduty-events-api | ---
+++
@@ -4,7 +4,7 @@
version='0.2.0',
description='Python wrapper for Pagerduty Events API',
url='https://github.com/BlasiusVonSzerencsi/pagerduty-events-api',
- download_url='https://github.com/BlasiusVonSzerencsi/pagerduty-events-api/tarball/0.1.1',
+ download_url='https://github.c... |
0a1b387de5bcb1c7a8d223cce6f654a8bac5fed7 | setup.py | setup.py | # encoding: utf-8
from setuptools import setup
setup(
name="django-minio-storage",
license="MIT",
use_scm_version=True,
description="Django file storage using the minio python client",
author="Tom Houlé",
author_email="tom@kafunsho.be",
url="https://github.com/py-pa/django-minio-storage",
... | # encoding: utf-8
from setuptools import setup
with open('README.md') as f:
long_description = f.read()
setup(
name="django-minio-storage",
license="MIT",
use_scm_version=True,
description="Django file storage using the minio python client",
long_description=long_description,
long_descript... | Add long_description to package metadata for display by PyPI | Add long_description to package metadata for display by PyPI
| Python | apache-2.0 | tomhoule/django-minio-storage | ---
+++
@@ -1,11 +1,16 @@
# encoding: utf-8
from setuptools import setup
+
+with open('README.md') as f:
+ long_description = f.read()
setup(
name="django-minio-storage",
license="MIT",
use_scm_version=True,
description="Django file storage using the minio python client",
+ long_descrip... |
b5ee678115391885a00cfd1ee114c6b5b22f7a55 | setup.py | setup.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from distutils.core import setup
setup(
name='facebook-python-sdk',
version='0.2.0',
description='This client library is designed to support the Facebook Graph API and the official Facebook JavaScript SDK, which is the canonical way to implement Facebook authe... | #!/usr/bin/env python
from distutils.core import setup
setup(
name='facebook-sdk',
version='0.2.0',
description='This client library is designed to support the Facebook Graph API and the official Facebook JavaScript SDK, which is the canonical way to implement Facebook authentication.',
author='Facebo... | Rename the package so we can push to PyPi | Rename the package so we can push to PyPi
| Python | apache-2.0 | Aloomaio/facebook-sdk,mobolic/facebook-sdk | ---
+++
@@ -1,9 +1,8 @@
#!/usr/bin/env python
-# -*- coding: utf-8 -*-
from distutils.core import setup
setup(
- name='facebook-python-sdk',
+ name='facebook-sdk',
version='0.2.0',
description='This client library is designed to support the Facebook Graph API and the official Facebook JavaScript... |
6122a8488613bdd7d5aaf80e7238cd2d80687a91 | stock.py | stock.py | class Stock:
def __init__(self, symbol):
self.symbol = symbol
self.price = None
def update(self, timestamp, price):
if price < 0:
raise ValueError("price should not be negative")
self.price = price
| class Stock:
def __init__(self, symbol):
self.symbol = symbol
self.price_history = []
@property
def price(self):
if self.price_history:
return self.price_history[-1]
else:
return None
def update(self, timestamp, price):
if price < 0:
... | Update price attribute to price_history list as well as update function accordingly. | Update price attribute to price_history list as well as update function accordingly.
| Python | mit | bsmukasa/stock_alerter | ---
+++
@@ -1,9 +1,16 @@
class Stock:
def __init__(self, symbol):
self.symbol = symbol
- self.price = None
+ self.price_history = []
+
+ @property
+ def price(self):
+ if self.price_history:
+ return self.price_history[-1]
+ else:
+ return None
... |
1583aaf429e252f32439759e1363f3908efa0b03 | tasks.py | tasks.py | from celery import Celery
from allsky import single_image_raspistill
celery = Celery('tasks', broker='redis://localhost:6379/0', backend='redis://localhost:6379/0')
@celery.task
def background_task():
# some long running task here (this simple example has no output)
pid = single_image_raspistill(filename='st... | from celery import Celery
from allsky import single_image_raspistill
celery = Celery('tasks', broker='redis://localhost:6379/0', backend='redis://localhost:6379/0')
@celery.task
def background_task():
# some long running task here (this simple example has no output)
pid = single_image_raspistill(filename='st... | Set a higher default for darks | Set a higher default for darks
| Python | mit | zemogle/raspberrysky | ---
+++
@@ -7,4 +7,4 @@
@celery.task
def background_task():
# some long running task here (this simple example has no output)
- pid = single_image_raspistill(filename='static/snap.jpg')
+ pid = single_image_raspistill(filename='static/snap.jpg', exp=120000000) |
43c1f230382a3b7ad7776d28840c5305bb919ab9 | jujugui/__init__.py | jujugui/__init__.py | # Copyright 2015 Canonical Ltd. This software is licensed under the
# GNU Affero General Public License version 3 (see the file LICENSE).
from pyramid.config import Configurator
def main(global_config, **settings):
"""Return a Pyramid WSGI application."""
config = Configurator(settings=settings)
return ... | # Copyright 2015 Canonical Ltd. This software is licensed under the
# GNU Affero General Public License version 3 (see the file LICENSE).
from pyramid.config import Configurator
def main(global_config, **settings):
"""Return a Pyramid WSGI application."""
config = Configurator(settings=settings)
return ... | Fix load order to fix routes. | Fix load order to fix routes.
| Python | agpl-3.0 | bac/juju-gui,bac/juju-gui,mitechie/juju-gui,mitechie/juju-gui,mitechie/juju-gui,mitechie/juju-gui,bac/juju-gui,bac/juju-gui | ---
+++
@@ -15,6 +15,9 @@
# We use two separate included app/routes so that we can
# have the gui parts behind a separate route from the
# assets when we embed it in e.g. the storefront.
+ # NOTE: kadams54, 2015-08-04: It's very important that assets be listed
+ # first; if it isn't, then the juj... |
75a4733d059f6aad758f93a9c6e4878093afd184 | test-messages.py | test-messages.py | #!/usr/bin/python2
#
# test-messages.py - This script publish a random MQTT messages every 2 s.
#
# Copyright (c) 2013-2015, Fabian Affolter <fabian@affolter-engineering.ch>
# Released under the MIT license. See LICENSE file for details.
#
import random
import time
import mosquitto
timestamp = int(time.time())
broke... | #!/usr/bin/python3
#
# test-messages.py - This script publish a random MQTT messages every 2 s.
#
# Copyright (c) 2013-2016, Fabian Affolter <fabian@affolter-engineering.ch>
# Released under the MIT license. See LICENSE file for details.
#
import random
import time
import paho.mqtt.client as mqtt
timestamp = int(time... | Switch to paho-mqtt and make ready for py3 | Switch to paho-mqtt and make ready for py3
| Python | mit | fabaff/mqtt-panel,fabaff/mqtt-panel,fabaff/mqtt-panel | ---
+++
@@ -1,13 +1,13 @@
-#!/usr/bin/python2
+#!/usr/bin/python3
#
# test-messages.py - This script publish a random MQTT messages every 2 s.
#
-# Copyright (c) 2013-2015, Fabian Affolter <fabian@affolter-engineering.ch>
+# Copyright (c) 2013-2016, Fabian Affolter <fabian@affolter-engineering.ch>
# Released und... |
de1afc2feb1e7572ee7a59909247a2cde67492c9 | tests/sample3.py | tests/sample3.py | class Bad(Exception):
def __repr__(self):
raise RuntimeError("I'm a bad class!")
def a():
x = Bad()
return x
def b():
x = Bad()
raise x
a()
try:
b()
except Exception as exc:
print(exc)
| class Bad(Exception):
__slots__ = []
def __repr__(self):
raise RuntimeError("I'm a bad class!")
def a():
x = Bad()
return x
def b():
x = Bad()
raise x
a()
try:
b()
except Exception as exc:
print(exc)
| Add __slots__ to satisfy tests (rudimentary_repr is still ordinary __repr__ if __slots__ are there). | Add __slots__ to satisfy tests (rudimentary_repr is still ordinary __repr__ if __slots__ are there).
| Python | bsd-2-clause | ionelmc/python-hunter | ---
+++
@@ -1,4 +1,6 @@
class Bad(Exception):
+ __slots__ = []
+
def __repr__(self):
raise RuntimeError("I'm a bad class!")
|
9274cd94442b2507b2d83e2a3e305a0a3b5dc802 | zhihudaily/utils.py | zhihudaily/utils.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import absolute_import, unicode_literals
import re
import requests
from zhihudaily.cache import cache
@cache.memoize(timeout=1200)
def make_request(url):
session = requests.Session()
session.headers.update({'User-Agent': 'Mozilla/5.0 (X11; Ubun... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import absolute_import, unicode_literals
import re
import requests
from zhihudaily.cache import cache
@cache.memoize(timeout=1200)
def make_request(url):
session = requests.Session()
session.headers.update({'User-Agent': 'Mozilla/5.0 (X11; Ubun... | Fix the unnecessary list comprehension | Fix the unnecessary list comprehension
| Python | mit | lord63/zhihudaily,lord63/zhihudaily,lord63/zhihudaily | ---
+++
@@ -22,7 +22,7 @@
def get_news_info(response):
display_date = response.json()['display_date']
date = response.json()['date']
- news_list = [item for item in response.json()['news']]
+ news_list = response.json()['news']
return display_date, date, news_list
|
9aa673593baa67d6e7fc861015041cfb6b69c6c3 | bin/list_winconf.py | bin/list_winconf.py | #!/usr/bin/env python
def main():
import argparse
from ranwinconf.common import generate_host_config
parser = argparse.ArgumentParser()
parser.add_argument('host', type=str, help="Name or IP of the host to get configuration from")
parser.add_argument('--output', type=str, nargs='?', default='<stdo... | #!/usr/bin/env python
def main():
import argparse
from ranwinconf.common import generate_host_config
parser = argparse.ArgumentParser()
parser.add_argument('host', type=str, help="Name or IP of the host to get configuration from")
parser.add_argument('--output', type=str, nargs='?', default='<stdo... | Fix import of common module | Fix import of common module
| Python | mit | sebbrochet/ranwinconf | ---
+++
@@ -21,4 +21,8 @@
if __name__ == '__main__':
+ # HACK HACK HACK
+ # Put Python script dir at the end, as script and module clash :-(
+ import sys
+ sys.path = sys.path[1:] + [sys.path[0]]
main() |
c5127ec22cc5328baf829159a21c7bdf78044f55 | webapp.py | webapp.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import print_function
import json
import traceback
from bottle import route, run, get, request, response, abort
from db import search, info
@route('/v1/pois.json')
def pois_v1():
global _db
filter = request.query.get('filter', None)
if filter i... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import print_function
import json
import re
import traceback
from bottle import route, run, get, request, response, abort
from db import search, info
@route('/v1/pois.json')
def pois_v1():
global _db
filter = request.query.get('filter', None)
i... | Replace all extra characters with commas in queries; improves matching | Replace all extra characters with commas in queries; improves matching
| Python | mit | guaq/paikkis | ---
+++
@@ -2,6 +2,7 @@
# -*- coding: utf-8 -*-
from __future__ import print_function
import json
+import re
import traceback
from bottle import route, run, get, request, response, abort
from db import search, info
@@ -13,6 +14,8 @@
filter = request.query.get('filter', None)
if filter is None:
... |
0004bde0d40dfea167d76a83c20acfffc0abfa28 | poyo/__init__.py | poyo/__init__.py | # -*- coding: utf-8 -*-
from .exceptions import PoyoException
from .parser import parse_string
__author__ = 'Raphael Pierzina'
__email__ = 'raphael@hackebrot.de'
__version__ = '0.3.0'
__all__ = ['parse_string', 'PoyoException']
| # -*- coding: utf-8 -*-
import logging
from .exceptions import PoyoException
from .parser import parse_string
__author__ = 'Raphael Pierzina'
__email__ = 'raphael@hackebrot.de'
__version__ = '0.3.0'
logging.getLogger(__name__).addHandler(logging.NullHandler())
__all__ = ['parse_string', 'PoyoException']
| Add NullHandler to poyo root logger | Add NullHandler to poyo root logger
| Python | mit | hackebrot/poyo | ---
+++
@@ -1,4 +1,6 @@
# -*- coding: utf-8 -*-
+
+import logging
from .exceptions import PoyoException
from .parser import parse_string
@@ -7,4 +9,6 @@
__email__ = 'raphael@hackebrot.de'
__version__ = '0.3.0'
+logging.getLogger(__name__).addHandler(logging.NullHandler())
+
__all__ = ['parse_string', 'PoyoE... |
9ef86f0b5ff1b4e1521a3dc075ff16bc6aef2d0c | museum_site/scroll.py | museum_site/scroll.py | from django.db import models
class Scroll(models.Model):
# Constants
SCROLL_TOP = """```
╞╤═════════════════════════════════════════════╤╡
│ Scroll ### │
╞═════════════════════════════════════════════╡
│ • • • • • • • • •│"""
SCROLL_BOTTOM = ... | from django.db import models
class Scroll(models.Model):
# Constants
SCROLL_TOP = """```
╞╤═════════════════════════════════════════════╤╡
│ Scroll ### │
╞═════════════════════════════════════════════╡
│ • • • • • • • • •│"""
SCROLL_BOTTOM = ... | Fix for truncated whitespace on DB level | Fix for truncated whitespace on DB level
| Python | mit | DrDos0016/z2,DrDos0016/z2,DrDos0016/z2 | ---
+++
@@ -14,7 +14,10 @@
# Fields
identifier = models.IntegerField()
- content = models.TextField(default="")
+ content = models.TextField(
+ default=""
+ help_text="Lines starting with @ will be skipped. Initial whitespace is trimmed by DB, so an extra @ line is a fix."
+ )
... |
530f540b11959956c0cd08b95b2c7c373d829c8e | python/sherlock-and-valid-string.py | python/sherlock-and-valid-string.py | #!/bin/python3
import math
import os
import random
import re
import sys
from collections import Counter
def isValid(s):
return "YES" if containsOnlyOneDifferentCharacterCount(s) else "NO"
def containsOnlyOneDifferentCharacterCount(string):
characterCounts = Counter(string)
if allOccurencesAreEqual(char... | #!/bin/python3
import math
import os
import random
import re
import sys
from collections import Counter
import copy
def isValid(s):
return "YES" if containsOnlyOneDifferentCharacterCount(s) else "NO"
def containsOnlyOneDifferentCharacterCount(string):
characterCounts = Counter(string)
if allOccurencesA... | Handle edge case with zero count | Handle edge case with zero count
| Python | mit | rootulp/hackerrank,rootulp/hackerrank,rootulp/hackerrank,rootulp/hackerrank,rootulp/hackerrank,rootulp/hackerrank | ---
+++
@@ -6,6 +6,7 @@
import re
import sys
from collections import Counter
+import copy
def isValid(s):
@@ -19,8 +20,9 @@
else:
# Try to remove one occurence of every character
for character in characterCounts:
- characterCountWithOneRemovedCharacter = dict.copy(characterCo... |
a67b71ebadbffa864f60869878198ce4e2eb3fa3 | class4/exercise7.py | class4/exercise7.py | from getpass import getpass
from netmiko import ConnectHandler
def main():
password = getpass()
pynet_rtr2 = {'device_type': 'cisco_ios', 'ip': '50.76.53.27', 'username': 'pyclass', 'password': password, 'port': 8022}
ssh_connection = ConnectHandler(**pynet_rtr2)
ssh_connection.config_mode()
lo... | # Use Netmiko to change the logging buffer size (logging buffered <size>) on pynet-rtr2.
from getpass import getpass
from netmiko import ConnectHandler
def main():
password = getpass()
pynet_rtr2 = {'device_type': 'cisco_ios', 'ip': '50.76.53.27', 'username': 'pyclass', 'password': password, 'port': 8022}
... | Use Netmiko to change the logging buffer size (logging buffered <size>) on pynet-rtr2. | Use Netmiko to change the logging buffer size (logging buffered <size>) on pynet-rtr2.
| Python | apache-2.0 | linkdebian/pynet_course | ---
+++
@@ -1,3 +1,5 @@
+# Use Netmiko to change the logging buffer size (logging buffered <size>) on pynet-rtr2.
+
from getpass import getpass
from netmiko import ConnectHandler
|
3fb1c14f750afa742f476e3b2fcc4d39662554e3 | osf/models/subject.py | osf/models/subject.py | # -*- coding: utf-8 -*-
from django.db import models
from website.util import api_v2_url
from osf.models.base import BaseModel, ObjectIDMixin
class Subject(ObjectIDMixin, BaseModel):
"""A subject discipline that may be attached to a preprint."""
modm_model_path = 'website.project.taxonomies.Subject'
mod... | # -*- coding: utf-8 -*-
from django.db import models
from website.util import api_v2_url
from osf.models.base import BaseModel, ObjectIDMixin
class Subject(ObjectIDMixin, BaseModel):
"""A subject discipline that may be attached to a preprint."""
modm_model_path = 'website.project.taxonomies.Subject'
mod... | Change unicode rep to use Subject text | Change unicode rep to use Subject text
| Python | apache-2.0 | crcresearch/osf.io,Nesiehr/osf.io,CenterForOpenScience/osf.io,laurenrevere/osf.io,chrisseto/osf.io,icereval/osf.io,brianjgeiger/osf.io,CenterForOpenScience/osf.io,felliott/osf.io,aaxelb/osf.io,aaxelb/osf.io,chrisseto/osf.io,felliott/osf.io,cslzchen/osf.io,HalcyonChimera/osf.io,mfraezz/osf.io,leb2dg/osf.io,caseyrollins/... | ---
+++
@@ -15,7 +15,7 @@
parents = models.ManyToManyField('self', symmetrical=False, related_name='children')
def __unicode__(self):
- return '{} with id {}'.format(self.name, self.id)
+ return '{} with id {}'.format(self.text, self.id)
@property
def absolute_api_v2_url(self): |
49067acc356503f27b132183edc0884d8fd43af3 | numba/exttypes/tests/test_type_recognition.py | numba/exttypes/tests/test_type_recognition.py | """
>>> test_typeof()
"""
import sys
import numba
from numba import *
from nose.tools import raises
@jit
class Base(object):
value1 = double
value2 = int_
@void(int_, double)
def __init__(self, value1, value2):
self.value1 = value1
self.value2 = value2
@jit
class Derived(Base):
... | """
>>> test_typeof()
"""
import numba
from numba import *
def make_base(compiler):
@compiler
class Base(object):
value1 = double
value2 = int_
@void(int_, double)
def __init__(self, value1, value2):
self.value1 = value1
self.value2 = value2
retur... | Test autojit specialized extension attribute type recognition | Test autojit specialized extension attribute type recognition
| Python | bsd-2-clause | gdementen/numba,jriehl/numba,seibert/numba,stefanseefeld/numba,gmarkall/numba,numba/numba,sklam/numba,pitrou/numba,seibert/numba,pitrou/numba,gmarkall/numba,stefanseefeld/numba,cpcloud/numba,IntelLabs/numba,sklam/numba,IntelLabs/numba,gmarkall/numba,stuartarchibald/numba,IntelLabs/numba,jriehl/numba,pombredanne/numba,g... | ---
+++
@@ -2,21 +2,24 @@
>>> test_typeof()
"""
-import sys
import numba
from numba import *
-from nose.tools import raises
-@jit
-class Base(object):
+def make_base(compiler):
+ @compiler
+ class Base(object):
- value1 = double
- value2 = int_
+ value1 = double
+ value2 = int_
-... |
6e67e2882c71e291dc1f161ffc7638f42c86ddbc | dmdlib/randpatterns/ephys_comms.py | dmdlib/randpatterns/ephys_comms.py | import zmq
def send_message(msg, hostname='localhost', port=5556):
"""
sends a message to openephys ZMQ socket.
:param msg: string
:param hostname: ip address to send to
:param port: zmq port number
:return: none
"""
with zmq.Context() as ctx:
with ctx.socket(zmq.REQ) as sock:
... | """
Module handling the communication with OpenEphys.
"""
import zmq
TIMEOUT_MS = 250 # time to wait for ZMQ socket to respond before error.
HOSTNAME = 'localhost'
PORT = 5556
_ctx = zmq.Context() # should be only one made per process.
def send_message(msg, hostname=HOSTNAME, port=PORT):
"""
sends a messa... | Fix zmq communications module Does not hang when connection is unavailable | Fix zmq communications module
Does not hang when connection is unavailable
| Python | mit | olfa-lab/DmdLib | ---
+++
@@ -1,18 +1,67 @@
+"""
+Module handling the communication with OpenEphys.
+"""
import zmq
+TIMEOUT_MS = 250 # time to wait for ZMQ socket to respond before error.
+HOSTNAME = 'localhost'
+PORT = 5556
-def send_message(msg, hostname='localhost', port=5556):
+_ctx = zmq.Context() # should be only one mad... |
3d3d6ef8393339f7246e6c6a9693d883ca3246f2 | marconi/__init__.py | marconi/__init__.py | # Copyright (c) 2013 Rackspace Hosting, 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 agreed ... | # Copyright (c) 2013 Rackspace Hosting, 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 agreed ... | Remove the __MARCONI_SETUP_ global from init | Remove the __MARCONI_SETUP_ global from init
This was used to know when Marconi was being loaded and avoid
registering configuration options and doing other things. This is not
necessary anymore.
Change-Id: Icf43302581eefb563b10ddec5831eeec0d068872
Partially-Implements: py3k-support
| Python | apache-2.0 | openstack/zaqar,openstack/zaqar,rackerlabs/marconi,openstack/zaqar,openstack/zaqar | ---
+++
@@ -13,16 +13,10 @@
# See the License for the specific language governing permissions and
# limitations under the License.
-# Import guard. No module level import during the setup procedure.
-try:
- if __MARCONI_SETUP__: # NOQA
- import sys as _sys
- _sys.stderr.write('Running from marc... |
7a571230e9678f30e6178da01769424213471355 | libapol/__init__.py | libapol/__init__.py | """The SETools SELinux policy analysis library."""
# Copyright 2014, Tresys Technology, LLC
#
# This file is part of SETools.
#
# SETools is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as
# published by the Free Software Foundation, either version 2... | """The SETools SELinux policy analysis library."""
# Copyright 2014, Tresys Technology, LLC
#
# This file is part of SETools.
#
# SETools is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as
# published by the Free Software Foundation, either version 2... | Add missing libapol rolequery import. | Add missing libapol rolequery import.
| Python | lgpl-2.1 | TresysTechnology/setools,TresysTechnology/setools,TresysTechnology/setools,TresysTechnology/setools | ---
+++
@@ -26,6 +26,7 @@
# Component Queries
import typequery
+import rolequery
import userquery
import boolquery
import polcapquery |
e6c41d8bd83b6710114a9d37915a0b3bbeb78d2a | sms_sponsorship/tests/load_tests.py | sms_sponsorship/tests/load_tests.py | # coding: utf-8
# pylint: disable=W7936
from locust import HttpLocust, TaskSet, task
from random import randint
class SmsSponsorWorkflow(TaskSet):
@task(1)
def send_sms(self):
url = "/sms/mnc?sender=%2B41789364{}&service=compassion".format(
randint(100, 999))
self.client.get(url)
... | # coding: utf-8
# pylint: disable=W7936
from locust import HttpLocust, TaskSet, task
from random import randint
class SmsSponsorWorkflow(TaskSet):
@task(1)
def send_sms(self):
url = "/sms/mnc?sender=%2B4199{}&service=compassion&text=test".format(
randint(1000000, 9999999))
self.cl... | Replace phone number and avoid sending SMS for load testing | Replace phone number and avoid sending SMS for load testing
| Python | agpl-3.0 | eicher31/compassion-modules,eicher31/compassion-modules,ecino/compassion-modules,ecino/compassion-modules,CompassionCH/compassion-modules,ecino/compassion-modules,CompassionCH/compassion-modules,CompassionCH/compassion-modules,eicher31/compassion-modules,eicher31/compassion-modules,ecino/compassion-modules,ecino/compas... | ---
+++
@@ -8,8 +8,8 @@
@task(1)
def send_sms(self):
- url = "/sms/mnc?sender=%2B41789364{}&service=compassion".format(
- randint(100, 999))
+ url = "/sms/mnc?sender=%2B4199{}&service=compassion&text=test".format(
+ randint(1000000, 9999999))
self.client.get(ur... |
de69b88f47714848e4a73b6375d9665fb48faeda | climlab/__init__.py | climlab/__init__.py | __version__ = '0.5.0.dev0'
# this should ensure that we can still import constants.py as climlab.constants
from climlab.utils import constants
from climlab.utils import thermo, legendre
# some more useful shorcuts
from climlab.model.column import GreyRadiationModel, RadiativeConvectiveModel, BandRCModel
from climlab.m... | __version__ = '0.5.0'
# this should ensure that we can still import constants.py as climlab.constants
from climlab.utils import constants
from climlab.utils import thermo, legendre
# some more useful shorcuts
from climlab.model.column import GreyRadiationModel, RadiativeConvectiveModel, BandRCModel
from climlab.model.... | Increment version number to 0.5.0 | Increment version number to 0.5.0 | Python | mit | cjcardinale/climlab,brian-rose/climlab,cjcardinale/climlab,cjcardinale/climlab,brian-rose/climlab | ---
+++
@@ -1,4 +1,4 @@
-__version__ = '0.5.0.dev0'
+__version__ = '0.5.0'
# this should ensure that we can still import constants.py as climlab.constants
from climlab.utils import constants |
feb46fccee8f07d1ad563440cf52b344594f411c | cached_counts/models.py | cached_counts/models.py | from django.db import models
from django.core.urlresolvers import reverse
from django.template.defaultfilters import slugify
class CachedCount(models.Model):
"""
Fairly generic model for storing counts of various sorts.
The object_id is used for linking through to the relevant URL.
"""
count_type... | from django.db import models
from django.core.urlresolvers import reverse
from django.template.defaultfilters import slugify
class CachedCount(models.Model):
"""
Fairly generic model for storing counts of various sorts.
The object_id is used for linking through to the relevant URL.
"""
count_type... | Order by -count, name as there are duplicate names | Order by -count, name as there are duplicate names
| Python | agpl-3.0 | YoQuieroSaber/yournextrepresentative,mysociety/yournextrepresentative,openstate/yournextrepresentative,DemocracyClub/yournextrepresentative,openstate/yournextrepresentative,mysociety/yournextmp-popit,neavouli/yournextrepresentative,mysociety/yournextrepresentative,datamade/yournextmp-popit,datamade/yournextmp-popit,dat... | ---
+++
@@ -15,7 +15,7 @@
object_id = models.CharField(blank=True, max_length=100)
class Meta:
- ordering = ['-count']
+ ordering = ['-count', 'name']
@classmethod
def total_2015(cls): |
fdd57913aa11c29ecf160f32a9091e59de598899 | plugins/YTranslate.py | plugins/YTranslate.py | """
Yandex Translation API
"""
import logging
from urllib.parse import quote
from telegram import Bot, Update
from telegram.ext import Updater
from requests import post
import constants # pylint: disable=E0401
import settings
LOGGER = logging.getLogger("YTranslate")
YAURL = "https://translate.yandex.net/api/v1.5/tr.... | """
Yandex Translation API
"""
import logging
from urllib.parse import quote
from telegram import Bot, Update
from telegram.ext import Updater
from requests import post
import constants # pylint: disable=E0401
import settings
import octeon
LOGGER = logging.getLogger("YTranslate")
YAURL = "https://translate.yandex.ne... | Update translate plugin to new message format | Update translate plugin to new message format
| Python | mit | ProtoxiDe22/Octeon | ---
+++
@@ -10,6 +10,7 @@
import constants # pylint: disable=E0401
import settings
+import octeon
LOGGER = logging.getLogger("YTranslate")
YAURL = "https://translate.yandex.net/api/v1.5/tr.json/translate?"
@@ -32,9 +33,9 @@
lang = "en"
yandex = post(YAURL, params={"text":update.message.r... |
7c08497e3e3e08f3ebf82eb594c25c1ab65b4d9d | SocialNPHS/language/tweet.py | SocialNPHS/language/tweet.py | """
Given a tweet, tokenize it and shit.
"""
import nltk
from nltk.tokenize import TweetTokenizer
from SocialNPHS.sources.twitter.auth import api
from SocialNPHS.sources.twitter import user
def get_tweet_tags(tweet):
""" Break up a tweet into individual word parts """
tknzr = TweetTokenizer()
tokens = t... | """
Given a tweet, tokenize it and shit.
"""
import nltk
from nltk.tokenize import TweetTokenizer
from SocialNPHS.sources.twitter.auth import api
from SocialNPHS.sources.twitter import user
def get_tweet_tags(tweet):
""" Break up a tweet into individual word parts """
tknzr = TweetTokenizer()
tokens = t... | Implement fallback for tokenizing non-nphs tagged users | Implement fallback for tokenizing non-nphs tagged users
| Python | mit | SocialNPHS/SocialNPHS | ---
+++
@@ -18,9 +18,13 @@
if tok.startswith('@'):
handle = tok.strip("@")
if handle in user.students:
+ # If we have a database entry for the mentioned user, we can
+ # easily substitute a full name.
usr = user.NPUser(handle)
... |
a212c5c859cef769bbe3d46c1da816bf6218b773 | corehq/messaging/smsbackends/test/models.py | corehq/messaging/smsbackends/test/models.py | from django.conf import settings
from corehq.apps.sms.mixin import SMSBackend
from corehq.apps.sms.models import SQLSMSBackend
from corehq.apps.sms.forms import BackendForm
class TestSMSBackend(SMSBackend):
@classmethod
def get_api_id(cls):
return "TEST"
@classmethod
def get_generic_name(cls)... | from django.conf import settings
from corehq.apps.sms.mixin import SMSBackend
from corehq.apps.sms.models import SQLSMSBackend
from corehq.apps.sms.forms import BackendForm
class TestSMSBackend(SMSBackend):
@classmethod
def get_api_id(cls):
return "TEST"
@classmethod
def get_generic_name(cls)... | Copy test backend code from couch model to sql model | Copy test backend code from couch model to sql model
| Python | bsd-3-clause | dimagi/commcare-hq,dimagi/commcare-hq,dimagi/commcare-hq,dimagi/commcare-hq,qedsoftware/commcare-hq,dimagi/commcare-hq,qedsoftware/commcare-hq,qedsoftware/commcare-hq,qedsoftware/commcare-hq,qedsoftware/commcare-hq | ---
+++
@@ -42,3 +42,23 @@
@classmethod
def get_available_extra_fields(cls):
return []
+
+ @classmethod
+ def get_api_id(cls):
+ return 'TEST'
+
+ @classmethod
+ def get_generic_name(cls):
+ return "Test"
+
+ @classmethod
+ def get_form_class(cls):
+ return Ba... |
68680b8b116e10ae4e35c39b8a62c0307ee65fe4 | node/deduplicate.py | node/deduplicate.py | #!/usr/bin/env python
from nodes import Node
class Deduplicate(Node):
char = "}"
args = 1
results = 2
@Node.test_func([2], [4])
@Node.test_func([1.5], [3])
def double(self, inp: Node.number):
"""inp*2"""
self.results = 1
return inp*2
def func(self, seq... | #!/usr/bin/env python
from nodes import Node
class Deduplicate(Node):
char = "}"
args = 1
results = 1
@Node.test_func([2], [4])
@Node.test_func([1.5], [3])
def double(self, inp: Node.number):
"""inp*2"""
return inp*2
@Node.test_func([[1,2,3,1,1]], [[1,2,3]])
... | Fix dedupe not preserving order | Fix dedupe not preserving order
| Python | mit | muddyfish/PYKE,muddyfish/PYKE | ---
+++
@@ -5,17 +5,20 @@
class Deduplicate(Node):
char = "}"
args = 1
- results = 2
+ results = 1
@Node.test_func([2], [4])
@Node.test_func([1.5], [3])
def double(self, inp: Node.number):
"""inp*2"""
- self.results = 1
return inp*2
+ @Node.t... |
3de1cdba6c438a5bc52c10fa469b675117b9ce45 | src/trajectory/lissajous_trajectory.py | src/trajectory/lissajous_trajectory.py | #!/usr/bin/env python
from math import pi, sin, cos
from .trajectory import Trajectory
class LissajousTrajectory(object, Trajectory):
def __init__(self, A, B, a, b, period, delta=pi/2):
Trajectory.__init__(self)
self.A = A
self.B = B
self.a = a
self.b = b
self.peri... | #!/usr/bin/env python
from math import pi, sin
from .trajectory import Trajectory
class LissajousTrajectory(object, Trajectory):
def __init__(self, A, B, a, b, period, delta=pi/2):
Trajectory.__init__(self)
self.A = A
self.B = B
self.a = a
self.b = b
self.period = ... | Fix wrong formula for y position | fix: Fix wrong formula for y position
| Python | mit | bit0001/trajectory_tracking,bit0001/trajectory_tracking | ---
+++
@@ -1,5 +1,5 @@
#!/usr/bin/env python
-from math import pi, sin, cos
+from math import pi, sin
from .trajectory import Trajectory
@@ -17,7 +17,7 @@
def get_position_at(self, t):
super(LissajousTrajectory, self).get_position_at(t)
self.position.x = self.A * sin(2 * pi * t * self.a ... |
8f98b52ec670ecfe89f243348f7815b0ae71eed7 | gog_utils/gol_connection.py | gog_utils/gol_connection.py | """Module hosting class representing connection to GoL."""
import json
import requests
import os
import stat
WEBSITE_URL = "http://www.gogonlinux.com"
AVAILABLE_GAMES = "/available"
BETA_GAMES = "/available-beta"
def obtain_available_games():
"""Returns JSON list of all available games."""
resp = requests.ge... | """Module hosting class representing connection to GoL."""
import json
import requests
import os
import stat
WEBSITE_URL = "http://www.gogonlinux.com"
AVAILABLE_GAMES = "/available"
BETA_GAMES = "/available-beta"
def obtain_available_games():
"""Returns JSON list of all available games."""
resp = requests.ge... | Disable falsely reported pylint errors due to unresolved library type | Disable falsely reported pylint errors due to unresolved library type
Signed-off-by: Morgawr <528620cabbf4155b02d05fdb6013cd6bb6ad54b5@gmail.com>
| Python | bsd-3-clause | Morgawr/gogonlinux,Morgawr/gogonlinux | ---
+++
@@ -12,16 +12,16 @@
def obtain_available_games():
"""Returns JSON list of all available games."""
resp = requests.get(url=(WEBSITE_URL + AVAILABLE_GAMES))
- return json.loads(resp.text)
+ return json.loads(resp.text) #pylint: disable=E1103
def obtain_beta_available_games():
"""Obtains... |
31cf067f3e4da104551baf0e02332e22a75bb80a | tests/commit/field/test__field_math.py | tests/commit/field/test__field_math.py | from unittest import TestCase
from phi import math
from phi.geom import Box
from phi import field
from phi.physics import Domain
class TestFieldMath(TestCase):
def test_gradient(self):
domain = Domain(x=4, y=3)
phi = domain.grid() * (1, 2)
grad = field.gradient(phi, stack_dim='gradient')... | from unittest import TestCase
from phi import math
from phi.field import StaggeredGrid, CenteredGrid
from phi.geom import Box
from phi import field
from phi.physics import Domain
class TestFieldMath(TestCase):
def test_gradient(self):
domain = Domain(x=4, y=3)
phi = domain.grid() * (1, 2)
... | Add unit test, update documentation | Add unit test, update documentation
| Python | mit | tum-pbs/PhiFlow,tum-pbs/PhiFlow | ---
+++
@@ -1,6 +1,7 @@
from unittest import TestCase
from phi import math
+from phi.field import StaggeredGrid, CenteredGrid
from phi.geom import Box
from phi import field
from phi.physics import Domain
@@ -18,3 +19,17 @@
v = field.CenteredGrid(math.ones(x=3, y=3), Box[0:1, 0:1], math.extrapolation.Z... |
04cd17bb03f2b15cf37313cb3261dd37902d82b0 | run_coveralls.py | run_coveralls.py | #!/bin/env/python
# -*- coding: utf-8
import os
from subprocess import call
if __name__ == '__main__':
if 'TRAVIS' in os.environ:
rc = call('coveralls')
raise SystemExit(rc)
| #!/bin/env/python
# -*- coding: utf-8
import os
from subprocess import call
if __name__ == '__main__':
if 'TRAVIS' in os.environ:
print("Calling coveralls")
rc = call('coveralls')
raise SystemExit(rc)
| Add a check that coveralls is actually called | Add a check that coveralls is actually called
| Python | mit | browniebroke/deezer-python,browniebroke/deezer-python,pfouque/deezer-python,browniebroke/deezer-python | ---
+++
@@ -7,5 +7,6 @@
if __name__ == '__main__':
if 'TRAVIS' in os.environ:
+ print("Calling coveralls")
rc = call('coveralls')
raise SystemExit(rc) |
39161521ce75eddf3187a7412e4c22cbca88752d | logtacts/settings/heroku.py | logtacts/settings/heroku.py | from .base import *
import dj_database_url
DEBUG = False
TEMPLATE_DEBUG = DEBUG
DATABASES['default'] = dj_database_url.parse(get_env_variable('LOGTACTS_DB_URL'))
SECRET_KEY = get_env_variable("LOGTACTS_SECRET_KEY")
ALLOWED_HOSTS = [
'localhost',
'127.0.0.1',
'.herokuapp.com',
'.pebble.ink',
]
STATI... | from .base import *
import dj_database_url
DEBUG = False
TEMPLATE_DEBUG = DEBUG
DATABASES['default'] = dj_database_url.parse(get_env_variable('LOGTACTS_DB_URL'))
SECRET_KEY = get_env_variable("LOGTACTS_SECRET_KEY")
ALLOWED_HOSTS = [
'localhost',
'127.0.0.1',
'.herokuapp.com',
'.pebble.ink',
'.lo... | Add logtacts domain to allowed hosts | Add logtacts domain to allowed hosts
| Python | mit | phildini/logtacts,phildini/logtacts,phildini/logtacts,phildini/logtacts,phildini/logtacts | ---
+++
@@ -13,6 +13,7 @@
'127.0.0.1',
'.herokuapp.com',
'.pebble.ink',
+ '.logtacts.com',
]
STATIC_URL = '//logtacts.s3.amazonaws.com/assets/' |
f13f14b134d76acac9cad8a93b47315fb0df1ba9 | utils/stepvals.py | utils/stepvals.py | import math
def get_range(val, step):
stepvals = [i*step for i in xrange(int(math.ceil(val/step)))][1:]
if not stepvals[-1] == val: # if last element isn't the actual value
stepvals += [val] # add it in
return stepvals
| import math
def get_range(val, step):
if args.step >= val:
raise Exception("Step value is too large! Must be smaller than value.")
stepvals = [i*step for i in xrange(int(math.ceil(val/step)))][1:]
if not stepvals[-1] == val: # if last element isn't the actual value
stepvals += [val] # add it in
return stepval... | Raise exception if step value is invalid. | Raise exception if step value is invalid.
| Python | mit | wei2912/bce-simulation,wei2912/bce-simulation,wei2912/bce-simulation,wei2912/bce-simulation | ---
+++
@@ -1,6 +1,9 @@
import math
def get_range(val, step):
+ if args.step >= val:
+ raise Exception("Step value is too large! Must be smaller than value.")
+
stepvals = [i*step for i in xrange(int(math.ceil(val/step)))][1:]
if not stepvals[-1] == val: # if last element isn't the actual value
stepvals +... |
beac0323253454f343b32d42d8c065cfc4fcc04f | src/epiweb/apps/reminder/models.py | src/epiweb/apps/reminder/models.py | import datetime
from django.db import models
from django.contrib.auth.models import User
from django.db.models.signals import post_save
class Reminder(models.Model):
user = models.ForeignKey(User, unique=True)
last_reminder = models.DateTimeField()
next_reminder = models.DateField()
wday = models.Inte... | import datetime
from django.db import models
from django.contrib.auth.models import User
from django.db.models.signals import post_save
_ = lambda x: x
# Reference: http://docs.python.org/library/time.html
# - tm_wday => range [0,6], Monday is 0
MONDAY = 0
TUESDAY = 1
WEDNESDAY = 2
THURSDAY = 3
FRIDAY = 4
SATURDAY =... | Set available options for weekday field of reminder's model | Set available options for weekday field of reminder's model
| Python | agpl-3.0 | ISIFoundation/influenzanet-website,ISIFoundation/influenzanet-website,ISIFoundation/influenzanet-website,ISIFoundation/influenzanet-website,ISIFoundation/influenzanet-website,ISIFoundation/influenzanet-website,ISIFoundation/influenzanet-website | ---
+++
@@ -4,11 +4,34 @@
from django.contrib.auth.models import User
from django.db.models.signals import post_save
+_ = lambda x: x
+
+# Reference: http://docs.python.org/library/time.html
+# - tm_wday => range [0,6], Monday is 0
+MONDAY = 0
+TUESDAY = 1
+WEDNESDAY = 2
+THURSDAY = 3
+FRIDAY = 4
+SATURDAY = 5
+S... |
4f4d083ea8be7da6a4aecfd4bf15dc4e91a2d72d | palm/blink_model.py | palm/blink_model.py | import numpy
from palm.aggregated_kinetic_model import AggregatedKineticModel
from palm.probability_vector import make_prob_vec_from_state_ids
from palm.state_collection import StateIDCollection
class BlinkModel(AggregatedKineticModel):
'''
BlinkModel is an AggregatedKineticModel. Two observation classes
a... | import numpy
from palm.aggregated_kinetic_model import AggregatedKineticModel
from palm.probability_vector import make_prob_vec_from_state_ids
from palm.state_collection import StateIDCollection
class BlinkModel(AggregatedKineticModel):
'''
BlinkModel is an AggregatedKineticModel. Two observation classes
a... | Add method for final probability vector, which corresponds to all-photobleached collection. | Add method for final probability vector, which
corresponds to all-photobleached collection. | Python | bsd-2-clause | grollins/palm | ---
+++
@@ -22,3 +22,9 @@
initial_prob_vec = make_prob_vec_from_state_ids(dark_state_id_collection)
initial_prob_vec.set_state_probability(self.all_inactive_state_id, 1.0)
return initial_prob_vec
+
+ def get_final_probability_vector(self):
+ dark_state_id_collection = self.state_i... |
939a96a93d959bf2c26da37adb672f5538c1f222 | mmmpaste/db.py | mmmpaste/db.py | from sqlalchemy import create_engine
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy.orm import scoped_session, sessionmaker
from hashlib import md5
engine = create_engine("sqlite:///db/pastebin.db")
session = scoped_session(sessionmaker(bind = engine, autoflush = False))
Base = declarative_b... | from sqlalchemy import create_engine
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy.orm import scoped_session, sessionmaker
from hashlib import md5
engine = create_engine("sqlite:///db/pastebin.db")
session = scoped_session(sessionmaker(bind = engine, autoflush = False))
Base = declarative_b... | Update base 62 id after paste creation. | Update base 62 id after paste creation.
| Python | bsd-2-clause | ryanc/mmmpaste,ryanc/mmmpaste | ---
+++
@@ -30,10 +30,11 @@
def new_paste(content, filename = None):
from mmmpaste.models import Paste, Content
+ from mmmpaste.base62 import b62_encode
hash = md5(content).hexdigest()
dupe = session.query(Content).filter_by(hash = hash).first()
- paste = Paste(Content(content), filename)
+ ... |
25e4e89cf062375cf1a27e8697a7d79b5c662296 | what_json/urls.py | what_json/urls.py | from django.conf.urls import patterns, include, url
urlpatterns = patterns(
'',
url(r'^checks$', 'what_json.views.checks'),
url(r'^add_torrent$', 'what_json.views.add_torrent'),
url(r'^sync$', 'what_json.views.sync'),
url(r'^sync_replicas$', 'what_json.views.sync_replicas'),
url(r'^upda... | from django.conf.urls import patterns, url
urlpatterns = patterns(
'',
url(r'^checks$', 'what_json.views.checks'),
url(r'^add_torrent$', 'what_json.views.add_torrent'),
url(r'^sync$', 'what_json.views.sync'),
url(r'^sync_replicas$', 'what_json.views.sync_replicas'),
url(r'^update_freele... | Fix one more flake8 error. | Fix one more flake8 error.
| Python | mit | karamanolev/WhatManager2,grandmasterchef/WhatManager2,grandmasterchef/WhatManager2,MADindustries/WhatManager2,karamanolev/WhatManager2,davols/WhatManager2,karamanolev/WhatManager2,karamanolev/WhatManager2,MADindustries/WhatManager2,davols/WhatManager2,grandmasterchef/WhatManager2,davols/WhatManager2,grandmasterchef/Wha... | ---
+++
@@ -1,4 +1,4 @@
-from django.conf.urls import patterns, include, url
+from django.conf.urls import patterns, url
urlpatterns = patterns(
'', |
1ecc62d453a122443924b21cf04edf661f9d1878 | mwikiircbot.py | mwikiircbot.py | import ircbotframe
import sys
class Handler:
def __init__(self, host, port=6667, name="MediaWiki", description="MediaWiki recent changes bot", channels=[]):
self.channels = channels
self.bot = ircbotframe.ircBot(host, port, name, description)
self.bot.bind("376", self.endMOTD)
self.... | import ircbotframe
import sys
class Handler:
def __init__(self, host, port=6667, name="MediaWiki", description="MediaWiki recent changes bot", channels=[]):
self.channels = channels
self.bot = ircbotframe.ircBot(host, port, name, description)
self.bot.bind("376", self.endMOTD)
self.... | Add command line argument to set bot name | Add command line argument to set bot name | Python | mit | fenhl/mwikiircbot | ---
+++
@@ -13,11 +13,29 @@
self.bot.joinchan(chan)
def main(cmd, args):
- if len(args) < 2:
- print("Usage: " + cmd + " <host> <channel> [<channel> ...]")
+ args = args[:]
+ parsemode = ["host"]
+ host = None
+ name = "MediaWiki"
+ channels = []
+ while len(args) > 0:
+ ... |
996cab9efe8c1bbc9a6922b76b1982ce37dcdccd | pigeonpost/tasks.py | pigeonpost/tasks.py | import datetime
import logging
from celery.task import task
from django.core.mail.backends.smtp import EmailBackend
from django.contrib.auth.models import User
from pigeonpost.models import ContentQueue, Outbox
logger = logging.getLogger('pigeonpost.tasks')
def queue_to_send(sender, **kwargs):
# Check to see i... | import datetime
import logging
from celery.task import task
from django.core.mail.backends.smtp import EmailBackend
from django.contrib.auth.models import User
from pigeonpost.models import ContentQueue, Outbox
logger = logging.getLogger('pigeonpost.tasks')
@task
def queue_to_send(sender, **kwargs):
# Check to... | Make queue_to_send a celery task | Make queue_to_send a celery task
| Python | mit | dragonfly-science/django-pigeonpost,dragonfly-science/django-pigeonpost | ---
+++
@@ -10,6 +10,7 @@
logger = logging.getLogger('pigeonpost.tasks')
+@task
def queue_to_send(sender, **kwargs):
# Check to see if the object is mailable
try: |
97f58ddc46946640870acf7d0f3d950c46d380d3 | tests/conftest.py | tests/conftest.py | # -*- coding: utf-8 -*-
'''
General-purpose fixtures for vdirsyncer's testsuite.
'''
import logging
import os
import click_log
from hypothesis import HealthCheck, Verbosity, settings
import pytest
@pytest.fixture(autouse=True)
def setup_logging():
click_log.basic_config('vdirsyncer').setLevel(logging.DEBUG)
... | # -*- coding: utf-8 -*-
'''
General-purpose fixtures for vdirsyncer's testsuite.
'''
import logging
import os
import click_log
from hypothesis import HealthCheck, Verbosity, settings
import pytest
@pytest.fixture(autouse=True)
def setup_logging():
click_log.basic_config('vdirsyncer').setLevel(logging.DEBUG)
... | Disable health checks for distro builds | Disable health checks for distro builds
| Python | mit | untitaker/vdirsyncer,untitaker/vdirsyncer,untitaker/vdirsyncer | ---
+++
@@ -35,6 +35,7 @@
))
settings.register_profile("deterministic", settings(
derandomize=True,
+ perform_health_check=False
))
if os.environ.get('DETERMINISTIC_TESTS', 'false').lower() == 'true': |
e7ad2be6cdb87b84bfa77ff9824f2e9913c17599 | tests/test_cmd.py | tests/test_cmd.py | import base64
import os
from distutils.core import Command
class TestCommand(Command):
description = "Launch all tests under fusion_tables app"
user_options = []
def initialize_options(self):
pass
def finalize_options(self):
pass
def create_client_secret_file(self):
clie... | import base64
import os
from distutils.core import Command
class TestCommand(Command):
description = "Launch all tests under fusion_tables app"
user_options = []
def initialize_options(self):
pass
def finalize_options(self):
pass
def create_client_secret_file(self):
clie... | Revert "Fix unit test python3 compatibility." | Revert "Fix unit test python3 compatibility."
This reverts commit 6807e5a5966f1f37f69a54e255a9981918cc8fb6.
| Python | mit | bsvetchine/django-fusion-tables | ---
+++
@@ -15,7 +15,7 @@
def create_client_secret_file(self):
client_secret = open("/tmp/client_secret.json", "w")
- data = os.environ.get("CLIENT_SECRET").decode("utf-8")
+ data = os.environ.get("CLIENT_SECRET")
client_secret.write(base64.b64decode(data))
client_secre... |
40a08503edef360bc2d07f1bfe5ecd37ffc4b1d1 | oz/__init__.py | oz/__init__.py | """
Class for automated operating system installation.
Oz is a set of classes to do automated operating system installation. It
has built-in knowledge of the proper things to do for each of the supported
operating systems, so the data that the user must provide is very minimal.
This data is supplied in the form of an... | Add some basic pydoc documentation. | Add some basic pydoc documentation.
Signed-off-by: Chris Lalancette <60b62644009db6b194cc0445b64e9b27bb26433a@redhat.com>
| Python | lgpl-2.1 | nullr0ute/oz,cernops/oz,imcleod/oz,moofrank/oz,NeilBryant/oz,nullr0ute/oz,clalancette/oz,mgagne/oz,clalancette/oz,NeilBryant/oz,ndonegan/oz,ndonegan/oz,mgagne/oz,cernops/oz,moofrank/oz,imcleod/oz | ---
+++
@@ -0,0 +1,37 @@
+"""
+Class for automated operating system installation.
+
+Oz is a set of classes to do automated operating system installation. It
+has built-in knowledge of the proper things to do for each of the supported
+operating systems, so the data that the user must provide is very minimal.
+This ... | |
dfa1424896b015fe376c523e13d0a59ceacca298 | test/797-add-missing-boundaries.py | test/797-add-missing-boundaries.py | # NE data - no OSM elements
# boundary between NV and CA is _also_ a "statistical" boundary
assert_has_feature(
7, 21, 49, 'boundaries',
{ 'kind': 'state' })
# boundary between MT and ND is _also_ a "statistical meta" boundary
assert_has_feature(
7, 21, 49, 'boundaries',
{ 'kind': 'state' })
| # NE data - no OSM elements
# boundary between NV and CA is _also_ a "statistical" boundary
assert_has_feature(
7, 21, 49, 'boundaries',
{ 'kind': 'state' })
# boundary between MT and ND is _also_ a "statistical meta" boundary
assert_has_feature(
7, 27, 44, 'boundaries',
{ 'kind': 'state' })
| Test more than one thing | Test more than one thing
The test _should_ have tested two boundaries with different `featurecla`, but ended up being a copy/paste error. This fixes that. | Python | mit | mapzen/vector-datasource,mapzen/vector-datasource,mapzen/vector-datasource | ---
+++
@@ -6,5 +6,5 @@
# boundary between MT and ND is _also_ a "statistical meta" boundary
assert_has_feature(
- 7, 21, 49, 'boundaries',
+ 7, 27, 44, 'boundaries',
{ 'kind': 'state' }) |
e42019c5648dddc2f705836401e422dd4077b55e | bottle_websocket/__init__.py | bottle_websocket/__init__.py | from plugin import websocket
from server import GeventWebSocketServer
__all__ = ['websocket', 'GeventWebSocketServer']
__version__ = '0.2.8'
| from .plugin import websocket
from .server import GeventWebSocketServer
__all__ = ['websocket', 'GeventWebSocketServer']
__version__ = '0.2.8'
| Update import syntax to fit python3 | Update import syntax to fit python3 | Python | mit | zeekay/bottle-websocket | ---
+++
@@ -1,5 +1,5 @@
-from plugin import websocket
-from server import GeventWebSocketServer
+from .plugin import websocket
+from .server import GeventWebSocketServer
__all__ = ['websocket', 'GeventWebSocketServer']
__version__ = '0.2.8' |
40d1645f4ad2aca18203ee5ebef1cbbecffa3c51 | project/apps/api/signals.py | project/apps/api/signals.py | from django.db.models.signals import (
post_save,
)
from django.dispatch import receiver
from rest_framework.authtoken.models import Token
from django.conf import settings
from .models import (
Contest,
)
@receiver(post_save, sender=settings.AUTH_USER_MODEL)
def user_post_save(sender, instance=None, creat... | from django.db.models.signals import (
post_save,
)
from django.dispatch import receiver
from rest_framework.authtoken.models import Token
from django.conf import settings
from .models import (
Contest,
)
@receiver(post_save, sender=settings.AUTH_USER_MODEL)
def user_post_save(sender, instance=None, creat... | Add check for fixture loading | Add check for fixture loading
| Python | bsd-2-clause | dbinetti/barberscore-django,barberscore/barberscore-api,dbinetti/barberscore-django,barberscore/barberscore-api,dbinetti/barberscore,barberscore/barberscore-api,dbinetti/barberscore,barberscore/barberscore-api | ---
+++
@@ -20,7 +20,8 @@
@receiver(post_save, sender=Contest)
-def contest_post_save(sender, instance=None, created=False, **kwargs):
- if created:
- instance.build()
- instance.save()
+def contest_post_save(sender, instance=None, created=False, raw=False, **kwargs):
+ if not raw:
+ i... |
d48ae791364a0d29d60636adfde1f143858794cd | api/identifiers/serializers.py | api/identifiers/serializers.py | from rest_framework import serializers as ser
from api.base.utils import absolute_reverse
from api.base.serializers import JSONAPISerializer, RelationshipField, IDField, LinksField
class IdentifierSerializer(JSONAPISerializer):
category = ser.CharField(read_only=True)
filterable_fields = frozenset(['categor... | from rest_framework import serializers as ser
from api.base.utils import absolute_reverse
from api.base.serializers import JSONAPISerializer, RelationshipField, IDField, LinksField
class IdentifierSerializer(JSONAPISerializer):
category = ser.CharField(read_only=True)
filterable_fields = frozenset(['categor... | Remove rogue debugger how embarassing | Remove rogue debugger how embarassing
| Python | apache-2.0 | rdhyee/osf.io,alexschiller/osf.io,Johnetordoff/osf.io,caneruguz/osf.io,acshi/osf.io,abought/osf.io,amyshi188/osf.io,erinspace/osf.io,DanielSBrown/osf.io,chrisseto/osf.io,leb2dg/osf.io,mattclark/osf.io,samchrisinger/osf.io,alexschiller/osf.io,mluke93/osf.io,monikagrabowska/osf.io,mfraezz/osf.io,DanielSBrown/osf.io,crcre... | ---
+++
@@ -30,7 +30,6 @@
return obj._id
def get_detail_url(self, obj):
- import ipdb; ipdb.set_trace()
return '{}/identifiers/{}'.format(obj.absolute_api_v2_url, obj._id)
def self_url(self, obj): |
b375210cf7c6d6d327af61206b6ab36aaaeec6e0 | posts/admin.py | posts/admin.py | from django.contrib import admin
from reversion import VersionAdmin
from base.admin import PrettyFilterMixin, RestrictedCompetitionAdminMixin
from base.util import admin_commentable, editonly_fieldsets
from .models import Post
# Reversion-enabled Admin for problems
@admin_commentable
@editonly_fieldsets
class PostA... | from django.contrib import admin
from reversion import VersionAdmin
from base.admin import PrettyFilterMixin, RestrictedCompetitionAdminMixin
from base.util import admin_commentable, editonly_fieldsets
from .models import Post
# Reversion-enabled Admin for problems
@admin_commentable
@editonly_fieldsets
class PostA... | Add ability to filter posts by site | posts: Add ability to filter posts by site
| Python | mit | rtrembecky/roots,tbabej/roots,rtrembecky/roots,tbabej/roots,rtrembecky/roots,matus-stehlik/roots,matus-stehlik/roots,tbabej/roots,matus-stehlik/roots | ---
+++
@@ -23,6 +23,7 @@
list_filter = (
'published',
+ 'sites',
'added_at',
'added_by'
) |
cd201b193ae71c82f006d9532f926bbc49b6fce9 | datacommons/__init__.py | datacommons/__init__.py | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | Fix relative import that does not work with py 3. | Fix relative import that does not work with py 3.
| Python | apache-2.0 | datacommonsorg/api-python,datacommonsorg/api-python | ---
+++
@@ -11,4 +11,4 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
-from datacommons import Client
+from .datacommons import Client |
4fde2d2c5ccd82373dab802f731d83cc2d3345df | tests/tests_core/test_core_util.py | tests/tests_core/test_core_util.py | import numpy as np
from poliastro.core import util
def test_rotation_matrix_x():
result = util.rotation_matrix(0.218, 0)
expected = np.array(
[[1.0, 0.0, 0.0], [0.0, 0.97633196, -0.21627739], [0.0, 0.21627739, 0.97633196]]
)
assert np.allclose(expected, result)
def test_rotatio... | import numpy as np
from poliastro.core import util
def test_rotation_matrix_x():
result = util.rotation_matrix(0.218, 0)
expected = np.array(
[[1.0, 0.0, 0.0], [0.0, 0.97633196, -0.21627739], [0.0, 0.21627739, 0.97633196]]
)
assert np.allclose(expected, result)
def test_rotation_matrix_y():... | Fix line endings in file | Fix line endings in file
| Python | mit | Juanlu001/poliastro,Juanlu001/poliastro,Juanlu001/poliastro,poliastro/poliastro | |
ccdfafcf58fdf3dc1d95acc090445e56267bd4ab | numpy/distutils/__init__.py | numpy/distutils/__init__.py |
from __version__ import version as __version__
# Must import local ccompiler ASAP in order to get
# customized CCompiler.spawn effective.
import ccompiler
import unixccompiler
from info import __doc__
from npy_pkg_config import *
try:
import __config__
_INSTALLED = True
except ImportError:
_INSTALLED = ... | import sys
if sys.version_info[0] < 3:
from __version__ import version as __version__
# Must import local ccompiler ASAP in order to get
# customized CCompiler.spawn effective.
import ccompiler
import unixccompiler
from info import __doc__
from npy_pkg_config import *
try:
imp... | Fix relative import in top numpy.distutils. | Fix relative import in top numpy.distutils.
| Python | bsd-3-clause | stefanv/numpy,madphysicist/numpy,matthew-brett/numpy,githubmlai/numpy,Dapid/numpy,ahaldane/numpy,bringingheavendown/numpy,GrimDerp/numpy,matthew-brett/numpy,KaelChen/numpy,dwf/numpy,ewmoore/numpy,shoyer/numpy,GaZ3ll3/numpy,stefanv/numpy,gfyoung/numpy,mhvk/numpy,numpy/numpy,SunghanKim/numpy,Anwesh43/numpy,rgommers/numpy... | ---
+++
@@ -1,19 +1,35 @@
+import sys
-from __version__ import version as __version__
+if sys.version_info[0] < 3:
+ from __version__ import version as __version__
+ # Must import local ccompiler ASAP in order to get
+ # customized CCompiler.spawn effective.
+ import ccompiler
+ import unixccompiler
... |
fa0821f49e26f508971c2f3c97b8696c98901e49 | opensimplex_test.py | opensimplex_test.py |
from PIL import Image # Depends on the Pillow lib
from opensimplex import OpenSimplexNoise
WIDTH = 512
HEIGHT = 512
FEATURE_SIZE = 24
def main():
simplex = OpenSimplexNoise()
im = Image.new('L', (WIDTH, HEIGHT))
for y in range(0, HEIGHT):
for x in range(0, WIDTH):
#value = simplex.n... |
from PIL import Image # Depends on the Pillow lib
from opensimplex import OpenSimplexNoise
WIDTH = 512
HEIGHT = 512
FEATURE_SIZE = 24
def main():
simplex = OpenSimplexNoise()
im = Image.new('L', (WIDTH, HEIGHT))
for y in range(0, HEIGHT):
for x in range(0, WIDTH):
#value = simplex.n... | Save the generated noise image. | Save the generated noise image.
| Python | mit | lmas/opensimplex,antiface/opensimplex | ---
+++
@@ -19,6 +19,7 @@
im.putpixel((x, y), color)
im.show()
+ im.save('noise.png')
if __name__ == '__main__':
main() |
6da81cd09aa39d92e39b06bb2a65e1d1b1306b35 | config.py | config.py | import os
class Config:
SECRET_KEY = os.environ.get('SECRET_KEY')
SQLALCHEMY_COMMIT_ON_TEARDOWN = True
@staticmethod
def init_app(app):
pass
class DevelopmentConfig(Config):
DEBUG = True
SQLALCHEMY_DATABASE_URI = os.environ.get('DEV_DATABASE_URL')
class TestingConfig(Config):
... | import os
basedir = os.path.abspath(os.path.dirname(__file__))
class Config:
SECRET_KEY = os.environ.get('SECRET_KEY')
SQLALCHEMY_COMMIT_ON_TEARDOWN = True
@staticmethod
def init_app(app):
pass
class DevelopmentConfig(Config):
DEBUG = True
if os.environ.get('DEV_DATABASE_URL'):
... | Use sqlite if no DEV_DATABASE specified in development env | Use sqlite if no DEV_DATABASE specified in development env
| Python | mit | boltzj/movies-in-sf | ---
+++
@@ -1,5 +1,6 @@
import os
+basedir = os.path.abspath(os.path.dirname(__file__))
class Config:
SECRET_KEY = os.environ.get('SECRET_KEY')
@@ -12,7 +13,11 @@
class DevelopmentConfig(Config):
DEBUG = True
- SQLALCHEMY_DATABASE_URI = os.environ.get('DEV_DATABASE_URL')
+
+ if os.environ.get... |
e8ab72d069633aca71ae60d62ece3c0146289b18 | xc7/utils/vivado_output_timing.py | xc7/utils/vivado_output_timing.py | """ Utility for generating TCL script to output timing information from a
design checkpoint.
"""
import argparse
def create_runme(f_out, args):
print(
"""
report_timing_summary
source {util_tcl}
write_timing_info timing_{name}.json5
""".format(name=args.name, util_tcl=args.util_tcl),
file=f_out
... | """ Utility for generating TCL script to output timing information from a
design checkpoint.
"""
import argparse
def create_output_timing(f_out, args):
print(
"""
source {util_tcl}
write_timing_info timing_{name}.json5
report_timing_summary
""".format(name=args.name, util_tcl=args.util_tcl),
file... | Correct function name and put report_timing_summary at end of script. | Correct function name and put report_timing_summary at end of script.
Signed-off-by: Keith Rothman <1bc19627a439baf17510dc2d0b2d250c96d445a5@users.noreply.github.com>
| Python | isc | SymbiFlow/symbiflow-arch-defs,SymbiFlow/symbiflow-arch-defs | ---
+++
@@ -4,13 +4,13 @@
import argparse
-def create_runme(f_out, args):
+def create_output_timing(f_out, args):
print(
"""
-report_timing_summary
-
source {util_tcl}
write_timing_info timing_{name}.json5
+
+report_timing_summary
""".format(name=args.name, util_tcl=args.util_tcl),
file... |
3bd8354db0931e8721e397a32bf696b023e692b7 | test/664-raceway.py | test/664-raceway.py | # https://www.openstreetmap.org/way/28825404
assert_has_feature(
16, 10476, 25242, 'roads',
{ 'id': 28825404, 'kind': 'minor_road', 'highway': 'raceway' })
# Thunderoad Speedway Go-carts https://www.openstreetmap.org/way/59440900
assert_has_feature(
16, 10516, 25247, 'roads',
{ 'id': 59440900, 'kind': ... | # https://www.openstreetmap.org/way/28825404
assert_has_feature(
16, 10476, 25242, 'roads',
{ 'id': 28825404, 'kind': 'minor_road', 'highway': 'raceway' })
# https://www.openstreetmap.org/way/59440900
# Thunderoad Speedway Go-carts
assert_has_feature(
16, 10516, 25247, 'roads',
{ 'id': 59440900, 'kind'... | Put weblink on separate line | Put weblink on separate line
| Python | mit | mapzen/vector-datasource,mapzen/vector-datasource,mapzen/vector-datasource | ---
+++
@@ -3,7 +3,8 @@
16, 10476, 25242, 'roads',
{ 'id': 28825404, 'kind': 'minor_road', 'highway': 'raceway' })
-# Thunderoad Speedway Go-carts https://www.openstreetmap.org/way/59440900
+# https://www.openstreetmap.org/way/59440900
+# Thunderoad Speedway Go-carts
assert_has_feature(
16, 10516, 2... |
0321d00276d803d5abee63f2a899681bd569235a | noisytweets/keywordsmanager.py | noisytweets/keywordsmanager.py | import time
from noisytweets.tweetstreamer import TweetStreamer
class KeywordsManager:
max_keywords = 100
ping_timeout = 30
def __init__(self):
self._keywords_tracking = []
self._keywords_info = {}
self._tweetstreamer = TweetStreamer()
def _get_dead_keywords():
dead... | import time
from noisytweets.tweetstreamer import TweetStreamer
class KeywordsManager:
max_keywords = 100
ping_timeout = 30
def __init__(self):
self._keywords_tracking = []
self._keywords_info = {}
self._tweetstreamer = TweetStreamer()
def _get_dead_keywords():
dead... | Return if keyword is already being tracked. | Return if keyword is already being tracked.
| Python | agpl-3.0 | musalbas/listentotwitter,musalbas/listentotwitter,musalbas/listentotwitter | ---
+++
@@ -30,6 +30,7 @@
def ping_keyword(self, keyword):
if keyword in self._keywords_tracking:
self._keywords_info[keyword]['last_ping'] = time.time()
+ return
# TODO: respect max_keywords
|
998ab6f457a04ab24bbe062d9704242a207356fb | numpy/setupscons.py | numpy/setupscons.py | #!/usr/bin/env python
def configuration(parent_package='',top_path=None):
from numpy.distutils.misc_util import Configuration
config = Configuration('numpy',parent_package,top_path, setup_name = 'setupscons.py')
config.add_subpackage('distutils')
config.add_subpackage('testing')
config.add_subpacka... | #!/usr/bin/env python
from os.path import join as pjoin
def configuration(parent_package='',top_path=None):
from numpy.distutils.misc_util import Configuration
from numpy.distutils.misc_util import scons_generate_config_py
pkgname = 'numpy'
config = Configuration(pkgname,parent_package,top_path, setup... | Handle inplace generation of __config__. | Handle inplace generation of __config__.
git-svn-id: 77a43f9646713b91fea7788fad5dfbf67e151ece@5583 94b884b6-d6fd-0310-90d3-974f1d3f35e1
| Python | bsd-3-clause | efiring/numpy-work,Ademan/NumPy-GSoC,jasonmccampbell/numpy-refactor-sprint,efiring/numpy-work,illume/numpy3k,Ademan/NumPy-GSoC,illume/numpy3k,teoliphant/numpy-refactor,jasonmccampbell/numpy-refactor-sprint,chadnetzer/numpy-gaurdro,chadnetzer/numpy-gaurdro,efiring/numpy-work,jasonmccampbell/numpy-refactor-sprint,teoliph... | ---
+++
@@ -1,8 +1,12 @@
#!/usr/bin/env python
+from os.path import join as pjoin
def configuration(parent_package='',top_path=None):
from numpy.distutils.misc_util import Configuration
- config = Configuration('numpy',parent_package,top_path, setup_name = 'setupscons.py')
+ from numpy.distutils.misc_u... |
7644ed0e5f0fb3f57798ae65ecd87488d6a7cee1 | sync_watchdog.py | sync_watchdog.py | from tapiriik.database import db, close_connections
from tapiriik.sync import SyncStep
import os
import signal
import socket
from datetime import timedelta, datetime
print("Sync watchdog run at %s" % datetime.now())
host = socket.gethostname()
for worker in db.sync_workers.find({"Host": host}):
# Does the proces... | from tapiriik.database import db, close_connections
from tapiriik.sync import SyncStep
import os
import signal
import socket
from datetime import timedelta, datetime
print("Sync watchdog run at %s" % datetime.now())
host = socket.gethostname()
for worker in db.sync_workers.find({"Host": host}):
# Does the proces... | Remove locking logic from sync watchdog | Remove locking logic from sync watchdog
| Python | apache-2.0 | abs0/tapiriik,marxin/tapiriik,cgourlay/tapiriik,cheatos101/tapiriik,brunoflores/tapiriik,olamy/tapiriik,abs0/tapiriik,abs0/tapiriik,cmgrote/tapiriik,marxin/tapiriik,cheatos101/tapiriik,mjnbike/tapiriik,cheatos101/tapiriik,campbellr/tapiriik,gavioto/tapiriik,abhijit86k/tapiriik,cpfair/tapiriik,dmschreiber/tapiriik,niosu... | ---
+++
@@ -32,9 +32,5 @@
# Clear it from the database if it's not alive.
if not alive:
db.sync_workers.remove({"_id": worker["_id"]})
- # Unlock users attached to it.
- for user in db.users.find({"SynchronizationWorker": worker["Process"], "SynchronizationHost": host}):
- ... |
67b83335956adc0892f32a21099e199dd2753a5d | todoman/__init__.py | todoman/__init__.py | from todoman import version
__version__ = version.version
__documentation__ = "https://todoman.rtfd.org/en/latest/"
| from todoman import version # type: ignore
__version__ = version.version
__documentation__ = "https://todoman.rtfd.org/en/latest/"
| Make mypy ignore auto-generated file | Make mypy ignore auto-generated file
It won't be present in CI, and may not be present when developing.
| Python | isc | pimutils/todoman | ---
+++
@@ -1,4 +1,4 @@
-from todoman import version
+from todoman import version # type: ignore
__version__ = version.version
__documentation__ = "https://todoman.rtfd.org/en/latest/" |
4ad6f599cdcebc34e9f32a5ab8eaf44a3845ed21 | pinry/pins/forms.py | pinry/pins/forms.py | from django import forms
from .models import Pin
class PinForm(forms.ModelForm):
url = forms.CharField(required=False)
image = forms.ImageField(label='or Upload', required=False)
class Meta:
model = Pin
fields = ['url', 'image', 'description', 'tags']
def clean(self):
cleane... | from django import forms
from .models import Pin
class PinForm(forms.ModelForm):
url = forms.CharField(required=False)
image = forms.ImageField(label='or Upload', required=False)
_errors = {
'not_image': 'Requested URL is not an image file. Only images are currently supported.',
'pinned'... | Move ValidationError messages to a dictionary that can be accessed from PinForm.clean | Move ValidationError messages to a dictionary that can be accessed from PinForm.clean
| Python | bsd-2-clause | supervacuo/pinry,Stackato-Apps/pinry,wangjun/pinry,dotcom900825/xishi,QLGu/pinry,pinry/pinry,lapo-luchini/pinry,dotcom900825/xishi,supervacuo/pinry,MSylvia/pinry,Stackato-Apps/pinry,lapo-luchini/pinry,wangjun/pinry,QLGu/pinry,pinry/pinry,MSylvia/pinry,MSylvia/pinry,pinry/pinry,Stackato-Apps/pinry,pinry/pinry,supervacuo... | ---
+++
@@ -6,6 +6,13 @@
class PinForm(forms.ModelForm):
url = forms.CharField(required=False)
image = forms.ImageField(label='or Upload', required=False)
+
+ _errors = {
+ 'not_image': 'Requested URL is not an image file. Only images are currently supported.',
+ 'pinned': 'URL has already... |
b8bad6cda4bdc78d15303002db6687fbae447e51 | openacademy/model/openacademy_course.py | openacademy/model/openacademy_course.py | from openerp import models, fields, api
class Course(models.Model):
_name = 'openacademy.course' # Model odoo name
name = fields.Char(string='Title', required=True) # Field reserved to identified name record
description = fields.Text(string='Description')
responsible_id = fields.Many2one('res.use... | from openerp import models, fields, api
class Course(models.Model):
_name = 'openacademy.course' # Model odoo name
name = fields.Char(string='Title', required=True) # Field reserved to identified name record
description = fields.Text(string='Description')
responsible_id = fields.Many2one('res.use... | Modify copy method into inherit | [REF] openacademy: Modify copy method into inherit
| Python | apache-2.0 | felipejta/openacademy-project_072015 | ---
+++
@@ -21,3 +21,16 @@
'UNIQUE(name)',
"The course title must be unique"),
]
+
+ @api.one #api.one send default params: cr, uid, id, context
+ def copy(self, default=None):
+
+ copied_count = self.search_count(
+ [('name', '=like', u"Copy of {}%".format(self.name))... |
f80bd7dbb1b66f3fec52200ecfbc50d779caca05 | src/tmlib/workflow/jterator/args.py | src/tmlib/workflow/jterator/args.py | from tmlib.workflow.args import Argument
from tmlib.workflow.args import BatchArguments
from tmlib.workflow.args import SubmissionArguments
from tmlib.workflow.args import ExtraArguments
from tmlib.workflow.registry import batch_args
from tmlib.workflow.registry import submission_args
from tmlib.workflow.registry impor... | from tmlib.workflow.args import Argument
from tmlib.workflow.args import BatchArguments
from tmlib.workflow.args import SubmissionArguments
from tmlib.workflow.args import ExtraArguments
from tmlib.workflow.registry import batch_args
from tmlib.workflow.registry import submission_args
from tmlib.workflow.registry impor... | Fix bug in function that lists existing jterator projects | Fix bug in function that lists existing jterator projects
| Python | agpl-3.0 | TissueMAPS/TmLibrary,TissueMAPS/TmLibrary,TissueMAPS/TmLibrary,TissueMAPS/TmLibrary,TissueMAPS/TmLibrary | ---
+++
@@ -37,11 +37,14 @@
'''
import os
from tmlib.workflow.jterator.project import list_projects
- return [
- os.path.basename(project)
- for project
- in list_projects(os.path.join(experiment.workflow_location, 'jterator'))
- ]
+ directory = os.path.join(experiment.wor... |
86df5fe205e3a913f5048bef3aa29804dd731d4b | docdown/__init__.py | docdown/__init__.py | # -*- coding: utf-8 -*-
__author__ = """Jason Emerick"""
__email__ = 'jason@mobelux.com'
__version__ = '__version__ = '__version__ = '__version__ = '0.2.7''''
| # -*- coding: utf-8 -*-
__author__ = """Jason Emerick"""
__email__ = 'jason@mobelux.com'
__version__ = '0.2.7'
| Fix (another) syntax error. Thanks, bumpversion | Fix (another) syntax error. Thanks, bumpversion
| Python | bsd-3-clause | livio/DocDown-Python,livio/DocDown-Python,livio/DocDown-Python,livio/DocDown-Python,livio/DocDown-Python,livio/DocDown-Python | ---
+++
@@ -2,4 +2,4 @@
__author__ = """Jason Emerick"""
__email__ = 'jason@mobelux.com'
-__version__ = '__version__ = '__version__ = '__version__ = '0.2.7''''
+__version__ = '0.2.7' |
7e1d42e6730336296ef3b702eb4cde64ce8410c5 | dockerpuller/app.py | dockerpuller/app.py | from flask import Flask
from flask import request
from flask import jsonify
import json
import subprocess
app = Flask(__name__)
config = None
@app.route('/', methods=['POST'])
def hook_listen():
if request.method == 'POST':
token = request.args.get('token')
if token == config['token']:
... | from flask import Flask
from flask import request
from flask import jsonify
import json
import subprocess
app = Flask(__name__)
config = None
@app.route('/', methods=['POST'])
def hook_listen():
if request.method == 'POST':
token = request.args.get('token')
if token == config['token']:
... | Define default values for host and port | Define default values for host and port
| Python | mit | glowdigitalmedia/docker-puller,nicocoffo/docker-puller,nicocoffo/docker-puller,glowdigitalmedia/docker-puller | ---
+++
@@ -37,4 +37,4 @@
if __name__ == '__main__':
config = load_config()
- app.run(host=config['host'], port=config['port'])
+ app.run(host=config.get('host', 'localhost'), port=config.get('port', 8000)) |
9808e97747785c27387ad1ce9ffc3e9a05c80f08 | enigma.py | enigma.py | import string
class Steckerbrett:
def __init__(self):
pass
class Walzen:
def __init__(self):
pass
class Enigma:
def __init__(self):
pass
def cipher(self, message):
pass | import string
class Steckerbrett:
def __init__(self):
pass
class Umkehrwalze:
def __init__(self, wiring):
self.wiring = wiring
def encode(self, letter):
return self.wiring[string.ascii_uppercase.index(letter)]
class Walzen:
def __init__(self):
pass
class Enigma:
... | Create class for the reflectors | Create class for the reflectors
| Python | mit | ranisalt/enigma | ---
+++
@@ -4,6 +4,14 @@
class Steckerbrett:
def __init__(self):
pass
+
+
+class Umkehrwalze:
+ def __init__(self, wiring):
+ self.wiring = wiring
+
+ def encode(self, letter):
+ return self.wiring[string.ascii_uppercase.index(letter)]
class Walzen: |
e7cb98a1006d292a96670a11c807d0bbf9075ebd | scenario/_consts.py | scenario/_consts.py | from collections import OrderedDict
ACTORS = list('NRAIOVF')
FILE_COMMANDS = ['copy', 'compare']
VERBOSITY = OrderedDict(
[ ('RETURN_CODE', 0),
('RESULT' , 1),
('ERROR' , 2),
('EXECUTION' , 3),
('DEBUG' , 4),
])
VERBOSITY_DEFAULT... | from collections import OrderedDict
ACTORS = list('NRAIOVF')
FILE_COMMANDS = ['copy', 'compare']
VERBOSITY = OrderedDict(
[ ('RETURN_CODE', 0),
('RESULT' , 1),
('ERROR' , 2),
('EXECUTION' , 3),
('DEBUG' , 4),
])
VERBOSITY_DEFAULT... | Update timeout to 10 seconds | Update timeout to 10 seconds
| Python | mit | shlomihod/scenario,shlomihod/scenario,shlomihod/scenario | ---
+++
@@ -14,4 +14,4 @@
VERBOSITY_DEFAULT = VERBOSITY['RESULT']
-TIMEOUT_DEFAULT = 1
+TIMEOUT_DEFAULT = 10 |
f710479e01d50dad03133d76b349398ab11e8675 | backend/constants.py | backend/constants.py | # Fill out with value from
# https://firebase.corp.google.com/project/trogdors-29fa4/settings/database
FIREBASE_SECRET = "ZiD9uLhDnrLq2n416MjWjn0JOrci6H0oGm7bKyVN"
FIREBASE_EMAIL = ""
ALLEGIANCES = ('horde', 'resistance', 'none')
TEST_ENDPOINT = 'http://localhost:8080'
PLAYER_VOLUNTEER_ARGS = (
'helpAdvertising', '... | # Fill out with value from
# https://console.firebase.google.com/project/trogdors-29fa4/settings/serviceaccounts/databasesecrets
FIREBASE_SECRET = ""
FIREBASE_EMAIL = ""
ALLEGIANCES = ('horde', 'resistance', 'none')
TEST_ENDPOINT = 'http://localhost:8080'
PLAYER_VOLUNTEER_ARGS = (
'helpAdvertising', 'helpLogistics'... | Drop FIREBASE_SECRET (since been revoked) | Drop FIREBASE_SECRET (since been revoked)
| Python | apache-2.0 | google/playhvz,google/playhvz,google/playhvz,google/playhvz,google/playhvz,google/playhvz,google/playhvz,google/playhvz | ---
+++
@@ -1,6 +1,6 @@
# Fill out with value from
-# https://firebase.corp.google.com/project/trogdors-29fa4/settings/database
-FIREBASE_SECRET = "ZiD9uLhDnrLq2n416MjWjn0JOrci6H0oGm7bKyVN"
+# https://console.firebase.google.com/project/trogdors-29fa4/settings/serviceaccounts/databasesecrets
+FIREBASE_SECRET = ""
F... |
b85751e356c091d2dffe8366a94fbb42bfcad34e | src/SMESH_SWIG/SMESH_GroupLyingOnGeom.py | src/SMESH_SWIG/SMESH_GroupLyingOnGeom.py | import SMESH
def BuildGroupLyingOn(theMesh, theElemType, theName, theShape):
aMeshGen = salome.lcc.FindOrLoadComponent("FactoryServer", "SMESH")
aFilterMgr = aMeshGen.CreateFilterManager()
aFilter = aFilterMgr.CreateFilter()
aLyingOnGeom = aFilterMgr.CreateLyingOnGeom()
aLyingOnGeom.SetGeom(th... | from meshpy import *
def BuildGroupLyingOn(theMesh, theElemType, theName, theShape):
aFilterMgr = smesh.CreateFilterManager()
aFilter = aFilterMgr.CreateFilter()
aLyingOnGeom = aFilterMgr.CreateLyingOnGeom()
aLyingOnGeom.SetGeom(theShape)
aLyingOnGeom.SetElementType(theElemType)
aFilte... | Fix a bug - salome.py is not imported here and this causes run-time Python exception | Fix a bug - salome.py is not imported here and this causes run-time Python exception
| Python | lgpl-2.1 | FedoraScientific/salome-smesh,FedoraScientific/salome-smesh,FedoraScientific/salome-smesh,FedoraScientific/salome-smesh | ---
+++
@@ -1,9 +1,7 @@
-import SMESH
+from meshpy import *
def BuildGroupLyingOn(theMesh, theElemType, theName, theShape):
- aMeshGen = salome.lcc.FindOrLoadComponent("FactoryServer", "SMESH")
-
- aFilterMgr = aMeshGen.CreateFilterManager()
+ aFilterMgr = smesh.CreateFilterManager()
aFilter = aFilte... |
c3957dbb25a8b5eeeccd37f218976721249b93e2 | src/competition/tests/validator_tests.py | src/competition/tests/validator_tests.py | from django.test import TestCase
from django.template.defaultfilters import slugify
from django.core.exceptions import ValidationError
from competition.validators import greater_than_zero, non_negative, validate_name
class ValidationFunctionTest(TestCase):
def test_greater_than_zero(self):
"""Check grea... | from django.test import TestCase
from django.template.defaultfilters import slugify
from django.core.exceptions import ValidationError
from competition.validators import greater_than_zero, non_negative, validate_name
class ValidationFunctionTest(TestCase):
def test_greater_than_zero(self):
"""Check grea... | Correct unit tests to comply with new team name RE | Correct unit tests to comply with new team name RE
| Python | bsd-3-clause | michaelwisely/django-competition,michaelwisely/django-competition,michaelwisely/django-competition | ---
+++
@@ -23,7 +23,7 @@
"""Check name validator"""
# Try some valid names
valid_names = ['MegaMiner-AI 10: Galapagos', 'Chess 2012', '2012 Chess',
- 'B.L.O.O.M. 2: Revenge of the Flowers', '__main__']
+ 'B.L.O.O.M. 2: Revenge of the Flowers']
... |
5ab6c21bbcaaf9b919c9a796ec00d1a805ec1b0d | apps/bplan/emails.py | apps/bplan/emails.py | from adhocracy4.emails import Email
class OfficeWorkerNotification(Email):
template_name = 'meinberlin_bplan/emails/office_worker_notification'
@property
def office_worker_email(self):
project = self.object.project
return project.externalproject.bplan.office_worker_email
def get_rece... | from adhocracy4.emails import Email
class OfficeWorkerNotification(Email):
template_name = 'meinberlin_bplan/emails/office_worker_notification'
@property
def office_worker_email(self):
project = self.object.project
return project.externalproject.bplan.office_worker_email
def get_rece... | Set bplan default email to english as default | Set bplan default email to english as default
| Python | agpl-3.0 | liqd/a4-meinberlin,liqd/a4-meinberlin,liqd/a4-meinberlin,liqd/a4-meinberlin | ---
+++
@@ -20,7 +20,6 @@
class SubmitterConfirmation(Email):
template_name = 'meinberlin_bplan/emails/submitter_confirmation'
- fallback_language = 'de'
def get_receivers(self):
return [self.object.email] |
fa86706ae6cf77ef71402bb86d12cdd3cb79dafc | shub/logout.py | shub/logout.py | import re, click
from shub.utils import get_key_netrc, NETRC_FILE
@click.command(help='remove Scrapinghug API key from the netrc file')
@click.pass_context
def cli(context):
if not get_key_netrc():
context.fail('Key not found in netrc file')
with open(NETRC_FILE, 'r+') as out:
key_re = r'machin... | import re, click
from shub.utils import get_key_netrc, NETRC_FILE
@click.command(help='remove Scrapinghug API key from the netrc file')
@click.pass_context
def cli(context):
if not get_key_netrc():
context.fail('Key not found in netrc file')
error, msg = remove_sh_key()
if error:
context.fa... | Add verification for removing key from netrc file | Add verification for removing key from netrc file
| Python | bsd-3-clause | scrapinghub/shub | ---
+++
@@ -6,15 +6,31 @@
def cli(context):
if not get_key_netrc():
context.fail('Key not found in netrc file')
- with open(NETRC_FILE, 'r+') as out:
- key_re = r'machine\s+scrapinghub\.com\s+login\s+\w+\s+password\s+""\s*'
- content = out.read()
- content_new = re.sub(key_re, '... |
5ff35d282b61cfdfc53deaa0f1bc0f83850ff7a5 | downstream_node/lib/utils.py | downstream_node/lib/utils.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
def model_to_json(model):
""" Returns a JSON representation of an SQLAlchemy-backed object.
From Zato: https://github.com/zatosource/zato
"""
_json = {}
_json['fields'] = {}
_json['pk'] = getattr(model, 'id')
for col in model._sa... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
def model_to_json(model):
""" Returns a JSON representation of an SQLAlchemy-backed object.
From Zato: https://github.com/zatosource/zato
"""
_json = {}
_json['fields'] = {}
_json['pk'] = getattr(model, 'id')
for col in model._sa... | Add helper method to turn queries into json-serializable lists | Add helper method to turn queries into json-serializable lists
| Python | mit | Storj/downstream-node,Storj/downstream-node | ---
+++
@@ -18,3 +18,12 @@
return json.dumps([_json])
+
+def query_to_list(query):
+ lst = []
+ for row in query.all():
+ row_dict = {}
+ for col in row.__mapper__.mapped_table.columns:
+ row_dict[col.name] = getattr(row, col.name)
+ lst.append(row_dict)
+ return lst |
bafef6a175116aff519579822f2382e8fbbd8808 | spotipy/__init__.py | spotipy/__init__.py | VERSION='2.4.5'
from client import *
from oauth2 import *
from util import *
| VERSION='2.4.5'
from .client import *
from .oauth2 import *
from .util import *
| Make import statements explicit relative imports | Make import statements explicit relative imports
| Python | mit | plamere/spotipy | ---
+++
@@ -1,5 +1,5 @@
VERSION='2.4.5'
-from client import *
-from oauth2 import *
-from util import *
+from .client import *
+from .oauth2 import *
+from .util import * |
a589aa63f250a347ab24b7309e65ef25c7281437 | src/sentry/utils/imports.py | src/sentry/utils/imports.py | """
sentry.utils.imports
~~~~~~~~~~~~~~~~~~~~
:copyright: (c) 2010-2014 by the Sentry Team, see AUTHORS for more details.
:license: BSD, see LICENSE for more details.
"""
from __future__ import absolute_import
import pkgutil
import six
class ModuleProxyCache(dict):
def __missing__(self, key):
if '.' not... | """
sentry.utils.imports
~~~~~~~~~~~~~~~~~~~~
:copyright: (c) 2010-2014 by the Sentry Team, see AUTHORS for more details.
:license: BSD, see LICENSE for more details.
"""
from __future__ import absolute_import
import pkgutil
import six
class ModuleProxyCache(dict):
def __missing__(self, key):
if '.' not... | Correct import behavior to prevent Runtime error | Correct import behavior to prevent Runtime error
| Python | bsd-3-clause | gencer/sentry,jean/sentry,fotinakis/sentry,gencer/sentry,looker/sentry,BuildingLink/sentry,gencer/sentry,jean/sentry,JackDanger/sentry,fotinakis/sentry,BuildingLink/sentry,beeftornado/sentry,zenefits/sentry,beeftornado/sentry,looker/sentry,ifduyue/sentry,ifduyue/sentry,JamesMura/sentry,ifduyue/sentry,JamesMura/sentry,B... | ---
+++
@@ -46,7 +46,9 @@
>>> import_submodules(locals(), __name__, __path__)
"""
for loader, module_name, is_pkg in pkgutil.walk_packages(path, root_module + '.'):
- module = loader.find_module(module_name).load_module(module_name)
+ # this causes a Runtime error with model conflicts
+ ... |
d35aa7344ed96c8e1e17ea74ba14a760a3c8a418 | spacy/about.py | spacy/about.py | # inspired from:
# https://python-packaging-user-guide.readthedocs.org/en/latest/single_source_version/
# https://github.com/pypa/warehouse/blob/master/warehouse/__about__.py
__title__ = 'spacy'
__version__ = '1.0.0+a'
__summary__ = 'Industrial-strength NLP'
__uri__ = 'https://spacy.io'
__author__ = 'Matthew Honnibal... | # inspired from:
# https://python-packaging-user-guide.readthedocs.org/en/latest/single_source_version/
# https://github.com/pypa/warehouse/blob/master/warehouse/__about__.py
__title__ = 'spacy'
__version__ = '1.0.0-a'
__summary__ = 'Industrial-strength NLP'
__uri__ = 'https://spacy.io'
__author__ = 'Matthew Honnibal... | Change version ID to make PyPi happy | Change version ID to make PyPi happy
| Python | mit | banglakit/spaCy,recognai/spaCy,spacy-io/spaCy,honnibal/spaCy,honnibal/spaCy,oroszgy/spaCy.hu,oroszgy/spaCy.hu,aikramer2/spaCy,explosion/spaCy,honnibal/spaCy,explosion/spaCy,banglakit/spaCy,recognai/spaCy,Gregory-Howard/spaCy,raphael0202/spaCy,honnibal/spaCy,explosion/spaCy,spacy-io/spaCy,banglakit/spaCy,spacy-io/spaCy,... | ---
+++
@@ -4,7 +4,7 @@
# https://github.com/pypa/warehouse/blob/master/warehouse/__about__.py
__title__ = 'spacy'
-__version__ = '1.0.0+a'
+__version__ = '1.0.0-a'
__summary__ = 'Industrial-strength NLP'
__uri__ = 'https://spacy.io'
__author__ = 'Matthew Honnibal' |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.