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 |
|---|---|---|---|---|---|---|---|---|---|---|
8817481f758eeb0610b8c77fb9dd15dbdc37579b | setup.py | setup.py | from setuptools import setup
exec (open('plotly/version.py').read())
def readme():
with open('README.rst') as f:
return f.read()
setup(name='plotly',
version=__version__,
use_2to3=False,
author='Chris P',
author_email='chris@plot.ly',
maintainer='Chris P',
maintainer... | from setuptools import setup
from setuptools import setup, find_packages
exec (open('plotly/version.py').read())
def readme():
with open('README.rst') as f:
return f.read()
setup(name='plotly',
version=__version__,
use_2to3=False,
author='Chris P',
author_email='chris@plot.ly',
... | Use `find_packages()` like all the cool kids do. | Use `find_packages()` like all the cool kids do. | Python | mit | plotly/python-api,plotly/python-api,plotly/python-api,plotly/plotly.py,ee-in/python-api,ee-in/python-api,ee-in/python-api,plotly/plotly.py,plotly/plotly.py | ---
+++
@@ -1,4 +1,5 @@
from setuptools import setup
+from setuptools import setup, find_packages
exec (open('plotly/version.py').read())
@@ -31,15 +32,7 @@
'Topic :: Scientific/Engineering :: Visualization',
],
license='MIT',
- packages=['plotly',
- 'plotly/plotly',... |
3320bd5e5790433e9d45c6ee69d87a3ebef88939 | setup.py | setup.py | from setuptools import setup, find_packages
import sys, os
here = os.path.abspath(os.path.dirname(__file__))
try:
README = open(os.path.join(here, 'README.rst')).read()
except IOError:
README = ''
version = "0.0.1"
setup(name='tgext.socketio',
version=version,
description="SocketIO support for Tu... | from setuptools import setup, find_packages
import sys, os
here = os.path.abspath(os.path.dirname(__file__))
try:
README = open(os.path.join(here, 'README.rst')).read()
except IOError:
README = ''
version = "0.0.1"
setup(name='tgext.socketio',
version=version,
description="SocketIO support for Tu... | Add pubsub dependency for tests | Add pubsub dependency for tests
| Python | mit | amol-/tgext.socketio | ---
+++
@@ -36,7 +36,8 @@
'coverage',
'mock',
'pastedeploy',
- 'formencode'
+ 'formencode',
+ 'anypubsub'
],
entry_points={
'paste.server_runner': [ |
87ee89bfa404a81d704fe775031599de84686bbe | braid/base.py | braid/base.py | from __future__ import absolute_import
from fabric.api import sudo, task, put
from twisted.python.filepath import FilePath
from braid import pypy, service, authbind, git, package, bazaar, postgres
@task
def bootstrap():
"""
Prepare the machine to be able to correctly install, configure and execute
twis... | from __future__ import absolute_import
from fabric.api import sudo, task, put
from twisted.python.filepath import FilePath
from braid import pypy, service, authbind, git, package, bazaar, postgres
@task
def bootstrap():
"""
Prepare the machine to be able to correctly install, configure and execute
twis... | Install some more packages for trac. | Install some more packages for trac.
| Python | mit | alex/braid,alex/braid | ---
+++
@@ -17,10 +17,11 @@
# Each service specific system user shall be added to the 'service' group
sudo('groupadd -f --system service')
+ package.install(['python2.7', 'python2.7-dev'])
# gcc is needed for 'pip install'
package.install(['gcc', 'python-pip'])
# For trac
- package.in... |
590a1684c7c073879d74240685fe5a304afacfdd | setup.py | setup.py | import setuptools
with open("README.md", "r") as fh:
long_description = fh.read()
setuptools.setup(
name="mock-firestore",
version="0.1.2",
author="Matt Dowds",
description="In-memory implementation of Google Cloud Firestore for use in tests",
long_description=long_description,
url="https:... | import setuptools
with open("README.md", "r") as fh:
long_description = fh.read()
setuptools.setup(
name="mock-firestore",
version="0.1.2",
author="Matt Dowds",
description="In-memory implementation of Google Cloud Firestore for use in tests",
long_description=long_description,
long_descri... | Set description content type so it renders on PyPI | Set description content type so it renders on PyPI
| Python | mit | mdowds/python-mock-firestore | ---
+++
@@ -9,6 +9,7 @@
author="Matt Dowds",
description="In-memory implementation of Google Cloud Firestore for use in tests",
long_description=long_description,
+ long_description_content_type="text/markdown",
url="https://github.com/mdowds/mock-firestore",
packages=setuptools.find_packa... |
b3533959e096f41c4dfad19d98bf43cb13bd070f | setup.py | setup.py | #!/usr/bin/env python
# coding: utf-8
import re
from setuptools import setup, find_packages
setup(
name='dictmixin',
__version__=re.search(
r'__version__\s*=\s*[\'"]([^\'"]*)[\'"]', # It excludes inline comment too
open('dictmixin/__init__.py').read()).group(1),
description='Parsing mixi... | #!/usr/bin/env python
# coding: utf-8
import os
import re
from setuptools import setup, find_packages
def load_required_modules():
with open(os.path.join(os.path.dirname(__file__), "requirements.txt")) as f:
return [line.strip() for line in f.read().strip().split(os.linesep) if line.strip()]
setup(
... | Fix bug `No module named yaml` | Fix bug `No module named yaml`
| Python | mit | tadashi-aikawa/owlmixin | ---
+++
@@ -1,8 +1,14 @@
#!/usr/bin/env python
# coding: utf-8
+import os
import re
from setuptools import setup, find_packages
+
+
+def load_required_modules():
+ with open(os.path.join(os.path.dirname(__file__), "requirements.txt")) as f:
+ return [line.strip() for line in f.read().strip().split(os.... |
ac92bffbbc4b1c1f1fe4f56cd8600b38182e46a8 | setup.py | setup.py | import names
from setuptools import setup, find_packages
setup(
name=names.__title__,
version=names.__version__,
author=names.__author__,
url="https://github.com/treyhunner/names",
description="Generate random names",
long_description='\n\n'.join((
open('README.rst').read(),
op... | import names
from setuptools import setup, find_packages
setup(
name=names.__title__,
version=names.__version__,
author=names.__author__,
url="https://github.com/treyhunner/names",
description="Generate random names",
long_description='\n\n'.join((
open('README.rst').read(),
op... | Add CONTRIBUTING file to package description | Add CONTRIBUTING file to package description
| Python | mit | treyhunner/names,treyhunner/names | ---
+++
@@ -11,6 +11,7 @@
long_description='\n\n'.join((
open('README.rst').read(),
open('CHANGES.rst').read(),
+ open('CONTRIBUTING.rst').read(),
)),
license=names.__license__,
packages=find_packages(), |
08f501e3276811de7cedc52213c268cb6f1499cb | setup.py | setup.py | #!/usr/bin/env python
try:
from setuptools import setup, find_packages
except ImportError:
from ez_setup import use_setuptools
use_setuptools()
from setuptools import setup, find_packages
tests_require = [
'django',
'django-celery',
'south',
'django-haystack',
]
setup(
name='djang... | #!/usr/bin/env python
try:
from setuptools import setup, find_packages
except ImportError:
from ez_setup import use_setuptools
use_setuptools()
from setuptools import setup, find_packages
tests_require = [
'django',
'django-celery',
'south',
'django-haystack',
'whoosh',
]
setup(
... | Add whoosh as test dependancy | Add whoosh as test dependancy
| Python | bsd-3-clause | WoLpH/django-sentry,WoLpH/django-sentry,tbarbugli/sentry_fork,WoLpH/django-sentry,tbarbugli/sentry_fork,tbarbugli/sentry_fork | ---
+++
@@ -12,6 +12,7 @@
'django-celery',
'south',
'django-haystack',
+ 'whoosh',
]
setup( |
ab199d2cbaf72bb5a8c01e96582f726fdb5acbf5 | setup.py | setup.py | from setuptools import find_packages, setup
version = '1.1.0'
install_requires = (
'djangorestframework>=3.0.5,<3.2',
'FeinCMS>=1.9,<1.11',
'django-orderable>=2.0.1,<4',
'feincms-extensions>=0.1.0,<1',
)
setup(
name='feincms-pages-api',
version=version,
author='Incuna Ltd',
author_... | from setuptools import find_packages, setup
version = '1.1.0'
install_requires = (
'djangorestframework>=3.0.5,<3.3',
'FeinCMS>=1.9,<1.11',
'django-orderable>=2.0.1,<4',
'feincms-extensions>=0.1.0,<1',
)
setup(
name='feincms-pages-api',
version=version,
author='Incuna Ltd',
author_... | Make 'pages' compatible with 'djangorestframework' 3.2 | Make 'pages' compatible with 'djangorestframework' 3.2
| Python | bsd-2-clause | incuna/feincms-pages-api | ---
+++
@@ -5,7 +5,7 @@
install_requires = (
- 'djangorestframework>=3.0.5,<3.2',
+ 'djangorestframework>=3.0.5,<3.3',
'FeinCMS>=1.9,<1.11',
'django-orderable>=2.0.1,<4',
'feincms-extensions>=0.1.0,<1', |
fd50ce4b22b4f3d948a64ed400340c0fc744de49 | src/waldur_core/core/migrations/0008_changeemailrequest_uuid.py | src/waldur_core/core/migrations/0008_changeemailrequest_uuid.py | from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('core', '0007_changeemailrequest'),
]
operations = [
migrations.AddField(
model_name='changeemailrequest', name='uuid', field=models.UUIDField(),
),
]
| from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('core', '0007_changeemailrequest'),
]
operations = [
migrations.AddField(
model_name='changeemailrequest',
name='uuid',
field=models.UUIDField(null=True),... | Allow null values in UUID field. | Allow null values in UUID field.
| Python | mit | opennode/nodeconductor-assembly-waldur,opennode/waldur-mastermind,opennode/nodeconductor-assembly-waldur,opennode/waldur-mastermind,opennode/waldur-mastermind,opennode/nodeconductor-assembly-waldur,opennode/waldur-mastermind | ---
+++
@@ -9,6 +9,8 @@
operations = [
migrations.AddField(
- model_name='changeemailrequest', name='uuid', field=models.UUIDField(),
+ model_name='changeemailrequest',
+ name='uuid',
+ field=models.UUIDField(null=True),
),
] |
a885ebda3774f9d81422a96265bde25f6a93e7bf | tasks.py | tasks.py | from invocations import docs
from invocations.testing import test
from invocations.packaging import release
from invoke import Collection
from invoke import run
from invoke import task
@task(help={
'pty': "Whether to run tests under a pseudo-tty",
})
def integration(pty=True):
"""Runs integration tests."""
... | from invocations import docs
from invocations.testing import test, integration, watch_tests
from invocations.packaging import release
from invoke import Collection
from invoke import run
from invoke import task
ns = Collection(test, integration, watch_tests, release, docs)
ns.configure({
'tests': {
'pack... | Use invocations' integration task, also add watch_tests | Use invocations' integration task, also add watch_tests
| Python | bsd-2-clause | bitprophet/releases | ---
+++
@@ -1,5 +1,5 @@
from invocations import docs
-from invocations.testing import test
+from invocations.testing import test, integration, watch_tests
from invocations.packaging import release
from invoke import Collection
@@ -7,13 +7,9 @@
from invoke import task
-@task(help={
- 'pty': "Whether to ru... |
49bed20629d4b2ef50026700b98694da4c2ce224 | tasks.py | tasks.py | # coding=utf-8
"""Useful task commands for development and maintenance."""
from invoke import run, task
@task
def clean():
"""Clean the project directory of unwanted files and directories."""
run('rm -rf gmusicapi_scripts.egg-info')
run('rm -rf .coverage')
run('rm -rf .tox')
run('rm -rf .cache')
run('rm -rf ... | # coding=utf-8
"""Useful task commands for development and maintenance."""
from invoke import run, task
@task
def clean():
"""Clean the project directory of unwanted files and directories."""
run('rm -rf gmusicapi_scripts.egg-info')
run('rm -rf .coverage')
run('rm -rf .tox')
run('rm -rf .cache')
run('rm -rf ... | Add task for building docs | Add task for building docs
| Python | mit | thebigmunch/gmusicapi-scripts | ---
+++
@@ -37,6 +37,16 @@
@task
+def docs(test=False):
+ """"Build the gmusicapi_scripts docs."""
+
+ if test:
+ run('mkdocs serve')
+ else:
+ run('mkdocs gh-deploy --clean')
+
+
+@task
def upload():
"""Upload gmusicapi_scripts distributions using twine."""
|
5641cfde8ddec78a8559705b81b78c3f18c46f8c | python/lazperf/__init__.py | python/lazperf/__init__.py | __version__='1.1.0'
from .pylazperfapi import PyDecompressor as Decompressor
from .pylazperfapi import PyCompressor as Compressor
from .pylazperfapi import PyVLRDecompressor as VLRDecompressor
from .pylazperfapi import PyVLRCompressor as VLRCompressor
from .pylazperfapi import PyRecordSchema as RecordSchema
from .pylaz... | __version__='1.2.1'
from .pylazperfapi import PyDecompressor as Decompressor
from .pylazperfapi import PyCompressor as Compressor
from .pylazperfapi import PyVLRDecompressor as VLRDecompressor
from .pylazperfapi import PyVLRCompressor as VLRCompressor
from .pylazperfapi import PyRecordSchema as RecordSchema
from .pylaz... | Change Python package version to 1.2.1 | Change Python package version to 1.2.1
| Python | lgpl-2.1 | verma/laz-perf,verma/laz-perf,verma/laz-perf,abellgithub/laz-perf,hobu/laz-perf,abellgithub/laz-perf,hobu/laz-perf,abellgithub/laz-perf,hobu/laz-perf,verma/laz-perf,hobu/laz-perf,hobu/laz-perf,verma/laz-perf,abellgithub/laz-perf,abellgithub/laz-perf | ---
+++
@@ -1,4 +1,4 @@
-__version__='1.1.0'
+__version__='1.2.1'
from .pylazperfapi import PyDecompressor as Decompressor
from .pylazperfapi import PyCompressor as Compressor
from .pylazperfapi import PyVLRDecompressor as VLRDecompressor |
e24f89366a8a58a29d26f58b8f21aba437ec1566 | tests/integration/runners/test_cache.py | tests/integration/runners/test_cache.py | # -*- coding: utf-8 -*-
'''
Tests for the salt-run command
'''
# Import Python libs
from __future__ import absolute_import
# Import Salt Testing libs
import tests.integration as integration
class ManageTest(integration.ShellCase):
'''
Test the manage runner
'''
def test_cache(self):
'''
... | # -*- coding: utf-8 -*-
'''
Tests for the salt-run command
'''
# Import Python libs
from __future__ import absolute_import
# Import Salt Testing libs
import tests.integration as integration
class ManageTest(integration.ShellCase):
'''
Test the manage runner
'''
def test_cache(self):
'''
... | Use a slightly more specific bank name | Use a slightly more specific bank name
| Python | apache-2.0 | saltstack/salt,saltstack/salt,saltstack/salt,saltstack/salt,saltstack/salt | ---
+++
@@ -20,17 +20,17 @@
# Store the data
ret = self.run_run_plus(
'cache.store',
- bank='test/runner',
+ bank='cachetest/runner',
key='test_cache',
data='The time has come the walrus said',
)
# Make sure we can see th... |
e32be307fd99c0d38b514385e0af2c257a50d50b | mining/urls.py | mining/urls.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from .views import MainHandler, ProcessHandler, DashboardHandler
INCLUDE_URLS = [
(r"/process/(?P<slug>[\w-]+).json", ProcessHandler),
(r"/(?P<slug>[\w-]+)", DashboardHandler),
(r"/", MainHandler),
]
| #!/usr/bin/env python
# -*- coding: utf-8 -*-
from .views import MainHandler, ProcessHandler, DashboardHandler
from .views import ProcessWebSocketHandler
INCLUDE_URLS = [
(r"/process/(?P<slug>[\w-]+).ws", ProcessWebSocketHandler),
(r"/process/(?P<slug>[\w-]+).json", ProcessHandler),
(r"/process/(?P<slug>[... | Add URL enter in dynamic process | Add URL enter in dynamic process
| Python | mit | mining/mining,mlgruby/mining,jgabriellima/mining,mlgruby/mining,mlgruby/mining,chrisdamba/mining,seagoat/mining,chrisdamba/mining,AndrzejR/mining,avelino/mining,seagoat/mining,jgabriellima/mining,avelino/mining,mining/mining,AndrzejR/mining | ---
+++
@@ -1,9 +1,12 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from .views import MainHandler, ProcessHandler, DashboardHandler
+from .views import ProcessWebSocketHandler
INCLUDE_URLS = [
+ (r"/process/(?P<slug>[\w-]+).ws", ProcessWebSocketHandler),
+ (r"/process/(?P<slug>[\w-]+).json", Process... |
cafe4629666326fefab17784abac281e7fb226c7 | examples/confluence-get-group-members.py | examples/confluence-get-group-members.py | # coding: utf8
from atlassian import Confluence
confluence = Confluence(
url='http://localhost:8090',
username='admin',
password='admin')
# this example related get all user from group e.g. group_name
group_name = 'confluence-users'
flag = True
i = 0
limit = 50
result = []
while flag:
response = conflu... | # coding: utf8
from atlassian import Confluence
confluence = Confluence(
url='http://localhost:8090',
username='admin',
password='admin')
# this example related get all user from group e.g. group_name
group_name = 'confluence-users'
flag = True
i = 0
limit = 50
result = []
while flag:
response = conflu... | Add other side of condition | Add other side of condition
| Python | apache-2.0 | MattAgile/atlassian-python-api,AstroTech/atlassian-python-api,AstroTech/atlassian-python-api | ---
+++
@@ -13,8 +13,9 @@
result = []
while flag:
response = confluence.get_group_members(group_name=group_name, start=i * limit, limit=limit)
- if response:
+ if response and len(response):
i += 1
result.append(response)
-
+ else:
+ flag = False
print(result) |
cb5f74d83f1ed5d655823b87d25ff031e9cb4bc8 | test/test_utils.py | test/test_utils.py | import unittest
from LinkMeBot.utils import get_text_from_markdown, human_readable_download_number
class TestUtils(unittest.TestCase):
def test_get_text_from_markdown(self):
markdown = '**test** [^this](https://google.com) ~~is~~ _a_ test! https://google.com'
text = 'test this is a test!'
... | import unittest
from LinkMeBot.utils import get_text_from_markdown, human_readable_download_number
class TestUtils(unittest.TestCase):
def test_get_text_from_markdown(self):
markdown = '**test** [^this](https://google.com) ~~is~~ _a_ test! https://google.com'
text = 'test this is a test!'
... | Fix tests for human readable numbers | Fix tests for human readable numbers
| Python | mit | crisbal/PlayStoreLinks_Bot | ---
+++
@@ -19,9 +19,9 @@
def test_human_readable_download_number(self):
self.assertEqual(human_readable_download_number('12'), '12')
- self.assertEqual(human_readable_download_number('12000'), '12 Thousand')
- self.assertEqual(human_readable_download_number('12000000'), '12 Mill... |
1c61a731bf33ee25e1bc1725455978064c59748b | parkings/api/public/parking_area_statistics.py | parkings/api/public/parking_area_statistics.py | from django.utils import timezone
from rest_framework import serializers, viewsets
from parkings.models import Parking, ParkingArea
class ParkingAreaStatisticsSerializer(serializers.ModelSerializer):
current_parking_count = serializers.SerializerMethodField()
def get_current_parking_count(self, area):
... | from django.utils import timezone
from rest_framework import serializers, viewsets
from parkings.models import Parking, ParkingArea
from ..common import WGS84InBBoxFilter
class ParkingAreaStatisticsSerializer(serializers.ModelSerializer):
current_parking_count = serializers.SerializerMethodField()
def get_... | Add bbox to parking area statistics view set | Add bbox to parking area statistics view set
| Python | mit | tuomas777/parkkihubi | ---
+++
@@ -2,6 +2,8 @@
from rest_framework import serializers, viewsets
from parkings.models import Parking, ParkingArea
+
+from ..common import WGS84InBBoxFilter
class ParkingAreaStatisticsSerializer(serializers.ModelSerializer):
@@ -36,3 +38,6 @@
class PublicAPIParkingAreaStatisticsViewSet(viewsets.ReadO... |
2d811e0e7e7acf952df25c444d926aee7ef0d8fc | harvest/urls.py | harvest/urls.py | from django.conf.urls import patterns, url
from harvest.views import ApproveJobView, CancelJobView
urlpatterns = patterns('',
url(r'^(?P<job_id>\d+)/approve/?$', ApproveJobView.as_view(), name = 'approve_job' ),
url(r'^(?P<job_id>\d+)/cancel/?$', CancelJobView.as_view(), name = 'cancel_job' ),
)
| from django.conf.urls import patterns, url
from harvest.views import ApproveJobView, CancelJobView
urlpatterns = patterns('',
url(r'^(?P<job_id>\d+)/approve?$', ApproveJobView.as_view(), name = 'approve_job' ),
url(r'^(?P<job_id>\d+)/cancel?$', CancelJobView.as_view(), name = 'cancel_job' ),
)
| Remove the tail slash from approce and cancel url | Remove the tail slash from approce and cancel url
| Python | bsd-3-clause | rockychen-dpaw/borgcollector,parksandwildlife/borgcollector,rockychen-dpaw/borgcollector,parksandwildlife/borgcollector,rockychen-dpaw/borgcollector,parksandwildlife/borgcollector | ---
+++
@@ -2,7 +2,7 @@
from harvest.views import ApproveJobView, CancelJobView
urlpatterns = patterns('',
- url(r'^(?P<job_id>\d+)/approve/?$', ApproveJobView.as_view(), name = 'approve_job' ),
- url(r'^(?P<job_id>\d+)/cancel/?$', CancelJobView.as_view(), name = 'cancel_job' ),
+ url(r'^(?P<job_id>\d+)/... |
5e3e3bea2c210d2b14873930dac5e98e4b813726 | api/base/exceptions.py | api/base/exceptions.py |
from rest_framework import status
from rest_framework.exceptions import APIException
def json_api_exception_handler(exc, context):
"""
Custom exception handler that returns errors object as an array
"""
from rest_framework.views import exception_handler
response = exception_handler(exc, context)
... |
from rest_framework import status
from rest_framework.exceptions import APIException
def json_api_exception_handler(exc, context):
"""
Custom exception handler that returns errors object as an array
"""
from rest_framework.views import exception_handler
response = exception_handler(exc, context)
... | Use dictionary get() method to access 'detail' | Use dictionary get() method to access 'detail'
| Python | apache-2.0 | amyshi188/osf.io,haoyuchen1992/osf.io,leb2dg/osf.io,DanielSBrown/osf.io,mfraezz/osf.io,arpitar/osf.io,saradbowman/osf.io,felliott/osf.io,brandonPurvis/osf.io,SSJohns/osf.io,njantrania/osf.io,sloria/osf.io,mattclark/osf.io,icereval/osf.io,baylee-d/osf.io,crcresearch/osf.io,RomanZWang/osf.io,caneruguz/osf.io,amyshi188/os... | ---
+++
@@ -31,7 +31,7 @@
response.data = {'errors': errors}
# Return 401 instead of 403 during unauthorized requests without having user log in with Basic Auth
- if response is not None and response.data['errors'][0]['detail'] == "Authentication credentials were not provided.":
+ if response is not... |
367e025f5710301545bde09daf06cc2e5fe21510 | nltk/test/unit/test_stem.py | nltk/test/unit/test_stem.py | # -*- coding: utf-8 -*-
from __future__ import print_function, unicode_literals
import unittest
from nltk.stem.snowball import SnowballStemmer
class SnowballTest(unittest.TestCase):
def test_russian(self):
# Russian words both consisting of Cyrillic
# and Roman letters can be stemmed.
stem... | # -*- coding: utf-8 -*-
from __future__ import print_function, unicode_literals
import unittest
from nltk.stem.snowball import SnowballStemmer
class SnowballTest(unittest.TestCase):
def test_russian(self):
# Russian words both consisting of Cyrillic
# and Roman letters can be stemmed.
ste... | Add stem test for spanish stemmer | Add stem test for spanish stemmer
| Python | apache-2.0 | nltk/nltk,nltk/nltk,nltk/nltk | ---
+++
@@ -2,6 +2,7 @@
from __future__ import print_function, unicode_literals
import unittest
from nltk.stem.snowball import SnowballStemmer
+
class SnowballTest(unittest.TestCase):
@@ -22,6 +23,11 @@
assert stemmer_german.stem("keinen") == 'kein'
assert stemmer_german2.stem("keinen") == '... |
e922f526ce95b8a992004df91b08bf466d9eea15 | dbmigrator/cli.py | dbmigrator/cli.py | # -*- coding: utf-8 -*-
# ###
# Copyright (c) 2015, Rice University
# This software is subject to the provisions of the GNU Affero General
# Public License version 3 (AGPLv3).
# See LICENCE.txt for details.
# ###
import argparse
import os
import sys
from . import commands, utils
DEFAULTS = {
'migrations_directo... | # -*- coding: utf-8 -*-
# ###
# Copyright (c) 2015, Rice University
# This software is subject to the provisions of the GNU Affero General
# Public License version 3 (AGPLv3).
# See LICENCE.txt for details.
# ###
import argparse
import os
import sys
from . import commands, utils
DEFAULTS = {
}
def main(argv=s... | Remove default config path (development.ini) | Remove default config path (development.ini)
Towards #1
| Python | agpl-3.0 | karenc/db-migrator | ---
+++
@@ -14,10 +14,7 @@
DEFAULTS = {
- 'migrations_directory': 'migrations',
}
-
-DEFAULT_CONFIG_PATH = 'development.ini'
def main(argv=sys.argv[1:]):
@@ -25,7 +22,7 @@
parser.add_argument('--migrations-directory')
- parser.add_argument('--config', default=DEFAULT_CONFIG_PATH)
+ pa... |
4539ebc92d59dd0388658fa482626185088222b8 | tests.py | tests.py | from __future__ import unicode_literals
from tqdm import format_interval, format_meter
def test_format_interval():
assert format_interval(60) == '01:00'
assert format_interval(6160) == '1:42:40'
assert format_interval(238113) == '66:08:33'
def test_format_meter():
assert format_meter(0, 1000, 13) ==... | from __future__ import unicode_literals
from StringIO import StringIO
import csv
from tqdm import format_interval, format_meter, tqdm
def test_format_interval():
assert format_interval(60) == '01:00'
assert format_interval(6160) == '1:42:40'
assert format_interval(238113) == '66:08:33'
def test_format_m... | Test that tqdm fails when iterating over a csv file | Test that tqdm fails when iterating over a csv file
| Python | mit | lrq3000/tqdm,kmike/tqdm | ---
+++
@@ -1,5 +1,7 @@
from __future__ import unicode_literals
-from tqdm import format_interval, format_meter
+from StringIO import StringIO
+import csv
+from tqdm import format_interval, format_meter, tqdm
def test_format_interval():
@@ -15,3 +17,17 @@
assert format_meter(231, 1000, 392) == \
"... |
7c5cf5eb9b59a499ab480ea571cbb9d8203c1a79 | tests/test_gdal.py | tests/test_gdal.py | """ Test gdal plugin functionality.
"""
import pytest
from imageio.testing import run_tests_if_main, get_test_dir
import imageio
from imageio.core import get_remote_file
test_dir = get_test_dir()
try:
from osgeo import gdal
except ImportError:
gdal = None
@pytest.mark.skipif('gdal is None')
def test_gdal_... | """ Test gdal plugin functionality.
"""
import pytest
from imageio.testing import run_tests_if_main, get_test_dir, need_internet
import imageio
from imageio.core import get_remote_file
test_dir = get_test_dir()
try:
from osgeo import gdal
except ImportError:
gdal = None
@pytest.mark.skipif('gdal is None')... | Mark gdal tests as requiring internet | Mark gdal tests as requiring internet | Python | bsd-2-clause | imageio/imageio | ---
+++
@@ -1,7 +1,7 @@
""" Test gdal plugin functionality.
"""
import pytest
-from imageio.testing import run_tests_if_main, get_test_dir
+from imageio.testing import run_tests_if_main, get_test_dir, need_internet
import imageio
from imageio.core import get_remote_file
@@ -18,7 +18,8 @@
@pytest.mark.skipif('... |
54933f992af05ea3ac1edbb11e5873b9327a946e | script/lib/config.py | script/lib/config.py | #!/usr/bin/env python
import platform
import sys
BASE_URL = 'http://gh-contractor-zcbenz.s3.amazonaws.com/libchromiumcontent'
LIBCHROMIUMCONTENT_COMMIT = 'e375124044f9044ac88076eba0cd17361ee0997c'
ARCH = {
'cygwin': '32bit',
'darwin': '64bit',
'linux2': platform.architecture()[0],
'win32': '32bit',
}... | #!/usr/bin/env python
import platform
import sys
BASE_URL = 'http://gh-contractor-zcbenz.s3.amazonaws.com/libchromiumcontent'
LIBCHROMIUMCONTENT_COMMIT = '55efd338101e08691560192b2be0f9c3b1b0eb72'
ARCH = {
'cygwin': '32bit',
'darwin': '64bit',
'linux2': platform.architecture()[0],
'win32': '32bit',
}... | Upgrade libchromiumcontent to fix icu symbols | Upgrade libchromiumcontent to fix icu symbols
| Python | mit | JussMee15/electron,mrwizard82d1/electron,chriskdon/electron,seanchas116/electron,the-ress/electron,anko/electron,brenca/electron,kikong/electron,RobertJGabriel/electron,jacksondc/electron,etiktin/electron,arturts/electron,DivyaKMenon/electron,gerhardberger/electron,twolfson/electron,fffej/electron,mirrh/electron,Bionic... | ---
+++
@@ -4,7 +4,7 @@
import sys
BASE_URL = 'http://gh-contractor-zcbenz.s3.amazonaws.com/libchromiumcontent'
-LIBCHROMIUMCONTENT_COMMIT = 'e375124044f9044ac88076eba0cd17361ee0997c'
+LIBCHROMIUMCONTENT_COMMIT = '55efd338101e08691560192b2be0f9c3b1b0eb72'
ARCH = {
'cygwin': '32bit', |
b8839302c0a4d8ada99a695f8829027fa433e05e | zerver/migrations/0232_make_archive_transaction_field_not_nullable.py | zerver/migrations/0232_make_archive_transaction_field_not_nullable.py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('zerver', '0231_add_archive_transaction_model'),
]
operations = [
migrations.RunSQL("DELETE ... | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
"""
Tables cannot have data deleted from them and be altered in a single transaction,
but we need the DELETEs to be atomic togeth... | Fix migration making archive_transaction field not null. | retention: Fix migration making archive_transaction field not null.
DELETing from archive tables and ALTERing ArchivedMessage needs to be
split into separate transactions.
zerver_archivedattachment_messages needs to be cleared out before
zerver_archivedattachment.
| Python | apache-2.0 | eeshangarg/zulip,shubhamdhama/zulip,zulip/zulip,brainwane/zulip,synicalsyntax/zulip,eeshangarg/zulip,andersk/zulip,hackerkid/zulip,hackerkid/zulip,timabbott/zulip,zulip/zulip,timabbott/zulip,synicalsyntax/zulip,tommyip/zulip,tommyip/zulip,rht/zulip,andersk/zulip,rishig/zulip,rht/zulip,timabbott/zulip,brainwane/zulip,ee... | ---
+++
@@ -4,21 +4,30 @@
from django.db import migrations, models
import django.db.models.deletion
-
class Migration(migrations.Migration):
+ """
+ Tables cannot have data deleted from them and be altered in a single transaction,
+ but we need the DELETEs to be atomic together. So we set atomic=False f... |
a8974f140158d27ff2b3c6cf0d38829109244bed | future/builtins/__init__.py | future/builtins/__init__.py | """
A module that brings in equivalents of the new and modified Python 3
builtins into Py2. Has no effect on Py3.
See the docs for these modules for more information::
- future.builtins.iterators
- future.builtins.backports
- future.builtins.misc
- future.builtins.disabled
"""
from future.builtins.iterators import ... | """
A module that brings in equivalents of the new and modified Python 3
builtins into Py2. Has no effect on Py3.
See the docs for these modules for more information::
- future.builtins.iterators
- future.builtins.backports
- future.builtins.misc
- future.builtins.disabled
"""
from future.builtins.iterators import ... | Enable backported ``int`` in future.builtins | Enable backported ``int`` in future.builtins
| Python | mit | michaelpacer/python-future,krischer/python-future,PythonCharmers/python-future,krischer/python-future,PythonCharmers/python-future,QuLogic/python-future,michaelpacer/python-future,QuLogic/python-future | ---
+++
@@ -12,8 +12,8 @@
"""
from future.builtins.iterators import (filter, map, zip)
-from future.builtins.misc import (ascii, chr, hex, input, int, oct, open)
-from future.builtins.backports import (bytes, range, round, str, super)
+from future.builtins.misc import (ascii, chr, hex, input, oct, open)
+from fut... |
b2c90df01d86488b1dece173b6bb6b0afa0fbdcf | src/binder/db_sqlite.py | src/binder/db_sqlite.py |
import sqlite3
from binder.conn import Connection
from binder.sqlgen import DIALECT_SQLITE
class SqliteConnection(Connection):
def __init__(self, dbfile, read_only):
dbconn = sqlite3.connect(dbfile)
dberror = sqlite3.Error
Connection.__init__(
self, dbconn, dberror,
... |
import sqlite3
from binder.conn import Connection
from binder.sqlgen import DIALECT_SQLITE
class SqliteConnection(Connection):
def __init__(self, dbfile, read_only=False):
dbconn = sqlite3.connect(dbfile)
dberror = sqlite3.Error
Connection.__init__(
self, dbconn, dberror,
... | Make SqliteConnection read_only parameter optional | Make SqliteConnection read_only parameter optional | Python | mit | divtxt/binder | ---
+++
@@ -6,7 +6,7 @@
class SqliteConnection(Connection):
- def __init__(self, dbfile, read_only):
+ def __init__(self, dbfile, read_only=False):
dbconn = sqlite3.connect(dbfile)
dberror = sqlite3.Error
Connection.__init__( |
2a7322104eb4222517f8a1167597104c5daab0bc | notes-cli.py | notes-cli.py | import argparse
import yaml
from os.path import expanduser
def load_config_from(path):
with open(expanduser(path)) as file:
return yaml.load(file)
def parse_options():
parser = argparse.ArgumentParser()
parser.add_argument("command",
choices=["ls", "add", "rm", "edit", "view", "reinde... | import argparse
import yaml
import os
from os.path import expanduser, isdir
import whoosh.index as ix
from whoosh.fields import *
def load_config_from(path):
with open(expanduser(path)) as file:
return yaml.load(file)
def parse_options():
parser = argparse.ArgumentParser()
parser.add_argument("command",
... | Create or load index directory | Create or load index directory
| Python | mit | phss/notes-cli | ---
+++
@@ -1,6 +1,9 @@
import argparse
import yaml
-from os.path import expanduser
+import os
+from os.path import expanduser, isdir
+import whoosh.index as ix
+from whoosh.fields import *
def load_config_from(path):
@@ -14,9 +17,19 @@
parser.add_argument("--query")
return parser.parse_args()
+def cre... |
8b0c1fc8d06a4561b9241a92162a24a4df0efa34 | viper.py | viper.py | #!/usr/bin/env python3
from viper.interactive import *
if __name__ == '__main__':
import argparse
parser = argparse.ArgumentParser()
parser.add_argument('-L', '--interactive-lexer', action='store_true', help='lexes input')
parser.add_argument('-S', '--interactive-sppf', action='store_true', help='lex... | #!/usr/bin/env python3
from viper.interactive import *
from viper.lexer import lex_file
from viper.grammar import GRAMMAR
if __name__ == '__main__':
import argparse
parser = argparse.ArgumentParser()
parser.add_argument('-L', '--interactive-lexer', action='store_true', help='lexes input')
parser.add_... | Allow direct SPPF generation from interactive script | Allow direct SPPF generation from interactive script
| Python | apache-2.0 | pdarragh/Viper | ---
+++
@@ -1,6 +1,8 @@
#!/usr/bin/env python3
from viper.interactive import *
+from viper.lexer import lex_file
+from viper.grammar import GRAMMAR
if __name__ == '__main__':
@@ -8,6 +10,7 @@
parser = argparse.ArgumentParser()
parser.add_argument('-L', '--interactive-lexer', action='store_true', he... |
3598313c087651a85dce5e31d9fdc227dea0ccf4 | binary-search.py | binary-search.py | # iterative approach to binary search function (assume list has distinct elements and elements are in ascending order)
def binary_search(arr, data):
low = 0 # first element in array
high = len(arr) - 1 # last item in array
while low <= high: # iterate through "entire" array
middle = (low + high)/2
if arr[middl... | # iterative approach to binary search function (assume list has distinct elements and elements are in ascending order)
def binary_search(arr, data):
low = 0 # first element position in array
high = len(arr) - 1 # last element position in array
while low <= high: # iterate through "entire" array
middle = (low + hi... | Add test cases for python implementation of binary search function | Add test cases for python implementation of binary search function
| Python | mit | derekmpham/interview-prep,derekmpham/interview-prep | ---
+++
@@ -1,8 +1,8 @@
# iterative approach to binary search function (assume list has distinct elements and elements are in ascending order)
def binary_search(arr, data):
- low = 0 # first element in array
- high = len(arr) - 1 # last item in array
+ low = 0 # first element position in array
+ high = len(arr) -... |
1468d6e257d4f22f803549606cbd3e3245c2ce37 | redash/utils/comparators.py | redash/utils/comparators.py | from sqlalchemy import func
from sqlalchemy.ext.hybrid import Comparator
class CaseInsensitiveComparator(Comparator):
def __eq__(self, other):
return func.lower(self.__clause_element__()) == func.lower(other)
| from sqlalchemy import String
class CaseInsensitiveComparator(String.Comparator):
def __eq__(self, other):
return func.lower(self.__clause_element__()) == func.lower(other)
| Change CaseInsensitiveComparator to support all operations. | Change CaseInsensitiveComparator to support all operations.
| Python | bsd-2-clause | moritz9/redash,44px/redash,getredash/redash,alexanderlz/redash,alexanderlz/redash,moritz9/redash,44px/redash,44px/redash,denisov-vlad/redash,getredash/redash,getredash/redash,denisov-vlad/redash,getredash/redash,denisov-vlad/redash,chriszs/redash,denisov-vlad/redash,44px/redash,alexanderlz/redash,getredash/redash,chris... | ---
+++
@@ -1,7 +1,6 @@
-from sqlalchemy import func
-from sqlalchemy.ext.hybrid import Comparator
+from sqlalchemy import String
-class CaseInsensitiveComparator(Comparator):
+class CaseInsensitiveComparator(String.Comparator):
def __eq__(self, other):
return func.lower(self.__clause_element__()) =... |
566e68d3b06d3aaba796f0cda57a42bb12cf6d79 | celery/__init__.py | celery/__init__.py | """Distributed Task Queue"""
from celery.distmeta import __version__, __author__, __contact__
from celery.distmeta import __homepage__, __docformat__
from celery.distmeta import VERSION, is_stable_release, version_with_meta
| """Distributed Task Queue"""
from celery.distmeta import __version__, __author__, __contact__
from celery.distmeta import __homepage__, __docformat__
from celery.distmeta import VERSION, is_stable_release, version_with_meta
from celery.decorators import task
from celery.task.base import Task, PeriodicTask
from celery.... | Make decorators.task, Task, PeriodicTask, apply* available from celery.py | Make decorators.task, Task, PeriodicTask, apply* available from celery.py
| Python | bsd-3-clause | cbrepo/celery,WoLpH/celery,ask/celery,mitsuhiko/celery,cbrepo/celery,mitsuhiko/celery,frac/celery,frac/celery,ask/celery,WoLpH/celery | ---
+++
@@ -2,3 +2,7 @@
from celery.distmeta import __version__, __author__, __contact__
from celery.distmeta import __homepage__, __docformat__
from celery.distmeta import VERSION, is_stable_release, version_with_meta
+
+from celery.decorators import task
+from celery.task.base import Task, PeriodicTask
+from cel... |
3f87d22624a5a27fdca2f82103aff6bda6491c70 | caribou/antler/antler_settings.py | caribou/antler/antler_settings.py | from caribou.settings.setting_types import *
from caribou.i18n import _
AntlerSettings = SettingsTopGroup(
_("Antler Preferences"), "/org/gnome/antler/", "org.gnome.antler",
[SettingsGroup("antler", _("Antler"), [
SettingsGroup("appearance", _("Appearance"), [
StringSett... | from caribou.settings.setting_types import *
from caribou.i18n import _
AntlerSettings = SettingsTopGroup(
_("Antler Preferences"), "/org/gnome/antler/", "org.gnome.antler",
[SettingsGroup("antler", _("Antler"), [
SettingsGroup("appearance", _("Appearance"), [
StringSett... | Add "full scale" to antler settings. | Add "full scale" to antler settings.
| Python | lgpl-2.1 | GNOME/caribou,GNOME/caribou,GNOME/caribou | ---
+++
@@ -13,6 +13,7 @@
"a 'natural' look and feel good for composing simple "
"text, to a fullscale keyboard."),
allowed=[(('touch'), _('Touch')),
+ (('fullscale'), _('Full scale')),
... |
66602e67c06266735b58fd2bee8b55b7cac401b1 | archive/archive_report_ingest_status/src/test_archive_report_ingest_status.py | archive/archive_report_ingest_status/src/test_archive_report_ingest_status.py | # -*- encoding: utf-8 -*-
import uuid
import archive_report_ingest_status as report_ingest_status
def test_get_returns_status(dynamodb_resource, table_name):
guid = str(uuid.uuid4())
table = dynamodb_resource.Table(table_name)
table.put_item(Item={'id': guid})
event = {
'request_method': '... | # -*- encoding: utf-8 -*-
import uuid
import pytest
import archive_report_ingest_status as report_ingest_status
def test_get_returns_status(dynamodb_resource, table_name):
guid = str(uuid.uuid4())
table = dynamodb_resource.Table(table_name)
table.put_item(Item={'id': guid})
event = {
'req... | Add a test that a non-GET method is rejected | Add a test that a non-GET method is rejected
| Python | mit | wellcometrust/platform-api,wellcometrust/platform-api,wellcometrust/platform-api,wellcometrust/platform-api | ---
+++
@@ -1,6 +1,8 @@
# -*- encoding: utf-8 -*-
import uuid
+
+import pytest
import archive_report_ingest_status as report_ingest_status
@@ -40,3 +42,12 @@
dynamodb_resource=dynamodb_resource
)
assert response == item
+
+
+def test_fails_if_called_with_post_event():
+ event = {
+ ... |
342c1c70e2fbf13bea87792b6a289f830fb95692 | letsencryptae/models.py | letsencryptae/models.py | # THIRD PARTY
from djangae.fields import CharField
from django.db import models
class Secret(models.Model):
created = models.DateTimeField(auto_now_add=True)
url_slug = CharField(primary_key=True)
secret = CharField()
def __unicode__(self):
return self.url_slug
def clean(self, *args, **k... | # THIRD PARTY
from djangae.fields import CharField
from django.db import models
class Secret(models.Model):
created = models.DateTimeField(auto_now_add=True)
url_slug = CharField(primary_key=True)
secret = CharField()
class Meta(object):
ordering = ('-created',)
def __unicode__(self):
... | Order Secret objects by `created` date. | Order Secret objects by `created` date.
| Python | mit | adamalton/letsencrypt-appengine | ---
+++
@@ -8,6 +8,9 @@
url_slug = CharField(primary_key=True)
secret = CharField()
+ class Meta(object):
+ ordering = ('-created',)
+
def __unicode__(self):
return self.url_slug
|
a827279098ab2ef73778b15a76f738fedce9ed30 | tests.py | tests.py | import api
import unittest
import os
from getpass import getpass
class ApiTest(unittest.TestCase):
def setUp(self):
self.linode = api.Api(os.environ['LINODE_API_KEY'])
def testAvailLinodeplans(self):
available_plans = self.linode.avail_linodeplans()
self.assertTrue(isinstance(availabl... | import api
import unittest
import os
from getpass import getpass
class ApiTest(unittest.TestCase):
def setUp(self):
self.linode = api.Api(os.environ['LINODE_API_KEY'])
def testAvailLinodeplans(self):
available_plans = self.linode.avail_linodeplans()
self.assertTrue(isinstance(availabl... | Add a test case for test.echo | Add a test case for test.echo
| Python | mit | ryanshawty/linode-python,tjfontaine/linode-python | ---
+++
@@ -12,6 +12,14 @@
available_plans = self.linode.avail_linodeplans()
self.assertTrue(isinstance(available_plans, list))
+ def testEcho(self):
+ test_parameters = {'FOO': 'bar', 'FIZZ': 'buzz'}
+ response = self.linode.test_echo(**test_parameters)
+ self.assertTrue('... |
08da651286cf7ac8459a059a01831f75c08f80a7 | alltests.py | alltests.py | #!/usr/bin/env python
# Run all tests
import os
import subprocess
import sys
topdir = os.path.dirname(os.path.realpath(os.path.abspath(__file__)))
os.chdir(topdir)
retcode = subprocess.call("nosetests")
if not retcode:
os.chdir(os.path.join(topdir, "docs"))
subprocess.call("make", "doctest")
| #!/usr/bin/env python
# Run all tests
import os
import subprocess
import sys
topdir = os.path.dirname(os.path.realpath(os.path.abspath(__file__)))
os.chdir(topdir)
retcode = subprocess.call(["nosetests"])
if not retcode:
os.chdir(os.path.join(topdir, "docs"))
subprocess.call(["make", "doctest"])
| Fix invocation of subprocess.call to pass arguments as a list - makes doctests run again. | Fix invocation of subprocess.call to pass arguments as a list - makes doctests run again.
| Python | mit | restpose/restpose-py,restpose/restpose-py | ---
+++
@@ -7,7 +7,7 @@
topdir = os.path.dirname(os.path.realpath(os.path.abspath(__file__)))
os.chdir(topdir)
-retcode = subprocess.call("nosetests")
+retcode = subprocess.call(["nosetests"])
if not retcode:
os.chdir(os.path.join(topdir, "docs"))
- subprocess.call("make", "doctest")
+ subprocess.call... |
2fcd13435d04622c7ec0915a77efb390ea9c09b1 | rcstreamlistener.py | rcstreamlistener.py | # rcstreamlistener.py
import urllib3.contrib.pyopenssl
import logging
from ipaddress import ip_address
from socketIO_client import SocketIO, BaseNamespace
urllib3.contrib.pyopenssl.inject_into_urllib3()
logging.basicConfig(level=logging.WARNING)
class MainNamespace(BaseNamespace):
def on_change(self, change):
... | # rcstreamlistener.py
import urllib3.contrib.pyopenssl
import logging
from ipaddress import ip_address
from socketIO_client import SocketIO, BaseNamespace
import template_adder
urllib3.contrib.pyopenssl.inject_into_urllib3()
logging.basicConfig(level=logging.WARNING)
class MainNamespace(BaseNamespace):
def on_cha... | Use if/else instead of try/except | Use if/else instead of try/except | Python | mit | piagetbot/enwikibot | ---
+++
@@ -3,6 +3,7 @@
import logging
from ipaddress import ip_address
from socketIO_client import SocketIO, BaseNamespace
+import template_adder
urllib3.contrib.pyopenssl.inject_into_urllib3()
logging.basicConfig(level=logging.WARNING)
@@ -11,10 +12,9 @@
def on_change(self, change):
if change[... |
7f1109d38f9bc2f973410f071c97ad874dd6cb0d | minicps/topology.py | minicps/topology.py | """
Recreate the SWaT network with the highest level of precision.
"""
from mininet.net import Mininet
from mininet.topo import Topo
from minicps import constants as c
class EthRing(Topo):
"""Docstring for EthRing. """
def __init__(self):
"""TODO: to be defined1. """
Topo.__init__(self)
... | """
Recreate the SWaT network with the highest level of precision.
DMZ AP, L3, L2 L1 wireless star networks and L0 wireless DLR
cannot be simulated because miniet lacks wireless (IEEE 802.11)
simulation support.
"""
from mininet.net import Mininet
from mininet.topo import Topo
# from minicps import constants as c
... | Add swat network layers class. | Add swat network layers class.
| Python | mit | scy-phy/minicps,scy-phy/minicps,remmihsorp/minicps,remmihsorp/minicps | ---
+++
@@ -1,15 +1,19 @@
"""
Recreate the SWaT network with the highest level of precision.
+
+DMZ AP, L3, L2 L1 wireless star networks and L0 wireless DLR
+cannot be simulated because miniet lacks wireless (IEEE 802.11)
+simulation support.
"""
from mininet.net import Mininet
from mininet.topo import Topo
-... |
cf6e7bdbd9ec6968be8767f1bbcab09de6f8aace | codekitlang/command.py | codekitlang/command.py | # -*- coding: utf-8 -*-
import argparse
from . import compiler
def main():
parser = argparse.ArgumentParser(description='CodeKit Language Compiler.')
parser.add_argument('src', nargs=1, metavar='SOURCE')
parser.add_argument('dest', nargs=1, metavar='DEST')
parser.add_argument('--framework-paths', '-f... | # -*- coding: utf-8 -*-
import argparse
from . import compiler
def main():
parser = argparse.ArgumentParser(description='CodeKit Language Compiler.')
parser.add_argument('src', nargs=1, metavar='SOURCE')
parser.add_argument('dest', nargs=1, metavar='DEST')
parser.add_argument('--framework-paths', '-f... | Add interface to interpreter's "-m" option. | Add interface to interpreter's "-m" option.
| Python | bsd-3-clause | gjo/python-codekitlang,gjo/python-codekitlang | ---
+++
@@ -13,3 +13,6 @@
namespace = parser.parse_args()
compiler_ = compiler.Compiler(framework_paths=namespace.framework_paths)
compiler_.generate_to_file(namespace.dest[0], namespace.src[0])
+
+if __name__ == '__main__': # pragma:nocover
+ main() |
a2f338d06f097d3446627dcbc9b0d727951fcf56 | tilezilla/multiprocess.py | tilezilla/multiprocess.py | """ Multiprocess helpers
"""
class SerialExecutor(object):
""" Make regular old 'map' look like :mod:`futures.concurrent`
"""
map = map
def get_executor(executor, njob):
""" Return an instance of a execution mapper
Args:
executor (str): Name of execution method to return
njob (i... | """ Multiprocess helpers
"""
# LOGGING FOR MULTIPROCESSING
MULTIPROC_LOG_FORMAT = '%(asctime)s:%(hostname)s:%(process)d:%(levelname)s:%(message)s' # noqa
MULTIPROC_LOG_DATE_FORMAT = '%H:%M:%S'
def get_logger_multiproc(name=None, filename='', stream='stdout'):
""" Return a logger configured/styled for multi-proce... | Add func to return logger configured for multiproc | Add func to return logger configured for multiproc
| Python | bsd-3-clause | ceholden/tilezilla,ceholden/landsat_tile,ceholden/landsat_tile,ceholden/landsat_tiles,ceholden/landsat_tiles | ---
+++
@@ -1,7 +1,59 @@
""" Multiprocess helpers
"""
+# LOGGING FOR MULTIPROCESSING
+MULTIPROC_LOG_FORMAT = '%(asctime)s:%(hostname)s:%(process)d:%(levelname)s:%(message)s' # noqa
+MULTIPROC_LOG_DATE_FORMAT = '%H:%M:%S'
+def get_logger_multiproc(name=None, filename='', stream='stdout'):
+ """ Return a logg... |
f0af944db962bdb8ea764737860ce9168f779977 | perfkitbenchmarker/linux_packages/azure_credentials.py | perfkitbenchmarker/linux_packages/azure_credentials.py | # Copyright 2016 PerfKitBenchmarker Authors. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appli... | # Copyright 2016 PerfKitBenchmarker Authors. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appli... | Fix a bug in the Azure credentials package in which they would overwrite the directory. | Fix a bug in the Azure credentials package in which they would overwrite the directory.
-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=248750675
| Python | apache-2.0 | GoogleCloudPlatform/PerfKitBenchmarker,GoogleCloudPlatform/PerfKitBenchmarker,GoogleCloudPlatform/PerfKitBenchmarker,GoogleCloudPlatform/PerfKitBenchmarker | ---
+++
@@ -26,11 +26,12 @@
def Install(vm):
"""Copies Azure credentials to the VM."""
+ vm.RemoteCommand('mkdir -p {0}'.format(AZURE_CREDENTIAL_LOCATION))
vm.PushFile(
object_storage_service.FindCredentialFile(
os.path.join('~', AZURE_CREDENTIAL_TOKENS_FILE)),
- AZURE_CREDENTIAL_LOCA... |
6250427143245676a5efd7e5c55054b5b3a285fd | src/pushover_complete/__init__.py | src/pushover_complete/__init__.py | """A Python 3 package for interacting with *all* aspects of the Pushover API"""
from .error import PushoverCompleteError, BadAPIRequestError
from .pushover_api import PushoverAPI
__all__ = [
'PushoverCompleteError', 'BadAPIRequestError',
'PushoverAPI'
]
__version__ = '0.0.1'
__title__ = 'pushover_complete'
... | """A Python 3 package for interacting with *all* aspects of the Pushover API"""
from .error import PushoverCompleteError, BadAPIRequestError
from .pushover_api import PushoverAPI
__all__ = [
'PushoverCompleteError', 'BadAPIRequestError',
'PushoverAPI'
]
__version__ = '0.0.1'
__title__ = 'pushover_complete'
... | Add URL for project to the project metadata | Add URL for project to the project metadata
| Python | mit | scolby33/pushover_complete | ---
+++
@@ -12,7 +12,7 @@
__title__ = 'pushover_complete'
__description__ = ''
-__url__ = ''
+__url__ = 'https://github.com/scolby33/pushover_complete'
__author__ = 'Scott Colby' |
8ff455e9eb0f7cbf80f1ac631a5aa7e98f8935af | mysite/project/controllers.py | mysite/project/controllers.py | import mysite.search.models
import logging
KEY='answer_ids_that_are_ours'
def similar_project_names(project_name):
# HOPE: One day, order this by relevance.
return mysite.search.models.Project.objects.filter(
name__icontains=project_name)
def note_in_session_we_control_answer_id(session, answer_id, KE... | import mysite.search.models
import logging
KEY='answer_ids_that_are_ours'
def similar_project_names(project_name):
# HOPE: One day, order this by relevance.
return mysite.search.models.Project.objects.filter(
name__icontains=project_name)
def note_in_session_we_control_answer_id(session, answer_id, KE... | Revert "Do not assume all answers in our session are valid." | Revert "Do not assume all answers in our session are valid."
This reverts commit 0f7e535d645086f9c29e77e28588a3165f7bb2b8.
| Python | agpl-3.0 | moijes12/oh-mainline,nirmeshk/oh-mainline,mzdaniel/oh-mainline,moijes12/oh-mainline,mzdaniel/oh-mainline,heeraj123/oh-mainline,eeshangarg/oh-mainline,SnappleCap/oh-mainline,campbe13/openhatch,ojengwa/oh-mainline,mzdaniel/oh-mainline,onceuponatimeforever/oh-mainline,ehashman/oh-mainline,willingc/oh-mainline,ojengwa/oh-m... | ---
+++
@@ -25,7 +25,10 @@
def take_control_of_our_answers(user, session, KEY=KEY):
# FIXME: This really ought to be some sort of thread-safe queue,
# or stored in the database, or something.
- answers = get_unsaved_answers_from_session(session)
+ for answer_id in session.get(KEY, []):
+ answe... |
546140bee689fc63361977dafa600022396606e7 | audio_train.py | audio_train.py | #%% Setup.
import numpy as np
import scipy.io.wavfile
from keras.utils.visualize_util import plot
from keras.callbacks import TensorBoard, ModelCheckpoint
from keras.utils import np_utils
from eva.models.wavenet import Wavenet, compute_receptive_field
from eva.util.mutil import sparse_labels
#%% Data
RATE, DATA = s... | #%% Setup.
import numpy as np
import scipy.io.wavfile
from keras.utils.visualize_util import plot
from keras.callbacks import TensorBoard, ModelCheckpoint
from keras.utils import np_utils
from eva.models.wavenet import Wavenet, compute_receptive_field
from eva.util.mutil import sparse_labels
#%% Data
RATE, DATA = s... | Add train config to audio train | Add train config to audio train
| Python | apache-2.0 | israelg99/eva | ---
+++
@@ -18,10 +18,14 @@
FILTERS = 256
DEPTH = 7
STACKS = 4
-LENGTH = 1 + compute_receptive_field(RATE, DEPTH, STACKS)[0]
+LENGTH = DATA.shape[0]
BINS = 256
LOAD = False
+
+#%% Train Config.
+BATCH_SIZE = 5
+EPOCHS = 2000
#%% Model.
INPUT = (LENGTH, BINS)
@@ -37,7 +41,7 @@
#%% Train.
TRAIN = np_util... |
b7077a85956cae3efb2ec1b2f474735cf6e8c4ed | csv_converter.py | csv_converter.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import csv
class CsvConverter:
def __init__(self, csv_file_path):
self.csv_file_path = csv_file_path
self.rows = []
self.source_product_code = "product_code"
self.source_quantity = "quantity"
self.debug = False
def set_deb... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import csv
import warnings
class CsvConverter:
def __init__(self, csv_file_path):
self.csv_file_path = csv_file_path
self.rows = []
self.source_product_code = "product_code"
self.source_quantity = "quantity"
self.debug = False
... | Remove debug and use warngins | Remove debug and use warngins
| Python | mit | stormaaja/csvconverter,stormaaja/csvconverter,stormaaja/csvconverter | ---
+++
@@ -2,6 +2,7 @@
# -*- coding: utf-8 -*-
import csv
+import warnings
class CsvConverter:
@@ -11,9 +12,6 @@
self.source_product_code = "product_code"
self.source_quantity = "quantity"
self.debug = False
-
- def set_debug(self, debug):
- self.debug = debug
def... |
fd5674a1b36498e5d3a597203c180ded8c57d058 | morph_proxy.py | morph_proxy.py | # Run this with mitmdump -q -s morph_proxy.py
def request(context, flow):
# print out all the basic information to determine what request is being made
# coming from which container
# print flow.request.method
# print flow.request.host
# print flow.request.path
# print flow.request.scheme
# print flow.re... | # Run this with mitmdump -q -s morph_proxy.py
def response(context, flow):
text = flow.request.method + " " + flow.request.scheme + "://" + flow.request.host + flow.request.path + " FROM " + flow.request.client_conn.address[0] + " REQUEST SIZE " + str(len(flow.request.content)) + " RESPONSE SIZE " + str(len(flow.res... | Add request and response size | Add request and response size
| Python | agpl-3.0 | otherchirps/morph,openaustralia/morph,otherchirps/morph,otherchirps/morph,OpenAddressesUK/morph,otherchirps/morph,otherchirps/morph,openaustralia/morph,openaustralia/morph,otherchirps/morph,otherchirps/morph,OpenAddressesUK/morph,openaustralia/morph,OpenAddressesUK/morph,openaustralia/morph,openaustralia/morph,OpenAddr... | ---
+++
@@ -1,15 +1,5 @@
# Run this with mitmdump -q -s morph_proxy.py
-def request(context, flow):
- # print out all the basic information to determine what request is being made
- # coming from which container
- # print flow.request.method
- # print flow.request.host
- # print flow.request.path
- # print f... |
c8cac2a2c1b42fde675b166272729c74c2c42cdc | x.py | x.py | #!/usr/bin/env python
# This file is only a "symlink" to bootstrap.py, all logic should go there.
import os
import sys
rust_dir = os.path.dirname(os.path.abspath(__file__))
sys.path.append(os.path.join(rust_dir, "src", "bootstrap"))
import bootstrap
bootstrap.main()
| #!/usr/bin/env python
# This file is only a "symlink" to bootstrap.py, all logic should go there.
import os
import sys
# If this is python2, check if python3 is available and re-execute with that
# interpreter.
if sys.version_info.major < 3:
try:
# On Windows, `py -3` sometimes works.
# Try this ... | Choose the version of python at runtime (portable version) | Choose the version of python at runtime (portable version)
- Try `py -3` first for windows compatibility
- Fall back to `python3` if `py` doesn't work
| Python | apache-2.0 | aidancully/rust,graydon/rust,graydon/rust,graydon/rust,graydon/rust,aidancully/rust,aidancully/rust,aidancully/rust,aidancully/rust,graydon/rust,graydon/rust,aidancully/rust | ---
+++
@@ -4,6 +4,22 @@
import os
import sys
+
+# If this is python2, check if python3 is available and re-execute with that
+# interpreter.
+if sys.version_info.major < 3:
+ try:
+ # On Windows, `py -3` sometimes works.
+ # Try this first, because 'python3' sometimes tries to launch the app
+ ... |
f707daae978f6fb7c8b5cc8f66cac2820097ebde | attack.py | attack.py | from subprocess import Popen, PIPE
proc = Popen(["./badencrypt.py", "hello!!!"],stdout=PIPE)
hexCiphertext = proc.communicate()[0].strip()
#import pdb
#pdb.set_trace()
print hexCiphertext
proc = Popen(["./baddecrypt.py", hexCiphertext],stdout=PIPE)
output = proc.communicate()[0]
print output
| from subprocess import Popen, PIPE
proc = Popen(["./badencrypt.py", "hellooooworlddd"],stdout=PIPE)
hexCiphertext = proc.communicate()[0].strip()
import pdb
pdb.set_trace()
print hexCiphertext
print str(len(hexCiphertext)/16)+" blocks"
proc = Popen(["./baddecrypt.py", hexCiphertext],stdout=PIPE)
output = proc.commun... | Make a sixteen byte plaintext | Make a sixteen byte plaintext
| Python | mit | somethingnew2-0/CS642-HW4,somethingnew2-0/CS642-HW4 | ---
+++
@@ -1,11 +1,12 @@
from subprocess import Popen, PIPE
-proc = Popen(["./badencrypt.py", "hello!!!"],stdout=PIPE)
+proc = Popen(["./badencrypt.py", "hellooooworlddd"],stdout=PIPE)
hexCiphertext = proc.communicate()[0].strip()
-#import pdb
-#pdb.set_trace()
+import pdb
+pdb.set_trace()
print hexCiphertext... |
d37237779e6e2a7ed1df9a9ea83e93df2cf2b478 | elifetools/tests/fixtures/test_pub_history/content_01_expected.py | elifetools/tests/fixtures/test_pub_history/content_01_expected.py | from collections import OrderedDict
from elifetools.utils import date_struct
expected = [
OrderedDict([
('event_type', 'preprint-publication'),
('event_desc', 'This article was originally published as a <ext-link ext-link-type="uri" xlink:href="https://www.biorxiv.org/content/early/2017/03/24/1183... | from collections import OrderedDict
from elifetools.utils import date_struct
expected = [
OrderedDict([
('event_type', 'preprint-publication'),
('event_desc', 'This article was originally published as a <ext-link ext-link-type="uri" xlink:href="https://www.biorxiv.org/content/early/2017/03/24/1183... | Change the date key to non-unicode in the test fixture. | Change the date key to non-unicode in the test fixture.
| Python | mit | elifesciences/elife-tools,elifesciences/elife-tools | ---
+++
@@ -12,7 +12,7 @@
('day', '24'),
('month', '03'),
('year', '2017'),
- (u'date', date_struct(2017, 3, 24)),
+ ('date', date_struct(2017, 3, 24)),
('iso-8601-date', '2017-03-24')
])
] |
56116d198ea9fea6d9753c412fff550876e17196 | setup.py | setup.py | from distutils.core import setup
setup(
name='Yify',
version='0.1.0',
author='Batista Harahap',
author_email='batista@bango29.com',
packages=['yify'],
url='https://github.com/tistaharahap/yify-python',
license='LICENSE',
description='Yify provides a Python interface to interact with Yif... | from distutils.core import setup
setup(
name='Yify',
version='0.1.0',
author='Batista Harahap',
author_email='batista@bango29.com',
packages=['yify'],
url='https://github.com/tistaharahap/yify-python',
license='LICENSE',
description='Yify provides a Python interface to interact with Yif... | Update to read README.md for the long description | Update to read README.md for the long description | Python | mit | tistaharahap/yify-python | ---
+++
@@ -9,5 +9,5 @@
url='https://github.com/tistaharahap/yify-python',
license='LICENSE',
description='Yify provides a Python interface to interact with Yify Torrent\'s API.',
- long_description=open('README').read()
+ long_description=open('README.md').read()
) |
6ab12eb503bbe2eddc1eb419398082dffeb335d5 | setup.py | setup.py | from setuptools import setup, find_packages
VERSION = (1, 4, 13)
# Dynamically calculate the version based on VERSION tuple
if len(VERSION)>2 and VERSION[2] is not None:
str_version = "%d.%d_%s" % VERSION[:3]
else:
str_version = "%d.%d" % VERSION[:2]
version= str_version
setup(
name = 'django-livesettin... | from setuptools import setup, find_packages
VERSION = (1, 6, 0)
# Dynamically calculate the version based on VERSION tuple
if len(VERSION)>2 and VERSION[2] is not None:
str_version = "%d.%d_%s" % VERSION[:3]
else:
str_version = "%d.%d" % VERSION[:2]
version= str_version
setup(
name = 'django-livesetting... | Add django-keyedcache as a requirement | Add django-keyedcache as a requirement
| Python | bsd-3-clause | pjrobertson/dj-livesettings | ---
+++
@@ -1,6 +1,6 @@
from setuptools import setup, find_packages
-VERSION = (1, 4, 13)
+VERSION = (1, 6, 0)
# Dynamically calculate the version based on VERSION tuple
if len(VERSION)>2 and VERSION[2] is not None:
@@ -19,7 +19,7 @@
author_email = 'bruce@ecomsmith.com',
url = 'http://bitbucket.org/b... |
a5f1e3d6120672b24f4ec4445b7d34003a739cdd | setup.py | setup.py | # This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this file,
# You can obtain one at http://mozilla.org/MPL/2.0/.
from setuptools import setup
PACKAGE_VERSION = '0.1'
deps = ['fxos-appgen>=0.2.10',
'marionette_client>=0.7.1.1... | # This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this file,
# You can obtain one at http://mozilla.org/MPL/2.0/.
from setuptools import setup
PACKAGE_VERSION = '0.1'
deps = ['fxos-appgen>=0.2.10',
'marionette_client>=0.7.1.1... | Revert "Freeze mozlog version because of proposed API changes." | Revert "Freeze mozlog version because of proposed API changes."
This reverts commit 932b9d0b8e432ec1a7ff175c8716c8948b0beddd.
| Python | mpl-2.0 | oouyang/fxos-certsuite,ShakoHo/fxos-certsuite,mozilla-b2g/fxos-certsuite,oouyang/fxos-certsuite,Conjuror/fxos-certsuite,cr/fxos-certsuite,cr/fxos-certsuite,askeing/fxos-certsuite,cr/fxos-certsuite,mozilla-b2g/fxos-certsuite,oouyang/fxos-certsuite,askeing/fxos-certsuite,ShakoHo/fxos-certsuite,ypwalter/fxos-certsuite,ypw... | ---
+++
@@ -9,7 +9,7 @@
'marionette_client>=0.7.1.1',
'marionette_extension >= 0.4',
'mozdevice >= 0.33',
- 'mozlog == 1.8',
+ 'mozlog >= 1.8',
'moznetwork >= 0.24',
'mozprocess >= 0.18',
'wptserve >= 1.0.1', |
a5e6c7ab40d1f8dd7f8b3c68ad461ec6adaa0ed2 | setup.py | setup.py | from distutils.core import setup
MESOS_VERSION = '0.20.0'
UBUNTU_VERSION = '14.04'
tests_require = ['pytest>=2.5.0,<2.6.0', 'pytest-cov>=1.6,<1.7',
'pytest-xdist>=1.9,<1.10', 'unittest2>=0.5.1,<0.6.0',
'mock>=1.0.1,<1.1.0', 'flask>=0.10.1,<0.11.0']
setup(name='changes-mesos-schedule... | from distutils.core import setup
MESOS_VERSION = '0.27.0'
UBUNTU_VERSION = '14.04'
tests_require = ['pytest>=2.5.0,<2.6.0', 'pytest-cov>=1.6,<1.7',
'pytest-xdist>=1.9,<1.10', 'unittest2>=0.5.1,<0.6.0',
'mock>=1.0.1,<1.1.0', 'flask>=0.10.1,<0.11.0']
setup(name='changes-mesos-schedule... | Update Mesos bindings to 0.27.0 | Update Mesos bindings to 0.27.0
Summary: Won't take effect until we update the deb that's installed.
Test Plan: staging (I've been able to install the generated deb on the staging scheduler)
Reviewers: kylec, paulruan
Reviewed By: paulruan
Subscribers: changesbot
Differential Revision: https://tails.corp.dropbox.... | Python | apache-2.0 | dropbox/changes-mesos-framework,dropbox/changes-mesos-framework | ---
+++
@@ -1,6 +1,6 @@
from distutils.core import setup
-MESOS_VERSION = '0.20.0'
+MESOS_VERSION = '0.27.0'
UBUNTU_VERSION = '14.04'
tests_require = ['pytest>=2.5.0,<2.6.0', 'pytest-cov>=1.6,<1.7', |
e318716fdaeda8fdabe06daf644178a43bc7400e | setup.py | setup.py | from setuptools import setup, find_packages
setup(name='nanomon',
version='1.0',
author='Michael Barrett',
author_email='mike@brkt.com',
description='The Nano Monitoring System',
packages=find_packages(),
)
| from setuptools import setup, find_packages
setup(
name='nymms',
version='0.1.0',
author='Michael Barrett',
author_email='loki77@gmail.com',
license="New BSD license",
description='Not Your Mother\'s Monitoring System (NYMMS)',
packages=find_packages(),
)
| Change package name, add license | Change package name, add license
| Python | bsd-2-clause | cloudtools/nymms | ---
+++
@@ -1,9 +1,11 @@
from setuptools import setup, find_packages
-setup(name='nanomon',
- version='1.0',
+setup(
+ name='nymms',
+ version='0.1.0',
author='Michael Barrett',
- author_email='mike@brkt.com',
- description='The Nano Monitoring System',
+ author_email='loki77@gmail.com',
+ ... |
4ced26323a1e98b9fea823c35ebbbb28b103369a | setup.py | setup.py | from setuptools import setup, find_packages
setup(
name='zeit.brightcove',
version='2.10.2.dev0',
author='gocept, Zeit Online',
author_email='zon-backend@zeit.de',
url='http://www.zeit.de/',
description='Brightcove HTTP interface',
packages=find_packages('src'),
package_dir={'': 'src'},... | from setuptools import setup, find_packages
setup(
name='zeit.brightcove',
version='2.10.2.dev0',
author='gocept, Zeit Online',
author_email='zon-backend@zeit.de',
url='http://www.zeit.de/',
description='Brightcove HTTP interface',
packages=find_packages('src'),
package_dir={'': 'src'},... | Fix typo (belongs to commit:9ec5886) | ZON-4070: Fix typo (belongs to commit:9ec5886)
| Python | bsd-3-clause | ZeitOnline/zeit.brightcove | ---
+++
@@ -35,6 +35,6 @@
entry_points="""
[console_scripts]
update-brightcove-repository=zeit.brightcove.update:_update_from_brightcove
- brightcove-import-playlists=zeit.brightcove.update2:_import_playlists
+ brightcove-import-playlists=zeit.brightcove.update2:import_playlists
"""
) |
77bda2ce09b8d397a25c4bff83268aa3d8ec187b | setup.py | setup.py | from setuptools import setup, find_packages
setup(
name="comt",
version="2.6.0",
url='http://www.co-ment.org',
license='AGPL3',
description="Web-based Text Annotation Application.",
long_description=open('ABOUT.rst').read(),
author='Abilian SAS',
author_email='dev@abilian.com',
pac... | from setuptools import setup, find_packages
setup(
name="comt",
use_scm_version=True,
url='http://www.co-ment.org',
license='AGPL3',
description="Web-based Text Annotation Application.",
long_description=open('ABOUT.rst').read(),
author='Abilian SAS',
author_email='dev@abilian.com',
... | Use git tag for package version. | Use git tag for package version.
| Python | agpl-3.0 | co-ment/comt,co-ment/comt,co-ment/comt,co-ment/comt,co-ment/comt,co-ment/comt,co-ment/comt | ---
+++
@@ -2,7 +2,7 @@
setup(
name="comt",
- version="2.6.0",
+ use_scm_version=True,
url='http://www.co-ment.org',
license='AGPL3',
description="Web-based Text Annotation Application.", |
dfb133beb576cddc67bbaf17c2598b7f37c76bad | setup.py | setup.py | from setuptools import setup, find_packages
if __name__ == "__main__":
import falafel
setup(
name=falafel.NAME,
version=falafel.VERSION,
description="Insights Application Programming Interface",
packages=find_packages(),
package_data={"": ["*.json", "RELEASE", "COMMIT"]... | from setuptools import setup, find_packages
if __name__ == "__main__":
import falafel
setup(
name=falafel.NAME,
version=falafel.VERSION,
description="Insights Application Programming Interface",
packages=find_packages(),
package_data={"": ["*.json", "RELEASE", "COMMIT",... | Add bodytemplate.md to build artifacts | Add bodytemplate.md to build artifacts
| Python | apache-2.0 | RedHatInsights/insights-core,RedHatInsights/insights-core | ---
+++
@@ -8,7 +8,7 @@
version=falafel.VERSION,
description="Insights Application Programming Interface",
packages=find_packages(),
- package_data={"": ["*.json", "RELEASE", "COMMIT"]},
+ package_data={"": ["*.json", "RELEASE", "COMMIT", "*.md"]},
install_requires=[
... |
5089c8a348f44a4741ab94be78f81ce0fbf34c65 | setup.py | setup.py | import setuptools
import versioneer
if __name__ == "__main__":
setuptools.setup(
name='basis_set_exchange',
version=versioneer.get_version(),
cmdclass=versioneer.get_cmdclass(),
description='The Quantum Chemistry Basis Set Exchange',
author='The Molecular Sciences Software I... | import setuptools
import versioneer
if __name__ == "__main__":
setuptools.setup(
name='basis_set_exchange',
version=versioneer.get_version(),
cmdclass=versioneer.get_cmdclass(),
description='The Quantum Chemistry Basis Set Exchange',
author='The Molecular Sciences Software I... | Remove version limit on sphinx | Remove version limit on sphinx
| Python | bsd-3-clause | MOLSSI-BSE/basis_set_exchange | ---
+++
@@ -17,7 +17,7 @@
],
extras_require={
'docs': [
- 'sphinx==1.2.3', # autodoc was broken in 1.3.1
+ 'sphinx',
'sphinxcontrib-napoleon',
'sphinx_rtd_theme',
'numpydoc', |
9b01b00bf5fa60efaa402bf1e40154574942558e | setup.py | setup.py | from setuptools import setup
import mzgtfs
setup(
name='mzgtfs',
version=mzgtfs.__version__,
description='Mapzen GTFS',
author='Ian Rees',
author_email='ian@mapzen.com',
url='https://github.com/transitland/mapzen-gtfs',
license='License :: OSI Approved :: MIT License',
packages=['mzgtfs'],
install_r... | from setuptools import setup
import mzgtfs
setup(
name='mzgtfs',
version=mzgtfs.__version__,
description='Mapzen GTFS',
author='Ian Rees',
author_email='ian@mapzen.com',
url='https://github.com/transitland/mapzen-gtfs',
license='License :: OSI Approved :: MIT License',
packages=['mzgtfs'],
install_r... | Add pytz to required dependencies | Add pytz to required dependencies
| Python | mit | brechtvdv/mapzen-gtfs,brennan-v-/mapzen-gtfs,transitland/mapzen-gtfs | ---
+++
@@ -11,7 +11,7 @@
url='https://github.com/transitland/mapzen-gtfs',
license='License :: OSI Approved :: MIT License',
packages=['mzgtfs'],
- install_requires=['unicodecsv', 'mzgeohash'],
+ install_requires=['unicodecsv', 'mzgeohash', 'pytz'],
zip_safe=False,
# Include examples.
package_dat... |
f4510b9b6402ddbe2412eb5524c7a44eb6bc966d | setup.py | setup.py | #!/usr/bin/env python
# coding: utf8
# Copyright 2014-2015 Vincent Jacques <vincent@vincent-jacques.net>
import contextlib
import os
import setuptools
import setuptools.command.test
version = "0.2.1"
setuptools.setup(
name="LowVoltage",
version=version,
description="Standalone DynamoDB client not hidi... | #!/usr/bin/env python
# coding: utf8
# Copyright 2014-2015 Vincent Jacques <vincent@vincent-jacques.net>
import contextlib
import os
import setuptools
import setuptools.command.test
version = "0.2.3"
setuptools.setup(
name="LowVoltage",
version=version,
description="Standalone DynamoDB client not hidi... | Fix version (0.2.2 never made it to PyPI) | Fix version (0.2.2 never made it to PyPI)
| Python | mit | jacquev6/LowVoltage,jacquev6/LowVoltage | ---
+++
@@ -9,7 +9,7 @@
import setuptools.command.test
-version = "0.2.1"
+version = "0.2.3"
setuptools.setup( |
87b708002b80be80657c0eb1d7670fe40f1d992d | setup.py | setup.py | from setuptools import setup
REPO_URL = 'http://github.com/datasciencebr/serenata-toolbox'
setup(
author='Serenata de Amor',
author_email='op.serenatadeamor@gmail.com',
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Science/Research',
'License :: OSI Approve... | from setuptools import setup
REPO_URL = 'http://github.com/datasciencebr/serenata-toolbox'
setup(
author='Serenata de Amor',
author_email='op.serenatadeamor@gmail.com',
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Science/Research',
'License :: OSI Approve... | Change version from 12.3.0 to 12.3.1 | Change version from 12.3.0 to 12.3.1
| Python | mit | datasciencebr/serenata-toolbox | ---
+++
@@ -34,5 +34,5 @@
'serenata_toolbox.datasets'
],
url=REPO_URL,
- version='12.3.0'
+ version='12.3.1'
) |
63431113fbb1d1d6793761e3cc30a8492df2f580 | setup.py | setup.py | #!/usr/bin/env python
"""How to release a new version: https://packaging.python.org/en/latest/distributing.html#uploading-your-project-to-pypi"""
from businesstime import __version__
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
setup(
name='businesstime',
ve... | #!/usr/bin/env python
"""How to release a new version: https://packaging.python.org/en/latest/distributing.html#uploading-your-project-to-pypi"""
from businesstime import __version__
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
setup(
name='businesstime',
ve... | Add holidays module to packages list | Add holidays module to packages list
Closes #14 | Python | bsd-2-clause | seatgeek/businesstime | ---
+++
@@ -14,7 +14,10 @@
version=__version__,
author='SeatGeek',
author_email='hi@seatgeek.com',
- packages=['businesstime'],
+ packages=[
+ 'businesstime',
+ 'businesstime.holidays',
+ ],
url='http://github.com/seatgeek/businesstime',
license=open('LICENSE.txt').read... |
76dddab86552a1e65cdc8ed26bb0674c83d5697b | setup.py | setup.py | from distutils.core import setup
import pykka
setup(
name='Pykka',
version=pykka.get_version(),
author='Stein Magnus Jodal',
author_email='stein.magnus@jodal.no',
packages=['pykka'],
url='http://jodal.github.com/pykka/',
license='Apache License, Version 2.0',
description='Pykka is a co... | from distutils.core import setup
import pykka
setup(
name='Pykka',
version=pykka.get_version(),
author='Stein Magnus Jodal',
author_email='stein.magnus@jodal.no',
packages=['pykka'],
url='http://jodal.github.com/pykka/',
license='Apache License, Version 2.0',
description='Pykka is easy... | Update description and categories for PyPI | Update description and categories for PyPI
| Python | apache-2.0 | tempbottle/pykka,jodal/pykka,tamland/pykka | ---
+++
@@ -10,8 +10,7 @@
packages=['pykka'],
url='http://jodal.github.com/pykka/',
license='Apache License, Version 2.0',
- description='Pykka is a concurrency abstraction which let you use ' +
- 'concurrent actors like regular objects',
+ description='Pykka is easy to use concurrency usi... |
e7d610ae806979eae0084c442bdba79c2bd919a2 | setup.py | setup.py | #!/usr/bin/env python
import sys
from setuptools import setup, find_packages
import pyecore
if sys.version_info < (3, 0):
sys.exit('Sorry, Python < 3.0 is not supported')
setup(
name="pyecore",
version=pyecore.__version__,
description=("A Pythonic Implementation of the Eclipse Modeling "
... | #!/usr/bin/env python
import sys
from setuptools import setup, find_packages
import pyecore
if sys.version_info < (3, 0):
sys.exit('Sorry, Python < 3.0 is not supported')
setup(
name="pyecore",
version=pyecore.__version__,
description=("A Pythonic Implementation of the Eclipse Modeling "
... | Change status from pre-alpha to beta (yeay \o/) | Change status from pre-alpha to beta (yeay \o/)
| Python | bsd-3-clause | pyecore/pyecore,aranega/pyecore | ---
+++
@@ -28,7 +28,7 @@
license='BSD 3-Clause',
classifiers=[
- "Development Status :: 2 - Pre-Alpha",
+ "Development Status :: 4 - Beta",
"Programming Language :: Python",
"Programming Language :: Python :: 3 :: Only",
"Operating System :: OS Independent", |
d403ae5e41f53f6c2893a946b94c4de899127fba | setup.py | setup.py | from distutils.core import setup
setup(
name='udiskie',
version='0.3.10',
description='Removable disk automounter for udisks',
author='Byron Clark',
author_email='byron@theclarkfamily.name',
url='http://bitbucket.org/byronclark/udiskie',
license='MIT',
packages=[
'udiskie',
... | from distutils.core import setup
setup(
name='udiskie',
version='0.3.11',
description='Removable disk automounter for udisks',
author='Byron Clark',
author_email='byron@theclarkfamily.name',
url='http://bitbucket.org/byronclark/udiskie',
license='MIT',
packages=[
'udiskie',
... | Prepare for next development cycle | Prepare for next development cycle
| Python | mit | pstray/udiskie,pstray/udiskie,coldfix/udiskie,coldfix/udiskie,mathstuf/udiskie,khardix/udiskie | ---
+++
@@ -2,7 +2,7 @@
setup(
name='udiskie',
- version='0.3.10',
+ version='0.3.11',
description='Removable disk automounter for udisks',
author='Byron Clark',
author_email='byron@theclarkfamily.name', |
68ca30a898306a86092f8477666ba20649ff6a08 | setup.py | setup.py | #! /usr/bin/env python
# -*- coding: utf-8 -*-
from setuptools import setup, find_packages
setup(
name='OpenFisca-Senegal',
version='0.5.1',
author='OpenFisca Team',
author_email='contact@openfisca.fr',
classifiers=[
"Development Status :: 2 - Pre-Alpha",
"License :: OSI Approved... | #! /usr/bin/env python
# -*- coding: utf-8 -*-
from setuptools import setup, find_packages
setup(
name='OpenFisca-Senegal',
version='0.5.1',
author='OpenFisca Team',
author_email='contact@openfisca.fr',
classifiers=[
"Development Status :: 2 - Pre-Alpha",
"License :: OSI Approved... | Add xlrd dependency for notebook | Add xlrd dependency for notebook
| Python | agpl-3.0 | openfisca/senegal | ---
+++
@@ -31,6 +31,7 @@
'notebook',
'matplotlib',
'pandas',
+ 'xlrd',
],
'survey': [
'OpenFisca-Survey-Manager >= 0.8.2', |
10eb6b8b29906c5c89c3675b660c21028db5b2c3 | setup.py | setup.py | import setuptools
setuptools.setup(
name="nbresuse",
version='0.2.0',
url="https://github.com/yuvipanda/nbresuse",
author="Yuvi Panda",
description="Simple Jupyter extension to show how much resources (RAM) your notebook is using",
packages=setuptools.find_packages(),
install_requires=[
... | from glob import glob
import setuptools
setuptools.setup(
name="nbresuse",
version='0.2.0',
url="https://github.com/yuvipanda/nbresuse",
author="Yuvi Panda",
description="Simple Jupyter extension to show how much resources (RAM) your notebook is using",
packages=setuptools.find_packages(),
... | Put nbresuse js files in appropriate path | Put nbresuse js files in appropriate path
How did this work before?
| Python | bsd-2-clause | yuvipanda/nbresuse,yuvipanda/nbresuse | ---
+++
@@ -1,3 +1,4 @@
+from glob import glob
import setuptools
setuptools.setup(
@@ -11,8 +12,8 @@
'psutil',
'notebook',
],
- package_data={'nbresuse': ['static/*']},
data_files=[
+ ('share/jupyter/nbextensions/nbresuse', glob('nbresuse/static/*')),
('etc/jupyter/j... |
c42bd2e3ae6f8c5c4170c3d5f2ae8ce176939f97 | setup.py | setup.py | #!/usr/bin/env python
from codecs import open
from setuptools import find_packages, setup
with open('README.rst', 'r', 'utf-8') as f:
readme = f.read()
setup(
name='blanc-contentfiles',
version='0.2.4',
description='Blanc Content Files',
long_description=readme,
url='https://github.com/blan... | #!/usr/bin/env python
from codecs import open
from setuptools import find_packages, setup
with open('README.rst', 'r', 'utf-8') as f:
readme = f.read()
setup(
name='blanc-contentfiles',
version='0.2.4',
description='Blanc Content Files',
long_description=readme,
url='https://github.com/deve... | Update GitHub repos from blancltd to developersociety | Update GitHub repos from blancltd to developersociety
| Python | bsd-3-clause | blancltd/blanc-contentfiles | ---
+++
@@ -13,7 +13,7 @@
version='0.2.4',
description='Blanc Content Files',
long_description=readme,
- url='https://github.com/blancltd/blanc-contentfiles',
+ url='https://github.com/developersociety/blanc-contentfiles',
maintainer='Blanc Ltd',
maintainer_email='studio@blanc.ltd.uk',
... |
7dcd285bb9e1b48c70d39eb35d132277e4d8ee88 | setup.py | setup.py | #!/usr/bin/env python
from __future__ import print_function
from setuptools import setup, find_packages
entry_points = """
[glue.plugins]
vispy_volume=glue_vispy_viewers.volume:setup
vispy_scatter=glue_vispy_viewers.scatter:setup
"""
# Add the following to the above entry points to enable the isosurface viewer
# vi... | #!/usr/bin/env python
from __future__ import print_function
from setuptools import setup, find_packages
entry_points = """
[glue.plugins]
vispy_volume=glue_vispy_viewers.volume:setup
vispy_scatter=glue_vispy_viewers.scatter:setup
vispy_isosurface=glue_vispy_viewers.isosurface:setup
"""
# Add the following to the ab... | Enable Isosurface class by default | Enable Isosurface class by default | Python | bsd-2-clause | glue-viz/glue-3d-viewer,PennyQ/astro-vispy,PennyQ/glue-3d-viewer,glue-viz/glue-vispy-viewers,astrofrog/glue-vispy-viewers,astrofrog/glue-3d-viewer | ---
+++
@@ -8,6 +8,7 @@
[glue.plugins]
vispy_volume=glue_vispy_viewers.volume:setup
vispy_scatter=glue_vispy_viewers.scatter:setup
+vispy_isosurface=glue_vispy_viewers.isosurface:setup
"""
# Add the following to the above entry points to enable the isosurface viewer |
c1498aebcb7d74d023be65055f19a89acf0ec546 | setup.py | setup.py | #!/usr/bin/env python
from distutils.core import setup
from distutils.file_util import copy_file
import platform
version = "0.1.0"
setup(name="riemann-sumd",
version=version,
description="Python agent for scheduling event generating processes and sending the results to Riemann",
author="Brian Hatfie... | #!/usr/bin/env python
from distutils.core import setup
from distutils.file_util import copy_file
import platform
version = "0.1.0"
setup(name="riemann-sumd",
version=version,
description="Python agent for scheduling event generating processes and sending the results to Riemann",
author="Brian Hatfie... | Remove copy_file call because it doesn't work right with bdist_deb | Remove copy_file call because it doesn't work right with bdist_deb
| Python | mit | crashlytics/riemann-sumd | ---
+++
@@ -19,5 +19,3 @@
('/etc/sumd/tags.d', ['examples/etc/sumd/tags.d/simple.tag.example'])],
scripts=["bin/sumd"]
)
-
-copy_file('/lib/init/upstart-job', '/etc/init.d/sumd', link='sym') |
4d3bf81a46033fd2a522705612746ac332a2aa73 | setup.py | setup.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from setuptools import setup
try:
from pypandoc import convert
long_description = convert('README.md', 'rst')
except IOError:
print("warning: README.md not found")
long_description = ""
except ImportError:
print("warning: pypandoc module not found, cou... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from setuptools import setup
try:
from pypandoc import convert
long_description = convert('README.md', 'rst')
except IOError:
print("warning: README.md not found")
long_description = ""
except ImportError:
print("warning: pypandoc module not found, cou... | Add polib as a dependency. | Add polib as a dependency.
| Python | agpl-3.0 | PyBossa/pbs,PyBossa/pbs,PyBossa/pbs | ---
+++
@@ -30,7 +30,7 @@
'Programming Language :: Python',],
py_modules=['pbs', 'helpers'],
install_requires=['Click', 'pybossa-client', 'requests', 'nose', 'mock', 'coverage',
- 'rednose', 'pypandoc', 'simplejson', 'jsonschema'],
+ 'rednose', '... |
fe870ecdfe63348607fa5d5e6c4101e2609c7553 | setup.py | setup.py | # -*- coding: utf-8 -*-
"""
Adapted from:
https://packaging.python.org/tutorials/packaging-projects/
"""
import setuptools
from fsic import __version__
with open('README.md') as f:
long_description = f.read()
setuptools.setup(
name='fsic',
version=__version__,
author='Chris Thoung',
author_email... | # -*- coding: utf-8 -*-
"""
Adapted from:
https://packaging.python.org/tutorials/packaging-projects/
"""
import re
import setuptools
# Get version number without having to `import` the `fsic` module (and
# attempting to import NumPy before it gets installed). Idea from:
# https://packaging.python.org/guides/single-s... | Implement alternative way of getting version number | BLD: Implement alternative way of getting version number
| Python | mit | ChrisThoung/fsic | ---
+++
@@ -4,8 +4,18 @@
https://packaging.python.org/tutorials/packaging-projects/
"""
+import re
import setuptools
-from fsic import __version__
+
+
+# Get version number without having to `import` the `fsic` module (and
+# attempting to import NumPy before it gets installed). Idea from:
+# https://packaging.p... |
7ab6e87a8cf89c12733f7923c0f4564672f549fc | setup.py | setup.py | from setuptools import setup, find_packages
setup(
name='k2catalogue',
version='0.0.1',
author='Simon Walker',
install_requires=['requests', 'sqlalchemy', 'ipython',],
tests_require=['vcrpy', 'pytest'],
packages=find_packages(exclude=['venv']),
entry_points={
'console_scripts': [
... | from setuptools import setup, find_packages
setup(
name='k2catalogue',
version='0.0.1',
author='Simon Walker',
install_requires=['requests', 'sqlalchemy', 'ipython', 'vcrpy'],
tests_require=['vcrpy', 'pytest'],
packages=find_packages(exclude=['venv']),
entry_points={
'console_script... | Add vcrpy back to main program requirements | Add vcrpy back to main program requirements
| Python | mit | mindriot101/k2catalogue | ---
+++
@@ -4,7 +4,7 @@
name='k2catalogue',
version='0.0.1',
author='Simon Walker',
- install_requires=['requests', 'sqlalchemy', 'ipython',],
+ install_requires=['requests', 'sqlalchemy', 'ipython', 'vcrpy'],
tests_require=['vcrpy', 'pytest'],
packages=find_packages(exclude=['venv']),
... |
7c0c5631ff9f2d3511b7c460d22516b5b0393697 | setup.py | setup.py | #!/usr/bin/env python
import distutils.core
# Uploading to PyPI
# =================
# $ python setup.py register -r pypi
# $ python setup.py sdist upload -r pypi
version = '1.1'
distutils.core.setup(
name='linersock',
version=version,
author='Kale Kundert and Alex Mitchell',
packages=... | #!/usr/bin/env python
import distutils.core
# Uploading to PyPI
# =================
# $ python setup.py register -r pypi
# $ python setup.py sdist upload -r pypi
version = '1.2'
distutils.core.setup(
name='linersock',
version=version,
author='Kale Kundert and Alex Mitchell',
url='http... | Add six as a dependency. | Add six as a dependency.
| Python | mit | kalekundert/linersock,kalekundert/linersock | ---
+++
@@ -7,15 +7,19 @@
# $ python setup.py register -r pypi
# $ python setup.py sdist upload -r pypi
-version = '1.1'
+version = '1.2'
distutils.core.setup(
name='linersock',
version=version,
author='Kale Kundert and Alex Mitchell',
- packages=['linersock'],
url='htt... |
149c5fb9651f8e33a5e2984f47f8de05c02c1e43 | setup.py | setup.py | import os
from setuptools import setup
with open(os.path.join(os.path.dirname(__file__), 'README.md')) as readme:
README = readme.read()
# allow setup.py to be run from any path
os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir)))
setup(
name='django-smsish',
version='1.1',
packages=[
... | import os
from setuptools import setup
with open(os.path.join(os.path.dirname(__file__), 'README.md')) as readme:
README = readme.read()
# allow setup.py to be run from any path
os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir)))
setup(
name='django-smsish',
version='1.1',
packages=[
... | Add 'Programming Language :: Python :: 3.4' to classifiers | Add 'Programming Language :: Python :: 3.4' to classifiers
https://travis-ci.org/RyanBalfanz/django-smsish/builds/105968596 | Python | mit | RyanBalfanz/django-smsish | ---
+++
@@ -31,6 +31,7 @@
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
+ 'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Topic :: Communications',
'Topic :: Communications :: Telephony', |
30c80e5c793c1f59f2a22e10cf183de15ef463dd | setup.py | setup.py | # -*- coding: utf-8 -*-
from setuptools import setup
setup(
name='pynubank',
version='1.2.0',
url='https://github.com/andreroggeri/pynubank',
author='AndrΓ© Roggeri Campos',
author_email='a.roggeri.c@gmail.com',
license='MIT',
packages=['pynubank'],
package_data={'pynubank': ['queries/*.... | from setuptools import setup, find_packages
setup(
name='pynubank',
version='2.0.0b',
url='https://github.com/andreroggeri/pynubank',
author='AndrΓ© Roggeri Campos',
author_email='a.roggeri.c@gmail.com',
license='MIT',
packages=find_packages(),
package_data={'pynubank': ['queries/*.gql']... | Add cert generator script as entry point | feat: Add cert generator script as entry point
| Python | mit | andreroggeri/pynubank | ---
+++
@@ -1,14 +1,18 @@
-# -*- coding: utf-8 -*-
-from setuptools import setup
+from setuptools import setup, find_packages
setup(
name='pynubank',
- version='1.2.0',
+ version='2.0.0b',
url='https://github.com/andreroggeri/pynubank',
author='AndrΓ© Roggeri Campos',
author_email='a.rogge... |
eb151779dc462e29001c75ed0e05b1c395a27968 | setup.py | setup.py | from setuptools import setup, PEP420PackageFinder
setup(
name='tangled.web',
version='1.0a13.dev0',
description='RESTful Web Framework',
long_description=open('README.rst').read(),
url='http://tangledframework.org/',
download_url='https://github.com/TangledWeb/tangled.web/tags',
author='Wy... | from setuptools import setup, PEP420PackageFinder
setup(
name='tangled.web',
version='1.0a13.dev0',
description='RESTful Web Framework',
long_description=open('README.rst').read(),
url='http://tangledframework.org/',
download_url='https://github.com/TangledWeb/tangled.web/tags',
author='Wy... | Upgrade tangled 1.0a11 => 1.0a12 | Upgrade tangled 1.0a11 => 1.0a12
| Python | mit | TangledWeb/tangled.web | ---
+++
@@ -13,13 +13,13 @@
packages=PEP420PackageFinder.find(include=['tangled*']),
include_package_data=True,
install_requires=[
- 'tangled>=1.0a11',
+ 'tangled>=1.0a12',
'MarkupSafe>=0.23',
'WebOb>=1.5.1',
],
extras_require={
'dev': [
- '... |
4a36283ac196f5c5832d32ba656aca7c651183f4 | setup.py | setup.py | from setuptools import setup
setup(
name='daffodil',
version='0.3.0',
author='James Robert',
description='A Super-simple DSL for filtering datasets',
license='MIT',
keywords='data filtering',
url='https://github.com/mediapredict/daffodil',
packages=['daffodil'],
install_requires=[
... | from setuptools import setup
setup(
name='daffodil',
version='0.3.1',
author='James Robert',
description='A Super-simple DSL for filtering datasets',
license='MIT',
keywords='data filtering',
url='https://github.com/mediapredict/daffodil',
packages=['daffodil'],
install_requires=[
... | Increment version with bug fixes | Increment version with bug fixes | Python | mit | igorkramaric/daffodil,mediapredict/daffodil | ---
+++
@@ -2,7 +2,7 @@
setup(
name='daffodil',
- version='0.3.0',
+ version='0.3.1',
author='James Robert',
description='A Super-simple DSL for filtering datasets',
license='MIT', |
36f5fc790e27b9d617f71a3fe49160cb99d2e5d3 | setup.py | setup.py | # -*- coding: utf-8 -*-
import os
from setuptools import setup, find_packages
README_FILE = os.path.join(os.path.dirname(__file__), 'README.rst')
setup(
name='tomako',
version='dev',
description='Tomako is the easiest way to use Mako as a template engine '
'for Tornado',
long_descrip... | # -*- coding: utf-8 -*-
import os
from setuptools import setup, find_packages
README_FILE = os.path.join(os.path.dirname(__file__), 'README.rst')
setup(
name='tomako',
version='0.1.0',
description='Tomako is the easiest way to use Mako as a template engine '
'for Tornado',
long_descr... | Change version from dev to 0.1.0 | Change version from dev to 0.1.0
| Python | mit | rcmachado/tomako,rcmachado/tomako | ---
+++
@@ -8,7 +8,7 @@
setup(
name='tomako',
- version='dev',
+ version='0.1.0',
description='Tomako is the easiest way to use Mako as a template engine '
'for Tornado',
long_description=open(README_FILE).read(), |
ab5a93e55f9e6e1607afcb3ba03d2103dc423cc7 | setup.py | setup.py | #!/usr/bin/env python
"""
properties: Fancy properties for Python.
"""
from distutils.core import setup
from setuptools import find_packages
CLASSIFIERS = [
'Development Status :: 4 - Beta',
'Programming Language :: Python',
'Topic :: Scientific/Engineering',
'Topic :: Scientific/Engineering :: Ma... | #!/usr/bin/env python
"""
properties: Fancy properties for Python.
"""
from distutils.core import setup
from setuptools import find_packages
CLASSIFIERS = [
'Development Status :: 4 - Beta',
'Programming Language :: Python',
'Topic :: Scientific/Engineering',
'Topic :: Scientific/Engineering :: Ma... | Update the required vectormath version to 0.1.0 | Update the required vectormath version to 0.1.0
| Python | mit | 3ptscience/properties,aranzgeo/properties | ---
+++
@@ -30,7 +30,7 @@
'future',
'numpy>=1.7',
'six',
- 'vectormath',
+ 'vectormath>=0.1.0',
],
author="3point Science",
author_email="info@3ptscience.com", |
ad53b2e3f52382e9656a00b5c3641fa9d3e47bb1 | setup.py | setup.py | #!/usr/bin/env python2
from distutils.core import setup
from hipshot import hipshot
_classifiers = [
'Development Status :: 4 - Beta',
'Environment :: Console',
'Intended Audience :: End Users/Desktop',
'License :: OSI Approved :: ISC License (ISCL)',
'Operating System :: OS Independent',
'P... | #!/usr/bin/env python2
from distutils.core import setup
from hipshot import hipshot
_classifiers = [
'Development Status :: 4 - Beta',
'Environment :: Console',
'Intended Audience :: End Users/Desktop',
'License :: OSI Approved :: ISC License (ISCL)',
'Operating System :: OS Independent',
'P... | Install the Avena library too. | Install the Avena library too.
| Python | isc | eliteraspberries/hipshot | ---
+++
@@ -34,5 +34,5 @@
if __name__ == '__main__':
- setup(packages=['hipshot'], scripts=['scripts/hipshot'],
+ setup(packages=['avena', 'hipshot'], scripts=['scripts/hipshot'],
**_setup_args) |
f74ccf59547d8b7dbee5cbcbf608940a33a8c3f9 | setup.py | setup.py | from setuptools import setup
from flask_mwoauth import __version__
setup(name='flask-mwoauth',
version=__version__,
description='Flask blueprint to connect to a MediaWiki OAuth server',
url='http://github.com/valhallasw/flask-mwoauth',
author='Merlijn van Deen',
author_email='valhallasw@... | from setuptools import setup
exec([l for l in open("flask_mwoauth/__init__.py") if l.startswith('__version__')][0])
setup(name='flask-mwoauth',
version=__version__,
description='Flask blueprint to connect to a MediaWiki OAuth server',
url='http://github.com/valhallasw/flask-mwoauth',
author='M... | Use exec instead of import to determine package version | Use exec instead of import to determine package version
| Python | mit | sitic/flask-mwoauth,valhallasw/flask-mwoauth,sitic/flask-mwoauth,valhallasw/flask-mwoauth | ---
+++
@@ -1,6 +1,6 @@
from setuptools import setup
-from flask_mwoauth import __version__
+exec([l for l in open("flask_mwoauth/__init__.py") if l.startswith('__version__')][0])
setup(name='flask-mwoauth',
version=__version__, |
571298802f889a1eb4c397ae9bfa4fea0a2a558c | prints_a_multiplication_table_of_primes_numbers/fibonacci_generator.py | prints_a_multiplication_table_of_primes_numbers/fibonacci_generator.py | # -*- coding: utf-8 -*-
__all__ = ["FibonacciGenerator"]
class FibonacciGenerator(object):
"""
"""
# We use List to cache already founded fibonacci numbers,
# and 1 is the first fibonacci number.
_fibonacci_list = [0, 1] # 0 is placeholder
skip_the_placeholder_idx = 1
def generate(self... | # -*- coding: utf-8 -*-
__all__ = ["FibonacciGenerator"]
class FibonacciGenerator(object):
"""
"""
# We use List to cache already founded fibonacci numbers,
# and 1 is the first fibonacci number.
_fibonacci_list = [0, 1] # 0 is placeholder
skip_the_placeholder_idx = 1
def generate(self... | Fix E226 missing whitespace around arithmetic operator | Fix E226 missing whitespace around arithmetic operator
| Python | mit | mvj3/prints_a_multiplication_table_of_primes_numbers | ---
+++
@@ -17,7 +17,7 @@
while len(self._fibonacci_list) < with_placehoder_len:
self._fibonacci_list.append(self.find_next_fibonacci())
- return self._fibonacci_list[self.skip_the_placeholder_idx:n+1]
+ return self._fibonacci_list[self.skip_the_placeholder_idx: n + 1]
def... |
54ba0d0f7ead8ce49f50d3ecfa6b0a86b227bea7 | app.py | app.py | """This is your typical app, demonstrating usage."""
import os
from flask_jsondash.charts_builder import charts
from flask import (
Flask,
session,
)
app = Flask(__name__)
app.config['SECRET_KEY'] = 'NOTSECURELOL'
app.config.update(
JSONDASH_FILTERUSERS=True,
JSONDASH_GLOBALDASH=True,
JSONDASH_G... | """This is your typical app, demonstrating usage."""
import os
from flask_jsondash.charts_builder import charts
from flask import (
Flask,
session,
)
app = Flask(__name__)
app.config['SECRET_KEY'] = 'NOTSECURELOL'
app.config.update(
JSONDASH_FILTERUSERS=True,
JSONDASH_GLOBALDASH=True,
JSONDASH_G... | Make example auth always true. | Make example auth always true.
| Python | mit | christabor/flask_jsondash,christabor/flask_jsondash,christabor/flask_jsondash | ---
+++
@@ -21,7 +21,7 @@
def _can_delete():
- return False
+ return True
def _can_clone(): |
e9bb349469b27ae9cd3280cf14aad27101b2f0fa | app.py | app.py | from flask import Flask
#Β from image_classification import ImageClassifier
app = Flask(__name__)
@app.route('/')
def home():
return 'Hello classification world!'
if __name__ == '__main__':
app.run()
| from flask import Flask
#Β from image_classification import ImageClassifier
app = Flask(__name__)
@app.route('/')
def home():
return 'Hello classification world!'
if __name__ == '__main__':
app.run(debug=True, port=33507)
| Add port as conf var | Add port as conf var
| Python | mit | yassineAlouini/image-recognition-as-a-service,yassineAlouini/image-recognition-as-a-service | ---
+++
@@ -11,4 +11,4 @@
if __name__ == '__main__':
- app.run()
+ app.run(debug=True, port=33507) |
e2ea8d08d5e6006136b74d00a2ee64d1e7858941 | plot_scores.py | plot_scores.py | from __future__ import print_function
from __future__ import unicode_literals
from __future__ import division
from __future__ import absolute_import
from future import standard_library
standard_library.install_aliases()
import argparse
import matplotlib.pyplot as plt
import pandas as pd
def main():
parser = argp... | from __future__ import print_function
from __future__ import unicode_literals
from __future__ import division
from __future__ import absolute_import
from future import standard_library
standard_library.install_aliases()
import argparse
import os
import matplotlib.pyplot as plt
import pandas as pd
def main():
par... | Support plotting multiple score files | Support plotting multiple score files
| Python | mit | toslunar/chainerrl,toslunar/chainerrl | ---
+++
@@ -5,6 +5,7 @@
from future import standard_library
standard_library.install_aliases()
import argparse
+import os
import matplotlib.pyplot as plt
import pandas as pd
@@ -12,19 +13,32 @@
def main():
parser = argparse.ArgumentParser()
- parser.add_argument('scores', type=str, help='specify pat... |
1e1c9715be91c2b723a26e037d2fa68064bd3bf6 | run.py | run.py | import serial
import threading
print('Starting server...')
temperature_usb = '/dev/ttyAMA0'
BAUD_RATE = 9600
temperature_ser = serial.Serial(temperature_usb, BAUD_RATE)
def process_line(line):
print('Need to process line: {}'.format(line))
def temperature_loop():
line = ""
while True:
data = temperature_ser.re... | import serial
import threading
print('Starting server...')
temperature_usb = '/dev/ttyAMA0'
BAUD_RATE = 38400
temperature_ser = serial.Serial(temperature_usb, BAUD_RATE)
def process_line(line):
print('Need to process line: {}'.format(line))
def temperature_loop():
line = ""
while True:
data = temperature_ser.r... | Fix baud rate for temperature sensor | Fix baud rate for temperature sensor
| Python | mit | illumenati/duwamish-sensor,tipsqueal/duwamish-sensor | ---
+++
@@ -4,7 +4,7 @@
print('Starting server...')
temperature_usb = '/dev/ttyAMA0'
-BAUD_RATE = 9600
+BAUD_RATE = 38400
temperature_ser = serial.Serial(temperature_usb, BAUD_RATE)
def process_line(line): |
9a30728493258d7dcf60b67a8c87489e1457df1a | kitchen/dashboard/templatetags/filters.py | kitchen/dashboard/templatetags/filters.py | """Dashboard template filters"""
from django import template
import littlechef
from kitchen.settings import REPO
register = template.Library()
@register.filter(name='get_role_list')
def get_role_list(run_list):
"""Returns the role sublist from the given run_list"""
prev_role_list = littlechef.lib.get_roles_... | """Dashboard template filters"""
from django import template
import littlechef
from kitchen.settings import REPO
register = template.Library()
@register.filter(name='get_role_list')
def get_role_list(run_list):
"""Returns the role sublist from the given run_list"""
if run_list:
all_roles = littleche... | Check 'role_list' before sending it to little_chef | Check 'role_list' before sending it to little_chef
| Python | apache-2.0 | edelight/kitchen,edelight/kitchen,edelight/kitchen,edelight/kitchen | ---
+++
@@ -10,16 +10,23 @@
@register.filter(name='get_role_list')
def get_role_list(run_list):
"""Returns the role sublist from the given run_list"""
- prev_role_list = littlechef.lib.get_roles_in_node({'run_list': run_list})
- role_list = []
- for role in prev_role_list:
- if not role.startsw... |
0e9b8c2dbe5d3fbedf1b444819ca3820a9a13135 | utils.py | utils.py | # -*- coding: utf-8 -*-
import re
_strip_re = re.compile(ur'[\'"`βββββ²β³β΄]+')
_punctuation_re = re.compile(ur'[\t !#$%&()*\-/<=>?@\[\\\]^_{|}:;,.β¦ββββ]+')
def makename(text, delim=u'-', maxlength=50, filter=None):
u"""
Generate a Unicode name slug.
>>> makename('This is a title')
u'this-is-a-title'
... | # -*- coding: utf-8 -*-
import re
_strip_re = re.compile(ur'[\'"`βββββ²β³β΄]+')
_punctuation_re = re.compile(ur'[\t +!#$%&()*\-/<=>?@\[\\\]^_{|}:;,.β¦ββββ]+')
def makename(text, delim=u'-', maxlength=50, filter=None):
u"""
Generate a Unicode name slug.
>>> makename('This is a title')
u'this-is-a-title'
... | Remove + character from generated URLs | Remove + character from generated URLs
| Python | agpl-3.0 | hasgeek/funnel,piyushroshan/fossmeet,hasgeek/funnel,hasgeek/funnel,hasgeek/funnel,piyushroshan/fossmeet,jace/failconfunnel,jace/failconfunnel,piyushroshan/fossmeet,hasgeek/funnel,jace/failconfunnel | ---
+++
@@ -3,7 +3,7 @@
import re
_strip_re = re.compile(ur'[\'"`βββββ²β³β΄]+')
-_punctuation_re = re.compile(ur'[\t !#$%&()*\-/<=>?@\[\\\]^_{|}:;,.β¦ββββ]+')
+_punctuation_re = re.compile(ur'[\t +!#$%&()*\-/<=>?@\[\\\]^_{|}:;,.β¦ββββ]+')
def makename(text, delim=u'-', maxlength=50, filter=None):
u"""
@@ -21,5... |
9448374db62049b6f0209a0b6c3b01f3336e2b2b | talks/core/renderers.py | talks/core/renderers.py | from datetime import datetime
from rest_framework import renderers
from icalendar import Calendar, Event
class ICalRenderer(renderers.BaseRenderer):
media_type = 'text/calendar'
format = 'ics'
def render(self, data, media_type=None, renderer_context=None):
cal = Calendar()
cal.add('prodi... | from datetime import datetime
from rest_framework import renderers
from icalendar import Calendar, Event
class ICalRenderer(renderers.BaseRenderer):
media_type = 'text/calendar'
format = 'ics'
def render(self, data, media_type=None, renderer_context=None):
cal = Calendar()
cal.add('prodi... | Refactor method string to date | Refactor method string to date
| Python | apache-2.0 | ox-it/talks.ox,ox-it/talks.ox,ox-it/talks.ox | ---
+++
@@ -25,10 +25,17 @@
if 'description' in e:
event.add('description', e['description'])
if 'start' in e:
- # 2015-01-29T18:00:00Z
- event.add('dtstart', datetime.strptime(e['start'], "%Y-%m-%dT%H:%M:%SZ"))
+ event.add('dtstart', dt_string_to_object... |
f16800869c6eaa00cb633f181749e4938c257dc6 | robots/migrations/__init__.py | robots/migrations/__init__.py | """
Django migrations for robots app
This package does not contain South migrations. South migrations can be found
in the ``south_migrations`` package.
"""
# This check is based on code from django-email-log. Thanks Trey Hunner.
# https://github.com/treyhunner/django-email-log/blob/master/email_log/migrations/__init_... | Raise ImproperlyConfigured if django migrations module does not exist (for South users). | Raise ImproperlyConfigured if django migrations module does not exist (for South users).
| Python | bsd-3-clause | jazzband/django-robots,jezdez/django-robots,jscott1971/django-robots,jscott1971/django-robots,jazzband/django-robots,jezdez/django-robots | ---
+++
@@ -0,0 +1,24 @@
+"""
+Django migrations for robots app
+
+This package does not contain South migrations. South migrations can be found
+in the ``south_migrations`` package.
+"""
+
+# This check is based on code from django-email-log. Thanks Trey Hunner.
+# https://github.com/treyhunner/django-email-log/blob... | |
5448e38d14589b7558513f51d0abf541790be817 | i3pystatus/core/command.py | i3pystatus/core/command.py | # from subprocess import CalledProcessError
import subprocess
def run_through_shell(command, enable_shell=False):
"""
Retrieves output of command
Returns tuple success (boolean)/ stdout(string) / stderr (string)
Don't use this function with programs that outputs lots of data since the output is saved... | # from subprocess import CalledProcessError
from collections import namedtuple
import subprocess
CommandResult = namedtuple("Result", ['rc', 'out', 'err'])
def run_through_shell(command, enable_shell=False):
"""
Retrieves output of command
Returns tuple success (boolean)/ stdout(string) / stderr (string)... | Use named tuple for return value | Use named tuple for return value
| Python | mit | m45t3r/i3pystatus,teto/i3pystatus,yang-ling/i3pystatus,opatut/i3pystatus,m45t3r/i3pystatus,juliushaertl/i3pystatus,Elder-of-Ozone/i3pystatus,MaicoTimmerman/i3pystatus,paulollivier/i3pystatus,onkelpit/i3pystatus,richese/i3pystatus,asmikhailov/i3pystatus,enkore/i3pystatus,juliushaertl/i3pystatus,eBrnd/i3pystatus,claria/i... | ---
+++
@@ -1,5 +1,8 @@
# from subprocess import CalledProcessError
+from collections import namedtuple
import subprocess
+
+CommandResult = namedtuple("Result", ['rc', 'out', 'err'])
def run_through_shell(command, enable_shell=False):
@@ -10,10 +13,11 @@
Don't use this function with programs that outputs... |
4eecac0764e8abfc33c9e77b8eb6b700b536f1a0 | pull_me.py | pull_me.py | #!/usr/bin/env python
from random import randint
from time import sleep
from os import system
from easygui import msgbox
while True:
delay = randint(60, 2000)
sleep(delay)
system("aplay /usr/lib/libreoffice/share/gallery/sounds/kongas.wav")
msgbox("Hi Dan", "Time is up")
| #!/usr/bin/env python
from random import randint
from time import sleep
from os import system
import os.path
from easygui import msgbox
while True:
delay = randint(60, 2000)
sleep(delay)
if os.path.isfile("/usr/share/sounds/GNUstep/Glass.wav"):
system("aplay /usr/share/sounds/GNUstep/Glass.wav")
else:
... | Use Glass.wav if it exists. | Use Glass.wav if it exists.
| Python | apache-2.0 | dnuffer/carrot_slots | ---
+++
@@ -2,10 +2,14 @@
from random import randint
from time import sleep
from os import system
+import os.path
from easygui import msgbox
while True:
delay = randint(60, 2000)
sleep(delay)
- system("aplay /usr/lib/libreoffice/share/gallery/sounds/kongas.wav")
+ if os.path.isfile("/usr/share/sounds/G... |
9310e94a1406102bba109416f781f9d6330d0028 | tests/test_itunes.py | tests/test_itunes.py | """
test_itunes.py
Copyright Β© 2015 Alex Danoff. All Rights Reserved.
2015-08-02
This file tests the functionality provided by the itunes module.
"""
import unittest
from datetime import datetime
from itunes.itunes import parse_value
class ITunesTests(unittest.TestCase):
"""
Test cases for iTunes functiona... | """
test_itunes.py
Copyright Β© 2015 Alex Danoff. All Rights Reserved.
2015-08-02
This file tests the functionality provided by the itunes module.
"""
import unittest
from datetime import datetime
from itunes.itunes import parse_value, run_applescript
from itunes.exceptions import AppleScriptError
class ITunesTests... | Add test to make sure `run_applescript` throws on bad script | Add test to make sure `run_applescript` throws on bad script
| Python | mit | adanoff/iTunesTUI | ---
+++
@@ -10,7 +10,8 @@
import unittest
from datetime import datetime
-from itunes.itunes import parse_value
+from itunes.itunes import parse_value, run_applescript
+from itunes.exceptions import AppleScriptError
class ITunesTests(unittest.TestCase):
"""
@@ -27,3 +28,7 @@
self.assertIsNone(pars... |
44d5974fafdddb09a684882fc79662ae4c509f57 | names/__init__.py | names/__init__.py | from os.path import abspath, join, dirname
import random
__title__ = 'names'
__version__ = '0.2'
__author__ = 'Trey Hunner'
__license__ = 'MIT'
full_path = lambda filename: abspath(join(dirname(__file__), filename))
FILES = {
'first:male': full_path('dist.male.first'),
'first:female': full_path('dist.fema... | from os.path import abspath, join, dirname
import random
__title__ = 'names'
__version__ = '0.2'
__author__ = 'Trey Hunner'
__license__ = 'MIT'
full_path = lambda filename: abspath(join(dirname(__file__), filename))
FILES = {
'first:male': full_path('dist.male.first'),
'first:female': full_path('dist.fema... | Fix unicode string syntax for Python 3 | Fix unicode string syntax for Python 3
| Python | mit | treyhunner/names,treyhunner/names | ---
+++
@@ -38,4 +38,4 @@
def get_full_name(gender=None):
- return u"%s %s" % (get_first_name(gender), get_last_name())
+ return unicode("%s %s").format(get_first_name(gender), get_last_name()) |
b26f768067d0ac495d0cbecdf68c38e73e42662b | textblob_fr/__init__.py | textblob_fr/__init__.py | # -*- coding: utf-8 -*-
from __future__ import absolute_import
from textblob_fr.taggers import PatternTagger
from textblob_fr.sentiments import PatternAnalyzer
__version__ = '0.2.0-dev'
__author__ = 'Steven Loria'
__license__ = "MIT"
| # -*- coding: utf-8 -*-
from __future__ import absolute_import
from textblob_fr.taggers import PatternTagger
from textblob_fr.sentiments import PatternAnalyzer
__version__ = '0.2.0'
__author__ = 'Steven Loria'
__license__ = "MIT"
| Bump version 0.1.0 -> 0.2.0 | Bump version 0.1.0 -> 0.2.0
| Python | mit | sloria/textblob-fr | ---
+++
@@ -3,6 +3,6 @@
from textblob_fr.taggers import PatternTagger
from textblob_fr.sentiments import PatternAnalyzer
-__version__ = '0.2.0-dev'
+__version__ = '0.2.0'
__author__ = 'Steven Loria'
__license__ = "MIT" |
07058595e43290524d28b53b5919fb76f16c618b | test/test_validators.py | test/test_validators.py | from unittest import TestCase
from win_unc import validators as V
class TestIsValidDriveLetter(TestCase):
def test_valid(self):
self.assertTrue(V.is_valid_drive_letter('A'))
self.assertTrue(V.is_valid_drive_letter('Z'))
self.assertTrue(V.is_valid_drive_letter('a'))
self.assertTrue... | from unittest import TestCase
from win_unc import validators as V
class TestIsValidDriveLetter(TestCase):
def test_valid(self):
self.assertTrue(V.is_valid_drive_letter('A'))
self.assertTrue(V.is_valid_drive_letter('Z'))
self.assertTrue(V.is_valid_drive_letter('a'))
self.assertTrue... | Add tests for UNC path validator | Add tests for UNC path validator
| Python | mit | CovenantEyes/py_win_unc,nithinphilips/py_win_unc | ---
+++
@@ -15,3 +15,17 @@
self.assertFalse(V.is_valid_drive_letter(':'))
self.assertFalse(V.is_valid_drive_letter('aa'))
self.assertFalse(V.is_valid_drive_letter('a:'))
+
+
+class TestIsValidUncPath(TestCase):
+ def test_valid(self):
+ self.assertTrue(V.is_valid_unc_path(r'\\a'))... |
6bde135b964690d2c51fe944e52f2a9c9c9dadab | opps/db/_redis.py | opps/db/_redis.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from opps.db.conf import settings
from redis import ConnectionPool
from redis import Redis as RedisClient
class Redis:
def __init__(self, key_prefix, key_sufix):
self.key_prefix = key_prefix
self.key_sufix = key_sufix
self.host = settings.OPPS... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from opps.db.conf import settings
from redis import ConnectionPool
from redis import Redis as RedisClient
class Redis:
def __init__(self, key_prefix, key_sufix):
self.key_prefix = key_prefix
self.key_sufix = key_sufix
self.host = settings.OPPS... | Add method save, manager create or update on opps db redis | Add method save, manager create or update on opps db redis
| Python | mit | jeanmask/opps,opps/opps,YACOWS/opps,jeanmask/opps,jeanmask/opps,williamroot/opps,williamroot/opps,williamroot/opps,YACOWS/opps,opps/opps,opps/opps,williamroot/opps,YACOWS/opps,YACOWS/opps,jeanmask/opps,opps/opps | ---
+++
@@ -28,3 +28,6 @@
self.key_prefix,
self.key_sufix)
+ def save(self, document):
+ return self.conn.set(self.key(), document)
+ |
8ea90a83318e4c1cb01b773435ef4861a459ac0f | indra/sources/utils.py | indra/sources/utils.py | # -*- coding: utf-8 -*-
"""Processor for remote INDRA JSON files."""
import requests
from typing import List
from ..statements import Statement, stmts_from_json
__all__ = [
'RemoteProcessor',
]
class RemoteProcessor:
"""A processor for INDRA JSON file to be retrieved by URL.
Parameters
----------... | # -*- coding: utf-8 -*-
"""Processor for remote INDRA JSON files."""
from collections import Counter
import requests
from typing import List
from ..statements import Statement, stmts_from_json
__all__ = [
'RemoteProcessor',
]
class RemoteProcessor:
"""A processor for INDRA JSON file to be retrieved by UR... | Implement autoloading and summary function | Implement autoloading and summary function
| Python | bsd-2-clause | sorgerlab/indra,sorgerlab/indra,sorgerlab/belpy,bgyori/indra,bgyori/indra,bgyori/indra,johnbachman/indra,sorgerlab/belpy,sorgerlab/indra,johnbachman/indra,sorgerlab/belpy,johnbachman/indra | ---
+++
@@ -1,6 +1,8 @@
# -*- coding: utf-8 -*-
"""Processor for remote INDRA JSON files."""
+
+from collections import Counter
import requests
from typing import List
@@ -24,16 +26,31 @@
#: The URL of the data
url: str
- #: A list of statements
- statements: List[Statement]
-
def __ini... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.