commit stringlengths 40 40 | subject stringlengths 1 1.49k | old_file stringlengths 4 311 | new_file stringlengths 4 311 | new_contents stringlengths 1 29.8k | old_contents stringlengths 0 9.9k | lang stringclasses 3
values | proba float64 0 1 |
|---|---|---|---|---|---|---|---|
22cb94902f5bbe32d636009c2599eae7aa66282c | fix extraction(closes #4319) | youtube_dl/extractor/stretchinternet.py | youtube_dl/extractor/stretchinternet.py | from __future__ import unicode_literals
from .common import InfoExtractor
from ..utils import int_or_none
class StretchInternetIE(InfoExtractor):
_VALID_URL = r'https?://portal\.stretchinternet\.com/[^/]+/(?:portal|full)\.htm\?.*?\beventId=(?P<id>\d+)'
_TEST = {
'url': 'https://portal.stretchinternet... | from __future__ import unicode_literals
from .common import InfoExtractor
from ..utils import int_or_none
class StretchInternetIE(InfoExtractor):
_VALID_URL = r'https?://portal\.stretchinternet\.com/[^/]+/portal\.htm\?.*?\beventId=(?P<id>\d+)'
_TEST = {
'url': 'https://portal.stretchinternet.com/umar... | Python | 0 |
2b8535c34d92089fe84203f1f06e82472397eaea | Update version number | core/context_processors.py | core/context_processors.py | from django.conf import settings
def common(request=None):
return {'logo_url': settings.LOGO_URL,
'parent_site_url': settings.PARENT_SITE_URL,
'version': '1.4',
'GOOGLE_API_KEY': settings.GOOGLE_API_KEY,
'demo_mode': settings.DEMO}
| from django.conf import settings
def common(request=None):
return {'logo_url': settings.LOGO_URL,
'parent_site_url': settings.PARENT_SITE_URL,
'version': '1.3',
'GOOGLE_API_KEY': settings.GOOGLE_API_KEY,
'demo_mode': settings.DEMO}
| Python | 0.000002 |
62ccee03efd3fb5d53139f89ae974708d3a82e32 | Add switches for cProfiling and verbosity output | tests/example_peninsula.py | tests/example_peninsula.py | from parcels import NEMOGrid, Particle, ParticleSet
from argparse import ArgumentParser
def pensinsula_example(filename, npart, degree=3, verbose=False):
"""Example configuration of particle flow around an idealised Peninsula
:arg filename: Basename of the input grid file set
:arg npart: Number of partic... | from parcels import NEMOGrid, Particle, ParticleSet
from argparse import ArgumentParser
def pensinsula_example(filename, npart, degree=3):
"""Example configuration of particle flow around an idealised Peninsula
:arg filename: Basename of the input grid file set
:arg npart: Number of particles to intialis... | Python | 0 |
d5ed783c7dc691d7d0b847aa243989b626d90e9b | Add return None | alg_decimal_to_base.py | alg_decimal_to_base.py | from __future__ import print_function
from ds_stack import Stack
def convert_decimal_to_base2(dec_num):
"""Convert decimal number to binary number."""
rem_stack = Stack()
while dec_num > 0:
rem = dec_num % 2
rem_stack.push(rem)
dec_num = dec_num // 2
bin_str = ''
whil... | from __future__ import print_function
from ds_stack import Stack
def convert_decimal_to_base2(dec_num):
"""Convert decimal number to binary number."""
rem_stack = Stack()
while dec_num > 0:
rem = dec_num % 2
rem_stack.push(rem)
dec_num = dec_num // 2
bin_str = ''
whil... | Python | 0.999999 |
0205e519c2662bf33b59e20668f90a17a50c29e1 | Add github URL to setup.py | setup.py | setup.py | # Copyright 2020 The ML Collections Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed... | # Copyright 2020 The ML Collections Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed... | Python | 0.000001 |
3419b45d481be416d30abfecdadb26e144bcbcb7 | Correct spelling of template | aiohttp_admin/admin.py | aiohttp_admin/admin.py | from aiohttp_jinja2 import render_template
from aiohttp_security import remember, forget
from yarl import URL
from .consts import TEMPLATE_APP_KEY
from .exceptions import JsonValidaitonError
from .security import authorize
from .utils import json_response, validate_payload, LoginForm
__all__ = ['AdminHandler', 'setu... | from aiohttp_jinja2 import render_template
from aiohttp_security import remember, forget
from yarl import URL
from .consts import TEMPLATE_APP_KEY
from .exceptions import JsonValidaitonError
from .security import authorize
from .utils import json_response, validate_payload, LoginForm
__all__ = ['AdminHandler', 'setu... | Python | 0.000085 |
f2b796b94ea1cd9c71500521404ef39d10ca091d | improve to_big_endian_binary function | utils.py | utils.py | def to_big_endian_binary(val):
s = '%x' % val
if len(s) & 1:
s = '0' + s
return s.decode('hex')
| from binascii import unhexlify
def to_big_endian_binary(val):
# one (1) hex digit per four (4) bits
width = val.bit_length()
# unhexlify wants an even multiple of eight (8) bits, but we don't
# want more digits than we need (hence the ternary-ish 'or')
width += 8 - ((width % 8) or 8)
# format... | Python | 0.998572 |
4d85b334298bcfc58c9bfd2bdfae123302caa48e | Bump coveralls from 2.1.0 to 2.1.1 (#18) | setup.py | setup.py | #!/usr/bin/env python3
from os import path
from setuptools import setup, find_packages
from ogn.client.settings import PACKAGE_VERSION
here = path.abspath(path.dirname(__file__))
# Get the long description from the README file
with open(path.join(here, 'README.md'), encoding='utf-8') as f:
long_description = f... | #!/usr/bin/env python3
from os import path
from setuptools import setup, find_packages
from ogn.client.settings import PACKAGE_VERSION
here = path.abspath(path.dirname(__file__))
# Get the long description from the README file
with open(path.join(here, 'README.md'), encoding='utf-8') as f:
long_description = f... | Python | 0 |
8fc2e0ebf9fe8f753f7e9cdc6ad67ed22604e022 | support img src attr too | interlinks/interlinks.py | interlinks/interlinks.py | # -*- coding: utf-8 -*-
"""
Interlinks
=========================
This plugin allows you to include "interwiki" or shortcuts links into the blog, as keyword>rest_of_url
"""
from bs4 import BeautifulSoup
from pelican import signals
import re
interlinks = {}
def getSettings (generator):
global interlinks
interl... | # -*- coding: utf-8 -*-
"""
Interlinks
=========================
This plugin allows you to include "interwiki" or shortcuts links into the blog, as keyword>rest_of_url
"""
from bs4 import BeautifulSoup
from pelican import signals
import re
interlinks = {}
def getSettings (generator):
global interlinks
interl... | Python | 0 |
24f93c560c2fa19c512d2d88b8e1219690e2db68 | Bump the version up to 0.8 for release | setup.py | setup.py | #!/usr/bin/env python
## Copyright 2014 Cognitect. All Rights Reserved.
##
## Licensed under the Apache License, Version 2.0 (the "License");
## you may not use this file except in compliance with the License.
## You may obtain a copy of the License at
##
## http://www.apache.org/licenses/LICENSE-2.0
##
## Unless... | #!/usr/bin/env python
## Copyright 2014 Cognitect. All Rights Reserved.
##
## Licensed under the Apache License, Version 2.0 (the "License");
## you may not use this file except in compliance with the License.
## You may obtain a copy of the License at
##
## http://www.apache.org/licenses/LICENSE-2.0
##
## Unless... | Python | 0.000084 |
f6a2a21d91e06d417da8cd93fb2a28f28385ed19 | fix test | tests/test_coding/test_algos.py | tests/test_coding/test_algos.py | # coding=UTF-8
from __future__ import print_function, absolute_import, division
import six
import unittest
from satella.coding import merge_dicts
class TestMergeDicts(unittest.TestCase):
def test_merge_dicts(self):
tak = merge_dicts({'kupujemy': 'tak'}, {'kupujemy': 'nie'})
nie = merge_dicts({'ku... | # coding=UTF-8
from __future__ import print_function, absolute_import, division
import six
import unittest
from satella.coding import merge_dicts
class TestMergeDicts(unittest.TestCase):
def test_merge_dicts(self):
tak = merge_dicts({'kupujemy': 'tak'}, {'kupujemy': 'nie'})
nie = merge_dicts({'ku... | Python | 0.000002 |
b09197a38ebbf32abe45a787c475ae6706beaa53 | set ignore property | pyamg/relaxation/info.py | pyamg/relaxation/info.py | """
Relaxation methods
------------------
The multigrid cycle is formed by two complementary procedures: relaxation and
coarse-grid correction. The role of relaxation is to rapidly damp oscillatory
(high-frequency) errors out of the approximate solution. When the error is
smooth, it can then be accurately represent... | """
Relaxation methods
------------------
The multigrid cycle is formed by two complementary procedures: relaxation and
coarse-grid correction. The role of relaxation is to rapidly damp oscillatory
(high-frequency) errors out of the approximate solution. When the error is
smooth, it can then be accurately represent... | Python | 0.000002 |
be8625d983f147385956079c1c1b4bbc2b3ccb17 | fix flake8 | aioresponses/compat.py | aioresponses/compat.py | # -*- coding: utf-8 -*-
import asyncio # noqa: F401
import sys
from typing import Dict, Optional, Tuple, Union # noqa
from urllib.parse import parse_qsl, urlencode
from aiohttp import __version__ as aiohttp_version, StreamReader
from multidict import MultiDict
from pkg_resources import parse_version
from yarl import... | # -*- coding: utf-8 -*-
import asyncio # noqa: F401
import sys
from typing import Dict, Optional, Tuple, Union # noqa
from urllib.parse import parse_qsl, urlencode
from aiohttp import __version__ as aiohttp_version, StreamReader
from multidict import MultiDict
from pkg_resources import parse_version
from yarl import... | Python | 0 |
5eabe658d3c20f25fa78d1fc4fe2d2d692390e75 | Make requests.get(...) a bit more robust | PowerToThePeople.py | PowerToThePeople.py | #!/usr/bin/env python
import serial
from requests import get
from requests.exceptions import Timeout, ConnectionError
from time import time, strftime, asctime
from sys import stdout
from subprocess import check_output
try:
from config import *
except ImportError:
from defaults import *
print 'Warning! copy default... | #!/usr/bin/env python
import serial
from requests import get
from time import time, strftime, asctime
from sys import stdout
from subprocess import check_output
try:
from config import *
except ImportError:
from defaults import *
print 'Warning! copy defaults.py to config.py and edit that file!'
PVOUTPUT_INTERVAL... | Python | 0 |
20db5eb25162665e817bef993ea84bbd1b9e3a45 | Update setup.py | setup.py | setup.py | import sys
import os
from setuptools import setup
setup(name='feedinlib',
version='0.0.12',
description='Creating time series from pv or wind power plants.',
url='http://github.com/oemof/feedinlib',
author='oemof developer group',
author_email='birgit.schachler@rl-institut.de',
lice... | # -*- coding: utf-8 -*-
"""
@author: uwe
"""
import sys
import os
from setuptools import setup
setup(name='feedinlib',
version='0.0.12',
description='Creating time series from pv or wind power plants.',
url='http://github.com/oemof/feedinlib',
author='oemof developer group',
author_email... | Python | 0.000001 |
888f2ee4c423e18a40cbcaec3eb9f4f29f993e44 | add mock payment as default for OrderPaymentFactory | bluebottle/test/factory_models/payments.py | bluebottle/test/factory_models/payments.py | import factory
from bluebottle.payments.models import Payment, OrderPayment
from bluebottle.payments_logger.models import PaymentLogEntry
from .orders import OrderFactory
class OrderPaymentFactory(factory.DjangoModelFactory):
FACTORY_FOR = OrderPayment
payment_method = 'mock'
amount = 100
order = fa... | import factory
from bluebottle.payments.models import Payment, OrderPayment
from bluebottle.payments_logger.models import PaymentLogEntry
from .orders import OrderFactory
class OrderPaymentFactory(factory.DjangoModelFactory):
FACTORY_FOR = OrderPayment
amount = 100
order = factory.SubFactory(OrderFactor... | Python | 0 |
ed13a4d6ea21842568d1ef63797d50169b6dd040 | Add rpath | recipes/py2app/fix_macos_rpath.py | recipes/py2app/fix_macos_rpath.py | """
Tool for initial rpath fix for prebuilt binaries
"""
from __future__ import absolute_import, division, print_function
import os
import glob
from subprocess import CalledProcessError, check_output
# =============================================================================
if __name__ == '__main__':
main_fil... | """
Tool for initial rpath fix for prebuilt binaries
"""
from __future__ import absolute_import, division, print_function
import os
import glob
from subprocess import CalledProcessError, check_output
# =============================================================================
if __name__ == '__main__':
main_fil... | Python | 0.000002 |
cfabd36edd10819151caa25e8a30ef2938a55905 | add django-compat as requirement | setup.py | setup.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from os.path import join, dirname
from setuptools import setup, find_packages
import organizations as app
def long_description():
try:
return open(join(dirname(__file__), 'README.rst')).read()
except IOError:
return "LONG_DESCRIPTION Error"
setup... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from os.path import join, dirname
from setuptools import setup, find_packages
import organizations as app
def long_description():
try:
return open(join(dirname(__file__), 'README.rst')).read()
except IOError:
return "LONG_DESCRIPTION Error"
setup... | Python | 0.000001 |
333df12d64b7d0724a90c155858e3a8421967aa0 | Add test for copy_reads_file() | tests/samples/test_fake.py | tests/samples/test_fake.py | import os
import pytest
from virtool.samples.fake import create_fake_sample, create_fake_samples, copy_reads_file, READ_FILES_PATH
from virtool.fake.wrapper import FakerWrapper
from virtool.samples.db import LIST_PROJECTION
@pytest.fixture
def app(dbi, pg, run_in_thread, tmp_path):
return {
"db": dbi,
... | import os
import pytest
from virtool.samples.fake import create_fake_sample, create_fake_samples
from virtool.fake.wrapper import FakerWrapper
from virtool.samples.db import LIST_PROJECTION
@pytest.fixture
def app(dbi, pg, run_in_thread, tmp_path):
return {
"db": dbi,
"fake": FakerWrapper(),
... | Python | 0 |
e822a1c863d5ff2b37f1123f2a5fae63061f7d44 | fix heartbeat origin | alert-sqs/alert-sqs.py | alert-sqs/alert-sqs.py | #!/usr/bin/env python
import os
import settings
from alert import Alert, Heartbeat, ApiClient
from kombu import BrokerConnection
from Queue import Empty
__version__ = '3.0.0'
from kombu.utils.debug import setup_logging
# setup_logging(loglevel='DEBUG', loggers=[''])
def main():
broker_url = getattr(settings,... | #!/usr/bin/env python
import settings
from alert import Alert, Heartbeat, ApiClient
from kombu import BrokerConnection
from Queue import Empty
__version__ = '3.0.0'
from kombu.utils.debug import setup_logging
# setup_logging(loglevel='DEBUG', loggers=[''])
def main():
broker_url = getattr(settings, 'broker_u... | Python | 0.000003 |
da006dee5771313c5e67f0ce8150bb3a216a0697 | Bump the minor version number to reflect the relatively large scale removal of functionality. | PyFVCOM/__init__.py | PyFVCOM/__init__.py | """
The FVCOM Python toolbox (PyFVCOM)
"""
__version__ = '1.4.0'
__author__ = 'Pierre Cazenave'
__credits__ = ['Pierre Cazenave']
__license__ = 'MIT'
__maintainer__ = 'Pierre Cazenave'
__email__ = 'pica@pml.ac.uk'
import inspect
from warnings import warn
# Import everything!
from PyFVCOM import buoy_tools
from PyFV... | """
The FVCOM Python toolbox (PyFVCOM)
"""
__version__ = '1.3.4'
__author__ = 'Pierre Cazenave'
__credits__ = ['Pierre Cazenave']
__license__ = 'MIT'
__maintainer__ = 'Pierre Cazenave'
__email__ = 'pica@pml.ac.uk'
import inspect
from warnings import warn
# Import everything!
from PyFVCOM import buoy_tools
from PyFV... | Python | 0 |
7c66a0b34806af9cf1ac6722318534643dea3865 | Add classifiers | setup.py | setup.py | from __future__ import with_statement
import os.path
import setuptools
import sqlitebiter
REQUIREMENT_DIR = "requirements"
with open("README.rst") as fp:
long_description = fp.read()
with open(os.path.join("docs", "pages", "introduction", "summary.txt")) as f:
summary = f.read()
with open(os.path.join(REQ... | from __future__ import with_statement
import os.path
import setuptools
import sqlitebiter
REQUIREMENT_DIR = "requirements"
with open("README.rst") as fp:
long_description = fp.read()
with open(os.path.join("docs", "pages", "introduction", "summary.txt")) as f:
summary = f.read()
with open(os.path.join(REQ... | Python | 0.000907 |
cddf9b83383adfc41e80c441b4f8f3219893cc86 | Bump version for release | setup.py | setup.py | # #!/usr/bin/env python
# -*- coding: utf-8 -*-
import re
import os
from setuptools import setup, find_packages
def parse_requirements():
"""
Rudimentary parser for the `requirements.txt` file
We just want to separate regular packages from links to pass them to the
`install_requires` and `dependency... | # #!/usr/bin/env python
# -*- coding: utf-8 -*-
import re
import os
from setuptools import setup, find_packages
def parse_requirements():
"""
Rudimentary parser for the `requirements.txt` file
We just want to separate regular packages from links to pass them to the
`install_requires` and `dependency... | Python | 0 |
55d9ed499d842246c74bc72ff0e141fa22fde9d8 | add numpexpr dependency | setup.py | setup.py | from setuptools import setup
import codecs
import os
import re
# to release:
# python setup.py register sdist bdist_egg upload
here = os.path.abspath(os.path.dirname(__file__))
# Read the version number from a source file.
# Why read it, and not import?
# see https://groups.google.com/d/topic/pypa-dev/0PkjVpcxTzQ/d... | from setuptools import setup
import codecs
import os
import re
# to release:
# python setup.py register sdist bdist_egg upload
here = os.path.abspath(os.path.dirname(__file__))
# Read the version number from a source file.
# Why read it, and not import?
# see https://groups.google.com/d/topic/pypa-dev/0PkjVpcxTzQ/d... | Python | 0 |
f096dee1623936ed06340df1ee081a1f77eb8b77 | Simplify plugin info declaration | pyexcel_xlsx/__init__.py | pyexcel_xlsx/__init__.py | """
pyexcel_xlsx
~~~~~~~~~~~~~~~~~~~
The lower level xlsx file format handler using openpyxl
:copyright: (c) 2015-2017 by Onni Software Ltd & its contributors
:license: New BSD License
"""
# flake8: noqa
# this line has to be place above all else
# because of dynamic import
from pyexcel_io.plugins... | """
pyexcel_xlsx
~~~~~~~~~~~~~~~~~~~
The lower level xlsx file format handler using openpyxl
:copyright: (c) 2015-2017 by Onni Software Ltd & its contributors
:license: New BSD License
"""
# flake8: noqa
# this line has to be place above all else
# because of dynamic import
__FILE_TYPE__ = 'xlsx'
... | Python | 0.000001 |
f1ab27dcb52212c3c818c3ef6d9be9410610c2d6 | make these tests pass, please :) | tests/test_base_scraper.py | tests/test_base_scraper.py | from unittest import TestCase
from statscraper import BaseScraper, Dataset, Dimension, ROOT
class Scraper(BaseScraper):
def _fetch_itemslist(self, item):
yield Dataset("Dataset_1")
yield Dataset("Dataset_2")
yield Dataset("Dataset_3")
def _fetch_dimensions(self, dataset):
yi... | from unittest import TestCase
from statscraper import BaseScraper, Dataset, Dimension, ROOT
class Scraper(BaseScraper):
def _fetch_itemslist(self, item):
yield Dataset("Dataset_1")
yield Dataset("Dataset_2")
yield Dataset("Dataset_3")
def _fetch_dimensions(self, dataset):
yi... | Python | 0.000001 |
066299ce0aa6174c2b7c1070d801cbf540932697 | fix some python 3 issues | tests/test_cachemanager.py | tests/test_cachemanager.py | import time
from datetime import datetime
from beaker.cache import CacheManager
from beaker.util import parse_cache_config_options
defaults = {'cache.data_dir':'./cache', 'cache.type':'dbm', 'cache.expire': 2}
def teardown():
import shutil
shutil.rmtree('./cache', True)
def make_cache_obj(**kwargs):
opt... | import time
from datetime import datetime
from beaker.cache import CacheManager
from beaker.util import parse_cache_config_options
defaults = {'cache.data_dir':'./cache', 'cache.type':'dbm', 'cache.expire': 2}
def teardown():
import shutil
shutil.rmtree('./cache', True)
def make_cache_obj(**kwargs):
opt... | Python | 0.000069 |
408ef23f0227650c77dbaf3efae0dd569fb076dd | update version for release | setup.py | setup.py | #!/usr/bin/env python
try:
from setuptools import setup
except ImportError:
import distribute_setup
distribute_setup.use_setuptools()
from setuptools import setup
setup(
name='rst2html5-tools',
version='0.2.6',
author='Mariano Guerra',
description="Transform reStructuredText documents t... | #!/usr/bin/env python
try:
from setuptools import setup
except ImportError:
import distribute_setup
distribute_setup.use_setuptools()
from setuptools import setup
setup(
name='rst2html5-tools',
version='0.2.5',
author='Mariano Guerra',
description="Transform reStructuredText documents t... | Python | 0 |
239a4bad9c9ba249625d7a77da084df38a5b7d4b | Allow the residual plugin to function when nsteps = 1. | pyfr/plugins/residual.py | pyfr/plugins/residual.py | # -*- coding: utf-8 -*-
import numpy as np
from pyfr.mpiutil import get_comm_rank_root, get_mpi
from pyfr.plugins.base import BasePlugin, init_csv
class ResidualPlugin(BasePlugin):
name = 'residual'
systems = ['*']
def __init__(self, intg, cfgsect, suffix):
super().__init__(intg, cfgsect, suffi... | # -*- coding: utf-8 -*-
import numpy as np
from pyfr.mpiutil import get_comm_rank_root, get_mpi
from pyfr.plugins.base import BasePlugin, init_csv
class ResidualPlugin(BasePlugin):
name = 'residual'
systems = ['*']
def __init__(self, intg, cfgsect, suffix):
super().__init__(intg, cfgsect, suffi... | Python | 0.000001 |
77dc6134be66bf16e346d6120c361ca2b11899f3 | Add events | setup.py | setup.py | from setuptools import setup, find_packages
setup(name='findatapy',
version='0.05',
description='Market data library',
author='Saeed Amen',
author_email='saeed@cuemacro.com',
license='Apache 2.0',
keywords = ['pandas', 'data', 'Bloomberg', 'tick', 'stocks', 'equities'],
url = ... | from setuptools import setup, find_packages
setup(name='findatapy',
version='0.05',
description='Market data library',
author='Saeed Amen',
author_email='saeed@cuemacro.com',
license='Apache 2.0',
keywords = ['pandas', 'data', 'Bloomberg', 'tick', 'stocks', 'equities'],
url = ... | Python | 0.00006 |
e385a57804329356a2f4e7c44532cfa052441555 | Fix test data broken due to updated behavior of PyFile#getImportBlock() | python/testData/refactoring/move/relativeImportsInsideMovedModule/after/src/subpkg1/mod1.py | python/testData/refactoring/move/relativeImportsInsideMovedModule/after/src/subpkg1/mod1.py | import
from
from
import pkg1.subpkg2 as foo
from pkg1 import subpkg2
from pkg1 import subpkg2 as bar
from pkg1.subpkg2 import
from pkg1.subpkg2 import mod2
from pkg1.subpkg2.mod2 import VAR
from . import mod3
print(subpkg2, mod3, mod2, foo, bar, VAR)
| from pkg1 import subpkg2
from pkg1.subpkg2 import mod2
from pkg1.subpkg2.mod2 import VAR
from . import mod3
# malformed imports
from
from import
from pkg1.subpkg2 import
# absolute imports
import pkg1.subpkg2 as foo
from pkg1 import subpkg2 as bar
print(subpkg2, mod3, mod2, foo, bar, VAR)
| Python | 0 |
72c669d71b797268870f00e2aa1c00018bcd638b | add local_asn test | tests/versions/base/test_bgp.py | tests/versions/base/test_bgp.py | #!/usr/bin/env python
"""
Copyright 2015 Brocade Communications Inc.
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... | Python | 0.000001 | |
5a7f89735345ab0ff2fae68a28ad8d21e35e6751 | use selenium to detect invisible element | core/drivers/extract/driver/spiders/form.py | core/drivers/extract/driver/spiders/form.py | # -*- coding: utf-8 -*-
import scrapy
from scrapy.spiders import CrawlSpider, Rule
from scrapy.contrib.linkextractors.sgml import SgmlLinkExtractor
from driver.items import InputItem, FormItem
from selenium import webdriver
from db_webcrawler.settings import *
class FormSpider(CrawlSpider):
name = "form"
all... | # -*- coding: utf-8 -*-
import scrapy
from scrapy.spiders import CrawlSpider, Rule
from scrapy.contrib.linkextractors.sgml import SgmlLinkExtractor
from driver.items import InputItem, FormItem
class FormSpider(CrawlSpider):
name = "form"
allowed_domains = ["127.0.0.1"]
def __init__(self, *args, **kw... | Python | 0.000002 |
434b57778e7cd75702e72dafc8c2c5efce0b1b86 | Update test requirements | setup.py | setup.py | # -*- coding: utf-8 -*-
#!/usr/bin/env python
import sys
import os
import re
from setuptools import setup
from setuptools.command.test import test as TestCommand
kwargs = {}
requires = []
packages = [
"github3",
"github3.gists",
"github3.repos",
"github3.issues",
"github3.search",
]
kwargs['test... | # -*- coding: utf-8 -*-
#!/usr/bin/env python
import sys
import os
import re
from setuptools import setup
from setuptools.command.test import test as TestCommand
kwargs = {}
requires = []
packages = [
"github3",
"github3.gists",
"github3.repos",
"github3.issues",
"github3.search",
]
kwargs['test... | Python | 0 |
f8da511cb61072b566ebd0113edd125395b8d422 | Fix connection | tests/test_reconnection.py | tests/test_reconnection.py | """
Collection of test cases to test connection module.
"""
from nose.tools import assert_true, assert_false, assert_equal, raises
import datajoint as dj
import numpy as np
from datajoint import DataJointError
from . import CONN_INFO, PREFIX
class TestReconnect:
"""
test reconnection
"""
def setup(... | """
Collection of test cases to test connection module.
"""
from nose.tools import assert_true, assert_false, assert_equal, raises
import datajoint as dj
import numpy as np
from datajoint import DataJointError
from . import CONN_INFO, PREFIX
class TestReconnect:
"""
test reconnection
"""
@classmeth... | Python | 0.000006 |
be56cb9f15e7ea0348937c9c86518786e138e023 | update setup.py | setup.py | setup.py | from setuptools import setup
def readme():
with open('README.md') as f:
return f.read()
setup(name='kaspar_gui',
version='0.1',
description='Internet based Front-End for the KASPAR Robot',
long_description=readme(),
classifiers=[
'Development Status :: 1 - Beta',... | from setuptools import setup
def readme():
with open('README.md') as f:
return f.read()
setup(name='kaspar_gui',
version='0.1',
description='Internet based Front-End for the KASPAR Robot',
long_description=readme(),
classifiers=[
'Development Status :: 1 - Beta',... | Python | 0.000001 |
e2e6cdac88ee03f78713ac4a50d0003a471a0027 | Add Python 3.9 to the list of supported versions. | setup.py | setup.py | from setuptools import setup
long_description = open('README.rst').read()
setup(
name="celery-redbeat",
description="A Celery Beat Scheduler using Redis for persistent storage",
long_description=long_description,
version="2.0.0",
url="https://github.com/sibson/redbeat",
license="Apache License... | from setuptools import setup
long_description = open('README.rst').read()
setup(
name="celery-redbeat",
description="A Celery Beat Scheduler using Redis for persistent storage",
long_description=long_description,
version="2.0.0",
url="https://github.com/sibson/redbeat",
license="Apache License... | Python | 0 |
38a555cb1eb2a5d0170ff1aab70fb0f2f01d6b2b | add x and y title options | pyfluka/utils/Plotter.py | pyfluka/utils/Plotter.py | import numpy as np
import os.path
from itertools import izip
from matplotlib import pyplot as plt
from matplotlib.colors import LogNorm, Normalize
def get_axes_range(axisdata):
start, end, nbins = axisdata
step = (end - start) / nbins
print start, end, nbins, step
return np.arange(start, end + step / ... | import numpy as np
import os.path
from itertools import izip
from matplotlib import pyplot as plt
from matplotlib.colors import LogNorm, Normalize
def get_axes_range(axisdata):
start, end, nbins = axisdata
step = (end - start) / nbins
print start, end, nbins, step
return np.arange(start, end + step / ... | Python | 0.000067 |
29c40e1e5048c5f8d76486020be6464de0e2adc7 | add more dependency | setup.py | setup.py | from setuptools import find_packages
from setuptools import setup
install_requires = [
'numpy',
'theano',
'pyyaml',
'h5py',
]
setup(
name="TheFramework",
version="0.0.1",
description="A nn lib",
packages=find_packages(),
include_package_data=False,
zip_safe=False,
install_r... | from setuptools import find_packages
from setuptools import setup
install_requires = [
'numpy',
'theano',
]
setup(
name="TheFramework",
version="0.0.1",
description="A nn lib",
packages=find_packages(),
include_package_data=False,
zip_safe=False,
install_requires=install_requires,
... | Python | 0 |
67e6036c564f4e2eb9acf650acf5c33813af3003 | make serve_image return an image | views.py | views.py | from flask import Flask, render_template, make_response
from PIL import Image
import StringIO
app = Flask(__name__)
@app.route('/')
def hello_world():
return render_template('index.html')
@app.route('/<width>x<height>')
@app.route('/<width>X<height>')
def serve_image(width, height):
stringfile = StringIO.St... | from flask import Flask, render_template
app = Flask(__name__)
@app.route('/')
def hello_world():
return render_template('index.html')
"""@app.route('/<username>')
def hello_world2(username):
return 'Hello %s' % username"""
if __name__ == '__main__':
app.run(debug=True)
| Python | 0.999961 |
c9c91af31d60c6e9f0eaa971c52985418a4707d3 | update whitelist for osd slow op wrn | teuthology/suite/placeholder.py | teuthology/suite/placeholder.py | import copy
class Placeholder(object):
"""
A placeholder for use with substitute_placeholders. Simply has a 'name'
attribute.
"""
def __init__(self, name):
self.name = name
def substitute_placeholders(input_dict, values_dict):
"""
Replace any Placeholder instances with values nam... | import copy
class Placeholder(object):
"""
A placeholder for use with substitute_placeholders. Simply has a 'name'
attribute.
"""
def __init__(self, name):
self.name = name
def substitute_placeholders(input_dict, values_dict):
"""
Replace any Placeholder instances with values nam... | Python | 0 |
802c2b7c99554f1caf9c9ebf1e17935f3717e402 | Fix pnsl module description (#776) | pajbot/modules/pnsl.py | pajbot/modules/pnsl.py | import logging
import requests
from pajbot.models.command import Command
from pajbot.modules import BaseModule
from pajbot.modules import ModuleSetting
log = logging.getLogger(__name__)
class PNSLModule(BaseModule):
ID = __name__.split(".")[-1]
NAME = "Run P&SL lists"
DESCRIPTION = "Run P&SL lists thr... | import logging
import requests
from pajbot.models.command import Command
from pajbot.modules import BaseModule
from pajbot.modules import ModuleSetting
log = logging.getLogger(__name__)
class PNSLModule(BaseModule):
ID = __name__.split(".")[-1]
NAME = "Run P&SL lists"
DESCRIPTION = "Run P&SL lists thr... | Python | 0 |
b14f520fbb15c9f455339631ed90b0d926befb27 | Bump version | setup.py | setup.py | # encoding: utf-8
import io
import sys
import os.path
import setuptools
MISC_DIR = "misc"
REQUIREMENT_DIR = "requirements"
with io.open("README.rst", encoding="utf8") as f:
long_description = f.read()
with io.open(os.path.join(MISC_DIR, "summary.txt"), encoding="utf8") as f:
summary = f.read()
with open(o... | # encoding: utf-8
import io
import sys
import os.path
import setuptools
MISC_DIR = "misc"
REQUIREMENT_DIR = "requirements"
with io.open("README.rst", encoding="utf8") as f:
long_description = f.read()
with io.open(os.path.join(MISC_DIR, "summary.txt"), encoding="utf8") as f:
summary = f.read()
with open(o... | Python | 0 |
9c07d26072c15147e47c15edd5c4d356686b14d7 | Upgrade these. | setup.py | setup.py | import os
from setuptools import setup, find_packages
VERSION = os.path.join(os.path.dirname(__file__), 'VERSION')
VERSION = open(VERSION, 'r').read().strip()
README = os.path.join(os.path.dirname(__file__), 'README.rst')
README = open(README, 'r').read().strip()
setup(
name='grano-client',
version=VERSION,
... | import os
from setuptools import setup, find_packages
VERSION = os.path.join(os.path.dirname(__file__), 'VERSION')
VERSION = open(VERSION, 'r').read().strip()
README = os.path.join(os.path.dirname(__file__), 'README.rst')
README = open(README, 'r').read().strip()
setup(
name='grano-client',
version=VERSION,
... | Python | 0 |
7689719e0ba8f577acbe5d919828a1abc5437be4 | update version | setup.py | setup.py | from setuptools import setup
setup(name='lunchboy',
version='0.2',
description='Lunch without #lunch',
url='http://github.com/lisunshiny/lunchboy',
author='Liann Sun',
author_email='liann@appboy.com',
license='MIT',
packages=['lunchboy'],
install_requires=['Scrapy'],
... | from setuptools import setup
setup(name='lunchboy',
version='0.1',
description='Lunch without #lunch',
url='http://github.com/lisunshiny/lunchboy',
author='Liann Sun',
author_email='liann@appboy.com',
license='MIT',
packages=['lunchboy'],
install_requires=['Scrapy'],
... | Python | 0 |
f3f2408370e76ec8338bfc1f816ca875c75acf5c | remove ez_setup | setup.py | setup.py | #!/usr/bin/env python
from setuptools import setup, find_packages
setup(
name='yandextank',
version='1.7.8',
description='a performance measurement tool',
longer_description='''
Yandex.Tank is a performance measurement and load testing automatization tool.
It uses other load generators such as JMeter,... | #!/usr/bin/env python
import ez_setup
ez_setup.use_setuptools()
from setuptools import setup, find_packages
setup(
name='yandextank',
version='1.7.7',
description='a performance measurement tool',
longer_description='''
Yandex.Tank is a performance measurement and load testing automatization tool.
It... | Python | 0.000014 |
60b310d8fbd6b6130b4e8f23d20fc374eee65c74 | Bump version | setup.py | setup.py | from setuptools import setup, find_packages
version = '0.3.1b2'
requires = [
'setuptools >= 2.2',
'eduid-userdb >= 0.0.5',
]
# Flavours
webapp_requires = [
'Flask>=0.12,<0.13',
'pysaml2 >= 4.0.3rc1', # version sync with dashboard to avoid pip catastrophes
'redis >= 2.10.5',
'pwgen == 0.4',
... | from setuptools import setup, find_packages
version = '0.3.1b1'
requires = [
'setuptools >= 2.2',
'eduid-userdb >= 0.0.5',
]
# Flavours
webapp_requires = [
'Flask>=0.12,<0.13',
'pysaml2 >= 4.0.3rc1', # version sync with dashboard to avoid pip catastrophes
'redis >= 2.10.5',
'pwgen == 0.4',
... | Python | 0 |
83b51969d55a81c34cae483d11901fe90e1c2fa9 | fix importlib for rtfd | pyrealsense/importlib.py | pyrealsense/importlib.py | # -*- coding: utf-8 -*-
# Licensed under the Apache-2.0 License, see LICENSE for details.
"""This module loads rsutilwrapper and librealsense library."""
import ctypes
import sys
import os
import warnings
os_name = sys.platform
lrs_prefix_mapping = {'darwin': 'lib', 'linux': 'lib', 'linux2': 'lib', 'win32': ''}
lrs_... | # -*- coding: utf-8 -*-
# Licensed under the Apache-2.0 License, see LICENSE for details.
"""This module loads rsutilwrapper and librealsense library."""
import ctypes
import sys
import os
os_name = sys.platform
lrs_prefix_mapping = {'darwin': 'lib', 'linux': 'lib', 'linux2': 'lib', 'win32': ''}
lrs_suffix_mapping =... | Python | 0 |
238dd56b20418178ac8b4357ac70491b73b52dda | Add new interface. | pykeg/core/Interfaces.py | pykeg/core/Interfaces.py | """
This library defines a set of interfaces used by parts of the kegbot.
In general, the interfaces defined here are nothing more than a well-known
class name and one or more function prototypes, which define the interface.
Modules wishing to advertise implementation of one or more of these interfaces
may do so by s... | """
This library defines a set of interfaces used by parts of the kegbot.
In general, the interfaces defined here are nothing more than a well-known
class name and one or more function prototypes, which define the interface.
Modules wishing to advertise implementation of one or more of these interfaces
may do so by s... | Python | 0 |
71b7faf519a45de7fc349930cf2d4268e27ae36c | Bump version to 0.8.0 | setup.py | setup.py | import os
import fnmatch
from setuptools import setup, find_packages
from codecs import open
here = os.path.abspath(os.path.dirname(__file__))
with open(os.path.join(here, 'README.md'), encoding='utf-8') as f:
long_description = f.read()
def schema_files():
'''Return all CSV and JSON files paths in datapack... | import os
import fnmatch
from setuptools import setup, find_packages
from codecs import open
here = os.path.abspath(os.path.dirname(__file__))
with open(os.path.join(here, 'README.md'), encoding='utf-8') as f:
long_description = f.read()
def schema_files():
'''Return all CSV and JSON files paths in datapack... | Python | 0 |
b0878122e5ef212592a678f61698d726a7f8d768 | Fix query string order | post.py | post.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import cgi
import sqlite3
import time
import config
def fs2dict(fs):
'''Field strage to dict'''
params = {}
for k in fs.keys():
params[k] = fs[k].value
return params
def valid(qs):
required_keys = ['title', 'comment', 'posted_by', 'latitude',... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import cgi
import sqlite3
import time
import config
def fs2dict(fs):
'''Field strage to dict'''
params = {}
for k in fs.keys():
params[k] = fs[k].value
return params
def valid(qs):
required_keys = ['title', 'comment', 'posted_by', 'latitude',... | Python | 0.999999 |
084893374cf5a1585f8b7c18747ec8b11e0c0ce4 | Update 02-02_cleanse.py | scikit/src/nosql/02-02_cleanse.py | scikit/src/nosql/02-02_cleanse.py |
import commons, sys, os
import logging as log
import pandas as pd
import xgboost as xgb
import numpy as np
from sklearn.externals import joblib
from sklearn.model_selection import train_test_split
from sklearn.metrics import accuracy_score, f1_score, precision_score, recall_score, classification_report, confusion_matr... |
import commons, sys, os
import logging as log
import pandas as pd
import xgboost as xgb
import numpy as np
from sklearn.externals import joblib
from sklearn.model_selection import train_test_split
from sklearn.metrics import accuracy_score, f1_score, precision_score, recall_score, classification_report, confusion_matr... | Python | 0 |
d7a8192c5f1bbb8fc076ceef3a6b835cd37050d8 | update classifiers | setup.py | setup.py | #!/usr/bin/env python
#from setuptools import setup
from setuptools.command.bdist_rpm import bdist_rpm
from distutils.core import setup
import os
try:
from sphinx.setup_command import BuildDoc as _BuildDoc
class BuildDoc(_BuildDoc):
def finalize_options(self):
super().finalize_options()
... | #!/usr/bin/env python
#from setuptools import setup
from setuptools.command.bdist_rpm import bdist_rpm
from distutils.core import setup
import os
try:
from sphinx.setup_command import BuildDoc as _BuildDoc
class BuildDoc(_BuildDoc):
def finalize_options(self):
super().finalize_options()
... | Python | 0.000002 |
b3066ad8e5af59d12a8b28f0e6b69e0305535094 | edit doc | setup.py | setup.py | from distutils.core import setup
setup(
name = "nicosearch",
py_modules=['nicosearch'],
version = "0.0.4",
license = 'MIT License',
download_url = "http://backloglib.googlecode.com/files/backloglib-0.1.1.tar.g://github.com/ymizushi/nicosearch/archive/master.zip",
platforms = ['POSIX... | from distutils.core import setup
setup(
name = "nicosearch",
py_modules=['nicosearch'],
version = "0.0.3",
license = open('./LICENSE').read(),
download_url = "http://backloglib.googlecode.com/files/backloglib-0.1.1.tar.g://github.com/ymizushi/nicosearch/archive/master.zip",
platform... | Python | 0 |
1102293fd73c4091fd21b011d4e790da6df23031 | remove README deps | setup.py | setup.py | # Copyright 2014 Google Inc.
#
# 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 2014 Google Inc.
#
# 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,... | Python | 0.000004 |
81c5d5eea267cd35517bae1ed50d4bdeb8b3a62c | clean up interface class | pymba/vimba_interface.py | pymba/vimba_interface.py | from ctypes import byref
from .vimba_object import VimbaObject
from .vimba_exception import VimbaException
from . import vimba_c
class VimbaInterface(VimbaObject):
"""
A Vimba interface object. This class provides the minimal access
to Vimba functions required to control the interface.
"""
def _... | # -*- coding: utf-8 -*-
from __future__ import absolute_import
from . import vimba_structure as structs
from .vimba_object import VimbaObject
from .vimba_exception import VimbaException
from .vimba_dll import VimbaDLL
from ctypes import *
# interface features are automatically readable as object attributes.
class Vi... | Python | 0.000001 |
440c8e679b5939da0f5e32342440f7151c11bb61 | Add checking value of "XWALK_OS_ANDROID" during parsing xwalk deps | tools/generate_gclient-xwalk.py | tools/generate_gclient-xwalk.py | #!/usr/bin/env python
# Copyright (c) 2013 Intel Corporation. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""
This script is responsible for generating .gclient-xwalk in the top-level
source directory from DEPS.xwalk.
User-configurable va... | #!/usr/bin/env python
# Copyright (c) 2013 Intel Corporation. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""
This script is responsible for generating .gclient-xwalk in the top-level
source directory from DEPS.xwalk.
User-configurable va... | Python | 0 |
d1c62e413eeefb105538d5f8b53bc58441951535 | change class names to hint their C-library agents | pymmrouting/datamodel.py | pymmrouting/datamodel.py | """
Data adapter for reading and parsing multimodal transportation networks and
related abstraction of facilities
"""
from ctypes import Structure, c_int, c_double, c_longlong, POINTER, CFUNCTYPE
class CEdge(Structure):
pass
CEdge._fields_ = [("mode_id", c_int),
("length", c_dou... | """
Data adapter for reading and parsing multimodal transportation networks and
related abstraction of facilities
"""
from ctypes import *
class Edge(Structure):
pass
Edge._fields_ = [("mode_id", c_int),
("length", c_double),
("length_factor", c_double),
... | Python | 0 |
413f628a750c59cf2ced27738513497adfc779c1 | Implement agent deletion. | pynessus/models/agent.py | pynessus/models/agent.py | """
Copyright 2014 Quentin Kaiser
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, software
dis... | """
Copyright 2014 Quentin Kaiser
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, software
dis... | Python | 0 |
3c7758ce4f4ee844212e0dc86e3e35a5ea34d13f | Update setup.py | setup.py | setup.py | from setuptools import setup
classifiers=[
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
]
setup(
name="virtool",
classifiers=classifiers,
install_requires=[
"aiofiles",
"aiohttp",
"aiojobs",
"aionotify",
"aioredis",
... | from cx_Freeze import setup, Executable
build_exe_options = {
"bin_includes": [
"libssl.so",
"libz.so"
],
"bin_path_includes": [
"/usr/lib/x86_64-linux-gnu"
],
"include_files": [
("client/dist", "client"),
"LICENSE",
"templates",
"readme.md"
... | Python | 0.000001 |
5377d3a817c8a03a205e9557b4614f59e8877416 | update Peercoin network parameters | pypeerassets/networks.py | pypeerassets/networks.py | from collections import namedtuple
from decimal import Decimal
from btcpy.structs.transaction import TxOut
from btcpy.structs.script import NulldataScript
from pypeerassets.exceptions import UnsupportedNetwork
class PeercoinTxOut(TxOut):
def get_dust_threshold(self, size_to_relay_fee) -> float:
if isi... | from collections import namedtuple
from decimal import Decimal
from btcpy.structs.transaction import TxOut
from btcpy.structs.script import NulldataScript
from pypeerassets.exceptions import UnsupportedNetwork
class PeercoinTxOut(TxOut):
def get_dust_threshold(self, size_to_relay_fee) -> float:
if isi... | Python | 0.000001 |
3d02b8368b6fa43bf66600110c22da323590ec0b | Bump flake8-bugbear from 19.3.0 to 19.8.0 | setup.py | setup.py | # -*- coding: utf-8 -*-
import codecs
import re
import sys
from setuptools import setup
INSTALL_REQUIRES = ["click>=4.0", "click-completion>=0.3.1", "click-didyoumean>=0.0.3"]
if "win32" in str(sys.platform).lower():
# Terminal colors for Windows
INSTALL_REQUIRES.append("colorama>=0.2.4")
EXTRAS_REQUIRE = {... | # -*- coding: utf-8 -*-
import codecs
import re
import sys
from setuptools import setup
INSTALL_REQUIRES = ["click>=4.0", "click-completion>=0.3.1", "click-didyoumean>=0.0.3"]
if "win32" in str(sys.platform).lower():
# Terminal colors for Windows
INSTALL_REQUIRES.append("colorama>=0.2.4")
EXTRAS_REQUIRE = {... | Python | 0.000001 |
b31f6cc920a99fe4e4d17f823d4e2b24f7ea7e6a | bump version | setup.py | setup.py | #!/usr/bin/env python
from distutils.command.install import INSTALL_SCHEMES
from os.path import dirname, join, abspath
from setuptools import setup
from setuptools.command.install import install
for scheme in INSTALL_SCHEMES.values():
scheme['data'] = scheme['purelib']
setup_args = {
'cmdclass': {'install':... | #!/usr/bin/env python
from distutils.command.install import INSTALL_SCHEMES
from os.path import dirname, join, abspath
from setuptools import setup
from setuptools.command.install import install
for scheme in INSTALL_SCHEMES.values():
scheme['data'] = scheme['purelib']
setup_args = {
'cmdclass': {'install':... | Python | 0 |
7d97f7e6d7c467fda4b2aea4d028ee376f9c71d3 | Bump version. | setup.py | setup.py | from distutils.core import setup
setup(name='pyrc',
version='0.6.1',
description='Simple, clean Python IRC library',
author='David Peter',
author_email='david.a.peter@gmail.com',
url='http://github.com/sarenji/pyrc',
packages=['pyrc', 'pyrc/utils'],
classifiers=[
'Opera... | from distutils.core import setup
setup(name='pyrc',
version='0.6.0',
description='Simple, clean Python IRC library',
author='David Peter',
author_email='david.a.peter@gmail.com',
url='http://github.com/sarenji/pyrc',
packages=['pyrc', 'pyrc/utils'],
classifiers=[
'Opera... | Python | 0 |
0e2593f863b56ffeb4df4e8fbec9d5d7866574de | Remove unused code | pysswords/db/database.py | pysswords/db/database.py | import fnmatch
import os
import re
import yaml
from pysswords.crypt import create_keyring, getgpg, is_encrypted
from .credential import (
Credential,
CredentialNotFoundError,
CredentialExistsError,
content,
expandpath,
exists,
clean,
asstring
)
from pysswords.python_two import makedirs... | import fnmatch
import os
import re
import yaml
from pysswords.crypt import create_keyring, getgpg, is_encrypted
from .credential import (
Credential,
CredentialNotFoundError,
CredentialExistsError,
content,
expandpath,
exists,
clean,
asstring
)
from pysswords.python_two import makedirs... | Python | 0.000006 |
4ed7c876e825b6fa28d31ed257ecbd0023cff605 | handle missing db | pytest_cagoule/select.py | pytest_cagoule/select.py | from itertools import chain
import os
import re
import sqlite3
import six
from . import DB_FILE
spec_re = re.compile(
r'(?P<filename>[^:]+)(:(?P<start_line>\d+))?(-(?P<end_line>\d+))?'
)
def parse_spec(spec):
match = spec_re.match(spec)
if match is None:
return []
matches = match.groupdict(... | from itertools import chain
import os
import re
import sqlite3
import six
from . import DB_FILE
spec_re = re.compile(
r'(?P<filename>[^:]+)(:(?P<start_line>\d+))?(-(?P<end_line>\d+))?'
)
def parse_spec(spec):
match = spec_re.match(spec)
if match is None:
return []
matches = match.groupdict(... | Python | 0.000014 |
6c1750336e09e6ed2a48413aedc1142d8d7dd39f | Remove font tag. | machines/stealth.py | machines/stealth.py | # coding: utf-8
from pcounter import pcounter, util
COUNT_INDEX_STEALTH_CHANCETIME = pcounter.COUNT_INDEX.USER
def init():
return pcounter.ICounter("stealth", switchon_handler,
switchoff_handler,
output_handler)
def switchon_handler(cbitt... | # coding: utf-8
from pcounter import pcounter, util
COUNT_INDEX_STEALTH_CHANCETIME = pcounter.COUNT_INDEX.USER
def init():
return pcounter.ICounter("stealth", switchon_handler,
switchoff_handler,
output_handler)
def switchon_handler(cbit... | Python | 0 |
b8d377f564d3d650048bc4b20a231a280de92cfe | Update setup | setup.py | setup.py | #! /usr/bin/env python
#
# Copyright (C) 2015-2016 Jacob Graving <jgraving@gmail.com>
import os
# temporarily redirect config directory to prevent matplotlib importing
# testing that for writeable directory which results in sandbox error in
# certain easy_install versions
os.environ["MPLCONFIGDIR"] = "."
DESCRIPTION ... | #! /usr/bin/env python
#
# Copyright (C) 2015-2016 Jacob Graving <jgraving@gmail.com>
import os
# temporarily redirect config directory to prevent matplotlib importing
# testing that for writeable directory which results in sandbox error in
# certain easy_install versions
os.environ["MPLCONFIGDIR"] = "."
DESCRIPTION ... | Python | 0.000001 |
ec4bbc6c6b766ac1c530cf3f1b4ebab40c60fe01 | Update instrument.py | fx_collect/instrument.py | fx_collect/instrument.py | class InstrumentAttributes(object):
def __init__(
self, broker, instrument, time_frames,
market_status, last_update, utc_now, wk_str, wk_end
):
# Start of Trading Week
self.utc_now = utc_now
self.wk_str = wk_str
self.wk_end = wk_end
self.str_hour = wk_str.... | class InstrumentAttributes(object):
def __init__(
self, broker, instrument, time_frames,
market_status, last_update, utc_now, wk_str, wk_end
):
# Start of Trading Week
self.utc_now = utc_now
self.wk_str = wk_str
self.wk_end = wk_end
self.str_hour = wk_str.... | Python | 0 |
c2be940ea7c0a11bc0ffb5660d5f902bbaee29d6 | Fix closure binding problem | patchboard/resource.py | patchboard/resource.py | # resource.py
#
# Copyright 2014 BitVault.
from __future__ import print_function
import json
from action import Action
from exception import PatchboardError
class ResourceType(type):
"""A metaclass for resource classes."""
# Must override to supply default arguments
def __new__(cls, name, patchboard... | # resource.py
#
# Copyright 2014 BitVault.
from __future__ import print_function
import json
from action import Action
from exception import PatchboardError
class ResourceType(type):
"""A metaclass for resource classes."""
# Must override to supply default arguments
def __new__(cls, name, patchboard... | Python | 0.000002 |
5cbc61943b3488719c3e0de2596ce64458935538 | add include_package_data to setup.py | setup.py | setup.py | from os.path import join, dirname
with open(join(dirname(__file__), 'scrapyd/VERSION')) as f:
version = f.read().strip()
setup_args = {
'name': 'Scrapyd',
'version': version,
'url': 'https://github.com/scrapy/scrapyd',
'description': 'A service for running Scrapy spiders, with an HTTP API',
'l... | from os.path import join, dirname
with open(join(dirname(__file__), 'scrapyd/VERSION')) as f:
version = f.read().strip()
setup_args = {
'name': 'Scrapyd',
'version': version,
'url': 'https://github.com/scrapy/scrapyd',
'description': 'A service for running Scrapy spiders, with an HTTP API',
'l... | Python | 0.000001 |
a6effe7080fb66f7bd4e930727ed5d1ecff21523 | Fix setup requirements to not contain transitional dependencies and exact versions | setup.py | setup.py | from setuptools import setup
from pytui.settings import VERSION
setup(
name='pytest-ui',
description='Text User Interface for running python tests',
version=VERSION,
license='MIT',
platforms=['linux', 'osx', 'win32'],
packages=['pytui'],
url='https://github.com/martinsmid/pytest-ui',
... | from setuptools import setup
from pytui.settings import VERSION
setup(
name='pytest-ui',
description='Text User Interface for running python tests',
version=VERSION,
license='MIT',
platforms=['linux', 'osx', 'win32'],
packages=['pytui'],
url='https://github.com/martinsmid/pytest-ui',
... | Python | 0 |
131cead153dd29cacf03fbf841f26fc85482b57c | Set version redactor 0.2 on setup file | setup.py | setup.py | #!/usr/bin/env python
# -*- coding:utf-8 -*-
from setuptools import setup, find_packages
import opps
install_requires = ["Django==1.5",
"south>=0.7",
"Pillow==1.7.8",
"thumbor==3.7.1",
"django-tagging==0.3.1",
"djan... | #!/usr/bin/env python
# -*- coding:utf-8 -*-
from setuptools import setup, find_packages
import opps
install_requires = ["Django==1.5",
"south>=0.7",
"Pillow==1.7.8",
"thumbor==3.7.1",
"django-tagging==0.3.1",
"djan... | Python | 0 |
f99728387b87787f7f05b9878cd85c8128461d3f | remove previous builds | setup.py | setup.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import codecs
import os
import sys
from shutil import rmtree
from setuptools import find_packages, setup, Command
here = os.path.abspath(os.path.dirname(__file__))
with codecs.open(os.path.join(here, 'README.rst'), encoding='utf-8') as f:
long_description = '\n' + f... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import codecs
import os
import sys
from shutil import rmtree
from setuptools import find_packages, setup, Command
here = os.path.abspath(os.path.dirname(__file__))
with codecs.open(os.path.join(here, 'README.rst'), encoding='utf-8') as f:
long_description = '\n' + f... | Python | 0 |
0aee4834970714c399f1375830400ff66104bd92 | fix setup.py | setup.py | setup.py | #!/usr/bin/env python
import os
import re
import sys
from codecs import open
from setuptools import setup
from setuptools.command.test import test as TestCommand
here = os.path.abspath(os.path.dirname(__file__))
class PyTest(TestCommand):
user_options = [('pytest-args=', 'a', "Arguments to pass into py.test")]... | #!/usr/bin/env python
import os
import re
import sys
from codecs import open
from setuptools import setup
from setuptools.command.test import test as TestCommand
here = os.path.abspath(os.path.dirname(__file__))
class PyTest(TestCommand):
user_options = [('pytest-args=', 'a', "Arguments to pass into py.test")]... | Python | 0.000001 |
72e4efe764dfcb85b633e59fbebd3aa82a95f6de | Use setuptools. | setup.py | setup.py | from setuptools import setup
from sentinel import __version__ as VERSION
from codecs import open
with open('README.rst', encoding='UTF-8') as readme:
long_description = readme.read()
setup(
name='sentinel',
version=VERSION,
url='https://github.com/eddieantonio/sentinel',
license='MIT',
author=... | from distutils.core import setup
from sentinel import __version__ as VERSION
from codecs import open
with open('README.rst', encoding='UTF-8') as readme:
long_description = readme.read()
setup(
name='sentinel',
version=VERSION,
url='https://github.com/eddieantonio/sentinel',
license='MIT',
aut... | Python | 0 |
1bfb63c704ae9d947310c8f0f8250ef43aae6217 | Update setup.py | setup.py | setup.py | from setuptools import setup
import rainwaveclient
setup(
name='python-rainwave-client',
version=rainwaveclient.__version__,
author=rainwaveclient.__author__,
author_email='william@subtlecoolness.com',
url='https://github.com/williamjacksn/python-rainwave-client',
description='Python client li... | from setuptools import setup
import rainwaveclient
setup(
name='python-rainwave-client',
version=rainwaveclient.__version__,
author=rainwaveclient.__author__,
author_email='william@subtlecoolness.com',
url='https://gutter.readthedocs.org/',
description='Python Rainwave client library',
pac... | Python | 0.000001 |
32c4ac486ded1ef4d4e37f182072bb1a3350db0c | Update 1.1 -> 1.2 | setup.py | setup.py | #!/usr/bin/env python
from setuptools import setup, find_packages
import os
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
setup(name='junit-xml',
author='Brian Beyer',
author_email='brian@kyr.us',
url='https://github.com/kyrus/python-junit-xml',
license='MIT',
packages=find... | #!/usr/bin/env python
from setuptools import setup, find_packages
import os
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
setup(name='junit-xml',
author='Brian Beyer',
author_email='brian@kyr.us',
url='https://github.com/kyrus/python-junit-xml',
license='MIT',
packages=find... | Python | 0.000003 |
81a0ffba0a744df61da246be5a1729981c2a32b4 | Bump version (1.0.2 → 1.1.0). | setup.py | setup.py | # -*- coding: utf-8 -*-
"""
Browserify filter for webassets
-------------------------------
Filter for for compiling assets using `Browserify <http://browserify.org>`_ and
`webassets <http://webassets.readthedocs.org>`_.
Basic usage
```````````
.. code:: python
from webassets.filter import register_filter
f... | # -*- coding: utf-8 -*-
"""
Browserify filter for webassets
-------------------------------
Filter for for compiling assets using `Browserify <http://browserify.org>`_ and
`webassets <http://webassets.readthedocs.org>`_.
Basic usage
```````````
.. code:: python
from webassets.filter import register_filter
f... | Python | 0 |
ba1a8404ba71acfedb3da99c50a08d5575347026 | Remove the potato rule | solomagic.py | solomagic.py | #!/usr/bin/env python3
import argparse
class Block:
tiers = []
def __init__(self, tiers = []):
self.tiers = tiers
def getTier(self, name):
for v in self.tiers:
if v[0] == name:
return v
raise "Scheisse"
def setTier(self, name, value):
asse... | #!/usr/bin/env python3
import argparse
class Block:
tiers = []
def __init__(self, tiers = []):
self.tiers = tiers
def getTier(self, name):
for v in self.tiers:
if v[0] == name:
return v
raise "Scheisse"
def setTier(self, name, value):
asse... | Python | 0.00001 |
a0e56119990f8d0e25cd8835e050d354e4a3a4d7 | update author and email | setup.py | setup.py | import sys
from pathlib import Path
from setuptools import find_namespace_packages, setup
from setuptools.command.test import test as TestCommand
class Tox(TestCommand):
def finalize_options(self):
TestCommand.finalize_options(self)
self.test_args = []
self.test_suite = True
def run_... | import sys
from pathlib import Path
from setuptools import find_namespace_packages, setup
from setuptools.command.test import test as TestCommand
class Tox(TestCommand):
def finalize_options(self):
TestCommand.finalize_options(self)
self.test_args = []
self.test_suite = True
def run_... | Python | 0 |
ff6b42693e71f36882a1f56c3ffb310812efb043 | Update the setup.py to register and upload | setup.py | setup.py | #!/usr/bin/env python
import os
import sys
from setuptools import setup
if sys.argv[-1] == 'publish':
os.system('python setup.py register sdist upload')
os.system('python setup.py register bdist_wheel upload')
sys.exit()
readme_text = open("README.rst", "r").read()
setup(
name="django-ormcache",
... | #!/usr/bin/env python
import os
import sys
from setuptools import setup
if sys.argv[-1] == 'publish':
os.system('python setup.py sdist upload')
os.system('python setup.py bdist_wheel upload')
sys.exit()
readme_text = open("README.rst", "rb").read()
setup(
name="django-ormcache",
version="0.2"... | Python | 0 |
23d275d0f9e4ba1a4ab57918615467867988446d | Fix setup.py typo | setup.py | setup.py | #!/usr/bin/env python
try:
import ez_setup
ez_setup.use_setuptools()
except ImportError:
pass
from setuptools import setup
project_dir = 'djangosanetesting'
name = 'djangosanetesting'
version = '0.5.6'
setup(
name = name,
version = version,
url = 'http://devel.almad.net/trac/django-sane-test... | #!/usr/bin/env python
try:
import ez_setup
ez_setup.use_setuptools()
except ImportError:
pass
from setuptools import setup
project_dir = 'djangosanetesting'
name = 'djangosanetesting'
version = '0.5.6'
setup(
name = name,
version = version,
url = 'http://devel.almad.net/trac/django-sane-test... | Python | 0.000004 |
355a264a3b82d378d77a47916b217be8d573ad25 | Add a module docstring to `jacquard.storage.base` | jacquard/storage/base.py | jacquard/storage/base.py | """Base class for storage engine implementations."""
import abc
import contextlib
from .utils import TransactionMap
class KVStore(metaclass=abc.ABCMeta):
@abc.abstractmethod
def __init__(self, connection_string):
pass
@abc.abstractmethod
def begin(self):
pass
@abc.abstractmetho... | import abc
import contextlib
from .utils import TransactionMap
class KVStore(metaclass=abc.ABCMeta):
@abc.abstractmethod
def __init__(self, connection_string):
pass
@abc.abstractmethod
def begin(self):
pass
@abc.abstractmethod
def commit(self, changes, deletions):
pa... | Python | 0.000001 |
acf63adc560a693145856bc800f1d4afb79a2dcd | Remove specified pypi build | setup.py | setup.py | # Copyright (c) 2015, Tobias Houska
from setuptools import setup, find_packages
import os
setup(
name = 'spotpy',
version = '1.5.11',
description = 'A Statistical Parameter Optimization Tool',
long_description=open(os.path.join(os.path.dirname(__file__),
"README.rst")).r... | # Copyright (c) 2015, Tobias Houska
from setuptools import setup, find_packages
import os
# Type of python distribution
[bdist_wheel]
universal=0
setup(
name = 'spotpy',
version = '1.5.11',
description = 'A Statistical Parameter Optimization Tool',
long_description=open(os.path.join(os.path.dirname(__file__)... | Python | 0 |
b2e4882c8a58af7f2c8b207d0941b759471b20a1 | add scipy.stats.expon.pdf | jax/scipy/stats/expon.py | jax/scipy/stats/expon.py | # Copyright 2018 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | # Copyright 2018 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | Python | 0.000059 |
24d35c62409cb37fe5a8c0d0646d3e393fec5928 | Bump patch | gameanalysis/__init__.py | gameanalysis/__init__.py | __version__ = '4.1.1'
| __version__ = '4.1.0'
| Python | 0.000001 |
38fb1ef71f827ff8483984ed9b7844dbdd945643 | Add dependency link to daploader from pypi to overide Openshift's cache | setup.py | setup.py | #!/usr/bin/env python
from setuptools import setup
setup(
name='Dapi',
version='1.0',
description='DevAssistant Package Index',
author='Miro Hroncok',
author_email='mhroncok@redhat.com',
url='https://github.com/hroncok/dapi',
license='AGPLv3',
install_requires=[
'Django==1.6',
... | #!/usr/bin/env python
from setuptools import setup
setup(
name='Dapi',
version='1.0',
description='DevAssistant Package Index',
author='Miro Hroncok',
author_email='mhroncok@redhat.com',
url='https://github.com/hroncok/dapi',
license='AGPLv3',
install_requires=[
'Django==1.6',
... | Python | 0 |
42151375b9c8bc25f12e8aebd01e63998a1aae82 | Set the slug for runner factory | games/tests/factories.py | games/tests/factories.py | import factory
from django.utils.text import slugify
from django.db.models.signals import post_save
from games import models
from accounts.models import User
from accounts.signals import create_library
class PlatformFactory(factory.DjangoModelFactory):
FACTORY_FOR = models.Platform
name = 'Amiga'
class Game... | import factory
from django.db.models.signals import post_save
from games import models
from accounts.models import User
from accounts.signals import create_library
class PlatformFactory(factory.DjangoModelFactory):
FACTORY_FOR = models.Platform
name = 'Amiga'
class GameFactory(factory.DjangoModelFactory):
... | Python | 0.000001 |
f4685ae393a7cbaeea972b85d4e43c0a623722e9 | Bump version to 0.1.4 in setup.py | setup.py | setup.py | """Chassis: Opinionated REST Framework."""
from setuptools import find_packages, setup
setup(
name='chassis',
version='0.1.4',
packages=find_packages(),
description="Opinionated REST Framework",
author="Refinery 29",
author_email="chassis-project@refinery29.com",
url="https://github.com/re... | """Chassis: Opinionated REST Framework."""
from setuptools import find_packages, setup
setup(
name='chassis',
version='0.1.3',
packages=find_packages(),
description="Opinionated REST Framework",
author="Refinery 29",
author_email="chassis-project@refinery29.com",
url="https://github.com/re... | Python | 0 |
6dca6694619a04b21b723adaf20551376ab99acd | Change the name of the project to oslo.config | setup.py | setup.py | #!/usr/bin/python
# Copyright 2013 Red Hat, Inc.
#
# 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 ag... | #!/usr/bin/python
# Copyright 2013 Red Hat, Inc.
#
# 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 ag... | Python | 0.005054 |
bfc09546599c131a7171f25e02a8b9a71591587f | missing fabric dependencie | setup.py | setup.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
from setuptools import setup
root = os.path.abspath(os.path.dirname(__file__))
version = __import__('elevator').__version__
with open(os.path.join(root, 'README.md')) as f:
README = f.read()
with open(os.path.join(root, 'CHANGES.rst')) as f:
CHANGES ... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
from setuptools import setup
root = os.path.abspath(os.path.dirname(__file__))
version = __import__('elevator').__version__
with open(os.path.join(root, 'README.md')) as f:
README = f.read()
with open(os.path.join(root, 'CHANGES.rst')) as f:
CHANGES ... | Python | 0.999936 |
13d6f562102decb402e840b8e48c7c5a7b4e1497 | Update version | anypytools/__init__.py | anypytools/__init__.py | # -*- coding: utf-8 -*-
"""AnyPyTools library."""
import os
import sys
import platform
import logging
if "FOR_DISABLE_CONSOLE_CTRL_HANDLER" not in os.environ:
os.environ["FOR_DISABLE_CONSOLE_CTRL_HANDLER"] = "1"
from anypytools.abcutils import AnyPyProcess, execute_anybodycon
from anypytools.macroutils import Any... | # -*- coding: utf-8 -*-
"""AnyPyTools library."""
import os
import sys
import platform
import logging
if "FOR_DISABLE_CONSOLE_CTRL_HANDLER" not in os.environ:
os.environ["FOR_DISABLE_CONSOLE_CTRL_HANDLER"] = "1"
from anypytools.abcutils import AnyPyProcess, execute_anybodycon
from anypytools.macroutils import Any... | Python | 0 |
02ed373ec7818d51ba881c973125bf4d995e04c7 | bump to 0.0.10 | setup.py | setup.py | import os
from setuptools import setup, find_packages
longDesc = ""
if os.path.exists("README.md"):
longDesc = open("README.md").read().strip()
setup(
name='botstory',
packages=find_packages(),
version='0.0.10',
description='Async framework for bots',
license='MIT',
long_description=longD... | import os
from setuptools import setup, find_packages
longDesc = ""
if os.path.exists("README.md"):
longDesc = open("README.md").read().strip()
setup(
name='botstory',
packages=find_packages(),
version='0.0.9',
description='Async framework for bots',
license='MIT',
long_description=longDe... | Python | 0.000005 |
e72a726ba2fcbfe24fc6777a8905c1b7ed9c7dbf | test requirements | setup.py | setup.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
with open('README.rst') as readme_file:
readme = readme_file.read()
with open('HISTORY.rst') as history_file:
history = history_file.read()
requirements = [
]
test_... | #!/usr/bin/env python
# -*- coding: utf-8 -*-
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
with open('README.rst') as readme_file:
readme = readme_file.read()
with open('HISTORY.rst') as history_file:
history = history_file.read()
requirements = [
# TO... | Python | 0.000002 |
04a31c02c8186505e6e211e76903e5f1b62b3f90 | Change version number (v2.2 -> v2.2.1) | setup.py | setup.py | from distutils.core import setup, Extension
setup(name='python-pytun',
author='montag451',
author_email='montag451 at laposte.net',
maintainer='montag451',
maintainer_email='montag451 at laposte.net',
url='https://github.com/montag451/pytun',
description='Linux TUN/TAP wrapper for P... | from distutils.core import setup, Extension
setup(name='python-pytun',
author='montag451',
author_email='montag451 at laposte.net',
maintainer='montag451',
maintainer_email='montag451 at laposte.net',
url='https://github.com/montag451/pytun',
description='Linux TUN/TAP wrapper for P... | Python | 0.000002 |
d5313af83b8dc95677be16c88072b652743505fd | Bump version. | setup.py | setup.py | #!/usr/bin/env python
from setuptools import setup
def read(name):
from os import path
return open(path.join(path.dirname(__file__), name)).read()
setup(
name='django-facebook-auth',
version='3.8.6',
description="Authorisation app for Facebook API.",
long_description=read("README.rst"),
u... | #!/usr/bin/env python
from setuptools import setup
def read(name):
from os import path
return open(path.join(path.dirname(__file__), name)).read()
setup(
name='django-facebook-auth',
version='3.8.5',
description="Authorisation app for Facebook API.",
long_description=read("README.rst"),
u... | Python | 0.000057 |
e43a1d2f8bb8515b3bc920f210d697278717af31 | Move to 0.5 development. | setup.py | setup.py | #! /usr/bin/env python
descr = """Image Processing SciKit
Image processing algorithms for SciPy, including IO, morphology, filtering,
warping, color manipulation, object detection, etc.
Please refer to the online documentation at
http://scikits-image.org/
"""
DISTNAME = 'skimage'
DESCRIPTION = ... | #! /usr/bin/env python
descr = """Image Processing SciKit
Image processing algorithms for SciPy, including IO, morphology, filtering,
warping, color manipulation, object detection, etc.
Please refer to the online documentation at
http://scikits-image.org/
"""
DISTNAME = 'skimage'
DESCRIPTION = ... | Python | 0 |
738af339a921a6ceca8c2243f06e026d0b0349c9 | Change author info. | setup.py | setup.py | from setuptools import setup, find_packages
version = '1.5'
setup(name='jarn.viewdoc',
version=version,
description='Preview Python package documentation',
long_description=open('README.txt').read() + '\n' +
open('CHANGES.txt').read(),
classifiers=[
'Developmen... | from setuptools import setup, find_packages
version = '1.5'
setup(name='jarn.viewdoc',
version=version,
description='Preview Python package documentation',
long_description=open('README.txt').read() + '\n' +
open('CHANGES.txt').read(),
classifiers=[
'Developmen... | Python | 0 |
18bc6f7bb71bc454ec69877058f647c9126334c4 | Bump to version 0.17.0 | setup.py | setup.py | try:
from setuptools import setup, find_packages
except ImportError:
from distutils.core import setup, find_packages
with open('requirements.txt') as file:
requirements = file.read().splitlines()
config = {
'name': 'prometheus-api',
'description': 'RESTful API for prometheus, a global asset allocation tool',
... | try:
from setuptools import setup, find_packages
except ImportError:
from distutils.core import setup, find_packages
with open('requirements.txt') as file:
requirements = file.read().splitlines()
config = {
'name': 'prometheus-api',
'description': 'RESTful API for prometheus, a global asset allocation tool',
... | Python | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.