diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/pykwalify/core.py b/pykwalify/core.py
index <HASH>..<HASH> 100644
--- a/pykwalify/core.py
+++ b/pykwalify/core.py
@@ -661,6 +661,7 @@ class Core(object):
log.debug("Trimming slashes around ruby style regex. New pattern value: '{0}'".format(rule.pattern))
try:
+ ... | Added additional logging to pattern matching | py |
diff --git a/mizani/tests/test_breaks.py b/mizani/tests/test_breaks.py
index <HASH>..<HASH> 100644
--- a/mizani/tests/test_breaks.py
+++ b/mizani/tests/test_breaks.py
@@ -49,6 +49,15 @@ def test_log_breaks():
breaks = log_breaks()((float('-inf'), float('inf')))
assert len(breaks) == 0
+ # When the limits... | Add log_breaks tests for previous fix Related to commit #<I>dd5ad. Forgot to save them. | py |
diff --git a/rest_framework_gis/__init__.py b/rest_framework_gis/__init__.py
index <HASH>..<HASH> 100755
--- a/rest_framework_gis/__init__.py
+++ b/rest_framework_gis/__init__.py
@@ -1,4 +1,4 @@
-VERSION = (0, 8, 2, 'final')
+VERSION = (0, 9, 0, 'alpha')
__version__ = VERSION # alias | Updated VERSION to <I> alpha | py |
diff --git a/saltcloud/clouds/rackspace.py b/saltcloud/clouds/rackspace.py
index <HASH>..<HASH> 100644
--- a/saltcloud/clouds/rackspace.py
+++ b/saltcloud/clouds/rackspace.py
@@ -305,8 +305,10 @@ def create(vm_):
data = saltcloud.utils.wait_for_ip(
__query_node_data,
update_args=(vm_,... | Configurable wait for IP implemented for Rackspace | py |
diff --git a/etrago/tools/utilities.py b/etrago/tools/utilities.py
index <HASH>..<HASH> 100755
--- a/etrago/tools/utilities.py
+++ b/etrago/tools/utilities.py
@@ -855,7 +855,20 @@ def group_parallel_lines(network):
return
def delete_dispensable_ac_buses(etrago):
-
+ """
+ Function that identifies and ... | Include documentation for delete_dispensable_ac_buses | py |
diff --git a/asv/benchmark.py b/asv/benchmark.py
index <HASH>..<HASH> 100644
--- a/asv/benchmark.py
+++ b/asv/benchmark.py
@@ -18,6 +18,7 @@ import json
import os
import re
import sys
+import textwrap
import timeit
@@ -143,7 +144,6 @@ class Benchmark(object):
@property
def code(self):
- impor... | Import textwrap at top-level | py |
diff --git a/shield/decorators.py b/shield/decorators.py
index <HASH>..<HASH> 100644
--- a/shield/decorators.py
+++ b/shield/decorators.py
@@ -30,7 +30,7 @@ class Rule(RuleBase):
super(Rule, self).__init__(*args, **kwargs)
def __call__(self, **kwargs):
- kwargs['target'] = self.target
+ kw... | Fix issue where the rule was not recieving the aliased target. | py |
diff --git a/pyparsing/testing.py b/pyparsing/testing.py
index <HASH>..<HASH> 100644
--- a/pyparsing/testing.py
+++ b/pyparsing/testing.py
@@ -107,7 +107,7 @@ class pyparsing_test:
return self.save()
def __exit__(self, *args):
- return self.restore()
+ self.restore()
... | Fix bug when using pyparsing_testing.reset_pyparsing_context as a context manager, suppressing raised exceptions | py |
diff --git a/baron/test_grammator.py b/baron/test_grammator.py
index <HASH>..<HASH> 100644
--- a/baron/test_grammator.py
+++ b/baron/test_grammator.py
@@ -16,12 +16,6 @@ def test_empty():
], [])
-def test_space():
- " "
- parse([
- ('SPACE', ' ')],
- [space(" ")])
-
def test_int... | [fix] remove a test that doesn't make any sens now | py |
diff --git a/mbed/mbed.py b/mbed/mbed.py
index <HASH>..<HASH> 100755
--- a/mbed/mbed.py
+++ b/mbed/mbed.py
@@ -258,12 +258,12 @@ def pquery(command, output_callback=None, stdin=None, **kwargs):
stdout, _ = proc.communicate(stdin)
if very_verbose:
- log(str(stdout).strip()+"\n")
+ log(stdout.deco... | Corrected string parsing issues | py |
diff --git a/jax/lax.py b/jax/lax.py
index <HASH>..<HASH> 100644
--- a/jax/lax.py
+++ b/jax/lax.py
@@ -1669,6 +1669,7 @@ def _conj_transpose_rule(t, x, input_dtype):
else:
return [real(t)]
+xla.translations[conj_p] = lambda c, x, **kwargs: c.Conj(x)
ad.primitive_jvps[conj_p] = partial(ad.linear_jvp, conj_p)
... | Fix minor issue in conj_p translation rule. conj_p was forwarding its keyword arguments to the ComputationBuilder.Conj() method. The current implementation of Conj() ignores extra keyword arguments, but we shouldn't depend on this kind of implementation detail. | py |
diff --git a/ntfy/backends/notifico.py b/ntfy/backends/notifico.py
index <HASH>..<HASH> 100644
--- a/ntfy/backends/notifico.py
+++ b/ntfy/backends/notifico.py
@@ -6,7 +6,7 @@ def notify(title, message, retcode=None, webhook=None):
"""
Required parameter:
* ``webhook`` - The webhook link, created at h... | fix flake8 E<I> on build | py |
diff --git a/pupa/importers/votes.py b/pupa/importers/votes.py
index <HASH>..<HASH> 100644
--- a/pupa/importers/votes.py
+++ b/pupa/importers/votes.py
@@ -59,7 +59,7 @@ class VoteImporter(BaseImporter):
continue # can't match
person_obj = people[0]
- vote['id'] = person_obj['... | Correctly set the ID of the person in the roll call | py |
diff --git a/pyOCD/target/cortex_m.py b/pyOCD/target/cortex_m.py
index <HASH>..<HASH> 100644
--- a/pyOCD/target/cortex_m.py
+++ b/pyOCD/target/cortex_m.py
@@ -199,13 +199,13 @@ def word2byte(data):
## @brief Convert a 32-bit int to an IEEE754 float.
def int2float(data):
- d = struct.pack("@L", data)
+ d = str... | Change int2float, float2int of cortex_m for <I>bits Change pack/unpack from L to I in int2float and float2int for cortex_m. L is 8 bytes long on <I> bits amd<I> python (<I>+ GCC <I> Linux). | py |
diff --git a/src/metpy/calc/basic.py b/src/metpy/calc/basic.py
index <HASH>..<HASH> 100644
--- a/src/metpy/calc/basic.py
+++ b/src/metpy/calc/basic.py
@@ -306,8 +306,8 @@ def heat_index(temperature, relative_humidity, mask_undefined=True):
rh15adj = ((13. - relative_humidity[sel] * 100.) / 4.
... | BUG: Fix unit-handling in heat_index (Fixes #<I>) Was changed in c7b0b9b to remove multiplication by units and slightly change the operations used--this runs afoul of upstream changes in Pint where a Quantity is passed as the data in a constructor. Instead, change the units on a constant to produce the required dimens... | py |
diff --git a/matchpy/expressions/substitution.py b/matchpy/expressions/substitution.py
index <HASH>..<HASH> 100644
--- a/matchpy/expressions/substitution.py
+++ b/matchpy/expressions/substitution.py
@@ -231,3 +231,6 @@ class Substitution(Dict[str, VariableReplacement]):
def __repr__(self):
return '{{{... | Added __copy__ for Substitution. | py |
diff --git a/test/set/domain_test.py b/test/set/domain_test.py
index <HASH>..<HASH> 100644
--- a/test/set/domain_test.py
+++ b/test/set/domain_test.py
@@ -246,6 +246,20 @@ def test_contains_set():
# Set arithmetic
+def test_pos():
+ interv = Interval(1, 2)
+ assert +interv == interv
+
+ interv = IntervalP... | added tests for interv pos, neg | py |
diff --git a/rest_framework_gis/serializers.py b/rest_framework_gis/serializers.py
index <HASH>..<HASH> 100644
--- a/rest_framework_gis/serializers.py
+++ b/rest_framework_gis/serializers.py
@@ -52,7 +52,7 @@ class GeoFeatureModelSerializer(GeoModelSerializer):
# make sure its a list so we can appen... | allow for list or tuple of field names | py |
diff --git a/blanc_basic_news/news/templatetags/news_tags.py b/blanc_basic_news/news/templatetags/news_tags.py
index <HASH>..<HASH> 100644
--- a/blanc_basic_news/news/templatetags/news_tags.py
+++ b/blanc_basic_news/news/templatetags/news_tags.py
@@ -14,7 +14,7 @@ def get_news_categories():
@register.assignment_tag
d... | Use date_url for .dates(), as Django <I> doesn't like DateTimeField here | py |
diff --git a/src/lib/sos/plugins/systemtap.py b/src/lib/sos/plugins/systemtap.py
index <HASH>..<HASH> 100644
--- a/src/lib/sos/plugins/systemtap.py
+++ b/src/lib/sos/plugins/systemtap.py
@@ -27,8 +27,5 @@ class systemtap(sos.plugintools.PluginBase):
def setup(self):
# requires systemtap, systemtap-runtime... | this information can be extracted from rpm -qa, no need to run it twice. git-svn-id: svn+ssh://svn.fedorahosted.org/svn/sos/trunk@<I> ef<I>aa8b-<I>-<I>-<I>-d6e<I>ef<I>d8 | py |
diff --git a/gentools/types.py b/gentools/types.py
index <HASH>..<HASH> 100644
--- a/gentools/types.py
+++ b/gentools/types.py
@@ -69,7 +69,7 @@ class GeneratorCallable(t.Generic[T_yield, T_send, T_return]):
raise NotImplementedError()
-class ReusableGeneratorMeta(CallableAsMethod, t.GenericMeta):
+class R... | make generic metaclass lookup more robust | py |
diff --git a/aioboto3/s3/inject.py b/aioboto3/s3/inject.py
index <HASH>..<HASH> 100644
--- a/aioboto3/s3/inject.py
+++ b/aioboto3/s3/inject.py
@@ -77,7 +77,7 @@ async def download_fileobj(self, Bucket, Key, Fileobj, ExtraArgs=None,
"""
try:
- resp = await self.get_object(Bucket=Bucket, Key=Key, Extra... | [noref] Expand ExtraArgs to pass keys individually | py |
diff --git a/tests/python/unittest/test_io.py b/tests/python/unittest/test_io.py
index <HASH>..<HASH> 100644
--- a/tests/python/unittest/test_io.py
+++ b/tests/python/unittest/test_io.py
@@ -317,6 +317,8 @@ def test_CSVIter():
entry_str = '1'
if dtype is 'int32':
entry_str = '200000001'
+... | test for new int<I> type in CSVIter (#<I>) | py |
diff --git a/make_magic.py b/make_magic.py
index <HASH>..<HASH> 100644
--- a/make_magic.py
+++ b/make_magic.py
@@ -1141,10 +1141,14 @@ if __name__ == "__main__":
# if redirect is true, wxpython makes its own output window for stdout/stderr
#app = wx.App(redirect=False)
print '-I- Creating application'
+ ... | for py2app: have user select directory from the beginning | py |
diff --git a/CGRtools/reactor.py b/CGRtools/reactor.py
index <HASH>..<HASH> 100644
--- a/CGRtools/reactor.py
+++ b/CGRtools/reactor.py
@@ -25,6 +25,7 @@ from operator import or_
from typing import Union, Iterable
from ._functions import lazy_product
from .containers import QueryContainer, QueryCGRContainer, Molecule... | Update reactor.py (#<I>) | py |
diff --git a/dev/breeze/src/airflow_breeze/global_constants.py b/dev/breeze/src/airflow_breeze/global_constants.py
index <HASH>..<HASH> 100644
--- a/dev/breeze/src/airflow_breeze/global_constants.py
+++ b/dev/breeze/src/airflow_breeze/global_constants.py
@@ -32,7 +32,7 @@ DEFAULT_PYTHON_MAJOR_MINOR_VERSION = '3.7'
DEF... | Add allowed <I> version for <I> release (#<I>) | py |
diff --git a/gitlab/objects.py b/gitlab/objects.py
index <HASH>..<HASH> 100644
--- a/gitlab/objects.py
+++ b/gitlab/objects.py
@@ -398,7 +398,9 @@ class GitlabObject(object):
if kwargs:
for k, v in kwargs.items():
- self.__dict__[k] = v
+ # Don't overwrite attribute... | Don't overwrite attributes returned by the server Fixes #<I> | py |
diff --git a/twython/endpoints.py b/twython/endpoints.py
index <HASH>..<HASH> 100644
--- a/twython/endpoints.py
+++ b/twython/endpoints.py
@@ -16,10 +16,11 @@ https://dev.twitter.com/docs/api/1.1
import os
import warnings
-try:
- from StringIO import StringIO
-except ImportError:
- from io import StringIO
+fr... | Fix upload_video "string argument detected, got 'bytes'" bug. Needed to use BytesIO instead of StringIO when uploading video to Twitter. Tested with python <I>, <I>, <I>, <I>. fixes #<I> | py |
diff --git a/scout/models/variant/variant.py b/scout/models/variant/variant.py
index <HASH>..<HASH> 100644
--- a/scout/models/variant/variant.py
+++ b/scout/models/variant/variant.py
@@ -79,6 +79,7 @@ class Variant(Document):
# Predicted deleteriousness:
cadd_score = FloatField()
clnsig = IntField()
+ clnsiga... | Added clnsigacc to variant model | py |
diff --git a/tfdeploy.py b/tfdeploy.py
index <HASH>..<HASH> 100644
--- a/tfdeploy.py
+++ b/tfdeploy.py
@@ -705,15 +705,15 @@ class TensorEnsemble(object):
@staticmethod
def func_mean(values):
- return reduce(np.add, values) / len(values)
+ return np.mean(np.stack(values), axis=0)
@stati... | Fix predefined ensemble merging functions. | py |
diff --git a/sendgrid/models.py b/sendgrid/models.py
index <HASH>..<HASH> 100644
--- a/sendgrid/models.py
+++ b/sendgrid/models.py
@@ -1,7 +1,7 @@
from django.db import models
from django.contrib.contenttypes.generic import GenericForeignKey
from django.contrib.contenttypes.models import ContentType
-from django.uti... | lazy translations to have a working django <I> testing | py |
diff --git a/km3pipe/common.py b/km3pipe/common.py
index <HASH>..<HASH> 100644
--- a/km3pipe/common.py
+++ b/km3pipe/common.py
@@ -15,6 +15,12 @@ except ImportError:
except ImportError:
from io import StringIO
+try:
+ from Queue import import Queue, Empty
+except ImportError:
+ from queue import i... | Adds Queue and Empty | py |
diff --git a/phonopy/harmonic/dynamical_matrix.py b/phonopy/harmonic/dynamical_matrix.py
index <HASH>..<HASH> 100644
--- a/phonopy/harmonic/dynamical_matrix.py
+++ b/phonopy/harmonic/dynamical_matrix.py
@@ -427,20 +427,16 @@ class DynamicalMatrixNAC(DynamicalMatrix):
return (C_dd + C_dd.T.con... | G-cutoff distance can be set in BORN for Gonze NAC | py |
diff --git a/sk_dsp_comm/test/test_imports.py b/sk_dsp_comm/test/test_imports.py
index <HASH>..<HASH> 100644
--- a/sk_dsp_comm/test/test_imports.py
+++ b/sk_dsp_comm/test/test_imports.py
@@ -40,12 +40,6 @@ class TestImports(TestCase):
def test_multirate_helper_import(self):
import sk_dsp_comm.multirate_he... | Removing sdr_helper from the tests | py |
diff --git a/angr/analyses/cfg_base.py b/angr/analyses/cfg_base.py
index <HASH>..<HASH> 100644
--- a/angr/analyses/cfg_base.py
+++ b/angr/analyses/cfg_base.py
@@ -1139,8 +1139,11 @@ class CFGBase(Analysis):
# of the current function
max_unresolved_jump_addr = 0
for block_addr in f... | CFGBase: only merge other functions when the current function has at least one unresolved jump, not unresolved calls. | py |
diff --git a/andes/routines/pflow.py b/andes/routines/pflow.py
index <HASH>..<HASH> 100644
--- a/andes/routines/pflow.py
+++ b/andes/routines/pflow.py
@@ -149,24 +149,17 @@ class PFlow(BaseRoutine):
"""
Output a summary for the PFlow routine.
"""
- ipadd_status = 'Standard (ipadd not a... | Removed in-place addition messages. | py |
diff --git a/tests/test_views.py b/tests/test_views.py
index <HASH>..<HASH> 100644
--- a/tests/test_views.py
+++ b/tests/test_views.py
@@ -16,30 +16,30 @@ def test_methods(method):
class DummyView(HTTPMethodView):
def get(self, request):
- return text('I am GET method')
+ return te... | Switch them to verifying headers instead | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -5,7 +5,7 @@ files = ["*.css"]
setup(
name="junit2html",
- version="006",
+ version="007",
description="Generate HTML reports from Junit results",
author="Ian Norton",
author_email="inorton@gmail.c... | bump setup.py to <I> | py |
diff --git a/mackup.py b/mackup.py
index <HASH>..<HASH> 100755
--- a/mackup.py
+++ b/mackup.py
@@ -45,6 +45,7 @@ SUPPORTED_APPS = {
'.bash_logout',
'.bashrc',
'.profile',
+ '.bash_profile',
'.inputrc'],
'Boto': ['.boto'], | Added .bash_profile for better bash support | py |
diff --git a/geomdl/utilities.py b/geomdl/utilities.py
index <HASH>..<HASH> 100644
--- a/geomdl/utilities.py
+++ b/geomdl/utilities.py
@@ -412,18 +412,17 @@ def generate_knot_vector(degree=0, control_points_size=0):
i = 0
# First degree+1 knots are "knot_min"
- while i < degree + 1:
+ while i < degree... | Increased stability of the automatic knot vector generator | py |
diff --git a/conf.py b/conf.py
index <HASH>..<HASH> 100644
--- a/conf.py
+++ b/conf.py
@@ -57,7 +57,7 @@ author = 'Martin Majlis'
# The short X.Y version.
version = "0.3"
# The full version, including alpha/beta/rc tags.
-release = "0.3.3"
+release = "0.3.4"
# The language for content autogenerated by Sphinx. Ref... | Update version to <I> in conf.py | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -81,7 +81,7 @@ setup(
'tests': install_requires + tests_requires,
'docs': docs_requires
},
- dependency_links=['https://github.com/geonode/geonode/archive/b1e95a92118f15e15d35bf1d2e24ebc59daa9773.tar... | Test with my geocode fork. | py |
diff --git a/scenarios/kubernetes_janitor.py b/scenarios/kubernetes_janitor.py
index <HASH>..<HASH> 100755
--- a/scenarios/kubernetes_janitor.py
+++ b/scenarios/kubernetes_janitor.py
@@ -92,6 +92,7 @@ PR_PROJECTS = {
'k8s-jkns-pr-node-e2e': 3,
'k8s-jkns-pr-gce-gpus': 3,
'k8s-gke-gpu-pr': 3,
+ 'k8s-pre... | Enable janitor for scalability presubmits' project | py |
diff --git a/angr/knowledge/function.py b/angr/knowledge/function.py
index <HASH>..<HASH> 100644
--- a/angr/knowledge/function.py
+++ b/angr/knowledge/function.py
@@ -470,7 +470,7 @@ class Function(object):
g.add_node(self.startpoint)
for src, dst, data in self.transition_graph.edges_iter(data=Tru... | do not show syscall nodes in local transition graph of a function | py |
diff --git a/anonymoususage/table.py b/anonymoususage/table.py
index <HASH>..<HASH> 100644
--- a/anonymoususage/table.py
+++ b/anonymoususage/table.py
@@ -14,11 +14,11 @@ class Table(object):
self.dbcon = self.tracker.dbcon
self.name = name
- self.count = self.get_table_count()
+ self.... | renamed get_table_count to get_number_of_rows | py |
diff --git a/livelossplot/core.py b/livelossplot/core.py
index <HASH>..<HASH> 100644
--- a/livelossplot/core.py
+++ b/livelossplot/core.py
@@ -67,7 +67,7 @@ def draw_plot(logs, metrics, figsize=None, max_epoch=None,
plt.tight_layout()
if fig_path is not None:
- plt.savefig(fig_path)
+ plt.save... | saved figure names can be paremetrized | py |
diff --git a/littlechef/runner.py b/littlechef/runner.py
index <HASH>..<HASH> 100644
--- a/littlechef/runner.py
+++ b/littlechef/runner.py
@@ -187,6 +187,22 @@ def deploy_chef(gems="no", ask="yes", version="0.10",
solo.install(distro_type, distro, gems, version, stop_client)
solo.configure()
+ ... | When deploying chef to a new node, create a node config file If one doesn't already exist, create a node configuration file with some properties from ohai (ipaddress, platform, platform_family, and platform_version right now). This is useful we we can perform some basic logic in littlechef based on these properties (... | py |
diff --git a/autoclass/tests/test_readme.py b/autoclass/tests/test_readme.py
index <HASH>..<HASH> 100644
--- a/autoclass/tests/test_readme.py
+++ b/autoclass/tests/test_readme.py
@@ -130,8 +130,8 @@ def test_readme_typechecked():
t.nb_floors = None
# Type validation works
- from enforce.exceptions import... | Fixed pytypes test, should work with the next version of pytypes | py |
diff --git a/dfply/join.py b/dfply/join.py
index <HASH>..<HASH> 100644
--- a/dfply/join.py
+++ b/dfply/join.py
@@ -206,7 +206,7 @@ def semi_join(df, other, **kwargs):
if not right_on:
right_on = [col_name for col_name in df.columns.values.tolist() if col_name in other.columns.values.tolist()]
lef... | fixed problem with anti-join and semi-join | py |
diff --git a/osmnx/io.py b/osmnx/io.py
index <HASH>..<HASH> 100644
--- a/osmnx/io.py
+++ b/osmnx/io.py
@@ -212,14 +212,14 @@ def load_graphml_stream(
# assume default will be bytes string and decode
try:
graphml_string = str(graphml_stream.decode(encoding))
- except LookupError: #pragma: no cover
... | Fix black formatting in io.py | py |
diff --git a/mapboxcli/scripts/datasets.py b/mapboxcli/scripts/datasets.py
index <HASH>..<HASH> 100644
--- a/mapboxcli/scripts/datasets.py
+++ b/mapboxcli/scripts/datasets.py
@@ -3,6 +3,7 @@
import json
import click
+import cligj
import mapbox
from mapboxcli.errors import MapboxCLIException
@@ -231,11 +232,13 @... | use normalize_feature_inputs directly for put-feature and batch-feature-updates | py |
diff --git a/openstack_dashboard/settings.py b/openstack_dashboard/settings.py
index <HASH>..<HASH> 100644
--- a/openstack_dashboard/settings.py
+++ b/openstack_dashboard/settings.py
@@ -155,11 +155,7 @@ INSTALLED_APPS = [
'django.contrib.humanize',
'compressor',
'horizon',
- 'openstack_dashboard.dash... | Remove apps from settings Those lines are supposed to be replaced by their counterparts in openstack_dashboard/enabled and not used any more here. It's a leftover and was forgotten to remove in blueprint plugin-architecture Implements blueprint plugin-architecture Change-Id: I<I>ed<I>f1cb<I>a<I>e8 | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -1,7 +1,7 @@
#!/usr/bin/env python
from setuptools import setup
-version = "0.1.2"
+version = "0.1.3"
setup(name='data_explorer',
version=version,
description='Command line utilities for data exploration', | Bumping to version <I> | py |
diff --git a/kerncraft/machinemodel.py b/kerncraft/machinemodel.py
index <HASH>..<HASH> 100755
--- a/kerncraft/machinemodel.py
+++ b/kerncraft/machinemodel.py
@@ -129,9 +129,9 @@ class MachineModel(object):
if 'cache per group' not in c:
continue
cache_dict[c['level']] = deepc... | fixed out of numa domain scaling of last level cache size | py |
diff --git a/hotdoc/utils/loggable.py b/hotdoc/utils/loggable.py
index <HASH>..<HASH> 100644
--- a/hotdoc/utils/loggable.py
+++ b/hotdoc/utils/loggable.py
@@ -179,7 +179,7 @@ class Logger(Configurable):
_ignored_codes = set()
_ignored_domains = set()
_last_checkpoint = 0
- _verbosity = 2
+ _verbosi... | loggable: preserve environment verbosity if not specified on the command-line | py |
diff --git a/annotation/reformat.py b/annotation/reformat.py
index <HASH>..<HASH> 100644
--- a/annotation/reformat.py
+++ b/annotation/reformat.py
@@ -14,7 +14,6 @@ import logging
import re
from itertools import groupby
-from pybedtools import BedTool
from jcvi.formats.bed import Bed, BedLine, sort
from jcvi.fo... | move dependency pybedtools into local scope in annotation.reformat | py |
diff --git a/stronghold/conf.py b/stronghold/conf.py
index <HASH>..<HASH> 100644
--- a/stronghold/conf.py
+++ b/stronghold/conf.py
@@ -1,8 +1,15 @@
from django.conf import settings
+from django.core.urlresolvers import reverse
if settings.DEBUG:
# In Debug mode we serve the media urls as public by default
- ... | add login/logout urls to default made the default URLs comply with DRY | py |
diff --git a/tools/harness-automation/autothreadharness/harness_case.py b/tools/harness-automation/autothreadharness/harness_case.py
index <HASH>..<HASH> 100644
--- a/tools/harness-automation/autothreadharness/harness_case.py
+++ b/tools/harness-automation/autothreadharness/harness_case.py
@@ -316,8 +316,8 @@ class Har... | [harness-automation] fix browser stuck in navigating to url (#<I>) | py |
diff --git a/runtests/version.py b/runtests/version.py
index <HASH>..<HASH> 100644
--- a/runtests/version.py
+++ b/runtests/version.py
@@ -1 +1 @@
-__version__ = "0.0.22"
+__version__ = "0.0.23" | bump verserion again because last version wasn't deployed due to travis.yml bug. | py |
diff --git a/aloha/fields.py b/aloha/fields.py
index <HASH>..<HASH> 100644
--- a/aloha/fields.py
+++ b/aloha/fields.py
@@ -2,6 +2,7 @@ from __future__ import unicode_literals
import base64
from django.conf import settings
+from django.contrib.sites.models import Site
from django.core.files.base import ContentFile
... | Use django site framework to figure out if linked are internal, rather than a hardcoded domain name | py |
diff --git a/tests/test_namespace.py b/tests/test_namespace.py
index <HASH>..<HASH> 100644
--- a/tests/test_namespace.py
+++ b/tests/test_namespace.py
@@ -1,4 +1,4 @@
-from collections.abc import Mapping
+from collections.abc import Mapping, Sequence
from unittest.mock import patch
import pytest
@@ -29,7 +29,7 @@ d... | Fix expected type for list-style configured value to Sequence | py |
diff --git a/tensor/sources/munin.py b/tensor/sources/munin.py
index <HASH>..<HASH> 100644
--- a/tensor/sources/munin.py
+++ b/tensor/sources/munin.py
@@ -132,10 +132,10 @@ class MuninNode(Source):
if m_type == 'COUNTER':
events.append(self.createEvent('ok', info, val,
- ... | Fix aggregation keyword on munin | py |
diff --git a/fireplace/card.py b/fireplace/card.py
index <HASH>..<HASH> 100644
--- a/fireplace/card.py
+++ b/fireplace/card.py
@@ -201,6 +201,7 @@ class BaseCard(Entity):
class PlayableCard(BaseCard):
freeze = _TAG(GameTag.FREEZE, False)
+ hasBattlecry = _TAG(GameTag.BATTLECRY, False)
hasCombo = _TAG(GameTag.COM... | Fix hasBattlecry to only be in effect for actual battlecries | py |
diff --git a/pysnmp/proto/rfc1902.py b/pysnmp/proto/rfc1902.py
index <HASH>..<HASH> 100644
--- a/pysnmp/proto/rfc1902.py
+++ b/pysnmp/proto/rfc1902.py
@@ -17,6 +17,10 @@ class OctetString(univ.OctetString):
subtypeSpec = univ.Integer.subtypeSpec+constraint.ValueSizeConstraint(
0, 65535
)
+ isF... | OctetString and derivatives now have a fixed-length property (to use in SNMP table indices mangling) | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -13,8 +13,7 @@ TEST_DEPENDENCIES = ['mock',
'requests',
'sqlalchemy',
'ming',
- 'TurboGears2',
- 'WebTest']
+ ... | Cope with deprecation of Python<I> | py |
diff --git a/openid/association.py b/openid/association.py
index <HASH>..<HASH> 100644
--- a/openid/association.py
+++ b/openid/association.py
@@ -165,7 +165,7 @@ class DiffieHelmanAssociator(object):
session_type = results.get('session_type')
if session_type is None:
- secret = getResult... | [project @ Un-base<I> mac key when DH is not used] | py |
diff --git a/cherrypy/process/plugins.py b/cherrypy/process/plugins.py
index <HASH>..<HASH> 100644
--- a/cherrypy/process/plugins.py
+++ b/cherrypy/process/plugins.py
@@ -460,7 +460,7 @@ class BackgroundTask(threading.Thread):
it won't delay stopping the whole process.
"""
- def __init__(self, interval, ... | Python<I> doesn't use setdaemon for initializing the daemon var anymore So BackgroundTask would always use the current threads daemon mode on py<I> | py |
diff --git a/hydra_base/lib/units.py b/hydra_base/lib/units.py
index <HASH>..<HASH> 100644
--- a/hydra_base/lib/units.py
+++ b/hydra_base/lib/units.py
@@ -411,7 +411,7 @@ def convert_units(values, unit1, unit2,**kwargs):
>>> cli.service.convert_units(20.0, 'm', 'km')
0.02
"""
- if numpy.isscala... | added the dimmensions to the map + bug fix when in convert_units is passed a scalr instead of an array | py |
diff --git a/django_cron/backends/lock/cache.py b/django_cron/backends/lock/cache.py
index <HASH>..<HASH> 100644
--- a/django_cron/backends/lock/cache.py
+++ b/django_cron/backends/lock/cache.py
@@ -57,10 +57,7 @@ class CacheLock(DjangoCronJobLock):
Gets a specified cache (or the `default` cache if CRON_CACHE ... | return use of CRON_CACHE config variable. Need to commit it in a separate commits bunch. | py |
diff --git a/cherry_picker/cherry_picker.py b/cherry_picker/cherry_picker.py
index <HASH>..<HASH> 100755
--- a/cherry_picker/cherry_picker.py
+++ b/cherry_picker/cherry_picker.py
@@ -175,7 +175,7 @@ To abort the cherry-pick and cleanup:
def backport(self):
if not self.branches:
- raise ValueE... | Use a human readable error when there is no branches on the CLI (GH-<I>) | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -18,7 +18,7 @@ def long_description():
setup(
name='django-countries',
- version='2.0',
+ version='2.0b',
description='Provides a country field for Django models.',
long_description=long_description(),
... | Mark version as <I> beta for now | py |
diff --git a/openquake/commands/plot.py b/openquake/commands/plot.py
index <HASH>..<HASH> 100644
--- a/openquake/commands/plot.py
+++ b/openquake/commands/plot.py
@@ -73,7 +73,7 @@ def make_figure_hmaps(extractors, what):
itime = oq1.investigation_time
assert oq2.investigation_time == itime
s... | Added colorbars to the hmap diff plot [skip CI] | py |
diff --git a/ospd/vts.py b/ospd/vts.py
index <HASH>..<HASH> 100644
--- a/ospd/vts.py
+++ b/ospd/vts.py
@@ -42,6 +42,9 @@ class Vts:
self.vt_id_pattern = vt_id_pattern
self._vts = None
+ def __contains__(self, key: str) -> bool:
+ return key in self._vts
+
def __init_vts(self):
... | Support membership protocol for Vts class Implement __contains__ method for membership procotol support. This allows to use `if foo in vts`. | py |
diff --git a/twython/core.py b/twython/core.py
index <HASH>..<HASH> 100644
--- a/twython/core.py
+++ b/twython/core.py
@@ -608,7 +608,7 @@ class setup:
version = version or self.apiVersion
if self.authenticated is True:
try:
- return simplejson.load(self.opener.open("http://api.twitter.com/%d/status/destro... | Fix for destroyStatus() method returning consistent <I>'s - properly initiate POST, fix url to reference properly, always require string instead of number for tweet id | py |
diff --git a/libtmux/common.py b/libtmux/common.py
index <HASH>..<HASH> 100644
--- a/libtmux/common.py
+++ b/libtmux/common.py
@@ -9,6 +9,7 @@ import collections
import logging
import os
import re
+import sys
import subprocess
from distutils.version import StrictVersion, LooseVersion
@@ -380,6 +381,12 @@ def is_... | try to handle versioning on openbsd (#<I>) | py |
diff --git a/pytestsalt/fixtures/dirs.py b/pytestsalt/fixtures/dirs.py
index <HASH>..<HASH> 100644
--- a/pytestsalt/fixtures/dirs.py
+++ b/pytestsalt/fixtures/dirs.py
@@ -34,7 +34,7 @@ def root_dir(tempdir):
'''
Return the function scoped salt root dir
'''
- dirname = tempdir.join('root')
+ dirname... | Use the `mkdir` method of `tempdir` which uses the on existing counter approach | py |
diff --git a/Lib/fontParts/base/glyph.py b/Lib/fontParts/base/glyph.py
index <HASH>..<HASH> 100644
--- a/Lib/fontParts/base/glyph.py
+++ b/Lib/fontParts/base/glyph.py
@@ -653,7 +653,7 @@ class BaseGlyph(BaseObject, TransformationMixin):
other.moveBy(offset)
pen = self.getPointPen()
other.... | minor fixes: misnamed variables, typos and comments | py |
diff --git a/codespell.py b/codespell.py
index <HASH>..<HASH> 100755
--- a/codespell.py
+++ b/codespell.py
@@ -4,6 +4,7 @@
import sys
import re
from optparse import OptionParser
+import os
USAGE = "%prog [OPTIONS] dict_filename file1 <file2 ... fileN>"
misspellings = {}
@@ -43,6 +44,10 @@ def parse_options(args)... | Add option to parse recursively | py |
diff --git a/ocrmypdf/leptonica.py b/ocrmypdf/leptonica.py
index <HASH>..<HASH> 100644
--- a/ocrmypdf/leptonica.py
+++ b/ocrmypdf/leptonica.py
@@ -362,7 +362,8 @@ class Pix:
if get_leptonica_version() < 'leptonica-1.72':
# Older versions of Leptonica (pre-1.72) have a buggy
# implemen... | leptonica: note about when it may be safe to drop <<I> workaround | py |
diff --git a/salt/modules/mysql.py b/salt/modules/mysql.py
index <HASH>..<HASH> 100644
--- a/salt/modules/mysql.py
+++ b/salt/modules/mysql.py
@@ -24,6 +24,7 @@ Required python modules: MySQLdb
# Import Python libs
import time
import logging
+import re
# Import third party libs
try:
@@ -612,8 +613,8 @@ def __gra... | Hardened __grant_generate Grants are now correctly recognized as existing even if they have one or more spaces after the comma. | py |
diff --git a/pyani/scripts/subcommands/subcmd_index.py b/pyani/scripts/subcommands/subcmd_index.py
index <HASH>..<HASH> 100644
--- a/pyani/scripts/subcommands/subcmd_index.py
+++ b/pyani/scripts/subcommands/subcmd_index.py
@@ -73,7 +73,7 @@ def subcmd_index(args: Namespace) -> int:
# Create MD5 hash for each fil... | Changed naming scheme for `.md5` files to retain existing extension | py |
diff --git a/conway/gol.py b/conway/gol.py
index <HASH>..<HASH> 100755
--- a/conway/gol.py
+++ b/conway/gol.py
@@ -125,7 +125,8 @@ class gol(object):
"""
Redraw the grid with the new generation
"""
- for cell in self.grid.keys():
+ self.active = list(self.grid.keys())
+ f... | Python 3 compatiblity for all but <I> | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -12,7 +12,7 @@ setup(
license='BSD',
packages=find_packages(),
zip_safe=False,
- install_requires=['redis', ],
+ install_requires=['redis>=2.4.10'],
include_package_data=True,
classifiers=[
... | specify earliest redis version that will work with this library redis-py earlier than <I> doesn't have the StrictRedis class, so we must specify it as a requirement. | py |
diff --git a/src/pyipmi/msgs/bmc.py b/src/pyipmi/msgs/bmc.py
index <HASH>..<HASH> 100644
--- a/src/pyipmi/msgs/bmc.py
+++ b/src/pyipmi/msgs/bmc.py
@@ -100,7 +100,9 @@ class ManufacturingTestOnReq(Message):
__cmdid__ = constants.CMDID_MANUFACTURING_TEST_ON
__netfn__ = constants.NETFN_APP
__default_lun__ =... | msgs: bmc: fix in ManufacturingTestOnReq | py |
diff --git a/modelx/core/system.py b/modelx/core/system.py
index <HASH>..<HASH> 100644
--- a/modelx/core/system.py
+++ b/modelx/core/system.py
@@ -124,14 +124,18 @@ class System:
return
from ipykernel.kernelapp import IPKernelApp
+ self.shell = IPKernelApp.instance().shell # None in PyC... | FIX: setup_ipython to get shell from get_ipython() | py |
diff --git a/host/daq/readout.py b/host/daq/readout.py
index <HASH>..<HASH> 100644
--- a/host/daq/readout.py
+++ b/host/daq/readout.py
@@ -349,6 +349,8 @@ def open_raw_data_file(filename, mode="w", title="", scan_parameters=[], **kwarg
class RawDataFile(object):
'''Saving raw data file from data d... | MAIN: remove code that is not necessary | py |
diff --git a/engineer/docs_source/conf.py b/engineer/docs_source/conf.py
index <HASH>..<HASH> 100644
--- a/engineer/docs_source/conf.py
+++ b/engineer/docs_source/conf.py
@@ -63,7 +63,11 @@ copyright = u'2011, %s' % AUTHOR_NAME
# The version info for the project you're documenting, acts as replacement for
# |version|... | Force a version update when building documentation. | py |
diff --git a/mobly/utils.py b/mobly/utils.py
index <HASH>..<HASH> 100644
--- a/mobly/utils.py
+++ b/mobly/utils.py
@@ -19,7 +19,6 @@ import logging
import os
import platform
import portpicker
-import psutil
import random
import re
import signal
@@ -331,6 +330,10 @@ def stop_standing_subprocess(proc, kill_signal=s... | Localize `psutil` usage. (#<I>) | py |
diff --git a/tarbell/slughifi.py b/tarbell/slughifi.py
index <HASH>..<HASH> 100644
--- a/tarbell/slughifi.py
+++ b/tarbell/slughifi.py
@@ -10,7 +10,7 @@ def slugify(value):
and spaces to underscores.
"""
value = unicodedata.normalize('NFKD', value).encode('ascii', 'ignore')
- value = re.sub('[^\w\s-]'... | Avoid returning bytes from slughifi | py |
diff --git a/xml4h/__init__.py b/xml4h/__init__.py
index <HASH>..<HASH> 100644
--- a/xml4h/__init__.py
+++ b/xml4h/__init__.py
@@ -12,7 +12,7 @@ from xml4h.writer import write_node
__title__ = 'xml4h'
-__version__ = '1.0rc0'
+__version__ = '1.0'
# List of xml4h adapter classes, in order of preference | Let's go for <I>! No point waiting around with a release candidate no-on is actually going to test, let's go straight to version <I>. | py |
diff --git a/sort/heap_sort.py b/sort/heap_sort.py
index <HASH>..<HASH> 100644
--- a/sort/heap_sort.py
+++ b/sort/heap_sort.py
@@ -4,9 +4,10 @@ def heap_sort(arr):
"""
pass
-def heapify(arr):
- last_index = len(arr)-1
- last_parent = int(last_index/2)
+def heapify(arr, end):
+ """ Max heapify helpe... | Refactored heapify to take an end index argument | py |
diff --git a/system_maintenance/tests/unit/test_views.py b/system_maintenance/tests/unit/test_views.py
index <HASH>..<HASH> 100644
--- a/system_maintenance/tests/unit/test_views.py
+++ b/system_maintenance/tests/unit/test_views.py
@@ -46,6 +46,13 @@ class CommonViewTests:
found_name = found.func.__name__
... | Test that view's response uses the correct template | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -55,7 +55,7 @@ install_requires = [
"django-maploom==1.2.1",
"psycopg2==2.4.5",
"django-tilebundler==0.1-alpha6",
- "django-gsschema==0.1-alpha1",
+ "django-gsschema==0.1-alpha2",
]
... | bringing in fixes to gsschema service | py |
diff --git a/pysoundfile.py b/pysoundfile.py
index <HASH>..<HASH> 100644
--- a/pysoundfile.py
+++ b/pysoundfile.py
@@ -328,9 +328,9 @@ class SoundFile(object):
vio.read = vio_read
vio.write = vio_write
vio.tell = vio_tell
- user_data = ffi.new_handle(fObj)
+ ... | Make pointer to file object persist as `self._user_data`. | py |
diff --git a/ommprotocol/io.py b/ommprotocol/io.py
index <HASH>..<HASH> 100644
--- a/ommprotocol/io.py
+++ b/ommprotocol/io.py
@@ -768,10 +768,12 @@ def process_forcefield(*forcefields):
"""
for forcefield in forcefields:
if forcefield.endswith('.frcmod'):
- yield create_ffxml_file(forcefi... | Fix: Autoparametrization files were not properly handled | py |
diff --git a/neurondm/neurondm/core.py b/neurondm/neurondm/core.py
index <HASH>..<HASH> 100644
--- a/neurondm/neurondm/core.py
+++ b/neurondm/neurondm/core.py
@@ -1570,14 +1570,6 @@ class Phenotype(graphBase): # this is really just a 2 tuple... # FIXME +/- nee
abvs = resp['abbreviations']
if... | neurondm core label gen remove NCBIGene abbrev lookup this was too random to be useful and the provenance for the abbreviation was always unclear | py |
diff --git a/falafel/settings.py b/falafel/settings.py
index <HASH>..<HASH> 100644
--- a/falafel/settings.py
+++ b/falafel/settings.py
@@ -17,13 +17,16 @@ config = {}
for path in PATHS:
if os.path.exists(path):
- with open(path) as fp:
- y = yaml.load(fp.read())
- for name, section ... | Don't fail if can't read config file (e.g. no permission) | py |
diff --git a/tests/test_tornado_client.py b/tests/test_tornado_client.py
index <HASH>..<HASH> 100644
--- a/tests/test_tornado_client.py
+++ b/tests/test_tornado_client.py
@@ -1,22 +1,22 @@
+import pytest
import tornado.gen
import tornado.ioloop
-import vcr_unittest
from deezer import Album
from deezer.contrib.tor... | Refactor async client tests into pytest style | py |
diff --git a/mailparser/mailparser.py b/mailparser/mailparser.py
index <HASH>..<HASH> 100644
--- a/mailparser/mailparser.py
+++ b/mailparser/mailparser.py
@@ -350,7 +350,7 @@ class MailParser(object):
# walk all mail parts
for i, p in enumerate(parts):
- if not p.is_multipart():
+ ... | Fix problems with multipart attachments (#<I>) | py |
diff --git a/rllib/utils/pre_checks/env.py b/rllib/utils/pre_checks/env.py
index <HASH>..<HASH> 100644
--- a/rllib/utils/pre_checks/env.py
+++ b/rllib/utils/pre_checks/env.py
@@ -1,4 +1,5 @@
"""Common pre-checks for all RLlib experiments."""
+from copy import copy
import logging
import gym
import numpy as np
@@ -48... | [RLlib] Don't add elements to _agent_ids during env pre-checking. (#<I>) | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.