diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/shinken/objects/config.py b/shinken/objects/config.py
index <HASH>..<HASH> 100644
--- a/shinken/objects/config.py
+++ b/shinken/objects/config.py
@@ -531,7 +531,7 @@ class Config(Item):
# Now we removed real comments, replace them with just ;
line = line.replace('__ANTI-VIRG__', '... | Fix : re.search() returns None/MatchObject, not a boolean, "\s*\t*" is equivalent to "\s*" | py |
diff --git a/openquake/db/alchemy/db_utils.py b/openquake/db/alchemy/db_utils.py
index <HASH>..<HASH> 100644
--- a/openquake/db/alchemy/db_utils.py
+++ b/openquake/db/alchemy/db_utils.py
@@ -23,6 +23,7 @@
import os
import sqlalchemy
+import sqlalchemy.orm
from openquake.utils import general | fixed import race in db/alchemy/db_utils.py SessionCache used to work only if module "orm" from sqlalchemy was already imported somewhere | py |
diff --git a/tools/run_tests/run_tests.py b/tools/run_tests/run_tests.py
index <HASH>..<HASH> 100755
--- a/tools/run_tests/run_tests.py
+++ b/tools/run_tests/run_tests.py
@@ -63,8 +63,8 @@ _FORCE_ENVIRON_FOR_WRAPPERS = {
}
_POLLING_STRATEGIES = {
- 'linux': ['epoll1', 'epollsig', 'poll', 'poll-cv'],
-# TODO(ctille... | Disable epoll1 - so that I can merge whatever I have until now | py |
diff --git a/assemblerflow/generator/process.py b/assemblerflow/generator/process.py
index <HASH>..<HASH> 100644
--- a/assemblerflow/generator/process.py
+++ b/assemblerflow/generator/process.py
@@ -1139,7 +1139,7 @@ class Abricate(Process):
self.ignore_type = True
- self.status_channels = ["STATUS_... | Removed status reference in abricate class | py |
diff --git a/dash/__init__.py b/dash/__init__.py
index <HASH>..<HASH> 100644
--- a/dash/__init__.py
+++ b/dash/__init__.py
@@ -1,3 +1,3 @@
from __future__ import unicode_literals
-__version__ = "1.2"
+__version__ = "1.2.1" | Prep for <I> release | py |
diff --git a/__init__.py b/__init__.py
index <HASH>..<HASH> 100644
--- a/__init__.py
+++ b/__init__.py
@@ -20,10 +20,10 @@
from __future__ import absolute_import
-__all__ = ['const', 'error', 'xyz', 'grad', 'hess', 'output']
+__all__ = ['const', 'error', 'xyz', 'grad', 'hess', 'output',
+ ... | Minor: Cleaned up opan top-level imports Turns out subpackages are apparently best imported just as if they were modules at the parent package level, by including them in __all__. | py |
diff --git a/shop_stripe/payment.py b/shop_stripe/payment.py
index <HASH>..<HASH> 100644
--- a/shop_stripe/payment.py
+++ b/shop_stripe/payment.py
@@ -65,10 +65,10 @@ class OrderWorkflowMixin(object):
@transition(field='status', source=['created'], target='paid_with_stripe')
def add_stripe_payment(self, cha... | Fixed: compute amount in correct currency using Order object | py |
diff --git a/martor/utils.py b/martor/utils.py
index <HASH>..<HASH> 100644
--- a/martor/utils.py
+++ b/martor/utils.py
@@ -2,9 +2,13 @@
from __future__ import unicode_literals
from django.utils.functional import Promise
-from django.utils.encoding import force_str
from django.core.serializers.json import DjangoJSO... | Fix issue #<I> (compatibility for django<=3.x) | py |
diff --git a/devscripts/validation/docker.py b/devscripts/validation/docker.py
index <HASH>..<HASH> 100644
--- a/devscripts/validation/docker.py
+++ b/devscripts/validation/docker.py
@@ -120,4 +120,7 @@ def validate_docker_image(release=None, prune=True, build=True, quiet=False):
print("Now running running... | tag docker image if passing a release | py |
diff --git a/galpy/orbit_src/Orbit.py b/galpy/orbit_src/Orbit.py
index <HASH>..<HASH> 100644
--- a/galpy/orbit_src/Orbit.py
+++ b/galpy/orbit_src/Orbit.py
@@ -3168,16 +3168,3 @@ v obs=[X,Y,Z,vx,vy,vz] - (optional) position and velocity of observer
self._orb.vxvv[0],self._orb.vx... | rm unnecessary getinitstate from Orbit, because it's useless for new-style class | py |
diff --git a/properties/base/containers.py b/properties/base/containers.py
index <HASH>..<HASH> 100644
--- a/properties/base/containers.py
+++ b/properties/base/containers.py
@@ -368,8 +368,16 @@ class Set(List):
def equal(self, value_a, value_b):
try:
- return len(value_a) == len(value_a.uni... | Update set equal to use prop.equal | py |
diff --git a/WrightTools/artists/_colors.py b/WrightTools/artists/_colors.py
index <HASH>..<HASH> 100644
--- a/WrightTools/artists/_colors.py
+++ b/WrightTools/artists/_colors.py
@@ -105,7 +105,7 @@ def make_colormap(seq, name="CustomMap", plot=False):
name : string (optional)
A name for the colormap
... | spelling (#<I>) closes #<I> | py |
diff --git a/bumpy.py b/bumpy.py
index <HASH>..<HASH> 100644
--- a/bumpy.py
+++ b/bumpy.py
@@ -166,12 +166,6 @@ def help():
if task.requirements:
print LOCALE['help_requires'].format(task.reqstr())
-@task
-def list():
- '''Print a list of all available tasks.'''
- print ', '.join(task.__repr__() for task in LI... | Remove builtin `list` task | py |
diff --git a/src/websockets/server.py b/src/websockets/server.py
index <HASH>..<HASH> 100644
--- a/src/websockets/server.py
+++ b/src/websockets/server.py
@@ -50,7 +50,7 @@ from .protocol import State, WebSocketCommonProtocol
from .typing import Origin, Subprotocol
-__all__ = ["serve", "unix_serve", "WebSocketServ... | Add WebSocketServer to server.__all__. Fix #<I>. Thanks @lgrahl for the suggestion. | py |
diff --git a/holoviews/plotting/bokeh/plot.py b/holoviews/plotting/bokeh/plot.py
index <HASH>..<HASH> 100644
--- a/holoviews/plotting/bokeh/plot.py
+++ b/holoviews/plotting/bokeh/plot.py
@@ -530,7 +530,8 @@ class AdjointLayoutPlot(BokehPlot, GenericCompositePlot):
subplot = self.subplots.get(pos, None)
... | Fixed shared_axes for Bokeh adjoined plots | py |
diff --git a/suds/schema.py b/suds/schema.py
index <HASH>..<HASH> 100644
--- a/suds/schema.py
+++ b/suds/schema.py
@@ -49,10 +49,6 @@ class Schema:
"""
result = None
parts = path.split('.')
- for type in self.root.getChildren('element'):
- if type.attribute('name') == parts[... | fix schema type lookup problem caused by adding <element/> searches | py |
diff --git a/examples/py/okex-fetch-all-my-trades.py b/examples/py/okex-fetch-all-my-trades.py
index <HASH>..<HASH> 100644
--- a/examples/py/okex-fetch-all-my-trades.py
+++ b/examples/py/okex-fetch-all-my-trades.py
@@ -26,7 +26,7 @@ exchange.verbose = True # uncomment for debugging
all_trades = {}
symbol = None
sin... | examples/py/okex-fetch-all-my-trades.py before > after fix | py |
diff --git a/skiski/ski.py b/skiski/ski.py
index <HASH>..<HASH> 100644
--- a/skiski/ski.py
+++ b/skiski/ski.py
@@ -241,7 +241,7 @@ class S3(metaclass=Typename("S")):
x = cls._eval_i_(x)
y = cls._eval_i_(y)
- if self.is_dot(x):
+ if cls.is_dot(x):
return x.dot(y)
e... | class method do not use "self" | py |
diff --git a/dallinger/docker/tools.py b/dallinger/docker/tools.py
index <HASH>..<HASH> 100644
--- a/dallinger/docker/tools.py
+++ b/dallinger/docker/tools.py
@@ -226,7 +226,11 @@ def get_required_dallinger_version(experiment_tmp_path: str) -> str:
if el.requirement.startswith("dallinger")
]
# pip-co... | If not able to determine dallinger varsion, fall back to latest | py |
diff --git a/tests/test_services.py b/tests/test_services.py
index <HASH>..<HASH> 100644
--- a/tests/test_services.py
+++ b/tests/test_services.py
@@ -244,7 +244,7 @@ class OpenSubtitlesTestCase(ServiceTestCase):
self.fake_file = u'/tmp/fake_file'
self.episode_path = existing_video
self.episo... | Add possible filesizes for OpenSubtitles in unittests | py |
diff --git a/mongoctl/mongoctl.py b/mongoctl/mongoctl.py
index <HASH>..<HASH> 100644
--- a/mongoctl/mongoctl.py
+++ b/mongoctl/mongoctl.py
@@ -979,8 +979,10 @@ def open_mongo_shell_to_server(server,
if not username:
username = read_input("Enter username for database"
... | Fixing auto pass lookup feature when opening shell to a server | py |
diff --git a/tests/formats/visual.py b/tests/formats/visual.py
index <HASH>..<HASH> 100644
--- a/tests/formats/visual.py
+++ b/tests/formats/visual.py
@@ -111,13 +111,12 @@ class VisualFormatWriterTestCase(unittest.TestCase):
'name': 'SS CYG',
'date': '2450702.1234',
'magnitude': ... | Check for 'na' values if comp1 and chart exist, but are empty. | py |
diff --git a/pylibdmtx/pylibdmtx.py b/pylibdmtx/pylibdmtx.py
index <HASH>..<HASH> 100644
--- a/pylibdmtx/pylibdmtx.py
+++ b/pylibdmtx/pylibdmtx.py
@@ -195,7 +195,12 @@ def decode(image, timeout=None, gap_size=None, shrink=1, shape=None,
elif 'numpy.ndarray' in str(type(image)):
if 'uint8' != str(image.dty... | [#9] Reinstate numpy version check | py |
diff --git a/benchexec/tools/witnesslint.py b/benchexec/tools/witnesslint.py
index <HASH>..<HASH> 100644
--- a/benchexec/tools/witnesslint.py
+++ b/benchexec/tools/witnesslint.py
@@ -15,6 +15,8 @@ class Tool(benchexec.tools.template.BaseTool2):
(https://github.com/sosy-lab/sv-witnesses)
"""
+ REQUIRED_PA... | Add required paths for witnesslint The tool will fail otherwise | py |
diff --git a/src/scs_core/aws/manager/lambda_message_manager.py b/src/scs_core/aws/manager/lambda_message_manager.py
index <HASH>..<HASH> 100644
--- a/src/scs_core/aws/manager/lambda_message_manager.py
+++ b/src/scs_core/aws/manager/lambda_message_manager.py
@@ -69,6 +69,8 @@ class MessageManager(object):
pa... | Refactored MessageRequest and MessageResponse | py |
diff --git a/rest_framework_json_api/utils.py b/rest_framework_json_api/utils.py
index <HASH>..<HASH> 100644
--- a/rest_framework_json_api/utils.py
+++ b/rest_framework_json_api/utils.py
@@ -177,9 +177,9 @@ def extract_id_from_url(url):
def extract_id(fields, resource):
for field_name, field in six.iteritems(fiel... | Prevent django from throwing errors is url is None | py |
diff --git a/holoviews/plotting/util.py b/holoviews/plotting/util.py
index <HASH>..<HASH> 100644
--- a/holoviews/plotting/util.py
+++ b/holoviews/plotting/util.py
@@ -216,6 +216,7 @@ def split_dmap_overlay(obj, depth=0):
"""
layers = []
if isinstance(obj, DynamicMap):
+ initialize_dynamic(obj)
... | Allow overlay on a dynamicmap nested in a dynamicmap (#<I>) | py |
diff --git a/tests/SpiffWorkflow/specs/TaskSpecTest.py b/tests/SpiffWorkflow/specs/TaskSpecTest.py
index <HASH>..<HASH> 100644
--- a/tests/SpiffWorkflow/specs/TaskSpecTest.py
+++ b/tests/SpiffWorkflow/specs/TaskSpecTest.py
@@ -45,6 +45,14 @@ class TaskSpecTest(unittest.TestCase):
self.assertEqual(self.spec.out... | All Tests Passing - add missed test for TaskSpec.follow | py |
diff --git a/torchtext/data/field.py b/torchtext/data/field.py
index <HASH>..<HASH> 100644
--- a/torchtext/data/field.py
+++ b/torchtext/data/field.py
@@ -301,7 +301,8 @@ class Field(RawField):
# the data is sequential, since it's unclear how to coerce padding tokens
# to a numeric type.
... | Fix OpenNMT breakage on field w/raw float tensor (#<I>) | py |
diff --git a/test/unit/test_main.py b/test/unit/test_main.py
index <HASH>..<HASH> 100644
--- a/test/unit/test_main.py
+++ b/test/unit/test_main.py
@@ -1,4 +1,5 @@
import os
+import shutil
import tempfile
import unittest | Undefined name: import shutil for line <I> | py |
diff --git a/misc/log-analytics/import_logs.py b/misc/log-analytics/import_logs.py
index <HASH>..<HASH> 100755
--- a/misc/log-analytics/import_logs.py
+++ b/misc/log-analytics/import_logs.py
@@ -360,11 +360,11 @@ class Configuration(object):
)
option_parser.add_option(
'--exclude-path', d... | Clarify doc for --exclude-path as suggested in <URL> | py |
diff --git a/pymatbridge/__init__.py b/pymatbridge/__init__.py
index <HASH>..<HASH> 100644
--- a/pymatbridge/__init__.py
+++ b/pymatbridge/__init__.py
@@ -1,5 +1,10 @@
from pymatbridge import *
-from publish import *
+
+try:
+ from publish import *
+except ImportError:
+ pass
+
try:
from matlab_magic impor... | Fix #<I>: publish.py fails if IPython not installed This fix just surrounds the import statement in __init__.py with try except. This prevents publish.py from being imported of IPython is not present. | py |
diff --git a/salt/modules/archive.py b/salt/modules/archive.py
index <HASH>..<HASH> 100644
--- a/salt/modules/archive.py
+++ b/salt/modules/archive.py
@@ -465,7 +465,7 @@ def cmd_unzip(zip_file, dest, excludes=None,
def unzip(zip_file, dest, excludes=None, options=None, template=None,
- runas=None, trim_o... | Add parameter to unzip to set permissions on extracted files to match that of the file/directory attributes in a zip archive | py |
diff --git a/pgmpy/independencies/Independencies.py b/pgmpy/independencies/Independencies.py
index <HASH>..<HASH> 100644
--- a/pgmpy/independencies/Independencies.py
+++ b/pgmpy/independencies/Independencies.py
@@ -195,7 +195,14 @@ class IndependenceAssertion(object):
__repr__ = __str__
def __eq__(self, oth... | fixed __eq__ in IndependenceAssertion | py |
diff --git a/benchexec/containerized_tool.py b/benchexec/containerized_tool.py
index <HASH>..<HASH> 100644
--- a/benchexec/containerized_tool.py
+++ b/benchexec/containerized_tool.py
@@ -56,7 +56,7 @@ class ContainerizedTool(benchexec.tools.template.BaseTool):
def _forward_call(self, method_name, *args, **kwargs... | Fix bug in container mode for tool-info modules. Keyword arguments were not passed correctly, but this was used only by test code. | py |
diff --git a/client.py b/client.py
index <HASH>..<HASH> 100644
--- a/client.py
+++ b/client.py
@@ -245,6 +245,9 @@ class GanetiRapiClient(object): # pylint: disable-msg=R0904
r = requests.request(method, url, **kwargs)
except requests.ConnectionError:
raise GanetiApiError("Couldn't co... | util/client: Fix leaked exception. Kills GWM if a cluster can't be contacted in specific situations. Found with Vagrant cluster. | py |
diff --git a/librosa/decompose.py b/librosa/decompose.py
index <HASH>..<HASH> 100644
--- a/librosa/decompose.py
+++ b/librosa/decompose.py
@@ -7,7 +7,7 @@ import scipy
import sklearn.decomposition
-import librosa.core
+from . import core
from . import cache
from . import util
@@ -100,7 +100,7 @@ def decompose(... | fixed imports for decompose | py |
diff --git a/tests/basics/builtin_id.py b/tests/basics/builtin_id.py
index <HASH>..<HASH> 100644
--- a/tests/basics/builtin_id.py
+++ b/tests/basics/builtin_id.py
@@ -1,6 +1,7 @@
print(id(1) == id(2))
print(id(None) == id(None))
-print(id([]) == id([]))
+# This can't be true per Python semantics, just CPython impleme... | Fix unstable case in builtin_id.py test. | py |
diff --git a/dataproperty/_function.py b/dataproperty/_function.py
index <HASH>..<HASH> 100644
--- a/dataproperty/_function.py
+++ b/dataproperty/_function.py
@@ -114,9 +114,10 @@ def get_integer_digit(value):
def _get_decimal_places(value, integer_digits):
from collections import namedtuple
from six.moves i... | Replace a function call that will be deleted to type checker class | py |
diff --git a/tinydb/database.py b/tinydb/database.py
index <HASH>..<HASH> 100644
--- a/tinydb/database.py
+++ b/tinydb/database.py
@@ -25,7 +25,7 @@ class TinyDB:
When creating a new instance, all arguments and keyword arguments (except
for ``storage``) will be passed to the storage class that is provided. ... | docs: fix typo in docstring (#<I>) | py |
diff --git a/tests/test_lyrics_uninstaller.py b/tests/test_lyrics_uninstaller.py
index <HASH>..<HASH> 100644
--- a/tests/test_lyrics_uninstaller.py
+++ b/tests/test_lyrics_uninstaller.py
@@ -20,4 +20,10 @@ def test_uninstall_2():
ctx.env["ir.module.module"].search(
[("name", "=", "lunch")]
... | Fix test uninstall, reload after install In later version `button_immediate_install` returns an action to open base.module.upgrade wizard which will make a reload. By separating contexts we simulate this reload and get a context where the module lunch is already installed. | py |
diff --git a/apigpio/apigpio.py b/apigpio/apigpio.py
index <HASH>..<HASH> 100644
--- a/apigpio/apigpio.py
+++ b/apigpio/apigpio.py
@@ -342,9 +342,19 @@ class _callback_ADT:
"""
self.gpio = gpio
self.edge = edge
- self.func = func
+ self._func = func
self.bit = 1 << gpio... | Protect ourself from faulty callback Prevent an exception in a callback from stopping the coroutine used for reading notification. | py |
diff --git a/pyfirmata/pyfirmata.py b/pyfirmata/pyfirmata.py
index <HASH>..<HASH> 100755
--- a/pyfirmata/pyfirmata.py
+++ b/pyfirmata/pyfirmata.py
@@ -178,6 +178,8 @@ class Board(object):
if pin.type is DIGITAL:
if bits[2] == 'p':
pin.mode = PWM
+ elif bits[2] == 's':
+... | get_pin can now also return pins in SERVO mode with the 's' bit --HG-- branch : servo | py |
diff --git a/zipline/algorithm.py b/zipline/algorithm.py
index <HASH>..<HASH> 100644
--- a/zipline/algorithm.py
+++ b/zipline/algorithm.py
@@ -537,9 +537,8 @@ class TradingAlgorithm(object):
if self.sim_params.data_frequency != 'minute':
raise IncompatibleScheduleFunctionDataFrequency()
- ... | ENH: Changes the default time_rule for schedule_function to market_open() | py |
diff --git a/build/changelog.py b/build/changelog.py
index <HASH>..<HASH> 100755
--- a/build/changelog.py
+++ b/build/changelog.py
@@ -102,7 +102,7 @@ def get_github_id(commit_message, commit_id, token):
def mention_author(commit_message, commit_id, token):
username = get_github_id(commit_message, commit_id, toke... | cicd: Update release notes mentions (#<I>) Since Github will automatically link to user profiles mentioned by their username, _and_ create a "Contributors" section for the release notes with user avatars, it seems good to follow that convention. | py |
diff --git a/eventsourcing/__init__.py b/eventsourcing/__init__.py
index <HASH>..<HASH> 100644
--- a/eventsourcing/__init__.py
+++ b/eventsourcing/__init__.py
@@ -1 +1 @@
-__version__ = "9.2.10"
+__version__ = "9.2.11" | Increased version number to <I>. | py |
diff --git a/tests/settings.py b/tests/settings.py
index <HASH>..<HASH> 100644
--- a/tests/settings.py
+++ b/tests/settings.py
@@ -61,6 +61,7 @@ JENKINS_TASKS = (
'django_jenkins.tasks.run_pylint',
'django_jenkins.tasks.run_pep8',
'django_jenkins.tasks.run_csslint',
+ 'django_jenkins.tasks.run_scsslin... | Add scss-lint to task list in test settings | py |
diff --git a/gwpy/plotter/gwf.py b/gwpy/plotter/gwf.py
index <HASH>..<HASH> 100644
--- a/gwpy/plotter/gwf.py
+++ b/gwpy/plotter/gwf.py
@@ -25,12 +25,12 @@ class GWFramePlot(TimeSeriesPlot):
self.read_frame(self._gwf, channel, start=start, end=end)
super(GWFramePlot, self).__init__(self._series, **kwar... | gwpy.plotter: update GWFramePlot to new reader - lalframe.frread doesn't use default -1 start and duration | py |
diff --git a/MAVProxy/modules/lib/rline.py b/MAVProxy/modules/lib/rline.py
index <HASH>..<HASH> 100644
--- a/MAVProxy/modules/lib/rline.py
+++ b/MAVProxy/modules/lib/rline.py
@@ -27,7 +27,5 @@ try:
readline.set_completer_delims(' \t\n;')
readline.parse_and_bind("tab: complete")
readline.set_completer(com... | rline: removed debug code | py |
diff --git a/FlowCal/excel_ui.py b/FlowCal/excel_ui.py
index <HASH>..<HASH> 100644
--- a/FlowCal/excel_ui.py
+++ b/FlowCal/excel_ui.py
@@ -307,14 +307,14 @@ def process_beads_table(beads_table,
mef_transform_fxns : OrderedDict
A dictionary of MEF transformation functions, indexed by
``beads_table... | Modified excel_ui.process_beads_table()'s docstring. | py |
diff --git a/asciimatics/widgets.py b/asciimatics/widgets.py
index <HASH>..<HASH> 100644
--- a/asciimatics/widgets.py
+++ b/asciimatics/widgets.py
@@ -1004,11 +1004,15 @@ class Widget(with_metaclass(ABCMeta, object)):
"""
return self._name
- @abstractproperty
- def value(self):
- """
- ... | Attempt to fix up moan about readonly abstractproperty in widgets. | py |
diff --git a/mlblocks/__init__.py b/mlblocks/__init__.py
index <HASH>..<HASH> 100644
--- a/mlblocks/__init__.py
+++ b/mlblocks/__init__.py
@@ -19,8 +19,8 @@ __all__ = [
PRIMITIVES_PATHS = [
- os.path.join(os.getcwd(), 'mlprimitives'),
- os.path.join(sys.prefix, 'mlprimitives'),
+ os.path.join(os.getcwd(),... | rename mlprimitives folders to mlblocks_primitives | py |
diff --git a/_pytest/nose.py b/_pytest/nose.py
index <HASH>..<HASH> 100644
--- a/_pytest/nose.py
+++ b/_pytest/nose.py
@@ -41,7 +41,8 @@ def pytest_make_collect_report(collector):
def call_optional(obj, name):
method = getattr(obj, name, None)
- if method is not None and not hasattr(method, "_pytestfixturefu... | small line length fix in nose plugin call optional | py |
diff --git a/fsoopify/paths.py b/fsoopify/paths.py
index <HASH>..<HASH> 100644
--- a/fsoopify/paths.py
+++ b/fsoopify/paths.py
@@ -28,10 +28,6 @@ class PathPart(str):
return self._normcased == os.path.normcase(other)
-class DirectoryPart(PathPart):
- pass
-
-
class NamePart(PathPart):
def __init__... | feat: dirname should be a new Path. | py |
diff --git a/pyp2rpm/package_getters.py b/pyp2rpm/package_getters.py
index <HASH>..<HASH> 100644
--- a/pyp2rpm/package_getters.py
+++ b/pyp2rpm/package_getters.py
@@ -31,7 +31,7 @@ def get_url(client, name, version, wheel=False, hashed_format=False):
client, name, version))
raise exceptions.Missin... | Remove exc_info argument from exception. | py |
diff --git a/openquake/hazardlib/calc/hazard_curve.py b/openquake/hazardlib/calc/hazard_curve.py
index <HASH>..<HASH> 100644
--- a/openquake/hazardlib/calc/hazard_curve.py
+++ b/openquake/hazardlib/calc/hazard_curve.py
@@ -32,7 +32,7 @@ from openquake.baselib.general import groupby, DictArray
from openquake.hazardlib.... | Restored backward compatibility with the past | py |
diff --git a/lib/python/dxpy/bindings/dxgtable.py b/lib/python/dxpy/bindings/dxgtable.py
index <HASH>..<HASH> 100644
--- a/lib/python/dxpy/bindings/dxgtable.py
+++ b/lib/python/dxpy/bindings/dxgtable.py
@@ -287,7 +287,7 @@ class DXGTable(DXDataObject):
'''
desc = self.describe(**kwargs)
- if ... | fixing bug for checking max part id range | py |
diff --git a/evm/vm/base.py b/evm/vm/base.py
index <HASH>..<HASH> 100644
--- a/evm/vm/base.py
+++ b/evm/vm/base.py
@@ -365,8 +365,8 @@ class BaseVM(Configurable, metaclass=ABCMeta):
return cls.get_block_class().from_header(block_header, db)
@classmethod
- @to_tuple
@functools.lru_cache(maxsize=3... | Move cache to above to_tuple call | py |
diff --git a/rqalpha/events.py b/rqalpha/events.py
index <HASH>..<HASH> 100644
--- a/rqalpha/events.py
+++ b/rqalpha/events.py
@@ -31,16 +31,16 @@ class EventBus(object):
def __init__(self):
self._listeners = defaultdict(list)
- def add_listener(self, event, listener):
- self._listeners[event]... | refactor variable's name in EventBus | py |
diff --git a/example/people.py b/example/people.py
index <HASH>..<HASH> 100644
--- a/example/people.py
+++ b/example/people.py
@@ -18,8 +18,7 @@ class PersonScraper(Scraper):
ecom.add_source('https://example.com')
yield ecom
- p = Person('Paul Tagliamonte', district='6', chamber='upper',
- ... | Think we add party affiliation by membership in an org. | py |
diff --git a/auto_lens/frame_convolution.py b/auto_lens/frame_convolution.py
index <HASH>..<HASH> 100644
--- a/auto_lens/frame_convolution.py
+++ b/auto_lens/frame_convolution.py
@@ -156,6 +156,7 @@ class KernelConvolver(object):
"Frame {} and kernel {} shapes do not match".format(frame_array[0].shape,... | memoization of kernel-value convolutions | py |
diff --git a/ReText/mdx_posmap.py b/ReText/mdx_posmap.py
index <HASH>..<HASH> 100644
--- a/ReText/mdx_posmap.py
+++ b/ReText/mdx_posmap.py
@@ -53,7 +53,10 @@ class PosMapMarkPreprocessor(Preprocessor):
class PosMapCleanPreprocessor(Preprocessor):
""" PosMapCleanPreprocessor - remove $posmapmarker$linenr entries t... | Add a code comment for the previous change | py |
diff --git a/source/rafcon/utils/resources.py b/source/rafcon/utils/resources.py
index <HASH>..<HASH> 100644
--- a/source/rafcon/utils/resources.py
+++ b/source/rafcon/utils/resources.py
@@ -28,12 +28,14 @@ share_folder_paths = [
join(os.sep, 'usr', 'share'),
]
-# Check for non-default PYTHONUSERBASE and add it... | fix(resources): Find files when installed in virtualenv | py |
diff --git a/tests/test_real_tweets.py b/tests/test_real_tweets.py
index <HASH>..<HASH> 100644
--- a/tests/test_real_tweets.py
+++ b/tests/test_real_tweets.py
@@ -45,6 +45,14 @@ TEST_CASES = [
('Engkau masih yg terindah, indah di dalam hatiku♫~',
'Engkau masih yg terindah, indah di dalam hatiku♫~'),
(... | add to test_real_tweets -- one of them fails at the moment | py |
diff --git a/src/rudiments/security.py b/src/rudiments/security.py
index <HASH>..<HASH> 100644
--- a/src/rudiments/security.py
+++ b/src/rudiments/security.py
@@ -53,21 +53,21 @@ class Credentials(object):
"""Return bool indicating whether full credentials were provided."""
return bool(self.user and s... | security: added force_console flag to allow prompting for credentials when storing them into the keyring etc. | py |
diff --git a/homu/server.py b/homu/server.py
index <HASH>..<HASH> 100644
--- a/homu/server.py
+++ b/homu/server.py
@@ -201,19 +201,12 @@ def github():
elif action == 'closed':
del g.states[repo_name][pull_num]
- elif action == 'assigned':
- assignee = info['pull_request']['assi... | Handle the pull_request event with the unassigned action properly | py |
diff --git a/testsuite/test_workflows.py b/testsuite/test_workflows.py
index <HASH>..<HASH> 100644
--- a/testsuite/test_workflows.py
+++ b/testsuite/test_workflows.py
@@ -68,6 +68,11 @@ class WorkflowTasksTestCase(InvenioTestCase):
'widgets', app=self.app, registry_namespace='workflows.tests'
... | workflows: test registry cleanup * Adds a function to cleanup registries initialized for each unit test. This avoids RegistryError when running several tests. | py |
diff --git a/intake/catalog/local.py b/intake/catalog/local.py
index <HASH>..<HASH> 100644
--- a/intake/catalog/local.py
+++ b/intake/catalog/local.py
@@ -467,7 +467,7 @@ class YAMLFileCatalog(Catalog):
version = __version__
container = 'catalog'
partition_access = None
- name = 'yaml_files_cat'
+ ... | swap yaml_file and files | py |
diff --git a/intake/auth/base.py b/intake/auth/base.py
index <HASH>..<HASH> 100644
--- a/intake/auth/base.py
+++ b/intake/auth/base.py
@@ -66,7 +66,15 @@ class BaseClientAuth(object):
self.args = args
def __dask_tokenize__(self):
- return self.args
+ return hash(self)
+
+ @property
+ ... | Implement __hash__ and _tok as well. | py |
diff --git a/snet_cli/commands.py b/snet_cli/commands.py
index <HASH>..<HASH> 100644
--- a/snet_cli/commands.py
+++ b/snet_cli/commands.py
@@ -124,8 +124,10 @@ class BlockchainCommand(Command):
contract_def = get_contract_def(contract_name)
if (is_silent):
out_f = None
+ err_f ... | set correct err_f for ContractCommand in BlockchainCommand.get_ContractCommand | py |
diff --git a/astrocats/catalog/source.py b/astrocats/catalog/source.py
index <HASH>..<HASH> 100644
--- a/astrocats/catalog/source.py
+++ b/astrocats/catalog/source.py
@@ -33,6 +33,7 @@ class SOURCE(KeyCollection):
ALIAS = Key('alias', KEY_TYPES.NUMERIC, compare=False)
# Booleans
SECONDARY = Key('secondar... | ENH: added `PRIVATE` attribute to `SOURCE` | py |
diff --git a/pymongo/helpers.py b/pymongo/helpers.py
index <HASH>..<HASH> 100644
--- a/pymongo/helpers.py
+++ b/pymongo/helpers.py
@@ -85,20 +85,18 @@ def _unpack_response(response, cursor_id=None):
valid at server response
"""
response_flag = struct.unpack("<i", response[:4])[0]
- if response_fla... | ignore any response flags we don't care about | py |
diff --git a/src/pyshark/tshark/tshark_xml.py b/src/pyshark/tshark/tshark_xml.py
index <HASH>..<HASH> 100644
--- a/src/pyshark/tshark/tshark_xml.py
+++ b/src/pyshark/tshark/tshark_xml.py
@@ -23,7 +23,8 @@ def packet_from_xml_packet(xml_pkt, psml_structure=None):
:return: Packet object.
"""
if not isinsta... | Supporting huge input XML files as per issue #<I> | py |
diff --git a/project_generator/update.py b/project_generator/update.py
index <HASH>..<HASH> 100644
--- a/project_generator/update.py
+++ b/project_generator/update.py
@@ -64,6 +64,8 @@ def update(source=None, force=False, copy=False, settings=ProjectSettings()):
subprocess.call(cmd, cwd=settings.paths['def... | Update - fetch master to get latest | py |
diff --git a/anharmonic/phonon3/conductivity_LBTE.py b/anharmonic/phonon3/conductivity_LBTE.py
index <HASH>..<HASH> 100644
--- a/anharmonic/phonon3/conductivity_LBTE.py
+++ b/anharmonic/phonon3/conductivity_LBTE.py
@@ -144,7 +144,6 @@ def _set_collision_from_file(lbte, filename=None):
... | Written file-IO for LBTE collision | py |
diff --git a/jax/nn/functions.py b/jax/nn/functions.py
index <HASH>..<HASH> 100644
--- a/jax/nn/functions.py
+++ b/jax/nn/functions.py
@@ -266,3 +266,33 @@ def one_hot(x, num_classes, *, dtype=np.float64):
x = np.asarray(x)
return np.array(x[..., np.newaxis] == np.arange(num_classes, dtype=x.dtype),
... | Add ReLU6, Hard sigmoid, swish (#<I>) | py |
diff --git a/demo/cosmic_and_ivm_demo.py b/demo/cosmic_and_ivm_demo.py
index <HASH>..<HASH> 100644
--- a/demo/cosmic_and_ivm_demo.py
+++ b/demo/cosmic_and_ivm_demo.py
@@ -102,7 +102,7 @@ def geo2mag(incoord):
return outcoord
def addApexLong(inst, *arg, **kwarg):
- magCoords = geo2mag.geo2mag(np.array([inst.d... | Replaced old (and bad) function call to geomagnetic conversion | py |
diff --git a/chisel/resource/url_request.py b/chisel/resource/url_request.py
index <HASH>..<HASH> 100644
--- a/chisel/resource/url_request.py
+++ b/chisel/resource/url_request.py
@@ -7,6 +7,7 @@
from ..app import ResourceType
import urllib2
+import urlparse
# Url request resource type
@@ -38,7 +39,7 @@ class U... | Join url_request urls with urlparse.urljoin for '..' support | py |
diff --git a/spacy/cli/package.py b/spacy/cli/package.py
index <HASH>..<HASH> 100644
--- a/spacy/cli/package.py
+++ b/spacy/cli/package.py
@@ -94,7 +94,7 @@ def generate_meta(model_path, existing_meta):
meta['vectors'] = {'width': nlp.vocab.vectors_length,
'vectors': len(nlp.vocab.vectors),... | Fix typo in package command message (closes #<I>) | py |
diff --git a/pysolr.py b/pysolr.py
index <HASH>..<HASH> 100644
--- a/pysolr.py
+++ b/pysolr.py
@@ -1316,7 +1316,7 @@ class SolrCoreAdmin(object):
return self._get_url(self.url, params=params)
- def reload(self, core):
+ def reload(self, core): # NOQA: A003
"""
Reload a core | Avoid a warning about shadowing reload on Python <I> These methods map to the Solr verbs and we're not changing that. | py |
diff --git a/gwpy/timeseries/core.py b/gwpy/timeseries/core.py
index <HASH>..<HASH> 100644
--- a/gwpy/timeseries/core.py
+++ b/gwpy/timeseries/core.py
@@ -1356,6 +1356,33 @@ class TimeSeriesBaseDict(OrderedDict):
return plot
+ def step(self, label='key', figsize=(12, 4), xscale='auto-gps', **kwargs):
+ ... | gwpy.timeseries: added step() plotter for dict | py |
diff --git a/pubmed_lookup/test_pubmed_lookup.py b/pubmed_lookup/test_pubmed_lookup.py
index <HASH>..<HASH> 100644
--- a/pubmed_lookup/test_pubmed_lookup.py
+++ b/pubmed_lookup/test_pubmed_lookup.py
@@ -3,8 +3,7 @@ import os
import unittest
from io import StringIO
-import command_line
-from pubmed_lookup import Pub... | Import 'command_line' from 'pubmed_lookup' | py |
diff --git a/src/_pytest/pytester.py b/src/_pytest/pytester.py
index <HASH>..<HASH> 100644
--- a/src/_pytest/pytester.py
+++ b/src/_pytest/pytester.py
@@ -525,7 +525,6 @@ class Testdir(object):
def make_hook_recorder(self, pluginmanager):
"""Create a new :py:class:`HookRecorder` for a PluginManager."""
... | Remove assert for "reprec" because this is no longer set on the pluginmanager It seems this has no effect since `pluggy` was developed as a separate library. | py |
diff --git a/content_placeholders/models/db.py b/content_placeholders/models/db.py
index <HASH>..<HASH> 100644
--- a/content_placeholders/models/db.py
+++ b/content_placeholders/models/db.py
@@ -61,6 +61,17 @@ class Placeholder(models.Model):
return self.contentitems.all() # django-polymorphic FTW!
+ ... | Smallfix - Add get_absolute_url() to Placeholder and ContentItem. This eases debugging, and also allows cache hooks (like django_cachepurge) to operate by default on the models. | py |
diff --git a/multiping/__init__.py b/multiping/__init__.py
index <HASH>..<HASH> 100644
--- a/multiping/__init__.py
+++ b/multiping/__init__.py
@@ -393,9 +393,6 @@ class MultiPing(object):
# send().
self._remaining_ids = list(self._id_to_addr.keys())
- if len(self._remaining_ids) == 0:... | Error removed "no responses pending" should not be handled as an error. If someone uses multi_ping with retry != 0, he/she does it to make sure that a possibly sent ICMP packages does not get lost. But when the first trial worked, the function should only exit and not throw by any means an error. | py |
diff --git a/tilequeue/log.py b/tilequeue/log.py
index <HASH>..<HASH> 100644
--- a/tilequeue/log.py
+++ b/tilequeue/log.py
@@ -4,12 +4,22 @@ import logging
import sys
+def int_if_exact(x):
+ try:
+ i = int(x)
+ return i if i == x else x
+ except ValueError:
+ # shouldn't practically happ... | Log integers conditionally We should expect that the coordinate values always be integers, but if we ever call container and forget to truncate at that point, it's probably a bug and we'd prefer to log that instead. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -22,6 +22,8 @@ setup(name='zencoder',
'Programming Language :: Python',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
+ 'Programming Language :: Pyt... | advertise python <I>/<I> support | 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
@@ -32,7 +32,7 @@ class Mock(MagicMock):
def __getattr__(cls, name):
return Mock()
-MOCK_MODULES = ['ctypes']
+MOCK_MODULES = ['ctypes', 'PIL']
sys.modules.update((... | Added pillow to mock list for RTD | py |
diff --git a/test/scenarios/relocate_namespace.py b/test/scenarios/relocate_namespace.py
index <HASH>..<HASH> 100755
--- a/test/scenarios/relocate_namespace.py
+++ b/test/scenarios/relocate_namespace.py
@@ -43,4 +43,4 @@ with driver.Metacluster() as metacluster:
http.check_no_issues()
workload.run_aft... | fixing typo which broke relocate_namespace tests | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -551,9 +551,9 @@ winrm = [
'pywinrm>=0.4',
]
yandex = [
- # Yandexcloud 0.145 broke logging of the yandexcloud provider. The limitation can be removed once
+ # Yandexcloud 0.142 broke logging of the yandexcloud pr... | Limit yandexcloud to < <I> (#<I>) It turned out the yandexcloud bugfix attempt from #<I> was not successful. The bug was present already in <I> | py |
diff --git a/scss.py b/scss.py
index <HASH>..<HASH> 100644
--- a/scss.py
+++ b/scss.py
@@ -2042,9 +2042,9 @@ def _sprite_map(g, **kwargs):
offset_y = kwargs.get('offset-y', 0)
repeat = kwargs.get('repeat', 'no-repeat')
if isinstance(margins, ListValue):
- margins = [ NumberValue(v)... | Using integers during sprite-map() paste | py |
diff --git a/examples/tornado/main.py b/examples/tornado/main.py
index <HASH>..<HASH> 100644
--- a/examples/tornado/main.py
+++ b/examples/tornado/main.py
@@ -135,6 +135,7 @@ if __name__ == '__main__':
antennas=enabled_antennas,
tx_power=args.tx_power,
... | make tornado example run again might be enough to resolve #<I>? | py |
diff --git a/i3pystatus/mem.py b/i3pystatus/mem.py
index <HASH>..<HASH> 100644
--- a/i3pystatus/mem.py
+++ b/i3pystatus/mem.py
@@ -16,8 +16,8 @@ class Mem(IntervalModule):
Requires psutil (from PyPI)
"""
- format = "{avail_mem} GB"
- divisor = 1024 ** 3
+ format = "{avail_mem} MiB"
+ divisor = 1... | fixed code/doc inconsistency with divisor in mem module | py |
diff --git a/GPy/testing/pickle_tests.py b/GPy/testing/pickle_tests.py
index <HASH>..<HASH> 100644
--- a/GPy/testing/pickle_tests.py
+++ b/GPy/testing/pickle_tests.py
@@ -65,8 +65,8 @@ class Test(ListDictTestCase):
with f:
pickle.dump(piov, f)
-
- pio2 = GPy.load(f)
+ f... | Update pickle_tests.py | py |
diff --git a/libexec/windows_shares_discovery_runner.py b/libexec/windows_shares_discovery_runner.py
index <HASH>..<HASH> 100755
--- a/libexec/windows_shares_discovery_runner.py
+++ b/libexec/windows_shares_discovery_runner.py
@@ -48,21 +48,19 @@ if not opts.hostname:
parser.error("Requires one host to scan (optio... | Call `smbclient` without shell and without building a command string. This also saves escaping the username. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -30,8 +30,8 @@ setup(
long_description=open(os.path.join(os.path.dirname(__file__), 'README.md'), 'r').read(),
py_modules=['pyzillow', 'pyzillowerrors', '__version__'],
provides=['pyzillow'],
- requires=['req... | Depend on django >= <I> > from django.contrib.gis.geos.error import GEOSException Package does not work without django installed. I listed the current version as the dependency. | py |
diff --git a/nibble/tests/test_information.py b/nibble/tests/test_information.py
index <HASH>..<HASH> 100644
--- a/nibble/tests/test_information.py
+++ b/nibble/tests/test_information.py
@@ -24,6 +24,18 @@ class TestInformation(unittest.TestCase):
self.assertEqual(Information.from_quantity_unit(10.842, 'Gib'),... | Add tests for missing lines in `Information` | py |
diff --git a/anyconfig/backend/properties.py b/anyconfig/backend/properties.py
index <HASH>..<HASH> 100644
--- a/anyconfig/backend/properties.py
+++ b/anyconfig/backend/properties.py
@@ -147,7 +147,7 @@ def load(stream, to_container=dict, comment_markers=_COMMENT_MARKERS):
>>> load(to_strm("! " + s0))
{}
... | fix: correct a doc test case of empty value in properties backend | py |
diff --git a/zipline/finance/risk.py b/zipline/finance/risk.py
index <HASH>..<HASH> 100644
--- a/zipline/finance/risk.py
+++ b/zipline/finance/risk.py
@@ -58,7 +58,6 @@ Risk Report
import logbook
import datetime
import math
-import bisect
import numpy as np
import numpy.linalg as la
from dateutil.relativedelta im... | MAINT: Use searchsorted instead of bisect on treasury curves. Remove use of .keys() and creation of a new list of the curve Series's values. | py |
diff --git a/objectpath/utils/timeutils.py b/objectpath/utils/timeutils.py
index <HASH>..<HASH> 100644
--- a/objectpath/utils/timeutils.py
+++ b/objectpath/utils/timeutils.py
@@ -5,13 +5,15 @@
# Copyright (C) 2008-2010 Adrian Kalbarczyk
import datetime
+import sys, os
try:
import pytz
TIMEZONE_CACHE={
"UTC"... | It will only complain about missing pytz when running in interactive. | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.