diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/django_tenants/models.py b/django_tenants/models.py
index <HASH>..<HASH> 100644
--- a/django_tenants/models.py
+++ b/django_tenants/models.py
@@ -31,6 +31,11 @@ class TenantMixin(models.Model):
schema_name = models.CharField(max_length=63, unique=True,
validators=[_... | See #<I> problem with middle ware | py |
diff --git a/src/foremast/elb/create_elb.py b/src/foremast/elb/create_elb.py
index <HASH>..<HASH> 100644
--- a/src/foremast/elb/create_elb.py
+++ b/src/foremast/elb/create_elb.py
@@ -55,14 +55,14 @@ class SpinnakerELB:
region = self.region
elb_settings = self.properties['elb']
health_settings... | added purpose to get_subnet for elbs | py |
diff --git a/userena/urls.py b/userena/urls.py
index <HASH>..<HASH> 100644
--- a/userena/urls.py
+++ b/userena/urls.py
@@ -87,7 +87,7 @@ urlpatterns = patterns('',
name='userena_profile_edit'),
# View profiles
- url(r'^(?P<username>(?![signout|signup|signin])[\.\w]+)/$',
+ url(r'^(?P<username>(?!si... | Fixed the regular expression to actually exclude signout|signup|signin, instead of usernames that start with the characters 'signoutp'. | py |
diff --git a/pymatgen/io/ase.py b/pymatgen/io/ase.py
index <HASH>..<HASH> 100644
--- a/pymatgen/io/ase.py
+++ b/pymatgen/io/ase.py
@@ -101,7 +101,7 @@ class AseAtomsAdaptor:
# Add any remaining site properties to the ASE Atoms object
for prop in structure.site_properties:
- if prop not in... | Refine site property passing in ASEAtomsAdaptor | py |
diff --git a/pyfakefs/fake_filesystem.py b/pyfakefs/fake_filesystem.py
index <HASH>..<HASH> 100644
--- a/pyfakefs/fake_filesystem.py
+++ b/pyfakefs/fake_filesystem.py
@@ -830,8 +830,10 @@ class FakeFilesystem(object):
"""
def _ComponentsToPath(component_folders):
- return '%s%s' % (self.path_separator,... | Fix ResolvePath() for Windows paths - forgot to commit file | py |
diff --git a/shapefile.py b/shapefile.py
index <HASH>..<HASH> 100644
--- a/shapefile.py
+++ b/shapefile.py
@@ -3,13 +3,13 @@ shapefile.py
Provides read and write support for ESRI Shapefiles.
author: jlawhead<at>geospatialpython.com
date: 2015/06/22
-version: 1.2.6
+version: 1.2.7
Compatible with Python version... | Corrected Version Number error in shapefile.py | py |
diff --git a/xarray/tests/test_plot.py b/xarray/tests/test_plot.py
index <HASH>..<HASH> 100644
--- a/xarray/tests/test_plot.py
+++ b/xarray/tests/test_plot.py
@@ -2251,6 +2251,7 @@ class TestDatetimePlot(PlotTestCase):
self.darray.plot.line()
+@pytest.mark.xfail(reason="Failing on upstream tests asof 2020-... | xfail failing upstream plotting tests (#<I>) * xfail failing upstream plotting tests * _ * _ | py |
diff --git a/dataviews/collector.py b/dataviews/collector.py
index <HASH>..<HASH> 100644
--- a/dataviews/collector.py
+++ b/dataviews/collector.py
@@ -589,8 +589,8 @@ class Analyze(Collect):
else:
self.times = []
self.kwargs = kwargs
- self.stackwise = self.kwargs.pop('stackwise', ... | Enable passing of mode (set/merge) via kwargs in Collector.analyze | py |
diff --git a/timepiece/tests/projects.py b/timepiece/tests/projects.py
index <HASH>..<HASH> 100644
--- a/timepiece/tests/projects.py
+++ b/timepiece/tests/projects.py
@@ -186,7 +186,8 @@ class InvoiceTestCase(TimepieceDataTestCase):
from_date.strftime('%Y-%m-%d')
]
url = reverse('time_she... | fix test with new type slug | py |
diff --git a/scheduler/coreos.py b/scheduler/coreos.py
index <HASH>..<HASH> 100644
--- a/scheduler/coreos.py
+++ b/scheduler/coreos.py
@@ -195,11 +195,10 @@ SchedulerClient = FleetClient
CONTAINER_TEMPLATE = """
[Unit]
Description={name}
-After=docker.service
-Requires=docker.service
[Service]
ExecStartPre=/usr/... | fix(systemd): handle app containers on restarts This was missed in <I>a4, which allows app containers to be properly restarted on ungraceful host reboots. See the discussion at #<I> for more information. | py |
diff --git a/openquake/baselib/parallel.py b/openquake/baselib/parallel.py
index <HASH>..<HASH> 100644
--- a/openquake/baselib/parallel.py
+++ b/openquake/baselib/parallel.py
@@ -773,11 +773,7 @@ class Starmap(object):
if queue:
func, *args = queue.pop()
self.s... | Enforced the num_cores limitation | py |
diff --git a/tabula/io.py b/tabula/io.py
index <HASH>..<HASH> 100644
--- a/tabula/io.py
+++ b/tabula/io.py
@@ -678,8 +678,13 @@ def _extract_from(raw_json, pandas_options=None):
df = pd.DataFrame(data=list_data, columns=_columns, **pandas_options)
- for c in df.columns:
- df[c] = pd.to_nu... | Adding dtype str in read pdf with template | py |
diff --git a/pandas/core/groupby/generic.py b/pandas/core/groupby/generic.py
index <HASH>..<HASH> 100644
--- a/pandas/core/groupby/generic.py
+++ b/pandas/core/groupby/generic.py
@@ -814,6 +814,14 @@ class DataFrameGroupBy(GroupBy[DataFrame]):
1 1 2
2 3 4
+ User-defined function for aggregati... | DOC: added example of valid input dict in dfgroupby.aggregate (#<I>) * DOC: added example of valid input dict in dfgroupby.aggregate * Updated line spacing to pass flake8 test * Removed trailing whitespace * retrying tests * Rerun tests * added user-defined function to examples * Update generic.py | py |
diff --git a/leonardo/module/media/models/foldermodels.py b/leonardo/module/media/models/foldermodels.py
index <HASH>..<HASH> 100644
--- a/leonardo/module/media/models/foldermodels.py
+++ b/leonardo/module/media/models/foldermodels.py
@@ -4,6 +4,7 @@ from __future__ import unicode_literals
from django.contrib.auth imp... | Slugify media folder logical path | py |
diff --git a/rqalpha/data/data_accessor.py b/rqalpha/data/data_accessor.py
index <HASH>..<HASH> 100644
--- a/rqalpha/data/data_accessor.py
+++ b/rqalpha/data/data_accessor.py
@@ -7,6 +7,7 @@ import pandas as pd
from .bar import BarObject
from ..utils.context import ExecutionContext
from .data_source import LocalData... | can only access yesterday history in before_trading | py |
diff --git a/mbdata/replication.py b/mbdata/replication.py
index <HASH>..<HASH> 100644
--- a/mbdata/replication.py
+++ b/mbdata/replication.py
@@ -245,7 +245,7 @@ def load_tar(filename, db, config, ignored_schemas, ignored_tables):
logger.info("Skipping %s (table %s already contains data)", name, fulltable... | Make the changes compatible with python2 | py |
diff --git a/spyder_kernels/console/tests/test_console_kernel.py b/spyder_kernels/console/tests/test_console_kernel.py
index <HASH>..<HASH> 100644
--- a/spyder_kernels/console/tests/test_console_kernel.py
+++ b/spyder_kernels/console/tests/test_console_kernel.py
@@ -16,6 +16,7 @@ import os.path as osp
# Test imports... | Testing: Skip test_cwd_in_sys_path because that problem was fixed in IPython <I> | py |
diff --git a/doc/conf.py b/doc/conf.py
index <HASH>..<HASH> 100644
--- a/doc/conf.py
+++ b/doc/conf.py
@@ -45,9 +45,9 @@ copyright = 'The Spyder Project Contributors'
# built documents.
#
# The short X.Y version.
-version = '2.3'
+version = '3'
# The full version, including alpha/beta/rc tags.
-release = '2.3... | Docs: Update Spyder version | py |
diff --git a/command/bdist_wininst.py b/command/bdist_wininst.py
index <HASH>..<HASH> 100644
--- a/command/bdist_wininst.py
+++ b/command/bdist_wininst.py
@@ -338,8 +338,8 @@ class bdist_wininst(Command):
bv = '14.0'
else:
bv = '.'.join(CRT_ASSEMBLY_VERSION.split('.', 2)[:... | bpo-<I>: Fix distutils bdist_wininst for CRT <I> (#<I>) CRT <I> is binary compatible with CRT <I>. | py |
diff --git a/util/text.py b/util/text.py
index <HASH>..<HASH> 100644
--- a/util/text.py
+++ b/util/text.py
@@ -52,7 +52,10 @@ def text_to_char_array(original, alphabet):
Given a Python string ``original``, remove unsupported characters, map characters
to integers and return a numpy array representing the proc... | Checking for empty transcripts during character encoding This way we can get a plain English exception early, rather than a matrix shape error during training. | py |
diff --git a/examples/cuda/spmv.py b/examples/cuda/spmv.py
index <HASH>..<HASH> 100755
--- a/examples/cuda/spmv.py
+++ b/examples/cuda/spmv.py
@@ -10,7 +10,7 @@ nrows = numpy.int32(128*1024)
ncols = 128*1024
nnz = int(nrows*ncols*0.001)
-#generate spare matrix
+#generate sparse matrix in CSR
rows = numpy.asarray([... | Update spmv.py Fixed typo in the comments | py |
diff --git a/salt/modules/gentoo_service.py b/salt/modules/gentoo_service.py
index <HASH>..<HASH> 100644
--- a/salt/modules/gentoo_service.py
+++ b/salt/modules/gentoo_service.py
@@ -30,7 +30,7 @@ def get_enabled():
ret = set()
lines = __salt__['cmd.run']('rc-update show').splitlines()
for line in lines:... | Fix PEP8 E<I> - test for membership should be "not in" | py |
diff --git a/libvcs/conftest.py b/libvcs/conftest.py
index <HASH>..<HASH> 100644
--- a/libvcs/conftest.py
+++ b/libvcs/conftest.py
@@ -324,6 +324,7 @@ def add_doctest_fixtures(
create_git_remote_repo: CreateRepoCallbackFixtureProtocol,
create_svn_remote_repo: CreateRepoCallbackFixtureProtocol,
create_hg_... | tests: Add git_local_clone fixture to doctest | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -4,13 +4,15 @@ from pip.req import parse_requirements
install_reqs = parse_requirements("requirements.txt", session=False)
reqs = [str(ir.req) for ir in install_reqs]
+sdk_package_name = 'alooma_pysdk'
from distutils.co... | Fixes to setup.py | py |
diff --git a/django_inet/models.py b/django_inet/models.py
index <HASH>..<HASH> 100644
--- a/django_inet/models.py
+++ b/django_inet/models.py
@@ -2,6 +2,7 @@
import ipaddress
from django.db import models
from django.core.exceptions import ValidationError
+from django.core.validators import URLValidator as DjangoURL... | URLField with support for additional schemes during validation | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -4,7 +4,7 @@ from setuptools import setup
setup(
name='upcloud-api',
- version='0.4.4',
+ version='0.4.5',
description='UpCloud API Client',
author='Elias Nygren',
maintainer='Mika Lackman', | version: update to <I> | py |
diff --git a/salt/utils/parsers.py b/salt/utils/parsers.py
index <HASH>..<HASH> 100644
--- a/salt/utils/parsers.py
+++ b/salt/utils/parsers.py
@@ -936,11 +936,13 @@ class SaltKeyOptionParser(OptionParser, ConfigDirMixIn, MergeConfigMixIn,
actions_group.add_option(
'-l', '--list',
defa... | Update salt-key CLI help This rewords the help for "salt-key -l". This same wording was used to update the manpage in f2b<I>b | py |
diff --git a/pods/lab.py b/pods/lab.py
index <HASH>..<HASH> 100644
--- a/pods/lab.py
+++ b/pods/lab.py
@@ -174,10 +174,11 @@ if gdata_available:
# share a document with the given list of users.
for user in self.users.Email:
sheet = self._get_sheet(user)
- if use... | Changes for ambassadors lab class. | py |
diff --git a/salt/modules/win_system.py b/salt/modules/win_system.py
index <HASH>..<HASH> 100644
--- a/salt/modules/win_system.py
+++ b/salt/modules/win_system.py
@@ -716,17 +716,17 @@ def set_system_date_time(years=None,
return False
# Check for passed values. If not passed, use current values
- if ... | Fix win_system.set_system_date_time Previously time values could not be set to zero and would simply leave the previous time value when attempting to set the time. | py |
diff --git a/redisdl.py b/redisdl.py
index <HASH>..<HASH> 100755
--- a/redisdl.py
+++ b/redisdl.py
@@ -81,7 +81,7 @@ def dump(fp, host='localhost', port=6379, password=None, db=0, pretty=False,
def _reader(r, pretty, encoding):
for key in r.keys():
key = key.decode(encoding)
- type = r.type(key).d... | Type is not user data and should be decoded as ascii. See also <URL> | py |
diff --git a/anharmonic/settings.py b/anharmonic/settings.py
index <HASH>..<HASH> 100644
--- a/anharmonic/settings.py
+++ b/anharmonic/settings.py
@@ -8,7 +8,8 @@ class Phono3pySettings(Settings):
self._coarse_mesh_shifts = None
self._cutoff_fc3_distance = None
self._cutoff_pair_distance = No... | Default boundary mean free path is set 1cm to avoid divergence. | py |
diff --git a/python/vaex/webserver.py b/python/vaex/webserver.py
index <HASH>..<HASH> 100644
--- a/python/vaex/webserver.py
+++ b/python/vaex/webserver.py
@@ -491,7 +491,7 @@ if __name__ == "__main__":
parser.add_argument('--cache', help="cache size in bytes for requests, set to zero to disable (default: %(default)s)... | development default set to proper False | py |
diff --git a/docs/conf.py b/docs/conf.py
index <HASH>..<HASH> 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -120,7 +120,7 @@ nbsphinx_execute = 'always'
# Controls when a cell will time out (defaults to 30; use -1 for no timeout):
-nbsphinx_timeout = 90
+nbsphinx_timeout = 180
# Default Pygments lexer for syn... | Bump cell execution timeout (#<I>) Looking at the recent [doc failures](<URL>), a few are due to - Cell timeouts (which this tries to fix), - Execution timeout (readthedocs gives <I>seconds to build, total -- most of the time for jax is in executing the notebooks), - Other somewhat random/inscrutable errors (and... | py |
diff --git a/aiogram/dispatcher/webhook.py b/aiogram/dispatcher/webhook.py
index <HASH>..<HASH> 100644
--- a/aiogram/dispatcher/webhook.py
+++ b/aiogram/dispatcher/webhook.py
@@ -5,6 +5,7 @@ import functools
import ipaddress
import itertools
import typing
+import logging
from typing import Dict, List, Optional, Uni... | Add warn in validate_ip Refer to issue #<I> | py |
diff --git a/src/apexpy/apex.py b/src/apexpy/apex.py
index <HASH>..<HASH> 100644
--- a/src/apexpy/apex.py
+++ b/src/apexpy/apex.py
@@ -13,7 +13,7 @@ from . import helpers
# below try..catch required for autodoc to work on readthedocs
try:
from . import fortranapex as fa
-except ImportError as e:
+except ImportEr... | Update src/apexpy/apex.py change error variable name from 'e' to 'err' | py |
diff --git a/jinjasql/core.py b/jinjasql/core.py
index <HASH>..<HASH> 100644
--- a/jinjasql/core.py
+++ b/jinjasql/core.py
@@ -122,7 +122,7 @@ def bind_in_clause(value):
def _bind_param(already_bound, key, value):
new_key = key
while new_key in already_bound:
- new_key = "%s#%s" % (key, random.randran... | fix inclause # => _ | py |
diff --git a/pprofile.py b/pprofile.py
index <HASH>..<HASH> 100755
--- a/pprofile.py
+++ b/pprofile.py
@@ -611,8 +611,6 @@ class StatisticalThread(threading.Thread, ProfileRunnerBase):
def __exit__(self, exc_type, exc_val, exc_tb):
self.stop()
- self.profiler.total_time += time() - self._start_ti... | fixup! Populate total time when stopping StatisticalThread. | py |
diff --git a/src/inscriptis/css.py b/src/inscriptis/css.py
index <HASH>..<HASH> 100644
--- a/src/inscriptis/css.py
+++ b/src/inscriptis/css.py
@@ -29,8 +29,8 @@ CSS = {
'h5': HtmlElement('h5', display=Display.block, margin_before=1, margin_after=1),
'h6': HtmlElement('h6', display=Display.block, margin_before... | fix: improved style sheet for enumerations. | py |
diff --git a/test_settings.py b/test_settings.py
index <HASH>..<HASH> 100644
--- a/test_settings.py
+++ b/test_settings.py
@@ -19,6 +19,11 @@ TEMPLATE_CONTEXT_PROCESSORS = (
"django.core.context_processors.request",
)
+TEMPLATE_LOADERS = (
+ 'django.template.loaders.filesystem.Loader',
+ 'django.template.... | test settings for running django tests | py |
diff --git a/bokeh/server/views/main.py b/bokeh/server/views/main.py
index <HASH>..<HASH> 100644
--- a/bokeh/server/views/main.py
+++ b/bokeh/server/views/main.py
@@ -226,7 +226,7 @@ def make_test_plot():
l = line(
x,y, color="#0000FF",
plot_height=300, plot_width=300,
- tools="pan,zoom,re... | call to generate_embed no longer throws an error because of the wrong tool specified | py |
diff --git a/sudo/views.py b/sudo/views.py
index <HASH>..<HASH> 100644
--- a/sudo/views.py
+++ b/sudo/views.py
@@ -15,7 +15,10 @@ from django.contrib.auth.decorators import login_required
from django.core.urlresolvers import reverse
from django.http import HttpResponseRedirect, QueryDict
from django.template.respons... | Fix RemovedInDjango<I>Warning Django is warning that django.utils.importlib will be removed in Django <I>, so I replaced it with "import importlib." To keep <I>% test coverage, I excluded the fallback import from coverage checks. This is a little ugly, but I find it less ugly than mocking the import command. See <U... | py |
diff --git a/src/transformers/training_args_tf.py b/src/transformers/training_args_tf.py
index <HASH>..<HASH> 100644
--- a/src/transformers/training_args_tf.py
+++ b/src/transformers/training_args_tf.py
@@ -69,7 +69,7 @@ class TFTrainingArguments(TrainingArguments):
If a value is passed, will limit the tot... | fix typo in training_args_tf.py (#<I>) | py |
diff --git a/src/satosa/backends/openid_connect.py b/src/satosa/backends/openid_connect.py
index <HASH>..<HASH> 100644
--- a/src/satosa/backends/openid_connect.py
+++ b/src/satosa/backends/openid_connect.py
@@ -175,6 +175,7 @@ class OpenIdBackend(BackendModule):
client = self.fetch_op_keys(client, state)
... | fixed missing issuer in openid_connect backend | py |
diff --git a/tests/test_model.py b/tests/test_model.py
index <HASH>..<HASH> 100644
--- a/tests/test_model.py
+++ b/tests/test_model.py
@@ -86,7 +86,7 @@ def test_model_ptr():
model2 = Model.from_ptr(ptr1, take_ownership=True)
assert model2._freescip
- assert model2.to_ptr(False) == ptr1
+ assert model... | replace failed ptr comparison with model comparison | py |
diff --git a/bunq/sdk/model/generated/endpoint.py b/bunq/sdk/model/generated/endpoint.py
index <HASH>..<HASH> 100644
--- a/bunq/sdk/model/generated/endpoint.py
+++ b/bunq/sdk/model/generated/endpoint.py
@@ -12060,6 +12060,7 @@ class MasterCardAction(core.BunqModel):
"""
MasterCard transaction view.
+ ... | Added missing id field to mastercard action. (bunq/sdk_python#<I>) | py |
diff --git a/src/_pytest/outcomes.py b/src/_pytest/outcomes.py
index <HASH>..<HASH> 100644
--- a/src/_pytest/outcomes.py
+++ b/src/_pytest/outcomes.py
@@ -137,7 +137,7 @@ def xfail(reason=""):
xfail.Exception = XFailed
-def importorskip(modname, minversion=None):
+def importorskip(modname, minversion=None, reason=... | Allow providing a custom reason for `importorskip` | py |
diff --git a/troposphere/cloudwatch.py b/troposphere/cloudwatch.py
index <HASH>..<HASH> 100644
--- a/troposphere/cloudwatch.py
+++ b/troposphere/cloudwatch.py
@@ -3,7 +3,7 @@
#
# See LICENSE file for full license.
-from . import AWSObject, AWSProperty
+from . import AWSObject, AWSProperty, Ref
from .validators imp... | Allow Ref's in addition to basestrings | py |
diff --git a/tests/test_library.py b/tests/test_library.py
index <HASH>..<HASH> 100644
--- a/tests/test_library.py
+++ b/tests/test_library.py
@@ -313,6 +313,16 @@ def test_library_Collection_items(collection):
assert len(items) == 1
+def test_library_Collection_thumbUrl(collection):
+ assert utils.SERVER_B... | Add tests for collection thumbUrl and artUrl | py |
diff --git a/authomatic/core.py b/authomatic/core.py
index <HASH>..<HASH> 100644
--- a/authomatic/core.py
+++ b/authomatic/core.py
@@ -10,6 +10,7 @@ import hmac
import logging
import json
import pickle
+import six
import threading
import time
from six.moves.urllib import parse
@@ -412,8 +413,8 @@ class Session(ob... | Python3 Updates I had to make two changes to str vs. bytes with six in order to get github to work. | py |
diff --git a/hyperstream/hyperstream.py b/hyperstream/hyperstream.py
index <HASH>..<HASH> 100644
--- a/hyperstream/hyperstream.py
+++ b/hyperstream/hyperstream.py
@@ -31,12 +31,12 @@ class HyperStream(object):
"""
HyperStream class: can be instantiated simply with hyperstream = HyperStream() for default opera... | Added logging level option to hyperstream constructor | py |
diff --git a/salt/modules/win_pkg.py b/salt/modules/win_pkg.py
index <HASH>..<HASH> 100644
--- a/salt/modules/win_pkg.py
+++ b/salt/modules/win_pkg.py
@@ -412,7 +412,7 @@ def _get_reg_software():
if d_name not in ignore_list:
# some MS Office updates don't register a product name which means
... | When a package version was a single digit, it was interpreted as an int rather than a string | py |
diff --git a/syndicate/adapters/async.py b/syndicate/adapters/async.py
index <HASH>..<HASH> 100644
--- a/syndicate/adapters/async.py
+++ b/syndicate/adapters/async.py
@@ -33,7 +33,7 @@ class AsyncAdapter(base.AdapterBase):
if data is not None:
data = self.serializer.encode(data)
if query:... | Consistency fix for async/sync query parsing. When doing a request who's value is a sequence the standard way of encoding the url is to repeat the key for each item in the sequence, a la. ?key=a&key=b. The 'requests' library does this automatically, but we need to use the 'doseq' (do sequence) option on urlencode to ... | py |
diff --git a/gns3server/handlers/api/controller/project_handler.py b/gns3server/handlers/api/controller/project_handler.py
index <HASH>..<HASH> 100644
--- a/gns3server/handlers/api/controller/project_handler.py
+++ b/gns3server/handlers/api/controller/project_handler.py
@@ -305,6 +305,10 @@ class ProjectHandler:
... | Support to include snapshots in portable projects. | py |
diff --git a/pipenv/cli/command.py b/pipenv/cli/command.py
index <HASH>..<HASH> 100644
--- a/pipenv/cli/command.py
+++ b/pipenv/cli/command.py
@@ -226,7 +226,9 @@ def install(
**kwargs
):
"""Installs provided packages and adds them to Pipfile, or (if no packages are given), installs all packages from Pipfile... | Missed a checkin; add load_dot_env to install subcommand | py |
diff --git a/py/test/selenium/webdriver/common/driver_element_finding_tests.py b/py/test/selenium/webdriver/common/driver_element_finding_tests.py
index <HASH>..<HASH> 100755
--- a/py/test/selenium/webdriver/common/driver_element_finding_tests.py
+++ b/py/test/selenium/webdriver/common/driver_element_finding_tests.py
@... | [py] Mark test as expected to fail due to about:blank causing a timeout Firefox <I> has a bug where attempting to open about:blank in a new window will cause a timeout. This is already fixed for Firefox <I>. See <URL> | py |
diff --git a/fireplace/card.py b/fireplace/card.py
index <HASH>..<HASH> 100644
--- a/fireplace/card.py
+++ b/fireplace/card.py
@@ -153,7 +153,9 @@ class BaseCard(Entity):
NOTE: Any Card can buff any other Card. The controller of the
Card that buffs the target becomes the controller of the buff.
"""
- ret = se... | Do not use Player.summon for buffs | py |
diff --git a/mots_vides/factory.py b/mots_vides/factory.py
index <HASH>..<HASH> 100644
--- a/mots_vides/factory.py
+++ b/mots_vides/factory.py
@@ -60,12 +60,17 @@ class StopWordFactory(object):
filename = os.path.join(self.data_directory, '%s.txt' % language)
return filename
+ @property
def ... | get_available_languages become a property and implement his own cache system | py |
diff --git a/tests/clitests/runtests.py b/tests/clitests/runtests.py
index <HASH>..<HASH> 100644
--- a/tests/clitests/runtests.py
+++ b/tests/clitests/runtests.py
@@ -40,18 +40,18 @@ class CasperExecTest(unittest.TestCase):
failing = kwargs.get('failing', False)
cmd_args = [CASPER_EXEC, '--no-colors']... | Update python test script to work with python3 | py |
diff --git a/hydpy/docs/modify_html.py b/hydpy/docs/modify_html.py
index <HASH>..<HASH> 100644
--- a/hydpy/docs/modify_html.py
+++ b/hydpy/docs/modify_html.py
@@ -1,18 +1,19 @@
# -*- coding: utf-8 -*-
-"""
-Created on Fri Mar 10 12:44:08 2017
+"""Beautify the html documentation generated by `Sphinx`."""
-@author: ty... | `modify_htlm.py` now prints the names of the files to be beautified. | py |
diff --git a/lib/templates/python2.7/handler.py b/lib/templates/python2.7/handler.py
index <HASH>..<HASH> 100644
--- a/lib/templates/python2.7/handler.py
+++ b/lib/templates/python2.7/handler.py
@@ -7,8 +7,11 @@ log = logging.getLogger()
log.setLevel(logging.DEBUG)
# this adds the component-level `lib` directory to... | Allow Python functions to be run locally top-level dir Use the real path of the running file instead of the relative path from where the function is run. This means `serverless function run componentnamd/modname/functionname` works everywhere in the project, not just in the function directory. | py |
diff --git a/test/hdfs/test_path.py b/test/hdfs/test_path.py
index <HASH>..<HASH> 100644
--- a/test/hdfs/test_path.py
+++ b/test/hdfs/test_path.py
@@ -16,7 +16,6 @@
#
# END_COPYRIGHT
-import sys
import os
import unittest
import tempfile
@@ -442,9 +441,7 @@ class TestReal(unittest.TestCase):
wd = 'file:%... | realpath test: compare with os.path.realpath | py |
diff --git a/salt/modules/file.py b/salt/modules/file.py
index <HASH>..<HASH> 100644
--- a/salt/modules/file.py
+++ b/salt/modules/file.py
@@ -3319,7 +3319,7 @@ def makedirs_(path,
'''
# walk up the directory structure until we find the first existing
# directory
- dirname = os.path.normpath(os.path.j... | Fixing it to append a trailing slash in end | py |
diff --git a/troposphere/validators/ssm.py b/troposphere/validators/ssm.py
index <HASH>..<HASH> 100644
--- a/troposphere/validators/ssm.py
+++ b/troposphere/validators/ssm.py
@@ -63,15 +63,18 @@ def operating_system(os):
"""
valid_os = [
- "WINDOWS",
"AMAZON_LINUX",
"AMAZON_LINUX_2"... | Update SSM Patch Baseline OS validator (#<I>) According to the CloudFormation documentation, a few more values are supported now for `OperatingSystem`. Source: <URL> | py |
diff --git a/source/rafcon/mvc/controllers/state_overview.py b/source/rafcon/mvc/controllers/state_overview.py
index <HASH>..<HASH> 100644
--- a/source/rafcon/mvc/controllers/state_overview.py
+++ b/source/rafcon/mvc/controllers/state_overview.py
@@ -81,8 +81,9 @@ class StateOverviewController(ExtendedController, Model... | destroy Library Path/Name elements in State-Overview Widget not only hide them to avoid re-occurance when the widget is shown again | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -14,7 +14,7 @@ except ImportError:
"""
=============================DEBUG ASSISTANCE==========================
If you are seeing an error here please try the following to
- successfully instal... | Replace the `cryptography` mention in `setup.py` (#<I>) This typo was introduced in: * <URL> | py |
diff --git a/remoto/tests/test_process.py b/remoto/tests/test_process.py
index <HASH>..<HASH> 100644
--- a/remoto/tests/test_process.py
+++ b/remoto/tests/test_process.py
@@ -1,6 +1,7 @@
from mock import Mock
+from mock import patch
from remoto import process
-
+import subprocess
class TestExtendPath(object):
@@... | Add unit test to ensure bytes are sent to process.communicate() | py |
diff --git a/can/interfaces/vector/canlib.py b/can/interfaces/vector/canlib.py
index <HASH>..<HASH> 100644
--- a/can/interfaces/vector/canlib.py
+++ b/can/interfaces/vector/canlib.py
@@ -112,8 +112,8 @@ class VectorBus(BusABC):
:param serial:
Serial number of the hardware to be used.
... | Update can/interfaces/vector/canlib.py | py |
diff --git a/pycbc/inference/sampler_base.py b/pycbc/inference/sampler_base.py
index <HASH>..<HASH> 100644
--- a/pycbc/inference/sampler_base.py
+++ b/pycbc/inference/sampler_base.py
@@ -458,7 +458,7 @@ class BaseMCMCSampler(_BaseSampler):
parameters = samples.fieldnames
if samples is None:
... | Ensure that write float to HDF file for likelihood_stats. (#<I>) | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -3,7 +3,7 @@ setup(
name = 'nolds',
packages = ['nolds'],
version = '0.1',
- description = 'Nonlinear measures for dynamical systems (based on one-dimensional timeseries)',
+ description = 'Nonlinear measures for dy... | typo (timeseries -> time series) | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -52,6 +52,12 @@ try:
except ImportError:
extra_install_requires.append('ordereddict>=1.1')
+# importlib required for cli programs
+try:
+ from importlib import import_module
+except ImportError:
+ extra_install_r... | setup.py: add importlib as a requirment if not available | py |
diff --git a/joyent.py b/joyent.py
index <HASH>..<HASH> 100755
--- a/joyent.py
+++ b/joyent.py
@@ -101,7 +101,7 @@ class Client:
uri = "{}/{}/{}".format(self.sdc_url, self.account, path)
if method == 'DELETE':
request = DeleteRequest(uri, headers=headers)
- if method == 'HEAD':
+ ... | Do not convert DELETE requests to GET. | py |
diff --git a/src/python/sequence_context.py b/src/python/sequence_context.py
index <HASH>..<HASH> 100644
--- a/src/python/sequence_context.py
+++ b/src/python/sequence_context.py
@@ -11,7 +11,7 @@ class SequenceContext(object):
if gene_seq.nuc_context in [1, 2]:
# case where context matters
- ... | Fixed bug: error occured when using sequence context in range() func because sequence context now has default type of float (because of the <I> nucleotide chasm context). | py |
diff --git a/build/checkversion.py b/build/checkversion.py
index <HASH>..<HASH> 100755
--- a/build/checkversion.py
+++ b/build/checkversion.py
@@ -37,7 +37,7 @@ def changelog_version():
"""Gets the version of the library from the CHANGELOG."""
path = os.path.join(shakaBuildHelpers.get_source_base(), 'CHANGELOG.md... | build: Update version parsing to match new release automation (#<I>) We double-check the version in the changelog to make sure it matches the npm and player versions. But with our new release automation, we have a new changelog format. This updates the parsing so that release checks can succeed. | py |
diff --git a/lems/parser/LEMS.py b/lems/parser/LEMS.py
index <HASH>..<HASH> 100644
--- a/lems/parser/LEMS.py
+++ b/lems/parser/LEMS.py
@@ -1209,7 +1209,8 @@ class LEMSFileParser(LEMSBase):
self.raise_error("Parameter '{0}' has no dimension",
name)
- parameter = Parame... | enh(parser): extract descriptions for Paramenter and Requirement component types | py |
diff --git a/src/bezier/_implicitization.py b/src/bezier/_implicitization.py
index <HASH>..<HASH> 100644
--- a/src/bezier/_implicitization.py
+++ b/src/bezier/_implicitization.py
@@ -443,7 +443,7 @@ def polynomial_norm(coeffs):
def roots_in_unit_interval(coeffs):
- """Compute roots of a polynomial in the unit i... | Using raw-string in roots_in_unit_interval() docstring. This is to allow LaTex backslashes. | py |
diff --git a/example/services/api.py b/example/services/api.py
index <HASH>..<HASH> 100644
--- a/example/services/api.py
+++ b/example/services/api.py
@@ -15,6 +15,8 @@ class Recipe(ServiceObjectType):
service = 'recipe'
name = String(description = 'The name of the recipe')
+ # you can avoid circular... | added a few comments to example api | py |
diff --git a/tests/pytests/functional/states/test_zookeeper.py b/tests/pytests/functional/states/test_zookeeper.py
index <HASH>..<HASH> 100644
--- a/tests/pytests/functional/states/test_zookeeper.py
+++ b/tests/pytests/functional/states/test_zookeeper.py
@@ -59,7 +59,7 @@ def minion_config_overrides(zookeeper_port):
d... | Use the zookeeper image from GHCR | py |
diff --git a/hug/use.py b/hug/use.py
index <HASH>..<HASH> 100644
--- a/hug/use.py
+++ b/hug/use.py
@@ -98,7 +98,7 @@ class HTTP(Service):
self.session.headers.update(headers)
def request(self, method, url, url_params=empty.dict, headers=empty.dict, timeout=None, **params):
- url = "/{0}/{1}".form... | Improve how version is passed to remote api | py |
diff --git a/cherrypy/test/test_static.py b/cherrypy/test/test_static.py
index <HASH>..<HASH> 100644
--- a/cherrypy/test/test_static.py
+++ b/cherrypy/test/test_static.py
@@ -80,6 +80,12 @@ class StaticTest(helper.CPWebCase):
'tools.staticdir.on': True,
'request.show_tracebacks': True,... | Added failing test showing problems using error_page handlers and serve_file. Taken from submitted ticket in #<I>. | py |
diff --git a/bulbs/content/serializers.py b/bulbs/content/serializers.py
index <HASH>..<HASH> 100644
--- a/bulbs/content/serializers.py
+++ b/bulbs/content/serializers.py
@@ -106,6 +106,7 @@ class AuthorField(relations.RelatedField):
class ContentSerializer(serializers.ModelSerializer):
+ polymorphic_ctype = Co... | Added serializer for natural content type key to Content serializer | py |
diff --git a/airflow/bin/cli.py b/airflow/bin/cli.py
index <HASH>..<HASH> 100755
--- a/airflow/bin/cli.py
+++ b/airflow/bin/cli.py
@@ -62,6 +62,7 @@ def backfill(args):
mark_success=args.mark_success,
include_adhoc=args.include_adhoc,
local=args.local,
+ donot_pickle=args.donot_pickle,... | Add backfill option to not pickle the DAG | py |
diff --git a/tests/test_tag.py b/tests/test_tag.py
index <HASH>..<HASH> 100644
--- a/tests/test_tag.py
+++ b/tests/test_tag.py
@@ -145,9 +145,19 @@ class TestTagPackage(unittest.TestCase):
[("เม่น", "N"), ("กิน", "V")],
[("หนอน", "N"), ("กิน", "V")],
]
- tagger.train(data, save... | Add test case load model file that does not exist | py |
diff --git a/quantumclient/quantum/v2_0/subnet.py b/quantumclient/quantum/v2_0/subnet.py
index <HASH>..<HASH> 100644
--- a/quantumclient/quantum/v2_0/subnet.py
+++ b/quantumclient/quantum/v2_0/subnet.py
@@ -35,12 +35,30 @@ def _format_allocation_pools(subnet):
return ''
+def _format_dns_nameservers(subnet)... | Fix printout of dns name servers and host routes Fixes bug <I> Change-Id: I<I>e<I>a<I>f<I>ae2eb<I>e2 | py |
diff --git a/concise/utils/pwm.py b/concise/utils/pwm.py
index <HASH>..<HASH> 100644
--- a/concise/utils/pwm.py
+++ b/concise/utils/pwm.py
@@ -131,6 +131,11 @@ class PWM(object):
def _pwm2pwm_info(pwm):
+ # normalize pwm to sum 1,
+ # otherwise pwm is not a valid distribution
+ # then info has negative va... | fix bug for motif_pwm_info plot | py |
diff --git a/expidesi.py b/expidesi.py
index <HASH>..<HASH> 100644
--- a/expidesi.py
+++ b/expidesi.py
@@ -49,20 +49,32 @@ if __name__ == '__main__':
mu = bioquali.readProfile(exp_string)
print('done.')
#print(mu)
-
- print('\nCompute experiments ...',end='')
- max_number_experiments = 10
+
+
... | also ciompute best single experiment | py |
diff --git a/Lib/fontmake/__main__.py b/Lib/fontmake/__main__.py
index <HASH>..<HASH> 100644
--- a/Lib/fontmake/__main__.py
+++ b/Lib/fontmake/__main__.py
@@ -87,7 +87,7 @@ def main():
subroutinize=True)
parser.add_argument('--timing', action='store_true')
- parser.add_argument('--ver... | Rename "verbosity" argument to "verbose" To be consistent with other command line tools. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -23,8 +23,7 @@ setup(
include_package_data=True,
zip_safe=False,
install_requires=[
- 'geonode==2.4',
- 'south',
+ 'geonode==2.5',
'django-bootstrap3==6.2.2',
'django-cors-... | update required packages remove south. upgrade geonode to <I> | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -1,4 +1,4 @@
-ppfrom setuptools import setup, find_packages
+from setuptools import setup, find_packages
import pyverilog.utils.version
import re | A typo in setup.py is removed. | py |
diff --git a/auto_ml/utils_model_training.py b/auto_ml/utils_model_training.py
index <HASH>..<HASH> 100644
--- a/auto_ml/utils_model_training.py
+++ b/auto_ml/utils_model_training.py
@@ -77,6 +77,10 @@ class FinalModelATC(BaseEstimator, TransformerMixin):
del model_params['feature_learning']
... | deletes another duplicative param | py |
diff --git a/tests/test_formatting.py b/tests/test_formatting.py
index <HASH>..<HASH> 100644
--- a/tests/test_formatting.py
+++ b/tests/test_formatting.py
@@ -18,7 +18,7 @@ from ansimarkup import AnsiMarkupError
("{level.icon}", lambda r: r == "🐞"),
("{file}", lambda r: r == "test_formatting.py"),
... | Make use of __file__ in formatting unit tests (#<I>) | py |
diff --git a/common/vr/common/models.py b/common/vr/common/models.py
index <HASH>..<HASH> 100644
--- a/common/vr/common/models.py
+++ b/common/vr/common/models.py
@@ -90,13 +90,13 @@ class Host(object):
redis_spec may be None, a Redis URL, or a StrictRedis instance
"""
- if not redis_spec or ... | Allow redis instance to be supplied even if the module could not be imported. Fail fast if a URL is supplied but redis is not available. | py |
diff --git a/tests/unit/test_parser.py b/tests/unit/test_parser.py
index <HASH>..<HASH> 100644
--- a/tests/unit/test_parser.py
+++ b/tests/unit/test_parser.py
@@ -181,6 +181,10 @@ class TestParseRule(tests.TestCase):
Constant(2), AuthorizationAttr('b'),
Constant(3), AuthorizationAttr('c'),
... | Add a final "put everything together" parsing check. | py |
diff --git a/docxtpl/__main__.py b/docxtpl/__main__.py
index <HASH>..<HASH> 100644
--- a/docxtpl/__main__.py
+++ b/docxtpl/__main__.py
@@ -65,12 +65,12 @@ def check_exists_ask_overwrite(arg_value:str) -> bool:
def validate_all_args(parsed_args:dict) -> None:
- # Raises ArgumentError if any of the arguments is n... | Small change in error catching in validate function | py |
diff --git a/kafka/protocol/message.py b/kafka/protocol/message.py
index <HASH>..<HASH> 100644
--- a/kafka/protocol/message.py
+++ b/kafka/protocol/message.py
@@ -42,6 +42,11 @@ class Message(Struct):
magic=fields[1], attributes=fields[2], crc=fields[0])
+class PartialMessage(bytes):
+ def __... | Return PartialMessage object in MessageSet.decode if message is truncated by max_bytes | py |
diff --git a/tests/unit/network/CubicDualTest.py b/tests/unit/network/CubicDualTest.py
index <HASH>..<HASH> 100644
--- a/tests/unit/network/CubicDualTest.py
+++ b/tests/unit/network/CubicDualTest.py
@@ -53,8 +53,8 @@ class CubicDualTest:
label_2='secondary')
assert net.Np ==... | [ci skip] changed labels check for num of pores | py |
diff --git a/telemetry/telemetry/core/browser_options.py b/telemetry/telemetry/core/browser_options.py
index <HASH>..<HASH> 100644
--- a/telemetry/telemetry/core/browser_options.py
+++ b/telemetry/telemetry/core/browser_options.py
@@ -42,8 +42,6 @@ class BrowserFinderOptions(optparse.Values):
self.profiler = None
... | [Telemetry] Cleanup: remove unused --report_root_metrics flag The only reason this flag is still around is because the buildbots still pass it to Telemetry. BUG=None Review URL: <URL> | py |
diff --git a/rest_api/sawtooth_rest_api/rest_api.py b/rest_api/sawtooth_rest_api/rest_api.py
index <HASH>..<HASH> 100644
--- a/rest_api/sawtooth_rest_api/rest_api.py
+++ b/rest_api/sawtooth_rest_api/rest_api.py
@@ -74,12 +74,22 @@ async def access_logger(app, handler):
def log_response(response):
... | UNKNOWNB to UNKNOWN | py |
diff --git a/exa/editor.py b/exa/editor.py
index <HASH>..<HASH> 100644
--- a/exa/editor.py
+++ b/exa/editor.py
@@ -65,7 +65,10 @@ def write_file(text, path, encoding="utf-8", newline=""):
newline (str): Newline delimiter
"""
with io.open(path, "w", newline=newline, encoding=encoding) as f:
- ... | Updated writing for py<I> compat | py |
diff --git a/src/python/bezier/hazmat/curve_helpers.py b/src/python/bezier/hazmat/curve_helpers.py
index <HASH>..<HASH> 100644
--- a/src/python/bezier/hazmat/curve_helpers.py
+++ b/src/python/bezier/hazmat/curve_helpers.py
@@ -219,6 +219,16 @@ def evaluate_multi_vs(nodes, lambda1, lambda2):
Does so via a modified ... | Adding LaTeX sketch for VS algorithm. | py |
diff --git a/ceph_deploy/config.py b/ceph_deploy/config.py
index <HASH>..<HASH> 100644
--- a/ceph_deploy/config.py
+++ b/ceph_deploy/config.py
@@ -1,16 +1,16 @@
import logging
import os.path
-from . import exc
-from . import conf
-from .cliutil import priority
-from . import hosts
+from ceph_deploy import exc
+from... | config.py with absolute imports for conf | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.