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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
d4f21288e7ba6bdc27f0f01fd0dba394a9786aa6 | open_humans/utilities.py | open_humans/utilities.py | import io
import os
from ConfigParser import RawConfigParser
def apply_env():
"""
Read the `.env` file and apply it to os.environ just like using `foreman
run` would.
"""
env = '[root]\n' + io.open('.env', 'r').read()
config = RawConfigParser(allow_no_value=True)
# Use `str` instead of ... | import io
import os
from ConfigParser import RawConfigParser
def apply_env():
"""
Read the `.env` file and apply it to os.environ just like using `foreman
run` would.
"""
try:
env = '[root]\n' + io.open('.env', 'r').read()
except IOError:
return
config = RawConfigParser(a... | Fix crash if .env does not exist | Fix crash if .env does not exist
| Python | mit | PersonalGenomesOrg/open-humans,OpenHumans/open-humans,OpenHumans/open-humans,PersonalGenomesOrg/open-humans,OpenHumans/open-humans,OpenHumans/open-humans,PersonalGenomesOrg/open-humans,PersonalGenomesOrg/open-humans | import io
import os
from ConfigParser import RawConfigParser
def apply_env():
"""
Read the `.env` file and apply it to os.environ just like using `foreman
run` would.
"""
env = '[root]\n' + io.open('.env', 'r').read()
config = RawConfigParser(allow_no_value=True)
# Use `str` instead of ... | import io
import os
from ConfigParser import RawConfigParser
def apply_env():
"""
Read the `.env` file and apply it to os.environ just like using `foreman
run` would.
"""
try:
env = '[root]\n' + io.open('.env', 'r').read()
except IOError:
return
config = RawConfigParser(a... | <commit_before>import io
import os
from ConfigParser import RawConfigParser
def apply_env():
"""
Read the `.env` file and apply it to os.environ just like using `foreman
run` would.
"""
env = '[root]\n' + io.open('.env', 'r').read()
config = RawConfigParser(allow_no_value=True)
# Use `s... | import io
import os
from ConfigParser import RawConfigParser
def apply_env():
"""
Read the `.env` file and apply it to os.environ just like using `foreman
run` would.
"""
try:
env = '[root]\n' + io.open('.env', 'r').read()
except IOError:
return
config = RawConfigParser(a... | import io
import os
from ConfigParser import RawConfigParser
def apply_env():
"""
Read the `.env` file and apply it to os.environ just like using `foreman
run` would.
"""
env = '[root]\n' + io.open('.env', 'r').read()
config = RawConfigParser(allow_no_value=True)
# Use `str` instead of ... | <commit_before>import io
import os
from ConfigParser import RawConfigParser
def apply_env():
"""
Read the `.env` file and apply it to os.environ just like using `foreman
run` would.
"""
env = '[root]\n' + io.open('.env', 'r').read()
config = RawConfigParser(allow_no_value=True)
# Use `s... |
95bade35933956ea22fcec0313e14cd8ceb75656 | portal_sale_distributor/models/sale_order.py | portal_sale_distributor/models/sale_order.py | ##############################################################################
# For copyright and license notices, see __manifest__.py file in module root
# directory
##############################################################################
from odoo import models, fields, api, _
class SaleOrder(models.Model):
... | ##############################################################################
# For copyright and license notices, see __manifest__.py file in module root
# directory
##############################################################################
from odoo import models, fields, api, _
class SaleOrder(models.Model):
... | Use sudo to prevent errors with signup_get_auth_param. | [FIX] Use sudo to prevent errors with signup_get_auth_param.
| Python | agpl-3.0 | ingadhoc/sale,ingadhoc/sale,ingadhoc/sale,ingadhoc/sale | ##############################################################################
# For copyright and license notices, see __manifest__.py file in module root
# directory
##############################################################################
from odoo import models, fields, api, _
class SaleOrder(models.Model):
... | ##############################################################################
# For copyright and license notices, see __manifest__.py file in module root
# directory
##############################################################################
from odoo import models, fields, api, _
class SaleOrder(models.Model):
... | <commit_before>##############################################################################
# For copyright and license notices, see __manifest__.py file in module root
# directory
##############################################################################
from odoo import models, fields, api, _
class SaleOrder(... | ##############################################################################
# For copyright and license notices, see __manifest__.py file in module root
# directory
##############################################################################
from odoo import models, fields, api, _
class SaleOrder(models.Model):
... | ##############################################################################
# For copyright and license notices, see __manifest__.py file in module root
# directory
##############################################################################
from odoo import models, fields, api, _
class SaleOrder(models.Model):
... | <commit_before>##############################################################################
# For copyright and license notices, see __manifest__.py file in module root
# directory
##############################################################################
from odoo import models, fields, api, _
class SaleOrder(... |
8353339f9a907767a6cb89d4e65497e7adb541d9 | fridge/test/test_memoryfs.py | fridge/test/test_memoryfs.py | from fridge.memoryfs import MemoryFile
class TestMemoryFile(object):
def test_can_be_written(self):
f = MemoryFile()
f.write('test')
f.flush()
assert f.content == 'test'
| from fridge.memoryfs import MemoryFile
class TestMemoryFile(object):
def test_can_be_written(self):
f = MemoryFile()
f.write('test')
f.flush()
assert f.content == 'test'
def test_close_flushes_content(self):
f = MemoryFile()
f.write('test')
f.close()
... | Add more tests for MemoryFile. | Add more tests for MemoryFile.
| Python | mit | jgosmann/fridge,jgosmann/fridge | from fridge.memoryfs import MemoryFile
class TestMemoryFile(object):
def test_can_be_written(self):
f = MemoryFile()
f.write('test')
f.flush()
assert f.content == 'test'
Add more tests for MemoryFile. | from fridge.memoryfs import MemoryFile
class TestMemoryFile(object):
def test_can_be_written(self):
f = MemoryFile()
f.write('test')
f.flush()
assert f.content == 'test'
def test_close_flushes_content(self):
f = MemoryFile()
f.write('test')
f.close()
... | <commit_before>from fridge.memoryfs import MemoryFile
class TestMemoryFile(object):
def test_can_be_written(self):
f = MemoryFile()
f.write('test')
f.flush()
assert f.content == 'test'
<commit_msg>Add more tests for MemoryFile.<commit_after> | from fridge.memoryfs import MemoryFile
class TestMemoryFile(object):
def test_can_be_written(self):
f = MemoryFile()
f.write('test')
f.flush()
assert f.content == 'test'
def test_close_flushes_content(self):
f = MemoryFile()
f.write('test')
f.close()
... | from fridge.memoryfs import MemoryFile
class TestMemoryFile(object):
def test_can_be_written(self):
f = MemoryFile()
f.write('test')
f.flush()
assert f.content == 'test'
Add more tests for MemoryFile.from fridge.memoryfs import MemoryFile
class TestMemoryFile(object):
def tes... | <commit_before>from fridge.memoryfs import MemoryFile
class TestMemoryFile(object):
def test_can_be_written(self):
f = MemoryFile()
f.write('test')
f.flush()
assert f.content == 'test'
<commit_msg>Add more tests for MemoryFile.<commit_after>from fridge.memoryfs import MemoryFile
... |
84fd94949e14fd259f20aaa262de269a6cd804f0 | pwndbg/malloc.py | pwndbg/malloc.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Describes the EGLIBC heap mechanisms.
Work-in-progress.
"""
import pwndbg.arch
import pwndbg.events
did_warn_once = False
malloc_chunk = None
@pwndbg.events.new_objfile
def load_malloc_chunk():
malloc_chunk = None
def chunk2mem(p):
"conversion from malloc hea... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Describes the EGLIBC heap mechanisms.
Work-in-progress.
"""
import pwndbg.arch
import pwndbg.events
did_warn_once = False
malloc_chunk = None
@pwndbg.events.new_objfile
def load_malloc_chunk():
malloc_chunk = None
def chunk2mem(p):
"conversion from malloc hea... | Correct the conversion of mem2chunk | Correct the conversion of mem2chunk
| Python | mit | 0xddaa/pwndbg,0xddaa/pwndbg,anthraxx/pwndbg,cebrusfs/217gdb,disconnect3d/pwndbg,disconnect3d/pwndbg,cebrusfs/217gdb,cebrusfs/217gdb,chubbymaggie/pwndbg,pwndbg/pwndbg,anthraxx/pwndbg,pwndbg/pwndbg,zachriggle/pwndbg,anthraxx/pwndbg,0xddaa/pwndbg,cebrusfs/217gdb,pwndbg/pwndbg,disconnect3d/pwndbg,chubbymaggie/pwndbg,zachri... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Describes the EGLIBC heap mechanisms.
Work-in-progress.
"""
import pwndbg.arch
import pwndbg.events
did_warn_once = False
malloc_chunk = None
@pwndbg.events.new_objfile
def load_malloc_chunk():
malloc_chunk = None
def chunk2mem(p):
"conversion from malloc hea... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Describes the EGLIBC heap mechanisms.
Work-in-progress.
"""
import pwndbg.arch
import pwndbg.events
did_warn_once = False
malloc_chunk = None
@pwndbg.events.new_objfile
def load_malloc_chunk():
malloc_chunk = None
def chunk2mem(p):
"conversion from malloc hea... | <commit_before>#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Describes the EGLIBC heap mechanisms.
Work-in-progress.
"""
import pwndbg.arch
import pwndbg.events
did_warn_once = False
malloc_chunk = None
@pwndbg.events.new_objfile
def load_malloc_chunk():
malloc_chunk = None
def chunk2mem(p):
"conversion ... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Describes the EGLIBC heap mechanisms.
Work-in-progress.
"""
import pwndbg.arch
import pwndbg.events
did_warn_once = False
malloc_chunk = None
@pwndbg.events.new_objfile
def load_malloc_chunk():
malloc_chunk = None
def chunk2mem(p):
"conversion from malloc hea... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Describes the EGLIBC heap mechanisms.
Work-in-progress.
"""
import pwndbg.arch
import pwndbg.events
did_warn_once = False
malloc_chunk = None
@pwndbg.events.new_objfile
def load_malloc_chunk():
malloc_chunk = None
def chunk2mem(p):
"conversion from malloc hea... | <commit_before>#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Describes the EGLIBC heap mechanisms.
Work-in-progress.
"""
import pwndbg.arch
import pwndbg.events
did_warn_once = False
malloc_chunk = None
@pwndbg.events.new_objfile
def load_malloc_chunk():
malloc_chunk = None
def chunk2mem(p):
"conversion ... |
4ba31b7c0cce69693df383cb875705d7e66c2945 | admin/base/migrations/0001_groups.py | admin/base/migrations/0001_groups.py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
from django.contrib.auth.models import Group
import logging
logger = logging.getLogger(__file__)
def add_groups(*args):
print args
group, created = Group.objects.get_or_create(name='prereg_group')
if... | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
from django.contrib.auth.models import Group
import logging
logger = logging.getLogger(__file__)
def add_groups(*args):
print args
group, created = Group.objects.get_or_create(name='prereg_group')
if... | Add group with more future permissions | Add group with more future permissions
| Python | apache-2.0 | monikagrabowska/osf.io,leb2dg/osf.io,pattisdr/osf.io,zachjanicki/osf.io,doublebits/osf.io,jnayak1/osf.io,laurenrevere/osf.io,TomBaxter/osf.io,cwisecarver/osf.io,mfraezz/osf.io,emetsger/osf.io,binoculars/osf.io,Nesiehr/osf.io,zamattiac/osf.io,amyshi188/osf.io,jnayak1/osf.io,pattisdr/osf.io,rdhyee/osf.io,crcresearch/osf.... | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
from django.contrib.auth.models import Group
import logging
logger = logging.getLogger(__file__)
def add_groups(*args):
print args
group, created = Group.objects.get_or_create(name='prereg_group')
if... | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
from django.contrib.auth.models import Group
import logging
logger = logging.getLogger(__file__)
def add_groups(*args):
print args
group, created = Group.objects.get_or_create(name='prereg_group')
if... | <commit_before># -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
from django.contrib.auth.models import Group
import logging
logger = logging.getLogger(__file__)
def add_groups(*args):
print args
group, created = Group.objects.get_or_create(name='prereg... | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
from django.contrib.auth.models import Group
import logging
logger = logging.getLogger(__file__)
def add_groups(*args):
print args
group, created = Group.objects.get_or_create(name='prereg_group')
if... | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
from django.contrib.auth.models import Group
import logging
logger = logging.getLogger(__file__)
def add_groups(*args):
print args
group, created = Group.objects.get_or_create(name='prereg_group')
if... | <commit_before># -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
from django.contrib.auth.models import Group
import logging
logger = logging.getLogger(__file__)
def add_groups(*args):
print args
group, created = Group.objects.get_or_create(name='prereg... |
faf35a814d045ce3d71921ed0d4ac268d5a9811c | app/notify_client/provider_client.py | app/notify_client/provider_client.py |
from app.notify_client import _attach_current_user, NotifyAdminAPIClient
class ProviderClient(NotifyAdminAPIClient):
def __init__(self):
super().__init__("a", "b", "c")
def init_app(self, app):
self.base_url = app.config['API_HOST_NAME']
self.service_id = app.config['ADMIN_CLIENT_USE... |
from app.notify_client import _attach_current_user, NotifyAdminAPIClient
class ProviderClient(NotifyAdminAPIClient):
def __init__(self):
super().__init__("a", "b", "c")
def init_app(self, app):
self.base_url = app.config['API_HOST_NAME']
self.service_id = app.config['ADMIN_CLIENT_USE... | Add provider client method to get provider version history | Add provider client method to get provider version history
| Python | mit | gov-cjwaszczuk/notifications-admin,alphagov/notifications-admin,alphagov/notifications-admin,alphagov/notifications-admin,alphagov/notifications-admin,gov-cjwaszczuk/notifications-admin,gov-cjwaszczuk/notifications-admin,gov-cjwaszczuk/notifications-admin |
from app.notify_client import _attach_current_user, NotifyAdminAPIClient
class ProviderClient(NotifyAdminAPIClient):
def __init__(self):
super().__init__("a", "b", "c")
def init_app(self, app):
self.base_url = app.config['API_HOST_NAME']
self.service_id = app.config['ADMIN_CLIENT_USE... |
from app.notify_client import _attach_current_user, NotifyAdminAPIClient
class ProviderClient(NotifyAdminAPIClient):
def __init__(self):
super().__init__("a", "b", "c")
def init_app(self, app):
self.base_url = app.config['API_HOST_NAME']
self.service_id = app.config['ADMIN_CLIENT_USE... | <commit_before>
from app.notify_client import _attach_current_user, NotifyAdminAPIClient
class ProviderClient(NotifyAdminAPIClient):
def __init__(self):
super().__init__("a", "b", "c")
def init_app(self, app):
self.base_url = app.config['API_HOST_NAME']
self.service_id = app.config['A... |
from app.notify_client import _attach_current_user, NotifyAdminAPIClient
class ProviderClient(NotifyAdminAPIClient):
def __init__(self):
super().__init__("a", "b", "c")
def init_app(self, app):
self.base_url = app.config['API_HOST_NAME']
self.service_id = app.config['ADMIN_CLIENT_USE... |
from app.notify_client import _attach_current_user, NotifyAdminAPIClient
class ProviderClient(NotifyAdminAPIClient):
def __init__(self):
super().__init__("a", "b", "c")
def init_app(self, app):
self.base_url = app.config['API_HOST_NAME']
self.service_id = app.config['ADMIN_CLIENT_USE... | <commit_before>
from app.notify_client import _attach_current_user, NotifyAdminAPIClient
class ProviderClient(NotifyAdminAPIClient):
def __init__(self):
super().__init__("a", "b", "c")
def init_app(self, app):
self.base_url = app.config['API_HOST_NAME']
self.service_id = app.config['A... |
101bfdc1552922d4a58defcb622006c432381df6 | contrib/examples/sensors/fibonacci_sensor.py | contrib/examples/sensors/fibonacci_sensor.py | from st2reactor.sensor.base import PollingSensor
from environ import get_environ
class FibonacciSensor(PollingSensor):
def __init__(self, sensor_service, config,
poll_interval=5):
super(FibonacciSensor, self).__init__(
sensor_service=sensor_service,
config=config... | import os
from st2reactor.sensor.base import PollingSensor
class FibonacciSensor(PollingSensor):
def __init__(self, sensor_service, config,
poll_interval=5):
super(FibonacciSensor, self).__init__(
sensor_service=sensor_service,
config=config,
poll_int... | Fix fibonacci sensor so it works under Python 3. | Fix fibonacci sensor so it works under Python 3.
| Python | apache-2.0 | nzlosh/st2,Plexxi/st2,StackStorm/st2,nzlosh/st2,nzlosh/st2,Plexxi/st2,StackStorm/st2,Plexxi/st2,nzlosh/st2,StackStorm/st2,StackStorm/st2,Plexxi/st2 | from st2reactor.sensor.base import PollingSensor
from environ import get_environ
class FibonacciSensor(PollingSensor):
def __init__(self, sensor_service, config,
poll_interval=5):
super(FibonacciSensor, self).__init__(
sensor_service=sensor_service,
config=config... | import os
from st2reactor.sensor.base import PollingSensor
class FibonacciSensor(PollingSensor):
def __init__(self, sensor_service, config,
poll_interval=5):
super(FibonacciSensor, self).__init__(
sensor_service=sensor_service,
config=config,
poll_int... | <commit_before>from st2reactor.sensor.base import PollingSensor
from environ import get_environ
class FibonacciSensor(PollingSensor):
def __init__(self, sensor_service, config,
poll_interval=5):
super(FibonacciSensor, self).__init__(
sensor_service=sensor_service,
... | import os
from st2reactor.sensor.base import PollingSensor
class FibonacciSensor(PollingSensor):
def __init__(self, sensor_service, config,
poll_interval=5):
super(FibonacciSensor, self).__init__(
sensor_service=sensor_service,
config=config,
poll_int... | from st2reactor.sensor.base import PollingSensor
from environ import get_environ
class FibonacciSensor(PollingSensor):
def __init__(self, sensor_service, config,
poll_interval=5):
super(FibonacciSensor, self).__init__(
sensor_service=sensor_service,
config=config... | <commit_before>from st2reactor.sensor.base import PollingSensor
from environ import get_environ
class FibonacciSensor(PollingSensor):
def __init__(self, sensor_service, config,
poll_interval=5):
super(FibonacciSensor, self).__init__(
sensor_service=sensor_service,
... |
6d5697a72793f50054fdfc268115fd8afb62969a | yunity/utils/tests/mock.py | yunity/utils/tests/mock.py | from factory import DjangoModelFactory, CREATE_STRATEGY, LazyAttribute, post_generation, SubFactory, PostGeneration
from yunity.utils.tests.fake import faker
class Mock(DjangoModelFactory):
class Meta:
strategy = CREATE_STRATEGY
model = None
abstract = True
class MockUser(Mock):
clas... | from factory import DjangoModelFactory, CREATE_STRATEGY, LazyAttribute, post_generation, SubFactory, PostGeneration
from yunity.utils.tests.fake import faker
class Mock(DjangoModelFactory):
class Meta:
strategy = CREATE_STRATEGY
model = None
abstract = True
class MockUser(Mock):
clas... | Refactor MockConversation to new model | Refactor MockConversation to new model
Renamed MockChat to MockConversation, remove removed administratedBy
Trait
| Python | agpl-3.0 | yunity/foodsaving-backend,yunity/yunity-core,yunity/yunity-core,yunity/foodsaving-backend,yunity/foodsaving-backend | from factory import DjangoModelFactory, CREATE_STRATEGY, LazyAttribute, post_generation, SubFactory, PostGeneration
from yunity.utils.tests.fake import faker
class Mock(DjangoModelFactory):
class Meta:
strategy = CREATE_STRATEGY
model = None
abstract = True
class MockUser(Mock):
clas... | from factory import DjangoModelFactory, CREATE_STRATEGY, LazyAttribute, post_generation, SubFactory, PostGeneration
from yunity.utils.tests.fake import faker
class Mock(DjangoModelFactory):
class Meta:
strategy = CREATE_STRATEGY
model = None
abstract = True
class MockUser(Mock):
clas... | <commit_before>from factory import DjangoModelFactory, CREATE_STRATEGY, LazyAttribute, post_generation, SubFactory, PostGeneration
from yunity.utils.tests.fake import faker
class Mock(DjangoModelFactory):
class Meta:
strategy = CREATE_STRATEGY
model = None
abstract = True
class MockUser(... | from factory import DjangoModelFactory, CREATE_STRATEGY, LazyAttribute, post_generation, SubFactory, PostGeneration
from yunity.utils.tests.fake import faker
class Mock(DjangoModelFactory):
class Meta:
strategy = CREATE_STRATEGY
model = None
abstract = True
class MockUser(Mock):
clas... | from factory import DjangoModelFactory, CREATE_STRATEGY, LazyAttribute, post_generation, SubFactory, PostGeneration
from yunity.utils.tests.fake import faker
class Mock(DjangoModelFactory):
class Meta:
strategy = CREATE_STRATEGY
model = None
abstract = True
class MockUser(Mock):
clas... | <commit_before>from factory import DjangoModelFactory, CREATE_STRATEGY, LazyAttribute, post_generation, SubFactory, PostGeneration
from yunity.utils.tests.fake import faker
class Mock(DjangoModelFactory):
class Meta:
strategy = CREATE_STRATEGY
model = None
abstract = True
class MockUser(... |
55f6b85e0c376ba56a2ce860fd8d33011c34bc7e | python/problem2.py | python/problem2.py |
def fib(size=-1):
def inner():
count = 0
last = 0
current = 1
while size < 0 or count < size:
last, current = current, last + current
if current > 4000000:
break
count += 1
yield current
return inner()
print su... |
def fib(size=-1):
count = 0
last = 0
current = 1
while size < 0 or count < size:
last, current = current, last + current
if current > 4000000:
break
count += 1
yield current
print sum((i for i in fib() if i % 2 == 0))
| Update probelm 2's generator function | Update probelm 2's generator function
| Python | mit | jreese/euler,jreese/euler,jreese/euler,jreese/euler |
def fib(size=-1):
def inner():
count = 0
last = 0
current = 1
while size < 0 or count < size:
last, current = current, last + current
if current > 4000000:
break
count += 1
yield current
return inner()
print su... |
def fib(size=-1):
count = 0
last = 0
current = 1
while size < 0 or count < size:
last, current = current, last + current
if current > 4000000:
break
count += 1
yield current
print sum((i for i in fib() if i % 2 == 0))
| <commit_before>
def fib(size=-1):
def inner():
count = 0
last = 0
current = 1
while size < 0 or count < size:
last, current = current, last + current
if current > 4000000:
break
count += 1
yield current
return in... |
def fib(size=-1):
count = 0
last = 0
current = 1
while size < 0 or count < size:
last, current = current, last + current
if current > 4000000:
break
count += 1
yield current
print sum((i for i in fib() if i % 2 == 0))
|
def fib(size=-1):
def inner():
count = 0
last = 0
current = 1
while size < 0 or count < size:
last, current = current, last + current
if current > 4000000:
break
count += 1
yield current
return inner()
print su... | <commit_before>
def fib(size=-1):
def inner():
count = 0
last = 0
current = 1
while size < 0 or count < size:
last, current = current, last + current
if current > 4000000:
break
count += 1
yield current
return in... |
776861eeed4244185592f8bda6dea4cb5540423d | cpt/__init__.py | cpt/__init__.py |
__version__ = '0.34.5-dev'
def get_client_version():
from conans.model.version import Version
from conans import __version__ as client_version
from os import getenv
# It is a mess comparing dev versions, lets assume that the -dev is the further release
return Version(client_version.replace("-dev"... |
__version__ = '0.35.0-dev'
def get_client_version():
from conans.model.version import Version
from conans import __version__ as client_version
from os import getenv
# It is a mess comparing dev versions, lets assume that the -dev is the further release
return Version(client_version.replace("-dev"... | Update development verstion to 0.35.0 | Update development verstion to 0.35.0
Signed-off-by: Uilian Ries <[email protected]>
| Python | mit | conan-io/conan-package-tools |
__version__ = '0.34.5-dev'
def get_client_version():
from conans.model.version import Version
from conans import __version__ as client_version
from os import getenv
# It is a mess comparing dev versions, lets assume that the -dev is the further release
return Version(client_version.replace("-dev"... |
__version__ = '0.35.0-dev'
def get_client_version():
from conans.model.version import Version
from conans import __version__ as client_version
from os import getenv
# It is a mess comparing dev versions, lets assume that the -dev is the further release
return Version(client_version.replace("-dev"... | <commit_before>
__version__ = '0.34.5-dev'
def get_client_version():
from conans.model.version import Version
from conans import __version__ as client_version
from os import getenv
# It is a mess comparing dev versions, lets assume that the -dev is the further release
return Version(client_version... |
__version__ = '0.35.0-dev'
def get_client_version():
from conans.model.version import Version
from conans import __version__ as client_version
from os import getenv
# It is a mess comparing dev versions, lets assume that the -dev is the further release
return Version(client_version.replace("-dev"... |
__version__ = '0.34.5-dev'
def get_client_version():
from conans.model.version import Version
from conans import __version__ as client_version
from os import getenv
# It is a mess comparing dev versions, lets assume that the -dev is the further release
return Version(client_version.replace("-dev"... | <commit_before>
__version__ = '0.34.5-dev'
def get_client_version():
from conans.model.version import Version
from conans import __version__ as client_version
from os import getenv
# It is a mess comparing dev versions, lets assume that the -dev is the further release
return Version(client_version... |
f4851040b74a0c88980a1e82a8b518bd6147f508 | FF4P/Abilities.py | FF4P/Abilities.py | import csv
abilityList = {}
def loadAbilities():
global abilityList
with open('FF4/FF4Abil.csv', 'r') as csvFile:
abilityReader = csv.reader(csvFile, delimiter=',', quotechar='|')
i = 0
for row in abilityReader:
abilityList[i] = row
i += 1
def reloadAbilities():... | import os
import csv
abilityList = {}
def loadAbilities():
global abilityList
fileName = "FF4P/FF4P_Abil.csv"
if not os.path.exists(fileName):
fileName = "FF4P_Abil.csv"
with open(fileName, 'r') as csvFile:
abilityReader = csv.reader(csvFile, delimiter=',', quotechar='|')
i... | Fix Filename Errors Module folder had changed at some point in the past, fixed the file path so it could find the CSV | Fix Filename Errors
Module folder had changed at some point in the past, fixed the file
path so it could find the CSV
| Python | mit | einSynd/PyIRC | import csv
abilityList = {}
def loadAbilities():
global abilityList
with open('FF4/FF4Abil.csv', 'r') as csvFile:
abilityReader = csv.reader(csvFile, delimiter=',', quotechar='|')
i = 0
for row in abilityReader:
abilityList[i] = row
i += 1
def reloadAbilities():... | import os
import csv
abilityList = {}
def loadAbilities():
global abilityList
fileName = "FF4P/FF4P_Abil.csv"
if not os.path.exists(fileName):
fileName = "FF4P_Abil.csv"
with open(fileName, 'r') as csvFile:
abilityReader = csv.reader(csvFile, delimiter=',', quotechar='|')
i... | <commit_before>import csv
abilityList = {}
def loadAbilities():
global abilityList
with open('FF4/FF4Abil.csv', 'r') as csvFile:
abilityReader = csv.reader(csvFile, delimiter=',', quotechar='|')
i = 0
for row in abilityReader:
abilityList[i] = row
i += 1
def rel... | import os
import csv
abilityList = {}
def loadAbilities():
global abilityList
fileName = "FF4P/FF4P_Abil.csv"
if not os.path.exists(fileName):
fileName = "FF4P_Abil.csv"
with open(fileName, 'r') as csvFile:
abilityReader = csv.reader(csvFile, delimiter=',', quotechar='|')
i... | import csv
abilityList = {}
def loadAbilities():
global abilityList
with open('FF4/FF4Abil.csv', 'r') as csvFile:
abilityReader = csv.reader(csvFile, delimiter=',', quotechar='|')
i = 0
for row in abilityReader:
abilityList[i] = row
i += 1
def reloadAbilities():... | <commit_before>import csv
abilityList = {}
def loadAbilities():
global abilityList
with open('FF4/FF4Abil.csv', 'r') as csvFile:
abilityReader = csv.reader(csvFile, delimiter=',', quotechar='|')
i = 0
for row in abilityReader:
abilityList[i] = row
i += 1
def rel... |
cc754aeb16aa41f936d59a3b5746a3bec69489ef | sts/util/convenience.py | sts/util/convenience.py | import time
def timestamp_string():
return time.strftime("%Y_%m_%d_%H_%M_%S", time.localtime())
def find(f, seq):
"""Return first item in sequence where f(item) == True."""
for item in seq:
if f(item):
return item
def find_index(f, seq):
"""Return the index of the first item in sequence where f(ite... | import time
def is_sorted(l):
return all(l[i] <= l[i+1] for i in xrange(len(l)-1))
def is_strictly_sorted(l):
return all(l[i] < l[i+1] for i in xrange(len(l)-1))
def timestamp_string():
return time.strftime("%Y_%m_%d_%H_%M_%S", time.localtime())
def find(f, seq):
"""Return first item in sequence where f(ite... | Add little functions for checking if a list is sorted without sorting it | Add little functions for checking if a list is sorted without sorting it
| Python | apache-2.0 | ucb-sts/sts,jmiserez/sts,jmiserez/sts,ucb-sts/sts | import time
def timestamp_string():
return time.strftime("%Y_%m_%d_%H_%M_%S", time.localtime())
def find(f, seq):
"""Return first item in sequence where f(item) == True."""
for item in seq:
if f(item):
return item
def find_index(f, seq):
"""Return the index of the first item in sequence where f(ite... | import time
def is_sorted(l):
return all(l[i] <= l[i+1] for i in xrange(len(l)-1))
def is_strictly_sorted(l):
return all(l[i] < l[i+1] for i in xrange(len(l)-1))
def timestamp_string():
return time.strftime("%Y_%m_%d_%H_%M_%S", time.localtime())
def find(f, seq):
"""Return first item in sequence where f(ite... | <commit_before>import time
def timestamp_string():
return time.strftime("%Y_%m_%d_%H_%M_%S", time.localtime())
def find(f, seq):
"""Return first item in sequence where f(item) == True."""
for item in seq:
if f(item):
return item
def find_index(f, seq):
"""Return the index of the first item in seque... | import time
def is_sorted(l):
return all(l[i] <= l[i+1] for i in xrange(len(l)-1))
def is_strictly_sorted(l):
return all(l[i] < l[i+1] for i in xrange(len(l)-1))
def timestamp_string():
return time.strftime("%Y_%m_%d_%H_%M_%S", time.localtime())
def find(f, seq):
"""Return first item in sequence where f(ite... | import time
def timestamp_string():
return time.strftime("%Y_%m_%d_%H_%M_%S", time.localtime())
def find(f, seq):
"""Return first item in sequence where f(item) == True."""
for item in seq:
if f(item):
return item
def find_index(f, seq):
"""Return the index of the first item in sequence where f(ite... | <commit_before>import time
def timestamp_string():
return time.strftime("%Y_%m_%d_%H_%M_%S", time.localtime())
def find(f, seq):
"""Return first item in sequence where f(item) == True."""
for item in seq:
if f(item):
return item
def find_index(f, seq):
"""Return the index of the first item in seque... |
a8ee8b389359f67a4e0eb0891ccb2278608e3df0 | openacademy/model/openacademy_session.py | openacademy/model/openacademy_session.py | # -*- coding: utf-8 -*-
from openerp import fields, models
... | # -*- coding: utf-8 -*-
from openerp import fields, models
... | Add domain or and ilike | [REF] openacademy: Add domain or and ilike
| Python | apache-2.0 | hellomoto6/openacademy | # -*- coding: utf-8 -*-
from openerp import fields, models
... | # -*- coding: utf-8 -*-
from openerp import fields, models
... | <commit_before># -*- coding: utf-8 -*-
from openerp import fields, models
... | # -*- coding: utf-8 -*-
from openerp import fields, models
... | # -*- coding: utf-8 -*-
from openerp import fields, models
... | <commit_before># -*- coding: utf-8 -*-
from openerp import fields, models
... |
529f719555a42bbdfe74d678ef9839ed7377bcf1 | motor.py | motor.py | import sys
import RPi.GPIO as GPIO
# Register Pin number
enable1 = 22
input1a = 18
input1b = 16
def control(arg):
if arg == 'init':
GPIO.setmode(GPIO.BOARD)
GPIO.setup(enable1, GPIO.OUT)
GPIO.setup(input1a, GPIO.OUT)
GPIO.setup(input1b, GPIO.OUT)
elif arg == 'forward':
... | import sys
import RPi.GPIO as GPIO
# Register Pin number
enable1 = 22
input1a = 18
input1b = 16
def control(arg):
if arg == 'init':
GPIO.setmode(GPIO.BOARD)
GPIO.setup(enable1, GPIO.OUT)
GPIO.setup(input1a, GPIO.OUT)
GPIO.setup(input1b, GPIO.OUT)
elif arg == 'forward':
... | Add init process as default | Add init process as default
| Python | apache-2.0 | hideo54/R2-D2,hideo54/R2-D2,hideo54/R2-D2 | import sys
import RPi.GPIO as GPIO
# Register Pin number
enable1 = 22
input1a = 18
input1b = 16
def control(arg):
if arg == 'init':
GPIO.setmode(GPIO.BOARD)
GPIO.setup(enable1, GPIO.OUT)
GPIO.setup(input1a, GPIO.OUT)
GPIO.setup(input1b, GPIO.OUT)
elif arg == 'forward':
... | import sys
import RPi.GPIO as GPIO
# Register Pin number
enable1 = 22
input1a = 18
input1b = 16
def control(arg):
if arg == 'init':
GPIO.setmode(GPIO.BOARD)
GPIO.setup(enable1, GPIO.OUT)
GPIO.setup(input1a, GPIO.OUT)
GPIO.setup(input1b, GPIO.OUT)
elif arg == 'forward':
... | <commit_before>import sys
import RPi.GPIO as GPIO
# Register Pin number
enable1 = 22
input1a = 18
input1b = 16
def control(arg):
if arg == 'init':
GPIO.setmode(GPIO.BOARD)
GPIO.setup(enable1, GPIO.OUT)
GPIO.setup(input1a, GPIO.OUT)
GPIO.setup(input1b, GPIO.OUT)
elif arg == 'fo... | import sys
import RPi.GPIO as GPIO
# Register Pin number
enable1 = 22
input1a = 18
input1b = 16
def control(arg):
if arg == 'init':
GPIO.setmode(GPIO.BOARD)
GPIO.setup(enable1, GPIO.OUT)
GPIO.setup(input1a, GPIO.OUT)
GPIO.setup(input1b, GPIO.OUT)
elif arg == 'forward':
... | import sys
import RPi.GPIO as GPIO
# Register Pin number
enable1 = 22
input1a = 18
input1b = 16
def control(arg):
if arg == 'init':
GPIO.setmode(GPIO.BOARD)
GPIO.setup(enable1, GPIO.OUT)
GPIO.setup(input1a, GPIO.OUT)
GPIO.setup(input1b, GPIO.OUT)
elif arg == 'forward':
... | <commit_before>import sys
import RPi.GPIO as GPIO
# Register Pin number
enable1 = 22
input1a = 18
input1b = 16
def control(arg):
if arg == 'init':
GPIO.setmode(GPIO.BOARD)
GPIO.setup(enable1, GPIO.OUT)
GPIO.setup(input1a, GPIO.OUT)
GPIO.setup(input1b, GPIO.OUT)
elif arg == 'fo... |
b69170a0ab629f0e11d66ed71857989db1f647f9 | scripts/analytics/institutions.py | scripts/analytics/institutions.py | from modularodm import Q
from website.app import init_app
from website.models import User, Node, Institution
def get_institutions():
institutions = Institution.find(Q('_id', 'ne', None))
return institutions
def get_user_count_by_institutions():
institutions = get_institutions()
user_counts = []
... | from modularodm import Q
from website.app import init_app
from website.models import User, Node, Institution
from website.settings import KEEN as keen_settings
from keen.client import KeenClient
def get_institutions():
institutions = Institution.find(Q('_id', 'ne', None))
return institutions
def get_count_... | Update script to work with Keen | Update script to work with Keen
| Python | apache-2.0 | leb2dg/osf.io,alexschiller/osf.io,cslzchen/osf.io,mluo613/osf.io,alexschiller/osf.io,caneruguz/osf.io,mluo613/osf.io,felliott/osf.io,adlius/osf.io,aaxelb/osf.io,cslzchen/osf.io,alexschiller/osf.io,pattisdr/osf.io,chennan47/osf.io,leb2dg/osf.io,CenterForOpenScience/osf.io,HalcyonChimera/osf.io,aaxelb/osf.io,aaxelb/osf.i... | from modularodm import Q
from website.app import init_app
from website.models import User, Node, Institution
def get_institutions():
institutions = Institution.find(Q('_id', 'ne', None))
return institutions
def get_user_count_by_institutions():
institutions = get_institutions()
user_counts = []
... | from modularodm import Q
from website.app import init_app
from website.models import User, Node, Institution
from website.settings import KEEN as keen_settings
from keen.client import KeenClient
def get_institutions():
institutions = Institution.find(Q('_id', 'ne', None))
return institutions
def get_count_... | <commit_before>from modularodm import Q
from website.app import init_app
from website.models import User, Node, Institution
def get_institutions():
institutions = Institution.find(Q('_id', 'ne', None))
return institutions
def get_user_count_by_institutions():
institutions = get_institutions()
user_... | from modularodm import Q
from website.app import init_app
from website.models import User, Node, Institution
from website.settings import KEEN as keen_settings
from keen.client import KeenClient
def get_institutions():
institutions = Institution.find(Q('_id', 'ne', None))
return institutions
def get_count_... | from modularodm import Q
from website.app import init_app
from website.models import User, Node, Institution
def get_institutions():
institutions = Institution.find(Q('_id', 'ne', None))
return institutions
def get_user_count_by_institutions():
institutions = get_institutions()
user_counts = []
... | <commit_before>from modularodm import Q
from website.app import init_app
from website.models import User, Node, Institution
def get_institutions():
institutions = Institution.find(Q('_id', 'ne', None))
return institutions
def get_user_count_by_institutions():
institutions = get_institutions()
user_... |
ccbc40f5bfa160a9e41de86fc4845d68da40b8c4 | parse.py | parse.py | import re
import hashlib
import requests
location = "http://www.ieee.org/netstorage/standards/oui.txt"
number_name = re.compile(" *(\w{6}) *\(.*\)[^\w]+(.*)$")
oui_hash = hashlib.sha1()
companies = []
# Get the listing from the source location.
req = requests.get(location)
# Update our hash object with the value fro... | import re
import json
import hashlib
import requests
location = "http://www.ieee.org/netstorage/standards/oui.txt"
oui_id = re.compile(" *(\w{6}) *\(.*\)[^\w]+(.*)$")
request_hash = hashlib.sha1()
organizations = []
# Get the listing from the source location.
request = requests.get(location)
# Update our hash object... | Update variable names, add better comments, convert to JSON. | Update variable names, add better comments, convert to JSON.
| Python | isc | reillysiemens/macdb | import re
import hashlib
import requests
location = "http://www.ieee.org/netstorage/standards/oui.txt"
number_name = re.compile(" *(\w{6}) *\(.*\)[^\w]+(.*)$")
oui_hash = hashlib.sha1()
companies = []
# Get the listing from the source location.
req = requests.get(location)
# Update our hash object with the value fro... | import re
import json
import hashlib
import requests
location = "http://www.ieee.org/netstorage/standards/oui.txt"
oui_id = re.compile(" *(\w{6}) *\(.*\)[^\w]+(.*)$")
request_hash = hashlib.sha1()
organizations = []
# Get the listing from the source location.
request = requests.get(location)
# Update our hash object... | <commit_before>import re
import hashlib
import requests
location = "http://www.ieee.org/netstorage/standards/oui.txt"
number_name = re.compile(" *(\w{6}) *\(.*\)[^\w]+(.*)$")
oui_hash = hashlib.sha1()
companies = []
# Get the listing from the source location.
req = requests.get(location)
# Update our hash object wit... | import re
import json
import hashlib
import requests
location = "http://www.ieee.org/netstorage/standards/oui.txt"
oui_id = re.compile(" *(\w{6}) *\(.*\)[^\w]+(.*)$")
request_hash = hashlib.sha1()
organizations = []
# Get the listing from the source location.
request = requests.get(location)
# Update our hash object... | import re
import hashlib
import requests
location = "http://www.ieee.org/netstorage/standards/oui.txt"
number_name = re.compile(" *(\w{6}) *\(.*\)[^\w]+(.*)$")
oui_hash = hashlib.sha1()
companies = []
# Get the listing from the source location.
req = requests.get(location)
# Update our hash object with the value fro... | <commit_before>import re
import hashlib
import requests
location = "http://www.ieee.org/netstorage/standards/oui.txt"
number_name = re.compile(" *(\w{6}) *\(.*\)[^\w]+(.*)$")
oui_hash = hashlib.sha1()
companies = []
# Get the listing from the source location.
req = requests.get(location)
# Update our hash object wit... |
6bd46c60569f8b358eafee568194b797be5020e1 | scent.py | scent.py | from subprocess import call
from sniffer.api import runnable
@runnable
def execute_tests(*args):
fn = ['python', 'manage.py', 'test', '--noinput', '--settings=testsettings']
fn += args[1:]
return call(fn) == 0
| from subprocess import Popen
from sniffer.api import runnable
@runnable
def execute_tests(*args):
fn = ['python', 'manage.py', 'test', '--noinput', '--settings=testsettings']
fn += args[1:]
process = Popen(fn)
try:
return process.wait() == 0
except KeyboardInterrupt:
process.termin... | Kill Nose when ^C in sniffer | Kill Nose when ^C in sniffer
| Python | bsd-3-clause | dimagi/commcare-hq,qedsoftware/commcare-hq,qedsoftware/commcare-hq,qedsoftware/commcare-hq,dimagi/commcare-hq,dimagi/commcare-hq,qedsoftware/commcare-hq,qedsoftware/commcare-hq,dimagi/commcare-hq,dimagi/commcare-hq | from subprocess import call
from sniffer.api import runnable
@runnable
def execute_tests(*args):
fn = ['python', 'manage.py', 'test', '--noinput', '--settings=testsettings']
fn += args[1:]
return call(fn) == 0
Kill Nose when ^C in sniffer | from subprocess import Popen
from sniffer.api import runnable
@runnable
def execute_tests(*args):
fn = ['python', 'manage.py', 'test', '--noinput', '--settings=testsettings']
fn += args[1:]
process = Popen(fn)
try:
return process.wait() == 0
except KeyboardInterrupt:
process.termin... | <commit_before>from subprocess import call
from sniffer.api import runnable
@runnable
def execute_tests(*args):
fn = ['python', 'manage.py', 'test', '--noinput', '--settings=testsettings']
fn += args[1:]
return call(fn) == 0
<commit_msg>Kill Nose when ^C in sniffer<commit_after> | from subprocess import Popen
from sniffer.api import runnable
@runnable
def execute_tests(*args):
fn = ['python', 'manage.py', 'test', '--noinput', '--settings=testsettings']
fn += args[1:]
process = Popen(fn)
try:
return process.wait() == 0
except KeyboardInterrupt:
process.termin... | from subprocess import call
from sniffer.api import runnable
@runnable
def execute_tests(*args):
fn = ['python', 'manage.py', 'test', '--noinput', '--settings=testsettings']
fn += args[1:]
return call(fn) == 0
Kill Nose when ^C in snifferfrom subprocess import Popen
from sniffer.api import runnable
@run... | <commit_before>from subprocess import call
from sniffer.api import runnable
@runnable
def execute_tests(*args):
fn = ['python', 'manage.py', 'test', '--noinput', '--settings=testsettings']
fn += args[1:]
return call(fn) == 0
<commit_msg>Kill Nose when ^C in sniffer<commit_after>from subprocess import Pope... |
46a69b1795a5946c815c16a7d910d8c680e1ed7f | setup.py | setup.py | from setuptools import setup, find_packages
from io import open
setup(
name='django-debug-toolbar',
version='1.3.2',
description='A configurable set of panels that display various debug '
'information about the current request/response.',
long_description=open('README.rst', encoding='ut... | from setuptools import setup, find_packages
from io import open
setup(
name='django-debug-toolbar',
version='1.3.2',
description='A configurable set of panels that display various debug '
'information about the current request/response.',
long_description=open('README.rst', encoding='ut... | Correct spelling of Django in requirements | Correct spelling of Django in requirements
It seems that using 'django' instead of 'Django' has the consequence that "pip install django_debug_toolbar" has the consequence of installing the latest version of Django, even if you already have Django installed. | Python | bsd-3-clause | megcunningham/django-debug-toolbar,jazzband/django-debug-toolbar,pevzi/django-debug-toolbar,Endika/django-debug-toolbar,barseghyanartur/django-debug-toolbar,peap/django-debug-toolbar,tim-schilling/django-debug-toolbar,tim-schilling/django-debug-toolbar,barseghyanartur/django-debug-toolbar,jazzband/django-debug-toolbar,... | from setuptools import setup, find_packages
from io import open
setup(
name='django-debug-toolbar',
version='1.3.2',
description='A configurable set of panels that display various debug '
'information about the current request/response.',
long_description=open('README.rst', encoding='ut... | from setuptools import setup, find_packages
from io import open
setup(
name='django-debug-toolbar',
version='1.3.2',
description='A configurable set of panels that display various debug '
'information about the current request/response.',
long_description=open('README.rst', encoding='ut... | <commit_before>from setuptools import setup, find_packages
from io import open
setup(
name='django-debug-toolbar',
version='1.3.2',
description='A configurable set of panels that display various debug '
'information about the current request/response.',
long_description=open('README.rst... | from setuptools import setup, find_packages
from io import open
setup(
name='django-debug-toolbar',
version='1.3.2',
description='A configurable set of panels that display various debug '
'information about the current request/response.',
long_description=open('README.rst', encoding='ut... | from setuptools import setup, find_packages
from io import open
setup(
name='django-debug-toolbar',
version='1.3.2',
description='A configurable set of panels that display various debug '
'information about the current request/response.',
long_description=open('README.rst', encoding='ut... | <commit_before>from setuptools import setup, find_packages
from io import open
setup(
name='django-debug-toolbar',
version='1.3.2',
description='A configurable set of panels that display various debug '
'information about the current request/response.',
long_description=open('README.rst... |
1efabe64683240209ce7cdb7dd3064c8bcabbdc7 | setup.py | setup.py | #!/usr/bin/env python3
import os
import sys
import OpenPNM
sys.path.append(os.getcwd())
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
setup(
name = 'OpenPNM',
description = 'A framework for conducting pore network modeling simulations of multiphase transport ... | #!/usr/bin/env python3
import os
import sys
import OpenPNM
sys.path.append(os.getcwd())
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
setup(
name = 'OpenPNM',
description = 'A framework for conducting pore network modeling simulations of multiphase transport ... | Add skimage to install_requires list | Add skimage to install_requires list
| Python | mit | amdouglas/OpenPNM,stadelmanma/OpenPNM,TomTranter/OpenPNM,amdouglas/OpenPNM,PMEAL/OpenPNM | #!/usr/bin/env python3
import os
import sys
import OpenPNM
sys.path.append(os.getcwd())
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
setup(
name = 'OpenPNM',
description = 'A framework for conducting pore network modeling simulations of multiphase transport ... | #!/usr/bin/env python3
import os
import sys
import OpenPNM
sys.path.append(os.getcwd())
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
setup(
name = 'OpenPNM',
description = 'A framework for conducting pore network modeling simulations of multiphase transport ... | <commit_before>#!/usr/bin/env python3
import os
import sys
import OpenPNM
sys.path.append(os.getcwd())
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
setup(
name = 'OpenPNM',
description = 'A framework for conducting pore network modeling simulations of multip... | #!/usr/bin/env python3
import os
import sys
import OpenPNM
sys.path.append(os.getcwd())
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
setup(
name = 'OpenPNM',
description = 'A framework for conducting pore network modeling simulations of multiphase transport ... | #!/usr/bin/env python3
import os
import sys
import OpenPNM
sys.path.append(os.getcwd())
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
setup(
name = 'OpenPNM',
description = 'A framework for conducting pore network modeling simulations of multiphase transport ... | <commit_before>#!/usr/bin/env python3
import os
import sys
import OpenPNM
sys.path.append(os.getcwd())
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
setup(
name = 'OpenPNM',
description = 'A framework for conducting pore network modeling simulations of multip... |
5d8d90ffea97f30994a7ff5654f485436a691cde | setup.py | setup.py | from distutils.core import setup
with open('requirements.txt') as f:
requirements = [l.strip() for l in f]
setup(
name='hamper-remindme',
version='0.1',
packages=['hamper-remindme'],
author='Dean Johnson',
author_email='[email protected]',
url='https://github.com/johnsdea/hamper-rem... | from distutils.core import setup
with open('requirements.txt') as f:
requirements = [l.strip() for l in f]
setup(
name='hamper-remindme',
version='0.1',
packages=['hamper-remindme'],
author='Dean Johnson',
author_email='[email protected]',
url='https://github.com/dean/hamper-remindm... | Update url with new Github username. | Update url with new Github username.
| Python | mpl-2.0 | dean/hamper-remindme | from distutils.core import setup
with open('requirements.txt') as f:
requirements = [l.strip() for l in f]
setup(
name='hamper-remindme',
version='0.1',
packages=['hamper-remindme'],
author='Dean Johnson',
author_email='[email protected]',
url='https://github.com/johnsdea/hamper-rem... | from distutils.core import setup
with open('requirements.txt') as f:
requirements = [l.strip() for l in f]
setup(
name='hamper-remindme',
version='0.1',
packages=['hamper-remindme'],
author='Dean Johnson',
author_email='[email protected]',
url='https://github.com/dean/hamper-remindm... | <commit_before>from distutils.core import setup
with open('requirements.txt') as f:
requirements = [l.strip() for l in f]
setup(
name='hamper-remindme',
version='0.1',
packages=['hamper-remindme'],
author='Dean Johnson',
author_email='[email protected]',
url='https://github.com/john... | from distutils.core import setup
with open('requirements.txt') as f:
requirements = [l.strip() for l in f]
setup(
name='hamper-remindme',
version='0.1',
packages=['hamper-remindme'],
author='Dean Johnson',
author_email='[email protected]',
url='https://github.com/dean/hamper-remindm... | from distutils.core import setup
with open('requirements.txt') as f:
requirements = [l.strip() for l in f]
setup(
name='hamper-remindme',
version='0.1',
packages=['hamper-remindme'],
author='Dean Johnson',
author_email='[email protected]',
url='https://github.com/johnsdea/hamper-rem... | <commit_before>from distutils.core import setup
with open('requirements.txt') as f:
requirements = [l.strip() for l in f]
setup(
name='hamper-remindme',
version='0.1',
packages=['hamper-remindme'],
author='Dean Johnson',
author_email='[email protected]',
url='https://github.com/john... |
1ef2eadd317172c9d3d51c30c7e424a99ce47a05 | setup.py | setup.py | try:
from setuptools import setup
except ImportError:
from distutils.core import setup
import toml
with open("README.rst") as readme_file:
readme_string = readme_file.read()
setup(
name="toml",
version=toml.__version__,
description="Python Library for Tom's Obvious, Minimal Language",
aut... | try:
from setuptools import setup
except ImportError:
from distutils.core import setup
import toml
with open("README.rst") as readme_file:
readme_string = readme_file.read()
setup(
name="toml",
version=toml.__version__,
description="Python Library for Tom's Obvious, Minimal Language",
aut... | Add some final trove classifiers to help document the project | Add some final trove classifiers to help document the project
Development Status :: 5 - Production/Stable
Intended Audience :: Developers
Operating System :: OS Independent
| Python | mit | uiri/toml,uiri/toml | try:
from setuptools import setup
except ImportError:
from distutils.core import setup
import toml
with open("README.rst") as readme_file:
readme_string = readme_file.read()
setup(
name="toml",
version=toml.__version__,
description="Python Library for Tom's Obvious, Minimal Language",
aut... | try:
from setuptools import setup
except ImportError:
from distutils.core import setup
import toml
with open("README.rst") as readme_file:
readme_string = readme_file.read()
setup(
name="toml",
version=toml.__version__,
description="Python Library for Tom's Obvious, Minimal Language",
aut... | <commit_before>try:
from setuptools import setup
except ImportError:
from distutils.core import setup
import toml
with open("README.rst") as readme_file:
readme_string = readme_file.read()
setup(
name="toml",
version=toml.__version__,
description="Python Library for Tom's Obvious, Minimal Lan... | try:
from setuptools import setup
except ImportError:
from distutils.core import setup
import toml
with open("README.rst") as readme_file:
readme_string = readme_file.read()
setup(
name="toml",
version=toml.__version__,
description="Python Library for Tom's Obvious, Minimal Language",
aut... | try:
from setuptools import setup
except ImportError:
from distutils.core import setup
import toml
with open("README.rst") as readme_file:
readme_string = readme_file.read()
setup(
name="toml",
version=toml.__version__,
description="Python Library for Tom's Obvious, Minimal Language",
aut... | <commit_before>try:
from setuptools import setup
except ImportError:
from distutils.core import setup
import toml
with open("README.rst") as readme_file:
readme_string = readme_file.read()
setup(
name="toml",
version=toml.__version__,
description="Python Library for Tom's Obvious, Minimal Lan... |
43ad3b2d2e25b816d6d7b339d62e674541d76712 | setup.py | setup.py | from setuptools import setup, find_packages
from gdc_client.version import __version__
setup(
name="gdc_client",
version=__version__,
packages=find_packages(),
package_data={},
install_requires=[
'parcel',
'lxml==3.5.0b1',
'PyYAML==3.11',
'jsonschema==2.5.1',
... | from setuptools import setup, find_packages
from gdc_client.version import __version__
setup(
name="gdc_client",
version=__version__,
packages=find_packages(),
package_data={},
install_requires=[
'parcel',
'lxml==3.5.0b1',
'PyYAML==3.11',
'jsonschema==2.5.1',
... | Update dependency link for parcel and recent DTT-99 fix | Update dependency link for parcel and recent DTT-99 fix
| Python | apache-2.0 | NCI-GDC/gdc-client,NCI-GDC/gdc-client | from setuptools import setup, find_packages
from gdc_client.version import __version__
setup(
name="gdc_client",
version=__version__,
packages=find_packages(),
package_data={},
install_requires=[
'parcel',
'lxml==3.5.0b1',
'PyYAML==3.11',
'jsonschema==2.5.1',
... | from setuptools import setup, find_packages
from gdc_client.version import __version__
setup(
name="gdc_client",
version=__version__,
packages=find_packages(),
package_data={},
install_requires=[
'parcel',
'lxml==3.5.0b1',
'PyYAML==3.11',
'jsonschema==2.5.1',
... | <commit_before>from setuptools import setup, find_packages
from gdc_client.version import __version__
setup(
name="gdc_client",
version=__version__,
packages=find_packages(),
package_data={},
install_requires=[
'parcel',
'lxml==3.5.0b1',
'PyYAML==3.11',
'jsonschema==... | from setuptools import setup, find_packages
from gdc_client.version import __version__
setup(
name="gdc_client",
version=__version__,
packages=find_packages(),
package_data={},
install_requires=[
'parcel',
'lxml==3.5.0b1',
'PyYAML==3.11',
'jsonschema==2.5.1',
... | from setuptools import setup, find_packages
from gdc_client.version import __version__
setup(
name="gdc_client",
version=__version__,
packages=find_packages(),
package_data={},
install_requires=[
'parcel',
'lxml==3.5.0b1',
'PyYAML==3.11',
'jsonschema==2.5.1',
... | <commit_before>from setuptools import setup, find_packages
from gdc_client.version import __version__
setup(
name="gdc_client",
version=__version__,
packages=find_packages(),
package_data={},
install_requires=[
'parcel',
'lxml==3.5.0b1',
'PyYAML==3.11',
'jsonschema==... |
662dd57b0bf761d8028a0b0edf107da8cf1055df | setup.py | setup.py | #!/usr/bin/python
# -*- coding: utf-8 -*-
from setuptools import find_packages
from setuptools import setup
__version__ = '0.19.1'
setup(
name='pyramid_zipkin',
version=__version__,
provides=["pyramid_zipkin"],
author='Yelp, Inc.',
author_email='[email protected]',
license='Co... | #!/usr/bin/python
# -*- coding: utf-8 -*-
from setuptools import find_packages
from setuptools import setup
__version__ = '0.19.1'
setup(
name='pyramid_zipkin',
version=__version__,
provides=["pyramid_zipkin"],
author='Yelp, Inc.',
author_email='[email protected]',
license='Co... | Make required py_zipkin v0.8.1 for accurate server send timings | Make required py_zipkin v0.8.1 for accurate server send timings
| Python | apache-2.0 | Yelp/pyramid_zipkin,bplotnick/pyramid_zipkin | #!/usr/bin/python
# -*- coding: utf-8 -*-
from setuptools import find_packages
from setuptools import setup
__version__ = '0.19.1'
setup(
name='pyramid_zipkin',
version=__version__,
provides=["pyramid_zipkin"],
author='Yelp, Inc.',
author_email='[email protected]',
license='Co... | #!/usr/bin/python
# -*- coding: utf-8 -*-
from setuptools import find_packages
from setuptools import setup
__version__ = '0.19.1'
setup(
name='pyramid_zipkin',
version=__version__,
provides=["pyramid_zipkin"],
author='Yelp, Inc.',
author_email='[email protected]',
license='Co... | <commit_before>#!/usr/bin/python
# -*- coding: utf-8 -*-
from setuptools import find_packages
from setuptools import setup
__version__ = '0.19.1'
setup(
name='pyramid_zipkin',
version=__version__,
provides=["pyramid_zipkin"],
author='Yelp, Inc.',
author_email='[email protected]',
... | #!/usr/bin/python
# -*- coding: utf-8 -*-
from setuptools import find_packages
from setuptools import setup
__version__ = '0.19.1'
setup(
name='pyramid_zipkin',
version=__version__,
provides=["pyramid_zipkin"],
author='Yelp, Inc.',
author_email='[email protected]',
license='Co... | #!/usr/bin/python
# -*- coding: utf-8 -*-
from setuptools import find_packages
from setuptools import setup
__version__ = '0.19.1'
setup(
name='pyramid_zipkin',
version=__version__,
provides=["pyramid_zipkin"],
author='Yelp, Inc.',
author_email='[email protected]',
license='Co... | <commit_before>#!/usr/bin/python
# -*- coding: utf-8 -*-
from setuptools import find_packages
from setuptools import setup
__version__ = '0.19.1'
setup(
name='pyramid_zipkin',
version=__version__,
provides=["pyramid_zipkin"],
author='Yelp, Inc.',
author_email='[email protected]',
... |
8afe9dc1e1bc5e632d6487b7a86a0df1bc73d154 | setup.py | setup.py | import os
from setuptools import setup
def read(name):
return open(os.path.join(os.path.dirname(__file__), name), 'r').read()
setup(
name="kitsu.http",
version="0.0.1",
description="Low-level HTTP library",
long_description=read('README'),
author="Alexey Borzenkov",
author_email="snaury@gm... | import os
from setuptools import setup
def read(name):
return open(os.path.join(os.path.dirname(__file__), name), 'r').read()
setup(
name="kitsu.http",
version="0.0.1",
description="Low-level HTTP library",
long_description=read('README'),
author="Alexey Borzenkov",
author_email="snaury@gm... | Add kitsu.http to packages and mark it zip_safe | Add kitsu.http to packages and mark it zip_safe | Python | mit | snaury/kitsu.http,snaury/kitsu.http | import os
from setuptools import setup
def read(name):
return open(os.path.join(os.path.dirname(__file__), name), 'r').read()
setup(
name="kitsu.http",
version="0.0.1",
description="Low-level HTTP library",
long_description=read('README'),
author="Alexey Borzenkov",
author_email="snaury@gm... | import os
from setuptools import setup
def read(name):
return open(os.path.join(os.path.dirname(__file__), name), 'r').read()
setup(
name="kitsu.http",
version="0.0.1",
description="Low-level HTTP library",
long_description=read('README'),
author="Alexey Borzenkov",
author_email="snaury@gm... | <commit_before>import os
from setuptools import setup
def read(name):
return open(os.path.join(os.path.dirname(__file__), name), 'r').read()
setup(
name="kitsu.http",
version="0.0.1",
description="Low-level HTTP library",
long_description=read('README'),
author="Alexey Borzenkov",
author_e... | import os
from setuptools import setup
def read(name):
return open(os.path.join(os.path.dirname(__file__), name), 'r').read()
setup(
name="kitsu.http",
version="0.0.1",
description="Low-level HTTP library",
long_description=read('README'),
author="Alexey Borzenkov",
author_email="snaury@gm... | import os
from setuptools import setup
def read(name):
return open(os.path.join(os.path.dirname(__file__), name), 'r').read()
setup(
name="kitsu.http",
version="0.0.1",
description="Low-level HTTP library",
long_description=read('README'),
author="Alexey Borzenkov",
author_email="snaury@gm... | <commit_before>import os
from setuptools import setup
def read(name):
return open(os.path.join(os.path.dirname(__file__), name), 'r').read()
setup(
name="kitsu.http",
version="0.0.1",
description="Low-level HTTP library",
long_description=read('README'),
author="Alexey Borzenkov",
author_e... |
d0b930e6d7ce3bff833bd177bc13a908cb1bed0d | setup.py | setup.py | import os
from setuptools import setup
# Utility function to read the README file.
# Used for the long_description. It's nice, because now 1) we have a top level
# README file and 2) it's easier to type in the README file than to put a raw
# string in below ...
def read(fname):
return open(os.path.join(os.path.d... | import os
from setuptools import setup
# Utility function to read the README file.
# Used for the long_description. It's nice, because now 1) we have a top level
# README file and 2) it's easier to type in the README file than to put a raw
# string in below ...
def read(fname):
return open(os.path.join(os.path.d... | Add license type and fix typo | Add license type and fix typo
| Python | mit | trimailov/timeflow | import os
from setuptools import setup
# Utility function to read the README file.
# Used for the long_description. It's nice, because now 1) we have a top level
# README file and 2) it's easier to type in the README file than to put a raw
# string in below ...
def read(fname):
return open(os.path.join(os.path.d... | import os
from setuptools import setup
# Utility function to read the README file.
# Used for the long_description. It's nice, because now 1) we have a top level
# README file and 2) it's easier to type in the README file than to put a raw
# string in below ...
def read(fname):
return open(os.path.join(os.path.d... | <commit_before>import os
from setuptools import setup
# Utility function to read the README file.
# Used for the long_description. It's nice, because now 1) we have a top level
# README file and 2) it's easier to type in the README file than to put a raw
# string in below ...
def read(fname):
return open(os.path... | import os
from setuptools import setup
# Utility function to read the README file.
# Used for the long_description. It's nice, because now 1) we have a top level
# README file and 2) it's easier to type in the README file than to put a raw
# string in below ...
def read(fname):
return open(os.path.join(os.path.d... | import os
from setuptools import setup
# Utility function to read the README file.
# Used for the long_description. It's nice, because now 1) we have a top level
# README file and 2) it's easier to type in the README file than to put a raw
# string in below ...
def read(fname):
return open(os.path.join(os.path.d... | <commit_before>import os
from setuptools import setup
# Utility function to read the README file.
# Used for the long_description. It's nice, because now 1) we have a top level
# README file and 2) it's easier to type in the README file than to put a raw
# string in below ...
def read(fname):
return open(os.path... |
397c8b952ad258d2419c428f0cf9961b65bc41d2 | setup.py | setup.py | # python3
# Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | # python3
# Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | Update maintainers to be a mailing list | Update maintainers to be a mailing list | Python | apache-2.0 | google/python-spanner-orm | # python3
# Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | # python3
# Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | <commit_before># python3
# Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law ... | # python3
# Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | # python3
# Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | <commit_before># python3
# Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law ... |
05baf9fc587e0e4f3909cb130b16af5d6629face | setup.py | setup.py | from setuptools import setup
classifiers = ['Development Status :: 4 - Production/Beta',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python :: 2',
'... | from setuptools import setup
classifiers = ['Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python :: 2',
'Programming... | Fix the trover classifier and license | Fix the trover classifier and license
| Python | bsd-3-clause | aweber/avroconsumer | from setuptools import setup
classifiers = ['Development Status :: 4 - Production/Beta',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python :: 2',
'... | from setuptools import setup
classifiers = ['Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python :: 2',
'Programming... | <commit_before>from setuptools import setup
classifiers = ['Development Status :: 4 - Production/Beta',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python :: 2',
... | from setuptools import setup
classifiers = ['Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python :: 2',
'Programming... | from setuptools import setup
classifiers = ['Development Status :: 4 - Production/Beta',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python :: 2',
'... | <commit_before>from setuptools import setup
classifiers = ['Development Status :: 4 - Production/Beta',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python :: 2',
... |
e546b82956455ba4c5510837c7527efdfc8dec47 | setup.py | setup.py | from setuptools import setup
setup(
name="ordered-set",
version = '1.3.1',
maintainer='Luminoso Technologies, Inc.',
maintainer_email='[email protected]',
license = "MIT-LICENSE",
url = 'http://github.com/LuminosoInsight/ordered-set',
platforms = ["any"],
description = "A MutableSet that... | from setuptools import setup
setup(
name="ordered-set",
version = '1.3.1',
maintainer='Luminoso Technologies, Inc.',
maintainer_email='[email protected]',
license = "MIT-LICENSE",
url = 'http://github.com/LuminosoInsight/ordered-set',
platforms = ["any"],
description = "A MutableSet that... | Include license file in resulting tar.gz | Include license file in resulting tar.gz
I am going to package this module for Fedora. And it is better for Fedora if tar.gz file contains the file with the license (it is better for auditing). Can you please include it with next version? | Python | mit | Toilal/ordered-set,LuminosoInsight/ordered-set | from setuptools import setup
setup(
name="ordered-set",
version = '1.3.1',
maintainer='Luminoso Technologies, Inc.',
maintainer_email='[email protected]',
license = "MIT-LICENSE",
url = 'http://github.com/LuminosoInsight/ordered-set',
platforms = ["any"],
description = "A MutableSet that... | from setuptools import setup
setup(
name="ordered-set",
version = '1.3.1',
maintainer='Luminoso Technologies, Inc.',
maintainer_email='[email protected]',
license = "MIT-LICENSE",
url = 'http://github.com/LuminosoInsight/ordered-set',
platforms = ["any"],
description = "A MutableSet that... | <commit_before>from setuptools import setup
setup(
name="ordered-set",
version = '1.3.1',
maintainer='Luminoso Technologies, Inc.',
maintainer_email='[email protected]',
license = "MIT-LICENSE",
url = 'http://github.com/LuminosoInsight/ordered-set',
platforms = ["any"],
description = "A ... | from setuptools import setup
setup(
name="ordered-set",
version = '1.3.1',
maintainer='Luminoso Technologies, Inc.',
maintainer_email='[email protected]',
license = "MIT-LICENSE",
url = 'http://github.com/LuminosoInsight/ordered-set',
platforms = ["any"],
description = "A MutableSet that... | from setuptools import setup
setup(
name="ordered-set",
version = '1.3.1',
maintainer='Luminoso Technologies, Inc.',
maintainer_email='[email protected]',
license = "MIT-LICENSE",
url = 'http://github.com/LuminosoInsight/ordered-set',
platforms = ["any"],
description = "A MutableSet that... | <commit_before>from setuptools import setup
setup(
name="ordered-set",
version = '1.3.1',
maintainer='Luminoso Technologies, Inc.',
maintainer_email='[email protected]',
license = "MIT-LICENSE",
url = 'http://github.com/LuminosoInsight/ordered-set',
platforms = ["any"],
description = "A ... |
9e17f00c9a3ffd83542db5053b7c5e23d5ff1e03 | setup.py | setup.py | from setuptools import setup, find_packages
version = '0.0.1'
setup(
name='django-conman',
packages=find_packages(),
include_package_data=True,
version=version,
description='A modular CMS for django',
author='Incuna',
author_email='[email protected]',
url='https://github.com/incuna/dja... | from setuptools import setup, find_packages
version = '0.0.1'
setup(
name='django-conman',
packages=find_packages(),
include_package_data=True,
version=version,
description='A modular CMS for django',
author='Incuna',
author_email='[email protected]',
url='https://github.com/incuna/dja... | Allow polymorphic tree pre-release to be installed | Allow polymorphic tree pre-release to be installed
| Python | bsd-2-clause | meshy/django-conman,meshy/django-conman,Ian-Foote/django-conman | from setuptools import setup, find_packages
version = '0.0.1'
setup(
name='django-conman',
packages=find_packages(),
include_package_data=True,
version=version,
description='A modular CMS for django',
author='Incuna',
author_email='[email protected]',
url='https://github.com/incuna/dja... | from setuptools import setup, find_packages
version = '0.0.1'
setup(
name='django-conman',
packages=find_packages(),
include_package_data=True,
version=version,
description='A modular CMS for django',
author='Incuna',
author_email='[email protected]',
url='https://github.com/incuna/dja... | <commit_before>from setuptools import setup, find_packages
version = '0.0.1'
setup(
name='django-conman',
packages=find_packages(),
include_package_data=True,
version=version,
description='A modular CMS for django',
author='Incuna',
author_email='[email protected]',
url='https://github... | from setuptools import setup, find_packages
version = '0.0.1'
setup(
name='django-conman',
packages=find_packages(),
include_package_data=True,
version=version,
description='A modular CMS for django',
author='Incuna',
author_email='[email protected]',
url='https://github.com/incuna/dja... | from setuptools import setup, find_packages
version = '0.0.1'
setup(
name='django-conman',
packages=find_packages(),
include_package_data=True,
version=version,
description='A modular CMS for django',
author='Incuna',
author_email='[email protected]',
url='https://github.com/incuna/dja... | <commit_before>from setuptools import setup, find_packages
version = '0.0.1'
setup(
name='django-conman',
packages=find_packages(),
include_package_data=True,
version=version,
description='A modular CMS for django',
author='Incuna',
author_email='[email protected]',
url='https://github... |
b80f775ef6307d625f64420c1852eb6119ae8cf7 | setup.py | setup.py | #!/usr/bin/env python
from setuptools import setup, find_packages
import sys
with open('README.md') as f:
readme = f.read()
install_requires = [
'cachetools>=1.1.5',
'requests>=2.7.0',
'xmltodict>=0.9.2',
]
setup(
name='pinkopy',
version='1.3.dev',
description='Python wrapper for Commva... | #!/usr/bin/env python
from setuptools import setup, find_packages
import sys
try:
import pypandoc
readme = pypandoc.convert('README.md', 'rst')
except(IOError, ImportError):
with open('README.md') as f:
readme = f.read()
install_requires = [
'cachetools>=1.1.5',
'requests>=2.7.0',
'xm... | Modify README to autoconvert to rst if possible at upload | Modify README to autoconvert to rst if possible at upload
| Python | mit | theherk/pinkopy | #!/usr/bin/env python
from setuptools import setup, find_packages
import sys
with open('README.md') as f:
readme = f.read()
install_requires = [
'cachetools>=1.1.5',
'requests>=2.7.0',
'xmltodict>=0.9.2',
]
setup(
name='pinkopy',
version='1.3.dev',
description='Python wrapper for Commva... | #!/usr/bin/env python
from setuptools import setup, find_packages
import sys
try:
import pypandoc
readme = pypandoc.convert('README.md', 'rst')
except(IOError, ImportError):
with open('README.md') as f:
readme = f.read()
install_requires = [
'cachetools>=1.1.5',
'requests>=2.7.0',
'xm... | <commit_before>#!/usr/bin/env python
from setuptools import setup, find_packages
import sys
with open('README.md') as f:
readme = f.read()
install_requires = [
'cachetools>=1.1.5',
'requests>=2.7.0',
'xmltodict>=0.9.2',
]
setup(
name='pinkopy',
version='1.3.dev',
description='Python wra... | #!/usr/bin/env python
from setuptools import setup, find_packages
import sys
try:
import pypandoc
readme = pypandoc.convert('README.md', 'rst')
except(IOError, ImportError):
with open('README.md') as f:
readme = f.read()
install_requires = [
'cachetools>=1.1.5',
'requests>=2.7.0',
'xm... | #!/usr/bin/env python
from setuptools import setup, find_packages
import sys
with open('README.md') as f:
readme = f.read()
install_requires = [
'cachetools>=1.1.5',
'requests>=2.7.0',
'xmltodict>=0.9.2',
]
setup(
name='pinkopy',
version='1.3.dev',
description='Python wrapper for Commva... | <commit_before>#!/usr/bin/env python
from setuptools import setup, find_packages
import sys
with open('README.md') as f:
readme = f.read()
install_requires = [
'cachetools>=1.1.5',
'requests>=2.7.0',
'xmltodict>=0.9.2',
]
setup(
name='pinkopy',
version='1.3.dev',
description='Python wra... |
e39c93cdd987769a7efe7008b8bc3c80a2395084 | setup.py | setup.py | from setuptools import setup
# patch distutils if it can't cope with the "classifiers" or "download_url"
# keywords (prior to python 2.3.0).
from distutils.dist import DistributionMetadata
if not hasattr(DistributionMetadata, 'classifiers'):
DistributionMetadata.classifiers = None
if not hasattr(Distributio... | from setuptools import setup
# patch distutils if it can't cope with the "classifiers" or "download_url"
# keywords (prior to python 2.3.0).
from distutils.dist import DistributionMetadata
if not hasattr(DistributionMetadata, 'classifiers'):
DistributionMetadata.classifiers = None
if not hasattr(Distributio... | Use the right module name. ;) | Use the right module name. ;)
| Python | lgpl-2.1 | zougloub/charade,ddboline/chardet,chardet/chardet,ddboline/chardet,barak066/chardet,nvbn/charade,sigmavirus24/charade,memnonila/chardet,chardet/chardet,asdfsx/chardet,asdfsx/chardet,barak066/chardet,memnonila/chardet | from setuptools import setup
# patch distutils if it can't cope with the "classifiers" or "download_url"
# keywords (prior to python 2.3.0).
from distutils.dist import DistributionMetadata
if not hasattr(DistributionMetadata, 'classifiers'):
DistributionMetadata.classifiers = None
if not hasattr(Distributio... | from setuptools import setup
# patch distutils if it can't cope with the "classifiers" or "download_url"
# keywords (prior to python 2.3.0).
from distutils.dist import DistributionMetadata
if not hasattr(DistributionMetadata, 'classifiers'):
DistributionMetadata.classifiers = None
if not hasattr(Distributio... | <commit_before>from setuptools import setup
# patch distutils if it can't cope with the "classifiers" or "download_url"
# keywords (prior to python 2.3.0).
from distutils.dist import DistributionMetadata
if not hasattr(DistributionMetadata, 'classifiers'):
DistributionMetadata.classifiers = None
if not hasa... | from setuptools import setup
# patch distutils if it can't cope with the "classifiers" or "download_url"
# keywords (prior to python 2.3.0).
from distutils.dist import DistributionMetadata
if not hasattr(DistributionMetadata, 'classifiers'):
DistributionMetadata.classifiers = None
if not hasattr(Distributio... | from setuptools import setup
# patch distutils if it can't cope with the "classifiers" or "download_url"
# keywords (prior to python 2.3.0).
from distutils.dist import DistributionMetadata
if not hasattr(DistributionMetadata, 'classifiers'):
DistributionMetadata.classifiers = None
if not hasattr(Distributio... | <commit_before>from setuptools import setup
# patch distutils if it can't cope with the "classifiers" or "download_url"
# keywords (prior to python 2.3.0).
from distutils.dist import DistributionMetadata
if not hasattr(DistributionMetadata, 'classifiers'):
DistributionMetadata.classifiers = None
if not hasa... |
53d66409b331f80db22ee14b6d1837593c7024bb | setup.py | setup.py | from setuptools import setup, find_packages
import os
import subprocess
os.system("pip install git+https://github.com/ComparativeGenomicsToolkit/sonLib@toil")
versionFile = "src/cactus/shared/version.py"
if os.path.exists(versionFile):
os.remove(versionFile)
git_commit = subprocess.check_output('git log --pretty=... | from setuptools import setup, find_packages
import os
import subprocess
os.system("pip install git+https://github.com/ComparativeGenomicsToolkit/sonLib@toil")
versionFile = "src/cactus/shared/version.py"
if os.path.exists(versionFile):
os.remove(versionFile)
git_commit = subprocess.check_output('git log --pretty=... | Change entrypoint name from 'progressiveCactus' to 'cactus' | Change entrypoint name from 'progressiveCactus' to 'cactus'
| Python | mit | benedictpaten/cactus,benedictpaten/cactus,benedictpaten/cactus,benedictpaten/cactus,benedictpaten/cactus | from setuptools import setup, find_packages
import os
import subprocess
os.system("pip install git+https://github.com/ComparativeGenomicsToolkit/sonLib@toil")
versionFile = "src/cactus/shared/version.py"
if os.path.exists(versionFile):
os.remove(versionFile)
git_commit = subprocess.check_output('git log --pretty=... | from setuptools import setup, find_packages
import os
import subprocess
os.system("pip install git+https://github.com/ComparativeGenomicsToolkit/sonLib@toil")
versionFile = "src/cactus/shared/version.py"
if os.path.exists(versionFile):
os.remove(versionFile)
git_commit = subprocess.check_output('git log --pretty=... | <commit_before>from setuptools import setup, find_packages
import os
import subprocess
os.system("pip install git+https://github.com/ComparativeGenomicsToolkit/sonLib@toil")
versionFile = "src/cactus/shared/version.py"
if os.path.exists(versionFile):
os.remove(versionFile)
git_commit = subprocess.check_output('gi... | from setuptools import setup, find_packages
import os
import subprocess
os.system("pip install git+https://github.com/ComparativeGenomicsToolkit/sonLib@toil")
versionFile = "src/cactus/shared/version.py"
if os.path.exists(versionFile):
os.remove(versionFile)
git_commit = subprocess.check_output('git log --pretty=... | from setuptools import setup, find_packages
import os
import subprocess
os.system("pip install git+https://github.com/ComparativeGenomicsToolkit/sonLib@toil")
versionFile = "src/cactus/shared/version.py"
if os.path.exists(versionFile):
os.remove(versionFile)
git_commit = subprocess.check_output('git log --pretty=... | <commit_before>from setuptools import setup, find_packages
import os
import subprocess
os.system("pip install git+https://github.com/ComparativeGenomicsToolkit/sonLib@toil")
versionFile = "src/cactus/shared/version.py"
if os.path.exists(versionFile):
os.remove(versionFile)
git_commit = subprocess.check_output('gi... |
96924aea75dbbe82fec6c23df405a15e0bfeeac0 | setup.py | setup.py | from setuptools import find_packages, setup
version = '1.0.0'
setup(
name='django-pgcrypto-fields',
packages=find_packages(),
include_package_data=True,
version=version,
license='BSD',
description='Encrypted fields dealing with pgcrypto postgres extension.',
classifiers=[
'Develo... | from setuptools import find_packages, setup
version = '1.0.0'
setup(
name='django-pgcrypto-fields',
packages=find_packages(exclude=['tests']),
include_package_data=True,
version=version,
license='BSD',
description='Encrypted fields dealing with pgcrypto postgres extension.',
classifiers=... | Exclude tests folder from dist | Exclude tests folder from dist
| Python | bsd-2-clause | incuna/django-pgcrypto-fields,atdsaa/django-pgcrypto-fields | from setuptools import find_packages, setup
version = '1.0.0'
setup(
name='django-pgcrypto-fields',
packages=find_packages(),
include_package_data=True,
version=version,
license='BSD',
description='Encrypted fields dealing with pgcrypto postgres extension.',
classifiers=[
'Develo... | from setuptools import find_packages, setup
version = '1.0.0'
setup(
name='django-pgcrypto-fields',
packages=find_packages(exclude=['tests']),
include_package_data=True,
version=version,
license='BSD',
description='Encrypted fields dealing with pgcrypto postgres extension.',
classifiers=... | <commit_before>from setuptools import find_packages, setup
version = '1.0.0'
setup(
name='django-pgcrypto-fields',
packages=find_packages(),
include_package_data=True,
version=version,
license='BSD',
description='Encrypted fields dealing with pgcrypto postgres extension.',
classifiers=[
... | from setuptools import find_packages, setup
version = '1.0.0'
setup(
name='django-pgcrypto-fields',
packages=find_packages(exclude=['tests']),
include_package_data=True,
version=version,
license='BSD',
description='Encrypted fields dealing with pgcrypto postgres extension.',
classifiers=... | from setuptools import find_packages, setup
version = '1.0.0'
setup(
name='django-pgcrypto-fields',
packages=find_packages(),
include_package_data=True,
version=version,
license='BSD',
description='Encrypted fields dealing with pgcrypto postgres extension.',
classifiers=[
'Develo... | <commit_before>from setuptools import find_packages, setup
version = '1.0.0'
setup(
name='django-pgcrypto-fields',
packages=find_packages(),
include_package_data=True,
version=version,
license='BSD',
description='Encrypted fields dealing with pgcrypto postgres extension.',
classifiers=[
... |
71fd1b82f4bc9f009a80a0495fafc82c15aa58b3 | setup.py | setup.py | # -*- coding: utf-8 -*-
import sys
from distutils.core import setup
from setuptools import find_packages
from lehrex import __version__
if not sys.version_info >= (3, 5, 1):
sys.exit('Only support Python version >=3.5.1.\n'
'Found version is {}'.format(sys.version))
setup(
name='lehrex',
aut... | # -*- coding: utf-8 -*-
import sys
from distutils.core import setup
from setuptools import find_packages
from lehrex import __version__
if not sys.version_info >= (3, 5, 1):
sys.exit('Only support Python version >=3.5.1.\n'
'Found version is {}'.format(sys.version))
setup(
name='lehrex',
aut... | Add nose to list of dependencies. | Add nose to list of dependencies.
| Python | mit | lkluft/lehrex | # -*- coding: utf-8 -*-
import sys
from distutils.core import setup
from setuptools import find_packages
from lehrex import __version__
if not sys.version_info >= (3, 5, 1):
sys.exit('Only support Python version >=3.5.1.\n'
'Found version is {}'.format(sys.version))
setup(
name='lehrex',
aut... | # -*- coding: utf-8 -*-
import sys
from distutils.core import setup
from setuptools import find_packages
from lehrex import __version__
if not sys.version_info >= (3, 5, 1):
sys.exit('Only support Python version >=3.5.1.\n'
'Found version is {}'.format(sys.version))
setup(
name='lehrex',
aut... | <commit_before># -*- coding: utf-8 -*-
import sys
from distutils.core import setup
from setuptools import find_packages
from lehrex import __version__
if not sys.version_info >= (3, 5, 1):
sys.exit('Only support Python version >=3.5.1.\n'
'Found version is {}'.format(sys.version))
setup(
name='l... | # -*- coding: utf-8 -*-
import sys
from distutils.core import setup
from setuptools import find_packages
from lehrex import __version__
if not sys.version_info >= (3, 5, 1):
sys.exit('Only support Python version >=3.5.1.\n'
'Found version is {}'.format(sys.version))
setup(
name='lehrex',
aut... | # -*- coding: utf-8 -*-
import sys
from distutils.core import setup
from setuptools import find_packages
from lehrex import __version__
if not sys.version_info >= (3, 5, 1):
sys.exit('Only support Python version >=3.5.1.\n'
'Found version is {}'.format(sys.version))
setup(
name='lehrex',
aut... | <commit_before># -*- coding: utf-8 -*-
import sys
from distutils.core import setup
from setuptools import find_packages
from lehrex import __version__
if not sys.version_info >= (3, 5, 1):
sys.exit('Only support Python version >=3.5.1.\n'
'Found version is {}'.format(sys.version))
setup(
name='l... |
f132f14d60a60bb2af89ba1c1d4b0c31cff68b6f | setup.py | setup.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from setuptools import setup, find_packages
__author__ = 'Takahiro Ikeuchi'
setup(
name="slackpy",
version="1.1.2",
py_modules=['slackpy'],
package_dir={'': 'slackpy'},
install_requires=open('requirements.txt').read().splitlines(),
description="S... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from setuptools import setup, find_packages
__author__ = 'Takahiro Ikeuchi'
setup(
name="slackpy",
version="1.1.3",
py_modules=['slackpy'],
package_dir={'': 'slackpy'},
install_requires=open('requirements.txt').read().splitlines(),
description="S... | Change version 1.1.2 to 1.1.3 | Change version 1.1.2 to 1.1.3
| Python | mit | iktakahiro/slackpy,DeviaVir/slackpy | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from setuptools import setup, find_packages
__author__ = 'Takahiro Ikeuchi'
setup(
name="slackpy",
version="1.1.2",
py_modules=['slackpy'],
package_dir={'': 'slackpy'},
install_requires=open('requirements.txt').read().splitlines(),
description="S... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from setuptools import setup, find_packages
__author__ = 'Takahiro Ikeuchi'
setup(
name="slackpy",
version="1.1.3",
py_modules=['slackpy'],
package_dir={'': 'slackpy'},
install_requires=open('requirements.txt').read().splitlines(),
description="S... | <commit_before>#!/usr/bin/env python
# -*- coding: utf-8 -*-
from setuptools import setup, find_packages
__author__ = 'Takahiro Ikeuchi'
setup(
name="slackpy",
version="1.1.2",
py_modules=['slackpy'],
package_dir={'': 'slackpy'},
install_requires=open('requirements.txt').read().splitlines(),
... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from setuptools import setup, find_packages
__author__ = 'Takahiro Ikeuchi'
setup(
name="slackpy",
version="1.1.3",
py_modules=['slackpy'],
package_dir={'': 'slackpy'},
install_requires=open('requirements.txt').read().splitlines(),
description="S... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from setuptools import setup, find_packages
__author__ = 'Takahiro Ikeuchi'
setup(
name="slackpy",
version="1.1.2",
py_modules=['slackpy'],
package_dir={'': 'slackpy'},
install_requires=open('requirements.txt').read().splitlines(),
description="S... | <commit_before>#!/usr/bin/env python
# -*- coding: utf-8 -*-
from setuptools import setup, find_packages
__author__ = 'Takahiro Ikeuchi'
setup(
name="slackpy",
version="1.1.2",
py_modules=['slackpy'],
package_dir={'': 'slackpy'},
install_requires=open('requirements.txt').read().splitlines(),
... |
e83ea97a36bfa308359e3377dfd4a14aaf045be4 | shell.py | shell.py | import sys, os, subprocess
def run_shell_command(cmdline, pipe_output=True, **kwargs):
if sys.platform == "win32":
args = cmdline
else:
args = [os.environ.get("SHELL", "/bin/sh")]
process = subprocess.Popen(args,
stdin = subprocess.PIPE if sys.platform != "win32" else None,
... | import sys, os, subprocess
def make_environment(env=None):
if env is None:
env = os.environ
env = env.copy()
env["PYTHONUNBUFFERED"] = "1"
env["PYTHONIOENCODING"] = "UTF-8"
return env
def run_shell_command(cmdline, pipe_output=True, env=None, **kwargs):
if sys.platform == "win32":
... | Disable buffering in Python subprocesses so that output appears immediately, and make sure the output encoding is UTF-8. | Disable buffering in Python subprocesses so that output appears immediately, and make sure the output encoding is UTF-8.
| Python | mit | shaurz/devo | import sys, os, subprocess
def run_shell_command(cmdline, pipe_output=True, **kwargs):
if sys.platform == "win32":
args = cmdline
else:
args = [os.environ.get("SHELL", "/bin/sh")]
process = subprocess.Popen(args,
stdin = subprocess.PIPE if sys.platform != "win32" else None,
... | import sys, os, subprocess
def make_environment(env=None):
if env is None:
env = os.environ
env = env.copy()
env["PYTHONUNBUFFERED"] = "1"
env["PYTHONIOENCODING"] = "UTF-8"
return env
def run_shell_command(cmdline, pipe_output=True, env=None, **kwargs):
if sys.platform == "win32":
... | <commit_before>import sys, os, subprocess
def run_shell_command(cmdline, pipe_output=True, **kwargs):
if sys.platform == "win32":
args = cmdline
else:
args = [os.environ.get("SHELL", "/bin/sh")]
process = subprocess.Popen(args,
stdin = subprocess.PIPE if sys.platform != "win32" els... | import sys, os, subprocess
def make_environment(env=None):
if env is None:
env = os.environ
env = env.copy()
env["PYTHONUNBUFFERED"] = "1"
env["PYTHONIOENCODING"] = "UTF-8"
return env
def run_shell_command(cmdline, pipe_output=True, env=None, **kwargs):
if sys.platform == "win32":
... | import sys, os, subprocess
def run_shell_command(cmdline, pipe_output=True, **kwargs):
if sys.platform == "win32":
args = cmdline
else:
args = [os.environ.get("SHELL", "/bin/sh")]
process = subprocess.Popen(args,
stdin = subprocess.PIPE if sys.platform != "win32" else None,
... | <commit_before>import sys, os, subprocess
def run_shell_command(cmdline, pipe_output=True, **kwargs):
if sys.platform == "win32":
args = cmdline
else:
args = [os.environ.get("SHELL", "/bin/sh")]
process = subprocess.Popen(args,
stdin = subprocess.PIPE if sys.platform != "win32" els... |
df32343a60aaf39802953fdfb0270c9e0f5fa477 | reports/views.py | reports/views.py | from django.contrib.auth.decorators import permission_required
from django.core.paginator import Paginator
from django.shortcuts import render, get_object_or_404
from .forms import ReportForm, CopyFormSet
from .models import Report
@permission_required('reports.add_report', login_url='members:login')
def add_report(... | from django.contrib.auth.decorators import permission_required
from django.core.paginator import Paginator
from django.shortcuts import render, get_object_or_404, redirect
from .forms import ReportForm, CopyFormSet
from .models import Report
@permission_required('reports.add_report', login_url='members:login')
def a... | Fix the request.POST, usage of formset and redirect at the end | Fix the request.POST, usage of formset and redirect at the end
| Python | mit | Hackfmi/Diaphanum,Hackfmi/Diaphanum | from django.contrib.auth.decorators import permission_required
from django.core.paginator import Paginator
from django.shortcuts import render, get_object_or_404
from .forms import ReportForm, CopyFormSet
from .models import Report
@permission_required('reports.add_report', login_url='members:login')
def add_report(... | from django.contrib.auth.decorators import permission_required
from django.core.paginator import Paginator
from django.shortcuts import render, get_object_or_404, redirect
from .forms import ReportForm, CopyFormSet
from .models import Report
@permission_required('reports.add_report', login_url='members:login')
def a... | <commit_before>from django.contrib.auth.decorators import permission_required
from django.core.paginator import Paginator
from django.shortcuts import render, get_object_or_404
from .forms import ReportForm, CopyFormSet
from .models import Report
@permission_required('reports.add_report', login_url='members:login')
... | from django.contrib.auth.decorators import permission_required
from django.core.paginator import Paginator
from django.shortcuts import render, get_object_or_404, redirect
from .forms import ReportForm, CopyFormSet
from .models import Report
@permission_required('reports.add_report', login_url='members:login')
def a... | from django.contrib.auth.decorators import permission_required
from django.core.paginator import Paginator
from django.shortcuts import render, get_object_or_404
from .forms import ReportForm, CopyFormSet
from .models import Report
@permission_required('reports.add_report', login_url='members:login')
def add_report(... | <commit_before>from django.contrib.auth.decorators import permission_required
from django.core.paginator import Paginator
from django.shortcuts import render, get_object_or_404
from .forms import ReportForm, CopyFormSet
from .models import Report
@permission_required('reports.add_report', login_url='members:login')
... |
e85e9afec6afb038b3188038d6c83341d08c67da | src/service_api/python/cloudi_service_api.py | src/service_api/python/cloudi_service_api.py | #-*-Mode:python;coding:utf-8;tab-width:4;c-basic-offset:4;indent-tabs-mode:()-*-
# ex: set ft=python fenc=utf-8 sts=4 ts=4 sw=4 et nomod:
"""
CloudI Service API <https://cloudi.org/api.html#2_Intro>.
"""
# pylint: disable=wrong-import-position
import sys
import os
_FILE_DIRECTORY = os.path.dirname(os.path.abspath(__fi... | #-*-Mode:python;coding:utf-8;tab-width:4;c-basic-offset:4;indent-tabs-mode:()-*-
# ex: set ft=python fenc=utf-8 sts=4 ts=4 sw=4 et nomod:
"""
CloudI Service API <https://cloudi.org/api.html#2_Intro>.
"""
# pylint: disable=wrong-import-position
import sys
import os
_FILE_DIRECTORY = os.path.dirname(os.path.abspath(__fi... | Fix Python CloudI Service API interface using JSON-RPC. | Fix Python CloudI Service API interface using JSON-RPC.
| Python | mit | CloudI/CloudI,CloudI/CloudI,CloudI/CloudI,CloudI/CloudI,CloudI/CloudI,CloudI/CloudI,CloudI/CloudI,CloudI/CloudI,CloudI/CloudI,CloudI/CloudI,CloudI/CloudI | #-*-Mode:python;coding:utf-8;tab-width:4;c-basic-offset:4;indent-tabs-mode:()-*-
# ex: set ft=python fenc=utf-8 sts=4 ts=4 sw=4 et nomod:
"""
CloudI Service API <https://cloudi.org/api.html#2_Intro>.
"""
# pylint: disable=wrong-import-position
import sys
import os
_FILE_DIRECTORY = os.path.dirname(os.path.abspath(__fi... | #-*-Mode:python;coding:utf-8;tab-width:4;c-basic-offset:4;indent-tabs-mode:()-*-
# ex: set ft=python fenc=utf-8 sts=4 ts=4 sw=4 et nomod:
"""
CloudI Service API <https://cloudi.org/api.html#2_Intro>.
"""
# pylint: disable=wrong-import-position
import sys
import os
_FILE_DIRECTORY = os.path.dirname(os.path.abspath(__fi... | <commit_before>#-*-Mode:python;coding:utf-8;tab-width:4;c-basic-offset:4;indent-tabs-mode:()-*-
# ex: set ft=python fenc=utf-8 sts=4 ts=4 sw=4 et nomod:
"""
CloudI Service API <https://cloudi.org/api.html#2_Intro>.
"""
# pylint: disable=wrong-import-position
import sys
import os
_FILE_DIRECTORY = os.path.dirname(os.pa... | #-*-Mode:python;coding:utf-8;tab-width:4;c-basic-offset:4;indent-tabs-mode:()-*-
# ex: set ft=python fenc=utf-8 sts=4 ts=4 sw=4 et nomod:
"""
CloudI Service API <https://cloudi.org/api.html#2_Intro>.
"""
# pylint: disable=wrong-import-position
import sys
import os
_FILE_DIRECTORY = os.path.dirname(os.path.abspath(__fi... | #-*-Mode:python;coding:utf-8;tab-width:4;c-basic-offset:4;indent-tabs-mode:()-*-
# ex: set ft=python fenc=utf-8 sts=4 ts=4 sw=4 et nomod:
"""
CloudI Service API <https://cloudi.org/api.html#2_Intro>.
"""
# pylint: disable=wrong-import-position
import sys
import os
_FILE_DIRECTORY = os.path.dirname(os.path.abspath(__fi... | <commit_before>#-*-Mode:python;coding:utf-8;tab-width:4;c-basic-offset:4;indent-tabs-mode:()-*-
# ex: set ft=python fenc=utf-8 sts=4 ts=4 sw=4 et nomod:
"""
CloudI Service API <https://cloudi.org/api.html#2_Intro>.
"""
# pylint: disable=wrong-import-position
import sys
import os
_FILE_DIRECTORY = os.path.dirname(os.pa... |
94d47cfc6db684beda275f8658660a3bd92b319d | src/syft/grid/client/request_api/user_api.py | src/syft/grid/client/request_api/user_api.py | # stdlib
from typing import Any
from typing import Dict
# third party
from pandas import DataFrame
# syft relative
from ...messages.user_messages import CreateUserMessage
from ...messages.user_messages import DeleteUserMessage
from ...messages.user_messages import GetUserMessage
from ...messages.user_messages import ... | # stdlib
from typing import Any
from typing import Callable
# syft relative
from ...messages.user_messages import CreateUserMessage
from ...messages.user_messages import DeleteUserMessage
from ...messages.user_messages import GetUserMessage
from ...messages.user_messages import GetUsersMessage
from ...messages.user_me... | Update User API - ADD type hints - Remove unused imports | Update User API
- ADD type hints
- Remove unused imports
| Python | apache-2.0 | OpenMined/PySyft,OpenMined/PySyft,OpenMined/PySyft,OpenMined/PySyft | # stdlib
from typing import Any
from typing import Dict
# third party
from pandas import DataFrame
# syft relative
from ...messages.user_messages import CreateUserMessage
from ...messages.user_messages import DeleteUserMessage
from ...messages.user_messages import GetUserMessage
from ...messages.user_messages import ... | # stdlib
from typing import Any
from typing import Callable
# syft relative
from ...messages.user_messages import CreateUserMessage
from ...messages.user_messages import DeleteUserMessage
from ...messages.user_messages import GetUserMessage
from ...messages.user_messages import GetUsersMessage
from ...messages.user_me... | <commit_before># stdlib
from typing import Any
from typing import Dict
# third party
from pandas import DataFrame
# syft relative
from ...messages.user_messages import CreateUserMessage
from ...messages.user_messages import DeleteUserMessage
from ...messages.user_messages import GetUserMessage
from ...messages.user_m... | # stdlib
from typing import Any
from typing import Callable
# syft relative
from ...messages.user_messages import CreateUserMessage
from ...messages.user_messages import DeleteUserMessage
from ...messages.user_messages import GetUserMessage
from ...messages.user_messages import GetUsersMessage
from ...messages.user_me... | # stdlib
from typing import Any
from typing import Dict
# third party
from pandas import DataFrame
# syft relative
from ...messages.user_messages import CreateUserMessage
from ...messages.user_messages import DeleteUserMessage
from ...messages.user_messages import GetUserMessage
from ...messages.user_messages import ... | <commit_before># stdlib
from typing import Any
from typing import Dict
# third party
from pandas import DataFrame
# syft relative
from ...messages.user_messages import CreateUserMessage
from ...messages.user_messages import DeleteUserMessage
from ...messages.user_messages import GetUserMessage
from ...messages.user_m... |
2a12a7d2e2d06e64ca076563b8b68454e92fefae | service_fabfile.py | service_fabfile.py | from fabric.api import *
from fabfile import install_requirements
from fabfile import migrate_db
def build(service=None):
"""Perform pre-installation tasks for the service."""
pass
def install(service=None):
"""Perform service specific post-installation tasks."""
install_requirements()
migrate_... | from fabric.api import *
from fabfile import install_requirements
from fabfile import migrate_db
def build(service=None):
"""Perform pre-installation tasks for the service."""
pass
def install(service=None):
"""Perform service specific post-installation tasks."""
install_requirements()
migrate_... | Deploy static files during installation | Deploy static files during installation
| Python | bsd-3-clause | CorbanU/corban-shopify,CorbanU/corban-shopify | from fabric.api import *
from fabfile import install_requirements
from fabfile import migrate_db
def build(service=None):
"""Perform pre-installation tasks for the service."""
pass
def install(service=None):
"""Perform service specific post-installation tasks."""
install_requirements()
migrate_... | from fabric.api import *
from fabfile import install_requirements
from fabfile import migrate_db
def build(service=None):
"""Perform pre-installation tasks for the service."""
pass
def install(service=None):
"""Perform service specific post-installation tasks."""
install_requirements()
migrate_... | <commit_before>from fabric.api import *
from fabfile import install_requirements
from fabfile import migrate_db
def build(service=None):
"""Perform pre-installation tasks for the service."""
pass
def install(service=None):
"""Perform service specific post-installation tasks."""
install_requirements... | from fabric.api import *
from fabfile import install_requirements
from fabfile import migrate_db
def build(service=None):
"""Perform pre-installation tasks for the service."""
pass
def install(service=None):
"""Perform service specific post-installation tasks."""
install_requirements()
migrate_... | from fabric.api import *
from fabfile import install_requirements
from fabfile import migrate_db
def build(service=None):
"""Perform pre-installation tasks for the service."""
pass
def install(service=None):
"""Perform service specific post-installation tasks."""
install_requirements()
migrate_... | <commit_before>from fabric.api import *
from fabfile import install_requirements
from fabfile import migrate_db
def build(service=None):
"""Perform pre-installation tasks for the service."""
pass
def install(service=None):
"""Perform service specific post-installation tasks."""
install_requirements... |
10e307a0dda94a9b38a1b7e143ef141e6062566b | skan/pipe.py | skan/pipe.py | from . import pre, csr
import imageio
import tqdm
import numpy as np
from skimage import morphology
import pandas as pd
def process_images(filenames, image_format, threshold_radius,
smooth_radius, brightness_offset, scale_metadata_path):
image_format = (None if self.image_format.get() == 'auto'... | from . import pre, csr
import imageio
import tqdm
import numpy as np
from skimage import morphology
import pandas as pd
def process_images(filenames, image_format, threshold_radius,
smooth_radius, brightness_offset, scale_metadata_path):
image_format = None if image_format == 'auto' else image_... | Add module for start-to-finish functions | Add module for start-to-finish functions
| Python | bsd-3-clause | jni/skan | from . import pre, csr
import imageio
import tqdm
import numpy as np
from skimage import morphology
import pandas as pd
def process_images(filenames, image_format, threshold_radius,
smooth_radius, brightness_offset, scale_metadata_path):
image_format = (None if self.image_format.get() == 'auto'... | from . import pre, csr
import imageio
import tqdm
import numpy as np
from skimage import morphology
import pandas as pd
def process_images(filenames, image_format, threshold_radius,
smooth_radius, brightness_offset, scale_metadata_path):
image_format = None if image_format == 'auto' else image_... | <commit_before>from . import pre, csr
import imageio
import tqdm
import numpy as np
from skimage import morphology
import pandas as pd
def process_images(filenames, image_format, threshold_radius,
smooth_radius, brightness_offset, scale_metadata_path):
image_format = (None if self.image_format.... | from . import pre, csr
import imageio
import tqdm
import numpy as np
from skimage import morphology
import pandas as pd
def process_images(filenames, image_format, threshold_radius,
smooth_radius, brightness_offset, scale_metadata_path):
image_format = None if image_format == 'auto' else image_... | from . import pre, csr
import imageio
import tqdm
import numpy as np
from skimage import morphology
import pandas as pd
def process_images(filenames, image_format, threshold_radius,
smooth_radius, brightness_offset, scale_metadata_path):
image_format = (None if self.image_format.get() == 'auto'... | <commit_before>from . import pre, csr
import imageio
import tqdm
import numpy as np
from skimage import morphology
import pandas as pd
def process_images(filenames, image_format, threshold_radius,
smooth_radius, brightness_offset, scale_metadata_path):
image_format = (None if self.image_format.... |
b74399679c739a70dd8e960cf63b4e9bd42bd65b | packager/core/test/test_check_dependencies.py | packager/core/test/test_check_dependencies.py | #! /usr/bin/python
from check_dependencies import CheckDependencies
def test_default():
CheckDependencies(None)
def test_hydrotrend():
CheckDependencies("hydrotrend")
def test_cem():
CheckDependencies("cem")
def test_child():
CheckDependencies("child")
def test_child():
CheckDependencies("sedf... | #! /usr/bin/python
#from check_dependencies import CheckDependencies
#def test_default():
# CheckDependencies(None)
#def test_hydrotrend():
# CheckDependencies("hydrotrend")
#def test_cem():
# CheckDependencies("cem")
#def test_child():
# CheckDependencies("child")
#def test_child():
# CheckDepende... | Disable unit tests for packager.core.check_dependencies.py | Disable unit tests for packager.core.check_dependencies.py
| Python | mit | csdms/packagebuilder | #! /usr/bin/python
from check_dependencies import CheckDependencies
def test_default():
CheckDependencies(None)
def test_hydrotrend():
CheckDependencies("hydrotrend")
def test_cem():
CheckDependencies("cem")
def test_child():
CheckDependencies("child")
def test_child():
CheckDependencies("sedf... | #! /usr/bin/python
#from check_dependencies import CheckDependencies
#def test_default():
# CheckDependencies(None)
#def test_hydrotrend():
# CheckDependencies("hydrotrend")
#def test_cem():
# CheckDependencies("cem")
#def test_child():
# CheckDependencies("child")
#def test_child():
# CheckDepende... | <commit_before>#! /usr/bin/python
from check_dependencies import CheckDependencies
def test_default():
CheckDependencies(None)
def test_hydrotrend():
CheckDependencies("hydrotrend")
def test_cem():
CheckDependencies("cem")
def test_child():
CheckDependencies("child")
def test_child():
CheckDep... | #! /usr/bin/python
#from check_dependencies import CheckDependencies
#def test_default():
# CheckDependencies(None)
#def test_hydrotrend():
# CheckDependencies("hydrotrend")
#def test_cem():
# CheckDependencies("cem")
#def test_child():
# CheckDependencies("child")
#def test_child():
# CheckDepende... | #! /usr/bin/python
from check_dependencies import CheckDependencies
def test_default():
CheckDependencies(None)
def test_hydrotrend():
CheckDependencies("hydrotrend")
def test_cem():
CheckDependencies("cem")
def test_child():
CheckDependencies("child")
def test_child():
CheckDependencies("sedf... | <commit_before>#! /usr/bin/python
from check_dependencies import CheckDependencies
def test_default():
CheckDependencies(None)
def test_hydrotrend():
CheckDependencies("hydrotrend")
def test_cem():
CheckDependencies("cem")
def test_child():
CheckDependencies("child")
def test_child():
CheckDep... |
5d762fba65575b11ccbc15a23852d6b2d18b3f05 | examples/qidle/qidle/utils.py | examples/qidle/qidle/utils.py | # -*- coding: utf-8 -*-
from glob import glob
import os
import platform
def get_interpreters():
if platform.system().lower() == 'linux':
executables = [os.path.join('/usr/bin/', exe)
for exe in ['python2', 'python3']
if os.path.exists(os.path.join('/usr/bin/',... | # -*- coding: utf-8 -*-
from glob import glob
import os
import platform
def get_interpreters():
if platform.system().lower() == 'linux':
executables = [os.path.join('/usr/bin/', exe)
for exe in ['python2', 'python3']
if os.path.exists(os.path.join('/usr/bin/',... | Fix interpreter detection on windows | Fix interpreter detection on windows
| Python | mit | mmolero/pyqode.python,zwadar/pyqode.python,pyQode/pyqode.python,pyQode/pyqode.python | # -*- coding: utf-8 -*-
from glob import glob
import os
import platform
def get_interpreters():
if platform.system().lower() == 'linux':
executables = [os.path.join('/usr/bin/', exe)
for exe in ['python2', 'python3']
if os.path.exists(os.path.join('/usr/bin/',... | # -*- coding: utf-8 -*-
from glob import glob
import os
import platform
def get_interpreters():
if platform.system().lower() == 'linux':
executables = [os.path.join('/usr/bin/', exe)
for exe in ['python2', 'python3']
if os.path.exists(os.path.join('/usr/bin/',... | <commit_before># -*- coding: utf-8 -*-
from glob import glob
import os
import platform
def get_interpreters():
if platform.system().lower() == 'linux':
executables = [os.path.join('/usr/bin/', exe)
for exe in ['python2', 'python3']
if os.path.exists(os.path.jo... | # -*- coding: utf-8 -*-
from glob import glob
import os
import platform
def get_interpreters():
if platform.system().lower() == 'linux':
executables = [os.path.join('/usr/bin/', exe)
for exe in ['python2', 'python3']
if os.path.exists(os.path.join('/usr/bin/',... | # -*- coding: utf-8 -*-
from glob import glob
import os
import platform
def get_interpreters():
if platform.system().lower() == 'linux':
executables = [os.path.join('/usr/bin/', exe)
for exe in ['python2', 'python3']
if os.path.exists(os.path.join('/usr/bin/',... | <commit_before># -*- coding: utf-8 -*-
from glob import glob
import os
import platform
def get_interpreters():
if platform.system().lower() == 'linux':
executables = [os.path.join('/usr/bin/', exe)
for exe in ['python2', 'python3']
if os.path.exists(os.path.jo... |
6abb42998633ebc3f530ebb8fc785255a6f360b3 | auditlog/__manifest__.py | auditlog/__manifest__.py | # -*- coding: utf-8 -*-
# © 2015 ABF OSIELL <http://osiell.com>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
{
'name': "Audit Log",
'version': "9.0.1.0.0",
'author': "ABF OSIELL,Odoo Community Association (OCA)",
'license': "AGPL-3",
'website': "http://www.osiell.com",
'categ... | # -*- coding: utf-8 -*-
# © 2015 ABF OSIELL <http://osiell.com>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
{
'name': "Audit Log",
'version': "9.0.1.0.0",
'author': "ABF OSIELL,Odoo Community Association (OCA)",
'license': "AGPL-3",
'website': "http://www.osiell.com",
'categ... | Remove pre_init_hook reference from openerp, no pre_init hook exists any more | auditlog: Remove pre_init_hook reference from openerp, no pre_init hook exists any more
| Python | agpl-3.0 | thinkopensolutions/server-tools,ovnicraft/server-tools,ovnicraft/server-tools,thinkopensolutions/server-tools,ovnicraft/server-tools | # -*- coding: utf-8 -*-
# © 2015 ABF OSIELL <http://osiell.com>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
{
'name': "Audit Log",
'version': "9.0.1.0.0",
'author': "ABF OSIELL,Odoo Community Association (OCA)",
'license': "AGPL-3",
'website': "http://www.osiell.com",
'categ... | # -*- coding: utf-8 -*-
# © 2015 ABF OSIELL <http://osiell.com>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
{
'name': "Audit Log",
'version': "9.0.1.0.0",
'author': "ABF OSIELL,Odoo Community Association (OCA)",
'license': "AGPL-3",
'website': "http://www.osiell.com",
'categ... | <commit_before># -*- coding: utf-8 -*-
# © 2015 ABF OSIELL <http://osiell.com>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
{
'name': "Audit Log",
'version': "9.0.1.0.0",
'author': "ABF OSIELL,Odoo Community Association (OCA)",
'license': "AGPL-3",
'website': "http://www.osiell.c... | # -*- coding: utf-8 -*-
# © 2015 ABF OSIELL <http://osiell.com>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
{
'name': "Audit Log",
'version': "9.0.1.0.0",
'author': "ABF OSIELL,Odoo Community Association (OCA)",
'license': "AGPL-3",
'website': "http://www.osiell.com",
'categ... | # -*- coding: utf-8 -*-
# © 2015 ABF OSIELL <http://osiell.com>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
{
'name': "Audit Log",
'version': "9.0.1.0.0",
'author': "ABF OSIELL,Odoo Community Association (OCA)",
'license': "AGPL-3",
'website': "http://www.osiell.com",
'categ... | <commit_before># -*- coding: utf-8 -*-
# © 2015 ABF OSIELL <http://osiell.com>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
{
'name': "Audit Log",
'version': "9.0.1.0.0",
'author': "ABF OSIELL,Odoo Community Association (OCA)",
'license': "AGPL-3",
'website': "http://www.osiell.c... |
5b0b1af2f62051251cf2e71e8fc696b617f4f756 | tests/modules/cloud_function_v2/test_plan.py | tests/modules/cloud_function_v2/test_plan.py | # Copyright 2022 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | # Copyright 2022 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | Fix tests refering to wrong IAM resource | Fix tests refering to wrong IAM resource
| Python | apache-2.0 | GoogleCloudPlatform/cloud-foundation-fabric,GoogleCloudPlatform/cloud-foundation-fabric,GoogleCloudPlatform/cloud-foundation-fabric,GoogleCloudPlatform/cloud-foundation-fabric | # Copyright 2022 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | # Copyright 2022 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | <commit_before># Copyright 2022 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed ... | # Copyright 2022 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | # Copyright 2022 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | <commit_before># Copyright 2022 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed ... |
969fcfa12bcb734720c3e48c508329b687f91bf6 | Cogs/Message.py | Cogs/Message.py | import asyncio
import discord
import textwrap
from discord.ext import commands
async def say(bot, msg, target, requestor, maxMessage : int = 5, characters : int = 2000):
"""A helper function to get the bot to cut his text into chunks."""
if not bot or not msg or not target:
return False
... | import asyncio
import discord
import textwrap
from discord.ext import commands
async def say(bot, msg, target, requestor, maxMessage : int = 5, characters : int = 2000):
"""A helper function to get the bot to cut his text into chunks."""
if not bot or not msg or not target:
return False
... | Create dm channel if it doesn't exist | Create dm channel if it doesn't exist | Python | mit | corpnewt/CorpBot.py,corpnewt/CorpBot.py | import asyncio
import discord
import textwrap
from discord.ext import commands
async def say(bot, msg, target, requestor, maxMessage : int = 5, characters : int = 2000):
"""A helper function to get the bot to cut his text into chunks."""
if not bot or not msg or not target:
return False
... | import asyncio
import discord
import textwrap
from discord.ext import commands
async def say(bot, msg, target, requestor, maxMessage : int = 5, characters : int = 2000):
"""A helper function to get the bot to cut his text into chunks."""
if not bot or not msg or not target:
return False
... | <commit_before>import asyncio
import discord
import textwrap
from discord.ext import commands
async def say(bot, msg, target, requestor, maxMessage : int = 5, characters : int = 2000):
"""A helper function to get the bot to cut his text into chunks."""
if not bot or not msg or not target:
ret... | import asyncio
import discord
import textwrap
from discord.ext import commands
async def say(bot, msg, target, requestor, maxMessage : int = 5, characters : int = 2000):
"""A helper function to get the bot to cut his text into chunks."""
if not bot or not msg or not target:
return False
... | import asyncio
import discord
import textwrap
from discord.ext import commands
async def say(bot, msg, target, requestor, maxMessage : int = 5, characters : int = 2000):
"""A helper function to get the bot to cut his text into chunks."""
if not bot or not msg or not target:
return False
... | <commit_before>import asyncio
import discord
import textwrap
from discord.ext import commands
async def say(bot, msg, target, requestor, maxMessage : int = 5, characters : int = 2000):
"""A helper function to get the bot to cut his text into chunks."""
if not bot or not msg or not target:
ret... |
6c20f8a2c722fca1b2f811d4f06ea5480ec6d945 | telethon/events/messagedeleted.py | telethon/events/messagedeleted.py | from .common import EventBuilder, EventCommon, name_inner_event
from ..tl import types
@name_inner_event
class MessageDeleted(EventBuilder):
"""
Event fired when one or more messages are deleted.
"""
def build(self, update):
if isinstance(update, types.UpdateDeleteMessages):
event ... | from .common import EventBuilder, EventCommon, name_inner_event
from ..tl import types
@name_inner_event
class MessageDeleted(EventBuilder):
"""
Event fired when one or more messages are deleted.
"""
def build(self, update):
if isinstance(update, types.UpdateDeleteMessages):
event ... | Set is private/group=True for messages deleted out of channels | Set is private/group=True for messages deleted out of channels
| Python | mit | LonamiWebs/Telethon,LonamiWebs/Telethon,LonamiWebs/Telethon,expectocode/Telethon,LonamiWebs/Telethon | from .common import EventBuilder, EventCommon, name_inner_event
from ..tl import types
@name_inner_event
class MessageDeleted(EventBuilder):
"""
Event fired when one or more messages are deleted.
"""
def build(self, update):
if isinstance(update, types.UpdateDeleteMessages):
event ... | from .common import EventBuilder, EventCommon, name_inner_event
from ..tl import types
@name_inner_event
class MessageDeleted(EventBuilder):
"""
Event fired when one or more messages are deleted.
"""
def build(self, update):
if isinstance(update, types.UpdateDeleteMessages):
event ... | <commit_before>from .common import EventBuilder, EventCommon, name_inner_event
from ..tl import types
@name_inner_event
class MessageDeleted(EventBuilder):
"""
Event fired when one or more messages are deleted.
"""
def build(self, update):
if isinstance(update, types.UpdateDeleteMessages):
... | from .common import EventBuilder, EventCommon, name_inner_event
from ..tl import types
@name_inner_event
class MessageDeleted(EventBuilder):
"""
Event fired when one or more messages are deleted.
"""
def build(self, update):
if isinstance(update, types.UpdateDeleteMessages):
event ... | from .common import EventBuilder, EventCommon, name_inner_event
from ..tl import types
@name_inner_event
class MessageDeleted(EventBuilder):
"""
Event fired when one or more messages are deleted.
"""
def build(self, update):
if isinstance(update, types.UpdateDeleteMessages):
event ... | <commit_before>from .common import EventBuilder, EventCommon, name_inner_event
from ..tl import types
@name_inner_event
class MessageDeleted(EventBuilder):
"""
Event fired when one or more messages are deleted.
"""
def build(self, update):
if isinstance(update, types.UpdateDeleteMessages):
... |
fd1c9a1c3b2212216a7e73c8aa9be3d1423eaff4 | info.py | info.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Provides info about a particular server.
"""
from usage import usage
import restclient
import simplejson
import subprocess
import sys
class Info:
def __init__(self):
self.debug = False
def runCmd(self, cmd, server, port,
user, passw... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Provides info about a particular server.
"""
from usage import usage
import restclient
import simplejson
import subprocess
import sys
from uuid import uuid1
class Info:
def __init__(self):
self.debug = False
def runCmd(self, cmd, server, port,
... | Add uuid to remote shell node name. | Add uuid to remote shell node name.
With this change it's possible to attach several remote shells to the
same cluster. Previously there would be a name conflict.
Change-Id: Ic85f99c8a7c27a80b37ecad994c39557934c7f50
Reviewed-on: http://review.couchbase.org/12365
Tested-by: Aliaksey Artamonau <3c875bcfb3adf2a65b2ae768... | Python | apache-2.0 | couchbase/couchbase-cli,couchbaselabs/couchbase-cli,membase/membase-cli,couchbase/couchbase-cli,couchbaselabs/couchbase-cli,membase/membase-cli,couchbaselabs/couchbase-cli,membase/membase-cli | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Provides info about a particular server.
"""
from usage import usage
import restclient
import simplejson
import subprocess
import sys
class Info:
def __init__(self):
self.debug = False
def runCmd(self, cmd, server, port,
user, passw... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Provides info about a particular server.
"""
from usage import usage
import restclient
import simplejson
import subprocess
import sys
from uuid import uuid1
class Info:
def __init__(self):
self.debug = False
def runCmd(self, cmd, server, port,
... | <commit_before>#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Provides info about a particular server.
"""
from usage import usage
import restclient
import simplejson
import subprocess
import sys
class Info:
def __init__(self):
self.debug = False
def runCmd(self, cmd, server, port,
... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Provides info about a particular server.
"""
from usage import usage
import restclient
import simplejson
import subprocess
import sys
from uuid import uuid1
class Info:
def __init__(self):
self.debug = False
def runCmd(self, cmd, server, port,
... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Provides info about a particular server.
"""
from usage import usage
import restclient
import simplejson
import subprocess
import sys
class Info:
def __init__(self):
self.debug = False
def runCmd(self, cmd, server, port,
user, passw... | <commit_before>#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Provides info about a particular server.
"""
from usage import usage
import restclient
import simplejson
import subprocess
import sys
class Info:
def __init__(self):
self.debug = False
def runCmd(self, cmd, server, port,
... |
4c8c287abd0615610ec0571431e142f86a8c76e8 | tests/testapp/models.py | tests/testapp/models.py | from django.db import models
from partial_index import PartialIndex
class AB(models.Model):
a = models.CharField(max_length=50)
b = models.CharField(max_length=50)
class User(models.Model):
name = models.CharField(max_length=50)
class Room(models.Model):
name = models.CharField(max_length=50)
c... | from django.db import models
from partial_index import PartialIndex
class AB(models.Model):
a = models.CharField(max_length=50)
b = models.CharField(max_length=50)
class User(models.Model):
name = models.CharField(max_length=50)
class Room(models.Model):
name = models.CharField(max_length=50)
c... | Add on_delete parameter to ForegnKey fields in testapp Models. on_delete is mandatory from Django 2.0 onwards. | Add on_delete parameter to ForegnKey fields in testapp Models. on_delete is mandatory from Django 2.0 onwards.
| Python | bsd-3-clause | mattiaslinnap/django-partial-index | from django.db import models
from partial_index import PartialIndex
class AB(models.Model):
a = models.CharField(max_length=50)
b = models.CharField(max_length=50)
class User(models.Model):
name = models.CharField(max_length=50)
class Room(models.Model):
name = models.CharField(max_length=50)
c... | from django.db import models
from partial_index import PartialIndex
class AB(models.Model):
a = models.CharField(max_length=50)
b = models.CharField(max_length=50)
class User(models.Model):
name = models.CharField(max_length=50)
class Room(models.Model):
name = models.CharField(max_length=50)
c... | <commit_before>from django.db import models
from partial_index import PartialIndex
class AB(models.Model):
a = models.CharField(max_length=50)
b = models.CharField(max_length=50)
class User(models.Model):
name = models.CharField(max_length=50)
class Room(models.Model):
name = models.CharField(max... | from django.db import models
from partial_index import PartialIndex
class AB(models.Model):
a = models.CharField(max_length=50)
b = models.CharField(max_length=50)
class User(models.Model):
name = models.CharField(max_length=50)
class Room(models.Model):
name = models.CharField(max_length=50)
c... | from django.db import models
from partial_index import PartialIndex
class AB(models.Model):
a = models.CharField(max_length=50)
b = models.CharField(max_length=50)
class User(models.Model):
name = models.CharField(max_length=50)
class Room(models.Model):
name = models.CharField(max_length=50)
c... | <commit_before>from django.db import models
from partial_index import PartialIndex
class AB(models.Model):
a = models.CharField(max_length=50)
b = models.CharField(max_length=50)
class User(models.Model):
name = models.CharField(max_length=50)
class Room(models.Model):
name = models.CharField(max... |
30d643a6fed6d056f812db6c826e82e351d23c1d | litmus/cmds/__init__.py | litmus/cmds/__init__.py | #!/usr/bin/env python3
# Copyright 2015-2016 Samsung Electronics Co., Ltd.
#
# 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 requir... | #!/usr/bin/env python3
# Copyright 2015-2016 Samsung Electronics Co., Ltd.
#
# 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 requir... | Add shell=True to make sure that sdb does exist | Add shell=True to make sure that sdb does exist
| Python | apache-2.0 | dhs-shine/litmus | #!/usr/bin/env python3
# Copyright 2015-2016 Samsung Electronics Co., Ltd.
#
# 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 requir... | #!/usr/bin/env python3
# Copyright 2015-2016 Samsung Electronics Co., Ltd.
#
# 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 requir... | <commit_before>#!/usr/bin/env python3
# Copyright 2015-2016 Samsung Electronics Co., Ltd.
#
# 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
#
... | #!/usr/bin/env python3
# Copyright 2015-2016 Samsung Electronics Co., Ltd.
#
# 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 requir... | #!/usr/bin/env python3
# Copyright 2015-2016 Samsung Electronics Co., Ltd.
#
# 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 requir... | <commit_before>#!/usr/bin/env python3
# Copyright 2015-2016 Samsung Electronics Co., Ltd.
#
# 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
#
... |
edb905aec44e3fb2086ae87df960597e7b4c8356 | scoring/machinelearning/neuralnetwork.py | scoring/machinelearning/neuralnetwork.py | ## FIX use ffnet for now, use sklearn in future
from ffnet import ffnet,mlgraph,tmlgraph
import numpy as np
class neuralnetwork:
def __init__(self, shape, loadnet=None, full_conn=True, biases=False):
"""
shape: shape of a NN given as a tuple
"""
if loadnet:
self.model = ... | ## FIX use ffnet for now, use sklearn in future
from ffnet import ffnet,mlgraph,tmlgraph
import numpy as np
from scipy.stats import linregress
class neuralnetwork:
def __init__(self, shape, loadnet=None, full_conn=True, biases=False):
"""
shape: shape of a NN given as a tuple
"""
if... | Add missing methods to NN class | Add missing methods to NN class
| Python | bsd-3-clause | mwojcikowski/opendrugdiscovery | ## FIX use ffnet for now, use sklearn in future
from ffnet import ffnet,mlgraph,tmlgraph
import numpy as np
class neuralnetwork:
def __init__(self, shape, loadnet=None, full_conn=True, biases=False):
"""
shape: shape of a NN given as a tuple
"""
if loadnet:
self.model = ... | ## FIX use ffnet for now, use sklearn in future
from ffnet import ffnet,mlgraph,tmlgraph
import numpy as np
from scipy.stats import linregress
class neuralnetwork:
def __init__(self, shape, loadnet=None, full_conn=True, biases=False):
"""
shape: shape of a NN given as a tuple
"""
if... | <commit_before>## FIX use ffnet for now, use sklearn in future
from ffnet import ffnet,mlgraph,tmlgraph
import numpy as np
class neuralnetwork:
def __init__(self, shape, loadnet=None, full_conn=True, biases=False):
"""
shape: shape of a NN given as a tuple
"""
if loadnet:
... | ## FIX use ffnet for now, use sklearn in future
from ffnet import ffnet,mlgraph,tmlgraph
import numpy as np
from scipy.stats import linregress
class neuralnetwork:
def __init__(self, shape, loadnet=None, full_conn=True, biases=False):
"""
shape: shape of a NN given as a tuple
"""
if... | ## FIX use ffnet for now, use sklearn in future
from ffnet import ffnet,mlgraph,tmlgraph
import numpy as np
class neuralnetwork:
def __init__(self, shape, loadnet=None, full_conn=True, biases=False):
"""
shape: shape of a NN given as a tuple
"""
if loadnet:
self.model = ... | <commit_before>## FIX use ffnet for now, use sklearn in future
from ffnet import ffnet,mlgraph,tmlgraph
import numpy as np
class neuralnetwork:
def __init__(self, shape, loadnet=None, full_conn=True, biases=False):
"""
shape: shape of a NN given as a tuple
"""
if loadnet:
... |
df18229b38a01d87076f3b13aee5bfd1f0f989c2 | tunobase/blog/models.py | tunobase/blog/models.py | '''
Blog App
This module determines how to display the Blog app in Django's admin
and lists other model functions.
'''
from django.conf import settings
from django.core.urlresolvers import reverse
from django.db import models
from tunobase.core import models as core_models
class Blog(core_models.ContentModel):
... | '''
Blog App
This module determines how to display the Blog app in Django's admin
and lists other model functions.
'''
from django.conf import settings
from django.core.urlresolvers import reverse
from django.db import models
from tunobase.core import models as core_models
class Blog(core_models.ContentModel):
... | Update blog model with a more descriptive name | Update blog model with a more descriptive name
| Python | bsd-3-clause | unomena/tunobase,unomena/tunobase | '''
Blog App
This module determines how to display the Blog app in Django's admin
and lists other model functions.
'''
from django.conf import settings
from django.core.urlresolvers import reverse
from django.db import models
from tunobase.core import models as core_models
class Blog(core_models.ContentModel):
... | '''
Blog App
This module determines how to display the Blog app in Django's admin
and lists other model functions.
'''
from django.conf import settings
from django.core.urlresolvers import reverse
from django.db import models
from tunobase.core import models as core_models
class Blog(core_models.ContentModel):
... | <commit_before>'''
Blog App
This module determines how to display the Blog app in Django's admin
and lists other model functions.
'''
from django.conf import settings
from django.core.urlresolvers import reverse
from django.db import models
from tunobase.core import models as core_models
class Blog(core_models.Con... | '''
Blog App
This module determines how to display the Blog app in Django's admin
and lists other model functions.
'''
from django.conf import settings
from django.core.urlresolvers import reverse
from django.db import models
from tunobase.core import models as core_models
class Blog(core_models.ContentModel):
... | '''
Blog App
This module determines how to display the Blog app in Django's admin
and lists other model functions.
'''
from django.conf import settings
from django.core.urlresolvers import reverse
from django.db import models
from tunobase.core import models as core_models
class Blog(core_models.ContentModel):
... | <commit_before>'''
Blog App
This module determines how to display the Blog app in Django's admin
and lists other model functions.
'''
from django.conf import settings
from django.core.urlresolvers import reverse
from django.db import models
from tunobase.core import models as core_models
class Blog(core_models.Con... |
16bdf4d3951c7f88b96bd922b5d4273cd93c4d98 | test_asgi_redis.py | test_asgi_redis.py | from asgi_redis import RedisChannelLayer
from asgiref.conformance import make_tests
channel_layer = RedisChannelLayer(expiry=1)
RedisTests = make_tests(channel_layer, expiry_delay=1.1)
| import unittest
from asgi_redis import RedisChannelLayer
from asgiref.conformance import ConformanceTestCase
# Default conformance tests
class RedisLayerTests(ConformanceTestCase):
channel_layer = RedisChannelLayer(expiry=1, group_expiry=2)
expiry_delay = 1.1
| Update to match new asgiref test style | Update to match new asgiref test style
| Python | bsd-3-clause | django/asgi_redis | from asgi_redis import RedisChannelLayer
from asgiref.conformance import make_tests
channel_layer = RedisChannelLayer(expiry=1)
RedisTests = make_tests(channel_layer, expiry_delay=1.1)
Update to match new asgiref test style | import unittest
from asgi_redis import RedisChannelLayer
from asgiref.conformance import ConformanceTestCase
# Default conformance tests
class RedisLayerTests(ConformanceTestCase):
channel_layer = RedisChannelLayer(expiry=1, group_expiry=2)
expiry_delay = 1.1
| <commit_before>from asgi_redis import RedisChannelLayer
from asgiref.conformance import make_tests
channel_layer = RedisChannelLayer(expiry=1)
RedisTests = make_tests(channel_layer, expiry_delay=1.1)
<commit_msg>Update to match new asgiref test style<commit_after> | import unittest
from asgi_redis import RedisChannelLayer
from asgiref.conformance import ConformanceTestCase
# Default conformance tests
class RedisLayerTests(ConformanceTestCase):
channel_layer = RedisChannelLayer(expiry=1, group_expiry=2)
expiry_delay = 1.1
| from asgi_redis import RedisChannelLayer
from asgiref.conformance import make_tests
channel_layer = RedisChannelLayer(expiry=1)
RedisTests = make_tests(channel_layer, expiry_delay=1.1)
Update to match new asgiref test styleimport unittest
from asgi_redis import RedisChannelLayer
from asgiref.conformance import Conform... | <commit_before>from asgi_redis import RedisChannelLayer
from asgiref.conformance import make_tests
channel_layer = RedisChannelLayer(expiry=1)
RedisTests = make_tests(channel_layer, expiry_delay=1.1)
<commit_msg>Update to match new asgiref test style<commit_after>import unittest
from asgi_redis import RedisChannelLaye... |
59d1d9cf834ee8b0b41398d03381cd33562d7574 | test_gitcontrib.py | test_gitcontrib.py | # -*- coding: utf-8 -*-
"""Test them contribs."""
import gitcontrib
import json
import pytest
import subprocess
import sys
u_string = 'Usage:\ngitcontrib [--json] [-p, --path path] [extension(s) ...]\n'
@pytest.fixture
def git_repo(tmpdir):
subprocess.check_call(['git', 'init', str(tmpdir)])
return tmpdir
... | # -*- coding: utf-8 -*-
"""Test them contribs."""
import gitcontrib
import json
import pytest
import subprocess
import sys
u_string = 'Usage:\ngitcontrib [--json] [-p, --path path] [extension(s) ...]\n'
@pytest.fixture
def git_repo(tmpdir):
subprocess.check_call(['git', 'init', str(tmpdir)])
return tmpdir
... | Fix json_print => jsonify in tests | Fix json_print => jsonify in tests
| Python | mit | nickfrostatx/gitcontrib | # -*- coding: utf-8 -*-
"""Test them contribs."""
import gitcontrib
import json
import pytest
import subprocess
import sys
u_string = 'Usage:\ngitcontrib [--json] [-p, --path path] [extension(s) ...]\n'
@pytest.fixture
def git_repo(tmpdir):
subprocess.check_call(['git', 'init', str(tmpdir)])
return tmpdir
... | # -*- coding: utf-8 -*-
"""Test them contribs."""
import gitcontrib
import json
import pytest
import subprocess
import sys
u_string = 'Usage:\ngitcontrib [--json] [-p, --path path] [extension(s) ...]\n'
@pytest.fixture
def git_repo(tmpdir):
subprocess.check_call(['git', 'init', str(tmpdir)])
return tmpdir
... | <commit_before># -*- coding: utf-8 -*-
"""Test them contribs."""
import gitcontrib
import json
import pytest
import subprocess
import sys
u_string = 'Usage:\ngitcontrib [--json] [-p, --path path] [extension(s) ...]\n'
@pytest.fixture
def git_repo(tmpdir):
subprocess.check_call(['git', 'init', str(tmpdir)])
... | # -*- coding: utf-8 -*-
"""Test them contribs."""
import gitcontrib
import json
import pytest
import subprocess
import sys
u_string = 'Usage:\ngitcontrib [--json] [-p, --path path] [extension(s) ...]\n'
@pytest.fixture
def git_repo(tmpdir):
subprocess.check_call(['git', 'init', str(tmpdir)])
return tmpdir
... | # -*- coding: utf-8 -*-
"""Test them contribs."""
import gitcontrib
import json
import pytest
import subprocess
import sys
u_string = 'Usage:\ngitcontrib [--json] [-p, --path path] [extension(s) ...]\n'
@pytest.fixture
def git_repo(tmpdir):
subprocess.check_call(['git', 'init', str(tmpdir)])
return tmpdir
... | <commit_before># -*- coding: utf-8 -*-
"""Test them contribs."""
import gitcontrib
import json
import pytest
import subprocess
import sys
u_string = 'Usage:\ngitcontrib [--json] [-p, --path path] [extension(s) ...]\n'
@pytest.fixture
def git_repo(tmpdir):
subprocess.check_call(['git', 'init', str(tmpdir)])
... |
d99ef1ab1dc414294a200d4dafcb0d21c2d3f6d8 | webapp/byceps/blueprints/board/formatting.py | webapp/byceps/blueprints/board/formatting.py | # -*- coding: utf-8 -*-
"""
byceps.blueprints.board.formatting
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
:Copyright: 2006-2014 Jochen Kupperschmidt
"""
import bbcode
def render_html(value):
"""Render text as HTML, interpreting BBcode."""
parser = bbcode.Parser(replace_cosmetic=False)
# Replace image tags.
... | # -*- coding: utf-8 -*-
"""
byceps.blueprints.board.formatting
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
:Copyright: 2006-2014 Jochen Kupperschmidt
"""
import bbcode
def create_parser():
"""Create a customized BBcode parser."""
parser = bbcode.Parser(replace_cosmetic=False)
# Replace image tags.
def rend... | Create and reuse a single BBcode parser instance. | Create and reuse a single BBcode parser instance.
| Python | bsd-3-clause | m-ober/byceps,m-ober/byceps,homeworkprod/byceps,homeworkprod/byceps,m-ober/byceps,homeworkprod/byceps | # -*- coding: utf-8 -*-
"""
byceps.blueprints.board.formatting
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
:Copyright: 2006-2014 Jochen Kupperschmidt
"""
import bbcode
def render_html(value):
"""Render text as HTML, interpreting BBcode."""
parser = bbcode.Parser(replace_cosmetic=False)
# Replace image tags.
... | # -*- coding: utf-8 -*-
"""
byceps.blueprints.board.formatting
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
:Copyright: 2006-2014 Jochen Kupperschmidt
"""
import bbcode
def create_parser():
"""Create a customized BBcode parser."""
parser = bbcode.Parser(replace_cosmetic=False)
# Replace image tags.
def rend... | <commit_before># -*- coding: utf-8 -*-
"""
byceps.blueprints.board.formatting
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
:Copyright: 2006-2014 Jochen Kupperschmidt
"""
import bbcode
def render_html(value):
"""Render text as HTML, interpreting BBcode."""
parser = bbcode.Parser(replace_cosmetic=False)
# Replace... | # -*- coding: utf-8 -*-
"""
byceps.blueprints.board.formatting
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
:Copyright: 2006-2014 Jochen Kupperschmidt
"""
import bbcode
def create_parser():
"""Create a customized BBcode parser."""
parser = bbcode.Parser(replace_cosmetic=False)
# Replace image tags.
def rend... | # -*- coding: utf-8 -*-
"""
byceps.blueprints.board.formatting
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
:Copyright: 2006-2014 Jochen Kupperschmidt
"""
import bbcode
def render_html(value):
"""Render text as HTML, interpreting BBcode."""
parser = bbcode.Parser(replace_cosmetic=False)
# Replace image tags.
... | <commit_before># -*- coding: utf-8 -*-
"""
byceps.blueprints.board.formatting
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
:Copyright: 2006-2014 Jochen Kupperschmidt
"""
import bbcode
def render_html(value):
"""Render text as HTML, interpreting BBcode."""
parser = bbcode.Parser(replace_cosmetic=False)
# Replace... |
6fec57fde4c67aeaf7622c6b1ee5d56fec2c5b57 | image.py | image.py | """Image."""
from PIL import Image
import os
class DatabaseImage(object):
"""Image from database."""
def __init__(self, path):
"""Construct DatabaseImage."""
self.path = path
self.bmp = Image.open(path)
filename = os.path.basename(path)
self.id = int(filename.split(... | """Image."""
from PIL import Image, ImageFilter
import numpy as np
import os
class DatabaseImage(object):
"""Image from database."""
def __init__(self, path):
"""Construct DatabaseImage."""
self.path = path
self.bmp = Image.open(path)
filename = os.path.basename(path)
... | Add matrix and edge detection | Add matrix and edge detection
| Python | mit | anassinator/codejam,anassinator/codejam-2014 | """Image."""
from PIL import Image
import os
class DatabaseImage(object):
"""Image from database."""
def __init__(self, path):
"""Construct DatabaseImage."""
self.path = path
self.bmp = Image.open(path)
filename = os.path.basename(path)
self.id = int(filename.split(... | """Image."""
from PIL import Image, ImageFilter
import numpy as np
import os
class DatabaseImage(object):
"""Image from database."""
def __init__(self, path):
"""Construct DatabaseImage."""
self.path = path
self.bmp = Image.open(path)
filename = os.path.basename(path)
... | <commit_before>"""Image."""
from PIL import Image
import os
class DatabaseImage(object):
"""Image from database."""
def __init__(self, path):
"""Construct DatabaseImage."""
self.path = path
self.bmp = Image.open(path)
filename = os.path.basename(path)
self.id = int(... | """Image."""
from PIL import Image, ImageFilter
import numpy as np
import os
class DatabaseImage(object):
"""Image from database."""
def __init__(self, path):
"""Construct DatabaseImage."""
self.path = path
self.bmp = Image.open(path)
filename = os.path.basename(path)
... | """Image."""
from PIL import Image
import os
class DatabaseImage(object):
"""Image from database."""
def __init__(self, path):
"""Construct DatabaseImage."""
self.path = path
self.bmp = Image.open(path)
filename = os.path.basename(path)
self.id = int(filename.split(... | <commit_before>"""Image."""
from PIL import Image
import os
class DatabaseImage(object):
"""Image from database."""
def __init__(self, path):
"""Construct DatabaseImage."""
self.path = path
self.bmp = Image.open(path)
filename = os.path.basename(path)
self.id = int(... |
1326203c81db0973ff5e1472a2ad80499b6f2189 | main.py | main.py | import csv
import logging
from config.config import Config
from d_spider import DSpider
from dev.logger import logger_setup
def main():
# setup
logger_setup(Config.get('APP_LOG_FILE'), ['ddd_site_parse'])
# log
logger = logging.getLogger('ddd_site_parse')
logger.addHandler(logging.NullHandler())... | import csv
import logging
import os
import time
from config.config import Config
from d_spider import DSpider
from dev.logger import logger_setup
def main():
# setup
logger_setup(Config.get('APP_LOG_FILE'), ['ddd_site_parse'])
# log
logger = logging.getLogger('ddd_site_parse')
logger.addHandler... | Add encoding support, move output to separate directory, change output filename to DD_MM_YYYY.csv | Add encoding support, move output to separate directory, change output filename to DD_MM_YYYY.csv
| Python | mit | Holovin/D_GrabDemo | import csv
import logging
from config.config import Config
from d_spider import DSpider
from dev.logger import logger_setup
def main():
# setup
logger_setup(Config.get('APP_LOG_FILE'), ['ddd_site_parse'])
# log
logger = logging.getLogger('ddd_site_parse')
logger.addHandler(logging.NullHandler())... | import csv
import logging
import os
import time
from config.config import Config
from d_spider import DSpider
from dev.logger import logger_setup
def main():
# setup
logger_setup(Config.get('APP_LOG_FILE'), ['ddd_site_parse'])
# log
logger = logging.getLogger('ddd_site_parse')
logger.addHandler... | <commit_before>import csv
import logging
from config.config import Config
from d_spider import DSpider
from dev.logger import logger_setup
def main():
# setup
logger_setup(Config.get('APP_LOG_FILE'), ['ddd_site_parse'])
# log
logger = logging.getLogger('ddd_site_parse')
logger.addHandler(logging... | import csv
import logging
import os
import time
from config.config import Config
from d_spider import DSpider
from dev.logger import logger_setup
def main():
# setup
logger_setup(Config.get('APP_LOG_FILE'), ['ddd_site_parse'])
# log
logger = logging.getLogger('ddd_site_parse')
logger.addHandler... | import csv
import logging
from config.config import Config
from d_spider import DSpider
from dev.logger import logger_setup
def main():
# setup
logger_setup(Config.get('APP_LOG_FILE'), ['ddd_site_parse'])
# log
logger = logging.getLogger('ddd_site_parse')
logger.addHandler(logging.NullHandler())... | <commit_before>import csv
import logging
from config.config import Config
from d_spider import DSpider
from dev.logger import logger_setup
def main():
# setup
logger_setup(Config.get('APP_LOG_FILE'), ['ddd_site_parse'])
# log
logger = logging.getLogger('ddd_site_parse')
logger.addHandler(logging... |
adcaa3bd5feb0939a6ffae8ce4637f5fd8369f2d | tests/base_test.py | tests/base_test.py | # -*- coding: utf-8 -*-
"""
test
~~~~
Flask-CORS is a simple extension to Flask allowing you to support cross
origin resource sharing (CORS) using a simple decorator.
:copyright: (c) 2014 by Cory Dolphin.
:license: MIT, see LICENSE for more details.
"""
try:
import unittest2 as unittest
ex... | # -*- coding: utf-8 -*-
"""
test
~~~~
Flask-CORS is a simple extension to Flask allowing you to support cross
origin resource sharing (CORS) using a simple decorator.
:copyright: (c) 2014 by Cory Dolphin.
:license: MIT, see LICENSE for more details.
"""
try:
import unittest2 as unittest
ex... | Improve testing docstring output for inherited classes | Improve testing docstring output for inherited classes
| Python | mit | ashleysommer/sanic-cors,corydolphin/flask-cors | # -*- coding: utf-8 -*-
"""
test
~~~~
Flask-CORS is a simple extension to Flask allowing you to support cross
origin resource sharing (CORS) using a simple decorator.
:copyright: (c) 2014 by Cory Dolphin.
:license: MIT, see LICENSE for more details.
"""
try:
import unittest2 as unittest
ex... | # -*- coding: utf-8 -*-
"""
test
~~~~
Flask-CORS is a simple extension to Flask allowing you to support cross
origin resource sharing (CORS) using a simple decorator.
:copyright: (c) 2014 by Cory Dolphin.
:license: MIT, see LICENSE for more details.
"""
try:
import unittest2 as unittest
ex... | <commit_before># -*- coding: utf-8 -*-
"""
test
~~~~
Flask-CORS is a simple extension to Flask allowing you to support cross
origin resource sharing (CORS) using a simple decorator.
:copyright: (c) 2014 by Cory Dolphin.
:license: MIT, see LICENSE for more details.
"""
try:
import unittest2... | # -*- coding: utf-8 -*-
"""
test
~~~~
Flask-CORS is a simple extension to Flask allowing you to support cross
origin resource sharing (CORS) using a simple decorator.
:copyright: (c) 2014 by Cory Dolphin.
:license: MIT, see LICENSE for more details.
"""
try:
import unittest2 as unittest
ex... | # -*- coding: utf-8 -*-
"""
test
~~~~
Flask-CORS is a simple extension to Flask allowing you to support cross
origin resource sharing (CORS) using a simple decorator.
:copyright: (c) 2014 by Cory Dolphin.
:license: MIT, see LICENSE for more details.
"""
try:
import unittest2 as unittest
ex... | <commit_before># -*- coding: utf-8 -*-
"""
test
~~~~
Flask-CORS is a simple extension to Flask allowing you to support cross
origin resource sharing (CORS) using a simple decorator.
:copyright: (c) 2014 by Cory Dolphin.
:license: MIT, see LICENSE for more details.
"""
try:
import unittest2... |
2693b563a80e6906ace3f97b17e42012404b5cdc | modules/ecrans/tools.py | modules/ecrans/tools.py | "tools for lefigaro backend"
# -*- coding: utf-8 -*-
# Copyright(C) 2011 Julien Hebert
#
# This file is part of weboob.
#
# weboob is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of t... | "tools for lefigaro backend"
# -*- coding: utf-8 -*-
# Copyright(C) 2011 Julien Hebert
#
# This file is part of weboob.
#
# weboob is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of t... | Remove useless function (2O minutes code in ecrans...) | Remove useless function (2O minutes code in ecrans...)
| Python | agpl-3.0 | nojhan/weboob-devel,nojhan/weboob-devel,yannrouillard/weboob,laurent-george/weboob,Konubinix/weboob,frankrousseau/weboob,frankrousseau/weboob,RouxRC/weboob,sputnick-dev/weboob,Boussadia/weboob,willprice/weboob,Konubinix/weboob,Boussadia/weboob,Boussadia/weboob,nojhan/weboob-devel,yannrouillard/weboob,frankrousseau/webo... | "tools for lefigaro backend"
# -*- coding: utf-8 -*-
# Copyright(C) 2011 Julien Hebert
#
# This file is part of weboob.
#
# weboob is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of t... | "tools for lefigaro backend"
# -*- coding: utf-8 -*-
# Copyright(C) 2011 Julien Hebert
#
# This file is part of weboob.
#
# weboob is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of t... | <commit_before>"tools for lefigaro backend"
# -*- coding: utf-8 -*-
# Copyright(C) 2011 Julien Hebert
#
# This file is part of weboob.
#
# weboob is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either... | "tools for lefigaro backend"
# -*- coding: utf-8 -*-
# Copyright(C) 2011 Julien Hebert
#
# This file is part of weboob.
#
# weboob is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of t... | "tools for lefigaro backend"
# -*- coding: utf-8 -*-
# Copyright(C) 2011 Julien Hebert
#
# This file is part of weboob.
#
# weboob is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of t... | <commit_before>"tools for lefigaro backend"
# -*- coding: utf-8 -*-
# Copyright(C) 2011 Julien Hebert
#
# This file is part of weboob.
#
# weboob is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either... |
9ec0c5dc170db0f6ffa05c09ea1d0f3e950b76a5 | djstripe/management/commands/djstripe_sync_customers.py | djstripe/management/commands/djstripe_sync_customers.py | from __future__ import unicode_literals
from django.core.management.base import BaseCommand
from ...settings import get_user_model
from ...sync import sync_customer
User = get_user_model()
class Command(BaseCommand):
help = "Sync customer data with stripe"
def handle(self, *args, **options):
qs =... | from __future__ import unicode_literals
from django.core.management.base import BaseCommand
from ...settings import User
from ...sync import sync_customer
class Command(BaseCommand):
help = "Sync customer data with stripe"
def handle(self, *args, **options):
qs = User.objects.exclude(customer__isn... | Make this work with Django 1.4 | Make this work with Django 1.4 | Python | mit | cjrh/dj-stripe,koobs/dj-stripe,tkwon/dj-stripe,aliev/dj-stripe,kavdev/dj-stripe,ctrengove/dj-stripe,StErMi/dj-stripe,kavdev/dj-stripe,mthornhill/dj-stripe,areski/dj-stripe,aliev/dj-stripe,maxmalynowsky/django-stripe-rest,areski/dj-stripe,jleclanche/dj-stripe,rawjam/dj-stripe,koobs/dj-stripe,doctorwidget/dj-stripe,rawja... | from __future__ import unicode_literals
from django.core.management.base import BaseCommand
from ...settings import get_user_model
from ...sync import sync_customer
User = get_user_model()
class Command(BaseCommand):
help = "Sync customer data with stripe"
def handle(self, *args, **options):
qs =... | from __future__ import unicode_literals
from django.core.management.base import BaseCommand
from ...settings import User
from ...sync import sync_customer
class Command(BaseCommand):
help = "Sync customer data with stripe"
def handle(self, *args, **options):
qs = User.objects.exclude(customer__isn... | <commit_before>from __future__ import unicode_literals
from django.core.management.base import BaseCommand
from ...settings import get_user_model
from ...sync import sync_customer
User = get_user_model()
class Command(BaseCommand):
help = "Sync customer data with stripe"
def handle(self, *args, **options... | from __future__ import unicode_literals
from django.core.management.base import BaseCommand
from ...settings import User
from ...sync import sync_customer
class Command(BaseCommand):
help = "Sync customer data with stripe"
def handle(self, *args, **options):
qs = User.objects.exclude(customer__isn... | from __future__ import unicode_literals
from django.core.management.base import BaseCommand
from ...settings import get_user_model
from ...sync import sync_customer
User = get_user_model()
class Command(BaseCommand):
help = "Sync customer data with stripe"
def handle(self, *args, **options):
qs =... | <commit_before>from __future__ import unicode_literals
from django.core.management.base import BaseCommand
from ...settings import get_user_model
from ...sync import sync_customer
User = get_user_model()
class Command(BaseCommand):
help = "Sync customer data with stripe"
def handle(self, *args, **options... |
74e240d3e2e397eb8f3b0e63a1666412c3c1c66b | app/__init__.py | app/__init__.py | from flask import Flask
from config import config
def create_app(config_name):
app = Flask(__name__)
app.config.from_object(config[config_name])
from .aflafrettir import aflafrettir as afla_blueprint
app.register_blueprint(afla_blueprint)
return app
| from flask import Flask
from flask.ext.bootstrap import Bootstrap
from config import config
bootstrap = Bootstrap()
def create_app(config_name):
app = Flask(__name__)
app.config.from_object(config[config_name])
bootstrap.init_app(app)
from .aflafrettir import aflafrettir as afla_blueprint
app.register_bl... | Add flask-bootstrap to the mix | Add flask-bootstrap to the mix
| Python | mit | finnurtorfa/aflafrettir.is,finnurtorfa/aflafrettir.is,finnurtorfa/aflafrettir.is,finnurtorfa/aflafrettir.is | from flask import Flask
from config import config
def create_app(config_name):
app = Flask(__name__)
app.config.from_object(config[config_name])
from .aflafrettir import aflafrettir as afla_blueprint
app.register_blueprint(afla_blueprint)
return app
Add flask-bootstrap to the mix | from flask import Flask
from flask.ext.bootstrap import Bootstrap
from config import config
bootstrap = Bootstrap()
def create_app(config_name):
app = Flask(__name__)
app.config.from_object(config[config_name])
bootstrap.init_app(app)
from .aflafrettir import aflafrettir as afla_blueprint
app.register_bl... | <commit_before>from flask import Flask
from config import config
def create_app(config_name):
app = Flask(__name__)
app.config.from_object(config[config_name])
from .aflafrettir import aflafrettir as afla_blueprint
app.register_blueprint(afla_blueprint)
return app
<commit_msg>Add flask-bootstrap to the mix... | from flask import Flask
from flask.ext.bootstrap import Bootstrap
from config import config
bootstrap = Bootstrap()
def create_app(config_name):
app = Flask(__name__)
app.config.from_object(config[config_name])
bootstrap.init_app(app)
from .aflafrettir import aflafrettir as afla_blueprint
app.register_bl... | from flask import Flask
from config import config
def create_app(config_name):
app = Flask(__name__)
app.config.from_object(config[config_name])
from .aflafrettir import aflafrettir as afla_blueprint
app.register_blueprint(afla_blueprint)
return app
Add flask-bootstrap to the mixfrom flask import Flask
fro... | <commit_before>from flask import Flask
from config import config
def create_app(config_name):
app = Flask(__name__)
app.config.from_object(config[config_name])
from .aflafrettir import aflafrettir as afla_blueprint
app.register_blueprint(afla_blueprint)
return app
<commit_msg>Add flask-bootstrap to the mix... |
e1bc92abaf23002c37b9a8b7e5bf12b175be1a40 | tools/translate.py | tools/translate.py | #!/usr/bin/python
import re
import os
abspath = os.path.abspath(__file__)
dname = os.path.dirname(abspath)
os.chdir(dname)
path = '../web/l10n/'
files = [f for f in os.listdir(path) if os.path.isfile(path + f) and f.endswith('.js') and not f.endswith('en.js')]
for f in files:
f = path + f
print 'en -> ' + ... | #!/usr/bin/python
import os
import optparse
import urllib2
import json
import base64
parser = optparse.OptionParser()
parser.add_option("-u", "--user", dest="username", help="transifex user login")
parser.add_option("-p", "--password", dest="password", help="transifex user password")
(options, args) = parser.parse_a... | Use transifex service for tranlation | Use transifex service for tranlation
| Python | apache-2.0 | joseant/traccar-1,vipien/traccar,tananaev/traccar,jon-stumpf/traccar,jon-stumpf/traccar,al3x1s/traccar,AnshulJain1985/Roadcast-Tracker,joseant/traccar-1,AnshulJain1985/Roadcast-Tracker,al3x1s/traccar,tsmgeek/traccar,tsmgeek/traccar,ninioe/traccar,jon-stumpf/traccar,5of9/traccar,tananaev/traccar,orcoliver/traccar,tanana... | #!/usr/bin/python
import re
import os
abspath = os.path.abspath(__file__)
dname = os.path.dirname(abspath)
os.chdir(dname)
path = '../web/l10n/'
files = [f for f in os.listdir(path) if os.path.isfile(path + f) and f.endswith('.js') and not f.endswith('en.js')]
for f in files:
f = path + f
print 'en -> ' + ... | #!/usr/bin/python
import os
import optparse
import urllib2
import json
import base64
parser = optparse.OptionParser()
parser.add_option("-u", "--user", dest="username", help="transifex user login")
parser.add_option("-p", "--password", dest="password", help="transifex user password")
(options, args) = parser.parse_a... | <commit_before>#!/usr/bin/python
import re
import os
abspath = os.path.abspath(__file__)
dname = os.path.dirname(abspath)
os.chdir(dname)
path = '../web/l10n/'
files = [f for f in os.listdir(path) if os.path.isfile(path + f) and f.endswith('.js') and not f.endswith('en.js')]
for f in files:
f = path + f
pr... | #!/usr/bin/python
import os
import optparse
import urllib2
import json
import base64
parser = optparse.OptionParser()
parser.add_option("-u", "--user", dest="username", help="transifex user login")
parser.add_option("-p", "--password", dest="password", help="transifex user password")
(options, args) = parser.parse_a... | #!/usr/bin/python
import re
import os
abspath = os.path.abspath(__file__)
dname = os.path.dirname(abspath)
os.chdir(dname)
path = '../web/l10n/'
files = [f for f in os.listdir(path) if os.path.isfile(path + f) and f.endswith('.js') and not f.endswith('en.js')]
for f in files:
f = path + f
print 'en -> ' + ... | <commit_before>#!/usr/bin/python
import re
import os
abspath = os.path.abspath(__file__)
dname = os.path.dirname(abspath)
os.chdir(dname)
path = '../web/l10n/'
files = [f for f in os.listdir(path) if os.path.isfile(path + f) and f.endswith('.js') and not f.endswith('en.js')]
for f in files:
f = path + f
pr... |
cc929731dbbf51e00d748aa6cc335d4cd8bb705b | soco/__init__.py | soco/__init__.py | """SoCo (Sonos Controller) is a simple library to control Sonos speakers."""
# There is no need for all strings here to be unicode, and Py2 cannot import
# modules with unicode names so do not use from __future__ import
# unicode_literals
# https://github.com/SoCo/SoCo/issues/98
#
import logging
from .core import S... | """SoCo (Sonos Controller) is a simple library to control Sonos speakers."""
# There is no need for all strings here to be unicode, and Py2 cannot import
# modules with unicode names so do not use from __future__ import
# unicode_literals
# https://github.com/SoCo/SoCo/issues/98
#
import logging
from .core import S... | Set up for v0.23 development | Set up for v0.23 development
| Python | mit | SoCo/SoCo,SoCo/SoCo | """SoCo (Sonos Controller) is a simple library to control Sonos speakers."""
# There is no need for all strings here to be unicode, and Py2 cannot import
# modules with unicode names so do not use from __future__ import
# unicode_literals
# https://github.com/SoCo/SoCo/issues/98
#
import logging
from .core import S... | """SoCo (Sonos Controller) is a simple library to control Sonos speakers."""
# There is no need for all strings here to be unicode, and Py2 cannot import
# modules with unicode names so do not use from __future__ import
# unicode_literals
# https://github.com/SoCo/SoCo/issues/98
#
import logging
from .core import S... | <commit_before>"""SoCo (Sonos Controller) is a simple library to control Sonos speakers."""
# There is no need for all strings here to be unicode, and Py2 cannot import
# modules with unicode names so do not use from __future__ import
# unicode_literals
# https://github.com/SoCo/SoCo/issues/98
#
import logging
from... | """SoCo (Sonos Controller) is a simple library to control Sonos speakers."""
# There is no need for all strings here to be unicode, and Py2 cannot import
# modules with unicode names so do not use from __future__ import
# unicode_literals
# https://github.com/SoCo/SoCo/issues/98
#
import logging
from .core import S... | """SoCo (Sonos Controller) is a simple library to control Sonos speakers."""
# There is no need for all strings here to be unicode, and Py2 cannot import
# modules with unicode names so do not use from __future__ import
# unicode_literals
# https://github.com/SoCo/SoCo/issues/98
#
import logging
from .core import S... | <commit_before>"""SoCo (Sonos Controller) is a simple library to control Sonos speakers."""
# There is no need for all strings here to be unicode, and Py2 cannot import
# modules with unicode names so do not use from __future__ import
# unicode_literals
# https://github.com/SoCo/SoCo/issues/98
#
import logging
from... |
4c12b100531597b2f6356b3512c9adf462122e3d | nova/scheduler/utils.py | nova/scheduler/utils.py | # All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | # All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | Make sure instance_type has extra_specs | Make sure instance_type has extra_specs
Make sure that when scheduling, the instance_type used in filters
contains the 'extra_specs'. This is a bit ugly, but will get cleaned up
with objects.
Fixes bug 1192331
Change-Id: I3614f3a858840c9561b4e618fc30f3d3ae5ac689
| Python | apache-2.0 | n0ano/gantt,n0ano/gantt | # All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | # All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | <commit_before># All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law ... | # All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | # All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | <commit_before># All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law ... |
47a41af1201085a7ed4f75a1a1ad27d38a3dba70 | ansible/roles/pico-web/files/start_competition.py | ansible/roles/pico-web/files/start_competition.py | #!/usr/bin/env python3
# Simple script to programmatically start a competition useful for development
# and testing purposes. Defaults to 1 year.
# If using a custom APP_SETTINGS_FILE, ensure the appropriate
# environment variable is set prior to running this script. This script is best
# run from the pico-web role (... | #!/usr/bin/env python3
# Simple script to programmatically start a competition useful for development
# and testing purposes. Defaults to 1 year.
# If using a custom APP_SETTINGS_FILE, ensure the appropriate
# environment variable is set prior to running this script. This script is best
# run from the pico-web role (... | Add a default Global event | Add a default Global event
| Python | mit | royragsdale/picoCTF,picoCTF/picoCTF,royragsdale/picoCTF,picoCTF/picoCTF,picoCTF/picoCTF,picoCTF/picoCTF,royragsdale/picoCTF,royragsdale/picoCTF,royragsdale/picoCTF,royragsdale/picoCTF,picoCTF/picoCTF,royragsdale/picoCTF,picoCTF/picoCTF | #!/usr/bin/env python3
# Simple script to programmatically start a competition useful for development
# and testing purposes. Defaults to 1 year.
# If using a custom APP_SETTINGS_FILE, ensure the appropriate
# environment variable is set prior to running this script. This script is best
# run from the pico-web role (... | #!/usr/bin/env python3
# Simple script to programmatically start a competition useful for development
# and testing purposes. Defaults to 1 year.
# If using a custom APP_SETTINGS_FILE, ensure the appropriate
# environment variable is set prior to running this script. This script is best
# run from the pico-web role (... | <commit_before>#!/usr/bin/env python3
# Simple script to programmatically start a competition useful for development
# and testing purposes. Defaults to 1 year.
# If using a custom APP_SETTINGS_FILE, ensure the appropriate
# environment variable is set prior to running this script. This script is best
# run from the ... | #!/usr/bin/env python3
# Simple script to programmatically start a competition useful for development
# and testing purposes. Defaults to 1 year.
# If using a custom APP_SETTINGS_FILE, ensure the appropriate
# environment variable is set prior to running this script. This script is best
# run from the pico-web role (... | #!/usr/bin/env python3
# Simple script to programmatically start a competition useful for development
# and testing purposes. Defaults to 1 year.
# If using a custom APP_SETTINGS_FILE, ensure the appropriate
# environment variable is set prior to running this script. This script is best
# run from the pico-web role (... | <commit_before>#!/usr/bin/env python3
# Simple script to programmatically start a competition useful for development
# and testing purposes. Defaults to 1 year.
# If using a custom APP_SETTINGS_FILE, ensure the appropriate
# environment variable is set prior to running this script. This script is best
# run from the ... |
412727440beb678ba3beef78ee0b934d412afe64 | examples/permissionsexample/views.py | examples/permissionsexample/views.py | from djangorestframework.views import View
from djangorestframework.permissions import PerUserThrottling, IsAuthenticated
from django.core.urlresolvers import reverse
class PermissionsExampleView(View):
"""
A container view for permissions examples.
"""
def get(self, request):
return [{'name':... | from djangorestframework.views import View
from djangorestframework.permissions import PerUserThrottling, IsAuthenticated
from django.core.urlresolvers import reverse
class PermissionsExampleView(View):
"""
A container view for permissions examples.
"""
def get(self, request):
return [{'name':... | Add an extra explenation on how to use curl on this view. | Add an extra explenation on how to use curl on this view.
| Python | bsd-2-clause | cyberj/django-rest-framework,johnraz/django-rest-framework,dmwyatt/django-rest-framework,ajaali/django-rest-framework,d0ugal/django-rest-framework,adambain-vokal/django-rest-framework,linovia/django-rest-framework,ticosax/django-rest-framework,xiaotangyuan/django-rest-framework,alacritythief/django-rest-framework,akali... | from djangorestframework.views import View
from djangorestframework.permissions import PerUserThrottling, IsAuthenticated
from django.core.urlresolvers import reverse
class PermissionsExampleView(View):
"""
A container view for permissions examples.
"""
def get(self, request):
return [{'name':... | from djangorestframework.views import View
from djangorestframework.permissions import PerUserThrottling, IsAuthenticated
from django.core.urlresolvers import reverse
class PermissionsExampleView(View):
"""
A container view for permissions examples.
"""
def get(self, request):
return [{'name':... | <commit_before>from djangorestframework.views import View
from djangorestframework.permissions import PerUserThrottling, IsAuthenticated
from django.core.urlresolvers import reverse
class PermissionsExampleView(View):
"""
A container view for permissions examples.
"""
def get(self, request):
r... | from djangorestframework.views import View
from djangorestframework.permissions import PerUserThrottling, IsAuthenticated
from django.core.urlresolvers import reverse
class PermissionsExampleView(View):
"""
A container view for permissions examples.
"""
def get(self, request):
return [{'name':... | from djangorestframework.views import View
from djangorestframework.permissions import PerUserThrottling, IsAuthenticated
from django.core.urlresolvers import reverse
class PermissionsExampleView(View):
"""
A container view for permissions examples.
"""
def get(self, request):
return [{'name':... | <commit_before>from djangorestframework.views import View
from djangorestframework.permissions import PerUserThrottling, IsAuthenticated
from django.core.urlresolvers import reverse
class PermissionsExampleView(View):
"""
A container view for permissions examples.
"""
def get(self, request):
r... |
1bd2bddca6de75f3139f986cb5bb6a76320f192a | axel/cleaner.py | axel/cleaner.py | import datetime
import textwrap
import transmissionrpc
from axel import config
from axel import pb_notify
def clean():
transmission_client = transmissionrpc.Client(
config['transmission']['host'], port=config['transmission']['port']
)
torrents = transmission_client.get_torrents()
now = datet... | import datetime
import textwrap
import transmissionrpc
from axel import config
from axel import pb_notify
def clean():
transmission_client = transmissionrpc.Client(
config['transmission']['host'], port=config['transmission']['port']
)
torrents = transmission_client.get_torrents()
now = datet... | Check stopped torrents when cleaning | Check stopped torrents when cleaning
| Python | mit | craigcabrey/axel | import datetime
import textwrap
import transmissionrpc
from axel import config
from axel import pb_notify
def clean():
transmission_client = transmissionrpc.Client(
config['transmission']['host'], port=config['transmission']['port']
)
torrents = transmission_client.get_torrents()
now = datet... | import datetime
import textwrap
import transmissionrpc
from axel import config
from axel import pb_notify
def clean():
transmission_client = transmissionrpc.Client(
config['transmission']['host'], port=config['transmission']['port']
)
torrents = transmission_client.get_torrents()
now = datet... | <commit_before>import datetime
import textwrap
import transmissionrpc
from axel import config
from axel import pb_notify
def clean():
transmission_client = transmissionrpc.Client(
config['transmission']['host'], port=config['transmission']['port']
)
torrents = transmission_client.get_torrents()
... | import datetime
import textwrap
import transmissionrpc
from axel import config
from axel import pb_notify
def clean():
transmission_client = transmissionrpc.Client(
config['transmission']['host'], port=config['transmission']['port']
)
torrents = transmission_client.get_torrents()
now = datet... | import datetime
import textwrap
import transmissionrpc
from axel import config
from axel import pb_notify
def clean():
transmission_client = transmissionrpc.Client(
config['transmission']['host'], port=config['transmission']['port']
)
torrents = transmission_client.get_torrents()
now = datet... | <commit_before>import datetime
import textwrap
import transmissionrpc
from axel import config
from axel import pb_notify
def clean():
transmission_client = transmissionrpc.Client(
config['transmission']['host'], port=config['transmission']['port']
)
torrents = transmission_client.get_torrents()
... |
3ccd8a0f65a4309d1d07f2d8d921348364586542 | util.py | util.py | #http://www.gefeg.com/edifact/d03a/s3/codes/cl1h.htm
state_names = ['Andhra Pradesh', 'Arunachal Pradesh', 'Assam', 'Bihar', 'Chhattisgarh', 'Goa', 'Gujarat', 'Haryana', 'Himachal Pradesh', 'Jamma and Kashmir', 'Jharkhand', 'Karnataka', 'Kerala', 'Madhya Pradesh', 'Maharashtra', 'Manipur', 'Meghalaya', 'Mizoram', 'Naga... | #http://www.gefeg.com/edifact/d03a/s3/codes/cl1h.htm
#This is a terrible method, but it works for now
state_names = ['Andhra Pradesh', 'Arunachal Pradesh', 'Assam', 'Bihar', 'Chhattisgarh', 'Goa', 'Gujarat', 'Haryana', 'Himachal Pradesh', 'Jamma and Kashmir', 'Jharkhand', 'Karnataka', 'Kerala', 'Madhya Pradesh', 'Mahar... | Add list of abbreviations for each state | Add list of abbreviations for each state
This is a horrible design. Just horrible.
| Python | bsd-3-clause | rkawauchi/IHK,rkawauchi/IHK | #http://www.gefeg.com/edifact/d03a/s3/codes/cl1h.htm
state_names = ['Andhra Pradesh', 'Arunachal Pradesh', 'Assam', 'Bihar', 'Chhattisgarh', 'Goa', 'Gujarat', 'Haryana', 'Himachal Pradesh', 'Jamma and Kashmir', 'Jharkhand', 'Karnataka', 'Kerala', 'Madhya Pradesh', 'Maharashtra', 'Manipur', 'Meghalaya', 'Mizoram', 'Naga... | #http://www.gefeg.com/edifact/d03a/s3/codes/cl1h.htm
#This is a terrible method, but it works for now
state_names = ['Andhra Pradesh', 'Arunachal Pradesh', 'Assam', 'Bihar', 'Chhattisgarh', 'Goa', 'Gujarat', 'Haryana', 'Himachal Pradesh', 'Jamma and Kashmir', 'Jharkhand', 'Karnataka', 'Kerala', 'Madhya Pradesh', 'Mahar... | <commit_before>#http://www.gefeg.com/edifact/d03a/s3/codes/cl1h.htm
state_names = ['Andhra Pradesh', 'Arunachal Pradesh', 'Assam', 'Bihar', 'Chhattisgarh', 'Goa', 'Gujarat', 'Haryana', 'Himachal Pradesh', 'Jamma and Kashmir', 'Jharkhand', 'Karnataka', 'Kerala', 'Madhya Pradesh', 'Maharashtra', 'Manipur', 'Meghalaya', '... | #http://www.gefeg.com/edifact/d03a/s3/codes/cl1h.htm
#This is a terrible method, but it works for now
state_names = ['Andhra Pradesh', 'Arunachal Pradesh', 'Assam', 'Bihar', 'Chhattisgarh', 'Goa', 'Gujarat', 'Haryana', 'Himachal Pradesh', 'Jamma and Kashmir', 'Jharkhand', 'Karnataka', 'Kerala', 'Madhya Pradesh', 'Mahar... | #http://www.gefeg.com/edifact/d03a/s3/codes/cl1h.htm
state_names = ['Andhra Pradesh', 'Arunachal Pradesh', 'Assam', 'Bihar', 'Chhattisgarh', 'Goa', 'Gujarat', 'Haryana', 'Himachal Pradesh', 'Jamma and Kashmir', 'Jharkhand', 'Karnataka', 'Kerala', 'Madhya Pradesh', 'Maharashtra', 'Manipur', 'Meghalaya', 'Mizoram', 'Naga... | <commit_before>#http://www.gefeg.com/edifact/d03a/s3/codes/cl1h.htm
state_names = ['Andhra Pradesh', 'Arunachal Pradesh', 'Assam', 'Bihar', 'Chhattisgarh', 'Goa', 'Gujarat', 'Haryana', 'Himachal Pradesh', 'Jamma and Kashmir', 'Jharkhand', 'Karnataka', 'Kerala', 'Madhya Pradesh', 'Maharashtra', 'Manipur', 'Meghalaya', '... |
a941218e8bacd528cff058d3afaac06e14ac7766 | OpenPNM/PHYS/__GenericPhysics__.py | OpenPNM/PHYS/__GenericPhysics__.py | #! /usr/bin/env python
# -*- coding: utf-8 -*-
# Author: CEF PNM Team
# License: TBD
# Copyright (c) 2012
#from __future__ import print_function
"""
module __GenericPhysics__: Base class to define pore scale physics
==================================================================
.. warning:: The classes of this m... | #! /usr/bin/env python
# -*- coding: utf-8 -*-
# Author: CEF PNM Team
# License: TBD
# Copyright (c) 2012
#from __future__ import print_function
"""
module __GenericPhysics__: Base class to define pore scale physics
==================================================================
.. warning:: The classes of this m... | Revert "Updated docstring for the file (mostly to diagnose/solve a git branch/merge problem)" | Revert "Updated docstring for the file (mostly to diagnose/solve a git branch/merge problem)"
This reverts commit 3bcc40305193f3a46de63f4345812c9c2ee4c27f [formerly e2fe152ba58cfa853637bc5bd805adf0ae9617eb] [formerly 8e549c3bfb3650f08aca2ba204d2904e53aa4ab4].
Former-commit-id: e783ac4d5946403a9d608fe9dffa42212796b40... | Python | mit | TomTranter/OpenPNM,amdouglas/OpenPNM,stadelmanma/OpenPNM,PMEAL/OpenPNM,amdouglas/OpenPNM | #! /usr/bin/env python
# -*- coding: utf-8 -*-
# Author: CEF PNM Team
# License: TBD
# Copyright (c) 2012
#from __future__ import print_function
"""
module __GenericPhysics__: Base class to define pore scale physics
==================================================================
.. warning:: The classes of this m... | #! /usr/bin/env python
# -*- coding: utf-8 -*-
# Author: CEF PNM Team
# License: TBD
# Copyright (c) 2012
#from __future__ import print_function
"""
module __GenericPhysics__: Base class to define pore scale physics
==================================================================
.. warning:: The classes of this m... | <commit_before>#! /usr/bin/env python
# -*- coding: utf-8 -*-
# Author: CEF PNM Team
# License: TBD
# Copyright (c) 2012
#from __future__ import print_function
"""
module __GenericPhysics__: Base class to define pore scale physics
==================================================================
.. warning:: The cl... | #! /usr/bin/env python
# -*- coding: utf-8 -*-
# Author: CEF PNM Team
# License: TBD
# Copyright (c) 2012
#from __future__ import print_function
"""
module __GenericPhysics__: Base class to define pore scale physics
==================================================================
.. warning:: The classes of this m... | #! /usr/bin/env python
# -*- coding: utf-8 -*-
# Author: CEF PNM Team
# License: TBD
# Copyright (c) 2012
#from __future__ import print_function
"""
module __GenericPhysics__: Base class to define pore scale physics
==================================================================
.. warning:: The classes of this m... | <commit_before>#! /usr/bin/env python
# -*- coding: utf-8 -*-
# Author: CEF PNM Team
# License: TBD
# Copyright (c) 2012
#from __future__ import print_function
"""
module __GenericPhysics__: Base class to define pore scale physics
==================================================================
.. warning:: The cl... |
e97e3367585486671a2f30f05ce3e459c9d86f83 | ooo.py | ooo.py | #!/usr/bin/python
import os
import sys
import re
from collections import defaultdict
COMIC_RE = re.compile(r'^\d+ +([^#]+)#(\d+)')
def lines(todofile):
with open(todofile) as todolines:
for line in todolines:
title_match = COMIC_RE.match(line)
if title_match:
# (title, issue)
yield ... | #!/usr/bin/python
import os
import sys
import re
from collections import defaultdict
COMIC_RE = re.compile(r'^\d+ +([^#]+)#([\d.]+)')
def lines(todofile):
with open(todofile) as todolines:
for line in todolines:
title_match = COMIC_RE.match(line)
if title_match:
# (title, issue)
yie... | Handle floating issue numbers better (.5 and .1 issues) | Handle floating issue numbers better (.5 and .1 issues)
| Python | mit | xchewtoyx/comicmgt,xchewtoyx/comicmgt | #!/usr/bin/python
import os
import sys
import re
from collections import defaultdict
COMIC_RE = re.compile(r'^\d+ +([^#]+)#(\d+)')
def lines(todofile):
with open(todofile) as todolines:
for line in todolines:
title_match = COMIC_RE.match(line)
if title_match:
# (title, issue)
yield ... | #!/usr/bin/python
import os
import sys
import re
from collections import defaultdict
COMIC_RE = re.compile(r'^\d+ +([^#]+)#([\d.]+)')
def lines(todofile):
with open(todofile) as todolines:
for line in todolines:
title_match = COMIC_RE.match(line)
if title_match:
# (title, issue)
yie... | <commit_before>#!/usr/bin/python
import os
import sys
import re
from collections import defaultdict
COMIC_RE = re.compile(r'^\d+ +([^#]+)#(\d+)')
def lines(todofile):
with open(todofile) as todolines:
for line in todolines:
title_match = COMIC_RE.match(line)
if title_match:
# (title, issue)... | #!/usr/bin/python
import os
import sys
import re
from collections import defaultdict
COMIC_RE = re.compile(r'^\d+ +([^#]+)#([\d.]+)')
def lines(todofile):
with open(todofile) as todolines:
for line in todolines:
title_match = COMIC_RE.match(line)
if title_match:
# (title, issue)
yie... | #!/usr/bin/python
import os
import sys
import re
from collections import defaultdict
COMIC_RE = re.compile(r'^\d+ +([^#]+)#(\d+)')
def lines(todofile):
with open(todofile) as todolines:
for line in todolines:
title_match = COMIC_RE.match(line)
if title_match:
# (title, issue)
yield ... | <commit_before>#!/usr/bin/python
import os
import sys
import re
from collections import defaultdict
COMIC_RE = re.compile(r'^\d+ +([^#]+)#(\d+)')
def lines(todofile):
with open(todofile) as todolines:
for line in todolines:
title_match = COMIC_RE.match(line)
if title_match:
# (title, issue)... |
db7df35458ac132bb84355df1cf2a5e329ca1d84 | quickphotos/templatetags/quickphotos_tags.py | quickphotos/templatetags/quickphotos_tags.py | from django import template
from quickphotos.models import Photo
register = template.Library()
@register.assignment_tag
def get_latest_photos(user, limit=None):
photos = Photo.objects.filter(user=user)
if limit is not None:
photos = photos[:limit]
return photos
| from django import template
from quickphotos.models import Photo
register = template.Library()
@register.assignment_tag
def get_latest_photos(*args, **kwargs):
limit = kwargs.pop('limit', None)
photos = Photo.objects.all()
if args:
photos = photos.filter(user__in=args)
if limit is not None... | Add support for multiple users photos | Add support for multiple users photos
| Python | bsd-3-clause | blancltd/django-quick-photos,kmlebedev/mezzanine-instagram-quickphotos | from django import template
from quickphotos.models import Photo
register = template.Library()
@register.assignment_tag
def get_latest_photos(user, limit=None):
photos = Photo.objects.filter(user=user)
if limit is not None:
photos = photos[:limit]
return photos
Add support for multiple users p... | from django import template
from quickphotos.models import Photo
register = template.Library()
@register.assignment_tag
def get_latest_photos(*args, **kwargs):
limit = kwargs.pop('limit', None)
photos = Photo.objects.all()
if args:
photos = photos.filter(user__in=args)
if limit is not None... | <commit_before>from django import template
from quickphotos.models import Photo
register = template.Library()
@register.assignment_tag
def get_latest_photos(user, limit=None):
photos = Photo.objects.filter(user=user)
if limit is not None:
photos = photos[:limit]
return photos
<commit_msg>Add s... | from django import template
from quickphotos.models import Photo
register = template.Library()
@register.assignment_tag
def get_latest_photos(*args, **kwargs):
limit = kwargs.pop('limit', None)
photos = Photo.objects.all()
if args:
photos = photos.filter(user__in=args)
if limit is not None... | from django import template
from quickphotos.models import Photo
register = template.Library()
@register.assignment_tag
def get_latest_photos(user, limit=None):
photos = Photo.objects.filter(user=user)
if limit is not None:
photos = photos[:limit]
return photos
Add support for multiple users p... | <commit_before>from django import template
from quickphotos.models import Photo
register = template.Library()
@register.assignment_tag
def get_latest_photos(user, limit=None):
photos = Photo.objects.filter(user=user)
if limit is not None:
photos = photos[:limit]
return photos
<commit_msg>Add s... |
1250d66e60b3b429a1f5f39ecd5beda6e4074ff9 | setup.py | setup.py | from distutils.util import convert_path
import re
from setuptools import setup
import sys
def get_version():
with open(convert_path('cinspect/__init__.py')) as f:
metadata = dict(re.findall("__([a-z]+)__\s*=\s*'([^']+)'", f.read()))
return metadata.get('version', '0.1')
def get_long_description(... | from distutils.util import convert_path
import re
from setuptools import setup
import sys
def get_version():
with open(convert_path('cinspect/__init__.py')) as f:
metadata = dict(re.findall("__([a-z]+)__\s*=\s*'([^']+)'", f.read()))
return metadata.get('version', '0.1')
def get_long_description(... | Install console script only in Py2.x. | Install console script only in Py2.x.
| Python | bsd-3-clause | punchagan/cinspect,punchagan/cinspect | from distutils.util import convert_path
import re
from setuptools import setup
import sys
def get_version():
with open(convert_path('cinspect/__init__.py')) as f:
metadata = dict(re.findall("__([a-z]+)__\s*=\s*'([^']+)'", f.read()))
return metadata.get('version', '0.1')
def get_long_description(... | from distutils.util import convert_path
import re
from setuptools import setup
import sys
def get_version():
with open(convert_path('cinspect/__init__.py')) as f:
metadata = dict(re.findall("__([a-z]+)__\s*=\s*'([^']+)'", f.read()))
return metadata.get('version', '0.1')
def get_long_description(... | <commit_before>from distutils.util import convert_path
import re
from setuptools import setup
import sys
def get_version():
with open(convert_path('cinspect/__init__.py')) as f:
metadata = dict(re.findall("__([a-z]+)__\s*=\s*'([^']+)'", f.read()))
return metadata.get('version', '0.1')
def get_lo... | from distutils.util import convert_path
import re
from setuptools import setup
import sys
def get_version():
with open(convert_path('cinspect/__init__.py')) as f:
metadata = dict(re.findall("__([a-z]+)__\s*=\s*'([^']+)'", f.read()))
return metadata.get('version', '0.1')
def get_long_description(... | from distutils.util import convert_path
import re
from setuptools import setup
import sys
def get_version():
with open(convert_path('cinspect/__init__.py')) as f:
metadata = dict(re.findall("__([a-z]+)__\s*=\s*'([^']+)'", f.read()))
return metadata.get('version', '0.1')
def get_long_description(... | <commit_before>from distutils.util import convert_path
import re
from setuptools import setup
import sys
def get_version():
with open(convert_path('cinspect/__init__.py')) as f:
metadata = dict(re.findall("__([a-z]+)__\s*=\s*'([^']+)'", f.read()))
return metadata.get('version', '0.1')
def get_lo... |
62b14019420aa5fe897884d534b606fbe3c1eaa6 | setup.py | setup.py | from setuptools import setup, find_packages
setup(
name='zeit.calendar',
version='1.6.12.dev0',
author='gocept, Zeit Online',
author_email='[email protected]',
url='http://www.zeit.de/',
description="vivi calendar",
packages=find_packages('src'),
package_dir={'': 'src'},
include_... | from setuptools import setup, find_packages
setup(
name='zeit.calendar',
version='1.6.12.dev0',
author='gocept, Zeit Online',
author_email='[email protected]',
url='http://www.zeit.de/',
description="vivi calendar",
packages=find_packages('src'),
package_dir={'': 'src'},
include_... | Declare dependency (belongs to commit:b56fc64) | Declare dependency (belongs to commit:b56fc64)
| Python | bsd-3-clause | ZeitOnline/zeit.calendar,ZeitOnline/zeit.calendar,ZeitOnline/zeit.calendar | from setuptools import setup, find_packages
setup(
name='zeit.calendar',
version='1.6.12.dev0',
author='gocept, Zeit Online',
author_email='[email protected]',
url='http://www.zeit.de/',
description="vivi calendar",
packages=find_packages('src'),
package_dir={'': 'src'},
include_... | from setuptools import setup, find_packages
setup(
name='zeit.calendar',
version='1.6.12.dev0',
author='gocept, Zeit Online',
author_email='[email protected]',
url='http://www.zeit.de/',
description="vivi calendar",
packages=find_packages('src'),
package_dir={'': 'src'},
include_... | <commit_before>from setuptools import setup, find_packages
setup(
name='zeit.calendar',
version='1.6.12.dev0',
author='gocept, Zeit Online',
author_email='[email protected]',
url='http://www.zeit.de/',
description="vivi calendar",
packages=find_packages('src'),
package_dir={'': 'src'... | from setuptools import setup, find_packages
setup(
name='zeit.calendar',
version='1.6.12.dev0',
author='gocept, Zeit Online',
author_email='[email protected]',
url='http://www.zeit.de/',
description="vivi calendar",
packages=find_packages('src'),
package_dir={'': 'src'},
include_... | from setuptools import setup, find_packages
setup(
name='zeit.calendar',
version='1.6.12.dev0',
author='gocept, Zeit Online',
author_email='[email protected]',
url='http://www.zeit.de/',
description="vivi calendar",
packages=find_packages('src'),
package_dir={'': 'src'},
include_... | <commit_before>from setuptools import setup, find_packages
setup(
name='zeit.calendar',
version='1.6.12.dev0',
author='gocept, Zeit Online',
author_email='[email protected]',
url='http://www.zeit.de/',
description="vivi calendar",
packages=find_packages('src'),
package_dir={'': 'src'... |
d63460fc3b7f6baf79ea05c22712b461711fa01c | setup.py | setup.py | #!/usr/bin/env python
from setuptools import setup, find_packages # This setup relies on setuptools since distutils is insufficient and badly hacked code
version = '3.1.6.dev0'
author = 'David-Leon Pohl, Jens Janssen'
author_email = '[email protected], [email protected]'
# requirements for core functi... | #!/usr/bin/env python
from setuptools import setup, find_packages # This setup relies on setuptools since distutils is insufficient and badly hacked code
version = '3.1.7'
author = 'Yannick Dieter, David-Leon Pohl, Jens Janssen'
author_email = '[email protected], [email protected], [email protected]... | Increase version 3.1.6 -> 3.1.7 | Increase version 3.1.6 -> 3.1.7
| Python | mit | SiLab-Bonn/pixel_clusterizer | #!/usr/bin/env python
from setuptools import setup, find_packages # This setup relies on setuptools since distutils is insufficient and badly hacked code
version = '3.1.6.dev0'
author = 'David-Leon Pohl, Jens Janssen'
author_email = '[email protected], [email protected]'
# requirements for core functi... | #!/usr/bin/env python
from setuptools import setup, find_packages # This setup relies on setuptools since distutils is insufficient and badly hacked code
version = '3.1.7'
author = 'Yannick Dieter, David-Leon Pohl, Jens Janssen'
author_email = '[email protected], [email protected], [email protected]... | <commit_before>#!/usr/bin/env python
from setuptools import setup, find_packages # This setup relies on setuptools since distutils is insufficient and badly hacked code
version = '3.1.6.dev0'
author = 'David-Leon Pohl, Jens Janssen'
author_email = '[email protected], [email protected]'
# requirements ... | #!/usr/bin/env python
from setuptools import setup, find_packages # This setup relies on setuptools since distutils is insufficient and badly hacked code
version = '3.1.7'
author = 'Yannick Dieter, David-Leon Pohl, Jens Janssen'
author_email = '[email protected], [email protected], [email protected]... | #!/usr/bin/env python
from setuptools import setup, find_packages # This setup relies on setuptools since distutils is insufficient and badly hacked code
version = '3.1.6.dev0'
author = 'David-Leon Pohl, Jens Janssen'
author_email = '[email protected], [email protected]'
# requirements for core functi... | <commit_before>#!/usr/bin/env python
from setuptools import setup, find_packages # This setup relies on setuptools since distutils is insufficient and badly hacked code
version = '3.1.6.dev0'
author = 'David-Leon Pohl, Jens Janssen'
author_email = '[email protected], [email protected]'
# requirements ... |
ab505406a414bf76f1921e6ab8c998ae59339228 | setup.py | setup.py | import os
from setuptools import setup, find_packages
from shavar import __version__
here = os.path.abspath(os.path.dirname(__file__))
with open(os.path.join(here, 'README.md')) as f:
README = f.read()
with open(os.path.join(here, 'CHANGES.txt')) as f:
CHANGES = f.read()
with open(os.path.join(here, 'requireme... | import os
from setuptools import setup, find_packages
from shavar import __version__
here = os.path.abspath(os.path.dirname(__file__))
with open(os.path.join(here, 'README.md')) as f:
README = f.read()
with open(os.path.join(here, 'CHANGES.txt')) as f:
CHANGES = f.read()
with open(os.path.join(here, 'requireme... | Add new author Bumping commit and mention additional contributor to Shavar | Add new author
Bumping commit and mention additional contributor to Shavar
| Python | mpl-2.0 | mozilla-services/shavar,mozilla-services/shavar | import os
from setuptools import setup, find_packages
from shavar import __version__
here = os.path.abspath(os.path.dirname(__file__))
with open(os.path.join(here, 'README.md')) as f:
README = f.read()
with open(os.path.join(here, 'CHANGES.txt')) as f:
CHANGES = f.read()
with open(os.path.join(here, 'requireme... | import os
from setuptools import setup, find_packages
from shavar import __version__
here = os.path.abspath(os.path.dirname(__file__))
with open(os.path.join(here, 'README.md')) as f:
README = f.read()
with open(os.path.join(here, 'CHANGES.txt')) as f:
CHANGES = f.read()
with open(os.path.join(here, 'requireme... | <commit_before>import os
from setuptools import setup, find_packages
from shavar import __version__
here = os.path.abspath(os.path.dirname(__file__))
with open(os.path.join(here, 'README.md')) as f:
README = f.read()
with open(os.path.join(here, 'CHANGES.txt')) as f:
CHANGES = f.read()
with open(os.path.join(h... | import os
from setuptools import setup, find_packages
from shavar import __version__
here = os.path.abspath(os.path.dirname(__file__))
with open(os.path.join(here, 'README.md')) as f:
README = f.read()
with open(os.path.join(here, 'CHANGES.txt')) as f:
CHANGES = f.read()
with open(os.path.join(here, 'requireme... | import os
from setuptools import setup, find_packages
from shavar import __version__
here = os.path.abspath(os.path.dirname(__file__))
with open(os.path.join(here, 'README.md')) as f:
README = f.read()
with open(os.path.join(here, 'CHANGES.txt')) as f:
CHANGES = f.read()
with open(os.path.join(here, 'requireme... | <commit_before>import os
from setuptools import setup, find_packages
from shavar import __version__
here = os.path.abspath(os.path.dirname(__file__))
with open(os.path.join(here, 'README.md')) as f:
README = f.read()
with open(os.path.join(here, 'CHANGES.txt')) as f:
CHANGES = f.read()
with open(os.path.join(h... |
236aca020d200a7e12b8c4659928c79b95c464cd | setup.py | setup.py | #!/usr/bin/env python
import sys
from setuptools import setup
from ts3 import __version__
tests_require = ['mock']
if sys.version < '2.7':
tests_require.append('unittest2')
setup(
name="python-ts3",
version=__version__,
description="TS3 ServerQuery library for Python",
author="Andrew Willaims",... | #!/usr/bin/env python
import sys
from setuptools import setup
from ts3 import __version__
tests_require = ['mock']
if sys.version < '2.7':
tests_require.append('unittest2')
tests_require.append('ordereddict')
setup(
name="python-ts3",
version=__version__,
description="TS3 ServerQuery library ... | Add ordereddict package for Python 2.6 | Add ordereddict package for Python 2.6 | Python | bsd-3-clause | nikdoof/python-ts3,ryanbentley/python-ts3 | #!/usr/bin/env python
import sys
from setuptools import setup
from ts3 import __version__
tests_require = ['mock']
if sys.version < '2.7':
tests_require.append('unittest2')
setup(
name="python-ts3",
version=__version__,
description="TS3 ServerQuery library for Python",
author="Andrew Willaims",... | #!/usr/bin/env python
import sys
from setuptools import setup
from ts3 import __version__
tests_require = ['mock']
if sys.version < '2.7':
tests_require.append('unittest2')
tests_require.append('ordereddict')
setup(
name="python-ts3",
version=__version__,
description="TS3 ServerQuery library ... | <commit_before>#!/usr/bin/env python
import sys
from setuptools import setup
from ts3 import __version__
tests_require = ['mock']
if sys.version < '2.7':
tests_require.append('unittest2')
setup(
name="python-ts3",
version=__version__,
description="TS3 ServerQuery library for Python",
author="An... | #!/usr/bin/env python
import sys
from setuptools import setup
from ts3 import __version__
tests_require = ['mock']
if sys.version < '2.7':
tests_require.append('unittest2')
tests_require.append('ordereddict')
setup(
name="python-ts3",
version=__version__,
description="TS3 ServerQuery library ... | #!/usr/bin/env python
import sys
from setuptools import setup
from ts3 import __version__
tests_require = ['mock']
if sys.version < '2.7':
tests_require.append('unittest2')
setup(
name="python-ts3",
version=__version__,
description="TS3 ServerQuery library for Python",
author="Andrew Willaims",... | <commit_before>#!/usr/bin/env python
import sys
from setuptools import setup
from ts3 import __version__
tests_require = ['mock']
if sys.version < '2.7':
tests_require.append('unittest2')
setup(
name="python-ts3",
version=__version__,
description="TS3 ServerQuery library for Python",
author="An... |
7c713ac412a2895505ce64865330e55d026e8239 | setup.py | setup.py | import os
from setuptools import find_packages, setup
from asgiref import __version__
# We use the README as the long_description
readme_path = os.path.join(os.path.dirname(__file__), "README.rst")
setup(
name='asgiref',
version=__version__,
url='http://github.com/django/asgiref/',
author='Django So... | import os
from setuptools import find_packages, setup
from asgiref import __version__
# We use the README as the long_description
readme_path = os.path.join(os.path.dirname(__file__), "README.rst")
setup(
name='asgiref',
version=__version__,
url='http://github.com/django/asgiref/',
author='Django So... | Change timeout requirement to use semver comparator | Change timeout requirement to use semver comparator
| Python | bsd-3-clause | django/asgiref | import os
from setuptools import find_packages, setup
from asgiref import __version__
# We use the README as the long_description
readme_path = os.path.join(os.path.dirname(__file__), "README.rst")
setup(
name='asgiref',
version=__version__,
url='http://github.com/django/asgiref/',
author='Django So... | import os
from setuptools import find_packages, setup
from asgiref import __version__
# We use the README as the long_description
readme_path = os.path.join(os.path.dirname(__file__), "README.rst")
setup(
name='asgiref',
version=__version__,
url='http://github.com/django/asgiref/',
author='Django So... | <commit_before>import os
from setuptools import find_packages, setup
from asgiref import __version__
# We use the README as the long_description
readme_path = os.path.join(os.path.dirname(__file__), "README.rst")
setup(
name='asgiref',
version=__version__,
url='http://github.com/django/asgiref/',
au... | import os
from setuptools import find_packages, setup
from asgiref import __version__
# We use the README as the long_description
readme_path = os.path.join(os.path.dirname(__file__), "README.rst")
setup(
name='asgiref',
version=__version__,
url='http://github.com/django/asgiref/',
author='Django So... | import os
from setuptools import find_packages, setup
from asgiref import __version__
# We use the README as the long_description
readme_path = os.path.join(os.path.dirname(__file__), "README.rst")
setup(
name='asgiref',
version=__version__,
url='http://github.com/django/asgiref/',
author='Django So... | <commit_before>import os
from setuptools import find_packages, setup
from asgiref import __version__
# We use the README as the long_description
readme_path = os.path.join(os.path.dirname(__file__), "README.rst")
setup(
name='asgiref',
version=__version__,
url='http://github.com/django/asgiref/',
au... |
43b1f8c2f4d2f46817e81a3ba57e64ad2e602197 | setup.py | setup.py | # -*- coding: utf-8 -*-
from setuptools import setup
from setuptools import find_packages
setup(
name="threat_intel",
version='0.0.7',
provides=['threat_intel'],
author="Yelp Security",
url='https://github.com/Yelp/threat_intel',
setup_requires='setuptools',
license='Copyright 2015 Yelp',... | # -*- coding: utf-8 -*-
from setuptools import find_packages
from setuptools import setup
setup(
name="threat_intel",
version='0.0.8',
provides=['threat_intel'],
author="Yelp Security",
url='https://github.com/Yelp/threat_intel',
setup_requires='setuptools',
license='Copyright 2015 Yelp',
... | Reorder imports and bump version | Reorder imports and bump version
| Python | mit | megancarney/threat_intel,Yelp/threat_intel,SYNchroACK/threat_intel | # -*- coding: utf-8 -*-
from setuptools import setup
from setuptools import find_packages
setup(
name="threat_intel",
version='0.0.7',
provides=['threat_intel'],
author="Yelp Security",
url='https://github.com/Yelp/threat_intel',
setup_requires='setuptools',
license='Copyright 2015 Yelp',... | # -*- coding: utf-8 -*-
from setuptools import find_packages
from setuptools import setup
setup(
name="threat_intel",
version='0.0.8',
provides=['threat_intel'],
author="Yelp Security",
url='https://github.com/Yelp/threat_intel',
setup_requires='setuptools',
license='Copyright 2015 Yelp',
... | <commit_before># -*- coding: utf-8 -*-
from setuptools import setup
from setuptools import find_packages
setup(
name="threat_intel",
version='0.0.7',
provides=['threat_intel'],
author="Yelp Security",
url='https://github.com/Yelp/threat_intel',
setup_requires='setuptools',
license='Copyri... | # -*- coding: utf-8 -*-
from setuptools import find_packages
from setuptools import setup
setup(
name="threat_intel",
version='0.0.8',
provides=['threat_intel'],
author="Yelp Security",
url='https://github.com/Yelp/threat_intel',
setup_requires='setuptools',
license='Copyright 2015 Yelp',
... | # -*- coding: utf-8 -*-
from setuptools import setup
from setuptools import find_packages
setup(
name="threat_intel",
version='0.0.7',
provides=['threat_intel'],
author="Yelp Security",
url='https://github.com/Yelp/threat_intel',
setup_requires='setuptools',
license='Copyright 2015 Yelp',... | <commit_before># -*- coding: utf-8 -*-
from setuptools import setup
from setuptools import find_packages
setup(
name="threat_intel",
version='0.0.7',
provides=['threat_intel'],
author="Yelp Security",
url='https://github.com/Yelp/threat_intel',
setup_requires='setuptools',
license='Copyri... |
9b0eb8ca3dcefe350d6fa463ca90ce0fed0c1bc7 | setup.py | setup.py | #!/usr/bin/env python
#:coding=utf-8:
from setuptools import setup, find_packages
from beproud.django.commons import VERSION
def read(filename):
with open(filename) as f:
return f.read()
setup(
name='beproud.django.commons',
version=VERSION,
description='Common utilities for Django',
lo... | #!/usr/bin/env python
#:coding=utf-8:
from setuptools import setup, find_packages
from beproud.django.commons import VERSION
def read(filename):
with open(filename) as f:
return f.read()
setup(
name='beproud.django.commons',
version=VERSION,
description='Common utilities for Django',
lo... | Add missing classifiers: py36, dj versions. | Add missing classifiers: py36, dj versions.
| Python | bsd-2-clause | beproud/bpcommons,beproud/bpcommons | #!/usr/bin/env python
#:coding=utf-8:
from setuptools import setup, find_packages
from beproud.django.commons import VERSION
def read(filename):
with open(filename) as f:
return f.read()
setup(
name='beproud.django.commons',
version=VERSION,
description='Common utilities for Django',
lo... | #!/usr/bin/env python
#:coding=utf-8:
from setuptools import setup, find_packages
from beproud.django.commons import VERSION
def read(filename):
with open(filename) as f:
return f.read()
setup(
name='beproud.django.commons',
version=VERSION,
description='Common utilities for Django',
lo... | <commit_before>#!/usr/bin/env python
#:coding=utf-8:
from setuptools import setup, find_packages
from beproud.django.commons import VERSION
def read(filename):
with open(filename) as f:
return f.read()
setup(
name='beproud.django.commons',
version=VERSION,
description='Common utilities for ... | #!/usr/bin/env python
#:coding=utf-8:
from setuptools import setup, find_packages
from beproud.django.commons import VERSION
def read(filename):
with open(filename) as f:
return f.read()
setup(
name='beproud.django.commons',
version=VERSION,
description='Common utilities for Django',
lo... | #!/usr/bin/env python
#:coding=utf-8:
from setuptools import setup, find_packages
from beproud.django.commons import VERSION
def read(filename):
with open(filename) as f:
return f.read()
setup(
name='beproud.django.commons',
version=VERSION,
description='Common utilities for Django',
lo... | <commit_before>#!/usr/bin/env python
#:coding=utf-8:
from setuptools import setup, find_packages
from beproud.django.commons import VERSION
def read(filename):
with open(filename) as f:
return f.read()
setup(
name='beproud.django.commons',
version=VERSION,
description='Common utilities for ... |
6037d11a8da5ea15c8de468dd730670ba10a44c6 | setup.py | setup.py | try:
from setuptools import setup
except ImportError:
from distutils.core import setup
import toml
with open("README.rst") as readme_file:
readme_string = readme_file.read()
setup(
name="toml",
version=toml.__version__,
description="Python Library for Tom's Obvious, Minimal Language",
aut... | try:
from setuptools import setup
except ImportError:
from distutils.core import setup
import toml
with open("README.rst") as readme_file:
readme_string = readme_file.read()
setup(
name="toml",
version=toml.__version__,
description="Python Library for Tom's Obvious, Minimal Language",
aut... | Add trove classifier for license | Add trove classifier for license
The trove classifiers are listed on PyPI to help users know -- at a
glance -- what license the project uses. Helps users decide if the
library is appropriate for integration. A full list of available trove
classifiers can be found at:
https://pypi.org/pypi?%3Aaction=list_classifiers
... | Python | mit | uiri/toml,uiri/toml | try:
from setuptools import setup
except ImportError:
from distutils.core import setup
import toml
with open("README.rst") as readme_file:
readme_string = readme_file.read()
setup(
name="toml",
version=toml.__version__,
description="Python Library for Tom's Obvious, Minimal Language",
aut... | try:
from setuptools import setup
except ImportError:
from distutils.core import setup
import toml
with open("README.rst") as readme_file:
readme_string = readme_file.read()
setup(
name="toml",
version=toml.__version__,
description="Python Library for Tom's Obvious, Minimal Language",
aut... | <commit_before>try:
from setuptools import setup
except ImportError:
from distutils.core import setup
import toml
with open("README.rst") as readme_file:
readme_string = readme_file.read()
setup(
name="toml",
version=toml.__version__,
description="Python Library for Tom's Obvious, Minimal Lan... | try:
from setuptools import setup
except ImportError:
from distutils.core import setup
import toml
with open("README.rst") as readme_file:
readme_string = readme_file.read()
setup(
name="toml",
version=toml.__version__,
description="Python Library for Tom's Obvious, Minimal Language",
aut... | try:
from setuptools import setup
except ImportError:
from distutils.core import setup
import toml
with open("README.rst") as readme_file:
readme_string = readme_file.read()
setup(
name="toml",
version=toml.__version__,
description="Python Library for Tom's Obvious, Minimal Language",
aut... | <commit_before>try:
from setuptools import setup
except ImportError:
from distutils.core import setup
import toml
with open("README.rst") as readme_file:
readme_string = readme_file.read()
setup(
name="toml",
version=toml.__version__,
description="Python Library for Tom's Obvious, Minimal Lan... |
2849473bde1dcc01c530e8d4eb5a406e6c6faa6d | setup.py | setup.py | from distutils.core import setup
with open('README.md') as file:
long_description = file.read()
setup(name='cozify',
version = '0.2.4',
author = 'artanicus',
author_email = '[email protected]',
url = 'https://github.com/Artanicus/python-cozify',
description = ... | from distutils.core import setup
with open('README.rst') as file:
long_description = file.read()
setup(name='cozify',
version = '0.2.4',
author = 'artanicus',
author_email = '[email protected]',
url = 'https://github.com/Artanicus/python-cozify',
description =... | Use README.rst instead of README.md as long description | Use README.rst instead of README.md as long description
| Python | mit | Artanicus/python-cozify,Artanicus/python-cozify | from distutils.core import setup
with open('README.md') as file:
long_description = file.read()
setup(name='cozify',
version = '0.2.4',
author = 'artanicus',
author_email = '[email protected]',
url = 'https://github.com/Artanicus/python-cozify',
description = ... | from distutils.core import setup
with open('README.rst') as file:
long_description = file.read()
setup(name='cozify',
version = '0.2.4',
author = 'artanicus',
author_email = '[email protected]',
url = 'https://github.com/Artanicus/python-cozify',
description =... | <commit_before>from distutils.core import setup
with open('README.md') as file:
long_description = file.read()
setup(name='cozify',
version = '0.2.4',
author = 'artanicus',
author_email = '[email protected]',
url = 'https://github.com/Artanicus/python-cozify',
... | from distutils.core import setup
with open('README.rst') as file:
long_description = file.read()
setup(name='cozify',
version = '0.2.4',
author = 'artanicus',
author_email = '[email protected]',
url = 'https://github.com/Artanicus/python-cozify',
description =... | from distutils.core import setup
with open('README.md') as file:
long_description = file.read()
setup(name='cozify',
version = '0.2.4',
author = 'artanicus',
author_email = '[email protected]',
url = 'https://github.com/Artanicus/python-cozify',
description = ... | <commit_before>from distutils.core import setup
with open('README.md') as file:
long_description = file.read()
setup(name='cozify',
version = '0.2.4',
author = 'artanicus',
author_email = '[email protected]',
url = 'https://github.com/Artanicus/python-cozify',
... |
b8fecc2956f4a979906191a8fa20de3839b1e8cb | setup.py | setup.py | from setuptools import setup
def readme():
with open('README.rst', encoding='utf-8') as f:
return f.read()
setup(name='Clashogram',
version='0.1.23',
description='Clash of Clans war moniting for telegram channels.',
long_description=readme(),
author='Mehdi Sadeghi',
author_... | from setuptools import setup
def readme():
with open('README.rst', encoding='utf-8') as f:
return f.read()
setup(name='Clashogram',
version='0.1.24',
description='Clash of Clans war moniting for telegram channels.',
long_description=readme(),
author='Mehdi Sadeghi',
author_... | Update meta. Bump minor version. | Update meta. Bump minor version.
| Python | mit | mehdisadeghi/clashogram | from setuptools import setup
def readme():
with open('README.rst', encoding='utf-8') as f:
return f.read()
setup(name='Clashogram',
version='0.1.23',
description='Clash of Clans war moniting for telegram channels.',
long_description=readme(),
author='Mehdi Sadeghi',
author_... | from setuptools import setup
def readme():
with open('README.rst', encoding='utf-8') as f:
return f.read()
setup(name='Clashogram',
version='0.1.24',
description='Clash of Clans war moniting for telegram channels.',
long_description=readme(),
author='Mehdi Sadeghi',
author_... | <commit_before>from setuptools import setup
def readme():
with open('README.rst', encoding='utf-8') as f:
return f.read()
setup(name='Clashogram',
version='0.1.23',
description='Clash of Clans war moniting for telegram channels.',
long_description=readme(),
author='Mehdi Sadeghi'... | from setuptools import setup
def readme():
with open('README.rst', encoding='utf-8') as f:
return f.read()
setup(name='Clashogram',
version='0.1.24',
description='Clash of Clans war moniting for telegram channels.',
long_description=readme(),
author='Mehdi Sadeghi',
author_... | from setuptools import setup
def readme():
with open('README.rst', encoding='utf-8') as f:
return f.read()
setup(name='Clashogram',
version='0.1.23',
description='Clash of Clans war moniting for telegram channels.',
long_description=readme(),
author='Mehdi Sadeghi',
author_... | <commit_before>from setuptools import setup
def readme():
with open('README.rst', encoding='utf-8') as f:
return f.read()
setup(name='Clashogram',
version='0.1.23',
description='Clash of Clans war moniting for telegram channels.',
long_description=readme(),
author='Mehdi Sadeghi'... |
3540f827e12960b5ce48608249514051bb02cf61 | setup.py | setup.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# (c) 2012 Urban Airship and Contributors
import os
import sys
import mithril
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
if sys.argv[-1] == 'publish':
os.system('python setup.py sdist upload')
sys.exit()
requir... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# (c) 2012 Urban Airship and Contributors
import os
import sys
import mithril
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
if sys.argv[-1] == 'publish':
os.system('python setup.py sdist upload')
sys.exit()
requir... | Make sure to include migrations! :hurtrealbad: | Make sure to include migrations! :hurtrealbad: | Python | bsd-3-clause | urbanairship/django-mithril,urbanairship/django-mithril | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# (c) 2012 Urban Airship and Contributors
import os
import sys
import mithril
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
if sys.argv[-1] == 'publish':
os.system('python setup.py sdist upload')
sys.exit()
requir... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# (c) 2012 Urban Airship and Contributors
import os
import sys
import mithril
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
if sys.argv[-1] == 'publish':
os.system('python setup.py sdist upload')
sys.exit()
requir... | <commit_before>#!/usr/bin/env python
# -*- coding: utf-8 -*-
# (c) 2012 Urban Airship and Contributors
import os
import sys
import mithril
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
if sys.argv[-1] == 'publish':
os.system('python setup.py sdist upload')
sys... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# (c) 2012 Urban Airship and Contributors
import os
import sys
import mithril
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
if sys.argv[-1] == 'publish':
os.system('python setup.py sdist upload')
sys.exit()
requir... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# (c) 2012 Urban Airship and Contributors
import os
import sys
import mithril
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
if sys.argv[-1] == 'publish':
os.system('python setup.py sdist upload')
sys.exit()
requir... | <commit_before>#!/usr/bin/env python
# -*- coding: utf-8 -*-
# (c) 2012 Urban Airship and Contributors
import os
import sys
import mithril
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
if sys.argv[-1] == 'publish':
os.system('python setup.py sdist upload')
sys... |
2c2c51d5fa0594aa2d160d28c15895ece358cafe | setup.py | setup.py | #!/usr/bin/env python3
from os import curdir, pardir
from os.path import join
from distutils.core import setup
from distutils.extension import Extension
from Cython.Distutils import build_ext
setup(
name = "VapourSynth",
description = "A frameserver for the 21st century",
url = "http://www.vapoursynth.com... | #!/usr/bin/env python3
from os import curdir, pardir
from os.path import join
from distutils.core import setup
from Cython.Distutils import Extension, build_ext
setup(
name = "VapourSynth",
description = "A frameserver for the 21st century",
url = "http://www.vapoursynth.com/",
download_url = "http://... | Use the Cython Extension class so we can place generated C files in the build dir. | Use the Cython Extension class so we can place generated C files in the build dir.
git-svn-id: ac1113e4705722bd5ee69cef058b32c421e857b8@491 f9120d27-2007-6f97-8312-0f4ebfa7710f
| Python | lgpl-2.1 | Kamekameha/vapoursynth,Kamekameha/vapoursynth,Kamekameha/vapoursynth,vapoursynth/vapoursynth,vapoursynth/vapoursynth,Kamekameha/vapoursynth,vapoursynth/vapoursynth,vapoursynth/vapoursynth | #!/usr/bin/env python3
from os import curdir, pardir
from os.path import join
from distutils.core import setup
from distutils.extension import Extension
from Cython.Distutils import build_ext
setup(
name = "VapourSynth",
description = "A frameserver for the 21st century",
url = "http://www.vapoursynth.com... | #!/usr/bin/env python3
from os import curdir, pardir
from os.path import join
from distutils.core import setup
from Cython.Distutils import Extension, build_ext
setup(
name = "VapourSynth",
description = "A frameserver for the 21st century",
url = "http://www.vapoursynth.com/",
download_url = "http://... | <commit_before>#!/usr/bin/env python3
from os import curdir, pardir
from os.path import join
from distutils.core import setup
from distutils.extension import Extension
from Cython.Distutils import build_ext
setup(
name = "VapourSynth",
description = "A frameserver for the 21st century",
url = "http://www.... | #!/usr/bin/env python3
from os import curdir, pardir
from os.path import join
from distutils.core import setup
from Cython.Distutils import Extension, build_ext
setup(
name = "VapourSynth",
description = "A frameserver for the 21st century",
url = "http://www.vapoursynth.com/",
download_url = "http://... | #!/usr/bin/env python3
from os import curdir, pardir
from os.path import join
from distutils.core import setup
from distutils.extension import Extension
from Cython.Distutils import build_ext
setup(
name = "VapourSynth",
description = "A frameserver for the 21st century",
url = "http://www.vapoursynth.com... | <commit_before>#!/usr/bin/env python3
from os import curdir, pardir
from os.path import join
from distutils.core import setup
from distutils.extension import Extension
from Cython.Distutils import build_ext
setup(
name = "VapourSynth",
description = "A frameserver for the 21st century",
url = "http://www.... |
7640675024ecea550c253eba29ba59c2645fc509 | setup.py | setup.py | from setuptools import setup
setup(name='niche_vlaanderen',
version="0.0.1",
description='NICHE Vlaanderen',
url='https://github.com/INBO/niche_vlaanderen',
author='Johan Van de Wauw',
author_email='[email protected]',
license='MIT',
install_requires=[
'pandas'... | from setuptools import setup
requirements = [
'pandas',
'numpy',
]
if sys.version_info < (3, 4):
requirements.append('enum34')
setup(name='niche_vlaanderen',
version="0.0.1",
description='NICHE Vlaanderen',
url='https://github.com/INBO/niche_vlaanderen',
author='Jo... | Add enum34 dependency for older packages | Add enum34 dependency for older packages
| Python | mit | johanvdw/niche_vlaanderen | from setuptools import setup
setup(name='niche_vlaanderen',
version="0.0.1",
description='NICHE Vlaanderen',
url='https://github.com/INBO/niche_vlaanderen',
author='Johan Van de Wauw',
author_email='[email protected]',
license='MIT',
install_requires=[
'pandas'... | from setuptools import setup
requirements = [
'pandas',
'numpy',
]
if sys.version_info < (3, 4):
requirements.append('enum34')
setup(name='niche_vlaanderen',
version="0.0.1",
description='NICHE Vlaanderen',
url='https://github.com/INBO/niche_vlaanderen',
author='Jo... | <commit_before>from setuptools import setup
setup(name='niche_vlaanderen',
version="0.0.1",
description='NICHE Vlaanderen',
url='https://github.com/INBO/niche_vlaanderen',
author='Johan Van de Wauw',
author_email='[email protected]',
license='MIT',
install_requires=[
... | from setuptools import setup
requirements = [
'pandas',
'numpy',
]
if sys.version_info < (3, 4):
requirements.append('enum34')
setup(name='niche_vlaanderen',
version="0.0.1",
description='NICHE Vlaanderen',
url='https://github.com/INBO/niche_vlaanderen',
author='Jo... | from setuptools import setup
setup(name='niche_vlaanderen',
version="0.0.1",
description='NICHE Vlaanderen',
url='https://github.com/INBO/niche_vlaanderen',
author='Johan Van de Wauw',
author_email='[email protected]',
license='MIT',
install_requires=[
'pandas'... | <commit_before>from setuptools import setup
setup(name='niche_vlaanderen',
version="0.0.1",
description='NICHE Vlaanderen',
url='https://github.com/INBO/niche_vlaanderen',
author='Johan Van de Wauw',
author_email='[email protected]',
license='MIT',
install_requires=[
... |
a5f5231e8e55b7052e2525876b60f939598edc91 | setup.py | setup.py | #!/usr/bin/env python3
import os
import re
from setuptools import setup
with open(os.path.join(os.path.dirname(__file__), 'README.rst')) as readme:
long_description = readme.read()
with open(os.path.join(os.path.dirname(__file__), 'pyhdfs', '__init__.py')) as py:
version_match = re.search(r"__version__ = '(.+... | #!/usr/bin/env python3
import os
import re
from setuptools import setup
with open(os.path.join(os.path.dirname(__file__), 'README.rst')) as readme:
long_description = readme.read()
with open(os.path.join(os.path.dirname(__file__), 'pyhdfs', '__init__.py')) as py:
version_match = re.search(r"__version__ = '(.+... | Mark as requiring at least Python 3.6 | Mark as requiring at least Python 3.6
| Python | mit | jingw/pyhdfs,jingw/pyhdfs | #!/usr/bin/env python3
import os
import re
from setuptools import setup
with open(os.path.join(os.path.dirname(__file__), 'README.rst')) as readme:
long_description = readme.read()
with open(os.path.join(os.path.dirname(__file__), 'pyhdfs', '__init__.py')) as py:
version_match = re.search(r"__version__ = '(.+... | #!/usr/bin/env python3
import os
import re
from setuptools import setup
with open(os.path.join(os.path.dirname(__file__), 'README.rst')) as readme:
long_description = readme.read()
with open(os.path.join(os.path.dirname(__file__), 'pyhdfs', '__init__.py')) as py:
version_match = re.search(r"__version__ = '(.+... | <commit_before>#!/usr/bin/env python3
import os
import re
from setuptools import setup
with open(os.path.join(os.path.dirname(__file__), 'README.rst')) as readme:
long_description = readme.read()
with open(os.path.join(os.path.dirname(__file__), 'pyhdfs', '__init__.py')) as py:
version_match = re.search(r"__v... | #!/usr/bin/env python3
import os
import re
from setuptools import setup
with open(os.path.join(os.path.dirname(__file__), 'README.rst')) as readme:
long_description = readme.read()
with open(os.path.join(os.path.dirname(__file__), 'pyhdfs', '__init__.py')) as py:
version_match = re.search(r"__version__ = '(.+... | #!/usr/bin/env python3
import os
import re
from setuptools import setup
with open(os.path.join(os.path.dirname(__file__), 'README.rst')) as readme:
long_description = readme.read()
with open(os.path.join(os.path.dirname(__file__), 'pyhdfs', '__init__.py')) as py:
version_match = re.search(r"__version__ = '(.+... | <commit_before>#!/usr/bin/env python3
import os
import re
from setuptools import setup
with open(os.path.join(os.path.dirname(__file__), 'README.rst')) as readme:
long_description = readme.read()
with open(os.path.join(os.path.dirname(__file__), 'pyhdfs', '__init__.py')) as py:
version_match = re.search(r"__v... |
f9af94cca14665703f56f867083b6a4ff72fa42d | setup.py | setup.py | import os
from setuptools import setup, find_packages
long_description = (
open('README.rst').read()
+ '\n' +
open('CHANGES.txt').read())
setup(name='morepath',
version='0.10.dev0',
description="A micro web-framework with superpowers",
long_description=long_description,
author="Mar... | import os
from setuptools import setup, find_packages
long_description = (
open('README.rst').read()
+ '\n' +
open('CHANGES.txt').read())
setup(name='morepath',
version='0.10.dev0',
description="A micro web-framework with superpowers",
long_description=long_description,
author="Mar... | Remove stale bytecode when running tests. | Remove stale bytecode when running tests.
| Python | bsd-3-clause | taschini/morepath,morepath/morepath,faassen/morepath | import os
from setuptools import setup, find_packages
long_description = (
open('README.rst').read()
+ '\n' +
open('CHANGES.txt').read())
setup(name='morepath',
version='0.10.dev0',
description="A micro web-framework with superpowers",
long_description=long_description,
author="Mar... | import os
from setuptools import setup, find_packages
long_description = (
open('README.rst').read()
+ '\n' +
open('CHANGES.txt').read())
setup(name='morepath',
version='0.10.dev0',
description="A micro web-framework with superpowers",
long_description=long_description,
author="Mar... | <commit_before>import os
from setuptools import setup, find_packages
long_description = (
open('README.rst').read()
+ '\n' +
open('CHANGES.txt').read())
setup(name='morepath',
version='0.10.dev0',
description="A micro web-framework with superpowers",
long_description=long_description,
... | import os
from setuptools import setup, find_packages
long_description = (
open('README.rst').read()
+ '\n' +
open('CHANGES.txt').read())
setup(name='morepath',
version='0.10.dev0',
description="A micro web-framework with superpowers",
long_description=long_description,
author="Mar... | import os
from setuptools import setup, find_packages
long_description = (
open('README.rst').read()
+ '\n' +
open('CHANGES.txt').read())
setup(name='morepath',
version='0.10.dev0',
description="A micro web-framework with superpowers",
long_description=long_description,
author="Mar... | <commit_before>import os
from setuptools import setup, find_packages
long_description = (
open('README.rst').read()
+ '\n' +
open('CHANGES.txt').read())
setup(name='morepath',
version='0.10.dev0',
description="A micro web-framework with superpowers",
long_description=long_description,
... |
43f5221c3ca8f6e22a292c92f0ba02d36c5b03a1 | setup.py | setup.py | #!/usr/bin/env python
import os
from setuptools import setup
def read(fname):
path = os.path.join(os.path.dirname(__file__), fname)
with open(path) as f:
return f.read()
setup(
name='pytest-testdox',
version='1.2.1',
description='A testdox format reporter for pytest',
long_descripti... | #!/usr/bin/env python
import os
from setuptools import setup
def read(fname):
path = os.path.join(os.path.dirname(__file__), fname)
with open(path) as f:
return f.read()
setup(
name='pytest-testdox',
version='1.2.1',
description='A testdox format reporter for pytest',
long_descripti... | Add Python 3 Only classifier and python_requires >= 3.5 | Add Python 3 Only classifier and python_requires >= 3.5
in setup.py
| Python | mit | renanivo/pytest-testdox | #!/usr/bin/env python
import os
from setuptools import setup
def read(fname):
path = os.path.join(os.path.dirname(__file__), fname)
with open(path) as f:
return f.read()
setup(
name='pytest-testdox',
version='1.2.1',
description='A testdox format reporter for pytest',
long_descripti... | #!/usr/bin/env python
import os
from setuptools import setup
def read(fname):
path = os.path.join(os.path.dirname(__file__), fname)
with open(path) as f:
return f.read()
setup(
name='pytest-testdox',
version='1.2.1',
description='A testdox format reporter for pytest',
long_descripti... | <commit_before>#!/usr/bin/env python
import os
from setuptools import setup
def read(fname):
path = os.path.join(os.path.dirname(__file__), fname)
with open(path) as f:
return f.read()
setup(
name='pytest-testdox',
version='1.2.1',
description='A testdox format reporter for pytest',
... | #!/usr/bin/env python
import os
from setuptools import setup
def read(fname):
path = os.path.join(os.path.dirname(__file__), fname)
with open(path) as f:
return f.read()
setup(
name='pytest-testdox',
version='1.2.1',
description='A testdox format reporter for pytest',
long_descripti... | #!/usr/bin/env python
import os
from setuptools import setup
def read(fname):
path = os.path.join(os.path.dirname(__file__), fname)
with open(path) as f:
return f.read()
setup(
name='pytest-testdox',
version='1.2.1',
description='A testdox format reporter for pytest',
long_descripti... | <commit_before>#!/usr/bin/env python
import os
from setuptools import setup
def read(fname):
path = os.path.join(os.path.dirname(__file__), fname)
with open(path) as f:
return f.read()
setup(
name='pytest-testdox',
version='1.2.1',
description='A testdox format reporter for pytest',
... |
2695171199a1992fae699ff6f54ef97ab104fb57 | setup.py | setup.py | from setuptools import setup, find_packages
setup(
name="pyinstrument",
packages=['pyinstrument'],
version="0.12",
description="A call stack profiler for Python. Inspired by Apple's Instruments.app",
author='Joe Rickerby',
author_email='[email protected]',
url='https://github.com/joerick/pyi... | from setuptools import setup, find_packages
setup(
name="pyinstrument",
packages=['pyinstrument'],
version="0.12",
description="A call stack profiler for Python. Inspired by Apple's Instruments.app",
author='Joe Rickerby',
author_email='[email protected]',
url='https://github.com/joerick/pyin... | Add pyinstrument as a commandline entry point | Add pyinstrument as a commandline entry point
| Python | bsd-3-clause | edx/pyinstrument,joerick/pyinstrument,joerick/pyinstrument,joerick/pyinstrument,joerick/pyinstrument,joerick/pyinstrument,joerick/pyinstrument,edx/pyinstrument | from setuptools import setup, find_packages
setup(
name="pyinstrument",
packages=['pyinstrument'],
version="0.12",
description="A call stack profiler for Python. Inspired by Apple's Instruments.app",
author='Joe Rickerby',
author_email='[email protected]',
url='https://github.com/joerick/pyi... | from setuptools import setup, find_packages
setup(
name="pyinstrument",
packages=['pyinstrument'],
version="0.12",
description="A call stack profiler for Python. Inspired by Apple's Instruments.app",
author='Joe Rickerby',
author_email='[email protected]',
url='https://github.com/joerick/pyin... | <commit_before>from setuptools import setup, find_packages
setup(
name="pyinstrument",
packages=['pyinstrument'],
version="0.12",
description="A call stack profiler for Python. Inspired by Apple's Instruments.app",
author='Joe Rickerby',
author_email='[email protected]',
url='https://github.... | from setuptools import setup, find_packages
setup(
name="pyinstrument",
packages=['pyinstrument'],
version="0.12",
description="A call stack profiler for Python. Inspired by Apple's Instruments.app",
author='Joe Rickerby',
author_email='[email protected]',
url='https://github.com/joerick/pyin... | from setuptools import setup, find_packages
setup(
name="pyinstrument",
packages=['pyinstrument'],
version="0.12",
description="A call stack profiler for Python. Inspired by Apple's Instruments.app",
author='Joe Rickerby',
author_email='[email protected]',
url='https://github.com/joerick/pyi... | <commit_before>from setuptools import setup, find_packages
setup(
name="pyinstrument",
packages=['pyinstrument'],
version="0.12",
description="A call stack profiler for Python. Inspired by Apple's Instruments.app",
author='Joe Rickerby',
author_email='[email protected]',
url='https://github.... |
5b97d56f8c8f751896b00c6cb1b3f360ea06ecf2 | setup.py | setup.py | import sys
if sys.version_info < (2, 7):
print sys.stderr, "{}: need Python 2.7 or later.".format(sys.argv[0])
print sys.stderror, "Your python is {}".format(sys.version)
sys.exit(1)
from setuptools import setup
setup(
name = "python-json-logger",
version = "0.0.1",
url = "http://github.com/ma... | import sys
if sys.version_info < (2, 7):
print sys.stderr, "{}: need Python 2.7 or later.".format(sys.argv[0])
print sys.stderror, "Your python is {}".format(sys.version)
sys.exit(1)
from setuptools import setup
setup(
name = "python-json-logger",
version = "0.0.1",
url = "http://github.com/ma... | Use trove classifiers from official list | Use trove classifiers from official list
(aligned with https://pypi.python.org/pypi?%3Aaction=list_classifiers)
| Python | bsd-2-clause | bbc/python-json-logger,madzak/python-json-logger | import sys
if sys.version_info < (2, 7):
print sys.stderr, "{}: need Python 2.7 or later.".format(sys.argv[0])
print sys.stderror, "Your python is {}".format(sys.version)
sys.exit(1)
from setuptools import setup
setup(
name = "python-json-logger",
version = "0.0.1",
url = "http://github.com/ma... | import sys
if sys.version_info < (2, 7):
print sys.stderr, "{}: need Python 2.7 or later.".format(sys.argv[0])
print sys.stderror, "Your python is {}".format(sys.version)
sys.exit(1)
from setuptools import setup
setup(
name = "python-json-logger",
version = "0.0.1",
url = "http://github.com/ma... | <commit_before>import sys
if sys.version_info < (2, 7):
print sys.stderr, "{}: need Python 2.7 or later.".format(sys.argv[0])
print sys.stderror, "Your python is {}".format(sys.version)
sys.exit(1)
from setuptools import setup
setup(
name = "python-json-logger",
version = "0.0.1",
url = "http:... | import sys
if sys.version_info < (2, 7):
print sys.stderr, "{}: need Python 2.7 or later.".format(sys.argv[0])
print sys.stderror, "Your python is {}".format(sys.version)
sys.exit(1)
from setuptools import setup
setup(
name = "python-json-logger",
version = "0.0.1",
url = "http://github.com/ma... | import sys
if sys.version_info < (2, 7):
print sys.stderr, "{}: need Python 2.7 or later.".format(sys.argv[0])
print sys.stderror, "Your python is {}".format(sys.version)
sys.exit(1)
from setuptools import setup
setup(
name = "python-json-logger",
version = "0.0.1",
url = "http://github.com/ma... | <commit_before>import sys
if sys.version_info < (2, 7):
print sys.stderr, "{}: need Python 2.7 or later.".format(sys.argv[0])
print sys.stderror, "Your python is {}".format(sys.version)
sys.exit(1)
from setuptools import setup
setup(
name = "python-json-logger",
version = "0.0.1",
url = "http:... |
37cae8e6f793f8a13a4c13d5333e8a0c9290f42a | setup.py | setup.py | import re
import sys
from setuptools import setup
from setuptools.command.test import test as TestCommand
# Parse the version from the file.
verstrline = open('git_archive_all.py', "rt").read()
VSRE = r"^__version__ = ['\"]([^'\"]*)['\"]"
mo = re.search(VSRE, verstrline, re.M)
if mo:
verstr = mo.group(1)
else:
... | import re
import sys
from setuptools import setup
from setuptools.command.test import test as TestCommand
# Parse the version from the file.
verstrline = open('git_archive_all.py', "rt").read()
VSRE = r"^__version__ = ['\"]([^'\"]*)['\"]"
mo = re.search(VSRE, verstrline, re.M)
if mo:
verstr = mo.group(1)
else:
... | Add missing tests dependency pycodestyle. | Add missing tests dependency pycodestyle.
| Python | mit | Kentzo/git-archive-all | import re
import sys
from setuptools import setup
from setuptools.command.test import test as TestCommand
# Parse the version from the file.
verstrline = open('git_archive_all.py', "rt").read()
VSRE = r"^__version__ = ['\"]([^'\"]*)['\"]"
mo = re.search(VSRE, verstrline, re.M)
if mo:
verstr = mo.group(1)
else:
... | import re
import sys
from setuptools import setup
from setuptools.command.test import test as TestCommand
# Parse the version from the file.
verstrline = open('git_archive_all.py', "rt").read()
VSRE = r"^__version__ = ['\"]([^'\"]*)['\"]"
mo = re.search(VSRE, verstrline, re.M)
if mo:
verstr = mo.group(1)
else:
... | <commit_before>import re
import sys
from setuptools import setup
from setuptools.command.test import test as TestCommand
# Parse the version from the file.
verstrline = open('git_archive_all.py', "rt").read()
VSRE = r"^__version__ = ['\"]([^'\"]*)['\"]"
mo = re.search(VSRE, verstrline, re.M)
if mo:
verstr = mo.gr... | import re
import sys
from setuptools import setup
from setuptools.command.test import test as TestCommand
# Parse the version from the file.
verstrline = open('git_archive_all.py', "rt").read()
VSRE = r"^__version__ = ['\"]([^'\"]*)['\"]"
mo = re.search(VSRE, verstrline, re.M)
if mo:
verstr = mo.group(1)
else:
... | import re
import sys
from setuptools import setup
from setuptools.command.test import test as TestCommand
# Parse the version from the file.
verstrline = open('git_archive_all.py', "rt").read()
VSRE = r"^__version__ = ['\"]([^'\"]*)['\"]"
mo = re.search(VSRE, verstrline, re.M)
if mo:
verstr = mo.group(1)
else:
... | <commit_before>import re
import sys
from setuptools import setup
from setuptools.command.test import test as TestCommand
# Parse the version from the file.
verstrline = open('git_archive_all.py', "rt").read()
VSRE = r"^__version__ = ['\"]([^'\"]*)['\"]"
mo = re.search(VSRE, verstrline, re.M)
if mo:
verstr = mo.gr... |
08ac25ba28162ba68256dc6b6a47afa9af080c3c | setup.py | setup.py | import sys
from setuptools import setup, find_packages
extra_setup = {}
if sys.version_info >= (3,):
extra_setup['use_2to3'] = True
setup(
name='blessings',
version='1.0',
description='A thin, practical wrapper around terminal formatting, positioning, and more',
long_description=open('README.rst... | import sys
from setuptools import setup, find_packages
extra_setup = {}
if sys.version_info >= (3,):
extra_setup['use_2to3'] = True
setup(
name='blessings',
version='1.0',
description='A thin, practical wrapper around terminal formatting, positioning, and more',
long_description=open('README.rst... | Add some keywords to improve PyPI search ranking. | Add some keywords to improve PyPI search ranking.
| Python | mit | tartley/blessings,jquast/blessed,erikrose/blessings | import sys
from setuptools import setup, find_packages
extra_setup = {}
if sys.version_info >= (3,):
extra_setup['use_2to3'] = True
setup(
name='blessings',
version='1.0',
description='A thin, practical wrapper around terminal formatting, positioning, and more',
long_description=open('README.rst... | import sys
from setuptools import setup, find_packages
extra_setup = {}
if sys.version_info >= (3,):
extra_setup['use_2to3'] = True
setup(
name='blessings',
version='1.0',
description='A thin, practical wrapper around terminal formatting, positioning, and more',
long_description=open('README.rst... | <commit_before>import sys
from setuptools import setup, find_packages
extra_setup = {}
if sys.version_info >= (3,):
extra_setup['use_2to3'] = True
setup(
name='blessings',
version='1.0',
description='A thin, practical wrapper around terminal formatting, positioning, and more',
long_description=o... | import sys
from setuptools import setup, find_packages
extra_setup = {}
if sys.version_info >= (3,):
extra_setup['use_2to3'] = True
setup(
name='blessings',
version='1.0',
description='A thin, practical wrapper around terminal formatting, positioning, and more',
long_description=open('README.rst... | import sys
from setuptools import setup, find_packages
extra_setup = {}
if sys.version_info >= (3,):
extra_setup['use_2to3'] = True
setup(
name='blessings',
version='1.0',
description='A thin, practical wrapper around terminal formatting, positioning, and more',
long_description=open('README.rst... | <commit_before>import sys
from setuptools import setup, find_packages
extra_setup = {}
if sys.version_info >= (3,):
extra_setup['use_2to3'] = True
setup(
name='blessings',
version='1.0',
description='A thin, practical wrapper around terminal formatting, positioning, and more',
long_description=o... |
10be723bf9396c3e513d09ce2a16a3aee0eebe36 | setup.py | setup.py | #!/usr/bin/env python
import os
from distutils.core import setup, Extension, Command
from distutils.command.sdist import sdist
from distutils.command.build_py import build_py
from numpy import get_include as get_numpy_include
numpy_includes = get_numpy_include()
ext_modules = [Extension("reproject._overlap_wrappe... | #!/usr/bin/env python
import os
from distutils.core import setup, Extension, Command
from distutils.command.sdist import sdist
from distutils.command.build_py import build_py
from numpy import get_include as get_numpy_include
numpy_includes = get_numpy_include()
ext_modules = [Extension("reproject._overlap_wrappe... | Make sure the package is built before it is tested | Make sure the package is built before it is tested | Python | bsd-3-clause | barentsen/reproject,mwcraig/reproject,astrofrog/reproject,astrofrog/reproject,bsipocz/reproject,barentsen/reproject,barentsen/reproject,astrofrog/reproject,bsipocz/reproject,mwcraig/reproject | #!/usr/bin/env python
import os
from distutils.core import setup, Extension, Command
from distutils.command.sdist import sdist
from distutils.command.build_py import build_py
from numpy import get_include as get_numpy_include
numpy_includes = get_numpy_include()
ext_modules = [Extension("reproject._overlap_wrappe... | #!/usr/bin/env python
import os
from distutils.core import setup, Extension, Command
from distutils.command.sdist import sdist
from distutils.command.build_py import build_py
from numpy import get_include as get_numpy_include
numpy_includes = get_numpy_include()
ext_modules = [Extension("reproject._overlap_wrappe... | <commit_before>#!/usr/bin/env python
import os
from distutils.core import setup, Extension, Command
from distutils.command.sdist import sdist
from distutils.command.build_py import build_py
from numpy import get_include as get_numpy_include
numpy_includes = get_numpy_include()
ext_modules = [Extension("reproject.... | #!/usr/bin/env python
import os
from distutils.core import setup, Extension, Command
from distutils.command.sdist import sdist
from distutils.command.build_py import build_py
from numpy import get_include as get_numpy_include
numpy_includes = get_numpy_include()
ext_modules = [Extension("reproject._overlap_wrappe... | #!/usr/bin/env python
import os
from distutils.core import setup, Extension, Command
from distutils.command.sdist import sdist
from distutils.command.build_py import build_py
from numpy import get_include as get_numpy_include
numpy_includes = get_numpy_include()
ext_modules = [Extension("reproject._overlap_wrappe... | <commit_before>#!/usr/bin/env python
import os
from distutils.core import setup, Extension, Command
from distutils.command.sdist import sdist
from distutils.command.build_py import build_py
from numpy import get_include as get_numpy_include
numpy_includes = get_numpy_include()
ext_modules = [Extension("reproject.... |
049ddc3422579f4e3f7047d61484d67a6d9dd826 | setup.py | setup.py | from distutils.core import setup
setup(
name='pyepub',
version='0.2.3',
packages=['pyepub'],
url='http://blog.alese.it/pyepub',
license='MIT',
author='Gabriele Alese',
author_email='[email protected]',
description='Enhanced EPUB library'
)
| from distutils.core import setup
setup(
name='pyepub',
version='0.2.4',
packages=['pyepub'],
url='http://blog.alese.it/pyepub',
license='MIT',
author='Gabriele Alese',
author_email='[email protected]',
description='Enhanced EPUB library'
)
| Correct a list comprehension which caused node comments to be added to spine and manifest json | Correct a list comprehension which caused node comments to be added to spine and manifest json
| Python | mit | gabalese/pyepub | from distutils.core import setup
setup(
name='pyepub',
version='0.2.3',
packages=['pyepub'],
url='http://blog.alese.it/pyepub',
license='MIT',
author='Gabriele Alese',
author_email='[email protected]',
description='Enhanced EPUB library'
)
Correct a list comprehension which caused node ... | from distutils.core import setup
setup(
name='pyepub',
version='0.2.4',
packages=['pyepub'],
url='http://blog.alese.it/pyepub',
license='MIT',
author='Gabriele Alese',
author_email='[email protected]',
description='Enhanced EPUB library'
)
| <commit_before>from distutils.core import setup
setup(
name='pyepub',
version='0.2.3',
packages=['pyepub'],
url='http://blog.alese.it/pyepub',
license='MIT',
author='Gabriele Alese',
author_email='[email protected]',
description='Enhanced EPUB library'
)
<commit_msg>Correct a list compr... | from distutils.core import setup
setup(
name='pyepub',
version='0.2.4',
packages=['pyepub'],
url='http://blog.alese.it/pyepub',
license='MIT',
author='Gabriele Alese',
author_email='[email protected]',
description='Enhanced EPUB library'
)
| from distutils.core import setup
setup(
name='pyepub',
version='0.2.3',
packages=['pyepub'],
url='http://blog.alese.it/pyepub',
license='MIT',
author='Gabriele Alese',
author_email='[email protected]',
description='Enhanced EPUB library'
)
Correct a list comprehension which caused node ... | <commit_before>from distutils.core import setup
setup(
name='pyepub',
version='0.2.3',
packages=['pyepub'],
url='http://blog.alese.it/pyepub',
license='MIT',
author='Gabriele Alese',
author_email='[email protected]',
description='Enhanced EPUB library'
)
<commit_msg>Correct a list compr... |
162b4c689e14042d043c6de03311fb6049ed94c1 | setup.py | setup.py | from setuptools import setup, find_packages
long_description = '''\
pyimagediet is a Python wrapper around image optimisations tools used to
reduce images size without loss of visual quality. It provides a uniform
interface to tools, easy configuration and integration.
It works on images in JPEG, GIF and PNG formats ... | from setuptools import setup, find_packages
long_description = '''\
pyimagediet is a Python wrapper around image optimisations tools used to
reduce images size without loss of visual quality. It provides a uniform
interface to tools, easy configuration and integration.
It works on images in JPEG, GIF and PNG formats ... | Remove tests from built package | Remove tests from built package
| Python | mit | samastur/pyimagediet | from setuptools import setup, find_packages
long_description = '''\
pyimagediet is a Python wrapper around image optimisations tools used to
reduce images size without loss of visual quality. It provides a uniform
interface to tools, easy configuration and integration.
It works on images in JPEG, GIF and PNG formats ... | from setuptools import setup, find_packages
long_description = '''\
pyimagediet is a Python wrapper around image optimisations tools used to
reduce images size without loss of visual quality. It provides a uniform
interface to tools, easy configuration and integration.
It works on images in JPEG, GIF and PNG formats ... | <commit_before>from setuptools import setup, find_packages
long_description = '''\
pyimagediet is a Python wrapper around image optimisations tools used to
reduce images size without loss of visual quality. It provides a uniform
interface to tools, easy configuration and integration.
It works on images in JPEG, GIF a... | from setuptools import setup, find_packages
long_description = '''\
pyimagediet is a Python wrapper around image optimisations tools used to
reduce images size without loss of visual quality. It provides a uniform
interface to tools, easy configuration and integration.
It works on images in JPEG, GIF and PNG formats ... | from setuptools import setup, find_packages
long_description = '''\
pyimagediet is a Python wrapper around image optimisations tools used to
reduce images size without loss of visual quality. It provides a uniform
interface to tools, easy configuration and integration.
It works on images in JPEG, GIF and PNG formats ... | <commit_before>from setuptools import setup, find_packages
long_description = '''\
pyimagediet is a Python wrapper around image optimisations tools used to
reduce images size without loss of visual quality. It provides a uniform
interface to tools, easy configuration and integration.
It works on images in JPEG, GIF a... |
9fa2cfee9d182eefe918c0303c7966667d9673c9 | tasks.py | tasks.py | from os.path import join
from invoke import Collection
from invocations import docs as _docs, testing
d = 'sites'
# Usage doc/API site (published as docs.paramiko.org)
path = join(d, 'docs')
docs = Collection.from_module(_docs, name='docs', config={
'sphinx.source': path,
'sphinx.target': join(path, '_build... | from os.path import join
from invoke import Collection, task
from invocations import docs as _docs
d = 'sites'
# Usage doc/API site (published as docs.paramiko.org)
path = join(d, 'docs')
docs = Collection.from_module(_docs, name='docs', config={
'sphinx.source': path,
'sphinx.target': join(path, '_build'),... | Replace incorrect import of generic test runner w/ custom task | Replace incorrect import of generic test runner w/ custom task
| Python | lgpl-2.1 | zpzgone/paramiko,CptLemming/paramiko,digitalquacks/paramiko,reaperhulk/paramiko,Automatic/paramiko,selboo/paramiko,jorik041/paramiko,zarr12steven/paramiko,davidbistolas/paramiko,toby82/paramiko,torkil/paramiko,rcorrieri/paramiko,dorianpula/paramiko,thusoy/paramiko,ameily/paramiko,redixin/paramiko,SebastianDeiss/paramik... | from os.path import join
from invoke import Collection
from invocations import docs as _docs, testing
d = 'sites'
# Usage doc/API site (published as docs.paramiko.org)
path = join(d, 'docs')
docs = Collection.from_module(_docs, name='docs', config={
'sphinx.source': path,
'sphinx.target': join(path, '_build... | from os.path import join
from invoke import Collection, task
from invocations import docs as _docs
d = 'sites'
# Usage doc/API site (published as docs.paramiko.org)
path = join(d, 'docs')
docs = Collection.from_module(_docs, name='docs', config={
'sphinx.source': path,
'sphinx.target': join(path, '_build'),... | <commit_before>from os.path import join
from invoke import Collection
from invocations import docs as _docs, testing
d = 'sites'
# Usage doc/API site (published as docs.paramiko.org)
path = join(d, 'docs')
docs = Collection.from_module(_docs, name='docs', config={
'sphinx.source': path,
'sphinx.target': joi... | from os.path import join
from invoke import Collection, task
from invocations import docs as _docs
d = 'sites'
# Usage doc/API site (published as docs.paramiko.org)
path = join(d, 'docs')
docs = Collection.from_module(_docs, name='docs', config={
'sphinx.source': path,
'sphinx.target': join(path, '_build'),... | from os.path import join
from invoke import Collection
from invocations import docs as _docs, testing
d = 'sites'
# Usage doc/API site (published as docs.paramiko.org)
path = join(d, 'docs')
docs = Collection.from_module(_docs, name='docs', config={
'sphinx.source': path,
'sphinx.target': join(path, '_build... | <commit_before>from os.path import join
from invoke import Collection
from invocations import docs as _docs, testing
d = 'sites'
# Usage doc/API site (published as docs.paramiko.org)
path = join(d, 'docs')
docs = Collection.from_module(_docs, name='docs', config={
'sphinx.source': path,
'sphinx.target': joi... |
e39f6f310bf9d65e21aa3a923a836c836b6bcd2e | tests.py | tests.py | from unittest import TestCase
from preconditions import PreconditionError, preconditions
class InvalidPreconditionTests (TestCase):
def test_varargs(self):
self.assertRaises(PreconditionError, preconditions, lambda *a: True)
def test_kwargs(self):
self.assertRaises(PreconditionError, precond... | from unittest import TestCase
from preconditions import PreconditionError, preconditions
class InvalidPreconditionTests (TestCase):
def test_varargs(self):
self.assertRaises(PreconditionError, preconditions, lambda *a: True)
def test_kwargs(self):
self.assertRaises(PreconditionError, precond... | Add a basic precondition, and a relational precondition. | Add a basic precondition, and a relational precondition.
| Python | mit | nejucomo/preconditions | from unittest import TestCase
from preconditions import PreconditionError, preconditions
class InvalidPreconditionTests (TestCase):
def test_varargs(self):
self.assertRaises(PreconditionError, preconditions, lambda *a: True)
def test_kwargs(self):
self.assertRaises(PreconditionError, precond... | from unittest import TestCase
from preconditions import PreconditionError, preconditions
class InvalidPreconditionTests (TestCase):
def test_varargs(self):
self.assertRaises(PreconditionError, preconditions, lambda *a: True)
def test_kwargs(self):
self.assertRaises(PreconditionError, precond... | <commit_before>from unittest import TestCase
from preconditions import PreconditionError, preconditions
class InvalidPreconditionTests (TestCase):
def test_varargs(self):
self.assertRaises(PreconditionError, preconditions, lambda *a: True)
def test_kwargs(self):
self.assertRaises(Preconditio... | from unittest import TestCase
from preconditions import PreconditionError, preconditions
class InvalidPreconditionTests (TestCase):
def test_varargs(self):
self.assertRaises(PreconditionError, preconditions, lambda *a: True)
def test_kwargs(self):
self.assertRaises(PreconditionError, precond... | from unittest import TestCase
from preconditions import PreconditionError, preconditions
class InvalidPreconditionTests (TestCase):
def test_varargs(self):
self.assertRaises(PreconditionError, preconditions, lambda *a: True)
def test_kwargs(self):
self.assertRaises(PreconditionError, precond... | <commit_before>from unittest import TestCase
from preconditions import PreconditionError, preconditions
class InvalidPreconditionTests (TestCase):
def test_varargs(self):
self.assertRaises(PreconditionError, preconditions, lambda *a: True)
def test_kwargs(self):
self.assertRaises(Preconditio... |
a72a7f95af4e8ac03affe5e33bda0a3d57e29fd6 | examples/connect4/connect4.py | examples/connect4/connect4.py | class Connect4(object):
def __init__(self):
self.pieces = [[] for i in xrange(7)]
self.turn = 0
def move(self, column):
for i in xrange(column, column + 7):
if len(self.pieces[i % 7]) < 6:
self.pieces[i % 7].append(self.turn)
self.turn = 1 - s... | class Connect4(object):
def __init__(self):
self.pieces = [[] for i in xrange(7)]
self.turn = 0
def check(self, column):
vectors = ((1, 0), (1, 1), (0, 1), (-1, 1))
for i in xrange(4):
row = []
for j in xrange(-3, 4):
try:
... | Check for winner after every move | Check for winner after every move
| Python | mit | tysonzero/py-ann | class Connect4(object):
def __init__(self):
self.pieces = [[] for i in xrange(7)]
self.turn = 0
def move(self, column):
for i in xrange(column, column + 7):
if len(self.pieces[i % 7]) < 6:
self.pieces[i % 7].append(self.turn)
self.turn = 1 - s... | class Connect4(object):
def __init__(self):
self.pieces = [[] for i in xrange(7)]
self.turn = 0
def check(self, column):
vectors = ((1, 0), (1, 1), (0, 1), (-1, 1))
for i in xrange(4):
row = []
for j in xrange(-3, 4):
try:
... | <commit_before>class Connect4(object):
def __init__(self):
self.pieces = [[] for i in xrange(7)]
self.turn = 0
def move(self, column):
for i in xrange(column, column + 7):
if len(self.pieces[i % 7]) < 6:
self.pieces[i % 7].append(self.turn)
se... | class Connect4(object):
def __init__(self):
self.pieces = [[] for i in xrange(7)]
self.turn = 0
def check(self, column):
vectors = ((1, 0), (1, 1), (0, 1), (-1, 1))
for i in xrange(4):
row = []
for j in xrange(-3, 4):
try:
... | class Connect4(object):
def __init__(self):
self.pieces = [[] for i in xrange(7)]
self.turn = 0
def move(self, column):
for i in xrange(column, column + 7):
if len(self.pieces[i % 7]) < 6:
self.pieces[i % 7].append(self.turn)
self.turn = 1 - s... | <commit_before>class Connect4(object):
def __init__(self):
self.pieces = [[] for i in xrange(7)]
self.turn = 0
def move(self, column):
for i in xrange(column, column + 7):
if len(self.pieces[i % 7]) < 6:
self.pieces[i % 7].append(self.turn)
se... |
5691238ca1ce78d2a48619c61402681acef9dc7e | examples/sequencealignment.py | examples/sequencealignment.py | from alignment.sequence import Sequence
from alignment.vocabulary import Vocabulary
from alignment.sequencealigner import SimpleScoring, GlobalSequenceAligner
# Create sequences to be aligned.
a = Sequence("what a beautiful day".split())
b = Sequence("what a disappointingly bad day".split())
print "Sequence A:", a
pr... | from alignment.sequence import Sequence
from alignment.vocabulary import Vocabulary
from alignment.sequencealigner import SimpleScoring, GlobalSequenceAligner
# Create sequences to be aligned.
a = Sequence('what a beautiful day'.split())
b = Sequence('what a disappointingly bad day'.split())
print 'Sequence A:', a
pr... | Update the sequence alignment example. | Update the sequence alignment example.
| Python | bsd-3-clause | eseraygun/python-entities,eseraygun/python-alignment | from alignment.sequence import Sequence
from alignment.vocabulary import Vocabulary
from alignment.sequencealigner import SimpleScoring, GlobalSequenceAligner
# Create sequences to be aligned.
a = Sequence("what a beautiful day".split())
b = Sequence("what a disappointingly bad day".split())
print "Sequence A:", a
pr... | from alignment.sequence import Sequence
from alignment.vocabulary import Vocabulary
from alignment.sequencealigner import SimpleScoring, GlobalSequenceAligner
# Create sequences to be aligned.
a = Sequence('what a beautiful day'.split())
b = Sequence('what a disappointingly bad day'.split())
print 'Sequence A:', a
pr... | <commit_before>from alignment.sequence import Sequence
from alignment.vocabulary import Vocabulary
from alignment.sequencealigner import SimpleScoring, GlobalSequenceAligner
# Create sequences to be aligned.
a = Sequence("what a beautiful day".split())
b = Sequence("what a disappointingly bad day".split())
print "Seq... | from alignment.sequence import Sequence
from alignment.vocabulary import Vocabulary
from alignment.sequencealigner import SimpleScoring, GlobalSequenceAligner
# Create sequences to be aligned.
a = Sequence('what a beautiful day'.split())
b = Sequence('what a disappointingly bad day'.split())
print 'Sequence A:', a
pr... | from alignment.sequence import Sequence
from alignment.vocabulary import Vocabulary
from alignment.sequencealigner import SimpleScoring, GlobalSequenceAligner
# Create sequences to be aligned.
a = Sequence("what a beautiful day".split())
b = Sequence("what a disappointingly bad day".split())
print "Sequence A:", a
pr... | <commit_before>from alignment.sequence import Sequence
from alignment.vocabulary import Vocabulary
from alignment.sequencealigner import SimpleScoring, GlobalSequenceAligner
# Create sequences to be aligned.
a = Sequence("what a beautiful day".split())
b = Sequence("what a disappointingly bad day".split())
print "Seq... |
8715324d1c466d617fb832841413025b464b7012 | onitu/drivers/dropbox/tests/driver.py | onitu/drivers/dropbox/tests/driver.py | import os
from path import path
from tests.utils.testdriver import TestDriver
from tests.utils.tempdirs import dirs
from onitu.drivers.dropbox.libDropbox import LibDropbox
class Driver(TestDriver):
def __init__(self, *args, **options):
if 'root' not in options:
options['root'] = dirs.create()... | import os
from path import path
from tests.utils.testdriver import TestDriver
from tests.utils.tempdirs import dirs
from onitu.drivers.dropbox.dropboxDriver import dropboxDriver
class Driver(TestDriver):
def __init__(self, *args, **options):
if 'root' not in options:
options['root'] = dirs.cr... | Fix the imports in the tests of dropbox | Fix the imports in the tests of dropbox
| Python | mit | onitu/onitu,onitu/onitu,onitu/onitu | import os
from path import path
from tests.utils.testdriver import TestDriver
from tests.utils.tempdirs import dirs
from onitu.drivers.dropbox.libDropbox import LibDropbox
class Driver(TestDriver):
def __init__(self, *args, **options):
if 'root' not in options:
options['root'] = dirs.create()... | import os
from path import path
from tests.utils.testdriver import TestDriver
from tests.utils.tempdirs import dirs
from onitu.drivers.dropbox.dropboxDriver import dropboxDriver
class Driver(TestDriver):
def __init__(self, *args, **options):
if 'root' not in options:
options['root'] = dirs.cr... | <commit_before>import os
from path import path
from tests.utils.testdriver import TestDriver
from tests.utils.tempdirs import dirs
from onitu.drivers.dropbox.libDropbox import LibDropbox
class Driver(TestDriver):
def __init__(self, *args, **options):
if 'root' not in options:
options['root'] ... | import os
from path import path
from tests.utils.testdriver import TestDriver
from tests.utils.tempdirs import dirs
from onitu.drivers.dropbox.dropboxDriver import dropboxDriver
class Driver(TestDriver):
def __init__(self, *args, **options):
if 'root' not in options:
options['root'] = dirs.cr... | import os
from path import path
from tests.utils.testdriver import TestDriver
from tests.utils.tempdirs import dirs
from onitu.drivers.dropbox.libDropbox import LibDropbox
class Driver(TestDriver):
def __init__(self, *args, **options):
if 'root' not in options:
options['root'] = dirs.create()... | <commit_before>import os
from path import path
from tests.utils.testdriver import TestDriver
from tests.utils.tempdirs import dirs
from onitu.drivers.dropbox.libDropbox import LibDropbox
class Driver(TestDriver):
def __init__(self, *args, **options):
if 'root' not in options:
options['root'] ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.