commit stringlengths 40 40 | old_file stringlengths 4 118 | new_file stringlengths 4 118 | old_contents stringlengths 0 2.94k | new_contents stringlengths 1 4.43k | subject stringlengths 15 444 | message stringlengths 16 3.45k | lang stringclasses 1
value | license stringclasses 13
values | repos stringlengths 5 43.2k | prompt stringlengths 17 4.58k | response stringlengths 1 4.43k | prompt_tagged stringlengths 58 4.62k | response_tagged stringlengths 1 4.43k | text stringlengths 132 7.29k | text_tagged stringlengths 173 7.33k |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
760bafe686a6937c60cf9ee162c7e59ba673a5c3 | wagtail/embeds/migrations/0008_allow_long_urls.py | wagtail/embeds/migrations/0008_allow_long_urls.py | from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("wagtailembeds", "0007_populate_hash"),
]
operations = [
migrations.AlterField(
model_name="embed",
name="hash",
field=models.CharField(db_index=True, max... | from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("wagtailembeds", "0007_populate_hash"),
]
operations = [
migrations.AlterField(
model_name="embed",
name="hash",
field=models.CharField(db_index=True, max... | Add missing max_length on temporary thumbnail_url migration | Add missing max_length on temporary thumbnail_url migration
Fixes #7323
| Python | bsd-3-clause | gasman/wagtail,mixxorz/wagtail,rsalmaso/wagtail,rsalmaso/wagtail,jnns/wagtail,zerolab/wagtail,jnns/wagtail,thenewguy/wagtail,rsalmaso/wagtail,gasman/wagtail,torchbox/wagtail,gasman/wagtail,jnns/wagtail,rsalmaso/wagtail,zerolab/wagtail,thenewguy/wagtail,thenewguy/wagtail,wagtail/wagtail,zerolab/wagtail,mixxorz/wagtail,w... | from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("wagtailembeds", "0007_populate_hash"),
]
operations = [
migrations.AlterField(
model_name="embed",
name="hash",
field=models.CharField(db_index=True, max... | from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("wagtailembeds", "0007_populate_hash"),
]
operations = [
migrations.AlterField(
model_name="embed",
name="hash",
field=models.CharField(db_index=True, max... | <commit_before>from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("wagtailembeds", "0007_populate_hash"),
]
operations = [
migrations.AlterField(
model_name="embed",
name="hash",
field=models.CharField(db_... | from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("wagtailembeds", "0007_populate_hash"),
]
operations = [
migrations.AlterField(
model_name="embed",
name="hash",
field=models.CharField(db_index=True, max... | from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("wagtailembeds", "0007_populate_hash"),
]
operations = [
migrations.AlterField(
model_name="embed",
name="hash",
field=models.CharField(db_index=True, max... | <commit_before>from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("wagtailembeds", "0007_populate_hash"),
]
operations = [
migrations.AlterField(
model_name="embed",
name="hash",
field=models.CharField(db_... |
a59a8566418547da2a33ff678f9855bc1adf64bb | plugins/websites.py | plugins/websites.py | from smartbot import utils
class Plugin:
def __call__(self, bot):
bot.on_hear(r"(https?:\/\/[^\s]+)", self.on_hear)
bot.on_help("websites", self.on_help)
def on_hear(self, bot, msg, reply):
for i, url in enumerate(msg["match"]):
reply("[{0}]: {1}".format(i, utils.get_websit... | from smartbot import utils
class Plugin:
def __call__(self, bot):
bot.on_hear(r"(https?:\/\/[^\s]+)", self.on_hear)
bot.on_help("websites", self.on_help)
def on_hear(self, bot, msg, reply):
for i, url in enumerate(msg["match"]):
title = utils.get_website_title(url)
... | Check for website title before replying | Check for website title before replying
| Python | mit | Cyanogenoid/smartbot,Muzer/smartbot,tomleese/smartbot,thomasleese/smartbot-old | from smartbot import utils
class Plugin:
def __call__(self, bot):
bot.on_hear(r"(https?:\/\/[^\s]+)", self.on_hear)
bot.on_help("websites", self.on_help)
def on_hear(self, bot, msg, reply):
for i, url in enumerate(msg["match"]):
reply("[{0}]: {1}".format(i, utils.get_websit... | from smartbot import utils
class Plugin:
def __call__(self, bot):
bot.on_hear(r"(https?:\/\/[^\s]+)", self.on_hear)
bot.on_help("websites", self.on_help)
def on_hear(self, bot, msg, reply):
for i, url in enumerate(msg["match"]):
title = utils.get_website_title(url)
... | <commit_before>from smartbot import utils
class Plugin:
def __call__(self, bot):
bot.on_hear(r"(https?:\/\/[^\s]+)", self.on_hear)
bot.on_help("websites", self.on_help)
def on_hear(self, bot, msg, reply):
for i, url in enumerate(msg["match"]):
reply("[{0}]: {1}".format(i, u... | from smartbot import utils
class Plugin:
def __call__(self, bot):
bot.on_hear(r"(https?:\/\/[^\s]+)", self.on_hear)
bot.on_help("websites", self.on_help)
def on_hear(self, bot, msg, reply):
for i, url in enumerate(msg["match"]):
title = utils.get_website_title(url)
... | from smartbot import utils
class Plugin:
def __call__(self, bot):
bot.on_hear(r"(https?:\/\/[^\s]+)", self.on_hear)
bot.on_help("websites", self.on_help)
def on_hear(self, bot, msg, reply):
for i, url in enumerate(msg["match"]):
reply("[{0}]: {1}".format(i, utils.get_websit... | <commit_before>from smartbot import utils
class Plugin:
def __call__(self, bot):
bot.on_hear(r"(https?:\/\/[^\s]+)", self.on_hear)
bot.on_help("websites", self.on_help)
def on_hear(self, bot, msg, reply):
for i, url in enumerate(msg["match"]):
reply("[{0}]: {1}".format(i, u... |
fadcbb515b9ac843928d939be0e689cffd7c99cf | frigg/helpers/badges.py | frigg/helpers/badges.py | # -*- coding: utf8 -*-
import requests
from django.contrib.staticfiles import finders
from django.core.cache import cache
def get_badge(succeeded):
key = 'badge{}'.format(succeeded)
badge = cache.get(key)
if badge is None:
if succeeded:
path = finders.find('badges/build-success.svg')
... | # -*- coding: utf8 -*-
import requests
from django.contrib.staticfiles import finders
from django.core.cache import cache
def get_badge(succeeded):
key = 'badge{}'.format(succeeded)
badge = cache.get(key)
if badge is None:
if succeeded:
path = finders.find('badges/build-success.svg')
... | Add '%' in coverage badge | Add '%' in coverage badge
| Python | mit | frigg/frigg-hq,frigg/frigg-hq,frigg/frigg-hq | # -*- coding: utf8 -*-
import requests
from django.contrib.staticfiles import finders
from django.core.cache import cache
def get_badge(succeeded):
key = 'badge{}'.format(succeeded)
badge = cache.get(key)
if badge is None:
if succeeded:
path = finders.find('badges/build-success.svg')
... | # -*- coding: utf8 -*-
import requests
from django.contrib.staticfiles import finders
from django.core.cache import cache
def get_badge(succeeded):
key = 'badge{}'.format(succeeded)
badge = cache.get(key)
if badge is None:
if succeeded:
path = finders.find('badges/build-success.svg')
... | <commit_before># -*- coding: utf8 -*-
import requests
from django.contrib.staticfiles import finders
from django.core.cache import cache
def get_badge(succeeded):
key = 'badge{}'.format(succeeded)
badge = cache.get(key)
if badge is None:
if succeeded:
path = finders.find('badges/build-... | # -*- coding: utf8 -*-
import requests
from django.contrib.staticfiles import finders
from django.core.cache import cache
def get_badge(succeeded):
key = 'badge{}'.format(succeeded)
badge = cache.get(key)
if badge is None:
if succeeded:
path = finders.find('badges/build-success.svg')
... | # -*- coding: utf8 -*-
import requests
from django.contrib.staticfiles import finders
from django.core.cache import cache
def get_badge(succeeded):
key = 'badge{}'.format(succeeded)
badge = cache.get(key)
if badge is None:
if succeeded:
path = finders.find('badges/build-success.svg')
... | <commit_before># -*- coding: utf8 -*-
import requests
from django.contrib.staticfiles import finders
from django.core.cache import cache
def get_badge(succeeded):
key = 'badge{}'.format(succeeded)
badge = cache.get(key)
if badge is None:
if succeeded:
path = finders.find('badges/build-... |
0f427ed334f8a58e888872d60419709cfd6f41c3 | var/spack/repos/builtin/packages/nccmp/package.py | var/spack/repos/builtin/packages/nccmp/package.py | from spack import *
import os
class Nccmp(Package):
"""Compare NetCDF Files"""
homepage = "http://nccmp.sourceforge.net/"
url = "http://downloads.sourceforge.net/project/nccmp/nccmp-1.8.2.0.tar.gz"
version('1.8.2.0', '81e6286d4413825aec4327e61a28a580')
depends_on('netcdf')
def install(s... | from spack import *
class Nccmp(Package):
"""Compare NetCDF Files"""
homepage = "http://nccmp.sourceforge.net/"
url = "http://downloads.sourceforge.net/project/nccmp/nccmp-1.8.2.0.tar.gz"
version('1.8.2.0', '81e6286d4413825aec4327e61a28a580')
depends_on('netcdf')
def install(self, spec,... | Tweak nccmp to be more spack-compatible. | Tweak nccmp to be more spack-compatible.
- Spack doesn't set F90, but it confuses the nccmp build. Just remove
it from the environment.
- TODO: should build environment unset this variable?
| Python | lgpl-2.1 | skosukhin/spack,matthiasdiener/spack,EmreAtes/spack,iulian787/spack,mfherbst/spack,matthiasdiener/spack,iulian787/spack,tmerrick1/spack,TheTimmy/spack,iulian787/spack,EmreAtes/spack,TheTimmy/spack,krafczyk/spack,LLNL/spack,lgarren/spack,TheTimmy/spack,iulian787/spack,iulian787/spack,tmerrick1/spack,lgarren/spack,matthi... | from spack import *
import os
class Nccmp(Package):
"""Compare NetCDF Files"""
homepage = "http://nccmp.sourceforge.net/"
url = "http://downloads.sourceforge.net/project/nccmp/nccmp-1.8.2.0.tar.gz"
version('1.8.2.0', '81e6286d4413825aec4327e61a28a580')
depends_on('netcdf')
def install(s... | from spack import *
class Nccmp(Package):
"""Compare NetCDF Files"""
homepage = "http://nccmp.sourceforge.net/"
url = "http://downloads.sourceforge.net/project/nccmp/nccmp-1.8.2.0.tar.gz"
version('1.8.2.0', '81e6286d4413825aec4327e61a28a580')
depends_on('netcdf')
def install(self, spec,... | <commit_before>from spack import *
import os
class Nccmp(Package):
"""Compare NetCDF Files"""
homepage = "http://nccmp.sourceforge.net/"
url = "http://downloads.sourceforge.net/project/nccmp/nccmp-1.8.2.0.tar.gz"
version('1.8.2.0', '81e6286d4413825aec4327e61a28a580')
depends_on('netcdf')
... | from spack import *
class Nccmp(Package):
"""Compare NetCDF Files"""
homepage = "http://nccmp.sourceforge.net/"
url = "http://downloads.sourceforge.net/project/nccmp/nccmp-1.8.2.0.tar.gz"
version('1.8.2.0', '81e6286d4413825aec4327e61a28a580')
depends_on('netcdf')
def install(self, spec,... | from spack import *
import os
class Nccmp(Package):
"""Compare NetCDF Files"""
homepage = "http://nccmp.sourceforge.net/"
url = "http://downloads.sourceforge.net/project/nccmp/nccmp-1.8.2.0.tar.gz"
version('1.8.2.0', '81e6286d4413825aec4327e61a28a580')
depends_on('netcdf')
def install(s... | <commit_before>from spack import *
import os
class Nccmp(Package):
"""Compare NetCDF Files"""
homepage = "http://nccmp.sourceforge.net/"
url = "http://downloads.sourceforge.net/project/nccmp/nccmp-1.8.2.0.tar.gz"
version('1.8.2.0', '81e6286d4413825aec4327e61a28a580')
depends_on('netcdf')
... |
c621bc7c94dbbeb5540b2ce46437ee24ecbc33dd | test/test_interface.py | test/test_interface.py | from cloudbridge.cloud import interfaces
from test.helpers import ProviderTestBase
class CloudInterfaceTestCase(ProviderTestBase):
def __init__(self, methodName, provider):
super(CloudInterfaceTestCase, self).__init__(
methodName=methodName, provider=provider)
def test_name_property(self... | import cloudbridge
from cloudbridge.cloud import interfaces
from test.helpers import ProviderTestBase
class CloudInterfaceTestCase(ProviderTestBase):
def __init__(self, methodName, provider):
super(CloudInterfaceTestCase, self).__init__(
methodName=methodName, provider=provider)
def test... | Add a library version test | Add a library version test
| Python | mit | gvlproject/cloudbridge,ms-azure-cloudbroker/cloudbridge,gvlproject/libcloudbridge | from cloudbridge.cloud import interfaces
from test.helpers import ProviderTestBase
class CloudInterfaceTestCase(ProviderTestBase):
def __init__(self, methodName, provider):
super(CloudInterfaceTestCase, self).__init__(
methodName=methodName, provider=provider)
def test_name_property(self... | import cloudbridge
from cloudbridge.cloud import interfaces
from test.helpers import ProviderTestBase
class CloudInterfaceTestCase(ProviderTestBase):
def __init__(self, methodName, provider):
super(CloudInterfaceTestCase, self).__init__(
methodName=methodName, provider=provider)
def test... | <commit_before>from cloudbridge.cloud import interfaces
from test.helpers import ProviderTestBase
class CloudInterfaceTestCase(ProviderTestBase):
def __init__(self, methodName, provider):
super(CloudInterfaceTestCase, self).__init__(
methodName=methodName, provider=provider)
def test_nam... | import cloudbridge
from cloudbridge.cloud import interfaces
from test.helpers import ProviderTestBase
class CloudInterfaceTestCase(ProviderTestBase):
def __init__(self, methodName, provider):
super(CloudInterfaceTestCase, self).__init__(
methodName=methodName, provider=provider)
def test... | from cloudbridge.cloud import interfaces
from test.helpers import ProviderTestBase
class CloudInterfaceTestCase(ProviderTestBase):
def __init__(self, methodName, provider):
super(CloudInterfaceTestCase, self).__init__(
methodName=methodName, provider=provider)
def test_name_property(self... | <commit_before>from cloudbridge.cloud import interfaces
from test.helpers import ProviderTestBase
class CloudInterfaceTestCase(ProviderTestBase):
def __init__(self, methodName, provider):
super(CloudInterfaceTestCase, self).__init__(
methodName=methodName, provider=provider)
def test_nam... |
6b5b99256dbc8b23a371130d33d0759f13adc37d | kaptan/__about__.py | kaptan/__about__.py | __title__ = 'kaptan'
__package_name__ = 'kaptan'
__version__ = '0.5.10'
__description__ = 'Configuration manager'
__email__ = 'mail@emreyilmaz.me'
__url__ = 'https://github.com/emre/kaptan'
__author__ = 'Emre Yilmaz'
__license__ = 'BSD'
__copyright__ = 'Copyright 2013-2015 Emre Yilmaz'
| __title__ = 'kaptan'
__package_name__ = 'kaptan'
__version__ = '0.5.11'
__description__ = 'Configuration manager'
__email__ = 'mail@emreyilmaz.me'
__url__ = 'https://github.com/emre/kaptan'
__author__ = 'Emre Yilmaz'
__license__ = 'BSD'
__copyright__ = 'Copyright 2013-2018 Emre Yilmaz'
| Tag v0.5.11 and update copyright year | Tag v0.5.11 and update copyright year
| Python | bsd-3-clause | emre/kaptan | __title__ = 'kaptan'
__package_name__ = 'kaptan'
__version__ = '0.5.10'
__description__ = 'Configuration manager'
__email__ = 'mail@emreyilmaz.me'
__url__ = 'https://github.com/emre/kaptan'
__author__ = 'Emre Yilmaz'
__license__ = 'BSD'
__copyright__ = 'Copyright 2013-2015 Emre Yilmaz'
Tag v0.5.11 and update copyright ... | __title__ = 'kaptan'
__package_name__ = 'kaptan'
__version__ = '0.5.11'
__description__ = 'Configuration manager'
__email__ = 'mail@emreyilmaz.me'
__url__ = 'https://github.com/emre/kaptan'
__author__ = 'Emre Yilmaz'
__license__ = 'BSD'
__copyright__ = 'Copyright 2013-2018 Emre Yilmaz'
| <commit_before>__title__ = 'kaptan'
__package_name__ = 'kaptan'
__version__ = '0.5.10'
__description__ = 'Configuration manager'
__email__ = 'mail@emreyilmaz.me'
__url__ = 'https://github.com/emre/kaptan'
__author__ = 'Emre Yilmaz'
__license__ = 'BSD'
__copyright__ = 'Copyright 2013-2015 Emre Yilmaz'
<commit_msg>Tag v0... | __title__ = 'kaptan'
__package_name__ = 'kaptan'
__version__ = '0.5.11'
__description__ = 'Configuration manager'
__email__ = 'mail@emreyilmaz.me'
__url__ = 'https://github.com/emre/kaptan'
__author__ = 'Emre Yilmaz'
__license__ = 'BSD'
__copyright__ = 'Copyright 2013-2018 Emre Yilmaz'
| __title__ = 'kaptan'
__package_name__ = 'kaptan'
__version__ = '0.5.10'
__description__ = 'Configuration manager'
__email__ = 'mail@emreyilmaz.me'
__url__ = 'https://github.com/emre/kaptan'
__author__ = 'Emre Yilmaz'
__license__ = 'BSD'
__copyright__ = 'Copyright 2013-2015 Emre Yilmaz'
Tag v0.5.11 and update copyright ... | <commit_before>__title__ = 'kaptan'
__package_name__ = 'kaptan'
__version__ = '0.5.10'
__description__ = 'Configuration manager'
__email__ = 'mail@emreyilmaz.me'
__url__ = 'https://github.com/emre/kaptan'
__author__ = 'Emre Yilmaz'
__license__ = 'BSD'
__copyright__ = 'Copyright 2013-2015 Emre Yilmaz'
<commit_msg>Tag v0... |
e2437ba31ea2c7f35afaeb2ec966062b2dfa2f5e | manage.py | manage.py | from os.path import abspath
from flask import current_app as app
from app import create_app, db
# from app.model import init_db
from flask.ext.script import Manager
manager = Manager(create_app)
manager.add_option('-m', '--cfgmode', dest='config_mode', default='Development')
manager.add_option('-f', '--cfgfile', dest... | from os.path import abspath
from flask import current_app as app
from app import create_app, db
# from app.model import init_db, populate_db()
from flask.ext.script import Manager
manager = Manager(create_app)
manager.add_option('-m', '--cfgmode', dest='config_mode', default='Development')
manager.add_option('-f', '-... | Add popdb() and edit descriptions | Add popdb() and edit descriptions
| Python | mit | nerevu/prometheus-api,nerevu/prometheus-api,nerevu/prometheus-api | from os.path import abspath
from flask import current_app as app
from app import create_app, db
# from app.model import init_db
from flask.ext.script import Manager
manager = Manager(create_app)
manager.add_option('-m', '--cfgmode', dest='config_mode', default='Development')
manager.add_option('-f', '--cfgfile', dest... | from os.path import abspath
from flask import current_app as app
from app import create_app, db
# from app.model import init_db, populate_db()
from flask.ext.script import Manager
manager = Manager(create_app)
manager.add_option('-m', '--cfgmode', dest='config_mode', default='Development')
manager.add_option('-f', '-... | <commit_before>from os.path import abspath
from flask import current_app as app
from app import create_app, db
# from app.model import init_db
from flask.ext.script import Manager
manager = Manager(create_app)
manager.add_option('-m', '--cfgmode', dest='config_mode', default='Development')
manager.add_option('-f', '-... | from os.path import abspath
from flask import current_app as app
from app import create_app, db
# from app.model import init_db, populate_db()
from flask.ext.script import Manager
manager = Manager(create_app)
manager.add_option('-m', '--cfgmode', dest='config_mode', default='Development')
manager.add_option('-f', '-... | from os.path import abspath
from flask import current_app as app
from app import create_app, db
# from app.model import init_db
from flask.ext.script import Manager
manager = Manager(create_app)
manager.add_option('-m', '--cfgmode', dest='config_mode', default='Development')
manager.add_option('-f', '--cfgfile', dest... | <commit_before>from os.path import abspath
from flask import current_app as app
from app import create_app, db
# from app.model import init_db
from flask.ext.script import Manager
manager = Manager(create_app)
manager.add_option('-m', '--cfgmode', dest='config_mode', default='Development')
manager.add_option('-f', '-... |
60e3dd17ca8acd4a88a1e7332d3a86e1890d989c | pdbcs/main.py | pdbcs/main.py | #!/usr/bin/env python
import argparse
import os
import pdb
import pkg_resources
def main():
parser = argparse.ArgumentParser()
parser.add_argument('script')
args = parser.parse_args()
script_name = os.path.basename(args.script)
ep = pkg_resources.iter_entry_points('console_scripts', script_name... | #!/usr/bin/env python
import argparse
import os
import pdb
import sys
import pkg_resources
def main():
parser = argparse.ArgumentParser()
parser.add_argument('script')
args, scriptargs = parser.parse_known_args()
script_name = os.path.basename(args.script)
ep = pkg_resources.iter_entry_points('... | Allow script args to be passed; reconstitute sys.argv for script | Allow script args to be passed; reconstitute sys.argv for script
Signed-off-by: Dan Mick <b07550071eaa6a9296289c43bbd6c90559196431@inktank.com>
| Python | apache-2.0 | dreamhost/pdbcs | #!/usr/bin/env python
import argparse
import os
import pdb
import pkg_resources
def main():
parser = argparse.ArgumentParser()
parser.add_argument('script')
args = parser.parse_args()
script_name = os.path.basename(args.script)
ep = pkg_resources.iter_entry_points('console_scripts', script_name... | #!/usr/bin/env python
import argparse
import os
import pdb
import sys
import pkg_resources
def main():
parser = argparse.ArgumentParser()
parser.add_argument('script')
args, scriptargs = parser.parse_known_args()
script_name = os.path.basename(args.script)
ep = pkg_resources.iter_entry_points('... | <commit_before>#!/usr/bin/env python
import argparse
import os
import pdb
import pkg_resources
def main():
parser = argparse.ArgumentParser()
parser.add_argument('script')
args = parser.parse_args()
script_name = os.path.basename(args.script)
ep = pkg_resources.iter_entry_points('console_script... | #!/usr/bin/env python
import argparse
import os
import pdb
import sys
import pkg_resources
def main():
parser = argparse.ArgumentParser()
parser.add_argument('script')
args, scriptargs = parser.parse_known_args()
script_name = os.path.basename(args.script)
ep = pkg_resources.iter_entry_points('... | #!/usr/bin/env python
import argparse
import os
import pdb
import pkg_resources
def main():
parser = argparse.ArgumentParser()
parser.add_argument('script')
args = parser.parse_args()
script_name = os.path.basename(args.script)
ep = pkg_resources.iter_entry_points('console_scripts', script_name... | <commit_before>#!/usr/bin/env python
import argparse
import os
import pdb
import pkg_resources
def main():
parser = argparse.ArgumentParser()
parser.add_argument('script')
args = parser.parse_args()
script_name = os.path.basename(args.script)
ep = pkg_resources.iter_entry_points('console_script... |
8a7a5676c5a96e8e9c9792fbb410ffae095d34f4 | tests/translation_test.py | tests/translation_test.py | import logging
logging.basicConfig(level=logging.DEBUG)
logging.getLogger('tulip.ltl_parser_log').setLevel(logging.ERROR)
from nose.tools import raises
#from tulip.spec.parser import parse
from tulip import spec
from tulip.spec import translation as ts
from tulip.spec import form
def test_translate_ast_to_gr1c():
... | import logging
logging.basicConfig(level=logging.DEBUG)
logging.getLogger('tulip.ltl_parser_log').setLevel(logging.ERROR)
from nose.tools import raises
#from tulip.spec.parser import parse
from tulip import spec
from tulip.spec import translation as ts
from tulip.spec import form
def test_translate_ast_to_gr1c():
... | Update test that relies on fragile string comparison | TEST: Update test that relies on fragile string comparison
It is a string comparison of formulae. The new output differs from the
reference in terms of whitespace and redundant parens.
| Python | bsd-3-clause | tulip-control/tulip-control,necozay/tulip-control,necozay/tulip-control,necozay/tulip-control,necozay/tulip-control,tulip-control/tulip-control,tulip-control/tulip-control,necozay/tulip-control,tulip-control/tulip-control | import logging
logging.basicConfig(level=logging.DEBUG)
logging.getLogger('tulip.ltl_parser_log').setLevel(logging.ERROR)
from nose.tools import raises
#from tulip.spec.parser import parse
from tulip import spec
from tulip.spec import translation as ts
from tulip.spec import form
def test_translate_ast_to_gr1c():
... | import logging
logging.basicConfig(level=logging.DEBUG)
logging.getLogger('tulip.ltl_parser_log').setLevel(logging.ERROR)
from nose.tools import raises
#from tulip.spec.parser import parse
from tulip import spec
from tulip.spec import translation as ts
from tulip.spec import form
def test_translate_ast_to_gr1c():
... | <commit_before>import logging
logging.basicConfig(level=logging.DEBUG)
logging.getLogger('tulip.ltl_parser_log').setLevel(logging.ERROR)
from nose.tools import raises
#from tulip.spec.parser import parse
from tulip import spec
from tulip.spec import translation as ts
from tulip.spec import form
def test_translate_ast... | import logging
logging.basicConfig(level=logging.DEBUG)
logging.getLogger('tulip.ltl_parser_log').setLevel(logging.ERROR)
from nose.tools import raises
#from tulip.spec.parser import parse
from tulip import spec
from tulip.spec import translation as ts
from tulip.spec import form
def test_translate_ast_to_gr1c():
... | import logging
logging.basicConfig(level=logging.DEBUG)
logging.getLogger('tulip.ltl_parser_log').setLevel(logging.ERROR)
from nose.tools import raises
#from tulip.spec.parser import parse
from tulip import spec
from tulip.spec import translation as ts
from tulip.spec import form
def test_translate_ast_to_gr1c():
... | <commit_before>import logging
logging.basicConfig(level=logging.DEBUG)
logging.getLogger('tulip.ltl_parser_log').setLevel(logging.ERROR)
from nose.tools import raises
#from tulip.spec.parser import parse
from tulip import spec
from tulip.spec import translation as ts
from tulip.spec import form
def test_translate_ast... |
c736708c008c51e1a49427beb320e83b03b9d58c | students/psbriant/final_project/clean_data.py | students/psbriant/final_project/clean_data.py | """
Name: Paul Briant
Date: 12/11/16
Class: Introduction to Python
Assignment: Final Project
Description:
Code for Final Project
"""
import pandas
from datetime import datetime
# Change source to smaller file.
data = pandas.read_csv("data/Seattle_Real_Time_Fire_911_Calls.csv")
| """
Name: Paul Briant
Date: 12/11/16
Class: Introduction to Python
Assignment: Final Project
Description:
Code for Final Project
"""
import pandas
from datetime import datetime
# Change source to smaller file.
data = pandas.read_csv("data/Residential_Water_Usage_Zip_Code_on_Top.csv")
data_columns = ["Date_Text", "Da... | Move to fix column names. | Move to fix column names.
| Python | unlicense | UWPCE-PythonCert/IntroPython2016,UWPCE-PythonCert/IntroPython2016,UWPCE-PythonCert/IntroPython2016,weidnem/IntroPython2016,weidnem/IntroPython2016,weidnem/IntroPython2016 | """
Name: Paul Briant
Date: 12/11/16
Class: Introduction to Python
Assignment: Final Project
Description:
Code for Final Project
"""
import pandas
from datetime import datetime
# Change source to smaller file.
data = pandas.read_csv("data/Seattle_Real_Time_Fire_911_Calls.csv")
Move to fix column names. | """
Name: Paul Briant
Date: 12/11/16
Class: Introduction to Python
Assignment: Final Project
Description:
Code for Final Project
"""
import pandas
from datetime import datetime
# Change source to smaller file.
data = pandas.read_csv("data/Residential_Water_Usage_Zip_Code_on_Top.csv")
data_columns = ["Date_Text", "Da... | <commit_before>"""
Name: Paul Briant
Date: 12/11/16
Class: Introduction to Python
Assignment: Final Project
Description:
Code for Final Project
"""
import pandas
from datetime import datetime
# Change source to smaller file.
data = pandas.read_csv("data/Seattle_Real_Time_Fire_911_Calls.csv")
<commit_msg>Move to fix ... | """
Name: Paul Briant
Date: 12/11/16
Class: Introduction to Python
Assignment: Final Project
Description:
Code for Final Project
"""
import pandas
from datetime import datetime
# Change source to smaller file.
data = pandas.read_csv("data/Residential_Water_Usage_Zip_Code_on_Top.csv")
data_columns = ["Date_Text", "Da... | """
Name: Paul Briant
Date: 12/11/16
Class: Introduction to Python
Assignment: Final Project
Description:
Code for Final Project
"""
import pandas
from datetime import datetime
# Change source to smaller file.
data = pandas.read_csv("data/Seattle_Real_Time_Fire_911_Calls.csv")
Move to fix column names."""
Name: Paul... | <commit_before>"""
Name: Paul Briant
Date: 12/11/16
Class: Introduction to Python
Assignment: Final Project
Description:
Code for Final Project
"""
import pandas
from datetime import datetime
# Change source to smaller file.
data = pandas.read_csv("data/Seattle_Real_Time_Fire_911_Calls.csv")
<commit_msg>Move to fix ... |
f47781055326d6f259dd1b0d4b6be9cf47554977 | craigschart/craigschart.py | craigschart/craigschart.py | from bs4 import BeautifulSoup
import requests
def get_html():
r = requests.get('http://vancouver.craigslist.ca/search/cto?query=Expedition')
print(r.status_code)
print(r.text)
return r.text
def main():
html = get_html()
soup = BeautifulSoup(html, 'lxml')
print(soup.prettify())
print(... | from bs4 import BeautifulSoup
import requests
def get_html(url):
r = requests.get(url)
return r.text
def add_start(url, start):
parts = url.split('?')
return parts[0] + '?s={}'.format(start) + '&' + parts[1]
def main():
url = 'http://vancouver.craigslist.ca/search/cto?query=Expedition'
htm... | Enable search of paginated pages | Enable search of paginated pages
| Python | mit | supermitch/craigschart | from bs4 import BeautifulSoup
import requests
def get_html():
r = requests.get('http://vancouver.craigslist.ca/search/cto?query=Expedition')
print(r.status_code)
print(r.text)
return r.text
def main():
html = get_html()
soup = BeautifulSoup(html, 'lxml')
print(soup.prettify())
print(... | from bs4 import BeautifulSoup
import requests
def get_html(url):
r = requests.get(url)
return r.text
def add_start(url, start):
parts = url.split('?')
return parts[0] + '?s={}'.format(start) + '&' + parts[1]
def main():
url = 'http://vancouver.craigslist.ca/search/cto?query=Expedition'
htm... | <commit_before>from bs4 import BeautifulSoup
import requests
def get_html():
r = requests.get('http://vancouver.craigslist.ca/search/cto?query=Expedition')
print(r.status_code)
print(r.text)
return r.text
def main():
html = get_html()
soup = BeautifulSoup(html, 'lxml')
print(soup.prettify... | from bs4 import BeautifulSoup
import requests
def get_html(url):
r = requests.get(url)
return r.text
def add_start(url, start):
parts = url.split('?')
return parts[0] + '?s={}'.format(start) + '&' + parts[1]
def main():
url = 'http://vancouver.craigslist.ca/search/cto?query=Expedition'
htm... | from bs4 import BeautifulSoup
import requests
def get_html():
r = requests.get('http://vancouver.craigslist.ca/search/cto?query=Expedition')
print(r.status_code)
print(r.text)
return r.text
def main():
html = get_html()
soup = BeautifulSoup(html, 'lxml')
print(soup.prettify())
print(... | <commit_before>from bs4 import BeautifulSoup
import requests
def get_html():
r = requests.get('http://vancouver.craigslist.ca/search/cto?query=Expedition')
print(r.status_code)
print(r.text)
return r.text
def main():
html = get_html()
soup = BeautifulSoup(html, 'lxml')
print(soup.prettify... |
88f2886393991ac660ac382d48c65088eff56d52 | config/flask_prod.py | config/flask_prod.py | import os
from rmc.config.flask_base import *
import rmc.shared.secrets as s
JS_DIR = 'js'
DEBUG = False
ENV = 'prod'
GA_PROPERTY_ID = 'UA-35073503-1'
LOG_DIR = '/home/rmc/logs'
LOG_PATH = os.path.join(LOG_DIR, 'server/server.log')
FB_APP_ID = '219309734863464'
FB_APP_SECRET = s.FB_APP_SECRET_PROD
| import os
from rmc.config.flask_base import *
import rmc.shared.secrets as s
JS_DIR = 'js_prod'
DEBUG = False
ENV = 'prod'
GA_PROPERTY_ID = 'UA-35073503-1'
LOG_DIR = '/home/rmc/logs'
LOG_PATH = os.path.join(LOG_DIR, 'server/server.log')
FB_APP_ID = '219309734863464'
FB_APP_SECRET = s.FB_APP_SECRET_PROD
| Revert "do not use minified js on prod" | Revert "do not use minified js on prod"
This reverts commit 338f5f9c3ff8be9a87abff2b235408c8fed26346.
| Python | mit | shakilkanji/rmc,ccqi/rmc,rageandqq/rmc,UWFlow/rmc,sachdevs/rmc,shakilkanji/rmc,rageandqq/rmc,UWFlow/rmc,MichalKononenko/rmc,ccqi/rmc,shakilkanji/rmc,MichalKononenko/rmc,JGulbronson/rmc,duaayousif/rmc,shakilkanji/rmc,rageandqq/rmc,sachdevs/rmc,sachdevs/rmc,sachdevs/rmc,ccqi/rmc,ccqi/rmc,JGulbronson/rmc,JGulbronson/rmc,r... | import os
from rmc.config.flask_base import *
import rmc.shared.secrets as s
JS_DIR = 'js'
DEBUG = False
ENV = 'prod'
GA_PROPERTY_ID = 'UA-35073503-1'
LOG_DIR = '/home/rmc/logs'
LOG_PATH = os.path.join(LOG_DIR, 'server/server.log')
FB_APP_ID = '219309734863464'
FB_APP_SECRET = s.FB_APP_SECRET_PROD
Revert "do not use ... | import os
from rmc.config.flask_base import *
import rmc.shared.secrets as s
JS_DIR = 'js_prod'
DEBUG = False
ENV = 'prod'
GA_PROPERTY_ID = 'UA-35073503-1'
LOG_DIR = '/home/rmc/logs'
LOG_PATH = os.path.join(LOG_DIR, 'server/server.log')
FB_APP_ID = '219309734863464'
FB_APP_SECRET = s.FB_APP_SECRET_PROD
| <commit_before>import os
from rmc.config.flask_base import *
import rmc.shared.secrets as s
JS_DIR = 'js'
DEBUG = False
ENV = 'prod'
GA_PROPERTY_ID = 'UA-35073503-1'
LOG_DIR = '/home/rmc/logs'
LOG_PATH = os.path.join(LOG_DIR, 'server/server.log')
FB_APP_ID = '219309734863464'
FB_APP_SECRET = s.FB_APP_SECRET_PROD
<com... | import os
from rmc.config.flask_base import *
import rmc.shared.secrets as s
JS_DIR = 'js_prod'
DEBUG = False
ENV = 'prod'
GA_PROPERTY_ID = 'UA-35073503-1'
LOG_DIR = '/home/rmc/logs'
LOG_PATH = os.path.join(LOG_DIR, 'server/server.log')
FB_APP_ID = '219309734863464'
FB_APP_SECRET = s.FB_APP_SECRET_PROD
| import os
from rmc.config.flask_base import *
import rmc.shared.secrets as s
JS_DIR = 'js'
DEBUG = False
ENV = 'prod'
GA_PROPERTY_ID = 'UA-35073503-1'
LOG_DIR = '/home/rmc/logs'
LOG_PATH = os.path.join(LOG_DIR, 'server/server.log')
FB_APP_ID = '219309734863464'
FB_APP_SECRET = s.FB_APP_SECRET_PROD
Revert "do not use ... | <commit_before>import os
from rmc.config.flask_base import *
import rmc.shared.secrets as s
JS_DIR = 'js'
DEBUG = False
ENV = 'prod'
GA_PROPERTY_ID = 'UA-35073503-1'
LOG_DIR = '/home/rmc/logs'
LOG_PATH = os.path.join(LOG_DIR, 'server/server.log')
FB_APP_ID = '219309734863464'
FB_APP_SECRET = s.FB_APP_SECRET_PROD
<com... |
77138f52d63be6c58d94f5ba9e0928a12b15125b | vumi/application/__init__.py | vumi/application/__init__.py | """The vumi.application API."""
__all__ = ["ApplicationWorker", "SessionManager", "TagpoolManager",
"MessageStore"]
from vumi.application.base import ApplicationWorker
from vumi.application.session import SessionManager
from vumi.application.tagpool import TagpoolManager
from vumi.application.message_store... | """The vumi.application API."""
__all__ = ["ApplicationWorker", "SessionManager", "TagpoolManager",
"MessageStore", "HTTPRelayApplication"]
from vumi.application.base import ApplicationWorker
from vumi.application.session import SessionManager
from vumi.application.tagpool import TagpoolManager
from vumi.a... | Add HTTPRelayApplication to vumi.application package API. | Add HTTPRelayApplication to vumi.application package API.
| Python | bsd-3-clause | harrissoerja/vumi,vishwaprakashmishra/xmatrix,TouK/vumi,TouK/vumi,vishwaprakashmishra/xmatrix,harrissoerja/vumi,vishwaprakashmishra/xmatrix,TouK/vumi,harrissoerja/vumi | """The vumi.application API."""
__all__ = ["ApplicationWorker", "SessionManager", "TagpoolManager",
"MessageStore"]
from vumi.application.base import ApplicationWorker
from vumi.application.session import SessionManager
from vumi.application.tagpool import TagpoolManager
from vumi.application.message_store... | """The vumi.application API."""
__all__ = ["ApplicationWorker", "SessionManager", "TagpoolManager",
"MessageStore", "HTTPRelayApplication"]
from vumi.application.base import ApplicationWorker
from vumi.application.session import SessionManager
from vumi.application.tagpool import TagpoolManager
from vumi.a... | <commit_before>"""The vumi.application API."""
__all__ = ["ApplicationWorker", "SessionManager", "TagpoolManager",
"MessageStore"]
from vumi.application.base import ApplicationWorker
from vumi.application.session import SessionManager
from vumi.application.tagpool import TagpoolManager
from vumi.applicatio... | """The vumi.application API."""
__all__ = ["ApplicationWorker", "SessionManager", "TagpoolManager",
"MessageStore", "HTTPRelayApplication"]
from vumi.application.base import ApplicationWorker
from vumi.application.session import SessionManager
from vumi.application.tagpool import TagpoolManager
from vumi.a... | """The vumi.application API."""
__all__ = ["ApplicationWorker", "SessionManager", "TagpoolManager",
"MessageStore"]
from vumi.application.base import ApplicationWorker
from vumi.application.session import SessionManager
from vumi.application.tagpool import TagpoolManager
from vumi.application.message_store... | <commit_before>"""The vumi.application API."""
__all__ = ["ApplicationWorker", "SessionManager", "TagpoolManager",
"MessageStore"]
from vumi.application.base import ApplicationWorker
from vumi.application.session import SessionManager
from vumi.application.tagpool import TagpoolManager
from vumi.applicatio... |
ae1696364f078d7813076c7e0a937ad30a19e84f | receiver/receive.py | receiver/receive.py | #!/usr/bin/env/python
import socket, fcntl, sys
#Lock to only allow one instance of this program to run
pid_file = '/tmp/send.pid'
fp = open(pid_file, 'w')
try:
fcntl.lockf(fp, fcntl.LOCK_EX | fcntl.LOCK_NB)
except IOError:
print 'An instance of this program is already running'
sys.exit(0)
import Adafruit_C... | #!/usr/bin/env python
import socket, fcntl, sys
#Lock to only allow one instance of this program to run
pid_file = '/tmp/send.pid'
fp = open(pid_file, 'w')
try:
fcntl.lockf(fp, fcntl.LOCK_EX | fcntl.LOCK_NB)
except IOError:
print 'An instance of this program is already running'
sys.exit(0)
import Adafruit_C... | Fix header of Python file | Fix header of Python file
Now correctly points to the Python interpretor
| Python | mit | sapientsalamander/Pi_Packet_Project,sapientsalamander/Pi_Packet_Project,sapientsalamander/Pi_Packet_Project,sapientsalamander/Pi_Packet_Project,sapientsalamander/Pi_Packet_Project | #!/usr/bin/env/python
import socket, fcntl, sys
#Lock to only allow one instance of this program to run
pid_file = '/tmp/send.pid'
fp = open(pid_file, 'w')
try:
fcntl.lockf(fp, fcntl.LOCK_EX | fcntl.LOCK_NB)
except IOError:
print 'An instance of this program is already running'
sys.exit(0)
import Adafruit_C... | #!/usr/bin/env python
import socket, fcntl, sys
#Lock to only allow one instance of this program to run
pid_file = '/tmp/send.pid'
fp = open(pid_file, 'w')
try:
fcntl.lockf(fp, fcntl.LOCK_EX | fcntl.LOCK_NB)
except IOError:
print 'An instance of this program is already running'
sys.exit(0)
import Adafruit_C... | <commit_before>#!/usr/bin/env/python
import socket, fcntl, sys
#Lock to only allow one instance of this program to run
pid_file = '/tmp/send.pid'
fp = open(pid_file, 'w')
try:
fcntl.lockf(fp, fcntl.LOCK_EX | fcntl.LOCK_NB)
except IOError:
print 'An instance of this program is already running'
sys.exit(0)
im... | #!/usr/bin/env python
import socket, fcntl, sys
#Lock to only allow one instance of this program to run
pid_file = '/tmp/send.pid'
fp = open(pid_file, 'w')
try:
fcntl.lockf(fp, fcntl.LOCK_EX | fcntl.LOCK_NB)
except IOError:
print 'An instance of this program is already running'
sys.exit(0)
import Adafruit_C... | #!/usr/bin/env/python
import socket, fcntl, sys
#Lock to only allow one instance of this program to run
pid_file = '/tmp/send.pid'
fp = open(pid_file, 'w')
try:
fcntl.lockf(fp, fcntl.LOCK_EX | fcntl.LOCK_NB)
except IOError:
print 'An instance of this program is already running'
sys.exit(0)
import Adafruit_C... | <commit_before>#!/usr/bin/env/python
import socket, fcntl, sys
#Lock to only allow one instance of this program to run
pid_file = '/tmp/send.pid'
fp = open(pid_file, 'w')
try:
fcntl.lockf(fp, fcntl.LOCK_EX | fcntl.LOCK_NB)
except IOError:
print 'An instance of this program is already running'
sys.exit(0)
im... |
029df34ce4a69adf5321531b229503d66169c9a6 | tests/optimizers/test_conjugate_gradient.py | tests/optimizers/test_conjugate_gradient.py | from pymanopt.optimizers import ConjugateGradient
from .._test import TestCase
class TestConjugateGradient(TestCase):
def test_beta_type(self):
with self.assertRaises(ValueError):
ConjugateGradient(beta_rule="SomeUnknownBetaRule")
| import numpy as np
import numpy.testing as np_testing
from nose2.tools import params
import pymanopt
from pymanopt.optimizers import ConjugateGradient
from .._test import TestCase
class TestConjugateGradient(TestCase):
def setUp(self):
n = 32
matrix = np.random.normal(size=(n, n))
matrix... | Add simple end-to-end test case for beta rules | Add simple end-to-end test case for beta rules
Signed-off-by: Niklas Koep <342d5290239d9c5264c8f98185afedb99596601a@gmail.com>
| Python | bsd-3-clause | pymanopt/pymanopt,pymanopt/pymanopt | from pymanopt.optimizers import ConjugateGradient
from .._test import TestCase
class TestConjugateGradient(TestCase):
def test_beta_type(self):
with self.assertRaises(ValueError):
ConjugateGradient(beta_rule="SomeUnknownBetaRule")
Add simple end-to-end test case for beta rules
Signed-off-by:... | import numpy as np
import numpy.testing as np_testing
from nose2.tools import params
import pymanopt
from pymanopt.optimizers import ConjugateGradient
from .._test import TestCase
class TestConjugateGradient(TestCase):
def setUp(self):
n = 32
matrix = np.random.normal(size=(n, n))
matrix... | <commit_before>from pymanopt.optimizers import ConjugateGradient
from .._test import TestCase
class TestConjugateGradient(TestCase):
def test_beta_type(self):
with self.assertRaises(ValueError):
ConjugateGradient(beta_rule="SomeUnknownBetaRule")
<commit_msg>Add simple end-to-end test case for... | import numpy as np
import numpy.testing as np_testing
from nose2.tools import params
import pymanopt
from pymanopt.optimizers import ConjugateGradient
from .._test import TestCase
class TestConjugateGradient(TestCase):
def setUp(self):
n = 32
matrix = np.random.normal(size=(n, n))
matrix... | from pymanopt.optimizers import ConjugateGradient
from .._test import TestCase
class TestConjugateGradient(TestCase):
def test_beta_type(self):
with self.assertRaises(ValueError):
ConjugateGradient(beta_rule="SomeUnknownBetaRule")
Add simple end-to-end test case for beta rules
Signed-off-by:... | <commit_before>from pymanopt.optimizers import ConjugateGradient
from .._test import TestCase
class TestConjugateGradient(TestCase):
def test_beta_type(self):
with self.assertRaises(ValueError):
ConjugateGradient(beta_rule="SomeUnknownBetaRule")
<commit_msg>Add simple end-to-end test case for... |
57991e6232a0f7fe081aba03ce2beb493ff110ff | tests/test_bg_color.py | tests/test_bg_color.py | import pytest
import webview
from .util import destroy_window, run_test
def bg_color():
import webview
destroy_window(webview)
webview.create_window('Background color test', 'https://www.example.org', background_color='#0000FF')
def test_bg_color():
run_test(bg_color)
| import pytest
from .util import destroy_window, run_test
def bg_color():
import webview
destroy_window(webview)
webview.create_window('Background color test', 'https://www.example.org', background_color='#0000FF')
def invalid_bg_color():
import webview
with pytest.raises(ValueError):
web... | Add invalid bg_color test cases | Add invalid bg_color test cases
| Python | bsd-3-clause | shivaprsdv/pywebview,r0x0r/pywebview,r0x0r/pywebview,shivaprsdv/pywebview,shivaprsdv/pywebview,r0x0r/pywebview,r0x0r/pywebview,r0x0r/pywebview,shivaprsdv/pywebview | import pytest
import webview
from .util import destroy_window, run_test
def bg_color():
import webview
destroy_window(webview)
webview.create_window('Background color test', 'https://www.example.org', background_color='#0000FF')
def test_bg_color():
run_test(bg_color)
Add invalid bg_color test cases | import pytest
from .util import destroy_window, run_test
def bg_color():
import webview
destroy_window(webview)
webview.create_window('Background color test', 'https://www.example.org', background_color='#0000FF')
def invalid_bg_color():
import webview
with pytest.raises(ValueError):
web... | <commit_before>import pytest
import webview
from .util import destroy_window, run_test
def bg_color():
import webview
destroy_window(webview)
webview.create_window('Background color test', 'https://www.example.org', background_color='#0000FF')
def test_bg_color():
run_test(bg_color)
<commit_msg>Add i... | import pytest
from .util import destroy_window, run_test
def bg_color():
import webview
destroy_window(webview)
webview.create_window('Background color test', 'https://www.example.org', background_color='#0000FF')
def invalid_bg_color():
import webview
with pytest.raises(ValueError):
web... | import pytest
import webview
from .util import destroy_window, run_test
def bg_color():
import webview
destroy_window(webview)
webview.create_window('Background color test', 'https://www.example.org', background_color='#0000FF')
def test_bg_color():
run_test(bg_color)
Add invalid bg_color test casesi... | <commit_before>import pytest
import webview
from .util import destroy_window, run_test
def bg_color():
import webview
destroy_window(webview)
webview.create_window('Background color test', 'https://www.example.org', background_color='#0000FF')
def test_bg_color():
run_test(bg_color)
<commit_msg>Add i... |
d3bfb0d65314df39a42390dd5a7d40dd7a61b758 | myname.py | myname.py | """Little module to find the path of a Cosmo box simulation"""
import os.path as path
base=path.expanduser("~/data/Cosmo/")
def get_name(sim, ff=True):
"""Get the directory for a simulation"""
halo = "Cosmo"+str(sim)+"_V6"
if ff:
halo=path.join(halo,"L25n512/output")
else:
halo=path.j... | """Little module to find the path of a Cosmo box simulation"""
import os.path as path
base=path.expanduser("~/data/Cosmo/")
def get_name(sim, ff=True, box=25):
"""Get the directory for a simulation"""
halo = "Cosmo"+str(sim)+"_V6"
if ff:
halo=path.join(halo,"L"+str(box)+"n512/output")
else:
... | Allow loading of different box sizes | Allow loading of different box sizes
| Python | mit | sbird/fake_spectra,sbird/fake_spectra,sbird/fake_spectra | """Little module to find the path of a Cosmo box simulation"""
import os.path as path
base=path.expanduser("~/data/Cosmo/")
def get_name(sim, ff=True):
"""Get the directory for a simulation"""
halo = "Cosmo"+str(sim)+"_V6"
if ff:
halo=path.join(halo,"L25n512/output")
else:
halo=path.j... | """Little module to find the path of a Cosmo box simulation"""
import os.path as path
base=path.expanduser("~/data/Cosmo/")
def get_name(sim, ff=True, box=25):
"""Get the directory for a simulation"""
halo = "Cosmo"+str(sim)+"_V6"
if ff:
halo=path.join(halo,"L"+str(box)+"n512/output")
else:
... | <commit_before>"""Little module to find the path of a Cosmo box simulation"""
import os.path as path
base=path.expanduser("~/data/Cosmo/")
def get_name(sim, ff=True):
"""Get the directory for a simulation"""
halo = "Cosmo"+str(sim)+"_V6"
if ff:
halo=path.join(halo,"L25n512/output")
else:
... | """Little module to find the path of a Cosmo box simulation"""
import os.path as path
base=path.expanduser("~/data/Cosmo/")
def get_name(sim, ff=True, box=25):
"""Get the directory for a simulation"""
halo = "Cosmo"+str(sim)+"_V6"
if ff:
halo=path.join(halo,"L"+str(box)+"n512/output")
else:
... | """Little module to find the path of a Cosmo box simulation"""
import os.path as path
base=path.expanduser("~/data/Cosmo/")
def get_name(sim, ff=True):
"""Get the directory for a simulation"""
halo = "Cosmo"+str(sim)+"_V6"
if ff:
halo=path.join(halo,"L25n512/output")
else:
halo=path.j... | <commit_before>"""Little module to find the path of a Cosmo box simulation"""
import os.path as path
base=path.expanduser("~/data/Cosmo/")
def get_name(sim, ff=True):
"""Get the directory for a simulation"""
halo = "Cosmo"+str(sim)+"_V6"
if ff:
halo=path.join(halo,"L25n512/output")
else:
... |
88dc55b86d432b2fcc9e214acbd3f9064e4debdb | tests/test_datasets.py | tests/test_datasets.py | import pytest
from tests import api
RESULT_ATTRIBUTES = [
'id',
'total_products',
'total_stores',
'total_inventories',
'total_product_inventory_count',
'total_product_inventory_volume_in_milliliters',
'total_product_inventory_price_in_cents',
'store_ids',
'product_ids',
'added... | import pytest
from tests import api
RESULT_ATTRIBUTES = [
'id',
'total_products',
'total_stores',
'total_inventories',
'total_product_inventory_count',
'total_product_inventory_volume_in_milliliters',
'total_product_inventory_price_in_cents',
'store_ids',
'product_ids',
'added... | Add test for latest datasets | Add test for latest datasets
| Python | mit | shamrt/LCBOAPI | import pytest
from tests import api
RESULT_ATTRIBUTES = [
'id',
'total_products',
'total_stores',
'total_inventories',
'total_product_inventory_count',
'total_product_inventory_volume_in_milliliters',
'total_product_inventory_price_in_cents',
'store_ids',
'product_ids',
'added... | import pytest
from tests import api
RESULT_ATTRIBUTES = [
'id',
'total_products',
'total_stores',
'total_inventories',
'total_product_inventory_count',
'total_product_inventory_volume_in_milliliters',
'total_product_inventory_price_in_cents',
'store_ids',
'product_ids',
'added... | <commit_before>import pytest
from tests import api
RESULT_ATTRIBUTES = [
'id',
'total_products',
'total_stores',
'total_inventories',
'total_product_inventory_count',
'total_product_inventory_volume_in_milliliters',
'total_product_inventory_price_in_cents',
'store_ids',
'product_i... | import pytest
from tests import api
RESULT_ATTRIBUTES = [
'id',
'total_products',
'total_stores',
'total_inventories',
'total_product_inventory_count',
'total_product_inventory_volume_in_milliliters',
'total_product_inventory_price_in_cents',
'store_ids',
'product_ids',
'added... | import pytest
from tests import api
RESULT_ATTRIBUTES = [
'id',
'total_products',
'total_stores',
'total_inventories',
'total_product_inventory_count',
'total_product_inventory_volume_in_milliliters',
'total_product_inventory_price_in_cents',
'store_ids',
'product_ids',
'added... | <commit_before>import pytest
from tests import api
RESULT_ATTRIBUTES = [
'id',
'total_products',
'total_stores',
'total_inventories',
'total_product_inventory_count',
'total_product_inventory_volume_in_milliliters',
'total_product_inventory_price_in_cents',
'store_ids',
'product_i... |
1e74d5c72de6b32b2e3a331f1ebd4d883a6a622a | util/auth.py | util/auth.py | import datetime
from db import session
import model
class UserInfo:
def __init__(self, user=None, token=None):
self.id = user.id if user else None
self.role = user.role if user else None
self.token = token
self.user = user
def is_logged_in(self):
return self.id is no... | import datetime
from db import session
import model
class UserInfo:
def __init__(self, user=None, token=None):
self.id = user.id if user else None
self.role = user.role if user else None
self.token = token
self.user = user
def is_logged_in(self):
return self.id is no... | Allow inactive sessions to last 14 days instead of 1 day | Allow inactive sessions to last 14 days instead of 1 day
| Python | mit | fi-ksi/web-backend,fi-ksi/web-backend | import datetime
from db import session
import model
class UserInfo:
def __init__(self, user=None, token=None):
self.id = user.id if user else None
self.role = user.role if user else None
self.token = token
self.user = user
def is_logged_in(self):
return self.id is no... | import datetime
from db import session
import model
class UserInfo:
def __init__(self, user=None, token=None):
self.id = user.id if user else None
self.role = user.role if user else None
self.token = token
self.user = user
def is_logged_in(self):
return self.id is no... | <commit_before>import datetime
from db import session
import model
class UserInfo:
def __init__(self, user=None, token=None):
self.id = user.id if user else None
self.role = user.role if user else None
self.token = token
self.user = user
def is_logged_in(self):
retur... | import datetime
from db import session
import model
class UserInfo:
def __init__(self, user=None, token=None):
self.id = user.id if user else None
self.role = user.role if user else None
self.token = token
self.user = user
def is_logged_in(self):
return self.id is no... | import datetime
from db import session
import model
class UserInfo:
def __init__(self, user=None, token=None):
self.id = user.id if user else None
self.role = user.role if user else None
self.token = token
self.user = user
def is_logged_in(self):
return self.id is no... | <commit_before>import datetime
from db import session
import model
class UserInfo:
def __init__(self, user=None, token=None):
self.id = user.id if user else None
self.role = user.role if user else None
self.token = token
self.user = user
def is_logged_in(self):
retur... |
8234e5dff9265d9fd5a94ffff5e58e154664395d | support/tests/test_command.py | support/tests/test_command.py | import unittest
# Remember:
# Import your package here
# Install AAAPT package to run the tests
class Test_{package_name}Command(unittest.TestCase):
pass | # Remember to install AAAPT package to run the tests
import unittest
# Import your package here
# To reload your tests every time you save your command file, add the following to it:
# for test_file in glob.glob("tests/test_*.py"):
# key = "{package_name}." + test_file[:-3].replace("/", ".")
# if key in sy... | Add a way to reload the tests from the main command file | Add a way to reload the tests from the main command file
| Python | mit | NicoSantangelo/package-boilerplate | import unittest
# Remember:
# Import your package here
# Install AAAPT package to run the tests
class Test_{package_name}Command(unittest.TestCase):
passAdd a way to reload the tests from the main command file | # Remember to install AAAPT package to run the tests
import unittest
# Import your package here
# To reload your tests every time you save your command file, add the following to it:
# for test_file in glob.glob("tests/test_*.py"):
# key = "{package_name}." + test_file[:-3].replace("/", ".")
# if key in sy... | <commit_before>import unittest
# Remember:
# Import your package here
# Install AAAPT package to run the tests
class Test_{package_name}Command(unittest.TestCase):
pass<commit_msg>Add a way to reload the tests from the main command file<commit_after> | # Remember to install AAAPT package to run the tests
import unittest
# Import your package here
# To reload your tests every time you save your command file, add the following to it:
# for test_file in glob.glob("tests/test_*.py"):
# key = "{package_name}." + test_file[:-3].replace("/", ".")
# if key in sy... | import unittest
# Remember:
# Import your package here
# Install AAAPT package to run the tests
class Test_{package_name}Command(unittest.TestCase):
passAdd a way to reload the tests from the main command file# Remember to install AAAPT package to run the tests
import unittest
# Import your package here
... | <commit_before>import unittest
# Remember:
# Import your package here
# Install AAAPT package to run the tests
class Test_{package_name}Command(unittest.TestCase):
pass<commit_msg>Add a way to reload the tests from the main command file<commit_after># Remember to install AAAPT package to run the tests
impo... |
e6c65ef51fc7a08a50b671e30e5e27a051824927 | cyder/__init__.py | cyder/__init__.py | from base.constants import *
from django.dispatch import receiver
from django.db.models.signals import post_syncdb
from south.signals import post_migrate
# South doesn't automatically load custom SQL like Django does, and regardless,
# the filename isn't what Django would expect.
def _load_custom_sql():
from dj... | from base.constants import *
from django.dispatch import receiver
from django.db.models.signals import post_syncdb
from south.signals import post_migrate
# South doesn't automatically load custom SQL like Django does, and regardless,
# the filename isn't what Django would expect.
def _load_custom_sql():
from dj... | Sort initial_data/ files by filename | Sort initial_data/ files by filename
| Python | bsd-3-clause | zeeman/cyder,OSU-Net/cyder,OSU-Net/cyder,akeym/cyder,akeym/cyder,murrown/cyder,murrown/cyder,zeeman/cyder,drkitty/cyder,drkitty/cyder,murrown/cyder,murrown/cyder,OSU-Net/cyder,OSU-Net/cyder,drkitty/cyder,drkitty/cyder,zeeman/cyder,akeym/cyder,akeym/cyder,zeeman/cyder | from base.constants import *
from django.dispatch import receiver
from django.db.models.signals import post_syncdb
from south.signals import post_migrate
# South doesn't automatically load custom SQL like Django does, and regardless,
# the filename isn't what Django would expect.
def _load_custom_sql():
from dj... | from base.constants import *
from django.dispatch import receiver
from django.db.models.signals import post_syncdb
from south.signals import post_migrate
# South doesn't automatically load custom SQL like Django does, and regardless,
# the filename isn't what Django would expect.
def _load_custom_sql():
from dj... | <commit_before>from base.constants import *
from django.dispatch import receiver
from django.db.models.signals import post_syncdb
from south.signals import post_migrate
# South doesn't automatically load custom SQL like Django does, and regardless,
# the filename isn't what Django would expect.
def _load_custom_sql... | from base.constants import *
from django.dispatch import receiver
from django.db.models.signals import post_syncdb
from south.signals import post_migrate
# South doesn't automatically load custom SQL like Django does, and regardless,
# the filename isn't what Django would expect.
def _load_custom_sql():
from dj... | from base.constants import *
from django.dispatch import receiver
from django.db.models.signals import post_syncdb
from south.signals import post_migrate
# South doesn't automatically load custom SQL like Django does, and regardless,
# the filename isn't what Django would expect.
def _load_custom_sql():
from dj... | <commit_before>from base.constants import *
from django.dispatch import receiver
from django.db.models.signals import post_syncdb
from south.signals import post_migrate
# South doesn't automatically load custom SQL like Django does, and regardless,
# the filename isn't what Django would expect.
def _load_custom_sql... |
6db982edae5e1cac2bc254651dd7264cd289130d | astropy/nddata/__init__.py | astropy/nddata/__init__.py | # Licensed under a 3-clause BSD style license - see LICENSE.rst
"""
The `astropy.nddata` subpackage provides the `~astropy.nddata.NDData`
class and related tools to manage n-dimensional array-based data (e.g.
CCD images, IFU Data, grid-based simulation data, ...). This is more than
just `numpy.ndarray` objects, becaus... | # Licensed under a 3-clause BSD style license - see LICENSE.rst
"""
The `astropy.nddata` subpackage provides the `~astropy.nddata.NDData`
class and related tools to manage n-dimensional array-based data (e.g.
CCD images, IFU Data, grid-based simulation data, ...). This is more than
just `numpy.ndarray` objects, becaus... | Add NDDataBase to package import | Add NDDataBase to package import
| Python | bsd-3-clause | mhvk/astropy,stargaser/astropy,funbaker/astropy,aleksandr-bakanov/astropy,kelle/astropy,AustereCuriosity/astropy,funbaker/astropy,larrybradley/astropy,joergdietrich/astropy,AustereCuriosity/astropy,aleksandr-bakanov/astropy,dhomeier/astropy,MSeifert04/astropy,larrybradley/astropy,stargaser/astropy,bsipocz/astropy,joerg... | # Licensed under a 3-clause BSD style license - see LICENSE.rst
"""
The `astropy.nddata` subpackage provides the `~astropy.nddata.NDData`
class and related tools to manage n-dimensional array-based data (e.g.
CCD images, IFU Data, grid-based simulation data, ...). This is more than
just `numpy.ndarray` objects, becaus... | # Licensed under a 3-clause BSD style license - see LICENSE.rst
"""
The `astropy.nddata` subpackage provides the `~astropy.nddata.NDData`
class and related tools to manage n-dimensional array-based data (e.g.
CCD images, IFU Data, grid-based simulation data, ...). This is more than
just `numpy.ndarray` objects, becaus... | <commit_before># Licensed under a 3-clause BSD style license - see LICENSE.rst
"""
The `astropy.nddata` subpackage provides the `~astropy.nddata.NDData`
class and related tools to manage n-dimensional array-based data (e.g.
CCD images, IFU Data, grid-based simulation data, ...). This is more than
just `numpy.ndarray` ... | # Licensed under a 3-clause BSD style license - see LICENSE.rst
"""
The `astropy.nddata` subpackage provides the `~astropy.nddata.NDData`
class and related tools to manage n-dimensional array-based data (e.g.
CCD images, IFU Data, grid-based simulation data, ...). This is more than
just `numpy.ndarray` objects, becaus... | # Licensed under a 3-clause BSD style license - see LICENSE.rst
"""
The `astropy.nddata` subpackage provides the `~astropy.nddata.NDData`
class and related tools to manage n-dimensional array-based data (e.g.
CCD images, IFU Data, grid-based simulation data, ...). This is more than
just `numpy.ndarray` objects, becaus... | <commit_before># Licensed under a 3-clause BSD style license - see LICENSE.rst
"""
The `astropy.nddata` subpackage provides the `~astropy.nddata.NDData`
class and related tools to manage n-dimensional array-based data (e.g.
CCD images, IFU Data, grid-based simulation data, ...). This is more than
just `numpy.ndarray` ... |
89f3aabf89357dae539fd31979b44c05bbdf5a05 | cas/log.py | cas/log.py | from __future__ import absolute_import
from cas.config import DEBUG
import logging
LOG = logging.getLogger()
if DEBUG:
logging.basicConfig()
LOG.setLevel(logging.DEBUG)
| from __future__ import absolute_import
from cas.config import DEBUG
import logging
LOG = logging.getLogger()
def enable_debug():
logging.basicConfig()
LOG.setLevel(logging.DEBUG)
if DEBUG:
enable_debug()
| Allow other parts of the lib to enable debugging | Allow other parts of the lib to enable debugging
| Python | bsd-3-clause | jcmcken/cas | from __future__ import absolute_import
from cas.config import DEBUG
import logging
LOG = logging.getLogger()
if DEBUG:
logging.basicConfig()
LOG.setLevel(logging.DEBUG)
Allow other parts of the lib to enable debugging | from __future__ import absolute_import
from cas.config import DEBUG
import logging
LOG = logging.getLogger()
def enable_debug():
logging.basicConfig()
LOG.setLevel(logging.DEBUG)
if DEBUG:
enable_debug()
| <commit_before>from __future__ import absolute_import
from cas.config import DEBUG
import logging
LOG = logging.getLogger()
if DEBUG:
logging.basicConfig()
LOG.setLevel(logging.DEBUG)
<commit_msg>Allow other parts of the lib to enable debugging<commit_after> | from __future__ import absolute_import
from cas.config import DEBUG
import logging
LOG = logging.getLogger()
def enable_debug():
logging.basicConfig()
LOG.setLevel(logging.DEBUG)
if DEBUG:
enable_debug()
| from __future__ import absolute_import
from cas.config import DEBUG
import logging
LOG = logging.getLogger()
if DEBUG:
logging.basicConfig()
LOG.setLevel(logging.DEBUG)
Allow other parts of the lib to enable debuggingfrom __future__ import absolute_import
from cas.config import DEBUG
import logging
LOG = l... | <commit_before>from __future__ import absolute_import
from cas.config import DEBUG
import logging
LOG = logging.getLogger()
if DEBUG:
logging.basicConfig()
LOG.setLevel(logging.DEBUG)
<commit_msg>Allow other parts of the lib to enable debugging<commit_after>from __future__ import absolute_import
from cas.co... |
4fbf3f6c70b2cde60ced0da0ebd47dbb5e14ce84 | plasmapy/physics/tests/test_dimensionless.py | plasmapy/physics/tests/test_dimensionless.py | from plasmapy.physics.dimensionless import (beta)
import astropy.units as u
import numpy as np
B = 1.0 * u.T
n = 5e19 * u.m ** -3
T = 1e6 * u.K
def test_beta_dimensionless():
# Check that beta is dimensionless
float(beta(T, n, B))
def quantum_theta_dimensionless():
# Check that quantum theta is dimens... | from plasmapy.physics.dimensionless import (beta)
import astropy.units as u
import numpy as np
B = 1.0 * u.T
n = 5e19 * u.m ** -3
T = 1e6 * u.K
def test_beta_dimensionless():
# Check that beta is dimensionless
float(beta(T, n, B))
def quantum_theta_dimensionless():
# Check that quantum theta is dimens... | Fix nan comparison in new dimensionless beta nan test | Fix nan comparison in new dimensionless beta nan test
| Python | bsd-3-clause | StanczakDominik/PlasmaPy | from plasmapy.physics.dimensionless import (beta)
import astropy.units as u
import numpy as np
B = 1.0 * u.T
n = 5e19 * u.m ** -3
T = 1e6 * u.K
def test_beta_dimensionless():
# Check that beta is dimensionless
float(beta(T, n, B))
def quantum_theta_dimensionless():
# Check that quantum theta is dimens... | from plasmapy.physics.dimensionless import (beta)
import astropy.units as u
import numpy as np
B = 1.0 * u.T
n = 5e19 * u.m ** -3
T = 1e6 * u.K
def test_beta_dimensionless():
# Check that beta is dimensionless
float(beta(T, n, B))
def quantum_theta_dimensionless():
# Check that quantum theta is dimens... | <commit_before>from plasmapy.physics.dimensionless import (beta)
import astropy.units as u
import numpy as np
B = 1.0 * u.T
n = 5e19 * u.m ** -3
T = 1e6 * u.K
def test_beta_dimensionless():
# Check that beta is dimensionless
float(beta(T, n, B))
def quantum_theta_dimensionless():
# Check that quantum ... | from plasmapy.physics.dimensionless import (beta)
import astropy.units as u
import numpy as np
B = 1.0 * u.T
n = 5e19 * u.m ** -3
T = 1e6 * u.K
def test_beta_dimensionless():
# Check that beta is dimensionless
float(beta(T, n, B))
def quantum_theta_dimensionless():
# Check that quantum theta is dimens... | from plasmapy.physics.dimensionless import (beta)
import astropy.units as u
import numpy as np
B = 1.0 * u.T
n = 5e19 * u.m ** -3
T = 1e6 * u.K
def test_beta_dimensionless():
# Check that beta is dimensionless
float(beta(T, n, B))
def quantum_theta_dimensionless():
# Check that quantum theta is dimens... | <commit_before>from plasmapy.physics.dimensionless import (beta)
import astropy.units as u
import numpy as np
B = 1.0 * u.T
n = 5e19 * u.m ** -3
T = 1e6 * u.K
def test_beta_dimensionless():
# Check that beta is dimensionless
float(beta(T, n, B))
def quantum_theta_dimensionless():
# Check that quantum ... |
e34b738ea28f98de2cc039a1c0a9a0b5478f7fac | viper/common/abstracts.py | viper/common/abstracts.py | # This file is part of Viper - https://github.com/botherder/viper
# See the file 'LICENSE' for copying permission.
import argparse
class ArgumentParser(argparse.ArgumentParser):
def error(self, message):
raise Exception('error: {}\n'.format(message))
class Module(object):
cmd = ''
description ... | # This file is part of Viper - https://github.com/botherder/viper
# See the file 'LICENSE' for copying permission.
import argparse
class ArgumentErrorCallback(Exception):
def __init__(self, message, level=''):
self.message = message.strip() + '\n'
self.level = level.strip()
def __str__(self... | Improve the error handling, better use of ArgumentParser. | Improve the error handling, better use of ArgumentParser.
| Python | bsd-3-clause | jack51706/viper,Beercow/viper,kevthehermit/viper,S2R2/viper,jorik041/viper,postfix/viper-1,cwtaylor/viper,postfix/viper-1,jack51706/viper,kevthehermit/viper,MeteorAdminz/viper,jahrome/viper,jahrome/viper,Beercow/viper,Beercow/viper,MeteorAdminz/viper,S2R2/viper,cwtaylor/viper,jorik041/viper | # This file is part of Viper - https://github.com/botherder/viper
# See the file 'LICENSE' for copying permission.
import argparse
class ArgumentParser(argparse.ArgumentParser):
def error(self, message):
raise Exception('error: {}\n'.format(message))
class Module(object):
cmd = ''
description ... | # This file is part of Viper - https://github.com/botherder/viper
# See the file 'LICENSE' for copying permission.
import argparse
class ArgumentErrorCallback(Exception):
def __init__(self, message, level=''):
self.message = message.strip() + '\n'
self.level = level.strip()
def __str__(self... | <commit_before># This file is part of Viper - https://github.com/botherder/viper
# See the file 'LICENSE' for copying permission.
import argparse
class ArgumentParser(argparse.ArgumentParser):
def error(self, message):
raise Exception('error: {}\n'.format(message))
class Module(object):
cmd = ''
... | # This file is part of Viper - https://github.com/botherder/viper
# See the file 'LICENSE' for copying permission.
import argparse
class ArgumentErrorCallback(Exception):
def __init__(self, message, level=''):
self.message = message.strip() + '\n'
self.level = level.strip()
def __str__(self... | # This file is part of Viper - https://github.com/botherder/viper
# See the file 'LICENSE' for copying permission.
import argparse
class ArgumentParser(argparse.ArgumentParser):
def error(self, message):
raise Exception('error: {}\n'.format(message))
class Module(object):
cmd = ''
description ... | <commit_before># This file is part of Viper - https://github.com/botherder/viper
# See the file 'LICENSE' for copying permission.
import argparse
class ArgumentParser(argparse.ArgumentParser):
def error(self, message):
raise Exception('error: {}\n'.format(message))
class Module(object):
cmd = ''
... |
e3edaa6a1a970b266a7411dcadbf86dccb5d8234 | tests/run.py | tests/run.py | import os
import sys
import dj_database_url
import django
from colour_runner.django_runner import ColourRunnerMixin
from django.conf import settings
from django.test.runner import DiscoverRunner
BASEDIR = os.path.dirname(os.path.dirname(__file__))
settings.configure(
DATABASES={
'default': dj_database_u... | import os
import sys
import dj_database_url
import django
from colour_runner.django_runner import ColourRunnerMixin
from django.conf import settings
from django.test.runner import DiscoverRunner
BASEDIR = os.path.dirname(os.path.dirname(__file__))
settings.configure(
DATABASES={
'default': dj_database_u... | Remove if branch to test django > 1.7 | Remove if branch to test django > 1.7
| Python | bsd-2-clause | incuna/django-user-deletion | import os
import sys
import dj_database_url
import django
from colour_runner.django_runner import ColourRunnerMixin
from django.conf import settings
from django.test.runner import DiscoverRunner
BASEDIR = os.path.dirname(os.path.dirname(__file__))
settings.configure(
DATABASES={
'default': dj_database_u... | import os
import sys
import dj_database_url
import django
from colour_runner.django_runner import ColourRunnerMixin
from django.conf import settings
from django.test.runner import DiscoverRunner
BASEDIR = os.path.dirname(os.path.dirname(__file__))
settings.configure(
DATABASES={
'default': dj_database_u... | <commit_before>import os
import sys
import dj_database_url
import django
from colour_runner.django_runner import ColourRunnerMixin
from django.conf import settings
from django.test.runner import DiscoverRunner
BASEDIR = os.path.dirname(os.path.dirname(__file__))
settings.configure(
DATABASES={
'default'... | import os
import sys
import dj_database_url
import django
from colour_runner.django_runner import ColourRunnerMixin
from django.conf import settings
from django.test.runner import DiscoverRunner
BASEDIR = os.path.dirname(os.path.dirname(__file__))
settings.configure(
DATABASES={
'default': dj_database_u... | import os
import sys
import dj_database_url
import django
from colour_runner.django_runner import ColourRunnerMixin
from django.conf import settings
from django.test.runner import DiscoverRunner
BASEDIR = os.path.dirname(os.path.dirname(__file__))
settings.configure(
DATABASES={
'default': dj_database_u... | <commit_before>import os
import sys
import dj_database_url
import django
from colour_runner.django_runner import ColourRunnerMixin
from django.conf import settings
from django.test.runner import DiscoverRunner
BASEDIR = os.path.dirname(os.path.dirname(__file__))
settings.configure(
DATABASES={
'default'... |
8c3fecb4fc3a2787d6c7c6a5ce015c9e01941e3d | src/dynmen/__init__.py | src/dynmen/__init__.py | # -*- coding: utf-8 -*-
from .menu import Menu, MenuError
del menu
| # -*- coding: utf-8 -*-
from .menu import Menu, MenuError
del menu
def new_dmenu(**kwargs):
from .dmenu import DMenu
return DMenu(**kwargs)
def new_rofi(**kwargs):
from .rofi import Rofi
return Rofi(**kwargs)
| Add factory functions for dmenu and rofi in root dynmen file | Add factory functions for dmenu and rofi in root dynmen file
| Python | mit | frostidaho/dynmen | # -*- coding: utf-8 -*-
from .menu import Menu, MenuError
del menu
Add factory functions for dmenu and rofi in root dynmen file | # -*- coding: utf-8 -*-
from .menu import Menu, MenuError
del menu
def new_dmenu(**kwargs):
from .dmenu import DMenu
return DMenu(**kwargs)
def new_rofi(**kwargs):
from .rofi import Rofi
return Rofi(**kwargs)
| <commit_before># -*- coding: utf-8 -*-
from .menu import Menu, MenuError
del menu
<commit_msg>Add factory functions for dmenu and rofi in root dynmen file<commit_after> | # -*- coding: utf-8 -*-
from .menu import Menu, MenuError
del menu
def new_dmenu(**kwargs):
from .dmenu import DMenu
return DMenu(**kwargs)
def new_rofi(**kwargs):
from .rofi import Rofi
return Rofi(**kwargs)
| # -*- coding: utf-8 -*-
from .menu import Menu, MenuError
del menu
Add factory functions for dmenu and rofi in root dynmen file# -*- coding: utf-8 -*-
from .menu import Menu, MenuError
del menu
def new_dmenu(**kwargs):
from .dmenu import DMenu
return DMenu(**kwargs)
def new_rofi(**kwargs):
from .rofi imp... | <commit_before># -*- coding: utf-8 -*-
from .menu import Menu, MenuError
del menu
<commit_msg>Add factory functions for dmenu and rofi in root dynmen file<commit_after># -*- coding: utf-8 -*-
from .menu import Menu, MenuError
del menu
def new_dmenu(**kwargs):
from .dmenu import DMenu
return DMenu(**kwargs)
d... |
ee80818b8ff12cd351581b4c1652e64561d34a4c | rest_framework_simplejwt/token_blacklist/models.py | rest_framework_simplejwt/token_blacklist/models.py | from django.contrib.auth import get_user_model
from django.db import models
from django.utils.six import python_2_unicode_compatible
User = get_user_model()
@python_2_unicode_compatible
class OutstandingToken(models.Model):
user = models.ForeignKey(User, on_delete=models.CASCADE)
jti = models.UUIDField(uni... | from django.conf import settings
from django.db import models
from django.utils.six import python_2_unicode_compatible
@python_2_unicode_compatible
class OutstandingToken(models.Model):
user = models.ForeignKey(settings.AUTH_USER_MODEL, on_delete=models.CASCADE)
jti = models.UUIDField(unique=True)
token ... | Fix broken tests in 1.8-1.10 | Fix broken tests in 1.8-1.10
| Python | mit | davesque/django-rest-framework-simplejwt,davesque/django-rest-framework-simplejwt | from django.contrib.auth import get_user_model
from django.db import models
from django.utils.six import python_2_unicode_compatible
User = get_user_model()
@python_2_unicode_compatible
class OutstandingToken(models.Model):
user = models.ForeignKey(User, on_delete=models.CASCADE)
jti = models.UUIDField(uni... | from django.conf import settings
from django.db import models
from django.utils.six import python_2_unicode_compatible
@python_2_unicode_compatible
class OutstandingToken(models.Model):
user = models.ForeignKey(settings.AUTH_USER_MODEL, on_delete=models.CASCADE)
jti = models.UUIDField(unique=True)
token ... | <commit_before>from django.contrib.auth import get_user_model
from django.db import models
from django.utils.six import python_2_unicode_compatible
User = get_user_model()
@python_2_unicode_compatible
class OutstandingToken(models.Model):
user = models.ForeignKey(User, on_delete=models.CASCADE)
jti = model... | from django.conf import settings
from django.db import models
from django.utils.six import python_2_unicode_compatible
@python_2_unicode_compatible
class OutstandingToken(models.Model):
user = models.ForeignKey(settings.AUTH_USER_MODEL, on_delete=models.CASCADE)
jti = models.UUIDField(unique=True)
token ... | from django.contrib.auth import get_user_model
from django.db import models
from django.utils.six import python_2_unicode_compatible
User = get_user_model()
@python_2_unicode_compatible
class OutstandingToken(models.Model):
user = models.ForeignKey(User, on_delete=models.CASCADE)
jti = models.UUIDField(uni... | <commit_before>from django.contrib.auth import get_user_model
from django.db import models
from django.utils.six import python_2_unicode_compatible
User = get_user_model()
@python_2_unicode_compatible
class OutstandingToken(models.Model):
user = models.ForeignKey(User, on_delete=models.CASCADE)
jti = model... |
3aecc94e0e84c5cc4944e04a06574329ce684f9d | tests/__init__.py | tests/__init__.py | from pycassa.system_manager import *
TEST_KS = 'PycassaTestKeyspace'
def setup_package():
sys = SystemManager()
if TEST_KS in sys.list_keyspaces():
sys.drop_keyspace(TEST_KS)
try:
sys.create_keyspace(TEST_KS, 1)
sys.create_column_family(TEST_KS, 'Standard1')
sys.create_colu... | from pycassa.system_manager import *
from pycassa.cassandra.constants import *
TEST_KS = 'PycassaTestKeyspace'
def setup_package():
sys = SystemManager()
if TEST_KS in sys.list_keyspaces():
sys.drop_keyspace(TEST_KS)
try:
sys.create_keyspace(TEST_KS, 1)
sys.create_column_family(TES... | Create counter CFs for tests if version > 0.7 | Create counter CFs for tests if version > 0.7
| Python | mit | pycassa/pycassa,pycassa/pycassa | from pycassa.system_manager import *
TEST_KS = 'PycassaTestKeyspace'
def setup_package():
sys = SystemManager()
if TEST_KS in sys.list_keyspaces():
sys.drop_keyspace(TEST_KS)
try:
sys.create_keyspace(TEST_KS, 1)
sys.create_column_family(TEST_KS, 'Standard1')
sys.create_colu... | from pycassa.system_manager import *
from pycassa.cassandra.constants import *
TEST_KS = 'PycassaTestKeyspace'
def setup_package():
sys = SystemManager()
if TEST_KS in sys.list_keyspaces():
sys.drop_keyspace(TEST_KS)
try:
sys.create_keyspace(TEST_KS, 1)
sys.create_column_family(TES... | <commit_before>from pycassa.system_manager import *
TEST_KS = 'PycassaTestKeyspace'
def setup_package():
sys = SystemManager()
if TEST_KS in sys.list_keyspaces():
sys.drop_keyspace(TEST_KS)
try:
sys.create_keyspace(TEST_KS, 1)
sys.create_column_family(TEST_KS, 'Standard1')
... | from pycassa.system_manager import *
from pycassa.cassandra.constants import *
TEST_KS = 'PycassaTestKeyspace'
def setup_package():
sys = SystemManager()
if TEST_KS in sys.list_keyspaces():
sys.drop_keyspace(TEST_KS)
try:
sys.create_keyspace(TEST_KS, 1)
sys.create_column_family(TES... | from pycassa.system_manager import *
TEST_KS = 'PycassaTestKeyspace'
def setup_package():
sys = SystemManager()
if TEST_KS in sys.list_keyspaces():
sys.drop_keyspace(TEST_KS)
try:
sys.create_keyspace(TEST_KS, 1)
sys.create_column_family(TEST_KS, 'Standard1')
sys.create_colu... | <commit_before>from pycassa.system_manager import *
TEST_KS = 'PycassaTestKeyspace'
def setup_package():
sys = SystemManager()
if TEST_KS in sys.list_keyspaces():
sys.drop_keyspace(TEST_KS)
try:
sys.create_keyspace(TEST_KS, 1)
sys.create_column_family(TEST_KS, 'Standard1')
... |
ca15f2d991d4d35f1dfc194bfa81c99504574e15 | wagtail/contrib/simple_translation/apps.py | wagtail/contrib/simple_translation/apps.py | from django.apps import AppConfig
from django.utils.translation import gettext_lazy as _
class SimpleTranslationAppConfig(AppConfig):
name = "wagtail.contrib.simple_translation"
label = "simple_translation"
verbose_name = _("Wagtail simple translation")
| from django.apps import AppConfig
from django.utils.translation import gettext_lazy as _
class SimpleTranslationAppConfig(AppConfig):
name = "wagtail.contrib.simple_translation"
label = "simple_translation"
verbose_name = _("Wagtail simple translation")
default_auto_field = 'django.db.models.AutoField... | Set default_auto_field on simple_translation app config | Set default_auto_field on simple_translation app config
Prevents the warning "simple_translation.SimpleTranslation: (models.W042) Auto-created primary key used when not defining a primary key type, by default 'django.db.models.AutoField'." when running under Django 3.2.
| Python | bsd-3-clause | wagtail/wagtail,rsalmaso/wagtail,mixxorz/wagtail,zerolab/wagtail,wagtail/wagtail,jnns/wagtail,wagtail/wagtail,mixxorz/wagtail,jnns/wagtail,torchbox/wagtail,torchbox/wagtail,gasman/wagtail,gasman/wagtail,thenewguy/wagtail,gasman/wagtail,wagtail/wagtail,rsalmaso/wagtail,mixxorz/wagtail,torchbox/wagtail,mixxorz/wagtail,rs... | from django.apps import AppConfig
from django.utils.translation import gettext_lazy as _
class SimpleTranslationAppConfig(AppConfig):
name = "wagtail.contrib.simple_translation"
label = "simple_translation"
verbose_name = _("Wagtail simple translation")
Set default_auto_field on simple_translation app con... | from django.apps import AppConfig
from django.utils.translation import gettext_lazy as _
class SimpleTranslationAppConfig(AppConfig):
name = "wagtail.contrib.simple_translation"
label = "simple_translation"
verbose_name = _("Wagtail simple translation")
default_auto_field = 'django.db.models.AutoField... | <commit_before>from django.apps import AppConfig
from django.utils.translation import gettext_lazy as _
class SimpleTranslationAppConfig(AppConfig):
name = "wagtail.contrib.simple_translation"
label = "simple_translation"
verbose_name = _("Wagtail simple translation")
<commit_msg>Set default_auto_field on... | from django.apps import AppConfig
from django.utils.translation import gettext_lazy as _
class SimpleTranslationAppConfig(AppConfig):
name = "wagtail.contrib.simple_translation"
label = "simple_translation"
verbose_name = _("Wagtail simple translation")
default_auto_field = 'django.db.models.AutoField... | from django.apps import AppConfig
from django.utils.translation import gettext_lazy as _
class SimpleTranslationAppConfig(AppConfig):
name = "wagtail.contrib.simple_translation"
label = "simple_translation"
verbose_name = _("Wagtail simple translation")
Set default_auto_field on simple_translation app con... | <commit_before>from django.apps import AppConfig
from django.utils.translation import gettext_lazy as _
class SimpleTranslationAppConfig(AppConfig):
name = "wagtail.contrib.simple_translation"
label = "simple_translation"
verbose_name = _("Wagtail simple translation")
<commit_msg>Set default_auto_field on... |
1e5fb3c13922944ce2126820bfd5c806e0b1c93f | gertty/view/__init__.py | gertty/view/__init__.py | # Copyright 2014 OpenStack Foundation
#
# 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... | # Copyright 2014 OpenStack Foundation
#
# 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... | Add message attribute to DisplayError | Add message attribute to DisplayError
The .message attribute was dropped from the base exception class
in py3. Since we use it, set it directly.
Change-Id: I27124c6d00216b335351ef6985ddf869f2fd1366
| Python | apache-2.0 | openstack/gertty,stackforge/gertty | # Copyright 2014 OpenStack Foundation
#
# 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... | # Copyright 2014 OpenStack Foundation
#
# 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... | <commit_before># Copyright 2014 OpenStack Foundation
#
# 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 ... | # Copyright 2014 OpenStack Foundation
#
# 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... | # Copyright 2014 OpenStack Foundation
#
# 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... | <commit_before># Copyright 2014 OpenStack Foundation
#
# 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 ... |
4f1359041562108be15fdac7a7b1a7374ef359d6 | player.py | player.py |
class Player:
def betRequest(self, game_state):
return 453
def showdown(self, game_state):
pass
|
class Player:
def betRequest(self, game_state):
return 0
def showdown(self, game_state):
pass
| Set default response to 0 | Set default response to 0
| Python | mit | handriss/poker-player-leanear-snakes,yetanotherape/poker-player-vostok,r0mai/poker-player-rainbow-dash,devill/poker-player-deep-poker,szepnapot/poker-player-pypoker,shparutask/poker-player-wise-kaa-2,karpikpl/poker-player-cpp,gaborbernat/poker-player-so-deal-with-it,NathanH581/poker-player-nottingting,Yarmorgun/poker-p... |
class Player:
def betRequest(self, game_state):
return 453
def showdown(self, game_state):
pass
Set default response to 0 |
class Player:
def betRequest(self, game_state):
return 0
def showdown(self, game_state):
pass
| <commit_before>
class Player:
def betRequest(self, game_state):
return 453
def showdown(self, game_state):
pass
<commit_msg>Set default response to 0<commit_after> |
class Player:
def betRequest(self, game_state):
return 0
def showdown(self, game_state):
pass
|
class Player:
def betRequest(self, game_state):
return 453
def showdown(self, game_state):
pass
Set default response to 0
class Player:
def betRequest(self, game_state):
return 0
def showdown(self, game_state):
pass
| <commit_before>
class Player:
def betRequest(self, game_state):
return 453
def showdown(self, game_state):
pass
<commit_msg>Set default response to 0<commit_after>
class Player:
def betRequest(self, game_state):
return 0
def showdown(self, game_state):
pass
|
40d0b5d2d86de6954b93fa90d7a04a84e9e2248b | tests/conftest.py | tests/conftest.py |
import pytest
import pathlib
import json
import app.mapping
mappings_dir = (pathlib.Path(__file__).parent / "../mappings").resolve()
services_mappings = (
"services",
)
@pytest.fixture(scope="module", params=services_mappings)
def services_mapping_file_name_and_path(request):
return (request.param, mappin... |
import pytest
import pathlib
import json
import app.mapping
mappings_dir = (pathlib.Path(__file__).parent / "../mappings").resolve()
services_mappings = (
"services-g-cloud-10",
)
@pytest.fixture(scope="module", params=services_mappings)
def services_mapping_file_name_and_path(request):
return (request.pa... | Use g-cloud-10 services mapping for tests | Use g-cloud-10 services mapping for tests
| Python | mit | alphagov/digitalmarketplace-search-api,alphagov/digitalmarketplace-search-api |
import pytest
import pathlib
import json
import app.mapping
mappings_dir = (pathlib.Path(__file__).parent / "../mappings").resolve()
services_mappings = (
"services",
)
@pytest.fixture(scope="module", params=services_mappings)
def services_mapping_file_name_and_path(request):
return (request.param, mappin... |
import pytest
import pathlib
import json
import app.mapping
mappings_dir = (pathlib.Path(__file__).parent / "../mappings").resolve()
services_mappings = (
"services-g-cloud-10",
)
@pytest.fixture(scope="module", params=services_mappings)
def services_mapping_file_name_and_path(request):
return (request.pa... | <commit_before>
import pytest
import pathlib
import json
import app.mapping
mappings_dir = (pathlib.Path(__file__).parent / "../mappings").resolve()
services_mappings = (
"services",
)
@pytest.fixture(scope="module", params=services_mappings)
def services_mapping_file_name_and_path(request):
return (reques... |
import pytest
import pathlib
import json
import app.mapping
mappings_dir = (pathlib.Path(__file__).parent / "../mappings").resolve()
services_mappings = (
"services-g-cloud-10",
)
@pytest.fixture(scope="module", params=services_mappings)
def services_mapping_file_name_and_path(request):
return (request.pa... |
import pytest
import pathlib
import json
import app.mapping
mappings_dir = (pathlib.Path(__file__).parent / "../mappings").resolve()
services_mappings = (
"services",
)
@pytest.fixture(scope="module", params=services_mappings)
def services_mapping_file_name_and_path(request):
return (request.param, mappin... | <commit_before>
import pytest
import pathlib
import json
import app.mapping
mappings_dir = (pathlib.Path(__file__).parent / "../mappings").resolve()
services_mappings = (
"services",
)
@pytest.fixture(scope="module", params=services_mappings)
def services_mapping_file_name_and_path(request):
return (reques... |
148dccb227baf6c95406fcdd0f88a77e7284c10c | catkin/src/rfreceiver/scripts/sender.py | catkin/src/rfreceiver/scripts/sender.py | #!/usr/bin/env python
import rospy
import serial
from std_msgs.msg import Byte
def main():
buttondown_pub = rospy.Publisher('/rfreceiver/buttondown', Byte, queue_size = 1)
rospy.init_node('rfreceiver')
receiver = serial.Serial('/dev/ttyACM0', 9600)
buf = ''
while not rospy.is_shutdown():
try:
m... | #!/usr/bin/env python
import os
import rospy
import serial
import subprocess
from std_msgs.msg import Byte
DEVNULL = open(os.devnull, 'w')
CLEAR_BUTTON = 2
def main():
buttondown_pub = rospy.Publisher(
'/rfreceiver/buttondown',
Byte,
queue_size = 1
)
rospy.init_node('rfreceiver')
receiver = seri... | Add relaunch to rfreceiver node | Add relaunch to rfreceiver node
| Python | apache-2.0 | EndPointCorp/appctl,EndPointCorp/appctl | #!/usr/bin/env python
import rospy
import serial
from std_msgs.msg import Byte
def main():
buttondown_pub = rospy.Publisher('/rfreceiver/buttondown', Byte, queue_size = 1)
rospy.init_node('rfreceiver')
receiver = serial.Serial('/dev/ttyACM0', 9600)
buf = ''
while not rospy.is_shutdown():
try:
m... | #!/usr/bin/env python
import os
import rospy
import serial
import subprocess
from std_msgs.msg import Byte
DEVNULL = open(os.devnull, 'w')
CLEAR_BUTTON = 2
def main():
buttondown_pub = rospy.Publisher(
'/rfreceiver/buttondown',
Byte,
queue_size = 1
)
rospy.init_node('rfreceiver')
receiver = seri... | <commit_before>#!/usr/bin/env python
import rospy
import serial
from std_msgs.msg import Byte
def main():
buttondown_pub = rospy.Publisher('/rfreceiver/buttondown', Byte, queue_size = 1)
rospy.init_node('rfreceiver')
receiver = serial.Serial('/dev/ttyACM0', 9600)
buf = ''
while not rospy.is_shutdown():
... | #!/usr/bin/env python
import os
import rospy
import serial
import subprocess
from std_msgs.msg import Byte
DEVNULL = open(os.devnull, 'w')
CLEAR_BUTTON = 2
def main():
buttondown_pub = rospy.Publisher(
'/rfreceiver/buttondown',
Byte,
queue_size = 1
)
rospy.init_node('rfreceiver')
receiver = seri... | #!/usr/bin/env python
import rospy
import serial
from std_msgs.msg import Byte
def main():
buttondown_pub = rospy.Publisher('/rfreceiver/buttondown', Byte, queue_size = 1)
rospy.init_node('rfreceiver')
receiver = serial.Serial('/dev/ttyACM0', 9600)
buf = ''
while not rospy.is_shutdown():
try:
m... | <commit_before>#!/usr/bin/env python
import rospy
import serial
from std_msgs.msg import Byte
def main():
buttondown_pub = rospy.Publisher('/rfreceiver/buttondown', Byte, queue_size = 1)
rospy.init_node('rfreceiver')
receiver = serial.Serial('/dev/ttyACM0', 9600)
buf = ''
while not rospy.is_shutdown():
... |
8ca841f2cc30e13cbefcc10e0b2ae669c8aed23f | pythonforandroid/recipes/libnacl/__init__.py | pythonforandroid/recipes/libnacl/__init__.py | from pythonforandroid.toolchain import PythonRecipe
class LibNaClRecipe(PythonRecipe):
version = '1.4.4'
url = 'https://github.com/saltstack/libnacl/archive/v{version}.tar.gz'
depends = ['hostpython2', 'setuptools']
site_packages_name = 'libnacl'
call_hostpython_via_targetpython = False
recipe = L... | from pythonforandroid.toolchain import PythonRecipe
class LibNaClRecipe(PythonRecipe):
version = '1.4.4'
url = 'https://github.com/saltstack/libnacl/archive/v{version}.tar.gz'
depends = ['hostpython2', 'setuptools', 'libsodium']
site_packages_name = 'libnacl'
call_hostpython_via_targetpython = Fals... | Fix libnacl recipe missing libsodium | Fix libnacl recipe missing libsodium
| Python | mit | kivy/python-for-android,germn/python-for-android,germn/python-for-android,rnixx/python-for-android,germn/python-for-android,germn/python-for-android,kivy/python-for-android,rnixx/python-for-android,kronenpj/python-for-android,kivy/python-for-android,PKRoma/python-for-android,rnixx/python-for-android,kronenpj/python-for... | from pythonforandroid.toolchain import PythonRecipe
class LibNaClRecipe(PythonRecipe):
version = '1.4.4'
url = 'https://github.com/saltstack/libnacl/archive/v{version}.tar.gz'
depends = ['hostpython2', 'setuptools']
site_packages_name = 'libnacl'
call_hostpython_via_targetpython = False
recipe = L... | from pythonforandroid.toolchain import PythonRecipe
class LibNaClRecipe(PythonRecipe):
version = '1.4.4'
url = 'https://github.com/saltstack/libnacl/archive/v{version}.tar.gz'
depends = ['hostpython2', 'setuptools', 'libsodium']
site_packages_name = 'libnacl'
call_hostpython_via_targetpython = Fals... | <commit_before>from pythonforandroid.toolchain import PythonRecipe
class LibNaClRecipe(PythonRecipe):
version = '1.4.4'
url = 'https://github.com/saltstack/libnacl/archive/v{version}.tar.gz'
depends = ['hostpython2', 'setuptools']
site_packages_name = 'libnacl'
call_hostpython_via_targetpython = Fa... | from pythonforandroid.toolchain import PythonRecipe
class LibNaClRecipe(PythonRecipe):
version = '1.4.4'
url = 'https://github.com/saltstack/libnacl/archive/v{version}.tar.gz'
depends = ['hostpython2', 'setuptools', 'libsodium']
site_packages_name = 'libnacl'
call_hostpython_via_targetpython = Fals... | from pythonforandroid.toolchain import PythonRecipe
class LibNaClRecipe(PythonRecipe):
version = '1.4.4'
url = 'https://github.com/saltstack/libnacl/archive/v{version}.tar.gz'
depends = ['hostpython2', 'setuptools']
site_packages_name = 'libnacl'
call_hostpython_via_targetpython = False
recipe = L... | <commit_before>from pythonforandroid.toolchain import PythonRecipe
class LibNaClRecipe(PythonRecipe):
version = '1.4.4'
url = 'https://github.com/saltstack/libnacl/archive/v{version}.tar.gz'
depends = ['hostpython2', 'setuptools']
site_packages_name = 'libnacl'
call_hostpython_via_targetpython = Fa... |
2059d6ac5478f1e8fa5adc1a00c77c9f74892940 | tests/test_sst.py | tests/test_sst.py | import unittest
import pandas as pd
from banpei.sst import SST
class TestSST(unittest.TestCase):
def setUp(self):
self.raw_data = pd.read_csv('tests/test_data/periodic_wave.csv')
self.data = self.raw_data['y']
def test_detect(self):
model = SST(w=50)
results = model.detect(se... | import unittest
import pandas as pd
from banpei.sst import SST
class TestSST(unittest.TestCase):
def setUp(self):
self.raw_data = pd.read_csv('tests/test_data/periodic_wave.csv')
self.data = self.raw_data['y']
def test_detect_by_svd(self):
model = SST(w=50)
results = model.de... | Add test of detection using lanczos method | Add test of detection using lanczos method
| Python | mit | tsurubee/banpei | import unittest
import pandas as pd
from banpei.sst import SST
class TestSST(unittest.TestCase):
def setUp(self):
self.raw_data = pd.read_csv('tests/test_data/periodic_wave.csv')
self.data = self.raw_data['y']
def test_detect(self):
model = SST(w=50)
results = model.detect(se... | import unittest
import pandas as pd
from banpei.sst import SST
class TestSST(unittest.TestCase):
def setUp(self):
self.raw_data = pd.read_csv('tests/test_data/periodic_wave.csv')
self.data = self.raw_data['y']
def test_detect_by_svd(self):
model = SST(w=50)
results = model.de... | <commit_before>import unittest
import pandas as pd
from banpei.sst import SST
class TestSST(unittest.TestCase):
def setUp(self):
self.raw_data = pd.read_csv('tests/test_data/periodic_wave.csv')
self.data = self.raw_data['y']
def test_detect(self):
model = SST(w=50)
results = ... | import unittest
import pandas as pd
from banpei.sst import SST
class TestSST(unittest.TestCase):
def setUp(self):
self.raw_data = pd.read_csv('tests/test_data/periodic_wave.csv')
self.data = self.raw_data['y']
def test_detect_by_svd(self):
model = SST(w=50)
results = model.de... | import unittest
import pandas as pd
from banpei.sst import SST
class TestSST(unittest.TestCase):
def setUp(self):
self.raw_data = pd.read_csv('tests/test_data/periodic_wave.csv')
self.data = self.raw_data['y']
def test_detect(self):
model = SST(w=50)
results = model.detect(se... | <commit_before>import unittest
import pandas as pd
from banpei.sst import SST
class TestSST(unittest.TestCase):
def setUp(self):
self.raw_data = pd.read_csv('tests/test_data/periodic_wave.csv')
self.data = self.raw_data['y']
def test_detect(self):
model = SST(w=50)
results = ... |
ca0e1cc8c2454b67e7dadceb009b9fa49821f903 | tests/sensors/test_sensors.py | tests/sensors/test_sensors.py | import pytest
import six
from tilezilla import sensors
def test_friendly_names_data():
# Test this variable is dict
# Should contain [SENSOR (str)]:[MAPPING (dict)]
# where:
# MAPPING is a dict of [friendly_name (str)]:[band id (int)]
assert isinstance(sensors.SENSOR_FRIENDLY_NAMES, dict)
s... | import six
from tilezilla import sensors
def test_friendly_names_data():
# Test this variable is dict
# Should contain [SENSOR (str)]:[MAPPING (dict)]
# where:
# MAPPING is a dict of [friendly_name (str)]:[band id (int)]
assert isinstance(sensors.SENSOR_FRIENDLY_NAMES, dict)
sensor_names = ... | Fix string type comparison for py2 | Fix string type comparison for py2
| Python | bsd-3-clause | ceholden/landsat_tile,ceholden/landsat_tiles,ceholden/landsat_tile,ceholden/tilezilla,ceholden/landsat_tiles | import pytest
import six
from tilezilla import sensors
def test_friendly_names_data():
# Test this variable is dict
# Should contain [SENSOR (str)]:[MAPPING (dict)]
# where:
# MAPPING is a dict of [friendly_name (str)]:[band id (int)]
assert isinstance(sensors.SENSOR_FRIENDLY_NAMES, dict)
s... | import six
from tilezilla import sensors
def test_friendly_names_data():
# Test this variable is dict
# Should contain [SENSOR (str)]:[MAPPING (dict)]
# where:
# MAPPING is a dict of [friendly_name (str)]:[band id (int)]
assert isinstance(sensors.SENSOR_FRIENDLY_NAMES, dict)
sensor_names = ... | <commit_before>import pytest
import six
from tilezilla import sensors
def test_friendly_names_data():
# Test this variable is dict
# Should contain [SENSOR (str)]:[MAPPING (dict)]
# where:
# MAPPING is a dict of [friendly_name (str)]:[band id (int)]
assert isinstance(sensors.SENSOR_FRIENDLY_NAM... | import six
from tilezilla import sensors
def test_friendly_names_data():
# Test this variable is dict
# Should contain [SENSOR (str)]:[MAPPING (dict)]
# where:
# MAPPING is a dict of [friendly_name (str)]:[band id (int)]
assert isinstance(sensors.SENSOR_FRIENDLY_NAMES, dict)
sensor_names = ... | import pytest
import six
from tilezilla import sensors
def test_friendly_names_data():
# Test this variable is dict
# Should contain [SENSOR (str)]:[MAPPING (dict)]
# where:
# MAPPING is a dict of [friendly_name (str)]:[band id (int)]
assert isinstance(sensors.SENSOR_FRIENDLY_NAMES, dict)
s... | <commit_before>import pytest
import six
from tilezilla import sensors
def test_friendly_names_data():
# Test this variable is dict
# Should contain [SENSOR (str)]:[MAPPING (dict)]
# where:
# MAPPING is a dict of [friendly_name (str)]:[band id (int)]
assert isinstance(sensors.SENSOR_FRIENDLY_NAM... |
5f27cda0e0cc51022467b88cb8189411d5378cb4 | anki-blitz.py | anki-blitz.py | # -*- coding: utf-8 -*-
# Blitz speed reading trainer add-on for Anki
#
# Copyright (C) 2016 Jakub Szypulka, Dave Shifflett
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 o... | # -*- coding: utf-8 -*-
# Blitz speed reading trainer add-on for Anki
#
# Copyright (C) 2016 Jakub Szypulka, Dave Shifflett
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 o... | Adjust default times to 1.5 and 5 seconds | Adjust default times to 1.5 and 5 seconds
| Python | mit | jaksz/anki-blitz | # -*- coding: utf-8 -*-
# Blitz speed reading trainer add-on for Anki
#
# Copyright (C) 2016 Jakub Szypulka, Dave Shifflett
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 o... | # -*- coding: utf-8 -*-
# Blitz speed reading trainer add-on for Anki
#
# Copyright (C) 2016 Jakub Szypulka, Dave Shifflett
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 o... | <commit_before># -*- coding: utf-8 -*-
# Blitz speed reading trainer add-on for Anki
#
# Copyright (C) 2016 Jakub Szypulka, Dave Shifflett
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, eit... | # -*- coding: utf-8 -*-
# Blitz speed reading trainer add-on for Anki
#
# Copyright (C) 2016 Jakub Szypulka, Dave Shifflett
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 o... | # -*- coding: utf-8 -*-
# Blitz speed reading trainer add-on for Anki
#
# Copyright (C) 2016 Jakub Szypulka, Dave Shifflett
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 o... | <commit_before># -*- coding: utf-8 -*-
# Blitz speed reading trainer add-on for Anki
#
# Copyright (C) 2016 Jakub Szypulka, Dave Shifflett
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, eit... |
f7669792c1468d4d307d26bb963496de44a8a932 | tsstats/config.py | tsstats/config.py | # -*- coding: utf-8 -*-
try:
from configparser import RawConfigParser
except ImportError:
from ConfigParser import RawConfigParser
import logging
logger = logging.getLogger('tsstats')
DEFAULT_CONFIG = {
'General': {
'debug': False,
'log': '',
'output': 'output.html',
'id... | # -*- coding: utf-8 -*-
try:
from configparser import RawConfigParser
except ImportError:
from ConfigParser import RawConfigParser
import logging
logger = logging.getLogger('tsstats')
DEFAULT_CONFIG = {
'General': {
'debug': False,
'log': '',
'output': 'tsstats.html',
'i... | Set default for General.output to tsstats.html | Set default for General.output to tsstats.html
| Python | mit | Thor77/TeamspeakStats,Thor77/TeamspeakStats | # -*- coding: utf-8 -*-
try:
from configparser import RawConfigParser
except ImportError:
from ConfigParser import RawConfigParser
import logging
logger = logging.getLogger('tsstats')
DEFAULT_CONFIG = {
'General': {
'debug': False,
'log': '',
'output': 'output.html',
'id... | # -*- coding: utf-8 -*-
try:
from configparser import RawConfigParser
except ImportError:
from ConfigParser import RawConfigParser
import logging
logger = logging.getLogger('tsstats')
DEFAULT_CONFIG = {
'General': {
'debug': False,
'log': '',
'output': 'tsstats.html',
'i... | <commit_before># -*- coding: utf-8 -*-
try:
from configparser import RawConfigParser
except ImportError:
from ConfigParser import RawConfigParser
import logging
logger = logging.getLogger('tsstats')
DEFAULT_CONFIG = {
'General': {
'debug': False,
'log': '',
'output': 'output.htm... | # -*- coding: utf-8 -*-
try:
from configparser import RawConfigParser
except ImportError:
from ConfigParser import RawConfigParser
import logging
logger = logging.getLogger('tsstats')
DEFAULT_CONFIG = {
'General': {
'debug': False,
'log': '',
'output': 'tsstats.html',
'i... | # -*- coding: utf-8 -*-
try:
from configparser import RawConfigParser
except ImportError:
from ConfigParser import RawConfigParser
import logging
logger = logging.getLogger('tsstats')
DEFAULT_CONFIG = {
'General': {
'debug': False,
'log': '',
'output': 'output.html',
'id... | <commit_before># -*- coding: utf-8 -*-
try:
from configparser import RawConfigParser
except ImportError:
from ConfigParser import RawConfigParser
import logging
logger = logging.getLogger('tsstats')
DEFAULT_CONFIG = {
'General': {
'debug': False,
'log': '',
'output': 'output.htm... |
39d0c335759781de8cf1644cdf499588441b434d | tviserrys/urls.py | tviserrys/urls.py | from django.contrib.auth import views as auth_views
from django.conf.urls import patterns, include, url
from django.conf.urls import url
from django.contrib import admin
from . import views
from tviserrys.settings import MEDIA_ROOT
urlpatterns = [
url(r'^$', views.IndexView.as_view(), name='index'),
url(r'^adm... | from django.contrib.auth import views as auth_views
from django.conf.urls import patterns, include, url
from django.conf.urls import url
from django.contrib import admin
from . import views
from tviserrys.settings import MEDIA_ROOT
urlpatterns = [
url(r'^$', views.IndexView.as_view(), name='index'),
url(r'^tvi... | Add Tviit and profile url patterns | Add Tviit and profile url patterns
| Python | mit | DeWaster/Tviserrys,DeWaster/Tviserrys | from django.contrib.auth import views as auth_views
from django.conf.urls import patterns, include, url
from django.conf.urls import url
from django.contrib import admin
from . import views
from tviserrys.settings import MEDIA_ROOT
urlpatterns = [
url(r'^$', views.IndexView.as_view(), name='index'),
url(r'^adm... | from django.contrib.auth import views as auth_views
from django.conf.urls import patterns, include, url
from django.conf.urls import url
from django.contrib import admin
from . import views
from tviserrys.settings import MEDIA_ROOT
urlpatterns = [
url(r'^$', views.IndexView.as_view(), name='index'),
url(r'^tvi... | <commit_before>from django.contrib.auth import views as auth_views
from django.conf.urls import patterns, include, url
from django.conf.urls import url
from django.contrib import admin
from . import views
from tviserrys.settings import MEDIA_ROOT
urlpatterns = [
url(r'^$', views.IndexView.as_view(), name='index'),... | from django.contrib.auth import views as auth_views
from django.conf.urls import patterns, include, url
from django.conf.urls import url
from django.contrib import admin
from . import views
from tviserrys.settings import MEDIA_ROOT
urlpatterns = [
url(r'^$', views.IndexView.as_view(), name='index'),
url(r'^tvi... | from django.contrib.auth import views as auth_views
from django.conf.urls import patterns, include, url
from django.conf.urls import url
from django.contrib import admin
from . import views
from tviserrys.settings import MEDIA_ROOT
urlpatterns = [
url(r'^$', views.IndexView.as_view(), name='index'),
url(r'^adm... | <commit_before>from django.contrib.auth import views as auth_views
from django.conf.urls import patterns, include, url
from django.conf.urls import url
from django.contrib import admin
from . import views
from tviserrys.settings import MEDIA_ROOT
urlpatterns = [
url(r'^$', views.IndexView.as_view(), name='index'),... |
83e48445400c8556a7ef8f9064965b9d77e3d877 | tools/build_interface_docs.py | tools/build_interface_docs.py | #!/usr/bin/env python
"""Script to auto-generate interface docs.
"""
# stdlib imports
import os
import sys
#*****************************************************************************
if __name__ == '__main__':
nipypepath = os.path.abspath('..')
sys.path.insert(1,nipypepath)
# local imports
from inte... | #!/usr/bin/env python
"""Script to auto-generate interface docs.
"""
# stdlib imports
import os
import sys
#*****************************************************************************
if __name__ == '__main__':
nipypepath = os.path.abspath('..')
sys.path.insert(1,nipypepath)
# local imports
from inte... | Remove NipypeTester from doc generation. | Remove NipypeTester from doc generation.
git-svn-id: 24f545668198cdd163a527378499f2123e59bf9f@1373 ead46cd0-7350-4e37-8683-fc4c6f79bf00
| Python | bsd-3-clause | FCP-INDI/nipype,pearsonlab/nipype,blakedewey/nipype,dmordom/nipype,dgellis90/nipype,fprados/nipype,Leoniela/nipype,mick-d/nipype_source,wanderine/nipype,mick-d/nipype,sgiavasis/nipype,rameshvs/nipype,gerddie/nipype,grlee77/nipype,arokem/nipype,christianbrodbeck/nipype,carolFrohlich/nipype,rameshvs/nipype,carlohamalaine... | #!/usr/bin/env python
"""Script to auto-generate interface docs.
"""
# stdlib imports
import os
import sys
#*****************************************************************************
if __name__ == '__main__':
nipypepath = os.path.abspath('..')
sys.path.insert(1,nipypepath)
# local imports
from inte... | #!/usr/bin/env python
"""Script to auto-generate interface docs.
"""
# stdlib imports
import os
import sys
#*****************************************************************************
if __name__ == '__main__':
nipypepath = os.path.abspath('..')
sys.path.insert(1,nipypepath)
# local imports
from inte... | <commit_before>#!/usr/bin/env python
"""Script to auto-generate interface docs.
"""
# stdlib imports
import os
import sys
#*****************************************************************************
if __name__ == '__main__':
nipypepath = os.path.abspath('..')
sys.path.insert(1,nipypepath)
# local import... | #!/usr/bin/env python
"""Script to auto-generate interface docs.
"""
# stdlib imports
import os
import sys
#*****************************************************************************
if __name__ == '__main__':
nipypepath = os.path.abspath('..')
sys.path.insert(1,nipypepath)
# local imports
from inte... | #!/usr/bin/env python
"""Script to auto-generate interface docs.
"""
# stdlib imports
import os
import sys
#*****************************************************************************
if __name__ == '__main__':
nipypepath = os.path.abspath('..')
sys.path.insert(1,nipypepath)
# local imports
from inte... | <commit_before>#!/usr/bin/env python
"""Script to auto-generate interface docs.
"""
# stdlib imports
import os
import sys
#*****************************************************************************
if __name__ == '__main__':
nipypepath = os.path.abspath('..')
sys.path.insert(1,nipypepath)
# local import... |
bce0d37239f3d054274c0a1c90402e03d6e48b69 | climate/data/montecarlo.py | climate/data/montecarlo.py | import numpy
class dist:
normal, random = range(2)
# Monte carlo simulation data
def montecarlo(callback, samples, **kwargs):
""" generate random samples based on values """
vals = {}
for var in kwargs:
if isinstance(kwargs[var], tuple):
(minVal, maxVal, distribution) = kwargs[var]... | import numpy
class dist:
normal, random = range(2)
# Monte carlo simulation data
def montecarlo(callback, samples, **kwargs):
""" generate random samples based on values """
vals = {}
for var in kwargs:
if isinstance(kwargs[var], tuple):
(minVal, maxVal, distribution) = kwargs[var]... | Change in the implementation of normal distribution | Change in the implementation of normal distribution
| Python | mit | dionhaefner/veros,dionhaefner/veros | import numpy
class dist:
normal, random = range(2)
# Monte carlo simulation data
def montecarlo(callback, samples, **kwargs):
""" generate random samples based on values """
vals = {}
for var in kwargs:
if isinstance(kwargs[var], tuple):
(minVal, maxVal, distribution) = kwargs[var]... | import numpy
class dist:
normal, random = range(2)
# Monte carlo simulation data
def montecarlo(callback, samples, **kwargs):
""" generate random samples based on values """
vals = {}
for var in kwargs:
if isinstance(kwargs[var], tuple):
(minVal, maxVal, distribution) = kwargs[var]... | <commit_before>import numpy
class dist:
normal, random = range(2)
# Monte carlo simulation data
def montecarlo(callback, samples, **kwargs):
""" generate random samples based on values """
vals = {}
for var in kwargs:
if isinstance(kwargs[var], tuple):
(minVal, maxVal, distribution... | import numpy
class dist:
normal, random = range(2)
# Monte carlo simulation data
def montecarlo(callback, samples, **kwargs):
""" generate random samples based on values """
vals = {}
for var in kwargs:
if isinstance(kwargs[var], tuple):
(minVal, maxVal, distribution) = kwargs[var]... | import numpy
class dist:
normal, random = range(2)
# Monte carlo simulation data
def montecarlo(callback, samples, **kwargs):
""" generate random samples based on values """
vals = {}
for var in kwargs:
if isinstance(kwargs[var], tuple):
(minVal, maxVal, distribution) = kwargs[var]... | <commit_before>import numpy
class dist:
normal, random = range(2)
# Monte carlo simulation data
def montecarlo(callback, samples, **kwargs):
""" generate random samples based on values """
vals = {}
for var in kwargs:
if isinstance(kwargs[var], tuple):
(minVal, maxVal, distribution... |
5e9c6c527902fd8361391f111a88a8f4b4ce71df | aospy/proj.py | aospy/proj.py | """proj.py: aospy.Proj class for organizing work in single project."""
import time
from .utils import dict_name_keys
class Proj(object):
"""Project parameters: models, regions, directories, etc."""
def __init__(self, name, vars={}, models={}, default_models={}, regions={},
direc_out='', nc_d... | """proj.py: aospy.Proj class for organizing work in single project."""
import time
from .utils import dict_name_keys
class Proj(object):
"""Project parameters: models, regions, directories, etc."""
def __init__(self, name, vars={}, models={}, default_models={}, regions={},
direc_out='', nc_d... | Delete unnecessary vars attr of Proj | Delete unnecessary vars attr of Proj
| Python | apache-2.0 | spencerkclark/aospy,spencerahill/aospy | """proj.py: aospy.Proj class for organizing work in single project."""
import time
from .utils import dict_name_keys
class Proj(object):
"""Project parameters: models, regions, directories, etc."""
def __init__(self, name, vars={}, models={}, default_models={}, regions={},
direc_out='', nc_d... | """proj.py: aospy.Proj class for organizing work in single project."""
import time
from .utils import dict_name_keys
class Proj(object):
"""Project parameters: models, regions, directories, etc."""
def __init__(self, name, vars={}, models={}, default_models={}, regions={},
direc_out='', nc_d... | <commit_before>"""proj.py: aospy.Proj class for organizing work in single project."""
import time
from .utils import dict_name_keys
class Proj(object):
"""Project parameters: models, regions, directories, etc."""
def __init__(self, name, vars={}, models={}, default_models={}, regions={},
dir... | """proj.py: aospy.Proj class for organizing work in single project."""
import time
from .utils import dict_name_keys
class Proj(object):
"""Project parameters: models, regions, directories, etc."""
def __init__(self, name, vars={}, models={}, default_models={}, regions={},
direc_out='', nc_d... | """proj.py: aospy.Proj class for organizing work in single project."""
import time
from .utils import dict_name_keys
class Proj(object):
"""Project parameters: models, regions, directories, etc."""
def __init__(self, name, vars={}, models={}, default_models={}, regions={},
direc_out='', nc_d... | <commit_before>"""proj.py: aospy.Proj class for organizing work in single project."""
import time
from .utils import dict_name_keys
class Proj(object):
"""Project parameters: models, regions, directories, etc."""
def __init__(self, name, vars={}, models={}, default_models={}, regions={},
dir... |
d52a52fa007acc544cc30b8067fe617e42865911 | decoders/flac.py | decoders/flac.py | #!/usr/bin/env python
"""Handles decoding flac files"""
import subprocess
import config
HANDLES=['flac','fla']
def decode(inF, outF):
st = subprocess.call(["flac",
"--totally-silent", #No output
"-d" #Decode
"--force", #Overwrite files
"-o", outF, #Output
... | #!/usr/bin/env python
"""Handles decoding flac files"""
import subprocess
import config
HANDLES=['flac','fla']
def decode(inF, outF):
st = subprocess.call(["flac",
"--totally-silent", #No output
"--decode", #Decode
"--force", #Overwrite files
"-o", outF, #Output
... | Use full name (-d => --decode), and needed a comma | Use full name (-d => --decode), and needed a comma | Python | isc | jeffayle/Transcode | #!/usr/bin/env python
"""Handles decoding flac files"""
import subprocess
import config
HANDLES=['flac','fla']
def decode(inF, outF):
st = subprocess.call(["flac",
"--totally-silent", #No output
"-d" #Decode
"--force", #Overwrite files
"-o", outF, #Output
... | #!/usr/bin/env python
"""Handles decoding flac files"""
import subprocess
import config
HANDLES=['flac','fla']
def decode(inF, outF):
st = subprocess.call(["flac",
"--totally-silent", #No output
"--decode", #Decode
"--force", #Overwrite files
"-o", outF, #Output
... | <commit_before>#!/usr/bin/env python
"""Handles decoding flac files"""
import subprocess
import config
HANDLES=['flac','fla']
def decode(inF, outF):
st = subprocess.call(["flac",
"--totally-silent", #No output
"-d" #Decode
"--force", #Overwrite files
"-o", outF, #Ou... | #!/usr/bin/env python
"""Handles decoding flac files"""
import subprocess
import config
HANDLES=['flac','fla']
def decode(inF, outF):
st = subprocess.call(["flac",
"--totally-silent", #No output
"--decode", #Decode
"--force", #Overwrite files
"-o", outF, #Output
... | #!/usr/bin/env python
"""Handles decoding flac files"""
import subprocess
import config
HANDLES=['flac','fla']
def decode(inF, outF):
st = subprocess.call(["flac",
"--totally-silent", #No output
"-d" #Decode
"--force", #Overwrite files
"-o", outF, #Output
... | <commit_before>#!/usr/bin/env python
"""Handles decoding flac files"""
import subprocess
import config
HANDLES=['flac','fla']
def decode(inF, outF):
st = subprocess.call(["flac",
"--totally-silent", #No output
"-d" #Decode
"--force", #Overwrite files
"-o", outF, #Ou... |
786124e9a622dec3aeaaf0a2c5b1bb91421ed95a | osrframework/__init__.py | osrframework/__init__.py | ################################################################################
#
# Copyright 2015-2020 Félix Brezo and Yaiza Rubio
#
# This program is part of OSRFramework. You can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free ... | ################################################################################
#
# Copyright 2015-2020 Félix Brezo and Yaiza Rubio
#
# This program is part of OSRFramework. You can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free ... | Prepare first beta for testing of 0.20.2 | Prepare first beta for testing of 0.20.2
| Python | agpl-3.0 | i3visio/osrframework | ################################################################################
#
# Copyright 2015-2020 Félix Brezo and Yaiza Rubio
#
# This program is part of OSRFramework. You can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free ... | ################################################################################
#
# Copyright 2015-2020 Félix Brezo and Yaiza Rubio
#
# This program is part of OSRFramework. You can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free ... | <commit_before>################################################################################
#
# Copyright 2015-2020 Félix Brezo and Yaiza Rubio
#
# This program is part of OSRFramework. You can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
... | ################################################################################
#
# Copyright 2015-2020 Félix Brezo and Yaiza Rubio
#
# This program is part of OSRFramework. You can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free ... | ################################################################################
#
# Copyright 2015-2020 Félix Brezo and Yaiza Rubio
#
# This program is part of OSRFramework. You can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free ... | <commit_before>################################################################################
#
# Copyright 2015-2020 Félix Brezo and Yaiza Rubio
#
# This program is part of OSRFramework. You can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
... |
92ceb30e56c96c56619e589adec1537e8bdb657c | usecases/broadcasts/basics.py | usecases/broadcasts/basics.py | from predicthq import Client
# Please copy paste your access token here
# or read our Quickstart documentation if you don't have a token yet
# https://docs.predicthq.com/guides/quickstart/
ACCESS_TOKEN = 'abc123'
phq = Client(access_token=ACCESS_TOKEN)
# The search() method returns an EventResultSet which allows yo... | from predicthq import Client
# Please copy paste your access token here
# or read our Quickstart documentation if you don't have a token yet
# https://docs.predicthq.com/guides/quickstart/
ACCESS_TOKEN = 'abc123'
phq = Client(access_token=ACCESS_TOKEN)
# The search() method returns an EventResultSet which allows yo... | Fix typo in broadcasts endpoint usecase | Fix typo in broadcasts endpoint usecase
| Python | mit | predicthq/sdk-py | from predicthq import Client
# Please copy paste your access token here
# or read our Quickstart documentation if you don't have a token yet
# https://docs.predicthq.com/guides/quickstart/
ACCESS_TOKEN = 'abc123'
phq = Client(access_token=ACCESS_TOKEN)
# The search() method returns an EventResultSet which allows yo... | from predicthq import Client
# Please copy paste your access token here
# or read our Quickstart documentation if you don't have a token yet
# https://docs.predicthq.com/guides/quickstart/
ACCESS_TOKEN = 'abc123'
phq = Client(access_token=ACCESS_TOKEN)
# The search() method returns an EventResultSet which allows yo... | <commit_before>from predicthq import Client
# Please copy paste your access token here
# or read our Quickstart documentation if you don't have a token yet
# https://docs.predicthq.com/guides/quickstart/
ACCESS_TOKEN = 'abc123'
phq = Client(access_token=ACCESS_TOKEN)
# The search() method returns an EventResultSet ... | from predicthq import Client
# Please copy paste your access token here
# or read our Quickstart documentation if you don't have a token yet
# https://docs.predicthq.com/guides/quickstart/
ACCESS_TOKEN = 'abc123'
phq = Client(access_token=ACCESS_TOKEN)
# The search() method returns an EventResultSet which allows yo... | from predicthq import Client
# Please copy paste your access token here
# or read our Quickstart documentation if you don't have a token yet
# https://docs.predicthq.com/guides/quickstart/
ACCESS_TOKEN = 'abc123'
phq = Client(access_token=ACCESS_TOKEN)
# The search() method returns an EventResultSet which allows yo... | <commit_before>from predicthq import Client
# Please copy paste your access token here
# or read our Quickstart documentation if you don't have a token yet
# https://docs.predicthq.com/guides/quickstart/
ACCESS_TOKEN = 'abc123'
phq = Client(access_token=ACCESS_TOKEN)
# The search() method returns an EventResultSet ... |
ef72b229732610c3b6c8ccdd9c599002986707f3 | test_knot.py | test_knot.py | # -*- coding: utf-8 -*-
import unittest
from flask import Flask
from flask.ext.knot import Knot
def create_app():
app = Flask(__name__)
app.config['TESTING'] = True
return app
class TestKnot(unittest.TestCase):
def test_acts_like_container(self):
app = create_app()
dic = Knot(app)
... | # -*- coding: utf-8 -*-
import unittest
from flask import Flask
from flask.ext.knot import Knot, get_container
def create_app():
app = Flask(__name__)
app.config['TESTING'] = True
return app
class TestKnot(unittest.TestCase):
def test_acts_like_container(self):
app = create_app()
di... | Add test for shared container. | Add test for shared container. | Python | mit | jaapverloop/flask-knot | # -*- coding: utf-8 -*-
import unittest
from flask import Flask
from flask.ext.knot import Knot
def create_app():
app = Flask(__name__)
app.config['TESTING'] = True
return app
class TestKnot(unittest.TestCase):
def test_acts_like_container(self):
app = create_app()
dic = Knot(app)
... | # -*- coding: utf-8 -*-
import unittest
from flask import Flask
from flask.ext.knot import Knot, get_container
def create_app():
app = Flask(__name__)
app.config['TESTING'] = True
return app
class TestKnot(unittest.TestCase):
def test_acts_like_container(self):
app = create_app()
di... | <commit_before># -*- coding: utf-8 -*-
import unittest
from flask import Flask
from flask.ext.knot import Knot
def create_app():
app = Flask(__name__)
app.config['TESTING'] = True
return app
class TestKnot(unittest.TestCase):
def test_acts_like_container(self):
app = create_app()
di... | # -*- coding: utf-8 -*-
import unittest
from flask import Flask
from flask.ext.knot import Knot, get_container
def create_app():
app = Flask(__name__)
app.config['TESTING'] = True
return app
class TestKnot(unittest.TestCase):
def test_acts_like_container(self):
app = create_app()
di... | # -*- coding: utf-8 -*-
import unittest
from flask import Flask
from flask.ext.knot import Knot
def create_app():
app = Flask(__name__)
app.config['TESTING'] = True
return app
class TestKnot(unittest.TestCase):
def test_acts_like_container(self):
app = create_app()
dic = Knot(app)
... | <commit_before># -*- coding: utf-8 -*-
import unittest
from flask import Flask
from flask.ext.knot import Knot
def create_app():
app = Flask(__name__)
app.config['TESTING'] = True
return app
class TestKnot(unittest.TestCase):
def test_acts_like_container(self):
app = create_app()
di... |
595419eaa5b5f411e477357872c7dd28067c9210 | src/books/models.py | src/books/models.py | from django.db import models
from datetime import date
from django.utils import timezone
# Create your models here.
class Book(models.Model):
title = models.CharField(max_length=200)
author = models.CharField(max_length=200)
year = models.DateTimeField('year published',
help_text="Please use the following format:... | from django.db import models
from datetime import datetime
from django.utils import timezone
# Create your models here.
class Book(models.Model):
title = models.CharField(max_length=200)
author = models.CharField(max_length=200)
year = models.DateTimeField('year published',
help_text="Please use the following for... | Fix date error in books model | Fix date error in books model
Fix typos and the auto addition of date to the date_added field.
| Python | mit | melkisedek/sen_project,melkisedek/sen_project,melkisedek/sen_project | from django.db import models
from datetime import date
from django.utils import timezone
# Create your models here.
class Book(models.Model):
title = models.CharField(max_length=200)
author = models.CharField(max_length=200)
year = models.DateTimeField('year published',
help_text="Please use the following format:... | from django.db import models
from datetime import datetime
from django.utils import timezone
# Create your models here.
class Book(models.Model):
title = models.CharField(max_length=200)
author = models.CharField(max_length=200)
year = models.DateTimeField('year published',
help_text="Please use the following for... | <commit_before>from django.db import models
from datetime import date
from django.utils import timezone
# Create your models here.
class Book(models.Model):
title = models.CharField(max_length=200)
author = models.CharField(max_length=200)
year = models.DateTimeField('year published',
help_text="Please use the fo... | from django.db import models
from datetime import datetime
from django.utils import timezone
# Create your models here.
class Book(models.Model):
title = models.CharField(max_length=200)
author = models.CharField(max_length=200)
year = models.DateTimeField('year published',
help_text="Please use the following for... | from django.db import models
from datetime import date
from django.utils import timezone
# Create your models here.
class Book(models.Model):
title = models.CharField(max_length=200)
author = models.CharField(max_length=200)
year = models.DateTimeField('year published',
help_text="Please use the following format:... | <commit_before>from django.db import models
from datetime import date
from django.utils import timezone
# Create your models here.
class Book(models.Model):
title = models.CharField(max_length=200)
author = models.CharField(max_length=200)
year = models.DateTimeField('year published',
help_text="Please use the fo... |
97894a171d1831838da28b757aabb352bc5ecfd9 | patches/sitecustomize.py | patches/sitecustomize.py | # Monkey patches BigQuery client creation to use proxy.
# Import torch before anything else. This is a hacky workaround to an error on dlopen
# reporting a limit on static TLS, tracked in https://github.com/pytorch/pytorch/issues/2575
import torch
import os
_HOST_FILE = "/etc/hosts"
kaggle_proxy_token = os.getenv("K... | # Monkey patches BigQuery client creation to use proxy.
# Import torch before anything else. This is a hacky workaround to an error on dlopen
# reporting a limit on static TLS, tracked in https://github.com/pytorch/pytorch/issues/2575
import torch
import os
kaggle_proxy_token = os.getenv("KAGGLE_DATA_PROXY_TOKEN")
if... | Revert "Support adding an /etc/host entry for the data proxy, if asked." | Revert "Support adding an /etc/host entry for the data proxy, if asked."
This reverts commit 062f975d92c5795feb530e3ea1914d3c7dd3a96b.
There is no more need for this support in the docker image. It is fully
externally handled through docker run's `--add-host` feature.
| Python | apache-2.0 | Kaggle/docker-python,Kaggle/docker-python | # Monkey patches BigQuery client creation to use proxy.
# Import torch before anything else. This is a hacky workaround to an error on dlopen
# reporting a limit on static TLS, tracked in https://github.com/pytorch/pytorch/issues/2575
import torch
import os
_HOST_FILE = "/etc/hosts"
kaggle_proxy_token = os.getenv("K... | # Monkey patches BigQuery client creation to use proxy.
# Import torch before anything else. This is a hacky workaround to an error on dlopen
# reporting a limit on static TLS, tracked in https://github.com/pytorch/pytorch/issues/2575
import torch
import os
kaggle_proxy_token = os.getenv("KAGGLE_DATA_PROXY_TOKEN")
if... | <commit_before># Monkey patches BigQuery client creation to use proxy.
# Import torch before anything else. This is a hacky workaround to an error on dlopen
# reporting a limit on static TLS, tracked in https://github.com/pytorch/pytorch/issues/2575
import torch
import os
_HOST_FILE = "/etc/hosts"
kaggle_proxy_token... | # Monkey patches BigQuery client creation to use proxy.
# Import torch before anything else. This is a hacky workaround to an error on dlopen
# reporting a limit on static TLS, tracked in https://github.com/pytorch/pytorch/issues/2575
import torch
import os
kaggle_proxy_token = os.getenv("KAGGLE_DATA_PROXY_TOKEN")
if... | # Monkey patches BigQuery client creation to use proxy.
# Import torch before anything else. This is a hacky workaround to an error on dlopen
# reporting a limit on static TLS, tracked in https://github.com/pytorch/pytorch/issues/2575
import torch
import os
_HOST_FILE = "/etc/hosts"
kaggle_proxy_token = os.getenv("K... | <commit_before># Monkey patches BigQuery client creation to use proxy.
# Import torch before anything else. This is a hacky workaround to an error on dlopen
# reporting a limit on static TLS, tracked in https://github.com/pytorch/pytorch/issues/2575
import torch
import os
_HOST_FILE = "/etc/hosts"
kaggle_proxy_token... |
5690b8dfe529dd83b1531517d900a7e8512aa061 | utilities/python/graph_dfs.py | utilities/python/graph_dfs.py | def graph_dfs(matrix):
rows, cols = len(matrix), len(matrix[0])
visited = set()
directions = ((0, 1), (0, -1), (1, 0), (-1, 0))
def dfs(i, j):
if (i, j) in visited:
return
visited.add((i, j))
# Traverse neighbors.
for direction in directions:
next_... | def graph_dfs(matrix):
rows, cols = len(matrix), len(matrix[0])
visited = set()
directions = ((0, 1), (0, -1), (1, 0), (-1, 0))
def dfs(i, j):
if (i, j) in visited:
return
visited.add((i, j))
# Traverse neighbors.
for direction in directions:
next_... | Add follow up with matrix traversal | Add follow up with matrix traversal
| Python | mit | yangshun/tech-interview-handbook,yangshun/tech-interview-handbook,yangshun/tech-interview-handbook,yangshun/tech-interview-handbook,yangshun/tech-interview-handbook | def graph_dfs(matrix):
rows, cols = len(matrix), len(matrix[0])
visited = set()
directions = ((0, 1), (0, -1), (1, 0), (-1, 0))
def dfs(i, j):
if (i, j) in visited:
return
visited.add((i, j))
# Traverse neighbors.
for direction in directions:
next_... | def graph_dfs(matrix):
rows, cols = len(matrix), len(matrix[0])
visited = set()
directions = ((0, 1), (0, -1), (1, 0), (-1, 0))
def dfs(i, j):
if (i, j) in visited:
return
visited.add((i, j))
# Traverse neighbors.
for direction in directions:
next_... | <commit_before>def graph_dfs(matrix):
rows, cols = len(matrix), len(matrix[0])
visited = set()
directions = ((0, 1), (0, -1), (1, 0), (-1, 0))
def dfs(i, j):
if (i, j) in visited:
return
visited.add((i, j))
# Traverse neighbors.
for direction in directions:
... | def graph_dfs(matrix):
rows, cols = len(matrix), len(matrix[0])
visited = set()
directions = ((0, 1), (0, -1), (1, 0), (-1, 0))
def dfs(i, j):
if (i, j) in visited:
return
visited.add((i, j))
# Traverse neighbors.
for direction in directions:
next_... | def graph_dfs(matrix):
rows, cols = len(matrix), len(matrix[0])
visited = set()
directions = ((0, 1), (0, -1), (1, 0), (-1, 0))
def dfs(i, j):
if (i, j) in visited:
return
visited.add((i, j))
# Traverse neighbors.
for direction in directions:
next_... | <commit_before>def graph_dfs(matrix):
rows, cols = len(matrix), len(matrix[0])
visited = set()
directions = ((0, 1), (0, -1), (1, 0), (-1, 0))
def dfs(i, j):
if (i, j) in visited:
return
visited.add((i, j))
# Traverse neighbors.
for direction in directions:
... |
7f7ba15ec7fb22cf4a458e8cbaef8eac785c034b | pivot/test/test_utils.py | pivot/test/test_utils.py | """
Tests utility scripts
"""
import os
from django.test import TestCase, RequestFactory
from django.test.utils import override_settings
import pivot
from pivot.utils import get_latest_term, is_more_recent
from pivot.templatetags.pivot_extras import year_select_tab
TEST_CSV_PATH = os.path.join(os.path.dirname(pivot... | """
Tests utility scripts
"""
import os
from django.test import TestCase, RequestFactory
from django.test.utils import override_settings
import pivot
from pivot.utils import get_latest_term, is_more_recent
from pivot.templatetags.pivot_extras import year_select_tab
TEST_CSV_PATH = os.path.join(os.path.dirname(pivot... | Add simple test for coverage. | Add simple test for coverage.
| Python | apache-2.0 | uw-it-aca/pivot,uw-it-aca/pivot,uw-it-aca/pivot,uw-it-aca/pivot,uw-it-aca/pivot | """
Tests utility scripts
"""
import os
from django.test import TestCase, RequestFactory
from django.test.utils import override_settings
import pivot
from pivot.utils import get_latest_term, is_more_recent
from pivot.templatetags.pivot_extras import year_select_tab
TEST_CSV_PATH = os.path.join(os.path.dirname(pivot... | """
Tests utility scripts
"""
import os
from django.test import TestCase, RequestFactory
from django.test.utils import override_settings
import pivot
from pivot.utils import get_latest_term, is_more_recent
from pivot.templatetags.pivot_extras import year_select_tab
TEST_CSV_PATH = os.path.join(os.path.dirname(pivot... | <commit_before>"""
Tests utility scripts
"""
import os
from django.test import TestCase, RequestFactory
from django.test.utils import override_settings
import pivot
from pivot.utils import get_latest_term, is_more_recent
from pivot.templatetags.pivot_extras import year_select_tab
TEST_CSV_PATH = os.path.join(os.pat... | """
Tests utility scripts
"""
import os
from django.test import TestCase, RequestFactory
from django.test.utils import override_settings
import pivot
from pivot.utils import get_latest_term, is_more_recent
from pivot.templatetags.pivot_extras import year_select_tab
TEST_CSV_PATH = os.path.join(os.path.dirname(pivot... | """
Tests utility scripts
"""
import os
from django.test import TestCase, RequestFactory
from django.test.utils import override_settings
import pivot
from pivot.utils import get_latest_term, is_more_recent
from pivot.templatetags.pivot_extras import year_select_tab
TEST_CSV_PATH = os.path.join(os.path.dirname(pivot... | <commit_before>"""
Tests utility scripts
"""
import os
from django.test import TestCase, RequestFactory
from django.test.utils import override_settings
import pivot
from pivot.utils import get_latest_term, is_more_recent
from pivot.templatetags.pivot_extras import year_select_tab
TEST_CSV_PATH = os.path.join(os.pat... |
5bdbb48585891e0c800b7e685e25295a1ba706e2 | src/listen.py | src/listen.py |
import redis
import re
from common import get_db
from datetime import datetime
MSGPATTERN = re.compile('^(\w+)\|(\d)\|([\s\S]*)$')
CHANNEL = 'logfire'
def listen(args):
global MSGPATTERN
rserver = redis.Redis('localhost')
rserver.subscribe(CHANNEL)
db = get_db(args.mongohost)
for packet in rserver.list... |
import redis
import re
from common import get_db
from datetime import datetime
MSGPATTERN = re.compile('^(\w+)\|(\d)\|([\s\S]*)$')
CHANNEL = 'logfire'
def listen(args):
global MSGPATTERN
rserver = redis.Redis('localhost')
pubsub = rserver.pubsub()
pubsub.subscribe(CHANNEL)
db = get_db(args.mongohost)
... | Make redis subscription work with python-redis' latest versions | Make redis subscription work with python-redis' latest versions
| Python | mit | jay3sh/logfire,jay3sh/logfire |
import redis
import re
from common import get_db
from datetime import datetime
MSGPATTERN = re.compile('^(\w+)\|(\d)\|([\s\S]*)$')
CHANNEL = 'logfire'
def listen(args):
global MSGPATTERN
rserver = redis.Redis('localhost')
rserver.subscribe(CHANNEL)
db = get_db(args.mongohost)
for packet in rserver.list... |
import redis
import re
from common import get_db
from datetime import datetime
MSGPATTERN = re.compile('^(\w+)\|(\d)\|([\s\S]*)$')
CHANNEL = 'logfire'
def listen(args):
global MSGPATTERN
rserver = redis.Redis('localhost')
pubsub = rserver.pubsub()
pubsub.subscribe(CHANNEL)
db = get_db(args.mongohost)
... | <commit_before>
import redis
import re
from common import get_db
from datetime import datetime
MSGPATTERN = re.compile('^(\w+)\|(\d)\|([\s\S]*)$')
CHANNEL = 'logfire'
def listen(args):
global MSGPATTERN
rserver = redis.Redis('localhost')
rserver.subscribe(CHANNEL)
db = get_db(args.mongohost)
for packet ... |
import redis
import re
from common import get_db
from datetime import datetime
MSGPATTERN = re.compile('^(\w+)\|(\d)\|([\s\S]*)$')
CHANNEL = 'logfire'
def listen(args):
global MSGPATTERN
rserver = redis.Redis('localhost')
pubsub = rserver.pubsub()
pubsub.subscribe(CHANNEL)
db = get_db(args.mongohost)
... |
import redis
import re
from common import get_db
from datetime import datetime
MSGPATTERN = re.compile('^(\w+)\|(\d)\|([\s\S]*)$')
CHANNEL = 'logfire'
def listen(args):
global MSGPATTERN
rserver = redis.Redis('localhost')
rserver.subscribe(CHANNEL)
db = get_db(args.mongohost)
for packet in rserver.list... | <commit_before>
import redis
import re
from common import get_db
from datetime import datetime
MSGPATTERN = re.compile('^(\w+)\|(\d)\|([\s\S]*)$')
CHANNEL = 'logfire'
def listen(args):
global MSGPATTERN
rserver = redis.Redis('localhost')
rserver.subscribe(CHANNEL)
db = get_db(args.mongohost)
for packet ... |
cbca3b79b1840c28a10d8db32b8dcc5b2a6b5254 | wagtaildemo/settings/production.py | wagtaildemo/settings/production.py | from .base import *
DEBUG = False
WAGTAILSEARCH_BACKENDS = {
'default': {
'BACKEND': 'wagtail.wagtailsearch.backends.elasticsearch.ElasticSearch',
'INDEX': 'wagtaildemo'
}
}
INSTALLED_APPS+= (
'djcelery',
'kombu.transport.django',
'gunicorn',
)
CACHES = {
'default': {
... | from .base import *
DEBUG = False
WAGTAILSEARCH_BACKENDS = {
'default': {
'BACKEND': 'wagtail.wagtailsearch.backends.elasticsearch.ElasticSearch',
'INDEX': 'wagtaildemo'
}
}
INSTALLED_APPS+= (
'djcelery',
'kombu.transport.django',
'gunicorn',
)
CACHES = {
'default': {
... | Set a KEY_PREFIX for the Redis cache, so that we don't get collisions when running multiple sites on one server | Set a KEY_PREFIX for the Redis cache, so that we don't get collisions when running multiple sites on one server
| Python | bsd-3-clause | jmcarp/wagtaildemo,kaedroho/wagtaildemo,lincolnloop/wagtaildemo,gasman/wagtaildemo,jalourenco/wagtaildemo,torchbox/wagtailapidemo,dudunato/ywam-cerrado,kaedroho/wagtaildemo,ThibWeb/wagtaildemo,torchbox/wagtailapidemo,jmcarp/wagtaildemo,torchbox/wagtaildemo,lincolnloop/wagtaildemo,gasman/wagtaildemo,torchbox/wagtaildemo... | from .base import *
DEBUG = False
WAGTAILSEARCH_BACKENDS = {
'default': {
'BACKEND': 'wagtail.wagtailsearch.backends.elasticsearch.ElasticSearch',
'INDEX': 'wagtaildemo'
}
}
INSTALLED_APPS+= (
'djcelery',
'kombu.transport.django',
'gunicorn',
)
CACHES = {
'default': {
... | from .base import *
DEBUG = False
WAGTAILSEARCH_BACKENDS = {
'default': {
'BACKEND': 'wagtail.wagtailsearch.backends.elasticsearch.ElasticSearch',
'INDEX': 'wagtaildemo'
}
}
INSTALLED_APPS+= (
'djcelery',
'kombu.transport.django',
'gunicorn',
)
CACHES = {
'default': {
... | <commit_before>from .base import *
DEBUG = False
WAGTAILSEARCH_BACKENDS = {
'default': {
'BACKEND': 'wagtail.wagtailsearch.backends.elasticsearch.ElasticSearch',
'INDEX': 'wagtaildemo'
}
}
INSTALLED_APPS+= (
'djcelery',
'kombu.transport.django',
'gunicorn',
)
CACHES = {
... | from .base import *
DEBUG = False
WAGTAILSEARCH_BACKENDS = {
'default': {
'BACKEND': 'wagtail.wagtailsearch.backends.elasticsearch.ElasticSearch',
'INDEX': 'wagtaildemo'
}
}
INSTALLED_APPS+= (
'djcelery',
'kombu.transport.django',
'gunicorn',
)
CACHES = {
'default': {
... | from .base import *
DEBUG = False
WAGTAILSEARCH_BACKENDS = {
'default': {
'BACKEND': 'wagtail.wagtailsearch.backends.elasticsearch.ElasticSearch',
'INDEX': 'wagtaildemo'
}
}
INSTALLED_APPS+= (
'djcelery',
'kombu.transport.django',
'gunicorn',
)
CACHES = {
'default': {
... | <commit_before>from .base import *
DEBUG = False
WAGTAILSEARCH_BACKENDS = {
'default': {
'BACKEND': 'wagtail.wagtailsearch.backends.elasticsearch.ElasticSearch',
'INDEX': 'wagtaildemo'
}
}
INSTALLED_APPS+= (
'djcelery',
'kombu.transport.django',
'gunicorn',
)
CACHES = {
... |
674826aeab8fa0016eed829110740f9a93247b58 | fedora/manager/manager.py | fedora/manager/manager.py | from django.core.validators import URLValidator
from django.core.exceptions import ValidationError
import inspect
import requests, json
class FedoraConnectionManager:
__oerUri = ''
__parserTemplates = set()
def __init__(self, uri, templates=[], auto_retrieved=True):
validator = URLValidator(ve... | from django.core.validators import URLValidator
from django.core.exceptions import ValidationError
import inspect
import requests, json
class FedoraConnectionManager:
__oerUri = ''
__parserTemplates = set()
def __init__(self, uri, templates=[], auto_retrieved=True):
validator = URLValidator(... | Change concatination of parsed data | Change concatination of parsed data
| Python | mit | sitdh/fedora-parser | from django.core.validators import URLValidator
from django.core.exceptions import ValidationError
import inspect
import requests, json
class FedoraConnectionManager:
__oerUri = ''
__parserTemplates = set()
def __init__(self, uri, templates=[], auto_retrieved=True):
validator = URLValidator(ve... | from django.core.validators import URLValidator
from django.core.exceptions import ValidationError
import inspect
import requests, json
class FedoraConnectionManager:
__oerUri = ''
__parserTemplates = set()
def __init__(self, uri, templates=[], auto_retrieved=True):
validator = URLValidator(... | <commit_before>from django.core.validators import URLValidator
from django.core.exceptions import ValidationError
import inspect
import requests, json
class FedoraConnectionManager:
__oerUri = ''
__parserTemplates = set()
def __init__(self, uri, templates=[], auto_retrieved=True):
validator = ... | from django.core.validators import URLValidator
from django.core.exceptions import ValidationError
import inspect
import requests, json
class FedoraConnectionManager:
__oerUri = ''
__parserTemplates = set()
def __init__(self, uri, templates=[], auto_retrieved=True):
validator = URLValidator(... | from django.core.validators import URLValidator
from django.core.exceptions import ValidationError
import inspect
import requests, json
class FedoraConnectionManager:
__oerUri = ''
__parserTemplates = set()
def __init__(self, uri, templates=[], auto_retrieved=True):
validator = URLValidator(ve... | <commit_before>from django.core.validators import URLValidator
from django.core.exceptions import ValidationError
import inspect
import requests, json
class FedoraConnectionManager:
__oerUri = ''
__parserTemplates = set()
def __init__(self, uri, templates=[], auto_retrieved=True):
validator = ... |
5aae611b4e3de3b53a9dc91d0fc23c0db24802b4 | analysis/export_dockets.py | analysis/export_dockets.py | #!/usr/bin/env python
import sys
import os
import csv
import time
from datetime import datetime
from collections import namedtuple
from pymongo import Connection
pid = os.getpid()
DOCKETS_QUERY = {'scraped': True}
DOCKET_FIELDS = ['docket_id', 'title', 'agency', 'year']
if __name__ == '__main__':
# set up opt... | #!/usr/bin/env python
import sys
import os
import csv
import time
from datetime import datetime
from collections import namedtuple
from pymongo import Connection
pid = os.getpid()
DOCKETS_QUERY = {'scraped': True}
DOCKET_FIELDS = ['docket_id', 'title', 'agency', 'year']
def filter_for_postgres(v):
if v is None... | Make docket export work (done last week, but not committed for some reason). | Make docket export work (done last week, but not committed for some reason).
| Python | bsd-3-clause | sunlightlabs/regulations-scraper,sunlightlabs/regulations-scraper,sunlightlabs/regulations-scraper | #!/usr/bin/env python
import sys
import os
import csv
import time
from datetime import datetime
from collections import namedtuple
from pymongo import Connection
pid = os.getpid()
DOCKETS_QUERY = {'scraped': True}
DOCKET_FIELDS = ['docket_id', 'title', 'agency', 'year']
if __name__ == '__main__':
# set up opt... | #!/usr/bin/env python
import sys
import os
import csv
import time
from datetime import datetime
from collections import namedtuple
from pymongo import Connection
pid = os.getpid()
DOCKETS_QUERY = {'scraped': True}
DOCKET_FIELDS = ['docket_id', 'title', 'agency', 'year']
def filter_for_postgres(v):
if v is None... | <commit_before>#!/usr/bin/env python
import sys
import os
import csv
import time
from datetime import datetime
from collections import namedtuple
from pymongo import Connection
pid = os.getpid()
DOCKETS_QUERY = {'scraped': True}
DOCKET_FIELDS = ['docket_id', 'title', 'agency', 'year']
if __name__ == '__main__':
... | #!/usr/bin/env python
import sys
import os
import csv
import time
from datetime import datetime
from collections import namedtuple
from pymongo import Connection
pid = os.getpid()
DOCKETS_QUERY = {'scraped': True}
DOCKET_FIELDS = ['docket_id', 'title', 'agency', 'year']
def filter_for_postgres(v):
if v is None... | #!/usr/bin/env python
import sys
import os
import csv
import time
from datetime import datetime
from collections import namedtuple
from pymongo import Connection
pid = os.getpid()
DOCKETS_QUERY = {'scraped': True}
DOCKET_FIELDS = ['docket_id', 'title', 'agency', 'year']
if __name__ == '__main__':
# set up opt... | <commit_before>#!/usr/bin/env python
import sys
import os
import csv
import time
from datetime import datetime
from collections import namedtuple
from pymongo import Connection
pid = os.getpid()
DOCKETS_QUERY = {'scraped': True}
DOCKET_FIELDS = ['docket_id', 'title', 'agency', 'year']
if __name__ == '__main__':
... |
d88429d072f79c38d65ccaf3519495905f12f03f | calaccess_website/management/commands/updatedownloadswebsite.py | calaccess_website/management/commands/updatedownloadswebsite.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Update to the latest CAL-ACCESS snapshot and bake static website pages.
"""
import logging
from django.core.management import call_command
from calaccess_raw.management.commands.updatecalaccessrawdata import Command as updatecommand
logger = logging.getLogger(__name__)
... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Update to the latest CAL-ACCESS snapshot and bake static website pages.
"""
import logging
from django.core.management import call_command
from calaccess_raw.management.commands.updatecalaccessrawdata import Command as updatecommand
logger = logging.getLogger(__name__)
... | Add processing cmd to update routine | Add processing cmd to update routine
| Python | mit | california-civic-data-coalition/django-calaccess-downloads-website,california-civic-data-coalition/django-calaccess-downloads-website,california-civic-data-coalition/django-calaccess-downloads-website | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Update to the latest CAL-ACCESS snapshot and bake static website pages.
"""
import logging
from django.core.management import call_command
from calaccess_raw.management.commands.updatecalaccessrawdata import Command as updatecommand
logger = logging.getLogger(__name__)
... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Update to the latest CAL-ACCESS snapshot and bake static website pages.
"""
import logging
from django.core.management import call_command
from calaccess_raw.management.commands.updatecalaccessrawdata import Command as updatecommand
logger = logging.getLogger(__name__)
... | <commit_before>#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Update to the latest CAL-ACCESS snapshot and bake static website pages.
"""
import logging
from django.core.management import call_command
from calaccess_raw.management.commands.updatecalaccessrawdata import Command as updatecommand
logger = logging.getLo... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Update to the latest CAL-ACCESS snapshot and bake static website pages.
"""
import logging
from django.core.management import call_command
from calaccess_raw.management.commands.updatecalaccessrawdata import Command as updatecommand
logger = logging.getLogger(__name__)
... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Update to the latest CAL-ACCESS snapshot and bake static website pages.
"""
import logging
from django.core.management import call_command
from calaccess_raw.management.commands.updatecalaccessrawdata import Command as updatecommand
logger = logging.getLogger(__name__)
... | <commit_before>#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Update to the latest CAL-ACCESS snapshot and bake static website pages.
"""
import logging
from django.core.management import call_command
from calaccess_raw.management.commands.updatecalaccessrawdata import Command as updatecommand
logger = logging.getLo... |
0e87bd1939fe48896b840de59d69b990b8f5d91f | giki/formatter.py | giki/formatter.py | from markdown2 import markdown
from docutils.core import publish_parts
from textile import textile
def rst(string):
"""Wraps the ReST parser in Docutils.
Note that Docutils wraps its output in a `<div class='document'>`."""
return publish_parts(
source=string,
settings_overrides={
'file_insertion_enabled':... | from markdown2 import markdown
from docutils.core import publish_parts
from textile import textile
def rst(string):
"""Wraps the ReST parser in Docutils.
Note that Docutils wraps its output in a `<div class='document'>`."""
return publish_parts(
source=string,
settings_overrides={
'file_insertion_enabled':... | Add some extras to the Markdown parser | Add some extras to the Markdown parser
| Python | bsd-2-clause | adambrenecki/giki | from markdown2 import markdown
from docutils.core import publish_parts
from textile import textile
def rst(string):
"""Wraps the ReST parser in Docutils.
Note that Docutils wraps its output in a `<div class='document'>`."""
return publish_parts(
source=string,
settings_overrides={
'file_insertion_enabled':... | from markdown2 import markdown
from docutils.core import publish_parts
from textile import textile
def rst(string):
"""Wraps the ReST parser in Docutils.
Note that Docutils wraps its output in a `<div class='document'>`."""
return publish_parts(
source=string,
settings_overrides={
'file_insertion_enabled':... | <commit_before>from markdown2 import markdown
from docutils.core import publish_parts
from textile import textile
def rst(string):
"""Wraps the ReST parser in Docutils.
Note that Docutils wraps its output in a `<div class='document'>`."""
return publish_parts(
source=string,
settings_overrides={
'file_inse... | from markdown2 import markdown
from docutils.core import publish_parts
from textile import textile
def rst(string):
"""Wraps the ReST parser in Docutils.
Note that Docutils wraps its output in a `<div class='document'>`."""
return publish_parts(
source=string,
settings_overrides={
'file_insertion_enabled':... | from markdown2 import markdown
from docutils.core import publish_parts
from textile import textile
def rst(string):
"""Wraps the ReST parser in Docutils.
Note that Docutils wraps its output in a `<div class='document'>`."""
return publish_parts(
source=string,
settings_overrides={
'file_insertion_enabled':... | <commit_before>from markdown2 import markdown
from docutils.core import publish_parts
from textile import textile
def rst(string):
"""Wraps the ReST parser in Docutils.
Note that Docutils wraps its output in a `<div class='document'>`."""
return publish_parts(
source=string,
settings_overrides={
'file_inse... |
bc3aee78bb5be3afa639b8c572273b662aea1721 | glue/tests/test_settings_helpers.py | glue/tests/test_settings_helpers.py | from mock import patch
import os
from glue.config import SettingRegistry
from glue._settings_helpers import load_settings, save_settings
def test_roundtrip(tmpdir):
settings = SettingRegistry()
settings.add('STRING', 'green', str)
settings.add('INT', 3, int)
settings.add('FLOAT', 5.5, float)
se... | from mock import patch
import os
from glue.config import SettingRegistry
from glue._settings_helpers import load_settings, save_settings
def test_roundtrip(tmpdir):
settings = SettingRegistry()
settings.add('STRING', 'green', str)
settings.add('INT', 3, int)
settings.add('FLOAT', 5.5, float)
s... | Improve unit test for settings helpers | Improve unit test for settings helpers | Python | bsd-3-clause | saimn/glue,stscieisenhamer/glue,stscieisenhamer/glue,saimn/glue | from mock import patch
import os
from glue.config import SettingRegistry
from glue._settings_helpers import load_settings, save_settings
def test_roundtrip(tmpdir):
settings = SettingRegistry()
settings.add('STRING', 'green', str)
settings.add('INT', 3, int)
settings.add('FLOAT', 5.5, float)
se... | from mock import patch
import os
from glue.config import SettingRegistry
from glue._settings_helpers import load_settings, save_settings
def test_roundtrip(tmpdir):
settings = SettingRegistry()
settings.add('STRING', 'green', str)
settings.add('INT', 3, int)
settings.add('FLOAT', 5.5, float)
s... | <commit_before>from mock import patch
import os
from glue.config import SettingRegistry
from glue._settings_helpers import load_settings, save_settings
def test_roundtrip(tmpdir):
settings = SettingRegistry()
settings.add('STRING', 'green', str)
settings.add('INT', 3, int)
settings.add('FLOAT', 5.5... | from mock import patch
import os
from glue.config import SettingRegistry
from glue._settings_helpers import load_settings, save_settings
def test_roundtrip(tmpdir):
settings = SettingRegistry()
settings.add('STRING', 'green', str)
settings.add('INT', 3, int)
settings.add('FLOAT', 5.5, float)
s... | from mock import patch
import os
from glue.config import SettingRegistry
from glue._settings_helpers import load_settings, save_settings
def test_roundtrip(tmpdir):
settings = SettingRegistry()
settings.add('STRING', 'green', str)
settings.add('INT', 3, int)
settings.add('FLOAT', 5.5, float)
se... | <commit_before>from mock import patch
import os
from glue.config import SettingRegistry
from glue._settings_helpers import load_settings, save_settings
def test_roundtrip(tmpdir):
settings = SettingRegistry()
settings.add('STRING', 'green', str)
settings.add('INT', 3, int)
settings.add('FLOAT', 5.5... |
ff4d64fe5ad47e9012a49b95b1804c67da637141 | gapipy/resources/booking/document.py | gapipy/resources/booking/document.py | from __future__ import unicode_literals
from ..base import Resource
class Document(Resource):
_resource_name = 'documents'
_is_listable = False
_as_is_fields = ['id', 'href', 'mime_type', 'content', 'type', 'audience']
_date_time_fields_utc = ['date_created']
_resource_fields = [
('booki... | from __future__ import unicode_literals
from ..base import Resource
class Document(Resource):
_resource_name = 'documents'
_is_listable = False
_as_is_fields = ['id', 'href', 'mime_type', 'content', 'type', 'audience']
_date_time_fields_utc = ['date_created']
_resource_fields = [
('booki... | Add `audience` field back to Invoice resource | Add `audience` field back to Invoice resource
- field should be exposed in both Document and Invoice resources
| Python | mit | gadventures/gapipy | from __future__ import unicode_literals
from ..base import Resource
class Document(Resource):
_resource_name = 'documents'
_is_listable = False
_as_is_fields = ['id', 'href', 'mime_type', 'content', 'type', 'audience']
_date_time_fields_utc = ['date_created']
_resource_fields = [
('booki... | from __future__ import unicode_literals
from ..base import Resource
class Document(Resource):
_resource_name = 'documents'
_is_listable = False
_as_is_fields = ['id', 'href', 'mime_type', 'content', 'type', 'audience']
_date_time_fields_utc = ['date_created']
_resource_fields = [
('booki... | <commit_before>from __future__ import unicode_literals
from ..base import Resource
class Document(Resource):
_resource_name = 'documents'
_is_listable = False
_as_is_fields = ['id', 'href', 'mime_type', 'content', 'type', 'audience']
_date_time_fields_utc = ['date_created']
_resource_fields = [
... | from __future__ import unicode_literals
from ..base import Resource
class Document(Resource):
_resource_name = 'documents'
_is_listable = False
_as_is_fields = ['id', 'href', 'mime_type', 'content', 'type', 'audience']
_date_time_fields_utc = ['date_created']
_resource_fields = [
('booki... | from __future__ import unicode_literals
from ..base import Resource
class Document(Resource):
_resource_name = 'documents'
_is_listable = False
_as_is_fields = ['id', 'href', 'mime_type', 'content', 'type', 'audience']
_date_time_fields_utc = ['date_created']
_resource_fields = [
('booki... | <commit_before>from __future__ import unicode_literals
from ..base import Resource
class Document(Resource):
_resource_name = 'documents'
_is_listable = False
_as_is_fields = ['id', 'href', 'mime_type', 'content', 'type', 'audience']
_date_time_fields_utc = ['date_created']
_resource_fields = [
... |
805a6637b2f95176ec353401ae59f2d037b3f382 | elasticsearch.py | elasticsearch.py | #!/usr/bin/env python
from __future__ import print_function
import json
import os
import sys
import requests
import scraperwiki
def main(argv=None):
if argv is None:
argv = sys.argv
arg = argv[1:]
if len(arg) > 0:
# Developers can supply URL as an argument...
url = arg[0]
el... | #!/usr/bin/env python
from __future__ import print_function
import json
import os
import sys
import requests
import scraperwiki
def main(argv=None):
if argv is None:
argv = sys.argv
arg = argv[1:]
if len(arg) > 0:
# Developers can supply URL as an argument...
keywords = arg[0]
... | Fix url to keywords; fix cmd line usage | Fix url to keywords; fix cmd line usage
| Python | agpl-3.0 | scraperwiki/elasticsearch-tool,scraperwiki/elasticsearch-tool,scraperwiki/elasticsearch-tool,scraperwiki/elasticsearch-tool | #!/usr/bin/env python
from __future__ import print_function
import json
import os
import sys
import requests
import scraperwiki
def main(argv=None):
if argv is None:
argv = sys.argv
arg = argv[1:]
if len(arg) > 0:
# Developers can supply URL as an argument...
url = arg[0]
el... | #!/usr/bin/env python
from __future__ import print_function
import json
import os
import sys
import requests
import scraperwiki
def main(argv=None):
if argv is None:
argv = sys.argv
arg = argv[1:]
if len(arg) > 0:
# Developers can supply URL as an argument...
keywords = arg[0]
... | <commit_before>#!/usr/bin/env python
from __future__ import print_function
import json
import os
import sys
import requests
import scraperwiki
def main(argv=None):
if argv is None:
argv = sys.argv
arg = argv[1:]
if len(arg) > 0:
# Developers can supply URL as an argument...
url ... | #!/usr/bin/env python
from __future__ import print_function
import json
import os
import sys
import requests
import scraperwiki
def main(argv=None):
if argv is None:
argv = sys.argv
arg = argv[1:]
if len(arg) > 0:
# Developers can supply URL as an argument...
keywords = arg[0]
... | #!/usr/bin/env python
from __future__ import print_function
import json
import os
import sys
import requests
import scraperwiki
def main(argv=None):
if argv is None:
argv = sys.argv
arg = argv[1:]
if len(arg) > 0:
# Developers can supply URL as an argument...
url = arg[0]
el... | <commit_before>#!/usr/bin/env python
from __future__ import print_function
import json
import os
import sys
import requests
import scraperwiki
def main(argv=None):
if argv is None:
argv = sys.argv
arg = argv[1:]
if len(arg) > 0:
# Developers can supply URL as an argument...
url ... |
e01b0c9129c05e366605639553201f0dc2af2756 | django_fsm_log/apps.py | django_fsm_log/apps.py | from __future__ import unicode_literals
from django.apps import AppConfig
from django.conf import settings
from django.utils.module_loading import import_string
from django_fsm.signals import pre_transition, post_transition
class DjangoFSMLogAppConfig(AppConfig):
name = 'django_fsm_log'
verbose_name = "Djang... | from __future__ import unicode_literals
from django.apps import AppConfig
from django.conf import settings
from django.utils.module_loading import import_string
from django_fsm.signals import pre_transition, post_transition
class DjangoFSMLogAppConfig(AppConfig):
name = 'django_fsm_log'
verbose_name = "Djang... | Revert "Solve warning coming from django 4.0" | Revert "Solve warning coming from django 4.0"
| Python | mit | gizmag/django-fsm-log,ticosax/django-fsm-log | from __future__ import unicode_literals
from django.apps import AppConfig
from django.conf import settings
from django.utils.module_loading import import_string
from django_fsm.signals import pre_transition, post_transition
class DjangoFSMLogAppConfig(AppConfig):
name = 'django_fsm_log'
verbose_name = "Djang... | from __future__ import unicode_literals
from django.apps import AppConfig
from django.conf import settings
from django.utils.module_loading import import_string
from django_fsm.signals import pre_transition, post_transition
class DjangoFSMLogAppConfig(AppConfig):
name = 'django_fsm_log'
verbose_name = "Djang... | <commit_before>from __future__ import unicode_literals
from django.apps import AppConfig
from django.conf import settings
from django.utils.module_loading import import_string
from django_fsm.signals import pre_transition, post_transition
class DjangoFSMLogAppConfig(AppConfig):
name = 'django_fsm_log'
verbos... | from __future__ import unicode_literals
from django.apps import AppConfig
from django.conf import settings
from django.utils.module_loading import import_string
from django_fsm.signals import pre_transition, post_transition
class DjangoFSMLogAppConfig(AppConfig):
name = 'django_fsm_log'
verbose_name = "Djang... | from __future__ import unicode_literals
from django.apps import AppConfig
from django.conf import settings
from django.utils.module_loading import import_string
from django_fsm.signals import pre_transition, post_transition
class DjangoFSMLogAppConfig(AppConfig):
name = 'django_fsm_log'
verbose_name = "Djang... | <commit_before>from __future__ import unicode_literals
from django.apps import AppConfig
from django.conf import settings
from django.utils.module_loading import import_string
from django_fsm.signals import pre_transition, post_transition
class DjangoFSMLogAppConfig(AppConfig):
name = 'django_fsm_log'
verbos... |
80f08a5d75094abd8dc1762c726227d5a462d23c | framework_agreement/model/product.py | framework_agreement/model/product.py | # -*- coding: utf-8 -*-
##############################################################################
#
# Author: Nicolas Bessi
# Copyright 2013, 2014 Camptocamp SA
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# ... | # -*- coding: utf-8 -*-
##############################################################################
#
# Author: Nicolas Bessi
# Copyright 2013, 2014 Camptocamp SA
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# ... | FIX keyword in field declaration | FIX keyword in field declaration
| Python | agpl-3.0 | NovaPointGroup/purchase-workflow,lepistone/purchase-workflow,OpenCode/purchase-workflow,xpansa/purchase-workflow,NovaPointGroup/purchase-workflow,Eficent/purchase-workflow,damdam-s/purchase-workflow,juschaef/purchase-workflow,adhoc-dev/purchase-workflow,mtelahun/purchase-workflow,Endika/purchase-workflow,lepistone/purc... | # -*- coding: utf-8 -*-
##############################################################################
#
# Author: Nicolas Bessi
# Copyright 2013, 2014 Camptocamp SA
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# ... | # -*- coding: utf-8 -*-
##############################################################################
#
# Author: Nicolas Bessi
# Copyright 2013, 2014 Camptocamp SA
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# ... | <commit_before># -*- coding: utf-8 -*-
##############################################################################
#
# Author: Nicolas Bessi
# Copyright 2013, 2014 Camptocamp SA
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public ... | # -*- coding: utf-8 -*-
##############################################################################
#
# Author: Nicolas Bessi
# Copyright 2013, 2014 Camptocamp SA
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# ... | # -*- coding: utf-8 -*-
##############################################################################
#
# Author: Nicolas Bessi
# Copyright 2013, 2014 Camptocamp SA
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# ... | <commit_before># -*- coding: utf-8 -*-
##############################################################################
#
# Author: Nicolas Bessi
# Copyright 2013, 2014 Camptocamp SA
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public ... |
099ff76e6b7ea10535fd85de1709a53baa9c9252 | examples/install_german_voices.py | examples/install_german_voices.py | #!/usr/bin/python
import subprocess
import os
pkgs = [
'"VOICEID:com.apple.speech.synthesis.voice.anna.premium_2" IN tags',
'"VOICEID:com.apple.speech.synthesis.voice.steffi.premium_2" IN tags',
'"VOICEID:com.apple.speech.synthesis.voice.yannick.premium_2" IN tags'
]
for pkg in pkgs:
subprocess.call(['/usr/bin/p... | #!/usr/bin/python
import subprocess
import os
import platform
num = int(platform.release().split('.')[0])-10 # 13=>3: Mavericks, 12=>2: Mountain Lion, 11=>1: Lion
if num <= 0:
raise Exception("Voices are not available in OS X below 10.7")
if num == 1:
num = ''
else:
num = '_%d' % num
pkgs = [
'"VOICEID:com.apple... | Make voices example work on 10.7-10.9 | Make voices example work on 10.7-10.9
| Python | mit | mkuron/PredicateInstaller | #!/usr/bin/python
import subprocess
import os
pkgs = [
'"VOICEID:com.apple.speech.synthesis.voice.anna.premium_2" IN tags',
'"VOICEID:com.apple.speech.synthesis.voice.steffi.premium_2" IN tags',
'"VOICEID:com.apple.speech.synthesis.voice.yannick.premium_2" IN tags'
]
for pkg in pkgs:
subprocess.call(['/usr/bin/p... | #!/usr/bin/python
import subprocess
import os
import platform
num = int(platform.release().split('.')[0])-10 # 13=>3: Mavericks, 12=>2: Mountain Lion, 11=>1: Lion
if num <= 0:
raise Exception("Voices are not available in OS X below 10.7")
if num == 1:
num = ''
else:
num = '_%d' % num
pkgs = [
'"VOICEID:com.apple... | <commit_before>#!/usr/bin/python
import subprocess
import os
pkgs = [
'"VOICEID:com.apple.speech.synthesis.voice.anna.premium_2" IN tags',
'"VOICEID:com.apple.speech.synthesis.voice.steffi.premium_2" IN tags',
'"VOICEID:com.apple.speech.synthesis.voice.yannick.premium_2" IN tags'
]
for pkg in pkgs:
subprocess.ca... | #!/usr/bin/python
import subprocess
import os
import platform
num = int(platform.release().split('.')[0])-10 # 13=>3: Mavericks, 12=>2: Mountain Lion, 11=>1: Lion
if num <= 0:
raise Exception("Voices are not available in OS X below 10.7")
if num == 1:
num = ''
else:
num = '_%d' % num
pkgs = [
'"VOICEID:com.apple... | #!/usr/bin/python
import subprocess
import os
pkgs = [
'"VOICEID:com.apple.speech.synthesis.voice.anna.premium_2" IN tags',
'"VOICEID:com.apple.speech.synthesis.voice.steffi.premium_2" IN tags',
'"VOICEID:com.apple.speech.synthesis.voice.yannick.premium_2" IN tags'
]
for pkg in pkgs:
subprocess.call(['/usr/bin/p... | <commit_before>#!/usr/bin/python
import subprocess
import os
pkgs = [
'"VOICEID:com.apple.speech.synthesis.voice.anna.premium_2" IN tags',
'"VOICEID:com.apple.speech.synthesis.voice.steffi.premium_2" IN tags',
'"VOICEID:com.apple.speech.synthesis.voice.yannick.premium_2" IN tags'
]
for pkg in pkgs:
subprocess.ca... |
cc76b7658a62528137f14733731b6b3f3a541384 | booster_bdd/features/steps/stackAnalyses.py | booster_bdd/features/steps/stackAnalyses.py | from behave import when, then
from features.src.support import helpers
from features.src.stackAnalyses import StackAnalyses
from pyshould import should_not
@when(u'I send Maven package manifest pom-effective.xml to stack analysis')
def when_send_manifest(context):
global sa
sa = StackAnalyses()
spaceName... | from behave import when, then
from features.src.support import helpers
from features.src.stackAnalyses import StackAnalyses
from pyshould import should_not
@when(u'I send Maven package manifest pom-effective.xml to stack analysis')
def when_send_manifest(context):
sa = StackAnalyses()
spaceName = helpers.get... | Store stack analysis in the context | Store stack analysis in the context
| Python | apache-2.0 | ldimaggi/fabric8-test,ldimaggi/fabric8-test,ldimaggi/fabric8-test,ldimaggi/fabric8-test,ldimaggi/fabric8-test,ldimaggi/fabric8-test | from behave import when, then
from features.src.support import helpers
from features.src.stackAnalyses import StackAnalyses
from pyshould import should_not
@when(u'I send Maven package manifest pom-effective.xml to stack analysis')
def when_send_manifest(context):
global sa
sa = StackAnalyses()
spaceName... | from behave import when, then
from features.src.support import helpers
from features.src.stackAnalyses import StackAnalyses
from pyshould import should_not
@when(u'I send Maven package manifest pom-effective.xml to stack analysis')
def when_send_manifest(context):
sa = StackAnalyses()
spaceName = helpers.get... | <commit_before>from behave import when, then
from features.src.support import helpers
from features.src.stackAnalyses import StackAnalyses
from pyshould import should_not
@when(u'I send Maven package manifest pom-effective.xml to stack analysis')
def when_send_manifest(context):
global sa
sa = StackAnalyses()... | from behave import when, then
from features.src.support import helpers
from features.src.stackAnalyses import StackAnalyses
from pyshould import should_not
@when(u'I send Maven package manifest pom-effective.xml to stack analysis')
def when_send_manifest(context):
sa = StackAnalyses()
spaceName = helpers.get... | from behave import when, then
from features.src.support import helpers
from features.src.stackAnalyses import StackAnalyses
from pyshould import should_not
@when(u'I send Maven package manifest pom-effective.xml to stack analysis')
def when_send_manifest(context):
global sa
sa = StackAnalyses()
spaceName... | <commit_before>from behave import when, then
from features.src.support import helpers
from features.src.stackAnalyses import StackAnalyses
from pyshould import should_not
@when(u'I send Maven package manifest pom-effective.xml to stack analysis')
def when_send_manifest(context):
global sa
sa = StackAnalyses()... |
2551415469854dbaaff3bf1033904df6e477bbf7 | readthedocs/projects/migrations/0007_migrate_canonical_data.py | readthedocs/projects/migrations/0007_migrate_canonical_data.py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations
def migrate_canonical(apps, schema_editor):
Project = apps.get_model("projects", "Project")
for project in Project.objects.all():
if project.canonical_url:
domain = project.domains.create(
... | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations
def migrate_canonical(apps, schema_editor):
Project = apps.get_model("projects", "Project")
for project in Project.objects.all():
if project.canonical_url:
try:
domain = projec... | Make canonical domain transition more smooth | Make canonical domain transition more smooth
| Python | mit | techtonik/readthedocs.org,clarkperkins/readthedocs.org,pombredanne/readthedocs.org,stevepiercy/readthedocs.org,pombredanne/readthedocs.org,SteveViss/readthedocs.org,rtfd/readthedocs.org,techtonik/readthedocs.org,rtfd/readthedocs.org,wijerasa/readthedocs.org,rtfd/readthedocs.org,stevepiercy/readthedocs.org,stevepiercy/r... | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations
def migrate_canonical(apps, schema_editor):
Project = apps.get_model("projects", "Project")
for project in Project.objects.all():
if project.canonical_url:
domain = project.domains.create(
... | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations
def migrate_canonical(apps, schema_editor):
Project = apps.get_model("projects", "Project")
for project in Project.objects.all():
if project.canonical_url:
try:
domain = projec... | <commit_before># -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations
def migrate_canonical(apps, schema_editor):
Project = apps.get_model("projects", "Project")
for project in Project.objects.all():
if project.canonical_url:
domain = project.doma... | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations
def migrate_canonical(apps, schema_editor):
Project = apps.get_model("projects", "Project")
for project in Project.objects.all():
if project.canonical_url:
try:
domain = projec... | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations
def migrate_canonical(apps, schema_editor):
Project = apps.get_model("projects", "Project")
for project in Project.objects.all():
if project.canonical_url:
domain = project.domains.create(
... | <commit_before># -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations
def migrate_canonical(apps, schema_editor):
Project = apps.get_model("projects", "Project")
for project in Project.objects.all():
if project.canonical_url:
domain = project.doma... |
548fb65618dfce8aa43671f79231628a773a8f88 | imagekit/admin.py | imagekit/admin.py | from django.utils.translation import ugettext_lazy as _
from django.template.loader import render_to_string
class AdminThumbnail(object):
"""
A convenience utility for adding thumbnails to Django's admin change list.
"""
short_description = _('Thumbnail')
allow_tags = True
def __init__(self,... | from django.utils.translation import ugettext_lazy as _
from django.template.loader import render_to_string
class AdminThumbnail(object):
"""
A convenience utility for adding thumbnails to Django's admin change list.
"""
short_description = _('Thumbnail')
allow_tags = True
def __init__(self,... | Allow callables for AdminThumbnail image_field arg | Allow callables for AdminThumbnail image_field arg
This allows images from related models to be displayed. Closes #138.
| Python | bsd-3-clause | pcompassion/django-imagekit,pcompassion/django-imagekit,tawanda/django-imagekit,pcompassion/django-imagekit,tawanda/django-imagekit,FundedByMe/django-imagekit,FundedByMe/django-imagekit | from django.utils.translation import ugettext_lazy as _
from django.template.loader import render_to_string
class AdminThumbnail(object):
"""
A convenience utility for adding thumbnails to Django's admin change list.
"""
short_description = _('Thumbnail')
allow_tags = True
def __init__(self,... | from django.utils.translation import ugettext_lazy as _
from django.template.loader import render_to_string
class AdminThumbnail(object):
"""
A convenience utility for adding thumbnails to Django's admin change list.
"""
short_description = _('Thumbnail')
allow_tags = True
def __init__(self,... | <commit_before>from django.utils.translation import ugettext_lazy as _
from django.template.loader import render_to_string
class AdminThumbnail(object):
"""
A convenience utility for adding thumbnails to Django's admin change list.
"""
short_description = _('Thumbnail')
allow_tags = True
def... | from django.utils.translation import ugettext_lazy as _
from django.template.loader import render_to_string
class AdminThumbnail(object):
"""
A convenience utility for adding thumbnails to Django's admin change list.
"""
short_description = _('Thumbnail')
allow_tags = True
def __init__(self,... | from django.utils.translation import ugettext_lazy as _
from django.template.loader import render_to_string
class AdminThumbnail(object):
"""
A convenience utility for adding thumbnails to Django's admin change list.
"""
short_description = _('Thumbnail')
allow_tags = True
def __init__(self,... | <commit_before>from django.utils.translation import ugettext_lazy as _
from django.template.loader import render_to_string
class AdminThumbnail(object):
"""
A convenience utility for adding thumbnails to Django's admin change list.
"""
short_description = _('Thumbnail')
allow_tags = True
def... |
018baf83b5293799c8f79652c902aa0fa752161e | pysswords/credential.py | pysswords/credential.py | import os
class Credential(object):
def __init__(self, name, login, password, comments):
self.name = name
self.login = login
self.password = password
self.comments = comments
def save(self, database_path):
credential_path = os.path.join(database_path, self.name)
... | import os
class Credential(object):
def __init__(self, name, login, password, comments):
self.name = name
self.login = login
self.password = password
self.comments = comments
def save(self, database_path):
credential_path = os.path.join(database_path, self.name)
... | Reformat string representation of Credentials | Reformat string representation of Credentials
| Python | mit | eiginn/passpie,marcwebbie/passpie,marcwebbie/pysswords,scorphus/passpie,eiginn/passpie,marcwebbie/passpie,scorphus/passpie | import os
class Credential(object):
def __init__(self, name, login, password, comments):
self.name = name
self.login = login
self.password = password
self.comments = comments
def save(self, database_path):
credential_path = os.path.join(database_path, self.name)
... | import os
class Credential(object):
def __init__(self, name, login, password, comments):
self.name = name
self.login = login
self.password = password
self.comments = comments
def save(self, database_path):
credential_path = os.path.join(database_path, self.name)
... | <commit_before>import os
class Credential(object):
def __init__(self, name, login, password, comments):
self.name = name
self.login = login
self.password = password
self.comments = comments
def save(self, database_path):
credential_path = os.path.join(database_path, se... | import os
class Credential(object):
def __init__(self, name, login, password, comments):
self.name = name
self.login = login
self.password = password
self.comments = comments
def save(self, database_path):
credential_path = os.path.join(database_path, self.name)
... | import os
class Credential(object):
def __init__(self, name, login, password, comments):
self.name = name
self.login = login
self.password = password
self.comments = comments
def save(self, database_path):
credential_path = os.path.join(database_path, self.name)
... | <commit_before>import os
class Credential(object):
def __init__(self, name, login, password, comments):
self.name = name
self.login = login
self.password = password
self.comments = comments
def save(self, database_path):
credential_path = os.path.join(database_path, se... |
8267a2fd90cb836a6f9c3ff6d3d307344deb42ad | getwork_store.py | getwork_store.py | #License#
#bitHopper by Colin Rice is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License.
#Based on a work at github.com.
import time
from twisted.internet.task import LoopingCall
class Getwork_store:
def __init__(self, bitHopper):
self.data = {}
self... | #License#
#bitHopper by Colin Rice is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License.
#Based on a work at github.com.
import time
from twisted.internet.task import LoopingCall
class Getwork_store:
def __init__(self, bitHopper):
self.data = {}
self... | Stop getwork store from displaying Not Founds | Stop getwork store from displaying Not Founds
| Python | mit | c00w/bitHopper,c00w/bitHopper | #License#
#bitHopper by Colin Rice is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License.
#Based on a work at github.com.
import time
from twisted.internet.task import LoopingCall
class Getwork_store:
def __init__(self, bitHopper):
self.data = {}
self... | #License#
#bitHopper by Colin Rice is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License.
#Based on a work at github.com.
import time
from twisted.internet.task import LoopingCall
class Getwork_store:
def __init__(self, bitHopper):
self.data = {}
self... | <commit_before>#License#
#bitHopper by Colin Rice is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License.
#Based on a work at github.com.
import time
from twisted.internet.task import LoopingCall
class Getwork_store:
def __init__(self, bitHopper):
self.data = ... | #License#
#bitHopper by Colin Rice is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License.
#Based on a work at github.com.
import time
from twisted.internet.task import LoopingCall
class Getwork_store:
def __init__(self, bitHopper):
self.data = {}
self... | #License#
#bitHopper by Colin Rice is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License.
#Based on a work at github.com.
import time
from twisted.internet.task import LoopingCall
class Getwork_store:
def __init__(self, bitHopper):
self.data = {}
self... | <commit_before>#License#
#bitHopper by Colin Rice is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License.
#Based on a work at github.com.
import time
from twisted.internet.task import LoopingCall
class Getwork_store:
def __init__(self, bitHopper):
self.data = ... |
381ad771134a68f8b83277c2c91aeb199ba6ff96 | telemetry/telemetry/web_perf/timeline_based_page_test.py | telemetry/telemetry/web_perf/timeline_based_page_test.py | # Copyright (c) 2015 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
from telemetry.page import page_test
class TimelineBasedPageTest(page_test.PageTest):
"""Page test that collects metrics with TimelineBasedMeasurement... | # Copyright (c) 2015 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
from telemetry.page import page_test
class TimelineBasedPageTest(page_test.PageTest):
"""Page test that collects metrics with TimelineBasedMeasurement... | Fix browser restart in TimelineBasedPageTest | [Telemetry] Fix browser restart in TimelineBasedPageTest
The TimelineBasedPageTest constructor was passing in error a string where
its parent constructor expects a Boolean value for the
needs_browser_restart_after_each_page option.
BUG=504368
Review URL: https://codereview.chromium.org/1206323002
Cr-Commit-Position... | Python | bsd-3-clause | SummerLW/Perf-Insight-Report,SummerLW/Perf-Insight-Report,catapult-project/catapult-csm,benschmaus/catapult,sahiljain/catapult,catapult-project/catapult,SummerLW/Perf-Insight-Report,catapult-project/catapult,catapult-project/catapult-csm,benschmaus/catapult,catapult-project/catapult,catapult-project/catapult,SummerLW/P... | # Copyright (c) 2015 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
from telemetry.page import page_test
class TimelineBasedPageTest(page_test.PageTest):
"""Page test that collects metrics with TimelineBasedMeasurement... | # Copyright (c) 2015 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
from telemetry.page import page_test
class TimelineBasedPageTest(page_test.PageTest):
"""Page test that collects metrics with TimelineBasedMeasurement... | <commit_before># Copyright (c) 2015 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
from telemetry.page import page_test
class TimelineBasedPageTest(page_test.PageTest):
"""Page test that collects metrics with TimelineB... | # Copyright (c) 2015 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
from telemetry.page import page_test
class TimelineBasedPageTest(page_test.PageTest):
"""Page test that collects metrics with TimelineBasedMeasurement... | # Copyright (c) 2015 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
from telemetry.page import page_test
class TimelineBasedPageTest(page_test.PageTest):
"""Page test that collects metrics with TimelineBasedMeasurement... | <commit_before># Copyright (c) 2015 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
from telemetry.page import page_test
class TimelineBasedPageTest(page_test.PageTest):
"""Page test that collects metrics with TimelineB... |
d9024a447ab097e2becd9444d42b7639389e2846 | mail/app/handlers/amqp.py | mail/app/handlers/amqp.py | import logging
from carrot.messaging import Publisher
from carrot.connection import BrokerConnection
from lamson.routing import route, route_like, stateless
from config.settings import relay
from lamson import view, queue
@route("forge-list@(host)")
#@route("(post_name)@osb\\.(host)")
@stateless
def POSTING(message... | import logging
from carrot.messaging import Publisher
from carrot.connection import BrokerConnection
from lamson.routing import route, route_like, stateless
from config.settings import relay
from lamson import view, queue
@route("forge-list@(host)")
#@route("(post_name)@osb\\.(host)")
@stateless
def POSTING(message... | Change carrot serialization from JSON to 'pickle' | Change carrot serialization from JSON to 'pickle'
| Python | apache-2.0 | leotrubach/sourceforge-allura,Bitergia/allura,apache/allura,Bitergia/allura,lym/allura-git,apache/allura,apache/allura,apache/incubator-allura,leotrubach/sourceforge-allura,heiths/allura,apache/allura,Bitergia/allura,leotrubach/sourceforge-allura,Bitergia/allura,heiths/allura,leotrubach/sourceforge-allura,Bitergia/allu... | import logging
from carrot.messaging import Publisher
from carrot.connection import BrokerConnection
from lamson.routing import route, route_like, stateless
from config.settings import relay
from lamson import view, queue
@route("forge-list@(host)")
#@route("(post_name)@osb\\.(host)")
@stateless
def POSTING(message... | import logging
from carrot.messaging import Publisher
from carrot.connection import BrokerConnection
from lamson.routing import route, route_like, stateless
from config.settings import relay
from lamson import view, queue
@route("forge-list@(host)")
#@route("(post_name)@osb\\.(host)")
@stateless
def POSTING(message... | <commit_before>import logging
from carrot.messaging import Publisher
from carrot.connection import BrokerConnection
from lamson.routing import route, route_like, stateless
from config.settings import relay
from lamson import view, queue
@route("forge-list@(host)")
#@route("(post_name)@osb\\.(host)")
@stateless
def ... | import logging
from carrot.messaging import Publisher
from carrot.connection import BrokerConnection
from lamson.routing import route, route_like, stateless
from config.settings import relay
from lamson import view, queue
@route("forge-list@(host)")
#@route("(post_name)@osb\\.(host)")
@stateless
def POSTING(message... | import logging
from carrot.messaging import Publisher
from carrot.connection import BrokerConnection
from lamson.routing import route, route_like, stateless
from config.settings import relay
from lamson import view, queue
@route("forge-list@(host)")
#@route("(post_name)@osb\\.(host)")
@stateless
def POSTING(message... | <commit_before>import logging
from carrot.messaging import Publisher
from carrot.connection import BrokerConnection
from lamson.routing import route, route_like, stateless
from config.settings import relay
from lamson import view, queue
@route("forge-list@(host)")
#@route("(post_name)@osb\\.(host)")
@stateless
def ... |
91735062c85ccf852792b2a0c6509044b90c99c0 | tests/test_listener.py | tests/test_listener.py | #!/usr/bin/env python
import pytest
import pg_bawler.core
def test_register_handlers():
listener = pg_bawler.core.ListenerMixin()
assert listener.register_handler(None) == 0
assert listener.register_handler(True) == 1
assert listener.unregister_handler(None)
assert not listener.unregister_handler... | #!/usr/bin/env python
import os
import pytest
import pg_bawler.core
def test_register_handlers():
listener = pg_bawler.core.ListenerMixin()
assert listener.register_handler(None) == 0
assert listener.register_handler(True) == 1
assert listener.unregister_handler(None)
assert not listener.unregis... | Use env variables for postgres conn in tests | Use env variables for postgres conn in tests
| Python | bsd-3-clause | beezz/pg_bawler,beezz/pg_bawler | #!/usr/bin/env python
import pytest
import pg_bawler.core
def test_register_handlers():
listener = pg_bawler.core.ListenerMixin()
assert listener.register_handler(None) == 0
assert listener.register_handler(True) == 1
assert listener.unregister_handler(None)
assert not listener.unregister_handler... | #!/usr/bin/env python
import os
import pytest
import pg_bawler.core
def test_register_handlers():
listener = pg_bawler.core.ListenerMixin()
assert listener.register_handler(None) == 0
assert listener.register_handler(True) == 1
assert listener.unregister_handler(None)
assert not listener.unregis... | <commit_before>#!/usr/bin/env python
import pytest
import pg_bawler.core
def test_register_handlers():
listener = pg_bawler.core.ListenerMixin()
assert listener.register_handler(None) == 0
assert listener.register_handler(True) == 1
assert listener.unregister_handler(None)
assert not listener.unr... | #!/usr/bin/env python
import os
import pytest
import pg_bawler.core
def test_register_handlers():
listener = pg_bawler.core.ListenerMixin()
assert listener.register_handler(None) == 0
assert listener.register_handler(True) == 1
assert listener.unregister_handler(None)
assert not listener.unregis... | #!/usr/bin/env python
import pytest
import pg_bawler.core
def test_register_handlers():
listener = pg_bawler.core.ListenerMixin()
assert listener.register_handler(None) == 0
assert listener.register_handler(True) == 1
assert listener.unregister_handler(None)
assert not listener.unregister_handler... | <commit_before>#!/usr/bin/env python
import pytest
import pg_bawler.core
def test_register_handlers():
listener = pg_bawler.core.ListenerMixin()
assert listener.register_handler(None) == 0
assert listener.register_handler(True) == 1
assert listener.unregister_handler(None)
assert not listener.unr... |
2c9343ed11ffff699f53fb99a444a90cca943070 | tests/triangle_test.py | tests/triangle_test.py | import numpy as np
import triangle
import astropy.io.ascii as ascii
import matplotlib.pyplot as plt
pyout = ascii.read('test.pyout')
idlout = ascii.read('test.idlout')
fig, axarr = plt.subplots(9, 9, figsize=(10, 10))
fig.suptitle("Black = python, red = IDL")
triangle.corner(np.array([pyout['alpha'], pyout['beta'], p... | import numpy as np
import corner
import astropy.io.ascii as ascii
import matplotlib.pyplot as plt
pyout = ascii.read('test.pyout')
idlout = ascii.read('test.idlout')
fig, axarr = plt.subplots(9, 9, figsize=(10, 10))
fig.suptitle("Black = python, red = IDL")
corner.corner(np.array([pyout['alpha'], pyout['beta'], pyout... | Use updated corner plot API | Use updated corner plot API
| Python | bsd-2-clause | jmeyers314/linmix | import numpy as np
import triangle
import astropy.io.ascii as ascii
import matplotlib.pyplot as plt
pyout = ascii.read('test.pyout')
idlout = ascii.read('test.idlout')
fig, axarr = plt.subplots(9, 9, figsize=(10, 10))
fig.suptitle("Black = python, red = IDL")
triangle.corner(np.array([pyout['alpha'], pyout['beta'], p... | import numpy as np
import corner
import astropy.io.ascii as ascii
import matplotlib.pyplot as plt
pyout = ascii.read('test.pyout')
idlout = ascii.read('test.idlout')
fig, axarr = plt.subplots(9, 9, figsize=(10, 10))
fig.suptitle("Black = python, red = IDL")
corner.corner(np.array([pyout['alpha'], pyout['beta'], pyout... | <commit_before>import numpy as np
import triangle
import astropy.io.ascii as ascii
import matplotlib.pyplot as plt
pyout = ascii.read('test.pyout')
idlout = ascii.read('test.idlout')
fig, axarr = plt.subplots(9, 9, figsize=(10, 10))
fig.suptitle("Black = python, red = IDL")
triangle.corner(np.array([pyout['alpha'], p... | import numpy as np
import corner
import astropy.io.ascii as ascii
import matplotlib.pyplot as plt
pyout = ascii.read('test.pyout')
idlout = ascii.read('test.idlout')
fig, axarr = plt.subplots(9, 9, figsize=(10, 10))
fig.suptitle("Black = python, red = IDL")
corner.corner(np.array([pyout['alpha'], pyout['beta'], pyout... | import numpy as np
import triangle
import astropy.io.ascii as ascii
import matplotlib.pyplot as plt
pyout = ascii.read('test.pyout')
idlout = ascii.read('test.idlout')
fig, axarr = plt.subplots(9, 9, figsize=(10, 10))
fig.suptitle("Black = python, red = IDL")
triangle.corner(np.array([pyout['alpha'], pyout['beta'], p... | <commit_before>import numpy as np
import triangle
import astropy.io.ascii as ascii
import matplotlib.pyplot as plt
pyout = ascii.read('test.pyout')
idlout = ascii.read('test.idlout')
fig, axarr = plt.subplots(9, 9, figsize=(10, 10))
fig.suptitle("Black = python, red = IDL")
triangle.corner(np.array([pyout['alpha'], p... |
e11b9ee6cf2119e8c3fa8ffa35c0cff5852fa5ee | launch_control/commands/interface.py | launch_control/commands/interface.py | """
Interface for all launch-control-tool commands
"""
import inspect
from launch_control.utils.registry import RegistryBase
class Command(RegistryBase):
"""
Base class for all command line tool sub-commands.
"""
def __init__(self, parser, args):
"""
Prepare instance for executing co... | """
Interface for all launch-control-tool commands
"""
import inspect
from launch_control.utils.registry import RegistryBase
class Command(RegistryBase):
"""
Base class for all command line tool sub-commands.
"""
def __init__(self, parser, args):
"""
Prepare instance for executing co... | Raise NotImplementedError instead of NotImplemented | Raise NotImplementedError instead of NotImplemented
| Python | agpl-3.0 | OSSystems/lava-server,OSSystems/lava-server,Linaro/lava-server,Linaro/lava-server,Linaro/lava-server,OSSystems/lava-server,Linaro/lava-server | """
Interface for all launch-control-tool commands
"""
import inspect
from launch_control.utils.registry import RegistryBase
class Command(RegistryBase):
"""
Base class for all command line tool sub-commands.
"""
def __init__(self, parser, args):
"""
Prepare instance for executing co... | """
Interface for all launch-control-tool commands
"""
import inspect
from launch_control.utils.registry import RegistryBase
class Command(RegistryBase):
"""
Base class for all command line tool sub-commands.
"""
def __init__(self, parser, args):
"""
Prepare instance for executing co... | <commit_before>"""
Interface for all launch-control-tool commands
"""
import inspect
from launch_control.utils.registry import RegistryBase
class Command(RegistryBase):
"""
Base class for all command line tool sub-commands.
"""
def __init__(self, parser, args):
"""
Prepare instance f... | """
Interface for all launch-control-tool commands
"""
import inspect
from launch_control.utils.registry import RegistryBase
class Command(RegistryBase):
"""
Base class for all command line tool sub-commands.
"""
def __init__(self, parser, args):
"""
Prepare instance for executing co... | """
Interface for all launch-control-tool commands
"""
import inspect
from launch_control.utils.registry import RegistryBase
class Command(RegistryBase):
"""
Base class for all command line tool sub-commands.
"""
def __init__(self, parser, args):
"""
Prepare instance for executing co... | <commit_before>"""
Interface for all launch-control-tool commands
"""
import inspect
from launch_control.utils.registry import RegistryBase
class Command(RegistryBase):
"""
Base class for all command line tool sub-commands.
"""
def __init__(self, parser, args):
"""
Prepare instance f... |
86e6cb5e32b9698fad734da9ce4c2be8dea586e0 | resolverapi/__init__.py | resolverapi/__init__.py | import os
from flask import Flask
from flask_restful import Api
from dns.resolver import Resolver
from flask_cors import CORS
dns_resolver = Resolver()
def create_app(config_name):
app = Flask(__name__)
if config_name == 'dev':
app.config.from_object('resolverapi.config.DevelopmentConfig')
else... | import os
from flask import Flask, jsonify
from flask_restful import Api
from dns.resolver import Resolver
from flask_cors import CORS
dns_resolver = Resolver()
def create_app(config_name):
app = Flask(__name__)
if config_name == 'dev':
app.config.from_object('resolverapi.config.DevelopmentConfig')... | Create root page for api.openresolve.com | Create root page for api.openresolve.com
| Python | bsd-2-clause | opendns/OpenResolve | import os
from flask import Flask
from flask_restful import Api
from dns.resolver import Resolver
from flask_cors import CORS
dns_resolver = Resolver()
def create_app(config_name):
app = Flask(__name__)
if config_name == 'dev':
app.config.from_object('resolverapi.config.DevelopmentConfig')
else... | import os
from flask import Flask, jsonify
from flask_restful import Api
from dns.resolver import Resolver
from flask_cors import CORS
dns_resolver = Resolver()
def create_app(config_name):
app = Flask(__name__)
if config_name == 'dev':
app.config.from_object('resolverapi.config.DevelopmentConfig')... | <commit_before>import os
from flask import Flask
from flask_restful import Api
from dns.resolver import Resolver
from flask_cors import CORS
dns_resolver = Resolver()
def create_app(config_name):
app = Flask(__name__)
if config_name == 'dev':
app.config.from_object('resolverapi.config.DevelopmentCo... | import os
from flask import Flask, jsonify
from flask_restful import Api
from dns.resolver import Resolver
from flask_cors import CORS
dns_resolver = Resolver()
def create_app(config_name):
app = Flask(__name__)
if config_name == 'dev':
app.config.from_object('resolverapi.config.DevelopmentConfig')... | import os
from flask import Flask
from flask_restful import Api
from dns.resolver import Resolver
from flask_cors import CORS
dns_resolver = Resolver()
def create_app(config_name):
app = Flask(__name__)
if config_name == 'dev':
app.config.from_object('resolverapi.config.DevelopmentConfig')
else... | <commit_before>import os
from flask import Flask
from flask_restful import Api
from dns.resolver import Resolver
from flask_cors import CORS
dns_resolver = Resolver()
def create_app(config_name):
app = Flask(__name__)
if config_name == 'dev':
app.config.from_object('resolverapi.config.DevelopmentCo... |
6ed04d735641a42103f7626fafc8570f04b6b1dc | quiet.py | quiet.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import webbrowser
from Foundation import NSBundle
import rumps
import modules.google_calendar
#rumps.debug_mode(True) # turn on command line logging information for development - default is off
def about(sender):
webbrowser.open("https://github.com/hiroshi/quiet")
if... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import webbrowser
from Foundation import NSBundle
import rumps
import modules.google_calendar
#rumps.debug_mode(True) # turn on command line logging information for development - default is off
def about(sender):
webbrowser.open("https://github.com/hiroshi/quiet/wiki"... | Change about link to github wiki | Change about link to github wiki
| Python | mit | hiroshi/quiet | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import webbrowser
from Foundation import NSBundle
import rumps
import modules.google_calendar
#rumps.debug_mode(True) # turn on command line logging information for development - default is off
def about(sender):
webbrowser.open("https://github.com/hiroshi/quiet")
if... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import webbrowser
from Foundation import NSBundle
import rumps
import modules.google_calendar
#rumps.debug_mode(True) # turn on command line logging information for development - default is off
def about(sender):
webbrowser.open("https://github.com/hiroshi/quiet/wiki"... | <commit_before>#!/usr/bin/env python
# -*- coding: utf-8 -*-
import webbrowser
from Foundation import NSBundle
import rumps
import modules.google_calendar
#rumps.debug_mode(True) # turn on command line logging information for development - default is off
def about(sender):
webbrowser.open("https://github.com/hiro... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import webbrowser
from Foundation import NSBundle
import rumps
import modules.google_calendar
#rumps.debug_mode(True) # turn on command line logging information for development - default is off
def about(sender):
webbrowser.open("https://github.com/hiroshi/quiet/wiki"... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import webbrowser
from Foundation import NSBundle
import rumps
import modules.google_calendar
#rumps.debug_mode(True) # turn on command line logging information for development - default is off
def about(sender):
webbrowser.open("https://github.com/hiroshi/quiet")
if... | <commit_before>#!/usr/bin/env python
# -*- coding: utf-8 -*-
import webbrowser
from Foundation import NSBundle
import rumps
import modules.google_calendar
#rumps.debug_mode(True) # turn on command line logging information for development - default is off
def about(sender):
webbrowser.open("https://github.com/hiro... |
22c8428392e83e33552dbe9df82cc4647311cd8f | common/settings.py | common/settings.py | import optparse, os, pickle
config = {'charity':False,
'propagate_factor':2,
'accept_latency':2000}
def setup():
parser = optparse.OptionParser()
parser.add_option('-c',
'--charity',
dest='charity',
default=None,
a... | import optparse, os, pickle
config = {'charity':False,
'propagate_factor':2,
'accept_latency':2000}
def setup():
parser = optparse.OptionParser()
parser.add_option('-c',
'--charity',
dest='charity',
default=None,
a... | Add primitive server option for easier debugging | Add primitive server option for easier debugging | Python | mit | gappleto97/Senior-Project | import optparse, os, pickle
config = {'charity':False,
'propagate_factor':2,
'accept_latency':2000}
def setup():
parser = optparse.OptionParser()
parser.add_option('-c',
'--charity',
dest='charity',
default=None,
a... | import optparse, os, pickle
config = {'charity':False,
'propagate_factor':2,
'accept_latency':2000}
def setup():
parser = optparse.OptionParser()
parser.add_option('-c',
'--charity',
dest='charity',
default=None,
a... | <commit_before>import optparse, os, pickle
config = {'charity':False,
'propagate_factor':2,
'accept_latency':2000}
def setup():
parser = optparse.OptionParser()
parser.add_option('-c',
'--charity',
dest='charity',
default=None,
... | import optparse, os, pickle
config = {'charity':False,
'propagate_factor':2,
'accept_latency':2000}
def setup():
parser = optparse.OptionParser()
parser.add_option('-c',
'--charity',
dest='charity',
default=None,
a... | import optparse, os, pickle
config = {'charity':False,
'propagate_factor':2,
'accept_latency':2000}
def setup():
parser = optparse.OptionParser()
parser.add_option('-c',
'--charity',
dest='charity',
default=None,
a... | <commit_before>import optparse, os, pickle
config = {'charity':False,
'propagate_factor':2,
'accept_latency':2000}
def setup():
parser = optparse.OptionParser()
parser.add_option('-c',
'--charity',
dest='charity',
default=None,
... |
c1daf2130c20cedbe18c4c5e58584960f8ffc239 | serve.py | serve.py | import sys
from http.server import HTTPServer, BaseHTTPRequestHandler
class MyHTTPRequestHandler(BaseHTTPRequestHandler):
def do_GET(self):
client_ip = self.client_address[0]
if client_ip == '127.0.0.1' and 'X-Real-IP' in self.headers:
client_ip = self.headers['X-Real-IP']
s... | import json
from string import capwords
import sys
from http.server import HTTPServer, BaseHTTPRequestHandler
import ssl
import urllib.request
class MyHTTPRequestHandler(BaseHTTPRequestHandler):
def __tabulate_results(self, json_obj):
table = ''
for k, v in json_obj.items():
table +=... | Add URI param that queries freegeoip | Add URI param that queries freegeoip
| Python | mit | afreeorange/what-is-my-ip | import sys
from http.server import HTTPServer, BaseHTTPRequestHandler
class MyHTTPRequestHandler(BaseHTTPRequestHandler):
def do_GET(self):
client_ip = self.client_address[0]
if client_ip == '127.0.0.1' and 'X-Real-IP' in self.headers:
client_ip = self.headers['X-Real-IP']
s... | import json
from string import capwords
import sys
from http.server import HTTPServer, BaseHTTPRequestHandler
import ssl
import urllib.request
class MyHTTPRequestHandler(BaseHTTPRequestHandler):
def __tabulate_results(self, json_obj):
table = ''
for k, v in json_obj.items():
table +=... | <commit_before>import sys
from http.server import HTTPServer, BaseHTTPRequestHandler
class MyHTTPRequestHandler(BaseHTTPRequestHandler):
def do_GET(self):
client_ip = self.client_address[0]
if client_ip == '127.0.0.1' and 'X-Real-IP' in self.headers:
client_ip = self.headers['X-Real-... | import json
from string import capwords
import sys
from http.server import HTTPServer, BaseHTTPRequestHandler
import ssl
import urllib.request
class MyHTTPRequestHandler(BaseHTTPRequestHandler):
def __tabulate_results(self, json_obj):
table = ''
for k, v in json_obj.items():
table +=... | import sys
from http.server import HTTPServer, BaseHTTPRequestHandler
class MyHTTPRequestHandler(BaseHTTPRequestHandler):
def do_GET(self):
client_ip = self.client_address[0]
if client_ip == '127.0.0.1' and 'X-Real-IP' in self.headers:
client_ip = self.headers['X-Real-IP']
s... | <commit_before>import sys
from http.server import HTTPServer, BaseHTTPRequestHandler
class MyHTTPRequestHandler(BaseHTTPRequestHandler):
def do_GET(self):
client_ip = self.client_address[0]
if client_ip == '127.0.0.1' and 'X-Real-IP' in self.headers:
client_ip = self.headers['X-Real-... |
d16c99033f10be0b35a3d2bb18914d364c51b677 | metro_sale/sale_product.py | metro_sale/sale_product.py | # -*- encoding: utf-8 -*-
from osv import fields,osv
#the ID for the purchase requisition and the material request
class sale_product(osv.osv):
_name = "sale.product"
_description = "Sale Product"
_columns = {
'name': fields.char('ID', size=32, required=True),
'note': fields.char('Descriptio... | # -*- encoding: utf-8 -*-
from osv import fields,osv
#the ID for the purchase requisition and the material request
class sale_product(osv.osv):
_name = "sale.product"
_description = "Sale Product"
_columns = {
'name': fields.char('ID', size=32, required=True),
'note': fields.char('Descriptio... | Add the ID unique constraint | Add the ID unique constraint
| Python | agpl-3.0 | john-wang-metro/metro-openerp,837278709/metro-openerp,john-wang-metro/metro-openerp,837278709/metro-openerp,john-wang-metro/metro-openerp,837278709/metro-openerp | # -*- encoding: utf-8 -*-
from osv import fields,osv
#the ID for the purchase requisition and the material request
class sale_product(osv.osv):
_name = "sale.product"
_description = "Sale Product"
_columns = {
'name': fields.char('ID', size=32, required=True),
'note': fields.char('Descriptio... | # -*- encoding: utf-8 -*-
from osv import fields,osv
#the ID for the purchase requisition and the material request
class sale_product(osv.osv):
_name = "sale.product"
_description = "Sale Product"
_columns = {
'name': fields.char('ID', size=32, required=True),
'note': fields.char('Descriptio... | <commit_before># -*- encoding: utf-8 -*-
from osv import fields,osv
#the ID for the purchase requisition and the material request
class sale_product(osv.osv):
_name = "sale.product"
_description = "Sale Product"
_columns = {
'name': fields.char('ID', size=32, required=True),
'note': fields.c... | # -*- encoding: utf-8 -*-
from osv import fields,osv
#the ID for the purchase requisition and the material request
class sale_product(osv.osv):
_name = "sale.product"
_description = "Sale Product"
_columns = {
'name': fields.char('ID', size=32, required=True),
'note': fields.char('Descriptio... | # -*- encoding: utf-8 -*-
from osv import fields,osv
#the ID for the purchase requisition and the material request
class sale_product(osv.osv):
_name = "sale.product"
_description = "Sale Product"
_columns = {
'name': fields.char('ID', size=32, required=True),
'note': fields.char('Descriptio... | <commit_before># -*- encoding: utf-8 -*-
from osv import fields,osv
#the ID for the purchase requisition and the material request
class sale_product(osv.osv):
_name = "sale.product"
_description = "Sale Product"
_columns = {
'name': fields.char('ID', size=32, required=True),
'note': fields.c... |
ce077d09ec680dcb0aaadd8f58ec9d3f9ad3263a | app/soc/modules/gci/views/common_templates.py | app/soc/modules/gci/views/common_templates.py | #!/usr/bin/env python2.5
#
# Copyright 2011 the Melange authors.
#
# 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 applic... | #!/usr/bin/env python2.5
#
# Copyright 2011 the Melange authors.
#
# 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 applic... | Use the refactored timeline helpers for remaining time. | Use the refactored timeline helpers for remaining time.
| Python | apache-2.0 | rhyolight/nupic.son,rhyolight/nupic.son,rhyolight/nupic.son | #!/usr/bin/env python2.5
#
# Copyright 2011 the Melange authors.
#
# 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 applic... | #!/usr/bin/env python2.5
#
# Copyright 2011 the Melange authors.
#
# 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 applic... | <commit_before>#!/usr/bin/env python2.5
#
# Copyright 2011 the Melange authors.
#
# 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 req... | #!/usr/bin/env python2.5
#
# Copyright 2011 the Melange authors.
#
# 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 applic... | #!/usr/bin/env python2.5
#
# Copyright 2011 the Melange authors.
#
# 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 applic... | <commit_before>#!/usr/bin/env python2.5
#
# Copyright 2011 the Melange authors.
#
# 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 req... |
f265cafc5768921465acc2e606b8418e30c69803 | setup.py | setup.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import sys
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
settings = dict()
# Publish
if sys.argv[-1] == 'publish':
os.system('python setup.py sdist upload')
sys.exit()
settings.update(
name='whenpy'... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import sys
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
settings = dict()
# Publish
if sys.argv[-1] == 'publish':
os.system('python setup.py sdist upload')
sys.exit()
settings.update(
name='whenpy'... | Fix order of classifiers The list should be alphabetical. N comes after L. | Fix order of classifiers
The list should be alphabetical. N comes after L.
| Python | bsd-3-clause | dirn/When.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import sys
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
settings = dict()
# Publish
if sys.argv[-1] == 'publish':
os.system('python setup.py sdist upload')
sys.exit()
settings.update(
name='whenpy'... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import sys
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
settings = dict()
# Publish
if sys.argv[-1] == 'publish':
os.system('python setup.py sdist upload')
sys.exit()
settings.update(
name='whenpy'... | <commit_before>#!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import sys
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
settings = dict()
# Publish
if sys.argv[-1] == 'publish':
os.system('python setup.py sdist upload')
sys.exit()
settings.update(
... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import sys
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
settings = dict()
# Publish
if sys.argv[-1] == 'publish':
os.system('python setup.py sdist upload')
sys.exit()
settings.update(
name='whenpy'... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import sys
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
settings = dict()
# Publish
if sys.argv[-1] == 'publish':
os.system('python setup.py sdist upload')
sys.exit()
settings.update(
name='whenpy'... | <commit_before>#!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import sys
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
settings = dict()
# Publish
if sys.argv[-1] == 'publish':
os.system('python setup.py sdist upload')
sys.exit()
settings.update(
... |
3ee9bcc4b4322ba2464cb5f954da4f29de388ef9 | gateware/info/__init__.py | gateware/info/__init__.py | """
Module for info embedded in the gateware / board.
"""
from litex.build.generic_platform import ConstraintError
from litex.gen import *
from litex.soc.interconnect.csr import *
from gateware.info import git
from gateware.info import dna
from gateware.info import platform as platform_info
class Info(Module, AutoC... | """
Module for info embedded in the gateware / board.
"""
from litex.build.generic_platform import ConstraintError
from litex.gen import *
from litex.soc.interconnect.csr import *
from gateware.info import git
from gateware.info import dna
from gateware.info import xadc
from gateware.info import platform as platform_... | Add xadc if device supports it. | gateware: Add xadc if device supports it.
| Python | bsd-2-clause | cr1901/HDMI2USB-litex-firmware,cr1901/HDMI2USB-litex-firmware,cr1901/HDMI2USB-litex-firmware,cr1901/HDMI2USB-litex-firmware,mithro/HDMI2USB-litex-firmware,mithro/HDMI2USB-litex-firmware,mithro/HDMI2USB-litex-firmware,mithro/HDMI2USB-litex-firmware | """
Module for info embedded in the gateware / board.
"""
from litex.build.generic_platform import ConstraintError
from litex.gen import *
from litex.soc.interconnect.csr import *
from gateware.info import git
from gateware.info import dna
from gateware.info import platform as platform_info
class Info(Module, AutoC... | """
Module for info embedded in the gateware / board.
"""
from litex.build.generic_platform import ConstraintError
from litex.gen import *
from litex.soc.interconnect.csr import *
from gateware.info import git
from gateware.info import dna
from gateware.info import xadc
from gateware.info import platform as platform_... | <commit_before>"""
Module for info embedded in the gateware / board.
"""
from litex.build.generic_platform import ConstraintError
from litex.gen import *
from litex.soc.interconnect.csr import *
from gateware.info import git
from gateware.info import dna
from gateware.info import platform as platform_info
class Inf... | """
Module for info embedded in the gateware / board.
"""
from litex.build.generic_platform import ConstraintError
from litex.gen import *
from litex.soc.interconnect.csr import *
from gateware.info import git
from gateware.info import dna
from gateware.info import xadc
from gateware.info import platform as platform_... | """
Module for info embedded in the gateware / board.
"""
from litex.build.generic_platform import ConstraintError
from litex.gen import *
from litex.soc.interconnect.csr import *
from gateware.info import git
from gateware.info import dna
from gateware.info import platform as platform_info
class Info(Module, AutoC... | <commit_before>"""
Module for info embedded in the gateware / board.
"""
from litex.build.generic_platform import ConstraintError
from litex.gen import *
from litex.soc.interconnect.csr import *
from gateware.info import git
from gateware.info import dna
from gateware.info import platform as platform_info
class Inf... |
093b980f44c9eab7d91e802b4688a0cb2b172a35 | setup.py | setup.py | #!/usr/bin/env python
from distutils.core import setup
from setuptools import find_packages
import stackformation
import sys
if sys.version_info <= (2, 5):
error = "ERROR: stackformation requires Python Version 2.6 or above...exiting."
print >> sys.stderr, error
sys.exit(1)
setup(name="stackformation",
... | #!/usr/bin/env python
from distutils.core import setup
from setuptools import find_packages
import stackformation
import sys
if sys.version_info <= (2, 5):
error = "ERROR: stackformation requires Python Version 2.6 or above...exiting."
print >> sys.stderr, error
sys.exit(1)
setup(name="stackformation",
... | Fix incomplete update to botocross 1.1.1 | Fix incomplete update to botocross 1.1.1
| Python | apache-2.0 | sopel/stackformation,sopel/stackformation | #!/usr/bin/env python
from distutils.core import setup
from setuptools import find_packages
import stackformation
import sys
if sys.version_info <= (2, 5):
error = "ERROR: stackformation requires Python Version 2.6 or above...exiting."
print >> sys.stderr, error
sys.exit(1)
setup(name="stackformation",
... | #!/usr/bin/env python
from distutils.core import setup
from setuptools import find_packages
import stackformation
import sys
if sys.version_info <= (2, 5):
error = "ERROR: stackformation requires Python Version 2.6 or above...exiting."
print >> sys.stderr, error
sys.exit(1)
setup(name="stackformation",
... | <commit_before>#!/usr/bin/env python
from distutils.core import setup
from setuptools import find_packages
import stackformation
import sys
if sys.version_info <= (2, 5):
error = "ERROR: stackformation requires Python Version 2.6 or above...exiting."
print >> sys.stderr, error
sys.exit(1)
setup(name="stac... | #!/usr/bin/env python
from distutils.core import setup
from setuptools import find_packages
import stackformation
import sys
if sys.version_info <= (2, 5):
error = "ERROR: stackformation requires Python Version 2.6 or above...exiting."
print >> sys.stderr, error
sys.exit(1)
setup(name="stackformation",
... | #!/usr/bin/env python
from distutils.core import setup
from setuptools import find_packages
import stackformation
import sys
if sys.version_info <= (2, 5):
error = "ERROR: stackformation requires Python Version 2.6 or above...exiting."
print >> sys.stderr, error
sys.exit(1)
setup(name="stackformation",
... | <commit_before>#!/usr/bin/env python
from distutils.core import setup
from setuptools import find_packages
import stackformation
import sys
if sys.version_info <= (2, 5):
error = "ERROR: stackformation requires Python Version 2.6 or above...exiting."
print >> sys.stderr, error
sys.exit(1)
setup(name="stac... |
5da2b86884f341f73975818e976a9c4263dcd0f8 | setup.py | setup.py | from setuptools import setup
setup(name='streampy',
version='0.4',
description='Java like stream pipelines, supports parallel operations',
url='https://github.com/tolsac/streampy.git',
author='Camille Tolsa',
author_email='camille.tolsa@gmail.com',
license='MIT',
packages=['.'... | from setuptools import setup
setup(name='streampy',
version='0.5',
description='Java like stream pipelines, supports parallel operations',
url='https://github.com/tolsac/streampy.git',
author='Camille Tolsa',
author_email='camille.tolsa@gmail.com',
license='MIT',
packages=['.'... | Add thread/processes to map method. Add substream method | Add thread/processes to map method.
Add substream method
| Python | mit | tolsac/streampy | from setuptools import setup
setup(name='streampy',
version='0.4',
description='Java like stream pipelines, supports parallel operations',
url='https://github.com/tolsac/streampy.git',
author='Camille Tolsa',
author_email='camille.tolsa@gmail.com',
license='MIT',
packages=['.'... | from setuptools import setup
setup(name='streampy',
version='0.5',
description='Java like stream pipelines, supports parallel operations',
url='https://github.com/tolsac/streampy.git',
author='Camille Tolsa',
author_email='camille.tolsa@gmail.com',
license='MIT',
packages=['.'... | <commit_before>from setuptools import setup
setup(name='streampy',
version='0.4',
description='Java like stream pipelines, supports parallel operations',
url='https://github.com/tolsac/streampy.git',
author='Camille Tolsa',
author_email='camille.tolsa@gmail.com',
license='MIT',
... | from setuptools import setup
setup(name='streampy',
version='0.5',
description='Java like stream pipelines, supports parallel operations',
url='https://github.com/tolsac/streampy.git',
author='Camille Tolsa',
author_email='camille.tolsa@gmail.com',
license='MIT',
packages=['.'... | from setuptools import setup
setup(name='streampy',
version='0.4',
description='Java like stream pipelines, supports parallel operations',
url='https://github.com/tolsac/streampy.git',
author='Camille Tolsa',
author_email='camille.tolsa@gmail.com',
license='MIT',
packages=['.'... | <commit_before>from setuptools import setup
setup(name='streampy',
version='0.4',
description='Java like stream pipelines, supports parallel operations',
url='https://github.com/tolsac/streampy.git',
author='Camille Tolsa',
author_email='camille.tolsa@gmail.com',
license='MIT',
... |
fb800021dab09dfcbbb9499da1599a7e39ae2792 | setup.py | setup.py |
import os
import sys
from distutils.command.build import build
from setuptools import setup, Command
version_info = {
'name': 'ovirt-engine-sdk-python',
'version': '3.6.0.0',
'description': 'A SDK interface to oVirt Virtualization',
'author': 'Michael Pasternak',
'author_email': 'mpastern@redhat... |
import os
import sys
from distutils.command.build import build
from setuptools import setup, Command
version_info = {
'name': 'ovirt-engine-sdk-python',
'version': '3.6.0.0preview7',
'description': 'A SDK interface to oVirt Virtualization',
'author': 'Michael Pasternak',
'author_email': 'mpaster... | Introduce "preview" suffix in the version number | sdk: Introduce "preview" suffix in the version number
This will allow versioning of pre-releases for people that doesn't use
the RPM packaging.
Change-Id: Id5972c0fbf8bdc7f5714101d8dfad4c6b4758ceb
Signed-off-by: Juan Hernandez <59e5b8140de97cc91c3fb6c5342dce948469af8c@redhat.com>
| Python | apache-2.0 | DragonRoman/ovirt-engine-sdk,DragonRoman/ovirt-engine-sdk,DragonRoman/ovirt-engine-sdk |
import os
import sys
from distutils.command.build import build
from setuptools import setup, Command
version_info = {
'name': 'ovirt-engine-sdk-python',
'version': '3.6.0.0',
'description': 'A SDK interface to oVirt Virtualization',
'author': 'Michael Pasternak',
'author_email': 'mpastern@redhat... |
import os
import sys
from distutils.command.build import build
from setuptools import setup, Command
version_info = {
'name': 'ovirt-engine-sdk-python',
'version': '3.6.0.0preview7',
'description': 'A SDK interface to oVirt Virtualization',
'author': 'Michael Pasternak',
'author_email': 'mpaster... | <commit_before>
import os
import sys
from distutils.command.build import build
from setuptools import setup, Command
version_info = {
'name': 'ovirt-engine-sdk-python',
'version': '3.6.0.0',
'description': 'A SDK interface to oVirt Virtualization',
'author': 'Michael Pasternak',
'author_email': '... |
import os
import sys
from distutils.command.build import build
from setuptools import setup, Command
version_info = {
'name': 'ovirt-engine-sdk-python',
'version': '3.6.0.0preview7',
'description': 'A SDK interface to oVirt Virtualization',
'author': 'Michael Pasternak',
'author_email': 'mpaster... |
import os
import sys
from distutils.command.build import build
from setuptools import setup, Command
version_info = {
'name': 'ovirt-engine-sdk-python',
'version': '3.6.0.0',
'description': 'A SDK interface to oVirt Virtualization',
'author': 'Michael Pasternak',
'author_email': 'mpastern@redhat... | <commit_before>
import os
import sys
from distutils.command.build import build
from setuptools import setup, Command
version_info = {
'name': 'ovirt-engine-sdk-python',
'version': '3.6.0.0',
'description': 'A SDK interface to oVirt Virtualization',
'author': 'Michael Pasternak',
'author_email': '... |
6d0b5c503e94001d24519b63b3387a5b13d08438 | setup.py | setup.py | #!/usr/bin/python
from setuptools import setup, find_packages
setup(name="github-comments",
version='1.3',
url="https://github.com/alikins/github-comments",
description="show pull request comments in a lint like fashion",
author="Adrian Likins",
author_email="adrian@likins.com",
pa... | #!/usr/bin/python
from setuptools import setup, find_packages
setup(name="github-comments",
version='1.3',
url="https://github.com/alikins/github-comments",
description="show pull request comments in a lint like fashion",
author="Adrian Likins",
author_email="adrian@likins.com",
pa... | Add markdown and BeautifulSoup to requires. | Add markdown and BeautifulSoup to requires.
| Python | mit | alikins/github-comments | #!/usr/bin/python
from setuptools import setup, find_packages
setup(name="github-comments",
version='1.3',
url="https://github.com/alikins/github-comments",
description="show pull request comments in a lint like fashion",
author="Adrian Likins",
author_email="adrian@likins.com",
pa... | #!/usr/bin/python
from setuptools import setup, find_packages
setup(name="github-comments",
version='1.3',
url="https://github.com/alikins/github-comments",
description="show pull request comments in a lint like fashion",
author="Adrian Likins",
author_email="adrian@likins.com",
pa... | <commit_before>#!/usr/bin/python
from setuptools import setup, find_packages
setup(name="github-comments",
version='1.3',
url="https://github.com/alikins/github-comments",
description="show pull request comments in a lint like fashion",
author="Adrian Likins",
author_email="adrian@likins... | #!/usr/bin/python
from setuptools import setup, find_packages
setup(name="github-comments",
version='1.3',
url="https://github.com/alikins/github-comments",
description="show pull request comments in a lint like fashion",
author="Adrian Likins",
author_email="adrian@likins.com",
pa... | #!/usr/bin/python
from setuptools import setup, find_packages
setup(name="github-comments",
version='1.3',
url="https://github.com/alikins/github-comments",
description="show pull request comments in a lint like fashion",
author="Adrian Likins",
author_email="adrian@likins.com",
pa... | <commit_before>#!/usr/bin/python
from setuptools import setup, find_packages
setup(name="github-comments",
version='1.3',
url="https://github.com/alikins/github-comments",
description="show pull request comments in a lint like fashion",
author="Adrian Likins",
author_email="adrian@likins... |
94b757e2132c1fe59cd2c80d7d7b29aad125d471 | tests/graph_test.py | tests/graph_test.py | from mythril.analysis.callgraph import generate_graph
from mythril.analysis.symbolic import SymExecWrapper
from mythril.ethereum import util
from mythril.solidity.soliditycontract import EVMContract
from tests import (
BaseTestCase,
TESTDATA_INPUTS,
TESTDATA_OUTPUTS_EXPECTED,
TESTDATA_OUTPUTS_CURRENT,
)... | from mythril.analysis.callgraph import generate_graph
from mythril.analysis.symbolic import SymExecWrapper
from mythril.ethereum import util
from mythril.solidity.soliditycontract import EVMContract
from tests import (
BaseTestCase,
TESTDATA_INPUTS,
TESTDATA_OUTPUTS_EXPECTED,
TESTDATA_OUTPUTS_CURRENT,
)... | Set execution timeout to be lower | Set execution timeout to be lower
Otherwise the test would be much slower
| Python | mit | b-mueller/mythril,b-mueller/mythril,b-mueller/mythril,b-mueller/mythril | from mythril.analysis.callgraph import generate_graph
from mythril.analysis.symbolic import SymExecWrapper
from mythril.ethereum import util
from mythril.solidity.soliditycontract import EVMContract
from tests import (
BaseTestCase,
TESTDATA_INPUTS,
TESTDATA_OUTPUTS_EXPECTED,
TESTDATA_OUTPUTS_CURRENT,
)... | from mythril.analysis.callgraph import generate_graph
from mythril.analysis.symbolic import SymExecWrapper
from mythril.ethereum import util
from mythril.solidity.soliditycontract import EVMContract
from tests import (
BaseTestCase,
TESTDATA_INPUTS,
TESTDATA_OUTPUTS_EXPECTED,
TESTDATA_OUTPUTS_CURRENT,
)... | <commit_before>from mythril.analysis.callgraph import generate_graph
from mythril.analysis.symbolic import SymExecWrapper
from mythril.ethereum import util
from mythril.solidity.soliditycontract import EVMContract
from tests import (
BaseTestCase,
TESTDATA_INPUTS,
TESTDATA_OUTPUTS_EXPECTED,
TESTDATA_OUT... | from mythril.analysis.callgraph import generate_graph
from mythril.analysis.symbolic import SymExecWrapper
from mythril.ethereum import util
from mythril.solidity.soliditycontract import EVMContract
from tests import (
BaseTestCase,
TESTDATA_INPUTS,
TESTDATA_OUTPUTS_EXPECTED,
TESTDATA_OUTPUTS_CURRENT,
)... | from mythril.analysis.callgraph import generate_graph
from mythril.analysis.symbolic import SymExecWrapper
from mythril.ethereum import util
from mythril.solidity.soliditycontract import EVMContract
from tests import (
BaseTestCase,
TESTDATA_INPUTS,
TESTDATA_OUTPUTS_EXPECTED,
TESTDATA_OUTPUTS_CURRENT,
)... | <commit_before>from mythril.analysis.callgraph import generate_graph
from mythril.analysis.symbolic import SymExecWrapper
from mythril.ethereum import util
from mythril.solidity.soliditycontract import EVMContract
from tests import (
BaseTestCase,
TESTDATA_INPUTS,
TESTDATA_OUTPUTS_EXPECTED,
TESTDATA_OUT... |
33c518d34b7657549e5231aa5e5cd1a1206da1a5 | setup.py | setup.py | import os
from setuptools import setup
def get_version_from_git_most_recent_tag():
return os.popen("git tag -l v* | tail --lines=1").read().strip().lstrip("v")
def get_readme_content():
current_file_dir = os.path.dirname(__file__)
readme_file_path = os.path.join(current_file_dir, "README.md")
retur... | import os
from setuptools import setup, find_packages
def get_version_from_git_most_recent_tag():
return os.popen("git tag -l v* | tail --lines=1").read().strip().lstrip("v")
def get_readme_content():
current_file_dir = os.path.dirname(__file__)
readme_file_path = os.path.join(current_file_dir, "README... | Use find_packages() to export all packages automatically on install | Use find_packages() to export all packages automatically on install
| Python | agpl-3.0 | alvarogzp/telegram-bot,alvarogzp/telegram-bot | import os
from setuptools import setup
def get_version_from_git_most_recent_tag():
return os.popen("git tag -l v* | tail --lines=1").read().strip().lstrip("v")
def get_readme_content():
current_file_dir = os.path.dirname(__file__)
readme_file_path = os.path.join(current_file_dir, "README.md")
retur... | import os
from setuptools import setup, find_packages
def get_version_from_git_most_recent_tag():
return os.popen("git tag -l v* | tail --lines=1").read().strip().lstrip("v")
def get_readme_content():
current_file_dir = os.path.dirname(__file__)
readme_file_path = os.path.join(current_file_dir, "README... | <commit_before>import os
from setuptools import setup
def get_version_from_git_most_recent_tag():
return os.popen("git tag -l v* | tail --lines=1").read().strip().lstrip("v")
def get_readme_content():
current_file_dir = os.path.dirname(__file__)
readme_file_path = os.path.join(current_file_dir, "README... | import os
from setuptools import setup, find_packages
def get_version_from_git_most_recent_tag():
return os.popen("git tag -l v* | tail --lines=1").read().strip().lstrip("v")
def get_readme_content():
current_file_dir = os.path.dirname(__file__)
readme_file_path = os.path.join(current_file_dir, "README... | import os
from setuptools import setup
def get_version_from_git_most_recent_tag():
return os.popen("git tag -l v* | tail --lines=1").read().strip().lstrip("v")
def get_readme_content():
current_file_dir = os.path.dirname(__file__)
readme_file_path = os.path.join(current_file_dir, "README.md")
retur... | <commit_before>import os
from setuptools import setup
def get_version_from_git_most_recent_tag():
return os.popen("git tag -l v* | tail --lines=1").read().strip().lstrip("v")
def get_readme_content():
current_file_dir = os.path.dirname(__file__)
readme_file_path = os.path.join(current_file_dir, "README... |
0c2a0159333d3c99fd90eb66d52a768320120ad4 | setup.py | setup.py | from setuptools import setup
__version__ = '0.1'
setup(
name='wanikani',
description='WaniKani Tools for Python',
long_description=open('README.md').read(),
author='Paul Traylor',
url='http://github.com/kfdm/wanikani/',
version=__version__,
packages=['wanikani'],
install_requires=['req... | from setuptools import setup, find_packages
__version__ = '0.1'
setup(
name='wanikani',
description='WaniKani Tools for Python',
long_description=open('README.md').read(),
author='Paul Traylor',
url='http://github.com/kfdm/wanikani/',
version=__version__,
packages=find_packages(),
inst... | Fix to find entire package hierarchy | Fix to find entire package hierarchy
| Python | mit | kfdm/wanikani,kfdm/wanikani | from setuptools import setup
__version__ = '0.1'
setup(
name='wanikani',
description='WaniKani Tools for Python',
long_description=open('README.md').read(),
author='Paul Traylor',
url='http://github.com/kfdm/wanikani/',
version=__version__,
packages=['wanikani'],
install_requires=['req... | from setuptools import setup, find_packages
__version__ = '0.1'
setup(
name='wanikani',
description='WaniKani Tools for Python',
long_description=open('README.md').read(),
author='Paul Traylor',
url='http://github.com/kfdm/wanikani/',
version=__version__,
packages=find_packages(),
inst... | <commit_before>from setuptools import setup
__version__ = '0.1'
setup(
name='wanikani',
description='WaniKani Tools for Python',
long_description=open('README.md').read(),
author='Paul Traylor',
url='http://github.com/kfdm/wanikani/',
version=__version__,
packages=['wanikani'],
install... | from setuptools import setup, find_packages
__version__ = '0.1'
setup(
name='wanikani',
description='WaniKani Tools for Python',
long_description=open('README.md').read(),
author='Paul Traylor',
url='http://github.com/kfdm/wanikani/',
version=__version__,
packages=find_packages(),
inst... | from setuptools import setup
__version__ = '0.1'
setup(
name='wanikani',
description='WaniKani Tools for Python',
long_description=open('README.md').read(),
author='Paul Traylor',
url='http://github.com/kfdm/wanikani/',
version=__version__,
packages=['wanikani'],
install_requires=['req... | <commit_before>from setuptools import setup
__version__ = '0.1'
setup(
name='wanikani',
description='WaniKani Tools for Python',
long_description=open('README.md').read(),
author='Paul Traylor',
url='http://github.com/kfdm/wanikani/',
version=__version__,
packages=['wanikani'],
install... |
498e453f8d719cde652acc832b6706be28a1c762 | setup.py | setup.py | #!/usr/bin/env python
import os
import sys
from serfclient import __version__
try:
from setuptools import setup
from setuptools.command.test import test as TestCommand
class PyTest(TestCommand):
def finalize_options(self):
TestCommand.finalize_options(self)
self.test_args ... | #!/usr/bin/env python
import os
import sys
from serfclient import __version__
try:
from setuptools import setup
from setuptools.command.test import test as TestCommand
class PyTest(TestCommand):
def finalize_options(self):
TestCommand.finalize_options(self)
self.test_args ... | Use the correct module name for 'msgpack' Python module | Use the correct module name for 'msgpack' Python module
| Python | mit | charleswhchan/serfclient-py,KushalP/serfclient-py | #!/usr/bin/env python
import os
import sys
from serfclient import __version__
try:
from setuptools import setup
from setuptools.command.test import test as TestCommand
class PyTest(TestCommand):
def finalize_options(self):
TestCommand.finalize_options(self)
self.test_args ... | #!/usr/bin/env python
import os
import sys
from serfclient import __version__
try:
from setuptools import setup
from setuptools.command.test import test as TestCommand
class PyTest(TestCommand):
def finalize_options(self):
TestCommand.finalize_options(self)
self.test_args ... | <commit_before>#!/usr/bin/env python
import os
import sys
from serfclient import __version__
try:
from setuptools import setup
from setuptools.command.test import test as TestCommand
class PyTest(TestCommand):
def finalize_options(self):
TestCommand.finalize_options(self)
... | #!/usr/bin/env python
import os
import sys
from serfclient import __version__
try:
from setuptools import setup
from setuptools.command.test import test as TestCommand
class PyTest(TestCommand):
def finalize_options(self):
TestCommand.finalize_options(self)
self.test_args ... | #!/usr/bin/env python
import os
import sys
from serfclient import __version__
try:
from setuptools import setup
from setuptools.command.test import test as TestCommand
class PyTest(TestCommand):
def finalize_options(self):
TestCommand.finalize_options(self)
self.test_args ... | <commit_before>#!/usr/bin/env python
import os
import sys
from serfclient import __version__
try:
from setuptools import setup
from setuptools.command.test import test as TestCommand
class PyTest(TestCommand):
def finalize_options(self):
TestCommand.finalize_options(self)
... |
8e68d7fab7b39828c31da734c8f47305c49e3fdd | twitterbot.py | twitterbot.py | import tweepy
import time
class TwitterBot:
def __init__(self, auth, listen_msg, response_msg):
auth = tweepy.OAuthHandler(auth['consumer_key'], auth['consumer_secret'])
auth.set_access_token(auth['access_token'], auth['access_token_secret'])
self.api = tweepy.API(auth)
self.respon... | import tweepy
import time
class TwitterBot:
def __init__(self, auth, listen_msg, response_msg):
auth = tweepy.OAuthHandler(auth['consumer_key'], auth['consumer_secret'])
auth.set_access_token(auth['access_token'], auth['access_token_secret'])
self.api = tweepy.API(auth)
self.respon... | Update Tweet method for api change | Update Tweet method for api change
| Python | mit | kshvmdn/twitter-autoreply,kshvmdn/twitter-birthday-responder,kshvmdn/TwitterBirthdayResponder | import tweepy
import time
class TwitterBot:
def __init__(self, auth, listen_msg, response_msg):
auth = tweepy.OAuthHandler(auth['consumer_key'], auth['consumer_secret'])
auth.set_access_token(auth['access_token'], auth['access_token_secret'])
self.api = tweepy.API(auth)
self.respon... | import tweepy
import time
class TwitterBot:
def __init__(self, auth, listen_msg, response_msg):
auth = tweepy.OAuthHandler(auth['consumer_key'], auth['consumer_secret'])
auth.set_access_token(auth['access_token'], auth['access_token_secret'])
self.api = tweepy.API(auth)
self.respon... | <commit_before>import tweepy
import time
class TwitterBot:
def __init__(self, auth, listen_msg, response_msg):
auth = tweepy.OAuthHandler(auth['consumer_key'], auth['consumer_secret'])
auth.set_access_token(auth['access_token'], auth['access_token_secret'])
self.api = tweepy.API(auth)
... | import tweepy
import time
class TwitterBot:
def __init__(self, auth, listen_msg, response_msg):
auth = tweepy.OAuthHandler(auth['consumer_key'], auth['consumer_secret'])
auth.set_access_token(auth['access_token'], auth['access_token_secret'])
self.api = tweepy.API(auth)
self.respon... | import tweepy
import time
class TwitterBot:
def __init__(self, auth, listen_msg, response_msg):
auth = tweepy.OAuthHandler(auth['consumer_key'], auth['consumer_secret'])
auth.set_access_token(auth['access_token'], auth['access_token_secret'])
self.api = tweepy.API(auth)
self.respon... | <commit_before>import tweepy
import time
class TwitterBot:
def __init__(self, auth, listen_msg, response_msg):
auth = tweepy.OAuthHandler(auth['consumer_key'], auth['consumer_secret'])
auth.set_access_token(auth['access_token'], auth['access_token_secret'])
self.api = tweepy.API(auth)
... |
97fe2c1270633ef0c65689488f80bbfa77b2cafc | story/urls.py | story/urls.py | from django.urls import path
from django.contrib.sitemaps.views import sitemap
from story.views import StoryListView
from story.sitemap import BlogSiteMap
sitemaps = {
"blog": BlogSiteMap
}
app_name = "story"
urlpatterns = [
path('', StoryListView.as_view(), name='stories'),
path('/sitemap.xml', sitemap,... | from django.urls import path
from django.contrib.sitemaps.views import sitemap
from story.views import StoryListView
from story.sitemap import BlogSiteMap
sitemaps = {
"blog": BlogSiteMap
}
app_name = "story"
urlpatterns = [
path('', StoryListView.as_view(), name='stories'),
path('sitemap.xml', sitemap, ... | Remove / in the sitemap url | Remove / in the sitemap url
| Python | bsd-3-clause | DjangoGirls/djangogirls,DjangoGirls/djangogirls,DjangoGirls/djangogirls | from django.urls import path
from django.contrib.sitemaps.views import sitemap
from story.views import StoryListView
from story.sitemap import BlogSiteMap
sitemaps = {
"blog": BlogSiteMap
}
app_name = "story"
urlpatterns = [
path('', StoryListView.as_view(), name='stories'),
path('/sitemap.xml', sitemap,... | from django.urls import path
from django.contrib.sitemaps.views import sitemap
from story.views import StoryListView
from story.sitemap import BlogSiteMap
sitemaps = {
"blog": BlogSiteMap
}
app_name = "story"
urlpatterns = [
path('', StoryListView.as_view(), name='stories'),
path('sitemap.xml', sitemap, ... | <commit_before>from django.urls import path
from django.contrib.sitemaps.views import sitemap
from story.views import StoryListView
from story.sitemap import BlogSiteMap
sitemaps = {
"blog": BlogSiteMap
}
app_name = "story"
urlpatterns = [
path('', StoryListView.as_view(), name='stories'),
path('/sitemap... | from django.urls import path
from django.contrib.sitemaps.views import sitemap
from story.views import StoryListView
from story.sitemap import BlogSiteMap
sitemaps = {
"blog": BlogSiteMap
}
app_name = "story"
urlpatterns = [
path('', StoryListView.as_view(), name='stories'),
path('sitemap.xml', sitemap, ... | from django.urls import path
from django.contrib.sitemaps.views import sitemap
from story.views import StoryListView
from story.sitemap import BlogSiteMap
sitemaps = {
"blog": BlogSiteMap
}
app_name = "story"
urlpatterns = [
path('', StoryListView.as_view(), name='stories'),
path('/sitemap.xml', sitemap,... | <commit_before>from django.urls import path
from django.contrib.sitemaps.views import sitemap
from story.views import StoryListView
from story.sitemap import BlogSiteMap
sitemaps = {
"blog": BlogSiteMap
}
app_name = "story"
urlpatterns = [
path('', StoryListView.as_view(), name='stories'),
path('/sitemap... |
888da3093754d0c9bf4c41bb768841a1bae0bb46 | setup.py | setup.py | # -*- coding: utf-8 -*-
"""
@author: uwe
"""
import sys
import os
from setuptools import setup
setup(name='feedinlib',
version='0.0.12',
description='Creating time series from pv or wind power plants.',
url='http://github.com/oemof/feedinlib',
author='oemof developing group',
author_emai... | # -*- coding: utf-8 -*-
"""
@author: uwe
"""
import sys
import os
from setuptools import setup
setup(name='feedinlib',
version='0.0.12',
description='Creating time series from pv or wind power plants.',
url='http://github.com/oemof/feedinlib',
author='oemof developing group',
author_emai... | Add optional installation requirements to pvlib installation | Add optional installation requirements to pvlib installation
| Python | mit | oemof/feedinlib | # -*- coding: utf-8 -*-
"""
@author: uwe
"""
import sys
import os
from setuptools import setup
setup(name='feedinlib',
version='0.0.12',
description='Creating time series from pv or wind power plants.',
url='http://github.com/oemof/feedinlib',
author='oemof developing group',
author_emai... | # -*- coding: utf-8 -*-
"""
@author: uwe
"""
import sys
import os
from setuptools import setup
setup(name='feedinlib',
version='0.0.12',
description='Creating time series from pv or wind power plants.',
url='http://github.com/oemof/feedinlib',
author='oemof developing group',
author_emai... | <commit_before># -*- coding: utf-8 -*-
"""
@author: uwe
"""
import sys
import os
from setuptools import setup
setup(name='feedinlib',
version='0.0.12',
description='Creating time series from pv or wind power plants.',
url='http://github.com/oemof/feedinlib',
author='oemof developing group',
... | # -*- coding: utf-8 -*-
"""
@author: uwe
"""
import sys
import os
from setuptools import setup
setup(name='feedinlib',
version='0.0.12',
description='Creating time series from pv or wind power plants.',
url='http://github.com/oemof/feedinlib',
author='oemof developing group',
author_emai... | # -*- coding: utf-8 -*-
"""
@author: uwe
"""
import sys
import os
from setuptools import setup
setup(name='feedinlib',
version='0.0.12',
description='Creating time series from pv or wind power plants.',
url='http://github.com/oemof/feedinlib',
author='oemof developing group',
author_emai... | <commit_before># -*- coding: utf-8 -*-
"""
@author: uwe
"""
import sys
import os
from setuptools import setup
setup(name='feedinlib',
version='0.0.12',
description='Creating time series from pv or wind power plants.',
url='http://github.com/oemof/feedinlib',
author='oemof developing group',
... |
5ff18f77dd3f38c7209e2b7bca1f2f84d002b00a | tools/glidein_ls.py | tools/glidein_ls.py | #!/bin/env python
#
# glidein_ls
#
# Execute a ls command on the job directory
#
# Usage:
# glidein_ls.py <cluster>.<process> [-name <schedd_name>] [-pool <pool_name> ] [-timeout <nr secs>
#
import os
import string
import stat
import sys
sys.path.append("lib")
sys.path.append("../lib")
import glideinMonitor
def cre... | #!/bin/env python
#
# condor_ls
#
# Description:
# Execute a ls command on a condor job working directory
#
# Usage:
# glidein_ls.py <cluster>.<process> [<dir>] [-name <schedd_name>] [-pool <pool_name> ] [-timeout <nr secs>]
#
# Author:
# Igor Sfiligoi (May 2007)
#
# License:
# Fermitools
#
import os,os.path
imp... | Change rel paths into abspaths | Change rel paths into abspaths
| Python | bsd-3-clause | bbockelm/glideinWMS,bbockelm/glideinWMS,holzman/glideinwms-old,bbockelm/glideinWMS,holzman/glideinwms-old,holzman/glideinwms-old,bbockelm/glideinWMS | #!/bin/env python
#
# glidein_ls
#
# Execute a ls command on the job directory
#
# Usage:
# glidein_ls.py <cluster>.<process> [-name <schedd_name>] [-pool <pool_name> ] [-timeout <nr secs>
#
import os
import string
import stat
import sys
sys.path.append("lib")
sys.path.append("../lib")
import glideinMonitor
def cre... | #!/bin/env python
#
# condor_ls
#
# Description:
# Execute a ls command on a condor job working directory
#
# Usage:
# glidein_ls.py <cluster>.<process> [<dir>] [-name <schedd_name>] [-pool <pool_name> ] [-timeout <nr secs>]
#
# Author:
# Igor Sfiligoi (May 2007)
#
# License:
# Fermitools
#
import os,os.path
imp... | <commit_before>#!/bin/env python
#
# glidein_ls
#
# Execute a ls command on the job directory
#
# Usage:
# glidein_ls.py <cluster>.<process> [-name <schedd_name>] [-pool <pool_name> ] [-timeout <nr secs>
#
import os
import string
import stat
import sys
sys.path.append("lib")
sys.path.append("../lib")
import glideinM... | #!/bin/env python
#
# condor_ls
#
# Description:
# Execute a ls command on a condor job working directory
#
# Usage:
# glidein_ls.py <cluster>.<process> [<dir>] [-name <schedd_name>] [-pool <pool_name> ] [-timeout <nr secs>]
#
# Author:
# Igor Sfiligoi (May 2007)
#
# License:
# Fermitools
#
import os,os.path
imp... | #!/bin/env python
#
# glidein_ls
#
# Execute a ls command on the job directory
#
# Usage:
# glidein_ls.py <cluster>.<process> [-name <schedd_name>] [-pool <pool_name> ] [-timeout <nr secs>
#
import os
import string
import stat
import sys
sys.path.append("lib")
sys.path.append("../lib")
import glideinMonitor
def cre... | <commit_before>#!/bin/env python
#
# glidein_ls
#
# Execute a ls command on the job directory
#
# Usage:
# glidein_ls.py <cluster>.<process> [-name <schedd_name>] [-pool <pool_name> ] [-timeout <nr secs>
#
import os
import string
import stat
import sys
sys.path.append("lib")
sys.path.append("../lib")
import glideinM... |
02367a3a87eb01ae58463ef98ce5e84ce03b38fe | setup.py | setup.py | """
setup.py
"""
from setuptools import setup, find_packages
setup(
name='SATOSA',
version='8.1.0',
description='Protocol proxy (SAML/OIDC).',
author='DIRG',
author_email='satosa-dev@lists.sunet.se',
license='Apache 2.0',
url='https://github.com/SUNET/SATOSA',
packages=find_packages('s... | """
setup.py
"""
from setuptools import setup, find_packages
setup(
name='SATOSA',
version='8.1.0',
description='Protocol proxy (SAML/OIDC).',
author='DIRG',
author_email='satosa-dev@lists.sunet.se',
license='Apache 2.0',
url='https://github.com/SUNET/SATOSA',
packages=find_packages('s... | Set minimum pyop version to v3.4.0 to ensure the needed methods are available | Set minimum pyop version to v3.4.0 to ensure the needed methods are available
Signed-off-by: Ivan Kanakarakis <f60d6943d72436645c4304926eeeac2718a1142c@gmail.com>
| Python | apache-2.0 | its-dirg/SATOSA | """
setup.py
"""
from setuptools import setup, find_packages
setup(
name='SATOSA',
version='8.1.0',
description='Protocol proxy (SAML/OIDC).',
author='DIRG',
author_email='satosa-dev@lists.sunet.se',
license='Apache 2.0',
url='https://github.com/SUNET/SATOSA',
packages=find_packages('s... | """
setup.py
"""
from setuptools import setup, find_packages
setup(
name='SATOSA',
version='8.1.0',
description='Protocol proxy (SAML/OIDC).',
author='DIRG',
author_email='satosa-dev@lists.sunet.se',
license='Apache 2.0',
url='https://github.com/SUNET/SATOSA',
packages=find_packages('s... | <commit_before>"""
setup.py
"""
from setuptools import setup, find_packages
setup(
name='SATOSA',
version='8.1.0',
description='Protocol proxy (SAML/OIDC).',
author='DIRG',
author_email='satosa-dev@lists.sunet.se',
license='Apache 2.0',
url='https://github.com/SUNET/SATOSA',
packages=f... | """
setup.py
"""
from setuptools import setup, find_packages
setup(
name='SATOSA',
version='8.1.0',
description='Protocol proxy (SAML/OIDC).',
author='DIRG',
author_email='satosa-dev@lists.sunet.se',
license='Apache 2.0',
url='https://github.com/SUNET/SATOSA',
packages=find_packages('s... | """
setup.py
"""
from setuptools import setup, find_packages
setup(
name='SATOSA',
version='8.1.0',
description='Protocol proxy (SAML/OIDC).',
author='DIRG',
author_email='satosa-dev@lists.sunet.se',
license='Apache 2.0',
url='https://github.com/SUNET/SATOSA',
packages=find_packages('s... | <commit_before>"""
setup.py
"""
from setuptools import setup, find_packages
setup(
name='SATOSA',
version='8.1.0',
description='Protocol proxy (SAML/OIDC).',
author='DIRG',
author_email='satosa-dev@lists.sunet.se',
license='Apache 2.0',
url='https://github.com/SUNET/SATOSA',
packages=f... |
eb3d5a5fe6827bcf160b4c16225be3e83d96d654 | setup.py | setup.py | import os
import sys
from setuptools import setup
with open("./pushbullet/__version__.py") as version_file:
version = version_file.read().split("\"")[1]
if sys.argv[-1] == 'publish':
os.system('python setup.py sdist upload')
sys.exit()
def read(fname):
try:
with open(os.path.join(os.path.di... | import os
import sys
from setuptools import setup
with open("./pushbullet/__version__.py") as version_file:
version = version_file.read().split("\"")[1]
if sys.argv[-1] == 'publish':
os.system('python setup.py sdist upload')
sys.exit()
def read(fname):
try:
with open(os.path.join(os.path.di... | Add python-magic as a requirement for mime detection. | Add python-magic as a requirement for mime detection.
| Python | mit | Saturn/pushbullet.py,kovacsbalu/pushbullet.py,aerobit/pushbullet.py,randomchars/pushbullet.py | import os
import sys
from setuptools import setup
with open("./pushbullet/__version__.py") as version_file:
version = version_file.read().split("\"")[1]
if sys.argv[-1] == 'publish':
os.system('python setup.py sdist upload')
sys.exit()
def read(fname):
try:
with open(os.path.join(os.path.di... | import os
import sys
from setuptools import setup
with open("./pushbullet/__version__.py") as version_file:
version = version_file.read().split("\"")[1]
if sys.argv[-1] == 'publish':
os.system('python setup.py sdist upload')
sys.exit()
def read(fname):
try:
with open(os.path.join(os.path.di... | <commit_before>import os
import sys
from setuptools import setup
with open("./pushbullet/__version__.py") as version_file:
version = version_file.read().split("\"")[1]
if sys.argv[-1] == 'publish':
os.system('python setup.py sdist upload')
sys.exit()
def read(fname):
try:
with open(os.path.... | import os
import sys
from setuptools import setup
with open("./pushbullet/__version__.py") as version_file:
version = version_file.read().split("\"")[1]
if sys.argv[-1] == 'publish':
os.system('python setup.py sdist upload')
sys.exit()
def read(fname):
try:
with open(os.path.join(os.path.di... | import os
import sys
from setuptools import setup
with open("./pushbullet/__version__.py") as version_file:
version = version_file.read().split("\"")[1]
if sys.argv[-1] == 'publish':
os.system('python setup.py sdist upload')
sys.exit()
def read(fname):
try:
with open(os.path.join(os.path.di... | <commit_before>import os
import sys
from setuptools import setup
with open("./pushbullet/__version__.py") as version_file:
version = version_file.read().split("\"")[1]
if sys.argv[-1] == 'publish':
os.system('python setup.py sdist upload')
sys.exit()
def read(fname):
try:
with open(os.path.... |
cdd65dffb67334155f0c59011dee3d654a32c0d1 | setup.py | setup.py | import os
from setuptools import setup, find_packages
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
setup(
name='pygcvs',
version=__import__('pygcvs').__version__,
description='A Python library for reading variable star data from GCVS.',
long_description=read... | import os
from setuptools import setup, find_packages
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
setup(
name='pygcvs',
version=__import__('pygcvs').__version__,
description='A Python library for reading variable star data from GCVS.',
long_description=read... | Add six to test requirements. | Add six to test requirements.
| Python | mit | zsiciarz/pygcvs | import os
from setuptools import setup, find_packages
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
setup(
name='pygcvs',
version=__import__('pygcvs').__version__,
description='A Python library for reading variable star data from GCVS.',
long_description=read... | import os
from setuptools import setup, find_packages
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
setup(
name='pygcvs',
version=__import__('pygcvs').__version__,
description='A Python library for reading variable star data from GCVS.',
long_description=read... | <commit_before>import os
from setuptools import setup, find_packages
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
setup(
name='pygcvs',
version=__import__('pygcvs').__version__,
description='A Python library for reading variable star data from GCVS.',
long_d... | import os
from setuptools import setup, find_packages
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
setup(
name='pygcvs',
version=__import__('pygcvs').__version__,
description='A Python library for reading variable star data from GCVS.',
long_description=read... | import os
from setuptools import setup, find_packages
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
setup(
name='pygcvs',
version=__import__('pygcvs').__version__,
description='A Python library for reading variable star data from GCVS.',
long_description=read... | <commit_before>import os
from setuptools import setup, find_packages
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
setup(
name='pygcvs',
version=__import__('pygcvs').__version__,
description='A Python library for reading variable star data from GCVS.',
long_d... |
cd22f72793a41c7af502edb48801509aee17c685 | setup.py | setup.py | #!/usr/bin/env python
from distutils.core import setup
from setuptools import setup, find_packages
from setuptools.command.install import install as _install
setup(name='tagnews',
version='1.0.1',
description=('automatically tag articles with justice-related categories'
' and extract ... | #!/usr/bin/env python
from distutils.core import setup
from setuptools import setup, find_packages
from setuptools.command.install import install as _install
setup(name='tagnews',
version='1.0.1',
description=('automatically tag articles with justice-related categories'
' and extract ... | Add h5py as a dep | Add h5py as a dep
| Python | mit | kbrose/article-tagging,kbrose/article-tagging,chicago-justice-project/article-tagging,chicago-justice-project/article-tagging | #!/usr/bin/env python
from distutils.core import setup
from setuptools import setup, find_packages
from setuptools.command.install import install as _install
setup(name='tagnews',
version='1.0.1',
description=('automatically tag articles with justice-related categories'
' and extract ... | #!/usr/bin/env python
from distutils.core import setup
from setuptools import setup, find_packages
from setuptools.command.install import install as _install
setup(name='tagnews',
version='1.0.1',
description=('automatically tag articles with justice-related categories'
' and extract ... | <commit_before>#!/usr/bin/env python
from distutils.core import setup
from setuptools import setup, find_packages
from setuptools.command.install import install as _install
setup(name='tagnews',
version='1.0.1',
description=('automatically tag articles with justice-related categories'
... | #!/usr/bin/env python
from distutils.core import setup
from setuptools import setup, find_packages
from setuptools.command.install import install as _install
setup(name='tagnews',
version='1.0.1',
description=('automatically tag articles with justice-related categories'
' and extract ... | #!/usr/bin/env python
from distutils.core import setup
from setuptools import setup, find_packages
from setuptools.command.install import install as _install
setup(name='tagnews',
version='1.0.1',
description=('automatically tag articles with justice-related categories'
' and extract ... | <commit_before>#!/usr/bin/env python
from distutils.core import setup
from setuptools import setup, find_packages
from setuptools.command.install import install as _install
setup(name='tagnews',
version='1.0.1',
description=('automatically tag articles with justice-related categories'
... |
1dba8871acd25af6ab7f48cb38c103416c43522a | setup.py | setup.py | from codecs import open
from os import path
from setuptools import setup
here = path.abspath(path.dirname(__file__))
with open(path.join(here, 'README.rst'), encoding='utf-8') as f:
readme = f.read()
with open(path.join(here, 'requirements', 'install.txt'),
encoding='utf-8') as f:
install_requires ... | from codecs import open
from os import path
from setuptools import setup
here = path.abspath(path.dirname(__file__))
with open(path.join(here, 'README.rst'), encoding='utf-8') as f:
readme = f.read()
with open(path.join(here, 'requirements', 'install.txt'),
encoding='utf-8') as f:
install_requires ... | Increment version number for added ELT combiner tool | Increment version number for added ELT combiner tool
| Python | mit | analyzere/analyzere-python-extras | from codecs import open
from os import path
from setuptools import setup
here = path.abspath(path.dirname(__file__))
with open(path.join(here, 'README.rst'), encoding='utf-8') as f:
readme = f.read()
with open(path.join(here, 'requirements', 'install.txt'),
encoding='utf-8') as f:
install_requires ... | from codecs import open
from os import path
from setuptools import setup
here = path.abspath(path.dirname(__file__))
with open(path.join(here, 'README.rst'), encoding='utf-8') as f:
readme = f.read()
with open(path.join(here, 'requirements', 'install.txt'),
encoding='utf-8') as f:
install_requires ... | <commit_before>from codecs import open
from os import path
from setuptools import setup
here = path.abspath(path.dirname(__file__))
with open(path.join(here, 'README.rst'), encoding='utf-8') as f:
readme = f.read()
with open(path.join(here, 'requirements', 'install.txt'),
encoding='utf-8') as f:
in... | from codecs import open
from os import path
from setuptools import setup
here = path.abspath(path.dirname(__file__))
with open(path.join(here, 'README.rst'), encoding='utf-8') as f:
readme = f.read()
with open(path.join(here, 'requirements', 'install.txt'),
encoding='utf-8') as f:
install_requires ... | from codecs import open
from os import path
from setuptools import setup
here = path.abspath(path.dirname(__file__))
with open(path.join(here, 'README.rst'), encoding='utf-8') as f:
readme = f.read()
with open(path.join(here, 'requirements', 'install.txt'),
encoding='utf-8') as f:
install_requires ... | <commit_before>from codecs import open
from os import path
from setuptools import setup
here = path.abspath(path.dirname(__file__))
with open(path.join(here, 'README.rst'), encoding='utf-8') as f:
readme = f.read()
with open(path.join(here, 'requirements', 'install.txt'),
encoding='utf-8') as f:
in... |
08b0df09e458c859017bc7df7b44e6108a8b322f | setup.py | setup.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
from setuptools import setup
README = open(os.path.join(os.path.dirname(__file__), 'README.md')).read()
# allow setup.py to be run from any path
os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir)))
setup(
name='django-munigeo',
... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
from setuptools import setup
README = open(os.path.join(os.path.dirname(__file__), 'README.md')).read()
# allow setup.py to be run from any path
os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir)))
setup(
name='django-munigeo',
... | Bump version and set license to MIT | Bump version and set license to MIT
| Python | agpl-3.0 | City-of-Helsinki/munigeo | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
from setuptools import setup
README = open(os.path.join(os.path.dirname(__file__), 'README.md')).read()
# allow setup.py to be run from any path
os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir)))
setup(
name='django-munigeo',
... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
from setuptools import setup
README = open(os.path.join(os.path.dirname(__file__), 'README.md')).read()
# allow setup.py to be run from any path
os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir)))
setup(
name='django-munigeo',
... | <commit_before>#!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
from setuptools import setup
README = open(os.path.join(os.path.dirname(__file__), 'README.md')).read()
# allow setup.py to be run from any path
os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir)))
setup(
name='djang... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
from setuptools import setup
README = open(os.path.join(os.path.dirname(__file__), 'README.md')).read()
# allow setup.py to be run from any path
os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir)))
setup(
name='django-munigeo',
... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
from setuptools import setup
README = open(os.path.join(os.path.dirname(__file__), 'README.md')).read()
# allow setup.py to be run from any path
os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir)))
setup(
name='django-munigeo',
... | <commit_before>#!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
from setuptools import setup
README = open(os.path.join(os.path.dirname(__file__), 'README.md')).read()
# allow setup.py to be run from any path
os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir)))
setup(
name='djang... |
e57c165b956ef2358e498a8535d319d64090a318 | setup.py | setup.py | from setuptools import setup
setup(
name='eliot-tree',
version='15.0.0',
description='Render Eliot logs as an ASCII tree',
author='Jonathan Jacobs',
url='https://github.com/jonathanj/eliottree',
platforms='any',
license='MIT',
py_modules=['eliot_tree'],
entry_points={
# Thes... | from setuptools import setup
setup(
name='eliot-tree',
version='15.0.0',
description='Render Eliot logs as an ASCII tree',
author='Jonathan Jacobs',
url='https://github.com/jonathanj/eliottree',
platforms='any',
license='MIT',
py_modules=['eliot_tree'],
entry_points={
# Thes... | Make jmespath dependency version more lenient. | Make jmespath dependency version more lenient.
| Python | mit | mithrandi/eliottree | from setuptools import setup
setup(
name='eliot-tree',
version='15.0.0',
description='Render Eliot logs as an ASCII tree',
author='Jonathan Jacobs',
url='https://github.com/jonathanj/eliottree',
platforms='any',
license='MIT',
py_modules=['eliot_tree'],
entry_points={
# Thes... | from setuptools import setup
setup(
name='eliot-tree',
version='15.0.0',
description='Render Eliot logs as an ASCII tree',
author='Jonathan Jacobs',
url='https://github.com/jonathanj/eliottree',
platforms='any',
license='MIT',
py_modules=['eliot_tree'],
entry_points={
# Thes... | <commit_before>from setuptools import setup
setup(
name='eliot-tree',
version='15.0.0',
description='Render Eliot logs as an ASCII tree',
author='Jonathan Jacobs',
url='https://github.com/jonathanj/eliottree',
platforms='any',
license='MIT',
py_modules=['eliot_tree'],
entry_points={... | from setuptools import setup
setup(
name='eliot-tree',
version='15.0.0',
description='Render Eliot logs as an ASCII tree',
author='Jonathan Jacobs',
url='https://github.com/jonathanj/eliottree',
platforms='any',
license='MIT',
py_modules=['eliot_tree'],
entry_points={
# Thes... | from setuptools import setup
setup(
name='eliot-tree',
version='15.0.0',
description='Render Eliot logs as an ASCII tree',
author='Jonathan Jacobs',
url='https://github.com/jonathanj/eliottree',
platforms='any',
license='MIT',
py_modules=['eliot_tree'],
entry_points={
# Thes... | <commit_before>from setuptools import setup
setup(
name='eliot-tree',
version='15.0.0',
description='Render Eliot logs as an ASCII tree',
author='Jonathan Jacobs',
url='https://github.com/jonathanj/eliottree',
platforms='any',
license='MIT',
py_modules=['eliot_tree'],
entry_points={... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.