diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/openpnm/models/physics/meniscus.py b/openpnm/models/physics/meniscus.py
index <HASH>..<HASH> 100644
--- a/openpnm/models/physics/meniscus.py
+++ b/openpnm/models/physics/meniscus.py
@@ -242,8 +242,8 @@ def general_toroidal(target,
elif target_Pc is None:
logger.exception(msg='Please supply a ... | Change threshold on meniscus pressure near zero | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -9,14 +9,21 @@ with open('README.rst') as readme_file:
with open('HISTORY.rst') as history_file:
history = history_file.read()
-requirements = []
-with open('requirements.txt') as f:
- for l in f.readlines():
- ... | modified setup.py to have requirements curated | py |
diff --git a/cherrypy/process/plugins.py b/cherrypy/process/plugins.py
index <HASH>..<HASH> 100644
--- a/cherrypy/process/plugins.py
+++ b/cherrypy/process/plugins.py
@@ -277,6 +277,7 @@ class DropPrivileges(SimplePlugin):
self.bus.log('Started as uid: %r gid: %r' % current_ids())
if s... | Fix for #<I> (Possible Security Issue: DropPrivileges Plugin Doesn't Remove Groups) | py |
diff --git a/pyrogram/client/types/user_and_chats/chat.py b/pyrogram/client/types/user_and_chats/chat.py
index <HASH>..<HASH> 100644
--- a/pyrogram/client/types/user_and_chats/chat.py
+++ b/pyrogram/client/types/user_and_chats/chat.py
@@ -252,7 +252,7 @@ class Chat(Object):
if full_chat.id == c.id:
... | Fix linked chat parsing There are two distinct ChatFull types using the same name (but different namespaces), their objects are kept in chat_full and full_chat. | py |
diff --git a/distributions.py b/distributions.py
index <HASH>..<HASH> 100644
--- a/distributions.py
+++ b/distributions.py
@@ -430,6 +430,7 @@ class GaussianNonConj(_GaussianBase, GibbsSampling):
def __init__(self,mu_0,mu_sigma_0,kappa_0,sigma_sigma_0,mu=None,sigma=None):
self._sigma_distn = GaussianFixed... | added D member to GaussianNonConj | py |
diff --git a/cassandra/metadata.py b/cassandra/metadata.py
index <HASH>..<HASH> 100644
--- a/cassandra/metadata.py
+++ b/cassandra/metadata.py
@@ -790,7 +790,7 @@ class KeyspaceMetadata(object):
self._drop_table_metadata(table_metadata.name)
self.tables[table_metadata.name] = table_metadata
- ... | six.iteritems for newly added index dict | py |
diff --git a/spock/plugins/helpers/physics.py b/spock/plugins/helpers/physics.py
index <HASH>..<HASH> 100644
--- a/spock/plugins/helpers/physics.py
+++ b/spock/plugins/helpers/physics.py
@@ -25,6 +25,7 @@ from spock.vector import Vector3
logger = logging.getLogger('spock')
+FP_MAGIC = 1e-4
class PhysicsCore(obj... | Fix physics bugs when interacting with corners | py |
diff --git a/salt/modules/test.py b/salt/modules/test.py
index <HASH>..<HASH> 100644
--- a/salt/modules/test.py
+++ b/salt/modules/test.py
@@ -21,3 +21,12 @@ def ping():
salt '*' test.ping
'''
return True
+
+def facter_data():
+ '''
+ Return the facter data
+
+ CLI Example:
+ salt '*' test.fa... | Add a test function to return facter data about a host | py |
diff --git a/api/server.py b/api/server.py
index <HASH>..<HASH> 100644
--- a/api/server.py
+++ b/api/server.py
@@ -120,14 +120,6 @@ def search_people():
def catch_all_get(path):
API_URL = BASE_API_URL + '/' + path
params = dict(request.args)
- try:
- if ("page" in params and len(params["page"]) > 0... | no longer need that quick fix for pagination | py |
diff --git a/yaspin/core.py b/yaspin/core.py
index <HASH>..<HASH> 100644
--- a/yaspin/core.py
+++ b/yaspin/core.py
@@ -327,7 +327,6 @@ class Yaspin(object):
# Wait
time.sleep(self._interval)
- sys.stdout.write("\b")
def _compose_color_func(self):
fn = functools.par... | Remove \b from spin thread The extra \b written to stdout inside the spin thread leads on some terminals (e.g. rxvt) for some characters to be removed which are printed after the \b. This may lead to content written with write() to disappear shortly after writing. | py |
diff --git a/ait/core/server/client.py b/ait/core/server/client.py
index <HASH>..<HASH> 100644
--- a/ait/core/server/client.py
+++ b/ait/core/server/client.py
@@ -114,6 +114,7 @@ class PortOutputClient(ZMQInputClient):
self.pub = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
def publish(self, msg):
+... | Added eval to PortOutputClient publish | py |
diff --git a/cassandra/io/asyncorereactor.py b/cassandra/io/asyncorereactor.py
index <HASH>..<HASH> 100644
--- a/cassandra/io/asyncorereactor.py
+++ b/cassandra/io/asyncorereactor.py
@@ -278,6 +278,8 @@ class AsyncoreConnection(Connection, asyncore.dispatcher):
@classmethod
def handle_fork(cls):
+ gl... | Fix asyncore re-initialization in case of a fork | py |
diff --git a/flux_led/models_db.py b/flux_led/models_db.py
index <HASH>..<HASH> 100755
--- a/flux_led/models_db.py
+++ b/flux_led/models_db.py
@@ -1155,8 +1155,9 @@ MODELS = [
),
LEDENETModel(
model_num=0x97, # 0x97
+ # AK001-ZJ210 = v2.28
# AK001-ZJ2146 = v3.11, 3.12 (has BLE)
- ... | Add old sockets to database (#<I>) | py |
diff --git a/pyeapi/api/switchports.py b/pyeapi/api/switchports.py
index <HASH>..<HASH> 100644
--- a/pyeapi/api/switchports.py
+++ b/pyeapi/api/switchports.py
@@ -100,7 +100,7 @@ class Switchports(EntityCollection):
"""
config = self.get_block('interface %s' % name)
- if not re.match(r'\s{3}n... | fixes an issue where an interface would be identified as a switchport This commit fixes a problem where an interface would be wrongly identified as a switchport in the switchports api. This will lead to a traceback error with calling the get() method. This commit is necessary to fix the issue | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -1,20 +1,23 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from setuptools import setup, find_packages
+from os import path
-with open('README.md', 'r') as fh:
- long_description = fh.read()
+
+this_directory = path.... | fix long_description with readme | py |
diff --git a/nazs/web/forms.py b/nazs/web/forms.py
index <HASH>..<HASH> 100644
--- a/nazs/web/forms.py
+++ b/nazs/web/forms.py
@@ -14,4 +14,4 @@ class ModelForm(ModelForm):
instance = self.form_class.Meta.model.get()
return self.form_class(form_data, instance=instance)
else:
- ... | Fix form retrieval in ModelForm | py |
diff --git a/scikits/audiolab/pysndfile/matapi.py b/scikits/audiolab/pysndfile/matapi.py
index <HASH>..<HASH> 100644
--- a/scikits/audiolab/pysndfile/matapi.py
+++ b/scikits/audiolab/pysndfile/matapi.py
@@ -1,5 +1,5 @@
#! /usr/bin/env python
-# Last Change: Sat Dec 06 10:00 PM 2008 J
+# Last Change: Sat Dec 06 11:00 P... | Raise ValueError when file type is not the expected one in matlab API reader. | py |
diff --git a/cloudmesh/common/Shell.py b/cloudmesh/common/Shell.py
index <HASH>..<HASH> 100755
--- a/cloudmesh/common/Shell.py
+++ b/cloudmesh/common/Shell.py
@@ -293,10 +293,11 @@ class Shell(object):
v_string = [str(i) for i in python_version]
+ python_version_s = '.'.join(v_string)
+
if ... | remove python2 as supported | py |
diff --git a/cumulusci/robotframework/Salesforce.py b/cumulusci/robotframework/Salesforce.py
index <HASH>..<HASH> 100644
--- a/cumulusci/robotframework/Salesforce.py
+++ b/cumulusci/robotframework/Salesforce.py
@@ -242,7 +242,7 @@ class Salesforce(object):
url += "?filterName={}".format(filter_name)
... | Remove filter_name kwarg from Go To Record Home | py |
diff --git a/editor/editor.py b/editor/editor.py
index <HASH>..<HASH> 100644
--- a/editor/editor.py
+++ b/editor/editor.py
@@ -973,8 +973,7 @@ class Editor(App):
def move_widget(self, css_key, value):
# css_key can be 'top' or 'left'
# value (int): positive or negative value
- if issubclas... | Editor: resize and move shortcuts not limited with absolute positioning. | py |
diff --git a/src/rinoh/font/google.py b/src/rinoh/font/google.py
index <HASH>..<HASH> 100644
--- a/src/rinoh/font/google.py
+++ b/src/rinoh/font/google.py
@@ -81,7 +81,7 @@ def try_install_family(name, family_path):
if download_path:
print(" unpacking...", end='')
family_path.mkdir(parents=True, ... | try_install_family: fix Python <I> & <I> compatibility | py |
diff --git a/pycdlib/pycdlib.py b/pycdlib/pycdlib.py
index <HASH>..<HASH> 100644
--- a/pycdlib/pycdlib.py
+++ b/pycdlib/pycdlib.py
@@ -2467,7 +2467,7 @@ class PyCdlib(object):
fp = open(filename, 'r+b')
self.managing_fp = True
try:
- self.open_fp(fp)
+ self._open_fp(fp)
... | Make open() call the internal _open_fp instead of the external one. This is ever so slightly faster. | py |
diff --git a/src/pydirectory/Directory.py b/src/pydirectory/Directory.py
index <HASH>..<HASH> 100644
--- a/src/pydirectory/Directory.py
+++ b/src/pydirectory/Directory.py
@@ -98,13 +98,11 @@ class Directory(object):
" an autoDelete directory")
return tempfile.mkdtemp(dir=self.path,... | corrected listFilesWin naming convention | py |
diff --git a/fleece/connexion.py b/fleece/connexion.py
index <HASH>..<HASH> 100644
--- a/fleece/connexion.py
+++ b/fleece/connexion.py
@@ -38,14 +38,14 @@ class FleeceApp(connexion.App):
If `logger` is None, a default logger object will be created.
"""
- super(FleeceApp, self).__init__(*a... | FleeceApp: don't pass `logger` kwarg to super constructor If you specify an explicit `logger` kwarg, the call to the super constructor (connexion.App) will blow up. | py |
diff --git a/twitter_scraper/modules/tweets.py b/twitter_scraper/modules/tweets.py
index <HASH>..<HASH> 100644
--- a/twitter_scraper/modules/tweets.py
+++ b/twitter_scraper/modules/tweets.py
@@ -103,7 +103,8 @@ def get_tweets(query, pages=25):
for style in styles:
if style.... | fix video_id substring not found | py |
diff --git a/userena/models.py b/userena/models.py
index <HASH>..<HASH> 100644
--- a/userena/models.py
+++ b/userena/models.py
@@ -125,18 +125,18 @@ class UserenaSignup(models.Model):
'site': Site.objects.get_current()}
- # Email to the old address
+ # Email to the old address, if p... | added if to sending mail to old email | py |
diff --git a/nipap/nipap/xmlrpc.py b/nipap/nipap/xmlrpc.py
index <HASH>..<HASH> 100644
--- a/nipap/nipap/xmlrpc.py
+++ b/nipap/nipap/xmlrpc.py
@@ -28,6 +28,9 @@ class NipapXMLRPC:
self._cfg = NipapConfig()
self.cfg_file = None
+ # Add dispatch entry for <ex:nil/>
+ xmlrpclib.Unmarshall... | Added handling of <ex:nil/> to xmlrpc-class As the Apache JAVA XML-RPC client encodes null values as <ex:nil/> instead of <nil/> as xmlrpclib expects, xmlrpclib is now slighly modified runtime to also handle the ex:nil-values. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -16,7 +16,7 @@ setup(
include_package_data=True,
# Package dependencies.
- install_requires=['simplejson', 'requests'],
+ install_requires=['simplejson', 'requests>=0.13.0'],
# Metadata for PyPI.
... | Need to at least have requests <I> | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -8,7 +8,7 @@ if sys.version_info < (3, 0):
setup(name='picotui',
- version='1.1.1',
+ version='1.1.2',
description="""A simple text user interface (TUI) library.""",
long_description=open('README.r... | setup.py: Release <I>. | py |
diff --git a/bitex/interfaces/rocktrading.py b/bitex/interfaces/rocktrading.py
index <HASH>..<HASH> 100644
--- a/bitex/interfaces/rocktrading.py
+++ b/bitex/interfaces/rocktrading.py
@@ -36,17 +36,17 @@ class RockTradingLtd(RockTradingREST):
@return_json(None)
def tickers(self, currency=None):
if cur... | fixed url for market api endpoints | py |
diff --git a/bootstrap3/renderers.py b/bootstrap3/renderers.py
index <HASH>..<HASH> 100644
--- a/bootstrap3/renderers.py
+++ b/bootstrap3/renderers.py
@@ -214,7 +214,7 @@ class FieldRenderer(object):
'help_text_and_errors': help_text_and_errors,
'layout': self.layout,
... | Added quotes around class (fixes #<I>) | py |
diff --git a/ca/django_ca/models.py b/ca/django_ca/models.py
index <HASH>..<HASH> 100644
--- a/ca/django_ca/models.py
+++ b/ca/django_ca/models.py
@@ -535,7 +535,9 @@ class CertificateAuthority(X509CertMixin):
@property
def key_exists(self):
- if os.path.isabs(self.private_key_path):
+ if self... | do not check path if key is already loaded | py |
diff --git a/python/ray/worker.py b/python/ray/worker.py
index <HASH>..<HASH> 100644
--- a/python/ray/worker.py
+++ b/python/ray/worker.py
@@ -672,11 +672,11 @@ def init(
_system_config (dict): Configuration for overriding
RayConfig defaults. For testing purposes ONLY.
_tracing_startup_ho... | [docs] Update API docs for ray.init (#<I>) The incorrect indentation caused the docs render weirdly: <URL> | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -45,7 +45,7 @@ setup(
name='soupsieve',
version=VER,
keywords='CSS HTML XML selector filter query soup',
- description='A CSS4 selector implementation for Beautiful Soup.',
+ description='A modern CSS sele... | Remove mention of CSS4 in PyPI short description | py |
diff --git a/openquake/calculators/classical.py b/openquake/calculators/classical.py
index <HASH>..<HASH> 100644
--- a/openquake/calculators/classical.py
+++ b/openquake/calculators/classical.py
@@ -132,6 +132,7 @@ class ClassicalCalculator(base.HazardCalculator):
ires = parallel.Starmap(
... | Saved memory in classical [skip hazardlib][demos] Former-commit-id: cecc<I>dc<I>b<I>abe<I>b<I>ece8a3dfb | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -65,7 +65,7 @@ setup(
'MAGICC6/MAGICC6_4Download/*.SCEN'
]},
include_package_data=True,
- install_requires=['pandas', 'f90nml==0.21'],
+ install_requires=['pandas', 'f90nml'],
tests_require=['pyte... | Unpin `f<I>nml` New version <I> which includes bug fix for #7 was released. Closes #7. | py |
diff --git a/admin_tools/dashboard/modules.py b/admin_tools/dashboard/modules.py
index <HASH>..<HASH> 100644
--- a/admin_tools/dashboard/modules.py
+++ b/admin_tools/dashboard/modules.py
@@ -165,7 +165,7 @@ class Group(DashboardModule):
Represents a group of modules, the group can be displayed in tabs,
accord... | Fixed typo in Group module docstring. | py |
diff --git a/src/data.py b/src/data.py
index <HASH>..<HASH> 100644
--- a/src/data.py
+++ b/src/data.py
@@ -154,6 +154,18 @@ class Dataset(object):
return fobj.getvalue()
if __name__ == "__main__":
+ """
+ For now this regression test assumes you've downloaded a sample
+ netCDF file and placed it in... | Added directions for downloading test data. | py |
diff --git a/salt/states/libvirt.py b/salt/states/libvirt.py
index <HASH>..<HASH> 100644
--- a/salt/states/libvirt.py
+++ b/salt/states/libvirt.py
@@ -2,6 +2,10 @@
Manage libvirt certs
'''
+# Import python libs
+import os
+
+
def keys(name, basepath='/etc/pki'):
'''
Manage libvirt keys
@@ -19,7 +23,7 @@ ... | libvirt state is fully armed | py |
diff --git a/devassistant/gui/run_window.py b/devassistant/gui/run_window.py
index <HASH>..<HASH> 100644
--- a/devassistant/gui/run_window.py
+++ b/devassistant/gui/run_window.py
@@ -63,7 +63,7 @@ class RunLoggingHandler(logging.Handler):
self.parent.debug_logs['logs'].append(record)
# During ... | Merged pull request #<I> from jkoncick/master + resolve conflicts | py |
diff --git a/openquake/baselib/parallel.py b/openquake/baselib/parallel.py
index <HASH>..<HASH> 100644
--- a/openquake/baselib/parallel.py
+++ b/openquake/baselib/parallel.py
@@ -359,12 +359,18 @@ def safely_call(func, args):
# Check is done anyway in other parts of the code
# further investigation is needed
... | Fixed OverflowError in zsocket.send [demos] | py |
diff --git a/cassandra/cluster.py b/cassandra/cluster.py
index <HASH>..<HASH> 100644
--- a/cassandra/cluster.py
+++ b/cassandra/cluster.py
@@ -629,7 +629,7 @@ class Session(object):
conn_exc = ConnectionException(str(auth_exc), host=host)
host.monitor.signal_connection_failure(conn_exc... | Tolerate any kind of Exception when creating host pools | py |
diff --git a/salt/client/ssh/__init__.py b/salt/client/ssh/__init__.py
index <HASH>..<HASH> 100644
--- a/salt/client/ssh/__init__.py
+++ b/salt/client/ssh/__init__.py
@@ -169,14 +169,25 @@ class SSH(object):
self.targets = self.roster.targets(
self.opts['tgt'],
self.tgt_type)
... | Get the ssh_priv from __master_opts__ if available | py |
diff --git a/revrand/glm.py b/revrand/glm.py
index <HASH>..<HASH> 100644
--- a/revrand/glm.py
+++ b/revrand/glm.py
@@ -392,7 +392,7 @@ def predict_interval(alpha, Xs, likelihood, basis, m, C, lparams, bparams,
if multiproc:
pool = Pool()
- res = pool.starmap(_rootfinding, work)
+ res = poo... | python 2 pool.starmap compatability fix | py |
diff --git a/cgroupspy/__init__.py b/cgroupspy/__init__.py
index <HASH>..<HASH> 100644
--- a/cgroupspy/__init__.py
+++ b/cgroupspy/__init__.py
@@ -24,4 +24,4 @@ ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFT... | Bump the version <I> | py |
diff --git a/scoop/__main__.py b/scoop/__main__.py
index <HASH>..<HASH> 100644
--- a/scoop/__main__.py
+++ b/scoop/__main__.py
@@ -178,8 +178,8 @@ class ScoopApp(object):
first_worker = (worker == self.worker_hosts[-1][0])
self.log.info(' {0}:\t{1} {2}'.format(
worker,
- ... | Fixed the origin error in the distribution reporting | py |
diff --git a/dp_tornado/engine/cache.py b/dp_tornado/engine/cache.py
index <HASH>..<HASH> 100644
--- a/dp_tornado/engine/cache.py
+++ b/dp_tornado/engine/cache.py
@@ -570,6 +570,8 @@ class Decorator(object):
if not identifier:
identifier = _engine_.helper.datetime.mtime()
self._cache(... | fixed identifier duplicated issue. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -26,7 +26,7 @@ install_requires = [
'django-libsass',
'django-mptt==0.8.6',
'djangorestframework==3.4.0',
- 'django-phonenumber-field',
+ 'django-phonenumber-field==1.3.0',
'django-import-export',
... | Pin django-phonenumber-field to <I> Version 2 was released about one day ago which drops support for the version of Django that we're using. We need to pin the version to ensure we don't get a conflict. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -4,7 +4,7 @@ from setuptools import setup
def readme():
- with open('README.rst', 'r') as f:
+ with open('README.rst', 'r', encoding='utf-8') as f:
return f.read() | update readme() The original line "with open('README.rst', 'r') as f:" caused "UnicodeDecodeError" on Windows <I>. Specify the encoding, "with open('README.rst', 'r', encoding='utf-8') as f:", solved the problem. | py |
diff --git a/arthur/_version.py b/arthur/_version.py
index <HASH>..<HASH> 100644
--- a/arthur/_version.py
+++ b/arthur/_version.py
@@ -1,2 +1,2 @@
# Versions compliant with PEP 440 https://www.python.org/dev/peps/pep-0440
-__version__ = "0.1.7"
+__version__ = "0.1.8" | Update version number to <I> | py |
diff --git a/tests/expectations/test_run_diagnostics_supporting_methods.py b/tests/expectations/test_run_diagnostics_supporting_methods.py
index <HASH>..<HASH> 100644
--- a/tests/expectations/test_run_diagnostics_supporting_methods.py
+++ b/tests/expectations/test_run_diagnostics_supporting_methods.py
@@ -298,7 +298,6 ... | Remove assertion (#<I>) | py |
diff --git a/spotifyconnect/metadata.py b/spotifyconnect/metadata.py
index <HASH>..<HASH> 100644
--- a/spotifyconnect/metadata.py
+++ b/spotifyconnect/metadata.py
@@ -17,8 +17,8 @@ class Metadata(object):
def __init__(self, sp_metadata):
- self.playlist_name = utils.to_unicode(sp_metadata.data0)
- ... | Fix Metadata Fixed C metadata object properties for playlists. Fix representation | py |
diff --git a/example/ssd/train.py b/example/ssd/train.py
index <HASH>..<HASH> 100644
--- a/example/ssd/train.py
+++ b/example/ssd/train.py
@@ -72,7 +72,7 @@ def parse_args():
help='blue mean value')
parser.add_argument('--lr-steps', dest='lr_refactor_step', type=str, default='80, 160',
... | Change type of 'lr_refactor_ratio' to 'float' or else the learning-rate-refactor will never work (#<I>) | py |
diff --git a/yelp_kafka_tool/kafka_consumer_manager/commands/offset_set.py b/yelp_kafka_tool/kafka_consumer_manager/commands/offset_set.py
index <HASH>..<HASH> 100644
--- a/yelp_kafka_tool/kafka_consumer_manager/commands/offset_set.py
+++ b/yelp_kafka_tool/kafka_consumer_manager/commands/offset_set.py
@@ -51,7 +51,7 @@... | KAFKA-<I>: Add choices for storage options to command line arg | py |
diff --git a/tests/classifiers.py b/tests/classifiers.py
index <HASH>..<HASH> 100644
--- a/tests/classifiers.py
+++ b/tests/classifiers.py
@@ -41,7 +41,7 @@ def optimize_final_model_classification(model_name=None):
lower_bound = -0.215
if model_name == 'DeepLearningClassifier':
- lower_bound = -0.25
... | makes some tests harder for improved deep learning | py |
diff --git a/filer/admin/folderadmin.py b/filer/admin/folderadmin.py
index <HASH>..<HASH> 100644
--- a/filer/admin/folderadmin.py
+++ b/filer/admin/folderadmin.py
@@ -208,6 +208,7 @@ class FolderAdmin(PrimitivePermissionAwareModelAdmin):
Folder.objects.get(id=last_folder_id)
except Folder.... | Fix popup mode when Folder doesn't exists I noticed this bug in django_cms image plugin when trying to select an image for the first time. If the last visited folder was the root folder or the unfiled folder, the popup mode doesn't trigger. It's fixed with this simple patch ;) cheers ! | py |
diff --git a/salt/queues/sqlite_queue.py b/salt/queues/sqlite_queue.py
index <HASH>..<HASH> 100644
--- a/salt/queues/sqlite_queue.py
+++ b/salt/queues/sqlite_queue.py
@@ -37,7 +37,7 @@ def _conn(queue):
'''
Return an sqlite connection
'''
- queue_dir = __opts__['queue_dir']
+ queue_dir = __opts__['... | Fix the option for sqlite_queue_dir | py |
diff --git a/cleo/descriptors/application_description.py b/cleo/descriptors/application_description.py
index <HASH>..<HASH> 100644
--- a/cleo/descriptors/application_description.py
+++ b/cleo/descriptors/application_description.py
@@ -45,7 +45,7 @@ class ApplicationDescription(object):
names = []
... | Hides _completion command from list. | py |
diff --git a/microcosm/loaders.py b/microcosm/loaders.py
index <HASH>..<HASH> 100644
--- a/microcosm/loaders.py
+++ b/microcosm/loaders.py
@@ -62,7 +62,7 @@ def load_from_python_file(metadata):
"""
def load_python_module(data):
module = new_module("magic")
- exec data in module.__dict__, modul... | updated exec statement usage to be python-3 compatible | py |
diff --git a/openquake/engine/calculators/risk/event_based/core.py b/openquake/engine/calculators/risk/event_based/core.py
index <HASH>..<HASH> 100644
--- a/openquake/engine/calculators/risk/event_based/core.py
+++ b/openquake/engine/calculators/risk/event_based/core.py
@@ -87,8 +87,8 @@ def event_based(job_id, hazard,... | calcs/risk/event_based/core: In `output_containers`, mean and quantiles now come at the end. | py |
diff --git a/python-package/xgboost/core.py b/python-package/xgboost/core.py
index <HASH>..<HASH> 100644
--- a/python-package/xgboost/core.py
+++ b/python-package/xgboost/core.py
@@ -1448,8 +1448,7 @@ class Booster(object):
importance_type: str, default 'weight'
One of the importance types defined... | Check booster for dart in feature importance. (#<I>) * Check booster for dart in feature importance. | py |
diff --git a/bcbio/variation/varscan.py b/bcbio/variation/varscan.py
index <HASH>..<HASH> 100644
--- a/bcbio/variation/varscan.py
+++ b/bcbio/variation/varscan.py
@@ -51,7 +51,7 @@ def _get_jvm_opts(config, tmp_dir):
def _varscan_options_from_config(config):
"""Retrieve additional options for VarScan from the con... | Add --strand-filter for single sample calling to match the paired case; centralize setting. | py |
diff --git a/phy/plot/tests/test_features.py b/phy/plot/tests/test_features.py
index <HASH>..<HASH> 100644
--- a/phy/plot/tests/test_features.py
+++ b/phy/plot/tests/test_features.py
@@ -43,9 +43,10 @@ def _test_features(n_spikes=None, n_clusters=None):
# masks[n_spikes//2:, ...] = 0
c.visual.masks = masks
... | Add test extra feature in feature view test. | py |
diff --git a/wptools/core.py b/wptools/core.py
index <HASH>..<HASH> 100644
--- a/wptools/core.py
+++ b/wptools/core.py
@@ -55,7 +55,7 @@ class WPTools:
self.get_random()
else:
self.show()
- self.verbose = verbose
+ self._verbose = verbose
def __get_links(self, iwl... | stow verbosity in core | py |
diff --git a/pyee/__init__.py b/pyee/__init__.py
index <HASH>..<HASH> 100644
--- a/pyee/__init__.py
+++ b/pyee/__init__.py
@@ -62,11 +62,14 @@ class EventEmitter(object):
"""
self._events[event].remove(f)
- def remove_all_listeners(self, event):
+ def remove_all_listeners(self, event=None):
+ ... | Without arguments, `remove_all_listeners()` will remove all listeners for all events This is consistent with the behavior of [the Node.js counterpart](<URL>). | py |
diff --git a/xmpp_backends/ejabberdctl.py b/xmpp_backends/ejabberdctl.py
index <HASH>..<HASH> 100644
--- a/xmpp_backends/ejabberdctl.py
+++ b/xmpp_backends/ejabberdctl.py
@@ -220,6 +220,10 @@ class EjabberdctlBackend(EjabberdBackendBase):
username, domain = jid.split('@', 1)
domain, resource... | priority sometimes is 'nil' | py |
diff --git a/gwpy/tests/test_table.py b/gwpy/tests/test_table.py
index <HASH>..<HASH> 100644
--- a/gwpy/tests/test_table.py
+++ b/gwpy/tests/test_table.py
@@ -123,8 +123,8 @@ class TableTests(unittest.TestCase):
def test_read_write_root(self):
table = self.TABLE_CLASS.read(
- TEST_XML_FILE, fo... | tests: fixed pep8 issue [ci skip] | py |
diff --git a/python/ray/tests/test_k8s_operator_examples.py b/python/ray/tests/test_k8s_operator_examples.py
index <HASH>..<HASH> 100644
--- a/python/ray/tests/test_k8s_operator_examples.py
+++ b/python/ray/tests/test_k8s_operator_examples.py
@@ -12,7 +12,7 @@ import kubernetes
import pytest
import yaml
-from ray.a... | [kubernetes][test][minor] Fix K8s test by an adding an underscore. (#<I>) | py |
diff --git a/kernel_tuner/strategies/genetic_algorithm.py b/kernel_tuner/strategies/genetic_algorithm.py
index <HASH>..<HASH> 100644
--- a/kernel_tuner/strategies/genetic_algorithm.py
+++ b/kernel_tuner/strategies/genetic_algorithm.py
@@ -93,11 +93,12 @@ def weighted_choice(population, n):
def random_population(pop_si... | random population to always generate unique population members | py |
diff --git a/pyuploadcare/dj/models.py b/pyuploadcare/dj/models.py
index <HASH>..<HASH> 100644
--- a/pyuploadcare/dj/models.py
+++ b/pyuploadcare/dj/models.py
@@ -66,7 +66,8 @@ pattern_of_crop = re.compile('''
| # empty string
\d+:\d+| # "2:3"
\d+x\d+| # "200x300"
- \d+x\d+\ upscale # ... | allow "<I>x<I>" minimum crop | py |
diff --git a/labsuite/compilers/plate_map.py b/labsuite/compilers/plate_map.py
index <HASH>..<HASH> 100644
--- a/labsuite/compilers/plate_map.py
+++ b/labsuite/compilers/plate_map.py
@@ -169,6 +169,6 @@ class Plate():
"""
Returns the well position on this plate matching a particular value.
""... | CSV Ingestion: Always return same well in value search. | py |
diff --git a/piazza_api/network.py b/piazza_api/network.py
index <HASH>..<HASH> 100644
--- a/piazza_api/network.py
+++ b/piazza_api/network.py
@@ -260,10 +260,11 @@ class Network(object):
cid = post["id"]
except KeyError:
cid = post
+ except TypeError:
+ cid = post
... | Update content_update with TypeError exception | py |
diff --git a/gitenberg/travis/__init__.py b/gitenberg/travis/__init__.py
index <HASH>..<HASH> 100644
--- a/gitenberg/travis/__init__.py
+++ b/gitenberg/travis/__init__.py
@@ -1,7 +1,9 @@
+import glob
import subprocess
import uuid
import os
+
BUILD_EPUB_SCRIPT = """
#!/bin/sh
@@ -30,6 +32,30 @@ function build_e... | add source_book to return the path for the source to use | py |
diff --git a/ev3dev/ev3.py b/ev3dev/ev3.py
index <HASH>..<HASH> 100644
--- a/ev3dev/ev3.py
+++ b/ev3dev/ev3.py
@@ -109,7 +109,7 @@ class Leds(object):
# ~autogen
-class Button(object):
+class Button(ButtonEVIO):
"""
EV3 Buttons
""" | Fix a bug introduced in #<I> Some debug changes creeped into PR | py |
diff --git a/cpenv/mappings.py b/cpenv/mappings.py
index <HASH>..<HASH> 100644
--- a/cpenv/mappings.py
+++ b/cpenv/mappings.py
@@ -16,6 +16,7 @@ from .vendor import yaml
KeyValue = collections.namedtuple('KeyValue', 'key value')
+Item = collections.namedtuple('Item', 'key value')
class CaseInsensitiveDict(col... | change: rename KeyValue to Item | py |
diff --git a/_pytest/fixtures.py b/_pytest/fixtures.py
index <HASH>..<HASH> 100644
--- a/_pytest/fixtures.py
+++ b/_pytest/fixtures.py
@@ -4,7 +4,7 @@ import functools
import inspect
import sys
import warnings
-from collections import OrderedDict, deque, defaultdict, namedtuple
+from collections import OrderedDict, ... | Use a frozen attr class for PseudoFixtureDef. | py |
diff --git a/keanu-python/tests/test_traceplot.py b/keanu-python/tests/test_traceplot.py
index <HASH>..<HASH> 100644
--- a/keanu-python/tests/test_traceplot.py
+++ b/keanu-python/tests/test_traceplot.py
@@ -1,6 +1,5 @@
from keanu.plots import traceplot
from keanu.vartypes import sample_types
-from keanu import Model
... | Remove dependencies for Model in test_traceplot. We don't need that either. | py |
diff --git a/demosys/scene/camera.py b/demosys/scene/camera.py
index <HASH>..<HASH> 100644
--- a/demosys/scene/camera.py
+++ b/demosys/scene/camera.py
@@ -1,7 +1,6 @@
+import time
from math import cos, radians, sin
-import glfw
-
from demosys.opengl import Projection
from pyrr import Vector3, matrix44, vector, vec... | Don't use glfw time in camera class | py |
diff --git a/pymc3/model.py b/pymc3/model.py
index <HASH>..<HASH> 100644
--- a/pymc3/model.py
+++ b/pymc3/model.py
@@ -349,6 +349,7 @@ class ObservedRV(Factor):
self.logp_elemwiset = distribution.logp(*args)
self.model = model
+ self.distribution = distribution
def Deterministic(name, var,... | Add distribution to ObservedRV. | py |
diff --git a/KISSmetrics/tests/test_docs.py b/KISSmetrics/tests/test_docs.py
index <HASH>..<HASH> 100644
--- a/KISSmetrics/tests/test_docs.py
+++ b/KISSmetrics/tests/test_docs.py
@@ -9,7 +9,7 @@ import unittest
class DocTestCase(unittest.TestCase):
def test_docs(self):
failure_count, test_count \
- ... | correct the path to README.md | py |
diff --git a/tests/unit/matchers/base_test.py b/tests/unit/matchers/base_test.py
index <HASH>..<HASH> 100644
--- a/tests/unit/matchers/base_test.py
+++ b/tests/unit/matchers/base_test.py
@@ -33,7 +33,7 @@ def test_base_matcher_exceptions():
assert _BaseMatcher('foo').match(None) is None
with pytest.raises(V... | fix(#<I>): use match keyword in pytest.raises | py |
diff --git a/openquake/baselib/parallel.py b/openquake/baselib/parallel.py
index <HASH>..<HASH> 100644
--- a/openquake/baselib/parallel.py
+++ b/openquake/baselib/parallel.py
@@ -877,7 +877,7 @@ class Starmap(object):
if len(self.busytime) > 1:
times = numpy.array(list(self.busytime.values()))
... | Indentation fix [skip CI] | py |
diff --git a/Adyen/client.py b/Adyen/client.py
index <HASH>..<HASH> 100644
--- a/Adyen/client.py
+++ b/Adyen/client.py
@@ -303,10 +303,17 @@ class AdyenClient(object):
url = self._determine_api_url(platform, service, action)
- raw_response, raw_request, status_code, headers = \
- self.htt... | [PW-<I>] Added the xapikey in http client request for call api (#<I>) * Http client request for call api includes xapi key * Formatting | 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
@@ -405,7 +405,7 @@ vcs -sverilog -full64 +v2k -timescale={self.timescale} -LDFLAGS -Wl,--no-as-need
logging.debug(f"Running command... | Use logging.info for system verilog runs | py |
diff --git a/openquake/hazardlib/gsim/chao_2020.py b/openquake/hazardlib/gsim/chao_2020.py
index <HASH>..<HASH> 100644
--- a/openquake/hazardlib/gsim/chao_2020.py
+++ b/openquake/hazardlib/gsim/chao_2020.py
@@ -248,6 +248,8 @@ class ChaoEtAl2020SSlab(ChaoEtAl2020SInter):
Chao et al. (2020) for Subduction Slab.
... | Update chao_<I>.py chao subclass tectonic types | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -97,7 +97,7 @@ class FetchCommand(distutils.cmd.Command):
'bh': fetch_bh,
'iphas': fetch_iphas,
'marshall': fetch_marshall,
- 'chen2014', fetch_chen2014}
+ 'chen2014': fetch_chen2014}
... | Fixed fetch code in setup.py | py |
diff --git a/gears/compressors/__init__.py b/gears/compressors/__init__.py
index <HASH>..<HASH> 100644
--- a/gears/compressors/__init__.py
+++ b/gears/compressors/__init__.py
@@ -1,2 +1,3 @@
+from .base import BaseCompressor, ExecCompressor
from .cleancss import CleanCSSCompressor
from .uglifyjs import UglifyJSCompre... | BaseCompressor and ExecCompressor can be imported from gears.compressors now | py |
diff --git a/bika/lims/browser/batchfolder.py b/bika/lims/browser/batchfolder.py
index <HASH>..<HASH> 100644
--- a/bika/lims/browser/batchfolder.py
+++ b/bika/lims/browser/batchfolder.py
@@ -32,7 +32,6 @@ class BatchFolderContentsView(BikaListingView):
self.show_select_all_checkbox = False
self.show_s... | Show batch-listing edit-border outside of "/batches" context | py |
diff --git a/bika/lims/content/analysisrequest.py b/bika/lims/content/analysisrequest.py
index <HASH>..<HASH> 100644
--- a/bika/lims/content/analysisrequest.py
+++ b/bika/lims/content/analysisrequest.py
@@ -1881,8 +1881,7 @@ class AnalysisRequest(BaseFolder):
""" compute default member discount if it applies "... | Remove 'getSite' call from getDefaultMemberDiscount (fails during EndRequest event handler) | py |
diff --git a/www/tests/brython_test_utils/unittest.py b/www/tests/brython_test_utils/unittest.py
index <HASH>..<HASH> 100644
--- a/www/tests/brython_test_utils/unittest.py
+++ b/www/tests/brython_test_utils/unittest.py
@@ -78,12 +78,11 @@ class OneTimeTestResult(unittest.TestResult):
def load_brython_test_cases(ba... | BUGFIX: Make CI tests pass again. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -82,7 +82,7 @@ setup_args = dict(
long_description_content_type="text/markdown",
cmdclass=cmdclass,
packages=setuptools.find_packages(),
- install_requires=["jupyterlab~=3.0", "notebook", "simpervisor>=0.4", ... | remove jupyterlab and notebook from install_requires | py |
diff --git a/kubernetes_asyncio/watch/watch_test.py b/kubernetes_asyncio/watch/watch_test.py
index <HASH>..<HASH> 100644
--- a/kubernetes_asyncio/watch/watch_test.py
+++ b/kubernetes_asyncio/watch/watch_test.py
@@ -86,7 +86,7 @@ class WatchTest(TestCase):
cnt = 0
async for _ in watch.stream(fake_api.g... | PR feedback: use `assertEqual` instead of `assert` | py |
diff --git a/marshmallow_peewee/convert.py b/marshmallow_peewee/convert.py
index <HASH>..<HASH> 100644
--- a/marshmallow_peewee/convert.py
+++ b/marshmallow_peewee/convert.py
@@ -47,11 +47,18 @@ class ModelConverter(object):
return result
def convert_field(self, field):
+ pw_fields = [x[0] for x ... | Support for custom peewee fields. | py |
diff --git a/examples/app/spectrogram/main.py b/examples/app/spectrogram/main.py
index <HASH>..<HASH> 100644
--- a/examples/app/spectrogram/main.py
+++ b/examples/app/spectrogram/main.py
@@ -69,6 +69,9 @@ freq = Slider(start=1, end=MAX_FREQ, value=MAX_FREQ, step=1, title="Frequency")
gain = Slider(start=1, end=20, val... | hotfix for pyaudio None return in spectrogam | py |
diff --git a/pywws/WeatherStation.py b/pywws/WeatherStation.py
index <HASH>..<HASH> 100755
--- a/pywws/WeatherStation.py
+++ b/pywws/WeatherStation.py
@@ -176,7 +176,7 @@ def findDevice(idVendor, idProduct):
if device.idVendor == idVendor and device.idProduct == idProduct:
return device
... | Fixed serious bug in 'live_log' routine when weather station is set to more than five minute logging interval. | py |
diff --git a/rest_condition/permissions.py b/rest_condition/permissions.py
index <HASH>..<HASH> 100644
--- a/rest_condition/permissions.py
+++ b/rest_condition/permissions.py
@@ -102,6 +102,8 @@ class Condition(object):
if reduced_result is not _NONE:
return not reduced_result if self.negated else... | Return False by default in evaluate_permissions method. | py |
diff --git a/passpie/cli.py b/passpie/cli.py
index <HASH>..<HASH> 100644
--- a/passpie/cli.py
+++ b/passpie/cli.py
@@ -347,6 +347,20 @@ def reset(db, passphrase):
repo.commit(message='Reset database')
+@cli.command(help='Remove all credentials from database')
+@click.option("-y", "--yes", is_flag=True, hel... | Add purge command to clean whole database | py |
diff --git a/slacker/__init__.py b/slacker/__init__.py
index <HASH>..<HASH> 100644
--- a/slacker/__init__.py
+++ b/slacker/__init__.py
@@ -98,6 +98,17 @@ class Groups(BaseAPI):
'count': count
})
+ def invite(self, channel, user):
+ return self.post('grou... | Add groups.invite, groups.kick, groups.leave and channels.kick APIs. | py |
diff --git a/GPy/models/gp_regression.py b/GPy/models/gp_regression.py
index <HASH>..<HASH> 100644
--- a/GPy/models/gp_regression.py
+++ b/GPy/models/gp_regression.py
@@ -16,6 +16,7 @@ class GPRegression(GP):
:param Y: observed values
:param kernel: a GPy kernel, defaults to rbf
:param Norm normalizer: [... | allowing set initial noise variance for GPRegression | py |
diff --git a/passpie/database.py b/passpie/database.py
index <HASH>..<HASH> 100644
--- a/passpie/database.py
+++ b/passpie/database.py
@@ -50,7 +50,7 @@ class PasspieStorage(Storage):
for eid, cred in data["_default"].items():
credpath = self.make_credpath(cred["name"], cred["login"])
... | Update encrypted credential dump to yaml.safe_dump | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.