diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/cohorts/io/gcloud_storage.py b/cohorts/io/gcloud_storage.py
index <HASH>..<HASH> 100644
--- a/cohorts/io/gcloud_storage.py
+++ b/cohorts/io/gcloud_storage.py
@@ -131,7 +131,7 @@ class GoogleStorageIO:
return os.rename(tmp_file_path, localpath)
-class GoogleStorageFile(AbstractContextManager):
... | inherit from object instead of AbstractContextManager Apparently the Abstract interface has just been introduced so it breaks earlier 3.x Python releases. Falling back to good old object for now. | py |
diff --git a/renku/service/serializers/cache.py b/renku/service/serializers/cache.py
index <HASH>..<HASH> 100644
--- a/renku/service/serializers/cache.py
+++ b/renku/service/serializers/cache.py
@@ -103,6 +103,7 @@ class ProjectCloneRequest(Schema):
git_url = fields.String(required=True)
depth = fields.Inte... | fix: correctly handle ref on project.clone (#<I>) | py |
diff --git a/bl/file.py b/bl/file.py
index <HASH>..<HASH> 100644
--- a/bl/file.py
+++ b/bl/file.py
@@ -23,7 +23,7 @@ class File(Dict):
return "%s(fn=%r)" % (self.__class__.__name__, self.fn)
def __str__(self):
- return self.fn
+ return str(self.fn)
def __lt__(self, other):
... | File – protect properties / methods by wrapping with str() | py |
diff --git a/src/pyshark/capture/capture.py b/src/pyshark/capture/capture.py
index <HASH>..<HASH> 100644
--- a/src/pyshark/capture/capture.py
+++ b/src/pyshark/capture/capture.py
@@ -367,7 +367,7 @@ class Capture(object):
def _stderr_output(self):
# Ignore stderr output unless in debug mode (sent to con... | Fix ResourceWarning by using subprocess' DEVNULL | py |
diff --git a/cnxepub/formatters.py b/cnxepub/formatters.py
index <HASH>..<HASH> 100644
--- a/cnxepub/formatters.py
+++ b/cnxepub/formatters.py
@@ -917,7 +917,7 @@ HTML_DOCUMENT = """\
itemprop="description"
data-type="description"
>
- {{ metadata['summary']|e }}
+ {{ me... | don't escape summary, it breaks test cornercases | py |
diff --git a/invenio_search_ui/bundles.py b/invenio_search_ui/bundles.py
index <HASH>..<HASH> 100644
--- a/invenio_search_ui/bundles.py
+++ b/invenio_search_ui/bundles.py
@@ -41,7 +41,7 @@ js = NpmBundle(
output='gen/search.%(version)s.js',
npm={
"almond": "~0.3.1",
- 'angular': '~1.4.7',
- ... | bundles: invenio-search-js upgrade | py |
diff --git a/wpull/protocol/http/client.py b/wpull/protocol/http/client.py
index <HASH>..<HASH> 100644
--- a/wpull/protocol/http/client.py
+++ b/wpull/protocol/http/client.py
@@ -117,7 +117,7 @@ class Session(BaseSession):
@asyncio.coroutine
def download(
self,
- file: Union[IO[bytes],... | http.client: Fix wrong StreamReader/StreamWriter typing for download() | py |
diff --git a/graphene/utils/enum.py b/graphene/utils/enum.py
index <HASH>..<HASH> 100644
--- a/graphene/utils/enum.py
+++ b/graphene/utils/enum.py
@@ -94,7 +94,7 @@ def _make_class_unpicklable(cls):
cls.__module__ = '<unknown>'
-class _EnumDict(dict):
+class _EnumDict(OrderedDict):
"""Track enum member or... | Use OrderedDict in Enum by default | py |
diff --git a/django/contrib/contacts/models.py b/django/contrib/contacts/models.py
index <HASH>..<HASH> 100755
--- a/django/contrib/contacts/models.py
+++ b/django/contrib/contacts/models.py
@@ -92,18 +92,23 @@ class IdentityData(models.Model):
class Identity(models.Model):
field_data = models.ManyToManyField(Ide... | Fixed a bug that existed when working with companies. Thanks, SmileyChris. | py |
diff --git a/test/test_sendgrid.py b/test/test_sendgrid.py
index <HASH>..<HASH> 100644
--- a/test/test_sendgrid.py
+++ b/test/test_sendgrid.py
@@ -739,7 +739,7 @@ class UnitTests(unittest.TestCase):
response = self.sg.client.mail.batch._(batch_id).get(request_headers=headers)
self.assertEqual(response... | Version Bump <I>: full v3 Web API support | py |
diff --git a/Xlib/protocol/display.py b/Xlib/protocol/display.py
index <HASH>..<HASH> 100644
--- a/Xlib/protocol/display.py
+++ b/Xlib/protocol/display.py
@@ -651,8 +651,10 @@ class Display(object):
if rtype == 1:
gotreq = self.parse_request_response(request) or gotreq
+ ... | protocol: fix handling of generic events Make sure we start a new iteration of the parse_response loop upon handling a response, so the code does not try to parse left over received data based on the previous request type. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -13,6 +13,7 @@ def get_version(relpath):
if "__version__" in line:
if '"' in line:
return line.split('"')[1]
+VERSION = get_version("almonds/almonds.py")
readme_file = open("readme_pypi.rst", "r")
READ... | Update setup.py version is used more than once | py |
diff --git a/discord/abc.py b/discord/abc.py
index <HASH>..<HASH> 100644
--- a/discord/abc.py
+++ b/discord/abc.py
@@ -767,6 +767,9 @@ class GuildChannel:
Moving the channel failed.
"""
+ if not kwargs:
+ return
+
beginning, end = kwargs.get('beginning'), kwargs.get('e... | Return early if no kwargs are given to GuildChannel.move | py |
diff --git a/pyrax/cloudloadbalancers.py b/pyrax/cloudloadbalancers.py
index <HASH>..<HASH> 100644
--- a/pyrax/cloudloadbalancers.py
+++ b/pyrax/cloudloadbalancers.py
@@ -471,11 +471,10 @@ class CloudLoadBalancerManager(BaseManager):
"""
Used to create the dict required to create a load balancer insta... | don't require nodes to be passed any more | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -93,6 +93,18 @@ def role_simplifier(processor, role, argument, content):
return format.get(role, "``{}``").format(content + extra.get(role, ""))
+@rst_pre_processor.add_role("pep8")
+def pep_simplifier(processor, ... | Fixed PEP8 role usage in changelog for PyPI description | py |
diff --git a/deploy_stack.py b/deploy_stack.py
index <HASH>..<HASH> 100644
--- a/deploy_stack.py
+++ b/deploy_stack.py
@@ -147,6 +147,8 @@ def check_token(client, token, timeout=120):
# Wait up to 120 seconds for token to be created.
# Utopic is slower, maybe because the devel series gets more
# package ... | Wait for applications to be ready before checking the token. | py |
diff --git a/test_path.py b/test_path.py
index <HASH>..<HASH> 100644
--- a/test_path.py
+++ b/test_path.py
@@ -263,11 +263,13 @@ class TestScratchDir:
# atime isn't tested because on Windows the resolution of atime
# is something like 24 hours.
+ threshold = 1
+
d = Path(tmpdir)
... | Set a tighter threshold for faster tests | py |
diff --git a/carbonate/sync.py b/carbonate/sync.py
index <HASH>..<HASH> 100644
--- a/carbonate/sync.py
+++ b/carbonate/sync.py
@@ -92,7 +92,7 @@ def heal_metric(source, dest):
def run_batch(metrics_to_sync, remote, local_storage, rsync_options):
- staging_dir = mkdtemp()
+ staging_dir = mkdtemp(prefix=remote... | Add prefix to temp dir in sync This will help debugging when syncing with several hosts | py |
diff --git a/spyder/utils/site/sitecustomize.py b/spyder/utils/site/sitecustomize.py
index <HASH>..<HASH> 100644
--- a/spyder/utils/site/sitecustomize.py
+++ b/spyder/utils/site/sitecustomize.py
@@ -242,6 +242,8 @@ if os.environ["QT_API"] == 'pyqt':
sip.setapi(qtype, 2)
except:
pass
+else:... | Sitecustomize: Remove QT_API from the environment This was causing errors to other libraries (e.g. Mayavi) that depend on this variable. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -19,7 +19,7 @@ tests_require = [
"coveralls",
"mock",
"pytz",
- "django-filter",
+ "django-filter<2",
"pytest-django>=3.3.2",
] + rest_framework_require | Pin a explicit version of django-filter (<2) | py |
diff --git a/DataHandling/setup.py b/DataHandling/setup.py
index <HASH>..<HASH> 100644
--- a/DataHandling/setup.py
+++ b/DataHandling/setup.py
@@ -9,6 +9,6 @@ setup(name='DataHandling',
author='Ashley Setter',
author_email='A.Setter@soton.ac.uk',
url=None,
- packages=['DataHandling', 'DataHand... | trying to fix travis pip installation | py |
diff --git a/nolds/measures.py b/nolds/measures.py
index <HASH>..<HASH> 100644
--- a/nolds/measures.py
+++ b/nolds/measures.py
@@ -41,7 +41,7 @@ def poly_fit(x, y, degree):
elif fitting_mode == FIT_RANSAC:
import sklearn.linear_model as sklin
import sklearn.preprocessing as skpre
- model = sklin.RANSACR... | uses fit_intercept=False to avoid having two linear components | py |
diff --git a/clashroyale/utils.py b/clashroyale/utils.py
index <HASH>..<HASH> 100644
--- a/clashroyale/utils.py
+++ b/clashroyale/utils.py
@@ -82,7 +82,7 @@ def tournamentsearch(k, v):
return k, v
def keys(k, v):
- if k not in ('keys', 'exclude', 'max', 'type'):
+ if k not in ('keys', 'exclude', 'max', 'p... | Allow support for `page` query param | py |
diff --git a/timepiece/contracts/models.py b/timepiece/contracts/models.py
index <HASH>..<HASH> 100644
--- a/timepiece/contracts/models.py
+++ b/timepiece/contracts/models.py
@@ -61,6 +61,16 @@ class ProjectContract(models.Model):
return reverse('view_contract', args=[self.pk])
@property
+ def pre_la... | added pre-launch properties to ProjectContract model | py |
diff --git a/hazelcast/connection.py b/hazelcast/connection.py
index <HASH>..<HASH> 100644
--- a/hazelcast/connection.py
+++ b/hazelcast/connection.py
@@ -333,6 +333,9 @@ class Connection(object):
def __repr__(self):
return "Connection(address=%s, id=%s)" % (self._address, self.id)
+ def __hash__(se... | add hash method to connection class (#<I>) | py |
diff --git a/jishaku/cog.py b/jishaku/cog.py
index <HASH>..<HASH> 100644
--- a/jishaku/cog.py
+++ b/jishaku/cog.py
@@ -52,7 +52,9 @@ class Jishaku:
def prepare_environment(self, ctx: commands.Context):
"""Update the REPL scope with variables relating to the current ctx"""
self.repl_global_scope.u... | Add asyncio and discord modules as default in REPL | py |
diff --git a/mysql/datadog_checks/mysql/mysql.py b/mysql/datadog_checks/mysql/mysql.py
index <HASH>..<HASH> 100644
--- a/mysql/datadog_checks/mysql/mysql.py
+++ b/mysql/datadog_checks/mysql/mysql.py
@@ -542,7 +542,9 @@ class MySql(AgentCheck):
else:
cursor.execute("SHOW SLAVE STATU... | Add debug log line for replication status (#<I>) * Add debug log line for replication status * Fix style | py |
diff --git a/salt/modules/linux_lvm.py b/salt/modules/linux_lvm.py
index <HASH>..<HASH> 100644
--- a/salt/modules/linux_lvm.py
+++ b/salt/modules/linux_lvm.py
@@ -252,11 +252,6 @@ def pvremove(devices, override=True):
'''
cmd = ['pvremove', '-y']
for device in devices.split(','):
- if not __salt__... | Remove buggy runner and its output | py |
diff --git a/django_core/db/models/mixins/urls.py b/django_core/db/models/mixins/urls.py
index <HASH>..<HASH> 100644
--- a/django_core/db/models/mixins/urls.py
+++ b/django_core/db/models/mixins/urls.py
@@ -27,7 +27,7 @@ class AbstractUrlLinkModelMixin(models.Model):
**attrs):
""... | Added method to get link text so it can be overridden. | py |
diff --git a/tests/test_autoconfig.py b/tests/test_autoconfig.py
index <HASH>..<HASH> 100644
--- a/tests/test_autoconfig.py
+++ b/tests/test_autoconfig.py
@@ -26,3 +26,11 @@ def test_autoconfig_none():
with patch('os.path.exists', return_value=False):
assert True == config('KeyFallback', cast=bool)
d... | Test we have access to envvar when we have no file | py |
diff --git a/km3pipe/io/evt.py b/km3pipe/io/evt.py
index <HASH>..<HASH> 100644
--- a/km3pipe/io/evt.py
+++ b/km3pipe/io/evt.py
@@ -76,11 +76,11 @@ class EvtPump(Pump): # pylint: disable:R0902
"""
def configure(self):
- self.filename = self.get('filename') or None
- self.filenames = self.ge... | Correct to more recommended syntax (or None -> , default=None) | py |
diff --git a/tests/opentrons_sdk/drivers/test_motor.py b/tests/opentrons_sdk/drivers/test_motor.py
index <HASH>..<HASH> 100644
--- a/tests/opentrons_sdk/drivers/test_motor.py
+++ b/tests/opentrons_sdk/drivers/test_motor.py
@@ -56,6 +56,7 @@ class OpenTronsTest(unittest.TestCase):
thread = Thread(target=_move... | add thread join to finish thread before test continuation | py |
diff --git a/pex/pex_info.py b/pex/pex_info.py
index <HASH>..<HASH> 100644
--- a/pex/pex_info.py
+++ b/pex/pex_info.py
@@ -10,13 +10,14 @@ from pex import pex_warnings
from pex.common import can_write_dir, open_zip, safe_mkdtemp
from pex.compatibility import PY2
from pex.compatibility import string as compatibility_... | Fix `--unzip` performance regression. (#<I>) This is a bandaid fix only. Appropriate comments have been added to help prevent re-regression with a longer term fix tracked by #<I>. Fixes #<I> | py |
diff --git a/src/setuptools_scm/config.py b/src/setuptools_scm/config.py
index <HASH>..<HASH> 100644
--- a/src/setuptools_scm/config.py
+++ b/src/setuptools_scm/config.py
@@ -112,6 +112,8 @@ class Configuration(object):
"""
Read Configuration from pyproject.toml (or similar)
"""
+ if n... | Avoid file-not-found errors when pyproject.toml isn't present | py |
diff --git a/uncompyle6/scanners/scanner26.py b/uncompyle6/scanners/scanner26.py
index <HASH>..<HASH> 100755
--- a/uncompyle6/scanners/scanner26.py
+++ b/uncompyle6/scanners/scanner26.py
@@ -174,7 +174,7 @@ class Scanner26(scan.Scanner2):
collection_type = op_name.split("_")[1]
... | Correct bug in long literal replacement for <I>-7 | py |
diff --git a/indra/sources/cwms/processor.py b/indra/sources/cwms/processor.py
index <HASH>..<HASH> 100644
--- a/indra/sources/cwms/processor.py
+++ b/indra/sources/cwms/processor.py
@@ -148,6 +148,10 @@ class CWMSProcessor(object):
events += evs
for event_term in events:
+ event_id =... | Not extract Migration if they are in Influences | py |
diff --git a/pylp/cli/run.py b/pylp/cli/run.py
index <HASH>..<HASH> 100644
--- a/pylp/cli/run.py
+++ b/pylp/cli/run.py
@@ -45,4 +45,5 @@ def run(path, tasks):
# Wait until all task are executed
async def wait_and_quit(loop):
from pylp.lib.tasks import running
- await asyncio.wait(map(lambda runner: runner.future, ... | Fix error when running Pylp with no tasks | py |
diff --git a/tool_provider.py b/tool_provider.py
index <HASH>..<HASH> 100644
--- a/tool_provider.py
+++ b/tool_provider.py
@@ -90,8 +90,19 @@ class ToolProvider(LaunchParamsMixin, RequestValidatorMixin, object):
return self.new_request.post_read_result()
def last_outcome_request(self):
+ '''
+ ... | Adds last_outcome_success method | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -12,7 +12,9 @@ except ImportError:
long_description = open('README.rst').read()
install_reqs = ['pyusb==1.0.0a3', 'units >= 0.5', 'argparse', 'requests==2.20.0',
- 'protobuf==2.6.1'] + ["windows-curses >= 1.1"] if "... | Updated setup.py for Travis compatability | py |
diff --git a/metric_learn/base_metric.py b/metric_learn/base_metric.py
index <HASH>..<HASH> 100644
--- a/metric_learn/base_metric.py
+++ b/metric_learn/base_metric.py
@@ -47,7 +47,27 @@ class BaseMetricLearner(object):
return X.dot(L.T)
def get_params(self, deep=False):
+ """Get parameters for this estimat... | Added comments for get_params, set_params | py |
diff --git a/tools/interop_matrix/client_matrix.py b/tools/interop_matrix/client_matrix.py
index <HASH>..<HASH> 100644
--- a/tools/interop_matrix/client_matrix.py
+++ b/tools/interop_matrix/client_matrix.py
@@ -97,7 +97,7 @@ LANG_RELEASE_MATRIX = {
'v1.13.0': None
},
{
- 'v1.14... | Add <I> to interop matrix | py |
diff --git a/PyFunceble/cli/processes/base.py b/PyFunceble/cli/processes/base.py
index <HASH>..<HASH> 100644
--- a/PyFunceble/cli/processes/base.py
+++ b/PyFunceble/cli/processes/base.py
@@ -183,6 +183,21 @@ class ProcessesManagerBase:
return wrapper
+ def ignore_if_running(func): # pylint: disable=no-... | Ensure that we don't start if workers are running. Indeed, before this patch, it was possible to try to restart the workers even if they were already running. This patch introduce a decorator which ignore the execution of the decorated method if all workers are already running. Contributors: * @spirillen | py |
diff --git a/geomdl/evaluators.py b/geomdl/evaluators.py
index <HASH>..<HASH> 100644
--- a/geomdl/evaluators.py
+++ b/geomdl/evaluators.py
@@ -92,6 +92,16 @@ class AbstractEvaluatorExtended(AbstractEvaluator):
"""
pass
+ @abc.abstractmethod
+ def remove_knot(self, direction, **kwargs):
+ ... | Add remove_knot to advanced evaluators | py |
diff --git a/taskqueue/taskqueue.py b/taskqueue/taskqueue.py
index <HASH>..<HASH> 100644
--- a/taskqueue/taskqueue.py
+++ b/taskqueue/taskqueue.py
@@ -35,7 +35,7 @@ def deserialize(data):
return target_class(**params)
def payloadBase64Decode(payload):
- decoded_string = base64.b64decode(payload).encode('asci... | fix: make encoding python3 friendly | py |
diff --git a/intranet/apps/eighth/views/admin/sponsors.py b/intranet/apps/eighth/views/admin/sponsors.py
index <HASH>..<HASH> 100644
--- a/intranet/apps/eighth/views/admin/sponsors.py
+++ b/intranet/apps/eighth/views/admin/sponsors.py
@@ -93,7 +93,7 @@ def sponsor_schedule_view(request, sponsor_id):
start_date = g... | fix exception in for_sponsor | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -70,16 +70,13 @@ if len(sys.argv) > 1 and sys.argv[1] == 'bdist_wininst':
version = __import__(BASE_PACKAGE).get_version()
-readme = open('README.md')
-description = readme.read()
-readme.close()
-
setup(
version = ... | Simplify setup.py description | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -1,9 +1,14 @@
from setuptools import setup
+with open("README.md", "r") as fh:
+ long_description = fh.read()
+
setup(
name='py_expression_eval',
version='0.3.7',
description='Python Mathematical Expressi... | Added long description to pypi setup | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -15,7 +15,7 @@ setup(
long_description=open('README.md').read(),
platforms='Cross Platform',
classifiers=[
- 'Development Status :: 0.1.1 - Beta',
+ 'Development Status :: 4 - Beta',
'Inte... | Pypi error in setup.py | py |
diff --git a/trezorlib/transport/__init__.py b/trezorlib/transport/__init__.py
index <HASH>..<HASH> 100644
--- a/trezorlib/transport/__init__.py
+++ b/trezorlib/transport/__init__.py
@@ -82,7 +82,7 @@ def get_transport(path=None, prefix_search=False):
try:
return enumerate_devices()[0]
ex... | trezorlib/transport: for get_transport(None), raise exception from None if no trezor is found, because the IndexError should not be part of the traceback | 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
@@ -9671,15 +9671,15 @@ axis : {0 or 'index', 1 or 'columns', None}, default 0
original index.
* None : reduce all axes, return a scalar.
+bool_only : boolean,... | DOC: Reorders DataFrame.any and all docstrings (#<I>) | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -2,7 +2,7 @@ from distutils.core import setup
setup(
name='lament',
- version='v0.3',
+ version='v0.4',
author='Nic Roland',
author_email='nicroland9@gmail.com',
packages=['lament'], | Bumped version to <I>. | py |
diff --git a/scapy/arch/unix.py b/scapy/arch/unix.py
index <HASH>..<HASH> 100644
--- a/scapy/arch/unix.py
+++ b/scapy/arch/unix.py
@@ -49,7 +49,7 @@ def read_routes():
if SOLARIS:
f = os.popen("netstat -rvn -f inet")
elif FREEBSD:
- f = os.popen("netstat -rnW") # -W to handle long interface n... | Fix scapy init on FreeBSD. - Read ipv4 table in read_routes() instead of all, fixing IPv6-only setups. - Address FreeBSD <I> netstat -rnW output change by skipping "nhop" column. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -59,7 +59,8 @@ setup(
'django-extensions',
'djangorestframework',
'south',
- 'traits'
+ 'traits',
+ 'networkx'
],
platforms=['OS Independent'],
license='Gnu Public... | fix(setup): Add requirement on networkx | py |
diff --git a/chamber/version.py b/chamber/version.py
index <HASH>..<HASH> 100644
--- a/chamber/version.py
+++ b/chamber/version.py
@@ -1,4 +1,4 @@
-VERSION = (0, 0, 8)
+VERSION = (0, 0, 9)
def get_version(): | <I> Enums uses composition instead of inheritance from set and dicts | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -7,15 +7,15 @@ from gos import version as gos_version
setup(
name="gos",
- version=gos_version,
+ version="0.0.0",
packages=["gos", "tests"],
install_requires=list(map(lambda entry: entry.strip(), open(... | setup.py file update with new description and links | py |
diff --git a/test/test_read_preferences.py b/test/test_read_preferences.py
index <HASH>..<HASH> 100644
--- a/test/test_read_preferences.py
+++ b/test/test_read_preferences.py
@@ -355,19 +355,12 @@ class TestCommandAndReadPreference(TestReplicaSetClientBase):
write_concern=WriteConcern(w=self.w))
c... | Fix test of mapreduce and read preference. | py |
diff --git a/cwltool/provenance.py b/cwltool/provenance.py
index <HASH>..<HASH> 100644
--- a/cwltool/provenance.py
+++ b/cwltool/provenance.py
@@ -1026,6 +1026,7 @@ class ResearchObject():
name = "activity"
p = os.path.join(LOGS, "%s.%s.txt" % (name, activity_uuid))
_logger.debug("[proven... | log file annotation in RO manifest Also avoid noisy warning that happens for any input files | py |
diff --git a/setup_utils.py b/setup_utils.py
index <HASH>..<HASH> 100755
--- a/setup_utils.py
+++ b/setup_utils.py
@@ -48,23 +48,27 @@ SETUP_REQUIRES = {
# -- utilities ----------------------------------------------------------------
-def in_git_clone():
- """Returns `True` if the current directory is a git rep... | setup_utils.py: simplified reuse_dist_file don't check timestamps, that doesn't work well, just say that if we can regenerate it, do, otherwise, don't | py |
diff --git a/learning.py b/learning.py
index <HASH>..<HASH> 100644
--- a/learning.py
+++ b/learning.py
@@ -398,12 +398,12 @@ def AdaBoost(L, K):
"""[Fig. 18.34]"""
def train(dataset):
examples, target = dataset.examples, dataset.target
- epsilon = 1./(2*N)
N = len(examples)
+ e... | Fixed some bugs in AdaBoost. | py |
diff --git a/src/streamlink/plugins/picarto.py b/src/streamlink/plugins/picarto.py
index <HASH>..<HASH> 100644
--- a/src/streamlink/plugins/picarto.py
+++ b/src/streamlink/plugins/picarto.py
@@ -13,7 +13,7 @@ _url_re = re.compile(r"""
""", re.VERBOSE)
_channel_casing_re = re.compile(r"""
- <script>placeStreamCha... | Picarto plugin: multistream workaround (fixes #<I>) This works for both multistream and individual stream as long as it isn't a multistream where the primary streamer is offline. If you go to a page linked to a multistream but the primary streamer is offline, then this will incorrectly match the secondary or tertiary... | py |
diff --git a/edeposit/amqp/alephdaemon.py b/edeposit/amqp/alephdaemon.py
index <HASH>..<HASH> 100755
--- a/edeposit/amqp/alephdaemon.py
+++ b/edeposit/amqp/alephdaemon.py
@@ -29,11 +29,15 @@ class AlephDaemon(pikadaemon.PikaDaemon):
#= Main program ===============================================================
if ... | --foreground invocation changed. | py |
diff --git a/great_expectations/dataset/base.py b/great_expectations/dataset/base.py
index <HASH>..<HASH> 100644
--- a/great_expectations/dataset/base.py
+++ b/great_expectations/dataset/base.py
@@ -74,11 +74,12 @@ class DataSet(object):
del all_args["output_format"]
all_args... | Make deep copy of all_args in expectation (#<I>) | py |
diff --git a/pandas/tests/io/test_compression.py b/pandas/tests/io/test_compression.py
index <HASH>..<HASH> 100644
--- a/pandas/tests/io/test_compression.py
+++ b/pandas/tests/io/test_compression.py
@@ -11,6 +11,8 @@ import zipfile
import pytest
+from pandas.compat import is_platform_windows
+
import pandas as pd... | refactor: use is_platform_windows() (#<I>) | py |
diff --git a/tests/test_envbuilder.py b/tests/test_envbuilder.py
index <HASH>..<HASH> 100644
--- a/tests/test_envbuilder.py
+++ b/tests/test_envbuilder.py
@@ -119,12 +119,14 @@ class EnvCreationTestCase(unittest.TestCase):
mock_create.return_value = ('env_path', 'env_bin_path', 'pip_installed')
... | Really assert 'destroy_venv' being called | py |
diff --git a/cppimport/importer.py b/cppimport/importer.py
index <HASH>..<HASH> 100644
--- a/cppimport/importer.py
+++ b/cppimport/importer.py
@@ -16,6 +16,22 @@ from cppimport.templating import run_templating
logger = logging.getLogger(__name__)
+class add_to_sys_path:
+ """A Context Manager to temporary add a... | Manipulate sys.path to find the just built modules (#<I>) .cpp files built with cppimport can be located anywhere, so let's not assume that python knows where they are located. Temporarily add the module path to sys.path to ensure loading works. (This fixes `python3 -m cppimport build ...` for me at $dayjob.) | 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
@@ -542,9 +542,8 @@ class PmapMaker(object):
probs += (1. - pne) * ctx.weight
def _ruptures(self, src... | Reduced performance_data [skip CI] | py |
diff --git a/tests/test_treelikelihood.py b/tests/test_treelikelihood.py
index <HASH>..<HASH> 100644
--- a/tests/test_treelikelihood.py
+++ b/tests/test_treelikelihood.py
@@ -246,7 +246,7 @@ class test_TreeLikelihood_ExpCM(unittest.TestCase):
"Large difference in loglik: {0} vs {1}".format(
... | changed the tolerance for test in test_treelikelihood.py | py |
diff --git a/netmiko/extreme/extreme_exos.py b/netmiko/extreme/extreme_exos.py
index <HASH>..<HASH> 100644
--- a/netmiko/extreme/extreme_exos.py
+++ b/netmiko/extreme/extreme_exos.py
@@ -15,7 +15,7 @@ class ExtremeExosBase(NoConfig, CiscoSSHConnection):
"""
def session_preparation(self) -> None:
- se... | Fix extreme exos read-only account issue (#<I>) | py |
diff --git a/demcoreg/dem_align.py b/demcoreg/dem_align.py
index <HASH>..<HASH> 100755
--- a/demcoreg/dem_align.py
+++ b/demcoreg/dem_align.py
@@ -443,7 +443,7 @@ def main(argv=None):
#Apply final horizontal and vertial shift to the original dataset
#Note: potentially issues if we used a different projection ... | bug with dz_total in the final align dataset update (#<I>) * converting tilt coefficients to list * fix bug with dz total | py |
diff --git a/paramiko/agent.py b/paramiko/agent.py
index <HASH>..<HASH> 100644
--- a/paramiko/agent.py
+++ b/paramiko/agent.py
@@ -113,7 +113,7 @@ class AgentProxyThread(threading.Thread):
self.__inr = r
self.__addr = addr # This should be an IP address as a string? or None
self._... | Update agent.py Updated logic for error checking. | py |
diff --git a/law/workflow/base.py b/law/workflow/base.py
index <HASH>..<HASH> 100644
--- a/law/workflow/base.py
+++ b/law/workflow/base.py
@@ -267,6 +267,12 @@ class Workflow(Task):
return luigi.task.getpaths(self.workflow_proxy.requires())
+ def requires_from_branch(self):
+ if self.is_branch():... | Add requires_from_branch to workflows. | py |
diff --git a/salt/transport/ipc.py b/salt/transport/ipc.py
index <HASH>..<HASH> 100644
--- a/salt/transport/ipc.py
+++ b/salt/transport/ipc.py
@@ -777,14 +777,11 @@ class IPCMessageSubscriber(IPCClient):
'''
if not self._closing:
IPCClient.close(self)
- # This will prevent this... | Only run the closing routines if really closing. | py |
diff --git a/art/art.py b/art/art.py
index <HASH>..<HASH> 100644
--- a/art/art.py
+++ b/art/art.py
@@ -501,7 +501,7 @@ def text2art(text, font=DEFAULT_FONT, chr_ignore=True, decoration=None):
chr_ignore=chr_ignore,
letters=letters)
... | fix : minor edit in decoration section of text2art function | py |
diff --git a/hess.py b/hess.py
index <HASH>..<HASH> 100644
--- a/hess.py
+++ b/hess.py
@@ -700,22 +700,13 @@ class ORCA_HESS(object):
## next gp
# Double-check that the number of atoms retrieved matches the
- # number indicated in the HESS file; geometry size also.
+ # number... | ORCA_HESS: Eliminated redundant checks Culled redundant consistency checks when pulling the geometry from the .hess file | py |
diff --git a/transformers/configuration_utils.py b/transformers/configuration_utils.py
index <HASH>..<HASH> 100644
--- a/transformers/configuration_utils.py
+++ b/transformers/configuration_utils.py
@@ -58,8 +58,8 @@ class PretrainedConfig(object):
self.use_bfloat16 = kwargs.pop('use_bfloat16', False)
... | Adding labels mapping for classification models in their respective config. | py |
diff --git a/riak/tests/__init__.py b/riak/tests/__init__.py
index <HASH>..<HASH> 100644
--- a/riak/tests/__init__.py
+++ b/riak/tests/__init__.py
@@ -28,10 +28,10 @@ DUMMY_HTTP_PORT = int(os.environ.get('DUMMY_HTTP_PORT', '1023'))
DUMMY_PB_PORT = int(os.environ.get('DUMMY_PB_PORT', '1022'))
-SKIP_SEARCH = int(os.... | search/yz + index tests off by default | py |
diff --git a/assess_model_migration.py b/assess_model_migration.py
index <HASH>..<HASH> 100755
--- a/assess_model_migration.py
+++ b/assess_model_migration.py
@@ -223,10 +223,6 @@ def ensure_migration_including_resources_succeeds(source_client, dest_client):
- Migrate that model to the other environment
... | Move re-migration to new branch | py |
diff --git a/pyathena/formatter.py b/pyathena/formatter.py
index <HASH>..<HASH> 100644
--- a/pyathena/formatter.py
+++ b/pyathena/formatter.py
@@ -162,8 +162,11 @@ class DefaultParameterFormatter(Formatter):
raise ProgrammingError("Query is none or empty.")
operation = operation.strip()
- ... | Fix escape handling for insert statements containing single quotes (fix #<I>) | py |
diff --git a/py/testdir_single_jvm/test_GLM_model_key_unique.py b/py/testdir_single_jvm/test_GLM_model_key_unique.py
index <HASH>..<HASH> 100644
--- a/py/testdir_single_jvm/test_GLM_model_key_unique.py
+++ b/py/testdir_single_jvm/test_GLM_model_key_unique.py
@@ -23,7 +23,9 @@ class Basic(unittest.TestCase):
fo... | h2o.py sets a default fixed GLM model key now. (destination_key) use None here, so h2o will create it's model key names for the test | py |
diff --git a/example/ctc/hyperparams.py b/example/ctc/hyperparams.py
index <HASH>..<HASH> 100644
--- a/example/ctc/hyperparams.py
+++ b/example/ctc/hyperparams.py
@@ -29,7 +29,7 @@ class Hyperparams(object):
self._eval_epoch_size = 3000
self._batch_size = 128
self._num_epoch = 100
- se... | Fix learning rate of ctc example (#<I>) The training of ctc will not converge in <I> epochs with learning rate <I>, So change it to <I>. | py |
diff --git a/linguist/tests/settings.py b/linguist/tests/settings.py
index <HASH>..<HASH> 100644
--- a/linguist/tests/settings.py
+++ b/linguist/tests/settings.py
@@ -66,5 +66,16 @@ LOGGING = {
},
}
+ugettext = lambda s: s
+
+LANGUAGES = (
+ ('en', ugettext(u'English')),
+ ('de', ugettext(u'German')),
+ ... | Add LANGUAGES to test settings. | py |
diff --git a/host/fei4/register.py b/host/fei4/register.py
index <HASH>..<HASH> 100644
--- a/host/fei4/register.py
+++ b/host/fei4/register.py
@@ -579,7 +579,7 @@ class FEI4Register(object):
# reg.value.fill(value)
except ValueError: # value is path to pixel config
if r... | ENH: also use exclamation mark to invert mask | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -68,7 +68,7 @@ module = Extension(
setup(
name='pyahocorasick',
- version='2.0.0.beta1',
+ version='2.0.0b1',
ext_modules=[module],
description=( | Use PyPI ways of beta versioning | 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
@@ -950,11 +950,12 @@ class HazardCalculation(djm.Model):
"""
if self._points_to_compute is None:
if self.pk and s... | add order by when getting hazard sites from an exposure | py |
diff --git a/bypy.py b/bypy.py
index <HASH>..<HASH> 100755
--- a/bypy.py
+++ b/bypy.py
@@ -2408,7 +2408,11 @@ try to create a file at PCS by combining slices, having MD5s specified
elif offset > 0:
headers = { "Range" : "bytes={}-".format(offset) }
elif rsize >= 1: # offset == 0
- headers = { "Range" : ... | Add in comments about the last change (Range for first chunk) | py |
diff --git a/umbra/engine.py b/umbra/engine.py
index <HASH>..<HASH> 100644
--- a/umbra/engine.py
+++ b/umbra/engine.py
@@ -32,6 +32,7 @@ import platform
import re
import sys
import time
+from PyQt4.QtCore import PYQT_VERSION_STR
from PyQt4.QtCore import QEvent
from PyQt4.QtCore import QEventLoop
from PyQt4.QtCore... | Verbose "PyQt" version on startup. | py |
diff --git a/HydraServer/python/HydraServer/db/model.py b/HydraServer/python/HydraServer/db/model.py
index <HASH>..<HASH> 100644
--- a/HydraServer/python/HydraServer/db/model.py
+++ b/HydraServer/python/HydraServer/db/model.py
@@ -315,7 +315,7 @@ class Attr(Base):
attr_id = Column(Integer(), primary_ke... | fix mysql build not working | py |
diff --git a/lib/websession_templates.py b/lib/websession_templates.py
index <HASH>..<HASH> 100644
--- a/lib/websession_templates.py
+++ b/lib/websession_templates.py
@@ -1119,11 +1119,17 @@ class Template:
'ln' : ln,
'administration' : _("administration"),
... | If SSO then the logout link brings directly to SSO logout. | py |
diff --git a/test/countries/test_united_states.py b/test/countries/test_united_states.py
index <HASH>..<HASH> 100644
--- a/test/countries/test_united_states.py
+++ b/test/countries/test_united_states.py
@@ -42,6 +42,9 @@ class TestUS(unittest.TestCase):
self.assertNotIn(date(year, 6, 19), self.holidays)
... | Tests for observed Juneteenth Day | py |
diff --git a/conftest.py b/conftest.py
index <HASH>..<HASH> 100644
--- a/conftest.py
+++ b/conftest.py
@@ -177,7 +177,12 @@ def function_scope_seed(request):
yield # run the test
- if request.node.rep_call.outcome == 'failed':
+ if request.node.rep_setup.failed:
+ logging.info("Setting up a test ... | Fix conftest.py function_scope_seed (#<I>) request.node.rep_call is only present if the setup succeeded. Thus test for request.node.rep_setup.failed This improves error messages during test development (ie. when running pytest with a wrong test) | py |
diff --git a/sentry_sdk/consts.py b/sentry_sdk/consts.py
index <HASH>..<HASH> 100644
--- a/sentry_sdk/consts.py
+++ b/sentry_sdk/consts.py
@@ -25,7 +25,6 @@ if MYPY:
{
"max_spans": Optional[int],
"record_sql_params": Optional[bool],
- "auto_enabling_integrations": Optional[... | ref: Remove experiments for auto integrations | py |
diff --git a/kubespawner/spawner.py b/kubespawner/spawner.py
index <HASH>..<HASH> 100644
--- a/kubespawner/spawner.py
+++ b/kubespawner/spawner.py
@@ -1954,8 +1954,6 @@ class KubeSpawner(Spawner):
user_options (dict): the selected profile in the user_options form,
e.g. ``{"profile": "cpus-... | always retrieve profile slug from form options into user_options | py |
diff --git a/cutil/repeating_timer.py b/cutil/repeating_timer.py
index <HASH>..<HASH> 100644
--- a/cutil/repeating_timer.py
+++ b/cutil/repeating_timer.py
@@ -3,19 +3,22 @@ from threading import Timer
class RepeatingTimer():
- def __init__(self, interval, func, repeat=True, *args, **kwargs):
+ def __init__(s... | Added max_tries to timer | py |
diff --git a/gwpy/cli/cliproduct.py b/gwpy/cli/cliproduct.py
index <HASH>..<HASH> 100644
--- a/gwpy/cli/cliproduct.py
+++ b/gwpy/cli/cliproduct.py
@@ -735,11 +735,11 @@ class CliProduct(object):
""" If requested add DQ segments
"""
std_segments = [
- '{ifo}:DMT-GRD_ISC_LOCK_NOM... | change std_segments indent | py |
diff --git a/wrappers/python/setup.py b/wrappers/python/setup.py
index <HASH>..<HASH> 100644
--- a/wrappers/python/setup.py
+++ b/wrappers/python/setup.py
@@ -9,6 +9,6 @@ setup(
author='Vyacheslav Gudkov',
author_email='vyacheslav.gudkov@dsr-company.com',
description='This is the official SDK for Hyperle... | Fix pytest version in python wrapper deps. | py |
diff --git a/spyder/plugins/ipythonconsole/comms/kernelcomm.py b/spyder/plugins/ipythonconsole/comms/kernelcomm.py
index <HASH>..<HASH> 100644
--- a/spyder/plugins/ipythonconsole/comms/kernelcomm.py
+++ b/spyder/plugins/ipythonconsole/comms/kernelcomm.py
@@ -43,7 +43,7 @@ class KernelComm(CommBase, QObject):
s... | pickle_protocol key rename | py |
diff --git a/numina/core/recipereqs.py b/numina/core/recipereqs.py
index <HASH>..<HASH> 100644
--- a/numina/core/recipereqs.py
+++ b/numina/core/recipereqs.py
@@ -56,16 +56,12 @@ class RecipeRequirements(object):
else:
raise ValueError(' %r of type %r not defined' % (key, req.type)... | Remove validation in RecipeRequirement construction, only 'store' can fail | py |
diff --git a/src/transformers/data/data_collator.py b/src/transformers/data/data_collator.py
index <HASH>..<HASH> 100644
--- a/src/transformers/data/data_collator.py
+++ b/src/transformers/data/data_collator.py
@@ -505,10 +505,11 @@ class DataCollatorForNextSentencePrediction:
# This should rar... | Add condition (#<I>) | py |
diff --git a/werkzeug/routing.py b/werkzeug/routing.py
index <HASH>..<HASH> 100644
--- a/werkzeug/routing.py
+++ b/werkzeug/routing.py
@@ -599,9 +599,9 @@ class Rule(RuleFactory):
.. versionadded:: 0.9
"""
- if not converter_name in map.converters:
+ if not converter_name in self.map.c... | Fixed a bug introduced in latest commit that broke the routing system | py |
diff --git a/pylti/flask.py b/pylti/flask.py
index <HASH>..<HASH> 100644
--- a/pylti/flask.py
+++ b/pylti/flask.py
@@ -85,7 +85,7 @@ class LTI(object):
def _verify_any(self):
"""
- Verify is request is in session or initial request
+ Verify that request is in session or initial request
... | removed contents.rst, moved its toc to index.rst. Removed multiple additional files that we don't use. Moved the license.rst file to the docs directory. | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.