diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/algoliasearch/algoliasearch.py b/algoliasearch/algoliasearch.py
index <HASH>..<HASH> 100644
--- a/algoliasearch/algoliasearch.py
+++ b/algoliasearch/algoliasearch.py
@@ -831,7 +831,7 @@ def AlgoliaUtils_request(headers, hosts, method, request, body = None):
"""
Util function used to send request
... | Add more information when hosts are unreachable | py |
diff --git a/tornado/web.py b/tornado/web.py
index <HASH>..<HASH> 100644
--- a/tornado/web.py
+++ b/tornado/web.py
@@ -751,10 +751,10 @@ class RequestHandler(object):
if hasattr(self.request, "connection"):
# Now that the request is finished, clear the callback we
- # set on the IOStr... | RequestHandler sets its close callback on the HTTPConnection, not the IOStream. Fixes a bug in which close callbacks would never be called for subsequent requests on a reused connection. | py |
diff --git a/mpop/projectable.py b/mpop/projectable.py
index <HASH>..<HASH> 100644
--- a/mpop/projectable.py
+++ b/mpop/projectable.py
@@ -178,4 +178,4 @@ class Projectable(Dataset):
else:
res.append("not loaded")
- return ", ".join(res)
+ return res[0] + ", ".join(res[1:]) | Fix projectables str to look better. | py |
diff --git a/openquake/calculators/base.py b/openquake/calculators/base.py
index <HASH>..<HASH> 100644
--- a/openquake/calculators/base.py
+++ b/openquake/calculators/base.py
@@ -404,7 +404,7 @@ class HazardCalculator(BaseCalculator):
oq, self.monitor(), srcfilter=self.src_filter)
msg = vi... | Logging [skip CI] | py |
diff --git a/pygam/core.py b/pygam/core.py
index <HASH>..<HASH> 100644
--- a/pygam/core.py
+++ b/pygam/core.py
@@ -94,11 +94,11 @@ class Core(object):
def get_params(self, deep=False):
if deep:
return self.__dict__
- return dict([(k,v) for k,v in self.__dict__.iteritems() if k[0]!='_' ... | added option to force set_params to set an attribute that the object does not already have. useful for gridsearch | py |
diff --git a/vis/visualization/saliency.py b/vis/visualization/saliency.py
index <HASH>..<HASH> 100644
--- a/vis/visualization/saliency.py
+++ b/vis/visualization/saliency.py
@@ -176,7 +176,7 @@ def visualize_cam_with_losses(input_tensor, losses, seed_input, penultimate_laye
weights = np.mean(grads, axis=tuple(oth... | Fix #<I>. By this improvement, Tensor's shape is got from acutual input/ouput data, not from model's definition. | py |
diff --git a/cobra/flux_analysis/variability.py b/cobra/flux_analysis/variability.py
index <HASH>..<HASH> 100644
--- a/cobra/flux_analysis/variability.py
+++ b/cobra/flux_analysis/variability.py
@@ -208,7 +208,7 @@ def flux_variability_analysis(cobra_model, fraction_of_optimum=1.,
def find_blocked_reactions(cobra_mode... | added an option to allow find_blocked_reactions to run in parallel | py |
diff --git a/abydos/distance/_aline.py b/abydos/distance/_aline.py
index <HASH>..<HASH> 100644
--- a/abydos/distance/_aline.py
+++ b/abydos/distance/_aline.py
@@ -1470,7 +1470,8 @@ class ALINE(_Distance):
if key != 'supplemental':
if key == 'segment':
... | fixed concatenating of supplemental chars | py |
diff --git a/indra/databases/hgnc_client.py b/indra/databases/hgnc_client.py
index <HASH>..<HASH> 100644
--- a/indra/databases/hgnc_client.py
+++ b/indra/databases/hgnc_client.py
@@ -38,7 +38,6 @@ try:
new_name = m.groups()[0]
hgnc_withdrawn.append(hgnc_id)
hgnc_names[hgnc_id] = n... | Don't add old names/ids | py |
diff --git a/proselint/command_line.py b/proselint/command_line.py
index <HASH>..<HASH> 100644
--- a/proselint/command_line.py
+++ b/proselint/command_line.py
@@ -121,10 +121,10 @@ def show_errors(filename, errors, output_json=False, compact=False):
out.append({
"check": e[0],
... | Fix off-by-one error in JSON output | py |
diff --git a/risklib/api.py b/risklib/api.py
index <HASH>..<HASH> 100644
--- a/risklib/api.py
+++ b/risklib/api.py
@@ -264,7 +264,7 @@ class ProbabilisticEventBased(object):
def aggregate_losses(set_of_outputs, result=None):
for asset_output in set_of_outputs:
if result is None: # first time
- ... | Really fixed the mutation issue in aggregate_losses | py |
diff --git a/openid/yadis/etxrd.py b/openid/yadis/etxrd.py
index <HASH>..<HASH> 100644
--- a/openid/yadis/etxrd.py
+++ b/openid/yadis/etxrd.py
@@ -172,19 +172,18 @@ def getCanonicalID(iname, xrd_tree):
xrd_list.reverse()
try:
- canonicalID = xri.XRI(xrd_list[0].findall(canonicalID_tag)[-1].text)
+ ... | [project @ etxrd.getCanonicalID: case-insensitive comparsions, patch from =wil] 1. There should only be a single CanonicalID in each XRD (in the latest XRI resolution spec), so I made it use the first CID found instead of the last. 2. Use case-insensitive comparison when comparing CanonicalIDs. | py |
diff --git a/alerta/auth/__init__.py b/alerta/auth/__init__.py
index <HASH>..<HASH> 100644
--- a/alerta/auth/__init__.py
+++ b/alerta/auth/__init__.py
@@ -15,5 +15,8 @@ from . import github, gitlab, google, keycloak, pingfederate, saml2, userinfo
@auth.before_request
def only_json():
+ # SAML2 Assertion Consumer... | Allow Content-type other than application/json for POST requests to /… (#<I>) * Allow Content-type other than application/json for POST requests to /auth/saml endpoint * Make SAML exception to content-type restriction more explicit | py |
diff --git a/dvc/commands/remote.py b/dvc/commands/remote.py
index <HASH>..<HASH> 100644
--- a/dvc/commands/remote.py
+++ b/dvc/commands/remote.py
@@ -113,8 +113,8 @@ class CmdRemoteDefault(CmdRemote):
class CmdRemoteList(CmdRemote):
def run(self):
conf = self.config.read(self.args.level)
- for na... | lint: fix variable reassignment bug while iterating from flake8 | py |
diff --git a/src/marshmallow/fields.py b/src/marshmallow/fields.py
index <HASH>..<HASH> 100644
--- a/src/marshmallow/fields.py
+++ b/src/marshmallow/fields.py
@@ -171,14 +171,9 @@ class Field(FieldABC):
"or a collection of callables."
)
- # If missing=None, None should be consider... | Minor allow_none rework (#<I>) | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -64,6 +64,7 @@ if __name__ == '__main__':
packages=find_packages(),
package_data={'qcore': DATA_FILES},
ext_modules=cythonize(EXTENSIONS),
+ setup_requires=['Cython'],
install_require... | qcore: add Cython as a requires | py |
diff --git a/pcef/core/system.py b/pcef/core/system.py
index <HASH>..<HASH> 100644
--- a/pcef/core/system.py
+++ b/pcef/core/system.py
@@ -47,6 +47,23 @@ def mergedColors(colorA, colorB, factor):
return tmp
+def driftColor(baseColor):
+ """
+ Return a near color that is lighter or darker than the base co... | Added a function to get a drift a color (get a daker or l ighter color) | py |
diff --git a/wtframework/wtf/web/page.py b/wtframework/wtf/web/page.py
index <HASH>..<HASH> 100644
--- a/wtframework/wtf/web/page.py
+++ b/wtframework/wtf/web/page.py
@@ -243,7 +243,8 @@ class PageFactory():
['type', ...'tuple', ...]
"""
if not isinstance(cls, type):
- raise TypeEr... | change error message to make it easier for those on old version of framework to debug their issue. | py |
diff --git a/src/scs_core/aws/manager/dynamo_manager.py b/src/scs_core/aws/manager/dynamo_manager.py
index <HASH>..<HASH> 100644
--- a/src/scs_core/aws/manager/dynamo_manager.py
+++ b/src/scs_core/aws/manager/dynamo_manager.py
@@ -373,3 +373,14 @@ class DynamoManager(object):
lek = None
retu... | Created UID control lambda | py |
diff --git a/tests/unit/remote/ssh/test_ssh.py b/tests/unit/remote/ssh/test_ssh.py
index <HASH>..<HASH> 100644
--- a/tests/unit/remote/ssh/test_ssh.py
+++ b/tests/unit/remote/ssh/test_ssh.py
@@ -3,7 +3,8 @@ import os
from unittest import TestCase
-from mock import patch, mock_open
+import mock
+from mock import pa... | test: ssh: add mock_open compat version | py |
diff --git a/gluonnlp/__init__.py b/gluonnlp/__init__.py
index <HASH>..<HASH> 100644
--- a/gluonnlp/__init__.py
+++ b/gluonnlp/__init__.py
@@ -25,7 +25,7 @@ from . import embedding
from . import model
from .vocab import *
-__version__ = '0.2.0'
+__version__ = '0.2.1'
__all__ = ['data',
'model', | Version <I> (#<I>) | py |
diff --git a/zipline/algorithm.py b/zipline/algorithm.py
index <HASH>..<HASH> 100644
--- a/zipline/algorithm.py
+++ b/zipline/algorithm.py
@@ -20,7 +20,7 @@ import numpy as np
from datetime import datetime
-from itertools import groupby
+from itertools import groupby, ifilter
from operator import attrgetter
fr... | ENH: Adds an optional filter to the algorithm's date_sorted_sources So that a filter function can filter out sids on a 'static' source, when the universe of sids changes. e.g. when using fetch_csv with a changing universe of stocks. | py |
diff --git a/airflow/models.py b/airflow/models.py
index <HASH>..<HASH> 100644
--- a/airflow/models.py
+++ b/airflow/models.py
@@ -1466,17 +1466,25 @@ class TaskInstance(Base):
{var.variable_name}.
"""
def __init__(self):
- pass
+ self.var = None
... | [AIRFLOW-<I>] Add __repr__ to VariableAccessor and VariableJsonAccessor The VariableJsonAccessor and VariableAccessor were missing the __repr__ function that leads to a VariableError when printing out the context being passed to for example a PythonOperator. | py |
diff --git a/GPy/models/sparse_GP_regression.py b/GPy/models/sparse_GP_regression.py
index <HASH>..<HASH> 100644
--- a/GPy/models/sparse_GP_regression.py
+++ b/GPy/models/sparse_GP_regression.py
@@ -91,8 +91,7 @@ class sparse_GP_regression(GP_regression):
# Computes dL_dKmm TODO: nicer precomputations
... | saved a little computation by exploiting the symmetry of a matrix | py |
diff --git a/holoviews/plotting/util.py b/holoviews/plotting/util.py
index <HASH>..<HASH> 100644
--- a/holoviews/plotting/util.py
+++ b/holoviews/plotting/util.py
@@ -47,9 +47,9 @@ def collate(obj):
expanded.extend(collated_layout.values())
layout = Layout(expanded)
except:
- ... | Fixed undefined variables in collate function | py |
diff --git a/bokeh/plotting.py b/bokeh/plotting.py
index <HASH>..<HASH> 100644
--- a/bokeh/plotting.py
+++ b/bokeh/plotting.py
@@ -241,7 +241,6 @@ def show(browser=None, new="tab"):
"""
output_type = _config["output_type"]
session = _config["session"]
- session.save()
# Map our string argument to... | Fixing plotting.py:show() to properly handle plot server as well as file output modes | py |
diff --git a/gubernator/main.py b/gubernator/main.py
index <HASH>..<HASH> 100644
--- a/gubernator/main.py
+++ b/gubernator/main.py
@@ -96,10 +96,13 @@ def memcache_memoize(prefix, expires=60 * 60, neg_expires=60):
return data
else:
data = func(arg)
- if data... | Handle memcache setting failures gracefully. This happens when a value is >1MB, like in the case of an over-large build log. Degraded cache performance is preferable to an error page. | py |
diff --git a/zipline/utils/security_list.py b/zipline/utils/security_list.py
index <HASH>..<HASH> 100644
--- a/zipline/utils/security_list.py
+++ b/zipline/utils/security_list.py
@@ -84,11 +84,11 @@ class SecurityList(object):
class SecurityListSet(object):
+ # provide a cut point to substitute other security
+... | security list type is a class level property now | py |
diff --git a/lib/pyfrc/physics/core.py b/lib/pyfrc/physics/core.py
index <HASH>..<HASH> 100644
--- a/lib/pyfrc/physics/core.py
+++ b/lib/pyfrc/physics/core.py
@@ -361,7 +361,7 @@ class PhysicsInterface:
with self._lock:
self.vx += self.start_x - self.x
self.vy += self.start_y - self.y... | Fix resetting angle if start angle isn't 0 | py |
diff --git a/pypairtree/pairtreelist.py b/pypairtree/pairtreelist.py
index <HASH>..<HASH> 100644
--- a/pypairtree/pairtreelist.py
+++ b/pypairtree/pairtreelist.py
@@ -1,10 +1,12 @@
-#!/usr/bin/python
+#!/usr/bin/env python
import sys
import os
-import pairtree
+
from optparse import OptionParser
+from pypairtree... | Fix for relative import and better shebang resolves #4 | py |
diff --git a/test/pipeline/integration.py b/test/pipeline/integration.py
index <HASH>..<HASH> 100644
--- a/test/pipeline/integration.py
+++ b/test/pipeline/integration.py
@@ -5,6 +5,7 @@ from src.imaging import scaled_array
from src.analysis import galaxy_prior as gp
from src.profiles import mass_profiles
from src.a... | removing test pipeline folder prior to running | py |
diff --git a/mmtf/utils/constants.py b/mmtf/utils/constants.py
index <HASH>..<HASH> 100644
--- a/mmtf/utils/constants.py
+++ b/mmtf/utils/constants.py
@@ -8,6 +8,7 @@ PRODUCER = "mmtf-python"
MMTF_VERSION = "1.0.0"
NUM_DICT = {1:'b',2:'>h',4:'>i'}
BASE_URL = "https://mmtf.rcsb.org/v1.0/full/"
+BASE_URL_REDUCED = "ht... | add Reduced BASEURL to constants | py |
diff --git a/telemetry/telemetry/core/backends/chrome/cros_browser_backend.py b/telemetry/telemetry/core/backends/chrome/cros_browser_backend.py
index <HASH>..<HASH> 100644
--- a/telemetry/telemetry/core/backends/chrome/cros_browser_backend.py
+++ b/telemetry/telemetry/core/backends/chrome/cros_browser_backend.py
@@ -9... | Remove --multi-profiles flag from telemetry tests. Bug should have been fixed in <URL> | py |
diff --git a/fabrik/ext/postgres.py b/fabrik/ext/postgres.py
index <HASH>..<HASH> 100644
--- a/fabrik/ext/postgres.py
+++ b/fabrik/ext/postgres.py
@@ -32,6 +32,7 @@ from fabrik import paths
from fabrik.logger import logger
from fabrik.api import init_tasks
from fabrik.utils.elocal import elocal
+from fabrik.hooks im... | Added hooks to postgres sync commands | py |
diff --git a/did/plugins/gitlab.py b/did/plugins/gitlab.py
index <HASH>..<HASH> 100644
--- a/did/plugins/gitlab.py
+++ b/did/plugins/gitlab.py
@@ -113,9 +113,9 @@ class GitLab(object):
self.project_issues[project_id] = self._get_gitlab_api_list(query, get_all_results=True)
return self.project_issu... | Pass after and before dates to GitLab API This is supported since <I> and should allow us fetching smaller result sets. | py |
diff --git a/spectator/events/admin.py b/spectator/events/admin.py
index <HASH>..<HASH> 100644
--- a/spectator/events/admin.py
+++ b/spectator/events/admin.py
@@ -243,6 +243,16 @@ class VenueAdmin(admin.ModelAdmin):
css = {"all": library_css + ("css/admin/location_picker.css",)}
js = library_j... | Add Mapbox API key to Admin Venue add view We had it for the change view, but not the add view, so maps weren't showing when adding a venue. | py |
diff --git a/src/numdifftools/info.py b/src/numdifftools/info.py
index <HASH>..<HASH> 100644
--- a/src/numdifftools/info.py
+++ b/src/numdifftools/info.py
@@ -54,7 +54,7 @@ Visualize high order derivatives of the tanh function
... y = df(x)
... h = plt.plot(x, y/np.abs(y).max())
- >>> plt.show() # ... | Fixed doctest so they don't crash on travis: Replaced "# doctest + SKIP" with "# doctest: +SKIP" in docstrings. | py |
diff --git a/digsandpaper/elasticsearch_mapping/generate.py b/digsandpaper/elasticsearch_mapping/generate.py
index <HASH>..<HASH> 100644
--- a/digsandpaper/elasticsearch_mapping/generate.py
+++ b/digsandpaper/elasticsearch_mapping/generate.py
@@ -78,7 +78,7 @@ if __name__ == "__main__":
parser = OptionParser(con... | Don't provide a url by default for elasticsearch mapping generate main method | py |
diff --git a/makemigrations.py b/makemigrations.py
index <HASH>..<HASH> 100644
--- a/makemigrations.py
+++ b/makemigrations.py
@@ -25,10 +25,8 @@ DEFAULT_SETTINGS = dict(
"django.contrib.sites",
APP_NAME,
],
- ROOT_URLCONF="djstripe.urls",
SITE_ID=1,
TIME_ZONE="UTC",
- USE_TZ=True,
)
@@ -68,7 +66,7 @@ ... | Fix makemigrations.py | py |
diff --git a/GPyOpt/util/general.py b/GPyOpt/util/general.py
index <HASH>..<HASH> 100644
--- a/GPyOpt/util/general.py
+++ b/GPyOpt/util/general.py
@@ -19,6 +19,8 @@ def samples_multidimensional_uniform(bounds,num_data):
return Z_rand
def multigrid(bounds, Ngrid):
+ if len(bounds)==1:
+ return np.linsp... | multigrid now works for 1D | py |
diff --git a/geopy/geocoders/opencage.py b/geopy/geocoders/opencage.py
index <HASH>..<HASH> 100644
--- a/geopy/geocoders/opencage.py
+++ b/geopy/geocoders/opencage.py
@@ -123,6 +123,7 @@ class OpenCage(Geocoder):
params = {
'key': self.api_key,
'q': query,
+ 'no_annotations... | OpenCage provider: use no_annotations=1 as returned data is not used (#<I>) | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -41,6 +41,7 @@ setup(
],
tests_require=[
'mock',
+ 'django-dynamic-fixture',
'django-nose',
'south',
], | added django dynamic fixture as test req | py |
diff --git a/test/unit/test_utils.py b/test/unit/test_utils.py
index <HASH>..<HASH> 100644
--- a/test/unit/test_utils.py
+++ b/test/unit/test_utils.py
@@ -61,6 +61,8 @@ class RedirectUrlResolverTest(unittest.TestCase):
self.patcher = patch('spam_lists.utils.is_valid_url')
self.is_valid_url_mock = self... | Fix attribute-defined-outside-init for _response_mocks The error is being fixed by adding _response_mocks definition to setUp method of RedirectUrlResolverTest class. | py |
diff --git a/snap7/client.py b/snap7/client.py
index <HASH>..<HASH> 100755
--- a/snap7/client.py
+++ b/snap7/client.py
@@ -158,7 +158,18 @@ class Client(object):
(db_number, start, size, data))
return self.library.Cli_DBWrite(self.pointer, db_number, start, size,
... | Delete function supported (#<I>) | py |
diff --git a/zappa/cli.py b/zappa/cli.py
index <HASH>..<HASH> 100644
--- a/zappa/cli.py
+++ b/zappa/cli.py
@@ -1661,12 +1661,15 @@ class ZappaCLI(object):
zappa_settings = {
env: {
'profile_name': profile_name,
- 'aws_region': profile_region,
's3_bu... | Removing Null profile region If there is not a profile region we don't set the null key. | py |
diff --git a/salt/modules/archive.py b/salt/modules/archive.py
index <HASH>..<HASH> 100644
--- a/salt/modules/archive.py
+++ b/salt/modules/archive.py
@@ -103,7 +103,9 @@ def tar(options, tarfile, sources=None, dest=None,
cmd.extend(['-C', '{0}'.format(dest)])
cmd.extend(['-{0}'.format(options), '{0}'.f... | check for sources before adding them to cmd str Fixes #<I>. | py |
diff --git a/easy_maps/models.py b/easy_maps/models.py
index <HASH>..<HASH> 100644
--- a/easy_maps/models.py
+++ b/easy_maps/models.py
@@ -17,7 +17,7 @@ class Address(models.Model):
self.geocode_error = True
return
try:
- if hasattr(settings, "EASY_MAPS_GOOGLE_KEY"):
+ ... | Adding Google API key to help when you get blocked | py |
diff --git a/sllurp/inventory.py b/sllurp/inventory.py
index <HASH>..<HASH> 100644
--- a/sllurp/inventory.py
+++ b/sllurp/inventory.py
@@ -48,7 +48,8 @@ def parse_args ():
parser.add_argument('-n', '--report-every-n-tags', default=1, type=int,
dest='every_n', metavar='N', help='issue a TagReport every... | note antenna=0 == all antennas see the LLRP <I> spec for details on AISpec and AntennaConfiguration; both say AntennaID = 0 means all antennas. | py |
diff --git a/websocket/__init__.py b/websocket/__init__.py
index <HASH>..<HASH> 100644
--- a/websocket/__init__.py
+++ b/websocket/__init__.py
@@ -818,6 +818,10 @@ class WebSocket(object):
self.sock.close()
def _send(self, data):
+
+ if isinstance(data, six.text_type):
+ data = data.en... | However it makes sense to encode just before sending to the wire. | py |
diff --git a/pymc3/backends/base.py b/pymc3/backends/base.py
index <HASH>..<HASH> 100644
--- a/pymc3/backends/base.py
+++ b/pymc3/backends/base.py
@@ -1,6 +1,6 @@
"""Base backend for traces
-See the docstring for pymc3.backends for more information (includng
+See the docstring for pymc3.backends for more information... | backends/base.py: Fix docstring typo | py |
diff --git a/snet_cli/commands.py b/snet_cli/commands.py
index <HASH>..<HASH> 100644
--- a/snet_cli/commands.py
+++ b/snet_cli/commands.py
@@ -207,7 +207,13 @@ class SessionCommand(Command):
self.config.unset_session_field(self.args.key, self.out_f)
def show(self):
- self._pprint(self.config.sess... | do not show private_key and mnemonic in snet session | py |
diff --git a/tcex/stix/indicator/indicator.py b/tcex/stix/indicator/indicator.py
index <HASH>..<HASH> 100644
--- a/tcex/stix/indicator/indicator.py
+++ b/tcex/stix/indicator/indicator.py
@@ -126,14 +126,18 @@ class StixIndicator(StixModel):
A array of indicator mappings.
"""
pattern = Pat... | safetly check for recurstion depth | py |
diff --git a/convertbng/util.py b/convertbng/util.py
index <HASH>..<HASH> 100644
--- a/convertbng/util.py
+++ b/convertbng/util.py
@@ -36,15 +36,20 @@ import numpy as np
import os
if platform == "darwin":
+ prefix = 'lib'
ext = "dylib"
-else:
+elif "linux" in platform:
+ prefix = 'lib'
ext = "so"
+e... | Enable Windows support in ctypes module | py |
diff --git a/db/db.py b/db/db.py
index <HASH>..<HASH> 100644
--- a/db/db.py
+++ b/db/db.py
@@ -958,12 +958,12 @@ class DB(object):
>>> from db import DemoDB
>>> db = DemoDB()
>>> db.find_table("A*")
- +--------+--------------------------+
- | Table | Columns ... | Docttest issue with DB.find_table Simple indentation issue with result | py |
diff --git a/falafel/core/__init__.py b/falafel/core/__init__.py
index <HASH>..<HASH> 100644
--- a/falafel/core/__init__.py
+++ b/falafel/core/__init__.py
@@ -157,6 +157,10 @@ class LogFileOutput(MapperOutput):
for scanner in self.scanners:
scanner(self)
+ @staticmethod
+ def parse_content... | Add parse_content method to LogFileOutput This allows all LogFileOutput subclasses to be decorated with @mapper without any additional parsing methods. | py |
diff --git a/cheroot/test/test_ssl.py b/cheroot/test/test_ssl.py
index <HASH>..<HASH> 100644
--- a/cheroot/test/test_ssl.py
+++ b/cheroot/test/test_ssl.py
@@ -6,6 +6,7 @@ from __future__ import absolute_import, division, print_function
__metaclass__ = type
import functools
+import os
import ssl
import sys
import... | Expect TLS connection error in gh actions | py |
diff --git a/harvesters/_private/frontend/canvas.py b/harvesters/_private/frontend/canvas.py
index <HASH>..<HASH> 100644
--- a/harvesters/_private/frontend/canvas.py
+++ b/harvesters/_private/frontend/canvas.py
@@ -200,13 +200,13 @@ class Canvas(app.Canvas):
if pixel_format in component_8bit_format... | Resolve issue #<I> | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -10,7 +10,7 @@ with open(path.join(here, 'README.rst'), encoding='utf-8') as f:
setup(
name='nyaalib',
- version='0.0.5',
+ version='0.0.6',
description='Python library for Nyaa',
long_description=readm... | bumping version to <I> | py |
diff --git a/mlaunch.py b/mlaunch.py
index <HASH>..<HASH> 100755
--- a/mlaunch.py
+++ b/mlaunch.py
@@ -1,8 +1,7 @@
#!/usr/bin/python
from pymongo import Connection
-from pymongo.connection import AutoReconnect
-from pymongo.errors import OperationFailure
+from pymongo.errors import AutoReconnect, OperationFailure
... | changed AutoReconnect import path from to pymongo.errors. | py |
diff --git a/fluo/http.py b/fluo/http.py
index <HASH>..<HASH> 100644
--- a/fluo/http.py
+++ b/fluo/http.py
@@ -54,7 +54,7 @@ class JsonResponse(HttpResponse):
"""
if content is None:
content = {}
- data = content=json.dumps(content, indent=indent, cls=JSONEncoder)
+ data = j... | removed unused assignment in fluo/http.py | py |
diff --git a/vaderSentiment/vaderSentiment.py b/vaderSentiment/vaderSentiment.py
index <HASH>..<HASH> 100644
--- a/vaderSentiment/vaderSentiment.py
+++ b/vaderSentiment/vaderSentiment.py
@@ -251,9 +251,8 @@ class SentimentIntensityAnalyzer(object):
sentiments = []
words_and_emoticons = sentitext.wor... | Update vaderSentiment.py Resolves PR #<I> | py |
diff --git a/torchvision/models/inception.py b/torchvision/models/inception.py
index <HASH>..<HASH> 100644
--- a/torchvision/models/inception.py
+++ b/torchvision/models/inception.py
@@ -23,6 +23,8 @@ def inception_v3(pretrained=False, **kwargs):
Args:
pretrained (bool): If True, returns a model pre-tra... | Added the argument transform_input in docs of InceptionV3 (#<I>) Including the `transform_input` argument in the docs of inceptionV3 | py |
diff --git a/salt/modules/mac_system.py b/salt/modules/mac_system.py
index <HASH>..<HASH> 100644
--- a/salt/modules/mac_system.py
+++ b/salt/modules/mac_system.py
@@ -85,7 +85,7 @@ def _enable_atrun():
Enable and start the atrun daemon
'''
name = 'com.apple.atrun'
- services = salt.utils.mac_utils.ava... | Swap the call for mac_utils.available_services to use __utils__ so mac_utils.available_services has access to __context__ | py |
diff --git a/tests/test.py b/tests/test.py
index <HASH>..<HASH> 100644
--- a/tests/test.py
+++ b/tests/test.py
@@ -11,7 +11,7 @@ from pysswords.db import Database
from pysswords.utils import touch, which
-def mock_gpg(binary, database_path, passphrase):
+def create_gpg(binary, database_path, passphrase):
gnup... | Rename mock_gpg to create_gpg in tests | py |
diff --git a/aioinflux/__init__.py b/aioinflux/__init__.py
index <HASH>..<HASH> 100644
--- a/aioinflux/__init__.py
+++ b/aioinflux/__init__.py
@@ -2,5 +2,6 @@
from . import serialization
from .client import InfluxDBClient, InfluxDBError, InfluxDBWriteError, logger
from .iterutils import iterpoints, InfluxDBResult, I... | Expose `datapoint` and `InfluxType` at package top level | py |
diff --git a/__pkginfo__.py b/__pkginfo__.py
index <HASH>..<HASH> 100644
--- a/__pkginfo__.py
+++ b/__pkginfo__.py
@@ -40,7 +40,7 @@ entry_points = {
]}
ftp_url = None
install_requires = ['spark-parser >= 1.6.1, < 1.7.0',
- 'xdis >= 3.5.1, < 3.6.0', 'six']
+ ... | Remove six from Python-<I>/<I> package | py |
diff --git a/taskqueue/__init__.py b/taskqueue/__init__.py
index <HASH>..<HASH> 100644
--- a/taskqueue/__init__.py
+++ b/taskqueue/__init__.py
@@ -5,4 +5,4 @@ from .secrets import (
PROJECT_NAME, AWS_DEFAULT_REGION
)
-__version__ = '0.11.1'
\ No newline at end of file
+__version__ = '0.12.0'
\ No newline at end o... | chore: version <I> More robust serialization, multiprocess uploads, insert takes execute arguments (used in Mock and LocalTaskQueue). | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -20,7 +20,7 @@ setup(
py_modules=['gspread_dataframe'],
test_suite='tests',
install_requires=[
- 'gspread',
+ 'gspread<3.0.0',
'pandas>=0.14.0'
],
description='Read/write g... | prepare for bugfix release by requiring gspread<<I> | py |
diff --git a/pycoin/wallet/SQLite3Wallet.py b/pycoin/wallet/SQLite3Wallet.py
index <HASH>..<HASH> 100644
--- a/pycoin/wallet/SQLite3Wallet.py
+++ b/pycoin/wallet/SQLite3Wallet.py
@@ -41,11 +41,6 @@ class SQLite3Wallet(object):
if total_input_value < amount + estimated_fee:
raise ValueError... | Mark Spendable as used only after Tx created. | py |
diff --git a/switchbot/__init__.py b/switchbot/__init__.py
index <HASH>..<HASH> 100644
--- a/switchbot/__init__.py
+++ b/switchbot/__init__.py
@@ -21,7 +21,6 @@ class Switchbot:
def __init__(self, mac) -> None:
self._mac = mac
self._device = None
- self._connect()
def _connect(self)... | Check if device is connected (#3) * Check if device is connected * connect | py |
diff --git a/tests/test_basic.py b/tests/test_basic.py
index <HASH>..<HASH> 100644
--- a/tests/test_basic.py
+++ b/tests/test_basic.py
@@ -18,6 +18,15 @@ class TestOrderingBasic(TestCase):
self.assertIn(0, ordering)
self.assertNotIn(1, ordering)
+ def test_remove(self) -> None:
+ ordering ... | Add unit test for removing an element from an Ordering | py |
diff --git a/python-package/xgboost/sklearn.py b/python-package/xgboost/sklearn.py
index <HASH>..<HASH> 100644
--- a/python-package/xgboost/sklearn.py
+++ b/python-package/xgboost/sklearn.py
@@ -1289,7 +1289,7 @@ class XGBClassifier(XGBModel, XGBClassifierBase):
self,
X: array_like,
ntree_lim... | Re-enable feature validation in predict proba. (#<I>) | py |
diff --git a/buildozer/targets/android_new.py b/buildozer/targets/android_new.py
index <HASH>..<HASH> 100644
--- a/buildozer/targets/android_new.py
+++ b/buildozer/targets/android_new.py
@@ -102,7 +102,7 @@ class TargetAndroidNew(TargetAndroid):
presplash_color = self.buildozer.config.getdefault('app', 'androi... | Presplash color needs to be passed in single quotes | py |
diff --git a/simple_history/tests/models.py b/simple_history/tests/models.py
index <HASH>..<HASH> 100644
--- a/simple_history/tests/models.py
+++ b/simple_history/tests/models.py
@@ -59,14 +59,16 @@ class Document(models.Model):
def _history_user(self):
return self.changed_by
+
+class State(models.Model... | Failing test for foreign keys defined with a string | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -27,5 +27,5 @@ setup(
author_email = 'jon@eyl.io',
url = 'https://github.com/eyolfson/django-gitolite/',
download_url = ('https://github.com/eyolfson/django-gitolite/archive/'
- 'v0.0.1.tar.gz... | Updated download_url in setup file | py |
diff --git a/pybotvac/account.py b/pybotvac/account.py
index <HASH>..<HASH> 100644
--- a/pybotvac/account.py
+++ b/pybotvac/account.py
@@ -120,7 +120,7 @@ class Account:
robot.has_persistent_maps = robot.serial in self._persistent_maps
@staticmethod
- def get_map_image(url, dest_path=None):
+ ... | Update account.py Add option for filename to maps to be able to store images with date and time file name | py |
diff --git a/grimoire_elk/enriched/askbot.py b/grimoire_elk/enriched/askbot.py
index <HASH>..<HASH> 100644
--- a/grimoire_elk/enriched/askbot.py
+++ b/grimoire_elk/enriched/askbot.py
@@ -166,6 +166,8 @@ class AskbotEnrich(Enrich):
eitem['time_to_reply'] = get_time_diff_days(added_at, first_answer_time)
... | [enriched] Set not accepted answer flag to askbot unanswered question This patch sets the default value of the attribute question_has_accepted_answer to zero for unanswered questions in askbot. | py |
diff --git a/aioftp/__main__.py b/aioftp/__main__.py
index <HASH>..<HASH> 100644
--- a/aioftp/__main__.py
+++ b/aioftp/__main__.py
@@ -4,7 +4,7 @@ Usage: aioftp [(<login> <password>)] [options]
Options:
-q, --quiet set logging level to "ERROR" instead of "INFO"
- --host=host host for ... | default host to <I> (<I> does not work on win, cause can't establish passive connection to <I>:port) | py |
diff --git a/test/full_test.py b/test/full_test.py
index <HASH>..<HASH> 100755
--- a/test/full_test.py
+++ b/test/full_test.py
@@ -383,6 +383,15 @@ def run_all_tests(mode, checker, protocol, cores, slices):
"slices" : slices},
repeat=10, timeout=30 * ec2)
+ do_test_clou... | Added issue <I> regression test to full test. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -72,7 +72,6 @@ tests_require = [
'pytest',
'pytest-cov>=1.4',
'pytest-django',
- 'python-coveralls',
'tornado',
'webob',
'webtest', | setup.py: Remove python-coveralls requirement We haven't used coveralls since 5eba<I> (remove coveralls, <I>-<I>-<I>), so there's no sense in asking pip to install it. | py |
diff --git a/rest_framework_jwt/serializers.py b/rest_framework_jwt/serializers.py
index <HASH>..<HASH> 100644
--- a/rest_framework_jwt/serializers.py
+++ b/rest_framework_jwt/serializers.py
@@ -72,7 +72,9 @@ class JSONWebTokenSerializer(Serializer):
payload.update(token)
# Attach ad... | Add check for propery response data type | py |
diff --git a/pmxbot/commands.py b/pmxbot/commands.py
index <HASH>..<HASH> 100644
--- a/pmxbot/commands.py
+++ b/pmxbot/commands.py
@@ -629,7 +629,8 @@ def paste(client, event, channel, nick, rest):
"Drop a link to your latest paste"
path = '/last/{nick}'.format(**vars())
url = urllib.parse.urljoin(pmxbot.config.l... | Allow credentials to be supplied for librarypaste auth | py |
diff --git a/smbclient/_pool.py b/smbclient/_pool.py
index <HASH>..<HASH> 100644
--- a/smbclient/_pool.py
+++ b/smbclient/_pool.py
@@ -150,7 +150,7 @@ class ClientConfig(object):
for referral in self._referral_cache:
referral_path_components = [p for p in referral.dfs_path.split("\\") if p]
... | An index cannot equal the length of the list. If it does, it's off the end. (#<I>) | py |
diff --git a/src/armet/connectors/sqlalchemy/resources.py b/src/armet/connectors/sqlalchemy/resources.py
index <HASH>..<HASH> 100644
--- a/src/armet/connectors/sqlalchemy/resources.py
+++ b/src/armet/connectors/sqlalchemy/resources.py
@@ -68,19 +68,19 @@ class ModelResource(object):
elif operation == constants... | s/options/operation/ | py |
diff --git a/src/flask_login/utils.py b/src/flask_login/utils.py
index <HASH>..<HASH> 100644
--- a/src/flask_login/utils.py
+++ b/src/flask_login/utils.py
@@ -296,11 +296,12 @@ def login_required(func):
pass
elif not current_user.is_authenticated:
return current_app.login_manager.unau... | Fix for #<I> - Better Flask 1.x detection (#<I>) * Fix #<I> - Better Flask 1.x detection * Update utils.py *cough* nobody saw that * Update utils.py Fix the black complaint | py |
diff --git a/robotframework-faker/FakerLibrary/__init__.py b/robotframework-faker/FakerLibrary/__init__.py
index <HASH>..<HASH> 100644
--- a/robotframework-faker/FakerLibrary/__init__.py
+++ b/robotframework-faker/FakerLibrary/__init__.py
@@ -1,5 +1,5 @@
import pkg_resources
-from keywords import FakerKeywords
+from .... | Changed keywords import to compatible with Python3. | py |
diff --git a/werkzeug/serving.py b/werkzeug/serving.py
index <HASH>..<HASH> 100644
--- a/werkzeug/serving.py
+++ b/werkzeug/serving.py
@@ -624,9 +624,8 @@ def run_simple(hostname, port, application, use_reloader=False,
extra_files=None, reloader_interval=1, threaded=False,
processes=1, r... | Don't imply that we use wsgiref Fix #<I> | py |
diff --git a/device_tracker/quantum_gateway.py b/device_tracker/quantum_gateway.py
index <HASH>..<HASH> 100644
--- a/device_tracker/quantum_gateway.py
+++ b/device_tracker/quantum_gateway.py
@@ -5,7 +5,7 @@ from http.cookies import SimpleCookie
import json
import requests
import voluptuous as vol
-from Quantum impor... | added . to Quantum import; this was an insidious bug, HA did not throw an error saying there was a problem importing, but rather said 'custem_components.device_tracker has no attribute setup' | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -10,7 +10,7 @@ setup(
version=wkhtmltopdf.__version__,
description='Converts HTML to PDF using wkhtmltopdf.',
long_description=open('README.rst').read(),
- license='MIT',
+ license='BSD-2-Clause',
aut... | Correct setup.py license field to match LICENSE | py |
diff --git a/tests/integration/modules/publish.py b/tests/integration/modules/publish.py
index <HASH>..<HASH> 100644
--- a/tests/integration/modules/publish.py
+++ b/tests/integration/modules/publish.py
@@ -37,7 +37,7 @@ class PublishModuleTest(integration.ModuleCase,
'__pub_tgt_type',
)
... | Fix PEP8 E<I> - test for membership should be "not in" | py |
diff --git a/examples/providers/factory_deep_init_injections.py b/examples/providers/factory_deep_init_injections.py
index <HASH>..<HASH> 100644
--- a/examples/providers/factory_deep_init_injections.py
+++ b/examples/providers/factory_deep_init_injections.py
@@ -1,4 +1,4 @@
-"""`Factory` providers deep init injections ... | Update the docblock of the example | py |
diff --git a/f90nml/parser.py b/f90nml/parser.py
index <HASH>..<HASH> 100644
--- a/f90nml/parser.py
+++ b/f90nml/parser.py
@@ -297,7 +297,7 @@ class Parser(object):
>>> data_nml = parser.reads('&data_nml x=1 y=2 /')
"""
try:
- return self._readstream(iter(nml_string.splitlines()))
... | Preserve newlines in reads() string parser The string parser function, reads(), used `splitlines` to produce a list of per-line output, but also stripped the endline characters. Normally the parser was robust enough to handle this, but it causes isses for any tokens outside of the namelist groups, and tended to drop ... | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -1,12 +1,22 @@
# coding=utf-8
from __future__ import absolute_import, print_function, unicode_literals
+import sys
from distutils.core import setup
from setuptools import find_packages
import clearly
+install_requ... | chore(setup) include grpcio and futures dependencies | py |
diff --git a/kucoin/client.py b/kucoin/client.py
index <HASH>..<HASH> 100644
--- a/kucoin/client.py
+++ b/kucoin/client.py
@@ -1397,7 +1397,7 @@ class Client(object):
if end:
data['endAt'] = end
if page:
- data['page'] = page
+ data['currentPage'] = page
if ... | get_fills page parameter changed to currentPage The page parameter does not work because it has to be called currentPage. | py |
diff --git a/octodns/provider/rackspace.py b/octodns/provider/rackspace.py
index <HASH>..<HASH> 100644
--- a/octodns/provider/rackspace.py
+++ b/octodns/provider/rackspace.py
@@ -377,7 +377,7 @@ class RackspaceProvider(BaseProvider):
prior_rs_record = transformer(change.existing, value)
prior_... | Use the correct record when computing the key. | py |
diff --git a/housekeeper/store/cli.py b/housekeeper/store/cli.py
index <HASH>..<HASH> 100644
--- a/housekeeper/store/cli.py
+++ b/housekeeper/store/cli.py
@@ -46,13 +46,23 @@ def get(context, case, sample, infer_case, category, all_runs):
@click.command()
@click.argument('asset_path')
+@click.option('-s', '--short'... | Add dash and short option to sha1sum command | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -17,6 +17,7 @@ setup(
long_description=open('README.rst').read(),
install_requires=[
"six>=1.6.1",
+ "pytz>=2015.2",
],
classifiers=[
'Development Status :: 5 - Production/Stable', | Add pytz as a dependency | py |
diff --git a/pystache/context.py b/pystache/context.py
index <HASH>..<HASH> 100644
--- a/pystache/context.py
+++ b/pystache/context.py
@@ -48,7 +48,10 @@ def _get_value(item, key):
# are considered objects by the test above.
if hasattr(item, key):
attr = getattr(item, key)
- if... | Not auto-invoking when there are still dot notation parts to examine. The previous behaviour breaks calls like foo.bar.baz, if foo.bar defines __call__ | py |
diff --git a/saltapi/cli.py b/saltapi/cli.py
index <HASH>..<HASH> 100644
--- a/saltapi/cli.py
+++ b/saltapi/cli.py
@@ -63,4 +63,4 @@ class SaltAPI(object):
netapi = saltapi.loader.netapi(self.opts)
for fun in netapi:
if fun.endswith('.bind'):
- multiprocessing.Process(targe... | Fixed fat-fingered var lookup | py |
diff --git a/trollimage/xrimage.py b/trollimage/xrimage.py
index <HASH>..<HASH> 100644
--- a/trollimage/xrimage.py
+++ b/trollimage/xrimage.py
@@ -1064,7 +1064,7 @@ class XRImage(object):
outa = srca + dsta * (1-srca)
bi = {"bands": ["R", "G", "B"]}
dstdata.loc[bi] = (src.data.loc[bi] * srca
... | Increase line continuation indentation PEP8 wants that the line continuation indentation should match the space at the right of the equals sign on the initial assignment line. Adapt indentation to this end. | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.