diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/las/client.py b/las/client.py
index <HASH>..<HASH> 100644
--- a/las/client.py
+++ b/las/client.py
@@ -203,7 +203,7 @@ class Client:
:param consent_id: Delete documents with this consent_id
:type consent_id: str
- :return: Feedback response from REST API
+ :return: Delete c... | Update correct docs error for delete consent id | py |
diff --git a/rtpipe/RT.py b/rtpipe/RT.py
index <HASH>..<HASH> 100644
--- a/rtpipe/RT.py
+++ b/rtpipe/RT.py
@@ -367,7 +367,7 @@ def search(d, data_mem, u_mem, v_mem, w_mem):
blranges = [(d['nbl'] * t/d['nthread'], d['nbl']*(t+1)/d['nthread']) for t in range(d['nthread'])]
for dmind i... | moved dedisp/resample to debug statements | py |
diff --git a/sportsreference/ncaaf/roster.py b/sportsreference/ncaaf/roster.py
index <HASH>..<HASH> 100644
--- a/sportsreference/ncaaf/roster.py
+++ b/sportsreference/ncaaf/roster.py
@@ -254,7 +254,8 @@ class Player(AbstractPlayer):
"""
all_stats_dict = {}
- for table_id in ['passing', 'rushi... | Add NCAAF player receiving stats For a handful of NCAAF players, the "Receiving & Rushing" table has an ID of `receiving` instead of the commonly-used `rushing`. The former was not being parsed, and the relevant stats were ignored for those players. Simply adding that ID to the list of tables to parse resolves the iss... | py |
diff --git a/feedjack/fjlib.py b/feedjack/fjlib.py
index <HASH>..<HASH> 100644
--- a/feedjack/fjlib.py
+++ b/feedjack/fjlib.py
@@ -17,6 +17,11 @@ import logging
log = logging.getLogger()
+
+from django.dispatch import Signal
+transaction_start = Signal(providing_args=list())
+transaction_done = Signal(providing_ar... | fjlib: added transaction_start/done signals | py |
diff --git a/salt/modules/schedule.py b/salt/modules/schedule.py
index <HASH>..<HASH> 100644
--- a/salt/modules/schedule.py
+++ b/salt/modules/schedule.py
@@ -132,6 +132,9 @@ def list_(show_all=False,
if item not in SCHEDULE_CONF:
del schedule[job][item]
continue
+ ... | Splay defaulting to None internally, broke schedule.present causing it to always report differences when a state is run. Updating the schedule.list function to check if an attribute is None and remove it. | py |
diff --git a/drip/models.py b/drip/models.py
index <HASH>..<HASH> 100644
--- a/drip/models.py
+++ b/drip/models.py
@@ -55,7 +55,7 @@ class SentDrip(models.Model):
date = models.DateTimeField(auto_now_add=True)
drip = models.ForeignKey('drip.Drip', related_name='sent_drips')
- user = models.ForeignKey(set... | use getattr to set a default user model in old django | py |
diff --git a/airflow/configuration.py b/airflow/configuration.py
index <HASH>..<HASH> 100644
--- a/airflow/configuration.py
+++ b/airflow/configuration.py
@@ -48,7 +48,7 @@ DEFAULT_CONFIG = """\
# The home folder for airflow, default is ~/airflow
airflow_home = {AIRFLOW_HOME}
-# The folder where you airflow pipelin... | Typo in config docs changing "you" to "your" | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -1,9 +1,8 @@
# Setup file for feedstail
from setuptools import setup
-long_description = """\
-Feedstail monitor a feed and emits new entries. It aim to be simple,
-hackable and compatible with rsstail, its C brother."""
+... | [doc]: Setup: README.rst becomes the long description. | py |
diff --git a/defender/urls.py b/defender/urls.py
index <HASH>..<HASH> 100644
--- a/defender/urls.py
+++ b/defender/urls.py
@@ -1,8 +1,7 @@
-from django.conf.urls import patterns, url
+from django.conf.urls import url
from .views import block_view, unblock_ip_view, unblock_username_view
-urlpatterns = patterns(
- ... | making urlpatterns a plain list as of Django <I>, creating urlpatterns with the `django.conf.urls.patterns` function became deprecated and will be removed in <I>. <URL> | py |
diff --git a/soco/core.py b/soco/core.py
index <HASH>..<HASH> 100755
--- a/soco/core.py
+++ b/soco/core.py
@@ -2875,6 +2875,7 @@ SOURCES = {
r"^x-sonosapi-stream:": MUSIC_SRC_RADIO,
r"^x-sonosapi-radio:": MUSIC_SRC_RADIO,
r"^x-sonosapi-hls:": MUSIC_SRC_RADIO,
+ r"^x-sonos-http:sonos": MUSIC_SRC_RADIO,... | Detect Sonos Radio as radio source (#<I>) | py |
diff --git a/lahja/eventbus.py b/lahja/eventbus.py
index <HASH>..<HASH> 100644
--- a/lahja/eventbus.py
+++ b/lahja/eventbus.py
@@ -69,7 +69,8 @@ class EventBus:
if not self._is_allowed_to_receive(config, endpoint.name):
continue
- endpoint._receiving_queue.put_nowa... | Don't try to propagate events after shutdown | py |
diff --git a/autograd/__init__.py b/autograd/__init__.py
index <HASH>..<HASH> 100644
--- a/autograd/__init__.py
+++ b/autograd/__init__.py
@@ -1,6 +1,7 @@
from __future__ import absolute_import
from .core import primitive, make_vjp
from . import container_types
+from .container_types import make_tuple, make_list, ma... | import make_tuple, make_list, and make_dict into autograd namespace | py |
diff --git a/tests/www/test_security.py b/tests/www/test_security.py
index <HASH>..<HASH> 100644
--- a/tests/www/test_security.py
+++ b/tests/www/test_security.py
@@ -169,6 +169,12 @@ class TestSecurity(unittest.TestCase):
assert role_perms_len == new_role_perms_len
+ def test_verify_public_role_has_no_... | Add test for Public role permissions. (#<I>) In #<I>, all permissions were removed from the Public role. This adds a test to ensure that the default public role doesn't have any permissions. related: #<I> | py |
diff --git a/src/extargsparse/__lib_debug__.py b/src/extargsparse/__lib_debug__.py
index <HASH>..<HASH> 100644
--- a/src/extargsparse/__lib_debug__.py
+++ b/src/extargsparse/__lib_debug__.py
@@ -1553,13 +1553,6 @@ class ExtArgsParse(_LoggerObject):
parentpaths = [self.__maincmd]
if paths is not None:
... | to make the __check_varname_inner more valid and check | py |
diff --git a/macaca/asserters.py b/macaca/asserters.py
index <HASH>..<HASH> 100644
--- a/macaca/asserters.py
+++ b/macaca/asserters.py
@@ -16,7 +16,7 @@ def is_displayed(target):
Return True if the element is displayed or return False otherwise.
"""
is_displayed = getattr(target, 'is_displayed', None... | Use callable instead of check for __call__ | py |
diff --git a/sos/policies/__init__.py b/sos/policies/__init__.py
index <HASH>..<HASH> 100644
--- a/sos/policies/__init__.py
+++ b/sos/policies/__init__.py
@@ -707,6 +707,7 @@ any third party.
_msg = self.msg % {'distro': self.distro, 'vendor': self.vendor,
'vendor_url': self.vendor_... | [policies] fix missing tmpdir for RedHat distro a0e0a<I> removed setting 'tmpdir' from Policy get_msg while RedHatPolicy refers on it. Resolves: #<I> | py |
diff --git a/dataswim/data/transform.py b/dataswim/data/transform.py
index <HASH>..<HASH> 100644
--- a/dataswim/data/transform.py
+++ b/dataswim/data/transform.py
@@ -492,6 +492,19 @@ class Transform():
if self.autoprint is True:
self.ok("Diff column " + name + " added to the dataframe")
+ de... | Add a gsum_ method for groupsum | py |
diff --git a/forms_builder/example_project/settings.py b/forms_builder/example_project/settings.py
index <HASH>..<HASH> 100644
--- a/forms_builder/example_project/settings.py
+++ b/forms_builder/example_project/settings.py
@@ -4,6 +4,7 @@ import os, sys
DEBUG = True
+SITE_ID = 1
PROJECT_ROOT = os.path.dirname(os.... | Old Djangos need SITE_ID in settings for tests. | py |
diff --git a/salesforce_bulk/__init__.py b/salesforce_bulk/__init__.py
index <HASH>..<HASH> 100644
--- a/salesforce_bulk/__init__.py
+++ b/salesforce_bulk/__init__.py
@@ -1,4 +1,4 @@
from salesforce_bulk import SalesforceBulk
from csv_adapter import CsvDictsAdapter
-__version__ = '1.0.4'
+__version__ = '1.0.5' | Bumping version to <I> | py |
diff --git a/wtforms_html5.py b/wtforms_html5.py
index <HASH>..<HASH> 100644
--- a/wtforms_html5.py
+++ b/wtforms_html5.py
@@ -179,6 +179,39 @@ from wtforms.validators import Length, NumberRange, StopValidation
from wtforms.compat import string_types
+__all__ = (
+ # WIDGETS
+ 'Input',
+ 'TextInput',
+ 'DateIn... | added `__all__` | py |
diff --git a/mtools/util/logfile.py b/mtools/util/logfile.py
index <HASH>..<HASH> 100644
--- a/mtools/util/logfile.py
+++ b/mtools/util/logfile.py
@@ -85,14 +85,14 @@ class LogFile(InputSource):
def __iter__(self):
""" iteration over LogFile object will return a LogEvent object for each line. """
... | fixed bug where mlogfilter fast_forward wasn't working anymore. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -1,22 +1,17 @@
import os
from setuptools import setup
-# Function for reading readme.
-def read(fname):
- return open(os.path.join(os.path.dirname(__file__), fname)).read()
-
setup(
name = "pytesseract",
- vers... | removed reading of readme.md from setup.py as it caused issues when installing through pip | py |
diff --git a/tests/test_toolbox_network_tools.py b/tests/test_toolbox_network_tools.py
index <HASH>..<HASH> 100644
--- a/tests/test_toolbox_network_tools.py
+++ b/tests/test_toolbox_network_tools.py
@@ -37,6 +37,18 @@ class NetworkToolsTest(unittest.TestCase):
time.sleep(.4)
#os.remove(fname)
... | test to ensure network_tools logs failed downloads correctly | py |
diff --git a/src/feat/agents/host/host_agent.py b/src/feat/agents/host/host_agent.py
index <HASH>..<HASH> 100644
--- a/src/feat/agents/host/host_agent.py
+++ b/src/feat/agents/host/host_agent.py
@@ -56,6 +56,7 @@ class HostAgent(agent.BaseAgent, rpc.AgentMixin):
ports = state.medium.get_descriptor().port_ran... | Add port allocator in Host Agent | py |
diff --git a/autograd/differential_operators.py b/autograd/differential_operators.py
index <HASH>..<HASH> 100644
--- a/autograd/differential_operators.py
+++ b/autograd/differential_operators.py
@@ -24,7 +24,7 @@ def grad(fun, x):
vjp, ans = _make_vjp(fun, x)
if not vspace(ans).size == 1:
raise TypeE... | Added check to value_and_grad to ensure that the function's output is real-valued and scalar | py |
diff --git a/werkzeug/utils.py b/werkzeug/utils.py
index <HASH>..<HASH> 100644
--- a/werkzeug/utils.py
+++ b/werkzeug/utils.py
@@ -352,7 +352,6 @@ def redirect(location, code=302):
:param location: the location the response should redirect to.
:param code: the redirect status code. defaults to 302.
"""
-... | Removed assertion for the status codes on redirects for free HTTP abusing. This fixes #<I> | py |
diff --git a/qpsphere/models/__init__.py b/qpsphere/models/__init__.py
index <HASH>..<HASH> 100644
--- a/qpsphere/models/__init__.py
+++ b/qpsphere/models/__init__.py
@@ -34,8 +34,8 @@ def simulate(radius=5e-6, sphere_index=1.339, medium_index=1.333,
Sphere model to use (see `available`)
pixel_size: float... | dynamic auto pixel size depending on expected degree of diffraction | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -24,7 +24,6 @@ setup(
name='precisionmapper',
packages=find_packages(),
package_data={},
-
version=__version__,
license="MIT license",
platforms='Posix; MacOS X',
@@ -33,7 +32,7 @@ setup(
aut... | Another fix for the deploy problem on Travis | py |
diff --git a/smart_open/smart_open_lib.py b/smart_open/smart_open_lib.py
index <HASH>..<HASH> 100644
--- a/smart_open/smart_open_lib.py
+++ b/smart_open/smart_open_lib.py
@@ -668,7 +668,7 @@ def _compression_wrapper(file_obj, filename, mode):
if _need_to_buffer(file_obj, mode, ext):
warnings.warn('streami... | fix post-merge artifact | py |
diff --git a/spyder/plugins/completion/kite/plugin.py b/spyder/plugins/completion/kite/plugin.py
index <HASH>..<HASH> 100644
--- a/spyder/plugins/completion/kite/plugin.py
+++ b/spyder/plugins/completion/kite/plugin.py
@@ -9,6 +9,7 @@
# Standard library imports
import logging
import functools
+import os.path as osp
... | Kite: Update message to point directory of the faulty installation | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -18,6 +18,7 @@ requires = [
'async_timeout~=3.0',
'attrs>=18.0',
'etcd3~=0.8.0',
+ 'protobuf==3.5.2.post1', # remove if kragniz/python-etcd3#432 is released
'msgpack~=0.5.6',
'python-json-logger',
... | setup: Temporarily add explicit protobuf dependency until next etcd3 release | py |
diff --git a/salt/modules/rh_service.py b/salt/modules/rh_service.py
index <HASH>..<HASH> 100644
--- a/salt/modules/rh_service.py
+++ b/salt/modules/rh_service.py
@@ -48,6 +48,10 @@ def __virtual__():
Only work on select distros which still use Red Hat's /usr/bin/service for
management of either sysvinit or a... | Do not load rh_service module when booted with systemd Amazon continues to release versions of Amazon Linux 1, which boots with rh_service, but also Amazon linux 2, and both with the same versioning scheme, so we cannot depend on the date for making decisions here. | py |
diff --git a/basil/utils/utils.py b/basil/utils/utils.py
index <HASH>..<HASH> 100644
--- a/basil/utils/utils.py
+++ b/basil/utils/utils.py
@@ -23,7 +23,7 @@ def logging(fn):
def bitvector_to_byte_array(bitvector):
bsize = len(bitvector)
- size_bytes = ((bsize - 1) / 8) + 1
+ size_bytes = int(((bsize - 1) ... | MAINT: force int under python 3 | py |
diff --git a/src/websockets/version.py b/src/websockets/version.py
index <HASH>..<HASH> 100644
--- a/src/websockets/version.py
+++ b/src/websockets/version.py
@@ -42,7 +42,7 @@ if not released: # pragma: no cover
check=True,
text=True,
).stdout.strip()
- except sub... | Update version.py Allow version check to ignore `git` if the command is not available on the path. | py |
diff --git a/perception/phoxi_sensor.py b/perception/phoxi_sensor.py
index <HASH>..<HASH> 100644
--- a/perception/phoxi_sensor.py
+++ b/perception/phoxi_sensor.py
@@ -207,6 +207,7 @@ class PhoXiSensor(CameraSensor):
"""Callback for handling textures (greyscale images).
"""
data = self._bridge... | Perform proper color rescaling on phoxi | py |
diff --git a/sigal/utils.py b/sigal/utils.py
index <HASH>..<HASH> 100644
--- a/sigal/utils.py
+++ b/sigal/utils.py
@@ -73,7 +73,8 @@ def read_markdown(filename):
with codecs.open(filename, 'r', 'utf-8-sig') as f:
text = f.read()
- md = Markdown(extensions=['meta'], output_format='html5')
+ md = Ma... | Update markdown extension name. With Python-Markdown <I>, “shortened” extension names are deprecated. | py |
diff --git a/aiomysql/utils.py b/aiomysql/utils.py
index <HASH>..<HASH> 100644
--- a/aiomysql/utils.py
+++ b/aiomysql/utils.py
@@ -99,6 +99,20 @@ class _SAConnectionContextManager(_ContextManager):
return result
+class _TransactionContextManager(_ContextManager):
+
+ if PY_35: # pragma: no branch
+... | add async transaction context manager | py |
diff --git a/falafel/__init__.py b/falafel/__init__.py
index <HASH>..<HASH> 100644
--- a/falafel/__init__.py
+++ b/falafel/__init__.py
@@ -1,5 +1,6 @@
import os
from .core import LogFileOutput, Mapper, IniConfigFile, LegacyItemAccess # noqa: F401
+from .core import FileListing # noqa: F401
from .core.plugins impor... | Add FileListing to objects we export | py |
diff --git a/polyaxon_client/tracking/contrib/logging_tensor_hook.py b/polyaxon_client/tracking/contrib/logging_tensor_hook.py
index <HASH>..<HASH> 100644
--- a/polyaxon_client/tracking/contrib/logging_tensor_hook.py
+++ b/polyaxon_client/tracking/contrib/logging_tensor_hook.py
@@ -20,7 +20,7 @@ class PolyaxonLoggingTe... | Update logging_tensor_hook.py | py |
diff --git a/grimoire/elk/elastic.py b/grimoire/elk/elastic.py
index <HASH>..<HASH> 100644
--- a/grimoire/elk/elastic.py
+++ b/grimoire/elk/elastic.py
@@ -28,6 +28,7 @@ from dateutil import parser
import json
import logging
import requests
+import time
class ElasticConnectException(Exception):
message = "Can... | Wait after a bulk operation until all items are returned in searches. | py |
diff --git a/timepiece/forms.py b/timepiece/forms.py
index <HASH>..<HASH> 100644
--- a/timepiece/forms.py
+++ b/timepiece/forms.py
@@ -54,7 +54,6 @@ class EditPersonForm(auth_forms.UserChangeForm):
instance = super(EditPersonForm, self).save(*args, **kwargs)
password_one = self.cleaned_data.get('passw... | removed print --HG-- branch : feature/no-crm | py |
diff --git a/openquakeserver/engine/v1/calc_urls.py b/openquakeserver/engine/v1/calc_urls.py
index <HASH>..<HASH> 100644
--- a/openquakeserver/engine/v1/calc_urls.py
+++ b/openquakeserver/engine/v1/calc_urls.py
@@ -1,7 +1,7 @@
from django.conf.urls.defaults import patterns
from django.conf.urls.defaults import url
... | engine/v1/calc_urls: Corrected a comment. | py |
diff --git a/ca/django_ca/admin.py b/ca/django_ca/admin.py
index <HASH>..<HASH> 100644
--- a/ca/django_ca/admin.py
+++ b/ca/django_ca/admin.py
@@ -127,7 +127,6 @@ class CertificateAuthorityAdmin(CertificateMixin, admin.ModelAdmin):
'fields': [
'authorityInfoAccess',
'autho... | remove issuerAltName (cannot by set by this software | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -20,7 +20,10 @@ if sys.version_info[:2] <= (2, 6):
"Python version."
)
-dependencies = ['ordered-set']
+if sys.version_info[:2] <= (3, 5):
+ dependencies = ['ordered-set<4.0.0']
+else:
+ dependencies = ['... | Use old version of ordered-set for old versions of python | py |
diff --git a/grimoire/elk/bugzilla.py b/grimoire/elk/bugzilla.py
index <HASH>..<HASH> 100644
--- a/grimoire/elk/bugzilla.py
+++ b/grimoire/elk/bugzilla.py
@@ -274,7 +274,7 @@ class BugzillaEnrich(Enrich):
def issues_to_es(self, items):
- elastic_type = "issues"
+ elastic_type = "items"
... | [enrich][bugzilla] Use items as the type for the ES index | py |
diff --git a/xmantissa/signup.py b/xmantissa/signup.py
index <HASH>..<HASH> 100644
--- a/xmantissa/signup.py
+++ b/xmantissa/signup.py
@@ -48,7 +48,7 @@ class TicketClaimer(Page):
res = IResource(something)
lgo = getattr(res, 'logout', lambda : None)
ISession(ctx).setDefaultResour... | redirect to /private after ticket claiming, fixes #<I> | py |
diff --git a/mbuild/compound.py b/mbuild/compound.py
index <HASH>..<HASH> 100755
--- a/mbuild/compound.py
+++ b/mbuild/compound.py
@@ -54,15 +54,7 @@ def load(filename, relative_to_module=None, compound=None, coords_only=False,
rigid : bool, optional, default=False
Treat the compound as a rigid body
... | Removed improper **kwarg docstring Incorrect description of arguments that could be passed to load function. | py |
diff --git a/openquake/risklib/scientific.py b/openquake/risklib/scientific.py
index <HASH>..<HASH> 100644
--- a/openquake/risklib/scientific.py
+++ b/openquake/risklib/scientific.py
@@ -243,6 +243,7 @@ class VulnerabilityFunction(object):
for a in range(len(values)):
losses[a] *= ratios
... | Added a sanity check [ci skip] | py |
diff --git a/qiskit/circuit/library/standard_gates/swap.py b/qiskit/circuit/library/standard_gates/swap.py
index <HASH>..<HASH> 100644
--- a/qiskit/circuit/library/standard_gates/swap.py
+++ b/qiskit/circuit/library/standard_gates/swap.py
@@ -104,7 +104,7 @@ class SwapGate(Gate):
class CSwapGate(ControlledGate):
-... | Typo fix of controlled SWAP gate documentation (#<I>) * Update for typo fix of controlled swap gate In response to Issue #<I> * To keep consistency. | py |
diff --git a/flask_moment.py b/flask_moment.py
index <HASH>..<HASH> 100644
--- a/flask_moment.py
+++ b/flask_moment.py
@@ -7,11 +7,7 @@ class _moment(object):
@staticmethod
def include_moment(version = '2.5.1'):
if version is not None:
- if request.is_secure:
- scheme = 'htt... | fixed https support (is_secure() is not reliable in some scenarios, like when it's behind an ssl terminating proxy) | py |
diff --git a/tilequeue/command.py b/tilequeue/command.py
index <HASH>..<HASH> 100755
--- a/tilequeue/command.py
+++ b/tilequeue/command.py
@@ -2134,7 +2134,7 @@ def tilequeue_meta_tile(cfg, args):
coord_data = [dict(coord=x) for x in pyramid_coords]
try:
- fetched_coord_data = data_fetche... | Realize fetch_tiles generator call immediately In order to catch fetch errors, the call needs to be realized immediately. We know that all coordinates here will be a part of the same zoom <I> parent so realizing the list shouldn't impact memory usage. | py |
diff --git a/udiskie/mount.py b/udiskie/mount.py
index <HASH>..<HASH> 100644
--- a/udiskie/mount.py
+++ b/udiskie/mount.py
@@ -26,6 +26,9 @@ class AutoMounter:
self.bus.add_signal_receiver(self.device_added,
signal_name='DeviceAdded',
... | More complete handling of the last state storage. refs issue 1 | py |
diff --git a/docs/conf.py b/docs/conf.py
index <HASH>..<HASH> 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -162,7 +162,7 @@ html_split_index = True
html_show_sourcelink = True
html_sourcelink_suffix = ".rst"
# If true, "Created using Sphinx" is shown in the HTML footer. Default is True.
-html_show_sphinx = True
+... | docs/conf.py: disable html footer showing sphinx and theme. | py |
diff --git a/jp_proxy_widget/downloader.py b/jp_proxy_widget/downloader.py
index <HASH>..<HASH> 100644
--- a/jp_proxy_widget/downloader.py
+++ b/jp_proxy_widget/downloader.py
@@ -12,7 +12,7 @@ js_file = "js/Filesaver.js"
js_helper = """
// function(element) {
- debugger;
+ // debugger;
element.download =... | renamed method, now require_js | py |
diff --git a/proso_flashcards/management/commands/load_flashcards.py b/proso_flashcards/management/commands/load_flashcards.py
index <HASH>..<HASH> 100644
--- a/proso_flashcards/management/commands/load_flashcards.py
+++ b/proso_flashcards/management/commands/load_flashcards.py
@@ -39,14 +39,14 @@ class Command(BaseCom... | drop encoding from loading of json file | py |
diff --git a/gdown/cli.py b/gdown/cli.py
index <HASH>..<HASH> 100644
--- a/gdown/cli.py
+++ b/gdown/cli.py
@@ -60,7 +60,7 @@ def main():
parser.add_argument(
"url_or_id", help="url or file/folder id (with --id) to download from"
)
- parser.add_argument("-O", "--output", help="output filename")
+ ... | Add support for directory structure in CLI | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -34,6 +34,7 @@ setup(
install_requires=REQUIRES,
extras_require=EXTRAS,
packages=find_packages(exclude=["tests", "tests.*"]),
+ include_package_data=True,
python_requires=">=3.5.3",
entry_points={"c... | Fix package data for wheels (#<I>) | py |
diff --git a/rage.py b/rage.py
index <HASH>..<HASH> 100644
--- a/rage.py
+++ b/rage.py
@@ -182,7 +182,7 @@ class RegistryKey(object):
@property
def path(self):
- return self._path
+ return self._path.strip(os.path.sep)
@property
def key(self):
@@ -243,6 +243,16 @@ class RegistryKey... | Added option to get parent key. closes #2 | py |
diff --git a/openquake/calculators/classical.py b/openquake/calculators/classical.py
index <HASH>..<HASH> 100644
--- a/openquake/calculators/classical.py
+++ b/openquake/calculators/classical.py
@@ -158,7 +158,7 @@ class PSHACalculator(base.HazardCalculator):
oq = self.oqparam
opt = self.oqparam.optim... | Reduced tasks per tile [skip hazardlib] Former-commit-id: <I>a<I>f8bbdf8e9e7de<I>e<I>d<I>f<I>d1eaca | py |
diff --git a/geoviews/plotting/bokeh/plot.py b/geoviews/plotting/bokeh/plot.py
index <HASH>..<HASH> 100644
--- a/geoviews/plotting/bokeh/plot.py
+++ b/geoviews/plotting/bokeh/plot.py
@@ -65,7 +65,7 @@ class GeoPlot(ProjectionPlot, ElementPlot):
self.show_frame = False
show_bounds = self._trave... | Fixed show_bounds issue with latest HoloViews (#<I>) | py |
diff --git a/salt/proxy/philips_hue.py b/salt/proxy/philips_hue.py
index <HASH>..<HASH> 100644
--- a/salt/proxy/philips_hue.py
+++ b/salt/proxy/philips_hue.py
@@ -99,7 +99,7 @@ def shutdown(opts, *args, **kw):
return True
-def _set(lamp_id, state):
+def _set(lamp_id, state, method="state"):
'''
Set s... | Enhance _set method so it can set more than just lights status | py |
diff --git a/dallinger/recruiters.py b/dallinger/recruiters.py
index <HASH>..<HASH> 100644
--- a/dallinger/recruiters.py
+++ b/dallinger/recruiters.py
@@ -487,6 +487,10 @@ def from_config(config):
if name is not None:
klass = by_name(name)
+ # Don't use a configured recruiter in replay mode
+ if c... | Don't use a recruiter when in replay mode. | py |
diff --git a/py3status/py3.py b/py3status/py3.py
index <HASH>..<HASH> 100644
--- a/py3status/py3.py
+++ b/py3status/py3.py
@@ -857,8 +857,8 @@ class Py3:
An Exception is raised if an error occurs
"""
- # convert the command to sequence if a string
- if isinstance(command, basestring):
... | Do not split shell commands into sequences The modules like `xrandr_rotate` are totally broken, because since `cmd` is a string, py3.command_output() will `shlex.split` it, and the command becomes invalid. The solution is to not split shell commands. | py |
diff --git a/bin/chardetect.py b/bin/chardetect.py
index <HASH>..<HASH> 100755
--- a/bin/chardetect.py
+++ b/bin/chardetect.py
@@ -32,7 +32,7 @@ def description_of(path):
def main():
for path in argv[1:]:
- print description_of(path)
+ print(description_of(path))
if __name__ == '__main__': | Minor defect in chardetect. | 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
@@ -184,6 +184,9 @@ LANG_RELEASE_MATRIX = {
{
'v1.14.0': None
},
+ {
+ ... | Add <I> release of grpc-java | py |
diff --git a/tests/featureWriters/featureWriters_test.py b/tests/featureWriters/featureWriters_test.py
index <HASH>..<HASH> 100644
--- a/tests/featureWriters/featureWriters_test.py
+++ b/tests/featureWriters/featureWriters_test.py
@@ -11,10 +11,35 @@ from ufo2ft.featureWriters import (
loadFeatureWriters,
loa... | featureWriters_test: add example plist | py |
diff --git a/zsl/interface/celery/worker.py b/zsl/interface/celery/worker.py
index <HASH>..<HASH> 100644
--- a/zsl/interface/celery/worker.py
+++ b/zsl/interface/celery/worker.py
@@ -18,8 +18,8 @@ class CeleryTaskQueueWorkerBase(TaskQueueWorker):
# type: (Config) -> None
super(CeleryTaskQueueWorkerBas... | Removed hard coded configuration values I had some settings for Celery hardcoded. I moved them to application settings. | py |
diff --git a/exchangelib/folders.py b/exchangelib/folders.py
index <HASH>..<HASH> 100644
--- a/exchangelib/folders.py
+++ b/exchangelib/folders.py
@@ -417,7 +417,7 @@ class Item(EWSElement):
ITEM_FIELDS = {
'item_id': ('Id', str),
'changekey': ('ChangeKey', str),
- 'mime_content': ('MimeCo... | Remove mime_type support until we actually find it useful. It's a lot of needless data to fetch by default | py |
diff --git a/HARK/distribution.py b/HARK/distribution.py
index <HASH>..<HASH> 100644
--- a/HARK/distribution.py
+++ b/HARK/distribution.py
@@ -1031,9 +1031,9 @@ def calcExpectation(func,values,dstn):
temp_shape = value_shape.copy()
temp_shape[i] = 1
new_array = np.tile(new_array, ... | Fixed typos, basic evalExpectations works Still need to test alternate input versions. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -11,7 +11,7 @@ from distutils.core import Command
from setuptools import setup, find_packages
from version import get_git_version
-VERSION = get_git_version()
+VERSION, SOURCE_LABEL = get_git_version()
PROJECT = 'streamco... | Update setup.py to new version.py api | py |
diff --git a/rosbag_pandas.py b/rosbag_pandas.py
index <HASH>..<HASH> 100755
--- a/rosbag_pandas.py
+++ b/rosbag_pandas.py
@@ -14,7 +14,7 @@ import rospy
from roslib.message import get_message_class
-def bag_to_dataframe(bag_name, include=None, exclude=None, parse_header=True):
+def bag_to_dataframe(bag_name, incl... | changed default to not parse headers and added cleaning script for csv export | py |
diff --git a/klue_microservice/exceptions.py b/klue_microservice/exceptions.py
index <HASH>..<HASH> 100644
--- a/klue_microservice/exceptions.py
+++ b/klue_microservice/exceptions.py
@@ -11,7 +11,7 @@ from klue.swagger.apipool import ApiPool
log = logging.getLogger(__name__)
-class KlueMicroServiceException(Except... | Added report_error and missing exceptions | py |
diff --git a/mysql/toolkit/components/database.py b/mysql/toolkit/components/database.py
index <HASH>..<HASH> 100644
--- a/mysql/toolkit/components/database.py
+++ b/mysql/toolkit/components/database.py
@@ -171,14 +171,14 @@ class Database(DatabaseCopy):
if not one_query:
self.copy_databas... | Refactored copy_tables_onequery to a private method | py |
diff --git a/discord/message.py b/discord/message.py
index <HASH>..<HASH> 100644
--- a/discord/message.py
+++ b/discord/message.py
@@ -95,9 +95,10 @@ class Attachment:
use_cached: :class:`bool`
Whether to use :attr:`proxy_url` rather than :attr:`url` when downloading
the attachment. T... | Fix Attachment.save wording nit. | py |
diff --git a/tower/management/commands/extract.py b/tower/management/commands/extract.py
index <HASH>..<HASH> 100644
--- a/tower/management/commands/extract.py
+++ b/tower/management/commands/extract.py
@@ -138,6 +138,10 @@ class Command(BaseCommand):
dest='outputdir',
help='Th... | Extract now takes a '-c' option '-c' will create the locale/ directory so that extract can do it's thing. | py |
diff --git a/umis/umis.py b/umis/umis.py
index <HASH>..<HASH> 100644
--- a/umis/umis.py
+++ b/umis/umis.py
@@ -376,21 +376,6 @@ def umi_histogram(fastq):
for bc, count in counter.most_common():
sys.stdout.write('{}\t{}\n'.format(bc, count))
-def cb_filterer(chunk, bc1, bc2):
- parser_re = re.compile(... | Remove unused cb_filterer function. This was moved to barcodes.py and renamed to exact_barcode_filter. | py |
diff --git a/spikeextractors/SortingExtractor.py b/spikeextractors/SortingExtractor.py
index <HASH>..<HASH> 100644
--- a/spikeextractors/SortingExtractor.py
+++ b/spikeextractors/SortingExtractor.py
@@ -77,7 +77,7 @@ class SortingExtractor(ABC):
if unit_id not in self._unit_features.keys():
... | Wrapped value in numpy array for spike features --> easier indexing in future | py |
diff --git a/fedora_messaging/api.py b/fedora_messaging/api.py
index <HASH>..<HASH> 100644
--- a/fedora_messaging/api.py
+++ b/fedora_messaging/api.py
@@ -1,8 +1,6 @@
"""The API for publishing messages and consuming from message queues."""
-from ._session import ConsumerSession, PublisherSession
-
-_session = None
+... | Don't expose _session classes as public names in api.py | py |
diff --git a/openid/fetchers.py b/openid/fetchers.py
index <HASH>..<HASH> 100644
--- a/openid/fetchers.py
+++ b/openid/fetchers.py
@@ -218,8 +218,10 @@ class Urllib2Fetcher(HTTPFetcher):
'User-Agent',
"%s Python-urllib/%s" % (USER_AGENT, urllib.request.__version__))
- req = urllib.req... | Only coerce to bytes if it's str to begin with | py |
diff --git a/psiturk/psiturk_shell.py b/psiturk/psiturk_shell.py
index <HASH>..<HASH> 100644
--- a/psiturk/psiturk_shell.py
+++ b/psiturk/psiturk_shell.py
@@ -191,12 +191,10 @@ class PsiturkShell(Cmd, object):
for i in range(readline.get_current_history_length()):
if readline.get_history_i... | remove call to parent stub functions each of the removed calls were just stub hook functions in the parend module. no need to call them. | py |
diff --git a/tests/test_unicorn.py b/tests/test_unicorn.py
index <HASH>..<HASH> 100644
--- a/tests/test_unicorn.py
+++ b/tests/test_unicorn.py
@@ -128,8 +128,8 @@ def _compare_paths(pu, pn):
def run_similarity(binpath, depth):
b = angr.Project(os.path.join(test_location, binpath))
- s_unicorn = b.factory.ent... | use the new option to disable memory map tracking | py |
diff --git a/sphinx_gallery/gen_rst.py b/sphinx_gallery/gen_rst.py
index <HASH>..<HASH> 100644
--- a/sphinx_gallery/gen_rst.py
+++ b/sphinx_gallery/gen_rst.py
@@ -438,14 +438,16 @@ def execute_script(code_block, example_globals, image_path, fig_count,
# Depending on whether we have one or more figures, we're... | Don't put CSS horizontal when there are no images If the code outputs no images the is no good reason to put the multiple images list CSS environment | py |
diff --git a/ayrton/tests/test_ayrton.py b/ayrton/tests/test_ayrton.py
index <HASH>..<HASH> 100644
--- a/ayrton/tests/test_ayrton.py
+++ b/ayrton/tests/test_ayrton.py
@@ -106,6 +106,39 @@ class Bash(unittest.TestCase):
self.assertEqual (bash ('~', single=True), os.environ['HOME'])
+class Argv (unittest.Tes... | [+] tests for Argv, improve coverage. | py |
diff --git a/test/test_api/test_text.py b/test/test_api/test_text.py
index <HASH>..<HASH> 100644
--- a/test/test_api/test_text.py
+++ b/test/test_api/test_text.py
@@ -143,7 +143,7 @@ def test_save_file(editor):
assert editor.file.encoding == 'latin-1'
os.remove('tmp.py')
editor.file.open(__file__)
- w... | Tests: fix expected exception type (IOError instead of OSError) | py |
diff --git a/salt/modules/yumpkg.py b/salt/modules/yumpkg.py
index <HASH>..<HASH> 100644
--- a/salt/modules/yumpkg.py
+++ b/salt/modules/yumpkg.py
@@ -540,7 +540,7 @@ def verify(*package):
return ret
-def grouplist():
+def group_list():
'''
Lists all groups known by yum on this system
@@ -563,7 +56... | Multi-word, unspaced function names are ugly | py |
diff --git a/HydraLib/python/HydraLib/hydra_dateutil.py b/HydraLib/python/HydraLib/hydra_dateutil.py
index <HASH>..<HASH> 100644
--- a/HydraLib/python/HydraLib/hydra_dateutil.py
+++ b/HydraLib/python/HydraLib/hydra_dateutil.py
@@ -362,7 +362,7 @@ def reindex_timeseries(ts_string, new_timestamps):
if set(idx.ye... | Fix for reindex timestamps of seasonal timeseries. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -104,7 +104,7 @@ setup(name='km3pipe',
cmdclass={'build_ext': build_ext},
include_package_data=True,
platforms='any',
- setup_requires=['setuptools>=18.0', 'cython', 'numpy'],
+ setup_requires=['... | PKG bump pip + setuptools (yes I'm that lame) | py |
diff --git a/izaber/__init__.py b/izaber/__init__.py
index <HASH>..<HASH> 100644
--- a/izaber/__init__.py
+++ b/izaber/__init__.py
@@ -4,7 +4,7 @@ import imp
class IZaberFinder(object):
- def find_module(self, module_name, package_path):
+ def find_module(self, module_name, package_path=None):
eleme... | fix to make sure it does not clash with flask | py |
diff --git a/openquake/engine/engine.py b/openquake/engine/engine.py
index <HASH>..<HASH> 100644
--- a/openquake/engine/engine.py
+++ b/openquake/engine/engine.py
@@ -342,7 +342,8 @@ def run_calc(job, log_level, log_file, exports, job_type):
if not job_pid:
# calculation executor process
try:
- ... | engine: Update call to logs.init_logs_amqp_send; there's a new func signature. Former-commit-id: <I>b<I>d<I>ab0b1eda<I>b0b<I>fc4bcd<I>eaad | py |
diff --git a/app_namespace/loader.py b/app_namespace/loader.py
index <HASH>..<HASH> 100644
--- a/app_namespace/loader.py
+++ b/app_namespace/loader.py
@@ -13,6 +13,8 @@ from django.template.base import TemplateDoesNotExist
from django.core.exceptions import ImproperlyConfigured
from django.utils.datastructures import... | Compute the filesystem encoding one time at the loading | py |
diff --git a/tensor2tensor/utils/bleu_hook.py b/tensor2tensor/utils/bleu_hook.py
index <HASH>..<HASH> 100644
--- a/tensor2tensor/utils/bleu_hook.py
+++ b/tensor2tensor/utils/bleu_hook.py
@@ -115,7 +115,12 @@ def compute_bleu(reference_corpus,
if use_bp:
ratio = translation_length / reference_length
- bp = ... | Division by zero bug fix. PiperOrigin-RevId: <I> | py |
diff --git a/anchore/cli/login.py b/anchore/cli/login.py
index <HASH>..<HASH> 100644
--- a/anchore/cli/login.py
+++ b/anchore/cli/login.py
@@ -18,8 +18,18 @@ def login(anchore_config):
ecode = 0
try:
- username = raw_input("Username: ")
- password = getpass.getpass("Password: ")
+ if os... | allow ANCHOREUSER/ANCHOREPASS environment override for login operation | py |
diff --git a/hangups/client.py b/hangups/client.py
index <HASH>..<HASH> 100644
--- a/hangups/client.py
+++ b/hangups/client.py
@@ -249,7 +249,8 @@ class Client(object):
initial_entities = []
try:
entities = schemas.INITIAL_CLIENT_ENTITIES.parse(
- data_dict['ds:21'][0]
+ ... | fixes #<I> by re-mapping ds:<I> to ds:<I> | py |
diff --git a/asciimathml.py b/asciimathml.py
index <HASH>..<HASH> 100644
--- a/asciimathml.py
+++ b/asciimathml.py
@@ -26,7 +26,7 @@ def El(tag, text=None, *children, **attrib):
element = Element_(tag, **attrib)
if not text is None:
- if isinstance(text, basestring):
+ if isinstance(text, str)... | Port this to python 3.x. | py |
diff --git a/tests/setup_transaction_tests.py b/tests/setup_transaction_tests.py
index <HASH>..<HASH> 100644
--- a/tests/setup_transaction_tests.py
+++ b/tests/setup_transaction_tests.py
@@ -105,7 +105,7 @@ curve_order = 218882428718392752222464057452572750885483644004160343436982041865
@pytest.fixture
def get_log(... | Provide tester instead of chain as arg | py |
diff --git a/pywb/apps/frontendapp.py b/pywb/apps/frontendapp.py
index <HASH>..<HASH> 100644
--- a/pywb/apps/frontendapp.py
+++ b/pywb/apps/frontendapp.py
@@ -91,8 +91,6 @@ class FrontEndApp(object):
self.cdx_api_endpoint = config.get('cdx_api_endpoint', '/cdx')
- self._init_routes()
-
upst... | routes: make coll route config extendable to support prefix routing for localization ukwa/ukwa-pywb#<I> split init_routes() into init_coll_routes() and make_coll_routes() which retrieves a list of per-collection routes only | py |
diff --git a/anyconfig/globals.py b/anyconfig/globals.py
index <HASH>..<HASH> 100644
--- a/anyconfig/globals.py
+++ b/anyconfig/globals.py
@@ -1,5 +1,6 @@
#
# Copyright (C) 2013 - 2018 Satoru SATOH <ssato @ redhat.com>
+# Copyright (C) 2019 Satoru SATOH <satoru.satoh @ gmail.com>
# License: MIT
#
# pylint: disable... | fix: correct the copyright header in .globals | py |
diff --git a/datadog_checks_dev/datadog_checks/dev/tooling/manifest_validator/v2/migration.py b/datadog_checks_dev/datadog_checks/dev/tooling/manifest_validator/v2/migration.py
index <HASH>..<HASH> 100644
--- a/datadog_checks_dev/datadog_checks/dev/tooling/manifest_validator/v2/migration.py
+++ b/datadog_checks_dev/dat... | Fix manifest migration of macOS tag (#<I>) | py |
diff --git a/asammdf/blocks/mdf_v4.py b/asammdf/blocks/mdf_v4.py
index <HASH>..<HASH> 100644
--- a/asammdf/blocks/mdf_v4.py
+++ b/asammdf/blocks/mdf_v4.py
@@ -3683,8 +3683,6 @@ class MDF4(object):
# for embedded attachments extrat data and create new files
if flags & v4c.FLAG_AT_EMBEDDED:
... | don't change the current working directory | py |
diff --git a/master/buildbot/process/build.py b/master/buildbot/process/build.py
index <HASH>..<HASH> 100644
--- a/master/buildbot/process/build.py
+++ b/master/buildbot/process/build.py
@@ -261,8 +261,6 @@ class Build(properties.PropertiesMixin, WorkerAPICompatMixin):
... | Delay sending 'new' build message until properties are populated | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.