diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/django_extensions/management/commands/passwd.py b/django_extensions/management/commands/passwd.py
index <HASH>..<HASH> 100644
--- a/django_extensions/management/commands/passwd.py
+++ b/django_extensions/management/commands/passwd.py
@@ -1,8 +1,10 @@
# -*- coding: utf-8 -*-
import getpass
+import warning... | added deprecation warning for passwd command | py |
diff --git a/debreach/compat.py b/debreach/compat.py
index <HASH>..<HASH> 100644
--- a/debreach/compat.py
+++ b/debreach/compat.py
@@ -30,6 +30,7 @@ except ImportError: # pragma: no cover
def xor(s, pad):
+ '''XOR a given string ``s`` with the one-time-pad ``pad``'''
from itertools import cycle
s = b... | Add an explanatory docstring | py |
diff --git a/km3pipe/db.py b/km3pipe/db.py
index <HASH>..<HASH> 100644
--- a/km3pipe/db.py
+++ b/km3pipe/db.py
@@ -145,6 +145,17 @@ class DBManager(object):
else:
return dataframe
+ def t0sets(self, det_id):
+ content = self._get_content('streamds/t0sets.txt?detid={0}'
+ ... | Implements t0sets retrieval | py |
diff --git a/pyphi/network.py b/pyphi/network.py
index <HASH>..<HASH> 100644
--- a/pyphi/network.py
+++ b/pyphi/network.py
@@ -214,7 +214,7 @@ class Network:
def generate_node_indices(self, nodes):
"""Returns the nodes indices for nodes, where ``nodes`` is either
already integer indices or node l... | Don't use `len` to check for empty sequence | py |
diff --git a/dipper/sources/Decipher.py b/dipper/sources/Decipher.py
index <HASH>..<HASH> 100644
--- a/dipper/sources/Decipher.py
+++ b/dipper/sources/Decipher.py
@@ -135,7 +135,7 @@ class Decipher(Source):
# in order for this to work, we need to map the HGNC id-symbol;
hgnc = HGNC(self.graph_type, ... | comment out non existant calls, expect whole file to be dropped soonish | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -5,6 +5,7 @@ from setuptools import setup
from io import open as io_open
import os
import sys
+import platform
import warnings
package_name = 'vtki'
@@ -20,7 +21,7 @@ install_requires = ['numpy',
'i... | Attempt fix setup for windows <I> bit architecture | py |
diff --git a/docs/conf.py b/docs/conf.py
index <HASH>..<HASH> 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -104,7 +104,7 @@ pygments_style = 'sphinx'
# The theme to use for HTML and HTML Help pages. See the documentation for
# a list of builtin themes.
-html_theme = 'alabaster'
+html_theme = 'default'
# Them... | revert to default docs scheme | py |
diff --git a/atomicpuppy/atomicpuppy.py b/atomicpuppy/atomicpuppy.py
index <HASH>..<HASH> 100644
--- a/atomicpuppy/atomicpuppy.py
+++ b/atomicpuppy/atomicpuppy.py
@@ -158,7 +158,7 @@ class StreamReader:
self.logger.debug(
"No last read event, skipping to last page %s",
... | Refactor: Rename _walk_from_last to _walk_forwards | py |
diff --git a/src/peltak/commands/appengine.py b/src/peltak/commands/appengine.py
index <HASH>..<HASH> 100755
--- a/src/peltak/commands/appengine.py
+++ b/src/peltak/commands/appengine.py
@@ -68,7 +68,10 @@ def deploy(pretend, promote):
else:
app_version = versioning.current().replace('.', '-')
- args... | Pass —project to gcloud command Do not rely on the active project. This should come from the config. | py |
diff --git a/tests/notifications_python_client/test_base_api_client.py b/tests/notifications_python_client/test_base_api_client.py
index <HASH>..<HASH> 100644
--- a/tests/notifications_python_client/test_base_api_client.py
+++ b/tests/notifications_python_client/test_base_api_client.py
@@ -20,6 +20,15 @@ import request... | Test any character can be used as key separator Hyphen might not be the best character to use, so we should make sure we can change it later. | py |
diff --git a/Legobot.py b/Legobot.py
index <HASH>..<HASH> 100755
--- a/Legobot.py
+++ b/Legobot.py
@@ -46,7 +46,7 @@ class legoBot():
if len(line.strip(' \t\n\r')) == 0:
continue
msg = Message(line)
- reply = msg.read(self.host, self.func, self.nick, self.logfuncs)
+ ... | Fixed broke reference to logfunc in listener | py |
diff --git a/rest_framework_utils/metadata.py b/rest_framework_utils/metadata.py
index <HASH>..<HASH> 100644
--- a/rest_framework_utils/metadata.py
+++ b/rest_framework_utils/metadata.py
@@ -4,6 +4,7 @@ from __future__ import unicode_literals
import collections
from django.utils.encoding import force_text
+from dja... | pattern attr for RegexField added | py |
diff --git a/salt/modules/cmdmod.py b/salt/modules/cmdmod.py
index <HASH>..<HASH> 100644
--- a/salt/modules/cmdmod.py
+++ b/salt/modules/cmdmod.py
@@ -404,6 +404,19 @@ def _run(cmd,
return win_runas(cmd, runas, password, cwd)
+ if runas and salt.utils.platform.is_darwin():
+ # we need to insert t... | adding in a fix for running commands as a user on macos | py |
diff --git a/pyaavso/formats/visual.py b/pyaavso/formats/visual.py
index <HASH>..<HASH> 100644
--- a/pyaavso/formats/visual.py
+++ b/pyaavso/formats/visual.py
@@ -1,5 +1,7 @@
from __future__ import unicode_literals
+import pyaavso
+
class VisualFormatWriter(object):
"""
@@ -22,3 +24,4 @@ class VisualFormatWr... | Write name and version to output file. | py |
diff --git a/OpenPNM/Algorithms/__init__.py b/OpenPNM/Algorithms/__init__.py
index <HASH>..<HASH> 100644
--- a/OpenPNM/Algorithms/__init__.py
+++ b/OpenPNM/Algorithms/__init__.py
@@ -43,6 +43,7 @@ from .__FourierConduction__ import FourierConduction
from .__OhmicConduction__ import OhmicConduction
from .__StokesFlow_... | Added IP2 to the __init__ so it's loaded by default | py |
diff --git a/tests/plots/test_mapping.py b/tests/plots/test_mapping.py
index <HASH>..<HASH> 100644
--- a/tests/plots/test_mapping.py
+++ b/tests/plots/test_mapping.py
@@ -9,6 +9,11 @@ ccrs = pytest.importorskip('cartopy.crs')
from metpy.plots.mapping import CFProjection # noqa: E402
+def test_inverse_flattening_0... | added tests in test_mapping.py for L<I>-L<I> in mapping.py | py |
diff --git a/panoptes_client/panoptes.py b/panoptes_client/panoptes.py
index <HASH>..<HASH> 100644
--- a/panoptes_client/panoptes.py
+++ b/panoptes_client/panoptes.py
@@ -650,19 +650,19 @@ class LinkResolver(object):
def __setattr__(self, name, value):
reserved_names = ('raw', 'parent')
- if name... | Fix references to self.raw in LinkResolver | py |
diff --git a/discord/http.py b/discord/http.py
index <HASH>..<HASH> 100644
--- a/discord/http.py
+++ b/discord/http.py
@@ -148,7 +148,7 @@ class HTTPClient:
# wait until the global lock is complete
await self._global_over.wait()
- await lock
+ await lock.acquire()
with... | Use non-deprecated method of acquiring lock | py |
diff --git a/airflow/bin/cli.py b/airflow/bin/cli.py
index <HASH>..<HASH> 100755
--- a/airflow/bin/cli.py
+++ b/airflow/bin/cli.py
@@ -496,6 +496,7 @@ def get_parser():
parser_clear.add_argument(
"-sd", "--subdir", help=subdir_help,
default=DAGS_FOLDER)
+ ht = "Do not request confirmation"
... | add missing help text (currently it reprints an earlier text) | py |
diff --git a/tests/pathops_test.py b/tests/pathops_test.py
index <HASH>..<HASH> 100644
--- a/tests/pathops_test.py
+++ b/tests/pathops_test.py
@@ -692,10 +692,10 @@ def test_strip_collinear_moveTo():
@pytest.mark.parametrize(
- "operations, expected",
+ "message, operations, expected",
[
- # stro... | a failing test, pending figuring out what the right answer is :) | py |
diff --git a/nat/ontoDic.py b/nat/ontoDic.py
index <HASH>..<HASH> 100644
--- a/nat/ontoDic.py
+++ b/nat/ontoDic.py
@@ -47,6 +47,8 @@ class OntoDic(TransformedDict):
# We reimplement __setitem__ and __contains__ because we don't want to
# check ontology services when adding new item to the dict.
def __se... | Adding a check in the OntoDic class so that items cannot be set a value equals to None. | py |
diff --git a/securesystemslib/process.py b/securesystemslib/process.py
index <HASH>..<HASH> 100644
--- a/securesystemslib/process.py
+++ b/securesystemslib/process.py
@@ -27,7 +27,7 @@ import shlex
import six
if six.PY2:
- import subprocess32 as subprocess # pragma: no cover
+ import subprocess32 as subprocess # ... | Add environment marker to install dependencies subprocess<I> is only required in < Py3. This commit adds an environment marker to requirements.txt and setup.py so py3 users don't need install it. In order for pylint not to complain about import-errors this commit also adds pylint: disable=import-error to the correspo... | py |
diff --git a/LiSE/LiSE/character.py b/LiSE/LiSE/character.py
index <HASH>..<HASH> 100644
--- a/LiSE/LiSE/character.py
+++ b/LiSE/LiSE/character.py
@@ -1586,9 +1586,15 @@ class Character(AbstractCharacter, DiGraph, RuleFollower):
if len(self) == 1:
ret = self._get_char_av_cache(next(iter(se... | Handle the default cases of AvatarGraphMapping.__getitem__ When I could proxy to the real avatar, but the user wants to use the mapping anyhow. It seems like this could lead to trouble if you've got a stat on the avatar with the same name as the graph. Not sure if that's worth handling special. | py |
diff --git a/expfactory/views/main.py b/expfactory/views/main.py
index <HASH>..<HASH> 100644
--- a/expfactory/views/main.py
+++ b/expfactory/views/main.py
@@ -167,10 +167,13 @@ def logout():
@app.route('/finish', methods=['POST', 'GET'])
def finish():
- # If the user has finished, clear session
- clear_sessio... | finish should redirect to base if found Nonex | py |
diff --git a/extensions/lib/shoebotit/ide_utils.py b/extensions/lib/shoebotit/ide_utils.py
index <HASH>..<HASH> 100644
--- a/extensions/lib/shoebotit/ide_utils.py
+++ b/extensions/lib/shoebotit/ide_utils.py
@@ -56,7 +56,7 @@ class ShoebotProcess(object):
def __init__(self, code, use_socketserver, show_varwindow, u... | Virtualenv picker pref wasn't actually used.. | py |
diff --git a/openquake/risklib/riskmodels.py b/openquake/risklib/riskmodels.py
index <HASH>..<HASH> 100644
--- a/openquake/risklib/riskmodels.py
+++ b/openquake/risklib/riskmodels.py
@@ -23,7 +23,7 @@ import numpy
from openquake.baselib.node import Node
from openquake.baselib.general import CallableDict, AccumDict
f... | Added a check for empty risk model files [skip hazardlib][demos] | py |
diff --git a/python4gmsh/extra.py b/python4gmsh/extra.py
index <HASH>..<HASH> 100644
--- a/python4gmsh/extra.py
+++ b/python4gmsh/extra.py
@@ -443,13 +443,13 @@ def add_pipe2(outer_radius, inner_radius, length,
# Define ring which to Extrude by translation.
c_inner = add_circle(inner_radius, lcar,
... | more passing of rotation matrix/vector fixes | py |
diff --git a/drip/drips.py b/drip/drips.py
index <HASH>..<HASH> 100644
--- a/drip/drips.py
+++ b/drip/drips.py
@@ -1,3 +1,5 @@
+from itertools import groupby
+
from django.conf import settings
from django.contrib.auth.models import User
from django.template import Context, Template
@@ -149,8 +151,20 @@ class DripBas... | apply all filters and excludes at once not piecemeal | py |
diff --git a/colin/checks/abstract/labels.py b/colin/checks/abstract/labels.py
index <HASH>..<HASH> 100644
--- a/colin/checks/abstract/labels.py
+++ b/colin/checks/abstract/labels.py
@@ -52,3 +52,25 @@ class LabelCheck(ContainerCheck, ImageCheck):
reference_url=self.reference_url,
... | Add abstract class for deprecated labels | py |
diff --git a/notify/linux/notify.py b/notify/linux/notify.py
index <HASH>..<HASH> 100644
--- a/notify/linux/notify.py
+++ b/notify/linux/notify.py
@@ -29,6 +29,6 @@ class LinuxNotification:
Notify.init(app_name)
n = Notify.Notification.new(message, summary, image)
n.set_timeout(timeout)
- ... | Fix: Notification is hidden immediately using the dunst server | py |
diff --git a/benchexec/tools/nitwit.py b/benchexec/tools/nitwit.py
index <HASH>..<HASH> 100644
--- a/benchexec/tools/nitwit.py
+++ b/benchexec/tools/nitwit.py
@@ -58,16 +58,16 @@ class Tool(benchexec.tools.template.BaseTool2):
about result codes.
@return: status of validator after executing a run
... | Resolve issues with parsing/looking for "out of memory" output. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -16,6 +16,7 @@ setup(
packages = find_packages(),
include_package_data = True,
install_requires=[
+ 'django>=1.11,<2.2',
'django-cms>=3.6,<3.7',
'django-filer',
'python-dateutil... | also support Django <I> | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -31,4 +31,7 @@ setup(
'motor==0.7b0',
'yarl==0.4.3',
],
+ package_data={
+ '': ['*.crt', '*.key']
+ },
) | #<I> include https files for fake server | py |
diff --git a/online_monitor/utils/settings.py b/online_monitor/utils/settings.py
index <HASH>..<HASH> 100644
--- a/online_monitor/utils/settings.py
+++ b/online_monitor/utils/settings.py
@@ -1,8 +1,12 @@
-import ConfigParser
import ast
import sys
import os
+try:
+ import ConfigParser
+except ImportError: # ren... | MAINT: add some python 3 readiness | py |
diff --git a/wpull/warc/recorder.py b/wpull/warc/recorder.py
index <HASH>..<HASH> 100644
--- a/wpull/warc/recorder.py
+++ b/wpull/warc/recorder.py
@@ -231,7 +231,8 @@ class WARCRecorder(object):
HTTPSession.Event.end_response, recorder_session.end_response)
http_session.event_dispatcher.add_list... | warc: Fix extra arg passed on session close event | py |
diff --git a/edisgo/tools/pypsa_io.py b/edisgo/tools/pypsa_io.py
index <HASH>..<HASH> 100644
--- a/edisgo/tools/pypsa_io.py
+++ b/edisgo/tools/pypsa_io.py
@@ -316,11 +316,14 @@ def to_pypsa(grid_object, timesteps, **kwargs):
storages_timeseries_reactive = \
edisgo_obj.timeseries.storage_un... | Convert storage time series to numeric to make sure values are numeric | py |
diff --git a/soco/snapshot.py b/soco/snapshot.py
index <HASH>..<HASH> 100644
--- a/soco/snapshot.py
+++ b/soco/snapshot.py
@@ -216,11 +216,7 @@ class Snapshot(object):
)
# For all devices:
- # Reinstate all the properties that are pretty easy to do
self.device.mute = self... | Do not try to restore bass/treble/loudness with fixed volume | py |
diff --git a/openquake/engine/db/models.py b/openquake/engine/db/models.py
index <HASH>..<HASH> 100644
--- a/openquake/engine/db/models.py
+++ b/openquake/engine/db/models.py
@@ -76,10 +76,6 @@ IMT_CHOICES = (
(u'MMI', u'Modified Mercalli Intensity'),
)
-#: Default Loss Curve Resolution used for probabilistic r... | Remove the loss_curve_resolution default, since it is done in commonlib.readinput Former-commit-id: 2dbbd4ec9c3f5d<I>ebc4f<I>a<I>ce2c<I>fb<I>af | py |
diff --git a/tpot/tpot.py b/tpot/tpot.py
index <HASH>..<HASH> 100644
--- a/tpot/tpot.py
+++ b/tpot/tpot.py
@@ -369,9 +369,11 @@ class TPOT(object):
most_frequent_training_class = Counter(self._training_classes).most_common(1)[0][0]
training_testing_data.loc[:, 'guess'] = most_frequent_training_class
... | Change score() to use batch rename on the DF | py |
diff --git a/timepiece/tests/timesheet.py b/timepiece/tests/timesheet.py
index <HASH>..<HASH> 100644
--- a/timepiece/tests/timesheet.py
+++ b/timepiece/tests/timesheet.py
@@ -380,6 +380,11 @@ class StatusTest(TimepieceDataTestCase):
response = self.client.post(self.approve_url, {'do_action': 'Yes'})
s... | added not allowed to verify test --HG-- branch : invoice_manager | py |
diff --git a/troposphere/autoscaling.py b/troposphere/autoscaling.py
index <HASH>..<HASH> 100644
--- a/troposphere/autoscaling.py
+++ b/troposphere/autoscaling.py
@@ -60,6 +60,14 @@ class Tags(AWSHelperFn):
return self.tags
+class MetadataOptions(AWSProperty):
+ props = {
+ 'HttpEndpoint': (bases... | AWS::AutoScaling::LaunchConfiguration.MetadataOptions (#<I>) * Add MetadataOptions support for AutoScaling::LaunchConfiguration * Fix autoscaling group positioning error | py |
diff --git a/dataviews/ndmapping.py b/dataviews/ndmapping.py
index <HASH>..<HASH> 100644
--- a/dataviews/ndmapping.py
+++ b/dataviews/ndmapping.py
@@ -479,6 +479,25 @@ class NdIndexableMapping(param.Parameterized, Dimensional):
except:
return default
+ @property
+ def info(self):
+ ... | Added .info property to NdMapping | py |
diff --git a/jieba/__init__.py b/jieba/__init__.py
index <HASH>..<HASH> 100644
--- a/jieba/__init__.py
+++ b/jieba/__init__.py
@@ -301,7 +301,7 @@ def enable_parallel(processnum):
global pool,cut,cut_for_search
if os.name=='nt':
raise Exception("jieba: parallel mode only supports posix system")
- ... | fix a bug. use sys.version_info.major can't be used in Python<I> | py |
diff --git a/test/test_lzma.py b/test/test_lzma.py
index <HASH>..<HASH> 100644
--- a/test/test_lzma.py
+++ b/test/test_lzma.py
@@ -38,7 +38,10 @@ class CompressorDecompressorTestCase(unittest.TestCase):
def test_simple_bad_args(self):
self.assertRaises(TypeError, LZMACompressor, [])
- self.assert... | Skip TypeError test on Python <I> which does float -> int Getting a TypeError would require C changes with a custom converter with PyArg_ParseTupleAndKeywords in function Compressor_init (i.e. a lot of work for minimal benefit). This fixes the final unit test failure on Python <I>, meaning it and Python <I> appear to... | py |
diff --git a/tests/test_decoder.py b/tests/test_decoder.py
index <HASH>..<HASH> 100644
--- a/tests/test_decoder.py
+++ b/tests/test_decoder.py
@@ -197,11 +197,11 @@ class TestODLDecoder(unittest.TestCase):
("1990-158", datetime.date(1990, 6, 7)),
("2001-001", datetime.date(2001, 1, 1))... | test(decoder): The ODL specification actually allows "naive" datetime objects, corrected the tests, which now fail. | py |
diff --git a/m2s3/app.py b/m2s3/app.py
index <HASH>..<HASH> 100755
--- a/m2s3/app.py
+++ b/m2s3/app.py
@@ -125,6 +125,8 @@ def main(argv=None):
:param argv: list of command line arguments
"""
+ # Exit code
+ exit_code = 0
# First, we change main() to take an optional 'argv'
# argument, whi... | Consistent way of returning a value at exit | py |
diff --git a/rows/fields.py b/rows/fields.py
index <HASH>..<HASH> 100644
--- a/rows/fields.py
+++ b/rows/fields.py
@@ -481,7 +481,7 @@ def detect_types(field_names, field_values, field_types=AVAILABLE_FIELD_TYPES,
field_values = list(field_values)
if not field_values:
- return collections.OrderedDict... | TextField is not the default (instead of Binary) | py |
diff --git a/pandas/core/generic.py b/pandas/core/generic.py
index <HASH>..<HASH> 100644
--- a/pandas/core/generic.py
+++ b/pandas/core/generic.py
@@ -547,6 +547,43 @@ class NDFrame(PandasObject, SelectionMixin):
def pop(self, item):
"""
Return item and drop from frame. Raise KeyError if not foun... | DOC: Improving docstring of pop method (#<I>) (#<I>) | py |
diff --git a/cherrypy/_cpconfig.py b/cherrypy/_cpconfig.py
index <HASH>..<HASH> 100644
--- a/cherrypy/_cpconfig.py
+++ b/cherrypy/_cpconfig.py
@@ -92,6 +92,10 @@ style) context manager.
"""
import ConfigParser
+try:
+ set
+except NameError:
+ from sets import Set as set
import sys
import cherrypy | Fix for #<I> (assumed set builtin). | py |
diff --git a/galpy/orbit/Orbits.py b/galpy/orbit/Orbits.py
index <HASH>..<HASH> 100644
--- a/galpy/orbit/Orbits.py
+++ b/galpy/orbit/Orbits.py
@@ -4105,7 +4105,7 @@ class Orbits(object):
2019-02-01 - Started - Bovy (UofT)
2019-02-18 - Written interpolation part - Bovy (UofT)
"""
- ... | Handle evaluation of an orbit at time 0 before orbit integration in Orbits | py |
diff --git a/glances/glances.py b/glances/glances.py
index <HASH>..<HASH> 100644
--- a/glances/glances.py
+++ b/glances/glances.py
@@ -387,7 +387,15 @@ class Config:
"""
for path in self.get_paths_list():
if os.path.isfile(path) and os.path.getsize(path) > 0:
- self.parser.... | UTF-8 config file for python 3 [issue #<I>] | py |
diff --git a/gala/dynamics/core.py b/gala/dynamics/core.py
index <HASH>..<HASH> 100644
--- a/gala/dynamics/core.py
+++ b/gala/dynamics/core.py
@@ -128,6 +128,9 @@ class PhaseSpacePosition(object):
"""
+ if isinstance(pos, coord.Galactocentric):
+ pos = pos.data
+
if not isinstanc... | allow passing in galactocentric instance | py |
diff --git a/filer/admin/folderadmin.py b/filer/admin/folderadmin.py
index <HASH>..<HASH> 100644
--- a/filer/admin/folderadmin.py
+++ b/filer/admin/folderadmin.py
@@ -602,9 +602,21 @@ class FolderAdmin(PrimitivePermissionAwareModelAdmin):
raise PermissionDenied
n = files_queryset.count() +... | don't rely on cascade delete on delete folder action because otherwise ``.delete()`` will not be called on all the ``File`` instances and the files won't be deleted from the filesystem | py |
diff --git a/tests/integ/test_workflow.py b/tests/integ/test_workflow.py
index <HASH>..<HASH> 100644
--- a/tests/integ/test_workflow.py
+++ b/tests/integ/test_workflow.py
@@ -265,7 +265,7 @@ def test_one_step_sklearn_processing_pipeline(
assert response["PipelineArn"] == create_arn
try:
- ... | change: increase wait for sklearn processing pipeline test (#<I>) | py |
diff --git a/html5css3/html.py b/html5css3/html.py
index <HASH>..<HASH> 100644
--- a/html5css3/html.py
+++ b/html5css3/html.py
@@ -40,13 +40,7 @@ class TagBase(Element):
Element.__init__(self, tag, clean_attrs)
for child in childs:
- if isinstance(child, basestring):
- if s... | attempt at fixing nodes ordering when there are strings | py |
diff --git a/sdk/storage/azure-storage-blob/azure/storage/blob/_container_client.py b/sdk/storage/azure-storage-blob/azure/storage/blob/_container_client.py
index <HASH>..<HASH> 100644
--- a/sdk/storage/azure-storage-blob/azure/storage/blob/_container_client.py
+++ b/sdk/storage/azure-storage-blob/azure/storage/blob/_c... | Blobs - Fix Passing Tranport in get_blob_client (#<I>) | py |
diff --git a/tests/django_settings.py b/tests/django_settings.py
index <HASH>..<HASH> 100644
--- a/tests/django_settings.py
+++ b/tests/django_settings.py
@@ -4,7 +4,8 @@
import warnings
from django.utils import deprecation # NOQA
warnings.filterwarnings('error', category=deprecation.RemovedInNextVersionWarning) #... | only add RemovedInDjango<I>Warning if present) | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -33,7 +33,7 @@ setup(
license = 'LGPLv3',
author = "Kyle Wilcox",
author_email = "kyle@axiomalaska.com",
- url = "https://git.axiom/axiom/pyncml",
+ url ... | Fix url in setup.py | py |
diff --git a/runcommands/run.py b/runcommands/run.py
index <HASH>..<HASH> 100644
--- a/runcommands/run.py
+++ b/runcommands/run.py
@@ -153,7 +153,7 @@ class Run(Command):
# specified as being tuples.
for name, value in command_default_args.items():
command_arg = co... | Ensure arg exists when converting lists to tuples In Run.implementation(). Args passed to the run command itself may not exist on individual commands. Amends <I>ddb7ca<I>db<I>fe<I>ad<I>da2e<I>f<I>fd2 | py |
diff --git a/utils/gh2k.py b/utils/gh2k.py
index <HASH>..<HASH> 100755
--- a/utils/gh2k.py
+++ b/utils/gh2k.py
@@ -148,14 +148,14 @@ def notify_contact(mail, org, graas_url, repos, first_repo=False):
subject = "Bitergia dashboard for %s ready" % (org)
- body = "%s/dashboards/%s\n" % (graas_url, org)
+ ... | [gh2k] Improve email formatting. | py |
diff --git a/pushover.py b/pushover.py
index <HASH>..<HASH> 100644
--- a/pushover.py
+++ b/pushover.py
@@ -192,7 +192,7 @@ class Client:
if key not in valid_keywords:
raise ValueError("{0}: invalid message parameter".format(key))
- if key == "timestamp" and value:
+ ... | Update condition for timestamp We need to test boolean only : >>> key="timestamp" >>> value="<I>" >>> >>> if key == "timestamp" and value: ... print "Value <> True but, still true" ... else: ... print "value <> True and false" ... Value <> True but, still true | py |
diff --git a/salt/modules/defaults.py b/salt/modules/defaults.py
index <HASH>..<HASH> 100644
--- a/salt/modules/defaults.py
+++ b/salt/modules/defaults.py
@@ -1,5 +1,5 @@
-from __future__ import absolute_import
# -*- coding: utf-8 -*-
+from __future__ import absolute_import
import inspect
import json
import os | List call not needed. Changing it back to what it was | py |
diff --git a/blockstack/blockstackd.py b/blockstack/blockstackd.py
index <HASH>..<HASH> 100644
--- a/blockstack/blockstackd.py
+++ b/blockstack/blockstackd.py
@@ -3031,7 +3031,7 @@ def run_blockstackd():
log.error("Blockstackd appears to be running already. If not, please run '{} stop'".format(sys.argv[0]))... | don't restore unless we have to; always use snapshots if available | py |
diff --git a/dynamo.py b/dynamo.py
index <HASH>..<HASH> 100644
--- a/dynamo.py
+++ b/dynamo.py
@@ -112,10 +112,8 @@ class Item(object):
def table(name, auth=None, eager=True):
"""Returns a given table for the given user."""
- if auth:
- dynamodb = boto.connect_dynamodb(*auth)
- else:
- dynam... | Cleaning up that nastiness. | py |
diff --git a/cpp_coveralls/coverage.py b/cpp_coveralls/coverage.py
index <HASH>..<HASH> 100644
--- a/cpp_coveralls/coverage.py
+++ b/cpp_coveralls/coverage.py
@@ -15,7 +15,7 @@ import sys
from . import gitrepo
-_CPP_EXTENSIONS = ['.h', '.hh', '.hpp', '.hxx', '.c', '.cc', '.cpp', '.cxx']
+_CPP_EXTENSIONS = ['.h', '... | Add Objective-C file extensions by default | py |
diff --git a/docs/conf.py b/docs/conf.py
index <HASH>..<HASH> 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -69,7 +69,7 @@ if on_rtd:
branch = None
try:
subprocess.check_call([sys.executable, '-m', 'pip', 'install', 'praat-parselmouth=={}'.format(setup_py_version)])
- except Call... | Fixing bug in docs/conf.py for 'stable' build | py |
diff --git a/vstutils/api/endpoint.py b/vstutils/api/endpoint.py
index <HASH>..<HASH> 100644
--- a/vstutils/api/endpoint.py
+++ b/vstutils/api/endpoint.py
@@ -136,9 +136,6 @@ class BulkClient(Client):
super(Client, self).__init__(**defaults)
self.exc_info = None
- def _base_environ(self, **reques... | Fix pylint: removed `_base_environ` overriding from BulkClient | py |
diff --git a/axes/management/commands/axes_reset.py b/axes/management/commands/axes_reset.py
index <HASH>..<HASH> 100644
--- a/axes/management/commands/axes_reset.py
+++ b/axes/management/commands/axes_reset.py
@@ -12,7 +12,7 @@ class Command(BaseCommand):
def handle(self, *args, **kwargs):
count = 0
- ... | Reset all attempts when ip not specified When no ip address positional arguments are specified, reset all attempts, as with reset() and per documentation. | py |
diff --git a/ceam/framework/randomness.py b/ceam/framework/randomness.py
index <HASH>..<HASH> 100644
--- a/ceam/framework/randomness.py
+++ b/ceam/framework/randomness.py
@@ -66,8 +66,7 @@ def choice(key, index, choices, p=None):
effective_p = np.cumsum(p, axis=1)
draw = random(key, index)
idx = (draw.va... | Use standard indexing instead of np.choose in randomness.choice. I can't remember why I didn't do that initialy... | py |
diff --git a/allennlp/service/server_flask.py b/allennlp/service/server_flask.py
index <HASH>..<HASH> 100644
--- a/allennlp/service/server_flask.py
+++ b/allennlp/service/server_flask.py
@@ -173,16 +173,13 @@ def make_app(build_dir: str = None, demo_db: Optional[DemoDatabase] = None) -> F
# In theory this coul... | Remove the KeyError catch block in the server (#<I>) Several times I've run into an issue where I get a really weird error message about some key being missing, where there was actually a `KeyError` deep in my model code that was being caught at this point and re-branded incorrectly. I don't think trying to catch ... | py |
diff --git a/pyFMG/fortimgr.py b/pyFMG/fortimgr.py
index <HASH>..<HASH> 100644
--- a/pyFMG/fortimgr.py
+++ b/pyFMG/fortimgr.py
@@ -320,6 +320,7 @@ class FortiManagerObj(object):
else:
time.sleep(sleep_time)
end_task_time = datetime.now()
+ task_info["total_task_time... | added total_task_time key to the task_info response so it could be used in the return value of a task tracker | py |
diff --git a/eulxml/xmlmap/core.py b/eulxml/xmlmap/core.py
index <HASH>..<HASH> 100644
--- a/eulxml/xmlmap/core.py
+++ b/eulxml/xmlmap/core.py
@@ -363,7 +363,7 @@ class XmlObject(object):
:param filename: xslt filename (optional, one of file and xsl is required)
:param xsl: xslt as string (optional)
... | update xsl_transform method to support text output | py |
diff --git a/pyuploadcare/dj/conf.py b/pyuploadcare/dj/conf.py
index <HASH>..<HASH> 100644
--- a/pyuploadcare/dj/conf.py
+++ b/pyuploadcare/dj/conf.py
@@ -27,11 +27,11 @@ hosted_url = 'https://ucarecdn.com/widget/{version}/uploadcare/uploadcare-{versi
local_url = 'uploadcare/assets/uploaders/uploadcare-{version}.min.j... | Rename depracated settings in dj.conf | py |
diff --git a/src/aws_encryption_sdk/streaming_client.py b/src/aws_encryption_sdk/streaming_client.py
index <HASH>..<HASH> 100644
--- a/src/aws_encryption_sdk/streaming_client.py
+++ b/src/aws_encryption_sdk/streaming_client.py
@@ -124,10 +124,19 @@ class _EncryptionStream(io.IOBase):
# def _config_class(self):
... | define _EncryptionStream class attributes before __new__ to ensure that those attributes always exist | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -50,7 +50,7 @@ else:
# We will embed this metadata into the package so it can be recalled for debugging.
-version = '0.5.0'
+version = '0.5.1.dev0'
try:
git_commit, _ = Popen(['git', 'describe', '--tags'], stdout=PI... | Bump to the next dev version. We forgot to do this for <I>-dev. Whoops! | py |
diff --git a/generator/src/lib/utils.py b/generator/src/lib/utils.py
index <HASH>..<HASH> 100644
--- a/generator/src/lib/utils.py
+++ b/generator/src/lib/utils.py
@@ -11,7 +11,7 @@ class Utils(object):
@classmethod
def get_python_name(cls, name):
""" Transform a given name to python name """
- ... | Fixed regular expression to compute python name | py |
diff --git a/standalone_tests/all_media_types.py b/standalone_tests/all_media_types.py
index <HASH>..<HASH> 100755
--- a/standalone_tests/all_media_types.py
+++ b/standalone_tests/all_media_types.py
@@ -35,7 +35,7 @@ def main():
data_frame = pandas.DataFrame(data=numpy.random.rand(1000), columns=['col'])
tens... | fix broken standalone test for regression (#<I>) | py |
diff --git a/dash_test_runner/tests.py b/dash_test_runner/tests.py
index <HASH>..<HASH> 100644
--- a/dash_test_runner/tests.py
+++ b/dash_test_runner/tests.py
@@ -496,7 +496,7 @@ class OrgTest(DashTest):
self.login(self.superuser)
response = self.client.get(create_url)
self.assertEquals(200, ... | Update expected number of fields on org creation form Now including the logo field. | py |
diff --git a/core/polyaxon/cli/admin.py b/core/polyaxon/cli/admin.py
index <HASH>..<HASH> 100644
--- a/core/polyaxon/cli/admin.py
+++ b/core/polyaxon/cli/admin.py
@@ -87,13 +87,13 @@ def deploy(config_file, manager_path, check, dry_run):
)
exception = None
if check:
+ Printer.print_success("Polyax... | Update check validation message: * Report error related to manager * Fixes #<I> | py |
diff --git a/aaf2/ama.py b/aaf2/ama.py
index <HASH>..<HASH> 100644
--- a/aaf2/ama.py
+++ b/aaf2/ama.py
@@ -187,6 +187,8 @@ def guess_length(metadata, edit_rate):
codec_type = st['codec_type']
if codec_type == 'video':
return int(st['nb_frames'])
+ elif codec_type == 'audio':
+ ... | Update ama.py Bad bug I discovered while writing tests. | py |
diff --git a/host/fei4/register_utils.py b/host/fei4/register_utils.py
index <HASH>..<HASH> 100644
--- a/host/fei4/register_utils.py
+++ b/host/fei4/register_utils.py
@@ -159,6 +159,26 @@ class FEI4RegisterUtils(object):
commands.extend(self.register.get_commands("runmode"))
self.send_commands(comman... | ENH: Two new functions to reset the FE-I4 bunch and event counter | py |
diff --git a/abilian/app.py b/abilian/app.py
index <HASH>..<HASH> 100644
--- a/abilian/app.py
+++ b/abilian/app.py
@@ -177,9 +177,14 @@ class Application(Flask, ServiceManager, PluginManager):
celery_app_cls = FlaskCelery
def __init__(self, name=None, config=None, *args, **kwargs):
- kwargs.setdefaul... | Manage FLASK_INSTANCE_PATH as an env variable. | py |
diff --git a/build/changelog.py b/build/changelog.py
index <HASH>..<HASH> 100755
--- a/build/changelog.py
+++ b/build/changelog.py
@@ -27,7 +27,7 @@ def get_commit_message(commit_id):
def fixes_issue_id(commit_message):
- match = re.search(r"Fixes #(\d+)", commit_message)
+ match = re.search(r"Fixes:?\s*#(\d... | build: Fix changelog.py to accept : in Fixes directive | py |
diff --git a/src/python/dxpy/bindings/__init__.py b/src/python/dxpy/bindings/__init__.py
index <HASH>..<HASH> 100644
--- a/src/python/dxpy/bindings/__init__.py
+++ b/src/python/dxpy/bindings/__init__.py
@@ -295,7 +295,7 @@ class DXDataObject(DXObject):
return self._proj
- def describe(self, fields=None,... | d<I>b<I>e8 broke callers that supply args positionally | py |
diff --git a/dpark/executor.py b/dpark/executor.py
index <HASH>..<HASH> 100755
--- a/dpark/executor.py
+++ b/dpark/executor.py
@@ -348,9 +348,9 @@ class MyExecutor(mesos.Executor):
@safe
def killTask(self, driver, taskId):
+ reply_status(driver, task, mesos_pb2.TASK_KILLED)
if taskId.value i... | reply with KILLED even it's not in executor The task maybe failed to arrive to executor. It will be STAGING status in slave, if not KILLED | py |
diff --git a/airflow/version.py b/airflow/version.py
index <HASH>..<HASH> 100644
--- a/airflow/version.py
+++ b/airflow/version.py
@@ -13,4 +13,4 @@
# limitations under the License.
#
-version = '1.8.0b1'
+version = '1.8.0b1+apache.incubating' | Add incubating specifier to version | py |
diff --git a/overpass/api.py b/overpass/api.py
index <HASH>..<HASH> 100644
--- a/overpass/api.py
+++ b/overpass/api.py
@@ -83,11 +83,12 @@ class API(object):
payload = {"data": query}
try:
- r = requests.get(
+ r = requests.post(
self.endpoint,
- ... | Substitute post for get. Received <I> error when requesting large poly query. <URL> | py |
diff --git a/tcex/tcex.py b/tcex/tcex.py
index <HASH>..<HASH> 100644
--- a/tcex/tcex.py
+++ b/tcex/tcex.py
@@ -978,7 +978,10 @@ class TcEx(object):
(string): The urlencoded string
"""
if indicator is not None:
- indicator = quote(self.s(str(indicator), errors=errors), safe='~')... | Updated indicator encoding for HTTP requests | py |
diff --git a/charmhelpers/contrib/openstack/amulet/utils.py b/charmhelpers/contrib/openstack/amulet/utils.py
index <HASH>..<HASH> 100644
--- a/charmhelpers/contrib/openstack/amulet/utils.py
+++ b/charmhelpers/contrib/openstack/amulet/utils.py
@@ -858,9 +858,12 @@ class OpenStackAmuletUtils(AmuletUtils):
:retur... | Ceph Luminous Amulet Test Updates (#<I>) The ordering of the json dictionary is not guaranteed. Check for the ID to match before selecting a pool entry. | py |
diff --git a/src/pytesseract.py b/src/pytesseract.py
index <HASH>..<HASH> 100755
--- a/src/pytesseract.py
+++ b/src/pytesseract.py
@@ -67,12 +67,12 @@ def run_tesseract(input_filename,
if lang is not None:
command += ('-l', lang)
- if boxes:
- command += ('batch.nochop', 'makebox')
-
if c... | Move box config preset as last command argument According to the tesseract documentation, the config preset names should be the last arguments for the cli. | py |
diff --git a/tests/contrib/hooks/test_gcp_transfer_hook.py b/tests/contrib/hooks/test_gcp_transfer_hook.py
index <HASH>..<HASH> 100644
--- a/tests/contrib/hooks/test_gcp_transfer_hook.py
+++ b/tests/contrib/hooks/test_gcp_transfer_hook.py
@@ -54,7 +54,10 @@ class TestGCPTransferServiceHook(unittest.TestCase):
... | [AIRFLOW-<I>] Fix test for GCS to GCS Transfer Hook (#<I>) | py |
diff --git a/gocd/api/pipeline.py b/gocd/api/pipeline.py
index <HASH>..<HASH> 100644
--- a/gocd/api/pipeline.py
+++ b/gocd/api/pipeline.py
@@ -158,7 +158,11 @@ class Pipeline(Endpoint):
# TODO: Replace this with whatever is the official way as soon as gocd#990 is fixed.
# https://github.com/gocd/gocd/... | fixed schedule failing when requesting new instance and no pipeline triggered | py |
diff --git a/betfair/models.py b/betfair/models.py
index <HASH>..<HASH> 100644
--- a/betfair/models.py
+++ b/betfair/models.py
@@ -172,7 +172,7 @@ class MarketBook(BetfairModel):
class RunnerProfitAndLoss(BetfairModel):
- selection_id = Field(DataType(float))
+ selection_id = Field(DataType(int))
if_win... | Change RunnerProfitAndLoss.selection_id type to int Previously RunnerProfitAndLoss.selection_id was declared to be a float, however the API documentation says that it is a long: <URL> will return a long if the number is big enough to require it). | py |
diff --git a/bugsy/bugsy.py b/bugsy/bugsy.py
index <HASH>..<HASH> 100644
--- a/bugsy/bugsy.py
+++ b/bugsy/bugsy.py
@@ -150,7 +150,7 @@ class Bugsy(object):
" to Bugzilla")
if not bug.id:
- result = self.request('bug', 'POST', data=bug.to_dict())
+ resul... | Send data in POSTs and PUTs as JSON, not form-encoded. | py |
diff --git a/spyderlib/plugins/externalconsole.py b/spyderlib/plugins/externalconsole.py
index <HASH>..<HASH> 100644
--- a/spyderlib/plugins/externalconsole.py
+++ b/spyderlib/plugins/externalconsole.py
@@ -382,7 +382,8 @@ to use this feature wisely, e.g. for debugging purpose."""))
ets_layout.addWidget(ets_ed... | External Console: Improve activation/deactivation of ETS_TOOLKIT - Use the interpreter option of is_module_installed to check if the user has selected an EPD interpreter or not. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -30,7 +30,7 @@ import setuptools
with open("README.rst", "r") as readme_file:
readme_lines = []
in_toc = False
- for line in readme_file.readlines()():
+ for line in readme_file.readlines():
if in_toc... | Setup.py: Apparent typo fixed. There's an extra pair of parentheses after `readlines`, so the installation fails. | py |
diff --git a/src/openaccess_epub/main.py b/src/openaccess_epub/main.py
index <HASH>..<HASH> 100755
--- a/src/openaccess_epub/main.py
+++ b/src/openaccess_epub/main.py
@@ -8,11 +8,12 @@ mode of execution and interaction.
#Standard Library Modules
import argparse
import sys
-import os.path
+import os
import shutil
i... | now permitting epubcheck during batch mode, implementing check using subprocess | py |
diff --git a/tests/jenkins.py b/tests/jenkins.py
index <HASH>..<HASH> 100644
--- a/tests/jenkins.py
+++ b/tests/jenkins.py
@@ -44,7 +44,7 @@ def run(platform, provider, commit, clean):
htag = hashlib.md5(str(random.randint(1, 100000000))).hexdigest()[:6]
vm_name = 'ZZZ-{0}-{1}'.format(platform, htag)
cmd... | `salt-call` does not support `timeout` | py |
diff --git a/pysnmp/proto/rfc3412.py b/pysnmp/proto/rfc3412.py
index <HASH>..<HASH> 100644
--- a/pysnmp/proto/rfc3412.py
+++ b/pysnmp/proto/rfc3412.py
@@ -218,7 +218,7 @@ class MsgAndPduDispatcher:
errorIndication='unsupportedMsgProcessingModel'
)
- debug.logger & debug.flagDs... | handle possibly empty PDU in debugging | py |
diff --git a/elasticsearch_dsl/field.py b/elasticsearch_dsl/field.py
index <HASH>..<HASH> 100644
--- a/elasticsearch_dsl/field.py
+++ b/elasticsearch_dsl/field.py
@@ -79,7 +79,7 @@ class Field(DslBase):
return self._empty()
def serialize(self, data):
- if isinstance(data, (list, AttrList)):
+ ... | Also accept tuples of field values | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.