commit
stringlengths
40
40
subject
stringlengths
4
1.73k
repos
stringlengths
5
127k
old_file
stringlengths
2
751
new_file
stringlengths
2
751
new_contents
stringlengths
1
8.98k
old_contents
stringlengths
0
6.59k
license
stringclasses
13 values
lang
stringclasses
23 values
08be74a30805f3afb86cafc815955288ae96f7ea
fix the bug
jeremykid/FunAlgorithm,jeremykid/FunAlgorithm,jeremykid/FunAlgorithm,jeremykid/FunAlgorithm
python_practice/graph/undirectedGraph.py
python_practice/graph/undirectedGraph.py
import math class undirectedGraph(object): def __init__(self, degrees): self.degrees = degrees self.adjacent_matrix = [] for i in range(degrees): self.adjacent_matrix.append([0]*degrees) def __str__(self): output = "" for row in self.adjacent_matrix: for item in row: output += "|"+str(item) ...
import math class undirectedGraph(object): def __init__(self, degrees): self.degrees = degrees self.adjacent_matrix = [] for i in range(degrees): self.adjacent_matrix.append([0]*degrees) def __str__(self): output = "" for row in self.adjacent_matrix: for item in row: output += "|"+str(item) ...
mit
Python
38ed21b8a2438f9dedd5f61d74d6117717228510
Bump DSTK version number
jotterbach/dstk
DSTK/__init__.py
DSTK/__init__.py
__version__ = '0.0.2' __all__ = ['GAM', 'Distinctor', 'AutoEncoder', 'BoostedFeatureSelectors', 'utils']
__version__ = '0.0.1' __all__ = ['GAM', 'Distinctor', 'AutoEncoder', 'BoostedFeatureSelectors', 'utils']
mit
Python
94ce77ad973abe63476e014fa61f5699706fb88b
use text file for writing bvecs
StongeEtienne/dipy,mdesco/dipy,jyeatman/dipy,oesteban/dipy,villalonreina/dipy,demianw/dipy,oesteban/dipy,demianw/dipy,maurozucchelli/dipy,matthieudumont/dipy,FrancoisRheaultUS/dipy,beni55/dipy,beni55/dipy,JohnGriffiths/dipy,mdesco/dipy,samuelstjean/dipy,nilgoyyou/dipy,nilgoyyou/dipy,samuelstjean/dipy,FrancoisRheaultUS/...
dipy/io/tests/test_io_gradients.py
dipy/io/tests/test_io_gradients.py
import os.path as osp import tempfile import numpy as np import numpy.testing as npt from nose.tools import assert_raises from dipy.data import get_data from dipy.io.gradients import read_bvals_bvecs from dipy.core.gradients import gradient_table def test_read_bvals_bvecs(): fimg, fbvals, fbvecs = get_data('smal...
import os.path as osp import tempfile import numpy as np import numpy.testing as npt from nose.tools import assert_raises from dipy.data import get_data from dipy.io.gradients import read_bvals_bvecs from dipy.core.gradients import gradient_table def test_read_bvals_bvecs(): fimg, fbvals, fbvecs = get_data('smal...
bsd-3-clause
Python
8762e5e9eb97a9213c423fd7c36d1096614b9837
Drop dead test
Yubico/yubikey-manager,Yubico/yubikey-manager
test/on_yubikey/test_cli_misc.py
test/on_yubikey/test_cli_misc.py
import unittest from .util import (DestructiveYubikeyTestCase, is_fips, ykman_cli) class TestYkmanInfo(DestructiveYubikeyTestCase): def test_ykman_info(self): info = ykman_cli('info') self.assertIn('Device type:', info) self.assertIn('Serial number:', info) self.assertIn('Firmwar...
import unittest from .util import (DestructiveYubikeyTestCase, is_fips, ykman_cli) class TestYkmanInfo(DestructiveYubikeyTestCase): def test_ykman_info(self): info = ykman_cli('info') self.assertIn('Device type:', info) self.assertIn('Serial number:', info) self.assertIn('Firmwar...
bsd-2-clause
Python
3201c461cc86b2ce79f78e47a19d0489d50a0b08
Improve setup.py
ashishb/adb-enhanced
adb-enhanced/setup.py
adb-enhanced/setup.py
from setuptools import setup, find_packages import sys, os version = '1.1' setup(name='adb-enhanced', version=version, description="An ADB wrapper for Android developers", long_description="""\ An ADB wrapper for Android developers for testing. See Readme for more details - ...
from setuptools import setup, find_packages import sys, os version = '1.1' setup(name='adb-enhanced', version=version, description="An ADB wrapper for Android developers", long_description="""\ An ADB wrapper for Android developers for testing. See Readme for more details - ...
apache-2.0
Python
c8478e40bdb996d5e0a1f01ae0ae55e6926f318d
Remove short call timeout from func test
openstack/nova,openstack/nova,openstack/nova,mahak/nova,mahak/nova,mahak/nova
nova/tests/functional/regressions/test_bug_1909120.py
nova/tests/functional/regressions/test_bug_1909120.py
# Copyright 2020, Red Hat, Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law ...
# Copyright 2020, Red Hat, Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law ...
apache-2.0
Python
d09517af26a458af51e23a0f892798eca24db776
Fix test
zwadar/pyqode.core,pyQode/pyqode.core,pyQode/pyqode.core
test/test_backend/test_server.py
test/test_backend/test_server.py
import os import sys from pyqode.core.backend import server from pyqode.core.frontend.client import JsonTcpClient from threading import Timer from subprocess import Popen process = None port = None def test_default_parser(): assert server.default_parser() is not None def run_client_process(): global pro...
import os import sys from pyqode.core.backend import server from pyqode.core.frontend.client import JsonTcpClient from threading import Timer from subprocess import Popen process = None port = None def test_default_parser(): assert server.default_parser() is not None def run_client_process(): global pro...
mit
Python
6a7fb1ff05202f60c7036db369926e3056372123
Simplify test of rsqrt function.
chainer/chainer,niboshi/chainer,hvy/chainer,hvy/chainer,anaruse/chainer,ktnyt/chainer,jnishi/chainer,pfnet/chainer,keisuke-umezawa/chainer,cupy/cupy,ysekky/chainer,kashif/chainer,keisuke-umezawa/chainer,ronekko/chainer,niboshi/chainer,wkentaro/chainer,cupy/cupy,kiyukuta/chainer,okuta/chainer,delta2323/chainer,hvy/chain...
tests/chainer_tests/functions_tests/math_tests/test_sqrt.py
tests/chainer_tests/functions_tests/math_tests/test_sqrt.py
import unittest import numpy import chainer.functions as F from chainer import testing # # sqrt def make_data(dtype, shape): x = numpy.random.uniform(0.1, 5, shape).astype(dtype) gy = numpy.random.uniform(-1, 1, shape).astype(dtype) return x, gy @testing.math_function_test(F.Sqrt(), make_data=make_da...
import unittest import numpy import chainer.functions as F from chainer import testing def make_data(dtype, shape): x = numpy.random.uniform(0.1, 5, shape).astype(dtype) gy = numpy.random.uniform(-1, 1, shape).astype(dtype) return x, gy # # sqrt @testing.math_function_test(F.Sqrt(), make_data=make_da...
mit
Python
3c94bd63563d02854e504b2b3569eb770ae4f6f8
use more friendly output for US sensors
Ecam-Eurobot-2017/main,Ecam-Eurobot-2017/main,Ecam-Eurobot-2017/main
code/raspberrypi/range_sensors.py
code/raspberrypi/range_sensors.py
from i2c import I2C from enum import IntEnum class Command(IntEnum): MeasureOne = 1 MeasureAll = 2 Count = 3 class RangeSensor(I2C): """ This class is an abstraction around the I2C communication with the range-sensor module. Details of the "protocol" used: The Raspberry Pi sends a ...
from i2c import I2C from enum import IntEnum class Command(IntEnum): MeasureOne = 1 MeasureAll = 2 Count = 3 class RangeSensor(I2C): """ This class is an abstraction around the I2C communication with the range-sensor module. Details of the "protocol" used: The Raspberry Pi sends a ...
mit
Python
f7cf66867bff75f5b53b6d0a2919a67e6e22242f
remove test too
commaai/openpilot,commaai/openpilot,commaai/openpilot,commaai/openpilot,commaai/openpilot,commaai/openpilot
selfdrive/locationd/test/test_calibrationd.py
selfdrive/locationd/test/test_calibrationd.py
#!/usr/bin/env python3 import random import unittest import cereal.messaging as messaging from common.params import Params from selfdrive.locationd.calibrationd import Calibrator class TestCalibrationd(unittest.TestCase): def test_read_saved_params(self): msg = messaging.new_message('liveCalibration') msg...
#!/usr/bin/env python3 import json import random import unittest import cereal.messaging as messaging from common.params import Params from selfdrive.locationd.calibrationd import Calibrator class TestCalibrationd(unittest.TestCase): def test_read_saved_params_json(self): r = [random.random() for _ in range(3...
mit
Python
828f8fbae2f1960bc2a764394db1a0320bf33705
Add recursive flag
Encrylize/EasyEuler
EasyEuler/cli.py
EasyEuler/cli.py
import sys import os import click from .utils import write_to_file, get_problem, get_problem_id, verify_solution from .types import ProblemType commands = click.Group() @commands.command() @click.option('--path', '-p', type=click.Path()) @click.option('--overwrite', '-o', is_flag=True) @click.argument('problem', ...
import sys import os import click from .utils import write_to_file, get_problem, get_problem_id, verify_solution from .types import ProblemType commands = click.Group() @commands.command() @click.option('--path', '-p', type=click.Path()) @click.option('--overwrite', '-o', is_flag=True) @click.argument('problem', ...
mit
Python
0aa97796cf61499ec425e2092ca0086c501938ca
Make the widget warning easier to catch by specifying the module.
ipython/ipython,ipython/ipython
IPython/html/widgets/__init__.py
IPython/html/widgets/__init__.py
from .widget import Widget, DOMWidget, CallbackDispatcher, register from .widget_bool import Checkbox, ToggleButton from .widget_button import Button from .widget_box import Box, Popup, FlexBox, HBox, VBox from .widget_float import FloatText, BoundedFloatText, FloatSlider, FloatProgress, FloatRangeSlider from .widget_...
from .widget import Widget, DOMWidget, CallbackDispatcher, register from .widget_bool import Checkbox, ToggleButton from .widget_button import Button from .widget_box import Box, Popup, FlexBox, HBox, VBox from .widget_float import FloatText, BoundedFloatText, FloatSlider, FloatProgress, FloatRangeSlider from .widget_...
bsd-3-clause
Python
75c9f644a72b4c2937409c4b0bbf28a917f4f0dd
Use np.round to get more accurate float images
starcalibre/microscopium,jni/microscopium,Don86/microscopium,Don86/microscopium,microscopium/microscopium,jni/microscopium,microscopium/microscopium
husc/io.py
husc/io.py
import os import numpy as np import Image def imwrite(ar, fn, bitdepth=None): """Write a np.ndarray 2D volume to a .png or .tif image Parameters ---------- ar : numpy ndarray, shape (M, N) The volume to be written to disk. fn : string The file name to which to write the volume. ...
import os import numpy as np import Image def imwrite(ar, fn, bitdepth=None): """Write a np.ndarray 2D volume to a .png or .tif image Parameters ---------- ar : numpy ndarray, shape (M, N) The volume to be written to disk. fn : string The file name to which to write the volume. ...
bsd-3-clause
Python
b908f62ecc868618b49433db378e7986bdb3d271
Remove whitespace https://www.python.org/dev/peps/pep-0008/#whitespace-in-expressions-and-statements
plotly/dash,plotly/dash,plotly/dash,plotly/dash,plotly/dash
packages/dash-core-components/setup.py
packages/dash-core-components/setup.py
from setuptools import setup exec(open('dash_core_components/version.py').read()) setup( name='dash_core_components', version=__version__, author='Chris Parmer', author_email='chris@plot.ly', packages=['dash_core_components'], include_package_data=True, license='MIT', description='Dash...
from setuptools import setup exec (open('dash_core_components/version.py').read()) setup( name='dash_core_components', version=__version__, author='Chris Parmer', author_email='chris@plot.ly', packages=['dash_core_components'], include_package_data=True, license='MIT', description='Das...
mit
Python
cc50a1ed2c032361166639642e8ab977bd7c8a5e
use zip64
dimagi/commcare-hq,qedsoftware/commcare-hq,qedsoftware/commcare-hq,qedsoftware/commcare-hq,dimagi/commcare-hq,qedsoftware/commcare-hq,dimagi/commcare-hq,qedsoftware/commcare-hq,dimagi/commcare-hq,dimagi/commcare-hq
corehq/blobs/zipdb.py
corehq/blobs/zipdb.py
from __future__ import absolute_import from os.path import commonprefix, join, sep import zipfile from corehq.blobs import DEFAULT_BUCKET from corehq.blobs.exceptions import BadName from corehq.blobs.interface import AbstractBlobDB, SAFENAME class ZipBlobDB(AbstractBlobDB): """Blobs stored in zip file. Used for ...
from __future__ import absolute_import from os.path import commonprefix, join, sep import zipfile from corehq.blobs import DEFAULT_BUCKET from corehq.blobs.exceptions import BadName from corehq.blobs.interface import AbstractBlobDB, SAFENAME class ZipBlobDB(AbstractBlobDB): """Blobs stored in zip file. Used for ...
bsd-3-clause
Python
c30fff32d5249d603b9d21072e48950538941b5b
remove AuthenticationHelper
hackedd/gw2api
gw2api/v2/account.py
gw2api/v2/account.py
from .endpoint import EndpointBase, Endpoint class AuthenticatedMixin(object): token = None @classmethod def set_token(cls, token): cls.token = token def _get(self, path, **kwargs): if self.token: headers = kwargs.setdefault("headers", {}) headers.setdefault("...
import urllib import warnings from .endpoint import EndpointBase, Endpoint import gw2api class AuthenticationHelper(object): authorization_url = "https://account.guildwars2.com/oauth2/authorization" token_url = "https://account.guildwars2.com/oauth2/token" def __init__(self, client_id, client_secret, r...
mit
Python
c425046d662a8554a00267184216d0f883dbc3cf
Update use_four.py
weepingdog/ArcpyScriptToolkits
Four/use_four.py
Four/use_four.py
import os import math import string dx=-403.275 dy=178.190 rot_s=-10.300182 k=1.00009495477874 def fourptrans(x0in,y0in,dxin,dyin,rotin,kin): rot_rad=rotin/3600./180.*math.pi sinr=math.sin(rot_rad) cosr=math.cos(rot_rad) x=dxin+kin*x0in*cosr-kin*y0in*sinr y=dyin+kin*x0in*sinr+kin*y0in*cosr retur...
import os import math import string dx=-403.275 dy=178.190 rot_s=-10.300182 k=1.00009495477874 def fourptrans(x0in,y0in,dxin,dyin,rotin,kin): rot_rad=rotin/3600./180.*math.pi sinr=math.sin(rot_rad) cosr=math.cos(rot_rad) x=dxin+kin*x0in*cosr-kin*y0in*sinr y=dyin+kin*x0in*sinr+kin*y0in*cosr retur...
apache-2.0
Python
63bf9c267ff891f1a2bd1f472a5d77f8df1e0209
Split IAM template tests with paramtrize
gogoair/foremast,gogoair/foremast
tests/iam/test_iam_valid_json.py
tests/iam/test_iam_valid_json.py
"""Test IAM Policy templates are valid JSON.""" import json import jinja2 import pytest from foremast.iam.construct_policy import render_policy_template from foremast.utils.templates import LOCAL_TEMPLATES def iam_templates(): """Generate list of IAM templates.""" jinjaenv = jinja2.Environment(loader=jinja2...
"""Test IAM Policy templates are valid JSON.""" import jinja2 from foremast.iam.construct_policy import render_policy_template from foremast.utils.templates import LOCAL_TEMPLATES def iam_templates(): """Generate list of IAM templates.""" jinjaenv = jinja2.Environment(loader=jinja2.FileSystemLoader([LOCAL_TE...
apache-2.0
Python
e4968d033d344016b7b101d04572f01bfe9e0b26
make flake8 happy
viper-framework/har2tree,viper-framework/har2tree,viper-framework/har2tree
har2tree/__init__.py
har2tree/__init__.py
from .parser import CrawledTree # noqa from .nodes import HostNode, URLNode, HarTreeNode # noqa from .har2tree import Har2Tree, HarFile, Har2TreeLogAdapter # noqa from .helper import Har2TreeError # noqa import logging logging.getLogger(__name__).addHandler(logging.NullHandler())
from .parser import CrawledTree from .nodes import HostNode, URLNode, HarTreeNode from .har2tree import Har2Tree, HarFile, Har2TreeLogAdapter from .helper import Har2TreeError import logging logging.getLogger(__name__).addHandler(logging.NullHandler())
bsd-3-clause
Python
57774a4f6f9bead4f58b2b82cc6ae0cdd2309ebd
remove invalid options
minamorl/staccato
staccato/twitter.py
staccato/twitter.py
from requests_oauthlib import OAuth1Session from json import JSONDecoder from staccato import utils class Twitter(): API = "https://api.twitter.com/1.1/" def __init__(self, session=None): self.session = session def auth(self, consumer_key, consumer_secret, access_token_key, access_token_secret):...
from requests_oauthlib import OAuth1Session from json import JSONDecoder from staccato import utils class Twitter(): API = "https://api.twitter.com/1.1/" def __init__(self, conf, session=None): self.conf = conf self.session = session def auth(self, consumer_key, consumer_secret, access_t...
mit
Python
affd1a18915a81379133183617e91fe6adb26dfd
Update k-th-symbol-in-grammar.py
tudennis/LeetCode---kamyu104-11-24-2015,kamyu104/LeetCode,tudennis/LeetCode---kamyu104-11-24-2015,kamyu104/LeetCode,kamyu104/LeetCode,tudennis/LeetCode---kamyu104-11-24-2015,tudennis/LeetCode---kamyu104-11-24-2015,kamyu104/LeetCode,kamyu104/LeetCode,tudennis/LeetCode---kamyu104-11-24-2015
Python/k-th-symbol-in-grammar.py
Python/k-th-symbol-in-grammar.py
# Time: O(logn) = O(1) because n is 32-bit integer # Space: O(1) # On the first row, we write a 0. # Now in every subsequent row, # we look at the previous row and replace each occurrence of 0 with 01, # and each occurrence of 1 with 10. # # Given row N and index K, return the K-th indexed symbol in row N. # (The val...
# Time: O(logn) # Space: O(1) # On the first row, we write a 0. # Now in every subsequent row, # we look at the previous row and replace each occurrence of 0 with 01, # and each occurrence of 1 with 10. # # Given row N and index K, return the K-th indexed symbol in row N. # (The values of K are 1-indexed.) (1 indexed...
mit
Python
77fbb9547905fdecce23b80d1e33d847d3006345
Make pybb cmake_build check to see if build directory exists
wombatant/nostalgia,wombatant/nostalgia,wombatant/nostalgia
deps/buildcore/scripts/pybb.py
deps/buildcore/scripts/pybb.py
#! /usr/bin/env python3 # # Copyright 2016 - 2021 gary@drinkingtea.net # # 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/. # # "Python Busy Box" - adds cross platfor...
#! /usr/bin/env python3 # # Copyright 2016 - 2021 gary@drinkingtea.net # # 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/. # # "Python Busy Box" - adds cross platfor...
mpl-2.0
Python
14fd9e86e868f7c0717723e2c06aa0cac8f613f9
Fix spelling in a doc string
dragorosson/heat,openstack/heat,dragorosson/heat,jasondunsmore/heat,maestro-hybrid-cloud/heat,rdo-management/heat,jasondunsmore/heat,pshchelo/heat,miguelgrinberg/heat,noironetworks/heat,srznew/heat,miguelgrinberg/heat,takeshineshiro/heat,maestro-hybrid-cloud/heat,openstack/heat,cryptickp/heat,rdo-management/heat,srznew...
heat/common/crypt.py
heat/common/crypt.py
# # 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 # ...
# # 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 # ...
apache-2.0
Python
b40ca78355da8b555e363febed72d5bacf132d5d
bump taglib-sharp to 2.0.3.7
lamalex/Banshee,ixfalia/banshee,directhex/banshee-hacks,GNOME/banshee,babycaseny/banshee,Carbenium/banshee,allquixotic/banshee-gst-sharp-work,arfbtwn/banshee,lamalex/Banshee,GNOME/banshee,petejohanson/banshee,arfbtwn/banshee,petejohanson/banshee,GNOME/banshee,petejohanson/banshee,ixfalia/banshee,Carbenium/banshee,arfbt...
build/bundle/packages/taglib-sharp.py
build/bundle/packages/taglib-sharp.py
Package ('taglib-sharp', '2.0.3.7', sources = [ 'http://download.banshee-project.org/%{name}/%{version}/%{name}-%{version}.tar.gz' ], configure_flags = [ '--disable-docs' ] )
Package ('taglib-sharp', '2.0.3.6', sources = [ 'http://download.banshee-project.org/%{name}/%{version}/%{name}-%{version}.tar.gz' ], configure_flags = [ '--disable-docs' ] )
mit
Python
ce26c08cc0b6d2907baddb694a42ef99fee05f52
return more than just visible
gleitz/spheremusic,gleitz/spheremusic,gleitz/spheremusic
satellites.py
satellites.py
# Symphony of the Satellites # https://hackpad.com/Symphony-of-the-Satellites-c0aGX4vfmTN import math import requests import ephem import datetime from math import degrees import json from calendar import timegm def chunks(l, n): """ Yield successive n-sized chunks from l""" for i in xrange(0, len(l), n): ...
# Symphony of the Satellites # https://hackpad.com/Symphony-of-the-Satellites-c0aGX4vfmTN import math import requests import ephem import datetime from math import degrees import json from calendar import timegm def chunks(l, n): """ Yield successive n-sized chunks from l""" for i in xrange(0, len(l), n): ...
mit
Python
f178e385bb2ec305157064c1612ffa9267206b77
add unit tests of DNS and Traceroute
rpanah/centinel,rpanah/centinel,lianke123321/centinel,rpanah/centinel,iclab/centinel,iclab/centinel,lianke123321/centinel,iclab/centinel,lianke123321/centinel,Ashish1805/centinel,JASONews/centinel
centinel/unit_test/test_traceroute.py
centinel/unit_test/test_traceroute.py
__author__ = 'xinwenwang' import pytest from centinel.primitives import traceroute class TestTraceRoute: #1. test good case def test_traceroute_valid_domain(self): domain = 'www.google.com' result = traceroute.traceroute(domain) #.1 test traceroute results is not none assert r...
__author__ = 'xinwenwang' import pytest from ..primitives import traceroute class TestTraceRoute: #1. test good case def test_traceroute_valid_domain(self): domain = 'www.google.com' result = traceroute.traceroute(domain) #.1 test traceroute results is not none assert result i...
mit
Python
c6d6bcd85c9ddf152778d92081cc7ad912d3373f
Test arguments
danielfrg/datasciencebox,danielfrg/datasciencebox,danielfrg/datasciencebox,danielfrg/datasciencebox
datasciencebox/tests/core/test_instance.py
datasciencebox/tests/core/test_instance.py
import pytest from datasciencebox.core.settings import Settings from datasciencebox.core.cloud.instance import Instance, BareInstance, AWSInstance, GCPInstance default_username = 'default_username' default_keypair = 'default_keypair' settings = Settings() settings['USERNAME'] = default_username settings['KEYPAIR'] =...
import pytest from datasciencebox.core.settings import Settings from datasciencebox.core.cloud.instance import Instance, BareInstance, AWSInstance, GCPInstance settings = Settings() def test_new_bare(): instance = Instance.new(settings=settings) assert isinstance(instance, BareInstance) instance = Inst...
apache-2.0
Python
71e65eb2aeda3cd4b27cbb2f945954ada10bb516
fix variable name of eval_imagenet
pfnet/chainercv,yuyu2172/chainercv,yuyu2172/chainercv,chainer/chainercv,chainer/chainercv
examples/classification/eval_imagenet.py
examples/classification/eval_imagenet.py
import argparse import sys import time import numpy as np import chainer import chainer.functions as F from chainer import iterators from chainercv.datasets import directory_parsing_label_names from chainercv.datasets import DirectoryParsingLabelDataset from chainercv.links import FeaturePredictor from chainercv.lin...
import argparse import sys import time import numpy as np import chainer import chainer.functions as F from chainer import iterators from chainercv.datasets import directory_parsing_label_names from chainercv.datasets import DirectoryParsingLabelDataset from chainercv.links import FeaturePredictor from chainercv.lin...
mit
Python
f570a92057cb5e7254a5b416df23feb968f8af4e
add pretrained_model ooption to eval_imagenet
chainer/chainercv,yuyu2172/chainercv,chainer/chainercv,pfnet/chainercv,yuyu2172/chainercv
examples/classification/eval_imagenet.py
examples/classification/eval_imagenet.py
import argparse import random import numpy as np import chainer import chainer.links as L import chainer.functions as F from chainer import iterators from chainer import training from chainer.training import extensions from chainercv.datasets import ImageFolderDataset from chainercv.links import VGG16Layers from ch...
import argparse import random import numpy as np import chainer import chainer.links as L import chainer.functions as F from chainer import iterators from chainer import training from chainer.training import extensions from chainercv.datasets import ImageFolderDataset from chainercv.links import VGG16Layers from ch...
mit
Python
cf0d127d328fbfc379f02ebc2b31606c736a3aa1
check name change
sq8kfh/kfhlog,sq8kfh/kfhlog
kfhlog/views/check.py
kfhlog/views/check.py
from pyramid.httpexceptions import HTTPNotFound from pyramid.view import view_config from ..models import Qso, Band, Mode, Profile, dbtools def _check(dbsession, call, profile=None): call = dbtools.formatters.call_formatter(call) tmp = None req_type = None addrowlink = False name = '' if prof...
from pyramid.httpexceptions import HTTPNotFound from pyramid.view import view_config from ..models import Qso, Band, Mode, Profile, dbtools def _check(dbsession, call, profile=None): call = dbtools.formatters.call_formatter(call) tmp = None req_type = None addrowlink = False name = '' if prof...
agpl-3.0
Python
2471ac5cfe898653e5d274d3e02d0006c768b3fe
Fix style
fnielsen/cvrminer,fnielsen/cvrminer,fnielsen/cvrminer
cvrminer/app/views.py
cvrminer/app/views.py
"""Views for cvrminer app.""" from flask import render_template from . import app @app.route("/") def index(): """Return index page of for app.""" return render_template('base.html') @app.route("/smiley/") def smiley(): """Return smiley page of for app.""" table = app.smiley.db.tables.smiley.head(...
"""Views for cvrminer app.""" from flask import render_template from . import app @app.route("/") def index(): """Return index page of for app.""" return render_template('base.html') @app.route("/smiley/") def smiley(): """Return smiley page of for app.""" table = app.smiley.db.tables.smiley.head(...
apache-2.0
Python
79158c269669fcbe506ae83e803ef58ba1b40913
Tweak olfactory input stimulus to produce more interesting output.
cerrno/neurokernel
examples/olfaction/data/gen_olf_input.py
examples/olfaction/data/gen_olf_input.py
#!/usr/bin/env python """ Generate sample olfactory model stimulus. """ import numpy as np import h5py osn_num = 1375 dt = 1e-4 # time step Ot = 2000 # number of data point during reset period Rt = 1000 # number of data point during odor delivery period Nt = 4*Ot + 3*Rt # number of data points in time t = np.arang...
#!/usr/bin/env python """ Generate sample olfactory model stimulus. """ import numpy as np import h5py osn_num = 1375 dt = 1e-4 # time step Ot = 2000 # number of data point during reset period Rt = 1000 # number of data point during odor delivery period Nt = 4*Ot + 3*Rt # number of data points in time t = np.arang...
bsd-3-clause
Python
0ff797d60c2ddc93579e7c486e8ebb77593014d8
Add another check for a failed googleapiclient upgrade.
googleapis/google-api-python-client,googleapis/google-api-python-client
apiclient/__init__.py
apiclient/__init__.py
"""Retain apiclient as an alias for googleapiclient.""" import googleapiclient try: import oauth2client except ImportError: raise RuntimeError( 'Previous version of google-api-python-client detected; due to a ' 'packaging issue, we cannot perform an in-place upgrade. To repair, ' 'remove and rei...
"""Retain apiclient as an alias for googleapiclient.""" import googleapiclient from googleapiclient import channel from googleapiclient import discovery from googleapiclient import errors from googleapiclient import http from googleapiclient import mimeparse from googleapiclient import model from googleapiclient impo...
apache-2.0
Python
4a89eebc30eac581c504fd4c250f02dec66df48d
change script path for packaging change
rcbops/opencenter-agent,rcbops/opencenter-agent
roushagent/plugins/output/plugin_chef.py
roushagent/plugins/output/plugin_chef.py
#!/usr/bin/env python import sys from bashscriptrunner import BashScriptRunner name = "chef" script = BashScriptRunner(script_path=["roushagent/plugins/lib/%s" % name]) def setup(config): LOG.debug('Doing setup in test.py') register_action('install_chef', install_chef) register_action('run_chef', run_ch...
#!/usr/bin/env python import sys from bashscriptrunner import BashScriptRunner name = "chef" script = BashScriptRunner(script_path=["plugins/lib/%s" % name]) def setup(config): LOG.debug('Doing setup in test.py') register_action('install_chef', install_chef) register_action('run_chef', run_chef) def i...
apache-2.0
Python
267a2784b7ff948ad15336077a36262b393c860b
Add __repr__
thombashi/DataProperty
dataproperty/_align.py
dataproperty/_align.py
# encoding: utf-8 ''' @author: Tsuyoshi Hombashi ''' class Align: class __AlignData(object): @property def align_code(self): return self.__align_code @property def align_string(self): return self.__align_string def __init__(self, code, string): ...
# encoding: utf-8 ''' @author: Tsuyoshi Hombashi ''' class Align: class __AlignData: @property def align_code(self): return self.__align_code @property def align_string(self): return self.__align_string def __init__(self, code, string): ...
mit
Python
383fe196da23e01339e017a39d375313900468c8
Add working configurable prefix
havokoc/MyManJeeves
Jeeves/jeeves.py
Jeeves/jeeves.py
import discord import asyncio import random import configparser import json def RunBot(config_file): config = configparser.ConfigParser() config.read(config_file) client = discord.Client() @client.event async def on_ready(): print('------') print('Logged in as %s (%s)' % (client.u...
import discord import asyncio import random import configparser import json def RunBot(config_file): config = configparser.ConfigParser() config.read(config_file) client = discord.Client() @client.event async def on_ready(): print('------') print('Logged in as %s (%s)' % (client.u...
mit
Python
2995f15c1bcb1bc85d83c7407be199b27882a215
Update for fixing odd Japanese
mdmintz/SeleniumBase,seleniumbase/SeleniumBase,seleniumbase/SeleniumBase,mdmintz/SeleniumBase,mdmintz/SeleniumBase,seleniumbase/SeleniumBase,seleniumbase/SeleniumBase,mdmintz/SeleniumBase
examples/translations/japanese_test_1.py
examples/translations/japanese_test_1.py
# Japanese Language Test - Python 3 Only! from seleniumbase.translate.japanese import セレニウムテストケース # noqa class テストクラス(セレニウムテストケース): # noqa def test_例1(self): self.URLを開く("https://ja.wikipedia.org/wiki/") self.テキストを確認する("ウィキペディア") self.要素を確認する('[title="メインページに移動する"]') self.テキストを更...
# Japanese Language Test - Python 3 Only! from seleniumbase.translate.japanese import セレンテストケース # noqa class テストクラス(セレンテストケース): # noqa def test_例1(self): self.URLを開く("https://ja.wikipedia.org/wiki/") self.テキストを確認する("ウィキペディア") self.要素を確認する('[title="メインページに移動する"]') self.テキストを更新("#...
mit
Python
7f8013e7fb8865f9f3a1e541bb00ce8c54048cb2
delete some marks
LanceVan/SciCycle
Interpolation.py
Interpolation.py
import numpy as np class Interpolation: def __init__(self, x, y): if not isinstance(x, np.ndarray) or not isinstance(y, np.ndarray): raise TypeError("Type of Parameter should be numpy.ndarray") sizex = x.shape sizey = y.shape if len(sizex) != 1 or len(sizey) !=...
import numpy as np class Interpolation: def __init__(self, x, y): if not isinstance(x, np.ndarray) or not isinstance(y, np.ndarray): print(isinstance(x, np.ndarray)) raise TypeError("Type of Parameter should be numpy.ndarray") sizex = x.shape sizey = y.shap...
mit
Python
12bf3032aeb87bfb3b64607cae1e7f6d29da440c
Update version, file: setup.py
shlomiLan/tvsort_sl
setup.py
setup.py
from setuptools import setup setup( name='tvsort_sl', packages=['tvsort_sl'], version='1.1.24', description='Sort movies and TV-shows files', long_description=open('README.md').read(), long_description_content_type='text/markdown', author='Shlomi Lanton', author_email='shlomilanton@gma...
from setuptools import setup setup( name='tvsort_sl', packages=['tvsort_sl'], version='1.1.23', description='Sort movies and TV-shows files', long_description=open('README.md').read(), long_description_content_type='text/markdown', author='Shlomi Lanton', author_email='shlomilanton@gma...
mit
Python
decb9212a5e0adae31d8e7562fa8258c222aae23
Add a logger for dbmigrator that writes to stdout
karenc/db-migrator
dbmigrator/__init__.py
dbmigrator/__init__.py
# -*- coding: utf-8 -*- import logging import sys logger = logging.getLogger('dbmigrator') logger.setLevel(logging.INFO) handler = logging.StreamHandler(sys.stdout) handler.setFormatter(logging.Formatter('[%(levelname)s] %(name)s (%(filename)s) - %(message)s')) logger.addHandler(handler)
agpl-3.0
Python
ab2f330f5e6a5fa58670fde6bed24c4e66d15f3c
add helper methods to fs hauler/receiver needed to handle multiple disks
xemul/p.haul,aburluka/p.haul,aburluka/p.haul,aburluka/p.haul,arthurlockman/p.haul,jne100/p.haul,arthurlockman/p.haul,aburluka/p.haul,jne100/p.haul,aburluka/p.haul,arthurlockman/p.haul,arthurlockman/p.haul,xemul/p.haul,xemul/p.haul,jne100/p.haul,xemul/p.haul,xemul/p.haul,arthurlockman/p.haul,jne100/p.haul,jne100/p.haul
phaul/fs_haul_ploop.py
phaul/fs_haul_ploop.py
# # ploop disk hauler # import os import logging import threading import libploop DDXML_FILENAME = "DiskDescriptor.xml" class p_haul_fs: def __init__(self, ddxml_path, fs_sk): """Initialize ploop disk hauler Initialize ploop disk hauler with specified path to DiskDescriptor.xml file and socket. """ lo...
# # ploop disk hauler # import logging import threading import libploop class p_haul_fs: def __init__(self, ddxml_path, fs_sk): """Initialize ploop disk hauler Initialize ploop disk hauler with specified path to DiskDescriptor.xml file and socket. """ logging.info("Initilized ploop hauler (%s)", ddxml_p...
lgpl-2.1
Python
b7d80c9a1e820f2b3d2df918d7943781ec9b8635
Fix for python setup.
xintron/pycri-urltitle
setup.py
setup.py
""" pycri-urltitle ------------- Plugin for resolving <title>-elements from URLs. """ from setuptools import setup setup( name='pycri-urltitle', version='0.1.0', url='https://github.com/xintron/pycri-urltitle', license='BSD', author='Marcus Carlsson', author_email='carlsson.marcus@gmail.com',...
""" pycri-urltitle ------------- Plugin for resolving <title>-elements from URLs. """ from setuptools import setup setup( name='pycri-urltitle', version='0.1.0', url='https://github.com/xintron/pycri-urltitle', license='BSD', author='Marcus Carlsson', author_email='carlsson.marcus@gmail.com',...
bsd-3-clause
Python
f53dec873d4d8d01ef8b880ecd8295593a75cd61
Support enum in python 2
VirusTotal/vt-graph-api,VirusTotal/vt-graph-api
setup.py
setup.py
"""Setup for vt_graph_api module.""" import re import sys import setuptools with open("./vt_graph_api/version.py") as f: version = ( re.search(r"__version__ = \'([0-9]{1,}.[0-9]{1,}.[0-9]{1,})\'", f.read()).groups()[0]) # check python version >2.7.x and >=3.2.x installable = True if sys.ver...
"""Setup for vt_graph_api module.""" import re import sys import setuptools with open("./vt_graph_api/version.py") as f: version = ( re.search(r"__version__ = \'([0-9]{1,}.[0-9]{1,}.[0-9]{1,})\'", f.read()).groups()[0]) # check python version >2.7.x and >=3.2.x installable = True if sys.ver...
apache-2.0
Python
c3f064e9665d3011f643ec3a02d305bc046a0834
Bump version.
mwchase/class-namespaces,mwchase/class-namespaces
setup.py
setup.py
"""A setuptools based setup module. See: https://packaging.python.org/en/latest/distributing.html https://github.com/pypa/sampleproject """ # Always prefer setuptools over distutils from setuptools import setup, find_packages # To use a consistent encoding from codecs import open from os import path here = path.abspa...
"""A setuptools based setup module. See: https://packaging.python.org/en/latest/distributing.html https://github.com/pypa/sampleproject """ # Always prefer setuptools over distutils from setuptools import setup, find_packages # To use a consistent encoding from codecs import open from os import path here = path.abspa...
mit
Python
aa09ad861f104f987928fe9f5107ccfe0e4473c3
add some extra info to barebones setup.py
ChrisTM/Flask-CacheBust
setup.py
setup.py
from setuptools import setup setup( name='Flask-CacheBust', version='1.0.0', description='Flask extension that cache-busts static files', packages=['flask_cache_bust'], license='MIT', url='https://github.com/ChrisTM/Flask-CacheBust', install_requires=[ 'Flask', ], )
from setuptools import setup setup( name='Flask-CacheBust', version='1.0.0', packages=['flask_cache_bust'], )
mit
Python
405e7f5a3272030b145497d81739228ec31eafe0
Fix data install
ProjetPP/PPP-QuestionParsing-Grammatical,ProjetPP/PPP-QuestionParsing-Grammatical
setup.py
setup.py
#!/usr/bin/env python3 from setuptools import setup, find_packages setup( name='ppp_questionparsing_grammatical', version='0.6.1', description='Natural language processing module for the PPP.', url='https://github.com/ProjetPP/PPP-QuestionParsing-Grammatical', author='Projet Pensées Profondes', ...
#!/usr/bin/env python3 from setuptools import setup, find_packages setup( name='ppp_questionparsing_grammatical', version='0.6', description='Natural language processing module for the PPP.', url='https://github.com/ProjetPP/PPP-QuestionParsing-Grammatical', author='Projet Pensées Profondes', ...
agpl-3.0
Python
5635a3fdea5b61448c18e9518c226e71c9242cd9
bump version
cloudnative/cruddy
setup.py
setup.py
#!/usr/bin/env python from setuptools import setup, find_packages requires = [ 'boto3', 'click', ] setup( name='cruddy', version='0.7.0', description='A CRUD wrapper class for Amazon DynamoDB', long_description=open('README.md').read(), author='Mitch Garnaat', author_email='mitch@clo...
#!/usr/bin/env python from setuptools import setup, find_packages requires = [ 'boto3', 'click', ] setup( name='cruddy', version='0.6.1', description='A CRUD wrapper class for Amazon DynamoDB', long_description=open('README.md').read(), author='Mitch Garnaat', author_email='mitch@clo...
apache-2.0
Python
27be636c9a11d1bff304e1729a168de8ef3952ce
Bump version
mattions/pyfaidx
setup.py
setup.py
from setuptools import setup setup( name='pyfaidx', provides='pyfaidx', version='0.1.7', author='Matthew Shirley', author_email='mdshw5@gmail.com', url='http://mattshirley.com', description='pyfaidx: efficient pythonic random ' 'access to fasta subsequences', license='MI...
from setuptools import setup setup( name='pyfaidx', provides='pyfaidx', version='0.1.6', author='Matthew Shirley', author_email='mdshw5@gmail.com', url='http://mattshirley.com', description='pyfaidx: efficient pythonic random ' 'access to fasta subsequences', license='MI...
bsd-3-clause
Python
ffbf1991de4924c0e2af60a4907a935339db59d1
increment version
learningequality/kolibri-exercise-perseus-plugin,learningequality/kolibri-exercise-perseus-plugin
setup.py
setup.py
#!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import absolute_import, print_function, unicode_literals import logging import sys from setuptools import setup def read_file(fname): """ Read file and decode in py2k """ if sys.version_info < (3,): return open(fname).read().decod...
#!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import absolute_import, print_function, unicode_literals import logging import sys from setuptools import setup def read_file(fname): """ Read file and decode in py2k """ if sys.version_info < (3,): return open(fname).read().decod...
mit
Python
181947ed282c449cda7133cb88d20ad6bdcf3465
bump version
Mego/Seriously
setup.py
setup.py
#!/usr/bin/env python3 """Seriously - a Python-based golfing language""" from setuptools import setup, find_packages need_stats = False try: import statistics except: need_stats = True setup( name='seriously', version='2.1.22', description='A Python-based golfing language', long_descriptio...
#!/usr/bin/env python3 """Seriously - a Python-based golfing language""" from setuptools import setup, find_packages need_stats = False try: import statistics except: need_stats = True setup( name='seriously', version='2.1.21', description='A Python-based golfing language', long_descriptio...
mit
Python
e15fb53c0fd63942cafd3a6f11418447df6b6800
Add smoketest for convering CoverageDataset to str.
dopplershift/siphon,dopplershift/siphon,Unidata/siphon
siphon/cdmr/tests/test_coveragedataset.py
siphon/cdmr/tests/test_coveragedataset.py
# Copyright (c) 2016 Unidata. # Distributed under the terms of the MIT License. # SPDX-License-Identifier: MIT import warnings from siphon.testing import get_recorder from siphon.cdmr.coveragedataset import CoverageDataset recorder = get_recorder(__file__) # Ignore warnings about CoverageDataset warnings.simplefilte...
# Copyright (c) 2016 Unidata. # Distributed under the terms of the MIT License. # SPDX-License-Identifier: MIT import warnings from siphon.testing import get_recorder from siphon.cdmr.coveragedataset import CoverageDataset recorder = get_recorder(__file__) # Ignore warnings about CoverageDataset warnings.simplefilte...
bsd-3-clause
Python
b82c0190d8f60283549ebe7fcad002576c3f3d70
fix setup.py metadata for 1.12.1
NahomAgidew/stripe-python,HashNuke/stripe-python,alexmic/stripe-python,stripe/stripe-python,uploadcare/stripe-python,koobs/stripe-python,Khan/stripe-python,woodb/stripe-python,zenmeso/stripe-python
setup.py
setup.py
import os import sys try: from setuptools import setup except ImportError: from distutils.core import setup try: from distutils.command.build_py import build_py_2to3 as build_py except ImportError: from distutils.command.build_py import build_py path, script = os.path.split(sys.argv[0]) os.chdir(os.p...
import os import sys try: from setuptools import setup except ImportError: from distutils.core import setup try: from distutils.command.build_py import build_py_2to3 as build_py except ImportError: from distutils.command.build_py import build_py path, script = os.path.split(sys.argv[0]) os.chdir(os.p...
mit
Python
f15026d5040b687914f60eae632848983844308b
Include static assets in the dist
urbanairship/pasttle,thekad/pasttle,urbanairship/pasttle,thekad/pasttle,thekad/pasttle,urbanairship/pasttle
setup.py
setup.py
#!/usr/bin/env python # # -*- mode:python; sh-basic-offset:4; indent-tabs-mode:nil; coding:utf-8 -*- # vim:set tabstop=4 softtabstop=4 expandtab shiftwidth=4 fileencoding=utf-8: # import os import pasttle import sys from setuptools import setup extra = {} if sys.version_info >= (3,): extra['use_2to3'] = True re...
#!/usr/bin/env python # # -*- mode:python; sh-basic-offset:4; indent-tabs-mode:nil; coding:utf-8 -*- # vim:set tabstop=4 softtabstop=4 expandtab shiftwidth=4 fileencoding=utf-8: # import os import pasttle import sys from setuptools import setup extra = {} if sys.version_info >= (3,): extra['use_2to3'] = True re...
mit
Python
3817d7390fddebd137c99865455f0ae145dbcf63
fix typo in verify_asymmetric_ec.py (#227)
googleapis/python-kms,googleapis/python-kms
samples/snippets/verify_asymmetric_ec.py
samples/snippets/verify_asymmetric_ec.py
# Copyright 2020 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, s...
# Copyright 2020 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, s...
apache-2.0
Python
75cc8e8bc4be03632e7309407d7b44e5646d4b27
Fix setup.py link to README.md
ismailof/mopidy-json-client
setup.py
setup.py
from __future__ import unicode_literals import re from setuptools import find_packages, setup def get_version(filename): with open(filename) as fh: metadata = dict(re.findall("__([a-z]+)__ = '([^']+)'", fh.read())) return metadata['version'] setup( name='Mopidy-JSON-Client', version=ge...
from __future__ import unicode_literals import re from setuptools import find_packages, setup def get_version(filename): with open(filename) as fh: metadata = dict(re.findall("__([a-z]+)__ = '([^']+)'", fh.read())) return metadata['version'] setup( name='Mopidy-JSON-Client', version=ge...
apache-2.0
Python
43223d67412c209074816bcee86ca53482d4be52
Add classifiers
nblock/feeds,Lukas0907/feeds,Lukas0907/feeds,nblock/feeds
setup.py
setup.py
from setuptools import find_packages, setup setup( name="feeds", version="2017.08.14", # Author details author="Florian Preinstorfer, Lukas Anzinger", author_email="florian@nblock.org, lukas@lukasanzinger.at", url="https://github.com/nblock/feeds", packages=find_packages(), include_pack...
from setuptools import find_packages, setup setup( name="feeds", version="2017.08.14", # Author details author="Florian Preinstorfer, Lukas Anzinger", author_email="florian@nblock.org, lukas@lukasanzinger.at", url="https://github.com/nblock/feeds", packages=find_packages(), include_pack...
agpl-3.0
Python
a5448576fba761a6eb6aca4edfb738bcdd80b375
Add classifiers to setup.py.
sumeet/artie
setup.py
setup.py
from setuptools import setup setup( name='artie', version='0.1', url='http://github.com/sumeet/artie', author='Sumeet Agarwal', author_email='sumeet.a@gmail.com', description='IRC utility robot framework for Python', packages=['artie',], scripts=['bin/artie-run.py',], install_requires=['twisted', 'pyyaml',], ...
from setuptools import setup setup( name='artie', version='0.1', url='http://github.com/sumeet/artie', author='Sumeet Agarwal', author_email='sumeet.a@gmail.com', description='IRC utility robot framework for Python', packages=['artie',], scripts=['bin/artie-run.py',], install_requires=['twisted', 'pyyaml',] )...
mit
Python
8df66e2af85b11d602c8b3d9486d8d5d30039330
Revise setup.py
CROSoftware/pyramid_object_dispatch
setup.py
setup.py
import os from setuptools import setup, find_packages here = os.path.abspath(os.path.dirname(__file__)) with open(os.path.join(here, 'README.txt')) as f: README = f.read() with open(os.path.join(here, 'CHANGES.txt')) as f: CHANGES = f.read() requires = [ 'pyramid', 'web.dispatch.object' ] instal...
import os from setuptools import setup, find_packages here = os.path.abspath(os.path.dirname(__file__)) with open(os.path.join(here, 'README.txt')) as f: README = f.read() with open(os.path.join(here, 'CHANGES.txt')) as f: CHANGES = f.read() requires = [ 'pyramid', 'web.dispatch.object' ] instal...
mit
Python
9dd654ae33c985fde224a8ddcaa383bcdbd845cc
Add touching __init__.py in the pipelines directory
djf604/chunky-pipes
setup.py
setup.py
import os from setuptools import setup, find_packages setup( name='Chunky', version='0.1.0', description='Pipeline design and distribution framework', author='Dominic Fitzgerald', author_email='dominicfitzgerald11@gmail.com', url='https://github.com/djf604/chunky', packages=find_packages(),...
import os from setuptools import setup, find_packages setup( name='Chunky', version='0.1.0', description='Pipeline design and distribution framework', author='Dominic Fitzgerald', author_email='dominicfitzgerald11@gmail.com', url='https://github.com/djf604/chunky', packages=find_packages(),...
mit
Python
979f37dfa1356650e8d8d4878f33ce78d386081c
upgrade ebullient to 0.1.5
EnigmaBridge/ebaws.py,EnigmaBridge/ebaws.py
setup.py
setup.py
import sys from setuptools import setup from setuptools import find_packages version = '0.0.2' # Please update tox.ini when modifying dependency version requirements install_requires = [ 'ebclient.py>=0.1.5', 'cmd2', 'pycrypto>=2.6', 'requests', 'setuptools>=1.0', 'sarge>=0.1.4', 'six' ] ...
import sys from setuptools import setup from setuptools import find_packages version = '0.0.2' # Please update tox.ini when modifying dependency version requirements install_requires = [ 'ebclient.py>=0.1.4', 'cmd2', 'pycrypto>=2.6', 'requests', 'setuptools>=1.0', 'sarge>=0.1.4', 'six' ] ...
mit
Python
4773a2ab54810f26ecfd725af40f69547530d782
Use sql_metadata==1.1.2
macbre/index-digest,macbre/index-digest
setup.py
setup.py
from setuptools import setup, find_packages from indexdigest import VERSION # @see https://github.com/pypa/sampleproject/blob/master/setup.py setup( name='indexdigest', version=VERSION, author='Maciej Brencz', author_email='maciej.brencz@gmail.com', license='MIT', description='Analyses your da...
from setuptools import setup, find_packages from indexdigest import VERSION # @see https://github.com/pypa/sampleproject/blob/master/setup.py setup( name='indexdigest', version=VERSION, author='Maciej Brencz', author_email='maciej.brencz@gmail.com', license='MIT', description='Analyses your da...
mit
Python
97d71e1e4117168c3ec27f7844fd42b334166ce2
Remove license classifier
openmicroscopy/weberror,openmicroscopy/weberror
setup.py
setup.py
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Copyright (c) 2016 University of Dundee. # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as # published by the Free Software Foundation, either version 3 of the # License, or (at your...
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Copyright (c) 2016 University of Dundee. # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as # published by the Free Software Foundation, either version 3 of the # License, or (at your...
agpl-3.0
Python
faf2db7d13514933d3c7b51ab6ab21c3753eef82
update dependency
zhuoju36/StructEngPy,zhuoju36/StructEngPy
setup.py
setup.py
from setuptools import setup from setuptools import find_packages VERSION = '0.1.9' setup( name='StructEngPy', version=VERSION, author='Zhuoju Huang', author_email='zhuoju36@hotmail.com', license='MIT', description='package for structural engineering', packages=find_packages(), zip...
from setuptools import setup from setuptools import find_packages VERSION = '0.1.9' setup( name='StructEngPy', version=VERSION, author='Zhuoju Huang', author_email='zhuoju36@hotmail.com', license='MIT', description='package for structural engineering', packages=find_packages(), zip...
mit
Python
f519815674133345a3c642203fcb73710f6efdc0
Bump version
simplepush/simplepush-python
setup.py
setup.py
"""Simplepush setup script.""" from distutils.core import setup setup( name='simplepush', packages=['simplepush'], version='1.1.4', description='Simplepush python library', author='Timm Schaeuble', author_email='contact@simplepush.io', url='https://simplepush.io', keywords=[ 'pu...
"""Simplepush setup script.""" from distutils.core import setup setup( name='simplepush', packages=['simplepush'], version='1.1.3', description='Simplepush python library', author='Timm Schaeuble', author_email='contact@simplepush.io', url='https://simplepush.io', keywords=[ 'pu...
mit
Python
5b592d7562fddac0cf48c71e6607cf17c009e993
Update new name
sergiocorato/partner-contact
partner_identification/__manifest__.py
partner_identification/__manifest__.py
# -*- coding: utf-8 -*- # # © 2004-2010 Tiny SPRL http://tiny.be # © 2010-2012 ChriCar Beteiligungs- und Beratungs- GmbH # http://www.camptocamp.at # © 2015 Antiun Ingenieria, SL (Madrid, Spain) # http://www.antiun.com # Antonio Espinosa <antonioea@antiun.com> # © 2016 ACSONE SA/NV (<http://ac...
# -*- coding: utf-8 -*- # # © 2004-2010 Tiny SPRL http://tiny.be # © 2010-2012 ChriCar Beteiligungs- und Beratungs- GmbH # http://www.camptocamp.at # © 2015 Antiun Ingenieria, SL (Madrid, Spain) # http://www.antiun.com # Antonio Espinosa <antonioea@antiun.com> # © 2016 ACSONE SA/NV (<http://ac...
agpl-3.0
Python
95add18b382898eb82c7ff3dd0aa0fd6db0f5cb9
Add simplejson as requirement for python 2.5
jarus/flask-mongokit,VishvajitP/flask-mongokit,jarus/flask-mongokit,VishvajitP/flask-mongokit
setup.py
setup.py
""" Flask-MongoKit -------------- Flask-MongoKit simplifies to use MongoKit, a powerful MongoDB ORM in Flask applications. Links ````` * `documentation <http://packages.python.org/Flask-MongoKit>`_ * `development version <http://github.com/jarus/flask-mongokit/zipball/master#egg=Flask-MongoKit-dev>`_ * `MongoKit <ht...
""" Flask-MongoKit -------------- Flask-MongoKit simplifies to use MongoKit, a powerful MongoDB ORM in Flask applications. Links ````` * `documentation <http://packages.python.org/Flask-MongoKit>`_ * `development version <http://github.com/jarus/flask-mongokit/zipball/master#egg=Flask-MongoKit-dev>`_ * `MongoK...
bsd-3-clause
Python
00b6946d7329d2a6b6d1e0edf7ceb3c508d0d710
Make stable
ForeverWintr/metafunctions
setup.py
setup.py
''' MetaFunctions is a function composition and data pipelining library. For more information, please visit the `project on github <https://github.com/ForeverWintr/metafunctions>`_. ''' import os import sys import contextlib import pathlib import shutil from setuptools import setup, find_packages, Command import met...
''' MetaFunctions is a function composition and data pipelining library. For more information, please visit the `project on github <https://github.com/ForeverWintr/metafunctions>`_. ''' import os import sys import contextlib import pathlib import shutil from setuptools import setup, find_packages, Command import met...
mit
Python
997d2684809d25a7aec4d278c6420cc17f4b7b48
Bump version
lambdalisue/notify
setup.py
setup.py
# coding=utf-8 import sys from setuptools import setup, find_packages NAME = 'notify' VERSION = '0.1.1' def read(filename): import os BASE_DIR = os.path.dirname(__file__) filename = os.path.join(BASE_DIR, filename) with open(filename, 'r') as fi: return fi.read() def readlist(filename): r...
# coding=utf-8 import sys from setuptools import setup, find_packages NAME = 'notify' VERSION = '0.1.0' def read(filename): import os BASE_DIR = os.path.dirname(__file__) filename = os.path.join(BASE_DIR, filename) with open(filename, 'r') as fi: return fi.read() def readlist(filename): r...
mit
Python
66c92962d1a921c4d2708ede4ccdfd89b56b27cd
fix setup issue
interrogator/corenlp-xml-lib,relwell/corenlp-xml-lib
setup.py
setup.py
from setuptools import setup setup( name="corenlp-xml-lib", version="0.0.1", author="Robert Elwell", author_email="robert.elwell@gmail.com", description="Library for interacting with the XML output of the Stanford CoreNLP pipeline.", license="Other", packages=["corenlp_xml"], install_re...
from setuptools import setup from pip.req import parse_requirements # parse_requirements() returns generator of pip.req.InstallRequirement objects install_reqs = parse_requirements('requirements.txt') # reqs is a list of requirement # e.g. ['django==1.5.1', 'mezzanine==1.4.6'] reqs = [str(ir.req) for ir in install_r...
apache-2.0
Python
c575d69ce253f9eb4d9beb6ffcd3e8a57ed804f0
Update to version 0.2.0 (according with semantic versioning)
marekjm/diaspy
setup.py
setup.py
from setuptools import setup, find_packages setup(name='diaspy', version='0.2.0', author='Moritz Kiefer', author_email='moritz.kiefer@gmail.com', url='https://github.com/Javafant/diaspora-api', description='A python api to the social network diaspora', packages=find_packages(), ...
from setuptools import setup, find_packages setup(name='diaspy', version='0.1.0', author='Moritz Kiefer', author_email='moritz.kiefer@gmail.com', url='https://github.com/Javafant/diaspora-api', description='A python api to the social network diaspora', packages=find_packages(), ...
mit
Python
9f510248981b61c9c7e111d45422d8e3ed1367ca
Update setup.py to set long description for PyPI
dib-lab/kevlar,dib-lab/kevlar,dib-lab/kevlar,dib-lab/kevlar
setup.py
setup.py
#!/usr/bin/env python # # ----------------------------------------------------------------------------- # Copyright (c) 2016 The Regents of the University of California # # This file is part of kevlar (http://github.com/standage/kevlar) and is # licensed under the MIT license: see LICENSE. # ---------------------------...
#!/usr/bin/env python # # ----------------------------------------------------------------------------- # Copyright (c) 2016 The Regents of the University of California # # This file is part of kevlar (http://github.com/standage/kevlar) and is # licensed under the MIT license: see LICENSE. # ---------------------------...
mit
Python
c630aff22e6ffa957ba660d574c4ea9ef181524b
Update version number to 1.0.
grybmadsci/openhtf,jettisonjoe/openhtf,grybmadsci/openhtf,google/openhtf,jettisonjoe/openhtf,fahhem/openhtf,google/openhtf,fahhem/openhtf,google/openhtf,grybmadsci/openhtf,ShaperTools/openhtf,google/openhtf,grybmadsci/openhtf,fahhem/openhtf,jettisonjoe/openhtf,ShaperTools/openhtf,ShaperTools/openhtf,amyxchen/openhtf,Sh...
setup.py
setup.py
# Copyright 2014 Google Inc. All Rights Reserved. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agre...
# Copyright 2014 Google Inc. All Rights Reserved. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agre...
apache-2.0
Python
96701435c52db2bcecde16579174b6bff3a17c0f
Rename for consistency
gabalese/mondo-python
setup.py
setup.py
#!/usr/bin/env python from setuptools import setup VERSION = '0.0.1' tests_requires = [ 'nose>=1.3.4', 'responses>=0.5.1' ] install_requires = tests_requires + [ 'requests>=2.4.3', ] setup( name="mondo", version=VERSION, description="Mondo Banking API Client", author=', '.join(( ...
#!/usr/bin/env python from setuptools import setup VERSION = '0.0.1' test_requires = [ 'nose>=1.3.4', 'responses>=0.5.1' ] install_requires = test_requires + [ 'requests>=2.4.3', ] setup( name="mondo", version=VERSION, description="Mondo Banking API Client", author=', '.join(( '...
mit
Python
7440dba84ea156e4ef01c8e68bda8a9b0490510d
Mark ProjectFuture as endOfLife
webcomics/dosage,webcomics/dosage
dosagelib/plugins/projectfuture.py
dosagelib/plugins/projectfuture.py
# SPDX-License-Identifier: MIT # Copyright (C) 2019-2020 Tobias Gruetzmacher # Copyright (C) 2019-2020 Daniel Ring from .common import _ParserScraper class ProjectFuture(_ParserScraper): imageSearch = '//td[@class="tamid"]/img' prevSearch = '//a[./img[@alt="Previous"]]' def __init__(self, name, comic, fi...
# SPDX-License-Identifier: MIT # Copyright (C) 2019-2020 Tobias Gruetzmacher # Copyright (C) 2019-2020 Daniel Ring from .common import _ParserScraper class ProjectFuture(_ParserScraper): imageSearch = '//td[@class="tamid"]/img' prevSearch = '//a[./img[@alt="Previous"]]' def __init__(self, name, comic, fi...
mit
Python
535ac4c6eae416461e11f33c1a1ef67e92c73914
Add a commit failed test
sangoma/safepy2,leonardolang/safepy2
tests/test_exception_wrapping.py
tests/test_exception_wrapping.py
import safe class MockResponse(object): def __init__(self, data): self.data = data def json(self): return self.data def test_basic_exception(): error_message = 'Example error' response = MockResponse({ 'status': False, 'method': 'synchronize', 'module': 'clus...
import safe def test_simple_exception(): class MockReponse(object): def json(self): return {'status': False, 'method': 'synchronize', 'module': 'cluster', 'error': {'message': 'Example error'}} exception = safe.library.raise_from...
mpl-2.0
Python
f48d037b93c92ac794c145aad3cd9ae6f04780d1
Convert scores to ints when sorting
james9909/IntroCTF,james9909/IntroCTF,james9909/IntroCTF,james9909/IntroCTF,james9909/IntroCTF,james9909/IntroCTF
scoreboard.py
scoreboard.py
#!/usr/bin/env python import os print "Content-Type: text/html\n" print "" def gen_scoreboard(team_data): if len(team_data) == 0: print "There are no teams!" else: print "<br>" print "<div class='container'>" print "<table class='responsive-table bordered hoverable centered'>" ...
#!/usr/bin/env python import os print "Content-Type: text/html\n" print "" def gen_scoreboard(team_data): if len(team_data) == 0: print "There are no teams!" else: print "<br>" print "<div class='container'>" print "<table class='responsive-table bordered hoverable centered'>" ...
mit
Python
bc054f5cc8c375244c8ec4b311d12cf416670871
Fix partition sizes
keenlabs/capillary,keenlabs/capillary,evertrue/capillary,evertrue/capillary,keenlabs/capillary,evertrue/capillary,evertrue/capillary
stats-to-datadog.py
stats-to-datadog.py
import urllib2 import json import sys from statsd import statsd statsd.connect('localhost', 8125) host = sys.argv[1] topology = sys.argv[2] toporoot = sys.argv[3] topic = sys.argv[4] state = urllib2.urlopen( "http://{}/api/status?toporoot={}&topic={}".format( host, toporoot, topic ) ).read() data = ...
import urllib2 import json import sys from statsd import statsd statsd.connect('localhost', 8125) host = sys.argv[1] topology = sys.argv[2] toporoot = sys.argv[3] topic = sys.argv[4] state = urllib2.urlopen( "http://{}/api/status?toporoot={}&topic={}".format( host, toporoot, topic ) ).read() data = ...
mit
Python
5334dfd37ef46479cf054143a34b2cbed8e90b14
Handle exceptions in wsgi.
serathius/elasticsearch-raven,pozytywnie/elasticsearch-raven,socialwifi/elasticsearch-raven
elasticsearch_raven/wsgi.py
elasticsearch_raven/wsgi.py
import queue from elasticsearch_raven import configuration from elasticsearch_raven.transport import SentryMessage from elasticsearch_raven.udp_server import _get_sender pending_logs = queue.Queue(configuration['queue_maxsize']) exception_queue = queue.Queue() sender = _get_sender(pending_logs, exception_queue) send...
from queue import Queue from threading import Thread from elasticsearch_raven import configuration from elasticsearch_raven.transport import ElasticsearchTransport from elasticsearch_raven.transport import SentryMessage transport = ElasticsearchTransport(configuration['host'], confi...
mit
Python
6238243758202ad12db66fecef27cee65b71d192
Add PID file support and status querying to new runner
CylonicRaider/Instant,CylonicRaider/Instant,CylonicRaider/Instant,CylonicRaider/Instant,CylonicRaider/Instant
script/run.py
script/run.py
#!/usr/bin/env python3 # -*- coding: ascii -*- # An init script for running Instant and a number of bots. import re PID_LINE_RE = re.compile(r'^[0-9]+\s*$') class Process: def __init__(self, name, pidfile): self.name = name self.pidfile = pidfile self._pid = Ellipsis def _read_pidfi...
#!/usr/bin/env python3 # -*- coding: ascii -*- # An init script for running Instant and a number of bots. def main(): pass if __name__ == '__main__': main()
mit
Python
ac99e90365d61b56ba654ad9bcc1baa20ccf65e5
Install missing swig generated file
usajusaj/sga_utils,usajusaj/sga_utils
setup.py
setup.py
# -*- coding: utf-8 -*- import numpy from setuptools import setup, find_packages, Extension with open('README.rst') as f: readme = f.read() with open('LICENSE') as f: lic = f.read() with open('requirements.txt') as f: required = f.read().splitlines() # Obtain the numpy include directory. This logic ...
# -*- coding: utf-8 -*- import numpy from setuptools import setup, find_packages, Extension with open('README.rst') as f: readme = f.read() with open('LICENSE') as f: lic = f.read() with open('requirements.txt') as f: required = f.read().splitlines() # Obtain the numpy include directory. This logic ...
mit
Python
8b8b6c3b9e2fbeff422cda8c5812f32d81b43a1f
Bump version to 4.0.0a23
platformio/platformio-core,platformio/platformio,platformio/platformio-core
platformio/__init__.py
platformio/__init__.py
# Copyright (c) 2014-present PlatformIO <contact@platformio.org> # # 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 appli...
# Copyright (c) 2014-present PlatformIO <contact@platformio.org> # # 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 appli...
apache-2.0
Python
066146dd77b00d1a597704fd18bccf1041564215
Fix print formatting
davidgasquez/kaggle-airbnb
scripts/gb.py
scripts/gb.py
import sys import numpy as np import pandas as pd import datetime from sklearn.preprocessing import LabelEncoder from sklearn.preprocessing import StandardScaler from xgboost.sklearn import XGBClassifier sys.path.append('..') from utils.data_loading import load_users_data from utils.preprocessing import one_hot_encodi...
import sys import numpy as np import pandas as pd import datetime from sklearn.preprocessing import LabelEncoder from sklearn.preprocessing import StandardScaler from xgboost.sklearn import XGBClassifier sys.path.append('..') from utils.data_loading import load_users_data from utils.preprocessing import one_hot_encodi...
mit
Python
2f23a758c66d100315dd6de0aed0dd16191e58a4
update version
drgrib/dotmap
setup.py
setup.py
from setuptools import setup with open("README.md", "r") as fh: long_description = fh.read() setup( version = '1.2.36', name='dotmap', packages=['dotmap'], # this must be the same as the name above description='ordered, dynamically-expandable dot-access dictionary', author='Chris Redford', a...
from setuptools import setup with open("README.md", "r") as fh: long_description = fh.read() setup( version = '1.2.35', name='dotmap', packages=['dotmap'], # this must be the same as the name above description='ordered, dynamically-expandable dot-access dictionary', author='Chris Redford', a...
mit
Python
ef0854c23c5d75c2742da3e8bde9fc258854d7aa
Add urls in setup.
fmenabe/python-clif
setup.py
setup.py
# -*- coding: utf-8 -*- from distutils.core import setup setup( name='clif', version='0.2.0', author='François Ménabé', author_email='francois.menabe@gmail.com', url = 'http://github.com/fmenabe/python-clif', download_url = 'http://github.com/fmenabe/python-clif', license='MIT License', ...
# -*- coding: utf-8 -*- from distutils.core import setup setup( name='clif', version='0.2.0', author='François Ménabé', author_email='francois.menabe@gmail.com', license='MIT License', description='Framework for generating command-line', long_description=open('README.rst').read(), keyw...
mit
Python
25454cb6e911a9644fb3e667275531f1fce563dd
Bump version to 7.2.1
balloob/pychromecast,balloob/pychromecast
setup.py
setup.py
from setuptools import setup, find_packages long_description = open("README.rst").read() setup( name="PyChromecast", version="7.2.1", license="MIT", url="https://github.com/balloob/pychromecast", author="Paulus Schoutsen", author_email="paulus@paulusschoutsen.nl", description="Python modu...
from setuptools import setup, find_packages long_description = open("README.rst").read() setup( name="PyChromecast", version="7.2.0", license="MIT", url="https://github.com/balloob/pychromecast", author="Paulus Schoutsen", author_email="paulus@paulusschoutsen.nl", description="Python modu...
mit
Python
bcf436e1ecfa92b5d1b1aeb42b3ebaafff8c5f32
Bump version to 2.2.0.
box/rotunicode,box/rotunicode
setup.py
setup.py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from sys import version_info from setuptools import setup, find_packages from os.path import dirname, join CLASSIFIERS = [ 'Development Status :: 4 - Beta', 'Intended Audience :: Developers', 'License :: OSI Approved :: Apache Software Licen...
# -*- coding: utf-8 -*- from __future__ import unicode_literals from sys import version_info from setuptools import setup, find_packages from os.path import dirname, join CLASSIFIERS = [ 'Development Status :: 4 - Beta', 'Intended Audience :: Developers', 'License :: OSI Approved :: Apache Software Licen...
apache-2.0
Python
f715d565ea9274505ae31aeefd145a7dc921dd8a
Move setup of comparison files to separate method
leaffan/pynhldb
tests/test_summary_downloader.py
tests/test_summary_downloader.py
#!/usr/bin/env python # -*- coding: utf-8 -*- import os import itertools import tempfile from zipfile import ZipFile from utils.summary_downloader import SummaryDownloader def test_download_unzipped(): base_tgt_dir, date, files = set_up_comparison_files() sdl = SummaryDownloader(base_tgt_dir, date, zip_su...
#!/usr/bin/env python # -*- coding: utf-8 -*- import os import itertools import tempfile from zipfile import ZipFile from utils.summary_downloader import SummaryDownloader def test_download_unzipped(): date = "Oct 24, 2016" tgt_dir = tempfile.mkdtemp(prefix='sdl_test_') prefixes = ["ES", "FC", "GS", "P...
mit
Python
4527cd762ce4121c85e2b5904161d3d27637234c
Remove ipdb call :(
mailjet/mailjet-apiv3-python
setup.py
setup.py
#!/usr/bin/env python # coding=utf-8 import os from setuptools import setup HERE = os.path.abspath(os.path.dirname(__file__)) PACKAGE_NAME = 'mailjet_rest' # Dynamically calculate the version based on mailjet_rest.VERSION. version = __import__('mailjet_rest').get_version() setup( name=PACKAGE_NAME, version=...
#!/usr/bin/env python # coding=utf-8 import os from setuptools import setup HERE = os.path.abspath(os.path.dirname(__file__)) PACKAGE_NAME = 'mailjet_rest' import ipdb; ipdb.set_trace() # Dynamically calculate the version based on mailjet_rest.VERSION. version = __import__('mailjet_rest').get_version() setup( n...
mit
Python
49cb87440acb2d29ade7104213a0cfafd8ababcb
Update setup.py
jannon/django-haystackbrowser,vmarkovtsev/django-haystackbrowser,jannon/django-haystackbrowser,vmarkovtsev/django-haystackbrowser,vmarkovtsev/django-haystackbrowser,jannon/django-haystackbrowser
setup.py
setup.py
# -*- coding: utf-8 -*- import os from setuptools import setup, find_packages from haystackbrowser import version SHORT_DESC = (u'A reusable Django application for viewing and debugging ' u'all the data that has been pushed into Haystack') REQUIREMENTS = [ 'Django>=1.2.0', 'django-haystack...
# -*- coding: utf-8 -*- import os from setuptools import setup, find_packages from haystackbrowser import version SHORT_DESC = (u'A reusable Django application for viewing and debugging ' u'all the data that has been pushed into Haystack') REQUIREMENTS = [ 'Django>=1.2.0', 'django-haystack...
bsd-2-clause
Python
73d69274a21818830b3a0b87ad574321c958c0f7
Add Framework::Pytest to list of classifiers
pytest-dev/pytest-cpp,pytest-dev/pytest-cpp,pytest-dev/pytest-cpp
setup.py
setup.py
from setuptools import setup setup( name="pytest-cpp", version='0.4', packages=['pytest_cpp'], entry_points={ 'pytest11': ['cpp = pytest_cpp.plugin'], }, install_requires=['pytest', 'colorama'], # metadata for upload to PyPI author="Bruno Oliveira", author_email="nicoddemu...
from setuptools import setup setup( name="pytest-cpp", version='0.4', packages=['pytest_cpp'], entry_points={ 'pytest11': ['cpp = pytest_cpp.plugin'], }, install_requires=['pytest', 'colorama'], # metadata for upload to PyPI author="Bruno Oliveira", author_email="nicoddemu...
mit
Python
6e57b110750e3e871156a7716e95ffed3adf2cd1
Use io.open with encoding='utf-8' and flake8 compliance
morepath/more.chameleon
setup.py
setup.py
import io from setuptools import setup, find_packages long_description = '\n'.join(( io.open('README.rst', encoding='utf-8').read(), io.open('CHANGES.txt', encoding='utf-8').read() )) setup(name='more.chameleon', version='0.3.dev0', description="Chameleon template integration for Morepath", ...
import os, io from setuptools import setup, find_packages long_description = ( io.open('README.rst', encoding='utf-8').read() + '\n' + io.open('CHANGES.txt', encoding='utf-8').read()) setup(name='more.chameleon', version='0.3.dev0', description="Chameleon template integration for Morepath", ...
bsd-3-clause
Python
28c6a0129475265ae571bf4fbf1c3fce2112843a
Fix setup
ericfourrier/auto-clean
setup.py
setup.py
from setuptools import setup, find_packages def readme(): with open('README.md') as f: return f.read() setup(name='autoc', version="0.1", description='autoc is a package for data cleaning exploration and modelling in pandas', long_description=readme(), author=['Eric Fourrier'], ...
from setuptools import setup, find_packages def readme(): with open('README.md') as f: return f.read() setup(name='autoc', version="0.1", description='autoc is a package for data cleaning exploration and modelling in pandas', long_description=readme(), author=['Eric Fourrier'], ...
mit
Python
4b37bfb1f6b39b088ba19eaea38c9fbde49cb214
Integrate nose with setuptools.
BlueDragonX/detach
setup.py
setup.py
import os from setuptools import setup, find_packages here = os.path.abspath(os.path.dirname(__file__)) try: readme = open(os.path.join(here, 'README.md')).read() except IOError: readme = '' setup_requires = [ 'nose>=1.3.0', ] setup( name='detach', version='0.1', description="Fork and detach...
import os from setuptools import setup, find_packages here = os.path.abspath(os.path.dirname(__file__)) try: readme = open(os.path.join(here, 'README.md')).read() except IOError: readme = '' setup( name='detach', version='0.1', description="Fork and detach the current processe.", long_descrip...
bsd-3-clause
Python
3089a44a090e43465d67c4983185aaa469b422a4
use README.rst as long_description in setup.py
Muges/audiotsm
setup.py
setup.py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # pylint: disable=invalid-name """ AudioTSM ~~~~~~~~ AudioTSM is a python library for real-time audio time-scale modification procedures, i.e. algorithms that change the speed of an audio signal without changing its pitch. :copyright: (c) 2017 by Muges. :license: MIT, s...
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # pylint: disable=invalid-name """ AudioTSM ~~~~~~~~ AudioTSM is a python library for real-time audio time-scale modification procedures, i.e. algorithms that change the speed of an audio signal without changing its pitch. :copyright: (c) 2017 by Muges. :license: MIT, s...
mit
Python
0008a2d4b60ad827209ad40f1059ff02eac130db
Disable caching of CommentOptions temporarily.
MichalMaM/ella,MichalMaM/ella,WhiskeyMedia/ella,petrlosa/ella,petrlosa/ella,ella/ella,whalerock/ella,WhiskeyMedia/ella,whalerock/ella,whalerock/ella
ella/ellacomments/models.py
ella/ellacomments/models.py
from datetime import datetime from django.db import models from django.contrib.contenttypes.models import ContentType from django.utils.translation import ugettext_lazy as _ from ella.core.cache.utils import CachedGenericForeignKey, get_cached_object class DefaultCommentOptions(object): blocked = False premo...
from datetime import datetime from django.db import models from django.contrib.contenttypes.models import ContentType from django.utils.translation import ugettext_lazy as _ from ella.core.cache.utils import CachedGenericForeignKey, get_cached_object class DefaultCommentOptions(object): blocked = False premo...
bsd-3-clause
Python
5fcabd15218a774018b40dadd23a1a67f790a32d
Fix monkeypatching for new internals.
ionelmc/virtualenv,ionelmc/virtualenv,ionelmc/virtualenv
tests/unit/builders/test_venv.py
tests/unit/builders/test_venv.py
import subprocess import pretend import pytest import virtualenv.builders.venv from virtualenv.builders.venv import VenvBuilder, _SCRIPT from virtualenv import _compat def test_venv_builder_check_available_success(monkeypatch): check_output = pretend.call_recorder(lambda *a, **kw: None) monkeypatch.setattr...
import subprocess import pretend import pytest import virtualenv.builders.venv from virtualenv.builders.venv import VenvBuilder, _SCRIPT def test_venv_builder_check_available_success(monkeypatch): check_output = pretend.call_recorder(lambda *a, **kw: None) monkeypatch.setattr( virtualenv.builders.v...
mit
Python
1628ad872ca07e225dc7e923b7824cb2b0835b20
Make it possible to use detect_assertions.py with arbitrary log files. (Still works as a module for af_timed_run as well.)
nth10sd/funfuzz,nth10sd/funfuzz,MozillaSecurity/funfuzz,MozillaSecurity/funfuzz,MozillaSecurity/funfuzz,nth10sd/funfuzz
dom/automation/detect_assertions.py
dom/automation/detect_assertions.py
#!/usr/bin/env python # Recognizes NS_ASSERTIONs based on condition, text, and filename (ignoring irrelevant parts of the path) # Recognizes JS_ASSERT based on condition only :( import os, sys def fs(currentFile): global ignoreList foundSomething = False # map from (assertion message) to (true, if see...
#!/usr/bin/env python # Recognizes NS_ASSERTIONs based on condition, text, and filename (ignoring irrelevant parts of the path) # Recognizes JS_ASSERT based on condition only :( import os def amiss(logPrefix): global ignoreList foundSomething = False currentFile = file(logPrefix + "-err", "r") ...
mpl-2.0
Python
d2c9a90c1697fc04a9e4b6b8c7b114a743797620
Raise an exception if BASE_DOMAIN is not defined
ipsosante/django-subdomains
subdomains/utils.py
subdomains/utils.py
import functools try: from urlparse import urlunparse except ImportError: from urllib.parse import urlunparse from django.conf import settings from django.core.urlresolvers import reverse as simple_reverse def current_site_domain(): domain = getattr(settings, 'BASE_DOMAIN') prefix = 'www.' if ge...
import functools try: from urlparse import urlunparse except ImportError: from urllib.parse import urlunparse from django.conf import settings from django.core.urlresolvers import reverse as simple_reverse def current_site_domain(): domain = getattr(settings, 'BASE_DOMAIN', False) prefix = 'www.' ...
mit
Python
0e2059c4b8c975b6cfdc2197d2e35808db967980
Build a hand-crafted response object by calling instead of a simple redirect
antoinecarme/sklearn2sql_heroku,antoinecarme/sklearn2sql_heroku
WS/Sklearn2SQL_Heroku.py
WS/Sklearn2SQL_Heroku.py
from __future__ import absolute_import from flask import Flask, redirect, request #import objects from the Flask model import os, platform import requests, json app = Flask(__name__) sklearn2sql_uri = os.environ.get("SKLEARN2SQL_URI", "http://c:1888") def get_post_response(request1): # request1 = request p...
from __future__ import absolute_import from flask import Flask, redirect #import objects from the Flask model import os, platform app = Flask(__name__) sklearn2sql_uri = os.environ.get("SKLEARN2SQL_URI", "http://c:1888") @app.route('/', methods=['GET']) def test(): return redirect(sklearn2sql_uri, code=307) @a...
bsd-3-clause
Python
cd660350f82ff38b6d566b6f1c8198695e7e63de
Add more initial data
cshields/satnogs-network,cshields/satnogs-network,cshields/satnogs-network,cshields/satnogs-network
SatNOGS/base/management/commands/initialize.py
SatNOGS/base/management/commands/initialize.py
from orbit import satellite from django.core.management.base import BaseCommand from base.tests import ObservationFactory, StationFactory from base.models import Satellite class Command(BaseCommand): help = 'Create initial fixtures' def handle(self, *args, **options): ObservationFactory.create_batc...
from orbit import satellite from django.core.management.base import BaseCommand from base.tests import ObservationFactory, StationFactory from base.models import Satellite class Command(BaseCommand): help = 'Create initial fixtures' def handle(self, *args, **options): ObservationFactory.create_batc...
agpl-3.0
Python