diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/timepiece/forms.py b/timepiece/forms.py
index <HASH>..<HASH> 100644
--- a/timepiece/forms.py
+++ b/timepiece/forms.py
@@ -174,7 +174,7 @@ class QuickClockInForm(forms.Form):
def __init__(self, *args, **kwargs):
user = kwargs.pop('user')
super(QuickClockInForm, self).__init__(*args, *... | Fixed settings name error in forms.py resulting from merge from master | py |
diff --git a/falafel/mappers/rhn_server_xmlrpc.py b/falafel/mappers/rhn_server_xmlrpc.py
index <HASH>..<HASH> 100644
--- a/falafel/mappers/rhn_server_xmlrpc.py
+++ b/falafel/mappers/rhn_server_xmlrpc.py
@@ -44,15 +44,9 @@ class ServerXMLRPCLog(LogFileOutput):
return msg_info
- def __contains__(self, s):... | Removed __contains__ already provided by LogFileOutput | py |
diff --git a/law/contrib/__init__.py b/law/contrib/__init__.py
index <HASH>..<HASH> 100644
--- a/law/contrib/__init__.py
+++ b/law/contrib/__init__.py
@@ -5,19 +5,30 @@ Package containing optional and third-party functionality.
"""
+__all__ = ["load", "loaded_packages", "available_packages"]
+
+
import os
import... | Add available_packages to law.contrib. | py |
diff --git a/pyfactor/utils.py b/pyfactor/utils.py
index <HASH>..<HASH> 100644
--- a/pyfactor/utils.py
+++ b/pyfactor/utils.py
@@ -1,3 +1,7 @@
+import pandas as pd
+import numpy as np
+
+
def add_forward_price_movement(daily_factor, prices, days=[1, 5, 10]):
"""
Adds N day forward price movements (as percent... | Handle Series, DF, multi-index, no multi-index when adding forward price | py |
diff --git a/tasks.py b/tasks.py
index <HASH>..<HASH> 100644
--- a/tasks.py
+++ b/tasks.py
@@ -28,7 +28,7 @@ www = Collection.from_module(_docs, name='www', config={
# Until we move to spec-based testing
@task
def test(ctx):
- ctx.run("python test.py --verbose")
+ ctx.run("python test.py --verbose", pty=True)
... | Force PTY in test runner so Python 3's buffering behavior isn't frustrating | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -2,7 +2,7 @@ from setuptools import setup, find_packages
setup(
name='salic-ml',
- version='0.0.7',
+ version='0.0.8',
description='Automate the Salic proposal admission process',
url='https://github.co... | Update package version to <I> | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -115,6 +115,7 @@ Python >= 3.6, ctypes and a pre-built USB backend library
'Topic :: Software Development :: Libraries',
'Topic :: Software Development :: Libraries :: Python Modules',
'Topic :: Syst... | Prevent installation on unsupported Python versions (#<I>) As of January <I> PyUSB no longer supports Python <I> or <I>. Renamed from: "Stop further releasing to Python 2" | py |
diff --git a/temperusb/temper.py b/temperusb/temper.py
index <HASH>..<HASH> 100644
--- a/temperusb/temper.py
+++ b/temperusb/temper.py
@@ -12,6 +12,7 @@ import usb
import os
import re
import logging
+import struct
VIDPIDS = [
(0x0c45, 0x7401),
@@ -304,7 +305,8 @@ class TemperDevice(object):
# Interp... | Update temper.py to fix temperature conversion The temperature is returned as a signed <I> fixed point representation. Use `struct.unpack_from()` to get the signed value out correctly. Otherwise the readings go crazy when it's very cold. | py |
diff --git a/tests/test_xarray_reader_writer.py b/tests/test_xarray_reader_writer.py
index <HASH>..<HASH> 100644
--- a/tests/test_xarray_reader_writer.py
+++ b/tests/test_xarray_reader_writer.py
@@ -41,7 +41,7 @@ def test_mms_fpi():
to_unixtime=True, fillval_to_nan=True)
os.remove('mm... | Still identifying limitations with github actions | py |
diff --git a/mailchimp3/entities/searchcampaigns.py b/mailchimp3/entities/searchcampaigns.py
index <HASH>..<HASH> 100644
--- a/mailchimp3/entities/searchcampaigns.py
+++ b/mailchimp3/entities/searchcampaigns.py
@@ -20,7 +20,7 @@ class SearchCampaigns(BaseApi):
Initialize the endpoint
"""
supe... | Fixing the search-campaigns endpoint - wrong url | py |
diff --git a/wpull/body.py b/wpull/body.py
index <HASH>..<HASH> 100644
--- a/wpull/body.py
+++ b/wpull/body.py
@@ -36,7 +36,7 @@ class Body(object):
``bytes``: The entire content of the file.
'''
if not self._content_data:
- if self.file.seekable():
+ if is_seekable(... | body.Body.size: Check for seekable attribute first. | py |
diff --git a/influxdb_metrics/middleware.py b/influxdb_metrics/middleware.py
index <HASH>..<HASH> 100644
--- a/influxdb_metrics/middleware.py
+++ b/influxdb_metrics/middleware.py
@@ -112,4 +112,8 @@ class InfluxDBRequestMiddleware(MiddlewareMixin):
},
'fields': {'value': ms, },
... | Catch possible connection issues with the MQ In systems with limited resources, there is a well known problem that celery/rabbitmq cannot handle too many requests. Therefore it's possible that the connection to the MQ fails with errors such as ```ConnectionError: Error <I> while writing to socket. Connection reset by ... | py |
diff --git a/salt/states/glance.py b/salt/states/glance.py
index <HASH>..<HASH> 100644
--- a/salt/states/glance.py
+++ b/salt/states/glance.py
@@ -68,7 +68,7 @@ def image_present(name, visibility='public', protected=None,
# Just pop states until we reach the
# first acceptable one:
- while len(acceptable... | image_present: if len(acceptable) drops to 0 we've got a problem... | py |
diff --git a/pynexus/pynexus.py b/pynexus/pynexus.py
index <HASH>..<HASH> 100644
--- a/pynexus/pynexus.py
+++ b/pynexus/pynexus.py
@@ -273,7 +273,7 @@ class NexusConn:
else:
resQueue.put(res)
- threading.Thread(target=taskPushCh).start()
+ threading.Thread(target=callTaskPu... | New method taskPullCh for asynchronous pulls | py |
diff --git a/tests/test_manip_tools.py b/tests/test_manip_tools.py
index <HASH>..<HASH> 100644
--- a/tests/test_manip_tools.py
+++ b/tests/test_manip_tools.py
@@ -155,8 +155,7 @@ class ManipToolsTestSuite(unittest.TestCase):
def test_taxtree(self):
taxdict = mt.TaxDict(idents=idents, ranks=ranks, lineages... | Removed print statment from unit test | py |
diff --git a/webapp/app.py b/webapp/app.py
index <HASH>..<HASH> 100644
--- a/webapp/app.py
+++ b/webapp/app.py
@@ -245,7 +245,6 @@ app.add_url_rule(
session=session,
site="vanillaframework.io/docs",
template_path="docs/search.html",
- search_engine_id="adb2397a224a1fe55", # https://cs... | Remove search_engine_id With the new version, you can have this search_engine_id and add site_restricted_search=True or not have it, but it's best to remove it until UX + Marketing reach a decision on how we want to separate searches. | py |
diff --git a/test/regression/issue_676.py b/test/regression/issue_676.py
index <HASH>..<HASH> 100755
--- a/test/regression/issue_676.py
+++ b/test/regression/issue_676.py
@@ -4,7 +4,7 @@ rethinkdb_root = os.path.abspath(os.path.join(os.path.dirname(__file__), os.path
sys.path.append(os.path.join(rethinkdb_root, "test"... | Update issue_<I>.py | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -51,7 +51,7 @@ setup(name='python-bitcoin',
classifiers=[
'Development Status :: 3 - Alpha',
'Intended Audience :: Developers',
- 'License :: MIT',
+ 'License :: OSI Approved :: MIT License... | Reformat license classifier to comply with PyPI specifications. | py |
diff --git a/models/tokenize/utils.py b/models/tokenize/utils.py
index <HASH>..<HASH> 100644
--- a/models/tokenize/utils.py
+++ b/models/tokenize/utils.py
@@ -103,7 +103,8 @@ def output_predictions(output_filename, trainer, data_generator, vocab, mwt_dict
pred = [np.concatenate(p, 0) for p in pred]
... | Make things more watertight in tokenizer | py |
diff --git a/sos/report/plugins/virsh.py b/sos/report/plugins/virsh.py
index <HASH>..<HASH> 100644
--- a/sos/report/plugins/virsh.py
+++ b/sos/report/plugins/virsh.py
@@ -48,7 +48,11 @@ class LibvirtClient(Plugin, IndependentPlugin):
if k_list['status'] == 0:
k_lines = k_list['output'].spl... | [virsh] Catch parsing exception In case virsh output is malformed or missing 'Name' otherwise, catch parsing exception and continue in next for loop iteration. Resolves: #<I> | py |
diff --git a/auditok/cmdline.py b/auditok/cmdline.py
index <HASH>..<HASH> 100755
--- a/auditok/cmdline.py
+++ b/auditok/cmdline.py
@@ -399,7 +399,7 @@ def main(argv=None):
print(str(ae_warn), file=sys.stderr)
if args.plot or args.save_image is not None:
- from .plottin... | Update call to plotting code in main | py |
diff --git a/test_twarc2.py b/test_twarc2.py
index <HASH>..<HASH> 100644
--- a/test_twarc2.py
+++ b/test_twarc2.py
@@ -1,5 +1,4 @@
import os
-import json
import pytz
import twarc
import dotenv
@@ -8,7 +7,9 @@ import logging
import pathlib
import datetime
import threading
+
from unittest import TestCase
+from tw... | added a simple test for user_agent | py |
diff --git a/multiqc/modules/bbmap/bbmap.py b/multiqc/modules/bbmap/bbmap.py
index <HASH>..<HASH> 100644
--- a/multiqc/modules/bbmap/bbmap.py
+++ b/multiqc/modules/bbmap/bbmap.py
@@ -146,10 +146,10 @@ class MultiqcModule(BaseMultiqcModule):
"""
samples = self.mod_data[file_type]
- plot_title ... | Fix accidentally including headings for plots that don't exist | 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
@@ -115,18 +115,18 @@ def _reader_factory(name, filetype, descr):
Parameters
----------
- filename: st... | Fix minor syntax issues in docstrings. | py |
diff --git a/api/opentrons/robot/robot.py b/api/opentrons/robot/robot.py
index <HASH>..<HASH> 100644
--- a/api/opentrons/robot/robot.py
+++ b/api/opentrons/robot/robot.py
@@ -941,6 +941,12 @@ class Robot(object, metaclass=Singleton):
container = containers.get_persisted_container(container_name)
conta... | updates each Pipettes calibrator after a Container is added, incase it's placed after the Pipette in user protocol (#<I>) | py |
diff --git a/karaage/projects/views/admin.py b/karaage/projects/views/admin.py
index <HASH>..<HASH> 100644
--- a/karaage/projects/views/admin.py
+++ b/karaage/projects/views/admin.py
@@ -58,10 +58,10 @@ def add_edit_project(request, project_id=None):
project.activate()
form.save_m2m()
... | The created/added messages were reversed. Now fixed. | py |
diff --git a/PyGitUp/gitup.py b/PyGitUp/gitup.py
index <HASH>..<HASH> 100644
--- a/PyGitUp/gitup.py
+++ b/PyGitUp/gitup.py
@@ -205,7 +205,9 @@ class GitUp(object):
yield
- print(colored('returning to {0}'.format(branch_name), 'magenta'))
+ if not self.repo.head.ref.name == branch_name:
+... | Fixed #3: 'git up' didn't return to current branch | py |
diff --git a/bcbio/variation/genotype.py b/bcbio/variation/genotype.py
index <HASH>..<HASH> 100644
--- a/bcbio/variation/genotype.py
+++ b/bcbio/variation/genotype.py
@@ -321,7 +321,7 @@ def _extract_eval_stats(eval_file):
def _eval_analysis_type(in_file, analysis_name):
"""Retrieve data lines associated with a p... | Handle GATK <I> report items | py |
diff --git a/lsanomaly/__init__.py b/lsanomaly/__init__.py
index <HASH>..<HASH> 100644
--- a/lsanomaly/__init__.py
+++ b/lsanomaly/__init__.py
@@ -18,6 +18,7 @@ def median_kneighbour_distance(X, k=5):
kernel length scale.
"""
N_all = X.shape[0]
+ k = min(k, N_all)
N_subset = min(N_all, 2000)
... | Update __init__.py Make sure we don't try to search for more nearest neighbours than there are datapoints. | py |
diff --git a/pymc3/stats.py b/pymc3/stats.py
index <HASH>..<HASH> 100644
--- a/pymc3/stats.py
+++ b/pymc3/stats.py
@@ -353,7 +353,7 @@ def compare(traces, models, ic='WAIC'):
the top-ranked model.
It's always 0 for the top-ranked model.
warning : A value of 1 indicates that the computation of the IC ... | Fix indentation in compare docstring | py |
diff --git a/volapi/volapi.py b/volapi/volapi.py
index <HASH>..<HASH> 100644
--- a/volapi/volapi.py
+++ b/volapi/volapi.py
@@ -366,7 +366,7 @@ class Room:
file = File(self.conn, file[0], file[1],
type=file[2],
size=file[3],
- expire_t... | Actually convert server expire time to pythonic time | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -1,13 +1,13 @@
from setuptools import setup
setup(name='pyshp',
- version='1.2.6',
+ version='1.2.7',
description='Pure Python read/write support for ESRI Shapefile format',
- long_description=open('R... | Updated read info in setup.py | py |
diff --git a/salt/modules/network.py b/salt/modules/network.py
index <HASH>..<HASH> 100644
--- a/salt/modules/network.py
+++ b/salt/modules/network.py
@@ -917,7 +917,7 @@ def ip_addrs6(interface=None, include_loopback=False, cidr=None):
addrs = salt.utils.network.ip_addrs6(interface=interface,
... | Fix the 'cidr' arg in salt.modules.network.ip_addrs6() The two arguments to ip_in_subnet() should be swapped around, but since ip_in_subnet() is being deprecated in favor of in_subnet(), removing three characters seemed like the most appropiate bugfix. This fixes #<I> | py |
diff --git a/bokeh/tests/test_objects.py b/bokeh/tests/test_objects.py
index <HASH>..<HASH> 100644
--- a/bokeh/tests/test_objects.py
+++ b/bokeh/tests/test_objects.py
@@ -3,7 +3,7 @@ import unittest
from mock import patch, Mock
from six import add_metaclass
from six.moves import xrange
-
+import copy
def large_pl... | fixed TestViewable by preserving model_class_reverse_map and restoring it on test teardown | py |
diff --git a/hgvs/config.py b/hgvs/config.py
index <HASH>..<HASH> 100644
--- a/hgvs/config.py
+++ b/hgvs/config.py
@@ -41,6 +41,9 @@ class Config(object):
return self._cp.keys()
def __getattr__(self, k):
+ # Work around PyCharm bug https://youtrack.jetbrains.com/issue/PY-4213
+ if k == "_c... | #<I>: work around pycharm bug PY-<I> (pending testing) | py |
diff --git a/django_productline/features/staticfiles/tasks.py b/django_productline/features/staticfiles/tasks.py
index <HASH>..<HASH> 100644
--- a/django_productline/features/staticfiles/tasks.py
+++ b/django_productline/features/staticfiles/tasks.py
@@ -12,7 +12,7 @@ def collectstatic(force=False):
#noise reducti... | collectstatic without need for user input to allow easier autodeployment | py |
diff --git a/tests/aws/test_features.py b/tests/aws/test_features.py
index <HASH>..<HASH> 100644
--- a/tests/aws/test_features.py
+++ b/tests/aws/test_features.py
@@ -40,9 +40,12 @@ class SmokeTestApplication(object):
# Number of seconds to wait after redeploy before starting
# to poll for successful 200.
-... | Add more polling in feature integ tests | py |
diff --git a/tests/test_parse.py b/tests/test_parse.py
index <HASH>..<HASH> 100644
--- a/tests/test_parse.py
+++ b/tests/test_parse.py
@@ -799,7 +799,7 @@ def test_parse_Custom10Q_RRDonnelley():
assert result == 13
- else:
+ if six.PY2:
result = custom_obj() | pypy also does strange things with dict_items | py |
diff --git a/test/validation/test_base.py b/test/validation/test_base.py
index <HASH>..<HASH> 100644
--- a/test/validation/test_base.py
+++ b/test/validation/test_base.py
@@ -4,6 +4,7 @@ from __future__ import unicode_literals
import re
+from marrow.schema.compat import unicode
from marrow.schema.validation.base ... | Added needed import to test module. | py |
diff --git a/src/livestreamer/plugins/ustreamtv.py b/src/livestreamer/plugins/ustreamtv.py
index <HASH>..<HASH> 100644
--- a/src/livestreamer/plugins/ustreamtv.py
+++ b/src/livestreamer/plugins/ustreamtv.py
@@ -259,6 +259,11 @@ class UHSStream(Stream):
self.provider = provider
self.stream_index = stre... | plugins.ustreamtv: Add __repr__ to UHSStream. Resolves #<I>. | py |
diff --git a/holoviews/plotting/mpl/plot.py b/holoviews/plotting/mpl/plot.py
index <HASH>..<HASH> 100644
--- a/holoviews/plotting/mpl/plot.py
+++ b/holoviews/plotting/mpl/plot.py
@@ -119,6 +119,12 @@ class MPLPlot(DimensionedPlot):
if self.fig_latex:
self.fig_rcparams['text.usetex'] = True
+ ... | Enable interactive plotting before creating first figure | py |
diff --git a/salt/master.py b/salt/master.py
index <HASH>..<HASH> 100644
--- a/salt/master.py
+++ b/salt/master.py
@@ -833,8 +833,14 @@ class AESFuncs(object):
if not salt.utils.verify.valid_id(self.opts, id_):
return False
pub_path = os.path.join(self.opts['pki_dir'], 'minions', id_)
- ... | Expressly deny a minion if a key cannot be found instead of raising stacktrace (#<I>) | py |
diff --git a/plexapi/library.py b/plexapi/library.py
index <HASH>..<HASH> 100644
--- a/plexapi/library.py
+++ b/plexapi/library.py
@@ -350,7 +350,7 @@ class LibrarySection(PlexObject):
self.filters = data.attrib.get('filters')
self.key = data.attrib.get('key') # invalid key from plex
self.la... | update library.LibrarySection locations attribute to use new Location class. | py |
diff --git a/landsat/image.py b/landsat/image.py
index <HASH>..<HASH> 100644
--- a/landsat/image.py
+++ b/landsat/image.py
@@ -6,11 +6,12 @@ import warnings
import sys
from os.path import join
import tarfile
+import glob
+import subprocess
+
import numpy
import rasterio
-import glob
from rasterio.warp import repr... | tar unzipping issues resolves #<I> | py |
diff --git a/delphin/tsdb.py b/delphin/tsdb.py
index <HASH>..<HASH> 100644
--- a/delphin/tsdb.py
+++ b/delphin/tsdb.py
@@ -337,7 +337,16 @@ class Database(object):
return (split(line, fields=fields)
for line in open(self._path, name, encoding=self.encoding))
+ def __iter__(self):
+ ... | Add tsdb.Database.__iter__ and __len__ These functions are needed for Database to be a Mapping subtype. They behave as though Database were a dictionary mapping relation names to things. | py |
diff --git a/satpy/resample.py b/satpy/resample.py
index <HASH>..<HASH> 100644
--- a/satpy/resample.py
+++ b/satpy/resample.py
@@ -778,7 +778,7 @@ class NativeResampler(BaseResampler):
coords = {}
# Update coords if we can
- if 'y' in data.coords or 'x' in data.coords and \
+ if ('y' i... | Fix native resampler when a dataset doesn't have 'y' and 'x' coords First fixed by @wroberts4 in #<I> but was not cherry-pick-able | py |
diff --git a/periphery/gpio.py b/periphery/gpio.py
index <HASH>..<HASH> 100644
--- a/periphery/gpio.py
+++ b/periphery/gpio.py
@@ -797,13 +797,6 @@ class SysfsGPIO(GPIO):
raise GPIOError(e.errno, "Setting GPIO direction: " + e.strerror)
time.sleep(SysfsGPIO.GPIO_OPEN_DELAY)
-... | gpio: simplify direction initialization in open in sysfs implementation | py |
diff --git a/scripts/auto_release/main.py b/scripts/auto_release/main.py
index <HASH>..<HASH> 100644
--- a/scripts/auto_release/main.py
+++ b/scripts/auto_release/main.py
@@ -256,15 +256,6 @@ class CodegenTestPR:
modify_file(sdk_readme, edit_sdk_readme)
- def check_sdk_setup(self):
- def edit_sdk... | Update main.py (#<I>) | py |
diff --git a/searx/utils.py b/searx/utils.py
index <HASH>..<HASH> 100644
--- a/searx/utils.py
+++ b/searx/utils.py
@@ -39,14 +39,15 @@ else:
logger = logger.getChild('utils')
-ua_versions = ('40.0',
- '41.0',
- '42.0',
- '43.0',
- '44.0',
- '45.... | [fix] update user agent versions this fixes duckduckgo error response | py |
diff --git a/docs/conf.py b/docs/conf.py
index <HASH>..<HASH> 100755
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -92,7 +92,7 @@ napoleon_use_rtype = False
napoleon_use_param = False
napoleon_use_ivar = True
-nbsphinx_execute = "never"
+nbsphinx_execute = "auto"
nbsphinx_prolog = r"""
{% set docname = env.doc2path(en... | Make nbsphinx execute only if no output already in notebook cells | py |
diff --git a/salt/modules/iptables.py b/salt/modules/iptables.py
index <HASH>..<HASH> 100644
--- a/salt/modules/iptables.py
+++ b/salt/modules/iptables.py
@@ -164,6 +164,7 @@ def build_rule(table=None, chain=None, command=None, position='', full=None, fam
rule += '-p {0} '.format(kwargs['proto'])
pr... | Fix missing delete after the protocol has been constructed otherwise two protocols are specified. Fix PEP8 indentation message | py |
diff --git a/runcommands/command.py b/runcommands/command.py
index <HASH>..<HASH> 100644
--- a/runcommands/command.py
+++ b/runcommands/command.py
@@ -154,7 +154,7 @@ class Command:
self.description = description
self.short_description = short_description
self.timed = timed
- self.data... | Make data property of Commands read only | py |
diff --git a/spacy/lang/norm_exceptions.py b/spacy/lang/norm_exceptions.py
index <HASH>..<HASH> 100644
--- a/spacy/lang/norm_exceptions.py
+++ b/spacy/lang/norm_exceptions.py
@@ -31,11 +31,21 @@ BASE_NORMS = {
"„": '"',
"»": '"',
"«": '"',
+ "‘‘": '"',
+ "’’": '"',
+ "?": "?",
+ "!": "!",
+ ... | Update base norm exceptions with more unicode characters e.g. unicode variations of punctuation used in Chinese | py |
diff --git a/okcupyd/profile_copy.py b/okcupyd/profile_copy.py
index <HASH>..<HASH> 100644
--- a/okcupyd/profile_copy.py
+++ b/okcupyd/profile_copy.py
@@ -83,11 +83,12 @@ class Copy(object):
time.sleep(5)
try:
question = self.dest_user.profile.question_fetchable()[0]
+ ... | rearrange code to else in try except in profile copy. | py |
diff --git a/logzio/sender.py b/logzio/sender.py
index <HASH>..<HASH> 100644
--- a/logzio/sender.py
+++ b/logzio/sender.py
@@ -18,7 +18,6 @@ else:
MAX_BULK_SIZE_IN_BYTES = 1 * 1024 * 1024 # 1 MB
-requests_session = requests.Session()
def backup_logs(logs, logger):
@@ -42,6 +41,7 @@ class LogzioSender:
... | place requests_session as member of handler | py |
diff --git a/certbuilder/__init__.py b/certbuilder/__init__.py
index <HASH>..<HASH> 100644
--- a/certbuilder/__init__.py
+++ b/certbuilder/__init__.py
@@ -2,6 +2,7 @@
from __future__ import unicode_literals, division, absolute_import, print_function
from datetime import datetime, timedelta
+import inspect
import r... | Use _type_name() for class name also | py |
diff --git a/daploader/__init__.py b/daploader/__init__.py
index <HASH>..<HASH> 100644
--- a/daploader/__init__.py
+++ b/daploader/__init__.py
@@ -271,9 +271,9 @@ class Dap(object):
'''Checks if the dap is valid, reports problems
Parameters:
- network -- weather to run checks that require... | daploader: Typo (we don't want to check the weather from daploader) | py |
diff --git a/inplaceeditform/views.py b/inplaceeditform/views.py
index <HASH>..<HASH> 100644
--- a/inplaceeditform/views.py
+++ b/inplaceeditform/views.py
@@ -34,8 +34,13 @@ def save_ajax(request):
return HttpResponse(simplejson.dumps({'errors': False,
'value': ... | Fixes #<I> Now the message is not [object Object]. Now should set "field_name": "Error XXXXX" | py |
diff --git a/K2fov/version.py b/K2fov/version.py
index <HASH>..<HASH> 100644
--- a/K2fov/version.py
+++ b/K2fov/version.py
@@ -1,3 +1,3 @@
# It is important to store the version number in a separate file
# so that we can read it from setup.py without importing the package
-__version__ = "4.2.0"
+__version__ = "4.1.0" | Reverting to <I> -- hadnt released this yet | py |
diff --git a/zipline/finance/metrics/metric.py b/zipline/finance/metrics/metric.py
index <HASH>..<HASH> 100644
--- a/zipline/finance/metrics/metric.py
+++ b/zipline/finance/metrics/metric.py
@@ -453,7 +453,7 @@ class AlphaBeta(object):
ledger.daily_returns_array[:session_ix + 1],
self._daily_r... | MAINT: Return None for inf alpha, not just for nan | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -23,7 +23,7 @@ setuptools.setup(
"Operating System :: MacOS",
"Development Status :: 5 - Production/Stable",
],
- install_requires=['cython>=0.28', 'numpy>=1.14', 'mud-py>=1.2.0',
+ install_requir... | Removed min version on mudpy | py |
diff --git a/auth/urls.py b/auth/urls.py
index <HASH>..<HASH> 100644
--- a/auth/urls.py
+++ b/auth/urls.py
@@ -4,9 +4,8 @@ from django.views.generic import RedirectView
urlpatterns = patterns('',
- # TODO: Find the right urls for these
- url(r'login/$', '', name='auth_login'),
- url(r'^logout/$', '', {'te... | Add contrib.auth login/logout urls | py |
diff --git a/test/test_document.py b/test/test_document.py
index <HASH>..<HASH> 100644
--- a/test/test_document.py
+++ b/test/test_document.py
@@ -1209,6 +1209,10 @@ class DraftDetectionTests(unittest.TestCase):
"http://localhost/")
self.assertEquals(doc.draft, dougrain.Draft.DRAFT_4)
+ def t... | Test that empty documents default to latest draft. | py |
diff --git a/master/setup.py b/master/setup.py
index <HASH>..<HASH> 100755
--- a/master/setup.py
+++ b/master/setup.py
@@ -299,13 +299,13 @@ setup_args = {
]),
('buildbot.reporters', [
('buildbot.reporters.mail', ['MailNotifier']),
+ ('buildbot.reporters.message', ['MessageForm... | Put the MessageFormatter class in the plugins | py |
diff --git a/examples/02-plot/gif.py b/examples/02-plot/gif.py
index <HASH>..<HASH> 100644
--- a/examples/02-plot/gif.py
+++ b/examples/02-plot/gif.py
@@ -19,7 +19,7 @@ grid = pv.StructuredGrid(x, y, z)
# Create a plotter object and set the scalars to the Z height
plotter = pv.Plotter()
-plotter.add_mesh(grid, scal... | using smooth shading on gif example (#<I>) | py |
diff --git a/bigfloat_cython/setup.py b/bigfloat_cython/setup.py
index <HASH>..<HASH> 100644
--- a/bigfloat_cython/setup.py
+++ b/bigfloat_cython/setup.py
@@ -148,7 +148,10 @@ Links
"""
setup(
- name='BigFloat',
+ # Name should really be capitalized as 'BigFloat'. We keep 'bigfloat' to avoid
+ # upload pr... | Make package name 'bigfloat' rather than 'BigFloat' for PyPI purposes. | py |
diff --git a/libexec/link_vmware_host_vm.py b/libexec/link_vmware_host_vm.py
index <HASH>..<HASH> 100755
--- a/libexec/link_vmware_host_vm.py
+++ b/libexec/link_vmware_host_vm.py
@@ -24,8 +24,9 @@ import sys
import shlex
import shutil
import getopt
-# Try to load the json (2.5 and higer) or
-# the simplejson if fail... | Minor cleanup to link_vmware_host_me.py | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -51,7 +51,7 @@ docs_requirements = [
"distributed>=2.0",
]
-gis_requirements = ["rtree>=0.9", "clisops>=0.3"]
+gis_requirements = ["clisops>=0.3.1"]
dev_requirements = []
with open("requirements_dev.txt") as dev: | Dump rtree dependency and update clisops version to <I> | py |
diff --git a/benchexec/tablegenerator/util.py b/benchexec/tablegenerator/util.py
index <HASH>..<HASH> 100644
--- a/benchexec/tablegenerator/util.py
+++ b/benchexec/tablegenerator/util.py
@@ -176,7 +176,7 @@ def format_number_align(formattedValue, max_number_of_dec_digits):
if formattedValue.find('.') >= 0:
... | Only add punctuation space in number alignment of table generator output if needed. The punctuation space is only added if at least one number in the column is a decimal number. | py |
diff --git a/pysoundcard.py b/pysoundcard.py
index <HASH>..<HASH> 100644
--- a/pysoundcard.py
+++ b/pysoundcard.py
@@ -109,6 +109,24 @@ const char *Pa_GetVersionText(void);
typedef int PaDeviceIndex;
+typedef enum PaHostApiTypeId
+{
+ paInDevelopment=0, /* use while developing support for a new host API */
+ ... | Update pysoundcard.py Add typedef for typedef enum PaHostApiTypeId, it was triggering an error in CFFI (will be revert to a warning in CFFI <I>) <URL> | py |
diff --git a/httprunner/utils.py b/httprunner/utils.py
index <HASH>..<HASH> 100644
--- a/httprunner/utils.py
+++ b/httprunner/utils.py
@@ -383,18 +383,11 @@ def create_scaffold(project_name):
logger.color_print(msg, "BLUE")
def create_file(path, file_content=""):
- with open(path, 'w') as f:
+ ... | refactor: remove unused code | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -13,7 +13,7 @@ setup(
'pandas>=0.20.3',
'numpy>=1.13.3',
'imageio>=2.3.0',
- 'tb-nightly==1.15.0a20190708',
+ 'tensorboard>=1.15.0',
'torch>=1.1.0',
'future'
], | Replaced tb-nightly dependency by tensorboard dependency tb-nightly dependency was temporary. | py |
diff --git a/gwpy/plotter/histogram.py b/gwpy/plotter/histogram.py
index <HASH>..<HASH> 100644
--- a/gwpy/plotter/histogram.py
+++ b/gwpy/plotter/histogram.py
@@ -83,7 +83,7 @@ class HistogramAxes(Axes):
return self.hist(table[column], **kwargs)
def hist(self, x, **kwargs): # pylint: disable=arguments-... | plotter.histogram: fixed bug in 'not x' numpy arrays can't handle it | py |
diff --git a/wrappers/transactions.py b/wrappers/transactions.py
index <HASH>..<HASH> 100644
--- a/wrappers/transactions.py
+++ b/wrappers/transactions.py
@@ -42,6 +42,7 @@ class Transaction(Wrapper):
context_data['previousHash'] = hashlib.sha1(("%(raw)s%(signature)s" % last_tx).encode('ascii')).hexdigest().up... | * wrappers/transactions.py: fixed an non-wished behaviour | py |
diff --git a/salt/transport/zeromq.py b/salt/transport/zeromq.py
index <HASH>..<HASH> 100644
--- a/salt/transport/zeromq.py
+++ b/salt/transport/zeromq.py
@@ -832,7 +832,7 @@ class ZeroMQPubServerChannel(salt.transport.server.PubServerChannel):
log.trace('Sending filtered data over publ... | Ensure topic as bytes when zmq_filtering enabled when send multipart in zeromq, the first data should be bytes | py |
diff --git a/polysquare_setuptools_lint/__init__.py b/polysquare_setuptools_lint/__init__.py
index <HASH>..<HASH> 100644
--- a/polysquare_setuptools_lint/__init__.py
+++ b/polysquare_setuptools_lint/__init__.py
@@ -500,7 +500,7 @@ class PolysquareLintCommand(setuptools.Command): # suppress(unused-function)
li... | lint: Fix thinko (negation) | py |
diff --git a/documenteer/stackdocs/doxygen.py b/documenteer/stackdocs/doxygen.py
index <HASH>..<HASH> 100644
--- a/documenteer/stackdocs/doxygen.py
+++ b/documenteer/stackdocs/doxygen.py
@@ -98,7 +98,7 @@ class DoxygenConfiguration:
"""
file_patterns: List[str] = field(
- default_factory=lambda: ['*.... | Drop *.cc from file patterns Shouldn't be needed since src/ isn't included. | py |
diff --git a/tests/test_completion.py b/tests/test_completion.py
index <HASH>..<HASH> 100644
--- a/tests/test_completion.py
+++ b/tests/test_completion.py
@@ -400,6 +400,25 @@ def test_path_completion_no_path(cmd2_app):
assert completions_no_text == completions_cwd
assert completions_cwd
+
+@pytest.mark.ski... | Added unit test for path completion in root directory | py |
diff --git a/src/rez/util.py b/src/rez/util.py
index <HASH>..<HASH> 100644
--- a/src/rez/util.py
+++ b/src/rez/util.py
@@ -46,9 +46,18 @@ class yaml_literal(str):
def yaml_literal_presenter(dumper, data):
- return dumper.represent_scalar('tag:yaml.org,2002:str', data, style='|')
-yaml.add_representer(yaml_liter... | Improving yaml_literal presenter. Allan's implementation | py |
diff --git a/salt/modules/ebuild.py b/salt/modules/ebuild.py
index <HASH>..<HASH> 100644
--- a/salt/modules/ebuild.py
+++ b/salt/modules/ebuild.py
@@ -233,7 +233,7 @@ def latest_version(*names, **kwargs):
ret[name] = ''
installed = _cpv_to_version(_vartree().dep_bestmatch(name))
avail = _cpv_... | Fixes #<I>: Return an available version also when the named package is not installed. | py |
diff --git a/libsubmit/channels/ssh/ssh.py b/libsubmit/channels/ssh/ssh.py
index <HASH>..<HASH> 100644
--- a/libsubmit/channels/ssh/ssh.py
+++ b/libsubmit/channels/ssh/ssh.py
@@ -133,17 +133,17 @@ class SshChannel ():
try:
self.sftp_client.mkdir(remote_dir)
except IOError as e:
- ... | Clarify message when `remote_dir` exists If `remote_dir` exists, SshChannel.push_file complains that pushing failed. This is a bit confusing for users because pushing did not actually fail-- it was just not necessary to create `remote_dir`. | py |
diff --git a/gsh/remote_dispatcher.py b/gsh/remote_dispatcher.py
index <HASH>..<HASH> 100644
--- a/gsh/remote_dispatcher.py
+++ b/gsh/remote_dispatcher.py
@@ -107,7 +107,7 @@ class remote_dispatcher(buffered_dispatcher):
if state is not self.state:
if self.debug:
self.print_debug(... | commit 1fc<I>fe8f9d<I>c8f<I>a<I>de3f1ef7a<I>c8e<I>b4 Fold remote_dispatcher.active in remote_dispatcher.state as STATE_DEAD when false broke the read_in_state_not_started feature, so be less aggressive in clearing the variable | py |
diff --git a/yq/__init__.py b/yq/__init__.py
index <HASH>..<HASH> 100755
--- a/yq/__init__.py
+++ b/yq/__init__.py
@@ -93,7 +93,7 @@ def cli(args=None, input_format="yaml", program_name="yq"):
jq_args.append(arg)
jq_args.extend(value_group)
- if args.jq_filter:
+ if args.jq_fil... | Parse correctly when empty string is passed as jq_filter Fixup for #<I> Fixes #<I> | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -49,5 +49,5 @@ setup(
'Programming Language :: Python :: 3.2',
'Programming Language :: Python :: 3.3',
],
- test_suite='tests.test_fuzzysearch',
+ test_suite='tests',
)
\ No newline at end of fil... | fixed the test suite location in setup.py | py |
diff --git a/pysos/actions.py b/pysos/actions.py
index <HASH>..<HASH> 100644
--- a/pysos/actions.py
+++ b/pysos/actions.py
@@ -166,9 +166,17 @@ class DockerClient:
cmd = interpreter.replace('{}', '/var/lib/sos/{}'.format(tempscript))
else:
cmd = ''
+ working_dir... | Handle working_dir option of docker run more carefully | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -30,7 +30,7 @@ cpp_dir = join('src', 'fastText', 'src')
sources = ['src/pyfasttext.pyx', 'src/fasttext_access.cpp']
# add all the fasttext source files except main.cc
-sources.extend(set(glob(join(cpp_dir, '*.cc'))).differ... | make setup.py work with python<I> | py |
diff --git a/denonavr/denonavr.py b/denonavr/denonavr.py
index <HASH>..<HASH> 100644
--- a/denonavr/denonavr.py
+++ b/denonavr/denonavr.py
@@ -1289,7 +1289,7 @@ class DenonAVR(object):
def set_sound_mode_dict(self, sound_mode_dict):
Error_msg = ("Syntax of sound mode dictionary not valid, "
- ... | Add sound mode support (indent fix) | py |
diff --git a/certvalidator/context.py b/certvalidator/context.py
index <HASH>..<HASH> 100644
--- a/certvalidator/context.py
+++ b/certvalidator/context.py
@@ -281,7 +281,7 @@ class ValidationContext():
# some of which separate the hex char pairs via spaces or colons
whitelisted_cert = ... | Fix a bug with whitelisting a certificate on Python <I> | py |
diff --git a/lib/numina/image/__init__.py b/lib/numina/image/__init__.py
index <HASH>..<HASH> 100644
--- a/lib/numina/image/__init__.py
+++ b/lib/numina/image/__init__.py
@@ -37,12 +37,12 @@ class DiskImage(object):
return self._open
def open(self, mode='copyonwrite', memmap=False, extension='primary'):... | DiskImage is open only if pyfits.open is successful | py |
diff --git a/src/you_get/extractors/imgur.py b/src/you_get/extractors/imgur.py
index <HASH>..<HASH> 100644
--- a/src/you_get/extractors/imgur.py
+++ b/src/you_get/extractors/imgur.py
@@ -65,7 +65,7 @@ class Imgur(VideoExtractor):
'container': 'jpg'
}
}
- sel... | [imgur] use hash when title not present | py |
diff --git a/nose/test_scf.py b/nose/test_scf.py
index <HASH>..<HASH> 100644
--- a/nose/test_scf.py
+++ b/nose/test_scf.py
@@ -66,7 +66,7 @@ def test_densMatches_hernquist():
compareFunctions(h.dens,scf.dens, assertmsg)
## Tests whether scf density matches with Hernquist density
-def test_densMatches_hernq... | Fixed a typo where I forgot to change a function name from test_densMatches_hernquist to test_densMatches_zeeuw | py |
diff --git a/WrightTools/__init__.py b/WrightTools/__init__.py
index <HASH>..<HASH> 100644
--- a/WrightTools/__init__.py
+++ b/WrightTools/__init__.py
@@ -12,7 +12,6 @@ from . import artists
from . import collection
from . import data
from . import diagrams
-from . import fit
from . import kit
from . import units
... | Remove fit from __init__ (Closes #<I>) (#<I>) | py |
diff --git a/elasticsearch_dsl/field.py b/elasticsearch_dsl/field.py
index <HASH>..<HASH> 100644
--- a/elasticsearch_dsl/field.py
+++ b/elasticsearch_dsl/field.py
@@ -3,6 +3,8 @@ from dateutil import parser
from .utils import DslBase, _make_dsl_class, ObjectBase, AttrDict
+__all__ = ['construct_field', 'Object', '... | Expose all field types to be importable ffrom fields | py |
diff --git a/wikitextparser/wikitext.py b/wikitextparser/wikitext.py
index <HASH>..<HASH> 100644
--- a/wikitextparser/wikitext.py
+++ b/wikitextparser/wikitext.py
@@ -3,7 +3,6 @@
# Todo: consider using a tree structure (interval or segment tree).
# Todo: Consider using separate strings for each node.
-# Todo: Delet... | Remove already-done Todo comment | py |
diff --git a/tests/test_attrload.py b/tests/test_attrload.py
index <HASH>..<HASH> 100644
--- a/tests/test_attrload.py
+++ b/tests/test_attrload.py
@@ -192,7 +192,7 @@ class TestMangling(unittest.TestCase):
def test_correct_exception_when_mangling(self):
@attrs
class A:
- a: str = attri... | Python<I> syntax Otherwise the test won't run there | py |
diff --git a/src/transformers/modeling_tf_gpt2.py b/src/transformers/modeling_tf_gpt2.py
index <HASH>..<HASH> 100644
--- a/src/transformers/modeling_tf_gpt2.py
+++ b/src/transformers/modeling_tf_gpt2.py
@@ -198,7 +198,7 @@ class TFBlock(tf.keras.layers.Layer):
class TFGPT2MainLayer(tf.keras.layers.Layer):
def _... | Fix GPT2 config set to trainable This prevents the model from being saved, and who knows what else. | py |
diff --git a/pmxbot/util.py b/pmxbot/util.py
index <HASH>..<HASH> 100644
--- a/pmxbot/util.py
+++ b/pmxbot/util.py
@@ -32,7 +32,7 @@ def wchoice(d):
Statistically speaking, choices should be .5 a:b
>>> ratio = choices.count('a') / choices.count('b')
- >>> .45 < ratio < .55
+ >>> .4 < ratio < .5
True
"""
tot... | Expand the acceptable range to reduce spurious errors. | py |
diff --git a/munigeo/api.py b/munigeo/api.py
index <HASH>..<HASH> 100644
--- a/munigeo/api.py
+++ b/munigeo/api.py
@@ -382,10 +382,26 @@ class AddressViewSet(GeoModelAPIView, viewsets.ReadOnlyModelViewSet):
serializer_class = AddressSerializer
def get_queryset(self):
+ default_lang = LANG_CODES[0]
+ ... | Address: Add street and number based filtering | py |
diff --git a/unix.py b/unix.py
index <HASH>..<HASH> 100644
--- a/unix.py
+++ b/unix.py
@@ -64,13 +64,16 @@ class RarFileImplementation(object):
accum = []
source = pipe.readlines().__iter__()
line = ''
- while not line.startswith('Comment:'):
+ while not (line.startswith('Commen... | Added support for rar files without comments on Unix platform | py |
diff --git a/tensorlayer/activation.py b/tensorlayer/activation.py
index <HASH>..<HASH> 100644
--- a/tensorlayer/activation.py
+++ b/tensorlayer/activation.py
@@ -61,7 +61,7 @@ def leaky_relu(x=None, alpha=0.1, name="LeakyReLU"):
Examples
---------
>>> network = tl.layers.DenseLayer(network, n_units=100,... | [DOCS] how to use lrelu better | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.