diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/demo/gpu_acceleration/bosch.py b/demo/gpu_acceleration/bosch.py
index <HASH>..<HASH> 100644
--- a/demo/gpu_acceleration/bosch.py
+++ b/demo/gpu_acceleration/bosch.py
@@ -3,7 +3,7 @@ import pandas as pd
import xgboost as xgb
import time
import random
-from sklearn.cross_validation import StratifiedKFold
... | cross_validation is included in model_selection module since sklearn <I> (#<I>) | py |
diff --git a/trezorlib/tests/device_tests/test_msg_signtx_decred.py b/trezorlib/tests/device_tests/test_msg_signtx_decred.py
index <HASH>..<HASH> 100644
--- a/trezorlib/tests/device_tests/test_msg_signtx_decred.py
+++ b/trezorlib/tests/device_tests/test_msg_signtx_decred.py
@@ -44,7 +44,6 @@ TXHASH_16da18 = bytes.fromh... | tests: re-enable Decred test for T2 | py |
diff --git a/airflow/hooks/base_hook.py b/airflow/hooks/base_hook.py
index <HASH>..<HASH> 100644
--- a/airflow/hooks/base_hook.py
+++ b/airflow/hooks/base_hook.py
@@ -1,3 +1,5 @@
+import random
+
from airflow import settings
from airflow.models import Connection
@@ -13,11 +15,11 @@ class BaseHook(object):
def ... | Individual conn_id can have multiple entries, client randomly picks | py |
diff --git a/tests/big_bird/test_modeling_big_bird.py b/tests/big_bird/test_modeling_big_bird.py
index <HASH>..<HASH> 100644
--- a/tests/big_bird/test_modeling_big_bird.py
+++ b/tests/big_bird/test_modeling_big_bird.py
@@ -70,7 +70,7 @@ class BigBirdModelTester:
attention_type="block_sparse",
use_bias... | Fix BigBirdModelTester (#<I>) * fix * update the expected value in test_fast_integration | py |
diff --git a/imager/setup.py b/imager/setup.py
index <HASH>..<HASH> 100644
--- a/imager/setup.py
+++ b/imager/setup.py
@@ -11,7 +11,7 @@ setup(
include_package_data=True,
install_requires=[
'vr.runners>=2.0.4,<3',
- 'PyYAML>=3.10',
+ 'PyYAML==3.10',
],
entry_points={
... | Pin PyYAML version to <I> to be happy with dependencies | py |
diff --git a/disqusapi/__init__.py b/disqusapi/__init__.py
index <HASH>..<HASH> 100644
--- a/disqusapi/__init__.py
+++ b/disqusapi/__init__.py
@@ -161,8 +161,10 @@ class Resource(object):
if response.status != 200:
raise APIError(data['code'], data['response'])
-
- return Result(data['res... | Ensure we only return Result's for lists | py |
diff --git a/chisel/app.py b/chisel/app.py
index <HASH>..<HASH> 100644
--- a/chisel/app.py
+++ b/chisel/app.py
@@ -196,13 +196,15 @@ class Context(object):
self.log = logging.getLoggerClass()('')
self.log.setLevel(self.app.log_level)
wsgi_errors = environ.get('wsgi.errors')
- if wsgi_e... | Add null handler when wsgi.errors is None | py |
diff --git a/pyes/aggs.py b/pyes/aggs.py
index <HASH>..<HASH> 100644
--- a/pyes/aggs.py
+++ b/pyes/aggs.py
@@ -346,7 +346,7 @@ class TermsAgg(BucketAgg):
def __init__(self, name, field=None, fields=None, size=100, order=None,
exclude=None, regex=None, regex_flags="DOTALL", script=None,
- ... | Added min_doc_count to TermsAgg. | py |
diff --git a/etc/build.py b/etc/build.py
index <HASH>..<HASH> 100755
--- a/etc/build.py
+++ b/etc/build.py
@@ -24,6 +24,7 @@ DATA_DIR = "/var/lib/chronograf"
SCRIPT_DIR = "/usr/lib/chronograf/scripts"
LOGROTATE_DIR = "/etc/logrotate.d"
CANNED_DIR = "/usr/share/chronograf/canned"
+RESOURCES_DIR = "/usr/share/chronogr... | Add resources dir to build.py PR [#<I>](<URL>) introduced a --resources-path flag, but forgot to update the build.py to properly account for the distributions. | py |
diff --git a/discord/client.py b/discord/client.py
index <HASH>..<HASH> 100644
--- a/discord/client.py
+++ b/discord/client.py
@@ -450,9 +450,10 @@ class Client:
Parameters
----------
email : str
- The email used to login.
+ The email used to login. The string 'token' if... | Fix unclosed response and document token login a bit better. | py |
diff --git a/djangosaml2/utils.py b/djangosaml2/utils.py
index <HASH>..<HASH> 100644
--- a/djangosaml2/utils.py
+++ b/djangosaml2/utils.py
@@ -13,6 +13,7 @@
# limitations under the License.
from django.conf import settings
+from django.core.exceptions import ImproperlyConfigured
from saml2.s_utils import UnknownSy... | Provide nice error message when IdP configuration is missing. This fixes issue #<I>. | py |
diff --git a/insteonplm/devices/ipdb.py b/insteonplm/devices/ipdb.py
index <HASH>..<HASH> 100644
--- a/insteonplm/devices/ipdb.py
+++ b/insteonplm/devices/ipdb.py
@@ -66,8 +66,8 @@ class IPDB():
Product(0x00, 0x17, None, 'Mini Remote - 4 Scene', '2342-532', GeneralController_2342_4),
Product(0x00, 0x1... | Incorrect identification of <I> 8 and 4 button remote (#<I>) This 8 and 4 button remote identification is flipped for the <I> based on the <URL> | py |
diff --git a/tests/functional/test_utils.py b/tests/functional/test_utils.py
index <HASH>..<HASH> 100644
--- a/tests/functional/test_utils.py
+++ b/tests/functional/test_utils.py
@@ -114,5 +114,6 @@ class TestOSUtils(object):
with open(filename, 'w', encoding='utf-8') as f:
f.write(checkmark)
- ... | Change test to explicitly pass encoding | py |
diff --git a/tensor2tensor/rl/envs/tf_atari_wrappers.py b/tensor2tensor/rl/envs/tf_atari_wrappers.py
index <HASH>..<HASH> 100644
--- a/tensor2tensor/rl/envs/tf_atari_wrappers.py
+++ b/tensor2tensor/rl/envs/tf_atari_wrappers.py
@@ -48,6 +48,10 @@ class WrapperBase(InGraphBatchEnv):
"""Access the variable holding th... | Inherit wrapped env's observ_shape in WrapperBase | py |
diff --git a/param/parameterized.py b/param/parameterized.py
index <HASH>..<HASH> 100644
--- a/param/parameterized.py
+++ b/param/parameterized.py
@@ -1188,8 +1188,8 @@ class Parameterized(object):
raise Exception("Argument %r is not a parameter "
"and has an unknown va... | Fixed bug in value comparison for explicit keywords | py |
diff --git a/superset/utils/core.py b/superset/utils/core.py
index <HASH>..<HASH> 100644
--- a/superset/utils/core.py
+++ b/superset/utils/core.py
@@ -328,6 +328,8 @@ def datetime_f(dttm):
def base_json_conv(obj):
+ if isinstance(obj, memoryview):
+ obj = obj.tobytes()
if isinstance(obj, numpy.int64... | Handle memoryview like bytes instances and decode bytes to utf8 (#<I>) | py |
diff --git a/tests/test_config.py b/tests/test_config.py
index <HASH>..<HASH> 100644
--- a/tests/test_config.py
+++ b/tests/test_config.py
@@ -96,7 +96,7 @@ class TestGetDataPath(ConfigTest):
"""
When TASKDATA is not set, data.location in taskrc should be respected.
"""
- os.environ['T... | test_config.py: Test TASKDATA is not set, rather than setting it empty We now consider an empty-string TASKDATA to be a misconfiguration. See GH #<I> for discussion. | py |
diff --git a/paramiko/util.py b/paramiko/util.py
index <HASH>..<HASH> 100644
--- a/paramiko/util.py
+++ b/paramiko/util.py
@@ -307,6 +307,6 @@ def constant_time_bytes_eq(a, b):
if len(a) != len(b):
return False
res = 0
- for i in xrange(len(a)):
- res |= ord(a[i]) ^ ord(b[i])
+ for i in ... | Fix some Py2-isms in constant_time_bytes_eq | py |
diff --git a/src/pyrocore/util/traits.py b/src/pyrocore/util/traits.py
index <HASH>..<HASH> 100644
--- a/src/pyrocore/util/traits.py
+++ b/src/pyrocore/util/traits.py
@@ -64,7 +64,8 @@ TV_PATTERNS = [re.compile(i, re.I) for i in (
),
( # Mini Series
r"^(?P<show>.+?)"
- r"(?:\.(?:(?P<year>\d{4}... | do not match mini series with just a year, since that matches movies also | py |
diff --git a/ceph_deploy/mon.py b/ceph_deploy/mon.py
index <HASH>..<HASH> 100644
--- a/ceph_deploy/mon.py
+++ b/ceph_deploy/mon.py
@@ -158,6 +158,20 @@ def destroy_mon(cluster):
)
if os.path.exists(path):
+ # remove from cluster
+ subprocess.check_call(
+ args=[
+ ... | mon: remove mon from cluster before stopping daemon This fixes a transition from 2->1 mons, where the second mon needs to be in the quorum in order to remove itself. | py |
diff --git a/odl/test/solvers/nonsmooth/difference_convex_test.py b/odl/test/solvers/nonsmooth/difference_convex_test.py
index <HASH>..<HASH> 100644
--- a/odl/test/solvers/nonsmooth/difference_convex_test.py
+++ b/odl/test/solvers/nonsmooth/difference_convex_test.py
@@ -49,6 +49,7 @@ def test_dca():
# Set the prob... | DOC: Clarify which case the d.c. test is in. | py |
diff --git a/pymc3/stats.py b/pymc3/stats.py
index <HASH>..<HASH> 100644
--- a/pymc3/stats.py
+++ b/pymc3/stats.py
@@ -129,7 +129,7 @@ def dic(trace, model=None):
return 2 * mean_deviance - deviance_at_mean
-def _log_post_trace(trace, model, progressbar=False):
+def _log_post_trace(trace, model=None, progressb... | Small change in `pymc3.stats._log_post_trace` (#<I>) Small change in the function so that: 1, The input argument match with the doc string 2, The style match with other functions Small change so I am not adding to the release note. | py |
diff --git a/tests/alias_dict.py b/tests/alias_dict.py
index <HASH>..<HASH> 100644
--- a/tests/alias_dict.py
+++ b/tests/alias_dict.py
@@ -1,3 +1,5 @@
+import copy
+
from spec import Spec, eq_, ok_, raises, skip
from lexicon import AliasDict
@@ -102,3 +104,15 @@ class AliasDict_(Spec):
ad['realkey'] = ... | Test deepcopying current AliasDict implementation. No work needed! | py |
diff --git a/django_select2/fields.py b/django_select2/fields.py
index <HASH>..<HASH> 100644
--- a/django_select2/fields.py
+++ b/django_select2/fields.py
@@ -145,6 +145,16 @@ class ModelResultJsonMixin(object):
super(ModelResultJsonMixin, self).__init__(*args, **kwargs)
def get_queryset(self):
+ ... | Added doc to get_queryset. | py |
diff --git a/two_factor/views/core.py b/two_factor/views/core.py
index <HASH>..<HASH> 100644
--- a/two_factor/views/core.py
+++ b/two_factor/views/core.py
@@ -522,10 +522,12 @@ class SetupView(IdempotentSessionWizardView):
Only used for call / sms -- generator uses other procedure.
"""
- meth... | Also cache get_device for SetupView (#<I>) | py |
diff --git a/openquake/commonlib/export/hazard.py b/openquake/commonlib/export/hazard.py
index <HASH>..<HASH> 100644
--- a/openquake/commonlib/export/hazard.py
+++ b/openquake/commonlib/export/hazard.py
@@ -442,10 +442,11 @@ def export_hmaps_xml_json(ekey, dstore):
@export.add(('hcurves', 'hdf5'), ('hmaps', 'hdf5'),... | Added lon,lat to the exported hdf5 data Former-commit-id: <I>fb8c<I>d4c<I>a2dc7abc<I>e<I>f<I> | py |
diff --git a/salt/utils/mac_utils.py b/salt/utils/mac_utils.py
index <HASH>..<HASH> 100644
--- a/salt/utils/mac_utils.py
+++ b/salt/utils/mac_utils.py
@@ -49,7 +49,6 @@ def _run_all(cmd):
'''
run_env = os.environ.copy()
- run_env.update(None)
kwargs = {'cwd': None,
'shell': DEFAULT_... | Fix some errors in mac_utils | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -13,6 +13,8 @@ from distutils.spawn import find_executable
from setuptools import setup
from setuptools.command.build_py import build_py
+import gameversion_autogen as ver
+
SETUP_DIR = os.path.dirname(os.path.abspath(__f... | Updating setup.py to reference auto-generated game version | py |
diff --git a/openpnm/models/geometry/diffusive_size_factors.py b/openpnm/models/geometry/diffusive_size_factors.py
index <HASH>..<HASH> 100644
--- a/openpnm/models/geometry/diffusive_size_factors.py
+++ b/openpnm/models/geometry/diffusive_size_factors.py
@@ -439,25 +439,6 @@ def intersecting_cones(
"""
rais... | Added raise NotImplementedError to intersecting_conse size factor model | py |
diff --git a/doc/conf.py b/doc/conf.py
index <HASH>..<HASH> 100644
--- a/doc/conf.py
+++ b/doc/conf.py
@@ -32,11 +32,6 @@ extensions = [
'sphinx_issues',
]
-releases_unstable_prehistory = True
-releases_document_name = ["history"]
-releases_issue_uri = "https://github.com/tmux-python/libtmux/issues/%s"
-release... | build(docs): Remove settings leftover from sphinx-releases | py |
diff --git a/src/python/dxpy/app_builder.py b/src/python/dxpy/app_builder.py
index <HASH>..<HASH> 100644
--- a/src/python/dxpy/app_builder.py
+++ b/src/python/dxpy/app_builder.py
@@ -174,11 +174,7 @@ def upload_applet(src_dir, uploaded_resources, check_name_collisions=True, overw
# Include the DNAnexus client li... | PTFM-<I> Autodeps install from apt instead of from source. | py |
diff --git a/cassandra/connection.py b/cassandra/connection.py
index <HASH>..<HASH> 100644
--- a/cassandra/connection.py
+++ b/cassandra/connection.py
@@ -519,6 +519,7 @@ class Connection(object):
def _reset_frame(self):
self._iobuf = io.BytesIO(self._iobuf.read())
+ self._iobuf.seek(0, io.SEEK_E... | Properly seek stream pos after copying parital message from io buf Fixes an input buffer management issue. Symptoms: protocol or decode errors as messages collide in the buffer. | py |
diff --git a/umbra/launcher.py b/umbra/launcher.py
index <HASH>..<HASH> 100644
--- a/umbra/launcher.py
+++ b/umbra/launcher.py
@@ -21,6 +21,19 @@ import os
import sys
#**********************************************************************************************************************
+#*** Encoding manipulations.... | Fix encoding related issue in frozen builds. | py |
diff --git a/pyca/ui/jsonapi.py b/pyca/ui/jsonapi.py
index <HASH>..<HASH> 100644
--- a/pyca/ui/jsonapi.py
+++ b/pyca/ui/jsonapi.py
@@ -78,7 +78,7 @@ def internal_state():
return make_response(jsonify({'meta': data}))
-@app.route('/api/events/')
+@app.route('/api/events')
@requires_auth
@jsonapi_mediatype
@w... | Serve /api/events This patch makes the API serve /api/events directly, instead of sending a redirect to /api/events/. This prevents requests in the user interface and potential mixed content violations if the interface address is set to HTTP. | py |
diff --git a/core/version.py b/core/version.py
index <HASH>..<HASH> 100644
--- a/core/version.py
+++ b/core/version.py
@@ -100,7 +100,7 @@ def check(forceUpdate=False):
and also allow their desktop client to operate on the same folder.
"""
if forceUpdate:
- with open(swhlab.LOCALPATH+"/UPDATENO... | correction to allow writing to the UPDATENOW.txt file | py |
diff --git a/falafel/__init__.py b/falafel/__init__.py
index <HASH>..<HASH> 100644
--- a/falafel/__init__.py
+++ b/falafel/__init__.py
@@ -5,7 +5,7 @@ from .mappers import get_active_lines # noqa: F401
from .util import defaults, parse_table # noqa: F401
__here__ = os.path.dirname(os.path.abspath(__file__))
-VERS... | Bumping version to <I> | py |
diff --git a/xbbg/__init__.py b/xbbg/__init__.py
index <HASH>..<HASH> 100644
--- a/xbbg/__init__.py
+++ b/xbbg/__init__.py
@@ -1,3 +1,3 @@
"""Bloomberg data toolkit for humans"""
-__version__ = '0.2.5'
+__version__ = '0.2.6' | version <I>: fix bugs in futures contracts (thx jkassies) | py |
diff --git a/singularity/build/google.py b/singularity/build/google.py
index <HASH>..<HASH> 100644
--- a/singularity/build/google.py
+++ b/singularity/build/google.py
@@ -363,8 +363,8 @@ def get_build_metadata(key):
if response.status_code == 200:
return response.text
else:
- bot.logger.error(... | modified: singularity/build/google.py | py |
diff --git a/src/binwalk/core/magic.py b/src/binwalk/core/magic.py
index <HASH>..<HASH> 100644
--- a/src/binwalk/core/magic.py
+++ b/src/binwalk/core/magic.py
@@ -405,7 +405,7 @@ class Magic(object):
text = text.lower()
for include in self.includes:
- if include.match(text):
+ ... | Filter expressions are now applied via re.search instead of re.match | py |
diff --git a/tests/tests.py b/tests/tests.py
index <HASH>..<HASH> 100644
--- a/tests/tests.py
+++ b/tests/tests.py
@@ -137,6 +137,17 @@ def test_load_cached():
check_dict(data)
+def test_safe_attrs():
+ clear(settings.DB)
+
+ ua = UserAgent(safe_attrs=('foo',))
+
+ try:
+ ua.foo
+ except Att... | Add testcase for safe attributes feature. | py |
diff --git a/inspire_schemas/builders.py b/inspire_schemas/builders.py
index <HASH>..<HASH> 100644
--- a/inspire_schemas/builders.py
+++ b/inspire_schemas/builders.py
@@ -350,6 +350,7 @@ class LiteratureBuilder(object):
journal_title=None,
journal_volume=None,
pubinfo_freetext=None,
+ ... | builder: support for `publication.material` field * Adds: support for `publication.material` field. Closes #<I> | py |
diff --git a/tests/lax_numpy_test.py b/tests/lax_numpy_test.py
index <HASH>..<HASH> 100644
--- a/tests/lax_numpy_test.py
+++ b/tests/lax_numpy_test.py
@@ -2120,6 +2120,7 @@ class LaxBackedNumpyTests(jtu.JaxTestCase):
for shape in [(8,), (3, 8)] # last dim = 8 to ensure shape compatibility
for a_dtype in ... | disable arr.view() test on TPU (#<I>) * disable arr.view() test on TPU * Update lax_numpy_test.py Use decorator. * Update lax_numpy_test.py | py |
diff --git a/src/everett/manager.py b/src/everett/manager.py
index <HASH>..<HASH> 100644
--- a/src/everett/manager.py
+++ b/src/everett/manager.py
@@ -1038,20 +1038,6 @@ class ConfigManager(ConfigManagerBase):
errors
.. versionadded:: 0.6
- :arg msg_builder: function that takes argume... | Fix an issue from a bad merge | py |
diff --git a/benchmark.py b/benchmark.py
index <HASH>..<HASH> 100644
--- a/benchmark.py
+++ b/benchmark.py
@@ -64,10 +64,12 @@ def get_tree_size(path):
size = 0
try:
for entry in scandir.scandir(path):
- if entry.is_dir(follow_symlinks=False):
+ if entry.is_symlink():
+ ... | Don't follow symlinks or count size of symlinks in benchmark. | py |
diff --git a/src/saml2/population.py b/src/saml2/population.py
index <HASH>..<HASH> 100644
--- a/src/saml2/population.py
+++ b/src/saml2/population.py
@@ -4,7 +4,10 @@ from saml2.cache import Cache
class Population(object):
def __init__(self, cache=None):
if cache:
- self.cache = cache
+ ... | One more case when it comes to cache type | py |
diff --git a/carotte/worker.py b/carotte/worker.py
index <HASH>..<HASH> 100755
--- a/carotte/worker.py
+++ b/carotte/worker.py
@@ -53,11 +53,8 @@ class Worker(object):
task_result_backend = Dummy()
self.task_result_backend = task_result_backend
- from .results.backends import Redis
- ... | Reset Dummy backend and task_result_expires to 1 day | py |
diff --git a/salt/key.py b/salt/key.py
index <HASH>..<HASH> 100644
--- a/salt/key.py
+++ b/salt/key.py
@@ -19,6 +19,7 @@ from salt.ext.six.moves import input
# Import salt libs
import salt.crypt
import salt.utils
+import salt.exceptions
import salt.utils.event
import salt.daemons.masterapi
from salt.utils import ... | Raise exit with err code if no key found Closes #<I> | py |
diff --git a/command/__init__.py b/command/__init__.py
index <HASH>..<HASH> 100644
--- a/command/__init__.py
+++ b/command/__init__.py
@@ -13,4 +13,6 @@ __all__ = ['build',
'install_lib',
'clean',
'sdist',
+ 'bdist',
+ 'bdist_dumb',
] | Added 'bdist' and 'bdist_dumb'. | py |
diff --git a/pyaxiom/__init__.py b/pyaxiom/__init__.py
index <HASH>..<HASH> 100644
--- a/pyaxiom/__init__.py
+++ b/pyaxiom/__init__.py
@@ -1,4 +1,4 @@
-__version__ = "0.0.4"
+__version__ = "0.0.5-dev"
# Package level logger
import logging | Bump to <I>-dev | py |
diff --git a/holoviews/operation/datashader.py b/holoviews/operation/datashader.py
index <HASH>..<HASH> 100644
--- a/holoviews/operation/datashader.py
+++ b/holoviews/operation/datashader.py
@@ -1565,7 +1565,8 @@ class SpreadingOperation(LinkableOperation):
new_data[tuple(vd.name for vd in vdims)] = img
... | Ensure dynspread handles zero width/height Image/RBG (#<I>) | py |
diff --git a/rebulk/__version__.py b/rebulk/__version__.py
index <HASH>..<HASH> 100644
--- a/rebulk/__version__.py
+++ b/rebulk/__version__.py
@@ -4,4 +4,4 @@
Version module
"""
# pragma: no cover
-__version__ = '2.0.0.dev0'
+__version__ = '2.0.0' | Preparing release <I> | py |
diff --git a/volapi/volapi.py b/volapi/volapi.py
index <HASH>..<HASH> 100644
--- a/volapi/volapi.py
+++ b/volapi/volapi.py
@@ -47,7 +47,7 @@ from autobahn.asyncio.websocket import WebSocketClientProtocol
from .multipart import Data
-__version__ = "1.2.3"
+__version__ = "1.2.4"
BASE_URL = "https://volafile.io"
... | fix file expire time, <I> | py |
diff --git a/backtrader/talib.py b/backtrader/talib.py
index <HASH>..<HASH> 100644
--- a/backtrader/talib.py
+++ b/backtrader/talib.py
@@ -66,6 +66,8 @@ else:
_refname = '_taindcol'
_taindcol = dict()
+ _KNOWN_UNSTABLE = ['SAR']
+
def dopostinit(cls, _obj, *args, **kwargs):
... | Add unstable exception for TALIB SAR | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -7,6 +7,7 @@ from distutils.core import Extension
module = Extension('confluent_kafka.cimpl',
include_dirs = ['/usr/local/include'],
libraries= ['rdkafka'],
+ libra... | Add /usr/local/lib to library_dirs in setup | py |
diff --git a/everest/resources/descriptors.py b/everest/resources/descriptors.py
index <HASH>..<HASH> 100644
--- a/everest/resources/descriptors.py
+++ b/everest/resources/descriptors.py
@@ -189,10 +189,6 @@ class member_attribute(_relation_attribute):
cardinality=cardinality,
... | Removed some obsolete private variables in the member_attribute descriptor class. | py |
diff --git a/peyotl/utility/get_config.py b/peyotl/utility/get_config.py
index <HASH>..<HASH> 100644
--- a/peyotl/utility/get_config.py
+++ b/peyotl/utility/get_config.py
@@ -83,16 +83,6 @@ def get_raw_default_config_and_read_file_list():
read_config = get_raw_default_config_and_read_file_list
-def _get_config_or_... | ConfigWrapper fails if a config cannot be read, rather than acting like an empty config file | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -25,7 +25,7 @@ setup(
packages=['fuzzywuzzy'],
extras_require={'speedup': ['python-levenshtein>=0.12']},
url='https://github.com/seatgeek/fuzzywuzzy',
- license=open('LICENSE.txt').read(),
+ license="GPL",... | Fix setup.py (addresses #<I>) | py |
diff --git a/rest_registration/utils/html.py b/rest_registration/utils/html.py
index <HASH>..<HASH> 100644
--- a/rest_registration/utils/html.py
+++ b/rest_registration/utils/html.py
@@ -92,7 +92,7 @@ TagInfo = namedtuple('TagInfo', ('name', 'attrs'))
class MLStripper(HTMLParser):
def __init__(self, preserve_ur... | Explicitly set convert_charrefs to True This is required for Python <I> | py |
diff --git a/python_modules/dagster/dagster/core/definitions/decorators/solid.py b/python_modules/dagster/dagster/core/definitions/decorators/solid.py
index <HASH>..<HASH> 100644
--- a/python_modules/dagster/dagster/core/definitions/decorators/solid.py
+++ b/python_modules/dagster/dagster/core/definitions/decorators/so... | fix error message when solid is missing context Summary: I missed this when I made it possible to omit the context arg when you have required resource keys. Test Plan: bk Reviewers: cdecarolis Reviewed By: cdecarolis Differential Revision: <URL> | py |
diff --git a/gns3server/utils/picture.py b/gns3server/utils/picture.py
index <HASH>..<HASH> 100644
--- a/gns3server/utils/picture.py
+++ b/gns3server/utils/picture.py
@@ -99,8 +99,8 @@ def get_size(data, default_width=0, default_height=0):
root = tree.getroot()
try:
- width = _svg_convert... | Fix a crash with missing size in the svg files Fix #<I> | py |
diff --git a/microsoftbotframework/msbot.py b/microsoftbotframework/msbot.py
index <HASH>..<HASH> 100644
--- a/microsoftbotframework/msbot.py
+++ b/microsoftbotframework/msbot.py
@@ -25,7 +25,7 @@ class MsBot:
if valid_token:
json_message = request.get_json()
- self.app.lo... | Placed headers in a dict | py |
diff --git a/doctr/travis.py b/doctr/travis.py
index <HASH>..<HASH> 100644
--- a/doctr/travis.py
+++ b/doctr/travis.py
@@ -455,7 +455,7 @@ The doctr command that was run is
)
# Only commit if there were changes
- if subprocess.run(['git', 'diff-index', '--exit-code', '--quiet', 'HEAD', '--'],
+ if run... | Use run() instead of subprocess.run() to check for uncommitted changes | py |
diff --git a/shop_paypal/payment.py b/shop_paypal/payment.py
index <HASH>..<HASH> 100644
--- a/shop_paypal/payment.py
+++ b/shop_paypal/payment.py
@@ -139,3 +139,8 @@ class OrderWorkflowMixin(object):
assert payment.amount.get_currency() == transaction['amount']['currency'].upper(), "Currency mismatch"
... | added method acknowledge_paypal_payment | py |
diff --git a/tests/python-gpu/test_from_columnar.py b/tests/python-gpu/test_from_columnar.py
index <HASH>..<HASH> 100644
--- a/tests/python-gpu/test_from_columnar.py
+++ b/tests/python-gpu/test_from_columnar.py
@@ -47,10 +47,6 @@ Arrow specification.'''
dmatrix_from_cudf(np.float32, np.NAN)
dmatrix_fr... | uint not supported in cudf (#<I>) | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -74,11 +74,5 @@ setup(
':python_version=="2.7"': [
'ipaddress',
],
- ':python_version=="3.0"': [
- 'importlib',
- ],
- ':python_version=="3.2"': [
- 'ip... | Remove extras_require for unsupported Python versions Python <I> and <I> are not tested, nor supported. Drop the reference in extras_require. | py |
diff --git a/Lib/glyphs2ufo/casting.py b/Lib/glyphs2ufo/casting.py
index <HASH>..<HASH> 100644
--- a/Lib/glyphs2ufo/casting.py
+++ b/Lib/glyphs2ufo/casting.py
@@ -259,7 +259,7 @@ def nodelist(strlist):
def glyphs_datetime(string):
"""Parse a datetime object from a string, ignoring the timezone."""
- return d... | Assume the timezone offset is always zero I think that this is safe to assume for dates in Glyph sources. | py |
diff --git a/py/tests/unit/with_runtime_sparkling/test_automl.py b/py/tests/unit/with_runtime_sparkling/test_automl.py
index <HASH>..<HASH> 100644
--- a/py/tests/unit/with_runtime_sparkling/test_automl.py
+++ b/py/tests/unit/with_runtime_sparkling/test_automl.py
@@ -24,7 +24,7 @@ import os
from pyspark.ml import Pipel... | [SW-<I>] Get AutoML Python Tests Aligned with PUBDEV-<I> (#<I>) * [SW-<I>] Get AutoML Python Tests Aligned with PUBDEV-<I> * simplify regexp | py |
diff --git a/openquake/db/models.py b/openquake/db/models.py
index <HASH>..<HASH> 100644
--- a/openquake/db/models.py
+++ b/openquake/db/models.py
@@ -33,7 +33,7 @@ class FloatArrayField(models.Field): # pylint: disable=R0904
return 'float[]'
def get_prep_value(self, value):
- if value:
+ ... | Differentiate between None (=NULL) and empty list (=empty array) when inserting array field values. | py |
diff --git a/sciunit/base.py b/sciunit/base.py
index <HASH>..<HASH> 100644
--- a/sciunit/base.py
+++ b/sciunit/base.py
@@ -1,31 +1,27 @@
"""The base class for many SciUnit objects."""
+
+
import os
import sys
-import json
-import pickle
-import hashlib
+
+PLATFORM = sys.platform
+PYTHON_MAJOR_VERSION = sys.version... | Organise importing in base.py | py |
diff --git a/botstory/ast/story_context/__init__.py b/botstory/ast/story_context/__init__.py
index <HASH>..<HASH> 100644
--- a/botstory/ast/story_context/__init__.py
+++ b/botstory/ast/story_context/__init__.py
@@ -1,6 +1,7 @@
from botstory import matchers
from botstory.ast import callable, forking, loop
from botsto... | encode message context by advanced json encode to handle pymongo objectid | py |
diff --git a/pghoard/basebackup.py b/pghoard/basebackup.py
index <HASH>..<HASH> 100644
--- a/pghoard/basebackup.py
+++ b/pghoard/basebackup.py
@@ -158,16 +158,18 @@ class PGBaseBackup(PGHoardThread):
else:
raise errors.InvalidConfigurationError("Unsupported basebackup_mode {!r}".format(bas... | Revert to broad exceptions handling when catching backup errors We don't know all the exceptions which are considered retriable when doing backups, so revert this change and log exception instead of re-raising. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -136,7 +136,7 @@ setup(
"druid": ["pydruid>=0.6.1,<0.7"],
"solr": ["sqlalchemy-solr >= 0.2.0"],
"elasticsearch": ["elasticsearch-dbapi>=0.2.0, <0.3.0"],
- "exasol": ["sqlalchemy-exasol>=2.1.0,... | Update dependencies for exasol feature flag (#<I>) Updating the sqlalchemy-exasol package will fix #<I> . | py |
diff --git a/nassl/ssl_client.py b/nassl/ssl_client.py
index <HASH>..<HASH> 100755
--- a/nassl/ssl_client.py
+++ b/nassl/ssl_client.py
@@ -128,7 +128,7 @@ class SslClient(object):
self._ssl_ctx.set_client_cert_cb_NULL()
def _init_openssl_objects(self, underlying_socket, ssl_version, nassl_module):
-... | Do not allow overriding the underlying socket | py |
diff --git a/pliers/converters/base.py b/pliers/converters/base.py
index <HASH>..<HASH> 100644
--- a/pliers/converters/base.py
+++ b/pliers/converters/base.py
@@ -6,7 +6,7 @@ from six import with_metaclass
from pliers.utils import listify, EnvironmentKeyMixin
from pliers import config
import pliers
-
+import inspect... | Check if cls is class | py |
diff --git a/docs/source/conf.py b/docs/source/conf.py
index <HASH>..<HASH> 100644
--- a/docs/source/conf.py
+++ b/docs/source/conf.py
@@ -47,7 +47,7 @@ extensions = [
'sphinx.ext.mathjax',
'sphinx.ext.autosummary',
#'sphinx.ext.automodsumm',
- 'nbsphinx',
+ #'nbsphinx',
'IPython.sphinxext.ipy... | Remove nbsphinx from list of sphinx extensions in conf.py | py |
diff --git a/gammafit/tests/test_functionfit.py b/gammafit/tests/test_functionfit.py
index <HASH>..<HASH> 100644
--- a/gammafit/tests/test_functionfit.py
+++ b/gammafit/tests/test_functionfit.py
@@ -109,16 +109,14 @@ def test_init_prior():
prior=None, nwalkers=10, nrun=2, nburn=0, threads=1)
@pytest.mark.sk... | use pytest.raises in exception tests | py |
diff --git a/mir_eval/beat.py b/mir_eval/beat.py
index <HASH>..<HASH> 100644
--- a/mir_eval/beat.py
+++ b/mir_eval/beat.py
@@ -700,10 +700,8 @@ def evaluate(reference_beats, estimated_beats, **kwargs):
util.filter_kwargs(cemgil, reference_beats, estimated_beats, **kwargs)
# Goto
- # XXX:2014-01-24 12... | Metric may be deprecated but it's still used in MIREX, so we should still compute it. If an end-user wants to ignore it, they can | py |
diff --git a/test/test_functional_tensor.py b/test/test_functional_tensor.py
index <HASH>..<HASH> 100644
--- a/test/test_functional_tensor.py
+++ b/test/test_functional_tensor.py
@@ -328,8 +328,8 @@ class Tester(unittest.TestCase):
script_size = [size, ]
else:
... | variable name should match that of tested method (#<I>) | py |
diff --git a/cumulusci/robotframework/pageobjects/PageObjects.py b/cumulusci/robotframework/pageobjects/PageObjects.py
index <HASH>..<HASH> 100644
--- a/cumulusci/robotframework/pageobjects/PageObjects.py
+++ b/cumulusci/robotframework/pageobjects/PageObjects.py
@@ -271,22 +271,16 @@ class PageObjects(object):
def... | For `wait for modal`, make checking the heading optional Without this change it was hard to use this class for the edit modal, since the heading included the object name which the test might not have in hand. You can still verify the heading by explicitly supplying it. | py |
diff --git a/tests/test_decorators.py b/tests/test_decorators.py
index <HASH>..<HASH> 100644
--- a/tests/test_decorators.py
+++ b/tests/test_decorators.py
@@ -367,8 +367,11 @@ def test_extending_api():
def test_cli():
'''Test to ensure the CLI wrapper works as intended'''
- @hug.cli('command', '1.0.0')
+ ... | Add full interface test for clis | py |
diff --git a/gwpy/tests/test_detector.py b/gwpy/tests/test_detector.py
index <HASH>..<HASH> 100644
--- a/gwpy/tests/test_detector.py
+++ b/gwpy/tests/test_detector.py
@@ -374,6 +374,7 @@ class TestChannel(object):
assert getattr(c, key) == pdict[key]
assert c.ndsname == name
+ @utils.skip_mis... | tests: added skip for missing ligo.org package | py |
diff --git a/torchvision/models/segmentation/deeplabv3.py b/torchvision/models/segmentation/deeplabv3.py
index <HASH>..<HASH> 100644
--- a/torchvision/models/segmentation/deeplabv3.py
+++ b/torchvision/models/segmentation/deeplabv3.py
@@ -80,7 +80,7 @@ class ASPP(nn.Module):
self.convs = nn.ModuleList(modules)... | remove hard coded value (#<I>) | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -23,7 +23,7 @@ def readme():
def version():
- return '0.1.6'
+ return '0.1.7'
setuptools.setup( | Update version to <I>. All tests pass on <I> and <I>. | py |
diff --git a/lifesospy/client.py b/lifesospy/client.py
index <HASH>..<HASH> 100644
--- a/lifesospy/client.py
+++ b/lifesospy/client.py
@@ -225,7 +225,8 @@ class Client(asyncio.Protocol):
self._time_last_data = time.time()
command_text = command.format(password)
self._transport.write(command_t... | Hide password in logger output. | py |
diff --git a/SoftLayer/CLI/event_log/get.py b/SoftLayer/CLI/event_log/get.py
index <HASH>..<HASH> 100644
--- a/SoftLayer/CLI/event_log/get.py
+++ b/SoftLayer/CLI/event_log/get.py
@@ -47,7 +47,7 @@ def cli(env, date_min, date_max, obj_event, obj_id, obj_type, utc_offset, metada
row_count = 0
click.secho(", ".j... | Change type() by isinstance() conditional | py |
diff --git a/scripts/experiments/scrape_expout.py b/scripts/experiments/scrape_expout.py
index <HASH>..<HASH> 100644
--- a/scripts/experiments/scrape_expout.py
+++ b/scripts/experiments/scrape_expout.py
@@ -47,8 +47,8 @@ class DPScraper(Scraper):
return
if exp.get("expname") == "bnb-semi... | better sizes for clipped files. git-svn-id: svn+ssh://external.hltcoe.jhu.edu/home/hltcoe/mgormley/public/repos/dep_parse_filtered/trunk@<I> <I>f-cb4b-<I>-8b<I>-c<I>bcb<I> | py |
diff --git a/zipline/simulator.py b/zipline/simulator.py
index <HASH>..<HASH> 100644
--- a/zipline/simulator.py
+++ b/zipline/simulator.py
@@ -33,6 +33,10 @@ class Simulator(ComponentHost):
ComponentHost.__init__(self, addresses)
self.subthreads = []
self.running = False
+
+ @property
... | set get_id property for the simulator, per @sdiehl's request | py |
diff --git a/salt/states/ssh_auth.py b/salt/states/ssh_auth.py
index <HASH>..<HASH> 100644
--- a/salt/states/ssh_auth.py
+++ b/salt/states/ssh_auth.py
@@ -282,7 +282,13 @@ def present(
)
return ret
+ # Get only the path to the file without env referrences to check if exists
if source... | Handle missing source file in ssh_auth. Added one more condition to check if source file exsists. In case source is set but source is not a file data and err variables are set to return a proper response. Fixes #<I> | py |
diff --git a/detect_secrets/__init__.py b/detect_secrets/__init__.py
index <HASH>..<HASH> 100644
--- a/detect_secrets/__init__.py
+++ b/detect_secrets/__init__.py
@@ -1 +1 @@
-VERSION = '0.12.6'
+VERSION = '0.12.7' | :fist: Bumping version to <I> | py |
diff --git a/pyrogram/client/dispatcher/dispatcher.py b/pyrogram/client/dispatcher/dispatcher.py
index <HASH>..<HASH> 100644
--- a/pyrogram/client/dispatcher/dispatcher.py
+++ b/pyrogram/client/dispatcher/dispatcher.py
@@ -128,10 +128,11 @@ class Dispatcher:
parser = self.update_parsers.get(type(upda... | First working (and ugly) way for fixing raw updates being swallowed | py |
diff --git a/test/test_pf_against_pandapower.py b/test/test_pf_against_pandapower.py
index <HASH>..<HASH> 100644
--- a/test/test_pf_against_pandapower.py
+++ b/test/test_pf_against_pandapower.py
@@ -3,15 +3,22 @@ from __future__ import absolute_import
import pypsa
-import pandapower as pp
-
import pandas as pd
... | test: handle missing Python 2 support for pandapower | py |
diff --git a/ida_settings/ida_settings.py b/ida_settings/ida_settings.py
index <HASH>..<HASH> 100644
--- a/ida_settings/ida_settings.py
+++ b/ida_settings/ida_settings.py
@@ -296,9 +296,9 @@ def has_qsettings_write_permission(settings):
settings.sync()
# there's a race here, if another thread/process also
... | fix permissions check closes #6. | py |
diff --git a/starlette/middleware/sessions.py b/starlette/middleware/sessions.py
index <HASH>..<HASH> 100644
--- a/starlette/middleware/sessions.py
+++ b/starlette/middleware/sessions.py
@@ -49,7 +49,10 @@ class SessionMiddleware:
data = b64encode(json.dumps(scope["session"]).encode("utf-8"))
... | Use path=/ for session cookies (#<I>) | py |
diff --git a/py/tests/integ_test_utils.py b/py/tests/integ_test_utils.py
index <HASH>..<HASH> 100644
--- a/py/tests/integ_test_utils.py
+++ b/py/tests/integ_test_utils.py
@@ -77,6 +77,7 @@ class IntegTestSuite(unittest.TestCase):
cmd_line.extend(["--conf", '"spark.driver.extraJavaOptions=-XX:MaxPermSize=384m -... | [HOTFIX] :fire: Make also pySparklingi test infrastructure more stable | py |
diff --git a/ratcave/camera.py b/ratcave/camera.py
index <HASH>..<HASH> 100644
--- a/ratcave/camera.py
+++ b/ratcave/camera.py
@@ -210,10 +210,6 @@ class Camera(PhysicalGraph, HasUniforms, mixins.NameLabelMixin):
def __exit__(self, *args):
pass
- def on_change(self):
- PhysicalGraph.on_change(... | Removed duplicate projection update call--Projections update themselves when changed. | py |
diff --git a/invenio_records/api.py b/invenio_records/api.py
index <HASH>..<HASH> 100644
--- a/invenio_records/api.py
+++ b/invenio_records/api.py
@@ -143,13 +143,11 @@ class Record(RecordBase):
Raises database exception if record does not exists.
"""
- from .models import RecordMetadata
... | api: workaround removal from get_record * INCOMPATIBLE Removes a workaround for a bug fixed in SQLAlchemy><I>. | py |
diff --git a/cwltool/main.py b/cwltool/main.py
index <HASH>..<HASH> 100755
--- a/cwltool/main.py
+++ b/cwltool/main.py
@@ -22,7 +22,9 @@ import update
from process import shortname
_logger = logging.getLogger("cwltool")
-_logger.addHandler(logging.StreamHandler())
+
+defaultStreamHandler = logging.StreamHandler()
+... | Adjust logging handler to avoid redundant output. | py |
diff --git a/tgext/evolve/ming_evolver.py b/tgext/evolve/ming_evolver.py
index <HASH>..<HASH> 100644
--- a/tgext/evolve/ming_evolver.py
+++ b/tgext/evolve/ming_evolver.py
@@ -3,6 +3,7 @@
import os
import logging
from .evolver import Evolver
+from pymongo.collection import ReturnDocument
log = logging.getLogger('t... | fixed as commented by amol here: <URL> | py |
diff --git a/raven/utils/http.py b/raven/utils/http.py
index <HASH>..<HASH> 100644
--- a/raven/utils/http.py
+++ b/raven/utils/http.py
@@ -13,13 +13,12 @@ import ssl
import sys
from raven.conf import defaults
-from raven.utils import six
from raven.utils.compat import urllib2
from raven.utils.ssl_match_hostname i... | Maintain behavior between python 2/3 | py |
diff --git a/github_release.py b/github_release.py
index <HASH>..<HASH> 100755
--- a/github_release.py
+++ b/github_release.py
@@ -59,8 +59,8 @@ def get_releases(repo_name, verbose=False):
response.raise_for_status()
releases = response.json()
if verbose:
- map(print_release_info,
- sor... | gh_(release|ref)_list: Ensure item are listed when using python 3 | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.