diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/djstripe/models/webhooks.py b/djstripe/models/webhooks.py
index <HASH>..<HASH> 100644
--- a/djstripe/models/webhooks.py
+++ b/djstripe/models/webhooks.py
@@ -62,6 +62,15 @@ class WebhookEndpoint(StripeModel):
def __str__(self):
return self.url or str(self.djstripe_uuid)
+ def _attach_obj... | Use _attach_objects_hook to set the correct djstripe_uuid obj.djstripe_uuid != obj.metadata["djstripe_uuid"] because it was not being set before saving at which point the default uuid.uuid4() was being invoked to generate and save a new value. | py |
diff --git a/nfc/tag/tt1_broadcom.py b/nfc/tag/tt1_broadcom.py
index <HASH>..<HASH> 100644
--- a/nfc/tag/tt1_broadcom.py
+++ b/nfc/tag/tt1_broadcom.py
@@ -49,7 +49,7 @@ class Topaz(tt1.Type1Tag):
unless the wipe argument is set.
"""
- return super(Type1Tag, self).format(version, wipe)
+ ... | Type1Tag is imported under tt1 in tt1_broadcom | py |
diff --git a/cosmic_ray/cli.py b/cosmic_ray/cli.py
index <HASH>..<HASH> 100644
--- a/cosmic_ray/cli.py
+++ b/cosmic_ray/cli.py
@@ -11,6 +11,7 @@ import pprint
import subprocess
import sys
+import docopt
import docopt_subcommands as dsc
import cosmic_ray.commands
@@ -291,12 +292,16 @@ def main(argv=None):
... | Using exit code `os.EX_USAGE` when there is a usage error. | py |
diff --git a/testing/python/collect.py b/testing/python/collect.py
index <HASH>..<HASH> 100644
--- a/testing/python/collect.py
+++ b/testing/python/collect.py
@@ -1146,7 +1146,7 @@ def test_unorderable_types(testdir):
def test_collect_functools_partial(testdir):
"""
Test that collection of functools.partial ... | fix grammar in test_collect_functools_partial docstr | py |
diff --git a/pysat/instruments/demeter_iap.py b/pysat/instruments/demeter_iap.py
index <HASH>..<HASH> 100644
--- a/pysat/instruments/demeter_iap.py
+++ b/pysat/instruments/demeter_iap.py
@@ -270,8 +270,8 @@ def clean(inst):
# Need Level 0 files to select data with J >= 1 nA
print("WARN... | BUG: DEMETER clean Moved final selection of indices outside of for loop to avoid unnecessary calls. | py |
diff --git a/fusesoc/build/__init__.py b/fusesoc/build/__init__.py
index <HASH>..<HASH> 100644
--- a/fusesoc/build/__init__.py
+++ b/fusesoc/build/__init__.py
@@ -7,4 +7,4 @@ def BackendFactory(system):
elif system.backend_name == 'ise':
return Ise(system)
else:
- raise Exception("Backend not ... | Improve error handling for unknown backends | py |
diff --git a/spikewidgets/widgets/unitwaveformswidget/unitwaveformswidget.py b/spikewidgets/widgets/unitwaveformswidget/unitwaveformswidget.py
index <HASH>..<HASH> 100644
--- a/spikewidgets/widgets/unitwaveformswidget/unitwaveformswidget.py
+++ b/spikewidgets/widgets/unitwaveformswidget/unitwaveformswidget.py
@@ -182,7... | If max_channels is None use all channels | py |
diff --git a/backward/decorators.py b/backward/decorators.py
index <HASH>..<HASH> 100644
--- a/backward/decorators.py
+++ b/backward/decorators.py
@@ -21,7 +21,7 @@ def user_passes_test(test_func, login_url=None, message=None):
return view_func(request, *args, **kwargs)
if message is not... | Add fail_silently to messages | py |
diff --git a/pandas/io/parsers.py b/pandas/io/parsers.py
index <HASH>..<HASH> 100755
--- a/pandas/io/parsers.py
+++ b/pandas/io/parsers.py
@@ -86,7 +86,7 @@ names : array-like
should explicitly pass header=None
prefix : string, default None
Prefix to add to column numbers when no header, e.g 'X' for X0, X1, ... | Add str as an option for na_values in docstring | py |
diff --git a/rdt/hyper_transformer.py b/rdt/hyper_transformer.py
index <HASH>..<HASH> 100644
--- a/rdt/hyper_transformer.py
+++ b/rdt/hyper_transformer.py
@@ -180,26 +180,3 @@ class HyperTransformer(object):
out = pd.concat(out_list, axis=1)
return out
-
- def impute_table(self, table):
-... | Remove unused methods on HyperTransformer | py |
diff --git a/modin/engines/base/frame/data.py b/modin/engines/base/frame/data.py
index <HASH>..<HASH> 100644
--- a/modin/engines/base/frame/data.py
+++ b/modin/engines/base/frame/data.py
@@ -1279,7 +1279,7 @@ class BasePandasFrame(object):
self.columns,
new_row_lengths,
self._colu... | Remove dtype requirement from `head`, `tail`, etc. (#<I>) * Resolves #<I> * Only passes `dtypes` through if they have been computed * Several operations that do not have a `dtypes` inferred or passed through will be positively affected by this. | py |
diff --git a/ldapcherry/__init__.py b/ldapcherry/__init__.py
index <HASH>..<HASH> 100644
--- a/ldapcherry/__init__.py
+++ b/ldapcherry/__init__.py
@@ -448,6 +448,12 @@ class LdapCherry(object):
@cherrypy.expose
def searchuser(self):
""" search user page """
+ self._check_auth(must_admin=False)... | adding a search page dedicated for admin | py |
diff --git a/lib/drizzlepac/updatehdr.py b/lib/drizzlepac/updatehdr.py
index <HASH>..<HASH> 100644
--- a/lib/drizzlepac/updatehdr.py
+++ b/lib/drizzlepac/updatehdr.py
@@ -426,7 +426,7 @@ def create_unique_wcsname(fimg, extnum ,wcsname):
the name with a simple version ID using wcsname_NNN format.
Parameters
... | Update the DrizzlePac Sphinx docs to correct out-of-date information and point to the DrizzlePac homepage. This also corrects errors in the generation of the Sphinx docs. git-svn-id: <URL> | py |
diff --git a/examples/apc2015/forward.py b/examples/apc2015/forward.py
index <HASH>..<HASH> 100755
--- a/examples/apc2015/forward.py
+++ b/examples/apc2015/forward.py
@@ -24,10 +24,10 @@ import apc2015
class Forwarding(object):
- def __init__(self, gpu, chainermodel=None):
+ def __init__(self, gpu, target_na... | Pass target_names to forwarding | py |
diff --git a/scout/core/views.py b/scout/core/views.py
index <HASH>..<HASH> 100644
--- a/scout/core/views.py
+++ b/scout/core/views.py
@@ -190,6 +190,16 @@ def case_phenotype(institute_id, case_id, phenotype_id=None):
return redirect(case_url)
+def read_lines(iterable):
+ """Handle both CR line endings and norm... | handle CR line endings in uploaded gene lists | py |
diff --git a/scapy/arch/pcapdnet.py b/scapy/arch/pcapdnet.py
index <HASH>..<HASH> 100644
--- a/scapy/arch/pcapdnet.py
+++ b/scapy/arch/pcapdnet.py
@@ -52,6 +52,9 @@ if conf.use_pcap:
return getattr(self.pcap, attr)
def __del__(self):
warning("__del__: don't kno... | Converting explicitly the instance returned by pcap_next into a str, since pcapy returns a buffer instance instead | py |
diff --git a/broqer/core.py b/broqer/core.py
index <HASH>..<HASH> 100644
--- a/broqer/core.py
+++ b/broqer/core.py
@@ -81,6 +81,10 @@ class Publisher():
from broqer.op import ToFuture # lazy import due circular dependency
return ToFuture(self).__await__()
+ def to_future(self, timeout=None):
+ ... | added .to_future(timeout) method to Publisher | py |
diff --git a/scanpy/preprocessing/recipes.py b/scanpy/preprocessing/recipes.py
index <HASH>..<HASH> 100644
--- a/scanpy/preprocessing/recipes.py
+++ b/scanpy/preprocessing/recipes.py
@@ -95,6 +95,7 @@ def recipe_zheng17(adata, n_top_genes=1000, log=True, plot=False, copy=False):
-------
Returns or updates `ad... | added timing to zheng<I> recipe | py |
diff --git a/src/discoursegraphs/readwrite/__init__.py b/src/discoursegraphs/readwrite/__init__.py
index <HASH>..<HASH> 100644
--- a/src/discoursegraphs/readwrite/__init__.py
+++ b/src/discoursegraphs/readwrite/__init__.py
@@ -1,4 +1,4 @@
-# discoursegraphs.io: input/output functionality
+# discoursegraphs.readwrite: i... | fixed docstring in readwrite __init__.py | py |
diff --git a/tests/test_year_end_charts.py b/tests/test_year_end_charts.py
index <HASH>..<HASH> 100644
--- a/tests/test_year_end_charts.py
+++ b/tests/test_year_end_charts.py
@@ -16,10 +16,12 @@ class Base:
self.assertIsNotNone(self.chart.year)
def testNextYear(self):
- self.assertEqual(self.char... | Fix the year type error in the year-end tests | py |
diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/_form_base_client.py b/sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/_form_base_client.py
index <HASH>..<HASH> 100644
--- a/sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/_form_base_client.py
+++ b/s... | add reading order for logging (#<I>) | py |
diff --git a/tcex/threat_intelligence/threat_intelligence.py b/tcex/threat_intelligence/threat_intelligence.py
index <HASH>..<HASH> 100644
--- a/tcex/threat_intelligence/threat_intelligence.py
+++ b/tcex/threat_intelligence/threat_intelligence.py
@@ -126,7 +126,7 @@ class ThreatIntelligence:
obj: An instan... | Fixed issue created on 2/4/<I> regarding getting indicators/groups with a specific owner | py |
diff --git a/tests/datatypes/test_rdfdatatypes.py b/tests/datatypes/test_rdfdatatypes.py
index <HASH>..<HASH> 100644
--- a/tests/datatypes/test_rdfdatatypes.py
+++ b/tests/datatypes/test_rdfdatatypes.py
@@ -78,7 +78,6 @@ class Test_XsdBool(unittest.TestCase):
def test_sparql_values(self):
for tup in sel... | removed pdb.set_trace() in tests | py |
diff --git a/intranet/apps/eighth/models.py b/intranet/apps/eighth/models.py
index <HASH>..<HASH> 100644
--- a/intranet/apps/eighth/models.py
+++ b/intranet/apps/eighth/models.py
@@ -1109,7 +1109,7 @@ class EighthScheduledActivity(AbstractBaseEighthModel):
EighthSignup.objects.create_signup(use... | do not modify if block is locked | py |
diff --git a/tensorpack/graph_builder/utils.py b/tensorpack/graph_builder/utils.py
index <HASH>..<HASH> 100644
--- a/tensorpack/graph_builder/utils.py
+++ b/tensorpack/graph_builder/utils.py
@@ -178,8 +178,10 @@ def allreduce_grads(all_grads, average, mode="nccl"):
for t in grads:
with tf.... | fix usage of collective_ops.nccl | py |
diff --git a/stanza/models/ner_tagger.py b/stanza/models/ner_tagger.py
index <HASH>..<HASH> 100644
--- a/stanza/models/ner_tagger.py
+++ b/stanza/models/ner_tagger.py
@@ -164,7 +164,7 @@ def train(args):
train_batch = DataLoader(train_doc, args['batch_size'], args, pretrain, vocab=vocab, evaluation=False)
voc... | Oops, was reporting the train length twice instead of the dev length | py |
diff --git a/test/high_availability/test_motor_ha.py b/test/high_availability/test_motor_ha.py
index <HASH>..<HASH> 100644
--- a/test/high_availability/test_motor_ha.py
+++ b/test/high_availability/test_motor_ha.py
@@ -300,7 +300,7 @@ class MotorTestTriggeredRefresh(MotorHATestCase):
# We've detected the stepd... | Bug in test_stepdown_triggers_refresh. | py |
diff --git a/SoftLayer/CLI/helpers.py b/SoftLayer/CLI/helpers.py
index <HASH>..<HASH> 100644
--- a/SoftLayer/CLI/helpers.py
+++ b/SoftLayer/CLI/helpers.py
@@ -9,7 +9,7 @@ __all__ = ['Table', 'CLIRunnable', 'FormattedItem', 'valid_response',
class FormattedItem(object):
def __init__(self, original, formatted=None)... | FormatedItem now accepts an empty string as valid output | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -28,7 +28,7 @@
# NO OBLIGATION TO PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR
# MODIFICATIONS.
-from distutils.core import setup
+from setuptools import setup
import usb | enable building as a wheel by using setuptools | py |
diff --git a/lib/auxly/shell.py b/lib/auxly/shell.py
index <HASH>..<HASH> 100644
--- a/lib/auxly/shell.py
+++ b/lib/auxly/shell.py
@@ -32,7 +32,7 @@ def has(cmd):
"""Returns true if the give shell command is available."""
helps = ["--help", "-h", "--version"]
if "nt" == os.name:
- helps.append("/?... | Minor Windows related bug fix to prevent commands from freezing during has(). | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -6,22 +6,17 @@ from harpoon import VERSION
setup(
name = "docker-harpoon"
, version = VERSION
- , packages = ['harpoon'] + ['harpoon.%s' % pkg for pkg in find_packages('harpoon')]
+ , packages = find_package... | Changing to delfick_project | py |
diff --git a/nolds/__init__.py b/nolds/__init__.py
index <HASH>..<HASH> 100644
--- a/nolds/__init__.py
+++ b/nolds/__init__.py
@@ -1,5 +1,5 @@
from .measures import lyap_r, lyap_e, sampen, hurst_rs, corr_dim, dfa, \
binary_n, logarithmic_n, logarithmic_r, expected_h, logmid_n, expected_rs, \
- lyap_r_len, lyap... | adds rowwise_chebyshev and rowwise_euclidean to exports | py |
diff --git a/synapse/tests/travis/install.py b/synapse/tests/travis/install.py
index <HASH>..<HASH> 100644
--- a/synapse/tests/travis/install.py
+++ b/synapse/tests/travis/install.py
@@ -1,6 +1,7 @@
import os
import sys
+import time
import argparse
import subprocess
@@ -17,6 +18,22 @@ def main(argv):
cor... | updated to wait for docker before building | py |
diff --git a/intranet/apps/seniors/models.py b/intranet/apps/seniors/models.py
index <HASH>..<HASH> 100644
--- a/intranet/apps/seniors/models.py
+++ b/intranet/apps/seniors/models.py
@@ -20,10 +20,7 @@ class SeniorManager(models.Manager):
def filled(self):
seniors = Senior.objects.exclude(college=None, ... | use list comprehension instead of for loop and exclude | py |
diff --git a/tests/functional_tests/expected_values/bitbucket.py b/tests/functional_tests/expected_values/bitbucket.py
index <HASH>..<HASH> 100644
--- a/tests/functional_tests/expected_values/bitbucket.py
+++ b/tests/functional_tests/expected_values/bitbucket.py
@@ -1,3 +1,5 @@
+import re
+
import fixtures
import con... | The picture in Bitbucket expected values changed from string to regex. | py |
diff --git a/progressbar/widgets.py b/progressbar/widgets.py
index <HASH>..<HASH> 100644
--- a/progressbar/widgets.py
+++ b/progressbar/widgets.py
@@ -821,8 +821,12 @@ class MultiProgressBar(MultiRangeBar):
if progress < 0 or progress > 1:
raise ValueError('Range value needs to be in the r... | Fake continuous progress On MultiProgressBar, using the default marker are limited to 9 distinct "heights" to represent the progress of each task. Instead of chosing just one of the discrete groups, each task now distributes it's weight proportionally on the 2 nearest markers. E.g., if the markers are only ` ▄█`, a ... | py |
diff --git a/blockstack/lib/scripts.py b/blockstack/lib/scripts.py
index <HASH>..<HASH> 100644
--- a/blockstack/lib/scripts.py
+++ b/blockstack/lib/scripts.py
@@ -688,6 +688,28 @@ def check_address(address):
return False
+def check_account_address(address):
+ """
+ verify that a string is a valid acc... | an "account address" is a b<I> address, or "treasury", or "unallocated" | py |
diff --git a/mapillary_tools/upload_api.py b/mapillary_tools/upload_api.py
index <HASH>..<HASH> 100644
--- a/mapillary_tools/upload_api.py
+++ b/mapillary_tools/upload_api.py
@@ -4,17 +4,19 @@ import requests
def create_upload_session(upload_type, metadata, options):
url = _get_url(options, "/v3/me/uploads")
... | feat: add query string params to upload_api | py |
diff --git a/webview/cocoa.py b/webview/cocoa.py
index <HASH>..<HASH> 100755
--- a/webview/cocoa.py
+++ b/webview/cocoa.py
@@ -185,9 +185,10 @@ class BrowserView:
# Add the webview to the window if it's not yet the contentView
i = BrowserView.get_instance('webkit', webview)
- if i... | Fix disappearing JS API on reload | py |
diff --git a/formlayout.py b/formlayout.py
index <HASH>..<HASH> 100644
--- a/formlayout.py
+++ b/formlayout.py
@@ -655,6 +655,10 @@ class FormWidget(QWidget):
elif self.result == 'XML':
form = ET.Element('Form')
for label, value in valuelist:
+ tooltip = ''
+ ... | Add 'tooltip' support to XML serialization | py |
diff --git a/bl/url.py b/bl/url.py
index <HASH>..<HASH> 100644
--- a/bl/url.py
+++ b/bl/url.py
@@ -72,6 +72,10 @@ class URL(Dict):
def __repr__(self):
return """URL('%s')""" % str(self)
+ def __contains__(self, key):
+ """enable the 'in' operator by casting both terms to str."""
+ ... | URL.__contains__() now enables the ‘in’ operator by casting both terms to str | py |
diff --git a/ripe/atlas/sagan/ssl.py b/ripe/atlas/sagan/ssl.py
index <HASH>..<HASH> 100644
--- a/ripe/atlas/sagan/ssl.py
+++ b/ripe/atlas/sagan/ssl.py
@@ -190,7 +190,7 @@ class Alert(ParsingDict):
self.level = self.ensure("level", int)
self.description = self.ensure("decription", int)
- if no... | Just in case description can == 0 | 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
@@ -83,7 +83,7 @@ master_doc = 'index'
# General information about the project.
project = 'Torchvision'
-copyright = '2017, Torch Contributors'
+copyright = '2017-present, Torch Con... | Update conf.py (#<I>) | py |
diff --git a/hacking/checks/except_checks.py b/hacking/checks/except_checks.py
index <HASH>..<HASH> 100644
--- a/hacking/checks/except_checks.py
+++ b/hacking/checks/except_checks.py
@@ -16,6 +16,8 @@ import re
from hacking import core
+RE_ASSERT_RAISES_EXCEPTION = re.compile(r"self\.assertRaises\(Exception[,\)]")... | Only compile regex for hacking_except_format once Instead of using re.match which compiles the regex each time use re.compile and re.search. A small scale timeit test shows this method reduces the time needed by about <I>%. Change-Id: I<I>a4c<I>ec9e<I>bb<I>bd9c<I>b<I> | py |
diff --git a/logging/google/cloud/logging/handlers/container_engine.py b/logging/google/cloud/logging/handlers/container_engine.py
index <HASH>..<HASH> 100644
--- a/logging/google/cloud/logging/handlers/container_engine.py
+++ b/logging/google/cloud/logging/handlers/container_engine.py
@@ -38,7 +38,7 @@ class Container... | ContainerEngineHandler: don't swallow stream (#<I>) | py |
diff --git a/dispatch/modules/content/models.py b/dispatch/modules/content/models.py
index <HASH>..<HASH> 100644
--- a/dispatch/modules/content/models.py
+++ b/dispatch/modules/content/models.py
@@ -222,7 +222,8 @@ class Publishable(Model):
if data is None:
if attachment:
attachme... | Move 'self.featured_image = None' to outer if-statement | py |
diff --git a/pymyq/api.py b/pymyq/api.py
index <HASH>..<HASH> 100644
--- a/pymyq/api.py
+++ b/pymyq/api.py
@@ -17,7 +17,7 @@ BASE_API_VERSION = 5
API_BASE = "https://api.myqdevice.com/api/v{0}"
DEFAULT_APP_ID = "JVM/G9Nwih5BwKgNCjLxiFUQxQijAebyyg8QUHr7JOrP+tuPb8iHfRHKwTmDzHOu"
-DEFAULT_USER_AGENT = "myQ/19569 CFNet... | Update USER_AGENT (again) (fixes #<I>) (#<I>) The server is again unhappy about USER_AGENT. Examining a session from the "real" Android app shows "okhttp/<I>", which seems to make the server happy (for now?) | py |
diff --git a/pybar/daq/readout_utils.py b/pybar/daq/readout_utils.py
index <HASH>..<HASH> 100644
--- a/pybar/daq/readout_utils.py
+++ b/pybar/daq/readout_utils.py
@@ -142,9 +142,9 @@ def is_data_from_channel(channel=4): # function factory
Note:
Trigger data not included
'''
- if channel > 0 and ch... | ENH: increase max channels to <I> (from 0 to <I>) | py |
diff --git a/pypeerassets/provider/common.py b/pypeerassets/provider/common.py
index <HASH>..<HASH> 100644
--- a/pypeerassets/provider/common.py
+++ b/pypeerassets/provider/common.py
@@ -27,7 +27,7 @@ class Provider:
return self._netname(self.net)['long']
@property
- def network_properties(self):
+ ... | rename to network_parameters. | py |
diff --git a/billy/bin/update.py b/billy/bin/update.py
index <HASH>..<HASH> 100755
--- a/billy/bin/update.py
+++ b/billy/bin/update.py
@@ -357,7 +357,7 @@ def main():
# scraper order matters
order = ('legislators', 'committees', 'votes', 'bills',
- 'speeches', 'events')
+... | reordering events & speeches | py |
diff --git a/gcloud_requests/requests_connection.py b/gcloud_requests/requests_connection.py
index <HASH>..<HASH> 100644
--- a/gcloud_requests/requests_connection.py
+++ b/gcloud_requests/requests_connection.py
@@ -36,6 +36,7 @@ class RequestsProxy(object):
"""
SCOPE = None
+ METHOD_WHITELIST = Retry.DEF... | Add POST to retry method whitelist Since all RPCs happen via HTTP POST, we need to override the default method whitelist (which includes only immutable status codes) to retry POST requests. | py |
diff --git a/lib/svtplay_dl/service/barnkanalen.py b/lib/svtplay_dl/service/barnkanalen.py
index <HASH>..<HASH> 100644
--- a/lib/svtplay_dl/service/barnkanalen.py
+++ b/lib/svtplay_dl/service/barnkanalen.py
@@ -68,7 +68,7 @@ class Barnkanalen(Svtplay):
for i in videos:
yield i
- def find_all_... | Fix missed option to config change in barnkanalen service. | py |
diff --git a/daemonize.py b/daemonize.py
index <HASH>..<HASH> 100644
--- a/daemonize.py
+++ b/daemonize.py
@@ -53,6 +53,14 @@ class Daemonize(object):
os.remove(self.pid)
sys.exit(0)
+ def exit(self):
+ """ exit method
+ Cleanup pid file at exit.
+ """
+ self.logger.wa... | Cleanup pid-file at exit without SIGTERM. Fixes #4 | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -28,14 +28,15 @@ def get_version_info():
return version_info
-def long_description(version):
+def long_description(release):
with open('README.rst') as f:
contents = f.read()
# For a released versio... | Fix readthedocs URLs in the long description. | py |
diff --git a/pycbc/workflow/configuration.py b/pycbc/workflow/configuration.py
index <HASH>..<HASH> 100644
--- a/pycbc/workflow/configuration.py
+++ b/pycbc/workflow/configuration.py
@@ -510,6 +510,8 @@ class WorkflowConfigParser(glue.pipeline.DeepCopyableConfigParser):
values = value.split(',')
... | Fixes to sharedoptions section (#<I>) * Fixes to sharedoptions section * Fix to shareedoptions | py |
diff --git a/amino/util/string.py b/amino/util/string.py
index <HASH>..<HASH> 100644
--- a/amino/util/string.py
+++ b/amino/util/string.py
@@ -38,9 +38,11 @@ def decode_exc(value: Exception) -> str:
return decode_list(value.args).head | str(value)
-def camelcaseify(name: str, sep: str='', splitter: str='_') ->... | rename `camelcaseify` to `camelcase` | py |
diff --git a/tests/test_ice.py b/tests/test_ice.py
index <HASH>..<HASH> 100644
--- a/tests/test_ice.py
+++ b/tests/test_ice.py
@@ -665,7 +665,7 @@ class IceConnectionTest(unittest.TestCase):
# let consent expire
run(conn_b.close())
- run(asyncio.sleep(1.5))
+ run(asyncio.sleep(2))
... | [tests] sleep longer to let consent expire | py |
diff --git a/utils/notification_service.py b/utils/notification_service.py
index <HASH>..<HASH> 100644
--- a/utils/notification_service.py
+++ b/utils/notification_service.py
@@ -644,10 +644,10 @@ if __name__ == "__main__":
artifact_path["gpu"]
] += f"*{line}*\n_{st... | Fix wrong PT/TF categories in CI report (#<I>) | py |
diff --git a/torment/contexts/__init__.py b/torment/contexts/__init__.py
index <HASH>..<HASH> 100644
--- a/torment/contexts/__init__.py
+++ b/torment/contexts/__init__.py
@@ -137,7 +137,7 @@ class TestContext(unittest.TestCase):
logger.debug('self.mocks: %s', self.mocks)
@decorators.log
- def patch(s... | add non-relative patch Under certain conditions we want to be able to disable the relative patching performed. This sets the default behavior to the relative patch but allows that to be disabled and the name patched as is without any added prefix. * fixes #<I> | py |
diff --git a/nodeshot/core/nodes/models/node.py b/nodeshot/core/nodes/models/node.py
index <HASH>..<HASH> 100755
--- a/nodeshot/core/nodes/models/node.py
+++ b/nodeshot/core/nodes/models/node.py
@@ -141,14 +141,19 @@ class Node(BaseAccessLevel):
@property
def point(self):
- """ returns location o... | use point_on_surface for more accurate center point | py |
diff --git a/tests/conftest.py b/tests/conftest.py
index <HASH>..<HASH> 100755
--- a/tests/conftest.py
+++ b/tests/conftest.py
@@ -21,7 +21,7 @@ def kb_inmemory(filename="inmemory.ini"):
return KnowledgeBase(configuration_file)
@fixture(scope="session")
-def kb_virtuoso(filename="virtuoso_local.ini"):
+def kb_virt... | testing by default against the public KB (dainst-hosted) | py |
diff --git a/tests/unit/modules/test_cron.py b/tests/unit/modules/test_cron.py
index <HASH>..<HASH> 100644
--- a/tests/unit/modules/test_cron.py
+++ b/tests/unit/modules/test_cron.py
@@ -1299,7 +1299,7 @@ class PsTestCase(TestCase, LoaderModuleMockMixin):
4,
5,
"/bin/e... | Fix the assertions in test_set_job The original assertion used "mock_method.call_args.assert_called_with", which does nothing at all. Correct usage is either "mock_method.call_args == ..." or "mock_method.assert_called_with(...)" | py |
diff --git a/K2fov/K2onSilicon.py b/K2fov/K2onSilicon.py
index <HASH>..<HASH> 100644
--- a/K2fov/K2onSilicon.py
+++ b/K2fov/K2onSilicon.py
@@ -107,8 +107,13 @@ def nearSiliconCheck(ra_deg,dec_deg,FovObj,max_sep=8.2):
def getRaDecRollFromFieldnum(fieldnum):
- if fieldnum not in [0,1,2,3,4,5,6,7]:
+ if fieldnu... | fixing a bug with the C3 position | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -24,8 +24,8 @@ CLASSIFIERS = [
HLPR = SetupHelper(initfile="goatools/__init__.py", readmefile="README.md")
SETUP_DIR = op.abspath(op.dirname(__file__))
-REQUIREMENTS = ['wget'] + [x.strip() for x in
- ... | Add pydot to setup requirements | py |
diff --git a/http.py b/http.py
index <HASH>..<HASH> 100644
--- a/http.py
+++ b/http.py
@@ -240,14 +240,14 @@ class HttpUA(object):
# If we didn't it's an error
else:
raise errors.TestError(
- 'Failed to connect to server',
- {
... | PEP8 E<I> continuation line missing (indentation/outdentend) | py |
diff --git a/spython/main/parse/converters.py b/spython/main/parse/converters.py
index <HASH>..<HASH> 100644
--- a/spython/main/parse/converters.py
+++ b/spython/main/parse/converters.py
@@ -210,8 +210,9 @@ def docker2singularity(self, runscript="/bin/bash", force=False):
if self.workdir is not None:
runs... | startscript added with same content as runscript | py |
diff --git a/dramatiq/brokers/rabbitmq.py b/dramatiq/brokers/rabbitmq.py
index <HASH>..<HASH> 100644
--- a/dramatiq/brokers/rabbitmq.py
+++ b/dramatiq/brokers/rabbitmq.py
@@ -304,7 +304,8 @@ class _RabbitmqConsumer(Consumer):
message = Message.decode(body)
self.known_tags.add(method.delivery_t... | fix: handle assertion errors from pika | py |
diff --git a/cyphi/subsystem.py b/cyphi/subsystem.py
index <HASH>..<HASH> 100644
--- a/cyphi/subsystem.py
+++ b/cyphi/subsystem.py
@@ -8,6 +8,7 @@ Subsystem
Represents a candidate set for |phi| calculation.
"""
+import psutil
import numpy as np
from itertools import chain
from .constants import DIRECTIONS, PAST,... | Check memory use before adding to MICE | py |
diff --git a/anythumbnailer/thumbnail_.py b/anythumbnailer/thumbnail_.py
index <HASH>..<HASH> 100644
--- a/anythumbnailer/thumbnail_.py
+++ b/anythumbnailer/thumbnail_.py
@@ -16,6 +16,9 @@ __all__ = ['create_thumbnail']
def create_thumbnail(source_filename, dimensions=None, **kwargs):
assert dimensions is None
... | add fallback to "detect" a mime-type based on the file extension in case Python's mimetype module does not recognize the mime type. | py |
diff --git a/salt/utils/event.py b/salt/utils/event.py
index <HASH>..<HASH> 100644
--- a/salt/utils/event.py
+++ b/salt/utils/event.py
@@ -59,6 +59,7 @@ import fnmatch
import hashlib
import logging
import datetime
+import sys
from collections import MutableMapping
from multiprocessing.util import Finalize
from sa... | import salt.minion for EventReturn for Windows Because of the way our multiprocessing works on Windows, this module is not available. In Linux, the namespace is copied over, and the module is available, so we only need the import on Windows. | py |
diff --git a/master/buildbot/buildslave.py b/master/buildbot/buildslave.py
index <HASH>..<HASH> 100644
--- a/master/buildbot/buildslave.py
+++ b/master/buildbot/buildslave.py
@@ -460,6 +460,7 @@ class AbstractBuildSlave(config.ReconfigurableServiceMixin, pb.Avatar,
log.msg("BuildSlave.detached(%s)" % self.slav... | Release lock held by slave, when we lose the connection to the slave. Fixes #<I> | py |
diff --git a/pecan/core.py b/pecan/core.py
index <HASH>..<HASH> 100644
--- a/pecan/core.py
+++ b/pecan/core.py
@@ -356,7 +356,7 @@ class Pecan(object):
raise ValidationException()
if json:
params = dict(data=params)
- return params
+ return params or {}
de... | Changing my approach a bit so that pecan.validate() works as well. | py |
diff --git a/fulfil_client/model.py b/fulfil_client/model.py
index <HASH>..<HASH> 100644
--- a/fulfil_client/model.py
+++ b/fulfil_client/model.py
@@ -233,7 +233,7 @@ class Query(object):
def all(self):
"Return the results represented by this Query as a list."
return self.rpc_model.search_read(
-... | Fixed order of offset and limit in 'all()' Query method | py |
diff --git a/pyontutils/hierarchies.py b/pyontutils/hierarchies.py
index <HASH>..<HASH> 100755
--- a/pyontutils/hierarchies.py
+++ b/pyontutils/hierarchies.py
@@ -331,7 +331,7 @@ def newTree(name, **kwargs):
return Tree, newTreeNode
-def creatTree(root, relationshipType, direction, depth, graph=None, json=None... | hierarchies.py can use prefixes to sub in the html, bad impl but works | py |
diff --git a/dvc/__init__.py b/dvc/__init__.py
index <HASH>..<HASH> 100644
--- a/dvc/__init__.py
+++ b/dvc/__init__.py
@@ -10,7 +10,7 @@ import os
import warnings
-VERSION_BASE = "0.33.0"
+VERSION_BASE = "0.33.1"
__version__ = VERSION_BASE
PACKAGEPATH = os.path.abspath(os.path.dirname(__file__)) | dvc: bump to <I> | py |
diff --git a/isort/isort.py b/isort/isort.py
index <HASH>..<HASH> 100644
--- a/isort/isort.py
+++ b/isort/isort.py
@@ -228,10 +228,10 @@ class SortImports(object):
return self.index == self.number_of_lines
@staticmethod
- def _module_key(module_name, config):
+ def _module_key(module_name, config,... | Implement fix for issue #<I> | py |
diff --git a/src/hieroglyph/builder.py b/src/hieroglyph/builder.py
index <HASH>..<HASH> 100644
--- a/src/hieroglyph/builder.py
+++ b/src/hieroglyph/builder.py
@@ -10,6 +10,11 @@ from sphinx.builders.html import (
StandaloneHTMLBuilder,
DirectoryHTMLBuilder,
)
+try:
+ from sphinx.util.fileutil import copy_... | Remove reference to specific Sphinx version | py |
diff --git a/clients/python/girder_client/__init__.py b/clients/python/girder_client/__init__.py
index <HASH>..<HASH> 100644
--- a/clients/python/girder_client/__init__.py
+++ b/clients/python/girder_client/__init__.py
@@ -1320,7 +1320,7 @@ class GirderClient:
for item in items:
_id = item... | Only use 'updated' metadata field for sync test The use of all metadata for sync test in downloadFolderRecursive() causes to always fail, as the 'downloadStatistics' field will change everytime. The 'updated' field alone is relevant for this test and allows for a correct skipping of unchanged files. | py |
diff --git a/src/pydas/drivers.py b/src/pydas/drivers.py
index <HASH>..<HASH> 100644
--- a/src/pydas/drivers.py
+++ b/src/pydas/drivers.py
@@ -175,6 +175,16 @@ class CoreDriver(BaseDriver):
response = self.request('midas.item.delete', parameters)
return response
+ def folder_children(self, token,... | ENH: added method folder_children | py |
diff --git a/spyderlib/widgets/externalshell/sitecustomize.py b/spyderlib/widgets/externalshell/sitecustomize.py
index <HASH>..<HASH> 100644
--- a/spyderlib/widgets/externalshell/sitecustomize.py
+++ b/spyderlib/widgets/externalshell/sitecustomize.py
@@ -317,9 +317,6 @@ if matplotlib is not None:
if not mpl_backen... | sitecustomize: Move some imports where they are really needed | py |
diff --git a/awslimitchecker/runner.py b/awslimitchecker/runner.py
index <HASH>..<HASH> 100644
--- a/awslimitchecker/runner.py
+++ b/awslimitchecker/runner.py
@@ -362,11 +362,6 @@ class Runner(object):
ta_refresh_timeout=args.ta_refresh_timeout
)
- if args.skip_service is not None:
- ... | issue/<I>: remove check against services & skip_services both being set | py |
diff --git a/py3status/__init__.py b/py3status/__init__.py
index <HASH>..<HASH> 100755
--- a/py3status/__init__.py
+++ b/py3status/__init__.py
@@ -32,12 +32,12 @@ def main():
if py3:
py3.notify_user('Setup interrupted')
sys.exit(0)
- except Exception as e:
- if py3:
+ except ... | nicer exceptions on cli-commands | py |
diff --git a/src/toil/realtimeLogger.py b/src/toil/realtimeLogger.py
index <HASH>..<HASH> 100644
--- a/src/toil/realtimeLogger.py
+++ b/src/toil/realtimeLogger.py
@@ -57,6 +57,17 @@ class LoggingDatagramHandler(SocketServer.BaseRequestHandler):
message_attrs = json.loads(data.decode('utf-8'))
... | Fix root args tuples turning into lists in RealtimeLogger | py |
diff --git a/starlette/middleware/wsgi.py b/starlette/middleware/wsgi.py
index <HASH>..<HASH> 100644
--- a/starlette/middleware/wsgi.py
+++ b/starlette/middleware/wsgi.py
@@ -54,7 +54,7 @@ def build_environ(scope: Scope, body: bytes) -> dict:
class WSGIMiddleware:
- def __init__(self, app: typing.Callable, work... | Cleanup param "workers" in WSGIMiddleware (#<I>) Param "workers" in WSGIMiddleware.__init__ has not been used since <I>, which is changed in GH-<I>, commit <I>c<I>c. | py |
diff --git a/safe/gui/tools/minimum_needs/needs_profile.py b/safe/gui/tools/minimum_needs/needs_profile.py
index <HASH>..<HASH> 100644
--- a/safe/gui/tools/minimum_needs/needs_profile.py
+++ b/safe/gui/tools/minimum_needs/needs_profile.py
@@ -136,6 +136,9 @@ class NeedsProfile(MinimumNeeds):
:returns: Orde... | Fix sor_by_locale of sorting needs profile in case locale passed is None. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -8,4 +8,8 @@ setup(name='sobol_seq',
author_email='naught101@gmail.com',
license='MIT',
packages=['sobol_seq'],
+ install_requires=[
+ 'scipy',
+ 'numpy'
+ ],
zip_safe=Fa... | Add the "scipy" and "numpy" packages as dependencies. By specifying the dependencies of a package we allow the user to install "sobol_seq" with a single `pip install` command, even in a clean environment. | py |
diff --git a/xclim/indicators/atmos/_conversion.py b/xclim/indicators/atmos/_conversion.py
index <HASH>..<HASH> 100644
--- a/xclim/indicators/atmos/_conversion.py
+++ b/xclim/indicators/atmos/_conversion.py
@@ -222,9 +222,9 @@ wind_chill_index = Converter(
potential_evapotranspiration = Converter(
identifier="p... | update pet and water_budget units and names | py |
diff --git a/gary/potential/core.py b/gary/potential/core.py
index <HASH>..<HASH> 100644
--- a/gary/potential/core.py
+++ b/gary/potential/core.py
@@ -266,7 +266,8 @@ class Potential(object):
return fig
- def integrate_orbit(self, w0, Integrator=LeapfrogIntegrator, **time_spec):
+ def integrate_orbit... | added integrator kwargs option to integrate orbit | py |
diff --git a/visidata/_types.py b/visidata/_types.py
index <HASH>..<HASH> 100644
--- a/visidata/_types.py
+++ b/visidata/_types.py
@@ -81,11 +81,11 @@ def isNumeric(col):
floatchars='+-0123456789.'
class currency(float):
- def __init__(self, s=''):
+ def __new__(self, s=''):
'dirty float (strip non-n... | [types] float is immutable; it must be overriden at the constructor | py |
diff --git a/atrcopy/diskimages.py b/atrcopy/diskimages.py
index <HASH>..<HASH> 100755
--- a/atrcopy/diskimages.py
+++ b/atrcopy/diskimages.py
@@ -202,8 +202,27 @@ class DiskImageBase(object):
self.segments.extend(self.get_directory_segments())
self.segments.extend(self.get_file_segments())
+ ... | Added boot segment parsing for raw boot disks (no assumptions about valid DOS flags in the boot sector) | py |
diff --git a/pyspectral/solar.py b/pyspectral/solar.py
index <HASH>..<HASH> 100644
--- a/pyspectral/solar.py
+++ b/pyspectral/solar.py
@@ -120,11 +120,11 @@ class SolarIrradianceSpectrum(object):
"""
return self._band_calculations(rsr, True, scale, **options)
- # def inband_solarirradiance(self, ... | Adding back the inband_solarirradiance function | py |
diff --git a/dir_util.py b/dir_util.py
index <HASH>..<HASH> 100644
--- a/dir_util.py
+++ b/dir_util.py
@@ -31,7 +31,7 @@ def mkpath (name, mode=0777, verbose=0, dry_run=0):
global _path_created
# Detect a common bug -- name is None
- if type(name) is not StringType:
+ if not isinstance(name, StringTyp... | Patch #<I>: Support Unicode filenames in mkpath. Fixes #<I>. Will backport to <I>. | py |
diff --git a/nfc/llcp/llc.py b/nfc/llcp/llc.py
index <HASH>..<HASH> 100644
--- a/nfc/llcp/llc.py
+++ b/nfc/llcp/llc.py
@@ -462,7 +462,8 @@ class LogicalLinkControl(threading.Thread):
def _bind_by_name(self, socket, name):
if not (name.startswith("urn:nfc:sn") or
- name.startswith("urn:nfc... | exceptionally allow com.android.npp as a service name | py |
diff --git a/kafka/conn.py b/kafka/conn.py
index <HASH>..<HASH> 100644
--- a/kafka/conn.py
+++ b/kafka/conn.py
@@ -36,9 +36,9 @@ try:
ssl.SSLWantWriteError
ssl.SSLZeroReturnError
except:
- log.warning('old ssl module detected.'
- ' ssl error handling may not operate cleanly.'
- ... | Make SSL warning list the correct Python versions (#<I>) | py |
diff --git a/pproxy/server.py b/pproxy/server.py
index <HASH>..<HASH> 100644
--- a/pproxy/server.py
+++ b/pproxy/server.py
@@ -268,7 +268,7 @@ class ProxySimple(ProxyDirect):
return self.users[0] if self.users else b''
def udp_packet_unpack(self, data):
data = self.cipher.datagram.decrypt(data) i... | UDP multiple jumps not working Forget to decrypt for next jump | py |
diff --git a/test/test_util.py b/test/test_util.py
index <HASH>..<HASH> 100644
--- a/test/test_util.py
+++ b/test/test_util.py
@@ -47,6 +47,24 @@ class TestGeoIpDatabaseLoading(unittest.TestCase):
from txtorcon import util
self.assertRaises(IOError, util.create_geoip, '_missing_path_')
+ def test... | Added coverage tests for create_geoip() | py |
diff --git a/openxc/controllers/base.py b/openxc/controllers/base.py
index <HASH>..<HASH> 100644
--- a/openxc/controllers/base.py
+++ b/openxc/controllers/base.py
@@ -6,9 +6,11 @@ import threading
try:
from Queue import Queue
+ from Queue import Empty
except ImportError:
# Python 3
from queue impo... | Avoid an exception if the VI is not connected, receives no diag response | py |
diff --git a/pmagpy/ipmag.py b/pmagpy/ipmag.py
index <HASH>..<HASH> 100755
--- a/pmagpy/ipmag.py
+++ b/pmagpy/ipmag.py
@@ -1736,7 +1736,7 @@ def vgp_calc(dataframe, tilt_correction='yes', site_lon='site_lon', site_lat='si
# calculate the longitudinal difference between the pole and the site
# (beta)
... | modified: ipmag.py => fixed several boo-boos in vgp_calc | py |
diff --git a/salt/utils/cachedict.py b/salt/utils/cachedict.py
index <HASH>..<HASH> 100644
--- a/salt/utils/cachedict.py
+++ b/salt/utils/cachedict.py
@@ -1,10 +1,13 @@
+# -*- coding: utf-8 -*-
import time
+
class CacheDict(dict):
'''
Subclass of dict that will lazily delete items past ttl
'''
- d... | Pylint syle cleanup | py |
diff --git a/proptools.py b/proptools.py
index <HASH>..<HASH> 100644
--- a/proptools.py
+++ b/proptools.py
@@ -49,7 +49,7 @@ Computing the greeting.
"""
-__all__ = ['LazyProperty', 'TypedProperty']
+__all__ = ['LazyProperty', 'TypedProperty', 'SetOnceProperty']
import unittest
from weakref import WeakKeyDictio... | Include all concrete classes in __all__. | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.