diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/guacamole/client.py b/guacamole/client.py
index <HASH>..<HASH> 100644
--- a/guacamole/client.py
+++ b/guacamole/client.py
@@ -136,7 +136,8 @@ class GuacamoleClient(object):
return self.send(instruction.encode())
def handshake(self, protocol='vnc', width=1024, height=768, dpi=96,
- ... | Add support for device size overrides (#<I>) Guacd seperates the client display size and the device display size and makes a best guess as to use. Add support for overriding this behaviour. | py |
diff --git a/bytecode/tests/test_bytecode.py b/bytecode/tests/test_bytecode.py
index <HASH>..<HASH> 100644
--- a/bytecode/tests/test_bytecode.py
+++ b/bytecode/tests/test_bytecode.py
@@ -383,6 +383,7 @@ class BytecodeTests(TestCase):
co = code.to_code(check_pre_and_post=False)
self.assertEqual(co.co_s... | tests: skip tests on python <I> | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -15,7 +15,7 @@ this_dir = os.path.realpath(os.path.dirname(__file__))
def main():
setup(
name='postal',
- version='1.1.2',
+ version='1.1.3',
install_requires=[
'six',
... | [build] bumping version to <I> | py |
diff --git a/tests/test_routers.py b/tests/test_routers.py
index <HASH>..<HASH> 100644
--- a/tests/test_routers.py
+++ b/tests/test_routers.py
@@ -1,11 +1,17 @@
"""
based upon https://github.com/alanjds/drf-nested-routers/issues/15
"""
+from collections import namedtuple
+
from django.db import models
from django.... | DRF >= <I> needs .queryset instead of .models What a shame... | py |
diff --git a/holoviews/plotting/mpl/__init__.py b/holoviews/plotting/mpl/__init__.py
index <HASH>..<HASH> 100644
--- a/holoviews/plotting/mpl/__init__.py
+++ b/holoviews/plotting/mpl/__init__.py
@@ -136,8 +136,8 @@ Store.register({Curve: CurvePlot,
Polygons: PolygonPlot}, 'matplotlib', style_aliases=st... | Added GridPlot to potential plots | py |
diff --git a/safe/common/utilities.py b/safe/common/utilities.py
index <HASH>..<HASH> 100644
--- a/safe/common/utilities.py
+++ b/safe/common/utilities.py
@@ -81,6 +81,8 @@ def ugettext(s):
'..', 'i18n'))
if 'LANG' not in os.environ:
return s
+ if not s:
+ ... | Fix translation bug when the source string is empty | py |
diff --git a/pandas/core/shared_docs.py b/pandas/core/shared_docs.py
index <HASH>..<HASH> 100644
--- a/pandas/core/shared_docs.py
+++ b/pandas/core/shared_docs.py
@@ -4,7 +4,7 @@ _shared_docs: Dict[str, str] = dict()
_shared_docs[
"aggregate"
-] = """\
+] = """
Aggregate using one or more operations over the s... | Fix GL<I> docstring errors in some functions (#<I>) | py |
diff --git a/livejson.py b/livejson.py
index <HASH>..<HASH> 100644
--- a/livejson.py
+++ b/livejson.py
@@ -160,14 +160,12 @@ class _BaseDatabase(_ObjectBase):
self._checkType(key)
data = self.data
data[key] = value
- with open(self.path, "w") as f:
- json.dump(data, f)
+ ... | Move all relevant file writes to set_data This will allow for more flexibility | py |
diff --git a/ayrton/tests/test_remote.py b/ayrton/tests/test_remote.py
index <HASH>..<HASH> 100644
--- a/ayrton/tests/test_remote.py
+++ b/ayrton/tests/test_remote.py
@@ -103,3 +103,17 @@ s.close ()''', 'testRaisesInternal')
self.assertRaises (Foo, ayrton.main, '''class Foo (Exception): pass
with remote ('127... | [+] unused test to show that getting locals can be difficult. | py |
diff --git a/galpy/orbit/Orbit.py b/galpy/orbit/Orbit.py
index <HASH>..<HASH> 100644
--- a/galpy/orbit/Orbit.py
+++ b/galpy/orbit/Orbit.py
@@ -284,17 +284,3 @@ def RZEOM(y,t,pot,l2):
l2/y[0]**3.+evaluateRforces(y[0],y[2],pot),
y[3],
evaluatezforces(y[0],y[2],pot)]
-
-if __name__ =... | galpy.orbit: removed main program | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -22,6 +22,11 @@ setup(
packages=find_packages(),
zip_safe=False,
include_package_data=True,
+ install_requires=[
+ 'Pillow==2.4.0',
+ 'pytz',
+ ],
+ tests_require=['coverage', 'RandomWords... | Add requires to setup.py. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -9,6 +9,7 @@ setup(
author='Mark Phillips',
author_email='mark.phillips@unt.edu',
url='https://github.com/unt-libraries/edtf-validate',
+ download_url='https://github.com/unt-libraries/pyuntl/tarball/1.0.0',
... | added download_url to setup.py | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -57,7 +57,13 @@ LibraryDirs = None
# Add more platforms here when needed
if os.name == 'nt' or sys.platform == 'win32':
Libraries = ['eay32', 'Ws2_32']
- ExtraObjects = [r"c:\Python25\libs\ssleay32.a"]
+ # Try to ... | Try to find ssleay<I>.a in more locations, including on that may be a bit more common windows | py |
diff --git a/raiden/tests/integration/long_running/test_token_networks.py b/raiden/tests/integration/long_running/test_token_networks.py
index <HASH>..<HASH> 100644
--- a/raiden/tests/integration/long_running/test_token_networks.py
+++ b/raiden/tests/integration/long_running/test_token_networks.py
@@ -101,12 +101,12 @@... | Dont call connect 2 times for 1st node in test_participant_selection | py |
diff --git a/tensorpack/dataflow/remote.py b/tensorpack/dataflow/remote.py
index <HASH>..<HASH> 100644
--- a/tensorpack/dataflow/remote.py
+++ b/tensorpack/dataflow/remote.py
@@ -39,8 +39,8 @@ def send_dataflow_zmq(df, addr, hwm=50, format=None):
if format is None:
dump_fn = dumps
else:
- from... | fix a rename in zmq_ops | py |
diff --git a/pyOCD/pyDAPAccess/interface/pyusb_backend.py b/pyOCD/pyDAPAccess/interface/pyusb_backend.py
index <HASH>..<HASH> 100644
--- a/pyOCD/pyDAPAccess/interface/pyusb_backend.py
+++ b/pyOCD/pyDAPAccess/interface/pyusb_backend.py
@@ -89,7 +89,7 @@ class PyUSB(Interface):
except usb.core.USBError as er... | Fix bug with missing product string on Linux If a device without a product string is connected to a machine running Linux then pyDAPAccess will not work correctly. This is because the product is set to 'None' which causes a crash when find is called on it. This patch fixes that problem by checking to make sure the p... | py |
diff --git a/app/readers/fasta.py b/app/readers/fasta.py
index <HASH>..<HASH> 100644
--- a/app/readers/fasta.py
+++ b/app/readers/fasta.py
@@ -60,7 +60,7 @@ def parse_fasta(fn):
def get_record_type(record):
- if record.id.split('|')[0] == 'sp':
+ if record.id.split('|')[0] in ['sp', 'tr']:
return 's... | Find both swiss and trembl protein fasta | py |
diff --git a/autosub/formatters.py b/autosub/formatters.py
index <HASH>..<HASH> 100644
--- a/autosub/formatters.py
+++ b/autosub/formatters.py
@@ -26,16 +26,9 @@ def srt_formatter(subtitles, show_before=0, show_after=0):
return '\n'.join(map(unicode, f))
def vtt_formatter(subtitles, show_before=0, show_after=0)... | using srt method to create captions, converting generated captions string to WebVTT format | py |
diff --git a/dcard/cli.py b/dcard/cli.py
index <HASH>..<HASH> 100644
--- a/dcard/cli.py
+++ b/dcard/cli.py
@@ -1,3 +1,6 @@
+# -*- coding: utf-8 -*-
+from __future__ import unicode_literals
+
import time
import argparse
@@ -44,8 +47,8 @@ def download(args):
resources = posts.parse_resources()
status = post... | hotfix on deploy package ci | py |
diff --git a/src/vistir/path.py b/src/vistir/path.py
index <HASH>..<HASH> 100644
--- a/src/vistir/path.py
+++ b/src/vistir/path.py
@@ -154,6 +154,7 @@ def mkdir_p(newdir):
:raises: OSError if a file is encountered along the way
"""
# http://code.activestate.com/recipes/82465-a-friendly-mkdir/
+ newdir... | Final logical check for mkdir_p | py |
diff --git a/sh.py b/sh.py
index <HASH>..<HASH> 100644
--- a/sh.py
+++ b/sh.py
@@ -1194,7 +1194,7 @@ output"),
ran = " ".join([arg.decode(DEFAULT_ENCODING, "ignore") for arg in cmd])
else:
ran = " ".join(cmd)
- exc = exc_class(ran, None, None, ca... | bugfix with fg exceptions | py |
diff --git a/pygam/pygam.py b/pygam/pygam.py
index <HASH>..<HASH> 100644
--- a/pygam/pygam.py
+++ b/pygam/pygam.py
@@ -1418,8 +1418,11 @@ class GAM(Core):
if meshgrid:
return (x,)
+ # fill in feature matrix with only relevant features for this term
X = np.zeros((n... | gen_x_grid on term with by-variable sets by-feature as ones. all else as zeros | py |
diff --git a/ml-agents/mlagents/trainers/tests/test_simple_rl.py b/ml-agents/mlagents/trainers/tests/test_simple_rl.py
index <HASH>..<HASH> 100644
--- a/ml-agents/mlagents/trainers/tests/test_simple_rl.py
+++ b/ml-agents/mlagents/trainers/tests/test_simple_rl.py
@@ -52,7 +52,7 @@ class Simple1DEnvironment(BaseUnityEnvi... | unit test - don't use global random generator (#<I>) * unit test - don't use global random generator * Update test_simple_rl.py | py |
diff --git a/salt/cli/batch.py b/salt/cli/batch.py
index <HASH>..<HASH> 100644
--- a/salt/cli/batch.py
+++ b/salt/cli/batch.py
@@ -14,7 +14,7 @@ import copy
import salt.client
import salt.output
from salt.utils import print_cli
-from six.moves import range
+from salt.utils.six.moves import range
class Batch(obj... | Replaced module six in file /salt/cli/batch.py | py |
diff --git a/openquake/calculators/tests/scenario_damage_test.py b/openquake/calculators/tests/scenario_damage_test.py
index <HASH>..<HASH> 100644
--- a/openquake/calculators/tests/scenario_damage_test.py
+++ b/openquake/calculators/tests/scenario_damage_test.py
@@ -155,6 +155,8 @@ RM 4,000
self.run_calc... | Added test [skip hazardlib] | py |
diff --git a/pelix/shell/core.py b/pelix/shell/core.py
index <HASH>..<HASH> 100644
--- a/pelix/shell/core.py
+++ b/pelix/shell/core.py
@@ -94,7 +94,7 @@ class _ArgTemplate(string.Template):
"""
Argument string template class
"""
- pass
+ idpattern = r'[_a-z\?][_a-z0-9\.]*'
def _make_args(args_... | Allow ? and . in variable names | py |
diff --git a/.tito/lib/origin/common.py b/.tito/lib/origin/common.py
index <HASH>..<HASH> 100644
--- a/.tito/lib/origin/common.py
+++ b/.tito/lib/origin/common.py
@@ -31,7 +31,7 @@ def get_os_git_vars():
shell utilities. The git tree state is spoofed.
"""
git_vars = {}
- for var_name in ["OS_GIT_COMMI... | Adding OS_GIT_PATCH to rpm env | py |
diff --git a/scripts/importer/Events.py b/scripts/importer/Events.py
index <HASH>..<HASH> 100644
--- a/scripts/importer/Events.py
+++ b/scripts/importer/Events.py
@@ -476,7 +476,7 @@ def add_event(tasks, args, events, name, log, load=True, delete=True):
log.debug("`newname`: '{}' (name: '{}') already exists.".... | DOCS: clarify docstring. | py |
diff --git a/seleniumbase/fixtures/base_case.py b/seleniumbase/fixtures/base_case.py
index <HASH>..<HASH> 100755
--- a/seleniumbase/fixtures/base_case.py
+++ b/seleniumbase/fixtures/base_case.py
@@ -29,8 +29,8 @@ import os
import re
import sys
import time
-import urllib3
import unittest
+import urllib3
from seleni... | Rearrange "import" lines to be alphabetical | py |
diff --git a/pydealer/pydealer.py b/pydealer/pydealer.py
index <HASH>..<HASH> 100644
--- a/pydealer/pydealer.py
+++ b/pydealer/pydealer.py
@@ -123,7 +123,7 @@ class Deck(object):
cards.append(card)
num -= 1
elif rebuild:
- self.build_deck()
+ ... | changed line <I> from self.build_deck() to self.build() | py |
diff --git a/ipywebrtc/_version.py b/ipywebrtc/_version.py
index <HASH>..<HASH> 100644
--- a/ipywebrtc/_version.py
+++ b/ipywebrtc/_version.py
@@ -1,6 +1,6 @@
-__version_tuple__ = (0, 4, 1)
+__version_tuple__ = (0, 4, 2)
__version_tuple_js__ = (0, 4, 1)
-__version__ = '0.4.1'
+__version__ = '0.4.2'
__version_js__ = '... | Release <I> of py | py |
diff --git a/integration_tests/blockstack_integration_tests/scenarios/testlib.py b/integration_tests/blockstack_integration_tests/scenarios/testlib.py
index <HASH>..<HASH> 100644
--- a/integration_tests/blockstack_integration_tests/scenarios/testlib.py
+++ b/integration_tests/blockstack_integration_tests/scenarios/test... | add test for dumping a gaia bucket | py |
diff --git a/telethon/network/mtprotosender.py b/telethon/network/mtprotosender.py
index <HASH>..<HASH> 100644
--- a/telethon/network/mtprotosender.py
+++ b/telethon/network/mtprotosender.py
@@ -543,6 +543,13 @@ class MTProtoSender:
await self._process_message(message)
async def _handle_update(self,... | Assert that dispatched updates are Updates | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -365,6 +365,7 @@ if IS_WINDOWS_PLATFORM:
'ntsecuritycon',
'_winreg',
'wmi',
+ 'fileinput',
])
SETUP_KWARGS['install_requires'].append('WMI')
elif sys.platform.startswith('linux'): | Add fileinput to list of Windows modules to freeze | py |
diff --git a/oembed/__init__.py b/oembed/__init__.py
index <HASH>..<HASH> 100644
--- a/oembed/__init__.py
+++ b/oembed/__init__.py
@@ -303,7 +303,10 @@ class OEmbedEndpoint(object):
urlApi = self._urlApi.replace('{format}', params['format'])
del params['format']
- retu... | If the endpoint URL already had URL parameters, use an ampersand instead to append URL parameters. (This is needed for authenticated embed.ly requests, for example.) | py |
diff --git a/conference_scheduler/tests/test_scheduler.py b/conference_scheduler/tests/test_scheduler.py
index <HASH>..<HASH> 100644
--- a/conference_scheduler/tests/test_scheduler.py
+++ b/conference_scheduler/tests/test_scheduler.py
@@ -95,6 +95,11 @@ def test_empty_solution_fails(events, slots, sessions):
s... | [#<I>] Add test for _schedule_to_solution | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -3,7 +3,7 @@ from setuptools import setup
setup(
name = 'dfply',
- version = '0.1.0',
+ version = '0.1.1',
author = 'Kiefer Katovich',
author_email = 'kiefer.katovich@gmail.com',
packages = [ | moved up to version <I> for lowercasing the decorators | py |
diff --git a/src/foremast/pipeline/construct_pipeline_block.py b/src/foremast/pipeline/construct_pipeline_block.py
index <HASH>..<HASH> 100644
--- a/src/foremast/pipeline/construct_pipeline_block.py
+++ b/src/foremast/pipeline/construct_pipeline_block.py
@@ -25,13 +25,21 @@ from ..utils import generate_encoded_user_dat... | feat: Use Provider HC for Eureka enabled apps Set the Health Check to true for the default Provider when Eureka is enabled. See also: PSOBAT-<I> | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -1,8 +1,10 @@
-print 'THIS INSTALL SCRIPT MAY REQUIRE ROOT/ADMIN PERMISSIONS'
-print 'Especially if you installed python for "all users"'
-print 'try the following in command prompt if ensurepip is not sufficient'
-print '$ py... | setup.py: make print statements compatible with both Python 2 and 3 | py |
diff --git a/mplotqueries/plottypes/rsstate_type.py b/mplotqueries/plottypes/rsstate_type.py
index <HASH>..<HASH> 100644
--- a/mplotqueries/plottypes/rsstate_type.py
+++ b/mplotqueries/plottypes/rsstate_type.py
@@ -27,5 +27,11 @@ class RSStatePlotType(EventPlotType):
def accept_line(self, logline):
""" ... | rsstate plots now also accept "[rsMgr] replSet PRIMARY" lines (reflecting their own state changes). | py |
diff --git a/nudibranch/models.py b/nudibranch/models.py
index <HASH>..<HASH> 100644
--- a/nudibranch/models.py
+++ b/nudibranch/models.py
@@ -135,7 +135,7 @@ class Project(BasicBase, Base):
def verify_submission(self, submission):
results = {'missing': [], 'passed': [], 'failed': []}
- file_mapp... | Changed dict comprehensions to list comprehensions for Python <I> compatibility. | py |
diff --git a/tcex/tcex.py b/tcex/tcex.py
index <HASH>..<HASH> 100644
--- a/tcex/tcex.py
+++ b/tcex/tcex.py
@@ -1009,17 +1009,14 @@ class TcEx(object):
with open(results_file, 'r+') as fh:
results = ''
for line in fh.read().strip().split('\n'):
- try:
- ... | + update for local resource.tc issue. | py |
diff --git a/pywb/webagg/responseloader.py b/pywb/webagg/responseloader.py
index <HASH>..<HASH> 100644
--- a/pywb/webagg/responseloader.py
+++ b/pywb/webagg/responseloader.py
@@ -24,6 +24,9 @@ import glob
from requests.models import PreparedRequest
import urllib3
+import six.moves.http_client
+six.moves.http_client... | responseloader live loader: increase httplib max headers to avoid 'too many headers' error | py |
diff --git a/coupons/models.py b/coupons/models.py
index <HASH>..<HASH> 100644
--- a/coupons/models.py
+++ b/coupons/models.py
@@ -44,7 +44,8 @@ class CouponManager(models.Manager):
if not isinstance(users, list):
users = [users]
for user in users:
- CouponUser(user=user, coupo... | do not create user coupons with none user values | py |
diff --git a/pycommand/__init__.py b/pycommand/__init__.py
index <HASH>..<HASH> 100644
--- a/pycommand/__init__.py
+++ b/pycommand/__init__.py
@@ -22,10 +22,11 @@ __copyright__ = "Copyright (C) 2013-2016, 2018 Benjamin Althues"
__version_info__ = (0, 3, 0, 'beta', 0)
__version__ = '0.3.0'
-
from pycommand.pycomma... | Add __all__ property to package Expose CommandBase and run_and_exit when `from pycommand import *` is used. | py |
diff --git a/misuzu/exceptions.py b/misuzu/exceptions.py
index <HASH>..<HASH> 100644
--- a/misuzu/exceptions.py
+++ b/misuzu/exceptions.py
@@ -6,7 +6,16 @@ class HttpException(Exception):
self.status = status
-class UnknownMiddlewareException(Exception): pass
+class UnknownMiddlewareException(Exception):
+... | feature: add UnknownMiddlewareException | py |
diff --git a/singing_girl/__init__.py b/singing_girl/__init__.py
index <HASH>..<HASH> 100644
--- a/singing_girl/__init__.py
+++ b/singing_girl/__init__.py
@@ -1,10 +1,12 @@
#! -*- coding: utf8 -*-
+from __future__ import print_function
from singer import Singer
if __name__ == '__main__':
+
t = Singer()
- ... | Improve to support python3 | py |
diff --git a/tests/jenkins.py b/tests/jenkins.py
index <HASH>..<HASH> 100644
--- a/tests/jenkins.py
+++ b/tests/jenkins.py
@@ -14,7 +14,7 @@ import random
import optparse
-def run(platform, provider):
+def run(platform, provider, commit):
'''
RUN!
'''
@@ -25,7 +25,9 @@ def run(platform, provider):
... | Pass through the git commit to the pillar | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -74,7 +74,7 @@ else:
# your project is installed. For an analysis of "install_requires" vs pip's
# requirements files see:
# https://packaging.python.org/en/latest/requirements.html
- install_... | adding pandas as a dep | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -48,7 +48,6 @@ TEST_REQUIRES = ANSIBLE_REQUIRES + (
'flake8-commas==2.0.0',
'flake8-quotes==3.2.0',
'flake8-import-order==0.18.1',
- 'flake8-spellcheck==0.12.1 ; python_version >= "3"',
)
DOCS_REQUIRES = ... | Make `flake8-spellcheck` a dev-only requirement. This means spellcheck warnings won't fail CI tests, but will be available in local dev. | py |
diff --git a/pycbc/scheme.py b/pycbc/scheme.py
index <HASH>..<HASH> 100644
--- a/pycbc/scheme.py
+++ b/pycbc/scheme.py
@@ -82,7 +82,8 @@ class Scheme(object):
mgr.unlock()
mgr.shift_to(DefaultScheme)
def __del__(self):
- Scheme._single = None
+ if Scheme is not None:
+ ... | fix access of context class in case where it is already deleted | py |
diff --git a/source/rafcon/gui/models/selection.py b/source/rafcon/gui/models/selection.py
index <HASH>..<HASH> 100644
--- a/source/rafcon/gui/models/selection.py
+++ b/source/rafcon/gui/models/selection.py
@@ -69,7 +69,16 @@ def updates_selection(update_selection):
new_selection = self.get_all()
if... | Selection: Unselect removed models The Selection now observes all selected models and deselect those that are being removed/destroyed. | py |
diff --git a/openquake/calculators/hazard/disagg/core.py b/openquake/calculators/hazard/disagg/core.py
index <HASH>..<HASH> 100644
--- a/openquake/calculators/hazard/disagg/core.py
+++ b/openquake/calculators/hazard/disagg/core.py
@@ -156,7 +156,8 @@ class DisaggHazardCalculator(haz_general.BaseHazardCalculatorNext):
... | calcs/hazard/disagg/core: Clarified a comment. Former-commit-id: a<I>cf<I>e<I>f<I>bcd<I>bc<I>b<I>cc | py |
diff --git a/cqlengine/tests/statements/test_insert_statement.py b/cqlengine/tests/statements/test_insert_statement.py
index <HASH>..<HASH> 100644
--- a/cqlengine/tests/statements/test_insert_statement.py
+++ b/cqlengine/tests/statements/test_insert_statement.py
@@ -21,4 +21,7 @@ class InsertStatementTests(TestCase):
... | adding test around insert ttl | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -30,6 +30,7 @@ setup(
install_requires=["requests"],
extras_require={"tornado": ["tornado"]},
tests_require=["requests-mock"],
+ python_requires=">=3.4",
classifiers=[
"Development Status :: 4 -... | Add python_requires to help pip | py |
diff --git a/holoviews/core/data.py b/holoviews/core/data.py
index <HASH>..<HASH> 100644
--- a/holoviews/core/data.py
+++ b/holoviews/core/data.py
@@ -346,6 +346,10 @@ class Columns(Element):
dimensions = [self.get_dimension(d).name for d in dimensions]
return self.interface.dframe(self, dimension... | Added columns method to Columns and DataColumns | py |
diff --git a/argparseinator/__init__.py b/argparseinator/__init__.py
index <HASH>..<HASH> 100755
--- a/argparseinator/__init__.py
+++ b/argparseinator/__init__.py
@@ -5,7 +5,7 @@
"""
__file_name__ = "__init__.py"
__author__ = "luca"
-__version__ = "1.0.1"
+__version__ = "1.0.3"
__date__ = "2014-10-23"
from gette... | Version and description from __main__ module when are missing. | py |
diff --git a/install_hooks.py b/install_hooks.py
index <HASH>..<HASH> 100755
--- a/install_hooks.py
+++ b/install_hooks.py
@@ -325,8 +325,14 @@ def fix_alignak_cfg(config):
"== ==\n"
"== You should grant the write permissio... | Fix-#<I> - ownership message | py |
diff --git a/tests/test_send_self_env.py b/tests/test_send_self_env.py
index <HASH>..<HASH> 100644
--- a/tests/test_send_self_env.py
+++ b/tests/test_send_self_env.py
@@ -173,11 +173,11 @@ def test_parameter():
(ValueError, lambda x: x ** 2, [], {}),
(ValueError, type, [], {}),
(TypeError, Fa... | Reorder test cases with func being pos-only | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -4,7 +4,7 @@ import sys
from setuptools import setup, find_packages
from setuptools.command.install import install
-VERSION = '0.2.0rc1'
+VERSION = '0.2.0rc2'
class VerifyVersionCommand(install):
"""Custom command ... | Bump setup.py for <I>rc2 | py |
diff --git a/elpy/__main__.py b/elpy/__main__.py
index <HASH>..<HASH> 100644
--- a/elpy/__main__.py
+++ b/elpy/__main__.py
@@ -15,6 +15,11 @@ import elpy
from elpy.server import ElpyRPCServer
if __name__ == '__main__':
+ # Workaround for libraries writing to stderr while they should
+ # not. See #458. Can be ... | Close stderr for Elpy. This is a workaround which fixes #<I> for now. | py |
diff --git a/vcs/utils/diffs.py b/vcs/utils/diffs.py
index <HASH>..<HASH> 100644
--- a/vcs/utils/diffs.py
+++ b/vcs/utils/diffs.py
@@ -4,6 +4,7 @@
from difflib import unified_diff
from mercurial import patch
from mercurial.mdiff import diffopts
+from mercurial.match import match
from itertools import tee
from vcs.... | fixed gitdiff to diff only selected filenode, and not the whole changeset | py |
diff --git a/astroid/rebuilder.py b/astroid/rebuilder.py
index <HASH>..<HASH> 100644
--- a/astroid/rebuilder.py
+++ b/astroid/rebuilder.py
@@ -48,7 +48,7 @@ from typing import (
from astroid import nodes
from astroid._ast import ParserModule, get_parser_module, parse_function_type_comment
-from astroid.const import... | Remove unused code - TreeRebuilder docstring (#<I>) | py |
diff --git a/cumulusci/core/config.py b/cumulusci/core/config.py
index <HASH>..<HASH> 100644
--- a/cumulusci/core/config.py
+++ b/cumulusci/core/config.py
@@ -133,10 +133,12 @@ class BaseProjectConfig(BaseTaskFlowConfig):
search_path = ['config']
- def __init__(self, global_config_obj):
+ def __init__(se... | Allow config as a kwarg on BaseProjectConfig to make constructing test project configs easier | py |
diff --git a/pyoko/db/base.py b/pyoko/db/base.py
index <HASH>..<HASH> 100644
--- a/pyoko/db/base.py
+++ b/pyoko/db/base.py
@@ -609,8 +609,11 @@ class DBObjects(object):
joined_query = anded
if joined_query == '':
joined_query = '*:*'
- if settings.DEBUG:
- print("QRY => ... | wrapped debug print into try/except to prevent ioerrors | py |
diff --git a/cachalot/utils.py b/cachalot/utils.py
index <HASH>..<HASH> 100644
--- a/cachalot/utils.py
+++ b/cachalot/utils.py
@@ -103,7 +103,7 @@ def _find_subqueries_in_where(children):
yield grand_child
elif child_class is ExtraWhere:
raise IsRawQuery
- elif child_class ... | Attempt to fix issue #<I> by handling subquieries (#<I>) * Combine child_class passing to minimize if's | py |
diff --git a/main.py b/main.py
index <HASH>..<HASH> 100755
--- a/main.py
+++ b/main.py
@@ -6,7 +6,7 @@ import time
import algo as al
import common as c
-# test tortoiseHg Gilles
+
base = open('../ml-100k/u1.base', 'r')
test = open('../ml-100k/u1.test', 'r') | removed test gilles turtoise | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -1,16 +1,21 @@
-import sys
+import io
import os.path
import setuptools
+import sys
REQUIREMENT_DIR = "requirements"
+ENCODING = "utf8"
needs_pytest = set(["pytest", "test", "ptr"]).intersection(sys.argv)
pytest_runner... | Fix for appveyor - Python 3 | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -12,6 +12,11 @@ setup(
keywords='spreadhseets google api v4 wrapper csv pandas',
license='MIT',
url='https://github.com/xflr6/gsheets',
+ project_urls={
+ 'Documentation': 'https://gsheets.readthedocs.... | add project_urls for PyPI links | py |
diff --git a/packages/vaex-core/vaex/remote.py b/packages/vaex-core/vaex/remote.py
index <HASH>..<HASH> 100644
--- a/packages/vaex-core/vaex/remote.py
+++ b/packages/vaex-core/vaex/remote.py
@@ -60,9 +60,12 @@ def wrap_future_with_promise(future):
def listify(value):
- if isinstance(value, list):
+ # TODO: l... | feat(remote): support expressions, since remote dataframe only supported strings | py |
diff --git a/conway.py b/conway.py
index <HASH>..<HASH> 100755
--- a/conway.py
+++ b/conway.py
@@ -53,8 +53,8 @@ def random_board(max_x, max_y):
def clear(board, term):
"""Clear the droppings of the given board."""
- for x, y in board.iterkeys():
- print term.move(y, x) + ' ',
+ for y in xrange(ter... | Clear more efficiently. I didn't bother to benchmark, but looking at the `top` numbers for the admittedly random runs, this seems to be more efficient, which is what I'd expect. | py |
diff --git a/airflow/operators/sensors.py b/airflow/operators/sensors.py
index <HASH>..<HASH> 100644
--- a/airflow/operators/sensors.py
+++ b/airflow/operators/sensors.py
@@ -122,6 +122,8 @@ class ExternalTaskSensor(BaseSensorOperator):
'{self.execution_date} ... '.format(**locals()))
TI = TaskIns... | Patching ExternalTaskSensor for non mysql DBs | py |
diff --git a/tensorlayer/cost.py b/tensorlayer/cost.py
index <HASH>..<HASH> 100644
--- a/tensorlayer/cost.py
+++ b/tensorlayer/cost.py
@@ -99,8 +99,8 @@ def dice_coe(output, target, epsilon=1e-10):
Examples
---------
- >>> outputs = pixel_wise_softmax(network.outputs)
- >>> dice_loss = 1 - dice_coe(ou... | [docs] cost iou, dice | py |
diff --git a/sipprverse/setup.py b/sipprverse/setup.py
index <HASH>..<HASH> 100644
--- a/sipprverse/setup.py
+++ b/sipprverse/setup.py
@@ -4,7 +4,7 @@ __author__ = 'adamkoziol'
setup(
name="sipprverse",
- version="0.0.14",
+ version="0.0.17",
packages=find_packages(),
include_package_data=True,
... | Still trying to get conda to work | py |
diff --git a/dwave/cloud/__init__.py b/dwave/cloud/__init__.py
index <HASH>..<HASH> 100644
--- a/dwave/cloud/__init__.py
+++ b/dwave/cloud/__init__.py
@@ -53,9 +53,12 @@ def _apply_loglevel_from_env(logger):
name = os.getenv('DWAVE_LOG_LEVEL') or ''
if not name:
return
- levels = {'debug': logging... | Accept all log level names in env var | py |
diff --git a/holoviews/__init__.py b/holoviews/__init__.py
index <HASH>..<HASH> 100644
--- a/holoviews/__init__.py
+++ b/holoviews/__init__.py
@@ -30,6 +30,13 @@ except:
archive = FileArchive()
+def info(obj, ansi=True):
+ """
+ Simple alias to Store.info method.
+ """
+ Store.info(obj, ansi=ansi)
... | Added simple info function as an alias to Store.info | py |
diff --git a/spyderlib/widgets/variableexplorer/collectionseditor.py b/spyderlib/widgets/variableexplorer/collectionseditor.py
index <HASH>..<HASH> 100644
--- a/spyderlib/widgets/variableexplorer/collectionseditor.py
+++ b/spyderlib/widgets/variableexplorer/collectionseditor.py
@@ -1065,6 +1065,10 @@ class BaseTableVie... | Variable Explorer: Fix copying values from variables that are not Arrays or Dataframes Fixes #<I> | py |
diff --git a/elastic/cli/elastic.py b/elastic/cli/elastic.py
index <HASH>..<HASH> 100755
--- a/elastic/cli/elastic.py
+++ b/elastic/cli/elastic.py
@@ -23,6 +23,7 @@ The elastic command is a command-line tool exposing the functionality
of elastic library for direct use - without writing any python code.
'''
+from __... | Add __future__ preamble to script | py |
diff --git a/tests/test_deterministic.py b/tests/test_deterministic.py
index <HASH>..<HASH> 100644
--- a/tests/test_deterministic.py
+++ b/tests/test_deterministic.py
@@ -38,6 +38,14 @@ class ParseTestCase(unittest.TestCase):
with self.assertRaises(IntoDPUnexpectedValueError):
xformer("a(qq)")([di... | Add a test for exception correctly raised on bad value for base case | py |
diff --git a/wes_service/arvados_wes.py b/wes_service/arvados_wes.py
index <HASH>..<HASH> 100644
--- a/wes_service/arvados_wes.py
+++ b/wes_service/arvados_wes.py
@@ -24,8 +24,9 @@ def get_api(authtoken=None):
if not connexion.request.headers.get('Authorization'):
raise MissingAuthorization()
... | Make wes-client token header consistent with token header for downloads. | py |
diff --git a/src/markupsafe/__init__.py b/src/markupsafe/__init__.py
index <HASH>..<HASH> 100644
--- a/src/markupsafe/__init__.py
+++ b/src/markupsafe/__init__.py
@@ -10,7 +10,7 @@ if t.TYPE_CHECKING:
pass
-__version__ = "2.0.0rc1"
+__version__ = "2.0.0rc2"
_striptags_re = re.compile(r"(<!--.*?-->|<... | release version <I>rc2 | py |
diff --git a/payu/scheduler/pbs.py b/payu/scheduler/pbs.py
index <HASH>..<HASH> 100644
--- a/payu/scheduler/pbs.py
+++ b/payu/scheduler/pbs.py
@@ -78,7 +78,9 @@ def get_qstat_info(qflag, header, projects=None, users=None):
cmd = '{} {}'.format(qstat, qflag)
cmd = shlex.split(cmd)
- output = subprocess.ch... | Python 3 incompatibility with return string from subprocess fixed | py |
diff --git a/doc/source/conf.py b/doc/source/conf.py
index <HASH>..<HASH> 100644
--- a/doc/source/conf.py
+++ b/doc/source/conf.py
@@ -53,7 +53,7 @@ master_doc = 'index'
# General information about the project.
project = 'sgqlc'
-copyright = '2018, ProFUSION Sistemas e Solucoes LTDA'
+copyright = 'ProFUSION Sistema... | doc/conf: remove date from copyright | py |
diff --git a/tensorboard/plugins/hparams/api.py b/tensorboard/plugins/hparams/api.py
index <HASH>..<HASH> 100644
--- a/tensorboard/plugins/hparams/api.py
+++ b/tensorboard/plugins/hparams/api.py
@@ -29,6 +29,7 @@ IntInterval = summary_v2.IntInterval
Metric = summary_v2.Metric
RealInterval = summary_v2.RealInterval
h... | hparams: expose `hparams_config_pb` from `api` (#<I>) Summary: This should have been in #<I>. Test Plan: That unit tests pass is sufficient. We don’t have demos that exercise this endpoint. (The implementation is tested in `summary_v2_test`.) wchargin-branch: hparams-config-pb-export | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -1,4 +1,3 @@
-import codecs
import os
from setuptools import find_packages, setup
@@ -10,10 +9,6 @@ with open(os.path.join(base_dir, "tikzplotlib", "__about__.py"), "rb") as f:
exec(f.read(), about)
-def read(fnam... | Get rid of codecs module Remove the codecs module and replace the obsolete codecs.open by open in Python 3.x | py |
diff --git a/Tank/MonCollector/agent/agent.py b/Tank/MonCollector/agent/agent.py
index <HASH>..<HASH> 100755
--- a/Tank/MonCollector/agent/agent.py
+++ b/Tank/MonCollector/agent/agent.py
@@ -260,8 +260,10 @@ class Disk(AbstractMetric):
parts = mount.split(" ")
rp = os.path.realpath(par... | Fix collecting disk metrics of LVM devices on dom0 | py |
diff --git a/tornado/testing.py b/tornado/testing.py
index <HASH>..<HASH> 100644
--- a/tornado/testing.py
+++ b/tornado/testing.py
@@ -26,6 +26,7 @@ from tornado.httpserver import HTTPServer
from tornado.stack_context import StackContext, NullContext
import contextlib
import logging
+import signal
import sys
impor... | Add an option to the test runner to kill the process on SIGINT instead of raising an exception. This makes it easier to work with tests that get into uninterruptible states (such as threading.Lock deadlocks) | py |
diff --git a/buffer/managers/updates.py b/buffer/managers/updates.py
index <HASH>..<HASH> 100644
--- a/buffer/managers/updates.py
+++ b/buffer/managers/updates.py
@@ -2,6 +2,7 @@ from buffer.models.update import Update
PATHS = {
'GET_PENDING': 'profiles/%s/updates/pending.json',
+ 'GET_SENT': 'profiles/%s/update... | Improve proper using of property decorator and logic | py |
diff --git a/requests_negotiate/__init__.py b/requests_negotiate/__init__.py
index <HASH>..<HASH> 100644
--- a/requests_negotiate/__init__.py
+++ b/requests_negotiate/__init__.py
@@ -31,7 +31,7 @@ class HTTPNegotiateAuth(AuthBase):
@property
def username(self):
logging.debug("Obtaining username from ... | Fix "Keytab /etc/krb5.keytab is nonexistent..." error on Ubuntu <I> LTS The Kerberos libraries that exist in Ubuntu <I> require that the credential usage type (C_ACCEPT or C_INITIATE) is specified in the Credential() constructor. | py |
diff --git a/pygeoip/__init__.py b/pygeoip/__init__.py
index <HASH>..<HASH> 100644
--- a/pygeoip/__init__.py
+++ b/pygeoip/__init__.py
@@ -101,13 +101,13 @@ class GeoIP(object):
self._flags &= ~const.MMAP_CACHE
if self._flags & const.MMAP_CACHE:
- f = open(filename, 'rb')
+ ... | Open database with correct encoding in mmap and mem cache mode This is already done when database is open without caching or mmap. The current implementation leads to different behaviour when different flags are used. | py |
diff --git a/eqcorrscan/utils/Sfile_util.py b/eqcorrscan/utils/Sfile_util.py
index <HASH>..<HASH> 100644
--- a/eqcorrscan/utils/Sfile_util.py
+++ b/eqcorrscan/utils/Sfile_util.py
@@ -1451,7 +1451,12 @@ def test_rw():
import os
from obspy.core.event import Pick, WaveformStreamID, Arrival, Amplitude
from o... | Update function reading in Sfile_util for obspy <I> on extra tests Former-commit-id: cd<I>dddf<I>c<I>d<I>ca<I>ae<I>ad0 | py |
diff --git a/collatex-pythonport/collatex/display_module.py b/collatex-pythonport/collatex/display_module.py
index <HASH>..<HASH> 100644
--- a/collatex-pythonport/collatex/display_module.py
+++ b/collatex-pythonport/collatex/display_module.py
@@ -48,7 +48,7 @@ def display_alignment_table_as_html(at):
return displa... | minor edit to csv comment | py |
diff --git a/pandas/core/generic.py b/pandas/core/generic.py
index <HASH>..<HASH> 100644
--- a/pandas/core/generic.py
+++ b/pandas/core/generic.py
@@ -7855,7 +7855,7 @@ empty series identically.
>>> pd.Series([np.nan]).prod()
1.0
->>> pd.Series([np.nan]).sum(min_count=1)
+>>> pd.Series([np.nan]).prod(min_count=1)
... | DOC: correct min_count param docstring (#<I>) | py |
diff --git a/eyap/core/github_comments.py b/eyap/core/github_comments.py
index <HASH>..<HASH> 100644
--- a/eyap/core/github_comments.py
+++ b/eyap/core/github_comments.py
@@ -165,8 +165,8 @@ class GitHubCommentThread(comments.CommentThread):
def sleep_if_necessary(cls, user, token, endpoint='search', msg=''):
... | Make it so anonymous users can check rate limit | py |
diff --git a/tests/test_20_main_to_netcdf.py b/tests/test_20_main_to_netcdf.py
index <HASH>..<HASH> 100644
--- a/tests/test_20_main_to_netcdf.py
+++ b/tests/test_20_main_to_netcdf.py
@@ -3,6 +3,7 @@ import os.path
import click.testing
import pytest
+pytest.importorskip("scipy", reason="scpy not found")
xr = pytest... | Skip test is cannot save to netcdf | py |
diff --git a/backtrader/plot.py b/backtrader/plot.py
index <HASH>..<HASH> 100644
--- a/backtrader/plot.py
+++ b/backtrader/plot.py
@@ -82,6 +82,9 @@ class PlotScheme(object):
sellcolor = 'r'
buymarkersize = sellmarkersize = 8.0
+ plotcashvalue = True
+
+
class Plot(object):
__metaclass__ = metabase... | Plot support for Cash/Value Observers | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -25,7 +25,7 @@ setup(
author_email='ruslan.spivak@gmail.com',
packages=find_packages('src'),
package_dir={'': 'src'},
- install_requires=['slimit'],
+ install_requires=['slimit', 'cssmin'],
zip_safe=F... | Add 'cssmin' as a dependency | py |
diff --git a/pycbc/waveform/waveform.py b/pycbc/waveform/waveform.py
index <HASH>..<HASH> 100644
--- a/pycbc/waveform/waveform.py
+++ b/pycbc/waveform/waveform.py
@@ -65,7 +65,8 @@ def parsecs_to_meters(distance):
default_args = {'spin1x':0,'spin1y':0,'spin1z':0,
'spin2x':0,'spin2y':0,'spin2z':0,
- ... | added default for amplitude order and phase order to be maximum implemented | py |
diff --git a/owncloud/test/test.py b/owncloud/test/test.py
index <HASH>..<HASH> 100644
--- a/owncloud/test/test.py
+++ b/owncloud/test/test.py
@@ -429,6 +429,28 @@ class TestFileAccess(unittest.TestCase):
'x'
)
+ def test_copy_in_place(self):
+ """Test copy in place"""
+
+ self.... | added test_copy_in_place | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -50,7 +50,7 @@ setup(
download_url='https://github.com/tomduck/pandoc-tablenos/tarball/' + \
__version__,
- install_requires=['pandoc-xnos >= 2.1.2, < 3.0'],
+ install_requires=['pandoc-xnos >= 2... | Bumped pandoc-xnos requirement. | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.