diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/setuptools/dist.py b/setuptools/dist.py
index <HASH>..<HASH> 100644
--- a/setuptools/dist.py
+++ b/setuptools/dist.py
@@ -56,13 +56,15 @@ class Distribution(_Distribution):
"""
def __init__ (self, attrs=None):
+ have_package_data = hasattr(self, "package_data")
+ if not have_packa... | fix to make things continue to work when we're *not* running under Python <I>; this was broken by my earlier change to avoid stomping on Python <I>'s build_py command --HG-- branch : setuptools extra : convert_revision : svn%3A<I>fed2-<I>-<I>-9fe1-9d<I>cc<I>/sandbox/trunk/setuptools%<I> | py |
diff --git a/ropetest/refactor/usefunctiontest.py b/ropetest/refactor/usefunctiontest.py
index <HASH>..<HASH> 100644
--- a/ropetest/refactor/usefunctiontest.py
+++ b/ropetest/refactor/usefunctiontest.py
@@ -86,9 +86,18 @@ class UseFunctionTest(unittest.TestCase):
self.mod1.write(code)
user = UseFuncti... | usefunction: added a failing test for more intelligent return handling | py |
diff --git a/aiohttp_apispec/middlewares.py b/aiohttp_apispec/middlewares.py
index <HASH>..<HASH> 100644
--- a/aiohttp_apispec/middlewares.py
+++ b/aiohttp_apispec/middlewares.py
@@ -28,13 +28,18 @@ async def validation_middleware(request: web.Request, handler) -> web.Response:
schemas = sub_handler.__schemas_... | Support non-dict returnings from validation. Closes #<I> | py |
diff --git a/permission/tests/test_decorators/test_method_decorators.py b/permission/tests/test_decorators/test_method_decorators.py
index <HASH>..<HASH> 100644
--- a/permission/tests/test_decorators/test_method_decorators.py
+++ b/permission/tests/test_decorators/test_method_decorators.py
@@ -74,6 +74,8 @@ class Permi... | Fix `view_class` is not defined error | py |
diff --git a/integration/single/test_basic_function.py b/integration/single/test_basic_function.py
index <HASH>..<HASH> 100644
--- a/integration/single/test_basic_function.py
+++ b/integration/single/test_basic_function.py
@@ -1,6 +1,7 @@
from unittest.case import skipIf
-from integration.config.service_names import... | chore: FOSS add skip tests (#<I>) | py |
diff --git a/aiotg/bot.py b/aiotg/bot.py
index <HASH>..<HASH> 100644
--- a/aiotg/bot.py
+++ b/aiotg/bot.py
@@ -620,6 +620,7 @@ class CallbackQuery:
self.bot = bot
self.query_id = src['id']
self.data = src['data']
+ self.src = src
def answer(self, **options):
return self... | Add src as class data field in CallbackQuery | py |
diff --git a/digitalocean/Droplet.py b/digitalocean/Droplet.py
index <HASH>..<HASH> 100644
--- a/digitalocean/Droplet.py
+++ b/digitalocean/Droplet.py
@@ -162,7 +162,7 @@ class Droplet(BaseAPI):
return action
else:
action = action[u'action']
- return_action = Action()
+ ... | Pass API token to any Action created by Droplet When a method in Droplet returns an Action, Action should be given a copy of the API token. This allows you to call Action's methods without needing to pass in an API token. | py |
diff --git a/sh.py b/sh.py
index <HASH>..<HASH> 100644
--- a/sh.py
+++ b/sh.py
@@ -1934,11 +1934,13 @@ class OProc(object):
# wait, then signal to our output thread that the child process is
# done, and we should have finished reading all the stdout/stderr
# data that we can by no... | bugfix where output thread timer hanged normal shutdown | py |
diff --git a/tests/functional/conftest.py b/tests/functional/conftest.py
index <HASH>..<HASH> 100644
--- a/tests/functional/conftest.py
+++ b/tests/functional/conftest.py
@@ -12,8 +12,12 @@ import gitlab
def reset_gitlab(gl):
# previously tools/reset_gitlab.py
for project in gl.projects.list():
+ for ... | test(functional): explicitly remove deploy tokens on reset Deploy tokens would remain in the instance if the respective project or group was deleted without explicitly revoking the deploy tokens first. | py |
diff --git a/salt/modules/win_service.py b/salt/modules/win_service.py
index <HASH>..<HASH> 100644
--- a/salt/modules/win_service.py
+++ b/salt/modules/win_service.py
@@ -187,10 +187,16 @@ def status(name, sig=None):
statuses = __salt__['cmd.run'](cmd).splitlines()
for line in statuses:
if 'RUNNING' ... | if showsid doesn't work, just return true The regular service.py returns true if it can't get the pid. We'll do the same here if we can't get the sid | py |
diff --git a/dataswim/db/relations.py b/dataswim/db/relations.py
index <HASH>..<HASH> 100644
--- a/dataswim/db/relations.py
+++ b/dataswim/db/relations.py
@@ -42,6 +42,15 @@ class Relation():
destination_field = search_field
df[destination_field] = None
+ if origin_field not in self.df.co... | Add a field check before processing db relation | py |
diff --git a/tests/distance/test_distance_ssk.py b/tests/distance/test_distance_ssk.py
index <HASH>..<HASH> 100644
--- a/tests/distance/test_distance_ssk.py
+++ b/tests/distance/test_distance_ssk.py
@@ -103,14 +103,14 @@ class SSKTestCases(unittest.TestCase):
)
# multiple lambdas
- self.asser... | changed to assertAlmostEqual for py<I> testing | py |
diff --git a/tests/tracing/test_opentracing.py b/tests/tracing/test_opentracing.py
index <HASH>..<HASH> 100644
--- a/tests/tracing/test_opentracing.py
+++ b/tests/tracing/test_opentracing.py
@@ -1,4 +1,4 @@
-from unittest.mock import ANY
+from unittest.mock import ANY, call
import pytest
from opentracing.ext import... | Add more tests harness to opentracing extension | py |
diff --git a/services/managers/teamspeak3_manager.py b/services/managers/teamspeak3_manager.py
index <HASH>..<HASH> 100755
--- a/services/managers/teamspeak3_manager.py
+++ b/services/managers/teamspeak3_manager.py
@@ -95,16 +95,21 @@ class Teamspeak3Manager:
@staticmethod
def _add_user_to_group(uid, groupn... | More logging Added more debug logging to figure out why Server Admin never gets assigned. | py |
diff --git a/HARK/parallel.py b/HARK/parallel.py
index <HASH>..<HASH> 100644
--- a/HARK/parallel.py
+++ b/HARK/parallel.py
@@ -90,7 +90,7 @@ def multiThreadCommands(agent_list,command_list,num_jobs=None):
num_jobs = min(len(agent_list),multiprocessing.cpu_count())
# Send each command in command_list to ... | move to default loky joblib backend, so lambda functions are picklable | py |
diff --git a/bitstamp/client.py b/bitstamp/client.py
index <HASH>..<HASH> 100755
--- a/bitstamp/client.py
+++ b/bitstamp/client.py
@@ -20,6 +20,7 @@ class TransRange(object):
"""
HOUR = 'hour'
MINUTE = 'minute'
+ DAY = 'day'
class BaseClient(object): | Added day range option. (#<I>) | py |
diff --git a/salt/pillar/pepa.py b/salt/pillar/pepa.py
index <HASH>..<HASH> 100755
--- a/salt/pillar/pepa.py
+++ b/salt/pillar/pepa.py
@@ -17,7 +17,7 @@ import sys
log = None
-if sys.stdout.isatty():
+if __name__ == '__main__' and sys.stdout.isatty():
import argparse
from colorlog import ColoredFormatter | Fix pepa shortcircuiting all scripts args at it'simport time... This kills salt-call & i think other salt scripts... How can that hit develop ! | py |
diff --git a/tests/test_emulation.py b/tests/test_emulation.py
index <HASH>..<HASH> 100644
--- a/tests/test_emulation.py
+++ b/tests/test_emulation.py
@@ -1,3 +1,5 @@
+from __future__ import with_statement
+
import Queue
import select
import socket
@@ -206,7 +208,7 @@ class PatchedModules(StateClearingTestCase):
... | fix tests to work with python <I> -- 'with' requires the __future__ import, SocketServer doesn't yet import the select module | py |
diff --git a/wxmplot/colors.py b/wxmplot/colors.py
index <HASH>..<HASH> 100644
--- a/wxmplot/colors.py
+++ b/wxmplot/colors.py
@@ -429,8 +429,8 @@ def register_custom_colormaps():
cm2 = cm1[::-1]
nam1 = name
nam2 = '%s_r' % name
- register_cmap(name=nam1, cmap=makemap(nam1, cm1, 256), ... | Remove use of deprecated API | py |
diff --git a/GPy/testing/examples_tests.py b/GPy/testing/examples_tests.py
index <HASH>..<HASH> 100644
--- a/GPy/testing/examples_tests.py
+++ b/GPy/testing/examples_tests.py
@@ -30,6 +30,7 @@ def checkgrads_generator(model):
"""
def model_checkgrads(model):
+ model.randomize()
assert model.checkgrad() | Fixed checkgrad test to randomize before checking | py |
diff --git a/searx/engines/bing_news.py b/searx/engines/bing_news.py
index <HASH>..<HASH> 100644
--- a/searx/engines/bing_news.py
+++ b/searx/engines/bing_news.py
@@ -39,8 +39,7 @@ def request(query, params):
query=urlencode({'q': query, 'setmkt': language}),
offset=offset)
- params['cookies']['S... | Change the cookie in bing_news to use the english interface But still uses the language to set the market, and so provide relevant results to the language. Fix #<I> | py |
diff --git a/raiden/api/rest.py b/raiden/api/rest.py
index <HASH>..<HASH> 100644
--- a/raiden/api/rest.py
+++ b/raiden/api/rest.py
@@ -66,6 +66,10 @@ def normalize_events_list(old_list):
for _event in old_list:
new_event = dict(_event)
new_event['event_type'] = new_event.pop('_event_type')
+ ... | Fix exporting of TransferReceivedSuccess Fix #<I> | py |
diff --git a/indra/trips/processor.py b/indra/trips/processor.py
index <HASH>..<HASH> 100644
--- a/indra/trips/processor.py
+++ b/indra/trips/processor.py
@@ -734,7 +734,10 @@ class TripsProcessor(object):
logger.warning('Could not extract term %s.' %
member_id)
... | Handle nested aggregates in EKBs | py |
diff --git a/klab/benchmarking/analysis/ddg_monomeric_stability_analysis.py b/klab/benchmarking/analysis/ddg_monomeric_stability_analysis.py
index <HASH>..<HASH> 100644
--- a/klab/benchmarking/analysis/ddg_monomeric_stability_analysis.py
+++ b/klab/benchmarking/analysis/ddg_monomeric_stability_analysis.py
@@ -409,7 +40... | Broke out function to write dataframe to CSV This can now be called from outside functions | py |
diff --git a/markov.py b/markov.py
index <HASH>..<HASH> 100644
--- a/markov.py
+++ b/markov.py
@@ -712,9 +712,9 @@ class LISA_Markov(Markov):
>>> np.random.seed(10)
>>> lm_random = pysal.LISA_Markov(pci, w, permutations=99)
>>> lm_random.significant_moves[:,0]
- array([13, 25, 13, 25, 25, 1, 1, 13, ... | - two tailed p-values. correcting example | py |
diff --git a/rhino/request.py b/rhino/request.py
index <HASH>..<HASH> 100644
--- a/rhino/request.py
+++ b/rhino/request.py
@@ -361,7 +361,7 @@ class Request(object):
The return value is cached after the first access."""
if self._body is None:
if self._body_reader is None:
- ... | Only read content_length bytes from Request.input In case Request.wrap_wsgi_input is set to False but the original wsgi input is not `read()` safe. | py |
diff --git a/tests/utils/helpers.py b/tests/utils/helpers.py
index <HASH>..<HASH> 100644
--- a/tests/utils/helpers.py
+++ b/tests/utils/helpers.py
@@ -45,6 +45,7 @@ from openquake.calculators.hazard.general import store_source_model
from openquake.db import models
from openquake.engine import JobContext
from openqua... | Added utility for creating a complete hazard job in 1 command (given a path to a config file) | py |
diff --git a/soco/snapshot.py b/soco/snapshot.py
index <HASH>..<HASH> 100644
--- a/soco/snapshot.py
+++ b/soco/snapshot.py
@@ -82,13 +82,13 @@ class Snapshot(object):
Useful for determining whether playing an alert on a device
will ungroup it.
"""
+ # get if device coor... | Change to use SoCo method to determine coordinator | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -43,8 +43,8 @@ setup(
'scripts/pyannote_eval.py',
],
install_requires=[
- 'pyannote.algorithms >= 0.1',
'pyannote.core >= 0.5.2',
+ 'pyannote.algorithms >= 0.5.1',
'scipy >= 0... | setup: update pyannote.algorithms dependency | py |
diff --git a/dvc/command/repro.py b/dvc/command/repro.py
index <HASH>..<HASH> 100644
--- a/dvc/command/repro.py
+++ b/dvc/command/repro.py
@@ -166,7 +166,7 @@ class ReproChange(object):
ReproChange(item, self._cmd_obj, self._recursive, self._force).reproduce()
if md5 != os.path.basename(item.cac... | Detailed message: md5 sum doesn\'t match | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -42,16 +42,16 @@ https://github.com/shyuep/pyhull or the documentation page at
http://packages.python.org/pyhull/.
"""
-setup (name = 'pyhull',
- version = '1.3.7',
+setup (name = "pyhull",
+ version = "1.3.7",... | Minor cleanup of setup.py. | py |
diff --git a/spinoff/util/logging.py b/spinoff/util/logging.py
index <HASH>..<HASH> 100644
--- a/spinoff/util/logging.py
+++ b/spinoff/util/logging.py
@@ -7,7 +7,9 @@ import sys
import traceback
import types
import os
+import multiprocessing
from collections import defaultdict
+from Queue import Queue, Empty
try... | Made logging thread and multiprocess safe | py |
diff --git a/smite/servant.py b/smite/servant.py
index <HASH>..<HASH> 100644
--- a/smite/servant.py
+++ b/smite/servant.py
@@ -266,11 +266,15 @@ class SecureServantIdent(Servant):
self._lock = Lock()
def _recv(self, socket):
- msg_id, msg = super(SecureServantIdent, self)._recv(socket)
- i... | handle not found key in SecureServantIdent | py |
diff --git a/troposphere/apigateway.py b/troposphere/apigateway.py
index <HASH>..<HASH> 100644
--- a/troposphere/apigateway.py
+++ b/troposphere/apigateway.py
@@ -388,7 +388,7 @@ def validate_gateway_response_type(response_type):
"RESOURCE_NOT_FOUND",
"THROTTLED",
"UNAUTHORIZED",
- "UN... | Correct type in API Gateway GatewayResponse type (#<I>) Fixes #<I> | py |
diff --git a/law/target/remote.py b/law/target/remote.py
index <HASH>..<HASH> 100644
--- a/law/target/remote.py
+++ b/law/target/remote.py
@@ -15,7 +15,6 @@ import time
import fnmatch
import tempfile
import weakref
-import urlparse
import math
import re
import functools
@@ -25,6 +24,9 @@ from random import choice... | Fix urlparse for py3 support. | py |
diff --git a/gromacs/cbook.py b/gromacs/cbook.py
index <HASH>..<HASH> 100644
--- a/gromacs/cbook.py
+++ b/gromacs/cbook.py
@@ -141,7 +141,7 @@ import logging
logger = logging.getLogger('gromacs.cbook')
import gromacs
-from gromacs import GromacsError, BadParameterWarning, MissingDataWarning
+from gromacs import Gro... | fixed: GromacsWarning not founhd | py |
diff --git a/will/decorators.py b/will/decorators.py
index <HASH>..<HASH> 100644
--- a/will/decorators.py
+++ b/will/decorators.py
@@ -92,7 +92,7 @@ def rendered_template(template_name, context=None, custom_filters=[]):
def wrap(f):
def wrapped_f(*args, **kwargs):
context = f(*arg... | PEP8 warning fix replaced type comparsion for isinstance | py |
diff --git a/bigcommerce/connection.py b/bigcommerce/connection.py
index <HASH>..<HASH> 100644
--- a/bigcommerce/connection.py
+++ b/bigcommerce/connection.py
@@ -239,7 +239,9 @@ class OAuthConnection(Connection):
client_secret,
algorithms=["HS256"],
... | Fixed issue with the `verify_iss` argument passed to jwt.decode(). Error Occurred with jwt.decode() option `verify_iss=False` passed. ``` JWT verification failed: decode() got an unexpected keyword argument 'verify_iss' Payload verification failed! ``` | py |
diff --git a/klab/bio/pdb.py b/klab/bio/pdb.py
index <HASH>..<HASH> 100755
--- a/klab/bio/pdb.py
+++ b/klab/bio/pdb.py
@@ -773,9 +773,6 @@ class PDB(object):
for k, v in typed_residue_ids_to_ignore.iteritems():
typed_residue_ids_to_ignore[k] = v.strip()
- # todo: there seems to be a bug w... | Removing a comment - I tested the case and the code seems to work fine. | py |
diff --git a/src/foremast/pipeline/jinja_functions.py b/src/foremast/pipeline/jinja_functions.py
index <HASH>..<HASH> 100644
--- a/src/foremast/pipeline/jinja_functions.py
+++ b/src/foremast/pipeline/jinja_functions.py
@@ -24,6 +24,7 @@ def get_jinja_functions():
functions = dict()
functions[get_canary_id.__n... | feat: Added raise exception helper to Jinja functions | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -24,7 +24,7 @@ setup(
'funcy>=1.4',
'docopt>=0.6.2',
'wheel>=0.26.0',
- 'ruamel.yaml>=0.11.3',
+ 'ruamel.yaml>=0.11.3,<0.15',
'pypandoc>=1.1.3',
'twine>=1.6.5',
... | fix ruamel.yaml on <I>.X for now | py |
diff --git a/estnltk_neural/estnltk_neural/tests/taggers/syntax/test_stanza_tagger.py b/estnltk_neural/estnltk_neural/tests/taggers/syntax/test_stanza_tagger.py
index <HASH>..<HASH> 100644
--- a/estnltk_neural/estnltk_neural/tests/taggers/syntax/test_stanza_tagger.py
+++ b/estnltk_neural/estnltk_neural/tests/taggers/sy... | Fix: added missing 'secondary_attributes' | py |
diff --git a/tests/test_jujucharm.py b/tests/test_jujucharm.py
index <HASH>..<HASH> 100644
--- a/tests/test_jujucharm.py
+++ b/tests/test_jujucharm.py
@@ -121,6 +121,11 @@ class TestCharm(TestCase):
'Invalid Juju Charm Name, "BAD_NAME" does not match ".*"\.',
Charm, 'BAD_NAME', 'A charm with a... | Added a new test for jujucharm.py. | py |
diff --git a/deezer/client.py b/deezer/client.py
index <HASH>..<HASH> 100644
--- a/deezer/client.py
+++ b/deezer/client.py
@@ -74,9 +74,6 @@ class Client:
if headers:
self.session.headers.update(headers)
- self.options = kwargs
- self._authorize_url = None
-
def _process_json(... | refactor: remove unused client attributes | py |
diff --git a/packages/vaex-core/vaex/dataset.py b/packages/vaex-core/vaex/dataset.py
index <HASH>..<HASH> 100644
--- a/packages/vaex-core/vaex/dataset.py
+++ b/packages/vaex-core/vaex/dataset.py
@@ -1067,9 +1067,6 @@ class Dataset(object):
arguments = _ensure_strings_from_expressions(arguments)
return lazy_functi... | fix: Dataset.apply removed print statements and dead code | py |
diff --git a/tests/test_params.py b/tests/test_params.py
index <HASH>..<HASH> 100644
--- a/tests/test_params.py
+++ b/tests/test_params.py
@@ -115,7 +115,7 @@ def test_params_required_when_using_generator(testdir, option, fixture_name):
assert result.ret == EXIT_INTERRUPTED
result.stdout.fnmatch_lines([
... | Fix tests for py<I> support | py |
diff --git a/salt/states/file.py b/salt/states/file.py
index <HASH>..<HASH> 100644
--- a/salt/states/file.py
+++ b/salt/states/file.py
@@ -618,10 +618,6 @@ def _get_template_texts(source_list = [], template='jinja', defaults = None,
for (source, source_hash) in source_list:
- # FIX TODO: Remove this w... | Remove the warning about bug #<I> now its fixed. | py |
diff --git a/tests/test_entry.py b/tests/test_entry.py
index <HASH>..<HASH> 100644
--- a/tests/test_entry.py
+++ b/tests/test_entry.py
@@ -55,8 +55,7 @@ class test_RedBeatEntry(RedBeatCase):
n = initial.next(last_run_at=now)
- # new entry has updated run info
- self.assertNotEqual(initial, n)... | Fix celery4 unit tests Celery4 already gives timezone aware datetime, therefore the assertion of making sure the entry has been updated is not valid. | py |
diff --git a/cumulusci/tasks/bulkdata/tests/test_utils.py b/cumulusci/tasks/bulkdata/tests/test_utils.py
index <HASH>..<HASH> 100644
--- a/cumulusci/tasks/bulkdata/tests/test_utils.py
+++ b/cumulusci/tasks/bulkdata/tests/test_utils.py
@@ -46,6 +46,12 @@ def mock_describe_calls():
body=read_mock(name),
... | Attempt to simulate case-insensitive API on case-sensitive Linux. | py |
diff --git a/ev3dev.py b/ev3dev.py
index <HASH>..<HASH> 100644
--- a/ev3dev.py
+++ b/ev3dev.py
@@ -56,6 +56,10 @@ class FileCache(object):
def __init__(self):
self._cache = {}
+ def __del__(self):
+ for f in self._cache.values():
+ f.close()
+
def file_handle( self, path, mode,... | Close cached file handles on cache destruction | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -17,9 +17,9 @@ dependencies = [
"pyasn1", # (for manhole)
# Storage
- "epsilon",
+ #"epsilon",
"pysqlite",
- "axiom",
+ #"axiom",
"maxims==0.0.2",
] | Remove epsilon, axiom as dependencies in setup.py Done since it seemingly makes it impossible to install. | py |
diff --git a/doc/conf.py b/doc/conf.py
index <HASH>..<HASH> 100644
--- a/doc/conf.py
+++ b/doc/conf.py
@@ -47,6 +47,7 @@ MOCK_MODULES = [
'Crypto.PublicKey',
'Crypto.Random',
'M2Crypto',
+ 'six',
'msgpack',
'yaml',
'yaml.constructor', | Add six to list of mocked modules | py |
diff --git a/docs/conf.py b/docs/conf.py
index <HASH>..<HASH> 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -49,7 +49,7 @@ exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store']
# The theme to use for HTML and HTML Help pages. See the documentation for
# a list of builtin themes.
#
-html_theme = 'alabaster'
+# h... | remove html_theme from doc conf | py |
diff --git a/PyFunceble.py b/PyFunceble.py
index <HASH>..<HASH> 100755
--- a/PyFunceble.py
+++ b/PyFunceble.py
@@ -1165,7 +1165,7 @@ class Prints(object):
result_index.reverse()
result_data.reverse()
- result = dict(zip(result_index, result_data))
+ result =... | Review of the fix of #1 as results differs across repository | py |
diff --git a/raiden/tests/integration/test_blockchainservice.py b/raiden/tests/integration/test_blockchainservice.py
index <HASH>..<HASH> 100644
--- a/raiden/tests/integration/test_blockchainservice.py
+++ b/raiden/tests/integration/test_blockchainservice.py
@@ -1,9 +1,9 @@
# -*- coding: utf-8 -*-
from __future__ imp... | increased test_new_netting_contract timeout | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -21,6 +21,7 @@ setup(
zip_safe = False,
package_dir = {'mpi4py_test': 'mpi4py_test'},
install_requires=['numpy', 'mpi4py'],
+ license='BSD-2-Clause',
packages= ['mpi4py_test', 'mpi4py_test.tests'],
... | Add a license string. hopefully conda is happy about this. | py |
diff --git a/pyth/plugins/rtf15/reader.py b/pyth/plugins/rtf15/reader.py
index <HASH>..<HASH> 100644
--- a/pyth/plugins/rtf15/reader.py
+++ b/pyth/plugins/rtf15/reader.py
@@ -340,7 +340,7 @@ class Group(object):
def handle_fonttbl(self):
self.specialMeaning = 'FONT_TABLE'
- self.charsetTable = {}... | Oh right, there's a default font | py |
diff --git a/paramiko/agent.py b/paramiko/agent.py
index <HASH>..<HASH> 100644
--- a/paramiko/agent.py
+++ b/paramiko/agent.py
@@ -235,7 +235,7 @@ class AgentClientProxy(object):
class AgentServerProxy(AgentSSH):
"""
- :param t : transport used for the Forward for SSH Agent communication
+ :param t: trans... | Done with SSH Agent docstring junk | py |
diff --git a/malaffinity/calcs.py b/malaffinity/calcs.py
index <HASH>..<HASH> 100644
--- a/malaffinity/calcs.py
+++ b/malaffinity/calcs.py
@@ -16,7 +16,7 @@ def pearson(x, y):
:param list x: Dataset x
:param list y: Dataset y
:return: Population pearson correlation coefficient
- :rtype: bool
+ :rty... | what the fuck I think that's all the typos. TODO: Grammar check | py |
diff --git a/python/phonenumbers/__init__.py b/python/phonenumbers/__init__.py
index <HASH>..<HASH> 100644
--- a/python/phonenumbers/__init__.py
+++ b/python/phonenumbers/__init__.py
@@ -146,7 +146,7 @@ from .phonenumbermatcher import PhoneNumberMatch, PhoneNumberMatcher, Leniency
# Version number is taken from the ... | Prep for <I> release | py |
diff --git a/bugzoo/server/__init__.py b/bugzoo/server/__init__.py
index <HASH>..<HASH> 100644
--- a/bugzoo/server/__init__.py
+++ b/bugzoo/server/__init__.py
@@ -1,5 +1,6 @@
import flask
from bugzoo.server.daemon import Daemon
+from bugzoo.server.code import ErrorCode
daemon: Daemon = None
app = flask.Flask(__na... | added POST /containers endpoint | py |
diff --git a/flask_cors/core.py b/flask_cors/core.py
index <HASH>..<HASH> 100644
--- a/flask_cors/core.py
+++ b/flask_cors/core.py
@@ -164,7 +164,7 @@ def get_allow_headers(options, acl_request_headers):
return None
-def get_cors_headers(options, request_headers, request_method, response_headers):
+def get_cor... | Remove unneeded header (#<I>) | py |
diff --git a/pysoundfile.py b/pysoundfile.py
index <HASH>..<HASH> 100644
--- a/pysoundfile.py
+++ b/pysoundfile.py
@@ -268,7 +268,6 @@ class SoundFile(object):
info.format = format
self._file_mode = mode
- # Will be valid if it is either True or 'stream'
if virtual_io:
f... | Remove `stream` logic; it appears `libsndfile` needs to be able to rewind the file object’s position. | py |
diff --git a/examples/webapp/test_app.py b/examples/webapp/test_app.py
index <HASH>..<HASH> 100644
--- a/examples/webapp/test_app.py
+++ b/examples/webapp/test_app.py
@@ -42,6 +42,15 @@ class TestCaseFold(unittest.TestCase):
resp_str = self.leading_trailing_quotes.sub('', resp.content.strip().decode('unicode-e... | Add test for turkic casefolding via REST. | py |
diff --git a/pandasdmx/api.py b/pandasdmx/api.py
index <HASH>..<HASH> 100644
--- a/pandasdmx/api.py
+++ b/pandasdmx/api.py
@@ -340,7 +340,7 @@ class Request(object):
content_type = response.headers.get('content-type', None)
try:
Reader = get_reader_for_content_type(content_type)
- ... | fix exception used to handle unknown content-types | py |
diff --git a/dingos/views.py b/dingos/views.py
index <HASH>..<HASH> 100644
--- a/dingos/views.py
+++ b/dingos/views.py
@@ -28,7 +28,7 @@ from dingos.forms import EditSavedSearchesForm
from dingos import DINGOS_TEMPLATE_FAMILY, DINGOS_INTERNAL_IOBJECT_FAMILY_NAME, DINGOS_USER_PREFS_TYPE_NAME, DINGOS_SAVED_SEARCHES_TYPE... | Embedded list had filter on wrong object type. | py |
diff --git a/openpnm/materials/VoronoiFibers.py b/openpnm/materials/VoronoiFibers.py
index <HASH>..<HASH> 100644
--- a/openpnm/materials/VoronoiFibers.py
+++ b/openpnm/materials/VoronoiFibers.py
@@ -210,7 +210,7 @@ class DelaunayGeometry(GenericGeometry):
self["throat.conduit_lengths.throat"] = cen_lens[:,... | Fixed VoronoiFibers to account for the capillary shape factor model name | py |
diff --git a/.buildkite/images/docker/test_project/test_pipelines/test_pipelines/repo.py b/.buildkite/images/docker/test_project/test_pipelines/test_pipelines/repo.py
index <HASH>..<HASH> 100644
--- a/.buildkite/images/docker/test_project/test_pipelines/test_pipelines/repo.py
+++ b/.buildkite/images/docker/test_project... | Fix test repo schedules Test Plan: buildkite Reviewers: sashank Reviewed By: sashank Differential Revision: <URL> | py |
diff --git a/tabula/file_util.py b/tabula/file_util.py
index <HASH>..<HASH> 100644
--- a/tabula/file_util.py
+++ b/tabula/file_util.py
@@ -1,5 +1,6 @@
import os
import shutil
+import uuid
from urllib.parse import quote, urlparse, uses_netloc, uses_params, uses_relative
from urllib.request import Request, urlopen
... | fix: create unique file name for temporaly file Since creating pid based file name causes multi thread issue, i.e., temporary file will be removed with concurrent task. Use uuid instead of pid to prevent unintended removal with io.BytesIO. close #<I> | py |
diff --git a/sane_redirects/middleware.py b/sane_redirects/middleware.py
index <HASH>..<HASH> 100644
--- a/sane_redirects/middleware.py
+++ b/sane_redirects/middleware.py
@@ -2,7 +2,10 @@ from __future__ import absolute_import, unicode_literals
from django.conf import settings
from django.http import HttpResponseRe... | Reinstate compatibility with Django <I> | py |
diff --git a/compile.py b/compile.py
index <HASH>..<HASH> 100644
--- a/compile.py
+++ b/compile.py
@@ -107,7 +107,7 @@ def build_pipe(context, pipe):
module = pipe['modules'][module_id]
if module['type'].startswith('pipe:'):
__import__(util.pythonise(module['type']))
- if 'prompt' ... | Same fix as d<I>f<I>c9f4a<I>aa9cf4cc<I>dd<I>fcc<I>ad<I> to build_pipe | py |
diff --git a/linkcheck/gui/options.py b/linkcheck/gui/options.py
index <HASH>..<HASH> 100644
--- a/linkcheck/gui/options.py
+++ b/linkcheck/gui/options.py
@@ -37,19 +37,16 @@ class LinkCheckerOptions (QtGui.QDialog, Ui_Options):
def reset (self):
"""Reset GUI and config options."""
- config = con... | Do not use configuration file options for GUI defaults. | py |
diff --git a/jpype/_jarray.py b/jpype/_jarray.py
index <HASH>..<HASH> 100644
--- a/jpype/_jarray.py
+++ b/jpype/_jarray.py
@@ -50,10 +50,18 @@ class _JavaArrayClass(object):
def __iter__(self):
return _JavaArrayIter(self)
- def __getitem__(self, ndx ):
+ def __getitem__(self, ndx):
+ i... | __getitem__ and __setitem__ can receive slices | py |
diff --git a/mesh_tensorflow/tpu_variables.py b/mesh_tensorflow/tpu_variables.py
index <HASH>..<HASH> 100644
--- a/mesh_tensorflow/tpu_variables.py
+++ b/mesh_tensorflow/tpu_variables.py
@@ -172,6 +172,10 @@ class ReplicatedVariable(object):
def get(self):
return self._primary_var
+ @property
+ def _in_grap... | Distribution Strategy: Enable eager mode in Keras with MirroredStrategy (Part 1). Will update tests in follow ups. PiperOrigin-RevId: <I> | py |
diff --git a/zappa/core.py b/zappa/core.py
index <HASH>..<HASH> 100644
--- a/zappa/core.py
+++ b/zappa/core.py
@@ -397,7 +397,9 @@ class Zappa(object):
# Need to manually add setuptools
pkg_list.append('setuptools')
- pip.main(["install", "--quiet", "--target", venv_site_packages_dir] + pkg_l... | check pip return code So we can stop deployment in case pip fails to lookup libraries. | py |
diff --git a/simuvex/s_run.py b/simuvex/s_run.py
index <HASH>..<HASH> 100644
--- a/simuvex/s_run.py
+++ b/simuvex/s_run.py
@@ -50,8 +50,9 @@ class SimRun(object):
for t in RefTypes:
self._refs[t] = [ ]
- l.debug("%s created with %d constraints.", self, len(self.initial_state.constraints_after()))
+ l.debug("... | fixed logging, changed __str__ to __repr__, even though it's wrong, to match the other SimStuff | py |
diff --git a/examples/starwars/schema.py b/examples/starwars/schema.py
index <HASH>..<HASH> 100644
--- a/examples/starwars/schema.py
+++ b/examples/starwars/schema.py
@@ -41,9 +41,6 @@ class Query(graphene.ObjectType):
id=graphene.Argument(graphene.String)
)
- ... | Removed unnecessary meta in starters example | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -11,7 +11,7 @@ if sys.platform != 'win32' and sys.platform != 'darwin':
requires.append('spidev')
setup(name = 'Adafruit_GPIO',
- version = '0.6.6',
+ version = '0.7',
... | Bump up version to <I>. No breaking changes to existing interfaces, merely a version bump to differentiate library versions with event detection support from those without. | py |
diff --git a/toml/decoder.py b/toml/decoder.py
index <HASH>..<HASH> 100644
--- a/toml/decoder.py
+++ b/toml/decoder.py
@@ -814,7 +814,8 @@ class TomlDecoder(object):
pass
if not oddbackslash:
if closed:
- raise ValueError(... | Improve professionalism of error message. (#<I>) | py |
diff --git a/flasgger/base.py b/flasgger/base.py
index <HASH>..<HASH> 100644
--- a/flasgger/base.py
+++ b/flasgger/base.py
@@ -288,11 +288,11 @@ class APISpecsView(MethodView):
if def_id is not None:
definitions[def_id].update(definition)
- ... | operation: Make 'description' and 'summary' optional. (#<I>) | py |
diff --git a/lib/py/src/protocol/TJSONProtocol.py b/lib/py/src/protocol/TJSONProtocol.py
index <HASH>..<HASH> 100644
--- a/lib/py/src/protocol/TJSONProtocol.py
+++ b/lib/py/src/protocol/TJSONProtocol.py
@@ -251,14 +251,18 @@ class TJSONProtocolBase(TProtocolBase):
def _toChar(self, high, low=None):
if not low... | Revert part of 7f<I>fdef<I>dbbe<I>d<I>bcb<I>ff<I>f<I>f unichr does not work for code point > 0x<I> on ucs2 build | py |
diff --git a/waspy/errorlogging.py b/waspy/errorlogging.py
index <HASH>..<HASH> 100644
--- a/waspy/errorlogging.py
+++ b/waspy/errorlogging.py
@@ -34,14 +34,10 @@ class SentryLogging(ErrorLoggingBase):
self.raven.transaction.clear()
def _get_sentry_details(self, request, exc_info):
- try:
- ... | another attempt to fix issues sending data to sentry | py |
diff --git a/OpenPNM/Algorithms/__OhmicConduction__.py b/OpenPNM/Algorithms/__OhmicConduction__.py
index <HASH>..<HASH> 100644
--- a/OpenPNM/Algorithms/__OhmicConduction__.py
+++ b/OpenPNM/Algorithms/__OhmicConduction__.py
@@ -23,7 +23,6 @@ class OhmicConduction(GenericLinearTransport):
>>> pn = OpenPNM.Network.Te... | fixed bug in OhmicConduction example - initializing array with integer is problematic, and line is unnecessary | py |
diff --git a/doc/conf.py b/doc/conf.py
index <HASH>..<HASH> 100644
--- a/doc/conf.py
+++ b/doc/conf.py
@@ -37,7 +37,7 @@ try:
except ImportError:
print "no sphinx"
-sys.path.insert(0, os.getcwd() + "/..")
+#sys.path.insert(0, os.getcwd() + "/..")
#parent = os.path.abspath(os.path.dirname(os.path.dirname(__file... | Okay definietely no paths adding... lets see what is required for ipython | py |
diff --git a/native_client/python/client.py b/native_client/python/client.py
index <HASH>..<HASH> 100644
--- a/native_client/python/client.py
+++ b/native_client/python/client.py
@@ -120,7 +120,7 @@ def main():
print('Loaded model in {:.3}s.'.format(model_load_end), file=sys.stderr)
if args.beam_width:
- ... | fix beam width setting in python client | py |
diff --git a/tools/nni_trial_tool/trial_keeper.py b/tools/nni_trial_tool/trial_keeper.py
index <HASH>..<HASH> 100644
--- a/tools/nni_trial_tool/trial_keeper.py
+++ b/tools/nni_trial_tool/trial_keeper.py
@@ -51,7 +51,7 @@ def get_hdfs_client(args):
return _hdfs_client
# backward compatibility
hdfs_hos... | fix trial keeper (#<I>) | py |
diff --git a/dftimewolf/cli/dftimewolf_recipes.py b/dftimewolf/cli/dftimewolf_recipes.py
index <HASH>..<HASH> 100755
--- a/dftimewolf/cli/dftimewolf_recipes.py
+++ b/dftimewolf/cli/dftimewolf_recipes.py
@@ -248,7 +248,8 @@ class DFTimewolfTool(object):
self._AddRecipeOptions(argument_parser)
- self._command... | Redirect stdout to stderr for argparse (#<I>) | py |
diff --git a/multimap.py b/multimap.py
index <HASH>..<HASH> 100644
--- a/multimap.py
+++ b/multimap.py
@@ -183,23 +183,26 @@ class MultiMap(collections.Mapping):
except KeyError:
return default
- def getall(self, key):
+ def list(self, key):
"""A list of all the values sto... | Add synonyms for `list` method for compatibility. | py |
diff --git a/tldap/test/slapd.py b/tldap/test/slapd.py
index <HASH>..<HASH> 100644
--- a/tldap/test/slapd.py
+++ b/tldap/test/slapd.py
@@ -45,6 +45,7 @@ LOCALHOST = '127.0.0.1'
def is_port_in_use(port, host=LOCALHOST):
sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
result = sock.connect_ex((host, i... | Explicitly close sockets. Change-Id: Ic3c<I>c<I>a<I>ddf<I>eb<I>a8dcda<I>ac3d6af0c | py |
diff --git a/hydra_base/db/model.py b/hydra_base/db/model.py
index <HASH>..<HASH> 100644
--- a/hydra_base/db/model.py
+++ b/hydra_base/db/model.py
@@ -830,7 +830,7 @@ class Network(Base, Inspect):
l = Link()
l.name = name
l.description = desc
- l.layout = str(layout) i... | Don't json dumps values, instead stringify, assume the jsonification has already been done. | py |
diff --git a/sdk/core/azure-core/tests/async_tests/test_streaming_async.py b/sdk/core/azure-core/tests/async_tests/test_streaming_async.py
index <HASH>..<HASH> 100644
--- a/sdk/core/azure-core/tests/async_tests/test_streaming_async.py
+++ b/sdk/core/azure-core/tests/async_tests/test_streaming_async.py
@@ -173,6 +173,7 ... | mark as live test only (#<I>) | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -1,28 +1,6 @@
#!/usr/bin/env python
-import sys
-from distutils.core import setup, Command
-
-cmdclass = {}
-
-# class TestCommand(Command):
-# description = "run package tests"
-# user_options = [
-# # Use ... | Clean up setup.py Using nosetests now | py |
diff --git a/src/python/dxpy/exceptions.py b/src/python/dxpy/exceptions.py
index <HASH>..<HASH> 100644
--- a/src/python/dxpy/exceptions.py
+++ b/src/python/dxpy/exceptions.py
@@ -45,7 +45,11 @@ class DXJobFailureError(DXError):
'''Exception produced by :class:`dxpy.bindings.dxjob.DXJob` when a job fails.'''
p... | Reverse dependency order of AppError-ProgramError Make AppError temporarily depend on (deprecated) ProgramError to work around try..catch logic in python<I>_template that was not updated and tries to catch ProgramError. This results in apps that use the old template with AppError throwing AppInternalError instead. | py |
diff --git a/pypmc/tools/parallel_sampler.py b/pypmc/tools/parallel_sampler.py
index <HASH>..<HASH> 100644
--- a/pypmc/tools/parallel_sampler.py
+++ b/pypmc/tools/parallel_sampler.py
@@ -47,7 +47,7 @@ class MPISampler(object):
for i in range(1, self._size):
self.history_list.append(self._c... | [tools] adjust to mpi4py > <I> resolves #<I> | py |
diff --git a/examples/run_squad.py b/examples/run_squad.py
index <HASH>..<HASH> 100644
--- a/examples/run_squad.py
+++ b/examples/run_squad.py
@@ -657,8 +657,8 @@ def get_final_text(pred_text, orig_text, do_lower_case, verbose_logging=False):
#
# What we really want to return is "Steve Smith".
#
- # T... | typo in annotation modify `heruistic` to `heuristic` in line <I>, `charcter` to `character` in line <I>. | py |
diff --git a/mizani/bounds.py b/mizani/bounds.py
index <HASH>..<HASH> 100644
--- a/mizani/bounds.py
+++ b/mizani/bounds.py
@@ -349,7 +349,9 @@ def censor(x, range=(0, 1), only_finite=True):
finite = np.repeat(True, len(x))
if hasattr(x, 'dtype'):
- outside = (x < range[0]) | (x > range[1])
+ ... | ENH: Suppress irrelevant RuntimeWarning in censor | py |
diff --git a/pycoin/blockchain/BlockChain.py b/pycoin/blockchain/BlockChain.py
index <HASH>..<HASH> 100644
--- a/pycoin/blockchain/BlockChain.py
+++ b/pycoin/blockchain/BlockChain.py
@@ -110,7 +110,8 @@ class BlockChain(object):
if c in excluded:
break
... | Kludge fix for a problem that occurs when an orphaned block is locked. | py |
diff --git a/openphoto/openphoto_http.py b/openphoto/openphoto_http.py
index <HASH>..<HASH> 100644
--- a/openphoto/openphoto_http.py
+++ b/openphoto/openphoto_http.py
@@ -23,6 +23,7 @@ class OpenPhotoHttp:
self._token = token
self._token_secret = token_secret
+ self._logfile = None
i... | Fix for when no logfile is specified | py |
diff --git a/apluslms-yamlidator/apluslms_yamlidator/utils/collections.py b/apluslms-yamlidator/apluslms_yamlidator/utils/collections.py
index <HASH>..<HASH> 100644
--- a/apluslms-yamlidator/apluslms_yamlidator/utils/collections.py
+++ b/apluslms-yamlidator/apluslms_yamlidator/utils/collections.py
@@ -204,8 +204,13 @@ ... | Show values in repr(ChangesDict), which are only in _data and not in _work | py |
diff --git a/intake/source/cache.py b/intake/source/cache.py
index <HASH>..<HASH> 100644
--- a/intake/source/cache.py
+++ b/intake/source/cache.py
@@ -60,12 +60,12 @@ class BaseCache(object):
"""
self._driver = driver
self._spec = spec
- cd = cache_dir or spec.get('cache_dir', conf['ca... | Don't allow cachedir in spec, only config | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.