diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/tools/clean.py b/tools/clean.py
index <HASH>..<HASH> 100644
--- a/tools/clean.py
+++ b/tools/clean.py
@@ -18,7 +18,15 @@ Only really intended to be used by internal build scripts.
"""
import os
+import sys
+
try:
os.remove("pymongo/_cbson.so")
except:
pass
+
+try:
+ from pymongo import _... | minor: clean script fails if cleaning fails | py |
diff --git a/pyinfra/api/util.py b/pyinfra/api/util.py
index <HASH>..<HASH> 100644
--- a/pyinfra/api/util.py
+++ b/pyinfra/api/util.py
@@ -372,10 +372,9 @@ class get_file_io(object):
@property
def cache_key(self):
- if hasattr(self.filename_or_io, 'read'):
- return id(self.filename_or_io)
... | Only cache calculated SHA1s for on-disk files (nothing in-memory). | py |
diff --git a/allauth/account/forms.py b/allauth/account/forms.py
index <HASH>..<HASH> 100644
--- a/allauth/account/forms.py
+++ b/allauth/account/forms.py
@@ -32,7 +32,7 @@ class PasswordField(forms.CharField):
app_settings.PASSWORD_INPUT_RENDER_VALUE)
kwargs['widget'] = form... | Fix placeholder of "Password (again)" fields Both fields "Password" and "Password (again)" passed same placeholder (Password) to forms.PasswordInput, even with the label changing correctly. This commit fix that behavior using the label of Password field also as placeholder. | py |
diff --git a/salt/utils/schedule.py b/salt/utils/schedule.py
index <HASH>..<HASH> 100644
--- a/salt/utils/schedule.py
+++ b/salt/utils/schedule.py
@@ -443,6 +443,9 @@ class Schedule(object):
config_dir,
os.path.dirname(self.opts.get('default_include',
... | Save _schedule.conf under <minion ID> dir So each proxy can have its own scheduled functions, independently. | py |
diff --git a/pythran/spec.py b/pythran/spec.py
index <HASH>..<HASH> 100644
--- a/pythran/spec.py
+++ b/pythran/spec.py
@@ -107,8 +107,9 @@ class SpecParser:
p[0] = eval(p[1])
def p_error(self, p):
- err = SyntaxError("Invalid Pythran spec near '" + str(p.value) + "'")
- err.lineno = p.line... | Fix error when no parenthesis in export statement The previous, verbose code actually crashed when for example someone forgets to put parenthesis: def test(): ... In that case the p token passed to p_error is None, and so it crashes when trying to access p.value | py |
diff --git a/beaver/config.py b/beaver/config.py
index <HASH>..<HASH> 100644
--- a/beaver/config.py
+++ b/beaver/config.py
@@ -376,6 +376,8 @@ class FileConfig():
self._logger.debug('Skipping glob due to no files found: %s' % filename)
continue
+ config = self._gen_config(... | ensure all sections have the proper values on start | py |
diff --git a/webapi_tests/certapp/certapp.py b/webapi_tests/certapp/certapp.py
index <HASH>..<HASH> 100644
--- a/webapi_tests/certapp/certapp.py
+++ b/webapi_tests/certapp/certapp.py
@@ -62,7 +62,7 @@ class CertAppMixin(object):
self.assertTrue("certtest" in self.marionette.get_url())
# Request that... | fixup! Bug <I> - Turn on screen, unlock screen, and disable dimming | py |
diff --git a/piwik/indico_piwik/plugin.py b/piwik/indico_piwik/plugin.py
index <HASH>..<HASH> 100644
--- a/piwik/indico_piwik/plugin.py
+++ b/piwik/indico_piwik/plugin.py
@@ -94,8 +94,8 @@ class PiwikPlugin(IndicoPlugin):
self.register_js_bundle('jqtree_js', 'js/lib/jqTree/tree.jquery.js')
self.regist... | Piwik: Do not track attachment downloads from preview We already tracked it when opening the preview | py |
diff --git a/wfdb/io/record.py b/wfdb/io/record.py
index <HASH>..<HASH> 100644
--- a/wfdb/io/record.py
+++ b/wfdb/io/record.py
@@ -2738,7 +2738,7 @@ def rdrecord(record_name, sampfrom=0, sampto=None, channels=None,
# Read the header fields
if (pn_dir is not None) and ('.' not in pn_dir):
- dir_list =... | Fixes download on Windows #<I> Fixes URL path error generated on Windows machines while trying to read and download certain content. Fixes #<I>. | py |
diff --git a/py/selenium/webdriver/remote/webdriver.py b/py/selenium/webdriver/remote/webdriver.py
index <HASH>..<HASH> 100644
--- a/py/selenium/webdriver/remote/webdriver.py
+++ b/py/selenium/webdriver/remote/webdriver.py
@@ -45,9 +45,10 @@ class WebDriver(object):
command_executor - Either a command.Comman... | JasonLeyba: Updating documentation about the expected type of browser_profile. r<I> | py |
diff --git a/extras/appengine/sqlformat/legacy.py b/extras/appengine/sqlformat/legacy.py
index <HASH>..<HASH> 100644
--- a/extras/appengine/sqlformat/legacy.py
+++ b/extras/appengine/sqlformat/legacy.py
@@ -105,7 +105,18 @@ def _get_examples():
def _get_sql(data, files=None):
sql = None
if files is not None ... | Silence UnicodeDecodeErrors, but try to collect some demo data. | py |
diff --git a/rux/pdf.py b/rux/pdf.py
index <HASH>..<HASH> 100644
--- a/rux/pdf.py
+++ b/rux/pdf.py
@@ -38,13 +38,7 @@ class PDFGenerator(object):
def __init__(self):
self.commands = ['wkhtmltopdf',
- '-',
- # '--quiet', # Be less verbose
- ... | command pdf add osx support | py |
diff --git a/insights/client/client.py b/insights/client/client.py
index <HASH>..<HASH> 100644
--- a/insights/client/client.py
+++ b/insights/client/client.py
@@ -363,6 +363,7 @@ def upload(config, pconn, tar_file, content_type, collection_duration=None):
upload = pconn.upload_archive(tar_file, content_type, c... | client: write lastupload during platform upload (#<I>) | py |
diff --git a/salt/config/__init__.py b/salt/config/__init__.py
index <HASH>..<HASH> 100644
--- a/salt/config/__init__.py
+++ b/salt/config/__init__.py
@@ -2218,7 +2218,6 @@ def include_config(include, orig_path, verbose, exit_on_config_errors=False):
main config file.
'''
# Protect against empty option
-... | Fix incorrect invocation of salt.config.include_config This was causing exit_on_config_errors to not be passed through, and adding an `exit_on_config_errors` key to the master config. | py |
diff --git a/pyvista/plotting/qt_plotting.py b/pyvista/plotting/qt_plotting.py
index <HASH>..<HASH> 100644
--- a/pyvista/plotting/qt_plotting.py
+++ b/pyvista/plotting/qt_plotting.py
@@ -688,6 +688,7 @@ class BackgroundPlotter(QtInteractor):
self.render_timer.timeout.connect(self.render)
self.app_wind... | Set the first_time variable to enable render (#<I>) | py |
diff --git a/skiski/ski.py b/skiski/ski.py
index <HASH>..<HASH> 100644
--- a/skiski/ski.py
+++ b/skiski/ski.py
@@ -1,6 +1,12 @@
from helper import Typename
+class VirtualCurry:
+
+ def __b__(self, x):
+ return self.dot(x)
+
+
class I(metaclass=Typename("I")):
"""
the identity operator | refrect __b__ to dot | py |
diff --git a/py/testdir_single_jvm/test_GBM_many_cols_enum.py b/py/testdir_single_jvm/test_GBM_many_cols_enum.py
index <HASH>..<HASH> 100644
--- a/py/testdir_single_jvm/test_GBM_many_cols_enum.py
+++ b/py/testdir_single_jvm/test_GBM_many_cols_enum.py
@@ -136,7 +136,7 @@ class Basic(unittest.TestCase):
# ... | Drop from <I> trees to <I> so the test finishes. | py |
diff --git a/cmd2.py b/cmd2.py
index <HASH>..<HASH> 100755
--- a/cmd2.py
+++ b/cmd2.py
@@ -319,7 +319,8 @@ def get_paste_buffer():
"""
pb_str = pyperclip.paste()
- if six.PY2:
+ # If value returned from the clipboard is unicode and this is Python 2, convert to a "normal" Python 2 string first
+ if ... | Minor attempt at ruggedization of clipboard stuff in some weird cases on Python 2 | py |
diff --git a/beanstalkc.py b/beanstalkc.py
index <HASH>..<HASH> 100644
--- a/beanstalkc.py
+++ b/beanstalkc.py
@@ -185,7 +185,7 @@ class Connection(object):
['NOT_FOUND'])
-class Job:
+class Job(object):
def __init__(self, conn, jid, body, reserved=True):
self.conn =... | Minor nit: make Job inherit from object | py |
diff --git a/bakery/management/commands/build.py b/bakery/management/commands/build.py
index <HASH>..<HASH> 100644
--- a/bakery/management/commands/build.py
+++ b/bakery/management/commands/build.py
@@ -221,14 +221,16 @@ Will use settings.BUILD_DIR by default."
# If it is one we want to gzip...
... | More logging for #<I> | py |
diff --git a/ruuvitag_sensor/decoder.py b/ruuvitag_sensor/decoder.py
index <HASH>..<HASH> 100644
--- a/ruuvitag_sensor/decoder.py
+++ b/ruuvitag_sensor/decoder.py
@@ -17,10 +17,16 @@ def get_decoder(data_type):
object: Data decoder
"""
if data_type == 2:
+ log.warning("DATA TYPE 2 IS OBSOLETE.... | Add deprecation warnings for outdated protocols (#<I>) As of <I> days ago, Ruuvi marked older protocols as obsolete or deprecated. | py |
diff --git a/oceansdb/cars.py b/oceansdb/cars.py
index <HASH>..<HASH> 100644
--- a/oceansdb/cars.py
+++ b/oceansdb/cars.py
@@ -155,6 +155,16 @@ class CARS_var_nc(object):
self.load_dims(dims=['lat', 'lon', 'depth'])
self.set_keys()
+ def __getitem__(self, item):
+ """
+ !!!ATENT... | Temporary solution to getitem for CARS. | py |
diff --git a/openquake/risk/job/general.py b/openquake/risk/job/general.py
index <HASH>..<HASH> 100644
--- a/openquake/risk/job/general.py
+++ b/openquake/risk/job/general.py
@@ -218,8 +218,10 @@ class RiskJobMixin(mixins.Mixin):
Generates the tuples (point, asset) for all assets known to this job
tha... | Commented grid_assets Former-commit-id: <I>da<I>fcec3e<I>cbc<I>fbc6f<I>e<I>f<I>f<I> | py |
diff --git a/pocket.py b/pocket.py
index <HASH>..<HASH> 100644
--- a/pocket.py
+++ b/pocket.py
@@ -1,4 +1,5 @@
import requests
+import json
from functools import wraps
@@ -79,7 +80,7 @@ def bulk_wrapper(fn):
'actions': [query],
}
payload.update(self._payload)
- ... | added headers to bulk request for some reason, calls to /v3/send needed application/json content type headers, else would raise <I> | py |
diff --git a/blockstore/lib/operations/preorder.py b/blockstore/lib/operations/preorder.py
index <HASH>..<HASH> 100644
--- a/blockstore/lib/operations/preorder.py
+++ b/blockstore/lib/operations/preorder.py
@@ -185,7 +185,8 @@ def parse(bin_payload):
return {
'opcode': 'NAME_PREORDER',
'preorder_... | Add implicit quantity field to preorder (= 1 for single preorder) | py |
diff --git a/src/urh/dev/gr/SpectrumThread.py b/src/urh/dev/gr/SpectrumThread.py
index <HASH>..<HASH> 100644
--- a/src/urh/dev/gr/SpectrumThread.py
+++ b/src/urh/dev/gr/SpectrumThread.py
@@ -30,6 +30,9 @@ class SpectrumThread(AbstractBaseThread):
while not self.isInterruptionRequested():
t... | fix crash for spectrum analyzer with GR backend (#<I>) | py |
diff --git a/airflow/models/trigger.py b/airflow/models/trigger.py
index <HASH>..<HASH> 100644
--- a/airflow/models/trigger.py
+++ b/airflow/models/trigger.py
@@ -24,6 +24,7 @@ from airflow.models.base import Base
from airflow.models.taskinstance import TaskInstance
from airflow.triggers.base import BaseTrigger
from... | Handle occasional deadlocks in trigger with retries (#<I>) Fixes: #<I> | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -35,8 +35,8 @@ setup(
# 'Development Status :: 1 - Planning',
# 'Development Status :: 2 - Pre-Alpha',
# 'Development Status :: 3 - Alpha',
- 'Development Status :: 4 - Beta',
- # 'Deve... | Upgrade development status to Production/Stable | py |
diff --git a/djangoratings/models.py b/djangoratings/models.py
index <HASH>..<HASH> 100644
--- a/djangoratings/models.py
+++ b/djangoratings/models.py
@@ -13,6 +13,12 @@ class Vote(models.Model):
class Meta:
unique_together = (('content_type', 'object_id', 'key', 'user', 'ip_address'))
+ def partial_... | Added partial_ip_address property to Vote model | py |
diff --git a/ipyrad/core/assembly.py b/ipyrad/core/assembly.py
index <HASH>..<HASH> 100644
--- a/ipyrad/core/assembly.py
+++ b/ipyrad/core/assembly.py
@@ -1024,7 +1024,24 @@ class Assembly(object):
else:
## index the reference sequence
## Allow force to reindex the referen... | added a progress bar tracker for reference indexing | py |
diff --git a/tests/unit/utils/test_ssdp.py b/tests/unit/utils/test_ssdp.py
index <HASH>..<HASH> 100644
--- a/tests/unit/utils/test_ssdp.py
+++ b/tests/unit/utils/test_ssdp.py
@@ -13,6 +13,7 @@ from tests.support.mock import (
from salt.utils import ssdp
import datetime
+from salt.ext.six.moves import zip
try:
... | Lintfix: W<I> (Python3 incompatibility) | py |
diff --git a/src/you_get/extractors/universal.py b/src/you_get/extractors/universal.py
index <HASH>..<HASH> 100644
--- a/src/you_get/extractors/universal.py
+++ b/src/you_get/extractors/universal.py
@@ -67,6 +67,13 @@ def universal_download(url, output_dir='.', merge=True, info_only=False, **kwarg
urls += re.f... | [universal] quick & dirty support for MPD files (with BaseURL) | py |
diff --git a/mapillary_tools/commands/video_process_and_upload.py b/mapillary_tools/commands/video_process_and_upload.py
index <HASH>..<HASH> 100644
--- a/mapillary_tools/commands/video_process_and_upload.py
+++ b/mapillary_tools/commands/video_process_and_upload.py
@@ -147,6 +147,8 @@ class Command:
vars_args... | fix: add last blackvue fix to video_process_and_upload_command | py |
diff --git a/sentry_sdk/tracing.py b/sentry_sdk/tracing.py
index <HASH>..<HASH> 100644
--- a/sentry_sdk/tracing.py
+++ b/sentry_sdk/tracing.py
@@ -272,6 +272,8 @@ class Span(object):
elif 400 <= http_status < 500:
if http_status == 403:
self.set_status("permission_denied")
+ ... | fix(tracing): Handle <I> | py |
diff --git a/salt/states/boto_secgroup.py b/salt/states/boto_secgroup.py
index <HASH>..<HASH> 100644
--- a/salt/states/boto_secgroup.py
+++ b/salt/states/boto_secgroup.py
@@ -376,7 +376,7 @@ def _rules_present(
_source_group_name = rule.get('source_group_name', None)
if _source_group_name:
... | One last bug to squash. Seriously. It's the last one. Ever! - fixed param vpc_id being passed where vpc_name was intended. | py |
diff --git a/tests/test_tester/test_core.py b/tests/test_tester/test_core.py
index <HASH>..<HASH> 100644
--- a/tests/test_tester/test_core.py
+++ b/tests/test_tester/test_core.py
@@ -931,4 +931,6 @@ def test_peek_bitwise(target, simulator, capsys):
disp_type="realtime")
out, _... | Add logics for vcs extra print lines | py |
diff --git a/src/pyrobase/fmt.py b/src/pyrobase/fmt.py
index <HASH>..<HASH> 100644
--- a/src/pyrobase/fmt.py
+++ b/src/pyrobase/fmt.py
@@ -133,6 +133,9 @@ def to_unicode(text):
try:
# Try UTF-8 first
return text.decode("UTF-8")
+ except AttributeError: # non-text types have no "decode()"
+ ... | to_unicode: try to convert non-text objects to their text representation | py |
diff --git a/kibitzr/bash.py b/kibitzr/bash.py
index <HASH>..<HASH> 100644
--- a/kibitzr/bash.py
+++ b/kibitzr/bash.py
@@ -82,6 +82,13 @@ class WindowsExecutor(BashExecutor):
EXECUTABLE = "cmd.exe"
ARGS = ["/Q", "/C"]
+ @classmethod
+ def run_scipt(cls, name, stdin):
+ return BashExecutor.run_s... | Fix pbs encoding for Windows and Python 3 | py |
diff --git a/aldryn_boilerplates/__init__.py b/aldryn_boilerplates/__init__.py
index <HASH>..<HASH> 100644
--- a/aldryn_boilerplates/__init__.py
+++ b/aldryn_boilerplates/__init__.py
@@ -4,7 +4,7 @@ from __future__ import unicode_literals, absolute_import
__version__ = '0.3'
__author__ = 'Stefan Foulis'
__license__ ... | update copyright year to <I> | py |
diff --git a/bin/noninteractive-alignment-panel.py b/bin/noninteractive-alignment-panel.py
index <HASH>..<HASH> 100755
--- a/bin/noninteractive-alignment-panel.py
+++ b/bin/noninteractive-alignment-panel.py
@@ -224,7 +224,7 @@ if __name__ == '__main__':
print('\n'.join(titlesAlignments.sortTitles('maxScore')))... | Set interactive to False in call from noninteractive-alignment-panel.py | py |
diff --git a/protos/scope/javagen/extension.py b/protos/scope/javagen/extension.py
index <HASH>..<HASH> 100644
--- a/protos/scope/javagen/extension.py
+++ b/protos/scope/javagen/extension.py
@@ -13,6 +13,7 @@ from hob.template import TextGenerator
from hob.utils import _
import hob
import os
+import re
import shuti... | Workaround for hob not encapsulating camelized words | py |
diff --git a/respite/serializers/base.py b/respite/serializers/base.py
index <HASH>..<HASH> 100644
--- a/respite/serializers/base.py
+++ b/respite/serializers/base.py
@@ -166,7 +166,7 @@ class Serializer(object):
if isinstance(anything, dict):
return serialize_dictionary(anything)
- ... | Add support for set-serialization | py |
diff --git a/py/h2o.py b/py/h2o.py
index <HASH>..<HASH> 100644
--- a/py/h2o.py
+++ b/py/h2o.py
@@ -1756,6 +1756,8 @@ class H2O(object):
'source': data_key,
# this is ignore??
'cols': None,
+ 'ignored_cols': None,
+ 'validation': None,
'response':... | still fails. does NeuralNet.json exist? | py |
diff --git a/tests/test_extensions/test_redis.py b/tests/test_extensions/test_redis.py
index <HASH>..<HASH> 100644
--- a/tests/test_extensions/test_redis.py
+++ b/tests/test_extensions/test_redis.py
@@ -2,7 +2,9 @@
from __future__ import unicode_literals, division, print_function, absolute_import
from nose.tools im... | Fixed test class name and made the test skippable if no Redis server is present. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -16,4 +16,15 @@ setup(name='chwrapper',
zip_safe=False,
install_requires=[
'requests==2.9.1',
+ ],
+ classifiers=[
+ "Operating System :: OS Independent",
+ "Programming Languag... | Add classifiers to setup.py | py |
diff --git a/mama_cas/response.py b/mama_cas/response.py
index <HASH>..<HASH> 100644
--- a/mama_cas/response.py
+++ b/mama_cas/response.py
@@ -90,7 +90,7 @@ class ValidationResponse(XmlResponseBase):
auth_failure.set('code', error.code)
auth_failure.text = error.msg
- return etree.tos... | Output CAS <I> XML responses as UTF-8 | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -20,7 +20,7 @@ setup(
author = 'Jonathan Friedman, Eugene Yurtsev',
author_email = 'eyurtsev@gmail.com',
url = 'https://gorelab.bitbucket.org/flowcytometrytools',
- download_url = 'https://bitbucket.org/gorel... | updating package download location to use github | py |
diff --git a/neurondm/neurondm/models/apinat_npo.py b/neurondm/neurondm/models/apinat_npo.py
index <HASH>..<HASH> 100644
--- a/neurondm/neurondm/models/apinat_npo.py
+++ b/neurondm/neurondm/models/apinat_npo.py
@@ -81,10 +81,20 @@ def main():
log.error(f'bad data for {c} {s} {p} {o}')
raise e
... | apinat npo hardcode fix for _sigh failures amusingly I named the variable sigh before I knew that _sigh not being called was the issue | py |
diff --git a/src/moneyed/classes.py b/src/moneyed/classes.py
index <HASH>..<HASH> 100644
--- a/src/moneyed/classes.py
+++ b/src/moneyed/classes.py
@@ -336,7 +336,7 @@ TJS = add_currency('TJS', '972', 'Somoni', ['TAJIKISTAN'])
TMM = add_currency('TMM', '795', 'Manat', ['TURKMENISTAN'])
TND = add_currency('TND', '788',... | TRY (New Lira) turned back into TRL (Lira) in <I> December <I>. New Lira was a temporary currency. | py |
diff --git a/thumbor/engines/pil.py b/thumbor/engines/pil.py
index <HASH>..<HASH> 100644
--- a/thumbor/engines/pil.py
+++ b/thumbor/engines/pil.py
@@ -169,6 +169,9 @@ class Engine(BaseEngine):
else:
options['qtables'] = qtables_config
+ if ext == '.png':
+ ... | Optimize png images as well | py |
diff --git a/test/testserver.py b/test/testserver.py
index <HASH>..<HASH> 100755
--- a/test/testserver.py
+++ b/test/testserver.py
@@ -42,9 +42,6 @@ def start(port, debug):
port=8765,
debug=False,
error_reporter=test_crash_reporter,
- jwt_secret=os.environ.get("KLUE_JWT_SECRET"),
- ... | And remove jwt arguments from testserver as well | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -49,7 +49,7 @@ A drop in replacement for Python's datetime module which cares deeply about time
if sys.version[:3] < '3.0':
data['install_requires'].append('pytz >= 2007g')
- data['install_requires'].append('python-... | Drop requirement for python-dateutil<<I> | py |
diff --git a/scot/ooapi.py b/scot/ooapi.py
index <HASH>..<HASH> 100644
--- a/scot/ooapi.py
+++ b/scot/ooapi.py
@@ -306,6 +306,8 @@ class Workspace:
self.var_model_ = None
self.var_cov_ = None
self.connectivity_ = None
+ self.mixmaps_ = []
+ self.unmixmaps_ = []
def fit_va... | Fixed source removal to invalidate topo maps | py |
diff --git a/docs/conf.py b/docs/conf.py
index <HASH>..<HASH> 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -51,7 +51,7 @@ master_doc = "index"
# General information about the project.
project = "Datasette"
-copyright = "2017-2021, Simon Willison"
+copyright = "2017-2022, Simon Willison"
author = "Simon Willison... | Updated copyright years in documentation footer | py |
diff --git a/LiSE/LiSE/alchemy.py b/LiSE/LiSE/alchemy.py
index <HASH>..<HASH> 100644
--- a/LiSE/LiSE/alchemy.py
+++ b/LiSE/LiSE/alchemy.py
@@ -425,15 +425,6 @@ def indices_for_table_dict(table):
table['senses'].c.sense
),
Index(
- 'travel_reqs_idx',
- ... | Clean up alchemy, get rid of dead db code There were a bunch of queries to fetch the *current, effective* state of game entities. These are probably useful for testing, and once helped me clarify my thinking on the data model. But they haven't been used in years and have no reason to exist in production. I might bring... | py |
diff --git a/tests/test_integrations_py2.py b/tests/test_integrations_py2.py
index <HASH>..<HASH> 100644
--- a/tests/test_integrations_py2.py
+++ b/tests/test_integrations_py2.py
@@ -4,6 +4,7 @@ except ImportError:
from io import StringIO
from datetime import timedelta
import pytest
+import sys
import asyncio
... | Ooops. Forgot import. | py |
diff --git a/zipline/finance/performance.py b/zipline/finance/performance.py
index <HASH>..<HASH> 100644
--- a/zipline/finance/performance.py
+++ b/zipline/finance/performance.py
@@ -508,7 +508,7 @@ class PerformancePeriod(object):
return int(base * round(float(x) / base))
def calculate_positions_value(... | Uses numpy.dot instead numpy.vdot to calculate positions value. Since the position amount and price ndarrays are one dimensional and use real numbers, we do not need the overhead of the extra case handling provided by numpy.vdot, which comes at a cost of performance. With | py |
diff --git a/osmnx/footprints.py b/osmnx/footprints.py
index <HASH>..<HASH> 100644
--- a/osmnx/footprints.py
+++ b/osmnx/footprints.py
@@ -1,6 +1,7 @@
"""Download and plot footprints from OpenStreetMap."""
import geopandas as gpd
+import numpy as np
from shapely.geometry import LineString
from shapely.geometry im... | ensure footprints gdf has a geometry col before assigning crs | py |
diff --git a/pages/placeholders.py b/pages/placeholders.py
index <HASH>..<HASH> 100644
--- a/pages/placeholders.py
+++ b/pages/placeholders.py
@@ -1,5 +1,4 @@
"""Placeholder module, that's where the smart things happen."""
-
from pages.widgets_registry import get_widget
from pages import settings
from pages.models ... | test the data for what type we are looking for | py |
diff --git a/core/src/rabird/core/string.py b/core/src/rabird/core/string.py
index <HASH>..<HASH> 100644
--- a/core/src/rabird/core/string.py
+++ b/core/src/rabird/core/string.py
@@ -4,6 +4,12 @@
'''
def cstring_encode(text):
+ '''
+ Encode the input text as a c style string .
+
+ Convert something li... | Added comments about cstring_encode() | py |
diff --git a/pysat/instruments/icon_ivm.py b/pysat/instruments/icon_ivm.py
index <HASH>..<HASH> 100644
--- a/pysat/instruments/icon_ivm.py
+++ b/pysat/instruments/icon_ivm.py
@@ -61,6 +61,7 @@ sat_ids = {'a': [''],
_test_dates = {'a': {'': dt.datetime(2020, 1, 1)},
'b': {'': dt.datetime(2020, 1, 1)}} ... | BUG: ivm-b needs test_download=False | py |
diff --git a/squad/ci/backend/lava.py b/squad/ci/backend/lava.py
index <HASH>..<HASH> 100644
--- a/squad/ci/backend/lava.py
+++ b/squad/ci/backend/lava.py
@@ -69,6 +69,9 @@ class Backend(BaseBackend):
self.context = zmq.Context()
self.socket = self.context.socket(zmq.SUB)
self.socket.setsocko... | ci/lava: set heartbeat options They seem to provide a good improvement in the quality of connection with the LAVA server ZMQ endpoint. Without these, whenever there was a period of a few minutes without new messages, we would stop receiving messages forever. | py |
diff --git a/benchexec/tools/two_ls.py b/benchexec/tools/two_ls.py
index <HASH>..<HASH> 100644
--- a/benchexec/tools/two_ls.py
+++ b/benchexec/tools/two_ls.py
@@ -50,7 +50,7 @@ class Tool(benchexec.tools.template.BaseTool2):
elif returncode == 0:
status = result.RESULT_TRUE_PROP
elif retu... | updated two_ls: replaced length check on run.output | py |
diff --git a/src/qinfer/tests/test_test.py b/src/qinfer/tests/test_test.py
index <HASH>..<HASH> 100644
--- a/src/qinfer/tests/test_test.py
+++ b/src/qinfer/tests/test_test.py
@@ -54,8 +54,6 @@ class TestTest(DerandomizedTestCase):
def test_assert_warns_nowarn(self):
with assert_warns(RuntimeWarning):
... | changed class of test_test_model_runs | py |
diff --git a/ravel.py b/ravel.py
index <HASH>..<HASH> 100644
--- a/ravel.py
+++ b/ravel.py
@@ -300,17 +300,17 @@ class Bus :
#end Bus
-def SessionBus() :
+def session_bus() :
"returns a Bus object for the current D-Bus session bus."
return \
Bus(dbus.Connection.bus_get(DBUS.BUS_SESSION, private ... | use more usual function names for obtaining system/session Bus objects | py |
diff --git a/jackal/core.py b/jackal/core.py
index <HASH>..<HASH> 100644
--- a/jackal/core.py
+++ b/jackal/core.py
@@ -65,7 +65,8 @@ class Host(DocType):
'scripts_results': Text(multi=True),
'protocol': Keyword(),
'id': Keyword(),
- 'reason': Keyword()
+ 'rea... | Implemented search function for hosts. | py |
diff --git a/projex/xbuild/builder.py b/projex/xbuild/builder.py
index <HASH>..<HASH> 100644
--- a/projex/xbuild/builder.py
+++ b/projex/xbuild/builder.py
@@ -130,7 +130,7 @@ class Builder(object):
'logo': projex.resources.find('img/logo.ico'),
'header_image': projex.resources.find('img/instal... | switched option to choose_dir -- _directory is utilized to map pathing settings | py |
diff --git a/django_tenants/postgresql_backend/base.py b/django_tenants/postgresql_backend/base.py
index <HASH>..<HASH> 100644
--- a/django_tenants/postgresql_backend/base.py
+++ b/django_tenants/postgresql_backend/base.py
@@ -21,7 +21,7 @@ original_backend = import_module(ORIGINAL_BACKEND + '.base')
EXTRA_SEARCH_PATH... | allow using only numbers to name a schema | py |
diff --git a/puzzle/plugins/sql/__init__.py b/puzzle/plugins/sql/__init__.py
index <HASH>..<HASH> 100644
--- a/puzzle/plugins/sql/__init__.py
+++ b/puzzle/plugins/sql/__init__.py
@@ -1,2 +1,4 @@
# -*- coding: utf-8 -*-
+from .case_mixin import CaseMixin
+from .variant_mixin import VariantMixin
from .store import Stor... | Added CaseMixin and VariantMixin to __init__ in sql adapter | py |
diff --git a/pymake/suite.py b/pymake/suite.py
index <HASH>..<HASH> 100644
--- a/pymake/suite.py
+++ b/pymake/suite.py
@@ -45,9 +45,13 @@ class PymakeSuite(object):
:return: A valid PymakeSolution instance if succesful; None otherwise.
"""
s = PymakeSolution(**kwargs)
+
s.Name = conf... | Added small validation for a Visual Studio version value. | py |
diff --git a/spinoff/actor/comm.py b/spinoff/actor/comm.py
index <HASH>..<HASH> 100644
--- a/spinoff/actor/comm.py
+++ b/spinoff/actor/comm.py
@@ -77,6 +77,7 @@ class Comm(BaseActor):
@classmethod
def get_for_thread(self):
+ assert self._current
return self._current
def __init__(self,... | Added Comm.install and Comm.uninstall + sanity check in Comm.get_for_thread | py |
diff --git a/logentry_admin/admin.py b/logentry_admin/admin.py
index <HASH>..<HASH> 100644
--- a/logentry_admin/admin.py
+++ b/logentry_admin/admin.py
@@ -26,7 +26,6 @@ class LogEntryAdmin(admin.ModelAdmin):
'user',
'content_type',
'object_link',
- 'action_flag',
'action_descr... | We don’t need both action flag and description. Drop from list page the one nobody can read. | py |
diff --git a/sos/plugins/openvswitch.py b/sos/plugins/openvswitch.py
index <HASH>..<HASH> 100644
--- a/sos/plugins/openvswitch.py
+++ b/sos/plugins/openvswitch.py
@@ -158,7 +158,7 @@ class OpenVSwitch(Plugin):
class RedHatOpenVSwitch(OpenVSwitch, RedHatPlugin):
- packages = ('openvswitch', 'openvswitch-dpdk')
+... | [openvswitch] catch all openvswitch2.* packages Since the release of openvswitch <I>, the Red Hat Fast Datapath channel maintains multiple versions of openvswitch. Update the list of packages using a wildcard to catch all openvswitch2.* packages. Resolves: #<I> | py |
diff --git a/src/dolo/misc/calculus.py b/src/dolo/misc/calculus.py
index <HASH>..<HASH> 100644
--- a/src/dolo/misc/calculus.py
+++ b/src/dolo/misc/calculus.py
@@ -51,7 +51,14 @@ def solve_triangular_system(sdict,return_order=False,unknown_type=sympy.Symbol):
else:
res = copy.copy(sdict)
for s in ... | (Slightly) better error messages for non triangular systems. | py |
diff --git a/test/test_signature.py b/test/test_signature.py
index <HASH>..<HASH> 100644
--- a/test/test_signature.py
+++ b/test/test_signature.py
@@ -508,7 +508,7 @@ run:
script = SoS_Script('''
[process: provides='a.txt']
run:
- echo 'a.txt' > a.txt
+ echo a.txt > a.txt
[default]
depends: 'a.txt'... | Tweak tests for windows/AppVeyor | py |
diff --git a/vtkplotter/shapes.py b/vtkplotter/shapes.py
index <HASH>..<HASH> 100644
--- a/vtkplotter/shapes.py
+++ b/vtkplotter/shapes.py
@@ -1277,7 +1277,7 @@ class Arc(Mesh):
):
if len(point1) == 2:
point1 = (point1[0], point1[1], 0)
- if len(point2) == 2:
+ if point2 is not ... | Check if point2 is not None | py |
diff --git a/src/toil/__init__.py b/src/toil/__init__.py
index <HASH>..<HASH> 100644
--- a/src/toil/__init__.py
+++ b/src/toil/__init__.py
@@ -48,7 +48,10 @@ def toilPackageDirPath():
def inVirtualEnv():
- return hasattr(sys, 'real_prefix')
+ """
+ Returns whether we are inside a virtualenv or Conda virtu... | Add recognition of conda virtual envs, resolves #<I> When running toil in a Conda virtual environment instead of virtualenv, _toil_worker could not be found without explicitely setting the PATH environment variable. This commit adds recognition of Conda virtual environments and fixes this issue. | py |
diff --git a/vcfpy/reader.py b/vcfpy/reader.py
index <HASH>..<HASH> 100644
--- a/vcfpy/reader.py
+++ b/vcfpy/reader.py
@@ -91,7 +91,7 @@ class Reader:
if self.tabix_file and not self.tabix_file.closed:
self.tabix_file.close()
# open tabix file if not yet open
- if not self.tabix_fi... | Fixing jumping a second time in Reader | py |
diff --git a/insights/__init__.py b/insights/__init__.py
index <HASH>..<HASH> 100644
--- a/insights/__init__.py
+++ b/insights/__init__.py
@@ -15,6 +15,7 @@ from .core.hydration import create_context
from .core.plugins import combiner, fact, metadata, parser, rule # noqa: F401
from .core.plugins import datasource, c... | Add make_pass, make_fail to insights top level package. | py |
diff --git a/neurom/io/neurolucida.py b/neurom/io/neurolucida.py
index <HASH>..<HASH> 100644
--- a/neurom/io/neurolucida.py
+++ b/neurom/io/neurolucida.py
@@ -88,7 +88,7 @@ def _get_tokens(morph_fd):
Note: this also strips newlines and comments
'''
- for line in morph_fd.readlines():
+ for line in mor... | Encoding error handling in NeuroLucida reader Use error='replace' when opening the file. This causes unknown bytes to be replaced by '?' instead of having the reader crashing | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -40,7 +40,7 @@ class Tox(TestCommand):
setup(
name="django-easy-select2",
- version="1.4.0",
+ version="1.5.0",
packages=find_packages(),
author="asyncee",
description="Django select2 theme for sel... | Version bumped to <I> | py |
diff --git a/psamm/metabolicmodel.py b/psamm/metabolicmodel.py
index <HASH>..<HASH> 100644
--- a/psamm/metabolicmodel.py
+++ b/psamm/metabolicmodel.py
@@ -341,7 +341,7 @@ class MetabolicModel(MetabolicDatabase):
return model
@classmethod
- def load_model(cls, database, reaction_iter, medium=None, lim... | metabolicmodel: Add all reactions from database by default If a None reaction iterable is given to load_model(), all reactions from the database are added. This avoids having to contruct the iterator for this common case. | py |
diff --git a/thinc/shims/tensorflow.py b/thinc/shims/tensorflow.py
index <HASH>..<HASH> 100644
--- a/thinc/shims/tensorflow.py
+++ b/thinc/shims/tensorflow.py
@@ -200,23 +200,6 @@ class TensorFlowShim(Shim):
else:
yield
- def _update_tensorflow_averages(self, sgd, *, init_steps=1):
- i... | drop unused averages code in tf shim | py |
diff --git a/adafruit_ads1x15/ads1x15.py b/adafruit_ads1x15/ads1x15.py
index <HASH>..<HASH> 100644
--- a/adafruit_ads1x15/ads1x15.py
+++ b/adafruit_ads1x15/ads1x15.py
@@ -57,7 +57,7 @@ _ADS1X15_CONFIG_GAIN = {
class ADS1x15(object):
"""Base functionality for ADS1x15 analog to digital converters."""
- def __i... | you're the one that made me break it into two lines! | py |
diff --git a/yamcs-client/yamcs/tmtc/model.py b/yamcs-client/yamcs/tmtc/model.py
index <HASH>..<HASH> 100644
--- a/yamcs-client/yamcs/tmtc/model.py
+++ b/yamcs-client/yamcs/tmtc/model.py
@@ -202,7 +202,7 @@ class IssuedCommand(object):
:type: :class:`~datetime.datetime`
"""
if self._proto.Has... | fixed the datetime conversion broken since the field has been changed to Timestamp | py |
diff --git a/astrocats/catalog/entry.py b/astrocats/catalog/entry.py
index <HASH>..<HASH> 100644
--- a/astrocats/catalog/entry.py
+++ b/astrocats/catalog/entry.py
@@ -451,7 +451,8 @@ class Entry(OrderedDict):
# duplicate is found, that means the previous `exclude` array
# should be saved to th... | BUG: only copy exclude if it exists | py |
diff --git a/common/test_polygon.py b/common/test_polygon.py
index <HASH>..<HASH> 100644
--- a/common/test_polygon.py
+++ b/common/test_polygon.py
@@ -2010,18 +2010,25 @@ class Test_Polygon(unittest.TestCase):
A = numpy.array(A, dtype='f')
M, N = A.shape
+ print
print M, N
+ p... | Revisited test_grid2points (not done at all) | py |
diff --git a/meshio/helpers.py b/meshio/helpers.py
index <HASH>..<HASH> 100644
--- a/meshio/helpers.py
+++ b/meshio/helpers.py
@@ -95,7 +95,7 @@ def read(filename, file_format=None):
if not file_format:
# deduce file format from extension
- extension = '.' + filename.split(os.extsep, 1)[-1]
+ ... | took basename of filename in case the path is nontrivial #<I> | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -9,7 +9,7 @@ os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir)))
setup(
name='dependenpy',
- version='1.1.0',
+ version='1.1.1',
packages=['dependenpy'],
license='MPL 2.0',
... | Updated setup for version <I> | py |
diff --git a/mtp_common/user_admin/forms.py b/mtp_common/user_admin/forms.py
index <HASH>..<HASH> 100644
--- a/mtp_common/user_admin/forms.py
+++ b/mtp_common/user_admin/forms.py
@@ -131,6 +131,10 @@ class SignUpForm(ApiForm):
self.error_conditions = {}
@property
+ def api_session(self):
+ ret... | Ensure user sign-up form uses unauthenticated api connection … also used for moving prison (and region later on) | py |
diff --git a/tenant_schemas/models.py b/tenant_schemas/models.py
index <HASH>..<HASH> 100644
--- a/tenant_schemas/models.py
+++ b/tenant_schemas/models.py
@@ -50,11 +50,14 @@ class TenantMixin(models.Model):
cursor.execute('CREATE SCHEMA %s' % self.schema_name)
if sync_schema:
- call_comm... | when creating a tenant, all models get synced via syncdb and then the migrations are faked. (instead of calling syncdb and then migrate) | py |
diff --git a/spyder/widgets/variableexplorer/collectionseditor.py b/spyder/widgets/variableexplorer/collectionseditor.py
index <HASH>..<HASH> 100644
--- a/spyder/widgets/variableexplorer/collectionseditor.py
+++ b/spyder/widgets/variableexplorer/collectionseditor.py
@@ -1305,7 +1305,10 @@ class CollectionsEditor(QDialo... | Handle error when using deepcopy in the collections editor. | py |
diff --git a/server.py b/server.py
index <HASH>..<HASH> 100644
--- a/server.py
+++ b/server.py
@@ -143,7 +143,7 @@ def rs_del(rs_id):
except StandardError as e:
print repr(e)
return send_result(400)
- return send_result(200, result)
+ return send_result(204, result)
@route('/rs/<rs_id>... | use <I> code to success replica delete response | py |
diff --git a/dark/utils.py b/dark/utils.py
index <HASH>..<HASH> 100644
--- a/dark/utils.py
+++ b/dark/utils.py
@@ -809,8 +809,10 @@ def alignmentGraph(recordFilenameOrHits, hitId, fastaFilename, db='nt',
# Color each query by its bases.
xScale = 3
yScale = 2
- baseImage = BaseImage(max... | Fixed off-by-one error when coloring bases and ranking evalues. | py |
diff --git a/safe/common/qgis_interface.py b/safe/common/qgis_interface.py
index <HASH>..<HASH> 100644
--- a/safe/common/qgis_interface.py
+++ b/safe/common/qgis_interface.py
@@ -142,10 +142,14 @@ class QgisInterface(QObject):
#LOGGER.debug('Layer Count Before: %s' % len(self.canvas.layers()))
current... | Keep record of registered layers in our testing CANVAS. | py |
diff --git a/openid/store/sqlstore.py b/openid/store/sqlstore.py
index <HASH>..<HASH> 100644
--- a/openid/store/sqlstore.py
+++ b/openid/store/sqlstore.py
@@ -432,7 +432,12 @@ class MySQLStore(SQLStore):
clean_nonce_sql = 'DELETE FROM %(nonces)s WHERE timestamp < %%s;'
def blobDecode(self, blob):
- r... | [project @ Fix blob encoding for newer versions of MySQLdb] | py |
diff --git a/py/testdir_single_jvm/test_exec2_append_cols.py b/py/testdir_single_jvm/test_exec2_append_cols.py
index <HASH>..<HASH> 100644
--- a/py/testdir_single_jvm/test_exec2_append_cols.py
+++ b/py/testdir_single_jvm/test_exec2_append_cols.py
@@ -54,7 +54,7 @@ class Basic(unittest.TestCase):
msg="a... | test tried to select non-existant column | py |
diff --git a/arctic/store/_ndarray_store.py b/arctic/store/_ndarray_store.py
index <HASH>..<HASH> 100644
--- a/arctic/store/_ndarray_store.py
+++ b/arctic/store/_ndarray_store.py
@@ -409,6 +409,9 @@ class NdarrayStore(object):
version['type'] = self.TYPE
version[FW_POINTERS_CONFIG_KEY] = ARCTIC_FORW... | Issue <I>: Initialize SEGMENT_SHA in versions for writes and appends This would help preventing issues where we are accessing this key in versions without being initialized. This is only done for cases where it's either HYBRID or ENABLED mode as this field should not be used in other cases anyways. | py |
diff --git a/tools/interop_matrix/client_matrix.py b/tools/interop_matrix/client_matrix.py
index <HASH>..<HASH> 100644
--- a/tools/interop_matrix/client_matrix.py
+++ b/tools/interop_matrix/client_matrix.py
@@ -103,6 +103,9 @@ LANG_RELEASE_MATRIX = {
{
'v1.8.1': None
},
+ {
+ ... | Add go release versions to client_matrix.py | py |
diff --git a/discord/invite.py b/discord/invite.py
index <HASH>..<HASH> 100644
--- a/discord/invite.py
+++ b/discord/invite.py
@@ -109,6 +109,12 @@ class Invite(Hashable):
guild = Object(id=guild_id)
channel = Object(id=channel_id)
guild.name = data['guild']['name']
+
+ ... | Add support for splash(_url) to invites | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.