diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/tensorflow_probability/python/distributions/dirichlet.py b/tensorflow_probability/python/distributions/dirichlet.py
index <HASH>..<HASH> 100644
--- a/tensorflow_probability/python/distributions/dirichlet.py
+++ b/tensorflow_probability/python/distributions/dirichlet.py
@@ -29,6 +29,7 @@ from tensorflow_pro... | Update Dirichlet to use internally-stateless sampling. PiperOrigin-RevId: <I> | py |
diff --git a/harbor/tests/test_unit.py b/harbor/tests/test_unit.py
index <HASH>..<HASH> 100644
--- a/harbor/tests/test_unit.py
+++ b/harbor/tests/test_unit.py
@@ -57,7 +57,7 @@ def test_submit_disk_metrics(aggregator, harbor_check, harbor_api):
def test_submit_read_only_status(aggregator, harbor_check, harbor_api):
... | Fix semantics of test assertion (#<I>) | py |
diff --git a/switchboard/settings.py b/switchboard/settings.py
index <HASH>..<HASH> 100644
--- a/switchboard/settings.py
+++ b/switchboard/settings.py
@@ -23,6 +23,9 @@ class Settings(object):
cls._state['SWITCHBOARD_MONGO_COLLECTION'] = mongo_collection
remainder = kwargs.iteritems()
remaind... | Properly handle timeout settings. | 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
@@ -1430,7 +1430,7 @@ class LossCurvesMapsBuilder(object):
"""
array = numpy.zeros((len(clp), len(losses)), F32)
... | Restored build_loss_maps as it was [skip CI] | py |
diff --git a/digsandpaper/coarse/generate/query_compiler_component.py b/digsandpaper/coarse/generate/query_compiler_component.py
index <HASH>..<HASH> 100644
--- a/digsandpaper/coarse/generate/query_compiler_component.py
+++ b/digsandpaper/coarse/generate/query_compiler_component.py
@@ -108,7 +108,7 @@ class Elasticsear... | Fix error in match_phrase query compilation | py |
diff --git a/isochrones/starmodel.py b/isochrones/starmodel.py
index <HASH>..<HASH> 100644
--- a/isochrones/starmodel.py
+++ b/isochrones/starmodel.py
@@ -1319,12 +1319,13 @@ class BasicStarModel(StarModel):
def __init__(self, ic, eep_bounds=None, name='', directory='.', N=1,
maxAV=None, max_di... | put back in use_emcee kwarg | py |
diff --git a/steam/user.py b/steam/user.py
index <HASH>..<HASH> 100644
--- a/steam/user.py
+++ b/steam/user.py
@@ -445,7 +445,11 @@ class friend_list(object):
self._api = api.interface("ISteamUser").GetFriendList(steamid=sid,
relationship=relations... | Added basic error handling to user.friend_list | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -48,5 +48,8 @@ setup(
classifiers=[
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.3',
+ 'Programming Language :: Python :: 3.4',
+ 'Programming Language :: P... | Add classifiers for more Python versions | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -26,7 +26,7 @@ DESCRIPTION = 'A Cython wrapper to the IPOPT optimization package'
AUTHOR = 'Matthias Kümmerer'
EMAIL = 'matthias.kuemmerer@bethgelab.org'
URL = "https://github.com/matthiask/cyipopt"
-
+DEPENDENCIES = ['nump... | Added the build/install dependencies to setup.py. | py |
diff --git a/delphi/jupyter_tools.py b/delphi/jupyter_tools.py
index <HASH>..<HASH> 100644
--- a/delphi/jupyter_tools.py
+++ b/delphi/jupyter_tools.py
@@ -1,3 +1,4 @@
+import os
from pprint import pprint
import pandas as pd
from typing import List, Dict, Optional
@@ -90,3 +91,30 @@ def display(file: str):
def dis... | Adding function get_python_shell to delphi.jupyter_tools to determine the Python shell in which the code is running | py |
diff --git a/src/internal_coordinates.py b/src/internal_coordinates.py
index <HASH>..<HASH> 100644
--- a/src/internal_coordinates.py
+++ b/src/internal_coordinates.py
@@ -522,7 +522,10 @@ class Collection(object):
def yield_related_internal_coordinates(self, tag1, tag2, order_related=2):
for ic1 in self[t... | Safer code for taking related coordinates. | py |
diff --git a/hgdistver.py b/hgdistver.py
index <HASH>..<HASH> 100644
--- a/hgdistver.py
+++ b/hgdistver.py
@@ -305,8 +305,7 @@ def find_files(dirname=''):
hg = findroot(abs, '.hg')
git = findroot(abs, '.git')
if hg and git:
- m = max(hg, git)
- if max is hg:
+ if hg > git:
... | simplify deciding what path to use after findroots | py |
diff --git a/tryp/__init__.py b/tryp/__init__.py
index <HASH>..<HASH> 100644
--- a/tryp/__init__.py
+++ b/tryp/__init__.py
@@ -1,5 +1,8 @@
+from fn import _ # type: ignore
+
from tryp.maybe import Maybe, Just, Empty, may
from tryp.list import List
from tryp.map import Map
-__all__ = ['Maybe', 'Just', 'Empty', 'ma... | convenience forward-import for fn._ | py |
diff --git a/test/util.py b/test/util.py
index <HASH>..<HASH> 100644
--- a/test/util.py
+++ b/test/util.py
@@ -41,7 +41,7 @@ def pquery(command, stdin=None, **kwargs):
if proc.returncode != 0:
raise ProcessException(proc.returncode)
- return stdout
+ return stdout.decode("utf-8")
# Directory na... | Forgot to do a decode in the pquery function in the tests | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -13,11 +13,12 @@ requirements = [str(ir.req) for ir in install_reqs]
setup(
name='fiveoneone',
- version='0.1',
+ version='0.2',
license='MIT',
author='Ramiro Berrelleza',
author_email='rberrellez... | Added url to the setup.py metadata | py |
diff --git a/src/scs_core/data/path_dict.py b/src/scs_core/data/path_dict.py
index <HASH>..<HASH> 100644
--- a/src/scs_core/data/path_dict.py
+++ b/src/scs_core/data/path_dict.py
@@ -209,7 +209,8 @@ class PathDict(JSONable):
while key >= len(container):
container.append(None)
- ... | Added exclusion mode to node.py | py |
diff --git a/salt/modules/vsphere.py b/salt/modules/vsphere.py
index <HASH>..<HASH> 100644
--- a/salt/modules/vsphere.py
+++ b/salt/modules/vsphere.py
@@ -203,7 +203,8 @@ def __virtual__():
def get_proxy_type():
'''
- Returns the proxy type
+ Returns the proxy type retrieved either from the pillar of from... | Updated vsphere.get_proxy_type to work if the proxy settings are set via the config file | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -123,10 +123,10 @@ def setup_package():
maintainer_email="james.goppert@gmail.com",
description=DOCLINES[0],
long_description="\n".join(DOCLINES[2:]),
- url='https://github.com/jgoppert/pymola... | Update GitHub URLs in setup.py to pymola organization | py |
diff --git a/test_knot.py b/test_knot.py
index <HASH>..<HASH> 100755
--- a/test_knot.py
+++ b/test_knot.py
@@ -2,6 +2,7 @@
# -*- coding: utf-8 -*-
import unittest
+from mock import MagicMock
from knot import Container, factory, service, provider
@@ -55,30 +56,33 @@ class TestContainer(unittest.TestCase):
... | Use mocks to test the decorators. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -25,7 +25,7 @@ setup(
keywords='daemon daemonize fork unix cli',
packages=['daemonocle'],
install_requires=[
- 'click==2.1',
+ 'click==2.5',
'psutil==2.1.1',
],
) | Upgraded click to version <I>. | py |
diff --git a/tests/test_watch.py b/tests/test_watch.py
index <HASH>..<HASH> 100644
--- a/tests/test_watch.py
+++ b/tests/test_watch.py
@@ -137,6 +137,26 @@ def test_watch(mocker):
assert next(iter_) == {'r2'}
+def test_watch_watcher_args(mocker):
+ class FakeWatcher:
+ def __init__(self, path, arg1, ... | Add test of watch with watcher_args | py |
diff --git a/arxiv/arxiv.py b/arxiv/arxiv.py
index <HASH>..<HASH> 100644
--- a/arxiv/arxiv.py
+++ b/arxiv/arxiv.py
@@ -16,9 +16,14 @@ root_url = 'http://export.arxiv.org/api/'
# TODO: Field queries ("Details of Query Construction")
# TODO: Do I want to support boolean operators?
# TODO: Do I want to add support for ... | allow to specifically query arxiv ids | py |
diff --git a/dusty/commands/test.py b/dusty/commands/test.py
index <HASH>..<HASH> 100644
--- a/dusty/commands/test.py
+++ b/dusty/commands/test.py
@@ -5,7 +5,7 @@ from prettytable import PrettyTable
from .. import constants
from ..compiler.spec_assembler import get_expanded_libs_specs
-from ..compiler.compose impor... | add in command that will ensure you are in the mounted directory before running tests | py |
diff --git a/examples/server.py b/examples/server.py
index <HASH>..<HASH> 100644
--- a/examples/server.py
+++ b/examples/server.py
@@ -59,7 +59,7 @@ class ServerHandler(BaseHTTPRequestHandler):
self.showMainPage()
elif path == '/openidserver':
status, info = self.server.op... | [project @ Fix OpenID server example, and make it clearer what it's doing.] | py |
diff --git a/tests/eventlisten.py b/tests/eventlisten.py
index <HASH>..<HASH> 100644
--- a/tests/eventlisten.py
+++ b/tests/eventlisten.py
@@ -6,6 +6,7 @@ This script is a generic tool to test event output
'''
# Import Python libs
+import os
import optparse
import pprint
import time
@@ -41,6 +42,8 @@ def parse()... | Fix eventlisten for changes made to <I> | py |
diff --git a/chef/lib/chef/provider/package/yum-dump.py b/chef/lib/chef/provider/package/yum-dump.py
index <HASH>..<HASH> 100644
--- a/chef/lib/chef/provider/package/yum-dump.py
+++ b/chef/lib/chef/provider/package/yum-dump.py
@@ -35,6 +35,7 @@ import sys
import time
import yum
import re
+import errno
from yum im... | Suppress a nasty broken pipe error when output is piped to utilities like 'head'. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -37,6 +37,6 @@ setup(
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
- "Topic :: Finance",
+ "Intended Audie... | Fix setup (#<I>) | py |
diff --git a/goldencheetahlib/client.py b/goldencheetahlib/client.py
index <HASH>..<HASH> 100644
--- a/goldencheetahlib/client.py
+++ b/goldencheetahlib/client.py
@@ -16,7 +16,11 @@ class GCClient:
return pd.read_csv(self.host)
def get_activity_list(self):
- return pd.read_csv(self.athlete_endpoi... | CHANGE - Cropped, renamed and improved returned activity list | py |
diff --git a/growler/http/protocol.py b/growler/http/protocol.py
index <HASH>..<HASH> 100644
--- a/growler/http/protocol.py
+++ b/growler/http/protocol.py
@@ -46,9 +46,10 @@ class GrowlerHTTPProtocol(GrowlerProtocol):
super().__init__(loop=app.loop, responder_factory=responder_factory)
self.http_appli... | growler.http.protocol: Renammed middleware_chain to process_middleware to reflect this begins processing rather than returning some chain. | py |
diff --git a/djongo/features.py b/djongo/features.py
index <HASH>..<HASH> 100644
--- a/djongo/features.py
+++ b/djongo/features.py
@@ -5,3 +5,4 @@ class DatabaseFeatures(BaseDatabaseFeatures):
supports_transactions = False
# djongo doesn't seem to support this currently
has_bulk_insert = False
+ has_n... | Add support for UUID field to store in binary format (#<I>) Thank you for your contribution | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -2,6 +2,7 @@ from distutils.core import setup
setup(
name='alpha_vantage',
+ packages=['alpha_vantage'],
version='0.1.4',
author='Romel J. Torres',
author_email='romel.torres@gmail.com',
@@ -15,7 +16,... | chore: Change package name in setup.py | py |
diff --git a/src/diamond/server.py b/src/diamond/server.py
index <HASH>..<HASH> 100644
--- a/src/diamond/server.py
+++ b/src/diamond/server.py
@@ -134,6 +134,9 @@ class Server(object):
# Get a list of files in the directory, if the directory exists
if not os.path.exists(path):
raise OSErr... | Fix the path scanning to ignore tests correctly again | py |
diff --git a/pyipmi/hpm.py b/pyipmi/hpm.py
index <HASH>..<HASH> 100644
--- a/pyipmi/hpm.py
+++ b/pyipmi/hpm.py
@@ -225,7 +225,7 @@ class Hpm:
self._check_completion_code(rsp)
def activate_firmware_and_wait(self, rollback_override=None,
- timeout=2, interval=0.1):
+ timeout=2, inter... | hpm: refactor wait_until_new_firmware_comes_up | py |
diff --git a/tests/providers/google/cloud/hooks/test_bigquery_system.py b/tests/providers/google/cloud/hooks/test_bigquery_system.py
index <HASH>..<HASH> 100644
--- a/tests/providers/google/cloud/hooks/test_bigquery_system.py
+++ b/tests/providers/google/cloud/hooks/test_bigquery_system.py
@@ -17,17 +17,16 @@
# under ... | Fix BQ hook system test (#<I>) | py |
diff --git a/django_cassandra_engine/apps.py b/django_cassandra_engine/apps.py
index <HASH>..<HASH> 100644
--- a/django_cassandra_engine/apps.py
+++ b/django_cassandra_engine/apps.py
@@ -35,8 +35,9 @@ def construct_instance(form, instance, fields=None, exclude=None):
field_has_default = f.has_default
... | Minor fixes to support Django <I> | py |
diff --git a/examples/ccxt.pro/py/many-exchanges-many-streams.py b/examples/ccxt.pro/py/many-exchanges-many-streams.py
index <HASH>..<HASH> 100644
--- a/examples/ccxt.pro/py/many-exchanges-many-streams.py
+++ b/examples/ccxt.pro/py/many-exchanges-many-streams.py
@@ -28,11 +28,9 @@ async def exchange_loop(asyncio_loop, ... | Update many-exchanges-many-streams.py | py |
diff --git a/metpy/io/tools.py b/metpy/io/tools.py
index <HASH>..<HASH> 100644
--- a/metpy/io/tools.py
+++ b/metpy/io/tools.py
@@ -52,7 +52,7 @@ class DictStruct(Struct):
Struct.__init__(self, prefmt + ''.join(f for f in formats if f))
def _create(self, items):
- return {n: v for n, v in zip(self... | Eliminate dictionary comprehension. It's cleaner without it. | py |
diff --git a/marshmallow/exceptions.py b/marshmallow/exceptions.py
index <HASH>..<HASH> 100644
--- a/marshmallow/exceptions.py
+++ b/marshmallow/exceptions.py
@@ -5,7 +5,6 @@ from marshmallow.compat import basestring
class MarshmallowError(Exception):
"""Base class for all marshmallow-related errors."""
- pa... | Minor rework in exceptions.py | py |
diff --git a/widgets_overview_app.py b/widgets_overview_app.py
index <HASH>..<HASH> 100644
--- a/widgets_overview_app.py
+++ b/widgets_overview_app.py
@@ -131,7 +131,6 @@ class MyApp(App):
def on_button_pressed(self):
self.lbl.set_text('Button pressed!')
self.bt.set_text('Hi!')
- self.bt.s... | Removed a test code line. | py |
diff --git a/molo/core/content_import/helper.py b/molo/core/content_import/helper.py
index <HASH>..<HASH> 100644
--- a/molo/core/content_import/helper.py
+++ b/molo/core/content_import/helper.py
@@ -1,5 +1,6 @@
import json
+from babel import Locale
from molo.core.models import (
Main, SiteLanguage, PageTrans... | changed create to get_or_create | py |
diff --git a/ibis/impala/client.py b/ibis/impala/client.py
index <HASH>..<HASH> 100644
--- a/ibis/impala/client.py
+++ b/ibis/impala/client.py
@@ -1004,7 +1004,7 @@ class ImpalaClient(SQLClient):
def _get_concrete_table_path(self, name, database, persist=False):
if not persist:
if name is Non... | BUG: ensure that table name will not start with a digit | py |
diff --git a/frontend/tests/webapp/TestTaskSubmission.py b/frontend/tests/webapp/TestTaskSubmission.py
index <HASH>..<HASH> 100644
--- a/frontend/tests/webapp/TestTaskSubmission.py
+++ b/frontend/tests/webapp/TestTaskSubmission.py
@@ -10,6 +10,7 @@ class TestTaskSubmission(LoggedInTest):
password = "test"
d... | I need to investiguate why it does not work on travis | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -497,7 +497,6 @@ ext_modules = [Extension(
# TFM_NO_ASM=None,
).items(),
- extra_link_args=['-rdynamic'],
) for name in ext_names]
@@ -507,7 +506,7 @@ if __name__ == '__main__':
name='PyT... | Don't need the "-rdynamic" flag anymore. | py |
diff --git a/absl/testing/absltest.py b/absl/testing/absltest.py
index <HASH>..<HASH> 100644
--- a/absl/testing/absltest.py
+++ b/absl/testing/absltest.py
@@ -1945,7 +1945,7 @@ def print_python_version():
def main(*args, **kwargs):
- # type: (Text, Mapping[Text, Any]) -> None
+ # type: (Text, Any) -> None
"""... | Fix incorrect type annotation in absltest.main. The annotation for **kwargs should be the type of the variable, not a mapping of string to type (see <URL> | py |
diff --git a/bibliopixel/animation/queue.py b/bibliopixel/animation/queue.py
index <HASH>..<HASH> 100644
--- a/bibliopixel/animation/queue.py
+++ b/bibliopixel/animation/queue.py
@@ -35,8 +35,6 @@ class AnimationQueue(BaseAnimation):
self.anims.append(a)
def preRun(self, amt=1):
- if len(self.ani... | Allow empty animation queues. * Use case - start with an empty queue and add animations dynamically. | py |
diff --git a/raiden_contracts/contract_manager.py b/raiden_contracts/contract_manager.py
index <HASH>..<HASH> 100644
--- a/raiden_contracts/contract_manager.py
+++ b/raiden_contracts/contract_manager.py
@@ -111,6 +111,10 @@ class ContractManager:
except FileNotFoundError:
raise Exception('Could no... | Channel manager can return both abi+compiled - added `get_contract()` method | py |
diff --git a/muffin_redis.py b/muffin_redis.py
index <HASH>..<HASH> 100644
--- a/muffin_redis.py
+++ b/muffin_redis.py
@@ -318,6 +318,8 @@ class Subscription():
try:
import fakeredis
+ from fakeredis import FakePubSub as _ # noqa
+ # this is to ensure that fakeredis installed is new enough
class F... | Fixed failure when fakeredis is installed but too old | py |
diff --git a/binstar_client/commands/remove.py b/binstar_client/commands/remove.py
index <HASH>..<HASH> 100644
--- a/binstar_client/commands/remove.py
+++ b/binstar_client/commands/remove.py
@@ -52,7 +52,7 @@ def main(args):
def add_parser(subparsers):
parser = subparsers.add_parser('remove',
- ... | Minor edit to in-line help to expand explanation Hopefully greater clarity on the command for newbies like myself | py |
diff --git a/alot/helper.py b/alot/helper.py
index <HASH>..<HASH> 100644
--- a/alot/helper.py
+++ b/alot/helper.py
@@ -235,7 +235,7 @@ def pretty_datetime(d):
>>> pretty_datetime(now - timedelta(days=356))
u'Apr 2011'
"""
- ampm = d.strftime('%P')
+ ampm = d.strftime('%p').lower()
if len(ampm)... | helper: Don't rely on GNU extensions for strftime While the reality is that most alot users probably have glibc as their C library and can therefore rely on %P, it is possible that there are users or potential users who run a *BSD or other unix-like OS. This leaves only non-GNU extensions, though some of the extension... | py |
diff --git a/salt/utils/win_functions.py b/salt/utils/win_functions.py
index <HASH>..<HASH> 100644
--- a/salt/utils/win_functions.py
+++ b/salt/utils/win_functions.py
@@ -142,9 +142,16 @@ def get_current_user():
'''
try:
user_name = win32api.GetUserNameEx(win32api.NameSamCompatible)
- if user_... | fix(win_function): handle other language | py |
diff --git a/scss/__init__.py b/scss/__init__.py
index <HASH>..<HASH> 100644
--- a/scss/__init__.py
+++ b/scss/__init__.py
@@ -3094,23 +3094,28 @@ def _enumerate(prefix, frm, through, separator='-'):
try:
frm = int(getattr(frm, 'value', frm))
except ValueError:
- frm = 0
+ frm = 1
... | range() and enumerate() can receive inverted values, producing countdowns | py |
diff --git a/jira/client.py b/jira/client.py
index <HASH>..<HASH> 100755
--- a/jira/client.py
+++ b/jira/client.py
@@ -1415,7 +1415,8 @@ class JIRA(object):
if fields is None:
fields = []
- if maxResults is None or not maxResults:
+ # If None is passed as parameter, this fetch all ... | Update client.py None is interpreted as False in python, so for this, the if not maxResults is sufficient to determine is maxResult is None or False. | py |
diff --git a/spacy/scorer.py b/spacy/scorer.py
index <HASH>..<HASH> 100644
--- a/spacy/scorer.py
+++ b/spacy/scorer.py
@@ -47,8 +47,6 @@ class Scorer(object):
assert len(tokens) == len(gold)
for i, token in enumerate(tokens):
- if token.orth_.isspace():
- continue
... | * Begin refactoring scorer to use recall over gold dependencies | py |
diff --git a/geometry/eolearn/geometry/sampling.py b/geometry/eolearn/geometry/sampling.py
index <HASH>..<HASH> 100644
--- a/geometry/eolearn/geometry/sampling.py
+++ b/geometry/eolearn/geometry/sampling.py
@@ -211,8 +211,8 @@ class PointRasterSampler:
def _get_unknown_value(self):
""" Finds the smallest ... | minor docs string fix in sampling | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -73,7 +73,7 @@ kwargs = dict(
author_email='cgl-toil@googlegroups.com',
url="https://github.com/BD2KGenomics/toil-scripts",
install_requires=[
- 'toil-lib==1.0.3',
+ 'toil-lib==1.0.4a1.dev55',
... | Bump toil-lib version to <I>a1.de<I> (resolves #<I>) | py |
diff --git a/testproject/testapp/tests.py b/testproject/testapp/tests.py
index <HASH>..<HASH> 100644
--- a/testproject/testapp/tests.py
+++ b/testproject/testapp/tests.py
@@ -224,7 +224,7 @@ class PhonenumerFieldAppTest(TestCase):
pk = tm.id
tm = TestModel.objects.get(pk=pk)
- self.assertTrue... | Use more specific assertIsInstance in test | py |
diff --git a/wptools/core.py b/wptools/core.py
index <HASH>..<HASH> 100644
--- a/wptools/core.py
+++ b/wptools/core.py
@@ -199,8 +199,11 @@ class WPTools(object):
except ValueError:
raise ValueError(_query)
- if data.get('warnings') and not self.flags.get('silent'):
- utils.std... | Put API Warnings in data attribute #<I> | py |
diff --git a/internetarchive/iacli/ia_metadata.py b/internetarchive/iacli/ia_metadata.py
index <HASH>..<HASH> 100755
--- a/internetarchive/iacli/ia_metadata.py
+++ b/internetarchive/iacli/ia_metadata.py
@@ -36,7 +36,7 @@ def modify_metadata(item, metadata, args):
priority=args['--priority'... | Write unicode strings to stdout/stderr | py |
diff --git a/sandman2/app.py b/sandman2/app.py
index <HASH>..<HASH> 100644
--- a/sandman2/app.py
+++ b/sandman2/app.py
@@ -179,7 +179,7 @@ def _register_user_models(user_models, admin=None, schema=None):
:param list user_models: A list of user-defined models to include in the
API serv... | Make the any() a more-standard construction | py |
diff --git a/kconfiglib.py b/kconfiglib.py
index <HASH>..<HASH> 100644
--- a/kconfiglib.py
+++ b/kconfiglib.py
@@ -2731,7 +2731,12 @@ class Kconfig(object):
# End of file reached. Terminate the final node and return it.
if end_token:
- raise KconfigError("Unexpected end of file " + self._... | Improve error for missing endchoice/endif/endmenu Say what was expected in the error message. | py |
diff --git a/shutit_global.py b/shutit_global.py
index <HASH>..<HASH> 100644
--- a/shutit_global.py
+++ b/shutit_global.py
@@ -1670,7 +1670,8 @@ END_''' + random_id)
@param expect: See send()
@param child: See send()
@param retry: Number of times to retry command (default 3)
- @param strip: Whether... | bug fixed with stripping termcodes | py |
diff --git a/holoviews/core/spaces.py b/holoviews/core/spaces.py
index <HASH>..<HASH> 100644
--- a/holoviews/core/spaces.py
+++ b/holoviews/core/spaces.py
@@ -648,7 +648,14 @@ class DynamicMap(HoloMap):
flattened = [(k,v) for kws in kwarg_items for (k,v) in kws
if k not in kdims]
... | Generalized how DynamicMap._execute_callback invokes Callable | py |
diff --git a/docs/conf.py b/docs/conf.py
index <HASH>..<HASH> 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -1,7 +1,6 @@
# Ensure we get the local copy of tornado instead of what's on the standard path
import os
import sys
-import time
sys.path.insert(0, os.path.abspath(".."))
import tornado
@@ -9,7 +8,7 @@ im... | docs: Remove year from copyright variable Computing this dynamically is wrong and it doesn't seem worth the trouble to maintain manually. Closes #<I> Closes #<I> | py |
diff --git a/tests/mock_tests/test_sqlparsing.py b/tests/mock_tests/test_sqlparsing.py
index <HASH>..<HASH> 100644
--- a/tests/mock_tests/test_sqlparsing.py
+++ b/tests/mock_tests/test_sqlparsing.py
@@ -1798,17 +1798,18 @@ class TestDatabaseWrapper(TestCase):
settings_dict = {
'NAME': name,
... | Generic MongoClient connections | py |
diff --git a/pelix/remote/dispatcher.py b/pelix/remote/dispatcher.py
index <HASH>..<HASH> 100644
--- a/pelix/remote/dispatcher.py
+++ b/pelix/remote/dispatcher.py
@@ -371,7 +371,7 @@ class Dispatcher(object):
# Tell the exporter to export already known services
for svc_ref in self.__service_uids:
... | Give service properties to _compute_endpoint_name() Give the service properties as parameter instead of the service reference | py |
diff --git a/LiSE/LiSE/engine.py b/LiSE/LiSE/engine.py
index <HASH>..<HASH> 100644
--- a/LiSE/LiSE/engine.py
+++ b/LiSE/LiSE/engine.py
@@ -1252,7 +1252,8 @@ class Engine(AbstractEngine, gORM):
turns_completed = self._turns_completed
set_turn_completed = self.query.set_turn_completed
for branc... | Don't require the walrus operator I don't think it's in <I> | py |
diff --git a/angr/knowledge_plugins/patches.py b/angr/knowledge_plugins/patches.py
index <HASH>..<HASH> 100644
--- a/angr/knowledge_plugins/patches.py
+++ b/angr/knowledge_plugins/patches.py
@@ -66,7 +66,7 @@ class PatchManager(KnowledgeBasePlugin):
patches.append(p)
else:
... | PatchManager: Patches should be inverted. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -10,7 +10,7 @@ except(IOError, ImportError):
setup(
name='geojsoncontour',
- version='0.2.1',
+ version='0.3.0',
description='Convert matplotlib contour plots to geojson',
long_description=long_descript... | Version bump after failed pypi wheel | py |
diff --git a/issuetracker/sphinxcontrib/issuetracker.py b/issuetracker/sphinxcontrib/issuetracker.py
index <HASH>..<HASH> 100644
--- a/issuetracker/sphinxcontrib/issuetracker.py
+++ b/issuetracker/sphinxcontrib/issuetracker.py
@@ -59,7 +59,7 @@ Issue = namedtuple('Issue', 'id title url closed')
_TrackerConfig = name... | Fixed test error: Derive TrackerConfig from namedtuple Adds equality, inequality, hashing and immutability to TrackerConfig | py |
diff --git a/ncpol2sdpa/ncutils.py b/ncpol2sdpa/ncutils.py
index <HASH>..<HASH> 100644
--- a/ncpol2sdpa/ncutils.py
+++ b/ncpol2sdpa/ncutils.py
@@ -7,7 +7,6 @@ Created on Thu May 2 16:03:05 2013
@author: Peter Wittek
"""
-from math import floor
from sympy.core import S, Symbol, Pow, Number
from sympy.physics.quan... | Unnecessary import removed | py |
diff --git a/see.py b/see.py
index <HASH>..<HASH> 100644
--- a/see.py
+++ b/see.py
@@ -26,8 +26,8 @@ def see(obj):
Some symbols:
- ? documentation is available using help(obj)
- . may have dynamic attributes
+ ? documentation available using help(obj)
+ .* may... | changed symbol . to .* | py |
diff --git a/mousedb/data/forms.py b/mousedb/data/forms.py
index <HASH>..<HASH> 100644
--- a/mousedb/data/forms.py
+++ b/mousedb/data/forms.py
@@ -51,7 +51,6 @@ class StudyForm(ModelForm):
class TreatmentForm(ModelForm):
"""Form class for study treatment groups.
-<<<<<<< HEAD
In the case of studies, animal... | Repaired a merge error in data/forms.py | py |
diff --git a/evloop.py b/evloop.py
index <HASH>..<HASH> 100644
--- a/evloop.py
+++ b/evloop.py
@@ -82,7 +82,12 @@ class EventDispatcher(object):
try:
handler = self._fd_handlers[event[0]]
except KeyError:
- logging.error('No handler found for fd event')
+ ev_str = {
+ select.POLLHUP: 'POLLHUP',
+... | FdWatcher works with filehandles and fileno's | py |
diff --git a/stellar_base/horizon.py b/stellar_base/horizon.py
index <HASH>..<HASH> 100644
--- a/stellar_base/horizon.py
+++ b/stellar_base/horizon.py
@@ -77,7 +77,8 @@ class Horizon(object):
total=self.num_retries,
backoff_factor=self.backoff_factor,
redirect=0,
- stat... | bugfix: raise HorizonError(status_code=reply_code) after retrying the query multiple times and still failing. | py |
diff --git a/immutables/__init__.py b/immutables/__init__.py
index <HASH>..<HASH> 100644
--- a/immutables/__init__.py
+++ b/immutables/__init__.py
@@ -8,4 +8,4 @@ else:
__all__ = 'Map',
-__version__ = '0.5'
+__version__ = '0.6' | Bump the version to <I> | py |
diff --git a/sdk/communication/azure-communication-networktraversal/setup.py b/sdk/communication/azure-communication-networktraversal/setup.py
index <HASH>..<HASH> 100644
--- a/sdk/communication/azure-communication-networktraversal/setup.py
+++ b/sdk/communication/azure-communication-networktraversal/setup.py
@@ -66,6 ... | Add missing extra requires in setup.py (#<I>) | py |
diff --git a/src/urh/controller/widgets/SignalFrame.py b/src/urh/controller/widgets/SignalFrame.py
index <HASH>..<HASH> 100644
--- a/src/urh/controller/widgets/SignalFrame.py
+++ b/src/urh/controller/widgets/SignalFrame.py
@@ -1063,6 +1063,13 @@ class SignalFrame(QFrame):
self.undo_stack.push(modulation_... | fix scaling when changing modulation type with active demod view | py |
diff --git a/openxc/sources/trace.py b/openxc/sources/trace.py
index <HASH>..<HASH> 100644
--- a/openxc/sources/trace.py
+++ b/openxc/sources/trace.py
@@ -3,11 +3,11 @@ from __future__ import absolute_import
import logging
import time
-from .base import DataSource, DataSourceError
+from .base import DataSourceError... | Fix the inheritance tree of the trace source. | py |
diff --git a/salt/pillar/__init__.py b/salt/pillar/__init__.py
index <HASH>..<HASH> 100644
--- a/salt/pillar/__init__.py
+++ b/salt/pillar/__init__.py
@@ -379,8 +379,10 @@ class Pillar(object):
]
else:
for saltenv in self._get_envs():
- if self.o... | Fix looking up pillar data when merging is set to "none" and no saltenv was passed retry | py |
diff --git a/pygsp/filters/filter.py b/pygsp/filters/filter.py
index <HASH>..<HASH> 100644
--- a/pygsp/filters/filter.py
+++ b/pygsp/filters/filter.py
@@ -185,13 +185,25 @@ class Filter(object):
-------
signal : synthesis signal
- Examples
- --------
-
References
----... | filters: doctest example for synthesis | py |
diff --git a/c7n/resources/ec2.py b/c7n/resources/ec2.py
index <HASH>..<HASH> 100644
--- a/c7n/resources/ec2.py
+++ b/c7n/resources/ec2.py
@@ -1057,15 +1057,15 @@ class AutorecoverAlarm(BaseAction, StateTransitionFilter):
@actions.register('set-instance-profile')
-class SetInstanceProfile(BaseAction):
- """Sets... | limit set-instance-profile to operate on instances with valid states (#<I>) | py |
diff --git a/tools/python/buildmetadatafromxml.py b/tools/python/buildmetadatafromxml.py
index <HASH>..<HASH> 100755
--- a/tools/python/buildmetadatafromxml.py
+++ b/tools/python/buildmetadatafromxml.py
@@ -63,6 +63,8 @@ lax = False
TOP_XPATH = "territories"
# XML element name for the territory element
TERRITORY_TAG... | Restore processing for NA formats An earlier commit (<I>bc<I>a5, 'Drop processing for "NA" metadata items') removed 'NA' processing but went too far. PhoneNumberDesc objects with NA in them are indeed gone, but an NA can still occur in an <intlFormat> element of the XML. This should map to a missing intl_format for ... | py |
diff --git a/spock/plugins/helpers/physics.py b/spock/plugins/helpers/physics.py
index <HASH>..<HASH> 100644
--- a/spock/plugins/helpers/physics.py
+++ b/spock/plugins/helpers/physics.py
@@ -76,7 +76,7 @@ class PhysicsPlugin(PluginBase):
self.pos.on_ground = mtv.y > 0
self.apply_vector(mtv)
- def... | flake8 is important /s | py |
diff --git a/rows/plugins/xls.py b/rows/plugins/xls.py
index <HASH>..<HASH> 100644
--- a/rows/plugins/xls.py
+++ b/rows/plugins/xls.py
@@ -18,12 +18,7 @@
from __future__ import unicode_literals
import datetime
-try:
- # python 3
- from io import BytesIO
-except ImportError:
- # python 2
- from StringIO ... | Removing compatibility with old Python versions for StringIO | py |
diff --git a/example_app/main.py b/example_app/main.py
index <HASH>..<HASH> 100644
--- a/example_app/main.py
+++ b/example_app/main.py
@@ -11,7 +11,8 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under... | Fixing lint issue. | py |
diff --git a/spyder/app/mainwindow.py b/spyder/app/mainwindow.py
index <HASH>..<HASH> 100644
--- a/spyder/app/mainwindow.py
+++ b/spyder/app/mainwindow.py
@@ -1449,10 +1449,13 @@ class MainWindow(QMainWindow):
QMessageBox.warning(
self, _("Warning"),
_("A monitor scale change was de... | Main: Change HDPI option to auto-scaling before restarting | py |
diff --git a/MAVProxy/modules/lib/wavefront.py b/MAVProxy/modules/lib/wavefront.py
index <HASH>..<HASH> 100644
--- a/MAVProxy/modules/lib/wavefront.py
+++ b/MAVProxy/modules/lib/wavefront.py
@@ -44,7 +44,7 @@ import threading
import sys
class Parser(object):
- def __init__(self, filename=None, string='', enable_... | wavefront: disable caching by default The current implementation places the cache in the same directory as the source files, where the user might not have write access. This is the case with: <URL> | py |
diff --git a/salt/loader.py b/salt/loader.py
index <HASH>..<HASH> 100644
--- a/salt/loader.py
+++ b/salt/loader.py
@@ -699,11 +699,11 @@ class LazyLoader(salt.utils.lazy.LazyDict):
return '{0!r} is not available.'.format(function_name)
else:
if self.missing_modules.get(mod_name) is no... | Fix extraneous quote in loader error Also got rid of raw string formatting, it should not be used as a means of quoting a substring as it causes unicode errors in Python 3. | py |
diff --git a/aiohttp/web_app.py b/aiohttp/web_app.py
index <HASH>..<HASH> 100644
--- a/aiohttp/web_app.py
+++ b/aiohttp/web_app.py
@@ -160,9 +160,9 @@ class Application(MutableMapping[str, Any]):
########
@property
def loop(self) -> asyncio.AbstractEventLoop:
- # Technically the loop can be None
+... | doc: minor typo (#<I>) | py |
diff --git a/parsl/dataflow/dflow.py b/parsl/dataflow/dflow.py
index <HASH>..<HASH> 100644
--- a/parsl/dataflow/dflow.py
+++ b/parsl/dataflow/dflow.py
@@ -339,7 +339,7 @@ class DataFlowKernel(object):
assert isinstance(inner_future, Future)
task_record['status'] = States.joinin... | Eliminate self.tasks[id] calls from joinapp callback (#<I>) see issue #<I> | py |
diff --git a/instabot/bot/bot_direct.py b/instabot/bot/bot_direct.py
index <HASH>..<HASH> 100644
--- a/instabot/bot/bot_direct.py
+++ b/instabot/bot/bot_direct.py
@@ -230,7 +230,7 @@ def approve_pending_thread_requests(self):
if pending:
for thread in pending:
thread_id = thread['thread_id']
... | fix missing argument from approve_pending_thread | py |
diff --git a/asks/request_object.py b/asks/request_object.py
index <HASH>..<HASH> 100644
--- a/asks/request_object.py
+++ b/asks/request_object.py
@@ -28,7 +28,7 @@ from .errors import TooManyRedirects
from .multipart import build_multipart_body
-_BOUNDARY = "8banana133744910kmmr13a56!102!" + str(randint(1e3, 9e3)... | Stop calling random.randint with non-integer arguments This has been deprecated since Python <I> and will be removed in a subsequent version. | py |
diff --git a/indra/tests/test_statements.py b/indra/tests/test_statements.py
index <HASH>..<HASH> 100644
--- a/indra/tests/test_statements.py
+++ b/indra/tests/test_statements.py
@@ -1049,6 +1049,16 @@ def test_serialize():
st2 = Phosphorylation.from_json(jstr)
assert(st.equals(st2))
+def test_serialize_err... | Add tests for deserialization errors | py |
diff --git a/tests/functional_tests/expected_values/flickr.py b/tests/functional_tests/expected_values/flickr.py
index <HASH>..<HASH> 100644
--- a/tests/functional_tests/expected_values/flickr.py
+++ b/tests/functional_tests/expected_values/flickr.py
@@ -11,7 +11,9 @@ CONFIG = {
'consent_xpaths': [
'//*[@... | Fixed login settings for Flicker in functional tests. | py |
diff --git a/arangodb/orm/models.py b/arangodb/orm/models.py
index <HASH>..<HASH> 100644
--- a/arangodb/orm/models.py
+++ b/arangodb/orm/models.py
@@ -110,16 +110,6 @@ class CollectionModelManager(object):
return queryset
- # docs = self._model_class.collection_instance.documents()
- # models... | Default created document has to be overwritten during the construction of a model from a document | py |
diff --git a/pandas/tests/test_base.py b/pandas/tests/test_base.py
index <HASH>..<HASH> 100644
--- a/pandas/tests/test_base.py
+++ b/pandas/tests/test_base.py
@@ -1227,7 +1227,7 @@ def test_values_consistent(array, expected_type, dtype):
pytest.param(
pd.PeriodIndex(['2017', '2018'], freq='D'),
n... | TST: text correction, xref #<I> | py |
diff --git a/colorful/tests/tests.py b/colorful/tests/tests.py
index <HASH>..<HASH> 100644
--- a/colorful/tests/tests.py
+++ b/colorful/tests/tests.py
@@ -3,9 +3,9 @@ from __future__ import unicode_literals
import sys
# TODO: Remove when support for Python 2.6 is dropped
if sys.version_info >= (2, 7):
- from unit... | Only run South related tests if it is installed. | py |
diff --git a/python/sbp/client/drivers/pyserial_driver.py b/python/sbp/client/drivers/pyserial_driver.py
index <HASH>..<HASH> 100644
--- a/python/sbp/client/drivers/pyserial_driver.py
+++ b/python/sbp/client/drivers/pyserial_driver.py
@@ -46,7 +46,7 @@ class PySerialDriver(BaseDriver):
try:
handle... | Remove short pyserial timeout. Timeout was causing console to disconnect during Piksi Multi restart. Timeout made serial driver not equivalent in behavior to file driver or network driver | py |
diff --git a/djstripe/admin.py b/djstripe/admin.py
index <HASH>..<HASH> 100644
--- a/djstripe/admin.py
+++ b/djstripe/admin.py
@@ -221,7 +221,7 @@ class DisputeAdmin(StripeModelAdmin):
@admin.register(models.Event)
class EventAdmin(StripeModelAdmin):
- list_display = ("type", "created", "request_id")
+ list_d... | Remove duplicate field in EventAdmin StripeModelAdmin already includes the 'created' field | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -8,7 +8,7 @@ from setuptools import setup
_version_re = re.compile(r'__version__\s+=\s+(.*)')
requirements = [
'sanic-base-extension==0.1.1',
- 'motor==1.2.1',
+ 'motor==2.0.0',
'umongo==0.15.0',
] | Updated motor dependency to the latest release | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.