diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/isso/views/comments.py b/isso/views/comments.py
index <HASH>..<HASH> 100644
--- a/isso/views/comments.py
+++ b/isso/views/comments.py
@@ -411,6 +411,21 @@ class API(object):
resp.headers.add("X-Set-Cookie", cookie("isso-%i" % rv["id"]))
return resp
+ """
+ @api {delete} '/id/:id' delete... | apidoc for "delete comment" | py |
diff --git a/pysat/_instrument.py b/pysat/_instrument.py
index <HASH>..<HASH> 100644
--- a/pysat/_instrument.py
+++ b/pysat/_instrument.py
@@ -533,7 +533,10 @@ class Instrument(object):
output_str += self.orbit_info['period'].__str__() + '\n'
output_str += 'Number of Orbits: {:d}\n'.format(sel... | Updated string representation for when orbits not loaded. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -132,7 +132,7 @@ tests_requirements = [
"flake8-comprehensions",
"flake8-string-format",
"pylint",
- "pylint-pytest",
+ "pylint-pytest>=0.3.0",
"pylint-plugin-utils",
"wget",
"filelock", | Update pylint-pytest to >=<I> Older versions had issues with loading pylint plugins on Windows. Close #<I> | py |
diff --git a/objectrocket/bases.py b/objectrocket/bases.py
index <HASH>..<HASH> 100644
--- a/objectrocket/bases.py
+++ b/objectrocket/bases.py
@@ -111,6 +111,7 @@ class BaseInstance(object):
# Bind required pseudo private attributes from API response document.
self._created = instance_document['crea... | Add ID attribute to instances...how did I forget? | py |
diff --git a/openquake/calculators/post_risk.py b/openquake/calculators/post_risk.py
index <HASH>..<HASH> 100644
--- a/openquake/calculators/post_risk.py
+++ b/openquake/calculators/post_risk.py
@@ -194,7 +194,8 @@ class PostRiskCalculator(base.RiskCalculator):
reagg_idxs(self.num_tags, oq.aggregate_by... | Fixed oq reaggregate | py |
diff --git a/aioxmpp/service.py b/aioxmpp/service.py
index <HASH>..<HASH> 100644
--- a/aioxmpp/service.py
+++ b/aioxmpp/service.py
@@ -140,6 +140,7 @@ import abc
import asyncio
import collections
import contextlib
+import copy
import logging
import warnings
import weakref
@@ -276,7 +277,7 @@ class DependencyGraph... | Use the copy.deepcopy instead of our own copy mechanism | py |
diff --git a/salt/utils/http.py b/salt/utils/http.py
index <HASH>..<HASH> 100644
--- a/salt/utils/http.py
+++ b/salt/utils/http.py
@@ -287,7 +287,7 @@ def query(url,
if password_mgr:
handlers.append(urllib_request.HTTPBasicAuthHandler(password_mgr))
- if url.startswith('https') or port ==... | Correctly support https, port <I> is not a requirement | py |
diff --git a/tests/test_exceptional.py b/tests/test_exceptional.py
index <HASH>..<HASH> 100644
--- a/tests/test_exceptional.py
+++ b/tests/test_exceptional.py
@@ -86,7 +86,7 @@ def test_deduplicate(mock_filename, simple_traceback):
assert "".join(simple_traceback.split('\n')) == out[0]
-@pytest.mark.skipif(os.... | Skip test on travis for reals | py |
diff --git a/mbuild/formats/lammps.py b/mbuild/formats/lammps.py
index <HASH>..<HASH> 100644
--- a/mbuild/formats/lammps.py
+++ b/mbuild/formats/lammps.py
@@ -75,9 +75,11 @@ def save_lammps(traj, step=-1, optional_nodes=None, filename='data.mbuild',
if term.kind not in numeric_types:
... | fixed number of terms printed for angle/dihedral terms in lammps writer | py |
diff --git a/python/thunder/rdds/data.py b/python/thunder/rdds/data.py
index <HASH>..<HASH> 100644
--- a/python/thunder/rdds/data.py
+++ b/python/thunder/rdds/data.py
@@ -14,7 +14,7 @@ class Data(object):
def first(self):
return self.rdd.first()
- def collet(self):
+ def collect(self):
re... | fix typo in Data.collect method name | py |
diff --git a/pyked/converters.py b/pyked/converters.py
index <HASH>..<HASH> 100644
--- a/pyked/converters.py
+++ b/pyked/converters.py
@@ -307,7 +307,7 @@ def get_datapoints(root):
# Shock tube experiment will have one data group, while RCM may have one
# or two (one for ignition delay, one for volume-history... | not dataGroups -> dataGroups is not None | py |
diff --git a/src/python/jpype/_pykeywords.py b/src/python/jpype/_pykeywords.py
index <HASH>..<HASH> 100644
--- a/src/python/jpype/_pykeywords.py
+++ b/src/python/jpype/_pykeywords.py
@@ -12,17 +12,13 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific ... | use native sets instead of set module. | py |
diff --git a/shoebot/gtkui.py b/shoebot/gtkui.py
index <HASH>..<HASH> 100644
--- a/shoebot/gtkui.py
+++ b/shoebot/gtkui.py
@@ -61,7 +61,8 @@ class ShoebotDrawingArea(gtk.DrawingArea):
if self.is_dynamic:
self.bot.run()
- self.bot.namespace['setup']()
+ if 'setup' in self.bo... | fixed an issue that showed with scripts with a draw() statement but without setup() | py |
diff --git a/squad/api/urls.py b/squad/api/urls.py
index <HASH>..<HASH> 100644
--- a/squad/api/urls.py
+++ b/squad/api/urls.py
@@ -1,4 +1,5 @@
from django.conf.urls import url
+from django.shortcuts import redirect
from . import views
@@ -10,6 +11,7 @@ slug_pattern = '[a-z0-9_.-]+'
urlpatterns = [
+ url(r... | frontent: redirect /api to / In the future we might change that to providing some (potentially auto-generated) documentation at /api. For now, just preventing /api to be interpreted as a visit to an group called "api" is good enough. | py |
diff --git a/benchexec/test_tool_info.py b/benchexec/test_tool_info.py
index <HASH>..<HASH> 100644
--- a/benchexec/test_tool_info.py
+++ b/benchexec/test_tool_info.py
@@ -260,6 +260,19 @@ def print_standard_task_cmdlines(tool, executable):
)
print_list("Command line CPU-time limit", cmdline)
+ wi... | Extend test_tool_info with one example that matches what SV-Benchmark uses This is irrelevant for some users, but very helpful for the SV-COMP community. For example, it allows to test handling of task-definition options. | py |
diff --git a/advanced_filters/forms.py b/advanced_filters/forms.py
index <HASH>..<HASH> 100644
--- a/advanced_filters/forms.py
+++ b/advanced_filters/forms.py
@@ -230,7 +230,7 @@ class AdvancedFilterFormSet(BaseFormSet):
AFQFormSet = formset_factory(
AdvancedFilterQueryForm, formset=AdvancedFilterFormSet,
- ... | changed solution for extra form appearing on editing. Now initialize form checks for falsy value for extra rather than extra just being None | py |
diff --git a/tests/test_client.py b/tests/test_client.py
index <HASH>..<HASH> 100644
--- a/tests/test_client.py
+++ b/tests/test_client.py
@@ -1,6 +1,6 @@
from unittest import TestCase
import threading
-import re
+import time
from pymicroservice.client.remote_service import RemoteService
from pymicroservice impor... | added 1 sec delay in test init | py |
diff --git a/source/rafcon/gui/controllers/state_editor/overview.py b/source/rafcon/gui/controllers/state_editor/overview.py
index <HASH>..<HASH> 100644
--- a/source/rafcon/gui/controllers/state_editor/overview.py
+++ b/source/rafcon/gui/controllers/state_editor/overview.py
@@ -117,6 +117,9 @@ class StateOverviewContro... | feat(state overview): make library path selectable and thereby copyable | py |
diff --git a/test_settings.py b/test_settings.py
index <HASH>..<HASH> 100644
--- a/test_settings.py
+++ b/test_settings.py
@@ -3,6 +3,7 @@ SECRET_KEY = "lorem ipsum"
INSTALLED_APPS = (
'django.contrib.auth',
'django.contrib.contenttypes',
+ 'django.contrib.sites',
'tango_shared',
'happenings',
... | added django contrib sites | py |
diff --git a/tests/linalg_test.py b/tests/linalg_test.py
index <HASH>..<HASH> 100644
--- a/tests/linalg_test.py
+++ b/tests/linalg_test.py
@@ -127,7 +127,7 @@ class NumpyLinalgTest(jtu.JaxTestCase):
def testSlogdetGrad(self, shape, dtype, rng):
_skip_if_unsupported_type(dtype)
a = rng(shape, dtype)
- jt... | Reduced tolerance for slogdet grad test | py |
diff --git a/salt/state.py b/salt/state.py
index <HASH>..<HASH> 100644
--- a/salt/state.py
+++ b/salt/state.py
@@ -89,7 +89,15 @@ class State(object):
return errors
full = data['state'] + '.' + data['fun']
if not self.states.has_key(full):
- errors.append('Specified state ' + f... | Add sls data to basic sls errors | py |
diff --git a/raven/utils/json.py b/raven/utils/json.py
index <HASH>..<HASH> 100644
--- a/raven/utils/json.py
+++ b/raven/utils/json.py
@@ -23,16 +23,21 @@ except AttributeError:
JSONDecodeError = ValueError
+ENCODER_BY_TYPE = {
+ uuid.UUID: lambda o: o.hex,
+ datetime.datetime: lambda o: o.strftime('%Y-%... | We actually do a lot of json encoding and this is faster | py |
diff --git a/pyicloud/base.py b/pyicloud/base.py
index <HASH>..<HASH> 100644
--- a/pyicloud/base.py
+++ b/pyicloud/base.py
@@ -177,13 +177,12 @@ class PyiCloudService(object):
def contacts(self):
service_root = self.webservices['contacts']['url']
return ContactsService(service_root, self.session,... | PEP8 for base.py | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -49,7 +49,6 @@ setup(
author_email='jon@lessknown.co.uk',
url='https://github.com/jonhadfield/python-hosts',
download_url='https://github.com/jonhadfield/python-hosts/tarball/{0}'.format(version),
- install_r... | Remove unused win_inet_pton dependency It is no longer used since <URL> | py |
diff --git a/tests/test_main.py b/tests/test_main.py
index <HASH>..<HASH> 100644
--- a/tests/test_main.py
+++ b/tests/test_main.py
@@ -595,7 +595,7 @@ THIS FILE IS INVALID
resources / 'ccitt.pdf', outdir / 'out.pdf',
'--pdf-renderer', renderer,
'--tesseract-config', cfg_file)
- assert "par... | test: this error message changed case in newer Tesseract | py |
diff --git a/hydpy/core/hydpytools.py b/hydpy/core/hydpytools.py
index <HASH>..<HASH> 100644
--- a/hydpy/core/hydpytools.py
+++ b/hydpy/core/hydpytools.py
@@ -33,18 +33,12 @@ class HydPy(object):
'time. Consider deleting all instances and '
'initializing a new one,... | Fix method `__init__` of class `'HydPy' of module 'hydpytools' . Now the global information in module `pub` is only change, when a `projectname` is defined. As a consequence, one can now initialize an additional HydPy instance during testing, without to break an already prepared project. Hence it is not necessary to... | py |
diff --git a/pyqode/python/code_edit.py b/pyqode/python/code_edit.py
index <HASH>..<HASH> 100644
--- a/pyqode/python/code_edit.py
+++ b/pyqode/python/code_edit.py
@@ -39,6 +39,7 @@ class PyCodeEdit(api.CodeEdit):
self.modes.append(pymodes.DocumentAnalyserMode())
# panels
+ self.panels.append(... | Add folding panel also add missing EncodingPanel | py |
diff --git a/tcconfig/tcset.py b/tcconfig/tcset.py
index <HASH>..<HASH> 100644
--- a/tcconfig/tcset.py
+++ b/tcconfig/tcset.py
@@ -317,7 +317,12 @@ def set_tc_from_file(logger, config_file_path, is_overwrite):
loader = TcConfigLoader(logger)
loader.is_overwrite = is_overwrite
- loader.load_tcconfig(confi... | Add config file existence check for the tcset | py |
diff --git a/tests/calculators/hazard/scenario/core_test.py b/tests/calculators/hazard/scenario/core_test.py
index <HASH>..<HASH> 100644
--- a/tests/calculators/hazard/scenario/core_test.py
+++ b/tests/calculators/hazard/scenario/core_test.py
@@ -27,16 +27,15 @@ class ScenarioHazardCalculatorTestCase(unittest.TestCase)... | small refactorings to test_realizations_per_task | py |
diff --git a/allauth/socialaccount/providers/naver/provider.py b/allauth/socialaccount/providers/naver/provider.py
index <HASH>..<HASH> 100644
--- a/allauth/socialaccount/providers/naver/provider.py
+++ b/allauth/socialaccount/providers/naver/provider.py
@@ -19,9 +19,5 @@ class NaverProvider(OAuth2Provider):
def e... | Naver's extract_common_fields should be deleted. (#<I>) * refact code for peb8 * revert * remove ascii * break long string * string serve to json * add line * merge from upstream * removed user email, name | py |
diff --git a/c7n/resources/ebs.py b/c7n/resources/ebs.py
index <HASH>..<HASH> 100644
--- a/c7n/resources/ebs.py
+++ b/c7n/resources/ebs.py
@@ -1064,7 +1064,15 @@ class CreateSnapshot(BaseAction):
retry = get_retry(['Throttled'], max_attempts=5)
for vol in volumes:
vol_id = vol['VolumeId']... | aws.ebs - skip missing ebs volumes when snapshotting (#<I>) | py |
diff --git a/arcrest/admin/cmdline.py b/arcrest/admin/cmdline.py
index <HASH>..<HASH> 100644
--- a/arcrest/admin/cmdline.py
+++ b/arcrest/admin/cmdline.py
@@ -171,17 +171,6 @@ def createservice(action):
new_json = json.dumps(config_json)
result_object = publish_tool(id, new_json, "")
... | PublishingTools now automatically remove the uploaded sd | py |
diff --git a/gns3server/utils/images.py b/gns3server/utils/images.py
index <HASH>..<HASH> 100644
--- a/gns3server/utils/images.py
+++ b/gns3server/utils/images.py
@@ -156,7 +156,7 @@ def md5sum(path):
try:
with open(path + '.md5sum') as f:
- md5 = f.read()
+ md5 = f.read().strip()
... | Remove unwanted trailing characters and other white spaces when reading .md5sum files. | py |
diff --git a/src/feat/gateway/adapters.py b/src/feat/gateway/adapters.py
index <HASH>..<HASH> 100644
--- a/src/feat/gateway/adapters.py
+++ b/src/feat/gateway/adapters.py
@@ -26,7 +26,7 @@ from twisted.internet import reactor
from zope.interface import implements
from feat.agencies import agency
-from feat.agencies... | Fix problem with getting the default gateway port. | py |
diff --git a/sitetree/sitetreeapp.py b/sitetree/sitetreeapp.py
index <HASH>..<HASH> 100644
--- a/sitetree/sitetreeapp.py
+++ b/sitetree/sitetreeapp.py
@@ -135,7 +135,7 @@ class SiteTree(object):
if item.parent is not None:
depth = self.calculate_item_depth(tree_alias, item.parent.id, depth... | Fixed misleading tree rendering bug in admin interface (for examples see #<I>). | py |
diff --git a/openquake/commands/webui.py b/openquake/commands/webui.py
index <HASH>..<HASH> 100644
--- a/openquake/commands/webui.py
+++ b/openquake/commands/webui.py
@@ -45,7 +45,7 @@ def webui(cmd, hostport='127.0.0.1:8800'):
subprocess.Popen([sys.executable, '-m', 'openquake.server.dbserver'])
coun... | Reduce the timeout to 5 secs | py |
diff --git a/xmantissa/test/test_port.py b/xmantissa/test/test_port.py
index <HASH>..<HASH> 100644
--- a/xmantissa/test/test_port.py
+++ b/xmantissa/test/test_port.py
@@ -579,9 +579,10 @@ class PortConfigurationCommandTests(TestCase):
def assertSpacelessEqual(self, first, second):
"""
- Assert th... | This is awful but it avoids being ordering-sensitive. | py |
diff --git a/admin.py b/admin.py
index <HASH>..<HASH> 100644
--- a/admin.py
+++ b/admin.py
@@ -19,6 +19,8 @@
"""Flask-Admin page to configure facets sets per collection."""
+from __future__ import unicode_literals
+
from invenio.ext.admin.views import ModelView
from invenio.ext.sqlalchemy import db
from invenio... | global: unicode literal for admin views * Forces unicode literals on all admin pages. (addresses #<I>) * PEP8/<I> code style improvements. | py |
diff --git a/show_charmap.py b/show_charmap.py
index <HASH>..<HASH> 100755
--- a/show_charmap.py
+++ b/show_charmap.py
@@ -38,11 +38,6 @@ try:
except NameError: # Python 3
safe_input = input
-try:
- unichr = unichr
-except NameError: # Python 3
- unichr = chr
-
def print_usage():
print('Usage: %... | show_charmap: Use `write` function directly This bypasses the auto newline mechanism that would otherwise cause problems with characters like 0x0a (\n) and 0x0d (\r). | py |
diff --git a/pyamg/multilevel.py b/pyamg/multilevel.py
index <HASH>..<HASH> 100644
--- a/pyamg/multilevel.py
+++ b/pyamg/multilevel.py
@@ -384,7 +384,7 @@ class multilevel_solver:
if cb is not None:
cb(x)
- return accel(A, b, x0=x0, tol=tol, M=M, callback=callb... | accel option in multilevel wasn't taking the maxiter value passed in | py |
diff --git a/doc/source/conf.py b/doc/source/conf.py
index <HASH>..<HASH> 100644
--- a/doc/source/conf.py
+++ b/doc/source/conf.py
@@ -36,7 +36,7 @@ if on_rtd:
(out, err) = proc.communicate()
print "program output:", out
#Lets regenerate our rst files from the source, -P adds private modules (i.e kern._s... | [readthedocs] weirdnessssss | py |
diff --git a/glances/plugins/glances_hddtemp.py b/glances/plugins/glances_hddtemp.py
index <HASH>..<HASH> 100644
--- a/glances/plugins/glances_hddtemp.py
+++ b/glances/plugins/glances_hddtemp.py
@@ -130,12 +130,13 @@ class GlancesGrabHDDTemp(object):
sck = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
... | Close the hddtemp socket in the finally block This way we avoid leaving sockets open which can trigger a ResourceWarning in some cases. | py |
diff --git a/tests/data/dataset_readers/dataset_utils/ontonotes_test.py b/tests/data/dataset_readers/dataset_utils/ontonotes_test.py
index <HASH>..<HASH> 100644
--- a/tests/data/dataset_readers/dataset_utils/ontonotes_test.py
+++ b/tests/data/dataset_readers/dataset_utils/ontonotes_test.py
@@ -122,8 +122,10 @@ class Te... | Fix OntoNotes dataset path iterator test by using set equality (#<I>) | py |
diff --git a/egg/_gui.py b/egg/_gui.py
index <HASH>..<HASH> 100644
--- a/egg/_gui.py
+++ b/egg/_gui.py
@@ -63,7 +63,9 @@ class BaseObject():
Returns the object's parent window. Returns None if no window found.
"""
x = self
- while not x._parent == None and not isinstance(x._parent, Win... | Minor updates Need to figure out parent stuff & test a bit more. | py |
diff --git a/shinken/modules/livestatus_broker/livestatus.py b/shinken/modules/livestatus_broker/livestatus.py
index <HASH>..<HASH> 100644
--- a/shinken/modules/livestatus_broker/livestatus.py
+++ b/shinken/modules/livestatus_broker/livestatus.py
@@ -4775,6 +4775,7 @@ class LiveStatus:
self.debuglevel = 2
... | Fix: the Queue order for stacks in python <I>. | py |
diff --git a/orb/core/connection_types/sql/postgres/statements/where.py b/orb/core/connection_types/sql/postgres/statements/where.py
index <HASH>..<HASH> 100644
--- a/orb/core/connection_types/sql/postgres/statements/where.py
+++ b/orb/core/connection_types/sql/postgres/statements/where.py
@@ -98,9 +98,7 @@ class WHERE... | * reverting back changes, this system is more flexible for sub-selection | py |
diff --git a/salt/version.py b/salt/version.py
index <HASH>..<HASH> 100644
--- a/salt/version.py
+++ b/salt/version.py
@@ -1,2 +1,2 @@
-__version_info__ = (0, 9, 5, 'pre')
+__version_info__ = (0, 9, 5)
__version__ = '.'.join(map(str, __version_info__)) | Set the version to <I> | py |
diff --git a/edx_rest_framework_extensions/__init__.py b/edx_rest_framework_extensions/__init__.py
index <HASH>..<HASH> 100644
--- a/edx_rest_framework_extensions/__init__.py
+++ b/edx_rest_framework_extensions/__init__.py
@@ -1,3 +1,3 @@
""" edx Django REST Framework extensions. """
-__version__ = '5.0.1' # pragma... | Bumped the version to <I> | py |
diff --git a/airflow/www/app.py b/airflow/www/app.py
index <HASH>..<HASH> 100644
--- a/airflow/www/app.py
+++ b/airflow/www/app.py
@@ -1699,7 +1699,7 @@ class TaskInstanceModelView(ModelViewOnly):
verbose_name = "task instance"
column_filters = (
'state', 'dag_id', 'task_id', 'execution_date', 'hostn... | Adding more options to TaskInstance view | py |
diff --git a/airlock/app.py b/airlock/app.py
index <HASH>..<HASH> 100644
--- a/airlock/app.py
+++ b/airlock/app.py
@@ -31,7 +31,9 @@ def allowed_user_domains_middleware(wsgi_app):
config = config_lib.get_config()
allowed_user_domains = config.get('allowed_user_domains')
# If all domains are allowed, cont... | Allow paths prefixed with '_'. | py |
diff --git a/shinken/modulesmanager.py b/shinken/modulesmanager.py
index <HASH>..<HASH> 100644
--- a/shinken/modulesmanager.py
+++ b/shinken/modulesmanager.py
@@ -115,11 +115,12 @@ Returns: True on successfull init. False if instance init method raised any Exce
# Do not try until 5 sec, or it's too loo... | Fix : inverse last init try, so if an exception is raised by queue, this property is still created. | py |
diff --git a/pandas/tseries/offsets.py b/pandas/tseries/offsets.py
index <HASH>..<HASH> 100644
--- a/pandas/tseries/offsets.py
+++ b/pandas/tseries/offsets.py
@@ -280,7 +280,6 @@ class BusinessDay(CacheableOffset, DateOffset):
return fstr
def _offset_str(self):
-
def get_str(td):
o... | BUG: timedelta.total_seconds only in <I> and <I> | py |
diff --git a/karaage/software/views/admin.py b/karaage/software/views/admin.py
index <HASH>..<HASH> 100644
--- a/karaage/software/views/admin.py
+++ b/karaage/software/views/admin.py
@@ -53,7 +53,7 @@ def software_list(request):
terms = request.REQUEST['search'].lower()
query = Q()
for term i... | Remove reference to gid It no longer exists. Change-Id: Ib4e<I>bc7c0fe<I>baba<I>e<I>b<I>ba<I>e5 | py |
diff --git a/spyder/app/tests/test_mainwindow.py b/spyder/app/tests/test_mainwindow.py
index <HASH>..<HASH> 100644
--- a/spyder/app/tests/test_mainwindow.py
+++ b/spyder/app/tests/test_mainwindow.py
@@ -146,6 +146,7 @@ def test_run_code(main_window, qtbot):
main_window.close()
+@pytest.mark.skipif(os.name == '... | Testing: Skip test for issue <I> on Windows because it fails sometimes | py |
diff --git a/mythril/laser/ethereum/instructions.py b/mythril/laser/ethereum/instructions.py
index <HASH>..<HASH> 100644
--- a/mythril/laser/ethereum/instructions.py
+++ b/mythril/laser/ethereum/instructions.py
@@ -1495,7 +1495,7 @@ class Instruction:
global_state.new_bitvec("retval_" + str(instr["addr... | reformat instructions.py with black | py |
diff --git a/registrasion/templatetags/registrasion_tags.py b/registrasion/templatetags/registrasion_tags.py
index <HASH>..<HASH> 100644
--- a/registrasion/templatetags/registrasion_tags.py
+++ b/registrasion/templatetags/registrasion_tags.py
@@ -133,7 +133,7 @@ def sold_out_and_unregistered(context):
'''
u... | Fixes the sold_out tag when the user doesn’t even have an attendee attached. | py |
diff --git a/bcbio/install.py b/bcbio/install.py
index <HASH>..<HASH> 100644
--- a/bcbio/install.py
+++ b/bcbio/install.py
@@ -40,9 +40,9 @@ def upgrade_bcbio(args):
else:
_update_conda_packages()
print("Upgrading bcbio-nextgen to latest development version")
+ subprocess.check_call([pip_b... | Ensure dependencies always installed before latest development code during upgrade, even if conda install fails. Fixes #<I> | py |
diff --git a/openquake/hazardlib/site.py b/openquake/hazardlib/site.py
index <HASH>..<HASH> 100644
--- a/openquake/hazardlib/site.py
+++ b/openquake/hazardlib/site.py
@@ -140,11 +140,16 @@ site_param_dt = {
class SiteCollection(object):
- """
+ __doc__ = """\
A collection of :class:`sites <Site>`.
... | Improved SiteCollection.__doc__ [skip CI] | py |
diff --git a/isc_dhcp_leases/__init__.py b/isc_dhcp_leases/__init__.py
index <HASH>..<HASH> 100644
--- a/isc_dhcp_leases/__init__.py
+++ b/isc_dhcp_leases/__init__.py
@@ -1 +1 @@
-__author__ = 'martijn'
+__author__ = 'Martijn Braam <martijn@brixit.nl>' | Fixed automatic generated field from PyCharm | py |
diff --git a/testing/test_pluggy.py b/testing/test_pluggy.py
index <HASH>..<HASH> 100644
--- a/testing/test_pluggy.py
+++ b/testing/test_pluggy.py
@@ -656,6 +656,20 @@ class TestAddMethodOrdering:
results = pm.hook.hello_myhook(arg1=17)
assert results == [18, 18]
+ def test_prefix_hookimpl_dontma... | add failing test for issue #<I> | py |
diff --git a/citrination_client/views/descriptors/inorganic_descriptor.py b/citrination_client/views/descriptors/inorganic_descriptor.py
index <HASH>..<HASH> 100644
--- a/citrination_client/views/descriptors/inorganic_descriptor.py
+++ b/citrination_client/views/descriptors/inorganic_descriptor.py
@@ -2,7 +2,7 @@ from ... | Default to threshold <I> resolves #<I> | py |
diff --git a/pygenstub.py b/pygenstub.py
index <HASH>..<HASH> 100644
--- a/pygenstub.py
+++ b/pygenstub.py
@@ -679,9 +679,13 @@ class StubGenerator(ast.NodeVisitor):
stub_lines = self.root.get_code()
prev_line = None
for line in stub_lines:
- if line.startswith("class ") and prev_l... | fix: Remove blank lines between empty class stubs | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -65,7 +65,7 @@ def read(*parts):
return codecs.open(os.path.join(os.path.abspath(os.path.dirname(__file__)), *parts), 'r').read()
setup(name="faketime",
- version="0.9.6.5",
+ version="0.9.6.6",
descri... | RELEASE : Bumped version. | py |
diff --git a/synapse/tests/utils.py b/synapse/tests/utils.py
index <HASH>..<HASH> 100644
--- a/synapse/tests/utils.py
+++ b/synapse/tests/utils.py
@@ -2,7 +2,7 @@
This contains the core test helper code used in Synapse.
This gives the opportunity for third-party users of Synapse to test their
-code using some of th... | Remove duplicate words in comment (#<I>) | py |
diff --git a/timeside/plugins/decoder/utils.py b/timeside/plugins/decoder/utils.py
index <HASH>..<HASH> 100644
--- a/timeside/plugins/decoder/utils.py
+++ b/timeside/plugins/decoder/utils.py
@@ -75,10 +75,10 @@ def path2uri(path):
>>> path2uri('C:\Windows\my_file.wav')
'file:///C%3A%5CWindows%5Cmy_file.wav'
... | [plugins] upgrade decoder/utils.py to py3 | py |
diff --git a/peru/cache.py b/peru/cache.py
index <HASH>..<HASH> 100644
--- a/peru/cache.py
+++ b/peru/cache.py
@@ -174,7 +174,7 @@ class Cache:
raise DirtyWorkingCopyError(
'Imported files have been modified ' +
'(use --force to overwrite):\n\n' +
- '\n'.joi... | limit the length of existing/modified files errors Previously when a sync failed because of existing or modified files, we would print out every offending file. Sometimes this is hundreds of lines, which meant the actual error text wasn't visible in the terminal. | py |
diff --git a/faker/__init__.py b/faker/__init__.py
index <HASH>..<HASH> 100644
--- a/faker/__init__.py
+++ b/faker/__init__.py
@@ -1,4 +1,4 @@
-AVAILABLE_LOCALES = ['en_US', 'it_IT', 'fr_FR', 'pt_BR', 'en_CA']
+AVAILABLE_LOCALES = ['en_US', 'it_IT', 'fr_FR', 'pt_BR', 'en_CA', 'es_ES']
DEFAULT_LOCALE = AVAILABLE_LOCA... | Added es_ES as available locale setting | py |
diff --git a/tests/integration/shell/test_call.py b/tests/integration/shell/test_call.py
index <HASH>..<HASH> 100644
--- a/tests/integration/shell/test_call.py
+++ b/tests/integration/shell/test_call.py
@@ -151,6 +151,8 @@ class CallTest(ShellCase, testprogram.TestProgramCase, ShellCaseCommonTestsMixin
]
... | War room skip for tcp build | py |
diff --git a/LiSE/LiSE/__init__.py b/LiSE/LiSE/__init__.py
index <HASH>..<HASH> 100644
--- a/LiSE/LiSE/__init__.py
+++ b/LiSE/LiSE/__init__.py
@@ -0,0 +1,4 @@
+from .engine import Engine
+
+
+__all__ = [Engine]
\ No newline at end of file | Export just the LiSE engine from its module | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -33,6 +33,6 @@ setup(author='Nelson Liu, Aakash Sethi',
name='word2color',
packages=['word2color'],
url='https://github.com/nelson-liu/word2color',
- version='0.1.1',
+ version='0.1.2',
zi... | chore: change version number for new release w/ bugfix | py |
diff --git a/openfisca_core/entities.py b/openfisca_core/entities.py
index <HASH>..<HASH> 100644
--- a/openfisca_core/entities.py
+++ b/openfisca_core/entities.py
@@ -62,7 +62,7 @@ class Population(object):
def __getattr__(self, attribute):
projector = get_projector_from_shortcut(self, attribute)
... | Don't commit publicly to either Entity or Population terms | py |
diff --git a/alignak_backend_client/backend_client.py b/alignak_backend_client/backend_client.py
index <HASH>..<HASH> 100755
--- a/alignak_backend_client/backend_client.py
+++ b/alignak_backend_client/backend_client.py
@@ -811,8 +811,8 @@ class BackendUpdate(object):
count = 0
for json_item in... | For #<I>: Allow to import unnamed items (logcheckresult and userrestrictrole) | py |
diff --git a/update-server/otupdate/buildroot/ssh_key_management.py b/update-server/otupdate/buildroot/ssh_key_management.py
index <HASH>..<HASH> 100644
--- a/update-server/otupdate/buildroot/ssh_key_management.py
+++ b/update-server/otupdate/buildroot/ssh_key_management.py
@@ -6,6 +6,7 @@ import functools
import hash... | fix(update-server): Create ~/.ssh/authorized_keys if needed (#<I>) When you migrate a robot from balena to buildroot, it doesn't create an authorized_keys dir - and in general, we should be sensitive of the possibility that file is not present, since it's on the writable filesystem. To deal with this, just make sure t... | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -48,7 +48,7 @@ def filter_extension_module(name, lib_objs, lib_headers):
libraries=["m"],
include_dirs=["thumbor/ext/filters/lib"],
depends=["setup.py"] + lib_objs + lib_headers,
- extra_compi... | [FIX] Lint failed in setup.py **Is backwards compatible**: yes This diff fixes a lint failure in setup.py with a dangling comma. | py |
diff --git a/dingo/core/network/grids.py b/dingo/core/network/grids.py
index <HASH>..<HASH> 100644
--- a/dingo/core/network/grids.py
+++ b/dingo/core/network/grids.py
@@ -149,9 +149,12 @@ class MVGridDingo(GridDingo):
# TODO: Add more detailed description
# TODO: Pass debug flag to functions
- ... | add call for station voltage setting in grid parametrization | py |
diff --git a/src/passgen.py b/src/passgen.py
index <HASH>..<HASH> 100644
--- a/src/passgen.py
+++ b/src/passgen.py
@@ -8,7 +8,37 @@ import sys
def passgen(length=12, punctuation=False, digits=True, letters=True,
case="both"):
- """Generate a random password with *length* characters"""
+ """Generat... | Expand docstring of passgen() | py |
diff --git a/h2o-py/h2o/grid/grid_search.py b/h2o-py/h2o/grid/grid_search.py
index <HASH>..<HASH> 100644
--- a/h2o-py/h2o/grid/grid_search.py
+++ b/h2o-py/h2o/grid/grid_search.py
@@ -474,7 +474,22 @@ class H2OGridSearch(backwards_compatible()):
def xval_keys(self):
- """Model keys for the cross-validate... | PUBDEV-<I>: added example | py |
diff --git a/pylint/checkers/typecheck.py b/pylint/checkers/typecheck.py
index <HASH>..<HASH> 100644
--- a/pylint/checkers/typecheck.py
+++ b/pylint/checkers/typecheck.py
@@ -164,13 +164,7 @@ def _determine_callable(callable_obj):
# and Function inherits Lambda.
if isinstance(callable_obj, astroid.BoundMethod... | Revert partially the previous commit: let astroid return functions, not BoundMethods for staticmethods. | py |
diff --git a/git_pull_request/__init__.py b/git_pull_request/__init__.py
index <HASH>..<HASH> 100644
--- a/git_pull_request/__init__.py
+++ b/git_pull_request/__init__.py
@@ -628,7 +628,12 @@ def fork_and_push_pull_request(
]
)
- pulls = list(repo_to_fork.get_pulls(base=target_branch, head=he... | fix: don't use head= for getting pull requests (#<I>) using head on `GET repos/<owner>/<repo>/pulls` doesn't work for private repository, the returned list is empty. | py |
diff --git a/bids/grabbids/bids_layout.py b/bids/grabbids/bids_layout.py
index <HASH>..<HASH> 100644
--- a/bids/grabbids/bids_layout.py
+++ b/bids/grabbids/bids_layout.py
@@ -32,11 +32,12 @@ class BIDSLayout(Layout):
to_check = f.path
to_check = to_check.split(self.project_path, maxsplit=1)[1]
- ... | made first symbol check system independent using os.path.sep | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -1,7 +1,7 @@
from setuptools import setup, find_packages
setup(name='instana',
- version='0.5.5',
+ version='0.5.6',
download_url='https://github.com/instana/python-sensor',
url='https://www.instana... | Bump package version to <I> | py |
diff --git a/demosys/context/__init__.py b/demosys/context/__init__.py
index <HASH>..<HASH> 100644
--- a/demosys/context/__init__.py
+++ b/demosys/context/__init__.py
@@ -1,12 +1,14 @@
import moderngl
+
from demosys.conf import settings
from demosys.utils.module_loading import import_string
+from demosys.context.bas... | Fix test issue related to pyflakes upgrade | py |
diff --git a/source/rafcon/gui/controllers/library_tree.py b/source/rafcon/gui/controllers/library_tree.py
index <HASH>..<HASH> 100644
--- a/source/rafcon/gui/controllers/library_tree.py
+++ b/source/rafcon/gui/controllers/library_tree.py
@@ -295,7 +295,8 @@ class LibraryTreeController(ExtendedController):
def ope... | fix(library_tree): Make more fail safe Handle cases where no state machine is returned | py |
diff --git a/flask_peewee/admin.py b/flask_peewee/admin.py
index <HASH>..<HASH> 100644
--- a/flask_peewee/admin.py
+++ b/flask_peewee/admin.py
@@ -626,7 +626,7 @@ class Export(object):
field_dict = {}
for field in prepared_query._select:
field_dict.setdefault(field.model_class, [])
- ... | Need to use field names with serializer | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -6,7 +6,7 @@ required = [
setup(
name='buildapi_client',
- version='0.5.1.dev0',
+ version='0.5.1',
packages=find_packages(),
install_requires=required + ['pytest-runner'], | Preparing release <I> | py |
diff --git a/astroplan/__init__.py b/astroplan/__init__.py
index <HASH>..<HASH> 100644
--- a/astroplan/__init__.py
+++ b/astroplan/__init__.py
@@ -14,5 +14,5 @@ from ._astropy_init import *
if not _ASTROPY_SETUP_:
from .utils import *
-# Import everything in astroplan.core
-from .core import *
+ # Import eve... | Missing indent causing travis to fail | py |
diff --git a/tarbell/app.py b/tarbell/app.py
index <HASH>..<HASH> 100644
--- a/tarbell/app.py
+++ b/tarbell/app.py
@@ -235,7 +235,7 @@ class TarbellSite:
except KeyError:
pass
if is_dict:
- k = row.custom['key'].text
+ ... | add slughifi to one more place | py |
diff --git a/tests/unit/modules/win_dns_client_test.py b/tests/unit/modules/win_dns_client_test.py
index <HASH>..<HASH> 100644
--- a/tests/unit/modules/win_dns_client_test.py
+++ b/tests/unit/modules/win_dns_client_test.py
@@ -64,29 +64,6 @@ class Mockwmi(object):
self.ipenabled = IPEnabled
return [Mo... | Remove Mockwinapi mocking class from win_dns_client_test The tests run on the same process, the Mockwinapi class is squashing salt.utils and causing problems in the test suite. Refs #<I> | py |
diff --git a/astrocats/supernovae/utils/compare.py b/astrocats/supernovae/utils/compare.py
index <HASH>..<HASH> 100644
--- a/astrocats/supernovae/utils/compare.py
+++ b/astrocats/supernovae/utils/compare.py
@@ -7,6 +7,7 @@ __all__ = ['same_tag_num', 'same_tag_str']
def same_tag_num(photo, val, tag, canbelist=False... | MAINT: rearranged logic to be more understandable. | py |
diff --git a/sos/plugins/logs.py b/sos/plugins/logs.py
index <HASH>..<HASH> 100644
--- a/sos/plugins/logs.py
+++ b/sos/plugins/logs.py
@@ -50,6 +50,18 @@ class Logs(Plugin):
if os.path.isfile(i):
self.add_copy_spec_limit(i, sizelimit=self.limit)
+ def postproc(self):
+ ... | [logs] Remove passwords from rsyslog Specifically this removes passwords from the following patterns $ActionLibdbiPassword <removes rest of line> pwd=<removes rest of line> Closes #<I> | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -21,7 +21,7 @@ tests_require = [
'coverage>=4.0',
'invenio-indexer>=1.0.0a10',
'invenio-jsonschemas>=1.0.0a5',
- 'invenio-marc21>=1.0.0a6',
+ 'invenio-marc21>=1.0.0a7',
'isort>=4.2.2',
'mock>=1.3... | installation: bump invenio-marc<I> | py |
diff --git a/asn1crypto/core.py b/asn1crypto/core.py
index <HASH>..<HASH> 100644
--- a/asn1crypto/core.py
+++ b/asn1crypto/core.py
@@ -1948,13 +1948,25 @@ class Sequence(Asn1Value):
if 'optional' in field_params or 'default' in field_params:
id_ = (parts[0], parts[2])
- ... | Properly handle Choice fields that are optional | py |
diff --git a/galpy/df_src/streamgapdf.py b/galpy/df_src/streamgapdf.py
index <HASH>..<HASH> 100644
--- a/galpy/df_src/streamgapdf.py
+++ b/galpy/df_src/streamgapdf.py
@@ -170,29 +170,8 @@ class streamgapdf(galpy.df_src.streamdf.streamdf):
self._tdisrupt-self._timpact)
... | Density in configuration space for streamgapdf and streampepperdf | py |
diff --git a/osrparse/replay.py b/osrparse/replay.py
index <HASH>..<HASH> 100644
--- a/osrparse/replay.py
+++ b/osrparse/replay.py
@@ -148,7 +148,7 @@ class Replay(object):
def parse_replay(replay_data, pure_lzma=False):
return Replay(replay_data, pure_lzma)
-def parse_replay_file(replay_path):
+def parse_repla... | add option to parse a pure lzma file from its path | py |
diff --git a/netshowlib/linux/iface.py b/netshowlib/linux/iface.py
index <HASH>..<HASH> 100644
--- a/netshowlib/linux/iface.py
+++ b/netshowlib/linux/iface.py
@@ -9,7 +9,6 @@ import netshowlib.linux.ipaddr as ipaddr
import os
import re
from datetime import datetime
-import netshowlib.linux.stp.kernel as kernel_stp
... | untested fixes . do not check for subinterfaces if interface is already a subint | py |
diff --git a/test/python/test_quantumprogram.py b/test/python/test_quantumprogram.py
index <HASH>..<HASH> 100644
--- a/test/python/test_quantumprogram.py
+++ b/test/python/test_quantumprogram.py
@@ -592,6 +592,18 @@ class TestQuantumProgram(unittest.TestCase):
QP_program.set_api(API_TOKEN, URL)
availa... | added tests for online_simulators() and online_devices() (#<I>) | py |
diff --git a/listmodel/_listmodel.py b/listmodel/_listmodel.py
index <HASH>..<HASH> 100644
--- a/listmodel/_listmodel.py
+++ b/listmodel/_listmodel.py
@@ -108,6 +108,12 @@ class ListModel(ContextHolder):
self._next_row += 1
return self.__rowcls__(context=row)
+ def __len__(self):
+ ... | Added len and getitem support | py |
diff --git a/pyked/chemked.py b/pyked/chemked.py
index <HASH>..<HASH> 100644
--- a/pyked/chemked.py
+++ b/pyked/chemked.py
@@ -337,7 +337,7 @@ class ChemKED(object):
component = etree.SubElement(prop, 'component')
species_link = etree.SubElement(component, 'speciesLink')
... | if get -> if get is not None | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -38,7 +38,7 @@ setuptools.setup(
install_requires=dependencies(),
platforms=['Unix'],
classifiers=[
- 'Development Status :: 3 - Alpha',
+ 'Development Status :: 4 - Beta',
... | setup: set dev status to beta | py |
diff --git a/karaage/plugins/kgapplications/views/states.py b/karaage/plugins/kgapplications/views/states.py
index <HASH>..<HASH> 100644
--- a/karaage/plugins/kgapplications/views/states.py
+++ b/karaage/plugins/kgapplications/views/states.py
@@ -165,6 +165,12 @@ class StatePassword(base.State):
name = "Password"
... | Ensure user is applicant before allowing submit on password state It makes no sense to allow the admin to click submit and proceed with the application when the password has not been set. | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.