diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/baselines/common/atari_wrappers_deprecated.py b/baselines/common/atari_wrappers_deprecated.py
index <HASH>..<HASH> 100644
--- a/baselines/common/atari_wrappers_deprecated.py
+++ b/baselines/common/atari_wrappers_deprecated.py
@@ -130,7 +130,6 @@ class ProcessFrame84(gym.ObservationWrapper):
@staticm... | remove unnecessary initialization of variable resized_screen | py |
diff --git a/holoviews/view/dataviews.py b/holoviews/view/dataviews.py
index <HASH>..<HASH> 100644
--- a/holoviews/view/dataviews.py
+++ b/holoviews/view/dataviews.py
@@ -119,6 +119,7 @@ class DataView(Layer):
return pd.DataFrame(self.data, columns=columns)
+
class Scatter(DataView):
"""
Scatter... | Fixed Bars now provides same API as Histogram | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -28,6 +28,8 @@ setup(name='ploneintranet.workspace',
install_requires=[
'setuptools',
'collective.workspace',
+ 'plone.app.dexterity [grok]',
+ 'plone.namedfile [blobs]',
... | Fixed missing grok deps. Now starts up OK | py |
diff --git a/paypal/standard/forms.py b/paypal/standard/forms.py
index <HASH>..<HASH> 100644
--- a/paypal/standard/forms.py
+++ b/paypal/standard/forms.py
@@ -33,6 +33,7 @@ class PayPalPaymentsForm(forms.Form):
"""
CMD_CHOICES = (
("_xclick", "Buy now or Donations"),
+ ("_donations", "Donation... | Added a command _donations | py |
diff --git a/cloud4rpid.py b/cloud4rpid.py
index <HASH>..<HASH> 100644
--- a/cloud4rpid.py
+++ b/cloud4rpid.py
@@ -25,7 +25,7 @@ def find_sensors():
def read_sensor(address):
- readings = read_whole_file(os.path.join(W1_DEVICES, address, 'w1_slave'))
+ readings = read_whole_file(os.path.join(sensor_full_... | DRY'fy a little | py |
diff --git a/anyconfig/backend/yaml.py b/anyconfig/backend/yaml.py
index <HASH>..<HASH> 100644
--- a/anyconfig/backend/yaml.py
+++ b/anyconfig/backend/yaml.py
@@ -67,7 +67,7 @@ class Parser(anyconfig.backend.base.LParser, anyconfig.backend.base.L2Parser,
Parser for YAML files.
"""
_type = "yaml"
- _ex... | fix: allow updating extensions of yaml backend | py |
diff --git a/stellar_base/address.py b/stellar_base/address.py
index <HASH>..<HASH> 100644
--- a/stellar_base/address.py
+++ b/stellar_base/address.py
@@ -1,5 +1,5 @@
# coding: utf-8
-
+from stellar_base.exceptions import NotValidParamError
from .horizon import Horizon
from .keypair import Keypair
from .horizon imp... | raise NotValidParamError in Address | py |
diff --git a/paramiko/transport.py b/paramiko/transport.py
index <HASH>..<HASH> 100644
--- a/paramiko/transport.py
+++ b/paramiko/transport.py
@@ -164,6 +164,8 @@ class Transport (threading.Thread):
:param socket sock:
a socket or socket-like object to create the session over.
"""
+ ... | Set Transport.active to False early in Transport.__init__. | py |
diff --git a/raven/contrib/celery/__init__.py b/raven/contrib/celery/__init__.py
index <HASH>..<HASH> 100644
--- a/raven/contrib/celery/__init__.py
+++ b/raven/contrib/celery/__init__.py
@@ -33,10 +33,7 @@ class CeleryClient(CeleryMixin, Client):
class CeleryFilter(logging.Filter):
def filter(self, record):
... | Just make it return in CeleryFilter | py |
diff --git a/expynent/patterns.py b/expynent/patterns.py
index <HASH>..<HASH> 100644
--- a/expynent/patterns.py
+++ b/expynent/patterns.py
@@ -299,6 +299,9 @@ LATITUDE = r'^(\+|-)?(?:90(?:(?:\.0{1,14})?)|(?:[0-9]|' \
LONGITUDE = r'^(\+|-)?(?:180(?:(?:\.0{1,14})?)|(?:[0-9]|[1-9]' \
r'[0-9]|1[0-7][0-9])(?:(... | Added RegEX for Indian Phone Numbers | py |
diff --git a/src/escpos/printer.py b/src/escpos/printer.py
index <HASH>..<HASH> 100644
--- a/src/escpos/printer.py
+++ b/src/escpos/printer.py
@@ -364,6 +364,7 @@ if _WIN32PRINT:
else:
self.printer_name = win32print.GetDefaultPrinter()
self.hPrinter = None
+ self.op... | Update printer.py without the call to open function, the printer isn't initialize to print, i tested on a generic and epson physical printers. | py |
diff --git a/mitogen/ssh.py b/mitogen/ssh.py
index <HASH>..<HASH> 100644
--- a/mitogen/ssh.py
+++ b/mitogen/ssh.py
@@ -289,7 +289,11 @@ class Stream(mitogen.parent.Stream):
self._host_key_prompt()
elif HOSTKEY_FAIL in buf.lower():
raise HostKeyError(self.hostkey_failed_msg... | Match "user@host: Permission denied ..." messages OpenSSH <I> changed the text of the permission denied message. As a result ssh_test.SshTest.test_password_required and test_pubkey_required were failing on an Ubuntu <I> client, which ships OpenSSH <I>. Refs - <URL> | py |
diff --git a/alot/helper.py b/alot/helper.py
index <HASH>..<HASH> 100644
--- a/alot/helper.py
+++ b/alot/helper.py
@@ -291,8 +291,9 @@ def mimewrap(path, filename=None, ctype=None):
ctype = ctype or guess_mimetype(content)
maintype, subtype = ctype.split('/', 1)
if maintype == 'text':
- # Note: we... | Decode the text message according to the encoding guessed by libmagic in helper.mimewrap | py |
diff --git a/cyvcf2/tests/test_reader.py b/cyvcf2/tests/test_reader.py
index <HASH>..<HASH> 100644
--- a/cyvcf2/tests/test_reader.py
+++ b/cyvcf2/tests/test_reader.py
@@ -484,16 +484,17 @@ def test_var_type():
def _get_line_for(v):
import gzip
- for i, line in enumerate(gzip.open(VCF_PATH), start=1):
- ... | Avoid a Python <I> regression in iterating GzipFiles Open the file with a context manager, so we're holding onto a reference to it, for the lifetime of the iteration. This avoids hitting <URL> | py |
diff --git a/yala/main.py b/yala/main.py
index <HASH>..<HASH> 100644
--- a/yala/main.py
+++ b/yala/main.py
@@ -119,7 +119,8 @@ class Main:
LinterRunner.targets = targets
linters = self._config.get_linter_classes()
with Pool() as pool:
- linter_cfg_tgts = ((l, self._config, targets)... | Fix new linter issue in yala code | py |
diff --git a/spanner/tests/system/test_system.py b/spanner/tests/system/test_system.py
index <HASH>..<HASH> 100644
--- a/spanner/tests/system/test_system.py
+++ b/spanner/tests/system/test_system.py
@@ -274,12 +274,10 @@ class TestDatabaseAPI(unittest.TestCase, _TestData):
# We want to make sure the operation ... | Harden spanner system tests further. (#<I>) Because of quota, we are sharing the instance we use to test CRUD of databases: we therefore cannot rely on having only the expected databases present, as other tests may be running simultaneously, or may have failed in ways which left 'stray' databases in the instance. | py |
diff --git a/bitmerchant/wallet/bip32.py b/bitmerchant/wallet/bip32.py
index <HASH>..<HASH> 100644
--- a/bitmerchant/wallet/bip32.py
+++ b/bitmerchant/wallet/bip32.py
@@ -600,7 +600,7 @@ class Wallet(object):
# Make sure the password string is bytes
key = ensure_bytes(password)
data = unhexli... | For real? Python3 doesn't have xrange. | py |
diff --git a/shutit_global.py b/shutit_global.py
index <HASH>..<HASH> 100644
--- a/shutit_global.py
+++ b/shutit_global.py
@@ -1921,7 +1921,11 @@ END_''' + random_id)
"""
cfg = self.cfg
lines = string.split('\r\n')
- #print lines
+ # sometimes they're separated by just a carriage return...
+ new_lines = []
... | verbose update again, and split by carriage return only | py |
diff --git a/gwpy/time/_tconvert.py b/gwpy/time/_tconvert.py
index <HASH>..<HASH> 100644
--- a/gwpy/time/_tconvert.py
+++ b/gwpy/time/_tconvert.py
@@ -239,12 +239,15 @@ def _datetime_to_time(dtm):
return Time(dtm, scale='utc')
-def _time_to_gps(t):
+def _time_to_gps(time):
"""Convert a `Time` into `LIGOTi... | time: improved bad variable name to appease codacy | py |
diff --git a/tests/journey/test_chamber_of_deputies_dataset.py b/tests/journey/test_chamber_of_deputies_dataset.py
index <HASH>..<HASH> 100644
--- a/tests/journey/test_chamber_of_deputies_dataset.py
+++ b/tests/journey/test_chamber_of_deputies_dataset.py
@@ -66,7 +66,5 @@ class TestChamberOfDeputiesDataset(TestCase):
... | Uses subTest to improve error reports | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -26,10 +26,12 @@ class TestCommand(Command):
'''Scan the test directory for any tests, and run them.'''
description = 'run the test suite for the package'
- user_options = [('failfast', None, 'Stop upon first fa... | Add test coverage analyse Based on pytest_coverage. Pythran currently has a pretty decent <I>% coverage rate! | py |
diff --git a/pytplot/TVarFigureSpec.py b/pytplot/TVarFigureSpec.py
index <HASH>..<HASH> 100644
--- a/pytplot/TVarFigureSpec.py
+++ b/pytplot/TVarFigureSpec.py
@@ -202,8 +202,8 @@ class TVarFigureSpec(object):
#Sometimes X will be huge, we'll need to cut down so that each x will stay about 1 pixel in size
... | Speed up specplots a bit | py |
diff --git a/gruvi/futures.py b/gruvi/futures.py
index <HASH>..<HASH> 100644
--- a/gruvi/futures.py
+++ b/gruvi/futures.py
@@ -118,7 +118,7 @@ class PoolBase(object):
if self._closed:
raise RuntimeError('pool is closed')
result = Future()
- self._queue.put((func, args, result))
+ ... | Bugfix in Pool.submit() Use Queue.put_nowait() because submit() should never wait. | py |
diff --git a/livv.py b/livv.py
index <HASH>..<HASH> 100755
--- a/livv.py
+++ b/livv.py
@@ -72,9 +72,6 @@ import socket
from optparse import OptionParser
-import util.dependencies
-util.dependencies.check()
-
###############################################################################
# ... | Moved dependency checking to be better for help option. | py |
diff --git a/custodian/vasp/handlers.py b/custodian/vasp/handlers.py
index <HASH>..<HASH> 100644
--- a/custodian/vasp/handlers.py
+++ b/custodian/vasp/handlers.py
@@ -82,6 +82,7 @@ class VaspErrorHandler(ErrorHandler):
self.errors = set()
def check(self):
+ vi = VaspInput.from_directory(".")
se... | make sure we do not fix the brmix error if we specify NELECT. Otherwise any run with a charge cell (for instance defect computations) will be detected as having a brmix error | py |
diff --git a/blitzdb/backends/file/queries.py b/blitzdb/backends/file/queries.py
index <HASH>..<HASH> 100644
--- a/blitzdb/backends/file/queries.py
+++ b/blitzdb/backends/file/queries.py
@@ -183,8 +183,8 @@ def all_query(expression):
"""Return store key for documents that satisfy expression."""
ev = e... | Remove assigments for unused variables | py |
diff --git a/tests/organization.py b/tests/organization.py
index <HASH>..<HASH> 100644
--- a/tests/organization.py
+++ b/tests/organization.py
@@ -320,7 +320,7 @@ class organization(Spec):
}
expect_releases(entries, expected)
- def bugs_before_major_releases_associate_with_previous_release(self):... | Rename test which now (with previous commit) proves another bug | py |
diff --git a/pysos/utils.py b/pysos/utils.py
index <HASH>..<HASH> 100644
--- a/pysos/utils.py
+++ b/pysos/utils.py
@@ -941,7 +941,7 @@ class ActivityNotifier(threading.Thread):
self.event.wait(self.delay)
if self.event.is_set():
if registered:
- sys.stderr.w... | Move cursor line to beginning of line and erease text after, when a step is complete (#<I>) | py |
diff --git a/coaster/app.py b/coaster/app.py
index <HASH>..<HASH> 100644
--- a/coaster/app.py
+++ b/coaster/app.py
@@ -94,5 +94,5 @@ def load_config_from_file(app, filepath):
except IOError:
# TODO: Can we print to sys.stderr in production? Should this go to
# logs instead?
- print >> sys.... | Slightly friendlier warning message. | py |
diff --git a/ceam/analysis.py b/ceam/analysis.py
index <HASH>..<HASH> 100644
--- a/ceam/analysis.py
+++ b/ceam/analysis.py
@@ -7,7 +7,6 @@ from datetime import timedelta
import pandas as pd
import numpy as np
-from flufl.lock import Lock
def digits(x):
if str(x) == 'nan':
@@ -155,18 +154,11 @@ Mean runtime:... | Remove locking on results files because we are no longer doing concurrent writes | py |
diff --git a/src/board.py b/src/board.py
index <HASH>..<HASH> 100755
--- a/src/board.py
+++ b/src/board.py
@@ -58,6 +58,9 @@ elif detector.board.RASPBERRY_PI_B_REV2:
elif board_id == ap_board.BEAGLEBONE_BLACK:
from adafruit_blinka.board.beagleboard.beaglebone_black import *
+elif board_id == ap_board.BEAGLEBONE... | add BeagleBone Green BeagleBone Green has same pin headers as Black | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -170,16 +170,16 @@ setup(name='llvmlite',
description="lightweight wrapper around basic LLVM functionality",
version=versioneer.get_version(),
classifiers=[
- "Development Status :: 4 - Beta",
- ... | fix indentation In Python we do prefer indentation to be done with 4 spaces. | py |
diff --git a/astrobase/varclass/fakelcrecovery.py b/astrobase/varclass/fakelcrecovery.py
index <HASH>..<HASH> 100644
--- a/astrobase/varclass/fakelcrecovery.py
+++ b/astrobase/varclass/fakelcrecovery.py
@@ -1610,8 +1610,8 @@ def parallel_periodicvar_recovery(simbasedir,
'alias_half_periodivars':alia... | fakelcrecovery: added periodicvar_recovery fn, now testing... | py |
diff --git a/django_countries/tests/test_fields.py b/django_countries/tests/test_fields.py
index <HASH>..<HASH> 100644
--- a/django_countries/tests/test_fields.py
+++ b/django_countries/tests/test_fields.py
@@ -28,7 +28,8 @@ class TestCountryField(TestCase):
def test_flag(self):
person = Person(name='Ch... | Allow tests to pass when STATIC_URL of a Django project is not '/static-assets/' | py |
diff --git a/abydos/distance/_raup_crick.py b/abydos/distance/_raup_crick.py
index <HASH>..<HASH> 100644
--- a/abydos/distance/_raup_crick.py
+++ b/abydos/distance/_raup_crick.py
@@ -50,7 +50,6 @@ class RaupCrick(_TokenDistance):
Notes
-----
-
Observe that Raup-Crick similarity is related to Henderson-... | satisfied pydocstyle warnings | py |
diff --git a/plugins/worker/server/__init__.py b/plugins/worker/server/__init__.py
index <HASH>..<HASH> 100644
--- a/plugins/worker/server/__init__.py
+++ b/plugins/worker/server/__init__.py
@@ -78,6 +78,9 @@ def schedule(event):
task = job.get('celeryTaskName', 'girder_worker.run')
+ # Set the job ... | Fix race condition when setting the job status It turns out there were instances in which calling send_task would trigger the prerun signal *before* updating the job status to queued. The prerun signal sets the job status to running, so this resulted in tasks whose timeline was running -> queued -> success|fail. | py |
diff --git a/c3d.py b/c3d.py
index <HASH>..<HASH> 100644
--- a/c3d.py
+++ b/c3d.py
@@ -1,5 +1,7 @@
'''A Python module for reading and writing C3D files.'''
+from __future__ import unicode_literals
+
import array
import io
import numpy as np
@@ -266,7 +268,7 @@ class Param(object):
self.bytes_per_element,... | Fix bytes/unicode error in Param This change cleans up a bare string (interpreted as unicode in py3 and "str" in py2) to be explicit that it is actually bytes. Also import unicode literals to be more explicit about bare string literals. Fixes #5. | py |
diff --git a/workshift/views.py b/workshift/views.py
index <HASH>..<HASH> 100644
--- a/workshift/views.py
+++ b/workshift/views.py
@@ -751,16 +751,18 @@ def assign_shifts_view(request, semester):
pools = WorkshiftPool.objects.filter(semester=semester).order_by('-is_primary', 'title')
workshifters = WorkshiftP... | Skip workshifters who have all assigned hours | py |
diff --git a/norduniclient/testing.py b/norduniclient/testing.py
index <HASH>..<HASH> 100644
--- a/norduniclient/testing.py
+++ b/norduniclient/testing.py
@@ -51,7 +51,7 @@ class Neo4jTemporaryInstance(object):
self._process = subprocess.Popen(['docker', 'run', '--rm', '--name', '{!s}'.format(self._docker_name... | Use official neo4j docker image | py |
diff --git a/peeweedbevolve.py b/peeweedbevolve.py
index <HASH>..<HASH> 100644
--- a/peeweedbevolve.py
+++ b/peeweedbevolve.py
@@ -479,7 +479,7 @@ def indexes_are_same(i1, i2):
return unicode(i1.table)==unicode(i2.table) and i1.columns==i2.columns and i1.unique==i2.unique
def normalize_indexes(indexes):
- return... | Do not sort order of columns in index now that get_indexes returns them in the proper order. | py |
diff --git a/test/tuner_test/naive_trial.py b/test/tuner_test/naive_trial.py
index <HASH>..<HASH> 100644
--- a/test/tuner_test/naive_trial.py
+++ b/test/tuner_test/naive_trial.py
@@ -1,6 +1,6 @@
import nni
-params = nni.get_parameters()
+params = nni.get_next_parameter()
print('params:', params)
x = params['x'] | Update naive_trial.py (#<I>) | py |
diff --git a/rfc6266.py b/rfc6266.py
index <HASH>..<HASH> 100644
--- a/rfc6266.py
+++ b/rfc6266.py
@@ -66,10 +66,16 @@ class ContentDisposition(object):
if 'filename*' in self.assocs:
return self.assocs['filename*'].string
elif 'filename' in self.assocs:
+ # XXX Reject non-asci... | Properly parse, then percent-decode, the location fallback. | py |
diff --git a/tensorlayer/cost.py b/tensorlayer/cost.py
index <HASH>..<HASH> 100644
--- a/tensorlayer/cost.py
+++ b/tensorlayer/cost.py
@@ -32,12 +32,11 @@ def cross_entropy(output, target, name=None):
- About cross-entropy: `wiki <https://en.wikipedia.org/wiki/Cross_entropy>`_.\n
- The code is borrowed from: ... | [cost] cross entropy no name under TF<I> | py |
diff --git a/features/steps/metric_results.py b/features/steps/metric_results.py
index <HASH>..<HASH> 100644
--- a/features/steps/metric_results.py
+++ b/features/steps/metric_results.py
@@ -30,7 +30,6 @@ def step_impl(context):
@when(u'I call the metric results of method with the results root id of the given proces... | Removed unused print on metric result steps | py |
diff --git a/shakedown/cli/main.py b/shakedown/cli/main.py
index <HASH>..<HASH> 100644
--- a/shakedown/cli/main.py
+++ b/shakedown/cli/main.py
@@ -242,7 +242,13 @@ def cli(**args):
if report.skipped:
state = 'skip'
- if state and report.when == 'call':
+ ... | (DCOS-<I>) Print output from setup/teardown phases | py |
diff --git a/diff_cover/violationsreporters/violations_reporter.py b/diff_cover/violationsreporters/violations_reporter.py
index <HASH>..<HASH> 100644
--- a/diff_cover/violationsreporters/violations_reporter.py
+++ b/diff_cover/violationsreporters/violations_reporter.py
@@ -129,7 +129,7 @@ class XmlCoverageReporter(Bas... | Fixed an issue where jacoco coverage information was not matching source information on Windows | py |
diff --git a/cetus/queries/reading.py b/cetus/queries/reading.py
index <HASH>..<HASH> 100644
--- a/cetus/queries/reading.py
+++ b/cetus/queries/reading.py
@@ -92,6 +92,9 @@ async def generate_mysql_group_wise_query(
f'FROM {table_name} ')
query = await add_filters(query,
... | Replaced pagination inside of JOIN clause for MySQL group-wise query | py |
diff --git a/atomic_reactor/inner.py b/atomic_reactor/inner.py
index <HASH>..<HASH> 100644
--- a/atomic_reactor/inner.py
+++ b/atomic_reactor/inner.py
@@ -364,16 +364,15 @@ class DockerBuildWorkflow(object):
if self.build_result.is_failed():
raise PluginFailedException(self.build... | Improve error logging Move some statements that cannot raise PluginFailedException outside the try block. If running exit plugins due to an exception, explain what it was. | py |
diff --git a/amino/either.py b/amino/either.py
index <HASH>..<HASH> 100644
--- a/amino/either.py
+++ b/amino/either.py
@@ -95,14 +95,6 @@ class Either(Generic[A, B], Implicits, implicits=True):
def lmap(self, f: Callable[[A], Any]):
return Left(f(self.value)) if self.is_left else self # type: ignore
- ... | remove `Either.zip` in favor of `EitherZip` | py |
diff --git a/tests/integration/client/test_kwarg.py b/tests/integration/client/test_kwarg.py
index <HASH>..<HASH> 100644
--- a/tests/integration/client/test_kwarg.py
+++ b/tests/integration/client/test_kwarg.py
@@ -1,10 +1,5 @@
-# -*- coding: utf-8 -*-
-
-from __future__ import absolute_import, print_function, unicode_... | Drop Py2 and six on tests/integration/client/test_kwarg.py | py |
diff --git a/git/cmd.py b/git/cmd.py
index <HASH>..<HASH> 100644
--- a/git/cmd.py
+++ b/git/cmd.py
@@ -87,6 +87,8 @@ class Git(LazyMixin):
# try to kill it
try:
os.kill(self.proc.pid, 2) # interrupt signal
+ except OSError:
+ pass # ignore error whe... | Ignore signal exception on AutoInterrupt destructor. When command run as subprocess, AutoInterrupt will kill the process on destructor. However, if process already finished, it raise OSError exception. This fix just ignore OSError on os.kill. Conflicts: git/cmd.py | py |
diff --git a/pygeoip/__init__.py b/pygeoip/__init__.py
index <HASH>..<HASH> 100644
--- a/pygeoip/__init__.py
+++ b/pygeoip/__init__.py
@@ -408,11 +408,13 @@ class GeoIP(object):
:arg addr: IPv4 or IPv6 address (eg. 203.0.113.30)
"""
+ if self._databaseType in (const.PROXY_EDITION, const.NETSP... | Improve exception handling Adds a generic error handler for unsupported databases, and makes the error messages for ipv4 and ipv6 exceptions more verbose and less stilted. Response to #<I>. | py |
diff --git a/organizations/views.py b/organizations/views.py
index <HASH>..<HASH> 100644
--- a/organizations/views.py
+++ b/organizations/views.py
@@ -121,7 +121,8 @@ class BaseOrganizationUserUpdate(OrganizationUserMixin, UpdateView):
class BaseOrganizationUserDelete(OrganizationUserMixin, DeleteView):
def get... | Parameter 'organization_pk' required. The parameter 'organization_pk' is required in order to be able to reverse named url 'organization_user_list' | py |
diff --git a/montblanc/impl/rime/tensorflow/RimeSolver.py b/montblanc/impl/rime/tensorflow/RimeSolver.py
index <HASH>..<HASH> 100644
--- a/montblanc/impl/rime/tensorflow/RimeSolver.py
+++ b/montblanc/impl/rime/tensorflow/RimeSolver.py
@@ -402,6 +402,8 @@ class RimeSolver(MontblancTensorflowSolver):
yield... | Re-add missing chunks_fed increment | py |
diff --git a/shapefile.py b/shapefile.py
index <HASH>..<HASH> 100644
--- a/shapefile.py
+++ b/shapefile.py
@@ -559,9 +559,9 @@ class Reader:
else:
idx = len(fieldDesc[name]) - 1
fieldDesc[name] = fieldDesc[name][:idx]
- fieldDesc[name] = u(fieldDesc[name], self.e... | Fields are always read as ascii, as per the dbf spec. | py |
diff --git a/spikeextractors/extractors/nwbextractors/nwbextractors.py b/spikeextractors/extractors/nwbextractors/nwbextractors.py
index <HASH>..<HASH> 100644
--- a/spikeextractors/extractors/nwbextractors/nwbextractors.py
+++ b/spikeextractors/extractors/nwbextractors/nwbextractors.py
@@ -85,7 +85,8 @@ def get_nspikes... | swap AssertionError to ValueError | py |
diff --git a/pyver/__init__.py b/pyver/__init__.py
index <HASH>..<HASH> 100644
--- a/pyver/__init__.py
+++ b/pyver/__init__.py
@@ -22,7 +22,10 @@ def get_version (pkg = __name__, public = False):
Assumes that the tags fit the regex [0-9]*.[0-9]*
"""
def get_version (pkg = __name__, public = False):
- cwd = os.g... | Don't trap on contexts without a CWD | py |
diff --git a/xclim/core/indicator.py b/xclim/core/indicator.py
index <HASH>..<HASH> 100644
--- a/xclim/core/indicator.py
+++ b/xclim/core/indicator.py
@@ -16,7 +16,7 @@ import weakref
from collections import OrderedDict, defaultdict
from copy import deepcopy
from inspect import _empty, signature
-from typing import ... | Fix too many types to parse, use Any instead | py |
diff --git a/littlechef/lib.py b/littlechef/lib.py
index <HASH>..<HASH> 100644
--- a/littlechef/lib.py
+++ b/littlechef/lib.py
@@ -358,4 +358,8 @@ def credentials(*args, **kwargs):
credentials.update(kwargs)
else:
credentials = kwargs
+ # Expand the home directory of 'key_filename', as 'ssh' w... | Expand the users's home directory for key_filename, as paramiko fork 'ssh' doesn't seem to do it | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -2,7 +2,7 @@ from setuptools import setup, find_packages
import sys, os
here = os.path.abspath(os.path.dirname(__file__))
-README = open(os.path.join(here, 'README.rst')).read()
+README = open(os.path.join(here, 'README.md... | setup should point to new readme markdown file | py |
diff --git a/spinoff/actor/cell.py b/spinoff/actor/cell.py
index <HASH>..<HASH> 100644
--- a/spinoff/actor/cell.py
+++ b/spinoff/actor/cell.py
@@ -184,7 +184,7 @@ class Cell(_BaseCell): # TODO: inherit from Greenlet?
processing, has_ever_wanted_a_message = (True, False) if self.impl.run else (False, True)... | Consider stash==None in Cell when debugging state | py |
diff --git a/spyderlib/widgets/findinfiles.py b/spyderlib/widgets/findinfiles.py
index <HASH>..<HASH> 100644
--- a/spyderlib/widgets/findinfiles.py
+++ b/spyderlib/widgets/findinfiles.py
@@ -180,7 +180,8 @@ class SearchThread(QThread):
return True
def find_files_in_hg_manifest(self):
- p = Pop... | Find in files widget/bugfix (Windows only): a pop-up command window was briefly opened when searching in a mercurial repository | py |
diff --git a/src/auditlog/models.py b/src/auditlog/models.py
index <HASH>..<HASH> 100644
--- a/src/auditlog/models.py
+++ b/src/auditlog/models.py
@@ -66,7 +66,7 @@ class LogEntryManager(models.Manager):
pk = getattr(instance, pk_field, None)
# Check to make sure that we got an pk not a class object... | - Compatibility with django-polymorphic Check for _meta attribute instead of __class__, since an integer has an __class__ attribute. | py |
diff --git a/examples/charts/file/timeseries.py b/examples/charts/file/timeseries.py
index <HASH>..<HASH> 100644
--- a/examples/charts/file/timeseries.py
+++ b/examples/charts/file/timeseries.py
@@ -14,10 +14,10 @@ IBM = pd.read_csv(
parse_dates=['Date'])
data = dict(
- AAPL=AAPL['Adj Close'],
- Date=AAPL... | Limit timeseries to a hundred points - try and prevent failures | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -4,6 +4,35 @@ Flask-OpenERP
-------------
This extension allows to use the OpenERP server with Flask
+
+#!/usr/bin/env python
+from flask import Flask
+from flaskext.openerp import OpenERP
+
+class DefaultConfig(object):
+... | [IMP] Add an example in the setup.py file | py |
diff --git a/citrination_client/tests/test_client.py b/citrination_client/tests/test_client.py
index <HASH>..<HASH> 100644
--- a/citrination_client/tests/test_client.py
+++ b/citrination_client/tests/test_client.py
@@ -170,20 +170,13 @@ class TestClient():
client = CitrinationClient(environ["CITRINATION_API_KE... | Fix Constraint In Design Tests | py |
diff --git a/rootpy/plotting/base.py b/rootpy/plotting/base.py
index <HASH>..<HASH> 100644
--- a/rootpy/plotting/base.py
+++ b/rootpy/plotting/base.py
@@ -549,7 +549,10 @@ class _StyleContainer(object):
def __init__(self, value, function):
self._input = value
self._root = function(value, 'root')
... | FIX #<I>: fail over to ROOT style code if mapping to matplotlib style doesn't exist | py |
diff --git a/examples/download-and-compile-smistar-mibs-into-pysnmp-files.py b/examples/download-and-compile-smistar-mibs-into-pysnmp-files.py
index <HASH>..<HASH> 100644
--- a/examples/download-and-compile-smistar-mibs-into-pysnmp-files.py
+++ b/examples/download-and-compile-smistar-mibs-into-pysnmp-files.py
@@ -25,7 ... | switched to mibs.snmplabs.com as a MIB source | py |
diff --git a/test/test_mapchete.py b/test/test_mapchete.py
index <HASH>..<HASH> 100644
--- a/test/test_mapchete.py
+++ b/test/test_mapchete.py
@@ -405,3 +405,13 @@ def test_snap_bounds_to_zoom():
t.bbox for t in pyramid.tiles_from_bounds(bounds, zoom)
]).bounds
ass... | added error tests for snap_bounds | py |
diff --git a/netpyne/simFuncs.py b/netpyne/simFuncs.py
index <HASH>..<HASH> 100644
--- a/netpyne/simFuncs.py
+++ b/netpyne/simFuncs.py
@@ -788,7 +788,7 @@ def preRun ():
# set initial v of cells
sim.fih = []
for cell in sim.net.cells:
- sim.fih.append(h.FInitializeHandler(cell.initV))
+ sim.f... | FInitializeHandler should set v with type 0 handler The FInitializeHandler to set v should be of type 0: <URL>. This will alter the behaviour of existing HH cell simulations (if they don't start at -<I>) but just for first few ms, and the sim will be more accurate. | py |
diff --git a/mopidy_spotify/utils.py b/mopidy_spotify/utils.py
index <HASH>..<HASH> 100644
--- a/mopidy_spotify/utils.py
+++ b/mopidy_spotify/utils.py
@@ -6,10 +6,11 @@ import time
logger = logging.getLogger(__name__)
+TRACE = logging.getLevelName('TRACE')
@contextlib.contextmanager
-def time_logger(name):
+d... | utils: Log timings to TRACE level | py |
diff --git a/pyvista/plotting/plotting.py b/pyvista/plotting/plotting.py
index <HASH>..<HASH> 100644
--- a/pyvista/plotting/plotting.py
+++ b/pyvista/plotting/plotting.py
@@ -1930,7 +1930,7 @@ class BasePlotter(PickingHelper, WidgetHelper):
updated. If an actor of this name already exists in the
... | Fix texture docstring (#<I>) | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -1,6 +1,8 @@
#!/usr/bin/env python
-from distutils.core import setup
+import setuptools
+
+from setuptools import setup
setup(name='cleanco',
description='Python library to process company names', | switch to setuptools; fix #<I> | py |
diff --git a/doc/conf.py b/doc/conf.py
index <HASH>..<HASH> 100644
--- a/doc/conf.py
+++ b/doc/conf.py
@@ -244,6 +244,10 @@ texinfo_documents = [
# How to display URL addresses: 'footnote', 'no', or 'inline'.
#texinfo_show_urls = 'footnote'
-
-# Example configuration for intersphinx: refer to the Python standard li... | Cannot do intersphinx to Twisted. Yet. | py |
diff --git a/bugwarrior/services/jira.py b/bugwarrior/services/jira.py
index <HASH>..<HASH> 100644
--- a/bugwarrior/services/jira.py
+++ b/bugwarrior/services/jira.py
@@ -64,10 +64,11 @@ class JiraIssue(Issue):
return self.record['fields']['summary']
def get_priority(self):
- if self.extra.get('j... | Handle JIRA priority slightly more gracefully. | py |
diff --git a/tests/test_ec2/test_security_groups.py b/tests/test_ec2/test_security_groups.py
index <HASH>..<HASH> 100644
--- a/tests/test_ec2/test_security_groups.py
+++ b/tests/test_ec2/test_security_groups.py
@@ -326,3 +326,19 @@ def test_authorize_all_protocols_with_no_port_specification():
sg = conn.get_all_se... | Update to test for security group tagging Support for describe_security_groups() in boto3 | py |
diff --git a/splunklib/searchcommands/search_command.py b/splunklib/searchcommands/search_command.py
index <HASH>..<HASH> 100644
--- a/splunklib/searchcommands/search_command.py
+++ b/splunklib/searchcommands/search_command.py
@@ -40,7 +40,7 @@ from .search_command_internals import InputHeader, MessagesHeader, \
c... | Added missing punctuation in docs | py |
diff --git a/mbed/mbed.py b/mbed/mbed.py
index <HASH>..<HASH> 100755
--- a/mbed/mbed.py
+++ b/mbed/mbed.py
@@ -2435,15 +2435,14 @@ def status_(ignore=False):
# Helper function for compile subcommand
def _safe_append_profile_to_build_path(build_path, profile):
- append_str = 'DEFAULT'
-
if profile:
- ... | Append profile name to default build dir with underscores, not as subdir. Also, no append for default profile, since CI tools are sensitive to build dir, but all use default profile, so this preserves the prior behavior for them. | py |
diff --git a/ipyrad/analysis/__init__.py b/ipyrad/analysis/__init__.py
index <HASH>..<HASH> 100644
--- a/ipyrad/analysis/__init__.py
+++ b/ipyrad/analysis/__init__.py
@@ -31,6 +31,7 @@ from .snps_imputer import SNPsImputer as snps_imputer
from .treeslider import TreeSlider as treeslider
from .distance import Distance... | sratools up to date with CLI working too | py |
diff --git a/holoviews/core/layer.py b/holoviews/core/layer.py
index <HASH>..<HASH> 100644
--- a/holoviews/core/layer.py
+++ b/holoviews/core/layer.py
@@ -417,14 +417,14 @@ class Grid(NdMapping):
idx = np.argmin([np.inner(q - np.array(x), q - np.array(x))
if self.ndims == 2 el... | Fixed Grid indexing with one empty slice | py |
diff --git a/djangocms_inherit/__init__.py b/djangocms_inherit/__init__.py
index <HASH>..<HASH> 100644
--- a/djangocms_inherit/__init__.py
+++ b/djangocms_inherit/__init__.py
@@ -1,3 +1,3 @@
# -*- coding: utf-8 -*-
-__version__ = '0.2.2rc1'
+__version__ = '0.2.2' | Bumped version to <I> | py |
diff --git a/py/builtin/exception.py b/py/builtin/exception.py
index <HASH>..<HASH> 100644
--- a/py/builtin/exception.py
+++ b/py/builtin/exception.py
@@ -11,3 +11,4 @@ except NameError:
write code compatible with CPython 2.5 even in lower CPython
versions."""
pass
+ GeneratorExit.__module... | [svn r<I>] make sure the artificial GeneratorExit claims to come from the exceptions module --HG-- branch : trunk | py |
diff --git a/synapse/cortex.py b/synapse/cortex.py
index <HASH>..<HASH> 100644
--- a/synapse/cortex.py
+++ b/synapse/cortex.py
@@ -52,7 +52,7 @@ def openurl(url, **opts):
Notes:
* ram://
- * sqlite3:///<db>
+ * sqlite:///<db>
* postgres://[[<passwd>:]<user>@][<host>]/[<db>][/<tabl... | The sqlite3 db protocol is registered as sqlite, and not sqlite3. | py |
diff --git a/thumbor/server.py b/thumbor/server.py
index <HASH>..<HASH> 100644
--- a/thumbor/server.py
+++ b/thumbor/server.py
@@ -94,7 +94,7 @@ def get_application(context):
def run_server(application, context):
- server = HTTPServer(application)
+ server = HTTPServer(application, xheaders=True)
if c... | Enable xheaders option for Tornado server This allows discovery of the true client IP at the Thumbor level when behind a proxy. | py |
diff --git a/tests/test_compare.py b/tests/test_compare.py
index <HASH>..<HASH> 100644
--- a/tests/test_compare.py
+++ b/tests/test_compare.py
@@ -252,6 +252,32 @@ class TestCompare(unittest.TestCase):
self.assertIsNone(c._df_a_indexed)
self.assertIsNone(c._df_b_indexed)
+ def test_series_argumen... | TESTS: Test passing data to compare method instead of label | py |
diff --git a/instana/version.py b/instana/version.py
index <HASH>..<HASH> 100644
--- a/instana/version.py
+++ b/instana/version.py
@@ -3,4 +3,4 @@
# Module version file. Used by setup.py and snapshot reporting.
-VERSION = '1.36.2'
+VERSION = '1.37.0' | chore: Bump package version to <I> (#<I>) The minor version is change because of support to suppression through X-INSTANA-L 0. | py |
diff --git a/src/saml2/attribute_resolver.py b/src/saml2/attribute_resolver.py
index <HASH>..<HASH> 100644
--- a/src/saml2/attribute_resolver.py
+++ b/src/saml2/attribute_resolver.py
@@ -55,21 +55,18 @@ class AttributeResolver(object):
:return: A dictionary with all the collected information about the
... | completed the update to follow changes in saml2.client | py |
diff --git a/werkzeug/datastructures.py b/werkzeug/datastructures.py
index <HASH>..<HASH> 100644
--- a/werkzeug/datastructures.py
+++ b/werkzeug/datastructures.py
@@ -47,18 +47,19 @@ def iter_multi_items(mapping):
def native_dict(names):
- def apply(cls, name):
+ def setmethod(cls, name):
itername =... | Renamed apply to smth not overriding the builtin Also added docstring to the fallback list function. | py |
diff --git a/pymzn/mzn/solvers.py b/pymzn/mzn/solvers.py
index <HASH>..<HASH> 100644
--- a/pymzn/mzn/solvers.py
+++ b/pymzn/mzn/solvers.py
@@ -444,6 +444,8 @@ class Chuffed(Solver):
try:
process = run(args)
out = process.stdout
+ if process.stderr:
+ raise Ru... | solvers: bug fixing in Chuffed and MIPSolver + rename G<I> instances | py |
diff --git a/hypercorn/asyncio/run.py b/hypercorn/asyncio/run.py
index <HASH>..<HASH> 100644
--- a/hypercorn/asyncio/run.py
+++ b/hypercorn/asyncio/run.py
@@ -211,7 +211,7 @@ def _run(
try:
loop.add_signal_handler(signal.SIGINT, _signal_handler)
loop.add_signal_handler(signal.SIGTERM,... | Bugfix catch NotImplementedError alongside AttributeError In Python <I> the former error is raised rather than the latter on Windows. | py |
diff --git a/attrdict/__init__.py b/attrdict/__init__.py
index <HASH>..<HASH> 100644
--- a/attrdict/__init__.py
+++ b/attrdict/__init__.py
@@ -76,8 +76,8 @@ class AttrDict(MutableMapping):
def _set(self, key, value):
"""
- Respoinsible for actually adding/changing a key-value pair. This
- ... | Update _set doc-string Minor typo-corrections. | py |
diff --git a/tools/failures/detect_new_failures.py b/tools/failures/detect_new_failures.py
index <HASH>..<HASH> 100644
--- a/tools/failures/detect_new_failures.py
+++ b/tools/failures/detect_new_failures.py
@@ -94,7 +94,7 @@ def create_issues(new_flakes, always_create):
print('\nFound {} issues for "{}":'.form... | s/url/html_url | py |
diff --git a/tests/unit/test_analytics.py b/tests/unit/test_analytics.py
index <HASH>..<HASH> 100644
--- a/tests/unit/test_analytics.py
+++ b/tests/unit/test_analytics.py
@@ -56,7 +56,8 @@ def test_runtime_info(tmp_global_config):
"scm_class": Any("Git", None),
"user_id": string,
... | tests: require keys on analytics report schema | py |
diff --git a/estnltk/taggers/syntax/vislcg3_syntax.py b/estnltk/taggers/syntax/vislcg3_syntax.py
index <HASH>..<HASH> 100644
--- a/estnltk/taggers/syntax/vislcg3_syntax.py
+++ b/estnltk/taggers/syntax/vislcg3_syntax.py
@@ -54,8 +54,7 @@
from __future__ import unicode_literals, print_function
-from estnltk.legacy i... | A bit of refactoring for replacing/removing legacy stuff | py |
diff --git a/gwpy/io/datafind.py b/gwpy/io/datafind.py
index <HASH>..<HASH> 100755
--- a/gwpy/io/datafind.py
+++ b/gwpy/io/datafind.py
@@ -127,8 +127,11 @@ class FflConnection(object):
mtime = 0
newm = os.path.getmtime(path)
if newm > mtime: # read FFL file
+ def _update_metad... | gwpy.io: fix metadata for FFL search engine | py |
diff --git a/tests/run_tests.py b/tests/run_tests.py
index <HASH>..<HASH> 100644
--- a/tests/run_tests.py
+++ b/tests/run_tests.py
@@ -20,6 +20,7 @@ print ('WIPING ALL TEST RESULTS - PRESS CTRL C TO STOP')
time.sleep(10)
wipe_file('character_sample.txt')
+wipe_file('_sessions.txt')
wipe_file('character.txt')
wipe... | cleanup _sessions.txt after run_tests.py | py |
diff --git a/endpoints/api_config_manager.py b/endpoints/api_config_manager.py
index <HASH>..<HASH> 100644
--- a/endpoints/api_config_manager.py
+++ b/endpoints/api_config_manager.py
@@ -195,7 +195,7 @@ class ApiConfigManager(object):
method_name, method = candidate_method_info
break
else:
... | Improved 'No endpoint found' message. (#<I>) | py |
diff --git a/test/test_cmap.py b/test/test_cmap.py
index <HASH>..<HASH> 100644
--- a/test/test_cmap.py
+++ b/test/test_cmap.py
@@ -190,6 +190,8 @@ class TestCMAP(IntegrationTest):
client.admin.command(cmd)
def set_fail_point(self, command_args):
+ if not client_context.supports_failCommand_fail_p... | PYTHON-<I> Skip CMAP test when failCommand is not supported (#<I>) | py |
diff --git a/src/scs_core/aws/manager/alert_status_finder.py b/src/scs_core/aws/manager/alert_status_finder.py
index <HASH>..<HASH> 100644
--- a/src/scs_core/aws/manager/alert_status_finder.py
+++ b/src/scs_core/aws/manager/alert_status_finder.py
@@ -153,11 +153,11 @@ class AlertStatusFinderResponse(HTTPResponse):
... | Fixed a validation issue in alert_status_finder.py | py |
diff --git a/shutit_main.py b/shutit_main.py
index <HASH>..<HASH> 100755
--- a/shutit_main.py
+++ b/shutit_main.py
@@ -819,6 +819,8 @@ if __name__ == '__main__':
shutit_main()
except ShutItException as e:
print 'Error while executing: ' + str(e.message)
+ sys.exit(1)
+ except Exception as e:
print e
do_p... | Shutitexceptions are to be displayed to the user | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.