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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
88fcd9e1ae2a8fe21023816304023526eb7b7e35 | fb_import.py | fb_import.py | import MySQLdb
# Download Guest List.csv from Facebook event page and copy it to a file named
# 'list.csv'. Remove the first line (column title) and the '"'s around each
# name (they cause trouble with MySQL)
filename = "list.csv"
data = open(filename, 'r');
guests = [];
db_host = "" # Add your host
db_user = "" # Ad... | import MySQLdb
import json
# Download Guest List.csv from Facebook event page and copy it to a file named
# 'list.csv'. Remove the first line (column title) and the '"'s around each
# name (they cause trouble with MySQL)
filename = "list.csv"
data = open(filename, 'r')
guests = []
# Config Setup
config_file = open('c... | Use config file in import script | Use config file in import script
| Python | mit | copperwall/Attendance-Checker,copperwall/Attendance-Checker,copperwall/Attendance-Checker | import MySQLdb
# Download Guest List.csv from Facebook event page and copy it to a file named
# 'list.csv'. Remove the first line (column title) and the '"'s around each
# name (they cause trouble with MySQL)
filename = "list.csv"
data = open(filename, 'r');
guests = [];
db_host = "" # Add your host
db_user = "" # Ad... | import MySQLdb
import json
# Download Guest List.csv from Facebook event page and copy it to a file named
# 'list.csv'. Remove the first line (column title) and the '"'s around each
# name (they cause trouble with MySQL)
filename = "list.csv"
data = open(filename, 'r')
guests = []
# Config Setup
config_file = open('c... | <commit_before>import MySQLdb
# Download Guest List.csv from Facebook event page and copy it to a file named
# 'list.csv'. Remove the first line (column title) and the '"'s around each
# name (they cause trouble with MySQL)
filename = "list.csv"
data = open(filename, 'r');
guests = [];
db_host = "" # Add your host
db... | import MySQLdb
import json
# Download Guest List.csv from Facebook event page and copy it to a file named
# 'list.csv'. Remove the first line (column title) and the '"'s around each
# name (they cause trouble with MySQL)
filename = "list.csv"
data = open(filename, 'r')
guests = []
# Config Setup
config_file = open('c... | import MySQLdb
# Download Guest List.csv from Facebook event page and copy it to a file named
# 'list.csv'. Remove the first line (column title) and the '"'s around each
# name (they cause trouble with MySQL)
filename = "list.csv"
data = open(filename, 'r');
guests = [];
db_host = "" # Add your host
db_user = "" # Ad... | <commit_before>import MySQLdb
# Download Guest List.csv from Facebook event page and copy it to a file named
# 'list.csv'. Remove the first line (column title) and the '"'s around each
# name (they cause trouble with MySQL)
filename = "list.csv"
data = open(filename, 'r');
guests = [];
db_host = "" # Add your host
db... |
1f91a0eed0f336ac559cfbca5c4a86f313b48bb5 | tests/test_postgres_processor.py | tests/test_postgres_processor.py | import pytest
import os
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "api.api.settings")
import django
from django.test import TestCase
from scrapi.processing.postgres import PostgresProcessor, Document
from . import utils
from scrapi.linter.document import RawDocument
django.setup()
test_db = PostgresProcessor... | # import pytest
import os
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "api.api.settings")
import django
from django.test import TestCase
from scrapi.processing.postgres import PostgresProcessor, Document
from . import utils
from scrapi.linter.document import RawDocument, NormalizedDocument
django.setup()
test_... | Add test for process normalized | Add test for process normalized
| Python | apache-2.0 | erinspace/scrapi,erinspace/scrapi,fabianvf/scrapi,mehanig/scrapi,CenterForOpenScience/scrapi,CenterForOpenScience/scrapi,felliott/scrapi,felliott/scrapi,fabianvf/scrapi,mehanig/scrapi | import pytest
import os
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "api.api.settings")
import django
from django.test import TestCase
from scrapi.processing.postgres import PostgresProcessor, Document
from . import utils
from scrapi.linter.document import RawDocument
django.setup()
test_db = PostgresProcessor... | # import pytest
import os
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "api.api.settings")
import django
from django.test import TestCase
from scrapi.processing.postgres import PostgresProcessor, Document
from . import utils
from scrapi.linter.document import RawDocument, NormalizedDocument
django.setup()
test_... | <commit_before>import pytest
import os
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "api.api.settings")
import django
from django.test import TestCase
from scrapi.processing.postgres import PostgresProcessor, Document
from . import utils
from scrapi.linter.document import RawDocument
django.setup()
test_db = Po... | # import pytest
import os
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "api.api.settings")
import django
from django.test import TestCase
from scrapi.processing.postgres import PostgresProcessor, Document
from . import utils
from scrapi.linter.document import RawDocument, NormalizedDocument
django.setup()
test_... | import pytest
import os
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "api.api.settings")
import django
from django.test import TestCase
from scrapi.processing.postgres import PostgresProcessor, Document
from . import utils
from scrapi.linter.document import RawDocument
django.setup()
test_db = PostgresProcessor... | <commit_before>import pytest
import os
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "api.api.settings")
import django
from django.test import TestCase
from scrapi.processing.postgres import PostgresProcessor, Document
from . import utils
from scrapi.linter.document import RawDocument
django.setup()
test_db = Po... |
5d39c34994d2c20b02d60d6e9f19cfd62310828b | sumy/models/dom/_paragraph.py | sumy/models/dom/_paragraph.py | # -*- coding: utf8 -*-
from __future__ import absolute_import
from __future__ import division, print_function, unicode_literals
from itertools import chain
from ..._compat import unicode_compatible
from ...utils import cached_property
from ._sentence import Sentence
@unicode_compatible
class Paragraph(object):
... | # -*- coding: utf8 -*-
from __future__ import absolute_import
from __future__ import division, print_function, unicode_literals
from itertools import chain
from ..._compat import unicode_compatible
from ...utils import cached_property
from ._sentence import Sentence
@unicode_compatible
class Paragraph(object):
... | Create immutable objects for paragraph instances | Create immutable objects for paragraph instances
There a lot of paragraph objects in parsed document.
It saves some memory during summarization.
| Python | apache-2.0 | miso-belica/sumy,miso-belica/sumy | # -*- coding: utf8 -*-
from __future__ import absolute_import
from __future__ import division, print_function, unicode_literals
from itertools import chain
from ..._compat import unicode_compatible
from ...utils import cached_property
from ._sentence import Sentence
@unicode_compatible
class Paragraph(object):
... | # -*- coding: utf8 -*-
from __future__ import absolute_import
from __future__ import division, print_function, unicode_literals
from itertools import chain
from ..._compat import unicode_compatible
from ...utils import cached_property
from ._sentence import Sentence
@unicode_compatible
class Paragraph(object):
... | <commit_before># -*- coding: utf8 -*-
from __future__ import absolute_import
from __future__ import division, print_function, unicode_literals
from itertools import chain
from ..._compat import unicode_compatible
from ...utils import cached_property
from ._sentence import Sentence
@unicode_compatible
class Paragrap... | # -*- coding: utf8 -*-
from __future__ import absolute_import
from __future__ import division, print_function, unicode_literals
from itertools import chain
from ..._compat import unicode_compatible
from ...utils import cached_property
from ._sentence import Sentence
@unicode_compatible
class Paragraph(object):
... | # -*- coding: utf8 -*-
from __future__ import absolute_import
from __future__ import division, print_function, unicode_literals
from itertools import chain
from ..._compat import unicode_compatible
from ...utils import cached_property
from ._sentence import Sentence
@unicode_compatible
class Paragraph(object):
... | <commit_before># -*- coding: utf8 -*-
from __future__ import absolute_import
from __future__ import division, print_function, unicode_literals
from itertools import chain
from ..._compat import unicode_compatible
from ...utils import cached_property
from ._sentence import Sentence
@unicode_compatible
class Paragrap... |
ca4dc40c14426a97c532263135b885c45dcc8e77 | account_payment_mode/models/res_partner_bank.py | account_payment_mode/models/res_partner_bank.py | # -*- coding: utf-8 -*-
# © 2016 Akretion (Alexis de Lattre <alexis.delattre@akretion.com>)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from openerp import models, fields
class ResPartnerBank(models.Model):
_inherit = 'res.partner.bank'
# TODO: It doesn't work, I don't understand wh... | # -*- coding: utf-8 -*-
# © 2016 Akretion (Alexis de Lattre <alexis.delattre@akretion.com>)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from openerp import models, fields
class ResPartnerBank(models.Model):
_inherit = 'res.partner.bank'
# I also have to change the label of the field... | Store field acc_type on res.partner.bank, so that we can search and groupby on it | Store field acc_type on res.partner.bank, so that we can search and groupby on it
| Python | agpl-3.0 | CompassionCH/bank-payment,CompassionCH/bank-payment | # -*- coding: utf-8 -*-
# © 2016 Akretion (Alexis de Lattre <alexis.delattre@akretion.com>)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from openerp import models, fields
class ResPartnerBank(models.Model):
_inherit = 'res.partner.bank'
# TODO: It doesn't work, I don't understand wh... | # -*- coding: utf-8 -*-
# © 2016 Akretion (Alexis de Lattre <alexis.delattre@akretion.com>)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from openerp import models, fields
class ResPartnerBank(models.Model):
_inherit = 'res.partner.bank'
# I also have to change the label of the field... | <commit_before># -*- coding: utf-8 -*-
# © 2016 Akretion (Alexis de Lattre <alexis.delattre@akretion.com>)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from openerp import models, fields
class ResPartnerBank(models.Model):
_inherit = 'res.partner.bank'
# TODO: It doesn't work, I don'... | # -*- coding: utf-8 -*-
# © 2016 Akretion (Alexis de Lattre <alexis.delattre@akretion.com>)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from openerp import models, fields
class ResPartnerBank(models.Model):
_inherit = 'res.partner.bank'
# I also have to change the label of the field... | # -*- coding: utf-8 -*-
# © 2016 Akretion (Alexis de Lattre <alexis.delattre@akretion.com>)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from openerp import models, fields
class ResPartnerBank(models.Model):
_inherit = 'res.partner.bank'
# TODO: It doesn't work, I don't understand wh... | <commit_before># -*- coding: utf-8 -*-
# © 2016 Akretion (Alexis de Lattre <alexis.delattre@akretion.com>)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from openerp import models, fields
class ResPartnerBank(models.Model):
_inherit = 'res.partner.bank'
# TODO: It doesn't work, I don'... |
e2e730c7f8fb8b0c536971082374171d1eacdf73 | main.py | main.py | import datetime
import os
import json
import aiohttp
from discord.ext import commands
config = json.load(open('config.json'))
class Bot(commands.Bot):
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
self.session = aiohttp.ClientSession(loop=self.loop)
self.config = ... | import datetime
import os
import json
import aiohttp
import discord
from discord.ext import commands
config = json.load(open('config.json'))
class Bot(commands.Bot):
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
self.session = aiohttp.ClientSession(loop=self.loop)
... | Change game status to -help | Change game status to -help
| Python | mit | r-robles/rd-bot | import datetime
import os
import json
import aiohttp
from discord.ext import commands
config = json.load(open('config.json'))
class Bot(commands.Bot):
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
self.session = aiohttp.ClientSession(loop=self.loop)
self.config = ... | import datetime
import os
import json
import aiohttp
import discord
from discord.ext import commands
config = json.load(open('config.json'))
class Bot(commands.Bot):
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
self.session = aiohttp.ClientSession(loop=self.loop)
... | <commit_before>import datetime
import os
import json
import aiohttp
from discord.ext import commands
config = json.load(open('config.json'))
class Bot(commands.Bot):
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
self.session = aiohttp.ClientSession(loop=self.loop)
... | import datetime
import os
import json
import aiohttp
import discord
from discord.ext import commands
config = json.load(open('config.json'))
class Bot(commands.Bot):
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
self.session = aiohttp.ClientSession(loop=self.loop)
... | import datetime
import os
import json
import aiohttp
from discord.ext import commands
config = json.load(open('config.json'))
class Bot(commands.Bot):
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
self.session = aiohttp.ClientSession(loop=self.loop)
self.config = ... | <commit_before>import datetime
import os
import json
import aiohttp
from discord.ext import commands
config = json.load(open('config.json'))
class Bot(commands.Bot):
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
self.session = aiohttp.ClientSession(loop=self.loop)
... |
2bdd1d4c7ec3dc4013b193810f908dd83c1aab6b | tests/test_abi/test_reversibility_properties.py | tests/test_abi/test_reversibility_properties.py | from hypothesis import (
given,
settings,
)
from eth_abi import (
encode_abi,
decode_abi,
encode_single,
decode_single,
)
from tests.common.strategies import (
multi_strs_values,
single_strs_values,
)
@settings(max_examples=1000)
@given(multi_strs_values)
def test_multi_abi_reversabi... | from hypothesis import (
given,
settings,
)
from eth_abi import (
encode_abi,
decode_abi,
encode_single,
decode_single,
)
from tests.common.strategies import (
multi_strs_values,
single_strs_values,
)
@settings(max_examples=1000)
@given(multi_strs_values)
def test_multi_abi_reversibi... | Fix spelling errors in test names | Fix spelling errors in test names
| Python | mit | pipermerriam/ethereum-abi-utils | from hypothesis import (
given,
settings,
)
from eth_abi import (
encode_abi,
decode_abi,
encode_single,
decode_single,
)
from tests.common.strategies import (
multi_strs_values,
single_strs_values,
)
@settings(max_examples=1000)
@given(multi_strs_values)
def test_multi_abi_reversabi... | from hypothesis import (
given,
settings,
)
from eth_abi import (
encode_abi,
decode_abi,
encode_single,
decode_single,
)
from tests.common.strategies import (
multi_strs_values,
single_strs_values,
)
@settings(max_examples=1000)
@given(multi_strs_values)
def test_multi_abi_reversibi... | <commit_before>from hypothesis import (
given,
settings,
)
from eth_abi import (
encode_abi,
decode_abi,
encode_single,
decode_single,
)
from tests.common.strategies import (
multi_strs_values,
single_strs_values,
)
@settings(max_examples=1000)
@given(multi_strs_values)
def test_mult... | from hypothesis import (
given,
settings,
)
from eth_abi import (
encode_abi,
decode_abi,
encode_single,
decode_single,
)
from tests.common.strategies import (
multi_strs_values,
single_strs_values,
)
@settings(max_examples=1000)
@given(multi_strs_values)
def test_multi_abi_reversibi... | from hypothesis import (
given,
settings,
)
from eth_abi import (
encode_abi,
decode_abi,
encode_single,
decode_single,
)
from tests.common.strategies import (
multi_strs_values,
single_strs_values,
)
@settings(max_examples=1000)
@given(multi_strs_values)
def test_multi_abi_reversabi... | <commit_before>from hypothesis import (
given,
settings,
)
from eth_abi import (
encode_abi,
decode_abi,
encode_single,
decode_single,
)
from tests.common.strategies import (
multi_strs_values,
single_strs_values,
)
@settings(max_examples=1000)
@given(multi_strs_values)
def test_mult... |
2d1798eb26614d87fca94efff25ea0384ae811b5 | Sketches/MPS/Experiments/Likefile2/likefile/TestLikeFile.py | Sketches/MPS/Experiments/Likefile2/likefile/TestLikeFile.py | #!/usr/bin/python
import time
from background import background
from Kamaelia.UI.Pygame.Text import Textbox, TextDisplayer
from LikeFile import LikeFile
background().start()
import Queue
TD = LikeFile(
TextDisplayer(position=(20, 90),
text_height=36,
screen_width... | #!/usr/bin/python
import time
from background import background
from Kamaelia.UI.Pygame.Text import Textbox, TextDisplayer
from LikeFile import LikeFile
background().start()
import Queue
TD = LikeFile(
TextDisplayer(position=(20, 90),
text_height=36,
screen_width... | Test harness changed to forward the message recieved over the like-file interface to the other one, using it's like-file interface | Test harness changed to forward the message recieved over the like-file
interface to the other one, using it's like-file interface
Michael
| Python | apache-2.0 | sparkslabs/kamaelia,sparkslabs/kamaelia,sparkslabs/kamaelia,sparkslabs/kamaelia,sparkslabs/kamaelia,sparkslabs/kamaelia,sparkslabs/kamaelia,sparkslabs/kamaelia,sparkslabs/kamaelia,sparkslabs/kamaelia | #!/usr/bin/python
import time
from background import background
from Kamaelia.UI.Pygame.Text import Textbox, TextDisplayer
from LikeFile import LikeFile
background().start()
import Queue
TD = LikeFile(
TextDisplayer(position=(20, 90),
text_height=36,
screen_width... | #!/usr/bin/python
import time
from background import background
from Kamaelia.UI.Pygame.Text import Textbox, TextDisplayer
from LikeFile import LikeFile
background().start()
import Queue
TD = LikeFile(
TextDisplayer(position=(20, 90),
text_height=36,
screen_width... | <commit_before>#!/usr/bin/python
import time
from background import background
from Kamaelia.UI.Pygame.Text import Textbox, TextDisplayer
from LikeFile import LikeFile
background().start()
import Queue
TD = LikeFile(
TextDisplayer(position=(20, 90),
text_height=36,
... | #!/usr/bin/python
import time
from background import background
from Kamaelia.UI.Pygame.Text import Textbox, TextDisplayer
from LikeFile import LikeFile
background().start()
import Queue
TD = LikeFile(
TextDisplayer(position=(20, 90),
text_height=36,
screen_width... | #!/usr/bin/python
import time
from background import background
from Kamaelia.UI.Pygame.Text import Textbox, TextDisplayer
from LikeFile import LikeFile
background().start()
import Queue
TD = LikeFile(
TextDisplayer(position=(20, 90),
text_height=36,
screen_width... | <commit_before>#!/usr/bin/python
import time
from background import background
from Kamaelia.UI.Pygame.Text import Textbox, TextDisplayer
from LikeFile import LikeFile
background().start()
import Queue
TD = LikeFile(
TextDisplayer(position=(20, 90),
text_height=36,
... |
ff73134e836b3950ba15410bac6e1bfe1dcd6d65 | django_rq/decorators.py | django_rq/decorators.py | from rq.decorators import job as _rq_job
from .queues import get_queue
def job(func_or_queue, connection=None, *args, **kwargs):
"""
The same as RQ's job decorator, but it works automatically works out
the ``connection`` argument from RQ_QUEUES.
And also, it allows simplified ``@job`` syntax to put ... | from django.utils import six
from rq.decorators import job as _rq_job
from .queues import get_queue
def job(func_or_queue, connection=None, *args, **kwargs):
"""
The same as RQ's job decorator, but it works automatically works out
the ``connection`` argument from RQ_QUEUES.
And also, it allows simpl... | Replace basestring to six.string_types. Now python 3.3, 3.2 pass tests. | Replace basestring to six.string_types. Now python 3.3, 3.2 pass tests.
Take django.utils.six dependency
| Python | mit | ryanisnan/django-rq,viaregio/django-rq,lechup/django-rq,viaregio/django-rq,ui/django-rq,1024inc/django-rq,sbussetti/django-rq,meteozond/django-rq,sbussetti/django-rq,ryanisnan/django-rq,ui/django-rq,lechup/django-rq,mjec/django-rq,meteozond/django-rq,1024inc/django-rq,mjec/django-rq | from rq.decorators import job as _rq_job
from .queues import get_queue
def job(func_or_queue, connection=None, *args, **kwargs):
"""
The same as RQ's job decorator, but it works automatically works out
the ``connection`` argument from RQ_QUEUES.
And also, it allows simplified ``@job`` syntax to put ... | from django.utils import six
from rq.decorators import job as _rq_job
from .queues import get_queue
def job(func_or_queue, connection=None, *args, **kwargs):
"""
The same as RQ's job decorator, but it works automatically works out
the ``connection`` argument from RQ_QUEUES.
And also, it allows simpl... | <commit_before>from rq.decorators import job as _rq_job
from .queues import get_queue
def job(func_or_queue, connection=None, *args, **kwargs):
"""
The same as RQ's job decorator, but it works automatically works out
the ``connection`` argument from RQ_QUEUES.
And also, it allows simplified ``@job``... | from django.utils import six
from rq.decorators import job as _rq_job
from .queues import get_queue
def job(func_or_queue, connection=None, *args, **kwargs):
"""
The same as RQ's job decorator, but it works automatically works out
the ``connection`` argument from RQ_QUEUES.
And also, it allows simpl... | from rq.decorators import job as _rq_job
from .queues import get_queue
def job(func_or_queue, connection=None, *args, **kwargs):
"""
The same as RQ's job decorator, but it works automatically works out
the ``connection`` argument from RQ_QUEUES.
And also, it allows simplified ``@job`` syntax to put ... | <commit_before>from rq.decorators import job as _rq_job
from .queues import get_queue
def job(func_or_queue, connection=None, *args, **kwargs):
"""
The same as RQ's job decorator, but it works automatically works out
the ``connection`` argument from RQ_QUEUES.
And also, it allows simplified ``@job``... |
0332284ce3ef43af7d3010688514f457ffaac774 | support/appveyor-build.py | support/appveyor-build.py | #!/usr/bin/env python
# Build the project on AppVeyor.
import os
from subprocess import check_call
build = os.environ['BUILD']
config = os.environ['CONFIG']
path = os.environ['PATH']
cmake_command = ['cmake', '-DFMT_PEDANTIC=ON', '-DCMAKE_BUILD_TYPE=' + config]
if build == 'mingw':
cmake_command.append('-GMinGW Mak... | #!/usr/bin/env python
# Build the project on AppVeyor.
import os
from subprocess import check_call
build = os.environ['BUILD']
config = os.environ['CONFIG']
path = os.environ['PATH']
cmake_command = ['cmake', '-DFMT_PEDANTIC=ON', '-DCMAKE_BUILD_TYPE=' + config]
if build == 'mingw':
cmake_command.append('-GMinGW Mak... | Fix MinGW build on Appveyor by changing search path order | Fix MinGW build on Appveyor by changing search path order
C:\MinGW\bin should go first to prevent executables from older
version of MinGW in C:\MinGW\mingw32 being picked up.
| Python | bsd-2-clause | cppformat/cppformat,seungrye/cppformat,dean0x7d/cppformat,dean0x7d/cppformat,seungrye/cppformat,mojoBrendan/fmt,lightslife/cppformat,nelson4722/cppformat,lightslife/cppformat,blaquee/cppformat,alabuzhev/fmt,lightslife/cppformat,Jopie64/cppformat,cppformat/cppformat,seungrye/cppformat,wangshijin/cppformat,blaquee/cppfor... | #!/usr/bin/env python
# Build the project on AppVeyor.
import os
from subprocess import check_call
build = os.environ['BUILD']
config = os.environ['CONFIG']
path = os.environ['PATH']
cmake_command = ['cmake', '-DFMT_PEDANTIC=ON', '-DCMAKE_BUILD_TYPE=' + config]
if build == 'mingw':
cmake_command.append('-GMinGW Mak... | #!/usr/bin/env python
# Build the project on AppVeyor.
import os
from subprocess import check_call
build = os.environ['BUILD']
config = os.environ['CONFIG']
path = os.environ['PATH']
cmake_command = ['cmake', '-DFMT_PEDANTIC=ON', '-DCMAKE_BUILD_TYPE=' + config]
if build == 'mingw':
cmake_command.append('-GMinGW Mak... | <commit_before>#!/usr/bin/env python
# Build the project on AppVeyor.
import os
from subprocess import check_call
build = os.environ['BUILD']
config = os.environ['CONFIG']
path = os.environ['PATH']
cmake_command = ['cmake', '-DFMT_PEDANTIC=ON', '-DCMAKE_BUILD_TYPE=' + config]
if build == 'mingw':
cmake_command.appe... | #!/usr/bin/env python
# Build the project on AppVeyor.
import os
from subprocess import check_call
build = os.environ['BUILD']
config = os.environ['CONFIG']
path = os.environ['PATH']
cmake_command = ['cmake', '-DFMT_PEDANTIC=ON', '-DCMAKE_BUILD_TYPE=' + config]
if build == 'mingw':
cmake_command.append('-GMinGW Mak... | #!/usr/bin/env python
# Build the project on AppVeyor.
import os
from subprocess import check_call
build = os.environ['BUILD']
config = os.environ['CONFIG']
path = os.environ['PATH']
cmake_command = ['cmake', '-DFMT_PEDANTIC=ON', '-DCMAKE_BUILD_TYPE=' + config]
if build == 'mingw':
cmake_command.append('-GMinGW Mak... | <commit_before>#!/usr/bin/env python
# Build the project on AppVeyor.
import os
from subprocess import check_call
build = os.environ['BUILD']
config = os.environ['CONFIG']
path = os.environ['PATH']
cmake_command = ['cmake', '-DFMT_PEDANTIC=ON', '-DCMAKE_BUILD_TYPE=' + config]
if build == 'mingw':
cmake_command.appe... |
d1a2a4c2ee7fda2bfde369bb6311719e72c75a3d | corehq/blobs/tasks.py | corehq/blobs/tasks.py | from __future__ import absolute_import
from datetime import datetime
from celery.task import periodic_task
from celery.schedules import crontab
from corehq.util.datadog.gauges import datadog_counter
from corehq.blobs.models import BlobExpiration
from corehq.blobs import get_blob_db
@periodic_task(run_every=crontab(... | from __future__ import absolute_import
from datetime import datetime
from celery.task import periodic_task
from celery.schedules import crontab
from corehq.util.datadog.gauges import datadog_counter
from corehq.blobs.models import BlobExpiration
from corehq.blobs import get_blob_db
@periodic_task(run_every=crontab(... | Delete expired blobs in batches | Delete expired blobs in batches | Python | bsd-3-clause | dimagi/commcare-hq,dimagi/commcare-hq,dimagi/commcare-hq,dimagi/commcare-hq,dimagi/commcare-hq | from __future__ import absolute_import
from datetime import datetime
from celery.task import periodic_task
from celery.schedules import crontab
from corehq.util.datadog.gauges import datadog_counter
from corehq.blobs.models import BlobExpiration
from corehq.blobs import get_blob_db
@periodic_task(run_every=crontab(... | from __future__ import absolute_import
from datetime import datetime
from celery.task import periodic_task
from celery.schedules import crontab
from corehq.util.datadog.gauges import datadog_counter
from corehq.blobs.models import BlobExpiration
from corehq.blobs import get_blob_db
@periodic_task(run_every=crontab(... | <commit_before>from __future__ import absolute_import
from datetime import datetime
from celery.task import periodic_task
from celery.schedules import crontab
from corehq.util.datadog.gauges import datadog_counter
from corehq.blobs.models import BlobExpiration
from corehq.blobs import get_blob_db
@periodic_task(run... | from __future__ import absolute_import
from datetime import datetime
from celery.task import periodic_task
from celery.schedules import crontab
from corehq.util.datadog.gauges import datadog_counter
from corehq.blobs.models import BlobExpiration
from corehq.blobs import get_blob_db
@periodic_task(run_every=crontab(... | from __future__ import absolute_import
from datetime import datetime
from celery.task import periodic_task
from celery.schedules import crontab
from corehq.util.datadog.gauges import datadog_counter
from corehq.blobs.models import BlobExpiration
from corehq.blobs import get_blob_db
@periodic_task(run_every=crontab(... | <commit_before>from __future__ import absolute_import
from datetime import datetime
from celery.task import periodic_task
from celery.schedules import crontab
from corehq.util.datadog.gauges import datadog_counter
from corehq.blobs.models import BlobExpiration
from corehq.blobs import get_blob_db
@periodic_task(run... |
4e2d0d037c6e028b0ff25042d4283c147801f0a2 | once-internet-is-on-d.py | once-internet-is-on-d.py | """
Author: Ashish Gaikwad <ash.gkwd@gmail.com>
Copyright (c) 2015 Ashish Gaikwad
Description: This daemon will execute command once
Internet is connected. Then it will exit.
"""
import socket
from subprocess import call
import time
commands = [["python", "/usr/bin/beat.sh"]]
def internet(host='8.8.8.8', port=53):
... | """
Author: Ashish Gaikwad <ash.gkwd@gmail.com>
Copyright (c) 2015 Ashish Gaikwad
Description: This daemon will execute command once
Internet is connected. Then it will exit.
"""
import socket
from subprocess import call
import time
commands = [["bash", "/usr/bin/beat.sh"]]
def internet(host='8.8.8.8', port=53):
tr... | FIX - beat.sh is now called by bash and not python | FIX - beat.sh is now called by bash and not python
| Python | mit | ashgkwd/brainy-beats,ashgkwd/brainy-beats | """
Author: Ashish Gaikwad <ash.gkwd@gmail.com>
Copyright (c) 2015 Ashish Gaikwad
Description: This daemon will execute command once
Internet is connected. Then it will exit.
"""
import socket
from subprocess import call
import time
commands = [["python", "/usr/bin/beat.sh"]]
def internet(host='8.8.8.8', port=53):
... | """
Author: Ashish Gaikwad <ash.gkwd@gmail.com>
Copyright (c) 2015 Ashish Gaikwad
Description: This daemon will execute command once
Internet is connected. Then it will exit.
"""
import socket
from subprocess import call
import time
commands = [["bash", "/usr/bin/beat.sh"]]
def internet(host='8.8.8.8', port=53):
tr... | <commit_before>"""
Author: Ashish Gaikwad <ash.gkwd@gmail.com>
Copyright (c) 2015 Ashish Gaikwad
Description: This daemon will execute command once
Internet is connected. Then it will exit.
"""
import socket
from subprocess import call
import time
commands = [["python", "/usr/bin/beat.sh"]]
def internet(host='8.8.8.... | """
Author: Ashish Gaikwad <ash.gkwd@gmail.com>
Copyright (c) 2015 Ashish Gaikwad
Description: This daemon will execute command once
Internet is connected. Then it will exit.
"""
import socket
from subprocess import call
import time
commands = [["bash", "/usr/bin/beat.sh"]]
def internet(host='8.8.8.8', port=53):
tr... | """
Author: Ashish Gaikwad <ash.gkwd@gmail.com>
Copyright (c) 2015 Ashish Gaikwad
Description: This daemon will execute command once
Internet is connected. Then it will exit.
"""
import socket
from subprocess import call
import time
commands = [["python", "/usr/bin/beat.sh"]]
def internet(host='8.8.8.8', port=53):
... | <commit_before>"""
Author: Ashish Gaikwad <ash.gkwd@gmail.com>
Copyright (c) 2015 Ashish Gaikwad
Description: This daemon will execute command once
Internet is connected. Then it will exit.
"""
import socket
from subprocess import call
import time
commands = [["python", "/usr/bin/beat.sh"]]
def internet(host='8.8.8.... |
d98829d34e49b542097b113d17e6216199483986 | rbopt.py | rbopt.py | #-----------------------------------------------------------------------------#
# MODULE DESCRIPTION #
#-----------------------------------------------------------------------------#
"""RedBrick Options Module; contains RBOpt class."""
#------------------------... | #-----------------------------------------------------------------------------#
# MODULE DESCRIPTION #
#-----------------------------------------------------------------------------#
"""RedBrick Options Module; contains RBOpt class."""
#------------------------... | Change to new attribute names. | Change to new attribute names.
| Python | unlicense | gruunday/useradm,gruunday/useradm,gruunday/useradm | #-----------------------------------------------------------------------------#
# MODULE DESCRIPTION #
#-----------------------------------------------------------------------------#
"""RedBrick Options Module; contains RBOpt class."""
#------------------------... | #-----------------------------------------------------------------------------#
# MODULE DESCRIPTION #
#-----------------------------------------------------------------------------#
"""RedBrick Options Module; contains RBOpt class."""
#------------------------... | <commit_before>#-----------------------------------------------------------------------------#
# MODULE DESCRIPTION #
#-----------------------------------------------------------------------------#
"""RedBrick Options Module; contains RBOpt class."""
#---------... | #-----------------------------------------------------------------------------#
# MODULE DESCRIPTION #
#-----------------------------------------------------------------------------#
"""RedBrick Options Module; contains RBOpt class."""
#------------------------... | #-----------------------------------------------------------------------------#
# MODULE DESCRIPTION #
#-----------------------------------------------------------------------------#
"""RedBrick Options Module; contains RBOpt class."""
#------------------------... | <commit_before>#-----------------------------------------------------------------------------#
# MODULE DESCRIPTION #
#-----------------------------------------------------------------------------#
"""RedBrick Options Module; contains RBOpt class."""
#---------... |
53b22654b015d1450fe124bc01a2f1bffba816a2 | test_hpack_integration.py | test_hpack_integration.py | # -*- coding: utf-8 -*-
"""
This module defines substantial HPACK integration tests. These can take a very
long time to run, so they're outside the main test suite, but they need to be
run before every change to HPACK.
"""
from hyper.http20.hpack import Decoder
from binascii import unhexlify
class TestHPACKDecoderInte... | # -*- coding: utf-8 -*-
"""
This module defines substantial HPACK integration tests. These can take a very
long time to run, so they're outside the main test suite, but they need to be
run before every change to HPACK.
"""
from hyper.http20.hpack import Decoder
from hyper.http20.huffman import HuffmanDecoder
from hyper... | Use the correct decoder for the test. | Use the correct decoder for the test.
| Python | mit | Lukasa/hyper,masaori335/hyper,lawnmowerlatte/hyper,fredthomsen/hyper,irvind/hyper,lawnmowerlatte/hyper,masaori335/hyper,jdecuyper/hyper,irvind/hyper,fredthomsen/hyper,plucury/hyper,plucury/hyper,Lukasa/hyper,jdecuyper/hyper | # -*- coding: utf-8 -*-
"""
This module defines substantial HPACK integration tests. These can take a very
long time to run, so they're outside the main test suite, but they need to be
run before every change to HPACK.
"""
from hyper.http20.hpack import Decoder
from binascii import unhexlify
class TestHPACKDecoderInte... | # -*- coding: utf-8 -*-
"""
This module defines substantial HPACK integration tests. These can take a very
long time to run, so they're outside the main test suite, but they need to be
run before every change to HPACK.
"""
from hyper.http20.hpack import Decoder
from hyper.http20.huffman import HuffmanDecoder
from hyper... | <commit_before># -*- coding: utf-8 -*-
"""
This module defines substantial HPACK integration tests. These can take a very
long time to run, so they're outside the main test suite, but they need to be
run before every change to HPACK.
"""
from hyper.http20.hpack import Decoder
from binascii import unhexlify
class TestH... | # -*- coding: utf-8 -*-
"""
This module defines substantial HPACK integration tests. These can take a very
long time to run, so they're outside the main test suite, but they need to be
run before every change to HPACK.
"""
from hyper.http20.hpack import Decoder
from hyper.http20.huffman import HuffmanDecoder
from hyper... | # -*- coding: utf-8 -*-
"""
This module defines substantial HPACK integration tests. These can take a very
long time to run, so they're outside the main test suite, but they need to be
run before every change to HPACK.
"""
from hyper.http20.hpack import Decoder
from binascii import unhexlify
class TestHPACKDecoderInte... | <commit_before># -*- coding: utf-8 -*-
"""
This module defines substantial HPACK integration tests. These can take a very
long time to run, so they're outside the main test suite, but they need to be
run before every change to HPACK.
"""
from hyper.http20.hpack import Decoder
from binascii import unhexlify
class TestH... |
4a099c315800c2f348c5a5491c0728c6dcbba4ba | setup.py | setup.py | # -*- coding: utf-8 -*-
from setuptools import setup
import ibei
setup(name="ibei",
version=ibei.__version__,
author="Joshua Ryan Smith",
author_email="joshua.r.smith@gmail.com",
packages=["ibei", "physicalproperty"],
url="https://github.com/jrsmith3/ibei",
description="Calculator f... | # -*- coding: utf-8 -*-
from setuptools import setup
import ibei
setup(name="ibei",
version=ibei.__version__,
author="Joshua Ryan Smith",
author_email="joshua.r.smith@gmail.com",
packages=["ibei", "physicalproperty"],
url="https://github.com/jrsmith3/ibei",
description="Calculator f... | Add dependency on `physicalproperty` module | Add dependency on `physicalproperty` module
Closes #23.
| Python | mit | jrsmith3/ibei | # -*- coding: utf-8 -*-
from setuptools import setup
import ibei
setup(name="ibei",
version=ibei.__version__,
author="Joshua Ryan Smith",
author_email="joshua.r.smith@gmail.com",
packages=["ibei", "physicalproperty"],
url="https://github.com/jrsmith3/ibei",
description="Calculator f... | # -*- coding: utf-8 -*-
from setuptools import setup
import ibei
setup(name="ibei",
version=ibei.__version__,
author="Joshua Ryan Smith",
author_email="joshua.r.smith@gmail.com",
packages=["ibei", "physicalproperty"],
url="https://github.com/jrsmith3/ibei",
description="Calculator f... | <commit_before># -*- coding: utf-8 -*-
from setuptools import setup
import ibei
setup(name="ibei",
version=ibei.__version__,
author="Joshua Ryan Smith",
author_email="joshua.r.smith@gmail.com",
packages=["ibei", "physicalproperty"],
url="https://github.com/jrsmith3/ibei",
descriptio... | # -*- coding: utf-8 -*-
from setuptools import setup
import ibei
setup(name="ibei",
version=ibei.__version__,
author="Joshua Ryan Smith",
author_email="joshua.r.smith@gmail.com",
packages=["ibei", "physicalproperty"],
url="https://github.com/jrsmith3/ibei",
description="Calculator f... | # -*- coding: utf-8 -*-
from setuptools import setup
import ibei
setup(name="ibei",
version=ibei.__version__,
author="Joshua Ryan Smith",
author_email="joshua.r.smith@gmail.com",
packages=["ibei", "physicalproperty"],
url="https://github.com/jrsmith3/ibei",
description="Calculator f... | <commit_before># -*- coding: utf-8 -*-
from setuptools import setup
import ibei
setup(name="ibei",
version=ibei.__version__,
author="Joshua Ryan Smith",
author_email="joshua.r.smith@gmail.com",
packages=["ibei", "physicalproperty"],
url="https://github.com/jrsmith3/ibei",
descriptio... |
e18fbe4344083d4244e6b5b312240d580426b5b7 | setup.py | setup.py | import imp
import os
from setuptools import setup
ver = imp.load_source('version',
os.path.join(os.path.dirname(__file__), 'hessianfree',
'version.py')).__version__
with open("README.rst") as f:
long_description = f.read()
setup(
name='hessianfree',
... | import imp
import os
from setuptools import setup, find_packages
ver = imp.load_source('version',
os.path.join(os.path.dirname(__file__), 'hessianfree',
'version.py')).__version__
with open("README.rst") as f:
long_description = f.read()
setup(
name='h... | Include GPU code in installation | Include GPU code in installation
| Python | bsd-2-clause | drasmuss/hessianfree | import imp
import os
from setuptools import setup
ver = imp.load_source('version',
os.path.join(os.path.dirname(__file__), 'hessianfree',
'version.py')).__version__
with open("README.rst") as f:
long_description = f.read()
setup(
name='hessianfree',
... | import imp
import os
from setuptools import setup, find_packages
ver = imp.load_source('version',
os.path.join(os.path.dirname(__file__), 'hessianfree',
'version.py')).__version__
with open("README.rst") as f:
long_description = f.read()
setup(
name='h... | <commit_before>import imp
import os
from setuptools import setup
ver = imp.load_source('version',
os.path.join(os.path.dirname(__file__), 'hessianfree',
'version.py')).__version__
with open("README.rst") as f:
long_description = f.read()
setup(
name='h... | import imp
import os
from setuptools import setup, find_packages
ver = imp.load_source('version',
os.path.join(os.path.dirname(__file__), 'hessianfree',
'version.py')).__version__
with open("README.rst") as f:
long_description = f.read()
setup(
name='h... | import imp
import os
from setuptools import setup
ver = imp.load_source('version',
os.path.join(os.path.dirname(__file__), 'hessianfree',
'version.py')).__version__
with open("README.rst") as f:
long_description = f.read()
setup(
name='hessianfree',
... | <commit_before>import imp
import os
from setuptools import setup
ver = imp.load_source('version',
os.path.join(os.path.dirname(__file__), 'hessianfree',
'version.py')).__version__
with open("README.rst") as f:
long_description = f.read()
setup(
name='h... |
c4adbb8f213e39225092fa7abe978bdde5591edb | setup.py | setup.py | #!/usr/bin/env python,
from setuptools import setup, find_packages
import versioneer
setup(
version=versioneer.get_version(),
cmdclass=versioneer.get_cmdclass(),
name='conda-build-utils',
description='toolset for analyzing automated conda package building at NSLS2',
author='Eric Dill',
author_e... | #!/usr/bin/env python,
from setuptools import setup, find_packages
import versioneer
setup(
version=versioneer.get_version(),
cmdclass=versioneer.get_cmdclass(),
name='conda-build-utils',
description='toolset for analyzing automated conda package building at NSLS2',
author='Eric Dill',
author_e... | Add entry point script for build from yaml spec | ENH: Add entry point script for build from yaml spec
| Python | bsd-3-clause | NSLS-II/lightsource2-recipes,NSLS-II/auto-build-tagged-recipes,NSLS-II/auto-build-tagged-recipes,NSLS-II/lightsource2-recipes,NSLS-II/lightsource2-recipes,NSLS-II/lightsource2-recipes | #!/usr/bin/env python,
from setuptools import setup, find_packages
import versioneer
setup(
version=versioneer.get_version(),
cmdclass=versioneer.get_cmdclass(),
name='conda-build-utils',
description='toolset for analyzing automated conda package building at NSLS2',
author='Eric Dill',
author_e... | #!/usr/bin/env python,
from setuptools import setup, find_packages
import versioneer
setup(
version=versioneer.get_version(),
cmdclass=versioneer.get_cmdclass(),
name='conda-build-utils',
description='toolset for analyzing automated conda package building at NSLS2',
author='Eric Dill',
author_e... | <commit_before>#!/usr/bin/env python,
from setuptools import setup, find_packages
import versioneer
setup(
version=versioneer.get_version(),
cmdclass=versioneer.get_cmdclass(),
name='conda-build-utils',
description='toolset for analyzing automated conda package building at NSLS2',
author='Eric Dill... | #!/usr/bin/env python,
from setuptools import setup, find_packages
import versioneer
setup(
version=versioneer.get_version(),
cmdclass=versioneer.get_cmdclass(),
name='conda-build-utils',
description='toolset for analyzing automated conda package building at NSLS2',
author='Eric Dill',
author_e... | #!/usr/bin/env python,
from setuptools import setup, find_packages
import versioneer
setup(
version=versioneer.get_version(),
cmdclass=versioneer.get_cmdclass(),
name='conda-build-utils',
description='toolset for analyzing automated conda package building at NSLS2',
author='Eric Dill',
author_e... | <commit_before>#!/usr/bin/env python,
from setuptools import setup, find_packages
import versioneer
setup(
version=versioneer.get_version(),
cmdclass=versioneer.get_cmdclass(),
name='conda-build-utils',
description='toolset for analyzing automated conda package building at NSLS2',
author='Eric Dill... |
440fb64008c847b04dd872518bc723bc0ad4a34a | setup.py | setup.py | # -*- coding: utf-8 -*-
import os
from setuptools import setup
def read(fname):
try:
return open(os.path.join(os.path.dirname(__file__), fname)).read()
except:
return ''
setup(
name='todoist-python',
version='7.0.18',
packages=['todoist', 'todoist.managers'],
author='Doist Team... | # -*- coding: utf-8 -*-
import os
from setuptools import setup
def read(fname):
try:
return open(os.path.join(os.path.dirname(__file__), fname)).read()
except:
return ''
setup(
name='todoist-python',
version='8.0.0',
packages=['todoist', 'todoist.managers'],
author='Doist Team'... | Update the PyPI version to 8.0.0. | Update the PyPI version to 8.0.0.
| Python | mit | Doist/todoist-python | # -*- coding: utf-8 -*-
import os
from setuptools import setup
def read(fname):
try:
return open(os.path.join(os.path.dirname(__file__), fname)).read()
except:
return ''
setup(
name='todoist-python',
version='7.0.18',
packages=['todoist', 'todoist.managers'],
author='Doist Team... | # -*- coding: utf-8 -*-
import os
from setuptools import setup
def read(fname):
try:
return open(os.path.join(os.path.dirname(__file__), fname)).read()
except:
return ''
setup(
name='todoist-python',
version='8.0.0',
packages=['todoist', 'todoist.managers'],
author='Doist Team'... | <commit_before># -*- coding: utf-8 -*-
import os
from setuptools import setup
def read(fname):
try:
return open(os.path.join(os.path.dirname(__file__), fname)).read()
except:
return ''
setup(
name='todoist-python',
version='7.0.18',
packages=['todoist', 'todoist.managers'],
aut... | # -*- coding: utf-8 -*-
import os
from setuptools import setup
def read(fname):
try:
return open(os.path.join(os.path.dirname(__file__), fname)).read()
except:
return ''
setup(
name='todoist-python',
version='8.0.0',
packages=['todoist', 'todoist.managers'],
author='Doist Team'... | # -*- coding: utf-8 -*-
import os
from setuptools import setup
def read(fname):
try:
return open(os.path.join(os.path.dirname(__file__), fname)).read()
except:
return ''
setup(
name='todoist-python',
version='7.0.18',
packages=['todoist', 'todoist.managers'],
author='Doist Team... | <commit_before># -*- coding: utf-8 -*-
import os
from setuptools import setup
def read(fname):
try:
return open(os.path.join(os.path.dirname(__file__), fname)).read()
except:
return ''
setup(
name='todoist-python',
version='7.0.18',
packages=['todoist', 'todoist.managers'],
aut... |
4bf9c53b6cbb02889e721d8180a2d20b979bf8d5 | setup.py | setup.py | # coding: utf-8
from os.path import join, dirname
from setuptools import setup
with open(join(dirname(__file__), 'README.rst')) as f:
long_description = f.read()
setup(
name='django-speedinfo',
version='1.0.1',
packages=['speedinfo'],
include_package_data=True,
install_requires=['Django>=1.1... | # coding: utf-8
from os.path import join, dirname
from setuptools import setup
with open(join(dirname(__file__), 'README.rst')) as f:
long_description = f.read()
setup(
name='django-speedinfo',
version='1.0.1',
packages=['speedinfo', 'speedinfo.migrations'],
include_package_data=True,
instal... | Add missing migrations to package. | Add missing migrations to package.
| Python | mit | catcombo/django-speedinfo,catcombo/django-speedinfo,catcombo/django-speedinfo | # coding: utf-8
from os.path import join, dirname
from setuptools import setup
with open(join(dirname(__file__), 'README.rst')) as f:
long_description = f.read()
setup(
name='django-speedinfo',
version='1.0.1',
packages=['speedinfo'],
include_package_data=True,
install_requires=['Django>=1.1... | # coding: utf-8
from os.path import join, dirname
from setuptools import setup
with open(join(dirname(__file__), 'README.rst')) as f:
long_description = f.read()
setup(
name='django-speedinfo',
version='1.0.1',
packages=['speedinfo', 'speedinfo.migrations'],
include_package_data=True,
instal... | <commit_before># coding: utf-8
from os.path import join, dirname
from setuptools import setup
with open(join(dirname(__file__), 'README.rst')) as f:
long_description = f.read()
setup(
name='django-speedinfo',
version='1.0.1',
packages=['speedinfo'],
include_package_data=True,
install_require... | # coding: utf-8
from os.path import join, dirname
from setuptools import setup
with open(join(dirname(__file__), 'README.rst')) as f:
long_description = f.read()
setup(
name='django-speedinfo',
version='1.0.1',
packages=['speedinfo', 'speedinfo.migrations'],
include_package_data=True,
instal... | # coding: utf-8
from os.path import join, dirname
from setuptools import setup
with open(join(dirname(__file__), 'README.rst')) as f:
long_description = f.read()
setup(
name='django-speedinfo',
version='1.0.1',
packages=['speedinfo'],
include_package_data=True,
install_requires=['Django>=1.1... | <commit_before># coding: utf-8
from os.path import join, dirname
from setuptools import setup
with open(join(dirname(__file__), 'README.rst')) as f:
long_description = f.read()
setup(
name='django-speedinfo',
version='1.0.1',
packages=['speedinfo'],
include_package_data=True,
install_require... |
761b155dffaba55e927a32a99aef7312290c22c1 | setup.py | setup.py | #! /usr/bin/env python
from distutils.core import setup
from distutils.extension import Extension
from Cython.Distutils import build_ext
# Complain on 32-bit systems. See README for more details
import struct
if struct.calcsize('P') < 8:
raise RuntimeError(
'Simhash-py does not work on 32-bit systems. See... | #! /usr/bin/env python
from distutils.core import setup
from distutils.extension import Extension
from Cython.Distutils import build_ext
# Complain on 32-bit systems. See README for more details
import struct
if struct.calcsize('P') < 8:
raise RuntimeError(
'Simhash-py does not work on 32-bit systems. See... | Update email address to @moz | Update email address to @moz
| Python | mit | pombredanne/simhash-py,seomoz/simhash-py,pombredanne/simhash-py,seomoz/simhash-py | #! /usr/bin/env python
from distutils.core import setup
from distutils.extension import Extension
from Cython.Distutils import build_ext
# Complain on 32-bit systems. See README for more details
import struct
if struct.calcsize('P') < 8:
raise RuntimeError(
'Simhash-py does not work on 32-bit systems. See... | #! /usr/bin/env python
from distutils.core import setup
from distutils.extension import Extension
from Cython.Distutils import build_ext
# Complain on 32-bit systems. See README for more details
import struct
if struct.calcsize('P') < 8:
raise RuntimeError(
'Simhash-py does not work on 32-bit systems. See... | <commit_before>#! /usr/bin/env python
from distutils.core import setup
from distutils.extension import Extension
from Cython.Distutils import build_ext
# Complain on 32-bit systems. See README for more details
import struct
if struct.calcsize('P') < 8:
raise RuntimeError(
'Simhash-py does not work on 32-b... | #! /usr/bin/env python
from distutils.core import setup
from distutils.extension import Extension
from Cython.Distutils import build_ext
# Complain on 32-bit systems. See README for more details
import struct
if struct.calcsize('P') < 8:
raise RuntimeError(
'Simhash-py does not work on 32-bit systems. See... | #! /usr/bin/env python
from distutils.core import setup
from distutils.extension import Extension
from Cython.Distutils import build_ext
# Complain on 32-bit systems. See README for more details
import struct
if struct.calcsize('P') < 8:
raise RuntimeError(
'Simhash-py does not work on 32-bit systems. See... | <commit_before>#! /usr/bin/env python
from distutils.core import setup
from distutils.extension import Extension
from Cython.Distutils import build_ext
# Complain on 32-bit systems. See README for more details
import struct
if struct.calcsize('P') < 8:
raise RuntimeError(
'Simhash-py does not work on 32-b... |
1a3f5a4f4af85ccdff4d4d49962b276d7dc5a5dd | setup.py | setup.py | from setuptools import setup, find_packages
setup(
name = 'robotframework-serverspeclibrary',
version = '0.2',
description = 'Server spec on Robot Framework inspired from Serverspec on Ruby',
url = 'https://github.com/wingyplus/robotframework-serverspeclibrary',
keywords = 'serverspec robotframewor... | from setuptools import setup, find_packages
setup(
name = 'robotframework-serverspeclibrary',
version = '0.1',
description = 'Server spec on Robot Framework inspired from Serverspec on Ruby',
url = 'https://github.com/wingyplus/robotframework-serverspeclibrary',
keywords = 'serverspec robotframewor... | Revert "keyword package fails since roborframeowrk version 3" | Revert "keyword package fails since roborframeowrk version 3"
This reverts commit a2ba4d807a3fd720a24118164b6785486aa445b6.
| Python | mit | wingyplus/robotframework-serverspeclibrary,wingyplus/robotframework-serverspeclibrary | from setuptools import setup, find_packages
setup(
name = 'robotframework-serverspeclibrary',
version = '0.2',
description = 'Server spec on Robot Framework inspired from Serverspec on Ruby',
url = 'https://github.com/wingyplus/robotframework-serverspeclibrary',
keywords = 'serverspec robotframewor... | from setuptools import setup, find_packages
setup(
name = 'robotframework-serverspeclibrary',
version = '0.1',
description = 'Server spec on Robot Framework inspired from Serverspec on Ruby',
url = 'https://github.com/wingyplus/robotframework-serverspeclibrary',
keywords = 'serverspec robotframewor... | <commit_before>from setuptools import setup, find_packages
setup(
name = 'robotframework-serverspeclibrary',
version = '0.2',
description = 'Server spec on Robot Framework inspired from Serverspec on Ruby',
url = 'https://github.com/wingyplus/robotframework-serverspeclibrary',
keywords = 'serverspe... | from setuptools import setup, find_packages
setup(
name = 'robotframework-serverspeclibrary',
version = '0.1',
description = 'Server spec on Robot Framework inspired from Serverspec on Ruby',
url = 'https://github.com/wingyplus/robotframework-serverspeclibrary',
keywords = 'serverspec robotframewor... | from setuptools import setup, find_packages
setup(
name = 'robotframework-serverspeclibrary',
version = '0.2',
description = 'Server spec on Robot Framework inspired from Serverspec on Ruby',
url = 'https://github.com/wingyplus/robotframework-serverspeclibrary',
keywords = 'serverspec robotframewor... | <commit_before>from setuptools import setup, find_packages
setup(
name = 'robotframework-serverspeclibrary',
version = '0.2',
description = 'Server spec on Robot Framework inspired from Serverspec on Ruby',
url = 'https://github.com/wingyplus/robotframework-serverspeclibrary',
keywords = 'serverspe... |
9915097d9f53ac7fec7748ee221bb63a01638c9b | setup.py | setup.py | from distutils.core import setup
__version__ = '0.1'
setup_args = {
'name': 'hera_librarian',
'author': 'HERA Team',
'license': 'BSD',
'packages': ['hera_librarian'],
'scripts': [
'scripts/add_librarian_file_event.py',
'scripts/add_obs_librarian.py',
'scripts/launch_librari... | from distutils.core import setup
__version__ = '0.1.0.99'
setup_args = {
'name': 'hera_librarian',
'author': 'HERA Team',
'license': 'BSD',
'packages': ['hera_librarian'],
'scripts': [
'scripts/add_librarian_file_event.py',
'scripts/add_obs_librarian.py',
'scripts/launch_li... | Call the previous commit version 0.1. | Call the previous commit version 0.1.
And tag it as v0.1. Master is now 0.1.0.99, slated to become 0.1.1 when we feel
like labeling the next thing as a release.
| Python | bsd-2-clause | HERA-Team/librarian,HERA-Team/librarian,HERA-Team/librarian | from distutils.core import setup
__version__ = '0.1'
setup_args = {
'name': 'hera_librarian',
'author': 'HERA Team',
'license': 'BSD',
'packages': ['hera_librarian'],
'scripts': [
'scripts/add_librarian_file_event.py',
'scripts/add_obs_librarian.py',
'scripts/launch_librari... | from distutils.core import setup
__version__ = '0.1.0.99'
setup_args = {
'name': 'hera_librarian',
'author': 'HERA Team',
'license': 'BSD',
'packages': ['hera_librarian'],
'scripts': [
'scripts/add_librarian_file_event.py',
'scripts/add_obs_librarian.py',
'scripts/launch_li... | <commit_before>from distutils.core import setup
__version__ = '0.1'
setup_args = {
'name': 'hera_librarian',
'author': 'HERA Team',
'license': 'BSD',
'packages': ['hera_librarian'],
'scripts': [
'scripts/add_librarian_file_event.py',
'scripts/add_obs_librarian.py',
'scripts... | from distutils.core import setup
__version__ = '0.1.0.99'
setup_args = {
'name': 'hera_librarian',
'author': 'HERA Team',
'license': 'BSD',
'packages': ['hera_librarian'],
'scripts': [
'scripts/add_librarian_file_event.py',
'scripts/add_obs_librarian.py',
'scripts/launch_li... | from distutils.core import setup
__version__ = '0.1'
setup_args = {
'name': 'hera_librarian',
'author': 'HERA Team',
'license': 'BSD',
'packages': ['hera_librarian'],
'scripts': [
'scripts/add_librarian_file_event.py',
'scripts/add_obs_librarian.py',
'scripts/launch_librari... | <commit_before>from distutils.core import setup
__version__ = '0.1'
setup_args = {
'name': 'hera_librarian',
'author': 'HERA Team',
'license': 'BSD',
'packages': ['hera_librarian'],
'scripts': [
'scripts/add_librarian_file_event.py',
'scripts/add_obs_librarian.py',
'scripts... |
86b447be632c18292369c100f93d3c036231b832 | setup.py | setup.py | from distutils.core import setup
from perfection import __version__ as VERSION
setup(
name='perfection',
version=VERSION,
url='https://github.com/eddieantonio/perfection',
license='MIT',
author='Eddie Antonio Santos',
author_email='easantos@ualberta.ca',
description='Perfect hashing utiliti... | from distutils.core import setup
from perfection import __version__ as VERSION
from codecs import open
setup(
name='perfection',
version=VERSION,
url='https://github.com/eddieantonio/perfection',
license='MIT',
author='Eddie Antonio Santos',
author_email='easantos@ualberta.ca',
description... | Use codecs in Python 2. | Use codecs in Python 2.
| Python | mit | eddieantonio/perfection | from distutils.core import setup
from perfection import __version__ as VERSION
setup(
name='perfection',
version=VERSION,
url='https://github.com/eddieantonio/perfection',
license='MIT',
author='Eddie Antonio Santos',
author_email='easantos@ualberta.ca',
description='Perfect hashing utiliti... | from distutils.core import setup
from perfection import __version__ as VERSION
from codecs import open
setup(
name='perfection',
version=VERSION,
url='https://github.com/eddieantonio/perfection',
license='MIT',
author='Eddie Antonio Santos',
author_email='easantos@ualberta.ca',
description... | <commit_before>from distutils.core import setup
from perfection import __version__ as VERSION
setup(
name='perfection',
version=VERSION,
url='https://github.com/eddieantonio/perfection',
license='MIT',
author='Eddie Antonio Santos',
author_email='easantos@ualberta.ca',
description='Perfect ... | from distutils.core import setup
from perfection import __version__ as VERSION
from codecs import open
setup(
name='perfection',
version=VERSION,
url='https://github.com/eddieantonio/perfection',
license='MIT',
author='Eddie Antonio Santos',
author_email='easantos@ualberta.ca',
description... | from distutils.core import setup
from perfection import __version__ as VERSION
setup(
name='perfection',
version=VERSION,
url='https://github.com/eddieantonio/perfection',
license='MIT',
author='Eddie Antonio Santos',
author_email='easantos@ualberta.ca',
description='Perfect hashing utiliti... | <commit_before>from distutils.core import setup
from perfection import __version__ as VERSION
setup(
name='perfection',
version=VERSION,
url='https://github.com/eddieantonio/perfection',
license='MIT',
author='Eddie Antonio Santos',
author_email='easantos@ualberta.ca',
description='Perfect ... |
70f58979b17bb20282ac37daf298dbe0b506973f | setup.py | setup.py | from setuptools import setup
version = '0.14.dev0'
long_description = '\n\n'.join([
open('README.rst').read(),
open('CREDITS.rst').read(),
open('CHANGES.rst').read(),
])
install_requires = [
'Django',
'django-extensions',
'django-nose',
'requests',
'itsdangerous',
'south',
... | from setuptools import setup
version = '0.14.dev0'
long_description = '\n\n'.join([
open('README.rst').read(),
open('CREDITS.rst').read(),
open('CHANGES.rst').read(),
])
install_requires = [
'Django >= 1.4, < 1.7',
'django-extensions',
'django-nose',
'requests',
'itsdangerous',
... | Document that we don't support Django 1.7 yet | Document that we don't support Django 1.7 yet
| Python | mit | lizardsystem/lizard-auth-client,lizardsystem/lizard-auth-client,lizardsystem/lizard-auth-client | from setuptools import setup
version = '0.14.dev0'
long_description = '\n\n'.join([
open('README.rst').read(),
open('CREDITS.rst').read(),
open('CHANGES.rst').read(),
])
install_requires = [
'Django',
'django-extensions',
'django-nose',
'requests',
'itsdangerous',
'south',
... | from setuptools import setup
version = '0.14.dev0'
long_description = '\n\n'.join([
open('README.rst').read(),
open('CREDITS.rst').read(),
open('CHANGES.rst').read(),
])
install_requires = [
'Django >= 1.4, < 1.7',
'django-extensions',
'django-nose',
'requests',
'itsdangerous',
... | <commit_before>from setuptools import setup
version = '0.14.dev0'
long_description = '\n\n'.join([
open('README.rst').read(),
open('CREDITS.rst').read(),
open('CHANGES.rst').read(),
])
install_requires = [
'Django',
'django-extensions',
'django-nose',
'requests',
'itsdangerous',
... | from setuptools import setup
version = '0.14.dev0'
long_description = '\n\n'.join([
open('README.rst').read(),
open('CREDITS.rst').read(),
open('CHANGES.rst').read(),
])
install_requires = [
'Django >= 1.4, < 1.7',
'django-extensions',
'django-nose',
'requests',
'itsdangerous',
... | from setuptools import setup
version = '0.14.dev0'
long_description = '\n\n'.join([
open('README.rst').read(),
open('CREDITS.rst').read(),
open('CHANGES.rst').read(),
])
install_requires = [
'Django',
'django-extensions',
'django-nose',
'requests',
'itsdangerous',
'south',
... | <commit_before>from setuptools import setup
version = '0.14.dev0'
long_description = '\n\n'.join([
open('README.rst').read(),
open('CREDITS.rst').read(),
open('CHANGES.rst').read(),
])
install_requires = [
'Django',
'django-extensions',
'django-nose',
'requests',
'itsdangerous',
... |
271f73f83759b40e6bac5595941b4b3616345886 | setup.py | setup.py | #!/usr/bin/env python
from setuptools import setup, find_packages
def install():
desc = 'A Python client library for nyaa.se!',
setup(
name='py-nyaa',
version='1.0',
description=desc,
long_description=desc,
author='SuHun Han',
author_email='ssut@ssut.me',
... | #!/usr/bin/env python
from setuptools import setup, find_packages
def install():
desc = 'A Python client library for nyaa.se!',
setup(
name='nyaa',
version='1.0',
description=desc,
long_description=desc,
author='SuHun Han',
author_email='ssut@ssut.me',
ur... | Rename the package to "nyaa" | Rename the package to "nyaa"
| Python | mit | ssut/py-nyaa | #!/usr/bin/env python
from setuptools import setup, find_packages
def install():
desc = 'A Python client library for nyaa.se!',
setup(
name='py-nyaa',
version='1.0',
description=desc,
long_description=desc,
author='SuHun Han',
author_email='ssut@ssut.me',
... | #!/usr/bin/env python
from setuptools import setup, find_packages
def install():
desc = 'A Python client library for nyaa.se!',
setup(
name='nyaa',
version='1.0',
description=desc,
long_description=desc,
author='SuHun Han',
author_email='ssut@ssut.me',
ur... | <commit_before>#!/usr/bin/env python
from setuptools import setup, find_packages
def install():
desc = 'A Python client library for nyaa.se!',
setup(
name='py-nyaa',
version='1.0',
description=desc,
long_description=desc,
author='SuHun Han',
author_email='ssut@ss... | #!/usr/bin/env python
from setuptools import setup, find_packages
def install():
desc = 'A Python client library for nyaa.se!',
setup(
name='nyaa',
version='1.0',
description=desc,
long_description=desc,
author='SuHun Han',
author_email='ssut@ssut.me',
ur... | #!/usr/bin/env python
from setuptools import setup, find_packages
def install():
desc = 'A Python client library for nyaa.se!',
setup(
name='py-nyaa',
version='1.0',
description=desc,
long_description=desc,
author='SuHun Han',
author_email='ssut@ssut.me',
... | <commit_before>#!/usr/bin/env python
from setuptools import setup, find_packages
def install():
desc = 'A Python client library for nyaa.se!',
setup(
name='py-nyaa',
version='1.0',
description=desc,
long_description=desc,
author='SuHun Han',
author_email='ssut@ss... |
2a084d4efcd59ba599d56376770748ccbae117ab | setup.py | setup.py | '''A setuptools based installer for proptools.
Based on https://github.com/pypa/sampleproject/blob/master/setup.py
Matt Vernacchia
proptools
2016 Sept 21
'''
# Always prefer setuptools over distutils
from setuptools import setup, find_packages
# To use a consistent encoding
from codecs import open
from os import pat... | '''A setuptools based installer for proptools.
Based on https://github.com/pypa/sampleproject/blob/master/setup.py
Matt Vernacchia
proptools
2016 Sept 21
'''
# Always prefer setuptools over distutils
from setuptools import setup, find_packages
# To use a consistent encoding
from codecs import open
from os import pat... | Add matplotlib and scikit-aero dependencies. | Add matplotlib and scikit-aero dependencies.
| Python | mit | mvernacc/proptools | '''A setuptools based installer for proptools.
Based on https://github.com/pypa/sampleproject/blob/master/setup.py
Matt Vernacchia
proptools
2016 Sept 21
'''
# Always prefer setuptools over distutils
from setuptools import setup, find_packages
# To use a consistent encoding
from codecs import open
from os import pat... | '''A setuptools based installer for proptools.
Based on https://github.com/pypa/sampleproject/blob/master/setup.py
Matt Vernacchia
proptools
2016 Sept 21
'''
# Always prefer setuptools over distutils
from setuptools import setup, find_packages
# To use a consistent encoding
from codecs import open
from os import pat... | <commit_before>'''A setuptools based installer for proptools.
Based on https://github.com/pypa/sampleproject/blob/master/setup.py
Matt Vernacchia
proptools
2016 Sept 21
'''
# Always prefer setuptools over distutils
from setuptools import setup, find_packages
# To use a consistent encoding
from codecs import open
fro... | '''A setuptools based installer for proptools.
Based on https://github.com/pypa/sampleproject/blob/master/setup.py
Matt Vernacchia
proptools
2016 Sept 21
'''
# Always prefer setuptools over distutils
from setuptools import setup, find_packages
# To use a consistent encoding
from codecs import open
from os import pat... | '''A setuptools based installer for proptools.
Based on https://github.com/pypa/sampleproject/blob/master/setup.py
Matt Vernacchia
proptools
2016 Sept 21
'''
# Always prefer setuptools over distutils
from setuptools import setup, find_packages
# To use a consistent encoding
from codecs import open
from os import pat... | <commit_before>'''A setuptools based installer for proptools.
Based on https://github.com/pypa/sampleproject/blob/master/setup.py
Matt Vernacchia
proptools
2016 Sept 21
'''
# Always prefer setuptools over distutils
from setuptools import setup, find_packages
# To use a consistent encoding
from codecs import open
fro... |
195a0d853bd8add0d0955b8f5e681d8c8b0016c6 | setup.py | setup.py | from setuptools import setup, find_packages
author = 'Michael Maurizi'
author_email = 'info@azavea.com'
setup(
name='django-tinsel',
version='0.1.0',
description='A python module for decorating function-based Django views',
long_description=open('README.rst').read(),
author=author,
author_emai... | from setuptools import setup, find_packages
author = 'Michael Maurizi'
author_email = 'info@azavea.com'
setup(
name='django-tinsel',
version='0.1.1',
description='A python module for decorating function-based Django views',
long_description=open('README.rst').read(),
author=author,
author_emai... | Bump up version number for PyPI release | Bump up version number for PyPI release
| Python | apache-2.0 | azavea/django-tinsel,azavea/django-tinsel | from setuptools import setup, find_packages
author = 'Michael Maurizi'
author_email = 'info@azavea.com'
setup(
name='django-tinsel',
version='0.1.0',
description='A python module for decorating function-based Django views',
long_description=open('README.rst').read(),
author=author,
author_emai... | from setuptools import setup, find_packages
author = 'Michael Maurizi'
author_email = 'info@azavea.com'
setup(
name='django-tinsel',
version='0.1.1',
description='A python module for decorating function-based Django views',
long_description=open('README.rst').read(),
author=author,
author_emai... | <commit_before>from setuptools import setup, find_packages
author = 'Michael Maurizi'
author_email = 'info@azavea.com'
setup(
name='django-tinsel',
version='0.1.0',
description='A python module for decorating function-based Django views',
long_description=open('README.rst').read(),
author=author,
... | from setuptools import setup, find_packages
author = 'Michael Maurizi'
author_email = 'info@azavea.com'
setup(
name='django-tinsel',
version='0.1.1',
description='A python module for decorating function-based Django views',
long_description=open('README.rst').read(),
author=author,
author_emai... | from setuptools import setup, find_packages
author = 'Michael Maurizi'
author_email = 'info@azavea.com'
setup(
name='django-tinsel',
version='0.1.0',
description='A python module for decorating function-based Django views',
long_description=open('README.rst').read(),
author=author,
author_emai... | <commit_before>from setuptools import setup, find_packages
author = 'Michael Maurizi'
author_email = 'info@azavea.com'
setup(
name='django-tinsel',
version='0.1.0',
description='A python module for decorating function-based Django views',
long_description=open('README.rst').read(),
author=author,
... |
31d61511f5342f78cc8e6c31ff281aea8ed804b7 | setup.py | setup.py | # -*- coding: utf-8 -*-
from setuptools import setup, find_packages
try:
long_description = open("README.md").read()
except IOError:
long_description = ""
setup(
name="vania",
version="0.1.0",
description="A module to fairly distribute objects among targets considering weights.",
license="MIT"... | # -*- coding: utf-8 -*-
from setuptools import setup, find_packages
import setuptools.command.build_py
import subprocess
class GenDocsCommand(setuptools.command.build_py.build_py):
"""Command to generate docs."""
def run(self):
subprocess.Popen(
['pdoc', '--html', 'vania/fair_distributor... | Add command to generate docs | Add command to generate docs
| Python | mit | Hackathonners/vania | # -*- coding: utf-8 -*-
from setuptools import setup, find_packages
try:
long_description = open("README.md").read()
except IOError:
long_description = ""
setup(
name="vania",
version="0.1.0",
description="A module to fairly distribute objects among targets considering weights.",
license="MIT"... | # -*- coding: utf-8 -*-
from setuptools import setup, find_packages
import setuptools.command.build_py
import subprocess
class GenDocsCommand(setuptools.command.build_py.build_py):
"""Command to generate docs."""
def run(self):
subprocess.Popen(
['pdoc', '--html', 'vania/fair_distributor... | <commit_before># -*- coding: utf-8 -*-
from setuptools import setup, find_packages
try:
long_description = open("README.md").read()
except IOError:
long_description = ""
setup(
name="vania",
version="0.1.0",
description="A module to fairly distribute objects among targets considering weights.",
... | # -*- coding: utf-8 -*-
from setuptools import setup, find_packages
import setuptools.command.build_py
import subprocess
class GenDocsCommand(setuptools.command.build_py.build_py):
"""Command to generate docs."""
def run(self):
subprocess.Popen(
['pdoc', '--html', 'vania/fair_distributor... | # -*- coding: utf-8 -*-
from setuptools import setup, find_packages
try:
long_description = open("README.md").read()
except IOError:
long_description = ""
setup(
name="vania",
version="0.1.0",
description="A module to fairly distribute objects among targets considering weights.",
license="MIT"... | <commit_before># -*- coding: utf-8 -*-
from setuptools import setup, find_packages
try:
long_description = open("README.md").read()
except IOError:
long_description = ""
setup(
name="vania",
version="0.1.0",
description="A module to fairly distribute objects among targets considering weights.",
... |
a921605204a7a89839ef01f0b76d62cfacd3af25 | setup.py | setup.py | #!/usr/bin/env python
import os
from distutils.core import setup
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
setup(
name='whack',
version='0.3.4',
description='Utility for installing binaries from source with a single command',
long_description=read("README... | #!/usr/bin/env python
import os
from distutils.core import setup
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
setup(
name='whack',
version='0.3.4',
description='Utility for installing binaries from source with a single command',
long_description=read("README... | Update locket to 0.1.1 for bug fix | Update locket to 0.1.1 for bug fix
| Python | bsd-2-clause | mwilliamson/whack | #!/usr/bin/env python
import os
from distutils.core import setup
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
setup(
name='whack',
version='0.3.4',
description='Utility for installing binaries from source with a single command',
long_description=read("README... | #!/usr/bin/env python
import os
from distutils.core import setup
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
setup(
name='whack',
version='0.3.4',
description='Utility for installing binaries from source with a single command',
long_description=read("README... | <commit_before>#!/usr/bin/env python
import os
from distutils.core import setup
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
setup(
name='whack',
version='0.3.4',
description='Utility for installing binaries from source with a single command',
long_descripti... | #!/usr/bin/env python
import os
from distutils.core import setup
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
setup(
name='whack',
version='0.3.4',
description='Utility for installing binaries from source with a single command',
long_description=read("README... | #!/usr/bin/env python
import os
from distutils.core import setup
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
setup(
name='whack',
version='0.3.4',
description='Utility for installing binaries from source with a single command',
long_description=read("README... | <commit_before>#!/usr/bin/env python
import os
from distutils.core import setup
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
setup(
name='whack',
version='0.3.4',
description='Utility for installing binaries from source with a single command',
long_descripti... |
3117668799506f41c24a6705529ce72a1c18f600 | setup.py | setup.py | import os
from setuptools import setup, find_packages
here = os.path.abspath(os.path.dirname(__file__))
README = open(os.path.join(here, 'README.txt')).read()
CHANGES = open(os.path.join(here, 'CHANGES.txt')).read()
requires = [
'pyramid',
'SQLAlchemy',
'transaction',
'pyramid_tm',
'pyramid_debug... | # There is a conflict with older versions on EL 6
__requires__ = ['PasteDeploy>=1.5.0',
'WebOb>=1.2b3',
]
import os
from setuptools import setup, find_packages
here = os.path.abspath(os.path.dirname(__file__))
README = open(os.path.join(here, 'README.txt')).read()
CHANGES = open(os.pa... | Fix conflict with older versions on EL 6 | Fix conflict with older versions on EL 6
| Python | agpl-3.0 | network-box/uptrack,network-box/uptrack | import os
from setuptools import setup, find_packages
here = os.path.abspath(os.path.dirname(__file__))
README = open(os.path.join(here, 'README.txt')).read()
CHANGES = open(os.path.join(here, 'CHANGES.txt')).read()
requires = [
'pyramid',
'SQLAlchemy',
'transaction',
'pyramid_tm',
'pyramid_debug... | # There is a conflict with older versions on EL 6
__requires__ = ['PasteDeploy>=1.5.0',
'WebOb>=1.2b3',
]
import os
from setuptools import setup, find_packages
here = os.path.abspath(os.path.dirname(__file__))
README = open(os.path.join(here, 'README.txt')).read()
CHANGES = open(os.pa... | <commit_before>import os
from setuptools import setup, find_packages
here = os.path.abspath(os.path.dirname(__file__))
README = open(os.path.join(here, 'README.txt')).read()
CHANGES = open(os.path.join(here, 'CHANGES.txt')).read()
requires = [
'pyramid',
'SQLAlchemy',
'transaction',
'pyramid_tm',
... | # There is a conflict with older versions on EL 6
__requires__ = ['PasteDeploy>=1.5.0',
'WebOb>=1.2b3',
]
import os
from setuptools import setup, find_packages
here = os.path.abspath(os.path.dirname(__file__))
README = open(os.path.join(here, 'README.txt')).read()
CHANGES = open(os.pa... | import os
from setuptools import setup, find_packages
here = os.path.abspath(os.path.dirname(__file__))
README = open(os.path.join(here, 'README.txt')).read()
CHANGES = open(os.path.join(here, 'CHANGES.txt')).read()
requires = [
'pyramid',
'SQLAlchemy',
'transaction',
'pyramid_tm',
'pyramid_debug... | <commit_before>import os
from setuptools import setup, find_packages
here = os.path.abspath(os.path.dirname(__file__))
README = open(os.path.join(here, 'README.txt')).read()
CHANGES = open(os.path.join(here, 'CHANGES.txt')).read()
requires = [
'pyramid',
'SQLAlchemy',
'transaction',
'pyramid_tm',
... |
02c26a2ced9348e10504ffbac2dd7cca69ded3c0 | setup.py | setup.py | #!/usr/bin/env python
# Copyright (c) 2013 Hewlett-Packard Development Company, L.P.
#
# 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
#
# Unle... | #!/usr/bin/env python
# Copyright (c) 2013 Hewlett-Packard Development Company, L.P.
#
# 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
#
# Unle... | Enforce that pbr used is >= 1.8 | Enforce that pbr used is >= 1.8
It otherwise fails if used against older pbr (e.g distro packaging build)
Change-Id: I19dbd5d14a9135408ad21a34834f0bd1fb3ea55d
| Python | mit | openstack/sqlalchemy-migrate,rcherrueau/sqlalchemy-migrate,stackforge/sqlalchemy-migrate,openstack/sqlalchemy-migrate,rcherrueau/sqlalchemy-migrate | #!/usr/bin/env python
# Copyright (c) 2013 Hewlett-Packard Development Company, L.P.
#
# 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
#
# Unle... | #!/usr/bin/env python
# Copyright (c) 2013 Hewlett-Packard Development Company, L.P.
#
# 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
#
# Unle... | <commit_before>#!/usr/bin/env python
# Copyright (c) 2013 Hewlett-Packard Development Company, L.P.
#
# 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/LICEN... | #!/usr/bin/env python
# Copyright (c) 2013 Hewlett-Packard Development Company, L.P.
#
# 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
#
# Unle... | #!/usr/bin/env python
# Copyright (c) 2013 Hewlett-Packard Development Company, L.P.
#
# 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
#
# Unle... | <commit_before>#!/usr/bin/env python
# Copyright (c) 2013 Hewlett-Packard Development Company, L.P.
#
# 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/LICEN... |
cf3322e1e85418e480f75d960244e506c0df4505 | setup.py | setup.py | #
# setup.py
#
# Copyright (c) 2013 Luis Garcia.
# This source file is subject to terms of the MIT License. (See file LICENSE)
#
"""Setup script for the scope library."""
from distutils.core import setup
NAME = 'scope'
VERSION = '0.1.1'
DESCRIPTION = 'Template library for multi-language code generation'
AUTHOR = 'Lu... | #
# setup.py
#
# Copyright (c) 2013 Luis Garcia.
# This source file is subject to terms of the MIT License. (See file LICENSE)
#
"""Setup script for the scope library."""
from distutils.core import setup
NAME = 'scope'
VERSION = '0.1.1'
DESCRIPTION = 'Python library for creating code templates'
AUTHOR = 'Luis Garcia... | Update description and add more classifiers | Update description and add more classifiers
| Python | mit | lrgar/scope | #
# setup.py
#
# Copyright (c) 2013 Luis Garcia.
# This source file is subject to terms of the MIT License. (See file LICENSE)
#
"""Setup script for the scope library."""
from distutils.core import setup
NAME = 'scope'
VERSION = '0.1.1'
DESCRIPTION = 'Template library for multi-language code generation'
AUTHOR = 'Lu... | #
# setup.py
#
# Copyright (c) 2013 Luis Garcia.
# This source file is subject to terms of the MIT License. (See file LICENSE)
#
"""Setup script for the scope library."""
from distutils.core import setup
NAME = 'scope'
VERSION = '0.1.1'
DESCRIPTION = 'Python library for creating code templates'
AUTHOR = 'Luis Garcia... | <commit_before>#
# setup.py
#
# Copyright (c) 2013 Luis Garcia.
# This source file is subject to terms of the MIT License. (See file LICENSE)
#
"""Setup script for the scope library."""
from distutils.core import setup
NAME = 'scope'
VERSION = '0.1.1'
DESCRIPTION = 'Template library for multi-language code generatio... | #
# setup.py
#
# Copyright (c) 2013 Luis Garcia.
# This source file is subject to terms of the MIT License. (See file LICENSE)
#
"""Setup script for the scope library."""
from distutils.core import setup
NAME = 'scope'
VERSION = '0.1.1'
DESCRIPTION = 'Python library for creating code templates'
AUTHOR = 'Luis Garcia... | #
# setup.py
#
# Copyright (c) 2013 Luis Garcia.
# This source file is subject to terms of the MIT License. (See file LICENSE)
#
"""Setup script for the scope library."""
from distutils.core import setup
NAME = 'scope'
VERSION = '0.1.1'
DESCRIPTION = 'Template library for multi-language code generation'
AUTHOR = 'Lu... | <commit_before>#
# setup.py
#
# Copyright (c) 2013 Luis Garcia.
# This source file is subject to terms of the MIT License. (See file LICENSE)
#
"""Setup script for the scope library."""
from distutils.core import setup
NAME = 'scope'
VERSION = '0.1.1'
DESCRIPTION = 'Template library for multi-language code generatio... |
36323768087a716fdc61f9991c761d64c15a9cf1 | setup.py | setup.py | import os
from setuptools import setup, find_packages
README = open(os.path.join(os.path.dirname(__file__), 'README.md')).read()
# allow setup.py to be run from any path
os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir)))
setup(
name='django-swiftbrowser',
version='1.2.3',
pack... | import os
from setuptools import setup, find_packages
README = open(os.path.join(os.path.dirname(__file__), 'README.md')).read()
# allow setup.py to be run from any path
os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir)))
setup(
name='django-swiftbrowser',
version='1.2.3',
pack... | Set minimum versions for openstack autha nd keystone | Set minimum versions for openstack autha nd keystone
| Python | apache-2.0 | bkawula/django-swiftbrowser,bkawula/django-swiftbrowser,bkawula/django-swiftbrowser,bkawula/django-swiftbrowser | import os
from setuptools import setup, find_packages
README = open(os.path.join(os.path.dirname(__file__), 'README.md')).read()
# allow setup.py to be run from any path
os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir)))
setup(
name='django-swiftbrowser',
version='1.2.3',
pack... | import os
from setuptools import setup, find_packages
README = open(os.path.join(os.path.dirname(__file__), 'README.md')).read()
# allow setup.py to be run from any path
os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir)))
setup(
name='django-swiftbrowser',
version='1.2.3',
pack... | <commit_before>import os
from setuptools import setup, find_packages
README = open(os.path.join(os.path.dirname(__file__), 'README.md')).read()
# allow setup.py to be run from any path
os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir)))
setup(
name='django-swiftbrowser',
version='1... | import os
from setuptools import setup, find_packages
README = open(os.path.join(os.path.dirname(__file__), 'README.md')).read()
# allow setup.py to be run from any path
os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir)))
setup(
name='django-swiftbrowser',
version='1.2.3',
pack... | import os
from setuptools import setup, find_packages
README = open(os.path.join(os.path.dirname(__file__), 'README.md')).read()
# allow setup.py to be run from any path
os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir)))
setup(
name='django-swiftbrowser',
version='1.2.3',
pack... | <commit_before>import os
from setuptools import setup, find_packages
README = open(os.path.join(os.path.dirname(__file__), 'README.md')).read()
# allow setup.py to be run from any path
os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir)))
setup(
name='django-swiftbrowser',
version='1... |
4ae89d7a3adf9541c7e1fb202aabdf15489289a6 | setup.py | setup.py | #!/usr/bin/env python
import os
from setuptools import setup
with open(os.path.join(os.path.dirname(__file__), 'README.rst')) as f:
readme = f.read()
setup(
name='ctop',
version='1.0.0',
description='A lightweight top like monitor for linux CGroups',
long_description=readme,
author='Jean-Tiar... | #!/usr/bin/env python
import os
from io import open
from setuptools import setup
with open(os.path.join(os.path.dirname(__file__), 'README.rst'), encoding='utf-8') as f:
readme = f.read()
setup(
name='ctop',
version='1.0.0',
description='A lightweight top like monitor for linux CGroups',
long_des... | Fix encoding issues with open() | Fix encoding issues with open()
Traceback (most recent call last):
File "setup.py", line 7, in <module>
readme = f.read()
File "/usr/lib/python3.5/encodings/ascii.py", line 26, in decode
return codecs.ascii_decode(input, self.errors)[0]
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 4... | Python | mit | yadutaf/ctop | #!/usr/bin/env python
import os
from setuptools import setup
with open(os.path.join(os.path.dirname(__file__), 'README.rst')) as f:
readme = f.read()
setup(
name='ctop',
version='1.0.0',
description='A lightweight top like monitor for linux CGroups',
long_description=readme,
author='Jean-Tiar... | #!/usr/bin/env python
import os
from io import open
from setuptools import setup
with open(os.path.join(os.path.dirname(__file__), 'README.rst'), encoding='utf-8') as f:
readme = f.read()
setup(
name='ctop',
version='1.0.0',
description='A lightweight top like monitor for linux CGroups',
long_des... | <commit_before>#!/usr/bin/env python
import os
from setuptools import setup
with open(os.path.join(os.path.dirname(__file__), 'README.rst')) as f:
readme = f.read()
setup(
name='ctop',
version='1.0.0',
description='A lightweight top like monitor for linux CGroups',
long_description=readme,
au... | #!/usr/bin/env python
import os
from io import open
from setuptools import setup
with open(os.path.join(os.path.dirname(__file__), 'README.rst'), encoding='utf-8') as f:
readme = f.read()
setup(
name='ctop',
version='1.0.0',
description='A lightweight top like monitor for linux CGroups',
long_des... | #!/usr/bin/env python
import os
from setuptools import setup
with open(os.path.join(os.path.dirname(__file__), 'README.rst')) as f:
readme = f.read()
setup(
name='ctop',
version='1.0.0',
description='A lightweight top like monitor for linux CGroups',
long_description=readme,
author='Jean-Tiar... | <commit_before>#!/usr/bin/env python
import os
from setuptools import setup
with open(os.path.join(os.path.dirname(__file__), 'README.rst')) as f:
readme = f.read()
setup(
name='ctop',
version='1.0.0',
description='A lightweight top like monitor for linux CGroups',
long_description=readme,
au... |
e69c47fb47535ee19310f7e5aa4bfb744bf0c627 | setup.py | setup.py | # encoding: utf-8
import sys
from setuptools import setup
def read_description():
with open('README.md', 'r', encoding='utf-8') as f:
return f.read()
setup(
name='Inject',
version='4.1.1',
url='https://github.com/ivankorobkov/python-inject',
license='Apache License 2.0',
author='Iv... | # encoding: utf-8
import sys
from setuptools import setup
def read_description():
with open('README.md', 'r', encoding='utf-8') as f:
return f.read()
setup(
name='Inject',
version='4.1.1',
url='https://github.com/ivankorobkov/python-inject',
license='Apache License 2.0',
author='Iv... | Remove include_package_data to install py.typed | Remove include_package_data to install py.typed
I found that sdist file does not include `py.typed`. For workaround, I found that when I remove `include_package_data` it works. | Python | apache-2.0 | ivankorobkov/python-inject | # encoding: utf-8
import sys
from setuptools import setup
def read_description():
with open('README.md', 'r', encoding='utf-8') as f:
return f.read()
setup(
name='Inject',
version='4.1.1',
url='https://github.com/ivankorobkov/python-inject',
license='Apache License 2.0',
author='Iv... | # encoding: utf-8
import sys
from setuptools import setup
def read_description():
with open('README.md', 'r', encoding='utf-8') as f:
return f.read()
setup(
name='Inject',
version='4.1.1',
url='https://github.com/ivankorobkov/python-inject',
license='Apache License 2.0',
author='Iv... | <commit_before># encoding: utf-8
import sys
from setuptools import setup
def read_description():
with open('README.md', 'r', encoding='utf-8') as f:
return f.read()
setup(
name='Inject',
version='4.1.1',
url='https://github.com/ivankorobkov/python-inject',
license='Apache License 2.0',
... | # encoding: utf-8
import sys
from setuptools import setup
def read_description():
with open('README.md', 'r', encoding='utf-8') as f:
return f.read()
setup(
name='Inject',
version='4.1.1',
url='https://github.com/ivankorobkov/python-inject',
license='Apache License 2.0',
author='Iv... | # encoding: utf-8
import sys
from setuptools import setup
def read_description():
with open('README.md', 'r', encoding='utf-8') as f:
return f.read()
setup(
name='Inject',
version='4.1.1',
url='https://github.com/ivankorobkov/python-inject',
license='Apache License 2.0',
author='Iv... | <commit_before># encoding: utf-8
import sys
from setuptools import setup
def read_description():
with open('README.md', 'r', encoding='utf-8') as f:
return f.read()
setup(
name='Inject',
version='4.1.1',
url='https://github.com/ivankorobkov/python-inject',
license='Apache License 2.0',
... |
44fd612067f7cac357db76ec21a6e03403f84015 | setup.py | setup.py | #!/usr/bin/env python
from setuptools import setup
setup(
name='ckanapi',
version='3.3-dev',
description=
'A command line interface and Python module for '
'accessing the CKAN Action API',
license='MIT',
author='Ian Ward',
author_email='ian@excess.org',
url='https://github.... | #!/usr/bin/env python
from setuptools import setup
setup(
name='ckanapi',
version='3.3-dev',
description=
'A command line interface and Python module for '
'accessing the CKAN Action API',
license='MIT',
author='Ian Ward',
author_email='ian@excess.org',
url='https://github.... | Add required packages for pip install | Add required packages for pip install | Python | mit | LaurentGoderre/ckanapi,xingyz/ckanapi,perceptron-XYZ/ckanapi,eawag-rdm/ckanapi,wardi/ckanapi,metaodi/ckanapi | #!/usr/bin/env python
from setuptools import setup
setup(
name='ckanapi',
version='3.3-dev',
description=
'A command line interface and Python module for '
'accessing the CKAN Action API',
license='MIT',
author='Ian Ward',
author_email='ian@excess.org',
url='https://github.... | #!/usr/bin/env python
from setuptools import setup
setup(
name='ckanapi',
version='3.3-dev',
description=
'A command line interface and Python module for '
'accessing the CKAN Action API',
license='MIT',
author='Ian Ward',
author_email='ian@excess.org',
url='https://github.... | <commit_before>#!/usr/bin/env python
from setuptools import setup
setup(
name='ckanapi',
version='3.3-dev',
description=
'A command line interface and Python module for '
'accessing the CKAN Action API',
license='MIT',
author='Ian Ward',
author_email='ian@excess.org',
url='... | #!/usr/bin/env python
from setuptools import setup
setup(
name='ckanapi',
version='3.3-dev',
description=
'A command line interface and Python module for '
'accessing the CKAN Action API',
license='MIT',
author='Ian Ward',
author_email='ian@excess.org',
url='https://github.... | #!/usr/bin/env python
from setuptools import setup
setup(
name='ckanapi',
version='3.3-dev',
description=
'A command line interface and Python module for '
'accessing the CKAN Action API',
license='MIT',
author='Ian Ward',
author_email='ian@excess.org',
url='https://github.... | <commit_before>#!/usr/bin/env python
from setuptools import setup
setup(
name='ckanapi',
version='3.3-dev',
description=
'A command line interface and Python module for '
'accessing the CKAN Action API',
license='MIT',
author='Ian Ward',
author_email='ian@excess.org',
url='... |
ef2763b0bf47d659cc8c57cdda19286feb35cb44 | setup.py | setup.py | from setuptools import setup
setup(
name='broadbean',
version='0.9',
# We might as well require what we know will work
# although older numpy and matplotlib version will probably work too
install_requires=['numpy>=1.12.1',
'matplotlib>=2.0.1'],
author='William H.P. Niels... | from setuptools import setup
setup(
name='broadbean',
version='0.9',
# We might as well require what we know will work
# although older numpy and matplotlib version will probably work too
install_requires=['numpy>=1.12.1',
'matplotlib>=2.0.1',
'PyQt5>5.7... | Add PyQt5 to install requirements | fix: Add PyQt5 to install requirements
Add PyQt5 to install requirements
| Python | mit | WilliamHPNielsen/broadbean | from setuptools import setup
setup(
name='broadbean',
version='0.9',
# We might as well require what we know will work
# although older numpy and matplotlib version will probably work too
install_requires=['numpy>=1.12.1',
'matplotlib>=2.0.1'],
author='William H.P. Niels... | from setuptools import setup
setup(
name='broadbean',
version='0.9',
# We might as well require what we know will work
# although older numpy and matplotlib version will probably work too
install_requires=['numpy>=1.12.1',
'matplotlib>=2.0.1',
'PyQt5>5.7... | <commit_before>from setuptools import setup
setup(
name='broadbean',
version='0.9',
# We might as well require what we know will work
# although older numpy and matplotlib version will probably work too
install_requires=['numpy>=1.12.1',
'matplotlib>=2.0.1'],
author='Wil... | from setuptools import setup
setup(
name='broadbean',
version='0.9',
# We might as well require what we know will work
# although older numpy and matplotlib version will probably work too
install_requires=['numpy>=1.12.1',
'matplotlib>=2.0.1',
'PyQt5>5.7... | from setuptools import setup
setup(
name='broadbean',
version='0.9',
# We might as well require what we know will work
# although older numpy and matplotlib version will probably work too
install_requires=['numpy>=1.12.1',
'matplotlib>=2.0.1'],
author='William H.P. Niels... | <commit_before>from setuptools import setup
setup(
name='broadbean',
version='0.9',
# We might as well require what we know will work
# although older numpy and matplotlib version will probably work too
install_requires=['numpy>=1.12.1',
'matplotlib>=2.0.1'],
author='Wil... |
172d3eecfbd92671a941303eff777436780c7d5e | setup.py | setup.py | import os
from setuptools import setup
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
setup(name='windpowerlib',
version='0.2.0dev',
description='Creating time series of wind power plants.',
url='http://github.com/wind-python/windpowerlib',
author='oe... | import os
from setuptools import setup
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
setup(name='windpowerlib',
version='0.2.0dev',
description='Creating time series of wind power plants.',
url='http://github.com/wind-python/windpowerlib',
author='oe... | Add new oedb data directory to package | Add new oedb data directory to package
| Python | mit | wind-python/windpowerlib | import os
from setuptools import setup
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
setup(name='windpowerlib',
version='0.2.0dev',
description='Creating time series of wind power plants.',
url='http://github.com/wind-python/windpowerlib',
author='oe... | import os
from setuptools import setup
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
setup(name='windpowerlib',
version='0.2.0dev',
description='Creating time series of wind power plants.',
url='http://github.com/wind-python/windpowerlib',
author='oe... | <commit_before>import os
from setuptools import setup
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
setup(name='windpowerlib',
version='0.2.0dev',
description='Creating time series of wind power plants.',
url='http://github.com/wind-python/windpowerlib',
... | import os
from setuptools import setup
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
setup(name='windpowerlib',
version='0.2.0dev',
description='Creating time series of wind power plants.',
url='http://github.com/wind-python/windpowerlib',
author='oe... | import os
from setuptools import setup
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
setup(name='windpowerlib',
version='0.2.0dev',
description='Creating time series of wind power plants.',
url='http://github.com/wind-python/windpowerlib',
author='oe... | <commit_before>import os
from setuptools import setup
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
setup(name='windpowerlib',
version='0.2.0dev',
description='Creating time series of wind power plants.',
url='http://github.com/wind-python/windpowerlib',
... |
214d788073532c1ae2aecea1a61dc35e08d5e78f | cybox/common/__init__.py | cybox/common/__init__.py | from contributor import Contributor
from daterange import Date_Range
from defined_object import DefinedObject
from personnel import Personnel
| from contributor import Contributor
from daterange import DateRange
from defined_object import DefinedObject
from personnel import Personnel
| Remove underscore from class name. | Remove underscore from class name.
| Python | bsd-3-clause | CybOXProject/python-cybox | from contributor import Contributor
from daterange import Date_Range
from defined_object import DefinedObject
from personnel import Personnel
Remove underscore from class name. | from contributor import Contributor
from daterange import DateRange
from defined_object import DefinedObject
from personnel import Personnel
| <commit_before>from contributor import Contributor
from daterange import Date_Range
from defined_object import DefinedObject
from personnel import Personnel
<commit_msg>Remove underscore from class name.<commit_after> | from contributor import Contributor
from daterange import DateRange
from defined_object import DefinedObject
from personnel import Personnel
| from contributor import Contributor
from daterange import Date_Range
from defined_object import DefinedObject
from personnel import Personnel
Remove underscore from class name.from contributor import Contributor
from daterange import DateRange
from defined_object import DefinedObject
from personnel import Personnel
| <commit_before>from contributor import Contributor
from daterange import Date_Range
from defined_object import DefinedObject
from personnel import Personnel
<commit_msg>Remove underscore from class name.<commit_after>from contributor import Contributor
from daterange import DateRange
from defined_object import Defined... |
3f9a6944763a75171388c3c8b812d71bf45c1219 | test/test_integration.py | test/test_integration.py | import unittest
import http.client
import time
class TestStringMethods(unittest.TestCase):
def test_404NoConfig(self):
connRouter = http.client.HTTPConnection("localhost", 8666)
connConfig = http.client.HTTPConnection("localhost", 8888)
connRouter.request("GET", "/google2")
respons... | import unittest
import http.client
import time
class TestStringMethods(unittest.TestCase):
def test_404NoConfig(self):
connRouter = http.client.HTTPConnection("localhost", 8666)
connConfig = http.client.HTTPConnection("localhost", 8888)
connRouter.request("GET", "/google")
response... | Fix test to use /google instead of /google2 | Fix test to use /google instead of /google2
| Python | apache-2.0 | dhiaayachi/dynx,dhiaayachi/dynx | import unittest
import http.client
import time
class TestStringMethods(unittest.TestCase):
def test_404NoConfig(self):
connRouter = http.client.HTTPConnection("localhost", 8666)
connConfig = http.client.HTTPConnection("localhost", 8888)
connRouter.request("GET", "/google2")
respons... | import unittest
import http.client
import time
class TestStringMethods(unittest.TestCase):
def test_404NoConfig(self):
connRouter = http.client.HTTPConnection("localhost", 8666)
connConfig = http.client.HTTPConnection("localhost", 8888)
connRouter.request("GET", "/google")
response... | <commit_before>import unittest
import http.client
import time
class TestStringMethods(unittest.TestCase):
def test_404NoConfig(self):
connRouter = http.client.HTTPConnection("localhost", 8666)
connConfig = http.client.HTTPConnection("localhost", 8888)
connRouter.request("GET", "/google2")
... | import unittest
import http.client
import time
class TestStringMethods(unittest.TestCase):
def test_404NoConfig(self):
connRouter = http.client.HTTPConnection("localhost", 8666)
connConfig = http.client.HTTPConnection("localhost", 8888)
connRouter.request("GET", "/google")
response... | import unittest
import http.client
import time
class TestStringMethods(unittest.TestCase):
def test_404NoConfig(self):
connRouter = http.client.HTTPConnection("localhost", 8666)
connConfig = http.client.HTTPConnection("localhost", 8888)
connRouter.request("GET", "/google2")
respons... | <commit_before>import unittest
import http.client
import time
class TestStringMethods(unittest.TestCase):
def test_404NoConfig(self):
connRouter = http.client.HTTPConnection("localhost", 8666)
connConfig = http.client.HTTPConnection("localhost", 8888)
connRouter.request("GET", "/google2")
... |
8c46e91ec66fc1ee15f037109e78030c2fcd1bf8 | tests/test_middleware.py | tests/test_middleware.py | from os import environ
from unittest import TestCase
environ['DJANGO_SETTINGS_MODULE'] = 'test_settings'
from incuna_auth.middleware import LoginRequiredMiddleware
class AuthenticatedUser(object):
def is_authenticated(self):
return True
class AnonymousUser(object):
def is_authenticated(self):
... | from os import environ
from unittest import TestCase
environ['DJANGO_SETTINGS_MODULE'] = 'test_settings'
from incuna_auth.middleware import LoginRequiredMiddleware
class AuthenticatedUser(object):
def is_authenticated(self):
return True
class AnonymousUser(object):
def is_authenticated(self):
... | Add test for non-exempt, non-protected URLs. | Add test for non-exempt, non-protected URLs.
| Python | bsd-2-clause | incuna/incuna-auth,incuna/incuna-auth,ghickman/incuna-auth,ghickman/incuna-auth | from os import environ
from unittest import TestCase
environ['DJANGO_SETTINGS_MODULE'] = 'test_settings'
from incuna_auth.middleware import LoginRequiredMiddleware
class AuthenticatedUser(object):
def is_authenticated(self):
return True
class AnonymousUser(object):
def is_authenticated(self):
... | from os import environ
from unittest import TestCase
environ['DJANGO_SETTINGS_MODULE'] = 'test_settings'
from incuna_auth.middleware import LoginRequiredMiddleware
class AuthenticatedUser(object):
def is_authenticated(self):
return True
class AnonymousUser(object):
def is_authenticated(self):
... | <commit_before>from os import environ
from unittest import TestCase
environ['DJANGO_SETTINGS_MODULE'] = 'test_settings'
from incuna_auth.middleware import LoginRequiredMiddleware
class AuthenticatedUser(object):
def is_authenticated(self):
return True
class AnonymousUser(object):
def is_authenticat... | from os import environ
from unittest import TestCase
environ['DJANGO_SETTINGS_MODULE'] = 'test_settings'
from incuna_auth.middleware import LoginRequiredMiddleware
class AuthenticatedUser(object):
def is_authenticated(self):
return True
class AnonymousUser(object):
def is_authenticated(self):
... | from os import environ
from unittest import TestCase
environ['DJANGO_SETTINGS_MODULE'] = 'test_settings'
from incuna_auth.middleware import LoginRequiredMiddleware
class AuthenticatedUser(object):
def is_authenticated(self):
return True
class AnonymousUser(object):
def is_authenticated(self):
... | <commit_before>from os import environ
from unittest import TestCase
environ['DJANGO_SETTINGS_MODULE'] = 'test_settings'
from incuna_auth.middleware import LoginRequiredMiddleware
class AuthenticatedUser(object):
def is_authenticated(self):
return True
class AnonymousUser(object):
def is_authenticat... |
1f75b173b85cc107e7bdb3be4629e7916a9851d9 | setup.py | setup.py | from setuptools import setup
setup(
name='python-cephclient',
packages=['cephclient'],
version='0.1.0.5',
url='https://github.com/dmsimard/python-cephclient',
author='David Moreau Simard',
author_email='moi@dmsimard.com',
description='A client library in python for the Ceph REST API.',
... | from setuptools import setup
setup(
name='python-cephclient',
packages=['cephclient'],
version='0.1.0.5',
url='https://github.com/dmsimard/python-cephclient',
author='David Moreau Simard',
author_email='moi@dmsimard.com',
description='A client library in python for the Ceph REST API.',
... | Tag python-cephclient as beta instead of alpha | Tag python-cephclient as beta instead of alpha
It's pretty much beyond alpha now.
| Python | apache-2.0 | dmsimard/python-cephclient | from setuptools import setup
setup(
name='python-cephclient',
packages=['cephclient'],
version='0.1.0.5',
url='https://github.com/dmsimard/python-cephclient',
author='David Moreau Simard',
author_email='moi@dmsimard.com',
description='A client library in python for the Ceph REST API.',
... | from setuptools import setup
setup(
name='python-cephclient',
packages=['cephclient'],
version='0.1.0.5',
url='https://github.com/dmsimard/python-cephclient',
author='David Moreau Simard',
author_email='moi@dmsimard.com',
description='A client library in python for the Ceph REST API.',
... | <commit_before>from setuptools import setup
setup(
name='python-cephclient',
packages=['cephclient'],
version='0.1.0.5',
url='https://github.com/dmsimard/python-cephclient',
author='David Moreau Simard',
author_email='moi@dmsimard.com',
description='A client library in python for the Ceph R... | from setuptools import setup
setup(
name='python-cephclient',
packages=['cephclient'],
version='0.1.0.5',
url='https://github.com/dmsimard/python-cephclient',
author='David Moreau Simard',
author_email='moi@dmsimard.com',
description='A client library in python for the Ceph REST API.',
... | from setuptools import setup
setup(
name='python-cephclient',
packages=['cephclient'],
version='0.1.0.5',
url='https://github.com/dmsimard/python-cephclient',
author='David Moreau Simard',
author_email='moi@dmsimard.com',
description='A client library in python for the Ceph REST API.',
... | <commit_before>from setuptools import setup
setup(
name='python-cephclient',
packages=['cephclient'],
version='0.1.0.5',
url='https://github.com/dmsimard/python-cephclient',
author='David Moreau Simard',
author_email='moi@dmsimard.com',
description='A client library in python for the Ceph R... |
38f36398cf7862d22e3fa0f1047446b6d5e9ce17 | setup.py | setup.py | """Set up script"""
from setuptools import setup
import os
def _create_long_desc():
"""Create long description and README formatted with rst."""
_long_desc = ''
if os.path.isfile('README.md'):
with open('README.md', 'r') as rf:
return rf.read()
if os.path.isfile('README.rst'):
... | """Set up script"""
from setuptools import setup
import os
def _create_long_desc():
"""Create long description and README formatted with rst."""
_long_desc = ''
if os.path.isfile('README.md'):
with open('README.md', 'r') as rf:
return rf.read()
if os.path.isfile('README.rst'):
... | Add text type as markdown. | Add text type as markdown.
| Python | mit | pyohei/cronquot,pyohei/cronquot | """Set up script"""
from setuptools import setup
import os
def _create_long_desc():
"""Create long description and README formatted with rst."""
_long_desc = ''
if os.path.isfile('README.md'):
with open('README.md', 'r') as rf:
return rf.read()
if os.path.isfile('README.rst'):
... | """Set up script"""
from setuptools import setup
import os
def _create_long_desc():
"""Create long description and README formatted with rst."""
_long_desc = ''
if os.path.isfile('README.md'):
with open('README.md', 'r') as rf:
return rf.read()
if os.path.isfile('README.rst'):
... | <commit_before>"""Set up script"""
from setuptools import setup
import os
def _create_long_desc():
"""Create long description and README formatted with rst."""
_long_desc = ''
if os.path.isfile('README.md'):
with open('README.md', 'r') as rf:
return rf.read()
if os.path.isfile('REA... | """Set up script"""
from setuptools import setup
import os
def _create_long_desc():
"""Create long description and README formatted with rst."""
_long_desc = ''
if os.path.isfile('README.md'):
with open('README.md', 'r') as rf:
return rf.read()
if os.path.isfile('README.rst'):
... | """Set up script"""
from setuptools import setup
import os
def _create_long_desc():
"""Create long description and README formatted with rst."""
_long_desc = ''
if os.path.isfile('README.md'):
with open('README.md', 'r') as rf:
return rf.read()
if os.path.isfile('README.rst'):
... | <commit_before>"""Set up script"""
from setuptools import setup
import os
def _create_long_desc():
"""Create long description and README formatted with rst."""
_long_desc = ''
if os.path.isfile('README.md'):
with open('README.md', 'r') as rf:
return rf.read()
if os.path.isfile('REA... |
b4ebc0ce26a1b0e77ced117be1c18c43364cd27d | setup.py | setup.py | #!/usr/bin/env python
from setuptools import setup, find_packages
import conveyor
install_requires = [
"APScheduler",
"forklift",
"PyYAML",
"redis",
"xmlrpc2",
]
setup(
name="conveyor",
version=conveyor.__version__,
description="Warehouse and PyPI Synchronization",
long_descript... | #!/usr/bin/env python
from setuptools import setup, find_packages
import conveyor
install_requires = [
"APScheduler",
"forklift",
"redis",
"xmlrpc2",
]
setup(
name="conveyor",
version=conveyor.__version__,
description="Warehouse and PyPI Synchronization",
long_description=open("READ... | Remove the no longer needed PyYAML requirement | Remove the no longer needed PyYAML requirement
| Python | bsd-2-clause | crateio/carrier | #!/usr/bin/env python
from setuptools import setup, find_packages
import conveyor
install_requires = [
"APScheduler",
"forklift",
"PyYAML",
"redis",
"xmlrpc2",
]
setup(
name="conveyor",
version=conveyor.__version__,
description="Warehouse and PyPI Synchronization",
long_descript... | #!/usr/bin/env python
from setuptools import setup, find_packages
import conveyor
install_requires = [
"APScheduler",
"forklift",
"redis",
"xmlrpc2",
]
setup(
name="conveyor",
version=conveyor.__version__,
description="Warehouse and PyPI Synchronization",
long_description=open("READ... | <commit_before>#!/usr/bin/env python
from setuptools import setup, find_packages
import conveyor
install_requires = [
"APScheduler",
"forklift",
"PyYAML",
"redis",
"xmlrpc2",
]
setup(
name="conveyor",
version=conveyor.__version__,
description="Warehouse and PyPI Synchronization",
... | #!/usr/bin/env python
from setuptools import setup, find_packages
import conveyor
install_requires = [
"APScheduler",
"forklift",
"redis",
"xmlrpc2",
]
setup(
name="conveyor",
version=conveyor.__version__,
description="Warehouse and PyPI Synchronization",
long_description=open("READ... | #!/usr/bin/env python
from setuptools import setup, find_packages
import conveyor
install_requires = [
"APScheduler",
"forklift",
"PyYAML",
"redis",
"xmlrpc2",
]
setup(
name="conveyor",
version=conveyor.__version__,
description="Warehouse and PyPI Synchronization",
long_descript... | <commit_before>#!/usr/bin/env python
from setuptools import setup, find_packages
import conveyor
install_requires = [
"APScheduler",
"forklift",
"PyYAML",
"redis",
"xmlrpc2",
]
setup(
name="conveyor",
version=conveyor.__version__,
description="Warehouse and PyPI Synchronization",
... |
8d15170cb298d06a74b2cdc07c18b4d81cf8f84a | setup.py | setup.py | #! /usr/bin/env python
# coding: utf-8
from setuptools import find_packages, setup
setup(name='ego.io',
author='openego development group',
author_email='oemof@rl-institut.de',
description='ego input/output repository',
version='0.0.1rc3',
url='https://github.com/openego/ego.io',
p... | #! /usr/bin/env python
# coding: utf-8
from setuptools import find_packages, setup
setup(name='ego.io',
author='openego development group',
author_email='oemof@rl-institut.de',
description='ego input/output repository',
version='0.0.1rc4',
url='https://github.com/openego/ego.io',
p... | Fix dependency specification and update version | Fix dependency specification and update version
| Python | agpl-3.0 | openego/ego.io,openego/ego.io | #! /usr/bin/env python
# coding: utf-8
from setuptools import find_packages, setup
setup(name='ego.io',
author='openego development group',
author_email='oemof@rl-institut.de',
description='ego input/output repository',
version='0.0.1rc3',
url='https://github.com/openego/ego.io',
p... | #! /usr/bin/env python
# coding: utf-8
from setuptools import find_packages, setup
setup(name='ego.io',
author='openego development group',
author_email='oemof@rl-institut.de',
description='ego input/output repository',
version='0.0.1rc4',
url='https://github.com/openego/ego.io',
p... | <commit_before>#! /usr/bin/env python
# coding: utf-8
from setuptools import find_packages, setup
setup(name='ego.io',
author='openego development group',
author_email='oemof@rl-institut.de',
description='ego input/output repository',
version='0.0.1rc3',
url='https://github.com/openego/e... | #! /usr/bin/env python
# coding: utf-8
from setuptools import find_packages, setup
setup(name='ego.io',
author='openego development group',
author_email='oemof@rl-institut.de',
description='ego input/output repository',
version='0.0.1rc4',
url='https://github.com/openego/ego.io',
p... | #! /usr/bin/env python
# coding: utf-8
from setuptools import find_packages, setup
setup(name='ego.io',
author='openego development group',
author_email='oemof@rl-institut.de',
description='ego input/output repository',
version='0.0.1rc3',
url='https://github.com/openego/ego.io',
p... | <commit_before>#! /usr/bin/env python
# coding: utf-8
from setuptools import find_packages, setup
setup(name='ego.io',
author='openego development group',
author_email='oemof@rl-institut.de',
description='ego input/output repository',
version='0.0.1rc3',
url='https://github.com/openego/e... |
45c60c3eb2b13a028470ca41fe518562028213f7 | setup.py | setup.py | import sys
from setuptools import setup
from setuptools.command.test import test as TestCommand
class PyTest(TestCommand):
def finalize_options(self):
# XXX sometimes TestCommand is not a newstyle class
TestCommand.finalize_options(self)
self.test_args = []
self.test_suite = True
... | import sys
from setuptools import setup
from setuptools.command.test import test as TestCommand
class PyTest(TestCommand):
def finalize_options(self):
# XXX sometimes TestCommand is not a newstyle class
TestCommand.finalize_options(self)
self.test_args = []
self.test_suite = True
... | Remove absent extractor from entry points | Remove absent extractor from entry points
| Python | mit | ravishi/rdio-dl | import sys
from setuptools import setup
from setuptools.command.test import test as TestCommand
class PyTest(TestCommand):
def finalize_options(self):
# XXX sometimes TestCommand is not a newstyle class
TestCommand.finalize_options(self)
self.test_args = []
self.test_suite = True
... | import sys
from setuptools import setup
from setuptools.command.test import test as TestCommand
class PyTest(TestCommand):
def finalize_options(self):
# XXX sometimes TestCommand is not a newstyle class
TestCommand.finalize_options(self)
self.test_args = []
self.test_suite = True
... | <commit_before>import sys
from setuptools import setup
from setuptools.command.test import test as TestCommand
class PyTest(TestCommand):
def finalize_options(self):
# XXX sometimes TestCommand is not a newstyle class
TestCommand.finalize_options(self)
self.test_args = []
self.test... | import sys
from setuptools import setup
from setuptools.command.test import test as TestCommand
class PyTest(TestCommand):
def finalize_options(self):
# XXX sometimes TestCommand is not a newstyle class
TestCommand.finalize_options(self)
self.test_args = []
self.test_suite = True
... | import sys
from setuptools import setup
from setuptools.command.test import test as TestCommand
class PyTest(TestCommand):
def finalize_options(self):
# XXX sometimes TestCommand is not a newstyle class
TestCommand.finalize_options(self)
self.test_args = []
self.test_suite = True
... | <commit_before>import sys
from setuptools import setup
from setuptools.command.test import test as TestCommand
class PyTest(TestCommand):
def finalize_options(self):
# XXX sometimes TestCommand is not a newstyle class
TestCommand.finalize_options(self)
self.test_args = []
self.test... |
02e92e5989f140cca86b6826f6be57f240f54b9f | setup.py | setup.py | from setuptools import setup, find_packages
from version import get_git_version
setup(name='thecut-durationfield',
author='The Cut', author_email='development@thecut.net.au',
url='http://projects.thecut.net.au/projects/thecut-durationfield',
namespace_packages=['thecut'],
version=get_git_version(),
... | from setuptools import setup, find_packages
from version import get_git_version
setup(name='thecut-durationfield',
author='The Cut', author_email='development@thecut.net.au',
url='http://projects.thecut.net.au/projects/thecut-durationfield',
namespace_packages=['thecut'],
version=get_git_version(),
... | Add isodate to the required dependencies. | Add isodate to the required dependencies.
| Python | apache-2.0 | thecut/thecut-durationfield,mighty-justice/thecut-durationfield | from setuptools import setup, find_packages
from version import get_git_version
setup(name='thecut-durationfield',
author='The Cut', author_email='development@thecut.net.au',
url='http://projects.thecut.net.au/projects/thecut-durationfield',
namespace_packages=['thecut'],
version=get_git_version(),
... | from setuptools import setup, find_packages
from version import get_git_version
setup(name='thecut-durationfield',
author='The Cut', author_email='development@thecut.net.au',
url='http://projects.thecut.net.au/projects/thecut-durationfield',
namespace_packages=['thecut'],
version=get_git_version(),
... | <commit_before>from setuptools import setup, find_packages
from version import get_git_version
setup(name='thecut-durationfield',
author='The Cut', author_email='development@thecut.net.au',
url='http://projects.thecut.net.au/projects/thecut-durationfield',
namespace_packages=['thecut'],
version=get_git... | from setuptools import setup, find_packages
from version import get_git_version
setup(name='thecut-durationfield',
author='The Cut', author_email='development@thecut.net.au',
url='http://projects.thecut.net.au/projects/thecut-durationfield',
namespace_packages=['thecut'],
version=get_git_version(),
... | from setuptools import setup, find_packages
from version import get_git_version
setup(name='thecut-durationfield',
author='The Cut', author_email='development@thecut.net.au',
url='http://projects.thecut.net.au/projects/thecut-durationfield',
namespace_packages=['thecut'],
version=get_git_version(),
... | <commit_before>from setuptools import setup, find_packages
from version import get_git_version
setup(name='thecut-durationfield',
author='The Cut', author_email='development@thecut.net.au',
url='http://projects.thecut.net.au/projects/thecut-durationfield',
namespace_packages=['thecut'],
version=get_git... |
43447fd417adc475f5e077d75cc81b14083c097a | setup.py | setup.py | import codecs
from os import path
from setuptools import find_packages, setup
def read(*parts):
filename = path.join(path.dirname(__file__), *parts)
with codecs.open(filename, encoding="utf-8") as fp:
return fp.read()
setup(
author="",
author_email="",
description="",
name="pinax-{{... | import codecs
from os import path
from setuptools import find_packages, setup
def read(*parts):
filename = path.join(path.dirname(__file__), *parts)
with codecs.open(filename, encoding="utf-8") as fp:
return fp.read()
setup(
author="",
author_email="",
description="",
name="pinax-{{... | Make sure Django is required | Make sure Django is required
| Python | mit | pinax/pinax-starter-app | import codecs
from os import path
from setuptools import find_packages, setup
def read(*parts):
filename = path.join(path.dirname(__file__), *parts)
with codecs.open(filename, encoding="utf-8") as fp:
return fp.read()
setup(
author="",
author_email="",
description="",
name="pinax-{{... | import codecs
from os import path
from setuptools import find_packages, setup
def read(*parts):
filename = path.join(path.dirname(__file__), *parts)
with codecs.open(filename, encoding="utf-8") as fp:
return fp.read()
setup(
author="",
author_email="",
description="",
name="pinax-{{... | <commit_before>import codecs
from os import path
from setuptools import find_packages, setup
def read(*parts):
filename = path.join(path.dirname(__file__), *parts)
with codecs.open(filename, encoding="utf-8") as fp:
return fp.read()
setup(
author="",
author_email="",
description="",
... | import codecs
from os import path
from setuptools import find_packages, setup
def read(*parts):
filename = path.join(path.dirname(__file__), *parts)
with codecs.open(filename, encoding="utf-8") as fp:
return fp.read()
setup(
author="",
author_email="",
description="",
name="pinax-{{... | import codecs
from os import path
from setuptools import find_packages, setup
def read(*parts):
filename = path.join(path.dirname(__file__), *parts)
with codecs.open(filename, encoding="utf-8") as fp:
return fp.read()
setup(
author="",
author_email="",
description="",
name="pinax-{{... | <commit_before>import codecs
from os import path
from setuptools import find_packages, setup
def read(*parts):
filename = path.join(path.dirname(__file__), *parts)
with codecs.open(filename, encoding="utf-8") as fp:
return fp.read()
setup(
author="",
author_email="",
description="",
... |
53521d92b14603229521840d48e5b10b8882011c | setup.py | setup.py | import re
from setuptools import setup, find_packages
INIT_FILE = 'pg_grant/__init__.py'
init_data = open(INIT_FILE).read()
metadata = dict(re.findall("__([a-z]+)__ = '([^']+)'", init_data))
VERSION = metadata['version']
LICENSE = metadata['license']
DESCRIPTION = metadata['description']
AUTHOR = metadata['author'... | import re
from setuptools import setup, find_packages
INIT_FILE = 'pg_grant/__init__.py'
init_data = open(INIT_FILE).read()
metadata = dict(re.findall("__([a-z]+)__ = '([^']+)'", init_data))
VERSION = metadata['version']
LICENSE = metadata['license']
DESCRIPTION = metadata['description']
AUTHOR = metadata['author'... | Add postgresql extra to sqlalchemy | Add postgresql extra to sqlalchemy
Was implicitly being installed with testcontainers
| Python | mit | RazerM/pg_grant,RazerM/pg_grant | import re
from setuptools import setup, find_packages
INIT_FILE = 'pg_grant/__init__.py'
init_data = open(INIT_FILE).read()
metadata = dict(re.findall("__([a-z]+)__ = '([^']+)'", init_data))
VERSION = metadata['version']
LICENSE = metadata['license']
DESCRIPTION = metadata['description']
AUTHOR = metadata['author'... | import re
from setuptools import setup, find_packages
INIT_FILE = 'pg_grant/__init__.py'
init_data = open(INIT_FILE).read()
metadata = dict(re.findall("__([a-z]+)__ = '([^']+)'", init_data))
VERSION = metadata['version']
LICENSE = metadata['license']
DESCRIPTION = metadata['description']
AUTHOR = metadata['author'... | <commit_before>import re
from setuptools import setup, find_packages
INIT_FILE = 'pg_grant/__init__.py'
init_data = open(INIT_FILE).read()
metadata = dict(re.findall("__([a-z]+)__ = '([^']+)'", init_data))
VERSION = metadata['version']
LICENSE = metadata['license']
DESCRIPTION = metadata['description']
AUTHOR = me... | import re
from setuptools import setup, find_packages
INIT_FILE = 'pg_grant/__init__.py'
init_data = open(INIT_FILE).read()
metadata = dict(re.findall("__([a-z]+)__ = '([^']+)'", init_data))
VERSION = metadata['version']
LICENSE = metadata['license']
DESCRIPTION = metadata['description']
AUTHOR = metadata['author'... | import re
from setuptools import setup, find_packages
INIT_FILE = 'pg_grant/__init__.py'
init_data = open(INIT_FILE).read()
metadata = dict(re.findall("__([a-z]+)__ = '([^']+)'", init_data))
VERSION = metadata['version']
LICENSE = metadata['license']
DESCRIPTION = metadata['description']
AUTHOR = metadata['author'... | <commit_before>import re
from setuptools import setup, find_packages
INIT_FILE = 'pg_grant/__init__.py'
init_data = open(INIT_FILE).read()
metadata = dict(re.findall("__([a-z]+)__ = '([^']+)'", init_data))
VERSION = metadata['version']
LICENSE = metadata['license']
DESCRIPTION = metadata['description']
AUTHOR = me... |
34d4cb8826394c408da41e42f7331ee71aba85dc | setup.py | setup.py | from setuptools import setup, find_packages
setup(
name='panoptes_client',
url='https://github.com/zooniverse/panoptes-python-client',
author='Adam McMaster',
author_email='adam@zooniverse.org',
version='1.1.1',
packages=find_packages(),
include_package_data=True,
install_requires=[
... | from setuptools import setup, find_packages
setup(
name='panoptes_client',
url='https://github.com/zooniverse/panoptes-python-client',
author='Adam McMaster',
author_email='adam@zooniverse.org',
version='1.1.1',
packages=find_packages(),
include_package_data=True,
install_requires=[
... | Update mock requirement from <3.1,>=2.0 to >=2.0,<4.1 | Update mock requirement from <3.1,>=2.0 to >=2.0,<4.1
Updates the requirements on [mock](https://github.com/testing-cabal/mock) to permit the latest version.
- [Release notes](https://github.com/testing-cabal/mock/releases)
- [Changelog](https://github.com/testing-cabal/mock/blob/master/CHANGELOG.rst)
- [Commits](http... | Python | apache-2.0 | zooniverse/panoptes-python-client | from setuptools import setup, find_packages
setup(
name='panoptes_client',
url='https://github.com/zooniverse/panoptes-python-client',
author='Adam McMaster',
author_email='adam@zooniverse.org',
version='1.1.1',
packages=find_packages(),
include_package_data=True,
install_requires=[
... | from setuptools import setup, find_packages
setup(
name='panoptes_client',
url='https://github.com/zooniverse/panoptes-python-client',
author='Adam McMaster',
author_email='adam@zooniverse.org',
version='1.1.1',
packages=find_packages(),
include_package_data=True,
install_requires=[
... | <commit_before>from setuptools import setup, find_packages
setup(
name='panoptes_client',
url='https://github.com/zooniverse/panoptes-python-client',
author='Adam McMaster',
author_email='adam@zooniverse.org',
version='1.1.1',
packages=find_packages(),
include_package_data=True,
install... | from setuptools import setup, find_packages
setup(
name='panoptes_client',
url='https://github.com/zooniverse/panoptes-python-client',
author='Adam McMaster',
author_email='adam@zooniverse.org',
version='1.1.1',
packages=find_packages(),
include_package_data=True,
install_requires=[
... | from setuptools import setup, find_packages
setup(
name='panoptes_client',
url='https://github.com/zooniverse/panoptes-python-client',
author='Adam McMaster',
author_email='adam@zooniverse.org',
version='1.1.1',
packages=find_packages(),
include_package_data=True,
install_requires=[
... | <commit_before>from setuptools import setup, find_packages
setup(
name='panoptes_client',
url='https://github.com/zooniverse/panoptes-python-client',
author='Adam McMaster',
author_email='adam@zooniverse.org',
version='1.1.1',
packages=find_packages(),
include_package_data=True,
install... |
6924917e5b5d62d330c8f21774d1871e4fd4e746 | setup.py | setup.py | import os
from setuptools import setup, find_packages
def read_file(filename):
"""Read a file into a string"""
path = os.path.abspath(os.path.dirname(__file__))
filepath = os.path.join(path, filename)
try:
return open(filepath).read()
except IOError:
return ''
setup(
name='dj... | import os
from setuptools import setup, find_packages
def read_file(filename):
"""Read a file into a string"""
path = os.path.abspath(os.path.dirname(__file__))
filepath = os.path.join(path, filename)
try:
return open(filepath).read()
except IOError:
return ''
setup(
name='dj... | Include Python 3.2 and 3.3 classifiers. | Include Python 3.2 and 3.3 classifiers.
| Python | bsd-3-clause | caktus/django-app-template | import os
from setuptools import setup, find_packages
def read_file(filename):
"""Read a file into a string"""
path = os.path.abspath(os.path.dirname(__file__))
filepath = os.path.join(path, filename)
try:
return open(filepath).read()
except IOError:
return ''
setup(
name='dj... | import os
from setuptools import setup, find_packages
def read_file(filename):
"""Read a file into a string"""
path = os.path.abspath(os.path.dirname(__file__))
filepath = os.path.join(path, filename)
try:
return open(filepath).read()
except IOError:
return ''
setup(
name='dj... | <commit_before>import os
from setuptools import setup, find_packages
def read_file(filename):
"""Read a file into a string"""
path = os.path.abspath(os.path.dirname(__file__))
filepath = os.path.join(path, filename)
try:
return open(filepath).read()
except IOError:
return ''
setu... | import os
from setuptools import setup, find_packages
def read_file(filename):
"""Read a file into a string"""
path = os.path.abspath(os.path.dirname(__file__))
filepath = os.path.join(path, filename)
try:
return open(filepath).read()
except IOError:
return ''
setup(
name='dj... | import os
from setuptools import setup, find_packages
def read_file(filename):
"""Read a file into a string"""
path = os.path.abspath(os.path.dirname(__file__))
filepath = os.path.join(path, filename)
try:
return open(filepath).read()
except IOError:
return ''
setup(
name='dj... | <commit_before>import os
from setuptools import setup, find_packages
def read_file(filename):
"""Read a file into a string"""
path = os.path.abspath(os.path.dirname(__file__))
filepath = os.path.join(path, filename)
try:
return open(filepath).read()
except IOError:
return ''
setu... |
2e4241c74385b8679f2b8fa8c16385c91b9e8ef7 | setup.py | setup.py | import sys
from setuptools import setup
_requires = [
'msgpack-python',
]
if sys.version_info < (2, 7, 0, ) :
_requires.append('ordereddict', )
setup(
name='serf-python',
version='0.2.2',
description='serf client for python',
long_description="""
For more details, please see https://... | import sys
from setuptools import setup
_requires = [
'msgpack',
]
if sys.version_info < (2, 7, 0, ) :
_requires.append('ordereddict', )
setup(
name='serf-python',
version='0.2.2',
description='serf client for python',
long_description="""
For more details, please see https://github.... | Change msgpack-python requirement to msgpack | Change msgpack-python requirement to msgpack
This package has been renamed to `msgpack` starting with their `0.5.0` version. The old package seems likely to be deprecated soon, but this change will keep the dependency being updated as intended.
https://pypi.python.org/pypi/msgpack
https://pypi.python.org/pypi/msgp... | Python | mpl-2.0 | spikeekips/serf-python | import sys
from setuptools import setup
_requires = [
'msgpack-python',
]
if sys.version_info < (2, 7, 0, ) :
_requires.append('ordereddict', )
setup(
name='serf-python',
version='0.2.2',
description='serf client for python',
long_description="""
For more details, please see https://... | import sys
from setuptools import setup
_requires = [
'msgpack',
]
if sys.version_info < (2, 7, 0, ) :
_requires.append('ordereddict', )
setup(
name='serf-python',
version='0.2.2',
description='serf client for python',
long_description="""
For more details, please see https://github.... | <commit_before>import sys
from setuptools import setup
_requires = [
'msgpack-python',
]
if sys.version_info < (2, 7, 0, ) :
_requires.append('ordereddict', )
setup(
name='serf-python',
version='0.2.2',
description='serf client for python',
long_description="""
For more details, plea... | import sys
from setuptools import setup
_requires = [
'msgpack',
]
if sys.version_info < (2, 7, 0, ) :
_requires.append('ordereddict', )
setup(
name='serf-python',
version='0.2.2',
description='serf client for python',
long_description="""
For more details, please see https://github.... | import sys
from setuptools import setup
_requires = [
'msgpack-python',
]
if sys.version_info < (2, 7, 0, ) :
_requires.append('ordereddict', )
setup(
name='serf-python',
version='0.2.2',
description='serf client for python',
long_description="""
For more details, please see https://... | <commit_before>import sys
from setuptools import setup
_requires = [
'msgpack-python',
]
if sys.version_info < (2, 7, 0, ) :
_requires.append('ordereddict', )
setup(
name='serf-python',
version='0.2.2',
description='serf client for python',
long_description="""
For more details, plea... |
ab97b48a0e1e80967a6d14ac3996a4288b6003e6 | setup.py | setup.py | #!/usr/bin/env python
from setuptools import setup
def reqs_from_file(filename):
with open(filename) as f:
lineiter = (line.rstrip() for line in f)
return filter(None, lineiter)
setup(
name='git-tools',
version='0.1',
description='git tools',
# Required packages
install_req... | #!/usr/bin/env python
from setuptools import setup
def reqs_from_file(filename):
with open(filename) as f:
lineiter = (line.rstrip() for line in f)
return list(filter(None, lineiter))
setup(
name='git-tools',
version='0.1',
description='git tools',
# Required packages
insta... | Change filter() to list(filter()) for python 3+ | Change filter() to list(filter()) for python 3+
| Python | mit | hughdbrown/git-tools | #!/usr/bin/env python
from setuptools import setup
def reqs_from_file(filename):
with open(filename) as f:
lineiter = (line.rstrip() for line in f)
return filter(None, lineiter)
setup(
name='git-tools',
version='0.1',
description='git tools',
# Required packages
install_req... | #!/usr/bin/env python
from setuptools import setup
def reqs_from_file(filename):
with open(filename) as f:
lineiter = (line.rstrip() for line in f)
return list(filter(None, lineiter))
setup(
name='git-tools',
version='0.1',
description='git tools',
# Required packages
insta... | <commit_before>#!/usr/bin/env python
from setuptools import setup
def reqs_from_file(filename):
with open(filename) as f:
lineiter = (line.rstrip() for line in f)
return filter(None, lineiter)
setup(
name='git-tools',
version='0.1',
description='git tools',
# Required packages
... | #!/usr/bin/env python
from setuptools import setup
def reqs_from_file(filename):
with open(filename) as f:
lineiter = (line.rstrip() for line in f)
return list(filter(None, lineiter))
setup(
name='git-tools',
version='0.1',
description='git tools',
# Required packages
insta... | #!/usr/bin/env python
from setuptools import setup
def reqs_from_file(filename):
with open(filename) as f:
lineiter = (line.rstrip() for line in f)
return filter(None, lineiter)
setup(
name='git-tools',
version='0.1',
description='git tools',
# Required packages
install_req... | <commit_before>#!/usr/bin/env python
from setuptools import setup
def reqs_from_file(filename):
with open(filename) as f:
lineiter = (line.rstrip() for line in f)
return filter(None, lineiter)
setup(
name='git-tools',
version='0.1',
description='git tools',
# Required packages
... |
f6b90f0a3ed43d0136b902259158c62788f1f766 | setup.py | setup.py | #! /usr/bin/env python
from setuptools import find_packages, setup
# import subprocess
#
# subprocess.call(["sudo", "apt-get", "install", "libgeos-dev"])
setup(name='dingo',
author='openego development group',
description='DIstribution Network GeneratOr',
packages=find_packages(),
install_requ... | from setuptools import find_packages, setup
# import subprocess
#
# subprocess.call(["sudo", "apt-get", "install", "libgeos-dev"])
setup(name='dingo',
author='openego development group',
description='DIstribution Network GeneratOr',
packages=find_packages(),
install_requires=['networkx >= 1.11'... | Remove shebang line that directed to python2 | Remove shebang line that directed to python2 | Python | agpl-3.0 | openego/dingo,openego/dingo | #! /usr/bin/env python
from setuptools import find_packages, setup
# import subprocess
#
# subprocess.call(["sudo", "apt-get", "install", "libgeos-dev"])
setup(name='dingo',
author='openego development group',
description='DIstribution Network GeneratOr',
packages=find_packages(),
install_requ... | from setuptools import find_packages, setup
# import subprocess
#
# subprocess.call(["sudo", "apt-get", "install", "libgeos-dev"])
setup(name='dingo',
author='openego development group',
description='DIstribution Network GeneratOr',
packages=find_packages(),
install_requires=['networkx >= 1.11'... | <commit_before>#! /usr/bin/env python
from setuptools import find_packages, setup
# import subprocess
#
# subprocess.call(["sudo", "apt-get", "install", "libgeos-dev"])
setup(name='dingo',
author='openego development group',
description='DIstribution Network GeneratOr',
packages=find_packages(),
... | from setuptools import find_packages, setup
# import subprocess
#
# subprocess.call(["sudo", "apt-get", "install", "libgeos-dev"])
setup(name='dingo',
author='openego development group',
description='DIstribution Network GeneratOr',
packages=find_packages(),
install_requires=['networkx >= 1.11'... | #! /usr/bin/env python
from setuptools import find_packages, setup
# import subprocess
#
# subprocess.call(["sudo", "apt-get", "install", "libgeos-dev"])
setup(name='dingo',
author='openego development group',
description='DIstribution Network GeneratOr',
packages=find_packages(),
install_requ... | <commit_before>#! /usr/bin/env python
from setuptools import find_packages, setup
# import subprocess
#
# subprocess.call(["sudo", "apt-get", "install", "libgeos-dev"])
setup(name='dingo',
author='openego development group',
description='DIstribution Network GeneratOr',
packages=find_packages(),
... |
ee4862e88f5cc726f0974b31b05deb599bbe9422 | setup.py | setup.py | from setuptools import find_packages, setup
from virtualenvapi import __version__
setup(
name='virtualenv-api',
version=__version__,
license='BSD',
author='Sam Kingston and AUTHORS',
author_email='sam@sjkwi.com.au',
description='An API for virtualenv/pip',
long_description=open('README.rst... | from setuptools import find_packages, setup
from virtualenvapi import __version__
setup(
name='virtualenv-api',
version=__version__,
license='BSD',
author='Sam Kingston and AUTHORS',
author_email='sam@sjkwi.com.au',
description='An API for virtualenv/pip',
long_description=open('README.rst... | Update classifiers for supported Python versions | Update classifiers for supported Python versions [ci skip]
| Python | bsd-2-clause | sjkingo/virtualenv-api | from setuptools import find_packages, setup
from virtualenvapi import __version__
setup(
name='virtualenv-api',
version=__version__,
license='BSD',
author='Sam Kingston and AUTHORS',
author_email='sam@sjkwi.com.au',
description='An API for virtualenv/pip',
long_description=open('README.rst... | from setuptools import find_packages, setup
from virtualenvapi import __version__
setup(
name='virtualenv-api',
version=__version__,
license='BSD',
author='Sam Kingston and AUTHORS',
author_email='sam@sjkwi.com.au',
description='An API for virtualenv/pip',
long_description=open('README.rst... | <commit_before>from setuptools import find_packages, setup
from virtualenvapi import __version__
setup(
name='virtualenv-api',
version=__version__,
license='BSD',
author='Sam Kingston and AUTHORS',
author_email='sam@sjkwi.com.au',
description='An API for virtualenv/pip',
long_description=o... | from setuptools import find_packages, setup
from virtualenvapi import __version__
setup(
name='virtualenv-api',
version=__version__,
license='BSD',
author='Sam Kingston and AUTHORS',
author_email='sam@sjkwi.com.au',
description='An API for virtualenv/pip',
long_description=open('README.rst... | from setuptools import find_packages, setup
from virtualenvapi import __version__
setup(
name='virtualenv-api',
version=__version__,
license='BSD',
author='Sam Kingston and AUTHORS',
author_email='sam@sjkwi.com.au',
description='An API for virtualenv/pip',
long_description=open('README.rst... | <commit_before>from setuptools import find_packages, setup
from virtualenvapi import __version__
setup(
name='virtualenv-api',
version=__version__,
license='BSD',
author='Sam Kingston and AUTHORS',
author_email='sam@sjkwi.com.au',
description='An API for virtualenv/pip',
long_description=o... |
490edfaab48ec010f53e1653c2ec4593fcd11a44 | setup.py | setup.py | from __future__ import with_statement
import os
from setuptools import setup
this_dir = os.path.dirname(__file__)
with open(os.path.join(this_dir, 'src', 'pydocstyle', 'utils.py')) as f:
for line in f:
if line.startswith('__version__'):
version = eval(line.split('=')[-1])
setup(
name='p... | from __future__ import with_statement
import os
from setuptools import setup
this_dir = os.path.dirname(__file__)
with open(os.path.join(this_dir, 'src', 'pydocstyle', 'utils.py')) as f:
for line in f:
if line.startswith('__version__'):
version = eval(line.split('=')[-1])
setup(
name='p... | Remove version number for snowballstemmer | Remove version number for snowballstemmer | Python | mit | farmersez/pydocstyle,Nurdok/pydocstyle,PyCQA/pydocstyle,GreenSteam/pep257,Nurdok/pep257 | from __future__ import with_statement
import os
from setuptools import setup
this_dir = os.path.dirname(__file__)
with open(os.path.join(this_dir, 'src', 'pydocstyle', 'utils.py')) as f:
for line in f:
if line.startswith('__version__'):
version = eval(line.split('=')[-1])
setup(
name='p... | from __future__ import with_statement
import os
from setuptools import setup
this_dir = os.path.dirname(__file__)
with open(os.path.join(this_dir, 'src', 'pydocstyle', 'utils.py')) as f:
for line in f:
if line.startswith('__version__'):
version = eval(line.split('=')[-1])
setup(
name='p... | <commit_before>from __future__ import with_statement
import os
from setuptools import setup
this_dir = os.path.dirname(__file__)
with open(os.path.join(this_dir, 'src', 'pydocstyle', 'utils.py')) as f:
for line in f:
if line.startswith('__version__'):
version = eval(line.split('=')[-1])
set... | from __future__ import with_statement
import os
from setuptools import setup
this_dir = os.path.dirname(__file__)
with open(os.path.join(this_dir, 'src', 'pydocstyle', 'utils.py')) as f:
for line in f:
if line.startswith('__version__'):
version = eval(line.split('=')[-1])
setup(
name='p... | from __future__ import with_statement
import os
from setuptools import setup
this_dir = os.path.dirname(__file__)
with open(os.path.join(this_dir, 'src', 'pydocstyle', 'utils.py')) as f:
for line in f:
if line.startswith('__version__'):
version = eval(line.split('=')[-1])
setup(
name='p... | <commit_before>from __future__ import with_statement
import os
from setuptools import setup
this_dir = os.path.dirname(__file__)
with open(os.path.join(this_dir, 'src', 'pydocstyle', 'utils.py')) as f:
for line in f:
if line.startswith('__version__'):
version = eval(line.split('=')[-1])
set... |
df66df626012bab0cf6a5887e7f11ca64ca9d02c | setup.py | setup.py | # -*- coding: utf-8 -*-
# HACK for `nose.collector` to work on python 2.7.3 and earlier
import multiprocessing
from setuptools import setup, find_packages
setup(name='quantized-mesh-tile',
version='0.0.1',
description='Quantized-Mesh format reader and writer',
author='Loicc Gaer',
author_email... | # -*- coding: utf-8 -*-
# HACK for `nose.collector` to work on python 2.7.3 and earlier
import multiprocessing
from setuptools import setup, find_packages
setup(name='quantized-mesh-tile',
version='0.1.1',
description='Quantized-Mesh format reader and writer',
author='Loicc Gaer',
author_email... | Exclude doc from pypi module | Exclude doc from pypi module
| Python | mit | loicgasser/quantized-mesh-tile | # -*- coding: utf-8 -*-
# HACK for `nose.collector` to work on python 2.7.3 and earlier
import multiprocessing
from setuptools import setup, find_packages
setup(name='quantized-mesh-tile',
version='0.0.1',
description='Quantized-Mesh format reader and writer',
author='Loicc Gaer',
author_email... | # -*- coding: utf-8 -*-
# HACK for `nose.collector` to work on python 2.7.3 and earlier
import multiprocessing
from setuptools import setup, find_packages
setup(name='quantized-mesh-tile',
version='0.1.1',
description='Quantized-Mesh format reader and writer',
author='Loicc Gaer',
author_email... | <commit_before># -*- coding: utf-8 -*-
# HACK for `nose.collector` to work on python 2.7.3 and earlier
import multiprocessing
from setuptools import setup, find_packages
setup(name='quantized-mesh-tile',
version='0.0.1',
description='Quantized-Mesh format reader and writer',
author='Loicc Gaer',
... | # -*- coding: utf-8 -*-
# HACK for `nose.collector` to work on python 2.7.3 and earlier
import multiprocessing
from setuptools import setup, find_packages
setup(name='quantized-mesh-tile',
version='0.1.1',
description='Quantized-Mesh format reader and writer',
author='Loicc Gaer',
author_email... | # -*- coding: utf-8 -*-
# HACK for `nose.collector` to work on python 2.7.3 and earlier
import multiprocessing
from setuptools import setup, find_packages
setup(name='quantized-mesh-tile',
version='0.0.1',
description='Quantized-Mesh format reader and writer',
author='Loicc Gaer',
author_email... | <commit_before># -*- coding: utf-8 -*-
# HACK for `nose.collector` to work on python 2.7.3 and earlier
import multiprocessing
from setuptools import setup, find_packages
setup(name='quantized-mesh-tile',
version='0.0.1',
description='Quantized-Mesh format reader and writer',
author='Loicc Gaer',
... |
e2e0600d111ca871141a1522c3c5356622db922d | setup.py | setup.py | from distutils.core import setup
import os
f = open("README.rst")
try:
try:
readme_text = f.read()
except:
readme_text = ""
finally:
f.close()
setup(name="ftptool", version="0.2",
url="http://blogg.se",
description="Higher-level interface to ftplib",
author="Blogg Esse AB",
... | from distutils.core import setup
import os
f = open("README.rst")
try:
try:
readme_text = f.read()
except:
readme_text = ""
finally:
f.close()
setup(name="ftptool", version="0.3",
url="http://blogg.se",
description="Higher-level interface to ftplib",
author="Blogg Esse AB",
... | Prepare for new version: 0.3 | Prepare for new version: 0.3
| Python | bsd-3-clause | bloggse/ftptool | from distutils.core import setup
import os
f = open("README.rst")
try:
try:
readme_text = f.read()
except:
readme_text = ""
finally:
f.close()
setup(name="ftptool", version="0.2",
url="http://blogg.se",
description="Higher-level interface to ftplib",
author="Blogg Esse AB",
... | from distutils.core import setup
import os
f = open("README.rst")
try:
try:
readme_text = f.read()
except:
readme_text = ""
finally:
f.close()
setup(name="ftptool", version="0.3",
url="http://blogg.se",
description="Higher-level interface to ftplib",
author="Blogg Esse AB",
... | <commit_before>from distutils.core import setup
import os
f = open("README.rst")
try:
try:
readme_text = f.read()
except:
readme_text = ""
finally:
f.close()
setup(name="ftptool", version="0.2",
url="http://blogg.se",
description="Higher-level interface to ftplib",
author="Blog... | from distutils.core import setup
import os
f = open("README.rst")
try:
try:
readme_text = f.read()
except:
readme_text = ""
finally:
f.close()
setup(name="ftptool", version="0.3",
url="http://blogg.se",
description="Higher-level interface to ftplib",
author="Blogg Esse AB",
... | from distutils.core import setup
import os
f = open("README.rst")
try:
try:
readme_text = f.read()
except:
readme_text = ""
finally:
f.close()
setup(name="ftptool", version="0.2",
url="http://blogg.se",
description="Higher-level interface to ftplib",
author="Blogg Esse AB",
... | <commit_before>from distutils.core import setup
import os
f = open("README.rst")
try:
try:
readme_text = f.read()
except:
readme_text = ""
finally:
f.close()
setup(name="ftptool", version="0.2",
url="http://blogg.se",
description="Higher-level interface to ftplib",
author="Blog... |
8e1d07fd4ae8a2415a133fa46555869238bacaf2 | setup.py | setup.py | from setuptools import setup
setup(name='glreg',
version='0.9.0',
description='OpenGL XML API registry parser',
url='https://github.com/pyokagan/pyglreg',
author='Paul Tan',
author_email='pyokagan@gmail.com',
license='MIT',
classifiers=[
'Development Status :: 3 - A... | from setuptools import setup
setup(name='glreg',
version='0.9.0',
description='OpenGL XML API registry parser',
url='https://github.com/pyokagan/pyglreg',
author='Paul Tan',
author_email='pyokagan@gmail.com',
license='MIT',
classifiers=[
'Development Status :: 3 - A... | Add more pypi trove classifiers | Add more pypi trove classifiers
| Python | mit | pyokagan/pyglreg,pyokagan/pyglreg | from setuptools import setup
setup(name='glreg',
version='0.9.0',
description='OpenGL XML API registry parser',
url='https://github.com/pyokagan/pyglreg',
author='Paul Tan',
author_email='pyokagan@gmail.com',
license='MIT',
classifiers=[
'Development Status :: 3 - A... | from setuptools import setup
setup(name='glreg',
version='0.9.0',
description='OpenGL XML API registry parser',
url='https://github.com/pyokagan/pyglreg',
author='Paul Tan',
author_email='pyokagan@gmail.com',
license='MIT',
classifiers=[
'Development Status :: 3 - A... | <commit_before>from setuptools import setup
setup(name='glreg',
version='0.9.0',
description='OpenGL XML API registry parser',
url='https://github.com/pyokagan/pyglreg',
author='Paul Tan',
author_email='pyokagan@gmail.com',
license='MIT',
classifiers=[
'Development ... | from setuptools import setup
setup(name='glreg',
version='0.9.0',
description='OpenGL XML API registry parser',
url='https://github.com/pyokagan/pyglreg',
author='Paul Tan',
author_email='pyokagan@gmail.com',
license='MIT',
classifiers=[
'Development Status :: 3 - A... | from setuptools import setup
setup(name='glreg',
version='0.9.0',
description='OpenGL XML API registry parser',
url='https://github.com/pyokagan/pyglreg',
author='Paul Tan',
author_email='pyokagan@gmail.com',
license='MIT',
classifiers=[
'Development Status :: 3 - A... | <commit_before>from setuptools import setup
setup(name='glreg',
version='0.9.0',
description='OpenGL XML API registry parser',
url='https://github.com/pyokagan/pyglreg',
author='Paul Tan',
author_email='pyokagan@gmail.com',
license='MIT',
classifiers=[
'Development ... |
3073a03e7d2d801226c525e574f9bba295e12ddd | setup.py | setup.py | # coding:utf-8
from setuptools import setup, find_packages
setup(
name = 'qsctl',
version = '1.0.2',
description = 'Advanced command line tool for QingStor.',
long_description = open('README.rst', 'rb').read().decode('utf-8'),
keywords = 'qingcloud qingstor qsctl',
author = 'Daniel Zheng',
... | # coding:utf-8
from setuptools import setup, find_packages
setup(
name = 'qsctl',
version = '1.0.3',
description = 'Advanced command line tool for QingStor.',
long_description = open('README.rst', 'rb').read().decode('utf-8'),
keywords = 'qingcloud qingstor qsctl',
author = 'Daniel Zheng',
... | Change version number to '1.0.3' | Change version number to '1.0.3'
Signed-off-by: daniel <3d0f3b9ddcacec30c4008c5e030e6c13a478cb4f@yunify.com>
| Python | apache-2.0 | yunify/qsctl,Fiile/qsctl | # coding:utf-8
from setuptools import setup, find_packages
setup(
name = 'qsctl',
version = '1.0.2',
description = 'Advanced command line tool for QingStor.',
long_description = open('README.rst', 'rb').read().decode('utf-8'),
keywords = 'qingcloud qingstor qsctl',
author = 'Daniel Zheng',
... | # coding:utf-8
from setuptools import setup, find_packages
setup(
name = 'qsctl',
version = '1.0.3',
description = 'Advanced command line tool for QingStor.',
long_description = open('README.rst', 'rb').read().decode('utf-8'),
keywords = 'qingcloud qingstor qsctl',
author = 'Daniel Zheng',
... | <commit_before># coding:utf-8
from setuptools import setup, find_packages
setup(
name = 'qsctl',
version = '1.0.2',
description = 'Advanced command line tool for QingStor.',
long_description = open('README.rst', 'rb').read().decode('utf-8'),
keywords = 'qingcloud qingstor qsctl',
author = 'Dan... | # coding:utf-8
from setuptools import setup, find_packages
setup(
name = 'qsctl',
version = '1.0.3',
description = 'Advanced command line tool for QingStor.',
long_description = open('README.rst', 'rb').read().decode('utf-8'),
keywords = 'qingcloud qingstor qsctl',
author = 'Daniel Zheng',
... | # coding:utf-8
from setuptools import setup, find_packages
setup(
name = 'qsctl',
version = '1.0.2',
description = 'Advanced command line tool for QingStor.',
long_description = open('README.rst', 'rb').read().decode('utf-8'),
keywords = 'qingcloud qingstor qsctl',
author = 'Daniel Zheng',
... | <commit_before># coding:utf-8
from setuptools import setup, find_packages
setup(
name = 'qsctl',
version = '1.0.2',
description = 'Advanced command line tool for QingStor.',
long_description = open('README.rst', 'rb').read().decode('utf-8'),
keywords = 'qingcloud qingstor qsctl',
author = 'Dan... |
297ba0a2a3e1d91031093881bcd8d57977e9597c | setup.py | setup.py | from distutils.core import setup
setup(
name='Supermega',
version='0.1.0',
author='Lorenz Bauer',
packages=['supermega', 'supermega.schemata'],
# scripts=['bin/*.py'],
# url='http://pypi.python.org/pypi/TowelStuff/',
license='LICENSE.txt',
description='The overengineered way to access t... | from distutils.core import setup
setup(
name='Supermega',
version='0.1.0',
author='Lorenz Bauer',
packages=['supermega', 'supermega.schemata'],
# scripts=['bin/*.py'],
# url='http://pypi.python.org/pypi/TowelStuff/',
license='LICENSE.txt',
description='The overengineered way to access t... | Update dependencies and add tested version information | Update dependencies and add tested version information
| Python | bsd-3-clause | lmb/Supermega | from distutils.core import setup
setup(
name='Supermega',
version='0.1.0',
author='Lorenz Bauer',
packages=['supermega', 'supermega.schemata'],
# scripts=['bin/*.py'],
# url='http://pypi.python.org/pypi/TowelStuff/',
license='LICENSE.txt',
description='The overengineered way to access t... | from distutils.core import setup
setup(
name='Supermega',
version='0.1.0',
author='Lorenz Bauer',
packages=['supermega', 'supermega.schemata'],
# scripts=['bin/*.py'],
# url='http://pypi.python.org/pypi/TowelStuff/',
license='LICENSE.txt',
description='The overengineered way to access t... | <commit_before>from distutils.core import setup
setup(
name='Supermega',
version='0.1.0',
author='Lorenz Bauer',
packages=['supermega', 'supermega.schemata'],
# scripts=['bin/*.py'],
# url='http://pypi.python.org/pypi/TowelStuff/',
license='LICENSE.txt',
description='The overengineered ... | from distutils.core import setup
setup(
name='Supermega',
version='0.1.0',
author='Lorenz Bauer',
packages=['supermega', 'supermega.schemata'],
# scripts=['bin/*.py'],
# url='http://pypi.python.org/pypi/TowelStuff/',
license='LICENSE.txt',
description='The overengineered way to access t... | from distutils.core import setup
setup(
name='Supermega',
version='0.1.0',
author='Lorenz Bauer',
packages=['supermega', 'supermega.schemata'],
# scripts=['bin/*.py'],
# url='http://pypi.python.org/pypi/TowelStuff/',
license='LICENSE.txt',
description='The overengineered way to access t... | <commit_before>from distutils.core import setup
setup(
name='Supermega',
version='0.1.0',
author='Lorenz Bauer',
packages=['supermega', 'supermega.schemata'],
# scripts=['bin/*.py'],
# url='http://pypi.python.org/pypi/TowelStuff/',
license='LICENSE.txt',
description='The overengineered ... |
403098f581af6517eb57e08b4a0d460f3d7abd54 | setup.py | setup.py | # -*- coding: utf-8 -*-
import sys
from setuptools import setup, find_packages
IS_PY3 = sys.version_info > (3,)
install_requires = [
'jinja2',
'lxml',
]
tests_require = [
]
extras_require = {
'test': tests_require,
}
description = "Library for building and paring Connexions' EPUBs."
if not ... | # -*- coding: utf-8 -*-
import sys
from setuptools import setup, find_packages
IS_PY3 = sys.version_info > (3,)
install_requires = [
'jinja2',
'lxml',
]
collation_requires = [
'cnx-easybake',
]
tests_require = [
]
tests_require.extend(collation_requires)
extras_require = {
'collation': c... | Add optional dependency for collation | :tada: Add optional dependency for collation
| Python | agpl-3.0 | Connexions/cnx-epub,Connexions/cnx-epub,Connexions/cnx-epub | # -*- coding: utf-8 -*-
import sys
from setuptools import setup, find_packages
IS_PY3 = sys.version_info > (3,)
install_requires = [
'jinja2',
'lxml',
]
tests_require = [
]
extras_require = {
'test': tests_require,
}
description = "Library for building and paring Connexions' EPUBs."
if not ... | # -*- coding: utf-8 -*-
import sys
from setuptools import setup, find_packages
IS_PY3 = sys.version_info > (3,)
install_requires = [
'jinja2',
'lxml',
]
collation_requires = [
'cnx-easybake',
]
tests_require = [
]
tests_require.extend(collation_requires)
extras_require = {
'collation': c... | <commit_before># -*- coding: utf-8 -*-
import sys
from setuptools import setup, find_packages
IS_PY3 = sys.version_info > (3,)
install_requires = [
'jinja2',
'lxml',
]
tests_require = [
]
extras_require = {
'test': tests_require,
}
description = "Library for building and paring Connexions' E... | # -*- coding: utf-8 -*-
import sys
from setuptools import setup, find_packages
IS_PY3 = sys.version_info > (3,)
install_requires = [
'jinja2',
'lxml',
]
collation_requires = [
'cnx-easybake',
]
tests_require = [
]
tests_require.extend(collation_requires)
extras_require = {
'collation': c... | # -*- coding: utf-8 -*-
import sys
from setuptools import setup, find_packages
IS_PY3 = sys.version_info > (3,)
install_requires = [
'jinja2',
'lxml',
]
tests_require = [
]
extras_require = {
'test': tests_require,
}
description = "Library for building and paring Connexions' EPUBs."
if not ... | <commit_before># -*- coding: utf-8 -*-
import sys
from setuptools import setup, find_packages
IS_PY3 = sys.version_info > (3,)
install_requires = [
'jinja2',
'lxml',
]
tests_require = [
]
extras_require = {
'test': tests_require,
}
description = "Library for building and paring Connexions' E... |
93017638db261e223aed7e07a8bc02f344bcc4a9 | setup.py | setup.py | #!/usr/bin/env python
"""
sentry-twilio
=============
A plugin for Sentry which sends SMS notifications via Twilio.
:copyright: (c) 2012 by Matt Robenolt
:license: BSD, see LICENSE for more details.
"""
from setuptools import setup, find_packages
install_requires = [
'sentry>=5.0.0',
'phonenumbers',
]
setu... | #!/usr/bin/env python
"""
sentry-twilio
=============
A plugin for Sentry which sends SMS notifications via Twilio.
:copyright: (c) 2012 by Matt Robenolt
:license: BSD, see LICENSE for more details.
"""
from setuptools import setup, find_packages
install_requires = [
'sentry>=5.0.0',
# We don't need full `... | Use phonenumberslite and pin to <8.0 Justin Case | Use phonenumberslite and pin to <8.0 Justin Case
| Python | bsd-2-clause | mattrobenolt/sentry-twilio | #!/usr/bin/env python
"""
sentry-twilio
=============
A plugin for Sentry which sends SMS notifications via Twilio.
:copyright: (c) 2012 by Matt Robenolt
:license: BSD, see LICENSE for more details.
"""
from setuptools import setup, find_packages
install_requires = [
'sentry>=5.0.0',
'phonenumbers',
]
setu... | #!/usr/bin/env python
"""
sentry-twilio
=============
A plugin for Sentry which sends SMS notifications via Twilio.
:copyright: (c) 2012 by Matt Robenolt
:license: BSD, see LICENSE for more details.
"""
from setuptools import setup, find_packages
install_requires = [
'sentry>=5.0.0',
# We don't need full `... | <commit_before>#!/usr/bin/env python
"""
sentry-twilio
=============
A plugin for Sentry which sends SMS notifications via Twilio.
:copyright: (c) 2012 by Matt Robenolt
:license: BSD, see LICENSE for more details.
"""
from setuptools import setup, find_packages
install_requires = [
'sentry>=5.0.0',
'phonenu... | #!/usr/bin/env python
"""
sentry-twilio
=============
A plugin for Sentry which sends SMS notifications via Twilio.
:copyright: (c) 2012 by Matt Robenolt
:license: BSD, see LICENSE for more details.
"""
from setuptools import setup, find_packages
install_requires = [
'sentry>=5.0.0',
# We don't need full `... | #!/usr/bin/env python
"""
sentry-twilio
=============
A plugin for Sentry which sends SMS notifications via Twilio.
:copyright: (c) 2012 by Matt Robenolt
:license: BSD, see LICENSE for more details.
"""
from setuptools import setup, find_packages
install_requires = [
'sentry>=5.0.0',
'phonenumbers',
]
setu... | <commit_before>#!/usr/bin/env python
"""
sentry-twilio
=============
A plugin for Sentry which sends SMS notifications via Twilio.
:copyright: (c) 2012 by Matt Robenolt
:license: BSD, see LICENSE for more details.
"""
from setuptools import setup, find_packages
install_requires = [
'sentry>=5.0.0',
'phonenu... |
9c71195ac286da6fabc854b58145a08fe0a9daf1 | setup.py | setup.py | import os
import sys
from setuptools import setup
if sys.argv[-1] == 'publish':
os.system('python setup.py sdist upload')
sys.exit()
import quill
with open('README.md', 'r') as readme_file:
readme = readme_file.read()
os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir)))
setup... | import os
import sys
from setuptools import setup
if sys.argv[-1] == 'publish':
os.system('make build')
os.system('python setup.py sdist upload')
sys.exit()
import quill
with open('README.md', 'r') as readme_file:
readme = readme_file.read()
os.chdir(os.path.normpath(os.path.join(os.path.abspath(__... | Add build step to PyPI publish command. | Add build step to PyPI publish command.
| Python | bsd-3-clause | gsmke/django-quill,gsmke/django-quill,gsmke/django-quill | import os
import sys
from setuptools import setup
if sys.argv[-1] == 'publish':
os.system('python setup.py sdist upload')
sys.exit()
import quill
with open('README.md', 'r') as readme_file:
readme = readme_file.read()
os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir)))
setup... | import os
import sys
from setuptools import setup
if sys.argv[-1] == 'publish':
os.system('make build')
os.system('python setup.py sdist upload')
sys.exit()
import quill
with open('README.md', 'r') as readme_file:
readme = readme_file.read()
os.chdir(os.path.normpath(os.path.join(os.path.abspath(__... | <commit_before>import os
import sys
from setuptools import setup
if sys.argv[-1] == 'publish':
os.system('python setup.py sdist upload')
sys.exit()
import quill
with open('README.md', 'r') as readme_file:
readme = readme_file.read()
os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.p... | import os
import sys
from setuptools import setup
if sys.argv[-1] == 'publish':
os.system('make build')
os.system('python setup.py sdist upload')
sys.exit()
import quill
with open('README.md', 'r') as readme_file:
readme = readme_file.read()
os.chdir(os.path.normpath(os.path.join(os.path.abspath(__... | import os
import sys
from setuptools import setup
if sys.argv[-1] == 'publish':
os.system('python setup.py sdist upload')
sys.exit()
import quill
with open('README.md', 'r') as readme_file:
readme = readme_file.read()
os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir)))
setup... | <commit_before>import os
import sys
from setuptools import setup
if sys.argv[-1] == 'publish':
os.system('python setup.py sdist upload')
sys.exit()
import quill
with open('README.md', 'r') as readme_file:
readme = readme_file.read()
os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.p... |
3721067c0b18b1f8fb90057bccb206dc9e374f21 | srrun.py | srrun.py | #!/usr/bin/env python
# This Source Code Form is subject to the terms of the Mozilla Public License,
# v. 2.0. If a copy of the MPL was not distributed with this file, You can
# obtain one at http://mozilla.org/MPL/2.0/.
import copy
import os
import subprocess
import sys
mypath = os.path.abspath(__file__)
mydir = os.... | #!/usr/bin/env python
# This Source Code Form is subject to the terms of the Mozilla Public License,
# v. 2.0. If a copy of the MPL was not distributed with this file, You can
# obtain one at http://mozilla.org/MPL/2.0/.
import copy
import os
import subprocess
import sys
mypath = os.path.abspath(__file__)
mydir = os.... | Set umask appropriately for all processes | Set umask appropriately for all processes
| Python | mpl-2.0 | mozilla/stoneridge,mozilla/stoneridge,mozilla/stoneridge,mozilla/stoneridge,mozilla/stoneridge,mozilla/stoneridge,mozilla/stoneridge,mozilla/stoneridge | #!/usr/bin/env python
# This Source Code Form is subject to the terms of the Mozilla Public License,
# v. 2.0. If a copy of the MPL was not distributed with this file, You can
# obtain one at http://mozilla.org/MPL/2.0/.
import copy
import os
import subprocess
import sys
mypath = os.path.abspath(__file__)
mydir = os.... | #!/usr/bin/env python
# This Source Code Form is subject to the terms of the Mozilla Public License,
# v. 2.0. If a copy of the MPL was not distributed with this file, You can
# obtain one at http://mozilla.org/MPL/2.0/.
import copy
import os
import subprocess
import sys
mypath = os.path.abspath(__file__)
mydir = os.... | <commit_before>#!/usr/bin/env python
# This Source Code Form is subject to the terms of the Mozilla Public License,
# v. 2.0. If a copy of the MPL was not distributed with this file, You can
# obtain one at http://mozilla.org/MPL/2.0/.
import copy
import os
import subprocess
import sys
mypath = os.path.abspath(__file... | #!/usr/bin/env python
# This Source Code Form is subject to the terms of the Mozilla Public License,
# v. 2.0. If a copy of the MPL was not distributed with this file, You can
# obtain one at http://mozilla.org/MPL/2.0/.
import copy
import os
import subprocess
import sys
mypath = os.path.abspath(__file__)
mydir = os.... | #!/usr/bin/env python
# This Source Code Form is subject to the terms of the Mozilla Public License,
# v. 2.0. If a copy of the MPL was not distributed with this file, You can
# obtain one at http://mozilla.org/MPL/2.0/.
import copy
import os
import subprocess
import sys
mypath = os.path.abspath(__file__)
mydir = os.... | <commit_before>#!/usr/bin/env python
# This Source Code Form is subject to the terms of the Mozilla Public License,
# v. 2.0. If a copy of the MPL was not distributed with this file, You can
# obtain one at http://mozilla.org/MPL/2.0/.
import copy
import os
import subprocess
import sys
mypath = os.path.abspath(__file... |
3ac532d719472c634bcddd21c146d80ccb217f4c | blog/forms.py | blog/forms.py | from .models import BlogPost, Comment
from django.forms import ModelForm
class BlogPostForm(ModelForm):
class Meta:
model = BlogPost
exclude = ('user',)
class CommentForm(ModelForm):
class Meta:
model = Comment
exclude = ('post', 'user', 'date',)
| from .models import BlogPost, BlogComment
from django.forms import ModelForm
class BlogPostForm(ModelForm):
class Meta:
model = BlogPost
exclude = ('user',)
class CommentForm(ModelForm):
class Meta:
model = BlogComment
exclude = ('post', 'user', 'date',)
| Fix model name for BlogComment after previous refactoring | Fix model name for BlogComment after previous refactoring
| Python | mit | andreagrandi/bloggato,andreagrandi/bloggato | from .models import BlogPost, Comment
from django.forms import ModelForm
class BlogPostForm(ModelForm):
class Meta:
model = BlogPost
exclude = ('user',)
class CommentForm(ModelForm):
class Meta:
model = Comment
exclude = ('post', 'user', 'date',)
Fix model name for BlogComment ... | from .models import BlogPost, BlogComment
from django.forms import ModelForm
class BlogPostForm(ModelForm):
class Meta:
model = BlogPost
exclude = ('user',)
class CommentForm(ModelForm):
class Meta:
model = BlogComment
exclude = ('post', 'user', 'date',)
| <commit_before>from .models import BlogPost, Comment
from django.forms import ModelForm
class BlogPostForm(ModelForm):
class Meta:
model = BlogPost
exclude = ('user',)
class CommentForm(ModelForm):
class Meta:
model = Comment
exclude = ('post', 'user', 'date',)
<commit_msg>Fix ... | from .models import BlogPost, BlogComment
from django.forms import ModelForm
class BlogPostForm(ModelForm):
class Meta:
model = BlogPost
exclude = ('user',)
class CommentForm(ModelForm):
class Meta:
model = BlogComment
exclude = ('post', 'user', 'date',)
| from .models import BlogPost, Comment
from django.forms import ModelForm
class BlogPostForm(ModelForm):
class Meta:
model = BlogPost
exclude = ('user',)
class CommentForm(ModelForm):
class Meta:
model = Comment
exclude = ('post', 'user', 'date',)
Fix model name for BlogComment ... | <commit_before>from .models import BlogPost, Comment
from django.forms import ModelForm
class BlogPostForm(ModelForm):
class Meta:
model = BlogPost
exclude = ('user',)
class CommentForm(ModelForm):
class Meta:
model = Comment
exclude = ('post', 'user', 'date',)
<commit_msg>Fix ... |
dad401390178c9f96a0a68f1fa9e5c82304ad60d | mail_factory/previews.py | mail_factory/previews.py | from base64 import b64encode
from django.conf import settings
from mail_factory.messages import EmailMultiRelated
class PreviewMessage(EmailMultiRelated):
def has_body_html(self):
"""Test if a message contains an alternative rendering in text/html"""
return 'text/html' in self.alternatives
... | # -*- coding: utf-8 -*-
from django.conf import settings
from django.utils.encoding import smart_str
from mail_factory.messages import EmailMultiRelated
class PreviewMessage(EmailMultiRelated):
def has_body_html(self):
"""Test if a message contains an alternative rendering in text/html"""
return ... | Remove `body_html_escaped`. Add rendering filtered by formats. | Remove `body_html_escaped`.
Add rendering filtered by formats.
| Python | bsd-3-clause | novafloss/django-mail-factory,novafloss/django-mail-factory | from base64 import b64encode
from django.conf import settings
from mail_factory.messages import EmailMultiRelated
class PreviewMessage(EmailMultiRelated):
def has_body_html(self):
"""Test if a message contains an alternative rendering in text/html"""
return 'text/html' in self.alternatives
... | # -*- coding: utf-8 -*-
from django.conf import settings
from django.utils.encoding import smart_str
from mail_factory.messages import EmailMultiRelated
class PreviewMessage(EmailMultiRelated):
def has_body_html(self):
"""Test if a message contains an alternative rendering in text/html"""
return ... | <commit_before>from base64 import b64encode
from django.conf import settings
from mail_factory.messages import EmailMultiRelated
class PreviewMessage(EmailMultiRelated):
def has_body_html(self):
"""Test if a message contains an alternative rendering in text/html"""
return 'text/html' in self.alt... | # -*- coding: utf-8 -*-
from django.conf import settings
from django.utils.encoding import smart_str
from mail_factory.messages import EmailMultiRelated
class PreviewMessage(EmailMultiRelated):
def has_body_html(self):
"""Test if a message contains an alternative rendering in text/html"""
return ... | from base64 import b64encode
from django.conf import settings
from mail_factory.messages import EmailMultiRelated
class PreviewMessage(EmailMultiRelated):
def has_body_html(self):
"""Test if a message contains an alternative rendering in text/html"""
return 'text/html' in self.alternatives
... | <commit_before>from base64 import b64encode
from django.conf import settings
from mail_factory.messages import EmailMultiRelated
class PreviewMessage(EmailMultiRelated):
def has_body_html(self):
"""Test if a message contains an alternative rendering in text/html"""
return 'text/html' in self.alt... |
ce2df91a790aedcd0ec08f3526141cd01c63560d | tasks.py | tasks.py | from os import mkdir
from os.path import join
from shutil import rmtree, copytree
from invoke import Collection, ctask as task
from invocations.docs import docs, www
from invocations.packaging import publish
# Until we move to spec-based testing
@task
def test(ctx):
ctx.run("python test.py --verbose", pty=True)
... | from os import mkdir
from os.path import join
from shutil import rmtree, copytree
from invoke import Collection, ctask as task
from invocations.docs import docs, www
from invocations.packaging import publish
# Until we move to spec-based testing
@task
def test(ctx, coverage=False, flags=""):
if "--verbose" not i... | Allow specifying test.py flags in 'inv test' | Allow specifying test.py flags in 'inv test'
| Python | lgpl-2.1 | jaraco/paramiko,mirrorcoder/paramiko,ameily/paramiko,dorianpula/paramiko,SebastianDeiss/paramiko,reaperhulk/paramiko,paramiko/paramiko | from os import mkdir
from os.path import join
from shutil import rmtree, copytree
from invoke import Collection, ctask as task
from invocations.docs import docs, www
from invocations.packaging import publish
# Until we move to spec-based testing
@task
def test(ctx):
ctx.run("python test.py --verbose", pty=True)
... | from os import mkdir
from os.path import join
from shutil import rmtree, copytree
from invoke import Collection, ctask as task
from invocations.docs import docs, www
from invocations.packaging import publish
# Until we move to spec-based testing
@task
def test(ctx, coverage=False, flags=""):
if "--verbose" not i... | <commit_before>from os import mkdir
from os.path import join
from shutil import rmtree, copytree
from invoke import Collection, ctask as task
from invocations.docs import docs, www
from invocations.packaging import publish
# Until we move to spec-based testing
@task
def test(ctx):
ctx.run("python test.py --verbo... | from os import mkdir
from os.path import join
from shutil import rmtree, copytree
from invoke import Collection, ctask as task
from invocations.docs import docs, www
from invocations.packaging import publish
# Until we move to spec-based testing
@task
def test(ctx, coverage=False, flags=""):
if "--verbose" not i... | from os import mkdir
from os.path import join
from shutil import rmtree, copytree
from invoke import Collection, ctask as task
from invocations.docs import docs, www
from invocations.packaging import publish
# Until we move to spec-based testing
@task
def test(ctx):
ctx.run("python test.py --verbose", pty=True)
... | <commit_before>from os import mkdir
from os.path import join
from shutil import rmtree, copytree
from invoke import Collection, ctask as task
from invocations.docs import docs, www
from invocations.packaging import publish
# Until we move to spec-based testing
@task
def test(ctx):
ctx.run("python test.py --verbo... |
3045f6ffbd8433d60178fee59550d30064015b46 | tm/tm.py | tm/tm.py | #!/usr/bin/python
# -*- coding: utf-8 -*-
import sys
import subprocess
import argparse
__version__ = 1.0
__description__ = "A tmux wrapper featuring shortcuts and session presets."
def main(argv):
parser = argparse.ArgumentParser(description=__description__)
parser.add_argument("session",
... | #!/usr/bin/python
# -*- coding: utf-8 -*-
import sys
import subprocess
import argparse
__version__ = 1.0
__description__ = "A tmux wrapper featuring shortcuts and session presets."
def main(argv):
parser = argparse.ArgumentParser(description=__description__)
parser.add_argument("session",
... | Add kill, list, and create commands | Add kill, list, and create commands
| Python | mit | ethanal/tm | #!/usr/bin/python
# -*- coding: utf-8 -*-
import sys
import subprocess
import argparse
__version__ = 1.0
__description__ = "A tmux wrapper featuring shortcuts and session presets."
def main(argv):
parser = argparse.ArgumentParser(description=__description__)
parser.add_argument("session",
... | #!/usr/bin/python
# -*- coding: utf-8 -*-
import sys
import subprocess
import argparse
__version__ = 1.0
__description__ = "A tmux wrapper featuring shortcuts and session presets."
def main(argv):
parser = argparse.ArgumentParser(description=__description__)
parser.add_argument("session",
... | <commit_before>#!/usr/bin/python
# -*- coding: utf-8 -*-
import sys
import subprocess
import argparse
__version__ = 1.0
__description__ = "A tmux wrapper featuring shortcuts and session presets."
def main(argv):
parser = argparse.ArgumentParser(description=__description__)
parser.add_argument("session",
... | #!/usr/bin/python
# -*- coding: utf-8 -*-
import sys
import subprocess
import argparse
__version__ = 1.0
__description__ = "A tmux wrapper featuring shortcuts and session presets."
def main(argv):
parser = argparse.ArgumentParser(description=__description__)
parser.add_argument("session",
... | #!/usr/bin/python
# -*- coding: utf-8 -*-
import sys
import subprocess
import argparse
__version__ = 1.0
__description__ = "A tmux wrapper featuring shortcuts and session presets."
def main(argv):
parser = argparse.ArgumentParser(description=__description__)
parser.add_argument("session",
... | <commit_before>#!/usr/bin/python
# -*- coding: utf-8 -*-
import sys
import subprocess
import argparse
__version__ = 1.0
__description__ = "A tmux wrapper featuring shortcuts and session presets."
def main(argv):
parser = argparse.ArgumentParser(description=__description__)
parser.add_argument("session",
... |
ba4a20ee94355464ec8b35750660f7b8fe0cc3db | tests/test_yaml2ncml.py | tests/test_yaml2ncml.py | from __future__ import (absolute_import, division, print_function)
import subprocess
import tempfile
def test_call():
output = subprocess.check_output(['yaml2ncml', 'roms_0.yaml'])
with open('base_roms_test.ncml') as f:
expected = f.read()
assert output.decode() == expected
def test_save_file()... | from __future__ import (absolute_import, division, print_function)
import subprocess
import tempfile
import pytest
import ruamel.yaml as yaml
from yaml2ncml import build
def test_call():
output = subprocess.check_output(['yaml2ncml', 'roms_0.yaml'])
with open('base_roms_test.ncml') as f:
expected =... | Test bad call/better error msg | Test bad call/better error msg
| Python | mit | ocefpaf/yaml2ncml,USGS-CMG/yaml2ncml | from __future__ import (absolute_import, division, print_function)
import subprocess
import tempfile
def test_call():
output = subprocess.check_output(['yaml2ncml', 'roms_0.yaml'])
with open('base_roms_test.ncml') as f:
expected = f.read()
assert output.decode() == expected
def test_save_file()... | from __future__ import (absolute_import, division, print_function)
import subprocess
import tempfile
import pytest
import ruamel.yaml as yaml
from yaml2ncml import build
def test_call():
output = subprocess.check_output(['yaml2ncml', 'roms_0.yaml'])
with open('base_roms_test.ncml') as f:
expected =... | <commit_before>from __future__ import (absolute_import, division, print_function)
import subprocess
import tempfile
def test_call():
output = subprocess.check_output(['yaml2ncml', 'roms_0.yaml'])
with open('base_roms_test.ncml') as f:
expected = f.read()
assert output.decode() == expected
def t... | from __future__ import (absolute_import, division, print_function)
import subprocess
import tempfile
import pytest
import ruamel.yaml as yaml
from yaml2ncml import build
def test_call():
output = subprocess.check_output(['yaml2ncml', 'roms_0.yaml'])
with open('base_roms_test.ncml') as f:
expected =... | from __future__ import (absolute_import, division, print_function)
import subprocess
import tempfile
def test_call():
output = subprocess.check_output(['yaml2ncml', 'roms_0.yaml'])
with open('base_roms_test.ncml') as f:
expected = f.read()
assert output.decode() == expected
def test_save_file()... | <commit_before>from __future__ import (absolute_import, division, print_function)
import subprocess
import tempfile
def test_call():
output = subprocess.check_output(['yaml2ncml', 'roms_0.yaml'])
with open('base_roms_test.ncml') as f:
expected = f.read()
assert output.decode() == expected
def t... |
42710918df931a6839364e58548dcce2d1346324 | src/tests/gopigo_stub.py | src/tests/gopigo_stub.py | """A stub for the gopigo module."""
calls = []
def servo(angle):
calls.append('servo({0})'.format(angle))
def set_speed(speed):
calls.append('set_speed({0}'.format(speed))
def stop():
calls.append('stop()')
def trim_write(trim):
calls.append('trim_write({0})'.format(trim))
def us_dist(pin):
calls.append('us_... | """A stub for the gopigo module."""
calls = []
def servo(angle):
calls.append('servo({0})'.format(angle))
def set_speed(speed):
calls.append('set_speed({0})'.format(speed))
def set_left_speed(speed):
calls.append('set_left_speed({0})'.format(speed))
def set_right_speed(speed):
calls.append('set_right_speed({0}... | Support for testing robot steering. | Support for testing robot steering.
| Python | mit | RLGarner1/robot_maze,mattskone/robot_maze | """A stub for the gopigo module."""
calls = []
def servo(angle):
calls.append('servo({0})'.format(angle))
def set_speed(speed):
calls.append('set_speed({0}'.format(speed))
def stop():
calls.append('stop()')
def trim_write(trim):
calls.append('trim_write({0})'.format(trim))
def us_dist(pin):
calls.append('us_... | """A stub for the gopigo module."""
calls = []
def servo(angle):
calls.append('servo({0})'.format(angle))
def set_speed(speed):
calls.append('set_speed({0})'.format(speed))
def set_left_speed(speed):
calls.append('set_left_speed({0})'.format(speed))
def set_right_speed(speed):
calls.append('set_right_speed({0}... | <commit_before>"""A stub for the gopigo module."""
calls = []
def servo(angle):
calls.append('servo({0})'.format(angle))
def set_speed(speed):
calls.append('set_speed({0}'.format(speed))
def stop():
calls.append('stop()')
def trim_write(trim):
calls.append('trim_write({0})'.format(trim))
def us_dist(pin):
ca... | """A stub for the gopigo module."""
calls = []
def servo(angle):
calls.append('servo({0})'.format(angle))
def set_speed(speed):
calls.append('set_speed({0})'.format(speed))
def set_left_speed(speed):
calls.append('set_left_speed({0})'.format(speed))
def set_right_speed(speed):
calls.append('set_right_speed({0}... | """A stub for the gopigo module."""
calls = []
def servo(angle):
calls.append('servo({0})'.format(angle))
def set_speed(speed):
calls.append('set_speed({0}'.format(speed))
def stop():
calls.append('stop()')
def trim_write(trim):
calls.append('trim_write({0})'.format(trim))
def us_dist(pin):
calls.append('us_... | <commit_before>"""A stub for the gopigo module."""
calls = []
def servo(angle):
calls.append('servo({0})'.format(angle))
def set_speed(speed):
calls.append('set_speed({0}'.format(speed))
def stop():
calls.append('stop()')
def trim_write(trim):
calls.append('trim_write({0})'.format(trim))
def us_dist(pin):
ca... |
6683bf5e248bdd52f0ebc175dc7c94d5677ba6dd | tools/manifest/utils.py | tools/manifest/utils.py | import os
from contextlib import contextmanager
@contextmanager
def effective_user(uid, gid):
"""
A ContextManager that executes code in the with block with effective uid / gid given
"""
original_uid = os.geteuid()
original_gid = os.getegid()
os.setegid(gid)
os.seteuid(uid)
yield
o... | import os
from contextlib import contextmanager
@contextmanager
def effective_user(uid, gid):
"""
A ContextManager that executes code in the with block with effective uid / gid given
"""
original_uid = os.geteuid()
original_gid = os.getegid()
os.setegid(gid)
os.seteuid(uid)
try:
... | Make effective_user handle exceptions properly | Make effective_user handle exceptions properly
Right now the context manager is just syntactic sugar - setegid
and seteuid aren't called if there's an exception.
Change-Id: I9e2f1d0ada00b03099fe60a8735db1caef8527e9
| Python | mit | wikimedia/operations-software-tools-manifest | import os
from contextlib import contextmanager
@contextmanager
def effective_user(uid, gid):
"""
A ContextManager that executes code in the with block with effective uid / gid given
"""
original_uid = os.geteuid()
original_gid = os.getegid()
os.setegid(gid)
os.seteuid(uid)
yield
o... | import os
from contextlib import contextmanager
@contextmanager
def effective_user(uid, gid):
"""
A ContextManager that executes code in the with block with effective uid / gid given
"""
original_uid = os.geteuid()
original_gid = os.getegid()
os.setegid(gid)
os.seteuid(uid)
try:
... | <commit_before>import os
from contextlib import contextmanager
@contextmanager
def effective_user(uid, gid):
"""
A ContextManager that executes code in the with block with effective uid / gid given
"""
original_uid = os.geteuid()
original_gid = os.getegid()
os.setegid(gid)
os.seteuid(uid)
... | import os
from contextlib import contextmanager
@contextmanager
def effective_user(uid, gid):
"""
A ContextManager that executes code in the with block with effective uid / gid given
"""
original_uid = os.geteuid()
original_gid = os.getegid()
os.setegid(gid)
os.seteuid(uid)
try:
... | import os
from contextlib import contextmanager
@contextmanager
def effective_user(uid, gid):
"""
A ContextManager that executes code in the with block with effective uid / gid given
"""
original_uid = os.geteuid()
original_gid = os.getegid()
os.setegid(gid)
os.seteuid(uid)
yield
o... | <commit_before>import os
from contextlib import contextmanager
@contextmanager
def effective_user(uid, gid):
"""
A ContextManager that executes code in the with block with effective uid / gid given
"""
original_uid = os.geteuid()
original_gid = os.getegid()
os.setegid(gid)
os.seteuid(uid)
... |
004345f50edd4c4b08727efaf5de7ee60f1f1e48 | caffe2/python/operator_test/softplus_op_test.py | caffe2/python/operator_test/softplus_op_test.py | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
from caffe2.python import core
from hypothesis import given
import caffe2.python.hypothesis_test_util as hu
import unittest
class TestSoftplus(hu.HypothesisTestCase):
... | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
from caffe2.python import core
from hypothesis import given
import caffe2.python.hypothesis_test_util as hu
import unittest
class TestSoftplus(hu.HypothesisTestCase):
... | Fix gradient checking for softplus op | Fix gradient checking for softplus op
Summary:
kmatzen why did you set the stepsize in https://github.com/caffe2/caffe2/commit/ff84e7dea6e118710859d62a7207c06b87ae992e?
The test is flaky before this change. Solid afterwards.
Closes https://github.com/caffe2/caffe2/pull/841
Differential Revision: D5292112
Pulled By:... | Python | apache-2.0 | sf-wind/caffe2,xzturn/caffe2,sf-wind/caffe2,pietern/caffe2,sf-wind/caffe2,xzturn/caffe2,Yangqing/caffe2,Yangqing/caffe2,davinwang/caffe2,sf-wind/caffe2,xzturn/caffe2,pietern/caffe2,bwasti/caffe2,sf-wind/caffe2,bwasti/caffe2,davinwang/caffe2,davinwang/caffe2,xzturn/caffe2,pietern/caffe2,pietern/caffe2,davinwang/caffe2,Y... | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
from caffe2.python import core
from hypothesis import given
import caffe2.python.hypothesis_test_util as hu
import unittest
class TestSoftplus(hu.HypothesisTestCase):
... | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
from caffe2.python import core
from hypothesis import given
import caffe2.python.hypothesis_test_util as hu
import unittest
class TestSoftplus(hu.HypothesisTestCase):
... | <commit_before>from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
from caffe2.python import core
from hypothesis import given
import caffe2.python.hypothesis_test_util as hu
import unittest
class TestSoftplus(hu.Hypoth... | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
from caffe2.python import core
from hypothesis import given
import caffe2.python.hypothesis_test_util as hu
import unittest
class TestSoftplus(hu.HypothesisTestCase):
... | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
from caffe2.python import core
from hypothesis import given
import caffe2.python.hypothesis_test_util as hu
import unittest
class TestSoftplus(hu.HypothesisTestCase):
... | <commit_before>from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
from caffe2.python import core
from hypothesis import given
import caffe2.python.hypothesis_test_util as hu
import unittest
class TestSoftplus(hu.Hypoth... |
a06c3845b2e827ff34bdd34844db39a74826f123 | meteocalc/mimicfloat.py | meteocalc/mimicfloat.py | import operator
def math_method(name, right=False):
def wrapper(self, other):
value = self.value
math_func = getattr(operator, name)
if right:
value, other = other, value
result = math_func(value, other)
return type(self)(result, units=self.units)
return ... | from functools import wraps
import operator
def math_method(name, right=False):
math_func = getattr(operator, name)
@wraps(math_func)
def wrapper(self, other):
value = self.value
if right:
value, other = other, value
result = math_func(value, other)
return ty... | Make math method wrapping nicer | Make math method wrapping nicer
| Python | mit | malexer/meteocalc | import operator
def math_method(name, right=False):
def wrapper(self, other):
value = self.value
math_func = getattr(operator, name)
if right:
value, other = other, value
result = math_func(value, other)
return type(self)(result, units=self.units)
return ... | from functools import wraps
import operator
def math_method(name, right=False):
math_func = getattr(operator, name)
@wraps(math_func)
def wrapper(self, other):
value = self.value
if right:
value, other = other, value
result = math_func(value, other)
return ty... | <commit_before>import operator
def math_method(name, right=False):
def wrapper(self, other):
value = self.value
math_func = getattr(operator, name)
if right:
value, other = other, value
result = math_func(value, other)
return type(self)(result, units=self.unit... | from functools import wraps
import operator
def math_method(name, right=False):
math_func = getattr(operator, name)
@wraps(math_func)
def wrapper(self, other):
value = self.value
if right:
value, other = other, value
result = math_func(value, other)
return ty... | import operator
def math_method(name, right=False):
def wrapper(self, other):
value = self.value
math_func = getattr(operator, name)
if right:
value, other = other, value
result = math_func(value, other)
return type(self)(result, units=self.units)
return ... | <commit_before>import operator
def math_method(name, right=False):
def wrapper(self, other):
value = self.value
math_func = getattr(operator, name)
if right:
value, other = other, value
result = math_func(value, other)
return type(self)(result, units=self.unit... |
a8b4553b76f3303017818e60df5504445a6556d0 | dj_experiment/conf.py | dj_experiment/conf.py | import os
from appconf import AppConf
from django.conf import settings
class DjExperimentAppConf(AppConf):
DATA_DIR = "./"
BASE_DATA_DIR = os.path.join(settings.BASE_DIR, 'data')
SEPARATOR = "."
OUTPUT_PREFIX = ""
OUTPUT_SUFFIX = ".nc"
CELERY_BROKER_URL = 'amqp://guest:guest@localhost:5672//'... | import os
from appconf import AppConf
from django.conf import settings
class DjExperimentAppConf(AppConf):
DATA_DIR = "./"
BASE_DATA_DIR = os.path.join(settings.BASE_DIR, 'data')
SEPARATOR = "."
OUTPUT_PREFIX = ""
OUTPUT_SUFFIX = ".nc"
CELERY_BROKER_URL = 'amqp://guest:guest@localhost:5672//'... | Make taggit case-insensitive by default | Make taggit case-insensitive by default
| Python | mit | francbartoli/dj-experiment,francbartoli/dj-experiment | import os
from appconf import AppConf
from django.conf import settings
class DjExperimentAppConf(AppConf):
DATA_DIR = "./"
BASE_DATA_DIR = os.path.join(settings.BASE_DIR, 'data')
SEPARATOR = "."
OUTPUT_PREFIX = ""
OUTPUT_SUFFIX = ".nc"
CELERY_BROKER_URL = 'amqp://guest:guest@localhost:5672//'... | import os
from appconf import AppConf
from django.conf import settings
class DjExperimentAppConf(AppConf):
DATA_DIR = "./"
BASE_DATA_DIR = os.path.join(settings.BASE_DIR, 'data')
SEPARATOR = "."
OUTPUT_PREFIX = ""
OUTPUT_SUFFIX = ".nc"
CELERY_BROKER_URL = 'amqp://guest:guest@localhost:5672//'... | <commit_before>import os
from appconf import AppConf
from django.conf import settings
class DjExperimentAppConf(AppConf):
DATA_DIR = "./"
BASE_DATA_DIR = os.path.join(settings.BASE_DIR, 'data')
SEPARATOR = "."
OUTPUT_PREFIX = ""
OUTPUT_SUFFIX = ".nc"
CELERY_BROKER_URL = 'amqp://guest:guest@lo... | import os
from appconf import AppConf
from django.conf import settings
class DjExperimentAppConf(AppConf):
DATA_DIR = "./"
BASE_DATA_DIR = os.path.join(settings.BASE_DIR, 'data')
SEPARATOR = "."
OUTPUT_PREFIX = ""
OUTPUT_SUFFIX = ".nc"
CELERY_BROKER_URL = 'amqp://guest:guest@localhost:5672//'... | import os
from appconf import AppConf
from django.conf import settings
class DjExperimentAppConf(AppConf):
DATA_DIR = "./"
BASE_DATA_DIR = os.path.join(settings.BASE_DIR, 'data')
SEPARATOR = "."
OUTPUT_PREFIX = ""
OUTPUT_SUFFIX = ".nc"
CELERY_BROKER_URL = 'amqp://guest:guest@localhost:5672//'... | <commit_before>import os
from appconf import AppConf
from django.conf import settings
class DjExperimentAppConf(AppConf):
DATA_DIR = "./"
BASE_DATA_DIR = os.path.join(settings.BASE_DIR, 'data')
SEPARATOR = "."
OUTPUT_PREFIX = ""
OUTPUT_SUFFIX = ".nc"
CELERY_BROKER_URL = 'amqp://guest:guest@lo... |
5eb9c9bf89904f25785955050d991bd4ec20db66 | PRESUBMIT.py | PRESUBMIT.py | # Copyright (c) 2015 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""Top-level presubmit script for catapult.
See https://www.chromium.org/developers/how-tos/depottools/presubmit-scripts
for more details about the pres... | # Copyright (c) 2015 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""Top-level presubmit script for catapult.
See https://www.chromium.org/developers/how-tos/depottools/presubmit-scripts
for more details about the pres... | Remove custom project name, since it changes copyright statements. | Remove custom project name, since it changes copyright statements.
R=qyearsley@chromium.org
Review URL: https://codereview.chromium.org/1212843006.
| Python | bsd-3-clause | SummerLW/Perf-Insight-Report,catapult-project/catapult-csm,catapult-project/catapult-csm,benschmaus/catapult,SummerLW/Perf-Insight-Report,scottmcmaster/catapult,catapult-project/catapult-csm,danbeam/catapult,benschmaus/catapult,scottmcmaster/catapult,benschmaus/catapult,benschmaus/catapult,modulexcite/catapult,catapult... | # Copyright (c) 2015 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""Top-level presubmit script for catapult.
See https://www.chromium.org/developers/how-tos/depottools/presubmit-scripts
for more details about the pres... | # Copyright (c) 2015 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""Top-level presubmit script for catapult.
See https://www.chromium.org/developers/how-tos/depottools/presubmit-scripts
for more details about the pres... | <commit_before># Copyright (c) 2015 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""Top-level presubmit script for catapult.
See https://www.chromium.org/developers/how-tos/depottools/presubmit-scripts
for more details... | # Copyright (c) 2015 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""Top-level presubmit script for catapult.
See https://www.chromium.org/developers/how-tos/depottools/presubmit-scripts
for more details about the pres... | # Copyright (c) 2015 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""Top-level presubmit script for catapult.
See https://www.chromium.org/developers/how-tos/depottools/presubmit-scripts
for more details about the pres... | <commit_before># Copyright (c) 2015 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""Top-level presubmit script for catapult.
See https://www.chromium.org/developers/how-tos/depottools/presubmit-scripts
for more details... |
686a71b4493adf39ed0b9335a1c8f83cf8ce5bfe | ml_metadata/__init__.py | ml_metadata/__init__.py | # 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
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | # 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
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | Add import exception module init. | Add import exception module init.
PiperOrigin-RevId: 421941098
| Python | apache-2.0 | google/ml-metadata,google/ml-metadata,google/ml-metadata,google/ml-metadata | # 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
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | # 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
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | <commit_before># 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
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed ... | # 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
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | # 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
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | <commit_before># 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
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed ... |
fd3ee57a352fd815d2746f3a72196ac62fdceb5c | src/integrationtest/python/shutdown_daemon_tests.py | src/integrationtest/python/shutdown_daemon_tests.py | #!/usr/bin/env python
from __future__ import print_function, absolute_import, division
import os
import shutil
import subprocess
import tempfile
import time
import unittest2
class ShutdownDaemonTests(unittest2.TestCase):
def setUp(self):
self.temp_dir = tempfile.mkdtemp(prefix="succubus-test")
sel... | #!/usr/bin/env python
from __future__ import print_function, absolute_import, division
import os
import shutil
import subprocess
import tempfile
import time
import unittest2
class ShutdownDaemonTests(unittest2.TestCase):
def setUp(self):
self.temp_dir = tempfile.mkdtemp(prefix="succubus-test")
sel... | Revert debugging changes: clean up tempfiles | Revert debugging changes: clean up tempfiles
| Python | apache-2.0 | ImmobilienScout24/succubus | #!/usr/bin/env python
from __future__ import print_function, absolute_import, division
import os
import shutil
import subprocess
import tempfile
import time
import unittest2
class ShutdownDaemonTests(unittest2.TestCase):
def setUp(self):
self.temp_dir = tempfile.mkdtemp(prefix="succubus-test")
sel... | #!/usr/bin/env python
from __future__ import print_function, absolute_import, division
import os
import shutil
import subprocess
import tempfile
import time
import unittest2
class ShutdownDaemonTests(unittest2.TestCase):
def setUp(self):
self.temp_dir = tempfile.mkdtemp(prefix="succubus-test")
sel... | <commit_before>#!/usr/bin/env python
from __future__ import print_function, absolute_import, division
import os
import shutil
import subprocess
import tempfile
import time
import unittest2
class ShutdownDaemonTests(unittest2.TestCase):
def setUp(self):
self.temp_dir = tempfile.mkdtemp(prefix="succubus-tes... | #!/usr/bin/env python
from __future__ import print_function, absolute_import, division
import os
import shutil
import subprocess
import tempfile
import time
import unittest2
class ShutdownDaemonTests(unittest2.TestCase):
def setUp(self):
self.temp_dir = tempfile.mkdtemp(prefix="succubus-test")
sel... | #!/usr/bin/env python
from __future__ import print_function, absolute_import, division
import os
import shutil
import subprocess
import tempfile
import time
import unittest2
class ShutdownDaemonTests(unittest2.TestCase):
def setUp(self):
self.temp_dir = tempfile.mkdtemp(prefix="succubus-test")
sel... | <commit_before>#!/usr/bin/env python
from __future__ import print_function, absolute_import, division
import os
import shutil
import subprocess
import tempfile
import time
import unittest2
class ShutdownDaemonTests(unittest2.TestCase):
def setUp(self):
self.temp_dir = tempfile.mkdtemp(prefix="succubus-tes... |
055c15a8e837014bb74a601df776eae642edfd61 | auth_mac/models.py | auth_mac/models.py | from django.db import models
from django.contrib.auth.models import User
import datetime
def default_expiry_time():
return datetime.datetime.now() + datetime.timedelta(days=1)
def random_string():
return User.objects.make_random_password(16)
class Credentials(models.Model):
"Keeps track of issued MAC credentia... | from django.db import models
from django.contrib.auth.models import User
import datetime
def default_expiry_time():
return datetime.datetime.now() + datetime.timedelta(days=1)
def random_string():
return User.objects.make_random_password(16)
class Credentials(models.Model):
"Keeps track of issued MAC credentia... | Add a unicode method for the Nonces | Add a unicode method for the Nonces
| Python | mit | ndevenish/auth_mac | from django.db import models
from django.contrib.auth.models import User
import datetime
def default_expiry_time():
return datetime.datetime.now() + datetime.timedelta(days=1)
def random_string():
return User.objects.make_random_password(16)
class Credentials(models.Model):
"Keeps track of issued MAC credentia... | from django.db import models
from django.contrib.auth.models import User
import datetime
def default_expiry_time():
return datetime.datetime.now() + datetime.timedelta(days=1)
def random_string():
return User.objects.make_random_password(16)
class Credentials(models.Model):
"Keeps track of issued MAC credentia... | <commit_before>from django.db import models
from django.contrib.auth.models import User
import datetime
def default_expiry_time():
return datetime.datetime.now() + datetime.timedelta(days=1)
def random_string():
return User.objects.make_random_password(16)
class Credentials(models.Model):
"Keeps track of issue... | from django.db import models
from django.contrib.auth.models import User
import datetime
def default_expiry_time():
return datetime.datetime.now() + datetime.timedelta(days=1)
def random_string():
return User.objects.make_random_password(16)
class Credentials(models.Model):
"Keeps track of issued MAC credentia... | from django.db import models
from django.contrib.auth.models import User
import datetime
def default_expiry_time():
return datetime.datetime.now() + datetime.timedelta(days=1)
def random_string():
return User.objects.make_random_password(16)
class Credentials(models.Model):
"Keeps track of issued MAC credentia... | <commit_before>from django.db import models
from django.contrib.auth.models import User
import datetime
def default_expiry_time():
return datetime.datetime.now() + datetime.timedelta(days=1)
def random_string():
return User.objects.make_random_password(16)
class Credentials(models.Model):
"Keeps track of issue... |
978b812c9db8c11098aa38b7c630a61cac5574b8 | examples/pltparser.py | examples/pltparser.py | #!/usr/bin/env python
import sys
import networkx as nx
from matplotlib import pyplot
from davies.compass.plt import CompassPltParser
def pltparser(pltfilename):
parser = CompassPltParser(pltfilename)
plt = parser.parse()
g = nx.Graph()
pos = {}
ele = {}
for segment in plt:
prev =... | #!/usr/bin/env python
import sys
import networkx as nx
from matplotlib import pyplot
from davies.compass.plt import CompassPltParser
def pltparser(pltfilename):
parser = CompassPltParser(pltfilename)
plt = parser.parse()
g = nx.Graph()
pos = {}
ele = {}
for segment in plt:
prev = ... | Fix inverted coordinate bug in Compass .PLT Parser example script | Fix inverted coordinate bug in Compass .PLT Parser example script
| Python | mit | riggsd/davies | #!/usr/bin/env python
import sys
import networkx as nx
from matplotlib import pyplot
from davies.compass.plt import CompassPltParser
def pltparser(pltfilename):
parser = CompassPltParser(pltfilename)
plt = parser.parse()
g = nx.Graph()
pos = {}
ele = {}
for segment in plt:
prev =... | #!/usr/bin/env python
import sys
import networkx as nx
from matplotlib import pyplot
from davies.compass.plt import CompassPltParser
def pltparser(pltfilename):
parser = CompassPltParser(pltfilename)
plt = parser.parse()
g = nx.Graph()
pos = {}
ele = {}
for segment in plt:
prev = ... | <commit_before>#!/usr/bin/env python
import sys
import networkx as nx
from matplotlib import pyplot
from davies.compass.plt import CompassPltParser
def pltparser(pltfilename):
parser = CompassPltParser(pltfilename)
plt = parser.parse()
g = nx.Graph()
pos = {}
ele = {}
for segment in plt:... | #!/usr/bin/env python
import sys
import networkx as nx
from matplotlib import pyplot
from davies.compass.plt import CompassPltParser
def pltparser(pltfilename):
parser = CompassPltParser(pltfilename)
plt = parser.parse()
g = nx.Graph()
pos = {}
ele = {}
for segment in plt:
prev = ... | #!/usr/bin/env python
import sys
import networkx as nx
from matplotlib import pyplot
from davies.compass.plt import CompassPltParser
def pltparser(pltfilename):
parser = CompassPltParser(pltfilename)
plt = parser.parse()
g = nx.Graph()
pos = {}
ele = {}
for segment in plt:
prev =... | <commit_before>#!/usr/bin/env python
import sys
import networkx as nx
from matplotlib import pyplot
from davies.compass.plt import CompassPltParser
def pltparser(pltfilename):
parser = CompassPltParser(pltfilename)
plt = parser.parse()
g = nx.Graph()
pos = {}
ele = {}
for segment in plt:... |
97a068d7a83fffd6ed9307ac33da3835e449a935 | obj_sys/default_settings.py | obj_sys/default_settings.py | __author__ = 'weijia'
INSTALLED_APPS += (
'mptt',
'django_mptt_admin',
'tagging',
'ajax_select',
'django_extensions',
'geoposition',
'obj_sys',
# "obj_sys.apps.ObjSysConfig",
)
TEMPLATE_CONTEXT_PROCESSORS += (
'django.core.context_processors.request',
) | __author__ = 'weijia'
INSTALLED_APPS += (
'mptt',
'reversion',
'django_mptt_admin',
'tagging',
'ajax_select',
'django_extensions',
'geoposition',
'obj_sys',
# "obj_sys.apps.ObjSysConfig",
)
TEMPLATE_CONTEXT_PROCESSORS += (
'django.core.context_processors.request',
)
# MIDDLEW... | Add reversion middle ware, but not work. | Add reversion middle ware, but not work.
| Python | bsd-3-clause | weijia/obj_sys,weijia/obj_sys | __author__ = 'weijia'
INSTALLED_APPS += (
'mptt',
'django_mptt_admin',
'tagging',
'ajax_select',
'django_extensions',
'geoposition',
'obj_sys',
# "obj_sys.apps.ObjSysConfig",
)
TEMPLATE_CONTEXT_PROCESSORS += (
'django.core.context_processors.request',
)Add reversion middle ware, b... | __author__ = 'weijia'
INSTALLED_APPS += (
'mptt',
'reversion',
'django_mptt_admin',
'tagging',
'ajax_select',
'django_extensions',
'geoposition',
'obj_sys',
# "obj_sys.apps.ObjSysConfig",
)
TEMPLATE_CONTEXT_PROCESSORS += (
'django.core.context_processors.request',
)
# MIDDLEW... | <commit_before>__author__ = 'weijia'
INSTALLED_APPS += (
'mptt',
'django_mptt_admin',
'tagging',
'ajax_select',
'django_extensions',
'geoposition',
'obj_sys',
# "obj_sys.apps.ObjSysConfig",
)
TEMPLATE_CONTEXT_PROCESSORS += (
'django.core.context_processors.request',
)<commit_msg>A... | __author__ = 'weijia'
INSTALLED_APPS += (
'mptt',
'reversion',
'django_mptt_admin',
'tagging',
'ajax_select',
'django_extensions',
'geoposition',
'obj_sys',
# "obj_sys.apps.ObjSysConfig",
)
TEMPLATE_CONTEXT_PROCESSORS += (
'django.core.context_processors.request',
)
# MIDDLEW... | __author__ = 'weijia'
INSTALLED_APPS += (
'mptt',
'django_mptt_admin',
'tagging',
'ajax_select',
'django_extensions',
'geoposition',
'obj_sys',
# "obj_sys.apps.ObjSysConfig",
)
TEMPLATE_CONTEXT_PROCESSORS += (
'django.core.context_processors.request',
)Add reversion middle ware, b... | <commit_before>__author__ = 'weijia'
INSTALLED_APPS += (
'mptt',
'django_mptt_admin',
'tagging',
'ajax_select',
'django_extensions',
'geoposition',
'obj_sys',
# "obj_sys.apps.ObjSysConfig",
)
TEMPLATE_CONTEXT_PROCESSORS += (
'django.core.context_processors.request',
)<commit_msg>A... |
df131a8f482e712546555e0cb28a58edcf960bf2 | apps/planet/management/commands/update_all_feeds.py | apps/planet/management/commands/update_all_feeds.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from django.core.management.base import BaseCommand
from planet.management.commands import process_feed
from planet.models import Feed
from planet.signals import feeds_updated
class Command(BaseCommand):
"""
Command to add a complete blog feed to our db.
Us... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from datetime import datetime
from django.core.management.base import BaseCommand
from planet.management.commands import process_feed
from planet.models import Feed
from planet.signals import feeds_updated
class Command(BaseCommand):
"""
Command to add a complete... | Print total number of posts added and total elapsed time | Print total number of posts added and total elapsed time
| Python | bsd-3-clause | matagus/django-planet,matagus/django-planet,jilljenn/django-planet,jilljenn/django-planet | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from django.core.management.base import BaseCommand
from planet.management.commands import process_feed
from planet.models import Feed
from planet.signals import feeds_updated
class Command(BaseCommand):
"""
Command to add a complete blog feed to our db.
Us... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from datetime import datetime
from django.core.management.base import BaseCommand
from planet.management.commands import process_feed
from planet.models import Feed
from planet.signals import feeds_updated
class Command(BaseCommand):
"""
Command to add a complete... | <commit_before>#!/usr/bin/env python
# -*- coding: utf-8 -*-
from django.core.management.base import BaseCommand
from planet.management.commands import process_feed
from planet.models import Feed
from planet.signals import feeds_updated
class Command(BaseCommand):
"""
Command to add a complete blog feed to ... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from datetime import datetime
from django.core.management.base import BaseCommand
from planet.management.commands import process_feed
from planet.models import Feed
from planet.signals import feeds_updated
class Command(BaseCommand):
"""
Command to add a complete... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from django.core.management.base import BaseCommand
from planet.management.commands import process_feed
from planet.models import Feed
from planet.signals import feeds_updated
class Command(BaseCommand):
"""
Command to add a complete blog feed to our db.
Us... | <commit_before>#!/usr/bin/env python
# -*- coding: utf-8 -*-
from django.core.management.base import BaseCommand
from planet.management.commands import process_feed
from planet.models import Feed
from planet.signals import feeds_updated
class Command(BaseCommand):
"""
Command to add a complete blog feed to ... |
4c2b4d10beac508747364680d9e9a5d7c3488f97 | confab/api.py | confab/api.py | """
Non-init module for doing convenient * imports from.
"""
from confab.diff import diff
from confab.generate import generate
from confab.pull import pull
from confab.push import push
| """
Non-init module for doing convenient * imports from.
"""
# core
from confab.conffiles import ConfFiles
# jinja2 environment loading
from confab.loaders import load_environment_from_dir, load_environment_from_package
# data loading
from confab.data import load_data_from_dir
# fabric tasks
from confab.diff import... | Add loaders and ConfFiles model to public API. | Add loaders and ConfFiles model to public API.
| Python | apache-2.0 | locationlabs/confab | """
Non-init module for doing convenient * imports from.
"""
from confab.diff import diff
from confab.generate import generate
from confab.pull import pull
from confab.push import push
Add loaders and ConfFiles model to public API. | """
Non-init module for doing convenient * imports from.
"""
# core
from confab.conffiles import ConfFiles
# jinja2 environment loading
from confab.loaders import load_environment_from_dir, load_environment_from_package
# data loading
from confab.data import load_data_from_dir
# fabric tasks
from confab.diff import... | <commit_before>"""
Non-init module for doing convenient * imports from.
"""
from confab.diff import diff
from confab.generate import generate
from confab.pull import pull
from confab.push import push
<commit_msg>Add loaders and ConfFiles model to public API.<commit_after> | """
Non-init module for doing convenient * imports from.
"""
# core
from confab.conffiles import ConfFiles
# jinja2 environment loading
from confab.loaders import load_environment_from_dir, load_environment_from_package
# data loading
from confab.data import load_data_from_dir
# fabric tasks
from confab.diff import... | """
Non-init module for doing convenient * imports from.
"""
from confab.diff import diff
from confab.generate import generate
from confab.pull import pull
from confab.push import push
Add loaders and ConfFiles model to public API."""
Non-init module for doing convenient * imports from.
"""
# core
from confab.conffil... | <commit_before>"""
Non-init module for doing convenient * imports from.
"""
from confab.diff import diff
from confab.generate import generate
from confab.pull import pull
from confab.push import push
<commit_msg>Add loaders and ConfFiles model to public API.<commit_after>"""
Non-init module for doing convenient * impo... |
1a7bf8c3fd5560a8f6cba88607facf8321a97818 | police_api/exceptions.py | police_api/exceptions.py | from requests.exceptions import HTTPError
class BaseException(Exception):
pass
class APIError(BaseException, HTTPError):
"""
The API responded with a non-200 status code.
"""
def __init__(self, http_error):
self.message = getattr(http_error, 'message', None)
self.response = geta... | from requests.exceptions import HTTPError
class BaseException(Exception):
pass
class APIError(BaseException, HTTPError):
"""
The API responded with a non-200 status code.
"""
def __init__(self, http_error):
self.message = getattr(http_error, 'message', None)
self.response = geta... | Add the 'status_code' attribute to the APIError exception if it's available | Add the 'status_code' attribute to the APIError exception if it's available
| Python | mit | rkhleics/police-api-client-python | from requests.exceptions import HTTPError
class BaseException(Exception):
pass
class APIError(BaseException, HTTPError):
"""
The API responded with a non-200 status code.
"""
def __init__(self, http_error):
self.message = getattr(http_error, 'message', None)
self.response = geta... | from requests.exceptions import HTTPError
class BaseException(Exception):
pass
class APIError(BaseException, HTTPError):
"""
The API responded with a non-200 status code.
"""
def __init__(self, http_error):
self.message = getattr(http_error, 'message', None)
self.response = geta... | <commit_before>from requests.exceptions import HTTPError
class BaseException(Exception):
pass
class APIError(BaseException, HTTPError):
"""
The API responded with a non-200 status code.
"""
def __init__(self, http_error):
self.message = getattr(http_error, 'message', None)
self.... | from requests.exceptions import HTTPError
class BaseException(Exception):
pass
class APIError(BaseException, HTTPError):
"""
The API responded with a non-200 status code.
"""
def __init__(self, http_error):
self.message = getattr(http_error, 'message', None)
self.response = geta... | from requests.exceptions import HTTPError
class BaseException(Exception):
pass
class APIError(BaseException, HTTPError):
"""
The API responded with a non-200 status code.
"""
def __init__(self, http_error):
self.message = getattr(http_error, 'message', None)
self.response = geta... | <commit_before>from requests.exceptions import HTTPError
class BaseException(Exception):
pass
class APIError(BaseException, HTTPError):
"""
The API responded with a non-200 status code.
"""
def __init__(self, http_error):
self.message = getattr(http_error, 'message', None)
self.... |
bc20949f8e5461d6ffa901d24677acb1bae922dd | mangopaysdk/types/payinexecutiondetailsdirect.py | mangopaysdk/types/payinexecutiondetailsdirect.py | from mangopaysdk.types.payinexecutiondetails import PayInExecutionDetails
class PayInExecutionDetailsDirect(PayInExecutionDetails):
def __init__(self):
# direct card
self.CardId = None
self.SecureModeReturnURL = None
self.SecureModeRedirectURL = None
# Mode3DSType ... | from mangopaysdk.types.payinexecutiondetails import PayInExecutionDetails
class PayInExecutionDetailsDirect(PayInExecutionDetails):
def __init__(self):
# direct card
self.CardId = None
self.SecureModeReturnURL = None
self.SecureModeRedirectURL = None
# Mode3DSType ... | Add StatementDescriptor for card direct payins | Add StatementDescriptor for card direct payins | Python | mit | chocopoche/mangopay2-python-sdk,Mangopay/mangopay2-python-sdk | from mangopaysdk.types.payinexecutiondetails import PayInExecutionDetails
class PayInExecutionDetailsDirect(PayInExecutionDetails):
def __init__(self):
# direct card
self.CardId = None
self.SecureModeReturnURL = None
self.SecureModeRedirectURL = None
# Mode3DSType ... | from mangopaysdk.types.payinexecutiondetails import PayInExecutionDetails
class PayInExecutionDetailsDirect(PayInExecutionDetails):
def __init__(self):
# direct card
self.CardId = None
self.SecureModeReturnURL = None
self.SecureModeRedirectURL = None
# Mode3DSType ... | <commit_before>from mangopaysdk.types.payinexecutiondetails import PayInExecutionDetails
class PayInExecutionDetailsDirect(PayInExecutionDetails):
def __init__(self):
# direct card
self.CardId = None
self.SecureModeReturnURL = None
self.SecureModeRedirectURL = None
... | from mangopaysdk.types.payinexecutiondetails import PayInExecutionDetails
class PayInExecutionDetailsDirect(PayInExecutionDetails):
def __init__(self):
# direct card
self.CardId = None
self.SecureModeReturnURL = None
self.SecureModeRedirectURL = None
# Mode3DSType ... | from mangopaysdk.types.payinexecutiondetails import PayInExecutionDetails
class PayInExecutionDetailsDirect(PayInExecutionDetails):
def __init__(self):
# direct card
self.CardId = None
self.SecureModeReturnURL = None
self.SecureModeRedirectURL = None
# Mode3DSType ... | <commit_before>from mangopaysdk.types.payinexecutiondetails import PayInExecutionDetails
class PayInExecutionDetailsDirect(PayInExecutionDetails):
def __init__(self):
# direct card
self.CardId = None
self.SecureModeReturnURL = None
self.SecureModeRedirectURL = None
... |
b7a8711afdbd4eaf7dfbf4ae4daab9d340c192b3 | numdifftools/testing.py | numdifftools/testing.py | '''
Created on Apr 4, 2016
@author: pab
'''
import inspect
import numpy as np
def rosen(x):
"""Rosenbrock function
This is a non-convex function used as a performance test problem for
optimization algorithms introduced by Howard H. Rosenbrock in 1960.[1]
"""
x = np.atleast_1d(x)
return (1 - ... | '''
Created on Apr 4, 2016
@author: pab
'''
import inspect
import numpy as np
def rosen(x):
"""Rosenbrock function
This is a non-convex function used as a performance test problem for
optimization algorithms introduced by Howard H. Rosenbrock in 1960.[1]
"""
x = np.atleast_1d(x)
return (1 - ... | Replace string interpolation with format() | Replace string interpolation with format()
| Python | bsd-3-clause | pbrod/numdifftools,pbrod/numdifftools | '''
Created on Apr 4, 2016
@author: pab
'''
import inspect
import numpy as np
def rosen(x):
"""Rosenbrock function
This is a non-convex function used as a performance test problem for
optimization algorithms introduced by Howard H. Rosenbrock in 1960.[1]
"""
x = np.atleast_1d(x)
return (1 - ... | '''
Created on Apr 4, 2016
@author: pab
'''
import inspect
import numpy as np
def rosen(x):
"""Rosenbrock function
This is a non-convex function used as a performance test problem for
optimization algorithms introduced by Howard H. Rosenbrock in 1960.[1]
"""
x = np.atleast_1d(x)
return (1 - ... | <commit_before>'''
Created on Apr 4, 2016
@author: pab
'''
import inspect
import numpy as np
def rosen(x):
"""Rosenbrock function
This is a non-convex function used as a performance test problem for
optimization algorithms introduced by Howard H. Rosenbrock in 1960.[1]
"""
x = np.atleast_1d(x)
... | '''
Created on Apr 4, 2016
@author: pab
'''
import inspect
import numpy as np
def rosen(x):
"""Rosenbrock function
This is a non-convex function used as a performance test problem for
optimization algorithms introduced by Howard H. Rosenbrock in 1960.[1]
"""
x = np.atleast_1d(x)
return (1 - ... | '''
Created on Apr 4, 2016
@author: pab
'''
import inspect
import numpy as np
def rosen(x):
"""Rosenbrock function
This is a non-convex function used as a performance test problem for
optimization algorithms introduced by Howard H. Rosenbrock in 1960.[1]
"""
x = np.atleast_1d(x)
return (1 - ... | <commit_before>'''
Created on Apr 4, 2016
@author: pab
'''
import inspect
import numpy as np
def rosen(x):
"""Rosenbrock function
This is a non-convex function used as a performance test problem for
optimization algorithms introduced by Howard H. Rosenbrock in 1960.[1]
"""
x = np.atleast_1d(x)
... |
f4d1cebe889e4c55bab104f9a2c993c8ed153d34 | ubitflashtool/__main__.py | ubitflashtool/__main__.py | #!/usr/bin/env python2
# -*- coding: utf-8 -*-
import sys
from ubitflashtool.cli import main
from ubitflashtool.gui import open_editor
if __name__ == "__main__":
if len(sys.argv) > 1 and (sys.argv[1] == '-g' or sys.argv[1] == '--gui'):
open_editor()
else:
main(sys.argv[1:])
| #!/usr/bin/env python2
# -*- coding: utf-8 -*-
import sys
from ubitflashtool.cli import main as cli_main
from ubitflashtool.gui import open_editor
def main():
if len(sys.argv) > 1 and (sys.argv[1] == '-g' or sys.argv[1] == '--gui'):
open_editor()
else:
cli_main(sys.argv[1:])
if __name__ == "__... | Fix command line entry point | Fix command line entry point
| Python | mit | carlosperate/ubitflashtool | #!/usr/bin/env python2
# -*- coding: utf-8 -*-
import sys
from ubitflashtool.cli import main
from ubitflashtool.gui import open_editor
if __name__ == "__main__":
if len(sys.argv) > 1 and (sys.argv[1] == '-g' or sys.argv[1] == '--gui'):
open_editor()
else:
main(sys.argv[1:])
Fix command line en... | #!/usr/bin/env python2
# -*- coding: utf-8 -*-
import sys
from ubitflashtool.cli import main as cli_main
from ubitflashtool.gui import open_editor
def main():
if len(sys.argv) > 1 and (sys.argv[1] == '-g' or sys.argv[1] == '--gui'):
open_editor()
else:
cli_main(sys.argv[1:])
if __name__ == "__... | <commit_before>#!/usr/bin/env python2
# -*- coding: utf-8 -*-
import sys
from ubitflashtool.cli import main
from ubitflashtool.gui import open_editor
if __name__ == "__main__":
if len(sys.argv) > 1 and (sys.argv[1] == '-g' or sys.argv[1] == '--gui'):
open_editor()
else:
main(sys.argv[1:])
<com... | #!/usr/bin/env python2
# -*- coding: utf-8 -*-
import sys
from ubitflashtool.cli import main as cli_main
from ubitflashtool.gui import open_editor
def main():
if len(sys.argv) > 1 and (sys.argv[1] == '-g' or sys.argv[1] == '--gui'):
open_editor()
else:
cli_main(sys.argv[1:])
if __name__ == "__... | #!/usr/bin/env python2
# -*- coding: utf-8 -*-
import sys
from ubitflashtool.cli import main
from ubitflashtool.gui import open_editor
if __name__ == "__main__":
if len(sys.argv) > 1 and (sys.argv[1] == '-g' or sys.argv[1] == '--gui'):
open_editor()
else:
main(sys.argv[1:])
Fix command line en... | <commit_before>#!/usr/bin/env python2
# -*- coding: utf-8 -*-
import sys
from ubitflashtool.cli import main
from ubitflashtool.gui import open_editor
if __name__ == "__main__":
if len(sys.argv) > 1 and (sys.argv[1] == '-g' or sys.argv[1] == '--gui'):
open_editor()
else:
main(sys.argv[1:])
<com... |
aafb16a0f96f31a5371ae19bfc1dfc38cc2bb878 | romanesco/executors/python.py | romanesco/executors/python.py | import imp
import json
import sys
def run(task, inputs, outputs, task_inputs, task_outputs, **kwargs):
custom = imp.new_module("custom")
for name in inputs:
custom.__dict__[name] = inputs[name]["script_data"]
custom.__dict__['_job_manager'] = kwargs.get('_job_manager')
try:
exec tas... | import imp
import json
import sys
def run(task, inputs, outputs, task_inputs, task_outputs, **kwargs):
custom = imp.new_module("custom")
custom.__dict__['_job_manager'] = kwargs.get('_job_manager')
for name in inputs:
custom.__dict__[name] = inputs[name]["script_data"]
try:
exec tas... | Allow _job_manager special object to be overriden by task if desired | Allow _job_manager special object to be overriden by task if desired
| Python | apache-2.0 | Kitware/romanesco,girder/girder_worker,girder/girder_worker,Kitware/romanesco,Kitware/romanesco,Kitware/romanesco,girder/girder_worker | import imp
import json
import sys
def run(task, inputs, outputs, task_inputs, task_outputs, **kwargs):
custom = imp.new_module("custom")
for name in inputs:
custom.__dict__[name] = inputs[name]["script_data"]
custom.__dict__['_job_manager'] = kwargs.get('_job_manager')
try:
exec tas... | import imp
import json
import sys
def run(task, inputs, outputs, task_inputs, task_outputs, **kwargs):
custom = imp.new_module("custom")
custom.__dict__['_job_manager'] = kwargs.get('_job_manager')
for name in inputs:
custom.__dict__[name] = inputs[name]["script_data"]
try:
exec tas... | <commit_before>import imp
import json
import sys
def run(task, inputs, outputs, task_inputs, task_outputs, **kwargs):
custom = imp.new_module("custom")
for name in inputs:
custom.__dict__[name] = inputs[name]["script_data"]
custom.__dict__['_job_manager'] = kwargs.get('_job_manager')
try:
... | import imp
import json
import sys
def run(task, inputs, outputs, task_inputs, task_outputs, **kwargs):
custom = imp.new_module("custom")
custom.__dict__['_job_manager'] = kwargs.get('_job_manager')
for name in inputs:
custom.__dict__[name] = inputs[name]["script_data"]
try:
exec tas... | import imp
import json
import sys
def run(task, inputs, outputs, task_inputs, task_outputs, **kwargs):
custom = imp.new_module("custom")
for name in inputs:
custom.__dict__[name] = inputs[name]["script_data"]
custom.__dict__['_job_manager'] = kwargs.get('_job_manager')
try:
exec tas... | <commit_before>import imp
import json
import sys
def run(task, inputs, outputs, task_inputs, task_outputs, **kwargs):
custom = imp.new_module("custom")
for name in inputs:
custom.__dict__[name] = inputs[name]["script_data"]
custom.__dict__['_job_manager'] = kwargs.get('_job_manager')
try:
... |
5101a6626f26ff62ea9e3159aad98bc19b680500 | core/urls.py | core/urls.py | from django.conf.urls import url
import core.views
urlpatterns = [
url(r'^u/(?P<slug>[\w-]+)/$', core.views.run_fn, name="run_fn"),
]
| from django.conf.urls import url
import core.views
urlpatterns = [
url(r'^u/(?P<slug>[\w-\.]+)/?$', core.views.run_fn, name="run_fn"),
]
| Handle period in url slugs | Handle period in url slugs
| Python | mit | theju/urlscript | from django.conf.urls import url
import core.views
urlpatterns = [
url(r'^u/(?P<slug>[\w-]+)/$', core.views.run_fn, name="run_fn"),
]
Handle period in url slugs | from django.conf.urls import url
import core.views
urlpatterns = [
url(r'^u/(?P<slug>[\w-\.]+)/?$', core.views.run_fn, name="run_fn"),
]
| <commit_before>from django.conf.urls import url
import core.views
urlpatterns = [
url(r'^u/(?P<slug>[\w-]+)/$', core.views.run_fn, name="run_fn"),
]
<commit_msg>Handle period in url slugs<commit_after> | from django.conf.urls import url
import core.views
urlpatterns = [
url(r'^u/(?P<slug>[\w-\.]+)/?$', core.views.run_fn, name="run_fn"),
]
| from django.conf.urls import url
import core.views
urlpatterns = [
url(r'^u/(?P<slug>[\w-]+)/$', core.views.run_fn, name="run_fn"),
]
Handle period in url slugsfrom django.conf.urls import url
import core.views
urlpatterns = [
url(r'^u/(?P<slug>[\w-\.]+)/?$', core.views.run_fn, name="run_fn"),
]
| <commit_before>from django.conf.urls import url
import core.views
urlpatterns = [
url(r'^u/(?P<slug>[\w-]+)/$', core.views.run_fn, name="run_fn"),
]
<commit_msg>Handle period in url slugs<commit_after>from django.conf.urls import url
import core.views
urlpatterns = [
url(r'^u/(?P<slug>[\w-\.]+)/?$', core.vi... |
caf6514b6af278583d9816b722fab9456d0ad9f1 | pelicanconf.py | pelicanconf.py | #!/usr/bin/env python
# -*- coding: utf-8 -*- #
from __future__ import unicode_literals
AUTHOR = u'DLR'
SITENAME = u'RCE'
SITEURL = ''
PATH = 'content'
TIMEZONE = 'Europe/Paris'
DEFAULT_LANG = u'en'
DEFAULT_DATE_FORMAT = '%a %d %B %Y'
THEME = 'themes/polar'
# Feed generation is usually not desired when developi... | #!/usr/bin/env python
# -*- coding: utf-8 -*- #
from __future__ import unicode_literals
AUTHOR = u'DLR'
SITENAME = u'RCE'
SITEURL = ''
PATH = 'content'
TIMEZONE = 'Europe/Paris'
DEFAULT_LANG = u'en'
DEFAULT_DATE_FORMAT = '%a %d %B %Y'
THEME = 'themes/polar'
# Feed generation is usually not desired when developi... | Update link to institute in footer to say "Institute for Software Technology" | Update link to institute in footer to say "Institute for Software Technology" | Python | cc0-1.0 | DLR-SC/rce-website,DLR-SC/rce-website,DLR-SC/rce-website,DLR-SC/rce-website,DLR-SC/rce-website | #!/usr/bin/env python
# -*- coding: utf-8 -*- #
from __future__ import unicode_literals
AUTHOR = u'DLR'
SITENAME = u'RCE'
SITEURL = ''
PATH = 'content'
TIMEZONE = 'Europe/Paris'
DEFAULT_LANG = u'en'
DEFAULT_DATE_FORMAT = '%a %d %B %Y'
THEME = 'themes/polar'
# Feed generation is usually not desired when developi... | #!/usr/bin/env python
# -*- coding: utf-8 -*- #
from __future__ import unicode_literals
AUTHOR = u'DLR'
SITENAME = u'RCE'
SITEURL = ''
PATH = 'content'
TIMEZONE = 'Europe/Paris'
DEFAULT_LANG = u'en'
DEFAULT_DATE_FORMAT = '%a %d %B %Y'
THEME = 'themes/polar'
# Feed generation is usually not desired when developi... | <commit_before>#!/usr/bin/env python
# -*- coding: utf-8 -*- #
from __future__ import unicode_literals
AUTHOR = u'DLR'
SITENAME = u'RCE'
SITEURL = ''
PATH = 'content'
TIMEZONE = 'Europe/Paris'
DEFAULT_LANG = u'en'
DEFAULT_DATE_FORMAT = '%a %d %B %Y'
THEME = 'themes/polar'
# Feed generation is usually not desire... | #!/usr/bin/env python
# -*- coding: utf-8 -*- #
from __future__ import unicode_literals
AUTHOR = u'DLR'
SITENAME = u'RCE'
SITEURL = ''
PATH = 'content'
TIMEZONE = 'Europe/Paris'
DEFAULT_LANG = u'en'
DEFAULT_DATE_FORMAT = '%a %d %B %Y'
THEME = 'themes/polar'
# Feed generation is usually not desired when developi... | #!/usr/bin/env python
# -*- coding: utf-8 -*- #
from __future__ import unicode_literals
AUTHOR = u'DLR'
SITENAME = u'RCE'
SITEURL = ''
PATH = 'content'
TIMEZONE = 'Europe/Paris'
DEFAULT_LANG = u'en'
DEFAULT_DATE_FORMAT = '%a %d %B %Y'
THEME = 'themes/polar'
# Feed generation is usually not desired when developi... | <commit_before>#!/usr/bin/env python
# -*- coding: utf-8 -*- #
from __future__ import unicode_literals
AUTHOR = u'DLR'
SITENAME = u'RCE'
SITEURL = ''
PATH = 'content'
TIMEZONE = 'Europe/Paris'
DEFAULT_LANG = u'en'
DEFAULT_DATE_FORMAT = '%a %d %B %Y'
THEME = 'themes/polar'
# Feed generation is usually not desire... |
4511fef9b2c6521197dc64963c58c1a77e3475b3 | counterid.py | counterid.py | #!/usr/bin/env python
"""counterid - Simple utility to discover perfmon counter paths"""
# Compile to EXE using c:\Python27\scripts\pyinstaller.exe -F counterid.py
__author__ = 'scottv@rbh.com (Scott Vintinner)'
import win32pdh
# Will display a window with available counters. Click add to print out counter ... | #!/usr/bin/env python
"""counterid - Simple utility to discover perfmon counter paths"""
# pip install pyinstaller
# Compile to EXE using pyinstaller.exe -F counterid.py
__author__ = 'scottv@rbh.com (Scott Vintinner)'
import win32pdh
# Will display a window with available counters. Click add to print out counter na... | Update to make compatible with Python 3 | Update to make compatible with Python 3
| Python | mit | flakshack/pyPerfmon | #!/usr/bin/env python
"""counterid - Simple utility to discover perfmon counter paths"""
# Compile to EXE using c:\Python27\scripts\pyinstaller.exe -F counterid.py
__author__ = 'scottv@rbh.com (Scott Vintinner)'
import win32pdh
# Will display a window with available counters. Click add to print out counter ... | #!/usr/bin/env python
"""counterid - Simple utility to discover perfmon counter paths"""
# pip install pyinstaller
# Compile to EXE using pyinstaller.exe -F counterid.py
__author__ = 'scottv@rbh.com (Scott Vintinner)'
import win32pdh
# Will display a window with available counters. Click add to print out counter na... | <commit_before>#!/usr/bin/env python
"""counterid - Simple utility to discover perfmon counter paths"""
# Compile to EXE using c:\Python27\scripts\pyinstaller.exe -F counterid.py
__author__ = 'scottv@rbh.com (Scott Vintinner)'
import win32pdh
# Will display a window with available counters. Click add to pri... | #!/usr/bin/env python
"""counterid - Simple utility to discover perfmon counter paths"""
# pip install pyinstaller
# Compile to EXE using pyinstaller.exe -F counterid.py
__author__ = 'scottv@rbh.com (Scott Vintinner)'
import win32pdh
# Will display a window with available counters. Click add to print out counter na... | #!/usr/bin/env python
"""counterid - Simple utility to discover perfmon counter paths"""
# Compile to EXE using c:\Python27\scripts\pyinstaller.exe -F counterid.py
__author__ = 'scottv@rbh.com (Scott Vintinner)'
import win32pdh
# Will display a window with available counters. Click add to print out counter ... | <commit_before>#!/usr/bin/env python
"""counterid - Simple utility to discover perfmon counter paths"""
# Compile to EXE using c:\Python27\scripts\pyinstaller.exe -F counterid.py
__author__ = 'scottv@rbh.com (Scott Vintinner)'
import win32pdh
# Will display a window with available counters. Click add to pri... |
828be5ee4640ddd9ee595b4ba15fa973ccbcb82f | account_fiscal_position_no_source_tax/account.py | account_fiscal_position_no_source_tax/account.py | from openerp import models, api, fields
class account_fiscal_position(models.Model):
_inherit = 'account.fiscal.position'
@api.v8 # noqa
def map_tax(self, taxes):
result = super(account_fiscal_position, self).map_tax(taxes)
taxes_without_src_ids = [
x.tax_dest_id.id for x... | from openerp import models, api, fields
class account_fiscal_position(models.Model):
_inherit = 'account.fiscal.position'
@api.v7
def map_tax(self, cr, uid, fposition_id, taxes, context=None):
result = super(account_fiscal_position, self).map_tax(
cr, uid, fposition_id, taxes, contex... | FIX fiscal position no source tax on v7 api | FIX fiscal position no source tax on v7 api
| Python | agpl-3.0 | ingadhoc/partner,ingadhoc/odoo-addons,maljac/odoo-addons,bmya/odoo-addons,levkar/odoo-addons,ingadhoc/odoo-addons,ingadhoc/sale,levkar/odoo-addons,ingadhoc/account-financial-tools,sysadminmatmoz/ingadhoc,ClearCorp/account-financial-tools,HBEE/odoo-addons,jorsea/odoo-addons,sysadminmatmoz/ingadhoc,adhoc-dev/odoo-addons,... | from openerp import models, api, fields
class account_fiscal_position(models.Model):
_inherit = 'account.fiscal.position'
@api.v8 # noqa
def map_tax(self, taxes):
result = super(account_fiscal_position, self).map_tax(taxes)
taxes_without_src_ids = [
x.tax_dest_id.id for x... | from openerp import models, api, fields
class account_fiscal_position(models.Model):
_inherit = 'account.fiscal.position'
@api.v7
def map_tax(self, cr, uid, fposition_id, taxes, context=None):
result = super(account_fiscal_position, self).map_tax(
cr, uid, fposition_id, taxes, contex... | <commit_before>from openerp import models, api, fields
class account_fiscal_position(models.Model):
_inherit = 'account.fiscal.position'
@api.v8 # noqa
def map_tax(self, taxes):
result = super(account_fiscal_position, self).map_tax(taxes)
taxes_without_src_ids = [
x.tax_d... | from openerp import models, api, fields
class account_fiscal_position(models.Model):
_inherit = 'account.fiscal.position'
@api.v7
def map_tax(self, cr, uid, fposition_id, taxes, context=None):
result = super(account_fiscal_position, self).map_tax(
cr, uid, fposition_id, taxes, contex... | from openerp import models, api, fields
class account_fiscal_position(models.Model):
_inherit = 'account.fiscal.position'
@api.v8 # noqa
def map_tax(self, taxes):
result = super(account_fiscal_position, self).map_tax(taxes)
taxes_without_src_ids = [
x.tax_dest_id.id for x... | <commit_before>from openerp import models, api, fields
class account_fiscal_position(models.Model):
_inherit = 'account.fiscal.position'
@api.v8 # noqa
def map_tax(self, taxes):
result = super(account_fiscal_position, self).map_tax(taxes)
taxes_without_src_ids = [
x.tax_d... |
6a0ab2b681b4a9ce9392687b6b7d9e1d14015147 | nustack/doc/genall.py | nustack/doc/genall.py | #!python3
import os, glob, sys
import nustack
import nustack.doc.gen as gen
exportdir = sys.argv[1]
# Get module names
path = os.path.join(os.path.dirname(nustack.__file__), "stdlib")
print("Path to standard library:", path)
os.chdir(path)
modnames = (f[:-3] for f in glob.iglob("*.py") if f != '__init__.py')
for mod... | #!python3
import os, glob, sys
import nustack
import gen
exportdir = sys.argv[1]
# Get module names
path = os.path.join(nustack.__path__[0], "stdlib")
print("Path to standard library:", path)
os.chdir(path)
modnames = (f[:-3] for f in glob.iglob("*.py") if f != '__init__.py')
for mod in modnames:
print("Generati... | Update documentation generator for new directory structure. | Update documentation generator for new directory structure.
| Python | mit | BookOwl/nustack | #!python3
import os, glob, sys
import nustack
import nustack.doc.gen as gen
exportdir = sys.argv[1]
# Get module names
path = os.path.join(os.path.dirname(nustack.__file__), "stdlib")
print("Path to standard library:", path)
os.chdir(path)
modnames = (f[:-3] for f in glob.iglob("*.py") if f != '__init__.py')
for mod... | #!python3
import os, glob, sys
import nustack
import gen
exportdir = sys.argv[1]
# Get module names
path = os.path.join(nustack.__path__[0], "stdlib")
print("Path to standard library:", path)
os.chdir(path)
modnames = (f[:-3] for f in glob.iglob("*.py") if f != '__init__.py')
for mod in modnames:
print("Generati... | <commit_before>#!python3
import os, glob, sys
import nustack
import nustack.doc.gen as gen
exportdir = sys.argv[1]
# Get module names
path = os.path.join(os.path.dirname(nustack.__file__), "stdlib")
print("Path to standard library:", path)
os.chdir(path)
modnames = (f[:-3] for f in glob.iglob("*.py") if f != '__init_... | #!python3
import os, glob, sys
import nustack
import gen
exportdir = sys.argv[1]
# Get module names
path = os.path.join(nustack.__path__[0], "stdlib")
print("Path to standard library:", path)
os.chdir(path)
modnames = (f[:-3] for f in glob.iglob("*.py") if f != '__init__.py')
for mod in modnames:
print("Generati... | #!python3
import os, glob, sys
import nustack
import nustack.doc.gen as gen
exportdir = sys.argv[1]
# Get module names
path = os.path.join(os.path.dirname(nustack.__file__), "stdlib")
print("Path to standard library:", path)
os.chdir(path)
modnames = (f[:-3] for f in glob.iglob("*.py") if f != '__init__.py')
for mod... | <commit_before>#!python3
import os, glob, sys
import nustack
import nustack.doc.gen as gen
exportdir = sys.argv[1]
# Get module names
path = os.path.join(os.path.dirname(nustack.__file__), "stdlib")
print("Path to standard library:", path)
os.chdir(path)
modnames = (f[:-3] for f in glob.iglob("*.py") if f != '__init_... |
8760fa44a7acb8d79ed177349d8c148c0682a2ab | pybossa/auth/category.py | pybossa/auth/category.py | from flask.ext.login import current_user
def create(app=None):
if current_user.is_authenticated():
if current_user.admin is True:
return True
else:
return False
else:
return False
def read(app=None):
return True
def update(app):
return create(app)
... | from flask.ext.login import current_user
def create(category=None):
if current_user.is_authenticated():
if current_user.admin is True:
return True
else:
return False
else:
return False
def read(category=None):
return True
def update(category):
return... | Fix a typo in the variable name | Fix a typo in the variable name
| Python | agpl-3.0 | geotagx/geotagx-pybossa-archive,Scifabric/pybossa,proyectos-analizo-info/pybossa-analizo-info,geotagx/geotagx-pybossa-archive,CulturePlex/pybossa,geotagx/pybossa,proyectos-analizo-info/pybossa-analizo-info,jean/pybossa,harihpr/tweetclickers,CulturePlex/pybossa,geotagx/pybossa,harihpr/tweetclickers,stefanhahmann/pybossa... | from flask.ext.login import current_user
def create(app=None):
if current_user.is_authenticated():
if current_user.admin is True:
return True
else:
return False
else:
return False
def read(app=None):
return True
def update(app):
return create(app)
... | from flask.ext.login import current_user
def create(category=None):
if current_user.is_authenticated():
if current_user.admin is True:
return True
else:
return False
else:
return False
def read(category=None):
return True
def update(category):
return... | <commit_before>from flask.ext.login import current_user
def create(app=None):
if current_user.is_authenticated():
if current_user.admin is True:
return True
else:
return False
else:
return False
def read(app=None):
return True
def update(app):
return... | from flask.ext.login import current_user
def create(category=None):
if current_user.is_authenticated():
if current_user.admin is True:
return True
else:
return False
else:
return False
def read(category=None):
return True
def update(category):
return... | from flask.ext.login import current_user
def create(app=None):
if current_user.is_authenticated():
if current_user.admin is True:
return True
else:
return False
else:
return False
def read(app=None):
return True
def update(app):
return create(app)
... | <commit_before>from flask.ext.login import current_user
def create(app=None):
if current_user.is_authenticated():
if current_user.admin is True:
return True
else:
return False
else:
return False
def read(app=None):
return True
def update(app):
return... |
0381f2b72f495e18240eb9affc382905303a5ad9 | CurveAnalysis/fft_norm.py | CurveAnalysis/fft_norm.py | #!/usr/bin/env python
import numpy as np
import sys
import scipy.io as sio
import os
import operator
base_dir = '/data/amnh/darwin/'
curves_fft_dir = base_dir + 'image_csvs_fft/'
fft_norm_map = {}
def compute_fft_norm(curve_filename):
curve_name = curves_fft_dir + curve_filename
fft_array = sio.loadmat(curv... | #!/usr/bin/env python
import numpy as np
import sys
import scipy.io as sio
import os
import operator
base_dir = '/data/amnh/darwin/'
curves_fft_dir = base_dir + 'image_csvs_fft/'
fft_norm_map = {}
def compute_fft_norm(curve_filename):
curve_name = curves_fft_dir + curve_filename
fft_array = sio.loadmat(curv... | Remove the limitation to the top 100 items. | Remove the limitation to the top 100 items.
| Python | apache-2.0 | HackTheStacks/darwin-notes-image-processing,HackTheStacks/darwin-notes-image-processing | #!/usr/bin/env python
import numpy as np
import sys
import scipy.io as sio
import os
import operator
base_dir = '/data/amnh/darwin/'
curves_fft_dir = base_dir + 'image_csvs_fft/'
fft_norm_map = {}
def compute_fft_norm(curve_filename):
curve_name = curves_fft_dir + curve_filename
fft_array = sio.loadmat(curv... | #!/usr/bin/env python
import numpy as np
import sys
import scipy.io as sio
import os
import operator
base_dir = '/data/amnh/darwin/'
curves_fft_dir = base_dir + 'image_csvs_fft/'
fft_norm_map = {}
def compute_fft_norm(curve_filename):
curve_name = curves_fft_dir + curve_filename
fft_array = sio.loadmat(curv... | <commit_before>#!/usr/bin/env python
import numpy as np
import sys
import scipy.io as sio
import os
import operator
base_dir = '/data/amnh/darwin/'
curves_fft_dir = base_dir + 'image_csvs_fft/'
fft_norm_map = {}
def compute_fft_norm(curve_filename):
curve_name = curves_fft_dir + curve_filename
fft_array = s... | #!/usr/bin/env python
import numpy as np
import sys
import scipy.io as sio
import os
import operator
base_dir = '/data/amnh/darwin/'
curves_fft_dir = base_dir + 'image_csvs_fft/'
fft_norm_map = {}
def compute_fft_norm(curve_filename):
curve_name = curves_fft_dir + curve_filename
fft_array = sio.loadmat(curv... | #!/usr/bin/env python
import numpy as np
import sys
import scipy.io as sio
import os
import operator
base_dir = '/data/amnh/darwin/'
curves_fft_dir = base_dir + 'image_csvs_fft/'
fft_norm_map = {}
def compute_fft_norm(curve_filename):
curve_name = curves_fft_dir + curve_filename
fft_array = sio.loadmat(curv... | <commit_before>#!/usr/bin/env python
import numpy as np
import sys
import scipy.io as sio
import os
import operator
base_dir = '/data/amnh/darwin/'
curves_fft_dir = base_dir + 'image_csvs_fft/'
fft_norm_map = {}
def compute_fft_norm(curve_filename):
curve_name = curves_fft_dir + curve_filename
fft_array = s... |
244a51de04410335309446bb9a051338ea6d2a6a | pycnic/data.py | pycnic/data.py | STATUSES = {
200: "200 OK",
201: "201 Created",
202: "202 Accepted",
300: "300 Multiple Choices",
301: "301 Moved Permanently",
302: "302 Found",
304: "304 Not Modified",
400: "400 Bad Request",
401: "401 Unauthorized",
403: "403 Forbidden"... | STATUSES = {
200: "200 OK",
201: "201 Created",
202: "202 Accepted",
204: "204 No Content",
300: "300 Multiple Choices",
301: "301 Moved Permanently",
302: "302 Found",
303: "303 See Other",
304: "304 Not Modified",
307: "307 Temporary Redi... | Add more HTTP/1.1 status codes | Add more HTTP/1.1 status codes
| Python | mit | nullism/pycnic,nullism/pycnic | STATUSES = {
200: "200 OK",
201: "201 Created",
202: "202 Accepted",
300: "300 Multiple Choices",
301: "301 Moved Permanently",
302: "302 Found",
304: "304 Not Modified",
400: "400 Bad Request",
401: "401 Unauthorized",
403: "403 Forbidden"... | STATUSES = {
200: "200 OK",
201: "201 Created",
202: "202 Accepted",
204: "204 No Content",
300: "300 Multiple Choices",
301: "301 Moved Permanently",
302: "302 Found",
303: "303 See Other",
304: "304 Not Modified",
307: "307 Temporary Redi... | <commit_before>STATUSES = {
200: "200 OK",
201: "201 Created",
202: "202 Accepted",
300: "300 Multiple Choices",
301: "301 Moved Permanently",
302: "302 Found",
304: "304 Not Modified",
400: "400 Bad Request",
401: "401 Unauthorized",
403: ... | STATUSES = {
200: "200 OK",
201: "201 Created",
202: "202 Accepted",
204: "204 No Content",
300: "300 Multiple Choices",
301: "301 Moved Permanently",
302: "302 Found",
303: "303 See Other",
304: "304 Not Modified",
307: "307 Temporary Redi... | STATUSES = {
200: "200 OK",
201: "201 Created",
202: "202 Accepted",
300: "300 Multiple Choices",
301: "301 Moved Permanently",
302: "302 Found",
304: "304 Not Modified",
400: "400 Bad Request",
401: "401 Unauthorized",
403: "403 Forbidden"... | <commit_before>STATUSES = {
200: "200 OK",
201: "201 Created",
202: "202 Accepted",
300: "300 Multiple Choices",
301: "301 Moved Permanently",
302: "302 Found",
304: "304 Not Modified",
400: "400 Bad Request",
401: "401 Unauthorized",
403: ... |
783ce62c7dd6b553c37c984113a0964fa1837e76 | whats_fresh/settings.py | whats_fresh/settings.py | # flake8: noqa
# This module is how we import settings, and override settings with various
# precedences.
# First our base.py settings module is imported, with all of the
# important defaults.
#
# Next our yaml file is opened, read, and settings defined in the yaml config
# may override settings already defined.
impo... | # flake8: noqa
# This module is how we import settings, and override settings with various
# precedences.
# First our base.py settings module is imported, with all of the
# important defaults.
#
# Next our yaml file is opened, read, and settings defined in the yaml config
# may override settings already defined.
impo... | Use dict.get not dict[] to fail gracefully | Use dict.get not dict[] to fail gracefully
| Python | apache-2.0 | osu-cass/whats-fresh-api,osu-cass/whats-fresh-api,osu-cass/whats-fresh-api,osu-cass/whats-fresh-api,iCHAIT/whats-fresh-api,iCHAIT/whats-fresh-api,iCHAIT/whats-fresh-api,iCHAIT/whats-fresh-api | # flake8: noqa
# This module is how we import settings, and override settings with various
# precedences.
# First our base.py settings module is imported, with all of the
# important defaults.
#
# Next our yaml file is opened, read, and settings defined in the yaml config
# may override settings already defined.
impo... | # flake8: noqa
# This module is how we import settings, and override settings with various
# precedences.
# First our base.py settings module is imported, with all of the
# important defaults.
#
# Next our yaml file is opened, read, and settings defined in the yaml config
# may override settings already defined.
impo... | <commit_before># flake8: noqa
# This module is how we import settings, and override settings with various
# precedences.
# First our base.py settings module is imported, with all of the
# important defaults.
#
# Next our yaml file is opened, read, and settings defined in the yaml config
# may override settings already... | # flake8: noqa
# This module is how we import settings, and override settings with various
# precedences.
# First our base.py settings module is imported, with all of the
# important defaults.
#
# Next our yaml file is opened, read, and settings defined in the yaml config
# may override settings already defined.
impo... | # flake8: noqa
# This module is how we import settings, and override settings with various
# precedences.
# First our base.py settings module is imported, with all of the
# important defaults.
#
# Next our yaml file is opened, read, and settings defined in the yaml config
# may override settings already defined.
impo... | <commit_before># flake8: noqa
# This module is how we import settings, and override settings with various
# precedences.
# First our base.py settings module is imported, with all of the
# important defaults.
#
# Next our yaml file is opened, read, and settings defined in the yaml config
# may override settings already... |
a350fb8264c9691a1a1711e1c786fb967e6aaf0b | updateable/middleware.py | updateable/middleware.py | # -*- coding: utf-8 -*-
from django.http import HttpResponse
from updateable import settings
class UpdateableMiddleware(object):
def process_request(self, request):
updateable = bool(request.GET.get(settings.UPDATEABLE_GET_VARIABLE))
hashvals = {}
if updateable:
ids = request... | # -*- coding: utf-8 -*-
from django.http import HttpResponse
from updateable import settings
class UpdateableMiddleware(object):
def process_request(self, request):
updateable = bool(request.GET.get(settings.UPDATEABLE_GET_VARIABLE))
hashvals = {}
if updateable:
ids = request... | Fix for AJAX cache bug in IE | Fix for AJAX cache bug in IE
| Python | bsd-3-clause | baldurthoremilsson/django-updateable,baldurthoremilsson/django-updateable | # -*- coding: utf-8 -*-
from django.http import HttpResponse
from updateable import settings
class UpdateableMiddleware(object):
def process_request(self, request):
updateable = bool(request.GET.get(settings.UPDATEABLE_GET_VARIABLE))
hashvals = {}
if updateable:
ids = request... | # -*- coding: utf-8 -*-
from django.http import HttpResponse
from updateable import settings
class UpdateableMiddleware(object):
def process_request(self, request):
updateable = bool(request.GET.get(settings.UPDATEABLE_GET_VARIABLE))
hashvals = {}
if updateable:
ids = request... | <commit_before># -*- coding: utf-8 -*-
from django.http import HttpResponse
from updateable import settings
class UpdateableMiddleware(object):
def process_request(self, request):
updateable = bool(request.GET.get(settings.UPDATEABLE_GET_VARIABLE))
hashvals = {}
if updateable:
... | # -*- coding: utf-8 -*-
from django.http import HttpResponse
from updateable import settings
class UpdateableMiddleware(object):
def process_request(self, request):
updateable = bool(request.GET.get(settings.UPDATEABLE_GET_VARIABLE))
hashvals = {}
if updateable:
ids = request... | # -*- coding: utf-8 -*-
from django.http import HttpResponse
from updateable import settings
class UpdateableMiddleware(object):
def process_request(self, request):
updateable = bool(request.GET.get(settings.UPDATEABLE_GET_VARIABLE))
hashvals = {}
if updateable:
ids = request... | <commit_before># -*- coding: utf-8 -*-
from django.http import HttpResponse
from updateable import settings
class UpdateableMiddleware(object):
def process_request(self, request):
updateable = bool(request.GET.get(settings.UPDATEABLE_GET_VARIABLE))
hashvals = {}
if updateable:
... |
cc80be915b6912056990bf71324826e244432533 | docs/conf.py | docs/conf.py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
import setuptools_scm
extensions = [
'sphinx.ext.autodoc',
'rst.linker',
]
# General information about the project.
project = 'skeleton'
copyright = '2016 Jason R. Coombs'
# The short X.Y version.
version = setuptools_scm.get_version(root='..', relative_to=__fi... | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
import pkg_resources
extensions = [
'sphinx.ext.autodoc',
'rst.linker',
]
# General information about the project.
project = 'skeleton'
copyright = '2016 Jason R. Coombs'
# The short X.Y version.
version = pkg_resources.require(project)[0].version
# The full ve... | Use pkg_resources to resolve the version. Requires that the necessary package metadata have been built before building docs. | Use pkg_resources to resolve the version. Requires that the necessary package metadata have been built before building docs.
| Python | mit | jaraco/jaraco.path,jaraco/zipp,jaraco/jaraco.functools,jaraco/jaraco.collections,jaraco/backports.functools_lru_cache,jaraco/portend,yougov/mettle,jazzband/inflect,jaraco/jaraco.context,yougov/mettle,jaraco/rwt,yougov/mettle,pytest-dev/pytest-runner,hugovk/inflect.py,jaraco/keyring,cherrypy/magicbus,yougov/mettle,pytho... | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
import setuptools_scm
extensions = [
'sphinx.ext.autodoc',
'rst.linker',
]
# General information about the project.
project = 'skeleton'
copyright = '2016 Jason R. Coombs'
# The short X.Y version.
version = setuptools_scm.get_version(root='..', relative_to=__fi... | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
import pkg_resources
extensions = [
'sphinx.ext.autodoc',
'rst.linker',
]
# General information about the project.
project = 'skeleton'
copyright = '2016 Jason R. Coombs'
# The short X.Y version.
version = pkg_resources.require(project)[0].version
# The full ve... | <commit_before>#!/usr/bin/env python3
# -*- coding: utf-8 -*-
import setuptools_scm
extensions = [
'sphinx.ext.autodoc',
'rst.linker',
]
# General information about the project.
project = 'skeleton'
copyright = '2016 Jason R. Coombs'
# The short X.Y version.
version = setuptools_scm.get_version(root='..', r... | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
import pkg_resources
extensions = [
'sphinx.ext.autodoc',
'rst.linker',
]
# General information about the project.
project = 'skeleton'
copyright = '2016 Jason R. Coombs'
# The short X.Y version.
version = pkg_resources.require(project)[0].version
# The full ve... | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
import setuptools_scm
extensions = [
'sphinx.ext.autodoc',
'rst.linker',
]
# General information about the project.
project = 'skeleton'
copyright = '2016 Jason R. Coombs'
# The short X.Y version.
version = setuptools_scm.get_version(root='..', relative_to=__fi... | <commit_before>#!/usr/bin/env python3
# -*- coding: utf-8 -*-
import setuptools_scm
extensions = [
'sphinx.ext.autodoc',
'rst.linker',
]
# General information about the project.
project = 'skeleton'
copyright = '2016 Jason R. Coombs'
# The short X.Y version.
version = setuptools_scm.get_version(root='..', r... |
ce380319562eb94e252c74de7b6b1ac18a357466 | chainer/training/extensions/value_observation.py | chainer/training/extensions/value_observation.py | import time
from chainer.training import extension
def observe_value(key, target_func):
"""Returns a trainer extension to continuously record a value.
Args:
key (str): Key of observation to record.
target_func (function): Function that returns the value to record.
It must take on... | import time
from chainer.training import extension
def observe_value(key, target_func):
"""Returns a trainer extension to continuously record a value.
Args:
key (str): Key of observation to record.
target_func (function): Function that returns the value to record.
It must take on... | Add links for the document | Add links for the document
| Python | mit | ktnyt/chainer,hvy/chainer,aonotas/chainer,niboshi/chainer,okuta/chainer,chainer/chainer,anaruse/chainer,niboshi/chainer,ronekko/chainer,okuta/chainer,jnishi/chainer,wkentaro/chainer,cupy/cupy,chainer/chainer,okuta/chainer,wkentaro/chainer,jnishi/chainer,delta2323/chainer,rezoo/chainer,hvy/chainer,hvy/chainer,jnishi/cha... | import time
from chainer.training import extension
def observe_value(key, target_func):
"""Returns a trainer extension to continuously record a value.
Args:
key (str): Key of observation to record.
target_func (function): Function that returns the value to record.
It must take on... | import time
from chainer.training import extension
def observe_value(key, target_func):
"""Returns a trainer extension to continuously record a value.
Args:
key (str): Key of observation to record.
target_func (function): Function that returns the value to record.
It must take on... | <commit_before>import time
from chainer.training import extension
def observe_value(key, target_func):
"""Returns a trainer extension to continuously record a value.
Args:
key (str): Key of observation to record.
target_func (function): Function that returns the value to record.
... | import time
from chainer.training import extension
def observe_value(key, target_func):
"""Returns a trainer extension to continuously record a value.
Args:
key (str): Key of observation to record.
target_func (function): Function that returns the value to record.
It must take on... | import time
from chainer.training import extension
def observe_value(key, target_func):
"""Returns a trainer extension to continuously record a value.
Args:
key (str): Key of observation to record.
target_func (function): Function that returns the value to record.
It must take on... | <commit_before>import time
from chainer.training import extension
def observe_value(key, target_func):
"""Returns a trainer extension to continuously record a value.
Args:
key (str): Key of observation to record.
target_func (function): Function that returns the value to record.
... |
2b6fcb362a6dbf875075af13787bba76928098c3 | kinoreel_backend/urls.py | kinoreel_backend/urls.py | from django.conf.urls import include, url
from django.contrib import admin
from django.contrib.auth.views import login
from movies.urls import urlpatterns as movie_urls
urlpatterns = [
url(r'^', movie_urls, name='movies'),
url(r'^admin/', admin.site.urls),
]
| from django.conf.urls import include, url
from django.contrib import admin
from movies.urls import urlpatterns as movie_urls
urlpatterns = [
url(r'^', include(movie_urls), name='movies'),
url(r'^admin/', admin.site.urls),
]
| Include is still needed for the url patterns | Include is still needed for the url patterns
| Python | mit | kinoreel/kinoreel-backend,kinoreel/kinoreel-backend | from django.conf.urls import include, url
from django.contrib import admin
from django.contrib.auth.views import login
from movies.urls import urlpatterns as movie_urls
urlpatterns = [
url(r'^', movie_urls, name='movies'),
url(r'^admin/', admin.site.urls),
]
Include is still needed for the url patterns | from django.conf.urls import include, url
from django.contrib import admin
from movies.urls import urlpatterns as movie_urls
urlpatterns = [
url(r'^', include(movie_urls), name='movies'),
url(r'^admin/', admin.site.urls),
]
| <commit_before>from django.conf.urls import include, url
from django.contrib import admin
from django.contrib.auth.views import login
from movies.urls import urlpatterns as movie_urls
urlpatterns = [
url(r'^', movie_urls, name='movies'),
url(r'^admin/', admin.site.urls),
]
<commit_msg>Include is still needed ... | from django.conf.urls import include, url
from django.contrib import admin
from movies.urls import urlpatterns as movie_urls
urlpatterns = [
url(r'^', include(movie_urls), name='movies'),
url(r'^admin/', admin.site.urls),
]
| from django.conf.urls import include, url
from django.contrib import admin
from django.contrib.auth.views import login
from movies.urls import urlpatterns as movie_urls
urlpatterns = [
url(r'^', movie_urls, name='movies'),
url(r'^admin/', admin.site.urls),
]
Include is still needed for the url patternsfrom dj... | <commit_before>from django.conf.urls import include, url
from django.contrib import admin
from django.contrib.auth.views import login
from movies.urls import urlpatterns as movie_urls
urlpatterns = [
url(r'^', movie_urls, name='movies'),
url(r'^admin/', admin.site.urls),
]
<commit_msg>Include is still needed ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.