diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/pandas/io/data.py b/pandas/io/data.py
index <HASH>..<HASH> 100644
--- a/pandas/io/data.py
+++ b/pandas/io/data.py
@@ -757,7 +757,7 @@ class Options(object):
get_range = slice(start_index - above_below,
start_index + above_below + 1)
- chop = df[get_r... | CLN: use how="all" so that things that are not nan in other columns are kept | py |
diff --git a/salt/beacons/__init__.py b/salt/beacons/__init__.py
index <HASH>..<HASH> 100644
--- a/salt/beacons/__init__.py
+++ b/salt/beacons/__init__.py
@@ -12,11 +12,12 @@ import re
import salt.loader
import salt.utils.event
import salt.utils.minion
-import salt.log.setup
from salt.ext.six.moves import map
from... | Adding some code to make sure log.trace is available. | py |
diff --git a/django_mailbox/runtests.py b/django_mailbox/runtests.py
index <HASH>..<HASH> 100644
--- a/django_mailbox/runtests.py
+++ b/django_mailbox/runtests.py
@@ -3,7 +3,10 @@ import sys
from os.path import dirname, abspath
-from django import setup
+try:
+ from django import setup
+except ImportError:
+ ... | Given that 'classic' versions of django do not have a setup function: allow that to fail. | py |
diff --git a/estnltk/storage/postgres/pg_operations.py b/estnltk/storage/postgres/pg_operations.py
index <HASH>..<HASH> 100644
--- a/estnltk/storage/postgres/pg_operations.py
+++ b/estnltk/storage/postgres/pg_operations.py
@@ -27,6 +27,7 @@ def create_schema(storage):
def delete_schema(storage):
+ storage.conn.... | commit before drop schema helps to avoid problems | py |
diff --git a/visidata/loaders/_pandas.py b/visidata/loaders/_pandas.py
index <HASH>..<HASH> 100644
--- a/visidata/loaders/_pandas.py
+++ b/visidata/loaders/_pandas.py
@@ -122,7 +122,8 @@ class PandasSheet(Sheet):
readfunc = partial(pd.read_json, lines=True)
else:
readfunc ... | [pandas-] self.source.open() was not handling binary files; pass Path-like instead - then readfunc() will appropriately handle binary or text open() for its filetype | py |
diff --git a/winshell.py b/winshell.py
index <HASH>..<HASH> 100644
--- a/winshell.py
+++ b/winshell.py
@@ -742,18 +742,6 @@ class ShellItem (WinshellObject):
stream = self.parent._folder.BindToStorage (self.rpidl, None, pythoncom.IID_IStream)
return make_storage_stat (stream.Stat ())
- def getsize (self):
... | Remove specific stream properties until we have a clear policy about properties / details | py |
diff --git a/SpiffWorkflow/specs/TaskSpec.py b/SpiffWorkflow/specs/TaskSpec.py
index <HASH>..<HASH> 100644
--- a/SpiffWorkflow/specs/TaskSpec.py
+++ b/SpiffWorkflow/specs/TaskSpec.py
@@ -38,6 +38,19 @@ class TaskSpec(object):
- B{finished}: called when the state changes to COMPLETED or CANCELLED,
at the... | Incorporated Samuel's comments into documentation | py |
diff --git a/pycoin/tx/Tx.py b/pycoin/tx/Tx.py
index <HASH>..<HASH> 100644
--- a/pycoin/tx/Tx.py
+++ b/pycoin/tx/Tx.py
@@ -371,10 +371,10 @@ class Tx(object):
Adapted from Bicoin Code: main.cpp
"""
self._check_tx_inout_count()
- # Size limits
- self._check_size_limit()
... | Check size limit after checking inputs and outputs. | py |
diff --git a/lib/webuser_regression_tests.py b/lib/webuser_regression_tests.py
index <HASH>..<HASH> 100644
--- a/lib/webuser_regression_tests.py
+++ b/lib/webuser_regression_tests.py
@@ -86,7 +86,7 @@ class WebSessionYorSettingsTest(unittest.TestCase):
browser['group_records'] = ["10"]
browser.submit(... | Fixed regression test (wrong string was looked up) <I> | py |
diff --git a/quart/local.py b/quart/local.py
index <HASH>..<HASH> 100644
--- a/quart/local.py
+++ b/quart/local.py
@@ -37,7 +37,7 @@ class TaskLocal:
def _task_identity() -> int:
loop = asyncio.get_event_loop()
if loop.is_running():
- task = asyncio.Task.current_task()
+ tas... | Avoid a deprecation warning Task.current_task() is deprecated, with asyncio.current_task() as the replacement. As Quart targets only <I> or better there is no backwards incompatibility worries. | py |
diff --git a/src/main/python/rlbot/utils/structures/legacy_data_v3.py b/src/main/python/rlbot/utils/structures/legacy_data_v3.py
index <HASH>..<HASH> 100644
--- a/src/main/python/rlbot/utils/structures/legacy_data_v3.py
+++ b/src/main/python/rlbot/utils/structures/legacy_data_v3.py
@@ -135,7 +135,7 @@ def convert_game_... | Inverted bBallHasBeenHit (#<I>) | py |
diff --git a/api/setup.py b/api/setup.py
index <HASH>..<HASH> 100755
--- a/api/setup.py
+++ b/api/setup.py
@@ -106,7 +106,7 @@ PACKAGES = find_packages(where='src')
INSTALL_REQUIRES = [
'pyserial==3.2.1',
'aiohttp==2.3.8',
- 'numpy==1.12.1',
+ 'numpy>=1.12.1',
'urwid==1.3.1'] | fix(api): Relax numpy version constraints for wheel (#<I>) The strict constraint on numpy makes it very hard to install on windows, since this is a version that requires msvc to compile lapack dependencies; it also conflicts with most jupyter installations which have transitive dependencies from e.g. astropy that r... | py |
diff --git a/openupgradelib/openupgrade.py b/openupgradelib/openupgrade.py
index <HASH>..<HASH> 100644
--- a/openupgradelib/openupgrade.py
+++ b/openupgradelib/openupgrade.py
@@ -24,7 +24,6 @@ import os
import inspect
import logging
from contextlib import contextmanager
-from psycopg2 import errorcodes, ProgrammingE... | Defer import of psycopg2 because it is not available for Pypy. Since psycopg2 is required for any Odoo instance, we assume that if you are using Pypy it is because you are using psycopg2cffi. See <URL> | py |
diff --git a/bigfloat_cython/bigfloat/core.py b/bigfloat_cython/bigfloat/core.py
index <HASH>..<HASH> 100644
--- a/bigfloat_cython/bigfloat/core.py
+++ b/bigfloat_cython/bigfloat/core.py
@@ -263,9 +263,6 @@ class BigFloat(mpfr.Mpfr_t):
return _set_d(value)
elif isinstance(value, str):
... | Eliminate repeated isinstance(value, str) check. | py |
diff --git a/salt/minion.py b/salt/minion.py
index <HASH>..<HASH> 100644
--- a/salt/minion.py
+++ b/salt/minion.py
@@ -24,7 +24,7 @@ import zmq
# Import salt libs
from salt.exceptions import AuthenticationError, MinionError, \
- CommandExecutionError
+ CommandExecutionError, SaltInvocationError
import salt.c... | Properly log formatted exceptions Also catch SaltInvocationErrors and return them gracefully back to the user running /usr/bin/salt* | py |
diff --git a/py/nupic/encoders/multi.py b/py/nupic/encoders/multi.py
index <HASH>..<HASH> 100644
--- a/py/nupic/encoders/multi.py
+++ b/py/nupic/encoders/multi.py
@@ -20,6 +20,18 @@
# ----------------------------------------------------------------------
from base import Encoder
+from nupic.encoders.scalar import S... | MultiEncoder needs other encoders listed in imports | py |
diff --git a/djes/apps.py b/djes/apps.py
index <HASH>..<HASH> 100644
--- a/djes/apps.py
+++ b/djes/apps.py
@@ -1,4 +1,4 @@
-from django.apps import AppConfig
+from django.apps import AppConfig, apps
from .models import Indexable
from .mapping import DjangoMapping
@@ -68,13 +68,11 @@ class DJESConfig(AppConfig):
... | Lets try a different method to get the indexable models | py |
diff --git a/PyFunceble/engine/database/migrations/old2new.py b/PyFunceble/engine/database/migrations/old2new.py
index <HASH>..<HASH> 100644
--- a/PyFunceble/engine/database/migrations/old2new.py
+++ b/PyFunceble/engine/database/migrations/old2new.py
@@ -102,24 +102,23 @@ class CleanupOldTables:
Get the row of... | Ensure that an open connection is explicitly closed. Contributors: * @spirillen | py |
diff --git a/src/sos/tasks.py b/src/sos/tasks.py
index <HASH>..<HASH> 100644
--- a/src/sos/tasks.py
+++ b/src/sos/tasks.py
@@ -1551,15 +1551,15 @@ showResourceFigure_''' + t + '''()
if s not in ('pending', 'submitted', 'running'):
if tf.has_shell():
- print('execution ... | Add extra new line to sos status output | py |
diff --git a/subscriptions/management/commands/rerun_schedule_create.py b/subscriptions/management/commands/rerun_schedule_create.py
index <HASH>..<HASH> 100644
--- a/subscriptions/management/commands/rerun_schedule_create.py
+++ b/subscriptions/management/commands/rerun_schedule_create.py
@@ -34,6 +34,9 @@ class Comma... | Catch errors from malformatted subscription ids | py |
diff --git a/salt/cloud/clouds/ec2.py b/salt/cloud/clouds/ec2.py
index <HASH>..<HASH> 100644
--- a/salt/cloud/clouds/ec2.py
+++ b/salt/cloud/clouds/ec2.py
@@ -118,7 +118,7 @@ try:
import Crypto
# PKCS1_v1_5 was added in PyCrypto 2.5
from Crypto.Cipher import PKCS1_v1_5 # pylint: disable=E0611
- from ... | Added pylink disable W<I> | py |
diff --git a/superset/viz.py b/superset/viz.py
index <HASH>..<HASH> 100644
--- a/superset/viz.py
+++ b/superset/viz.py
@@ -245,6 +245,7 @@ class BaseViz:
query_obj = self.query_obj()
query_obj.update(
{
+ "is_timeseries": False,
"groupby": [],
... | fix: samples should not be timeseries (#<I>) | py |
diff --git a/lando_messaging/messaging.py b/lando_messaging/messaging.py
index <HASH>..<HASH> 100644
--- a/lando_messaging/messaging.py
+++ b/lando_messaging/messaging.py
@@ -217,8 +217,9 @@ class RunJobPayload(object):
"""
self.job_id = job_details.id
self.job_details = job_details
- ... | Update fields in RunJobPayload to handle url/path/type | py |
diff --git a/stdnet/contrib/searchengine/tests/profile.py b/stdnet/contrib/searchengine/tests/profile.py
index <HASH>..<HASH> 100644
--- a/stdnet/contrib/searchengine/tests/profile.py
+++ b/stdnet/contrib/searchengine/tests/profile.py
@@ -1,12 +1,16 @@
-from stdnet import test
+from stdnet import test, orm
from stdnet... | profile test in search engine. Maasive room for speed improvement | py |
diff --git a/python/ray/tests/test_worker_capping.py b/python/ray/tests/test_worker_capping.py
index <HASH>..<HASH> 100644
--- a/python/ray/tests/test_worker_capping.py
+++ b/python/ray/tests/test_worker_capping.py
@@ -106,16 +106,16 @@ def test_limit_concurrency(shutdown_only):
# Some of the tasks will run sinc... | Try deflaking worker capping on Windows (#<I>) | py |
diff --git a/salt/modules/win_service.py b/salt/modules/win_service.py
index <HASH>..<HASH> 100644
--- a/salt/modules/win_service.py
+++ b/salt/modules/win_service.py
@@ -157,7 +157,18 @@ def get_service_name(*args):
def start(name):
'''
- Start the specified service
+ Start the specified service.
+
+ ... | Set service to manual if disabled on start | py |
diff --git a/salt/utils/vt_helper.py b/salt/utils/vt_helper.py
index <HASH>..<HASH> 100644
--- a/salt/utils/vt_helper.py
+++ b/salt/utils/vt_helper.py
@@ -36,7 +36,8 @@ class SSHConnection(object):
key_accept=False,
prompt=r'(Cmd)',
passwd_retries=3,
- ... | allow for specifying ssh_args to SSHConnection | py |
diff --git a/python/ray/serve/utils.py b/python/ray/serve/utils.py
index <HASH>..<HASH> 100644
--- a/python/ray/serve/utils.py
+++ b/python/ray/serve/utils.py
@@ -399,7 +399,10 @@ class MockImportedBackend:
} for _ in range(len(batch))]
async def other_method(self, batch):
- return [await request... | [Hotfix] Lint (#<I>) | py |
diff --git a/src/toil/provisioners/azure/__init__.py b/src/toil/provisioners/azure/__init__.py
index <HASH>..<HASH> 100644
--- a/src/toil/provisioners/azure/__init__.py
+++ b/src/toil/provisioners/azure/__init__.py
@@ -11,17 +11,3 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the... | Remove getAzureZone from init, no longer needed. | py |
diff --git a/tests/tests.py b/tests/tests.py
index <HASH>..<HASH> 100644
--- a/tests/tests.py
+++ b/tests/tests.py
@@ -63,6 +63,14 @@ class FilePickerTests(FileUploadTestCase):
response = self.client.get('/adminfiles/all/?field=test')
self.assertContains(response, 'href="/media/adminfiles/tiny.png"')
... | add test for issue <I>: Browsers names not showing | py |
diff --git a/kerncraft/models/ecm.py b/kerncraft/models/ecm.py
index <HASH>..<HASH> 100755
--- a/kerncraft/models/ecm.py
+++ b/kerncraft/models/ecm.py
@@ -487,7 +487,8 @@ class ECM(PerformanceModel):
# Simple scaling prediction:
# Assumptions are:
# - bottleneck is always LLC-MEM
- # ... | considering mem bus utilization in out-of-numa-domain scaling | py |
diff --git a/airflow/api_connexion/endpoints/dag_run_endpoint.py b/airflow/api_connexion/endpoints/dag_run_endpoint.py
index <HASH>..<HASH> 100644
--- a/airflow/api_connexion/endpoints/dag_run_endpoint.py
+++ b/airflow/api_connexion/endpoints/dag_run_endpoint.py
@@ -102,7 +102,7 @@ def get_dag_run(*, dag_id: str, dag_r... | fix comments (#<I>) | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -24,9 +24,16 @@ setup(
noseprogressive = noseprogressive:ProgressivePlugin
""",
classifiers = [
+ 'Development Status :: 5 - Production/Stable',
+ 'Environment :: Console',
'Intend... | Add some trove classifiers. | py |
diff --git a/uncompyle6/scanners/scanner38.py b/uncompyle6/scanners/scanner38.py
index <HASH>..<HASH> 100644
--- a/uncompyle6/scanners/scanner38.py
+++ b/uncompyle6/scanners/scanner38.py
@@ -68,14 +68,15 @@ class Scanner38(Scanner37):
if offset == next_end:
loop_ends.pop()
... | I said <I> compatibility! | py |
diff --git a/indra/sources/cwms/processor.py b/indra/sources/cwms/processor.py
index <HASH>..<HASH> 100644
--- a/indra/sources/cwms/processor.py
+++ b/indra/sources/cwms/processor.py
@@ -284,9 +284,15 @@ class CWMSProcessor(object):
inevent_term = self._get_inevent_term(agent_arg_term)
if inev... | Try get time and size from inevent, other event | py |
diff --git a/automation/src/rabird/automation/keyboard.py b/automation/src/rabird/automation/keyboard.py
index <HASH>..<HASH> 100644
--- a/automation/src/rabird/automation/keyboard.py
+++ b/automation/src/rabird/automation/keyboard.py
@@ -224,7 +224,7 @@ key_contexts = {
'*':['+8', 0, 0],
'9':[ord('9'), 0, 0], # c... | Fixed '_' will not be correctly decoded. | py |
diff --git a/python_modules/dagster/dagster/core/definitions/solid.py b/python_modules/dagster/dagster/core/definitions/solid.py
index <HASH>..<HASH> 100644
--- a/python_modules/dagster/dagster/core/definitions/solid.py
+++ b/python_modules/dagster/dagster/core/definitions/solid.py
@@ -17,7 +17,7 @@ class SolidDefiniti... | [docs] fix old solid guide link Summary: feel like this will just break again but fix it anyway Test Plan: `yarn dev`, click link Reviewers: yuhan, sashank Reviewed By: sashank Differential Revision: <URL> | py |
diff --git a/src/toil_scripts/lib/files.py b/src/toil_scripts/lib/files.py
index <HASH>..<HASH> 100644
--- a/src/toil_scripts/lib/files.py
+++ b/src/toil_scripts/lib/files.py
@@ -32,6 +32,7 @@ def tarball_files(tar_name, file_paths, output_dir='.', prefix=''):
"""
with tarfile.open(os.path.join(output_dir, ta... | Add assert for absolute paths in functions that require them. | py |
diff --git a/django_toolkit/views.py b/django_toolkit/views.py
index <HASH>..<HASH> 100644
--- a/django_toolkit/views.py
+++ b/django_toolkit/views.py
@@ -297,3 +297,14 @@ class BaseDayView(YearMixin, MonthMixin, DayMixin):
return _date_from_string(year, self.get_year_format(),
... | Added ModelExtraContextDetailView which allows the 'object' to augment the context. | py |
diff --git a/playhouse/test_utils.py b/playhouse/test_utils.py
index <HASH>..<HASH> 100644
--- a/playhouse/test_utils.py
+++ b/playhouse/test_utils.py
@@ -11,7 +11,9 @@ class _QueryLogHandler(logging.Handler):
logging.Handler.__init__(self, *args, **kwargs)
def emit(self, record):
- self.queries.... | count queries should only look at peewee namespace. Fixes/replaces #<I> | py |
diff --git a/openquake/calculators/post_risk.py b/openquake/calculators/post_risk.py
index <HASH>..<HASH> 100644
--- a/openquake/calculators/post_risk.py
+++ b/openquake/calculators/post_risk.py
@@ -101,7 +101,9 @@ def post_ebrisk(dstore, aggkey, monitor):
for x in ast.literal_eval(aggkey)]
idx = t... | Added a print [skip CI] | py |
diff --git a/package/yapsy/__init__.py b/package/yapsy/__init__.py
index <HASH>..<HASH> 100644
--- a/package/yapsy/__init__.py
+++ b/package/yapsy/__init__.py
@@ -1,5 +1,8 @@
#!/usr/bin/python
# -*- coding: utf-8; tab-width: 4; indent-tabs-mode: t -*-
+
+__version__="1.9.1"
+
"""
Overview | add a __version__ to the main module (I'm surprised it wasn't there already) | py |
diff --git a/wikitextparser/__init__.py b/wikitextparser/__init__.py
index <HASH>..<HASH> 100644
--- a/wikitextparser/__init__.py
+++ b/wikitextparser/__init__.py
@@ -7,20 +7,20 @@ from .externallink import ExternalLink
from .wikilink import WikiLink
from .section import Section
from .comment import Comment
-from . ... | import wikitext as _wikitext It's better to not directly expose this module here as it may change in the future. | py |
diff --git a/src/xworkflows/base.py b/src/xworkflows/base.py
index <HASH>..<HASH> 100644
--- a/src/xworkflows/base.py
+++ b/src/xworkflows/base.py
@@ -528,9 +528,6 @@ class WorkflowMeta(type):
return new_class
-logger = logging.getLogger(__name__)
-
-
class Workflow(object):
"""Base class for all wor... | Log to the 'xworkflows.transitions' logger | py |
diff --git a/tests/test_pygenstub.py b/tests/test_pygenstub.py
index <HASH>..<HASH> 100644
--- a/tests/test_pygenstub.py
+++ b/tests/test_pygenstub.py
@@ -20,6 +20,20 @@ def f(%(params)s):
"""
'''
+function_template = '''
+from x import A, B
+from . import m
+
+
+%(decorator)s
+def f(%(params)s):
+ """Func
+... | test: Add test for unknown function decorator | py |
diff --git a/osmgraph/main.py b/osmgraph/main.py
index <HASH>..<HASH> 100644
--- a/osmgraph/main.py
+++ b/osmgraph/main.py
@@ -26,22 +26,15 @@ def parse_data(data, type, **kwargs):
Parameters
----------
data : string
- type : string ('xml', 'pbf', or 'qatile')
+ type : string ('xml' or 'pbf')
... | Clean up parse_data as unimplemented | py |
diff --git a/pagination_bootstrap/paginator.py b/pagination_bootstrap/paginator.py
index <HASH>..<HASH> 100644
--- a/pagination_bootstrap/paginator.py
+++ b/pagination_bootstrap/paginator.py
@@ -16,8 +16,11 @@ class InfinitePaginator(Paginator):
orphans = 0 # no orphans
super(InfinitePaginator, self).... | Django <I> paginator doesn't seem to have _num_pages and _count attributes | py |
diff --git a/tests/test_similarityrecommender.py b/tests/test_similarityrecommender.py
index <HASH>..<HASH> 100644
--- a/tests/test_similarityrecommender.py
+++ b/tests/test_similarityrecommender.py
@@ -1,10 +1,14 @@
import json
+import six
+
import numpy as np
import scipy.stats
+
from taar.context import Context
... | Fix py2/3 test for strings | py |
diff --git a/memcache_admin/views.py b/memcache_admin/views.py
index <HASH>..<HASH> 100644
--- a/memcache_admin/views.py
+++ b/memcache_admin/views.py
@@ -10,7 +10,7 @@ from django.conf import settings
from django.utils.translation import ugettext as _
if get_cache.__module__.startswith('debug_toolbar'):
- from ... | Fixed compatibility issue with django debug toolbar <I>. | py |
diff --git a/btfxwss/classes.py b/btfxwss/classes.py
index <HASH>..<HASH> 100644
--- a/btfxwss/classes.py
+++ b/btfxwss/classes.py
@@ -371,6 +371,10 @@ class BtfxWss:
except TimeoutError:
log.exception("BtfxWss.ping(): TimedOut! (%ss)" %
... | added exception handling scenario to dropped conn on ping | py |
diff --git a/cocaine/worker.py b/cocaine/worker.py
index <HASH>..<HASH> 100644
--- a/cocaine/worker.py
+++ b/cocaine/worker.py
@@ -20,7 +20,6 @@
#
-import uuid
import json
import time
import sys
@@ -38,12 +37,6 @@ from asio_worker.message import Message
from sessioncontext import Sandbox
from sessioncontext i... | Send uuid in handshake as plain string | py |
diff --git a/spatialist/raster.py b/spatialist/raster.py
index <HASH>..<HASH> 100644
--- a/spatialist/raster.py
+++ b/spatialist/raster.py
@@ -589,10 +589,15 @@ class Raster(object):
"""
perform raster computations with custom functions and assign them to the existing raster object in memory
- ... | [raster.Raster.rescale] added documentation and example | py |
diff --git a/ipyrad/assemble/consens_se.py b/ipyrad/assemble/consens_se.py
index <HASH>..<HASH> 100644
--- a/ipyrad/assemble/consens_se.py
+++ b/ipyrad/assemble/consens_se.py
@@ -400,9 +400,6 @@ class Processor:
self.init_arrays()
self.chroms2ints()
- # run the processor
- self... | fixes Step5 run to call run only once; counts nsites by excluding Ns | py |
diff --git a/setuptools/tests/test_build_meta.py b/setuptools/tests/test_build_meta.py
index <HASH>..<HASH> 100644
--- a/setuptools/tests/test_build_meta.py
+++ b/setuptools/tests/test_build_meta.py
@@ -310,6 +310,7 @@ class TestBuildMetaBackend:
foo = "foo.cli:main"
[tool.setuptools... | Test if not-zip-safe file is being generated with project metadata | py |
diff --git a/paramiko/pkey.py b/paramiko/pkey.py
index <HASH>..<HASH> 100644
--- a/paramiko/pkey.py
+++ b/paramiko/pkey.py
@@ -367,7 +367,7 @@ class PKey (object):
keysize = self._CIPHER_TABLE[cipher_name]['keysize']
blocksize = self._CIPHER_TABLE[cipher_name]['blocksize']
mode = ... | Salt needs to be <I> bytes instead of 8 | py |
diff --git a/Server/Python/src/dbs/dao/Oracle/Block/BriefList.py b/Server/Python/src/dbs/dao/Oracle/Block/BriefList.py
index <HASH>..<HASH> 100644
--- a/Server/Python/src/dbs/dao/Oracle/Block/BriefList.py
+++ b/Server/Python/src/dbs/dao/Oracle/Block/BriefList.py
@@ -94,7 +94,7 @@ class BriefList(DBFormatter):
... | Block BriefList: fix max_lday condition In this condition it should check for the max last modification date instead of the creation date parameter. | py |
diff --git a/settings.py b/settings.py
index <HASH>..<HASH> 100755
--- a/settings.py
+++ b/settings.py
@@ -15,10 +15,12 @@ DATABASES = {
'default': {
'ENGINE': 'django.db.backends.' + db_engine,
'NAME': 'johnny_db',
+ 'TEST_NAME': 'test_johnny_db',
},
'second': {
'ENGINE... | Explicit test database names to avoid issue with SQLite :memory: and multithreading. | py |
diff --git a/internetarchive/iarequest.py b/internetarchive/iarequest.py
index <HASH>..<HASH> 100644
--- a/internetarchive/iarequest.py
+++ b/internetarchive/iarequest.py
@@ -279,7 +279,6 @@ def prepare_metadata(metadata, source_metadata=None, append=False):
# (with the index removed) appears 3 times in the metada... | forgot to remove print() statements used for debugging! | py |
diff --git a/salt/utils/aws.py b/salt/utils/aws.py
index <HASH>..<HASH> 100644
--- a/salt/utils/aws.py
+++ b/salt/utils/aws.py
@@ -577,8 +577,10 @@ def get_location(opts=None, provider=None):
DEFAULT_LOCATION
'''
if opts is None:
- opts = __opts__
- ret = opts.get('location', provider.get('... | fix __opts__ and provider being None issue | py |
diff --git a/userena/decorators.py b/userena/decorators.py
index <HASH>..<HASH> 100644
--- a/userena/decorators.py
+++ b/userena/decorators.py
@@ -26,6 +26,9 @@ def secure_required(view_func):
if 'HTTP_X_FORWARDED_SSL' in request.META:
request.is_secure = lambda: request.META['HTTP_X_FORWARDED_SSL... | Improved ``secure_required`` for nginx. | py |
diff --git a/ariba/tasks/run.py b/ariba/tasks/run.py
index <HASH>..<HASH> 100644
--- a/ariba/tasks/run.py
+++ b/ariba/tasks/run.py
@@ -42,7 +42,6 @@ def run(options):
options.outdir,
extern_progs,
version_report_lines=version_report_lines,
- assembly_kmer=options.assembler_k,
... | Remove spades options, as fermilite now used | py |
diff --git a/tests/test_http_service.py b/tests/test_http_service.py
index <HASH>..<HASH> 100644
--- a/tests/test_http_service.py
+++ b/tests/test_http_service.py
@@ -334,8 +334,8 @@ def test_access_log(monkeypatch: Any, loop: Any) -> None:
assert '[http] [200] 127.0.0.1 - "GET /test HTTP/1.1" 4 -' in ... | fixed one test and conformed test data of another | py |
diff --git a/cassandra/cluster.py b/cassandra/cluster.py
index <HASH>..<HASH> 100644
--- a/cassandra/cluster.py
+++ b/cassandra/cluster.py
@@ -2402,7 +2402,9 @@ class ControlConnection(object):
partitioner = None
token_map = {}
+ found_hosts = set()
if local_result.results:
+ ... | Discard discovered hosts with duplicate rpc address PYTHON-<I> | py |
diff --git a/pyas2lib/utils.py b/pyas2lib/utils.py
index <HASH>..<HASH> 100644
--- a/pyas2lib/utils.py
+++ b/pyas2lib/utils.py
@@ -245,11 +245,11 @@ def extract_certificate_info(cert: bytes):
certificate.get_notAfter().decode("utf8"), "%Y%m%d%H%M%SZ"
).replace(tzinfo=timezone.utc)
... | Handle the case where non utf-8 characters are present in the certificate subject | py |
diff --git a/uni_form/templatetags/uni_form_field.py b/uni_form/templatetags/uni_form_field.py
index <HASH>..<HASH> 100644
--- a/uni_form/templatetags/uni_form_field.py
+++ b/uni_form/templatetags/uni_form_field.py
@@ -16,14 +16,9 @@ def is_checkbox(field):
def with_class(field):
class_name = field.field.widget._... | Changed with_class function to use the built in css_classes function so that the return can still be 'field'. By doing so this allows show_hidden_initial to not break. | py |
diff --git a/adapt/context.py b/adapt/context.py
index <HASH>..<HASH> 100644
--- a/adapt/context.py
+++ b/adapt/context.py
@@ -109,7 +109,7 @@ class ContextManager(object):
Returns:
list: a list of entities
"""
- if not max_frames:
+ if not max_frames or max_frames > len(sel... | Limit max_frames to number of context frames | py |
diff --git a/satpy/readers/seviri_l1b_nc.py b/satpy/readers/seviri_l1b_nc.py
index <HASH>..<HASH> 100644
--- a/satpy/readers/seviri_l1b_nc.py
+++ b/satpy/readers/seviri_l1b_nc.py
@@ -33,7 +33,9 @@ class NCSEVIRIFileHandler(BaseFileHandler):
**Calibration**
- See :mod:`satpy.readers.seviri_base`.
+ See :m... | Explain why there's no calib_mode in seviri_nc | py |
diff --git a/fs/archive/isofs/__init__.py b/fs/archive/isofs/__init__.py
index <HASH>..<HASH> 100644
--- a/fs/archive/isofs/__init__.py
+++ b/fs/archive/isofs/__init__.py
@@ -31,15 +31,15 @@ class ISOFile(io.RawIOBase):
def __init__(self, fs, entry): # noqa: D102, D107
self._fs = fs
- self._cd =... | Avoid using private API parts of `pycdlib` | py |
diff --git a/tldap/ldap_passwd.py b/tldap/ldap_passwd.py
index <HASH>..<HASH> 100644
--- a/tldap/ldap_passwd.py
+++ b/tldap/ldap_passwd.py
@@ -40,7 +40,7 @@ def check_password(password, encrypted):
def encode_password(password):
- return pwd_context.hash(password)
+ return pwd_context.encrypt(password)
... | Revert change encrypt --> hash Change was premature and will break older versions of passlib. Change-Id: I<I>d5fa<I>b<I>d<I>dc<I>b<I>ca<I>e<I>cf | py |
diff --git a/python/test/function/test_assign.py b/python/test/function/test_assign.py
index <HASH>..<HASH> 100644
--- a/python/test/function/test_assign.py
+++ b/python/test/function/test_assign.py
@@ -51,3 +51,4 @@ def test_assign_forward_backward(seed, ctx, func_name):
# gradients at destination are identical... | Add check of source gradients at F.assign | py |
diff --git a/numina/instrument/detector.py b/numina/instrument/detector.py
index <HASH>..<HASH> 100644
--- a/numina/instrument/detector.py
+++ b/numina/instrument/detector.py
@@ -293,6 +293,8 @@ class nIRDetector(ArrayDetector):
pedestal,
dark=dark,
flat=f... | resetval and resetnoise are not ignored now | py |
diff --git a/ps_alchemy/resources.py b/ps_alchemy/resources.py
index <HASH>..<HASH> 100644
--- a/ps_alchemy/resources.py
+++ b/ps_alchemy/resources.py
@@ -150,17 +150,11 @@ class ListResource(BaseResource):
@property
def items_per_page(self):
- default = 5
-
- if not getattr(self, '__parent__'... | fix up sacrud/pyramid_sacrud#<I> | py |
diff --git a/omnijson/core.py b/omnijson/core.py
index <HASH>..<HASH> 100644
--- a/omnijson/core.py
+++ b/omnijson/core.py
@@ -35,18 +35,25 @@ def loads(s):
"""Loads JSON object."""
try:
- return _engine[0](s)
+ try:
+ return _engine[0](s, **kwargs)
+ except TypeError:
+ ... | support for **kwargs w/ fallback | py |
diff --git a/oauth2client/client.py b/oauth2client/client.py
index <HASH>..<HASH> 100644
--- a/oauth2client/client.py
+++ b/oauth2client/client.py
@@ -94,7 +94,7 @@ AccessTokenInfo = collections.namedtuple(
DEFAULT_ENV_NAME = 'UNKNOWN'
# If set to True _get_environment avoid GCE check (_detect_gce_environment)
-NO_... | Modify NO_GCE_CHECK to be a global variable that default on an env var Following @craigcitro's suggestion | py |
diff --git a/heron/shell/src/python/main.py b/heron/shell/src/python/main.py
index <HASH>..<HASH> 100644
--- a/heron/shell/src/python/main.py
+++ b/heron/shell/src/python/main.py
@@ -193,7 +193,7 @@ app = tornado.web.Application([
(r"^/jmap/([0-9]+$)", JmapHandler),
(r"^/histo/([0-9]+$)", MemoryHistogramHandler),... | Allow non-alpha-numeric characters for instanceIds in shell pid http call. | py |
diff --git a/rinoh/structure.py b/rinoh/structure.py
index <HASH>..<HASH> 100644
--- a/rinoh/structure.py
+++ b/rinoh/structure.py
@@ -148,7 +148,11 @@ class Heading(NumberedParagraph):
result = 0, 0, None
else:
result = super().flow(container, last_descender, state, **kwargs)
- ... | Fix the destination location for Headings create_destination() needs to be passed the margin container to adapt to margins. | py |
diff --git a/amazon/ion/__init__.py b/amazon/ion/__init__.py
index <HASH>..<HASH> 100644
--- a/amazon/ion/__init__.py
+++ b/amazon/ion/__init__.py
@@ -18,7 +18,7 @@ from __future__ import division
from __future__ import print_function
__author__ = 'Amazon.com, Inc.'
-__version__ = '0.1.0'
+__version__ = '0.4.1'
... | Change self-reported version from <I> to <I> | py |
diff --git a/tests/risk/answer_key.py b/tests/risk/answer_key.py
index <HASH>..<HASH> 100644
--- a/tests/risk/answer_key.py
+++ b/tests/risk/answer_key.py
@@ -133,6 +133,14 @@ class DataIndex(object):
def row_end_index(self):
return self.row_end - 1
+ def __str__(self):
+ return "'{sheet_name}... | MAINT: Add formatting for printing of answer key DataIndex. Output format of the range compatible with Excel, so that it can be copy and pasted back into the spread sheet for easier corroboration. | py |
diff --git a/discord/role.py b/discord/role.py
index <HASH>..<HASH> 100644
--- a/discord/role.py
+++ b/discord/role.py
@@ -113,6 +113,12 @@ class Role(Hashable):
if self.guild != other.guild:
raise RuntimeError('cannot compare roles from two different guilds.')
+ # the @everyone role is a... | Take the default role property into account when comparing roles. | py |
diff --git a/tests/test_jujupy.py b/tests/test_jujupy.py
index <HASH>..<HASH> 100644
--- a/tests/test_jujupy.py
+++ b/tests/test_jujupy.py
@@ -812,7 +812,7 @@ class TestEnvJujuClient(ClientTest):
client.bootstrap()
mock.assert_called_with(
'bootstrap', (
- ... | Fix test by adding missing comma | py |
diff --git a/src/gnupg.py b/src/gnupg.py
index <HASH>..<HASH> 100644
--- a/src/gnupg.py
+++ b/src/gnupg.py
@@ -223,7 +223,7 @@ class GPGBase(object):
try:
program = _util._which(prog)[0]
- except (OSError, IOerror, IndexError) as err:
+ except (OSError, IOError, IndexError) as err:... | Fix a bug due to a typo in the name of an Exception class. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -11,9 +11,12 @@ import sys
from setuptools.command.bdist_egg import bdist_egg as _bdist_egg
-sys.path.insert(0, dirname(__file__))
-from _js_install import find_extra_js_files_in_npm
-
+try:
+ from _js_install import f... | setup.py import from _js_install without changing the sys.path | py |
diff --git a/cqlengine/management.py b/cqlengine/management.py
index <HASH>..<HASH> 100644
--- a/cqlengine/management.py
+++ b/cqlengine/management.py
@@ -108,7 +108,7 @@ def sync_table(model, create_missing_keyspace=True):
else:
# see if we're missing any columns
fields = get_fields(model)
- ... | get_fields now using native driver | py |
diff --git a/cleancat/base.py b/cleancat/base.py
index <HASH>..<HASH> 100644
--- a/cleancat/base.py
+++ b/cleancat/base.py
@@ -472,18 +472,21 @@ class Schema(object):
except ValidationError as e:
self.errors = [e.args and e.args[0]]
+ self.raise_on_errors()
+ return self.data
+
+ ... | Adding method Schema.raise_on_errors and kwarg to external_clean for better control over raising errors. | py |
diff --git a/getmac/getmac.py b/getmac/getmac.py
index <HASH>..<HASH> 100644
--- a/getmac/getmac.py
+++ b/getmac/getmac.py
@@ -8,7 +8,7 @@ try:
except ImportError:
DEVNULL = open(os.devnull, 'wb') # Py2
-__version__ = '0.2.2'
+__version__ = '0.2.3'
DEBUG = False
PY2 = sys.version_info[0] == 2
@@ -187,6 +18... | Fix Windows remote host on Python 3 - In Python 3, the ctypes method for getting the MAC of a remote host would fail. This was caused by the host being implicitly encoded to bytes in Python 2, but not in 3. Fixes #7 | py |
diff --git a/openstack/datadog_checks/openstack/openstack.py b/openstack/datadog_checks/openstack/openstack.py
index <HASH>..<HASH> 100644
--- a/openstack/datadog_checks/openstack/openstack.py
+++ b/openstack/datadog_checks/openstack/openstack.py
@@ -842,7 +842,9 @@ class OpenStackCheck(AgentCheck):
else:
... | Ensure projects exists before collecting metrics on them | py |
diff --git a/salt/renderers/jinja.py b/salt/renderers/jinja.py
index <HASH>..<HASH> 100644
--- a/salt/renderers/jinja.py
+++ b/salt/renderers/jinja.py
@@ -40,9 +40,4 @@ def render(template_file, env='', sls='', argline='',
raise SaltRenderError(
tmp_data.get('data', 'Unknown render error in ji... | Moved render log data to better location | py |
diff --git a/onedrive/cli_tool.py b/onedrive/cli_tool.py
index <HASH>..<HASH> 100755
--- a/onedrive/cli_tool.py
+++ b/onedrive/cli_tool.py
@@ -176,6 +176,8 @@ def main():
help='Folder to put file into (default: %(default)s).')
cmd.add_argument('-n', '--no-overwrite', action='store_true',
... | Update cli_tool.py Add a command argument to the put command to disable the downsizing | py |
diff --git a/skyfield/coordinates.py b/skyfield/coordinates.py
index <HASH>..<HASH> 100644
--- a/skyfield/coordinates.py
+++ b/skyfield/coordinates.py
@@ -63,6 +63,9 @@ class ICRS(XYZ):
velocity = body.velocity - self.velocity
return XYZ(self.position - body.position, velocity, self.jd)
+ def... | Re-instate the .observe() method | py |
diff --git a/ledgerblue/loadApp.py b/ledgerblue/loadApp.py
index <HASH>..<HASH> 100644
--- a/ledgerblue/loadApp.py
+++ b/ledgerblue/loadApp.py
@@ -34,7 +34,7 @@ def get_argparser():
parser.add_argument("--targetVersion", help="Set the chip target version")
parser.add_argument("--fileName", help="The application hex... | Rename prime<I>r1 to secp<I>r1 | py |
diff --git a/datajoint/connection.py b/datajoint/connection.py
index <HASH>..<HASH> 100644
--- a/datajoint/connection.py
+++ b/datajoint/connection.py
@@ -122,6 +122,8 @@ class Connection:
be violated. You can switch off this behavior by setting the 'database.reconnect' to False.
... | re-execute query after reconnection | py |
diff --git a/wordpress_xmlrpc/base.py b/wordpress_xmlrpc/base.py
index <HASH>..<HASH> 100644
--- a/wordpress_xmlrpc/base.py
+++ b/wordpress_xmlrpc/base.py
@@ -1,4 +1,5 @@
import collections
+import sys
from wordpress_xmlrpc.compat import xmlrpc_client, dict_type
from wordpress_xmlrpc.exceptions import ServerCo... | Added the importation of the sys module required by "e = sys.exc_info()[1]" | py |
diff --git a/pymc3/external/edward.py b/pymc3/external/edward.py
index <HASH>..<HASH> 100644
--- a/pymc3/external/edward.py
+++ b/pymc3/external/edward.py
@@ -76,4 +76,5 @@ class EdwardModel(object):
# variables.
z = {key: value for key, value in zip(self.zs_keys, zs_values)}
lp = self.model.... | Added newline to end of edward.py | py |
diff --git a/axes/__init__.py b/axes/__init__.py
index <HASH>..<HASH> 100644
--- a/axes/__init__.py
+++ b/axes/__init__.py
@@ -1,3 +1,7 @@
+import logging
+import os
+from django.conf import settings
+
VERSION = (1, 2, 4, 'rc1')
@@ -5,11 +9,12 @@ def get_version():
return '%s.%s.%s-%s' % VERSION
try:
- ... | don't put this whole thing in a try | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -3,12 +3,7 @@
import os
from setuptools import setup
-requires = ['argh', 'clint', 'jinja2', 'Markdown', 'pilkit']
-
-try:
- from PIL import Image, ImageOps # NOQA
-except ImportError:
- requires += ['Pillow']
+requ... | Remove the possibility to use PIL. | py |
diff --git a/src/diamond/utils/log.py b/src/diamond/utils/log.py
index <HASH>..<HASH> 100644
--- a/src/diamond/utils/log.py
+++ b/src/diamond/utils/log.py
@@ -36,16 +36,7 @@ def setup_logging(configfile, stdout=False):
log = logging.getLogger('diamond')
try:
- if sys.version_info >= (2, 6):
- ... | Remove unsupported Python <= <I> | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -123,7 +123,7 @@ def get_version_info():
vinfo = _version_helper.generate_git_version_info()
except:
vinfo = vdummy()
- vinfo.version = '1.14.3'
+ vinfo.version = '1.14.4'
vinfo.re... | Push to <I> release (#<I>) * Return to development * Update setup.py | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -27,6 +27,7 @@ setup(
packages=find_packages(),
zip_safe=False,
install_requires=[
+ 'django',
'django-modeldict>=1.0.1',
'nexus>=0.1.0',
'django-jsonfield', | list django as a requirement so our distribution is correct | py |
diff --git a/cardinal_pythonlib/tests/dogpile_cache_tests.py b/cardinal_pythonlib/tests/dogpile_cache_tests.py
index <HASH>..<HASH> 100644
--- a/cardinal_pythonlib/tests/dogpile_cache_tests.py
+++ b/cardinal_pythonlib/tests/dogpile_cache_tests.py
@@ -52,6 +52,7 @@ log = logging.getLogger(__name__)
class DogpileCac... | xfail dogpile cache tests for now | py |
diff --git a/openfisca_core/rates.py b/openfisca_core/rates.py
index <HASH>..<HASH> 100644
--- a/openfisca_core/rates.py
+++ b/openfisca_core/rates.py
@@ -4,14 +4,20 @@
import numpy
-def average_rate(target = None, varying = None):
+def average_rate(target = None, varying = None, trim = None):
'''
Comput... | Define a trim option for average rate function | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.