diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/pymc3/model.py b/pymc3/model.py
index <HASH>..<HASH> 100644
--- a/pymc3/model.py
+++ b/pymc3/model.py
@@ -287,7 +287,7 @@ class Model(Context, Factor):
else:
var = TransformedRV(name=name, distribution=dist, model=self,
transform=dist.trans... | Changed verbosity threshold for variable transformation | py |
diff --git a/buildbot/status/mail.py b/buildbot/status/mail.py
index <HASH>..<HASH> 100644
--- a/buildbot/status/mail.py
+++ b/buildbot/status/mail.py
@@ -398,7 +398,10 @@ class MailNotifier(base.StatusReceiverMultiService):
if self.mode == "change":
prev = build.getPreviousBuild()
if... | Fix mail.py to be backward compatible with python <I>. In python <I> the "x if y else z" syntax is not supported. | py |
diff --git a/tensorflow_datasets/text/qa4mre.py b/tensorflow_datasets/text/qa4mre.py
index <HASH>..<HASH> 100644
--- a/tensorflow_datasets/text/qa4mre.py
+++ b/tensorflow_datasets/text/qa4mre.py
@@ -271,7 +271,7 @@ class Qa4mre(tfds.core.GeneratorBasedBuilder):
if cfg.track == 'main':
download_urls['{}.ma... | Ignore incorrect pytype error that was causing test file to fail. PiperOrigin-RevId: <I> | py |
diff --git a/neovim/plugin/decorators.py b/neovim/plugin/decorators.py
index <HASH>..<HASH> 100644
--- a/neovim/plugin/decorators.py
+++ b/neovim/plugin/decorators.py
@@ -55,7 +55,7 @@ def command(name, nargs=0, complete=None, range=None, count=None, bang=False,
if range is not None:
opts['range... | Check count for 'not None' instead of truthy in command decorator The command decorator was only checking the truthyness of `count`, which meant that a value of 0 was considered falsy and so the value not passed to the decorated function. A value of 0 for `count` should be valid since this is the default in both vim a... | py |
diff --git a/pyroSAR/spatial/vector.py b/pyroSAR/spatial/vector.py
index <HASH>..<HASH> 100644
--- a/pyroSAR/spatial/vector.py
+++ b/pyroSAR/spatial/vector.py
@@ -429,7 +429,7 @@ def bbox(coordinates, crs, outname=None, format='ESRI Shapefile', overwrite=True
bbox = Vector(driver='Memory')
bbox.addlayer('bb... | function bbox: changed type of field 'id' from ogr.OFTString to OFTInteger | py |
diff --git a/synchro/synchrotest.py b/synchro/synchrotest.py
index <HASH>..<HASH> 100644
--- a/synchro/synchrotest.py
+++ b/synchro/synchrotest.py
@@ -70,6 +70,7 @@ excluded_tests = [
'TestCollection.test_aggregate_with_compile_re',
'TestCollection.test_aggregation_cursor',
'TestCollection.test_aggregati... | Skip a synchrotest that relies on aggregate(). Motor's aggregate deliberately differs from PyMongo's. | py |
diff --git a/citrination_client/search/client.py b/citrination_client/search/client.py
index <HASH>..<HASH> 100644
--- a/citrination_client/search/client.py
+++ b/citrination_client/search/client.py
@@ -42,6 +42,11 @@ class SearchClient(BaseClient):
start_index = pif_system_returning_query.from_index or 0
... | Adding checks for negative start_index or size | py |
diff --git a/pysyncobj/serializer.py b/pysyncobj/serializer.py
index <HASH>..<HASH> 100644
--- a/pysyncobj/serializer.py
+++ b/pysyncobj/serializer.py
@@ -1,10 +1,9 @@
import os
-import zlib
import gzip
import logging
-
import pysyncobj.pickle as pickle
+from io import BytesIO
from .atomic_replace import atomicR... | Use gzip for In-memory serializer | py |
diff --git a/testsuite/test_contrib_orcid.py b/testsuite/test_contrib_orcid.py
index <HASH>..<HASH> 100644
--- a/testsuite/test_contrib_orcid.py
+++ b/testsuite/test_contrib_orcid.py
@@ -58,7 +58,11 @@ class OrcidTestCase(OAuth2ClientTestCase):
WTF_CSRF_ENABLED=False,
OAUTHCLIENT_STATE_ENABLED... | oauthclient: fix missing config in ORCID test | py |
diff --git a/respect/dispatch.py b/respect/dispatch.py
index <HASH>..<HASH> 100644
--- a/respect/dispatch.py
+++ b/respect/dispatch.py
@@ -1,3 +1,7 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
+ENDPOINTS = {
+ 'username': 'https://api.github.com/users/',
+ 'stars': 'https://api.github.com/search/repositor... | Getting started with endpoints in the dispatch.py module. | py |
diff --git a/pyperform/encapsulate.py b/pyperform/encapsulate.py
index <HASH>..<HASH> 100644
--- a/pyperform/encapsulate.py
+++ b/pyperform/encapsulate.py
@@ -41,6 +41,7 @@ class Encapsulate(object):
self._wrapper = None
self.overridden = False
self.objclass = None
+ self.instancemetho... | keep track of instance methods otherwise the cached _wrapper function will reference the first object to call __get__() | py |
diff --git a/yolk/cli.py b/yolk/cli.py
index <HASH>..<HASH> 100755
--- a/yolk/cli.py
+++ b/yolk/cli.py
@@ -69,16 +69,21 @@ def show_updates(package_name="", version=""):
def show_distributions(show, project_name, version, show_metadata, fields):
"""Show list of installed activated OR non-activated packages"""
-... | Fixed false positives for development pkgs | py |
diff --git a/source/rafcon/gui/helpers/state_machine.py b/source/rafcon/gui/helpers/state_machine.py
index <HASH>..<HASH> 100644
--- a/source/rafcon/gui/helpers/state_machine.py
+++ b/source/rafcon/gui/helpers/state_machine.py
@@ -64,8 +64,8 @@ def new_state_machine(*args):
state_machine_manager_model = rafcon.gui... | feat(state_machine): Call root state of new sm just "root state" Instead of "new root state" | py |
diff --git a/umis/umis.py b/umis/umis.py
index <HASH>..<HASH> 100644
--- a/umis/umis.py
+++ b/umis/umis.py
@@ -816,6 +816,9 @@ def bamtag(sam):
@click.option('--nedit', default=0)
@click.option('--barcodes', type=click.File('r'), required=False)
def demultiplex_samples(fastq, out_dir, nedit, barcodes):
+ ''' Demu... | Add help string to demutliplex_samples. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -11,7 +11,7 @@ from pythran import PythranExtension
module_parse = PythranExtension('gaussdca._load_data', sources=['gaussdca/_load_data.py'])
module_gdca = PythranExtension('gaussdca._gdca', sources=['gaussdca/_gdca.py'],... | Add tree vectorisation for great speed-up | py |
diff --git a/tests/integration/modules/test_git.py b/tests/integration/modules/test_git.py
index <HASH>..<HASH> 100644
--- a/tests/integration/modules/test_git.py
+++ b/tests/integration/modules/test_git.py
@@ -48,7 +48,7 @@ def _git_version():
log.debug('Git not installed')
return False
log.debu... | Add encode for Py3 compatability | py |
diff --git a/master/buildbot/test/unit/test_config.py b/master/buildbot/test/unit/test_config.py
index <HASH>..<HASH> 100644
--- a/master/buildbot/test/unit/test_config.py
+++ b/master/buildbot/test/unit/test_config.py
@@ -1261,19 +1261,19 @@ class BuilderConfig(ConfigErrorsMixin, unittest.TestCase):
lambd... | rename "slavename" in test names | py |
diff --git a/luigi/contrib/redshift.py b/luigi/contrib/redshift.py
index <HASH>..<HASH> 100644
--- a/luigi/contrib/redshift.py
+++ b/luigi/contrib/redshift.py
@@ -305,10 +305,12 @@ class S3CopyToTable(rdbms.CopyToTable):
logger.info("Creating table %s", self.table)
connection.reset()
... | Independently check the 3 possible init_copy paths, allowing multiple of them to execute, if applicable. | py |
diff --git a/pwmodel/models.py b/pwmodel/models.py
index <HASH>..<HASH> 100644
--- a/pwmodel/models.py
+++ b/pwmodel/models.py
@@ -263,8 +263,8 @@ class HistPw(PwModel):
"""
return float(self._T.get(pw, 0))/self._T['__TOTALF__']
- def iterpasswords(self):
- return helper.open_get_line(self... | Adding n to iterpasswords | py |
diff --git a/protractor/management/commands/protractor.py b/protractor/management/commands/protractor.py
index <HASH>..<HASH> 100644
--- a/protractor/management/commands/protractor.py
+++ b/protractor/management/commands/protractor.py
@@ -95,6 +95,12 @@ class Command(BaseCommand):
)
return_code ... | Terminate the server before tearing down the databases. | py |
diff --git a/pydoop/mapreduce/pipes.py b/pydoop/mapreduce/pipes.py
index <HASH>..<HASH> 100644
--- a/pydoop/mapreduce/pipes.py
+++ b/pydoop/mapreduce/pipes.py
@@ -19,7 +19,7 @@
import sys
import logging
import time
-import StringIO
+from StringIO import StringIO
from pydoop.utils.serialize import deserialize_text... | Changed StringIO class invocation so that, if needed, we can use cStringIO. | py |
diff --git a/salt/output/key.py b/salt/output/key.py
index <HASH>..<HASH> 100644
--- a/salt/output/key.py
+++ b/salt/output/key.py
@@ -13,8 +13,7 @@ def output(data):
Read in the dict structure generated by the salt key api methods and
print the structure.
'''
- color = salt.utils.get_colors(
- ... | Cleanup getting the colored output logic. | py |
diff --git a/plotnine/geoms/geom_map.py b/plotnine/geoms/geom_map.py
index <HASH>..<HASH> 100644
--- a/plotnine/geoms/geom_map.py
+++ b/plotnine/geoms/geom_map.py
@@ -95,14 +95,11 @@ class geom_map(geom):
if not len(data):
return data
- _loc = data.columns.get_loc
- cidx = data.ind... | Fix geom_map to work with facetting Solution: Use proper plot data indices for draw_panel in geom_map. fixes #<I> | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -5,10 +5,10 @@ from filer import __version__
REQUIREMENTS = [
- 'django>=2.2,<4.1',
+ 'django>=2.2,<5',
'django-mptt',
'django-polymorphic',
- 'easy-thumbnails>=2.8.0',
+ 'easy-thumbnails[svg]',
... | Install django-filer with SVG support | py |
diff --git a/custodian/vasp/handlers.py b/custodian/vasp/handlers.py
index <HASH>..<HASH> 100644
--- a/custodian/vasp/handlers.py
+++ b/custodian/vasp/handlers.py
@@ -296,7 +296,7 @@ class PotimErrorHandler(ErrorHandler, MSONable):
gets progressively worse.
"""
def __init__(self, input_filename="POSCAR",... | decreased dE_threshold | py |
diff --git a/nclib/process.py b/nclib/process.py
index <HASH>..<HASH> 100644
--- a/nclib/process.py
+++ b/nclib/process.py
@@ -106,7 +106,7 @@ class Process(Netcat):
class GDBProcess(Process):
"""
- Like nclib.Process, but also launches gdb (in a new gnome-terminal window)
+ Like nclib.Process, but also l... | use the TERMINAL environment variable in GDBProcess | py |
diff --git a/pyquil/tests/test_paulis.py b/pyquil/tests/test_paulis.py
index <HASH>..<HASH> 100644
--- a/pyquil/tests/test_paulis.py
+++ b/pyquil/tests/test_paulis.py
@@ -21,8 +21,11 @@ from pyquil.paulis import (PauliTerm, PauliSum, exponential_map, ID, exponentiat
)
from pyquil.quil impor... | :art: use built-in reduce (#<I>) | py |
diff --git a/visidata/cmdlog.py b/visidata/cmdlog.py
index <HASH>..<HASH> 100644
--- a/visidata/cmdlog.py
+++ b/visidata/cmdlog.py
@@ -23,9 +23,9 @@ globalCommand('status', 'status(input("status: ", display=False))', 'show given
# not necessary to log movements and scrollers
nonLogKeys = 'KEY_DOWN KEY_UP KEY_NPAGE... | [cmdlog] do not log ^A and Q | py |
diff --git a/internetarchive/item.py b/internetarchive/item.py
index <HASH>..<HASH> 100644
--- a/internetarchive/item.py
+++ b/internetarchive/item.py
@@ -69,7 +69,7 @@ class Item(object):
self.protocol = 'https:' if self.session.secure else 'http:'
self.http_session = requests.sessions.Session()
... | Forgot to run tox to check py<I> compatability. Works on py<I> now. | py |
diff --git a/scss/__init__.py b/scss/__init__.py
index <HASH>..<HASH> 100644
--- a/scss/__init__.py
+++ b/scss/__init__.py
@@ -5546,7 +5546,7 @@ def main():
parser.add_option("-h", "--help", action="help",
help="Show this message and exit")
parser.add_option("-v", "--version", action="s... | Better symmetry between -h and -v help messages | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -29,7 +29,7 @@ classifiers = [
]
setup(name='hypua2jamo',
- version='0.3.dev0',
+ version='0.3',
license='GNU Lesser GPL v3+',
description='Convert Hanyang-PUA code to unicode Hangul Jamo, i.e., Syl... | Preparing release <I> | py |
diff --git a/GPy/models/state_space_main.py b/GPy/models/state_space_main.py
index <HASH>..<HASH> 100644
--- a/GPy/models/state_space_main.py
+++ b/GPy/models/state_space_main.py
@@ -3281,7 +3281,7 @@ def matrix_exponent(M):
try:
Mexp = linalg.expm(M)
method = 1
- except (Float... | FIX: Fixint the bug with matrix exponential computation. | py |
diff --git a/wikipedia/wikipedia.py b/wikipedia/wikipedia.py
index <HASH>..<HASH> 100644
--- a/wikipedia/wikipedia.py
+++ b/wikipedia/wikipedia.py
@@ -179,7 +179,7 @@ class WikipediaPage(object):
self.load(redirect=redirect, preload=preload)
if preload:
- for prop in ['content', 'summary'... | add sections to list of potential preloaded attributes in WikipediaPage | py |
diff --git a/umap/umap_.py b/umap/umap_.py
index <HASH>..<HASH> 100644
--- a/umap/umap_.py
+++ b/umap/umap_.py
@@ -239,8 +239,8 @@ def nearest_neighbors(
if metric == "precomputed":
# Note that this does not support sparse distance matrices yet ...
# Compute indices of n nearest neighbors
- ... | Back to fast_knn_indices as long as we have python>=<I> | py |
diff --git a/timepiece/urls.py b/timepiece/urls.py
index <HASH>..<HASH> 100644
--- a/timepiece/urls.py
+++ b/timepiece/urls.py
@@ -8,8 +8,6 @@ from timepiece import views
urlpatterns = patterns('',
url(r'^$', views.view_entries, name='timepiece-entries'),
- url(r'^period/(?P<delta>\d+)/$', views.view_entries... | Fixes #<I> - Removed url pattern that causes a <I> error by calling a view with too many arguments | py |
diff --git a/bqplot/traits.py b/bqplot/traits.py
index <HASH>..<HASH> 100644
--- a/bqplot/traits.py
+++ b/bqplot/traits.py
@@ -264,6 +264,8 @@ class PandasDataFrame(Instance):
# Hence, we should set the following as the args
if len(args) == 0:
new_args = (None, (default_value,))
+ ... | fixing issue when only args are passed | py |
diff --git a/api/opentrons/drivers/smoothie_drivers/driver_3_0.py b/api/opentrons/drivers/smoothie_drivers/driver_3_0.py
index <HASH>..<HASH> 100755
--- a/api/opentrons/drivers/smoothie_drivers/driver_3_0.py
+++ b/api/opentrons/drivers/smoothie_drivers/driver_3_0.py
@@ -123,7 +123,6 @@ class SmoothieDriver_3_0_0:
... | removes homing from driver.connect() | py |
diff --git a/src/rinoh/flowable.py b/src/rinoh/flowable.py
index <HASH>..<HASH> 100644
--- a/src/rinoh/flowable.py
+++ b/src/rinoh/flowable.py
@@ -459,10 +459,11 @@ class GroupedFlowablesState(FlowableState):
def next_flowable(self):
try:
- result = self.flowables[self._index]
+ re... | GroupedFlowablesState.next_flowable(): also return flowable state | py |
diff --git a/salt/runners/http.py b/salt/runners/http.py
index <HASH>..<HASH> 100644
--- a/salt/runners/http.py
+++ b/salt/runners/http.py
@@ -3,11 +3,14 @@
Module for making various web calls. Primarily designed for webhooks and the
like, but also useful for basic http testing.
'''
+# Import Python libs
+import log... | Added warning for new --quiet requirement | py |
diff --git a/jira/client.py b/jira/client.py
index <HASH>..<HASH> 100644
--- a/jira/client.py
+++ b/jira/client.py
@@ -1379,20 +1379,11 @@ class JIRA(object):
### Utilities
def _create_http_basic_session(self, username, password):
- url = self._options['server'] + '/rest/auth/1/session'
- payload ... | Remove unneeded cookie authentication when using Basic Auth | py |
diff --git a/astrobase/checkplotserver_handlers.py b/astrobase/checkplotserver_handlers.py
index <HASH>..<HASH> 100644
--- a/astrobase/checkplotserver_handlers.py
+++ b/astrobase/checkplotserver_handlers.py
@@ -1520,6 +1520,11 @@ class LCToolHandler(tornado.web.RequestHandler):
# full disclosur... | [WIP] cpserver: still WIP | py |
diff --git a/grace/management.py b/grace/management.py
index <HASH>..<HASH> 100644
--- a/grace/management.py
+++ b/grace/management.py
@@ -22,8 +22,9 @@ logging.getLogger('urllib3').setLevel(logging.WARNING)
logging.getLogger('watchdog').setLevel(logging.WARNING)
-reload(sys)
-sys.setdefaultencoding('utf8')
+if sy... | Bugfix * fixed issue with python <I> and <I> intercompatibility | py |
diff --git a/demo_zinnia_tinymce/settings.py b/demo_zinnia_tinymce/settings.py
index <HASH>..<HASH> 100644
--- a/demo_zinnia_tinymce/settings.py
+++ b/demo_zinnia_tinymce/settings.py
@@ -15,6 +15,8 @@ TIME_ZONE = 'Europe/Paris'
STATIC_URL = '/static/'
+STATIC_ROOT = ''
+
MEDIA_URL = '/media/'
SECRET_KEY = 'jo-... | Define STATIC_ROOT to make tinymce working | py |
diff --git a/src/harvesters/core.py b/src/harvesters/core.py
index <HASH>..<HASH> 100644
--- a/src/harvesters/core.py
+++ b/src/harvesters/core.py
@@ -1743,7 +1743,9 @@ class Harvester:
AccessDeniedException,
) as e:
self._logger.debug(e, exc_info=True)
- iam = None
+ ... | Resolve issue #<I> | py |
diff --git a/splinter/driver/__init__.py b/splinter/driver/__init__.py
index <HASH>..<HASH> 100644
--- a/splinter/driver/__init__.py
+++ b/splinter/driver/__init__.py
@@ -74,7 +74,7 @@ class DriverAPI(RequestHandler):
"""
raise NotImplementedError
- def get_iframe(self, id):
+ def get_iframe(s... | Amended: change doc, get_iframe id to name | py |
diff --git a/gns3server/modules/vmware/__init__.py b/gns3server/modules/vmware/__init__.py
index <HASH>..<HASH> 100644
--- a/gns3server/modules/vmware/__init__.py
+++ b/gns3server/modules/vmware/__init__.py
@@ -80,7 +80,7 @@ class VMware(BaseManager):
vmrun_vix = os.path.expandvars(r"%PROGRAMFILES(... | Fixes bug with vmrun VIX path. | py |
diff --git a/examples/py/async-orderbooks.py b/examples/py/async-orderbooks.py
index <HASH>..<HASH> 100644
--- a/examples/py/async-orderbooks.py
+++ b/examples/py/async-orderbooks.py
@@ -31,7 +31,7 @@ async def async_client(exchange, symbol):
async def multi_orderbooks(exchanges, symbol):
input_coroutines = [as... | minor edits [ci skip] | py |
diff --git a/glue/pipeline.py b/glue/pipeline.py
index <HASH>..<HASH> 100644
--- a/glue/pipeline.py
+++ b/glue/pipeline.py
@@ -1915,7 +1915,7 @@ class CondorDAG:
# Check for desired grid site
if node.job().get_grid_site():
- workflow_job.addProfile(Pegasus.DAX3.Profile('hints','ex... | the P in executionPool must be capitalized | py |
diff --git a/wechatpy/enterprise/crypto.py b/wechatpy/enterprise/crypto.py
index <HASH>..<HASH> 100644
--- a/wechatpy/enterprise/crypto.py
+++ b/wechatpy/enterprise/crypto.py
@@ -65,10 +65,11 @@ class PrpCrypto(object):
text = PKCS7Encoder.encode(text)
cryptor = AES.new(self.key, self.mode, self.key... | Try to fix test error on Python 3 | py |
diff --git a/source/rafcon/mvc/config.py b/source/rafcon/mvc/config.py
index <HASH>..<HASH> 100644
--- a/source/rafcon/mvc/config.py
+++ b/source/rafcon/mvc/config.py
@@ -62,8 +62,11 @@ class GuiConfig(ObservableConfig):
def configure_gtk(self):
import gtk
+ theme_path = os.path.join(self.path_to... | Set default window icon The gui config file sets the default icon for windows to be the new RAFCON logo. | py |
diff --git a/tests/utils.py b/tests/utils.py
index <HASH>..<HASH> 100644
--- a/tests/utils.py
+++ b/tests/utils.py
@@ -64,13 +64,13 @@ def get_list_data2(length = 8):
return data
def get_str_data1(length = 8):
- if sys.version_info.major >= 3:
+ if sys.version_info[0] >= 3:
# On Python 3, string... | Fixed: do not used version_info named parameters to preserve backward compatibility | py |
diff --git a/python_modules/dagster-airflow/dagster_airflow/operators/kubernetes_operator.py b/python_modules/dagster-airflow/dagster_airflow/operators/kubernetes_operator.py
index <HASH>..<HASH> 100644
--- a/python_modules/dagster-airflow/dagster_airflow/operators/kubernetes_operator.py
+++ b/python_modules/dagster-ai... | Speculative fix for k8s test failure Test Plan: unit Reviewers: max, alangenfeld Reviewed By: alangenfeld Differential Revision: <URL> | py |
diff --git a/salt/client/ssh/wrapper/state.py b/salt/client/ssh/wrapper/state.py
index <HASH>..<HASH> 100644
--- a/salt/client/ssh/wrapper/state.py
+++ b/salt/client/ssh/wrapper/state.py
@@ -327,6 +327,7 @@ def highstate(test=None, **kwargs):
# Check for errors
for chunk in chunks:
if not isinstance(... | Set the return code to 1 on salt-ssh highstate errors | py |
diff --git a/kombine/sampler.py b/kombine/sampler.py
index <HASH>..<HASH> 100644
--- a/kombine/sampler.py
+++ b/kombine/sampler.py
@@ -447,8 +447,13 @@ class Sampler(object):
blob = None
else:
blob = [blob_p[i] if a else blob[i] for i, a in enumerat... | Update proposal density after proposal update, before storing | py |
diff --git a/qtpy/__init__.py b/qtpy/__init__.py
index <HASH>..<HASH> 100644
--- a/qtpy/__init__.py
+++ b/qtpy/__init__.py
@@ -100,10 +100,11 @@ PYSIDE_API = ['pyside']
# Names of the expected PySide2 api
PYSIDE2_API = ['pyside2']
+# Detecting if a binding was specified by the user
+binding_specified = QT_API in os... | Improve logic for detecting a binding specified by the user | py |
diff --git a/more_itertools/more.py b/more_itertools/more.py
index <HASH>..<HASH> 100755
--- a/more_itertools/more.py
+++ b/more_itertools/more.py
@@ -3346,7 +3346,7 @@ def sample(iterable, k, weights=None):
>>> sample(iterable, 5) # doctest: +SKIP
[81, 60, 96, 16, 4]
- An iterable with *weights* may a... | Fix indentation on sample docstring | py |
diff --git a/tests/api_connexion/schemas/test_dag_run_schema.py b/tests/api_connexion/schemas/test_dag_run_schema.py
index <HASH>..<HASH> 100644
--- a/tests/api_connexion/schemas/test_dag_run_schema.py
+++ b/tests/api_connexion/schemas/test_dag_run_schema.py
@@ -81,6 +81,10 @@ class TestDAGRunSchema(TestDAGRunBase):
... | Improve test coverage for ConfObject in dag_run_schema (#<I>) Adds test to verify that string can be passed to conf and ConfObject._deserialize works. | py |
diff --git a/registration/tests/test_hmac_backend.py b/registration/tests/test_hmac_backend.py
index <HASH>..<HASH> 100644
--- a/registration/tests/test_hmac_backend.py
+++ b/registration/tests/test_hmac_backend.py
@@ -2,7 +2,7 @@ import datetime
import time
from django.conf import settings
-from django.contrib.aut... | Custom user handling in HMAC tests. | py |
diff --git a/matrix_client/api.py b/matrix_client/api.py
index <HASH>..<HASH> 100644
--- a/matrix_client/api.py
+++ b/matrix_client/api.py
@@ -358,7 +358,7 @@ class MatrixHttpApi(object):
def media_upload(self, content, content_type):
return self._send(
- "PUT", "",
+ "POST", "",
... | Uploads are POST, not PUT | py |
diff --git a/integration_tests/files.py b/integration_tests/files.py
index <HASH>..<HASH> 100644
--- a/integration_tests/files.py
+++ b/integration_tests/files.py
@@ -4,11 +4,10 @@ from nose.tools import assert_equal
from trashcli.fs import has_sticky_bit
import os, shutil
+
def make_empty_file(path):
- dirnam... | Refactor: change implementation of make_empty_file | py |
diff --git a/raven/utils/stacks.py b/raven/utils/stacks.py
index <HASH>..<HASH> 100644
--- a/raven/utils/stacks.py
+++ b/raven/utils/stacks.py
@@ -139,7 +139,7 @@ def get_stack_info(frames):
if context_line:
results.append({
'abs_path': abs_path,
- 'filename': filen... | Dont suppress filename when its empty | py |
diff --git a/ca/django_ca/utils.py b/ca/django_ca/utils.py
index <HASH>..<HASH> 100644
--- a/ca/django_ca/utils.py
+++ b/ca/django_ca/utils.py
@@ -18,6 +18,7 @@
import re
import uuid
+from copy import deepcopy
from datetime import datetime
from datetime import timedelta
from ipaddress import ip_address
@@ -99,7 ... | create a deepcopy of the profile to prevent any leaks | py |
diff --git a/flask_socketio/__init__.py b/flask_socketio/__init__.py
index <HASH>..<HASH> 100644
--- a/flask_socketio/__init__.py
+++ b/flask_socketio/__init__.py
@@ -127,8 +127,16 @@ class SocketIO(object):
self.namespace_handlers = []
self.exception_handlers = {}
self.default_exception_hand... | Do not call init_app when an app or message_queue aren't given Fixes #<I> | py |
diff --git a/paradigm/models.py b/paradigm/models.py
index <HASH>..<HASH> 100644
--- a/paradigm/models.py
+++ b/paradigm/models.py
@@ -327,9 +327,9 @@ def _bind_keywords(parameters: Tuple[Parameter, ...],
class Overloaded(Base):
def __new__(cls, *signatures: Base) -> Base:
- if len(signatures) == 1:
- ... | Complete 'Overloaded.__new__' magic method | py |
diff --git a/physt/binnings.py b/physt/binnings.py
index <HASH>..<HASH> 100644
--- a/physt/binnings.py
+++ b/physt/binnings.py
@@ -629,7 +629,7 @@ def calculate_bins(array, _=None, *args, **kwargs):
if "range" in kwargs: # TODO: re-consider the usage of this parameter
array = array[(array >= kwargs["ran... | Fix: default number of bins not compatible with numpy | py |
diff --git a/slackbot/dispatcher.py b/slackbot/dispatcher.py
index <HASH>..<HASH> 100644
--- a/slackbot/dispatcher.py
+++ b/slackbot/dispatcher.py
@@ -84,6 +84,8 @@ class MessageDispatcher(object):
except (KeyError, TypeError):
if 'username' in msg:
username = msg['username']
+ ... | Add support for `bot_message` events without usernames (#<I>) As per <URL> | py |
diff --git a/draco/spec.py b/draco/spec.py
index <HASH>..<HASH> 100644
--- a/draco/spec.py
+++ b/draco/spec.py
@@ -6,6 +6,7 @@ import json
import os
from collections import defaultdict
from typing import Any, Dict, Iterable, List, Optional, Tuple, Union
+from copy import deepcopy
import agate
import numpy as np
... | deepcopy spec in `from_vegalite` to avoid modifying input spec | py |
diff --git a/rastermap/mapping.py b/rastermap/mapping.py
index <HASH>..<HASH> 100644
--- a/rastermap/mapping.py
+++ b/rastermap/mapping.py
@@ -419,7 +419,7 @@ class Rastermap:
S = S.T
return S
- def fit(self, X=None, u=None):
+ def fit(self, X=None, u=None, s=None):
"""Fit X into an e... | equalized variances of odd and even bases | py |
diff --git a/src/pikepdf/_methods.py b/src/pikepdf/_methods.py
index <HASH>..<HASH> 100644
--- a/src/pikepdf/_methods.py
+++ b/src/pikepdf/_methods.py
@@ -270,8 +270,12 @@ class Extend_Pdf:
version of pikepdf is the most recent software to modify the metadata.
Recommended, except for t... | metadata: clarify that we cannot fix all metadata Fixes #<I> | py |
diff --git a/flask_dance/contrib/jira.py b/flask_dance/contrib/jira.py
index <HASH>..<HASH> 100644
--- a/flask_dance/contrib/jira.py
+++ b/flask_dance/contrib/jira.py
@@ -28,7 +28,7 @@ def make_jira_blueprint(
Args:
base_url (str): The base URL of your JIRA installation. For example,
- for At... | Atlassian renamed OnDemand JIRA to Cloud JIRA | py |
diff --git a/tests/test_functions.py b/tests/test_functions.py
index <HASH>..<HASH> 100644
--- a/tests/test_functions.py
+++ b/tests/test_functions.py
@@ -985,8 +985,6 @@ class FunctionsTest(TestCase):
self.assertEqual(grep, [series[0]])
def test_smart_summarize(self):
- import pytz
-
ct... | Removed local import of pytz Resynced to upstream master | py |
diff --git a/gridmap/job.py b/gridmap/job.py
index <HASH>..<HASH> 100644
--- a/gridmap/job.py
+++ b/gridmap/job.py
@@ -135,18 +135,9 @@ class Job(object):
self.white_list = []
self.name = name.replace(' ', '_')
self.queue = queue
- # fetch env vars from shell, using a work around for b... | Remove environment variable workaround, because it didn't work anyway. Have to wait for drmaa-python/drmaa-python#3 to be merged for Python 3 compatability. | py |
diff --git a/torchvision/transforms/functional_pil.py b/torchvision/transforms/functional_pil.py
index <HASH>..<HASH> 100644
--- a/torchvision/transforms/functional_pil.py
+++ b/torchvision/transforms/functional_pil.py
@@ -23,7 +23,10 @@ def _is_pil_image(img: Any) -> bool:
@torch.jit.unused
def get_dimensions(img: A... | [FBcode->GH] Fix accimage tests (#<I>) * Fix accimage tests * Adding workaround for accimage * Refactoring * restore channels | py |
diff --git a/shinken/misc/importlib.py b/shinken/misc/importlib.py
index <HASH>..<HASH> 100644
--- a/shinken/misc/importlib.py
+++ b/shinken/misc/importlib.py
@@ -4,6 +4,9 @@ from __future__ import absolute_import
import sys
if sys.version_info[:2] <= (2, 6):
- from ._importlib import *
+ try: # still try to ... | Py<I>: Still try to load importlib from system before fall back on our copied one. | py |
diff --git a/gffutils/iterators.py b/gffutils/iterators.py
index <HASH>..<HASH> 100644
--- a/gffutils/iterators.py
+++ b/gffutils/iterators.py
@@ -109,3 +109,15 @@ class StringIterator(FileIterator):
for feature in super(StringIterator, self)._custom_iter():
yield feature
os.unlink(tmp.na... | add DataIterator, which returns an Iterator of the correct type | py |
diff --git a/lmj/sim/physics.py b/lmj/sim/physics.py
index <HASH>..<HASH> 100644
--- a/lmj/sim/physics.py
+++ b/lmj/sim/physics.py
@@ -235,7 +235,7 @@ class Capsule(Body):
return np.asarray([d, d, d + self.length])
def init_mass(self, m, density):
- m.setCappedCylinder(density, 3, self.radius, se... | Update physics code to fix a couple of axis bugs and use setCapsule (to work with ODE bindings). | py |
diff --git a/dvc/stage.py b/dvc/stage.py
index <HASH>..<HASH> 100644
--- a/dvc/stage.py
+++ b/dvc/stage.py
@@ -232,7 +232,6 @@ class Output(Dependency):
if self.project.scm.is_tracked(self.path):
raise CmdOutputAlreadyTrackedError(self.path)
- self.project.scm.ignore(self.path)
s... | dvc: add/remove file to/from gitignore in stage methods | py |
diff --git a/thumbor/engines/json_engine.py b/thumbor/engines/json_engine.py
index <HASH>..<HASH> 100644
--- a/thumbor/engines/json_engine.py
+++ b/thumbor/engines/json_engine.py
@@ -76,6 +76,36 @@ class JSONEngine(BaseEngine):
return (width, height)
+ def gen_image(self, size, color):
+ return s... | Implementing methods that were missing in the json engine | py |
diff --git a/src/transformers/tokenization_utils.py b/src/transformers/tokenization_utils.py
index <HASH>..<HASH> 100644
--- a/src/transformers/tokenization_utils.py
+++ b/src/transformers/tokenization_utils.py
@@ -476,6 +476,7 @@ class PreTrainedTokenizer(object):
added_tok_decoder = {v: k for k, v in add... | fixed lack of added and special tokens | py |
diff --git a/pyclustering/nnet/tests/sync_tests.py b/pyclustering/nnet/tests/sync_tests.py
index <HASH>..<HASH> 100644
--- a/pyclustering/nnet/tests/sync_tests.py
+++ b/pyclustering/nnet/tests/sync_tests.py
@@ -139,12 +139,21 @@ class Test(unittest.TestCase):
def templateDynamicSimulationConnectionTy... | [pyclustering.nnet.sync] Increase stability testing. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -27,13 +27,20 @@ extras_require['all'] = (extras_require['recommended']
+ extras_require['extras']
+ ['cyordereddict', 'nose'])
+
+PYPI_BLURB="""
+HoloViews is designed to ... | Updated long_description in setup.py to PyPI blurb | py |
diff --git a/blockstack/lib/operations/register.py b/blockstack/lib/operations/register.py
index <HASH>..<HASH> 100644
--- a/blockstack/lib/operations/register.py
+++ b/blockstack/lib/operations/register.py
@@ -318,6 +318,11 @@ def check_register( state_engine, nameop, block_id, checked_ops ):
log.warning("No ... | check that the name is valid in register/renewal (we already do this implicitly through the check() method, but we should do it explicitly for clarity) | py |
diff --git a/salt/modules/mdadm.py b/salt/modules/mdadm.py
index <HASH>..<HASH> 100644
--- a/salt/modules/mdadm.py
+++ b/salt/modules/mdadm.py
@@ -2,8 +2,11 @@
Salt module to manage RAID arrays with mdadm
'''
+import os
import logging
+import salt.utils
+
# Set up logger
log = logging.getLogger(__name__)
@@ ... | salt.module.mdadm: a few sanity checks - Test for mdadm in __virtual__() - Make sure the device ie: /dev/md0 exists before running mdadm on it. It is easier to blow up before executing a command | py |
diff --git a/ipcalc.py b/ipcalc.py
index <HASH>..<HASH> 100644
--- a/ipcalc.py
+++ b/ipcalc.py
@@ -161,10 +161,13 @@ class IP(object):
elif isinstance(self.mask, basestring):
limit = [32, 128][':' in self.mask]
inverted = ~self._dqtoi(self.mask)
- count = 0
- whi... | Handle netmask of 0 (close #<I>) | py |
diff --git a/organizations/backends/defaults.py b/organizations/backends/defaults.py
index <HASH>..<HASH> 100644
--- a/organizations/backends/defaults.py
+++ b/organizations/backends/defaults.py
@@ -26,6 +26,7 @@
"""Backend classes should provide common interface
"""
+import email.utils
import uuid
from django.... | Support the "name <<EMAIL>>" form for DEFAULT_FROM_EMAIL in registration/invitation backends | py |
diff --git a/aiogram/dispatcher/dispatcher.py b/aiogram/dispatcher/dispatcher.py
index <HASH>..<HASH> 100644
--- a/aiogram/dispatcher/dispatcher.py
+++ b/aiogram/dispatcher/dispatcher.py
@@ -216,11 +216,11 @@ class Dispatcher(DataMixin, ContextInstanceMixin):
async def skip_updates(self):
"""
You... | Changed skip updates method (#<I>) | py |
diff --git a/openquake/calculators/event_based.py b/openquake/calculators/event_based.py
index <HASH>..<HASH> 100644
--- a/openquake/calculators/event_based.py
+++ b/openquake/calculators/event_based.py
@@ -436,6 +436,9 @@ class EventBasedCalculator(base.HazardCalculator):
with self.monitor('computing mean... | Fixed shape_attrs [skip CI] | py |
diff --git a/chess/__init__.py b/chess/__init__.py
index <HASH>..<HASH> 100644
--- a/chess/__init__.py
+++ b/chess/__init__.py
@@ -643,7 +643,7 @@ class BaseBoard:
return ROOK
elif self.queens & mask:
return QUEEN
- elif self.kings & mask:
+ else:
return KIN... | Slightly less defensive piece_type_at | py |
diff --git a/doc/conf.py b/doc/conf.py
index <HASH>..<HASH> 100644
--- a/doc/conf.py
+++ b/doc/conf.py
@@ -17,6 +17,18 @@ import sys
import os
import shlex
+from unittest.mock import MagicMock
+
+
+class Mock(MagicMock):
+ @classmethod
+ def __getattr__(cls, name):
+ return MagicMock()
+
+MOCK_MODU... | Do not load C libs for doc generation | py |
diff --git a/zappa/handler.py b/zappa/handler.py
index <HASH>..<HASH> 100644
--- a/zappa/handler.py
+++ b/zappa/handler.py
@@ -291,6 +291,12 @@ class LambdaHandler(object):
arn = None
if 'Sns' in record:
+ try:
+ message = json.loads(record['Sns']['Message'])
+ ... | Run command if receive one in an SNS event | py |
diff --git a/sentinelhub/config.py b/sentinelhub/config.py
index <HASH>..<HASH> 100644
--- a/sentinelhub/config.py
+++ b/sentinelhub/config.py
@@ -172,7 +172,7 @@ class SHConfig:
aws_s3_l2a_bucket: str
opensearch_url: str
max_wfs_records_per_query: int
- max_opensearch_records_per_query: int
+ max_... | disable pylint warning in config | py |
diff --git a/emma2/coordinates/transform/masstransform/filetransform.py b/emma2/coordinates/transform/masstransform/filetransform.py
index <HASH>..<HASH> 100644
--- a/emma2/coordinates/transform/masstransform/filetransform.py
+++ b/emma2/coordinates/transform/masstransform/filetransform.py
@@ -10,7 +10,7 @@ This could ... | derive transform class from 'object', to make usage of 'isinstance' work | py |
diff --git a/MySQLdb/test_MySQLdb_capabilities.py b/MySQLdb/test_MySQLdb_capabilities.py
index <HASH>..<HASH> 100644
--- a/MySQLdb/test_MySQLdb_capabilities.py
+++ b/MySQLdb/test_MySQLdb_capabilities.py
@@ -36,19 +36,6 @@ class test_MySQLdb(test_capabilities.DatabaseTest):
self.check_data_integrity(
... | Remove test_SET() since it cannot work until <URL>. | py |
diff --git a/pygal/util/__init__.py b/pygal/util/__init__.py
index <HASH>..<HASH> 100644
--- a/pygal/util/__init__.py
+++ b/pygal/util/__init__.py
@@ -143,7 +143,7 @@ class iterable_test(dict):
"""ignore_classes must include basestring, because if a string
is iterable, so is a single character, and th... | Fix a broken assert. Python gave a warning when starting hydra: SyntaxWarning: assertion is always true, perhaps remove parentheses? The previous syntax was a 2-element tuple, always true. | py |
diff --git a/zenpy/lib/api.py b/zenpy/lib/api.py
index <HASH>..<HASH> 100644
--- a/zenpy/lib/api.py
+++ b/zenpy/lib/api.py
@@ -541,11 +541,16 @@ class UserApi(TaggableApi, IncrementalApi, CRUDApi):
Merge the user provided in source_user into dest_user
:param source_user: User object or id of user to... | Allow passing User or ID to merge method. | py |
diff --git a/blueqat/_version.py b/blueqat/_version.py
index <HASH>..<HASH> 100644
--- a/blueqat/_version.py
+++ b/blueqat/_version.py
@@ -14,4 +14,4 @@
"""The version of blueqat."""
-__version__ = "0.3.12"
+__version__ = "0.3.13-dev" | REL: Ver. changed for dev | py |
diff --git a/lhc/binf/feature/nucleotide.py b/lhc/binf/feature/nucleotide.py
index <HASH>..<HASH> 100644
--- a/lhc/binf/feature/nucleotide.py
+++ b/lhc/binf/feature/nucleotide.py
@@ -44,5 +44,5 @@ class NucleotideSkew(Feature):
else:
gc = 0 if frq['g'] + frq['c'] == 0 else\
(frq[... | Renamed skew feature to avoid clash with nucleotide frequency name | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -9,7 +9,7 @@ with open('README.rst') as file:
setup(
name='Flask-HMAC',
- version='0.1.1',
+ version='0.1.3',
url='http://github.com/jamonation/flask-hmac',
license='WTFPL',
author='Jamon Camisso', | incrementing version for pypi | py |
diff --git a/pyramid_orb/rest/service.py b/pyramid_orb/rest/service.py
index <HASH>..<HASH> 100644
--- a/pyramid_orb/rest/service.py
+++ b/pyramid_orb/rest/service.py
@@ -40,7 +40,7 @@ class Service(dict):
raise NotImplementedError
def permit(self):
- return re.sub('\.\d+\.', 'id', self.request.m... | fixed a bug in the way the permit was being generated | py |
diff --git a/lib/search_engine.py b/lib/search_engine.py
index <HASH>..<HASH> 100644
--- a/lib/search_engine.py
+++ b/lib/search_engine.py
@@ -565,7 +565,10 @@ def page_start(req, of, cc, as, ln, uid, title_message=None,
if not keywords:
keywords = "%s, WebSearch, %s" % (get_coll_i18nname(cdsname,... | Fixed problem when req.args is None. | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.