commit stringlengths 40 40 | old_file stringlengths 5 117 | new_file stringlengths 5 117 | old_contents stringlengths 0 1.93k | new_contents stringlengths 19 3.3k | subject stringlengths 17 320 | message stringlengths 18 3.28k | lang stringclasses 1
value | license stringclasses 13
values | repos stringlengths 7 42.4k | completion stringlengths 19 3.3k | prompt stringlengths 21 3.65k |
|---|---|---|---|---|---|---|---|---|---|---|---|
2b22bf1db53a1fa514afcb4361cbc162908416c6 | alembic/versions/a8ad6e7fadd6_reset_current_typeemote_quest.py | alembic/versions/a8ad6e7fadd6_reset_current_typeemote_quest.py | """Reset current typeemote quest
Revision ID: a8ad6e7fadd6
Revises: 5f746af0a82d
Create Date: 2019-06-09 11:04:34.385778
"""
# revision identifiers, used by Alembic.
from pajbot.managers.redis import RedisManager
from pajbot.streamhelper import StreamHelper
revision = "a8ad6e7fadd6"
down_revision = "5f746af0a82d"
b... | Add alembic revision to reset current typeemote quest | Add alembic revision to reset current typeemote quest
| Python | mit | pajlada/pajbot,pajlada/tyggbot,pajlada/tyggbot,pajlada/tyggbot,pajlada/pajbot,pajlada/pajbot,pajlada/tyggbot,pajlada/pajbot | """Reset current typeemote quest
Revision ID: a8ad6e7fadd6
Revises: 5f746af0a82d
Create Date: 2019-06-09 11:04:34.385778
"""
# revision identifiers, used by Alembic.
from pajbot.managers.redis import RedisManager
from pajbot.streamhelper import StreamHelper
revision = "a8ad6e7fadd6"
down_revision = "5f746af0a82d"
b... | Add alembic revision to reset current typeemote quest
| |
e787e4981441198e2b015b1b4f4971fbc112c78b | cyder/base/eav/utils.py | cyder/base/eav/utils.py | import re
from django.core.exceptions import ValidationError
default_validator = lambda x: x != '' # FIXME: Do we need this?
def validate_list(value, validator=default_validator, separator=',',
strip_whitespace=True, min_length=0, die=False):
"""Validate a "list" of things
separator: the ch... | import re
from django.core.exceptions import ValidationError
default_validator = lambda x: x != '' # FIXME: Do we need this?
def validate_list(value, validator=default_validator, separator=',',
strip_whitespace=True, min_length=0, die=False):
"""Validate a "list" of things
separator: the ch... | Fix yet another stupid mistake | Fix yet another stupid mistake
| Python | bsd-3-clause | akeym/cyder,murrown/cyder,murrown/cyder,murrown/cyder,zeeman/cyder,drkitty/cyder,drkitty/cyder,murrown/cyder,akeym/cyder,zeeman/cyder,drkitty/cyder,OSU-Net/cyder,akeym/cyder,akeym/cyder,OSU-Net/cyder,OSU-Net/cyder,drkitty/cyder,zeeman/cyder,OSU-Net/cyder,zeeman/cyder | import re
from django.core.exceptions import ValidationError
default_validator = lambda x: x != '' # FIXME: Do we need this?
def validate_list(value, validator=default_validator, separator=',',
strip_whitespace=True, min_length=0, die=False):
"""Validate a "list" of things
separator: the ch... | Fix yet another stupid mistake
import re
from django.core.exceptions import ValidationError
default_validator = lambda x: x != '' # FIXME: Do we need this?
def validate_list(value, validator=default_validator, separator=',',
strip_whitespace=True, min_length=0, die=False):
"""Validate a "list"... |
277fd92e8f3a695af1af9ec795a3dd63e21566d9 | test/unittests/audio/test_vlc_backend.py | test/unittests/audio/test_vlc_backend.py | import unittest
import unittest.mock as mock
import mycroft.audio.services.vlc as vlc
config = {
'backends': {
'test_simple': {
'type': 'vlc',
'active': True
}
}
}
@mock.patch('mycroft.audio.services.vlc.vlc')
class TestVlcBackend(unittest.TestCase):
def test_loa... | Add tests for vlc audio backend | Add tests for vlc audio backend
| Python | apache-2.0 | forslund/mycroft-core,MycroftAI/mycroft-core,forslund/mycroft-core,MycroftAI/mycroft-core | import unittest
import unittest.mock as mock
import mycroft.audio.services.vlc as vlc
config = {
'backends': {
'test_simple': {
'type': 'vlc',
'active': True
}
}
}
@mock.patch('mycroft.audio.services.vlc.vlc')
class TestVlcBackend(unittest.TestCase):
def test_loa... | Add tests for vlc audio backend
| |
e7e51333133dd561e8a746144c29c6635d8a982a | migrations/versions/320f4eb0698b_add_proposal_image.py | migrations/versions/320f4eb0698b_add_proposal_image.py | """add proposal image
Revision ID: 320f4eb0698b
Revises: 26ef95fc6f2c
Create Date: 2015-03-31 15:55:20.062624
"""
# revision identifiers, used by Alembic.
revision = '320f4eb0698b'
down_revision = '26ef95fc6f2c'
from alembic import op
import sqlalchemy as sa
def upgrade():
### commands auto generated by Alemb... | Add migration to add column for proposal image filename | Add migration to add column for proposal image filename
| Python | agpl-3.0 | fairdemocracy/vilfredo-core | """add proposal image
Revision ID: 320f4eb0698b
Revises: 26ef95fc6f2c
Create Date: 2015-03-31 15:55:20.062624
"""
# revision identifiers, used by Alembic.
revision = '320f4eb0698b'
down_revision = '26ef95fc6f2c'
from alembic import op
import sqlalchemy as sa
def upgrade():
### commands auto generated by Alemb... | Add migration to add column for proposal image filename
| |
495a33c0dbb2bd9174b15ea934b8282ca3b78929 | pytask/profile/utils.py | pytask/profile/utils.py | from django.http import Http404
from django.contrib.auth.models import User
from pytask.profile.models import Notification
def get_notification(nid, user):
""" if notification exists, and belongs to the current user, return it.
else return None.
"""
user_notifications = user.notification_sent_to.filte... | from django import shortcuts
from django.http import Http404
from django.contrib.auth.models import User
from pytask.profile.models import Notification
def get_notification(nid, user):
""" if notification exists, and belongs to the current user, return it.
else return None.
"""
user_notifications = us... | Use django shortcut for raising 404s. | Use django shortcut for raising 404s.
| Python | agpl-3.0 | madhusudancs/pytask,madhusudancs/pytask,madhusudancs/pytask | from django import shortcuts
from django.http import Http404
from django.contrib.auth.models import User
from pytask.profile.models import Notification
def get_notification(nid, user):
""" if notification exists, and belongs to the current user, return it.
else return None.
"""
user_notifications = us... | Use django shortcut for raising 404s.
from django.http import Http404
from django.contrib.auth.models import User
from pytask.profile.models import Notification
def get_notification(nid, user):
""" if notification exists, and belongs to the current user, return it.
else return None.
"""
user_notifica... |
eb391dde8a157252a98fc9bb9b617bc821f7285a | email_from_template/utils.py | email_from_template/utils.py | from django.utils.functional import memoize
from . import app_settings
def get_render_method():
return from_dotted_path(app_settings.EMAIL_RENDER_METHOD)
get_render_method = memoize(get_render_method, {}, 0)
def get_context_processors():
return [from_dotted_path(x) for x in app_settings.EMAIL_CONTEXT_PROCESS... | from django.utils.lru_cache import lru_cache
from . import app_settings
@lru_cache
def get_render_method():
return from_dotted_path(app_settings.EMAIL_RENDER_METHOD)
@lru_cache
def get_context_processors():
return [from_dotted_path(x) for x in app_settings.EMAIL_CONTEXT_PROCESSORS]
def from_dotted_path(full... | Use @lru_cache now that memoize is gone. | Use @lru_cache now that memoize is gone.
| Python | bsd-3-clause | lamby/django-email-from-template | from django.utils.lru_cache import lru_cache
from . import app_settings
@lru_cache
def get_render_method():
return from_dotted_path(app_settings.EMAIL_RENDER_METHOD)
@lru_cache
def get_context_processors():
return [from_dotted_path(x) for x in app_settings.EMAIL_CONTEXT_PROCESSORS]
def from_dotted_path(full... | Use @lru_cache now that memoize is gone.
from django.utils.functional import memoize
from . import app_settings
def get_render_method():
return from_dotted_path(app_settings.EMAIL_RENDER_METHOD)
get_render_method = memoize(get_render_method, {}, 0)
def get_context_processors():
return [from_dotted_path(x) f... |
ae3d07788bb5f95127d83c837976e46d369f0629 | salt/runners/state.py | salt/runners/state.py | '''
Execute overstate functions
'''
# Import salt libs
import salt.overstate
import salt.output
def over(env='base', os_fn=None):
'''
Execute an overstate sequence to orchestrate the executing of states
over a group of systems
'''
overstate = salt.overstate.OverState(__opts__, env, os_fn)
for... | '''
Execute overstate functions
'''
# Import salt libs
import salt.overstate
import salt.output
def over(env='base', os_fn=None):
'''
Execute an overstate sequence to orchestrate the executing of states
over a group of systems
'''
stage_num = 0
overstate = salt.overstate.OverState(__opts__, e... | Make output data cleaner on the eyes :) | Make output data cleaner on the eyes :)
| Python | apache-2.0 | saltstack/salt,saltstack/salt,saltstack/salt,saltstack/salt,saltstack/salt | '''
Execute overstate functions
'''
# Import salt libs
import salt.overstate
import salt.output
def over(env='base', os_fn=None):
'''
Execute an overstate sequence to orchestrate the executing of states
over a group of systems
'''
stage_num = 0
overstate = salt.overstate.OverState(__opts__, e... | Make output data cleaner on the eyes :)
'''
Execute overstate functions
'''
# Import salt libs
import salt.overstate
import salt.output
def over(env='base', os_fn=None):
'''
Execute an overstate sequence to orchestrate the executing of states
over a group of systems
'''
overstate = salt.overstat... |
4124297475fb7d77bf492e721a74fcfa02547a14 | benchmark/bench_logger_level_low.py | benchmark/bench_logger_level_low.py | """Benchmarks too low logger levels"""
from logbook import Logger, ERROR
log = Logger('Test logger')
log.level = ERROR
def run():
for x in xrange(500):
log.warning('this is not handled')
| """Benchmarks too low logger levels"""
from logbook import Logger, StreamHandler, ERROR
from cStringIO import StringIO
log = Logger('Test logger')
log.level = ERROR
def run():
out = StringIO()
with StreamHandler(out):
for x in xrange(500):
log.warning('this is not handled')
| Create a stream handler even though it's not used to have the same overhead on both logbook and logging | Create a stream handler even though it's not used to have the same overhead on both logbook and logging
| Python | bsd-3-clause | DasIch/logbook,maykinmedia/logbook,alonho/logbook,fayazkhan/logbook,maykinmedia/logbook,Rafiot/logbook,dvarrazzo/logbook,mbr/logbook,mitsuhiko/logbook,dvarrazzo/logbook,RazerM/logbook,FintanH/logbook,omergertel/logbook,dommert/logbook,DasIch/logbook,alex/logbook,alonho/logbook,pombredanne/logbook,alonho/logbook,alex/lo... | """Benchmarks too low logger levels"""
from logbook import Logger, StreamHandler, ERROR
from cStringIO import StringIO
log = Logger('Test logger')
log.level = ERROR
def run():
out = StringIO()
with StreamHandler(out):
for x in xrange(500):
log.warning('this is not handled')
| Create a stream handler even though it's not used to have the same overhead on both logbook and logging
"""Benchmarks too low logger levels"""
from logbook import Logger, ERROR
log = Logger('Test logger')
log.level = ERROR
def run():
for x in xrange(500):
log.warning('this is not handled')
|
502a5cb7179aaedf68f3f16bf8d2ef7eb1ad0032 | nsq/sockets/__init__.py | nsq/sockets/__init__.py | '''Sockets that wrap different connection types'''
# Not all platforms support all types of sockets provided here. For those that
# are not available, the corresponding socket wrapper is imported as None.
from .. import logger
# Snappy support
try:
from .snappy import SnappySocket
except ImportError: # pragma: ... | '''Sockets that wrap different connection types'''
# Not all platforms support all types of sockets provided here. For those that
# are not available, the corresponding socket wrapper is imported as None.
from .. import logger
# Snappy support
try:
from .snappy import SnappySocket
except ImportError: # pragma: ... | Reduce log severity of socket import messages | Reduce log severity of socket import messages | Python | mit | dlecocq/nsq-py,dlecocq/nsq-py | '''Sockets that wrap different connection types'''
# Not all platforms support all types of sockets provided here. For those that
# are not available, the corresponding socket wrapper is imported as None.
from .. import logger
# Snappy support
try:
from .snappy import SnappySocket
except ImportError: # pragma: ... | Reduce log severity of socket import messages
'''Sockets that wrap different connection types'''
# Not all platforms support all types of sockets provided here. For those that
# are not available, the corresponding socket wrapper is imported as None.
from .. import logger
# Snappy support
try:
from .snappy impor... |
911094754fc908d99009c5cfec22ac9033ffd472 | my_account_helper/model/__init__.py | my_account_helper/model/__init__.py | # -*- encoding: utf-8 -*-
##############################################################################
#
# Copyright (C) 2015 Compassion CH (http://www.compassion.ch)
# Releasing children from poverty in Jesus' name
# @author: Emanuel Cino <ecino@compassion.ch>
#
# The licence is in the file __open... | # -*- encoding: utf-8 -*-
##############################################################################
#
# Copyright (C) 2015 Compassion CH (http://www.compassion.ch)
# Releasing children from poverty in Jesus' name
# @author: Emmanuel Mathier <emmanuel.mathier@gmail.ch>
#
# The licence is in the f... | Fix comment header on init | Fix comment header on init
| Python | agpl-3.0 | Secheron/compassion-switzerland,CompassionCH/compassion-switzerland,eicher31/compassion-switzerland,eicher31/compassion-switzerland,CompassionCH/compassion-switzerland,Secheron/compassion-switzerland,CompassionCH/compassion-switzerland,ecino/compassion-switzerland,MickSandoz/compassion-switzerland,ecino/compassion-swit... | # -*- encoding: utf-8 -*-
##############################################################################
#
# Copyright (C) 2015 Compassion CH (http://www.compassion.ch)
# Releasing children from poverty in Jesus' name
# @author: Emmanuel Mathier <emmanuel.mathier@gmail.ch>
#
# The licence is in the f... | Fix comment header on init
# -*- encoding: utf-8 -*-
##############################################################################
#
# Copyright (C) 2015 Compassion CH (http://www.compassion.ch)
# Releasing children from poverty in Jesus' name
# @author: Emanuel Cino <ecino@compassion.ch>
#
# The l... |
90e6dd52a202c2503c1c4881f70b1c13b68147dc | pitchfork/setup_application.py | pitchfork/setup_application.py | from flask import Flask, g
from inspect import getmembers, isfunction
from happymongo import HapPyMongo
from config import config
from adminbp import bp as admin_bp
from manage_globals import bp as manage_bp
from engine import bp as engine_bp
import context_functions
import views
import template_filters
def create_... | Add in setup application file to handle the app setup so that it can be used with browser testing as well | Add in setup application file to handle the app setup so that it can be used with browser testing as well
| Python | apache-2.0 | rackerlabs/pitchfork,rackerlabs/pitchfork,oldarmyc/pitchfork,oldarmyc/pitchfork,rackerlabs/pitchfork,oldarmyc/pitchfork | from flask import Flask, g
from inspect import getmembers, isfunction
from happymongo import HapPyMongo
from config import config
from adminbp import bp as admin_bp
from manage_globals import bp as manage_bp
from engine import bp as engine_bp
import context_functions
import views
import template_filters
def create_... | Add in setup application file to handle the app setup so that it can be used with browser testing as well
| |
aa014a472a39c12cf3141dd337ecc2ed1ea2cd55 | django_summernote/test_settings.py | django_summernote/test_settings.py | import django
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': 'django_summernote.db',
}
}
__MIDDLEWARE__ = (
'django.middleware.common.CommonMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
... | DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': 'django_summernote.db',
}
}
MIDDLEWARE = (
'django.middleware.common.CommonMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib... | Drop old django version support (1.10) | Drop old django version support (1.10)
| Python | mit | summernote/django-summernote,summernote/django-summernote,summernote/django-summernote | DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': 'django_summernote.db',
}
}
MIDDLEWARE = (
'django.middleware.common.CommonMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib... | Drop old django version support (1.10)
import django
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': 'django_summernote.db',
}
}
__MIDDLEWARE__ = (
'django.middleware.common.CommonMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'djan... |
705aab2107793d1067d571b71bc140c320d69aae | bot/api/api.py | bot/api/api.py | from bot.api.telegram import TelegramBotApi
from bot.storage import State
class Api:
def __init__(self, telegram_api: TelegramBotApi, state: State):
self.telegram_api = telegram_api
self.state = state
def get_me(self):
return self.telegram_api.get_me()
def send_message(self, mess... | from bot.api.telegram import TelegramBotApi
from bot.storage import State
class Api:
def __init__(self, telegram_api: TelegramBotApi, state: State):
self.telegram_api = telegram_api
self.state = state
def get_me(self):
return self.telegram_api.get_me()
def send_message(self, mess... | Change yield from to return to be compatible with python 3.2 | Change yield from to return to be compatible with python 3.2
| Python | agpl-3.0 | alvarogzp/telegram-bot,alvarogzp/telegram-bot | from bot.api.telegram import TelegramBotApi
from bot.storage import State
class Api:
def __init__(self, telegram_api: TelegramBotApi, state: State):
self.telegram_api = telegram_api
self.state = state
def get_me(self):
return self.telegram_api.get_me()
def send_message(self, mess... | Change yield from to return to be compatible with python 3.2
from bot.api.telegram import TelegramBotApi
from bot.storage import State
class Api:
def __init__(self, telegram_api: TelegramBotApi, state: State):
self.telegram_api = telegram_api
self.state = state
def get_me(self):
retu... |
75c10d885c89cd763a065e4eb599ea5032b31fdd | setup.py | setup.py | from setuptools import find_packages, setup
setup(
name="redshift-etl",
version="0.27.0",
author="Harry's Data Engineering and Contributors",
description="ETL code to ferry data from PostgreSQL databases (or S3 files) to Redshift cluster",
license="MIT",
keywords="redshift postgresql etl extra... | from setuptools import find_packages, setup
setup(
name="redshift-etl",
version="0.27.1",
author="Harry's Data Engineering and Contributors",
description="ETL code to ferry data from PostgreSQL databases (or S3 files) to Redshift cluster",
license="MIT",
keywords="redshift postgresql etl extra... | Drop max-concurrency for update in refresh pipeline (invalid arg) | Drop max-concurrency for update in refresh pipeline (invalid arg)
| Python | mit | harrystech/arthur-redshift-etl,harrystech/arthur-redshift-etl,harrystech/arthur-redshift-etl,harrystech/arthur-redshift-etl,harrystech/arthur-redshift-etl | from setuptools import find_packages, setup
setup(
name="redshift-etl",
version="0.27.1",
author="Harry's Data Engineering and Contributors",
description="ETL code to ferry data from PostgreSQL databases (or S3 files) to Redshift cluster",
license="MIT",
keywords="redshift postgresql etl extra... | Drop max-concurrency for update in refresh pipeline (invalid arg)
from setuptools import find_packages, setup
setup(
name="redshift-etl",
version="0.27.0",
author="Harry's Data Engineering and Contributors",
description="ETL code to ferry data from PostgreSQL databases (or S3 files) to Redshift clust... |
2192cf4caa93a2b9c2a4332ba59c40175e8f977b | gscripts/ipython_imports.py | gscripts/ipython_imports.py | import numpy as np
import pandas as pd
import matplotlib_venn
import matplotlib.pyplot as plt
import brewer2mpl
set1 = brewer2mpl.get_map('Set1', 'qualitative', 9).mpl_colors
red = set1[0]
blue = set1[1]
green = set1[2]
purple = set1[3]
orange = set1[4]
yellow = set1[5]
brown = set1[6]
pink = set1[7]
grey = set1[8] | Add file for easy ipython imports | Add file for easy ipython imports
| Python | mit | YeoLab/gscripts,YeoLab/gscripts,YeoLab/gscripts,YeoLab/gscripts | import numpy as np
import pandas as pd
import matplotlib_venn
import matplotlib.pyplot as plt
import brewer2mpl
set1 = brewer2mpl.get_map('Set1', 'qualitative', 9).mpl_colors
red = set1[0]
blue = set1[1]
green = set1[2]
purple = set1[3]
orange = set1[4]
yellow = set1[5]
brown = set1[6]
pink = set1[7]
grey = set1[8] | Add file for easy ipython imports
| |
7d10c18c1feb0c61aee9d3a44c3a7fa24e4e3c25 | code_snippets/guides-agentchecks-methods.py | code_snippets/guides-agentchecks-methods.py | self.gauge( ... ) # Sample a gauge metric
self.increment( ... ) # Increment a counter metric
self.decrement( ... ) # Decrement a counter metric
self.histogram( ... ) # Sample a histogram metric
self.rate( ... ) # Sample a point, with the rate calculated at the end of the check
self.count( ... ) # Sample a raw coun... | self.gauge( ... ) # Sample a gauge metric
self.increment( ... ) # Increment a counter metric
self.decrement( ... ) # Decrement a counter metric
self.histogram( ... ) # Sample a histogram metric
self.rate( ... ) # Sample a point, with the rate calculated at the end of the check
| Revert "Document AgentCheck count and monotonic_count methods" | Revert "Document AgentCheck count and monotonic_count methods"
This reverts commit e731c3a4a8590f5cddd23fd2f9af265749f08a38.
| Python | bsd-3-clause | inokappa/documentation,macobo/documentation,inokappa/documentation,jhotta/documentation,jhotta/documentation,jhotta/documentation,macobo/documentation,macobo/documentation,inokappa/documentation,jhotta/documentation,jhotta/documentation,jhotta/documentation,inokappa/documentation,inokappa/documentation,macobo/documenta... | self.gauge( ... ) # Sample a gauge metric
self.increment( ... ) # Increment a counter metric
self.decrement( ... ) # Decrement a counter metric
self.histogram( ... ) # Sample a histogram metric
self.rate( ... ) # Sample a point, with the rate calculated at the end of the check
| Revert "Document AgentCheck count and monotonic_count methods"
This reverts commit e731c3a4a8590f5cddd23fd2f9af265749f08a38.
self.gauge( ... ) # Sample a gauge metric
self.increment( ... ) # Increment a counter metric
self.decrement( ... ) # Decrement a counter metric
self.histogram( ... ) # Sample a histogram met... |
b4ef31e6fa195480f8de1e516606aa32fecfdd15 | future/builtins/backports/newround.py | future/builtins/backports/newround.py | """
``python-future``: pure Python implementation of Python 3 round().
"""
def newround(number, ndigits=None):
"""
See Python 3 documentation: uses Banker's Rounding.
Delegates to the __round__ method if for some reason this exists.
If not, rounds a number to a given precision in decimal digits (d... | """
``python-future``: pure Python implementation of Python 3 round().
"""
from future.utils import PYPY
def newround(number, ndigits=None):
"""
See Python 3 documentation: uses Banker's Rounding.
Delegates to the __round__ method if for some reason this exists.
If not, rounds a number to a give... | Add workaround for PyPy round() bug with NumPy data types | Add workaround for PyPy round() bug with NumPy data types
| Python | mit | krischer/python-future,QuLogic/python-future,PythonCharmers/python-future,michaelpacer/python-future,QuLogic/python-future,krischer/python-future,michaelpacer/python-future,PythonCharmers/python-future | """
``python-future``: pure Python implementation of Python 3 round().
"""
from future.utils import PYPY
def newround(number, ndigits=None):
"""
See Python 3 documentation: uses Banker's Rounding.
Delegates to the __round__ method if for some reason this exists.
If not, rounds a number to a give... | Add workaround for PyPy round() bug with NumPy data types
"""
``python-future``: pure Python implementation of Python 3 round().
"""
def newround(number, ndigits=None):
"""
See Python 3 documentation: uses Banker's Rounding.
Delegates to the __round__ method if for some reason this exists.
If not... |
1ddec2ec4cae3d200f56a58f2de48334ab3d4af2 | CodeFights/correctLineup.py | CodeFights/correctLineup.py | #!/usr/local/bin/python
# Code Fights Correct Lineup Problem
def correctLineup(athletes):
return [a for t in zip(athletes[1::2], athletes[::2]) for a in t]
def main():
tests = [
[[1, 2, 3, 4, 5, 6], [2, 1, 4, 3, 6, 5]],
[[13, 42], [42, 13]],
[[2, 3, 1, 100, 99, 45, 22, 28], [3, 2, 10... | Solve Code Fights correct lineup problem | Solve Code Fights correct lineup problem
| Python | mit | HKuz/Test_Code | #!/usr/local/bin/python
# Code Fights Correct Lineup Problem
def correctLineup(athletes):
return [a for t in zip(athletes[1::2], athletes[::2]) for a in t]
def main():
tests = [
[[1, 2, 3, 4, 5, 6], [2, 1, 4, 3, 6, 5]],
[[13, 42], [42, 13]],
[[2, 3, 1, 100, 99, 45, 22, 28], [3, 2, 10... | Solve Code Fights correct lineup problem
| |
63109e4d91f66c135c634752d3feb0e6dd4b9b97 | nn/models/char2doc.py | nn/models/char2doc.py | import tensorflow as tf
from ..embedding import embeddings_to_embedding, ids_to_embeddings, embeddings
from ..linear import linear
from ..dropout import dropout
def char2doc(forward_document,
backward_document,
*,
char_space_size,
char_embedding_size,
... | import tensorflow as tf
from ..embedding import id_sequence_to_embedding, embeddings
from ..linear import linear
from ..dropout import dropout
def char2doc(document,
*,
char_space_size,
char_embedding_size,
document_embedding_size,
dropout_prob,
... | Use id_sequence_to_embedding and only forward document | Use id_sequence_to_embedding and only forward document
| Python | unlicense | raviqqe/tensorflow-extenteten,raviqqe/tensorflow-extenteten | import tensorflow as tf
from ..embedding import id_sequence_to_embedding, embeddings
from ..linear import linear
from ..dropout import dropout
def char2doc(document,
*,
char_space_size,
char_embedding_size,
document_embedding_size,
dropout_prob,
... | Use id_sequence_to_embedding and only forward document
import tensorflow as tf
from ..embedding import embeddings_to_embedding, ids_to_embeddings, embeddings
from ..linear import linear
from ..dropout import dropout
def char2doc(forward_document,
backward_document,
*,
char_sp... |
45086d11fcdc071427e8c5a2ac909dceac2b43ec | tests/test_auditory.py | tests/test_auditory.py | from __future__ import division, print_function
import pytest
import numpy as np
from pambox import auditory as aud
import scipy.io as sio
from numpy.testing import assert_allclose
def test_lowpass_filtering_of_envelope():
mat = sio.loadmat("./test_files/test_hilbert_env_and_lp_filtering_v1.mat",
... | from __future__ import division, print_function
import pytest
import numpy as np
from pambox import auditory as aud
import scipy.io as sio
from numpy.testing import assert_allclose
def test_lowpass_filtering_of_envelope():
mat = sio.loadmat("./test_files/test_hilbert_env_and_lp_filtering_v1.mat",
... | Add test, which fails, of the gammatone filtering. | Add test, which fails, of the gammatone filtering.
| Python | bsd-3-clause | achabotl/pambox | from __future__ import division, print_function
import pytest
import numpy as np
from pambox import auditory as aud
import scipy.io as sio
from numpy.testing import assert_allclose
def test_lowpass_filtering_of_envelope():
mat = sio.loadmat("./test_files/test_hilbert_env_and_lp_filtering_v1.mat",
... | Add test, which fails, of the gammatone filtering.
from __future__ import division, print_function
import pytest
import numpy as np
from pambox import auditory as aud
import scipy.io as sio
from numpy.testing import assert_allclose
def test_lowpass_filtering_of_envelope():
mat = sio.loadmat("./test_files/test_hi... |
f5143f2782d2c09fe482b77fa77e9740e5c92710 | cfp/migrations/0048_auto_20150412_0740.py | cfp/migrations/0048_auto_20150412_0740.py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('cfp', '0047_auto_20150412_0647'),
]
operations = [
migrations.RemoveField(
model_name='conference',
... | Remove topics from models migration | Remove topics from models migration
| Python | mit | kyleconroy/speakers,kyleconroy/speakers,kyleconroy/speakers | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('cfp', '0047_auto_20150412_0647'),
]
operations = [
migrations.RemoveField(
model_name='conference',
... | Remove topics from models migration
| |
e9df4858631d9efdcb6a5b960c25f64cae875661 | blog/models.py | blog/models.py | from django.db import models
from organizer.models import Startup, Tag
# Model Field Reference
# https://docs.djangoproject.com/en/1.8/ref/models/fields/
class Post(models.Model):
title = models.CharField(max_length=63)
slug = models.SlugField()
text = models.TextField()
pub_date = models.DateField... | from django.db import models
from organizer.models import Startup, Tag
# Model Field Reference
# https://docs.djangoproject.com/en/1.8/ref/models/fields/
class Post(models.Model):
title = models.CharField(max_length=63)
slug = models.SlugField(
max_length=63,
help_text='A label for URL conf... | Add options to Post model fields. | Ch03: Add options to Post model fields. [skip ci]
| Python | bsd-2-clause | jambonrose/DjangoUnleashed-1.8,jambonrose/DjangoUnleashed-1.8 | from django.db import models
from organizer.models import Startup, Tag
# Model Field Reference
# https://docs.djangoproject.com/en/1.8/ref/models/fields/
class Post(models.Model):
title = models.CharField(max_length=63)
slug = models.SlugField(
max_length=63,
help_text='A label for URL conf... | Ch03: Add options to Post model fields. [skip ci]
from django.db import models
from organizer.models import Startup, Tag
# Model Field Reference
# https://docs.djangoproject.com/en/1.8/ref/models/fields/
class Post(models.Model):
title = models.CharField(max_length=63)
slug = models.SlugField()
text =... |
b573047502d6ceb0241257fa26e17ad572639c93 | tests/utils/test_string_helper.py | tests/utils/test_string_helper.py | from unittest.case import TestCase
from zsl.utils.string_helper import camelcase_to_underscore, underscore_to_camelcase
class InflectionTestCase(TestCase):
def testCamelCaseToUnderscore(self):
self.assertEquals(
"camel_case_to_underscore",
camelcase_to_underscore("camelCaseToUnder... | Add tests of the improved camelcase/underscore conversion | Add tests of the improved camelcase/underscore conversion
| Python | mit | AtteqCom/zsl,AtteqCom/zsl | from unittest.case import TestCase
from zsl.utils.string_helper import camelcase_to_underscore, underscore_to_camelcase
class InflectionTestCase(TestCase):
def testCamelCaseToUnderscore(self):
self.assertEquals(
"camel_case_to_underscore",
camelcase_to_underscore("camelCaseToUnder... | Add tests of the improved camelcase/underscore conversion
| |
d8b4acd0617dc93646e177ac56b0205be1b7ff88 | seaweb_project/seaweb_project/urls.py | seaweb_project/seaweb_project/urls.py | from django.conf.urls import patterns, url, include
from django.views.generic.base import TemplateView
from django.contrib.auth.decorators import login_required
from django.contrib.auth import views as auth_views
from django.contrib import admin
admin.autodiscover()
from rest_framework.routers import DefaultRouter
fro... | from django.conf.urls import patterns, url, include
from django.views.generic.base import TemplateView
from django.contrib.auth.decorators import login_required
from django.contrib.auth import views as auth_views
from django.contrib import admin
admin.autodiscover()
from rest_framework.routers import DefaultRouter
fro... | Disable indexing via robots.txt url. | Disable indexing via robots.txt url. | Python | mit | grollins/sea-web-django | from django.conf.urls import patterns, url, include
from django.views.generic.base import TemplateView
from django.contrib.auth.decorators import login_required
from django.contrib.auth import views as auth_views
from django.contrib import admin
admin.autodiscover()
from rest_framework.routers import DefaultRouter
fro... | Disable indexing via robots.txt url.
from django.conf.urls import patterns, url, include
from django.views.generic.base import TemplateView
from django.contrib.auth.decorators import login_required
from django.contrib.auth import views as auth_views
from django.contrib import admin
admin.autodiscover()
from rest_frame... |
45f0cd033938a5c28907e84fcbc8f5f8e93d0c65 | st2actions/st2actions/cmd/history.py | st2actions/st2actions/cmd/history.py | import eventlet
import os
import sys
from oslo.config import cfg
from st2common import log as logging
from st2common.models.db import db_setup
from st2common.models.db import db_teardown
from st2actions import config
from st2actions import history
LOG = logging.getLogger(__name__)
eventlet.monkey_patch(
os=Tr... | import eventlet
import os
import sys
from oslo.config import cfg
from st2common import log as logging
from st2common.models.db import db_setup
from st2common.models.db import db_teardown
from st2actions import config
from st2actions import history
LOG = logging.getLogger(__name__)
eventlet.monkey_patch(
os=Tr... | Move code from _run_worker into main | Move code from _run_worker into main
| Python | apache-2.0 | dennybaa/st2,grengojbo/st2,pinterb/st2,alfasin/st2,jtopjian/st2,peak6/st2,nzlosh/st2,punalpatel/st2,armab/st2,StackStorm/st2,nzlosh/st2,peak6/st2,alfasin/st2,Plexxi/st2,StackStorm/st2,emedvedev/st2,nzlosh/st2,pixelrebel/st2,Plexxi/st2,lakshmi-kannan/st2,lakshmi-kannan/st2,tonybaloney/st2,pixelrebel/st2,StackStorm/st2,d... | import eventlet
import os
import sys
from oslo.config import cfg
from st2common import log as logging
from st2common.models.db import db_setup
from st2common.models.db import db_teardown
from st2actions import config
from st2actions import history
LOG = logging.getLogger(__name__)
eventlet.monkey_patch(
os=Tr... | Move code from _run_worker into main
import eventlet
import os
import sys
from oslo.config import cfg
from st2common import log as logging
from st2common.models.db import db_setup
from st2common.models.db import db_teardown
from st2actions import config
from st2actions import history
LOG = logging.getLogger(__name... |
7d24695c7e94e787b5d66854db7cc6dc1abcbf10 | polyaxon/tracker/publish_tracker.py | polyaxon/tracker/publish_tracker.py | import analytics
from django.db import InterfaceError, OperationalError, ProgrammingError
from tracker.service import TrackerService
class PublishTrackerService(TrackerService):
def __init__(self, key=''):
self.cluster_id = None
self.analytics = analytics
self.analytics.write_key = key
... | import analytics
from django.db import InterfaceError, OperationalError, ProgrammingError
from tracker.service import TrackerService
class PublishTrackerService(TrackerService):
def __init__(self, key=''):
self.cluster_id = None
self.analytics = analytics
self.analytics.write_key = key
... | Update check on cluster id | Update check on cluster id
| Python | apache-2.0 | polyaxon/polyaxon,polyaxon/polyaxon,polyaxon/polyaxon | import analytics
from django.db import InterfaceError, OperationalError, ProgrammingError
from tracker.service import TrackerService
class PublishTrackerService(TrackerService):
def __init__(self, key=''):
self.cluster_id = None
self.analytics = analytics
self.analytics.write_key = key
... | Update check on cluster id
import analytics
from django.db import InterfaceError, OperationalError, ProgrammingError
from tracker.service import TrackerService
class PublishTrackerService(TrackerService):
def __init__(self, key=''):
self.cluster_id = None
self.analytics = analytics
self... |
3b2dab6b7c7a2e0f155825d2819c14de20135fd1 | scripts/add_global_subscriptions.py | scripts/add_global_subscriptions.py | """
This migration subscribes each user to USER_SUBSCRIPTIONS_AVAILABLE if a subscription
does not already exist.
"""
import logging
import sys
from website.app import init_app
from website import models
from website.notifications.model import NotificationSubscription
from website.notifications import constants
from ... | """
This migration subscribes each user to USER_SUBSCRIPTIONS_AVAILABLE if a subscription
does not already exist.
"""
import logging
import sys
from website.app import init_app
from website import models
from website.notifications.model import NotificationSubscription
from website.notifications import constants
from ... | Add check for active and registered users | Add check for active and registered users
| Python | apache-2.0 | caneruguz/osf.io,alexschiller/osf.io,rdhyee/osf.io,SSJohns/osf.io,DanielSBrown/osf.io,HalcyonChimera/osf.io,chrisseto/osf.io,mfraezz/osf.io,aaxelb/osf.io,mattclark/osf.io,baylee-d/osf.io,CenterForOpenScience/osf.io,samchrisinger/osf.io,cslzchen/osf.io,laurenrevere/osf.io,chennan47/osf.io,caseyrollins/osf.io,mfraezz/osf... | """
This migration subscribes each user to USER_SUBSCRIPTIONS_AVAILABLE if a subscription
does not already exist.
"""
import logging
import sys
from website.app import init_app
from website import models
from website.notifications.model import NotificationSubscription
from website.notifications import constants
from ... | Add check for active and registered users
"""
This migration subscribes each user to USER_SUBSCRIPTIONS_AVAILABLE if a subscription
does not already exist.
"""
import logging
import sys
from website.app import init_app
from website import models
from website.notifications.model import NotificationSubscription
from w... |
e7c462af8382a5eb7f5fee2abfc04f002e36b193 | tests/mcp/test_datautils.py | tests/mcp/test_datautils.py | from spock.mcp import datautils
from spock.utils import BoundBuffer
def test_unpack_varint():
largebuff = BoundBuffer(b'\x80\x94\xeb\xdc\x03')
smallbuff = BoundBuffer(b'\x14')
assert datautils.unpack_varint(smallbuff) == 20
assert datautils.unpack_varint(largebuff) == 1000000000
def test_pack_varint... | Add varint and varlong tests | Add varint and varlong tests
| Python | mit | SpockBotMC/SpockBot,nickelpro/SpockBot,gamingrobot/SpockBot,MrSwiss/SpockBot,Gjum/SpockBot,luken/SpockBot | from spock.mcp import datautils
from spock.utils import BoundBuffer
def test_unpack_varint():
largebuff = BoundBuffer(b'\x80\x94\xeb\xdc\x03')
smallbuff = BoundBuffer(b'\x14')
assert datautils.unpack_varint(smallbuff) == 20
assert datautils.unpack_varint(largebuff) == 1000000000
def test_pack_varint... | Add varint and varlong tests
| |
0be0d20fc667f0734b85d98f1d359130f7ed5b98 | plotly/tests/test_core/test_graph_objs/test_graph_objs.py | plotly/tests/test_core/test_graph_objs/test_graph_objs.py | from unittest import TestCase
import plotly.graph_objs as go
import plotly.graph_reference as gr
OLD_CLASS_NAMES = ['AngularAxis', 'Annotation', 'Annotations', 'Area',
'Bar', 'Box', 'ColorBar', 'Contour', 'Contours',
'Data', 'ErrorX', 'ErrorY', 'ErrorZ', 'Figure',
... | Add failing specs for current/future class names. | Add failing specs for current/future class names. | Python | mit | plotly/python-api,plotly/python-api,plotly/plotly.py,plotly/plotly.py,plotly/plotly.py,plotly/python-api | from unittest import TestCase
import plotly.graph_objs as go
import plotly.graph_reference as gr
OLD_CLASS_NAMES = ['AngularAxis', 'Annotation', 'Annotations', 'Area',
'Bar', 'Box', 'ColorBar', 'Contour', 'Contours',
'Data', 'ErrorX', 'ErrorY', 'ErrorZ', 'Figure',
... | Add failing specs for current/future class names.
| |
12bc92863076c594422f327efc1ba23a321b05a7 | plotly/tests/test_optional/test_matplotlylib/test_date_times.py | plotly/tests/test_optional/test_matplotlylib/test_date_times.py | from __future__ import absolute_import
import matplotlib
# Force matplotlib to not use any Xwindows backend.
matplotlib.use('Agg')
import matplotlib.pyplot as plt
import datetime
from matplotlib.dates import date2num
import plotly.tools as tls
from unittest import TestCase
from plotly.tests.test_optional.optional_util... | Add test for dates in mpl. | Add test for dates in mpl.
| Python | mit | plotly/plotly.py,ee-in/python-api,plotly/python-api,plotly/python-api,plotly/python-api,ee-in/python-api,plotly/plotly.py,plotly/plotly.py,ee-in/python-api | from __future__ import absolute_import
import matplotlib
# Force matplotlib to not use any Xwindows backend.
matplotlib.use('Agg')
import matplotlib.pyplot as plt
import datetime
from matplotlib.dates import date2num
import plotly.tools as tls
from unittest import TestCase
from plotly.tests.test_optional.optional_util... | Add test for dates in mpl.
| |
ca919f7af3fe529209ea007612fd83fcd15832ef | pip_package/rlds_version.py | pip_package/rlds_version.py | # Copyright 2022 Google LLC.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | # Copyright 2022 Google LLC.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | Update RLDS to 0.1.5 (already uploaded to Pypi) | Update RLDS to 0.1.5 (already uploaded to Pypi)
PiperOrigin-RevId: 467605984
Change-Id: I421e884c38da5be935e085d5419642b8decf5373
| Python | apache-2.0 | google-research/rlds,google-research/rlds | # Copyright 2022 Google LLC.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | Update RLDS to 0.1.5 (already uploaded to Pypi)
PiperOrigin-RevId: 467605984
Change-Id: I421e884c38da5be935e085d5419642b8decf5373
# Copyright 2022 Google LLC.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy ... |
7dcba6a8be7bd87dd377bd3f99e8e2293bb6632d | django/santropolFeast/member/migrations/0008_auto_20160727_2251.py | django/santropolFeast/member/migrations/0008_auto_20160727_2251.py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.7 on 2016-07-27 22:51
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('member', '0007_auto_20160726_1703'),
]
operations = [
migrations.RenameField(
... | Add missing migration file for latitude and longitude | Add missing migration file for latitude and longitude
| Python | agpl-3.0 | madmath/sous-chef,savoirfairelinux/santropol-feast,madmath/sous-chef,savoirfairelinux/sous-chef,savoirfairelinux/santropol-feast,madmath/sous-chef,savoirfairelinux/sous-chef,savoirfairelinux/santropol-feast,savoirfairelinux/sous-chef | # -*- coding: utf-8 -*-
# Generated by Django 1.9.7 on 2016-07-27 22:51
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('member', '0007_auto_20160726_1703'),
]
operations = [
migrations.RenameField(
... | Add missing migration file for latitude and longitude
| |
bc6af25366aacf394f96b5a93008109904a89e93 | wlauto/common/android/resources.py | wlauto/common/android/resources.py | # Copyright 2014-2015 ARM Limited
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in w... | # Copyright 2014-2015 ARM Limited
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in w... | Add a UiautoApk resource type. | AndroidResource: Add a UiautoApk resource type.
When moving to Uiautomation 2, tests are now complied into apk files rather than
jar files. To avoid conflicts with regular workload apks a new resource type is
added to retrieve the test files which will be renamed to have the extension
.uiautoapk
| Python | apache-2.0 | bjackman/workload-automation,bjackman/workload-automation,bjackman/workload-automation,bjackman/workload-automation,jimboatarm/workload-automation,jimboatarm/workload-automation,jimboatarm/workload-automation,bjackman/workload-automation,bjackman/workload-automation,jimboatarm/workload-automation,jimboatarm/workload-au... | # Copyright 2014-2015 ARM Limited
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in w... | AndroidResource: Add a UiautoApk resource type.
When moving to Uiautomation 2, tests are now complied into apk files rather than
jar files. To avoid conflicts with regular workload apks a new resource type is
added to retrieve the test files which will be renamed to have the extension
.uiautoapk
# Copyright 2014-2... |
a5ac21234cd8970112be12b1209886dd1208ad9c | troposphere/cloud9.py | troposphere/cloud9.py | # Copyright (c) 2012-2017, Mark Peek <mark@peek.org>
# All rights reserved.
#
# See LICENSE file for full license.
from . import AWSObject, AWSProperty
from .validators import integer
class Repository(AWSProperty):
props = {
"PathComponent": (str, True),
"RepositoryUrl": (str, True),
}
clas... | # Copyright (c) 2012-2021, Mark Peek <mark@peek.org>
# All rights reserved.
#
# See LICENSE file for full license.
#
# *** Do not modify - this file is autogenerated ***
# Resource specification version: 35.0.0
from troposphere import Tags
from . import AWSObject, AWSProperty
from .validators import integer
class ... | Update Cloud9 per 2021-04-01 changes | Update Cloud9 per 2021-04-01 changes
| Python | bsd-2-clause | cloudtools/troposphere,cloudtools/troposphere | # Copyright (c) 2012-2021, Mark Peek <mark@peek.org>
# All rights reserved.
#
# See LICENSE file for full license.
#
# *** Do not modify - this file is autogenerated ***
# Resource specification version: 35.0.0
from troposphere import Tags
from . import AWSObject, AWSProperty
from .validators import integer
class ... | Update Cloud9 per 2021-04-01 changes
# Copyright (c) 2012-2017, Mark Peek <mark@peek.org>
# All rights reserved.
#
# See LICENSE file for full license.
from . import AWSObject, AWSProperty
from .validators import integer
class Repository(AWSProperty):
props = {
"PathComponent": (str, True),
"Rep... |
30e10449205763363fe8663765645796b0dc8fd5 | IPython/nbconvert/preprocessors/clearoutput.py | IPython/nbconvert/preprocessors/clearoutput.py | """Module containing a preprocessor that removes the outputs from code cells"""
# Copyright (c) IPython Development Team.
# Distributed under the terms of the Modified BSD License.
#-----------------------------------------------------------------------------
# Imports
#-----------------------------------------------... | """Module containing a preprocessor that removes the outputs from code cells"""
# Copyright (c) IPython Development Team.
# Distributed under the terms of the Modified BSD License.
#-----------------------------------------------------------------------------
# Imports
#-----------------------------------------------... | Use cell.prompt_number rather than cell['prompt_number'] | Use cell.prompt_number rather than cell['prompt_number']
| Python | bsd-3-clause | ipython/ipython,ipython/ipython | """Module containing a preprocessor that removes the outputs from code cells"""
# Copyright (c) IPython Development Team.
# Distributed under the terms of the Modified BSD License.
#-----------------------------------------------------------------------------
# Imports
#-----------------------------------------------... | Use cell.prompt_number rather than cell['prompt_number']
"""Module containing a preprocessor that removes the outputs from code cells"""
# Copyright (c) IPython Development Team.
# Distributed under the terms of the Modified BSD License.
#-----------------------------------------------------------------------------
... |
1b0e6966d6bd73598e3f9ec49a73a78b0478da10 | discover_road_runner/famishius/tests/test_vulgaris.py | discover_road_runner/famishius/tests/test_vulgaris.py | from django.test import SimpleTestCase
class OtherTest(SimpleTestCase):
"""
In reality, apps often can have so many tests this is a more practical
organising pattern.
"""
def test_success(self):
self.assertEqual(1 + 1, 2)
| Document from the reality that while breaking apps down is a good idea, even then you often have a sufficient number of topic areas to cover that can't be easily split into more apps, i.e. TestCase classes are insufficient to group the relevant tests together, and a 5k tests.py file is almost certainly a bad idea. | Document from the reality that while breaking apps down is a good idea, even then you often have a sufficient number of topic areas to cover that can't be easily split into more apps, i.e. TestCase classes are insufficient to group the relevant tests together, and a 5k tests.py file is almost certainly a bad idea.
| Python | mit | pzrq/discover-road-runner | from django.test import SimpleTestCase
class OtherTest(SimpleTestCase):
"""
In reality, apps often can have so many tests this is a more practical
organising pattern.
"""
def test_success(self):
self.assertEqual(1 + 1, 2)
| Document from the reality that while breaking apps down is a good idea, even then you often have a sufficient number of topic areas to cover that can't be easily split into more apps, i.e. TestCase classes are insufficient to group the relevant tests together, and a 5k tests.py file is almost certainly a bad idea.
| |
761ec2bd6492b041eb658ee836a63ffb877469d5 | cbv/management/commands/load_all_django_versions.py | cbv/management/commands/load_all_django_versions.py | import os
import re
from django.conf import settings
from django.core.management import call_command, BaseCommand
class Command(BaseCommand):
"""Load the Django project fixtures and all version fixtures"""
def handle(self, **options):
fixtures_dir = os.path.join(settings.DIRNAME, 'cbv', 'fixtures')
... | Add management command to load all version fixtures | Add management command to load all version fixtures
Because life's too short
| Python | bsd-2-clause | refreshoxford/django-cbv-inspector,refreshoxford/django-cbv-inspector,refreshoxford/django-cbv-inspector,refreshoxford/django-cbv-inspector | import os
import re
from django.conf import settings
from django.core.management import call_command, BaseCommand
class Command(BaseCommand):
"""Load the Django project fixtures and all version fixtures"""
def handle(self, **options):
fixtures_dir = os.path.join(settings.DIRNAME, 'cbv', 'fixtures')
... | Add management command to load all version fixtures
Because life's too short
| |
82155f3caad1220eeb2ee718142c5aace8600f87 | django-jquery-file-upload/urls.py | django-jquery-file-upload/urls.py | from django.conf.urls import patterns, include, url
from django.http import HttpResponseRedirect
# Uncomment the next two lines to enable the admin:
from django.contrib import admin
admin.autodiscover()
urlpatterns = patterns('',
# Examples:
# url(r'^$', 'upload.views.home', name='home'),
url(r'^$', lamb... | from django.conf.urls import patterns, include, url
from django.http import HttpResponseRedirect
# Uncomment the next two lines to enable the admin:
from django.contrib import admin
admin.autodiscover()
urlpatterns = patterns('',
# Examples:
# url(r'^$', 'upload.views.home', name='home'),
url(r'^$', lamb... | Fix serve media files path | Fix serve media files path
| Python | mit | minhlongdo/django-jquery-file-upload,Imaginashion/cloud-vision,vaniakov/django-jquery-file-upload,indrajithi/mgc-django,sigurdga/django-jquery-file-upload,Imaginashion/cloud-vision,minhlongdo/django-jquery-file-upload,Imaginashion/cloud-vision,vaniakov/django-jquery-file-upload,Imaginashion/cloud-vision,sigurdga/django... | from django.conf.urls import patterns, include, url
from django.http import HttpResponseRedirect
# Uncomment the next two lines to enable the admin:
from django.contrib import admin
admin.autodiscover()
urlpatterns = patterns('',
# Examples:
# url(r'^$', 'upload.views.home', name='home'),
url(r'^$', lamb... | Fix serve media files path
from django.conf.urls import patterns, include, url
from django.http import HttpResponseRedirect
# Uncomment the next two lines to enable the admin:
from django.contrib import admin
admin.autodiscover()
urlpatterns = patterns('',
# Examples:
# url(r'^$', 'upload.views.home', name='... |
b2026158e0aec2c79bba9e61ff02c14d42166b20 | setup.py | setup.py | from setuptools import setup, find_packages
from ckanext.qa import __version__
setup(
name='ckanext-qa',
version=__version__,
description='Quality Assurance plugin for CKAN',
long_description='',
classifiers=[],
keywords='',
author='Open Knowledge Foundation',
author_email='info@okfn.or... | from setuptools import setup, find_packages
from ckanext.qa import __version__
setup(
name='ckanext-qa',
version=__version__,
description='Quality Assurance plugin for CKAN',
long_description='',
classifiers=[],
keywords='',
author='Open Knowledge Foundation',
author_email='info@okfn.or... | Change celery and kombu requirements to match ckanext-datastorer | Change celery and kombu requirements to match ckanext-datastorer
| Python | mit | ckan/ckanext-qa,ckan/ckanext-qa,ckan/ckanext-qa | from setuptools import setup, find_packages
from ckanext.qa import __version__
setup(
name='ckanext-qa',
version=__version__,
description='Quality Assurance plugin for CKAN',
long_description='',
classifiers=[],
keywords='',
author='Open Knowledge Foundation',
author_email='info@okfn.or... | Change celery and kombu requirements to match ckanext-datastorer
from setuptools import setup, find_packages
from ckanext.qa import __version__
setup(
name='ckanext-qa',
version=__version__,
description='Quality Assurance plugin for CKAN',
long_description='',
classifiers=[],
keywords='',
... |
e727b390732687565a0a21127e78c6d36e8a8b84 | setup.py | setup.py | #!/usr/bin/env python
from setuptools import setup, find_packages
setup(
name='blanc-basic-news',
version='0.3',
description='Blanc Basic News for Django',
long_description=open('README.rst').read(),
url='https://github.com/blancltd/blanc-basic-news',
maintainer='Blanc Ltd',
maintainer_emai... | #!/usr/bin/env python
from setuptools import find_packages, setup
setup(
name='blanc-basic-news',
version='0.3',
description='Blanc Basic News for Django',
long_description=open('README.rst').read(),
url='https://github.com/blancltd/blanc-basic-news',
maintainer='Blanc Ltd',
maintainer_ema... | Add Python 3.4 to supported list | Add Python 3.4 to supported list
| Python | bsd-3-clause | blancltd/blanc-basic-news | #!/usr/bin/env python
from setuptools import find_packages, setup
setup(
name='blanc-basic-news',
version='0.3',
description='Blanc Basic News for Django',
long_description=open('README.rst').read(),
url='https://github.com/blancltd/blanc-basic-news',
maintainer='Blanc Ltd',
maintainer_ema... | Add Python 3.4 to supported list
#!/usr/bin/env python
from setuptools import setup, find_packages
setup(
name='blanc-basic-news',
version='0.3',
description='Blanc Basic News for Django',
long_description=open('README.rst').read(),
url='https://github.com/blancltd/blanc-basic-news',
maintaine... |
f908dd5fda528b4ce6ebaed082050348bf6f23a5 | i8c/tests/test_entry_point.py | i8c/tests/test_entry_point.py | from i8c.tests import TestCase
import i8c
import sys
class TestEntryPoint(TestCase):
"""Test the console scripts entry point."""
def setUp(self):
self.saved_argv = sys.argv
self.saved_stderr = sys.stderr
def tearDown(self):
sys.argv = self.saved_argv
sys.stderr = self.save... | Test the console scripts entry point | Test the console scripts entry point
| Python | lgpl-2.1 | gbenson/i8c | from i8c.tests import TestCase
import i8c
import sys
class TestEntryPoint(TestCase):
"""Test the console scripts entry point."""
def setUp(self):
self.saved_argv = sys.argv
self.saved_stderr = sys.stderr
def tearDown(self):
sys.argv = self.saved_argv
sys.stderr = self.save... | Test the console scripts entry point
| |
b2ca081fbc10cc4c5d6b02ef2a4f5ce7bcab35e5 | doc/conf.py | doc/conf.py | # -*- coding: utf-8 -*-
# Copyright (c) 2010-2016, MIT Probabilistic Computing Project
#
# 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/LICENS... | # -*- coding: utf-8 -*-
# Copyright (c) 2010-2016, MIT Probabilistic Computing Project
#
# 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/LICENS... | Use sphinxdoc html theme, cleaner than alabast. | Use sphinxdoc html theme, cleaner than alabast.
| Python | apache-2.0 | probcomp/bayeslite,probcomp/bayeslite | # -*- coding: utf-8 -*-
# Copyright (c) 2010-2016, MIT Probabilistic Computing Project
#
# 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/LICENS... | Use sphinxdoc html theme, cleaner than alabast.
# -*- coding: utf-8 -*-
# Copyright (c) 2010-2016, MIT Probabilistic Computing Project
#
# 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 a... |
10ec59777c0b364e05dc022ac3178d0c6d0ca916 | plugin/formatters.py | plugin/formatters.py | import json
from collections import OrderedDict
def format_json(input, settings=None):
indent = 4
if settings:
indent = settings.get('tab_size', indent)
try:
data = json.loads(input, object_pairs_hook=OrderedDict)
return json.dumps(data, indent=indent, separators=(',', ': ')), None... | import json
from collections import OrderedDict
def format_json(input, settings=None):
indent = 4
if settings:
indent = settings.get('tab_size', indent)
try:
data = json.loads(input, object_pairs_hook=OrderedDict)
return True, json.dumps(data, indent=indent, separators=(',', ': '))... | Fix parsing of JSON formatting errors | Fix parsing of JSON formatting errors
| Python | mit | Rypac/sublime-format | import json
from collections import OrderedDict
def format_json(input, settings=None):
indent = 4
if settings:
indent = settings.get('tab_size', indent)
try:
data = json.loads(input, object_pairs_hook=OrderedDict)
return True, json.dumps(data, indent=indent, separators=(',', ': '))... | Fix parsing of JSON formatting errors
import json
from collections import OrderedDict
def format_json(input, settings=None):
indent = 4
if settings:
indent = settings.get('tab_size', indent)
try:
data = json.loads(input, object_pairs_hook=OrderedDict)
return json.dumps(data, inden... |
c4e497f24818169e8c59c07246582223c8214e45 | bitfield/forms.py | bitfield/forms.py | from django.forms import CheckboxSelectMultiple, IntegerField, ValidationError
from django.utils.encoding import force_unicode
from .types import BitHandler
class BitFieldCheckboxSelectMultiple(CheckboxSelectMultiple):
def render(self, name, value, attrs=None, choices=()):
if isinstance(value, BitHandler... | from django.forms import CheckboxSelectMultiple, IntegerField, ValidationError
from django.utils.encoding import force_unicode
from .types import BitHandler
class BitFieldCheckboxSelectMultiple(CheckboxSelectMultiple):
def render(self, name, value, attrs=None, choices=()):
if isinstance(value, BitHandler... | Allow values of BitFormField's to be integers (for legacy compatibility in some apps) | Allow values of BitFormField's to be integers (for legacy compatibility in some apps)
| Python | apache-2.0 | moggers87/django-bitfield,joshowen/django-bitfield,Elec/django-bitfield,budlight/django-bitfield,disqus/django-bitfield | from django.forms import CheckboxSelectMultiple, IntegerField, ValidationError
from django.utils.encoding import force_unicode
from .types import BitHandler
class BitFieldCheckboxSelectMultiple(CheckboxSelectMultiple):
def render(self, name, value, attrs=None, choices=()):
if isinstance(value, BitHandler... | Allow values of BitFormField's to be integers (for legacy compatibility in some apps)
from django.forms import CheckboxSelectMultiple, IntegerField, ValidationError
from django.utils.encoding import force_unicode
from .types import BitHandler
class BitFieldCheckboxSelectMultiple(CheckboxSelectMultiple):
def ren... |
6bc10fd6d00593c3ad192a4bf528e9e01dd605c3 | exa/relational/__init__.py | exa/relational/__init__.py | # -*- coding: utf-8 -*-
# Copyright (c) 2015-2016, Exa Analytics Development Team
# Distributed under the terms of the Apache License 2.0
"""
Relational
####################
This (sub)package is provides the content management framework for container
objects and a collection of static data for reference and unit... | # -*- coding: utf-8 -*-
# Copyright (c) 2015-2016, Exa Analytics Development Team
# Distributed under the terms of the Apache License 2.0
"""
Relational
####################
This (sub)package is provides the content management framework for container
objects and a collection of static data for reference and unit... | Comment out relational for now; working on workflows, parallelism first | Comment out relational for now; working on workflows, parallelism first
| Python | apache-2.0 | alexvmarch/exa,alexvmarch/exa,exa-analytics/exa,avmarchenko/exa,alexvmarch/exa,tjduigna/exa,exa-analytics/exa | # -*- coding: utf-8 -*-
# Copyright (c) 2015-2016, Exa Analytics Development Team
# Distributed under the terms of the Apache License 2.0
"""
Relational
####################
This (sub)package is provides the content management framework for container
objects and a collection of static data for reference and unit... | Comment out relational for now; working on workflows, parallelism first
# -*- coding: utf-8 -*-
# Copyright (c) 2015-2016, Exa Analytics Development Team
# Distributed under the terms of the Apache License 2.0
"""
Relational
####################
This (sub)package is provides the content management framework for ... |
90ade823700da61824c113759f847bf08823c148 | nova/objects/__init__.py | nova/objects/__init__.py | # Copyright 2013 IBM Corp.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agree... | # Copyright 2013 IBM Corp.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agree... | Add security_group_rule to objects registry | Add security_group_rule to objects registry
This adds the security_group_rule module to the objects registry,
which allows a service to make sure that all of its objects are
registered before any could be received over RPC.
We don't really have a test for any of these because of the nature
of how they're imported. Re... | Python | apache-2.0 | citrix-openstack-build/oslo.versionedobjects,openstack/oslo.versionedobjects | # Copyright 2013 IBM Corp.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agree... | Add security_group_rule to objects registry
This adds the security_group_rule module to the objects registry,
which allows a service to make sure that all of its objects are
registered before any could be received over RPC.
We don't really have a test for any of these because of the nature
of how they're imported. Re... |
346f726a12078e7667ef32808feda0618f568839 | lino_extjs6/projects/mysite/settings/demo.py | lino_extjs6/projects/mysite/settings/demo.py | import datetime
from lino_extjs6.projects.mysite.settings import *
class Site(Site):
project_name = 'extjs_demo'
is_demo_site = True
# ignore_dates_after = datetime.date(2019, 05, 22)
the_demo_date = datetime.date(2015, 03, 12)
SITE = Site(globals())
SECRET_KEY = "1234"
# ALLOWED_HOSTS = ['*']
DEBU... | import datetime
from lino_extjs6.projects.mysite.settings import *
class Site(Site):
project_name = 'extjs_demo'
is_demo_site = True
# ignore_dates_after = datetime.date(2019, 05, 22)
the_demo_date = datetime.date(2015, 3, 12)
SITE = Site(globals())
SECRET_KEY = "1234"
# ALLOWED_HOSTS = ['*']
DEBUG... | Add support to Py3 for datetime | Add support to Py3 for datetime
| Python | agpl-3.0 | lino-framework/extjs6,lsaffre/lino_extjs6,lsaffre/lino_extjs6,lsaffre/lino_extjs6,lsaffre/lino_extjs6,lino-framework/extjs6,lsaffre/lino_extjs6,lino-framework/extjs6 | import datetime
from lino_extjs6.projects.mysite.settings import *
class Site(Site):
project_name = 'extjs_demo'
is_demo_site = True
# ignore_dates_after = datetime.date(2019, 05, 22)
the_demo_date = datetime.date(2015, 3, 12)
SITE = Site(globals())
SECRET_KEY = "1234"
# ALLOWED_HOSTS = ['*']
DEBUG... | Add support to Py3 for datetime
import datetime
from lino_extjs6.projects.mysite.settings import *
class Site(Site):
project_name = 'extjs_demo'
is_demo_site = True
# ignore_dates_after = datetime.date(2019, 05, 22)
the_demo_date = datetime.date(2015, 03, 12)
SITE = Site(globals())
SECRET_KEY = "1... |
83d6c1695a147649972f36cbee1bc68fd0786765 | molly/rest.py | molly/rest.py | import os
from flask import Flask
from molly.config import ConfigLoader
from molly.apps.homepage import App as Homepage
flask_app = Flask(__name__)
with open(os.environ.get('MOLLY_CONFIG', 'conf/default.conf')) as fd:
config_loader = ConfigLoader()
apps, services = config_loader.load_from_config(fd)
for se... | import os
from flask import Flask
from molly.config import ConfigLoader
from molly.apps.homepage import App as Homepage
flask_app = Flask(__name__)
with open(os.environ.get('MOLLY_CONFIG', 'conf/default.conf')) as fd:
config_loader = ConfigLoader()
config, apps, services = config_loader.load_from_config(fd)... | Configure Flask from global config | Configure Flask from global config
| Python | apache-2.0 | ManchesterIO/mollyproject-next,ManchesterIO/mollyproject-next,ManchesterIO/mollyproject-next | import os
from flask import Flask
from molly.config import ConfigLoader
from molly.apps.homepage import App as Homepage
flask_app = Flask(__name__)
with open(os.environ.get('MOLLY_CONFIG', 'conf/default.conf')) as fd:
config_loader = ConfigLoader()
config, apps, services = config_loader.load_from_config(fd)... | Configure Flask from global config
import os
from flask import Flask
from molly.config import ConfigLoader
from molly.apps.homepage import App as Homepage
flask_app = Flask(__name__)
with open(os.environ.get('MOLLY_CONFIG', 'conf/default.conf')) as fd:
config_loader = ConfigLoader()
apps, services = config... |
8292c4afe43ac636ebf23a0740eb06a25fbbb04d | backend/post_handler/__init__.py | backend/post_handler/__init__.py | from flask import Flask
app = Flask(__name__)
@app.route("/", methods=["GET", "POST"])
def hello():
from flask import request
# print dir(request)
# print request.values
sdp_headers = request.form.get('sdp')
with open('./stream.sdp', 'w') as f:
f.write(sdp_headers)
cmd = "ffmpeg -i s... | from flask import Flask
app = Flask(__name__)
@app.route("/", methods=["GET", "POST"])
def hello():
from flask import request
# print dir(request)
# print request.values
sdp_headers = request.form.get('sdp')
with open('./stream.sdp', 'w') as f:
f.write(sdp_headers)
import time
t... | Add uniq filenames for videos | Add uniq filenames for videos
| Python | mit | optimus-team/optimus-video,optimus-team/optimus-video,optimus-team/optimus-video,optimus-team/optimus-video | from flask import Flask
app = Flask(__name__)
@app.route("/", methods=["GET", "POST"])
def hello():
from flask import request
# print dir(request)
# print request.values
sdp_headers = request.form.get('sdp')
with open('./stream.sdp', 'w') as f:
f.write(sdp_headers)
import time
t... | Add uniq filenames for videos
from flask import Flask
app = Flask(__name__)
@app.route("/", methods=["GET", "POST"])
def hello():
from flask import request
# print dir(request)
# print request.values
sdp_headers = request.form.get('sdp')
with open('./stream.sdp', 'w') as f:
f.write(sdp_... |
145532e77d2bf10860df3dfb13ce0ef1a4e57772 | spark/pca_preparation.py | spark/pca_preparation.py | import cPickle as pkl
import base64
import numpy as np
from lopq.model import eigenvalue_allocation
def main(args):
params = pkl.load(open(args.pca_params))
P = params['P']
E = params['E']
mu = params['mu']
# Reduce dimension
E = E[-args.D:]
P = P[:,-args.D:]
# Balance variance acro... | Add script demonstrating preparing PCA parameters computed by train_pca.py | Add script demonstrating preparing PCA parameters computed by train_pca.py
| Python | apache-2.0 | yahoo/lopq,yahoo/lopq | import cPickle as pkl
import base64
import numpy as np
from lopq.model import eigenvalue_allocation
def main(args):
params = pkl.load(open(args.pca_params))
P = params['P']
E = params['E']
mu = params['mu']
# Reduce dimension
E = E[-args.D:]
P = P[:,-args.D:]
# Balance variance acro... | Add script demonstrating preparing PCA parameters computed by train_pca.py
| |
ee4bda5802a601485027a3ea91607dc5077ca73d | setup.py | setup.py | import os
import sys
from setuptools import setup, find_packages
from tethys_apps.app_installation import custom_develop_command, custom_install_command
### Apps Definition ###
app_package = 'canned_gssha'
release_package = 'tethysapp-' + app_package
app_class = 'canned_gssha.app:CannedGSSHA'
app_package_dir = os.path... | import os
import sys
from setuptools import setup, find_packages
from tethys_apps.app_installation import custom_develop_command, custom_install_command
### Apps Definition ###
app_package = 'canned_gssha'
release_package = 'tethysapp-' + app_package
app_class = 'canned_gssha.app:CannedGSSHA'
app_package_dir = os.path... | Set maximum bounds for both plots to provide a common scale for comparison between the different scenarios. | Set maximum bounds for both plots to provide a common scale for comparison between the different scenarios.
| Python | bsd-2-clause | CI-WATER/tethysapp-canned_gssha,CI-WATER/tethysapp-canned_gssha,CI-WATER/tethysapp-canned_gssha | import os
import sys
from setuptools import setup, find_packages
from tethys_apps.app_installation import custom_develop_command, custom_install_command
### Apps Definition ###
app_package = 'canned_gssha'
release_package = 'tethysapp-' + app_package
app_class = 'canned_gssha.app:CannedGSSHA'
app_package_dir = os.path... | Set maximum bounds for both plots to provide a common scale for comparison between the different scenarios.
import os
import sys
from setuptools import setup, find_packages
from tethys_apps.app_installation import custom_develop_command, custom_install_command
### Apps Definition ###
app_package = 'canned_gssha'
rele... |
2a7877c1ed3e1dc9a5bcc27220847a5a75cf65ab | spiff/membership/management/commands/bill_members.py | spiff/membership/management/commands/bill_members.py | from django.core.management import BaseCommand
from spiff.membership.utils import monthRange
from spiff.membership.models import Member, RankLineItem
from spiff.payment.models import Invoice
class Command(BaseCommand):
help = 'Bills active members for the month'
def handle(self, *args, **options):
for member ... | from django.core.management import BaseCommand
from spiff.membership.utils import monthRange
from spiff.membership.models import Member, RankLineItem
from spiff.payment.models import Invoice
class Command(BaseCommand):
help = 'Bills active members for the month'
def handle(self, *args, **options):
for member ... | Fix swapped dates on invoices | Fix swapped dates on invoices
| Python | agpl-3.0 | SYNHAK/spiff,SYNHAK/spiff,SYNHAK/spiff | from django.core.management import BaseCommand
from spiff.membership.utils import monthRange
from spiff.membership.models import Member, RankLineItem
from spiff.payment.models import Invoice
class Command(BaseCommand):
help = 'Bills active members for the month'
def handle(self, *args, **options):
for member ... | Fix swapped dates on invoices
from django.core.management import BaseCommand
from spiff.membership.utils import monthRange
from spiff.membership.models import Member, RankLineItem
from spiff.payment.models import Invoice
class Command(BaseCommand):
help = 'Bills active members for the month'
def handle(self, *ar... |
b400be73feba0b571ac6453841426db9a78dfa00 | flowerconfig.py | flowerconfig.py | import os
AMPQ_ADMIN_USERNAME = os.getenv('AMQP_ADMIN_USERNAME', 'guest')
AMPQ_ADMIN_PASSWORD = os.getenv('AMQP_ADMIN_PASSWORD', 'guest')
AMQP_ADMIN_HOST = os.getenv('AMQP_ADMIN_HOST', '172.17.42.1')
AMQP_ADMIN_PORT = int(os.getenv('AMQP_ADMIN_PORT', '15672'))
DEFAULT_BROKER_API = 'http://%s:%s@%s:%d/api/' \
... | import os
AMPQ_ADMIN_USERNAME = os.getenv('AMQP_ADMIN_USERNAME', 'guest')
AMPQ_ADMIN_PASSWORD = os.getenv('AMQP_ADMIN_PASSWORD', 'guest')
AMQP_ADMIN_HOST = os.getenv('AMQP_ADMIN_HOST', '172.17.42.1')
AMQP_ADMIN_PORT = int(os.getenv('AMQP_ADMIN_PORT', '15672'))
DEFAULT_BROKER_API = 'http://%s:%s@%s:%d/api/' \
... | Remove FLOWER_ prefix for non flower based vars | Remove FLOWER_ prefix for non flower based vars | Python | mit | totem/celery-flower-docker,totem/celery-flower-docker | import os
AMPQ_ADMIN_USERNAME = os.getenv('AMQP_ADMIN_USERNAME', 'guest')
AMPQ_ADMIN_PASSWORD = os.getenv('AMQP_ADMIN_PASSWORD', 'guest')
AMQP_ADMIN_HOST = os.getenv('AMQP_ADMIN_HOST', '172.17.42.1')
AMQP_ADMIN_PORT = int(os.getenv('AMQP_ADMIN_PORT', '15672'))
DEFAULT_BROKER_API = 'http://%s:%s@%s:%d/api/' \
... | Remove FLOWER_ prefix for non flower based vars
import os
AMPQ_ADMIN_USERNAME = os.getenv('AMQP_ADMIN_USERNAME', 'guest')
AMPQ_ADMIN_PASSWORD = os.getenv('AMQP_ADMIN_PASSWORD', 'guest')
AMQP_ADMIN_HOST = os.getenv('AMQP_ADMIN_HOST', '172.17.42.1')
AMQP_ADMIN_PORT = int(os.getenv('AMQP_ADMIN_PORT', '15672'))
DEFAULT_B... |
78edc5479212af75a412cf321d321283978a6d79 | setup.py | setup.py | from distutils.core import setup
setup(name='nikeplus',
version='0.1',
description='Export nikeplus data to CSV format',
author='Luke Lee',
author_email='durdenmisc@gmail.com',
url='http://www.lukelee.me',
packages=['nikeplus'],
entry_points={
"console_scripts": [
... | from distutils.core import setup
setup(name='nikeplusapi',
version='0.1',
description='Export nikeplus data to CSV format',
author='Luke Lee',
author_email='durdenmisc@gmail.com',
url='http://www.lukelee.me',
packages=['nikeplus'],
entry_points={
"console_scripts": [
... | Change package name for pypi, nikeplus was taken :( | Change package name for pypi, nikeplus was taken :(
| Python | mit | durden/nikeplus | from distutils.core import setup
setup(name='nikeplusapi',
version='0.1',
description='Export nikeplus data to CSV format',
author='Luke Lee',
author_email='durdenmisc@gmail.com',
url='http://www.lukelee.me',
packages=['nikeplus'],
entry_points={
"console_scripts": [
... | Change package name for pypi, nikeplus was taken :(
from distutils.core import setup
setup(name='nikeplus',
version='0.1',
description='Export nikeplus data to CSV format',
author='Luke Lee',
author_email='durdenmisc@gmail.com',
url='http://www.lukelee.me',
packages=['nikeplus'],
... |
c633112d6336c37e15577eb6d035488cc42bfd59 | indra/explanation/model_checker/__init__.py | indra/explanation/model_checker/__init__.py | from .model_checker import ModelChecker, PathResult, PathMetric
from .pysb import PysbModelChecker
from .signed_graph import SignedGraphModelChecker
from .unsigned_graph import UnsignedGraphModelChecker
from .pybel import PybelModelChecker
| from .model_checker import ModelChecker, PathResult, PathMetric, get_path_iter
from .pysb import PysbModelChecker
from .signed_graph import SignedGraphModelChecker
from .unsigned_graph import UnsignedGraphModelChecker
from .pybel import PybelModelChecker
| Add get_path_iter to model_checker importables | Add get_path_iter to model_checker importables
| Python | bsd-2-clause | sorgerlab/belpy,johnbachman/indra,johnbachman/indra,bgyori/indra,sorgerlab/belpy,bgyori/indra,johnbachman/belpy,bgyori/indra,sorgerlab/indra,johnbachman/belpy,sorgerlab/indra,johnbachman/belpy,sorgerlab/indra,sorgerlab/belpy,johnbachman/indra | from .model_checker import ModelChecker, PathResult, PathMetric, get_path_iter
from .pysb import PysbModelChecker
from .signed_graph import SignedGraphModelChecker
from .unsigned_graph import UnsignedGraphModelChecker
from .pybel import PybelModelChecker
| Add get_path_iter to model_checker importables
from .model_checker import ModelChecker, PathResult, PathMetric
from .pysb import PysbModelChecker
from .signed_graph import SignedGraphModelChecker
from .unsigned_graph import UnsignedGraphModelChecker
from .pybel import PybelModelChecker
|
eb8177cdc1c9b8bb38844786bc66f362eef7c7ee | {{cookiecutter.app_name}}/src/{{cookiecutter.app_name}}/__init__.py | {{cookiecutter.app_name}}/src/{{cookiecutter.app_name}}/__init__.py | from flask import Flask
from raven.contrib.flask import Sentry
from flask_debugtoolbar import DebugToolbarExtension
from werkzeug.contrib.profiler import ProfilerMiddleware
from {{cookiecutter.app_name}}.views import CatAPI
from {{cookiecutter.app_name}}.views import api, cache
from {{cookiecutter.app_name}}.models i... | from flask import Flask
from raven.contrib.flask import Sentry
from flask_debugtoolbar import DebugToolbarExtension
from werkzeug.contrib.profiler import ProfilerMiddleware
from {{cookiecutter.app_name}}.views import CatAPI
from {{cookiecutter.app_name}}.views import api, cache
from {{cookiecutter.app_name}}.models i... | Move flask-restful api defs before init_app, since it doesn't work otherwise with new version of flask-restful | Move flask-restful api defs before init_app, since it doesn't work
otherwise with new version of flask-restful
| Python | mit | makmanalp/flask-chassis | from flask import Flask
from raven.contrib.flask import Sentry
from flask_debugtoolbar import DebugToolbarExtension
from werkzeug.contrib.profiler import ProfilerMiddleware
from {{cookiecutter.app_name}}.views import CatAPI
from {{cookiecutter.app_name}}.views import api, cache
from {{cookiecutter.app_name}}.models i... | Move flask-restful api defs before init_app, since it doesn't work
otherwise with new version of flask-restful
from flask import Flask
from raven.contrib.flask import Sentry
from flask_debugtoolbar import DebugToolbarExtension
from werkzeug.contrib.profiler import ProfilerMiddleware
from {{cookiecutter.app_name}}.vi... |
0544a5eb02f1818f3276f735679cf3caa164c94d | setup.py | setup.py | from distribute_setup import use_setuptools
use_setuptools()
from setuptools import setup, find_packages
djl_url = "http://douglatornell.ca/software/python/Nosy/"
nosy_version = "1.1"
version_classifiers = ['Programming Language :: Python :: %s' % version
for version in ['2', '2.5', '2.6', '2.7'... | from distribute_setup import use_setuptools
use_setuptools()
from setuptools import setup, find_packages
version_classifiers = ['Programming Language :: Python :: %s' % version
for version in ['2', '2.5', '2.6', '2.7']]
other_classifiers = [
'Development Status :: 5 - Production/Stable',
... | Delete download_url. Let PyPI provide the bandwidth. | Delete download_url. Let PyPI provide the bandwidth.
| Python | bsd-3-clause | dougbeal/nosy | from distribute_setup import use_setuptools
use_setuptools()
from setuptools import setup, find_packages
version_classifiers = ['Programming Language :: Python :: %s' % version
for version in ['2', '2.5', '2.6', '2.7']]
other_classifiers = [
'Development Status :: 5 - Production/Stable',
... | Delete download_url. Let PyPI provide the bandwidth.
from distribute_setup import use_setuptools
use_setuptools()
from setuptools import setup, find_packages
djl_url = "http://douglatornell.ca/software/python/Nosy/"
nosy_version = "1.1"
version_classifiers = ['Programming Language :: Python :: %s' % version
... |
8fad8a4f1591fb4a7d7d1bdf932c5918197b475c | tests/client.py | tests/client.py | # -*- coding: utf-8 -*-
"""
Description: Client side of sanity check
Author: Mike Ellis
Copyright 2017 Owner
"""
from htmltree import *
def start():
console.log("Starting")
newcontent = H1("Sanity check PASS", _class='test', style=dict(color='green'))
console.log(newcontent.render(0))
document.body.inne... | # -*- coding: utf-8 -*-
"""
Description: Client side of sanity check
Uses JS functions insertAdjacentHTML, innerHTML and addEventListener.
See https://developer.mozilla.org/en-US/docs/Web/API/Element/insertAdjacentHTML
https://developer.mozilla.org/en-US/docs/Web/API/Element/innerHTML
https://developer.mozilla.... | Fix <style> rendering under Transcrypt. | Fix <style> rendering under Transcrypt.
The hasattr test in renderCss() was failing when it shouldn't have.
Fixed by removal. Updated tests/client.py to create and append a style
element to detect problems related to Style() on the client side.
| Python | mit | Michael-F-Ellis/htmltree | # -*- coding: utf-8 -*-
"""
Description: Client side of sanity check
Uses JS functions insertAdjacentHTML, innerHTML and addEventListener.
See https://developer.mozilla.org/en-US/docs/Web/API/Element/insertAdjacentHTML
https://developer.mozilla.org/en-US/docs/Web/API/Element/innerHTML
https://developer.mozilla.... | Fix <style> rendering under Transcrypt.
The hasattr test in renderCss() was failing when it shouldn't have.
Fixed by removal. Updated tests/client.py to create and append a style
element to detect problems related to Style() on the client side.
# -*- coding: utf-8 -*-
"""
Description: Client side of sanity check
Auth... |
87f44bb68af64f2654c68fb60bf93a34ac6095a6 | pylearn2/scripts/dbm/dbm_metrics.py | pylearn2/scripts/dbm/dbm_metrics.py | #!/usr/bin/env python
import argparse
if __name__ == '__main__':
# Argument parsing
parser = argparse.ArgumentParser()
parser.add_argument("metric", help="the desired metric",
choices=["ais"])
parser.add_argument("model_path", help="path to the pickled DBM model")
args = par... | #!/usr/bin/env python
import argparse
from pylearn2.utils import serial
def compute_ais(model):
pass
if __name__ == '__main__':
# Possible metrics
metrics = {'ais': compute_ais}
# Argument parsing
parser = argparse.ArgumentParser()
parser.add_argument("metric", help="the desired metric",
... | Make the script recuperate the correct method | Make the script recuperate the correct method
| Python | bsd-3-clause | fyffyt/pylearn2,daemonmaker/pylearn2,se4u/pylearn2,hyqneuron/pylearn2-maxsom,abergeron/pylearn2,fyffyt/pylearn2,skearnes/pylearn2,w1kke/pylearn2,matrogers/pylearn2,TNick/pylearn2,msingh172/pylearn2,shiquanwang/pylearn2,pkainz/pylearn2,fishcorn/pylearn2,chrish42/pylearn,kose-y/pylearn2,Refefer/pylearn2,lunyang/pylearn2,... | #!/usr/bin/env python
import argparse
from pylearn2.utils import serial
def compute_ais(model):
pass
if __name__ == '__main__':
# Possible metrics
metrics = {'ais': compute_ais}
# Argument parsing
parser = argparse.ArgumentParser()
parser.add_argument("metric", help="the desired metric",
... | Make the script recuperate the correct method
#!/usr/bin/env python
import argparse
if __name__ == '__main__':
# Argument parsing
parser = argparse.ArgumentParser()
parser.add_argument("metric", help="the desired metric",
choices=["ais"])
parser.add_argument("model_path", help=... |
1c254d8869482241de14255c25edd875ca369e46 | fortuitus/frunner/factories.py | fortuitus/frunner/factories.py | import factory
from fortuitus.feditor.factories import TestProjectF
from fortuitus.frunner import models
class TestRunF(factory.Factory):
FACTORY_FOR = models.TestRun
project = factory.SubFactory(TestProjectF)
class TestCaseF(factory.Factory):
FACTORY_FOR = models.TestCase
testrun = factory.SubFa... | import factory
from fortuitus.feditor.factories import TestProjectF
from fortuitus.frunner import models
class TestRunF(factory.Factory):
FACTORY_FOR = models.TestRun
project = factory.SubFactory(TestProjectF)
base_url = 'http://api.example.com/'
class TestCaseF(factory.Factory):
FACTORY_FOR = mod... | Fix TestRun factory missing base_url | Fix TestRun factory missing base_url
| Python | mit | elegion/djangodash2012,elegion/djangodash2012 | import factory
from fortuitus.feditor.factories import TestProjectF
from fortuitus.frunner import models
class TestRunF(factory.Factory):
FACTORY_FOR = models.TestRun
project = factory.SubFactory(TestProjectF)
base_url = 'http://api.example.com/'
class TestCaseF(factory.Factory):
FACTORY_FOR = mod... | Fix TestRun factory missing base_url
import factory
from fortuitus.feditor.factories import TestProjectF
from fortuitus.frunner import models
class TestRunF(factory.Factory):
FACTORY_FOR = models.TestRun
project = factory.SubFactory(TestProjectF)
class TestCaseF(factory.Factory):
FACTORY_FOR = models... |
93282e663a03c2a62fcf9731db3d152b3d2c32c7 | test_publisher.py | test_publisher.py | import publisher
def from_html_file():
source_file = "~/Projects/markdown-publisher/source_test.md"
print publisher.get_html_from_file(source_file)
def from_html():
test_source = "# Test heading\n\n- test item 1\n- test item 2"
print publisher.get_html(test_source)
def from_html_to_pdf():
test_ht... | import publisher
test_pdf_filename = "test/test.pdf"
test_css_filename = "test/test.css"
test_md_filename = "test/test.md"
test_html_filename = "test/test.html"
test_md = "# Test heading\n\n- test item 1\n- test item 2"
def from_html_file():
print publisher.md_to_html(publisher.from_file(test_md_filename))
def ... | Add MD+CSS processing test to test module. | Add MD+CSS processing test to test module.
| Python | mit | cpgillem/markdown_publisher,cpgillem/markdown_publisher | import publisher
test_pdf_filename = "test/test.pdf"
test_css_filename = "test/test.css"
test_md_filename = "test/test.md"
test_html_filename = "test/test.html"
test_md = "# Test heading\n\n- test item 1\n- test item 2"
def from_html_file():
print publisher.md_to_html(publisher.from_file(test_md_filename))
def ... | Add MD+CSS processing test to test module.
import publisher
def from_html_file():
source_file = "~/Projects/markdown-publisher/source_test.md"
print publisher.get_html_from_file(source_file)
def from_html():
test_source = "# Test heading\n\n- test item 1\n- test item 2"
print publisher.get_html(test_... |
9131040b8115bffc3e852c3507d128a2060f463d | astropy_helpers/tests/test_ah_bootstrap.py | astropy_helpers/tests/test_ah_bootstrap.py | import os
from setuptools.sandbox import run_setup
from . import run_cmd
TEST_SETUP_PY = """\
#!/usr/bin/env python
from __future__ import print_function
import os
import sys
for k in list(sys.modules):
if k == 'astropy_helpers' or k.startswith('astropy_helpers.'):
del sys.modules[k]
import ah_bootstr... | Add the first test that actually tests ah_bootstrap.use_astropy_helpers directly. Will be adding more tests soon following the same general pattern. | Add the first test that actually tests ah_bootstrap.use_astropy_helpers directly. Will be adding more tests soon following the same general pattern.
| Python | bsd-3-clause | bsipocz/astropy-helpers,larrybradley/astropy-helpers,bsipocz/astropy-helpers,larrybradley/astropy-helpers,dpshelio/astropy-helpers,embray/astropy_helpers,Cadair/astropy-helpers,embray/astropy_helpers,Cadair/astropy-helpers,dpshelio/astropy-helpers,astropy/astropy-helpers,bsipocz/astropy-helpers,embray/astropy_helpers,e... | import os
from setuptools.sandbox import run_setup
from . import run_cmd
TEST_SETUP_PY = """\
#!/usr/bin/env python
from __future__ import print_function
import os
import sys
for k in list(sys.modules):
if k == 'astropy_helpers' or k.startswith('astropy_helpers.'):
del sys.modules[k]
import ah_bootstr... | Add the first test that actually tests ah_bootstrap.use_astropy_helpers directly. Will be adding more tests soon following the same general pattern.
| |
7c4d13d1f2591ae0a3eb8dc7ffa5fa03258c7662 | django/applications/catmaid/management/commands/catmaid_set_user_profiles_to_default.py | django/applications/catmaid/management/commands/catmaid_set_user_profiles_to_default.py | from django.conf import settings
from django.contrib.auth.models import User
from django.core.management.base import NoArgsCommand, CommandError
class Command(NoArgsCommand):
help = "Set the user profile settings of every user to the defaults"
def handle_noargs(self, **options):
for u in User.objects.... | Add management command to set all user profiles to defaults | Add management command to set all user profiles to defaults
| Python | agpl-3.0 | htem/CATMAID,htem/CATMAID,fzadow/CATMAID,fzadow/CATMAID,fzadow/CATMAID,htem/CATMAID,htem/CATMAID,fzadow/CATMAID | from django.conf import settings
from django.contrib.auth.models import User
from django.core.management.base import NoArgsCommand, CommandError
class Command(NoArgsCommand):
help = "Set the user profile settings of every user to the defaults"
def handle_noargs(self, **options):
for u in User.objects.... | Add management command to set all user profiles to defaults
| |
93d9de9e004896407214c5b67e64cb050bfaa63c | curious/utils.py | curious/utils.py | import time
# for development/debugging
def report_time(f):
def wrap(*args, **kwargs):
t = time.time()
r = f(*args, **kwargs)
print '%s.%s: %.4f' % (f.__module__, f.func_name, time.time()-t)
return r
return wrap
| from functools import wraps
import time
# for development/debugging
def report_time(f):
@wraps(f)
def wrap(*args, **kwargs):
t = time.time()
r = f(*args, **kwargs)
print '%s.%s: %.4f' % (f.__module__, f.func_name, time.time()-t)
return r
return wrap
| Add functools wraps to report_time decorator | Add functools wraps to report_time decorator
| Python | mit | benjiec/curious,benjiec/curious,benjiec/curious | from functools import wraps
import time
# for development/debugging
def report_time(f):
@wraps(f)
def wrap(*args, **kwargs):
t = time.time()
r = f(*args, **kwargs)
print '%s.%s: %.4f' % (f.__module__, f.func_name, time.time()-t)
return r
return wrap
| Add functools wraps to report_time decorator
import time
# for development/debugging
def report_time(f):
def wrap(*args, **kwargs):
t = time.time()
r = f(*args, **kwargs)
print '%s.%s: %.4f' % (f.__module__, f.func_name, time.time()-t)
return r
return wrap
|
40b6b5db450c92fd5d64186981be433c47b43afd | tests/test_wish_utils.py | tests/test_wish_utils.py | # -*- coding: utf-8 -*-
import pkg_resources
import wish_utils
def test_import_modules():
# normal code path, pytest is a dependency
distributions = [pkg_resources.get_distribution('pytest')]
distributions_modules = wish_utils.import_modules(distributions)
assert len(distributions_modules) == 1
... | # -*- coding: utf-8 -*-
import pkg_resources
import wish_utils
def test_import_coverage():
"""Fix the coverage by pytest-cov, that may trigger after pytest_wish is already imported."""
from imp import reload # Python 2 and 3 reload
import wish_utils
reload(wish_utils)
def test_import_modules():
... | Fix pytest-cov coverage of wish_utils. | Fix pytest-cov coverage of wish_utils.
| Python | mit | alexamici/pytest-wish,nodev-io/pytest-nodev,alexamici/pytest-nodev | # -*- coding: utf-8 -*-
import pkg_resources
import wish_utils
def test_import_coverage():
"""Fix the coverage by pytest-cov, that may trigger after pytest_wish is already imported."""
from imp import reload # Python 2 and 3 reload
import wish_utils
reload(wish_utils)
def test_import_modules():
... | Fix pytest-cov coverage of wish_utils.
# -*- coding: utf-8 -*-
import pkg_resources
import wish_utils
def test_import_modules():
# normal code path, pytest is a dependency
distributions = [pkg_resources.get_distribution('pytest')]
distributions_modules = wish_utils.import_modules(distributions)
ass... |
ddfeb1e9ef60e1913bf702e58cf4696cf7c98c6d | logicmind/token_parser.py | logicmind/token_parser.py | from tokens.andd import And
from tokens.expression import Expression
from tokens.iff import Iff
from tokens.nop import Not
from tokens.orr import Or
from tokens.then import Then
from tokens.variable import Variable
class TokenParser:
"""This parser only works with atomic expressions,
so parenthesis are nee... | from tokens.andd import And
from tokens.expression import Expression
from tokens.iff import Iff
from tokens.nop import Not
from tokens.orr import Or
from tokens.then import Then
from tokens.variable import Variable
class TokenParser:
"""This parser only works with atomic expressions,
so parenthesis are nee... | Allow more representations when parsing | [logicmind] Allow more representations when parsing
| Python | mit | LonamiWebs/Py-Utils | from tokens.andd import And
from tokens.expression import Expression
from tokens.iff import Iff
from tokens.nop import Not
from tokens.orr import Or
from tokens.then import Then
from tokens.variable import Variable
class TokenParser:
"""This parser only works with atomic expressions,
so parenthesis are nee... | [logicmind] Allow more representations when parsing
from tokens.andd import And
from tokens.expression import Expression
from tokens.iff import Iff
from tokens.nop import Not
from tokens.orr import Or
from tokens.then import Then
from tokens.variable import Variable
class TokenParser:
"""This parser only works w... |
8958a976a88fe215174478031c4ebf6577d35eca | setup.py | setup.py | from setuptools import setup
setup(
name='django-cacheops',
version='1.2',
author='Alexander Schepanovski',
author_email='suor.web@gmail.com',
description='A slick ORM cache with automatic granular event-driven invalidation for Django.',
long_description=open('README.rst').read(),
url='htt... | from setuptools import setup
setup(
name='django-cacheops',
version='1.2',
author='Alexander Schepanovski',
author_email='suor.web@gmail.com',
description='A slick ORM cache with automatic granular event-driven invalidation for Django.',
long_description=open('README.rst').read(),
url='htt... | Fix error `AttributeError: 'module' object has no attribute 'PY2'` | Fix error `AttributeError: 'module' object has no attribute 'PY2'` | Python | bsd-3-clause | andwun/django-cacheops,ErwinJunge/django-cacheops,rutube/django-cacheops,Tapo4ek/django-cacheops,th13f/django-cacheops,bourivouh/django-cacheops,Tapo4ek/django-cacheops,whyflyru/django-cacheops,Suor/django-cacheops,LPgenerator/django-cacheops | from setuptools import setup
setup(
name='django-cacheops',
version='1.2',
author='Alexander Schepanovski',
author_email='suor.web@gmail.com',
description='A slick ORM cache with automatic granular event-driven invalidation for Django.',
long_description=open('README.rst').read(),
url='htt... | Fix error `AttributeError: 'module' object has no attribute 'PY2'`
from setuptools import setup
setup(
name='django-cacheops',
version='1.2',
author='Alexander Schepanovski',
author_email='suor.web@gmail.com',
description='A slick ORM cache with automatic granular event-driven invalidation for Dja... |
334c16a70e7e60520f98c0fc989f03437a585a81 | krisk/connections.py | krisk/connections.py |
from collections import OrderedDict
from IPython.display import Javascript
import json
from krisk.util import join_current_dir
ECHARTS_URL = 'https://cdnjs.cloudflare.com/ajax/libs/echarts/3.2.0/'
ECHARTS_FILE = 'echarts.min'
d_paths = OrderedDict({})
THEMES = ['dark','vintage','roma','shine','infographic','macarons'... |
from collections import OrderedDict
from IPython.display import Javascript
import json
from krisk.util import join_current_dir
ECHARTS_URL = 'https://cdnjs.cloudflare.com/ajax/libs/echarts/3.2.0/'
ECHARTS_FILE = 'echarts.min'
d_paths = OrderedDict({})
THEMES = ['dark','vintage','roma','shine','infographic','macarons'... | Update connection to script to waitSeconds to load js | Update connection to script to waitSeconds to load js | Python | bsd-3-clause | napjon/krisk,napjon/krisk,napjon/krisk |
from collections import OrderedDict
from IPython.display import Javascript
import json
from krisk.util import join_current_dir
ECHARTS_URL = 'https://cdnjs.cloudflare.com/ajax/libs/echarts/3.2.0/'
ECHARTS_FILE = 'echarts.min'
d_paths = OrderedDict({})
THEMES = ['dark','vintage','roma','shine','infographic','macarons'... | Update connection to script to waitSeconds to load js
from collections import OrderedDict
from IPython.display import Javascript
import json
from krisk.util import join_current_dir
ECHARTS_URL = 'https://cdnjs.cloudflare.com/ajax/libs/echarts/3.2.0/'
ECHARTS_FILE = 'echarts.min'
d_paths = OrderedDict({})
THEMES = ['d... |
1c5af88a0689aadab4069f9f2ad16164791624b3 | Discord/utilities/errors.py | Discord/utilities/errors.py |
from discord.ext.commands.errors import CommandError
class NotServerOwner(CommandError):
'''Not Server Owner'''
pass
class VoiceNotConnected(CommandError):
'''Voice Not Connected'''
pass
class PermittedVoiceNotConnected(VoiceNotConnected):
'''Permitted, but Voice Not Connected'''
pass
class NotPermittedVoice... |
from discord.ext.commands.errors import CommandError
class NotServerOwner(CommandError):
'''Not Server Owner'''
pass
class VoiceNotConnected(CommandError):
'''Voice Not Connected'''
pass
class PermittedVoiceNotConnected(VoiceNotConnected):
'''Permitted, but Voice Not Connected'''
pass
class NotPermittedVoice... | Remove no longer used Missing Capability error | [Discord] Remove no longer used Missing Capability error
| Python | mit | Harmon758/Harmonbot,Harmon758/Harmonbot |
from discord.ext.commands.errors import CommandError
class NotServerOwner(CommandError):
'''Not Server Owner'''
pass
class VoiceNotConnected(CommandError):
'''Voice Not Connected'''
pass
class PermittedVoiceNotConnected(VoiceNotConnected):
'''Permitted, but Voice Not Connected'''
pass
class NotPermittedVoice... | [Discord] Remove no longer used Missing Capability error
from discord.ext.commands.errors import CommandError
class NotServerOwner(CommandError):
'''Not Server Owner'''
pass
class VoiceNotConnected(CommandError):
'''Voice Not Connected'''
pass
class PermittedVoiceNotConnected(VoiceNotConnected):
'''Permitted... |
348cff3fef4c1bcbbb091ddae9ac407179e08011 | build.py | build.py | #!/usr/bin/python
import sys
import os
from Scripts.common import get_ini_conf, write_ini_conf
if __name__ == "__main__":
# Python 2 compatibility
if sys.version_info.major > 2:
raw_input = input
config = get_ini_conf("config.ini")
# Find cached module name
if "module_name" not in conf... | #!/usr/bin/python
import sys
import os
from os.path import join, realpath, dirname
from Scripts.common import get_ini_conf, write_ini_conf
if __name__ == "__main__":
# Python 2 compatibility
if sys.version_info.major > 2:
raw_input = input
config_file = join(dirname(realpath(__file__)), "config... | Fix issue when the cwd is not in the config directory | Fix issue when the cwd is not in the config directory
| Python | mit | tobspr/P3DModuleBuilder,tobspr/P3DModuleBuilder,tobspr/P3DModuleBuilder | #!/usr/bin/python
import sys
import os
from os.path import join, realpath, dirname
from Scripts.common import get_ini_conf, write_ini_conf
if __name__ == "__main__":
# Python 2 compatibility
if sys.version_info.major > 2:
raw_input = input
config_file = join(dirname(realpath(__file__)), "config... | Fix issue when the cwd is not in the config directory
#!/usr/bin/python
import sys
import os
from Scripts.common import get_ini_conf, write_ini_conf
if __name__ == "__main__":
# Python 2 compatibility
if sys.version_info.major > 2:
raw_input = input
config = get_ini_conf("config.ini")
# F... |
566687fef24adaad5e86f1128d1e4e006d266553 | setup.py | setup.py | from setuptools import setup, find_packages
from suponoff import __version__ as version
if __name__ == '__main__':
with open("README.rst") as f:
long_description = f.read()
setup(
name="suponoff",
version=version,
author="Gambit Research",
author_email="info@gambitresea... | from setuptools import setup, find_packages
from suponoff import __version__ as version
if __name__ == '__main__':
with open("README.rst") as f:
long_description = f.read()
setup(
name="suponoff",
version=version,
author="Gambit Research",
author_email="opensource@gambi... | Correct the author email address | Correct the author email address
| Python | bsd-2-clause | GambitResearch/suponoff,lciti/suponoff,lciti/suponoff,GambitResearch/suponoff,GambitResearch/suponoff,lciti/suponoff | from setuptools import setup, find_packages
from suponoff import __version__ as version
if __name__ == '__main__':
with open("README.rst") as f:
long_description = f.read()
setup(
name="suponoff",
version=version,
author="Gambit Research",
author_email="opensource@gambi... | Correct the author email address
from setuptools import setup, find_packages
from suponoff import __version__ as version
if __name__ == '__main__':
with open("README.rst") as f:
long_description = f.read()
setup(
name="suponoff",
version=version,
author="Gambit Research",
... |
9c4aefb8ea88fd5505602c95f4762fdeb3aea183 | oslo_versionedobjects/_utils.py | oslo_versionedobjects/_utils.py | # Copyright 2010 United States Government as represented by the
# Administrator of the National Aeronautics and Space Administration.
# Copyright 2011 Justin Santa Barbara
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance wi... | # Copyright 2010 United States Government as represented by the
# Administrator of the National Aeronautics and Space Administration.
# Copyright 2011 Justin Santa Barbara
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance wi... | Handle TZ change in iso8601 >=0.1.12 | Handle TZ change in iso8601 >=0.1.12
The iso8601 lib introduced a change such that if running on python
3.2 or later it internally uses the python timezone information
instead of its own implementation. This does not change direct
date handling, but when converting this value there is a slight
difference where now pyt... | Python | apache-2.0 | openstack/oslo.versionedobjects | # Copyright 2010 United States Government as represented by the
# Administrator of the National Aeronautics and Space Administration.
# Copyright 2011 Justin Santa Barbara
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance wi... | Handle TZ change in iso8601 >=0.1.12
The iso8601 lib introduced a change such that if running on python
3.2 or later it internally uses the python timezone information
instead of its own implementation. This does not change direct
date handling, but when converting this value there is a slight
difference where now pyt... |
d13204abb2cf5d341eff78416dd442c303042697 | classes/room.py | classes/room.py | class Room(object):
def __init__(self, room_name, room_type, max_persons):
self.room_name = room_name
self.room_type = room_type
self.max_persons = max_persons
self.persons = []
def add_occupant(self, person):
if len(self.persons) < self.max_persons:
self.per... | class Room(object):
def __init__(self, room_name, room_type, max_persons):
self.room_name = room_name
self.room_type = room_type
self.max_persons = max_persons
self.persons = []
def add_occupant(self, person):
if person not in self.persons:
if len(self.person... | Modify add_occupant method to raise exception in case of a duplicate | Modify add_occupant method to raise exception in case of a duplicate
| Python | mit | peterpaints/room-allocator | class Room(object):
def __init__(self, room_name, room_type, max_persons):
self.room_name = room_name
self.room_type = room_type
self.max_persons = max_persons
self.persons = []
def add_occupant(self, person):
if person not in self.persons:
if len(self.person... | Modify add_occupant method to raise exception in case of a duplicate
class Room(object):
def __init__(self, room_name, room_type, max_persons):
self.room_name = room_name
self.room_type = room_type
self.max_persons = max_persons
self.persons = []
def add_occupant(self, person):... |
4fb253043d9b4841893bd8fd39bf27efee64c844 | src/ice/runners/command_line_runner.py | src/ice/runners/command_line_runner.py | """
command_line_runner.py
Created by Scott on 2014-08-14.
Copyright (c) 2014 Scott Rice. All rights reserved.
"""
from ice_engine import IceEngine
class CommandLineRunner(object):
def run(self, argv):
# TODO: Configure IceEngine based on the contents of argv
engine = IceEngine()
engine.run()
# K... | """
command_line_runner.py
Created by Scott on 2014-08-14.
Copyright (c) 2014 Scott Rice. All rights reserved.
"""
import argparse
from ice_engine import IceEngine
class CommandLineRunner(object):
def get_command_line_args(self, argv):
parser = argparse.ArgumentParser()
parser.add_argument('-c', '--conf... | Allow passing in config/consoles/emulators.txt locations from command line | Allow passing in config/consoles/emulators.txt locations from command line
Summary: This will be really useful for Integration tests, along with whenever we get the desktop app running (since it will communicate with Ice via the command line)
Test Plan: Run `src/ice.py --config=/Path/to/different/config`, where the d... | Python | mit | scottrice/Ice | """
command_line_runner.py
Created by Scott on 2014-08-14.
Copyright (c) 2014 Scott Rice. All rights reserved.
"""
import argparse
from ice_engine import IceEngine
class CommandLineRunner(object):
def get_command_line_args(self, argv):
parser = argparse.ArgumentParser()
parser.add_argument('-c', '--conf... | Allow passing in config/consoles/emulators.txt locations from command line
Summary: This will be really useful for Integration tests, along with whenever we get the desktop app running (since it will communicate with Ice via the command line)
Test Plan: Run `src/ice.py --config=/Path/to/different/config`, where the d... |
aefa8a3d6d4c809c7e470b22a0c9fb2c0875ba8b | project/project/urls.py | project/project/urls.py | from django.conf import settings
from django.conf.urls import include, url
from django.contrib import admin
from django.conf.urls.static import static
from django.contrib.auth import views
urlpatterns = [
url(
r'^silk/',
include('silk.urls', namespace='silk', app_name='silk')
),
url(
... | from django.conf import settings
from django.conf.urls import include, url
from django.contrib import admin
from django.conf.urls.static import static
from django.contrib.auth import views
urlpatterns = [
url(
r'^silk/',
include('silk.urls', namespace='silk')
),
url(
r'^exampl... | Remove unneeded app_name from test project to be django 2 compatible | Remove unneeded app_name from test project to be django 2 compatible
| Python | mit | crunchr/silk,mtford90/silk,jazzband/silk,crunchr/silk,mtford90/silk,jazzband/silk,crunchr/silk,django-silk/silk,django-silk/silk,jazzband/silk,django-silk/silk,crunchr/silk,mtford90/silk,jazzband/silk,mtford90/silk,django-silk/silk | from django.conf import settings
from django.conf.urls import include, url
from django.contrib import admin
from django.conf.urls.static import static
from django.contrib.auth import views
urlpatterns = [
url(
r'^silk/',
include('silk.urls', namespace='silk')
),
url(
r'^exampl... | Remove unneeded app_name from test project to be django 2 compatible
from django.conf import settings
from django.conf.urls import include, url
from django.contrib import admin
from django.conf.urls.static import static
from django.contrib.auth import views
urlpatterns = [
url(
r'^silk/',
includ... |
df1d517fbd3dbd921ff50b64d95869ad8605d43a | proselint/checks/garner/sexism.py | proselint/checks/garner/sexism.py | # -*- coding: utf-8 -*-
"""MAU103: Sexism.
---
layout: post
error_code: MAU103
source: Garner's Modern American Usage
source_url: http://amzn.to/15wF76r
title: sexism
date: 2014-06-10 12:31:19
categories: writing
---
Points out sexist language.
"""
from proselint.tools import memoize, preferred_fo... | Add rule on sexist language | Add rule on sexist language
#51
| Python | bsd-3-clause | amperser/proselint,jstewmon/proselint,amperser/proselint,jstewmon/proselint,amperser/proselint,jstewmon/proselint,amperser/proselint,amperser/proselint | # -*- coding: utf-8 -*-
"""MAU103: Sexism.
---
layout: post
error_code: MAU103
source: Garner's Modern American Usage
source_url: http://amzn.to/15wF76r
title: sexism
date: 2014-06-10 12:31:19
categories: writing
---
Points out sexist language.
"""
from proselint.tools import memoize, preferred_fo... | Add rule on sexist language
#51
| |
b47ecb3464585d762c17694190286388c25dbaf8 | examples/convert_units.py | examples/convert_units.py | # -*- coding: utf-8 -*-
from chatterbot import ChatBot
bot = ChatBot(
"Unit Converter",
logic_adapters=[
"chatterbot.logic.UnitConversion",
],
input_adapter="chatterbot.input.VariableInputTypeAdapter",
output_adapter="chatterbot.output.OutputAdapter"
)
questions = ['How many meters are in... | # -*- coding: utf-8 -*-
from chatterbot import ChatBot
bot = ChatBot(
"Unit Converter",
logic_adapters=[
"chatterbot.logic.UnitConversion",
],
input_adapter="chatterbot.input.VariableInputTypeAdapter",
output_adapter="chatterbot.output.OutputAdapter"
)
questions = ['How many meters are in... | Break list declaration in multiple lines | Break list declaration in multiple lines
| Python | bsd-3-clause | gunthercox/ChatterBot,vkosuri/ChatterBot | # -*- coding: utf-8 -*-
from chatterbot import ChatBot
bot = ChatBot(
"Unit Converter",
logic_adapters=[
"chatterbot.logic.UnitConversion",
],
input_adapter="chatterbot.input.VariableInputTypeAdapter",
output_adapter="chatterbot.output.OutputAdapter"
)
questions = ['How many meters are in... | Break list declaration in multiple lines
# -*- coding: utf-8 -*-
from chatterbot import ChatBot
bot = ChatBot(
"Unit Converter",
logic_adapters=[
"chatterbot.logic.UnitConversion",
],
input_adapter="chatterbot.input.VariableInputTypeAdapter",
output_adapter="chatterbot.output.OutputAdapte... |
ff75a1ad744d93052bd9b496ff0896fcbd76c75e | Doc/lib/email-mime.py | Doc/lib/email-mime.py | # Import smtplib for the actual sending function
import smtplib
# Here are the email pacakge modules we'll need
from email.MIMEImage import MIMEImage
from email.MIMEMultipart import MIMEMultipart
COMMASPACE = ', '
# Create the container (outer) email message.
msg = MIMEMultipart()
msg['Subject'] = 'Our family reunio... | # Import smtplib for the actual sending function
import smtplib
# Here are the email package modules we'll need
from email.MIMEImage import MIMEImage
from email.MIMEMultipart import MIMEMultipart
COMMASPACE = ', '
# Create the container (outer) email message.
msg = MIMEMultipart()
msg['Subject'] = 'Our family reunio... | Fix typo in comment (reported on the pydotorg mailing list). | Fix typo in comment
(reported on the pydotorg mailing list).
| Python | mit | sk-/python2.7-type-annotator,sk-/python2.7-type-annotator,sk-/python2.7-type-annotator | # Import smtplib for the actual sending function
import smtplib
# Here are the email package modules we'll need
from email.MIMEImage import MIMEImage
from email.MIMEMultipart import MIMEMultipart
COMMASPACE = ', '
# Create the container (outer) email message.
msg = MIMEMultipart()
msg['Subject'] = 'Our family reunio... | Fix typo in comment
(reported on the pydotorg mailing list).
# Import smtplib for the actual sending function
import smtplib
# Here are the email pacakge modules we'll need
from email.MIMEImage import MIMEImage
from email.MIMEMultipart import MIMEMultipart
COMMASPACE = ', '
# Create the container (outer) email mess... |
bfd0058efdf362567cd4638244ab3ff47e078398 | opencog/python/examples/blending_agent_demo.py | opencog/python/examples/blending_agent_demo.py | __author__ = 'Keyvan'
from blending.agents import DummyBlendingAgent
from opencog.atomspace import AtomSpace
from opencog.cogserver import Server
if __name__ == '__main__':
server = Server()
server.add_mind_agent(DummyBlendingAgent())
server.run(AtomSpace()) | __author__ = 'Keyvan'
from blending.agents import DummyBlendingAgent
from opencog.atomspace import AtomSpace
from opencog.cogserver import Server
# Check if git shows the branch
if __name__ == '__main__':
server = Server()
server.add_mind_agent(DummyBlendingAgent())
server.run(AtomSpace()) | Check if git shows graph nicely | Check if git shows graph nicely
| Python | agpl-3.0 | shujingke/opencog,ArvinPan/atomspace,roselleebarle04/opencog,yantrabuddhi/atomspace,kim135797531/opencog,sanuj/opencog,printedheart/atomspace,ceefour/atomspace,cosmoharrigan/opencog,TheNameIsNigel/opencog,andre-senna/opencog,jlegendary/opencog,cosmoharrigan/atomspace,shujingke/opencog,ruiting/opencog,anitzkin/opencog,M... | __author__ = 'Keyvan'
from blending.agents import DummyBlendingAgent
from opencog.atomspace import AtomSpace
from opencog.cogserver import Server
# Check if git shows the branch
if __name__ == '__main__':
server = Server()
server.add_mind_agent(DummyBlendingAgent())
server.run(AtomSpace()) | Check if git shows graph nicely
__author__ = 'Keyvan'
from blending.agents import DummyBlendingAgent
from opencog.atomspace import AtomSpace
from opencog.cogserver import Server
if __name__ == '__main__':
server = Server()
server.add_mind_agent(DummyBlendingAgent())
server.run(AtomSpace()) |
2a0ed84f9ce2077d352c0827c2dd5fac514cb91d | setup.py | setup.py | import multiprocessing # stop tests breaking tox
from setuptools import setup
import tvrenamr
requires = ('pyyaml', 'requests')
packages = ('tvrenamr',)
setup_requires = ('minimock', 'mock', 'nose', 'pyyaml')
setup(
name = tvrenamr.__title__,
version = tvrenamr.__version__,
description = 'Rename tv sh... | import multiprocessing # stop tests breaking tox
from setuptools import setup
import tvrenamr
requires = ('pyyaml', 'requests')
packages = ('tvrenamr',)
setup_requires = ('minimock', 'mock', 'nose', 'pyyaml')
setup(
name = tvrenamr.__title__,
version = tvrenamr.__version__,
description = 'Rename tv sh... | Add py3.3 to trove classifiers | Add py3.3 to trove classifiers | Python | mit | wintersandroid/tvrenamr,ghickman/tvrenamr | import multiprocessing # stop tests breaking tox
from setuptools import setup
import tvrenamr
requires = ('pyyaml', 'requests')
packages = ('tvrenamr',)
setup_requires = ('minimock', 'mock', 'nose', 'pyyaml')
setup(
name = tvrenamr.__title__,
version = tvrenamr.__version__,
description = 'Rename tv sh... | Add py3.3 to trove classifiers
import multiprocessing # stop tests breaking tox
from setuptools import setup
import tvrenamr
requires = ('pyyaml', 'requests')
packages = ('tvrenamr',)
setup_requires = ('minimock', 'mock', 'nose', 'pyyaml')
setup(
name = tvrenamr.__title__,
version = tvrenamr.__version__,
... |
b04f3bd19b508140b0b4feee46d590b61da46bed | swift/__init__.py | swift/__init__.py | import gettext
class Version(object):
def __init__(self, canonical_version, final):
self.canonical_version = canonical_version
self.final = final
@property
def pretty_version(self):
if self.final:
return self.canonical_version
else:
return '%s-dev' ... | import gettext
class Version(object):
def __init__(self, canonical_version, final):
self.canonical_version = canonical_version
self.final = final
@property
def pretty_version(self):
if self.final:
return self.canonical_version
else:
return '%s-dev' ... | Switch Swift trunk to 1.4.1, now that the 1.4.0 release branch is branched out. | Switch Swift trunk to 1.4.1, now that the 1.4.0 release branch is branched out.
| Python | apache-2.0 | mja054/swift_plugin,iostackproject/IO-Bandwidth-Differentiation,williamthegrey/swift,openstack/swift,notmyname/swift,matthewoliver/swift,orion/swift-config,thiagodasilva/swift,zackmdavis/swift,smerritt/swift,bkolli/swift,Em-Pan/swift,Khushbu27/Tutorial,openstack/swift,larsbutler/swift,aerwin3/swift,redhat-openstack/swi... | import gettext
class Version(object):
def __init__(self, canonical_version, final):
self.canonical_version = canonical_version
self.final = final
@property
def pretty_version(self):
if self.final:
return self.canonical_version
else:
return '%s-dev' ... | Switch Swift trunk to 1.4.1, now that the 1.4.0 release branch is branched out.
import gettext
class Version(object):
def __init__(self, canonical_version, final):
self.canonical_version = canonical_version
self.final = final
@property
def pretty_version(self):
if self.final:
... |
879b093f29135750906f5287e132991de42ea1fe | mqtt/tests/test_client.py | mqtt/tests/test_client.py | import time
from django.test import TestCase
from django.contrib.auth.models import User
from django.conf import settings
from rest_framework.renderers import JSONRenderer
from rest_framework.parsers import JSONParser
from io import BytesIO
import json
from login.models import Profile, AmbulancePermission, HospitalP... | import time
from django.test import TestCase
from django.contrib.auth.models import User
from django.conf import settings
from rest_framework.renderers import JSONRenderer
from rest_framework.parsers import JSONParser
from io import BytesIO
import json
from login.models import Profile, AmbulancePermission, HospitalP... | Add more time to mqtt.test.client | Add more time to mqtt.test.client
| Python | bsd-3-clause | EMSTrack/WebServerAndClient,EMSTrack/WebServerAndClient,EMSTrack/WebServerAndClient | import time
from django.test import TestCase
from django.contrib.auth.models import User
from django.conf import settings
from rest_framework.renderers import JSONRenderer
from rest_framework.parsers import JSONParser
from io import BytesIO
import json
from login.models import Profile, AmbulancePermission, HospitalP... | Add more time to mqtt.test.client
import time
from django.test import TestCase
from django.contrib.auth.models import User
from django.conf import settings
from rest_framework.renderers import JSONRenderer
from rest_framework.parsers import JSONParser
from io import BytesIO
import json
from login.models import Prof... |
bdcfb1ff4c076485a5fc3b00beaf81becec0717b | tests/utils/DependencyChecker.py | tests/utils/DependencyChecker.py | # -*- coding: utf-8 -*-
import subprocess as subp
class DependencyChecker(object):
def _check_test_dependencies(self):
for dep in self.DEPENDENCIES:
cmd = 'if hash {} 2/dev/null; then ' \
'echo 1; else echo 0; fi'.format(dep)
available = subp.check_output(cmd, s... | # -*- coding: utf-8 -*-
import sys
import subprocess as subp
class DependencyChecker(object):
def _check_test_dependencies(self):
for dep in self.DEPENDENCIES:
cmd = 'if hash {} 2/dev/null; then ' \
'echo 1; else echo 0; fi'.format(dep)
available = subp.check_ou... | Fix binary to str conversion | release/0.6.2: Fix binary to str conversion
| Python | bsd-3-clause | nok/sklearn-porter | # -*- coding: utf-8 -*-
import sys
import subprocess as subp
class DependencyChecker(object):
def _check_test_dependencies(self):
for dep in self.DEPENDENCIES:
cmd = 'if hash {} 2/dev/null; then ' \
'echo 1; else echo 0; fi'.format(dep)
available = subp.check_ou... | release/0.6.2: Fix binary to str conversion
# -*- coding: utf-8 -*-
import subprocess as subp
class DependencyChecker(object):
def _check_test_dependencies(self):
for dep in self.DEPENDENCIES:
cmd = 'if hash {} 2/dev/null; then ' \
'echo 1; else echo 0; fi'.format(dep)
... |
9616ba8659aab6b60d95ea7e07699e258fb436e6 | openprovider/modules/__init__.py | openprovider/modules/__init__.py | # coding=utf-8
import lxml
E = lxml.objectify.ElementMaker(annotate=False)
from openprovider.modules import customer
from openprovider.modules import domain
from openprovider.modules import extension
from openprovider.modules import financial
from openprovider.modules import nameserver
from openprovider.modules impo... | # coding=utf-8
import lxml
E = lxml.objectify.ElementMaker(annotate=False)
def OE(element, value, transform=lambda x: x):
"""
Create an Optional Element.
Returns an Element as ElementMaker would, unless value is None. Optionally the value can be
transformed through a function.
>>> OE('elem', N... | Implement an Optional Element function | Implement an Optional Element function
| Python | mit | AntagonistHQ/openprovider.py | # coding=utf-8
import lxml
E = lxml.objectify.ElementMaker(annotate=False)
def OE(element, value, transform=lambda x: x):
"""
Create an Optional Element.
Returns an Element as ElementMaker would, unless value is None. Optionally the value can be
transformed through a function.
>>> OE('elem', N... | Implement an Optional Element function
# coding=utf-8
import lxml
E = lxml.objectify.ElementMaker(annotate=False)
from openprovider.modules import customer
from openprovider.modules import domain
from openprovider.modules import extension
from openprovider.modules import financial
from openprovider.modules import n... |
f52ada02a4f0b6e1ca36d56bd3ad16a8c151ae10 | MachineLearning/TensorFlow/LinearRegression.py | MachineLearning/TensorFlow/LinearRegression.py | '''
'''
# Import libraries
import numpy as np
import matplotlib.pyplot as plt
import tensorflow as tf
def generate_points():
# Define number of points to draw
points = 500
# Initalize lists
x_points = []
y_points = []
# Define constanst
a = 0.22
b = 0.78
for i in range(points)... | Add script to build a model by which to predict the values of a dependent variable from the values of one or more independent variables using machine learning techniques with the linear regression algorithm. | feat: Add script to build a model by which to predict the values of a dependent variable from the values of one or more independent variables using machine learning techniques with the linear regression algorithm.
| Python | mit | aguijarro/DataSciencePython | '''
'''
# Import libraries
import numpy as np
import matplotlib.pyplot as plt
import tensorflow as tf
def generate_points():
# Define number of points to draw
points = 500
# Initalize lists
x_points = []
y_points = []
# Define constanst
a = 0.22
b = 0.78
for i in range(points)... | feat: Add script to build a model by which to predict the values of a dependent variable from the values of one or more independent variables using machine learning techniques with the linear regression algorithm.
| |
0cc12b24ec4aac88380a36bb519bfc78ad81b277 | run_job.py | run_job.py | #!/usr/bin/env python
#
# Syntax: ./run_job <session-id>
#
# It should be run with the current working directory set properly
#
import sys, json
from sci.session import Session
from sci.bootstrap import Bootstrap
data = json.loads(sys.stdin.read())
session_id = sys.argv[1]
session = Session.load(session_id)
run_info... | #!/usr/bin/env python
#
# Syntax: ./run_job <session-id>
#
# It should be run with the current working directory set properly
#
import sys, json
from sci.session import Session
from sci.bootstrap import Bootstrap
data = json.loads(sys.stdin.read())
session_id = sys.argv[1]
session = Session.load(session_id)
run_info... | Support when run_info is not specified | Support when run_info is not specified
That is the case when starting a build (not running a step)
| Python | apache-2.0 | boivie/sci,boivie/sci | #!/usr/bin/env python
#
# Syntax: ./run_job <session-id>
#
# It should be run with the current working directory set properly
#
import sys, json
from sci.session import Session
from sci.bootstrap import Bootstrap
data = json.loads(sys.stdin.read())
session_id = sys.argv[1]
session = Session.load(session_id)
run_info... | Support when run_info is not specified
That is the case when starting a build (not running a step)
#!/usr/bin/env python
#
# Syntax: ./run_job <session-id>
#
# It should be run with the current working directory set properly
#
import sys, json
from sci.session import Session
from sci.bootstrap import Bootstrap
data ... |
ae11251f7669e4ddde6f0491ff1fe0afdfd54a7a | linter.py | linter.py | #
# linter.py
# Linter for SublimeLinter3, a code checking framework for Sublime Text 3
#
# Written by Aparajita Fishman
# Copyright (c) 2013 Aparajita Fishman
#
# Project: https://github.com/SublimeLinter/SublimeLinter-contrib-jsl
# License: MIT
#
"""This module exports the JSL plugin linter class."""
from SublimeLi... | #
# linter.py
# Linter for SublimeLinter3, a code checking framework for Sublime Text 3
#
# Written by Aparajita Fishman
# Copyright (c) 2013 Aparajita Fishman
#
# Project: https://github.com/SublimeLinter/SublimeLinter-contrib-jsl
# License: MIT
#
"""This module exports the JSL plugin linter class."""
from SublimeLi... | Change 'language' to 'syntax', that is more precise terminology. | Change 'language' to 'syntax', that is more precise terminology.
| Python | mit | SublimeLinter/SublimeLinter-jsl | #
# linter.py
# Linter for SublimeLinter3, a code checking framework for Sublime Text 3
#
# Written by Aparajita Fishman
# Copyright (c) 2013 Aparajita Fishman
#
# Project: https://github.com/SublimeLinter/SublimeLinter-contrib-jsl
# License: MIT
#
"""This module exports the JSL plugin linter class."""
from SublimeLi... | Change 'language' to 'syntax', that is more precise terminology.
#
# linter.py
# Linter for SublimeLinter3, a code checking framework for Sublime Text 3
#
# Written by Aparajita Fishman
# Copyright (c) 2013 Aparajita Fishman
#
# Project: https://github.com/SublimeLinter/SublimeLinter-contrib-jsl
# License: MIT
#
"""T... |
045192dd0a69dfe581075e76bbb7ca4676d321b8 | test_project/urls.py | test_project/urls.py | from django.conf.urls import url
from django.contrib import admin
from django.http import HttpResponse
urlpatterns = [
url(r'^$', lambda request, *args, **kwargs: HttpResponse()),
url(r'^admin/', admin.site.urls),
]
| from django.urls import re_path
from django.contrib import admin
from django.http import HttpResponse
urlpatterns = [
re_path(r'^$', lambda request, *args, **kwargs: HttpResponse()),
re_path(r'^admin/', admin.site.urls),
]
| Replace url() with re_path() available in newer Django | Replace url() with re_path() available in newer Django
| Python | bsd-3-clause | ecometrica/django-vinaigrette | from django.urls import re_path
from django.contrib import admin
from django.http import HttpResponse
urlpatterns = [
re_path(r'^$', lambda request, *args, **kwargs: HttpResponse()),
re_path(r'^admin/', admin.site.urls),
]
| Replace url() with re_path() available in newer Django
from django.conf.urls import url
from django.contrib import admin
from django.http import HttpResponse
urlpatterns = [
url(r'^$', lambda request, *args, **kwargs: HttpResponse()),
url(r'^admin/', admin.site.urls),
]
|
06b99c4415a6605cbd6123271d44af96585fbb9d | conda_env/exceptions.py | conda_env/exceptions.py | class CondaEnvException(Exception):
pass
class EnvironmentFileNotFound(CondaEnvException):
def __init__(self, filename, *args, **kwargs):
msg = '{} file not found'.format(filename)
self.filename = filename
super(EnvironmentFileNotFound, self).__init__(msg, *args, **kwargs)
| class CondaEnvException(Exception):
pass
class EnvironmentFileNotFound(CondaEnvException):
def __init__(self, filename, *args, **kwargs):
msg = '{} file not found'.format(filename)
self.filename = filename
super(EnvironmentFileNotFound, self).__init__(msg, *args, **kwargs)
class Envi... | Add environment not found exception | Add environment not found exception
| Python | bsd-3-clause | nicoddemus/conda-env,mikecroucher/conda-env,dan-blanchard/conda-env,conda/conda-env,dan-blanchard/conda-env,phobson/conda-env,conda/conda-env,ESSS/conda-env,mikecroucher/conda-env,asmeurer/conda-env,nicoddemus/conda-env,ESSS/conda-env,phobson/conda-env,isaac-kit/conda-env,asmeurer/conda-env,isaac-kit/conda-env | class CondaEnvException(Exception):
pass
class EnvironmentFileNotFound(CondaEnvException):
def __init__(self, filename, *args, **kwargs):
msg = '{} file not found'.format(filename)
self.filename = filename
super(EnvironmentFileNotFound, self).__init__(msg, *args, **kwargs)
class Envi... | Add environment not found exception
class CondaEnvException(Exception):
pass
class EnvironmentFileNotFound(CondaEnvException):
def __init__(self, filename, *args, **kwargs):
msg = '{} file not found'.format(filename)
self.filename = filename
super(EnvironmentFileNotFound, self).__init... |
eabe9c25d73a2644b8697f0e9304e61dee5be198 | src/smdba/roller.py | src/smdba/roller.py | # coding: utf-8
"""
Visual console "toys".
"""
import time
import sys
import threading
class Roller(threading.Thread):
"""
Roller of some fun sequences while waiting.
"""
def __init__(self):
threading.Thread.__init__(self)
self.__sequence = ['-', '\\', '|', '/',]
self.__freq ... | # coding: utf-8
"""
Visual console "toys".
"""
import time
import sys
import threading
import typing
class Roller(threading.Thread):
"""
Roller of some fun sequences while waiting.
"""
def __init__(self) -> None:
threading.Thread.__init__(self)
self.__sequence = ['-', '\\', '|', '/',... | Add annotations to the methods | Add annotations to the methods
| Python | mit | SUSE/smdba,SUSE/smdba | # coding: utf-8
"""
Visual console "toys".
"""
import time
import sys
import threading
import typing
class Roller(threading.Thread):
"""
Roller of some fun sequences while waiting.
"""
def __init__(self) -> None:
threading.Thread.__init__(self)
self.__sequence = ['-', '\\', '|', '/',... | Add annotations to the methods
# coding: utf-8
"""
Visual console "toys".
"""
import time
import sys
import threading
class Roller(threading.Thread):
"""
Roller of some fun sequences while waiting.
"""
def __init__(self):
threading.Thread.__init__(self)
self.__sequence = ['-', '\\',... |
97a1e627b682f9aec80134334277b63e81265ddd | tests/test_ircv3.py | tests/test_ircv3.py | import pytest
from pydle.features import ircv3
pytestmark = [pytest.mark.unit, pytest.mark.ircv3]
@pytest.mark.parametrize(
"payload, expected",
[
(
rb"@+example=raw+:=,escaped\:\s\\ :irc.example.com NOTICE #channel :Message",
{"+example": """raw+:=,escaped; \\"""}
... | import pytest
from pydle.features import ircv3
pytestmark = [pytest.mark.unit, pytest.mark.ircv3]
@pytest.mark.parametrize(
"payload, expected",
[
(
rb'@empty=;missing :irc.example.com NOTICE #channel :Message',
{'empty': True, 'missing': True}
),
(
... | Add test case for empty and missing IRCv3 tags | Add test case for empty and missing IRCv3 tags
| Python | bsd-3-clause | Shizmob/pydle | import pytest
from pydle.features import ircv3
pytestmark = [pytest.mark.unit, pytest.mark.ircv3]
@pytest.mark.parametrize(
"payload, expected",
[
(
rb'@empty=;missing :irc.example.com NOTICE #channel :Message',
{'empty': True, 'missing': True}
),
(
... | Add test case for empty and missing IRCv3 tags
import pytest
from pydle.features import ircv3
pytestmark = [pytest.mark.unit, pytest.mark.ircv3]
@pytest.mark.parametrize(
"payload, expected",
[
(
rb"@+example=raw+:=,escaped\:\s\\ :irc.example.com NOTICE #channel :Message",
... |
3ebb14dfe971c135153a58edea76901a18ff6ca0 | captura/test_views.py | captura/test_views.py | from django.core.urlresolvers import reverse
from django.contrib.staticfiles.testing import StaticLiveServerTestCase
from splinter import Browser
from django.contrib.auth.models import User
from perfiles_usuario.utils import CAPTURISTA_GROUP
from django.contrib.auth.models import Group
from estudios_socioeconomicos.mod... | Create test to dashboard capturista | Create test to dashboard capturista
| Python | mit | erikiado/jp2_online,erikiado/jp2_online,erikiado/jp2_online | from django.core.urlresolvers import reverse
from django.contrib.staticfiles.testing import StaticLiveServerTestCase
from splinter import Browser
from django.contrib.auth.models import User
from perfiles_usuario.utils import CAPTURISTA_GROUP
from django.contrib.auth.models import Group
from estudios_socioeconomicos.mod... | Create test to dashboard capturista
| |
34de8fbae91b367ed1ada417c5d3cea669ccc1f3 | setup.py | setup.py | import os, sys
from setuptools import setup, find_packages
pkgname = "SHARPpy"
### GET VERSION INFORMATION ###
setup_path = os.path.split(os.path.abspath(__file__))[0]
sys.path.append(os.path.join(setup_path, pkgname.lower()))
import version
version.write_git_version()
ver = version.get_version().split("+")[0]
sys.... | import os, sys
from setuptools import setup, find_packages
pkgname = "SHARPpy"
### GET VERSION INFORMATION ###
setup_path = os.path.split(os.path.abspath(__file__))[0]
sys.path.append(os.path.join(setup_path, pkgname.lower()))
import version
version.write_git_version()
ver = version.get_version().split("+")[0]
sys.... | Move classifier from Pre-Alpha to Beta | Move classifier from Pre-Alpha to Beta
| Python | bsd-3-clause | blizzardwarriorwx/SHARPpy,blizzardwarriorwx/SHARPpy,scollis/SHARPpy,scollis/SHARPpy,djgagne/SHARPpy,djgagne/SHARPpy,djgagne/SHARPpy,scollis/SHARPpy,djgagne/SHARPpy,blizzardwarriorwx/SHARPpy,blizzardwarriorwx/SHARPpy,scollis/SHARPpy | import os, sys
from setuptools import setup, find_packages
pkgname = "SHARPpy"
### GET VERSION INFORMATION ###
setup_path = os.path.split(os.path.abspath(__file__))[0]
sys.path.append(os.path.join(setup_path, pkgname.lower()))
import version
version.write_git_version()
ver = version.get_version().split("+")[0]
sys.... | Move classifier from Pre-Alpha to Beta
import os, sys
from setuptools import setup, find_packages
pkgname = "SHARPpy"
### GET VERSION INFORMATION ###
setup_path = os.path.split(os.path.abspath(__file__))[0]
sys.path.append(os.path.join(setup_path, pkgname.lower()))
import version
version.write_git_version()
ver = ... |
995d0067dd1bd1823e3a7cb4fbc8e4ad1bf8208c | registration/__init__.py | registration/__init__.py | from django.conf import settings
from django.core.exceptions import ImproperlyConfigured
from django.utils.importlib import import_module
def get_backend():
"""
Return an instance of the registration backend for use on this
site, as determined by the ``REGISTRATION_BACKEND`` setting. Raise
``django.cor... | from django.conf import settings
from django.core.exceptions import ImproperlyConfigured
# TODO: When Python 2.7 is released this becomes a try/except falling
# back to Django's implementation.
from django.utils.importlib import import_module
def get_backend():
"""
Return an instance of the registration backe... | Add reminder to myself to to importlib fallback. | Add reminder to myself to to importlib fallback.
| Python | bsd-3-clause | bruth/django-registration2,ogirardot/django-registration,wuyuntao/django-registration,danielsokolowski/django-registration,andresdouglas/django-registration,stefankoegl/django-registration-couchdb,stefankoegl/django-couchdb-utils,schmidsi/django-registration,wuyuntao/django-registration,stefankoegl/django-registration-... | from django.conf import settings
from django.core.exceptions import ImproperlyConfigured
# TODO: When Python 2.7 is released this becomes a try/except falling
# back to Django's implementation.
from django.utils.importlib import import_module
def get_backend():
"""
Return an instance of the registration backe... | Add reminder to myself to to importlib fallback.
from django.conf import settings
from django.core.exceptions import ImproperlyConfigured
from django.utils.importlib import import_module
def get_backend():
"""
Return an instance of the registration backend for use on this
site, as determined by the ``REGI... |
50e50b3d3b98b9a3222194a8d3797ec9a9c91551 | python-omega-client/sample_usage.py | python-omega-client/sample_usage.py | # coding: utf-8
from omega_client import OmegaClient
clt = OmegaClient('http://offlineforward.dataman-inc.net', 'admin@shurenyun.com', 'Dataman1234')
print clt.get_clusters()
print clt.get_cluster(630)
print clt.get_node_identifier(630)
print clt.post_nodes(630, id='83ec44c13e2a482aa4645713d3857ff6', name='test_node'... | Add one sample usage file. | Add one sample usage file.
| Python | apache-2.0 | Dataman-Cloud/omega-client | # coding: utf-8
from omega_client import OmegaClient
clt = OmegaClient('http://offlineforward.dataman-inc.net', 'admin@shurenyun.com', 'Dataman1234')
print clt.get_clusters()
print clt.get_cluster(630)
print clt.get_node_identifier(630)
print clt.post_nodes(630, id='83ec44c13e2a482aa4645713d3857ff6', name='test_node'... | Add one sample usage file.
| |
adb6ce275e1cbc2d000286e169a4a96b25b32dbb | test_doc.py | test_doc.py | #!/usr/bin/env python
import doctest
import sys
if hasattr(doctest, "testfile"):
print("=== Test file: README ===")
failure, tests = doctest.testfile('README', optionflags=doctest.ELLIPSIS)
if failure:
sys.exit(1)
print("=== Test file: test.rst ===")
failure, tests = doctest.testfile('test/... | #!/usr/bin/env python
import doctest
import sys
if hasattr(doctest, "testfile"):
total_failures, total_tests = (0, 0)
print("=== Test file: README ===")
failure, tests = doctest.testfile('README', optionflags=doctest.ELLIPSIS)
total_failures += failure
total_tests += tests
print("=== Test file... | Allow doctest runner to keep going after failures | Allow doctest runner to keep going after failures
It will still return an error code, but there is little need to halt the
running of the three different doctest modules if an early one fails,
which may in fact mask the real reason for failure in an IPy internal
method.
Signed-off-by: Dan McGee <a6e5737275ff1276377ee... | Python | bsd-3-clause | dstam/python-ipy,sigma-random/python-ipy | #!/usr/bin/env python
import doctest
import sys
if hasattr(doctest, "testfile"):
total_failures, total_tests = (0, 0)
print("=== Test file: README ===")
failure, tests = doctest.testfile('README', optionflags=doctest.ELLIPSIS)
total_failures += failure
total_tests += tests
print("=== Test file... | Allow doctest runner to keep going after failures
It will still return an error code, but there is little need to halt the
running of the three different doctest modules if an early one fails,
which may in fact mask the real reason for failure in an IPy internal
method.
Signed-off-by: Dan McGee <a6e5737275ff1276377ee... |
5b92fdc1af9043649dd9efa1f4f5337809d5af27 | setup.py | setup.py | from setuptools import setup
setup(
name='hypothesis-pb',
packages=['hypothesis_protobuf'],
platforms='any',
version='1.2.0',
description='Hypothesis extension to allow generating protobuf messages matching a schema.',
author='H. Chase Stevens',
author_email='chase@chasestevens.com',
ur... | from setuptools import setup
setup(
name='hypothesis-pb',
packages=['hypothesis_protobuf'],
platforms='any',
version='1.2.0',
description='Hypothesis extension to allow generating protobuf messages matching a schema.',
author='H. Chase Stevens',
author_email='chase@chasestevens.com',
ur... | Add hypothesis as framework for discoverability | Add hypothesis as framework for discoverability | Python | mit | hchasestevens/hypothesis-protobuf | from setuptools import setup
setup(
name='hypothesis-pb',
packages=['hypothesis_protobuf'],
platforms='any',
version='1.2.0',
description='Hypothesis extension to allow generating protobuf messages matching a schema.',
author='H. Chase Stevens',
author_email='chase@chasestevens.com',
ur... | Add hypothesis as framework for discoverability
from setuptools import setup
setup(
name='hypothesis-pb',
packages=['hypothesis_protobuf'],
platforms='any',
version='1.2.0',
description='Hypothesis extension to allow generating protobuf messages matching a schema.',
author='H. Chase Stevens',
... |
d45e40e9093b88d204335e6e0bae5dac30595d66 | pyface/qt/__init__.py | pyface/qt/__init__.py | #------------------------------------------------------------------------------
# Copyright (c) 2010, Enthought Inc
# All rights reserved.
#
# This software is provided without warranty under the terms of the BSD license.
#
# Author: Enthought Inc
# Description: Qt API selector. Can be used to switch between pyQt and ... | #------------------------------------------------------------------------------
# Copyright (c) 2010, Enthought Inc
# All rights reserved.
#
# This software is provided without warranty under the terms of the BSD license.
#
# Author: Enthought Inc
# Description: Qt API selector. Can be used to switch between pyQt and ... | Set the sip QDate API for enaml interop. | Set the sip QDate API for enaml interop.
| Python | bsd-3-clause | geggo/pyface,geggo/pyface | #------------------------------------------------------------------------------
# Copyright (c) 2010, Enthought Inc
# All rights reserved.
#
# This software is provided without warranty under the terms of the BSD license.
#
# Author: Enthought Inc
# Description: Qt API selector. Can be used to switch between pyQt and ... | Set the sip QDate API for enaml interop.
#------------------------------------------------------------------------------
# Copyright (c) 2010, Enthought Inc
# All rights reserved.
#
# This software is provided without warranty under the terms of the BSD license.
#
# Author: Enthought Inc
# Description: Qt API selecto... |
e70f30758a501db12af4fbbfc4204e2858967c8b | conllu/compat.py | conllu/compat.py | try:
from io import StringIO
except ImportError:
from StringIO import StringIO
try:
from contextlib import redirect_stdout
except ImportError:
import sys
import contextlib
@contextlib.contextmanager
def redirect_stdout(target):
original = sys.stdout
sys.stdout = target
... | try:
from io import StringIO
except ImportError:
from StringIO import StringIO
try:
from contextlib import redirect_stdout
except ImportError:
import sys
import contextlib
@contextlib.contextmanager
def redirect_stdout(target):
original = sys.stdout
sys.stdout = target
... | Make fullmatch work on python 2.7. | Bug: Make fullmatch work on python 2.7.
| Python | mit | EmilStenstrom/conllu | try:
from io import StringIO
except ImportError:
from StringIO import StringIO
try:
from contextlib import redirect_stdout
except ImportError:
import sys
import contextlib
@contextlib.contextmanager
def redirect_stdout(target):
original = sys.stdout
sys.stdout = target
... | Bug: Make fullmatch work on python 2.7.
try:
from io import StringIO
except ImportError:
from StringIO import StringIO
try:
from contextlib import redirect_stdout
except ImportError:
import sys
import contextlib
@contextlib.contextmanager
def redirect_stdout(target):
original = sy... |
d0ca3952a34a74f0167b76bbedfa3cf8875a399c | var/spack/repos/builtin/packages/py-scikit-learn/package.py | var/spack/repos/builtin/packages/py-scikit-learn/package.py | from spack import *
class PyScikitLearn(Package):
""""""
homepage = "https://pypi.python.org/pypi/scikit-learn"
url = "https://pypi.python.org/packages/source/s/scikit-learn/scikit-learn-0.15.2.tar.gz"
version('0.15.2', 'd9822ad0238e17b382a3c756ea94fe0d')
version('0.16.1', '363ddda501e3b6b617... | from spack import *
class PyScikitLearn(Package):
""""""
homepage = "https://pypi.python.org/pypi/scikit-learn"
url = "https://pypi.python.org/packages/source/s/scikit-learn/scikit-learn-0.15.2.tar.gz"
version('0.15.2', 'd9822ad0238e17b382a3c756ea94fe0d')
version('0.16.1', '363ddda501e3b6b617... | Add version 0.17.1 of scikit-learn. | Add version 0.17.1 of scikit-learn.
| Python | lgpl-2.1 | matthiasdiener/spack,mfherbst/spack,EmreAtes/spack,TheTimmy/spack,iulian787/spack,iulian787/spack,iulian787/spack,mfherbst/spack,tmerrick1/spack,mfherbst/spack,LLNL/spack,LLNL/spack,tmerrick1/spack,skosukhin/spack,TheTimmy/spack,skosukhin/spack,TheTimmy/spack,skosukhin/spack,matthiasdiener/spack,mfherbst/spack,mfherbst... | from spack import *
class PyScikitLearn(Package):
""""""
homepage = "https://pypi.python.org/pypi/scikit-learn"
url = "https://pypi.python.org/packages/source/s/scikit-learn/scikit-learn-0.15.2.tar.gz"
version('0.15.2', 'd9822ad0238e17b382a3c756ea94fe0d')
version('0.16.1', '363ddda501e3b6b617... | Add version 0.17.1 of scikit-learn.
from spack import *
class PyScikitLearn(Package):
""""""
homepage = "https://pypi.python.org/pypi/scikit-learn"
url = "https://pypi.python.org/packages/source/s/scikit-learn/scikit-learn-0.15.2.tar.gz"
version('0.15.2', 'd9822ad0238e17b382a3c756ea94fe0d')
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.