diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/spacy/lemmatizer.py b/spacy/lemmatizer.py
index <HASH>..<HASH> 100644
--- a/spacy/lemmatizer.py
+++ b/spacy/lemmatizer.py
@@ -55,9 +55,10 @@ class Lemmatizer(object):
def is_base_form(self, pos, **morphology):
'''Check whether we're dealing with an uninflected paradigm, so we can
avo... | Tweak the new is_base_form logic, because we can expect the 'pos' key in the morphology we're passed. | py |
diff --git a/police_api/crime.py b/police_api/crime.py
index <HASH>..<HASH> 100644
--- a/police_api/crime.py
+++ b/police_api/crime.py
@@ -27,10 +27,10 @@ class OutcomeCategory(SimpleResource):
return '<OutcomeCategory> %s' % self.name
def __eq__(self, other):
- return isinstance(other, OutcomeCa... | Use the name of an outcome category when testing for equality and hashing | py |
diff --git a/dipper/sources/ZFIN.py b/dipper/sources/ZFIN.py
index <HASH>..<HASH> 100644
--- a/dipper/sources/ZFIN.py
+++ b/dipper/sources/ZFIN.py
@@ -115,7 +115,7 @@ class ZFIN(Source):
self._process_feature_affected_genes(limit)
self._process_g2p(limit)
- self._process_morpholinos(limit)
+ ... | ZFIN.py: Reordered parsing steps. | py |
diff --git a/tests/external/py2/testfixture_test.py b/tests/external/py2/testfixture_test.py
index <HASH>..<HASH> 100644
--- a/tests/external/py2/testfixture_test.py
+++ b/tests/external/py2/testfixture_test.py
@@ -1,11 +1,23 @@
#!/usr/bin/env python
# -----------------------------------------------------------------... | Added numenta.org file header | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -9,4 +9,13 @@ setup(name='formcreator',
license='BSD 2-Clause',
packages=['formcreator', 'formcreator.fields', 'formcreator.blocks', 'formcreator.static', 'formcreator.templates'],
include_package_data=Tru... | Adding package dependencies in setup.py | py |
diff --git a/run_tests.py b/run_tests.py
index <HASH>..<HASH> 100755
--- a/run_tests.py
+++ b/run_tests.py
@@ -104,7 +104,6 @@ class ConfigTestCaseBase(unittest.TestCase):
- ln -sf /home/tony/.tmux/.tmux.conf /home/tony/.tmux.conf
"""
-
SAMPLECONFIG_DICT = {
'/home/... | commit this incase i fall asleep, aw | py |
diff --git a/src/semantic_version/__init__.py b/src/semantic_version/__init__.py
index <HASH>..<HASH> 100644
--- a/src/semantic_version/__init__.py
+++ b/src/semantic_version/__init__.py
@@ -2,7 +2,7 @@
# Copyright (c) 2012 Raphaël Barrois
-__version__ = '1.1.0-alpha'
+__version__ = '1.1.0-beta'
from .base im... | Version bump. Features ready, doc to write. | py |
diff --git a/utilities/text-import.py b/utilities/text-import.py
index <HASH>..<HASH> 100755
--- a/utilities/text-import.py
+++ b/utilities/text-import.py
@@ -4,6 +4,7 @@
import re
import sys
+sys.path.append('../pynipap/')
import pynipap
from pynipap import AuthOptions, Schema, Pool, Prefix, NipapNonExistentErro... | Fix text-import URL support We didn't listen to the URL specified on the command line - we now do! | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -36,11 +36,11 @@ setup(
],
test_suite='runtests.runtests',
tests_require=[
- 'pyjwkest==1.3.0',
- 'mock==2.0.0',
+ 'pyjwkest>=1.3.0',
+ 'mock>=2.0.0',
],
install_requires=... | Don't pin exact versions in install_requires. According to this: <URL> | py |
diff --git a/tweepy/binder.py b/tweepy/binder.py
index <HASH>..<HASH> 100644
--- a/tweepy/binder.py
+++ b/tweepy/binder.py
@@ -8,6 +8,7 @@ import time
import re
from tweepy.error import TweepError
+from tweepy.utils import convert_to_utf8_str
re_path_template = re.compile('{\w+}') | Fix an error due to a missing import in binder.py Thanks Doza for reporting! | py |
diff --git a/src/discoursegraphs/readwrite/exmaralda.py b/src/discoursegraphs/readwrite/exmaralda.py
index <HASH>..<HASH> 100755
--- a/src/discoursegraphs/readwrite/exmaralda.py
+++ b/src/discoursegraphs/readwrite/exmaralda.py
@@ -88,7 +88,7 @@ class ExmaraldaWriter(object):
'display-name': "[{}]".for... | refactoring: renamed get_nodes_from_layer() to select_nodes_by_layer() | py |
diff --git a/client/speaker.py b/client/speaker.py
index <HASH>..<HASH> 100644
--- a/client/speaker.py
+++ b/client/speaker.py
@@ -208,8 +208,22 @@ def newSpeaker():
ValueError if no speaker implementation is supported on this platform
"""
- tts_engine = 'espeak-tts'
-
+ tts_engine = None
+
+ #... | Getting tts engine from profile | py |
diff --git a/ford/sourceform.py b/ford/sourceform.py
index <HASH>..<HASH> 100644
--- a/ford/sourceform.py
+++ b/ford/sourceform.py
@@ -351,7 +351,13 @@ class FortranBase(object):
self.meta['summary'] = md.convert(self.meta['summary'])
self.meta['summary'] = ford.utils.sub_macros(ford.utils.sub... | Fix <I>: Inc. all proc doc when missing read more | py |
diff --git a/formly/models.py b/formly/models.py
index <HASH>..<HASH> 100644
--- a/formly/models.py
+++ b/formly/models.py
@@ -14,6 +14,7 @@ from django.contrib.auth.models import User
from jsonfield import JSONField
from .forms import MultipleTextField, MultiTextWidget
+from .forms.widgets import LikertSelect
... | Set widget for Field.LIKERT_FIELD | py |
diff --git a/salt/modules/zfs.py b/salt/modules/zfs.py
index <HASH>..<HASH> 100644
--- a/salt/modules/zfs.py
+++ b/salt/modules/zfs.py
@@ -39,20 +39,22 @@ def _available_commands():
if not zfs_path:
return False
- _return = {}
+ ret = {}
# Note that we append '|| :' as a unix hack to force re... | Log 'zfs help' output at debug This suppresses the output from this command unless the minion is running in debug mode. | py |
diff --git a/pymc/tests/test_glm.py b/pymc/tests/test_glm.py
index <HASH>..<HASH> 100644
--- a/pymc/tests/test_glm.py
+++ b/pymc/tests/test_glm.py
@@ -1,4 +1,5 @@
import unittest
+from nose import SkipTest
from pymc import *
import sys
@@ -31,6 +32,7 @@ bern_trials = [np.random.binomial(1, i) for i in y_logistic]
... | Skip glm tests that are only failing on travis. | py |
diff --git a/src/armet/utils.py b/src/armet/utils.py
index <HASH>..<HASH> 100644
--- a/src/armet/utils.py
+++ b/src/armet/utils.py
@@ -7,6 +7,7 @@ import re
import collections
import os
import pkgutil
+import importlib
import functools
@@ -58,10 +59,10 @@ def dasherize(value):
def iter_modules(package):
... | Fix to provide python 3 compatibility. | py |
diff --git a/adb/adb_protocol.py b/adb/adb_protocol.py
index <HASH>..<HASH> 100644
--- a/adb/adb_protocol.py
+++ b/adb/adb_protocol.py
@@ -451,7 +451,7 @@ class AdbMessage(object):
The stdout from the shell command.
"""
- if not isinstance(delim, bytes):
+ if delim is not None and no... | Bugfix/interactive shell none delim (#<I>) * Bugfix for when the caller passes None as the delimiter to InteractiveShellCommand | py |
diff --git a/openpnm/topotools/topotools.py b/openpnm/topotools/topotools.py
index <HASH>..<HASH> 100644
--- a/openpnm/topotools/topotools.py
+++ b/openpnm/topotools/topotools.py
@@ -1278,7 +1278,7 @@ def find_surface_pores(network, markers=None, label='surface'):
markers = np.vstack((x, y)).T
if ... | fixing last use of float in arange | py |
diff --git a/quantecon/compute_fp.py b/quantecon/compute_fp.py
index <HASH>..<HASH> 100644
--- a/quantecon/compute_fp.py
+++ b/quantecon/compute_fp.py
@@ -69,7 +69,7 @@ def compute_fixed_point(T, v, error_tol=1e-3, max_iter=50, verbose=1,
if verbose:
start_time = time.time()
- _print_after_skip(p... | BUG: forgot to change call when renamed charge | py |
diff --git a/python_modules/dagit/dagit/graphql.py b/python_modules/dagit/dagit/graphql.py
index <HASH>..<HASH> 100644
--- a/python_modules/dagit/dagit/graphql.py
+++ b/python_modules/dagit/dagit/graphql.py
@@ -66,6 +66,9 @@ class GraphQLServer(ABC):
def make_request_context(self, conn: HTTPConnection):
r... | [dag-star] improve error handling (#<I>) move to handling to method for override in cloud ## Test Plan eyes | py |
diff --git a/test/integration/test_runningbuilds_api.py b/test/integration/test_runningbuilds_api.py
index <HASH>..<HASH> 100644
--- a/test/integration/test_runningbuilds_api.py
+++ b/test/integration/test_runningbuilds_api.py
@@ -1,4 +1,5 @@
import pytest
+import time
from pnc import utils
from pnc.swagger_client.a... | make sure we don't encounter the <I> conflict status for same BC running | py |
diff --git a/atomic_reactor/plugins/post_tag_from_config.py b/atomic_reactor/plugins/post_tag_from_config.py
index <HASH>..<HASH> 100644
--- a/atomic_reactor/plugins/post_tag_from_config.py
+++ b/atomic_reactor/plugins/post_tag_from_config.py
@@ -99,6 +99,11 @@ class TagFromConfigPlugin(PostBuildPlugin):
... | Warn about deprecated 'additional-tags' file Warn users to stop using additional-tags and suggest them to use tags in container.yaml | py |
diff --git a/sentinelhub/api/byoc.py b/sentinelhub/api/byoc.py
index <HASH>..<HASH> 100644
--- a/sentinelhub/api/byoc.py
+++ b/sentinelhub/api/byoc.py
@@ -4,7 +4,7 @@ Module implementing an interface with
"""
from dataclasses import dataclass, field
from datetime import datetime
-from typing import Dict, Optional, L... | Removed Literal type checking, as we still support <I> and it might be better to let SH do the input validation. | py |
diff --git a/salt/modules/smf.py b/salt/modules/smf.py
index <HASH>..<HASH> 100644
--- a/salt/modules/smf.py
+++ b/salt/modules/smf.py
@@ -114,6 +114,18 @@ def restart(name):
return not __salt__['cmd.retcode'](cmd)
+def reload(name):
+ '''
+ Reload the named service
+
+ CLI Example::
+
+ salt '... | added service refresh function to Solaris SMF | py |
diff --git a/sendgrid/helpers/mail/mail.py b/sendgrid/helpers/mail/mail.py
index <HASH>..<HASH> 100644
--- a/sendgrid/helpers/mail/mail.py
+++ b/sendgrid/helpers/mail/mail.py
@@ -216,8 +216,8 @@ class Mail(object):
def to(self, to_emails, global_substitutions=None, is_multiple=False, p=0):
"""Adds To obje... | docs: Update to_emails type (#<I>) | py |
diff --git a/cheroot/test/test_server.py b/cheroot/test/test_server.py
index <HASH>..<HASH> 100644
--- a/cheroot/test/test_server.py
+++ b/cheroot/test/test_server.py
@@ -355,11 +355,15 @@ def many_open_sockets(resource_limit):
for i in range(resource_limit):
sock = socket.socket()
te... | 🚑 Fix test_high_number_of_file_descriptors @ PyPy This test seems to be flakily failing under PyPy in CIs. The working theory is that this is happening because of PyPy's indeterministic GC mechanism that releases file descriptors right before your test run which causes lower file descriptor numbers to be reallocated ... | py |
diff --git a/examples/image_serve.py b/examples/image_serve.py
index <HASH>..<HASH> 100644
--- a/examples/image_serve.py
+++ b/examples/image_serve.py
@@ -4,4 +4,4 @@ import hug
@hug.get('/image.png', output=hug.output_format.png_image)
def image():
"""Serves up a PNG image."""
- return '../logo.png'
+ ret... | fixed path to logo.png in examples/image_serve.py | py |
diff --git a/satpy/writers/__init__.py b/satpy/writers/__init__.py
index <HASH>..<HASH> 100644
--- a/satpy/writers/__init__.py
+++ b/satpy/writers/__init__.py
@@ -59,7 +59,7 @@ def _determine_mode(dataset):
(dataset.id,))
-def add_overlay(orig, area, coast_dir, color=(0, 0, 0), width=0.5... | Adding to more options to add_overlay. This to better control which levels of coast(GSHHS) and borders (WDB_II) are put on the plot | py |
diff --git a/holoviews/core/element.py b/holoviews/core/element.py
index <HASH>..<HASH> 100644
--- a/holoviews/core/element.py
+++ b/holoviews/core/element.py
@@ -63,6 +63,15 @@ class Element(ViewableElement, Composable, Overlayable):
raise NotImplementedError("%s currently does not support getitem" %
... | Added nonzero/bool implementation to Element | py |
diff --git a/tutorials/mnist_tutorial_tf.py b/tutorials/mnist_tutorial_tf.py
index <HASH>..<HASH> 100644
--- a/tutorials/mnist_tutorial_tf.py
+++ b/tutorials/mnist_tutorial_tf.py
@@ -263,8 +263,7 @@ def mnist_tutorial(train_start=0, train_end=60000, test_start=0,
# Initialize the Fast Gradient Sign Method (FGSM) a... | Fix mnist_tutorial_tf generate feed issue | py |
diff --git a/pyxmpp/rfc3454.py b/pyxmpp/rfc3454.py
index <HASH>..<HASH> 100644
--- a/pyxmpp/rfc3454.py
+++ b/pyxmpp/rfc3454.py
@@ -27,7 +27,7 @@ try:
if stringprep.in_table_b1(uc):
return u""
else:
- return uc
+ return None
B_1=LookupFunction(b1_mapping)
... | - case mapping (B<I> table) fixed in stringprep profiles | py |
diff --git a/shoebot/__init__.py b/shoebot/__init__.py
index <HASH>..<HASH> 100644
--- a/shoebot/__init__.py
+++ b/shoebot/__init__.py
@@ -301,6 +301,7 @@ def run(src,
try:
shell.cmdloop()
except KeyboardInterrupt as e:
+ publish_event(QUIT_EVENT) # Handle Ctrl-C
... | Handle Ctrl-C in shell | py |
diff --git a/huey/contrib/djhuey/__init__.py b/huey/contrib/djhuey/__init__.py
index <HASH>..<HASH> 100644
--- a/huey/contrib/djhuey/__init__.py
+++ b/huey/contrib/djhuey/__init__.py
@@ -99,6 +99,7 @@ if isinstance(HUEY, dict):
task = HUEY.task
periodic_task = HUEY.periodic_task
lock_task = HUEY.lock_task
+enqueue =... | Expose enqueue through djhuey | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -20,6 +20,8 @@ from distutils.core import setup
from setuptools import find_packages
scripts = ["bin/%s" % x for x in os.listdir('bin')]
+scripts.extend(
+ ["opengem/utils/%s" % x for x in os.listdir('opengem/utils')])
... | Include the seismicsources module as well in package, and utils as scripts. Former-commit-id: ad4bc4cc9a<I>ac<I>a5bd8a<I>d | py |
diff --git a/tests/test_users.py b/tests/test_users.py
index <HASH>..<HASH> 100644
--- a/tests/test_users.py
+++ b/tests/test_users.py
@@ -328,7 +328,8 @@ class UsersTest(BaseTest):
"Id": "1167495",
"Tag": None,
"CreationDate": 1382605938,
- ... | Add test to reproduce the list inherited object properties bug | py |
diff --git a/client/deis.py b/client/deis.py
index <HASH>..<HASH> 100755
--- a/client/deis.py
+++ b/client/deis.py
@@ -1019,7 +1019,7 @@ class DeisClient(object):
body = {}
for k, arg in (('domain', '--domain'), ('hosts', '--hosts'),
('auth', '--auth'), ('type', '--type')):
- ... | fix(client): make --auth optional If --auth was not supplied previously, the code for clusters:update would break because it was supplied a NoneType when opening the file. Skipping the code block when --auth is not supplied fixes this issue. | py |
diff --git a/varify/phenotypes/management/subcommands/load.py b/varify/phenotypes/management/subcommands/load.py
index <HASH>..<HASH> 100644
--- a/varify/phenotypes/management/subcommands/load.py
+++ b/varify/phenotypes/management/subcommands/load.py
@@ -124,7 +124,7 @@ class Command(BaseCommand):
... | Remove clumsy comment within a multi-line SQL statement Fix load_hpo method to take the using argument. From internal change on <I>/6 | py |
diff --git a/umap/umap_.py b/umap/umap_.py
index <HASH>..<HASH> 100644
--- a/umap/umap_.py
+++ b/umap/umap_.py
@@ -2170,7 +2170,7 @@ class UMAP(BaseEstimator):
# nearest neighbors. To make this easier, we expect matrices that are
# symmetrical (so we can find neighbors by looking at rows in is... | Commented out an unnecessary print statement | py |
diff --git a/meshio/med_io.py b/meshio/med_io.py
index <HASH>..<HASH> 100644
--- a/meshio/med_io.py
+++ b/meshio/med_io.py
@@ -50,9 +50,10 @@ def read(filename):
# Read nodal and cell data if they exist
try:
cha = f["CHA"] # champs (fields) in french
- point_data, cell_data, field_data = _rea... | do not intercept KeyError in _read_data | py |
diff --git a/vcr/util.py b/vcr/util.py
index <HASH>..<HASH> 100644
--- a/vcr/util.py
+++ b/vcr/util.py
@@ -1,13 +1,17 @@
-import collections
import types
+try:
+ from collections.abc import Mapping, MutableMapping
+except ImportError:
+ from collections import Mapping, MutableMapping
+
# Shamelessly stolen ... | Fix collections.abc DeprecationWarning In versions of Python from <I> and forward, importing Mapping and MutableMapping from the collections module will no longer work. This change will try to import from the collections.abc module, which was added in Python <I>, and fall back to the collections module on older versio... | py |
diff --git a/py/nupic/research/spatial_pooler.py b/py/nupic/research/spatial_pooler.py
index <HASH>..<HASH> 100644
--- a/py/nupic/research/spatial_pooler.py
+++ b/py/nupic/research/spatial_pooler.py
@@ -1140,7 +1140,7 @@ class SpatialPooler(object):
if (potential[i] < 1):
continue
- if (self._ran... | Fix edge case where initial connected percent is 1 @subutai For your opinion - If a user decides to modify this param they would run into a bug where they were not guaranteed to get <I>% connected perms. | py |
diff --git a/can/interfaces/vector/canlib.py b/can/interfaces/vector/canlib.py
index <HASH>..<HASH> 100644
--- a/can/interfaces/vector/canlib.py
+++ b/can/interfaces/vector/canlib.py
@@ -107,7 +107,7 @@ class VectorBus(BusABC):
CAN: range `16…32768`
CAN-FD: range `8192…524288`
:param ... | Update can/interfaces/vector/canlib.py | py |
diff --git a/mapping/util.py b/mapping/util.py
index <HASH>..<HASH> 100644
--- a/mapping/util.py
+++ b/mapping/util.py
@@ -218,8 +218,8 @@ def calc_trades(current_contracts, desired_holdings, trade_weights, prices,
def to_notional(instruments, prices, multipliers, desired_ccy=None,
instr_fx=None, fx_r... | added example to to_notional() docstrings | py |
diff --git a/nodeconductor/core/admin.py b/nodeconductor/core/admin.py
index <HASH>..<HASH> 100644
--- a/nodeconductor/core/admin.py
+++ b/nodeconductor/core/admin.py
@@ -132,7 +132,7 @@ class ExecutorAdminAction(object):
class ExtraActionsMixin(object):
"""
- Allows to add extra action to admin list page.
+... | Fix typo (NC-<I>) | py |
diff --git a/stacker/actions/build.py b/stacker/actions/build.py
index <HASH>..<HASH> 100644
--- a/stacker/actions/build.py
+++ b/stacker/actions/build.py
@@ -35,7 +35,7 @@ def should_submit(stack):
stack (stacker.stack.Stack): The stack object to check.
Returns:
- bool: If the stack should be up... | fix copypasta updated/submitted in comment | py |
diff --git a/tests/test_test_vectors.py b/tests/test_test_vectors.py
index <HASH>..<HASH> 100644
--- a/tests/test_test_vectors.py
+++ b/tests/test_test_vectors.py
@@ -15,7 +15,8 @@ from fault.verilator_target import VerilatorTarget
@pytest.mark.parametrize("Circuit", [TestBasicCircuit, TestArrayCircuit,
... | Switch from lambda to def | py |
diff --git a/voltron/comms.py b/voltron/comms.py
index <HASH>..<HASH> 100644
--- a/voltron/comms.py
+++ b/voltron/comms.py
@@ -185,6 +185,10 @@ class Server (object):
def handle_interactive_query(self, client, msg):
log.debug('Got an interactive query from client {} of type {}'.format(self, msg['query']))... | refresh helpers in interactive queries fixes a crash when no views have been attached, and you try to use the calculon integration | py |
diff --git a/aikif/lib/cls_file.py b/aikif/lib/cls_file.py
index <HASH>..<HASH> 100644
--- a/aikif/lib/cls_file.py
+++ b/aikif/lib/cls_file.py
@@ -217,7 +217,7 @@ class AudioFile(File):
import aikif.toolbox.audio_tools as aud
super(AudioFile, self).__init__(fname)
self.meta = aud.get_audio_me... | fix for count lines with invalid filename | py |
diff --git a/kibitzr/main.py b/kibitzr/main.py
index <HASH>..<HASH> 100644
--- a/kibitzr/main.py
+++ b/kibitzr/main.py
@@ -50,7 +50,7 @@ def main(once=False, log_level=logging.INFO, names=None):
if checkers:
execute_all(checkers)
if once or interrupted:
- ... | Fixed exit code from 2 to 1 Since exit code 2 is treated as expected by supervisord | py |
diff --git a/pandas/tests/indexing/multiindex/test_multiindex.py b/pandas/tests/indexing/multiindex/test_multiindex.py
index <HASH>..<HASH> 100644
--- a/pandas/tests/indexing/multiindex/test_multiindex.py
+++ b/pandas/tests/indexing/multiindex/test_multiindex.py
@@ -119,3 +119,13 @@ class TestMultiIndexBasic:
... | TST: Test renaming a multiindex with duplicates (GH <I>) (#<I>) * TST: Test renaming a multiindex with duplicates * TST: Renaming multiindex with duplicates * TST: Renaming multiindex containing duplicates * Update test_multiindex.py | py |
diff --git a/tests/test_models.py b/tests/test_models.py
index <HASH>..<HASH> 100644
--- a/tests/test_models.py
+++ b/tests/test_models.py
@@ -233,7 +233,7 @@ def test_model_fields_validate_allow_empty_error(empty_value):
with pytest.raises(EmptyField) as exc:
MyModel(foo=empty_value, bar=empty_value).val... | Fix tests to support latest pytest version | py |
diff --git a/pympfr.py b/pympfr.py
index <HASH>..<HASH> 100644
--- a/pympfr.py
+++ b/pympfr.py
@@ -544,6 +544,7 @@ standard_binary_functions = [
'add', 'sub', 'mul', 'div', 'pow',
'dim', 'atan2', 'agm', 'hypot',
'fmod', 'remainder',
+ 'max', 'min',
]
standard_ternary_functions = [ | Add max and min to list of standard functions. | py |
diff --git a/discord/ext/commands/core.py b/discord/ext/commands/core.py
index <HASH>..<HASH> 100644
--- a/discord/ext/commands/core.py
+++ b/discord/ext/commands/core.py
@@ -1237,6 +1237,11 @@ class GroupMixin:
def command(self, *args, **kwargs):
"""A shortcut decorator that invokes :func:`.command` and ... | [commands] Update Bot.command() decorator docs | py |
diff --git a/local_config.py b/local_config.py
index <HASH>..<HASH> 100644
--- a/local_config.py
+++ b/local_config.py
@@ -133,6 +133,7 @@ DEF_ROLES = ((SUPERADMINROLE, 'superuser with all rights', 'deny any'),
('paperattributionlinkviewers', 'Users who can see attribution links in the search', 'allow all... | access: usedeposit action addition * NEW Adds 'usedeposit' action which enables per user access restrictions for different deposit types. (closes #<I>) * NOTE Requires running `webaccessadmin -u admin -c -a -D` command. | py |
diff --git a/airflow/utils/log/gcs_task_handler.py b/airflow/utils/log/gcs_task_handler.py
index <HASH>..<HASH> 100644
--- a/airflow/utils/log/gcs_task_handler.py
+++ b/airflow/utils/log/gcs_task_handler.py
@@ -167,8 +167,8 @@ class GCSTaskHandler(FileTaskHandler, LoggingMixin):
# closed).
... | [AIRFLOW-<I>] Add detail to gcs error messages Provide the system error detail in the log message. Closes #<I> from wrp/master | py |
diff --git a/km3pipe/calib.py b/km3pipe/calib.py
index <HASH>..<HASH> 100644
--- a/km3pipe/calib.py
+++ b/km3pipe/calib.py
@@ -29,7 +29,7 @@ log = logging.getLogger(__name__) # pylint: disable=C0103
try:
import numba as nb
-except ImportError:
+except ImportError, OSError:
log.debug("No Numba support")
... | NUMBA catch OSError, too | py |
diff --git a/holoviews/plotting/bokeh/callbacks.py b/holoviews/plotting/bokeh/callbacks.py
index <HASH>..<HASH> 100644
--- a/holoviews/plotting/bokeh/callbacks.py
+++ b/holoviews/plotting/bokeh/callbacks.py
@@ -35,7 +35,7 @@ class Callback(param.ParameterizedFunction):
modified bokeh plot objects.
"""
- ... | Callbacks don't get called on each plotting update by default | py |
diff --git a/documentation_builder/conf.py b/documentation_builder/conf.py
index <HASH>..<HASH> 100644
--- a/documentation_builder/conf.py
+++ b/documentation_builder/conf.py
@@ -39,7 +39,8 @@ class Mock(object):
MOCK_MODULES = ['numpy', 'scipy', 'scipy.optimize', 'scipy.sparse', 'scipy.io',
'scipy.... | fix: more missing mock packages for sphinx | py |
diff --git a/identify/extensions.py b/identify/extensions.py
index <HASH>..<HASH> 100644
--- a/identify/extensions.py
+++ b/identify/extensions.py
@@ -145,6 +145,7 @@ EXTENSIONS = {
'pyz': {'binary', 'pyz'},
'pyzw': {'binary', 'pyz'},
'r': {'text', 'r'},
+ 'rake': {'text', 'ruby'},
'rb': {'text',... | Add '.rake' extension as a Ruby file The '.rake' extension is used to break large Rakefiles into smaller files. Rakefiles are Ruby files. <URL> may be placed in rakelib > directory located at the top level of a project (i.e. the same > directory that contains the main Rakefile). > > Also, rails projects may include a... | py |
diff --git a/tests/test_manhole.py b/tests/test_manhole.py
index <HASH>..<HASH> 100644
--- a/tests/test_manhole.py
+++ b/tests/test_manhole.py
@@ -84,8 +84,6 @@ class TestProcess(BufferingBase):
return
print('KILLED %s' % self, file=sys.stderr)
self.proc.kill()
- ... | Actually don't close them, it breaks some tests. | py |
diff --git a/eventkit/models.py b/eventkit/models.py
index <HASH>..<HASH> 100644
--- a/eventkit/models.py
+++ b/eventkit/models.py
@@ -349,8 +349,10 @@ class AbstractEvent(PolymorphicMPTTModel, AbstractBaseModel):
# avoid recreating variation events.
if self.is_repeat:
# Combi... | Change QuerySet to handler weirdness with MPTT queryset. | py |
diff --git a/usb1.py b/usb1.py
index <HASH>..<HASH> 100644
--- a/usb1.py
+++ b/usb1.py
@@ -43,6 +43,7 @@ from ctypes.util import find_library
import warnings
import weakref
import collections
+import functools
__all__ = ['USBContext', 'USBDeviceHandle', 'USBDevice',
'USBPoller', 'USBTransfer', 'USBTransferHe... | usb1: Fix pydoc view of _validContext-wrapped methods. | py |
diff --git a/pymatgen/analysis/defects/thermodynamics.py b/pymatgen/analysis/defects/thermodynamics.py
index <HASH>..<HASH> 100644
--- a/pymatgen/analysis/defects/thermodynamics.py
+++ b/pymatgen/analysis/defects/thermodynamics.py
@@ -128,10 +128,14 @@ class DefectEntry(object):
el = elt.symbol
... | change bgsimple approach | py |
diff --git a/pout.py b/pout.py
index <HASH>..<HASH> 100644
--- a/pout.py
+++ b/pout.py
@@ -124,9 +124,9 @@ def c(*args):
for arg in args:
arg = _get_unicode(arg)
lines.append(u'Total Characters: {}'.format(len(arg)))
- for c in arg:
+ for i, c in enumerate(arg, 1):
- li... | adds the character number to each char printed with c() | py |
diff --git a/irc/tests/test_client.py b/irc/tests/test_client.py
index <HASH>..<HASH> 100644
--- a/irc/tests/test_client.py
+++ b/irc/tests/test_client.py
@@ -39,6 +39,7 @@ def test_periodic_command_fixed_delay():
@mock.patch('irc.connection.socket')
def test_privmsg_sends_msg(socket_mod):
+ pytest.xfail("Fails bec... | Mark test as xfail due to new connection factory behavior | py |
diff --git a/pnc_cli/cli_types.py b/pnc_cli/cli_types.py
index <HASH>..<HASH> 100644
--- a/pnc_cli/cli_types.py
+++ b/pnc_cli/cli_types.py
@@ -278,10 +278,13 @@ def valid_url(urlInput):
raise argparse.ArgumentTypeError("invalid url")
return urlInput
+
+# validation is different depnding on the PNC url.
... | update cli_types internal SCM urls must be aware of what the PNC instance being used is; the required starting portion of the URL is different vs different instances | py |
diff --git a/salt/utils/__init__.py b/salt/utils/__init__.py
index <HASH>..<HASH> 100644
--- a/salt/utils/__init__.py
+++ b/salt/utils/__init__.py
@@ -4,6 +4,9 @@ Some of the utils used by salt
# Import python libs
import os
import sys
+import logging
+
+log = logging.getLogger(__name__)
# Do not use these color ... | Add a profiling decorator to allow for deep profiling functions | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -570,7 +570,10 @@ class SaltDistribution(distutils.dist.Distribution):
if hasattr(self.metadata, 'set_{0}'.format(attrname)):
getattr(self.metadata, 'set_{0}'.format(attrname))(attrvalue)
... | handle case where py3 distutils is imutable | py |
diff --git a/slack_sdk/version.py b/slack_sdk/version.py
index <HASH>..<HASH> 100644
--- a/slack_sdk/version.py
+++ b/slack_sdk/version.py
@@ -1,2 +1,2 @@
"""Check the latest version at https://pypi.org/project/slack-sdk/"""
-__version__ = "3.4.2"
+__version__ = "3.5.0rc1" | version <I>rc1 (#<I>) | py |
diff --git a/infutils.py b/infutils.py
index <HASH>..<HASH> 100644
--- a/infutils.py
+++ b/infutils.py
@@ -239,7 +239,6 @@ def raise_if_nothing_infered(func):
# special inference objects (e.g. may be returned as nodes by .infer()) #######
YES = _Yes()
-del _Yes
class Instance(Proxy): | shouldn't delete anymore _Yes class, used in super() | py |
diff --git a/djangular/__init__.py b/djangular/__init__.py
index <HASH>..<HASH> 100644
--- a/djangular/__init__.py
+++ b/djangular/__init__.py
@@ -1,2 +1,2 @@
# -*- coding: utf-8 -*-
-__version__ = '0.7.6'
+__version__ = '0.7.7' | Bump to version <I> | py |
diff --git a/server_status/views.py b/server_status/views.py
index <HASH>..<HASH> 100644
--- a/server_status/views.py
+++ b/server_status/views.py
@@ -53,7 +53,7 @@ def get_pg_info():
micro = (datetime.now() - start).microseconds
connection.close()
except (OperationalError, KeyError) as ex:
- ... | Fixed typo by changing redis to PostgreSQL in log.error when checking PostgreSQL connection | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -1,6 +1,7 @@
#!/usr/bin/env python
import os
+from sys import version_info
from setuptools import setup, find_packages
from qingstor.sdk import __version__
@@ -9,6 +10,9 @@ ROOT = os.path.dirname(__file__)
requires ... | Fix SSL Warnings with old python versions | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -16,5 +16,5 @@ setup(name='UW-RestClients',
include_package_data=True, # use MANIFEST.in during install
url='https://github.com/uw-it-aca/uw-restclients',
description='Clients for a variety of RESTful web... | requires Django<<I>, because assigning unsaved objects to relations raises an error | py |
diff --git a/bids/analysis/base.py b/bids/analysis/base.py
index <HASH>..<HASH> 100644
--- a/bids/analysis/base.py
+++ b/bids/analysis/base.py
@@ -1,4 +1,5 @@
import json
+from grabbit import merge_layouts
from ..grabbids import BIDSLayout
from ..utils import listify
from .variables import (load_variables, SimpleCo... | RF: Use grabbit.merge_layouts | py |
diff --git a/WrightTools/artists/_quick.py b/WrightTools/artists/_quick.py
index <HASH>..<HASH> 100644
--- a/WrightTools/artists/_quick.py
+++ b/WrightTools/artists/_quick.py
@@ -119,7 +119,7 @@ def quick1D(
plt.ylim(data_channel.min(), data_channel.max())
# label axes
ax.set_xlabel(axis.... | ENH: Use natural name rather than full path, remove '/chop<I>/' (#<I>) | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -37,6 +37,9 @@ from distutils.errors import (CCompilerError, DistutilsPlatformError,
DistutilsExecError)
from distutils.cmd import Command
+py_version = sys.version_info[:2]
+PY3 = py_version[... | Futures from pypi isn't py3 compatible | py |
diff --git a/thumbnails/fields.py b/thumbnails/fields.py
index <HASH>..<HASH> 100644
--- a/thumbnails/fields.py
+++ b/thumbnails/fields.py
@@ -23,3 +23,13 @@ class ImageField(DjangoImageField):
image_file = process(file, self.resize_original)
file.save(file.name, image_file, save=False)
... | Added south_field_triple for ImageField | py |
diff --git a/blockstack_cli_0.14.1/setup.py b/blockstack_cli_0.14.1/setup.py
index <HASH>..<HASH> 100755
--- a/blockstack_cli_0.14.1/setup.py
+++ b/blockstack_cli_0.14.1/setup.py
@@ -1,10 +1,10 @@
-#!/usr/bin/python
+#!/usr/bin/python
from setuptools import setup, find_packages
setup(
name='blockstore-clien... | published <I> on pypi | py |
diff --git a/pymod2pkg/__init__.py b/pymod2pkg/__init__.py
index <HASH>..<HASH> 100644
--- a/pymod2pkg/__init__.py
+++ b/pymod2pkg/__init__.py
@@ -105,6 +105,7 @@ RDO_PKG_MAP = [
SingleRule('pyzmq', 'python-zmq'),
SingleRule('mysql-python', 'MySQL-python'),
SingleRule('PyMySQL', 'python-PyMySQL'),
+ S... | Add mapping of PyJWT for RDO This is a new requirement for mistral, its package is python-jwt in RDO. Change-Id: Iedaaf<I>a1d<I>d<I>ddfe6a<I>a5ed3d | py |
diff --git a/setuptools/command/easy_install.py b/setuptools/command/easy_install.py
index <HASH>..<HASH> 100755
--- a/setuptools/command/easy_install.py
+++ b/setuptools/command/easy_install.py
@@ -2137,10 +2137,13 @@ class WindowsScriptWriter(ScriptWriter):
pattern, repl = repl, pattern
pattern_... | fix an issue for bdist_wininst with gui_scripts: The script header was always generated with non-gui executable. This was caused by by adjust_header assuming the executable is always an absolute path. Fixed by using find_executables() from distutils. --HG-- branch : bdist_wininst_gui_scripts | py |
diff --git a/great_expectations/profile/basic_suite_builder_profiler.py b/great_expectations/profile/basic_suite_builder_profiler.py
index <HASH>..<HASH> 100644
--- a/great_expectations/profile/basic_suite_builder_profiler.py
+++ b/great_expectations/profile/basic_suite_builder_profiler.py
@@ -497,11 +497,14 @@ class B... | [BUGFIX] In basic profiler, handle date parsing and overflow exceptions separately (#<I>) * catch parse and overflow separately * lint | py |
diff --git a/thinc/util.py b/thinc/util.py
index <HASH>..<HASH> 100644
--- a/thinc/util.py
+++ b/thinc/util.py
@@ -15,6 +15,8 @@ def score_model(model, X_y):
total = 0
X, y = zip(*X_y)
scores = model.predict_batch(X)
+ if isinstance(y, tuple):
+ y = model.ops.asarray(model.ops.flatten(y), dtype... | Add hack to thinc.util for nested sequence data. | py |
diff --git a/tests/wekatests/coretests/version.py b/tests/wekatests/coretests/version.py
index <HASH>..<HASH> 100644
--- a/tests/wekatests/coretests/version.py
+++ b/tests/wekatests/coretests/version.py
@@ -26,7 +26,7 @@ class TestVersion(weka_test.WekaTest):
"""
Tests the version.weka_version() metho... | made version test work with current Weka snapshot | py |
diff --git a/werkzeug/http.py b/werkzeug/http.py
index <HASH>..<HASH> 100644
--- a/werkzeug/http.py
+++ b/werkzeug/http.py
@@ -79,7 +79,7 @@ HTTP_STATUS_CODES = {
class Accept(list):
"""
Subclass of a list for easier access to the accept values. Sorted
- by quality.
+ by quality, best first.
"""
... | reversed sorting of accept parsing as documented --HG-- branch : trunk | py |
diff --git a/netpyne/cell.py b/netpyne/cell.py
index <HASH>..<HASH> 100644
--- a/netpyne/cell.py
+++ b/netpyne/cell.py
@@ -938,6 +938,8 @@ class CompartCell (Cell):
else:
if sim.cfg.verbose: print ' Error: no Section available on cell gid=%d to add stim'%(self.gid)
retu... | fixed bug of bug fix - set sec outside if | py |
diff --git a/hydra_base/lib/network.py b/hydra_base/lib/network.py
index <HASH>..<HASH> 100644
--- a/hydra_base/lib/network.py
+++ b/hydra_base/lib/network.py
@@ -384,11 +384,12 @@ def _add_resource_groups(net_i, resourcegroups):
'description' : group.description,
... | Fix indent and duplication caused by copy-paste from HydraPlatform | py |
diff --git a/src/livestreamer/packages/pbs.py b/src/livestreamer/packages/pbs.py
index <HASH>..<HASH> 100644
--- a/src/livestreamer/packages/pbs.py
+++ b/src/livestreamer/packages/pbs.py
@@ -170,6 +170,7 @@ class RunningCommand(object):
def __eq__(self, other):
return unicode(self) == unicode(other)
+ ... | packages.pbs: Stop hash() from working in Python 2, to match Python 3 behaviour. This avoids DeprecationWarning warnings when running with “python2 -3”. | py |
diff --git a/tools/rect_wpoly_coeff.py b/tools/rect_wpoly_coeff.py
index <HASH>..<HASH> 100644
--- a/tools/rect_wpoly_coeff.py
+++ b/tools/rect_wpoly_coeff.py
@@ -1639,6 +1639,11 @@ def main(args=None):
if not args.longslit:
raise ValueError("--out_rectwv option is only valid together "
... | Critical plots only in longslit mode | py |
diff --git a/fusionbox/behaviors.py b/fusionbox/behaviors.py
index <HASH>..<HASH> 100644
--- a/fusionbox/behaviors.py
+++ b/fusionbox/behaviors.py
@@ -13,8 +13,7 @@ if getattr(settings, 'USE_TZ', False):
from django.utils.timezone import utc
now = datetime.datetime.utcnow().replace(tzinfo=utc)
else:
- now... | fusionbox.behaviors.now should never be a callable | py |
diff --git a/script/upload.py b/script/upload.py
index <HASH>..<HASH> 100755
--- a/script/upload.py
+++ b/script/upload.py
@@ -78,7 +78,8 @@ def main():
upload_electron(github, release, os.path.join(DIST_DIR, DIST_NAME))
upload_electron(github, release, os.path.join(DIST_DIR, SYMBOLS_NAME))
if PLATFORM == 'dar... | wrap line to stay under <I> chars | py |
diff --git a/setuptools/tests/__init__.py b/setuptools/tests/__init__.py
index <HASH>..<HASH> 100644
--- a/setuptools/tests/__init__.py
+++ b/setuptools/tests/__init__.py
@@ -221,7 +221,7 @@ class TestFeatures:
'foo': Feature("foo",standard=True,require_features=['baz',self.req]),
'bar... | tests: match closing bracket for visual identation | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -6,6 +6,7 @@ setup(
description = "Lightweight python wrapper for Apache Solr.",
author = 'Daniel Lindsley',
author_email = 'daniel@toastdriven.com',
+ long_description=open('README', 'r').read(),
py_mod... | Added a long description for PyPI. | py |
diff --git a/ledger/__metadata__.py b/ledger/__metadata__.py
index <HASH>..<HASH> 100644
--- a/ledger/__metadata__.py
+++ b/ledger/__metadata__.py
@@ -1,7 +1,7 @@
"""
Ledger package metadata
"""
-__version_info__ = (0, 0, 26)
+__version_info__ = (0, 0, 27)
__version__ = '{}.{}.{}'.format(*__version_info__)
__autho... | incremented version as pushed to pypi | py |
diff --git a/fault/system_verilog_target.py b/fault/system_verilog_target.py
index <HASH>..<HASH> 100644
--- a/fault/system_verilog_target.py
+++ b/fault/system_verilog_target.py
@@ -723,9 +723,12 @@ class SystemVerilogTarget(VerilogTarget):
initial_body += [f'$vcdplusfile("{self.waveform_file}");',
... | Support dumping vcd from vcs | py |
diff --git a/src/flaskext/assets.py b/src/flaskext/assets.py
index <HASH>..<HASH> 100644
--- a/src/flaskext/assets.py
+++ b/src/flaskext/assets.py
@@ -143,14 +143,24 @@ try:
except ImportError:
pass
else:
+ import argparse
+
+ class CatchAllParser(object):
+ def parse_known_args(self, app_args):
+ ... | Make the ManageAssets command work | py |
diff --git a/tests/test_HTTPClient.py b/tests/test_HTTPClient.py
index <HASH>..<HASH> 100644
--- a/tests/test_HTTPClient.py
+++ b/tests/test_HTTPClient.py
@@ -25,7 +25,6 @@ class TestHTTPClient:
def test_entry_points(self):
HTTPClient(url=TARPIT).request
- HTTPClient(url=TARPIT).pyopenssl
... | removed 'pyopenssl' entry point test | py |
diff --git a/py_yaml_fixtures/flask/cli.py b/py_yaml_fixtures/flask/cli.py
index <HASH>..<HASH> 100644
--- a/py_yaml_fixtures/flask/cli.py
+++ b/py_yaml_fixtures/flask/cli.py
@@ -22,9 +22,9 @@ def import_fixtures():
raise e
fixtures_dir = app.config.get('PY_YAML_FIXTURES_DIR')
- if not os.path.exists... | fix check if PY_YAML_FIXTURES_DIR is None | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -18,7 +18,9 @@ setup(
'rna', 'rna.migrations'],
install_requires=[
'South',
- 'Django>=1.4.6'],
+ 'Django>=1.4.9',
+ 'djangorestframework==2.3.7',
+ 'django-extensions==1.2.0'... | Sync up setup.py's requirements with the pip requirements. Django is left as a >= since it's more likely to vary than the rest of the dependencies. South is left unpinned for similar reasons. | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.