diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/pypot/dynamixel/syncloop.py b/pypot/dynamixel/syncloop.py
index <HASH>..<HASH> 100644
--- a/pypot/dynamixel/syncloop.py
+++ b/pypot/dynamixel/syncloop.py
@@ -71,7 +71,7 @@ class BaseDxlController(MetaDxlController):
class LightDxlController(MetaDxlController):
def __init__(self, io, motors):
... | Increase freq. of the light sync loop as recent optimisation make it possible. | py |
diff --git a/salt/master.py b/salt/master.py
index <HASH>..<HASH> 100644
--- a/salt/master.py
+++ b/salt/master.py
@@ -1109,6 +1109,7 @@ class MWorker(salt.utils.process.SignalHandlingProcess):
self.opts,
self.key,
)
+ self.clear_funcs.connect()
self.aes_funcs = AESFun... | Add connect method to connect pub server channels | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -43,6 +43,7 @@ setup(
packages=find_packages(exclude=("tests",)),
package_data={"datasette": ["templates/*.html"]},
include_package_data=True,
+ python_requires=">=3.6",
install_requires=[
"asgi... | Add minimum supported python (#<I>) | py |
diff --git a/hypertools/plot/plot.py b/hypertools/plot/plot.py
index <HASH>..<HASH> 100644
--- a/hypertools/plot/plot.py
+++ b/hypertools/plot/plot.py
@@ -25,7 +25,7 @@ def plot(x, fmt=None, marker=None, markers=None, linestyle=None,
align=False, normalize=False, n_clusters=None, save_path=None,
ani... | Removed trailing comma in function signature | py |
diff --git a/firenado/test/tornadoweb.py b/firenado/test/tornadoweb.py
index <HASH>..<HASH> 100644
--- a/firenado/test/tornadoweb.py
+++ b/firenado/test/tornadoweb.py
@@ -24,8 +24,6 @@ from firenado.tornadoweb import TornadoComponent
import unittest
from firenado.test import chdir_app
-chdir_app('tornadoweb')
-
... | Moved chdir_app to insided the test case. Refs: #<I> | py |
diff --git a/raiden/utils/nursery.py b/raiden/utils/nursery.py
index <HASH>..<HASH> 100644
--- a/raiden/utils/nursery.py
+++ b/raiden/utils/nursery.py
@@ -8,6 +8,7 @@ import gevent
import structlog
from gevent import Greenlet
from gevent.event import AsyncResult, Event
+from gevent.greenlet import SpawnedLink
from ... | bugfix: would block forever exception raised on callback | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -11,7 +11,7 @@ setup(name='fermipy',
url = "https://github.com/fermiPy/fermipy",
scripts = [],
data_files=[],
- install_requires=['numpy >= 1.8.2',
+ install_requires=['numpy >= 1.6.1',
... | Relax version requirement for numpy. | py |
diff --git a/sllurp/llrp.py b/sllurp/llrp.py
index <HASH>..<HASH> 100644
--- a/sllurp/llrp.py
+++ b/sllurp/llrp.py
@@ -733,6 +733,7 @@ class LLRPClient (LineReceiver):
rospec = self.getROSpec()['ROSpec']
d = defer.Deferred()
+ d.addCallback(self._setState_wrapper, LLRPClient.STATE_INVENTORYIN... | set state to INVENTORYING on successful resume() | py |
diff --git a/scout/api/views.py b/scout/api/views.py
index <HASH>..<HASH> 100644
--- a/scout/api/views.py
+++ b/scout/api/views.py
@@ -77,6 +77,8 @@ def cases(institute_id):
case_models = store.cases(collaborator=institute_id)
non_archived = (case for case in case_models if case.status != 'archived')
raw_model... | skip report binary in cases api, fix #<I> | py |
diff --git a/gns3server/modules/vmware/vmware_vm.py b/gns3server/modules/vmware/vmware_vm.py
index <HASH>..<HASH> 100644
--- a/gns3server/modules/vmware/vmware_vm.py
+++ b/gns3server/modules/vmware/vmware_vm.py
@@ -375,6 +375,8 @@ class VMwareVM(BaseVM):
vnet = "ethernet{}.vnet".format(adapter_number)
... | Fixes issue with packet capture on VMware VMs. Fixes #<I>. | py |
diff --git a/grimoire_elk/enriched/enrich.py b/grimoire_elk/enriched/enrich.py
index <HASH>..<HASH> 100644
--- a/grimoire_elk/enriched/enrich.py
+++ b/grimoire_elk/enriched/enrich.py
@@ -533,12 +533,22 @@ class Enrich(ElasticItems):
# get the data source name relying on the cfg section name, if null use the co... | [enrich] Allow to assign project to filtered repos This code allows to assign the project defined in the projects.json to the repos containing the `filter-raw` param. | py |
diff --git a/anndata/base.py b/anndata/base.py
index <HASH>..<HASH> 100644
--- a/anndata/base.py
+++ b/anndata/base.py
@@ -199,8 +199,9 @@ def df_to_records_fixed_width(df):
for k in df.columns:
names.append(k)
if is_string_dtype(df[k]):
- max_len_index = df[k].map(len).max()
- ... | Try fixing for pandas <I> | py |
diff --git a/sphinxcontrib/datatemplates/cli.py b/sphinxcontrib/datatemplates/cli.py
index <HASH>..<HASH> 100644
--- a/sphinxcontrib/datatemplates/cli.py
+++ b/sphinxcontrib/datatemplates/cli.py
@@ -1,6 +1,7 @@
from __future__ import print_function
import argparse
+import io
import json
import jinja2
@@ -35,8 +... | make test-template support python 2 and 3 Use the io module to open the data file to ensure we support decoding the data explicitly. | py |
diff --git a/devassistant/dapi/dapicli.py b/devassistant/dapi/dapicli.py
index <HASH>..<HASH> 100644
--- a/devassistant/dapi/dapicli.py
+++ b/devassistant/dapi/dapicli.py
@@ -325,7 +325,9 @@ def install_dap_from_path(path, update=False, first=True,
if dap_obj.meta['package_name'] in get_installed_daps():
... | Give the user more hints when package is already installed | py |
diff --git a/codalib/util.py b/codalib/util.py
index <HASH>..<HASH> 100644
--- a/codalib/util.py
+++ b/codalib/util.py
@@ -138,7 +138,8 @@ def xsDateTime_parse(xdt_str, as_utc=False):
if as_utc:
offset = parsed.utcoffset()
parsed = parsed.replace(tzinfo=None)
- parsed -= offset
+ if... | conditional for naive datetimes w/o offset in datetime parsing | py |
diff --git a/glue/LDBDServer.py b/glue/LDBDServer.py
index <HASH>..<HASH> 100644
--- a/glue/LDBDServer.py
+++ b/glue/LDBDServer.py
@@ -597,6 +597,7 @@ class ServerHandler(SocketServer.BaseRequestHandler):
for pid in known_proc.keys():
sql = "UPDATE process SET end_time = " + str(known_proc[pid][1])
... | don't let the end_time go backwards | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -6,7 +6,7 @@ def readme():
return f.read()
setup(name='pyTelegramBotAPI',
- version='1.4.1',
+ version='1.4.2',
description='Python Telegram bot api. ',
long_description=readme(),
aut... | Version Update. Change log: - Add disable_notification parameter. - Added setters for message/inline/chosen-inline handlers. | py |
diff --git a/safe/metadata.py b/safe/metadata.py
index <HASH>..<HASH> 100644
--- a/safe/metadata.py
+++ b/safe/metadata.py
@@ -169,11 +169,12 @@ unit_mmi = {
}
unit_mmi_depth = {
'id': 'mmi_depth',
- 'name': tr('MMI'),
+ 'name': tr('MMI Depth'),
'description': tr(
'The <b>Modified Mercalli In... | Update metadata for mmi depth. | py |
diff --git a/gitlab/client.py b/gitlab/client.py
index <HASH>..<HASH> 100644
--- a/gitlab/client.py
+++ b/gitlab/client.py
@@ -787,7 +787,7 @@ class Gitlab(object):
) from e
def http_delete(self, path: str, **kwargs: Any) -> requests.Response:
- """Make a PUT request to the Gitlab server.
+ ... | docs: fix typo in http_delete docstring | py |
diff --git a/src/rammbock/Client.py b/src/rammbock/Client.py
index <HASH>..<HASH> 100644
--- a/src/rammbock/Client.py
+++ b/src/rammbock/Client.py
@@ -13,6 +13,7 @@ class Client(object):
def establish_connection_to_server(self, host, port, ifalias):
ifname = str(self._interfaces[ifa... | 1 more test cases failing. almost there. | py |
diff --git a/mwxml/map/map.py b/mwxml/map/map.py
index <HASH>..<HASH> 100644
--- a/mwxml/map/map.py
+++ b/mwxml/map/map.py
@@ -100,7 +100,7 @@ def queue_files(paths):
q = Queue()
for path in paths:
if isinstance(path, str):
- q.put(files.normalize_path(path))
+ q.put(files.norma... | Solves normalization issue with map() | py |
diff --git a/tpot/gp_deap.py b/tpot/gp_deap.py
index <HASH>..<HASH> 100644
--- a/tpot/gp_deap.py
+++ b/tpot/gp_deap.py
@@ -82,7 +82,7 @@ def varOr(population, toolbox, lambda_, cxpb, mutpb):
if op_choice < cxpb: # Apply crossover
idxs = np.random.choice(crossover_eligible_individuals, size=2, rep... | renamed unused local variable to _ to indicate that it is unused. | py |
diff --git a/versioneer.py b/versioneer.py
index <HASH>..<HASH> 100644
--- a/versioneer.py
+++ b/versioneer.py
@@ -1141,12 +1141,11 @@ def do_vcs_install(manifest_in, versionfile_source, ipy):
files.append(versioneer_file)
present = False
try:
- f = open(".gitattributes", "r")
- for line in... | Removed a manual file handler pitfall (#<I>) * Removed a manual file handler pitfall * Update versioneer.py Removed trailing space | py |
diff --git a/tests/test_plotting.py b/tests/test_plotting.py
index <HASH>..<HASH> 100644
--- a/tests/test_plotting.py
+++ b/tests/test_plotting.py
@@ -4,9 +4,6 @@
import unittest
-import matplotlib
-matplotlib.use('Agg') # make sure we don't access the display
-
from eegtopo.topoplot import Topoplot
import num... | Removed matplotlib backend selection, because it did not work anyway | py |
diff --git a/zappa/zappa.py b/zappa/zappa.py
index <HASH>..<HASH> 100755
--- a/zappa/zappa.py
+++ b/zappa/zappa.py
@@ -196,7 +196,8 @@ class Zappa(object):
'HEAD',
'OPTIONS',
'PATCH',
- 'POST'
+ 'POST',
+ 'PUT'
]
parameter_depth = 8
integration_response_cod... | add put to htto_methods | py |
diff --git a/tests/utils/test_py27hash_fix.py b/tests/utils/test_py27hash_fix.py
index <HASH>..<HASH> 100644
--- a/tests/utils/test_py27hash_fix.py
+++ b/tests/utils/test_py27hash_fix.py
@@ -99,7 +99,7 @@ class TestPy27UniStr(TestCase):
def test_deepcopy(self):
a = Py27UniStr("abcdef")
- self.ass... | chore(test): Move assert_ to assertTrue (#<I>) | py |
diff --git a/acos_client/v30/slb/virtual_port.py b/acos_client/v30/slb/virtual_port.py
index <HASH>..<HASH> 100644
--- a/acos_client/v30/slb/virtual_port.py
+++ b/acos_client/v30/slb/virtual_port.py
@@ -115,8 +115,7 @@ class VirtualPort(base.BaseV30):
if autosnat:
params['port']['auto'] = int(au... | Correction for ipinip unset issue | py |
diff --git a/shinken/modules/nsca.py b/shinken/modules/nsca.py
index <HASH>..<HASH> 100644
--- a/shinken/modules/nsca.py
+++ b/shinken/modules/nsca.py
@@ -35,7 +35,7 @@ from shinken.basemodule import BaseModule
from shinken.external_command import ExternalCommand
properties = {
- 'daemons' : ['arbiter'],
+ 'd... | Add : make the nsca module available for the receiver... Ok, this one is still not here, but it will. | py |
diff --git a/treeherder/webapp/api/jobs.py b/treeherder/webapp/api/jobs.py
index <HASH>..<HASH> 100644
--- a/treeherder/webapp/api/jobs.py
+++ b/treeherder/webapp/api/jobs.py
@@ -64,6 +64,7 @@ class JobsViewSet(viewsets.ViewSet):
kwargs={"project": jm.project, "pk": job["id"]})
... | Bug <I> - For job information, don't return incorrect job log links (#<I>) In the /jobs/XXXX/ endpoint, we were just keying off the job id when trying to figure out which log information to return. This could result in additional (incorrect) data being returned for the case that there were jobs with the same projec... | py |
diff --git a/asn1crypto/x509.py b/asn1crypto/x509.py
index <HASH>..<HASH> 100644
--- a/asn1crypto/x509.py
+++ b/asn1crypto/x509.py
@@ -2223,9 +2223,7 @@ class Certificate(Sequence):
"""
if self._self_issued is None:
- self._self_issued = False
- if self.ca:
- sel... | Changed x<I>.Certificate.self_issued and .self_signed to return true even if the certificate is not a CA cert | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -16,7 +16,7 @@ wheel = ['wheel'] if needs_wheel else []
name = 'skeleton'
description = ''
-setup_params = dict(
+params = dict(
name=name,
use_scm_version=True,
author="Jason R. Coombs",
@@ -45,4 +45,4 @@ setup_para... | setup is already present in the module name. Just call them params. | py |
diff --git a/py/test/rsession/rsession.py b/py/test/rsession/rsession.py
index <HASH>..<HASH> 100644
--- a/py/test/rsession/rsession.py
+++ b/py/test/rsession/rsession.py
@@ -270,20 +270,13 @@ class LSession(AbstractSession):
if self.config.option.apigen:
from py.__.apigen.tracer.docstorage import... | [svn r<I>] Replaced try/except with a hasattr (makes that unrelated errors are no longer obfuscated). --HG-- branch : trunk | py |
diff --git a/openquake/hazardlib/contexts.py b/openquake/hazardlib/contexts.py
index <HASH>..<HASH> 100644
--- a/openquake/hazardlib/contexts.py
+++ b/openquake/hazardlib/contexts.py
@@ -310,9 +310,17 @@ class ContextMaker(object):
rup.width = .01 # 10 meters to avoid warnings in abrahamson_2014
... | Fixed make_gmv for magnitude outside of supported range | py |
diff --git a/blockstack_client/backend/registrar.py b/blockstack_client/backend/registrar.py
index <HASH>..<HASH> 100644
--- a/blockstack_client/backend/registrar.py
+++ b/blockstack_client/backend/registrar.py
@@ -429,9 +429,9 @@ class RegistrarWorker(threading.Thread):
log.info("Replicate profile data fo... | include name in profile cache, so we re-send the same profile for different names (but not the same name) | py |
diff --git a/jsoneditor/__init__.py b/jsoneditor/__init__.py
index <HASH>..<HASH> 100644
--- a/jsoneditor/__init__.py
+++ b/jsoneditor/__init__.py
@@ -1 +1 @@
-__version__ = "0.1.8b3"
+__version__ = "0.1.8b4" | Compatibility with rpkilby/jsonfield version pump | py |
diff --git a/event.py b/event.py
index <HASH>..<HASH> 100644
--- a/event.py
+++ b/event.py
@@ -56,3 +56,34 @@ class Subscriber(object):
def on_event(self, event, **data):
func = getattr(self, 'on_%s' % event, None)
if func: func(**data)
+
+
+class Collector(object):
+ """ Collects events from ... | Add Collector and Distributor classes for extended event messaging | py |
diff --git a/angr/procedures/linux_kernel/arm_user_helpers.py b/angr/procedures/linux_kernel/arm_user_helpers.py
index <HASH>..<HASH> 100644
--- a/angr/procedures/linux_kernel/arm_user_helpers.py
+++ b/angr/procedures/linux_kernel/arm_user_helpers.py
@@ -35,6 +35,11 @@ class _kuser_cmpxchg(angr.SimProcedure):
... | update carry flags in cmpxchg since it's also part of the output | py |
diff --git a/carrot/messaging.py b/carrot/messaging.py
index <HASH>..<HASH> 100644
--- a/carrot/messaging.py
+++ b/carrot/messaging.py
@@ -118,11 +118,13 @@ class Consumer(object):
def discard_all(self):
"""Discard all waiting messages.
- *WARNING*: All messages will be ignored and not pr... | Oops. Forgot to actually acknowledge the messages in discard_all() | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -5,7 +5,7 @@ setup(
name='skyfield',
version=skyfield.__version__,
description=skyfield.__doc__.split('\n', 1)[0],
- long_description=open('README.rst').read(),
+ long_description=open('README.rst', 'rb').... | Fix #<I> by explicitly decoding "README.rst" file I cannot rely on everyone having UTF-8 as their default encoding if they want to install Skyfield! | py |
diff --git a/tests/test_plugin.py b/tests/test_plugin.py
index <HASH>..<HASH> 100644
--- a/tests/test_plugin.py
+++ b/tests/test_plugin.py
@@ -25,6 +25,12 @@ class Plugin:
self.called_postparsing = 0
self.called_precmd = 0
+ ###
+ #
+ # preloop and postloop hooks
+ # which share the same... | add comment headers to better organize code | py |
diff --git a/runtests.py b/runtests.py
index <HASH>..<HASH> 100755
--- a/runtests.py
+++ b/runtests.py
@@ -98,7 +98,7 @@ signal.signal(signal.SIGINT, interrupt_handler)
def retry_rmtree(top):
# Keep trying to remove it; on Windows it may take a few moments
# for any outstanding locks/handles to be released
-... | runtests.py: use range for Python 3 compatibility It's a small range, so Python 2's inefficient implementation is not a problem. | py |
diff --git a/cherrypy/_cpdefaults.py b/cherrypy/_cpdefaults.py
index <HASH>..<HASH> 100644
--- a/cherrypy/_cpdefaults.py
+++ b/cherrypy/_cpdefaults.py
@@ -31,7 +31,8 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
A module containing a few utility classes/functions used by CherryPy
"""
-impo... | change from pickle to cPickle | py |
diff --git a/py/testdir_multi_jvm/test_1ktrees.py b/py/testdir_multi_jvm/test_1ktrees.py
index <HASH>..<HASH> 100644
--- a/py/testdir_multi_jvm/test_1ktrees.py
+++ b/py/testdir_multi_jvm/test_1ktrees.py
@@ -1,6 +1,6 @@
import unittest, time, sys
sys.path.extend(['.','..','py'])
-import h2o, h2o_cmd as cmd, h2o_hosts
... | refer to h2o_cmd correctly | py |
diff --git a/nosedjango/__init__.py b/nosedjango/__init__.py
index <HASH>..<HASH> 100644
--- a/nosedjango/__init__.py
+++ b/nosedjango/__init__.py
@@ -5,7 +5,7 @@ or even write your own plugin that hooks in to the NoseDjango plugin system (a
plugin with a plugin system!)
"""
-VERSION = (1, 0, 1, '')
+VERSION = (1, ... | Bumped to version <I> | py |
diff --git a/chess/exceptions.py b/chess/exceptions.py
index <HASH>..<HASH> 100644
--- a/chess/exceptions.py
+++ b/chess/exceptions.py
@@ -1,2 +1,3 @@
class FenError(ValueError):
+ """Thrown when a FEN string is invalid."""
pass | Short docstring for FenError. | py |
diff --git a/pynnotator/settings.py b/pynnotator/settings.py
index <HASH>..<HASH> 100644
--- a/pynnotator/settings.py
+++ b/pynnotator/settings.py
@@ -42,7 +42,7 @@ vcftools_dir_perl = "%s/vcftools/vcftools-%s/src/perl" % (libs_dir, vcftools_ver
#snpeff
snpeff_database = 'GRCh37.75' # this is the last build from GRCh... | update snpeff to snpEff_v4_3o" | py |
diff --git a/ford/graphs.py b/ford/graphs.py
index <HASH>..<HASH> 100644
--- a/ford/graphs.py
+++ b/ford/graphs.py
@@ -439,14 +439,13 @@ class FortranGraph(object):
eval(r.meta['graph_maxdepth']))
self.max_nodes = max(self.max_nodes,
... | Activate graph warnings if any object in the root list has the warn setting true. This should also avoid problems with empty lists. | py |
diff --git a/salt/modules/mod_random.py b/salt/modules/mod_random.py
index <HASH>..<HASH> 100644
--- a/salt/modules/mod_random.py
+++ b/salt/modules/mod_random.py
@@ -147,26 +147,26 @@ def rand_int(start=1, end=10):
def seed(range=10, hash=None):
- '''
- Returns a random number within a range. Optional has... | fix pylint warnings about indentation | py |
diff --git a/surprise/prediction_algorithms/predictions.py b/surprise/prediction_algorithms/predictions.py
index <HASH>..<HASH> 100644
--- a/surprise/prediction_algorithms/predictions.py
+++ b/surprise/prediction_algorithms/predictions.py
@@ -27,8 +27,8 @@ class Prediction(namedtuple('Prediction',
It's wrapped in ... | user and item ids are actually raw ids in a Prediction object | py |
diff --git a/src/wa_kat/templates/static/js/Lib/site-packages/components/errorbox.py b/src/wa_kat/templates/static/js/Lib/site-packages/components/errorbox.py
index <HASH>..<HASH> 100755
--- a/src/wa_kat/templates/static/js/Lib/site-packages/components/errorbox.py
+++ b/src/wa_kat/templates/static/js/Lib/site-packages/... | #<I>: Added docstrings for errorbox.py. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -12,12 +12,12 @@ install_requires = [
'pytest',
'pytest-mpl',
'IPython',
- 'subdivide @ git+ssh://git@github.com/davenquinn/subdivide.git'
+ 'subdivide>=1'
]
setup(
name='Attitude',
- versi... | Bumped version to <I> | py |
diff --git a/tenant_schemas/test/client.py b/tenant_schemas/test/client.py
index <HASH>..<HASH> 100644
--- a/tenant_schemas/test/client.py
+++ b/tenant_schemas/test/client.py
@@ -12,9 +12,14 @@ class TenantRequestFactory(RequestFactory):
if 'HTTP_HOST' not in extra:
extra['HTTP_HOST'] = self.tenan... | Override of post() in request factory. Methods now return requests. get() and post() both need to set the HTTP host in **extra to be routed through the tenant. The request factory was processing the requests instead of returning them for use in testing. | py |
diff --git a/multiqc/modules/qualimap/QM_BamQC.py b/multiqc/modules/qualimap/QM_BamQC.py
index <HASH>..<HASH> 100644
--- a/multiqc/modules/qualimap/QM_BamQC.py
+++ b/multiqc/modules/qualimap/QM_BamQC.py
@@ -350,7 +350,7 @@ def general_stats_headers (self):
'format': '{:,.0f}'
}
self.general_stats_hea... | Qualimap BamQC: abbreviate "Insert size" to "Ins. size" | py |
diff --git a/phonopy/phonon/tetrahedron_mesh.py b/phonopy/phonon/tetrahedron_mesh.py
index <HASH>..<HASH> 100644
--- a/phonopy/phonon/tetrahedron_mesh.py
+++ b/phonopy/phonon/tetrahedron_mesh.py
@@ -223,7 +223,7 @@ class TetrahedronMesh(object):
else:
self._frequency_points = np.array(frequency_po... | Minor update to handle number of bands is not equal to number of atoms * 3 | py |
diff --git a/abl/vpath/base.py b/abl/vpath/base.py
index <HASH>..<HASH> 100644
--- a/abl/vpath/base.py
+++ b/abl/vpath/base.py
@@ -1,12 +1,13 @@
from __future__ import with_statement
-import os
-import time
-import threading
+
import atexit
import fnmatch
-
+import os
from Queue import Queue
+import shutil
+impor... | added "import shutil" again as they are used in the default copy operation. (shutil.copyfileobj works on file like objects) | py |
diff --git a/test/fuzz_fusil_2/runner.py b/test/fuzz_fusil_2/runner.py
index <HASH>..<HASH> 100644
--- a/test/fuzz_fusil_2/runner.py
+++ b/test/fuzz_fusil_2/runner.py
@@ -24,7 +24,7 @@ class Fuzzer(Application):
port = 8848
seed = random.randint(0, 60000)
- timeout = 10 * 60
+ timeout ... | fuzz_fusil_2: Increase timeout. Use objgraph and lsof debugs. [ci skip] | py |
diff --git a/eav/facets.py b/eav/facets.py
index <HASH>..<HASH> 100644
--- a/eav/facets.py
+++ b/eav/facets.py
@@ -68,13 +68,12 @@ class TextFacet(Facet):
@property
def _choices(self):
if self.schema:
- attrs = self.schema.attrs.all()
+ if self.schema.datatype == self.schema.TYP... | Display correct titles for m2m schema choices in facets. | py |
diff --git a/colorise/__init__.py b/colorise/__init__.py
index <HASH>..<HASH> 100644
--- a/colorise/__init__.py
+++ b/colorise/__init__.py
@@ -114,9 +114,10 @@ def cprint(string, fg=None, bg=None, end='\n', target=sys.stdout):
"""
_color_manager.set_color(fg, bg)
- target.write(string + end)
- target.... | Do not let colors flow into the next line | py |
diff --git a/salt/states/module.py b/salt/states/module.py
index <HASH>..<HASH> 100644
--- a/salt/states/module.py
+++ b/salt/states/module.py
@@ -197,8 +197,24 @@ def xrun(**kwargs):
ret['comment'] = "Module function '{0}' is set to execute".format(func)
ret['result'] = True
- for func i... | Batch-call remote functions and collect result | py |
diff --git a/librosa/util.py b/librosa/util.py
index <HASH>..<HASH> 100644
--- a/librosa/util.py
+++ b/librosa/util.py
@@ -5,7 +5,9 @@ import numpy as np
import os
import glob
-def frame(y, frame_length=2048, hop_length=64):
+from numpy.lib.stride_tricks import as_strided
+
+def frame(y, frame_length=2048, hop_leng... | numpy.lib.stride_tricks to the rescue, resolves #<I> | py |
diff --git a/planet/clients/data.py b/planet/clients/data.py
index <HASH>..<HASH> 100644
--- a/planet/clients/data.py
+++ b/planet/clients/data.py
@@ -70,9 +70,6 @@ class DataClient():
def _searches_url(self):
return f'{self._base_url}{SEARCHES_PATH}'
- def _stats_url(self):
- return f'{self._... | refactor small fcn | py |
diff --git a/tests/scripts/sql_coverage_test.py b/tests/scripts/sql_coverage_test.py
index <HASH>..<HASH> 100755
--- a/tests/scripts/sql_coverage_test.py
+++ b/tests/scripts/sql_coverage_test.py
@@ -228,17 +228,17 @@ def get_max_mismatches(comparison_database, suite_name):
# and basic-compoundex-joins "extende... | sql_coverage_test.py: in get_max_mismatches, increased the expected failures for several test suites, based on the larger number of (valid) queries now being run, due to adding the ones with IS NOT DISTINCT FROM. | py |
diff --git a/objectrocket/instances/__init__.py b/objectrocket/instances/__init__.py
index <HASH>..<HASH> 100644
--- a/objectrocket/instances/__init__.py
+++ b/objectrocket/instances/__init__.py
@@ -14,7 +14,7 @@ from objectrocket.instances.redis import RedisInstance
logger = logging.getLogger(__name__)
-class Ins... | Adjusting MRO per @TheDodd comments. | py |
diff --git a/charmhelpers/contrib/openstack/utils.py b/charmhelpers/contrib/openstack/utils.py
index <HASH>..<HASH> 100644
--- a/charmhelpers/contrib/openstack/utils.py
+++ b/charmhelpers/contrib/openstack/utils.py
@@ -492,3 +492,16 @@ def sync_db_with_multi_ipv6_addresses(database, database_user,
for rid in rel... | Add os_requires_version function which is a decorator for hook to specify minimum supported release | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -16,7 +16,7 @@ considered "group-indexing operations". The most prominent tool is `aggregate`.
`aggregate` takes an array of values, and an array giving the group number for each of those
values. It then returns the sum... | Fixed backticks for pypi.org parsing | py |
diff --git a/kconfiglib.py b/kconfiglib.py
index <HASH>..<HASH> 100644
--- a/kconfiglib.py
+++ b/kconfiglib.py
@@ -1060,16 +1060,15 @@ class Config(object):
# Propagate dependencies to prompts
if new_prompt is not None:
- # Propagate 'visible if' dependencies from enclosing me... | Simplify dependency propagation for prompts Old version was a bit roundabout. | py |
diff --git a/thefuck/shells.py b/thefuck/shells.py
index <HASH>..<HASH> 100644
--- a/thefuck/shells.py
+++ b/thefuck/shells.py
@@ -152,9 +152,9 @@ class Fish(Generic):
def app_alias(self, fuck):
return ('function {0} -d "Correct your previous console command"\n'
' set -l exit_code $statu... | #N/A Set TF_ALIAS as an environment variable For more info, check: <URL> | py |
diff --git a/TheCannon/dataset.py b/TheCannon/dataset.py
index <HASH>..<HASH> 100644
--- a/TheCannon/dataset.py
+++ b/TheCannon/dataset.py
@@ -45,7 +45,6 @@ class Dataset(object):
self.tr_flux = tr_flux
self.tr_ivar = tr_ivar
self.tr_label = tr_label
- self.tr_delta = tr_delta
... | get rid of tr_delta | py |
diff --git a/bika/lims/exportimport/instruments/genexpert/genexpert.py b/bika/lims/exportimport/instruments/genexpert/genexpert.py
index <HASH>..<HASH> 100644
--- a/bika/lims/exportimport/instruments/genexpert/genexpert.py
+++ b/bika/lims/exportimport/instruments/genexpert/genexpert.py
@@ -127,9 +127,8 @@ class GeneXpe... | Added function to check header lines properly. | py |
diff --git a/tests/unit/modules/test_cmdmod.py b/tests/unit/modules/test_cmdmod.py
index <HASH>..<HASH> 100644
--- a/tests/unit/modules/test_cmdmod.py
+++ b/tests/unit/modules/test_cmdmod.py
@@ -324,7 +324,8 @@ class CMDMODTestCase(TestCase, LoaderModuleMockMixin):
self.assertEqual(environment, e... | skip getpwnam check on mac in unit test_cmdmod | py |
diff --git a/vm.py b/vm.py
index <HASH>..<HASH> 100644
--- a/vm.py
+++ b/vm.py
@@ -440,7 +440,7 @@ def constant_fold(code, silent=True):
# handle that very well. So just leave it for now. (NOTE: If
# we had an "error" instruction, we could actually transform
# the exp... | Also checks for division by zero in modulus optimization | py |
diff --git a/test/test_launch_daemons.py b/test/test_launch_daemons.py
index <HASH>..<HASH> 100644
--- a/test/test_launch_daemons.py
+++ b/test/test_launch_daemons.py
@@ -166,7 +166,7 @@ class fullTest(AlignakTest):
print("%s running (pid=%d)" % (name, self.procs[daemon].pid))
# Let the daemons ... | Increase daemons launch wait period ... Travis seems quite loaded with this test. | py |
diff --git a/minio/minio.py b/minio/minio.py
index <HASH>..<HASH> 100644
--- a/minio/minio.py
+++ b/minio/minio.py
@@ -128,7 +128,7 @@ class Minio:
region = get_region(self._location)
content = ''
- if region is not 'us-east-1':
+ if region != 'us-east-1':
content = bucket... | Make bucket now properly tests for region and specifies location constraint only on regions other than us-east-1. Fixes #<I> | py |
diff --git a/scrapydo/api.py b/scrapydo/api.py
index <HASH>..<HASH> 100644
--- a/scrapydo/api.py
+++ b/scrapydo/api.py
@@ -187,7 +187,7 @@ def _run_spider_in_reactor(spider_cls, capture_items=True, return_crawler=False,
Returns
-------
out : crochet.EventualResult
- If ``return_items`` is ``True``... | Fixed wrong variable name in docstring. | py |
diff --git a/run.py b/run.py
index <HASH>..<HASH> 100644
--- a/run.py
+++ b/run.py
@@ -2,4 +2,4 @@
from annotationengine import create_app
app = create_app()
if __name__ == "__main__":
- app.run(host='0.0.0.0', port=7777, debug=True)
+ app.run(host='0.0.0.0', port=4000, debug=True) | changed port to <I> only <I>, <I> are available to GCP | py |
diff --git a/pandas/tests/test_flags.py b/pandas/tests/test_flags.py
index <HASH>..<HASH> 100644
--- a/pandas/tests/test_flags.py
+++ b/pandas/tests/test_flags.py
@@ -41,8 +41,8 @@ class TestFlags:
flags["allows_duplicate_labels"] = False
assert flags["allows_duplicate_labels"] is False
- wit... | TST: insert 'match' to bare pytest raises in pandas/tests/test_flags.py (#<I>) | py |
diff --git a/holoviews/core/dimension.py b/holoviews/core/dimension.py
index <HASH>..<HASH> 100644
--- a/holoviews/core/dimension.py
+++ b/holoviews/core/dimension.py
@@ -108,6 +108,9 @@ class Dimension(param.Parameterized):
"%s" % self.name)
return value
+ def __repr__(self)... | Improved repr of Dimension using script_repr | py |
diff --git a/openquake/commonlib/views.py b/openquake/commonlib/views.py
index <HASH>..<HASH> 100644
--- a/openquake/commonlib/views.py
+++ b/openquake/commonlib/views.py
@@ -79,6 +79,8 @@ def form(value):
return value.decode('utf-8')
elif isinstance(value, unicode):
return value
+ elif isinst... | Fixed a bug with h5py <I> | py |
diff --git a/tools/c7n_azure/tests_azure/tests_resources/test_event_subscriptions.py b/tools/c7n_azure/tests_azure/tests_resources/test_event_subscriptions.py
index <HASH>..<HASH> 100644
--- a/tools/c7n_azure/tests_azure/tests_resources/test_event_subscriptions.py
+++ b/tools/c7n_azure/tests_azure/tests_resources/test_... | releng - azure - fix event sub functional test race condition (#<I>) | py |
diff --git a/tests/test_orbital.py b/tests/test_orbital.py
index <HASH>..<HASH> 100644
--- a/tests/test_orbital.py
+++ b/tests/test_orbital.py
@@ -67,6 +67,10 @@ class Test(unittest.TestCase):
on2 = sat.get_orbit_number(t2)
self.assertEqual(on1, 6973)
self.assertEqual(on2, 6974)
+ pos1... | updated equator test with position check | py |
diff --git a/tests/test_torch.py b/tests/test_torch.py
index <HASH>..<HASH> 100644
--- a/tests/test_torch.py
+++ b/tests/test_torch.py
@@ -440,8 +440,8 @@ def test_sequence_net():
net = Sequence()
graph = wandb.wandb_torch.TorchGraph.hook_torch(net)
output = net.forward(dummy_torch_tensor(
- (97, ... | Shorten PyTorch LSTM test because it's causing timeouts. | py |
diff --git a/suds/xsd/sxbasic.py b/suds/xsd/sxbasic.py
index <HASH>..<HASH> 100644
--- a/suds/xsd/sxbasic.py
+++ b/suds/xsd/sxbasic.py
@@ -569,7 +569,7 @@ class Import(SchemaObject):
if self.location is None:
log.debug("imported schema (%s) not-found", self.ns[1])
else:
- ... | mark XSD schema Include & Import download() methods as private | py |
diff --git a/src/feat/web/webserver.py b/src/feat/web/webserver.py
index <HASH>..<HASH> 100644
--- a/src/feat/web/webserver.py
+++ b/src/feat/web/webserver.py
@@ -1911,7 +1911,9 @@ class Response(log.Logger):
return default
def _set_header(self, key, value):
- self._request._ref.setHeader(key, se... | Fix problem with webserver using wrong header encoding for some requests. | py |
diff --git a/salt/cli/batch.py b/salt/cli/batch.py
index <HASH>..<HASH> 100644
--- a/salt/cli/batch.py
+++ b/salt/cli/batch.py
@@ -2,6 +2,7 @@
Execute batch runs
'''
# Import Python libs
+import math
import time
import copy
@@ -58,9 +59,11 @@ class Batch(object):
snum = len(self.minions)
try:
... | Take the ceilling of batch size percentages before converting to int, #<I> | py |
diff --git a/redongo/utils/utils.py b/redongo/utils/utils.py
index <HASH>..<HASH> 100644
--- a/redongo/utils/utils.py
+++ b/redongo/utils/utils.py
@@ -1,4 +1,4 @@
-from redongo import general_exceptions
+import general_exceptions
try:
import cPickle as pickle
except: | Fixed bug with a class import causing non valid (with apps not configured) elements to reboot redongo server | py |
diff --git a/gnupg.py b/gnupg.py
index <HASH>..<HASH> 100644
--- a/gnupg.py
+++ b/gnupg.py
@@ -416,7 +416,7 @@ def _is_allowed(input):
'--verify',
'--version',
'--status-fd', '--no-tty', '--passphrase-fd',
- '--homedir', '--no-default-keyring', '--keyring',
+ '--homedir', '... | Add '--secret-keyring' as an allowed option. | py |
diff --git a/ziggurat_foundations/ext/pyramid/sign_in.py b/ziggurat_foundations/ext/pyramid/sign_in.py
index <HASH>..<HASH> 100644
--- a/ziggurat_foundations/ext/pyramid/sign_in.py
+++ b/ziggurat_foundations/ext/pyramid/sign_in.py
@@ -85,7 +85,7 @@ class ZigguratSignInProvider(object):
user = self.UserModel.by... | read password key from config, Fix #3 | py |
diff --git a/user_messages/urls.py b/user_messages/urls.py
index <HASH>..<HASH> 100644
--- a/user_messages/urls.py
+++ b/user_messages/urls.py
@@ -1,4 +1,4 @@
-from django.conf.urls.defaults import patterns, url
+from django.conf.urls import patterns, url
urlpatterns = patterns( | fixed urls.py for Django <I> | py |
diff --git a/salt/auth/__init__.py b/salt/auth/__init__.py
index <HASH>..<HASH> 100644
--- a/salt/auth/__init__.py
+++ b/salt/auth/__init__.py
@@ -183,16 +183,12 @@ class Authorize(object):
else:
self.loadauth = loadauth
+ @property
def auth_data(self):
'''
Gather and c... | Remove getter-- since this is just a property | py |
diff --git a/mackup.py b/mackup.py
index <HASH>..<HASH> 100755
--- a/mackup.py
+++ b/mackup.py
@@ -621,7 +621,9 @@ def main():
app.uninstall()
# Delete the Mackup folder in Dropbox
- delete(mackup.mackup_folder)
+ # Don't delete this as there might be other Macs tha... | Don't delete this as there might be other Macs that aren't uninstalled yet | py |
diff --git a/galpy/actionAngle_src/actionAngleStaeckelGrid.py b/galpy/actionAngle_src/actionAngleStaeckelGrid.py
index <HASH>..<HASH> 100644
--- a/galpy/actionAngle_src/actionAngleStaeckelGrid.py
+++ b/galpy/actionAngle_src/actionAngleStaeckelGrid.py
@@ -241,6 +241,15 @@ class actionAngleStaeckelGrid():
... | better off-the-grid evaluations for staeckel potential | py |
diff --git a/mythril/analysis/modules/dependence_on_predictable_vars.py b/mythril/analysis/modules/dependence_on_predictable_vars.py
index <HASH>..<HASH> 100644
--- a/mythril/analysis/modules/dependence_on_predictable_vars.py
+++ b/mythril/analysis/modules/dependence_on_predictable_vars.py
@@ -20,6 +20,7 @@ final_ops =... | Of course, black has to be done | py |
diff --git a/ncluster/aws_util.py b/ncluster/aws_util.py
index <HASH>..<HASH> 100644
--- a/ncluster/aws_util.py
+++ b/ncluster/aws_util.py
@@ -561,18 +561,25 @@ def get_ip(instance):
def get_instance_property(instance, property_name):
- """Retrieves property of an instance, with retries"""
+ """Retrieves propert... | increase robustness in instance.public_ip | py |
diff --git a/consoleprinter/__init__.py b/consoleprinter/__init__.py
index <HASH>..<HASH> 100644
--- a/consoleprinter/__init__.py
+++ b/consoleprinter/__init__.py
@@ -2148,7 +2148,7 @@ def query_yes_no(*args, force=False, default=True, command=None):
while True:
if command is not None:
- ques... | Desktop Wednesday <I> March <I> (week:<I> day:<I>), <I>:<I>:<I> | py |
diff --git a/twine/cli.py b/twine/cli.py
index <HASH>..<HASH> 100644
--- a/twine/cli.py
+++ b/twine/cli.py
@@ -25,7 +25,7 @@ import twine
def _registered_commands(group='twine.registered_commands'):
- return list(pkg_resources.iter_entry_points(group=group))
+ return {c.name: c for c in pkg_resources.iter_en... | Removed unused verification of supported commands since a choice option already does it | py |
diff --git a/salt/states/file.py b/salt/states/file.py
index <HASH>..<HASH> 100644
--- a/salt/states/file.py
+++ b/salt/states/file.py
@@ -2205,7 +2205,8 @@ def replace(name,
.. versionadded:: 0.17.0
- Params are identical to :py:func:`~salt.modules.file.replace`.
+ Params are identical to the remote exe... | Clarify a couple links in the docs | py |
diff --git a/djclick/adapter.py b/djclick/adapter.py
index <HASH>..<HASH> 100644
--- a/djclick/adapter.py
+++ b/djclick/adapter.py
@@ -53,7 +53,8 @@ class DjangoCommandMixin(object):
# Honor the --traceback flag
if ctx.traceback:
raise
- click.echo('{}: {}'.format(e... | adapter: Style CommandErrors like Django | py |
diff --git a/guake/utils.py b/guake/utils.py
index <HASH>..<HASH> 100644
--- a/guake/utils.py
+++ b/guake/utils.py
@@ -274,19 +274,11 @@ class RectCalculator():
dest_screen = settings.general.get_int('display-n')
if use_mouse:
- """
- TODO this is ported from widget.get_pointer... | Revert use_mouse code to previous behavior | py |
diff --git a/isso/dispatch.py b/isso/dispatch.py
index <HASH>..<HASH> 100644
--- a/isso/dispatch.py
+++ b/isso/dispatch.py
@@ -28,7 +28,8 @@ class Dispatcher(DispatcherMiddleware):
self.isso = {}
- for i, conf in enumerate(map(config.load(Dispatcher.default, conf))):
+ for i, path in enumerat... | fix undefined variable usage and enumeration logic | py |
diff --git a/src/Yowsup/connectionmanager.py b/src/Yowsup/connectionmanager.py
index <HASH>..<HASH> 100644
--- a/src/Yowsup/connectionmanager.py
+++ b/src/Yowsup/connectionmanager.py
@@ -682,7 +682,7 @@ class ReaderThread(threading.Thread):
#self.socket = connection
self.terminateRequested = False
self.disconn... | Set @aguiraf new timeouts to prevent whatsapp disconnections | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.