diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/discord/interactions.py b/discord/interactions.py
index <HASH>..<HASH> 100644
--- a/discord/interactions.py
+++ b/discord/interactions.py
@@ -610,7 +610,7 @@ class InteractionResponse:
"""|coro|
Responds to this interaction by editing the original message of
- a component interac... | Fix InteractionResponse.edit_message not working with modal submits | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -8,7 +8,7 @@ setup(
long_description_content_type="text/markdown",
keywords=["Redis", "key-value store", "database"],
license="MIT",
- version="4.2.0",
+ version="4.2.1",
packages=find_packages(
... | <I> (#<I>) | py |
diff --git a/tests/test_transform.py b/tests/test_transform.py
index <HASH>..<HASH> 100644
--- a/tests/test_transform.py
+++ b/tests/test_transform.py
@@ -1,4 +1,5 @@
import struct
+import platform
from array import array
import unittest
import numpy as np
@@ -90,6 +91,9 @@ class TestCase(unittest.TestCase):
... | Skip transforms with adjacency primitives on osx for now | py |
diff --git a/sprinter/lib/extract.py b/sprinter/lib/extract.py
index <HASH>..<HASH> 100644
--- a/sprinter/lib/extract.py
+++ b/sprinter/lib/extract.py
@@ -43,7 +43,7 @@ def extract_tar(url, target_dir, additional_compression="", remove_common_prefix
if overwrite:
remove_pat... | fixing extract logic to continue to overwrite for all files | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -165,7 +165,7 @@ setup(
],
install_requires=[],
setup_requires=[
- 'Cython',
+ 'Cython>=0.27.0',
'setuptools>=38.6.0',
'twine>=1.11.0',
'wheel>=0.31.0', | Add a minimum Cython version requirement | py |
diff --git a/angr/analyses/decompiler/structured_codegen.py b/angr/analyses/decompiler/structured_codegen.py
index <HASH>..<HASH> 100644
--- a/angr/analyses/decompiler/structured_codegen.py
+++ b/angr/analyses/decompiler/structured_codegen.py
@@ -743,6 +743,8 @@ class StructuredCodeGenerator(Analysis):
dst... | Codegen: A hack to prevent the crash with one-bit variables. | py |
diff --git a/scapy/arch/pcapdnet.py b/scapy/arch/pcapdnet.py
index <HASH>..<HASH> 100644
--- a/scapy/arch/pcapdnet.py
+++ b/scapy/arch/pcapdnet.py
@@ -104,7 +104,7 @@ elif conf.use_winpcapy:
if p.contents.name == iff.encode('ascii'):
a = p.contents.addresses
while a:
- if a.con... | Deal with cases when socket.AF_LINK is not defined | py |
diff --git a/simplesqlite/loader/interface.py b/simplesqlite/loader/interface.py
index <HASH>..<HASH> 100644
--- a/simplesqlite/loader/interface.py
+++ b/simplesqlite/loader/interface.py
@@ -13,6 +13,7 @@ import path
import six
from .constant import TableNameTemplate as tnt
+from .error import InvalidDataError
... | Change raise error when the source is invalid | py |
diff --git a/brother_ql/raster.py b/brother_ql/raster.py
index <HASH>..<HASH> 100644
--- a/brother_ql/raster.py
+++ b/brother_ql/raster.py
@@ -120,8 +120,8 @@ class BrotherQLRaster(object):
self.data += bytes([valid_flags])
vals = [self._mtype, self._mwidth, self._mlength]
self.data += b''.jo... | fix QL-<I> / QL-<I> incomplete printing (issue #<I>) | py |
diff --git a/ev3dev2/sensor/lego.py b/ev3dev2/sensor/lego.py
index <HASH>..<HASH> 100644
--- a/ev3dev2/sensor/lego.py
+++ b/ev3dev2/sensor/lego.py
@@ -631,7 +631,7 @@ class GyroSensor(Sensor):
PiStorms, or with any sensor multiplexors.
"""
# 17 comes from inspecting the .vix file of the... | Fix gyro sensor reset (#<I>) Gyro sensor reset was failing because we were writing <I> bytes of 0 to the gyro sensor instead of the byte <I>. Also change it to a bytes literal for max efficiency. | py |
diff --git a/discord/voice_client.py b/discord/voice_client.py
index <HASH>..<HASH> 100644
--- a/discord/voice_client.py
+++ b/discord/voice_client.py
@@ -94,6 +94,7 @@ class VoiceClient:
self.main_ws = None
self.timeout = timeout
self.ws = None
+ self.socket = None
self.loop ... | Explicitly close UDP sockets when re-creating them. This does not actually make a big difference since the GC should technically close them when needed but might as well be more explicit. | py |
diff --git a/tests/test_pages.py b/tests/test_pages.py
index <HASH>..<HASH> 100644
--- a/tests/test_pages.py
+++ b/tests/test_pages.py
@@ -250,7 +250,6 @@ def test_negative_indexing(fourpages, graph):
def test_concatenate(resources, outdir):
# Issue #22
def concatenate(n):
- print('concatenating same ... | Remove f-strings to fix Python <I> | py |
diff --git a/zenpy/lib/api.py b/zenpy/lib/api.py
index <HASH>..<HASH> 100644
--- a/zenpy/lib/api.py
+++ b/zenpy/lib/api.py
@@ -783,6 +783,30 @@ class AttachmentApi(Api):
"""
return UploadRequest(self).post(fp, token=token, target_name=target_name)
+ def download(self, attachment_id, destination):... | Add convenience method for downloading attachments. Raised in #<I>. | py |
diff --git a/a10_neutron_lbaas/v1/neutron_ops.py b/a10_neutron_lbaas/v1/neutron_ops.py
index <HASH>..<HASH> 100644
--- a/a10_neutron_lbaas/v1/neutron_ops.py
+++ b/a10_neutron_lbaas/v1/neutron_ops.py
@@ -10,6 +10,8 @@
# License for the specific language governing permissions and limitations
# under the License.
... | get provider for each lbaas | py |
diff --git a/indra/preassembler/grounding_mapper/mapper.py b/indra/preassembler/grounding_mapper/mapper.py
index <HASH>..<HASH> 100644
--- a/indra/preassembler/grounding_mapper/mapper.py
+++ b/indra/preassembler/grounding_mapper/mapper.py
@@ -1,6 +1,6 @@
__all__ = ['GroundingMapper', 'load_grounding_map', 'default_gro... | Add gm (redundant) for backwards compatibility | py |
diff --git a/instaloader/structures.py b/instaloader/structures.py
index <HASH>..<HASH> 100644
--- a/instaloader/structures.py
+++ b/instaloader/structures.py
@@ -1086,14 +1086,14 @@ class Story:
@property
def last_seen_local(self) -> Optional[datetime]:
- """Timestamp when the story has last been wa... | docs: Fix description of Story.last_seen_utc | py |
diff --git a/welly/well.py b/welly/well.py
index <HASH>..<HASH> 100644
--- a/welly/well.py
+++ b/welly/well.py
@@ -140,7 +140,7 @@ class Well(object):
Nothing, works inplace
"""
# delete existing row for uwi if it exists
- if 'UWI' in self.header.mnemonic:
+ if any(self.head... | fix for `well.uwi` setter | py |
diff --git a/csv_ical/tests/test_convert.py b/csv_ical/tests/test_convert.py
index <HASH>..<HASH> 100644
--- a/csv_ical/tests/test_convert.py
+++ b/csv_ical/tests/test_convert.py
@@ -1,5 +1,4 @@
import datetime
-import os
import tempfile
import unittest
@@ -7,9 +6,9 @@ from syspath import get_git_root
from csv_... | Convert tests to use pathlib paths instead of strings | py |
diff --git a/parsl/executors/high_throughput/process_worker_pool.py b/parsl/executors/high_throughput/process_worker_pool.py
index <HASH>..<HASH> 100755
--- a/parsl/executors/high_throughput/process_worker_pool.py
+++ b/parsl/executors/high_throughput/process_worker_pool.py
@@ -53,6 +53,9 @@ class Manager(object):
... | Send uid back as ZMQ identity | py |
diff --git a/tests/test_png.py b/tests/test_png.py
index <HASH>..<HASH> 100644
--- a/tests/test_png.py
+++ b/tests/test_png.py
@@ -2,12 +2,15 @@
"""\
PNG related tests.
"""
-from __future__ import unicode_literals
+from __future__ import unicode_literals, absolute_import
import os
import io
from nose.tools import... | Fixed imports, and kw arg | py |
diff --git a/tests/test_connection_class.py b/tests/test_connection_class.py
index <HASH>..<HASH> 100644
--- a/tests/test_connection_class.py
+++ b/tests/test_connection_class.py
@@ -975,6 +975,9 @@ class AdsApiTestCaseAdvanced(unittest.TestCase):
cls.test_server = AdsTestServer(AdvancedHandler(), logging=Fals... | Add a sleep after starting advanced handler server | py |
diff --git a/squad/frontend/comparison.py b/squad/frontend/comparison.py
index <HASH>..<HASH> 100644
--- a/squad/frontend/comparison.py
+++ b/squad/frontend/comparison.py
@@ -3,6 +3,7 @@ from django.core.paginator import Paginator
from squad.core.models import Project, Group
from squad.core.comparison import TestCo... | frontend: compare-project: order projects alphanumerically | py |
diff --git a/lightflow/scripts/cli.py b/lightflow/scripts/cli.py
index <HASH>..<HASH> 100755
--- a/lightflow/scripts/cli.py
+++ b/lightflow/scripts/cli.py
@@ -233,12 +233,12 @@ def monitor(obj):
show_colors = obj['show_color']
click.echo('\n')
- click.echo('{:>10} {:>12} {:12} [{}]'.format('Status',
+ ... | Make more space for the job name in the monitor cli | py |
diff --git a/imutils/feature/helpers.py b/imutils/feature/helpers.py
index <HASH>..<HASH> 100755
--- a/imutils/feature/helpers.py
+++ b/imutils/feature/helpers.py
@@ -4,7 +4,7 @@ import cv2
def corners_to_keypoints(corners):
"""function to take the corners from cv2.GoodFeaturesToTrack and return cv2.KeyPoints"""
... | fix corners_to_keypoints to always return list instead of None when None input | py |
diff --git a/mtools/mlaunch/mlaunch.py b/mtools/mlaunch/mlaunch.py
index <HASH>..<HASH> 100644
--- a/mtools/mlaunch/mlaunch.py
+++ b/mtools/mlaunch/mlaunch.py
@@ -28,7 +28,7 @@ try:
from pymongo import version_tuple as pymongo_version
from bson import SON
from StringIO import StringIO
- ... | Updated the remove of a "print" and the strictVersion import as stated in review of pull request #<I> | py |
diff --git a/tests/support/mock.py b/tests/support/mock.py
index <HASH>..<HASH> 100644
--- a/tests/support/mock.py
+++ b/tests/support/mock.py
@@ -316,12 +316,14 @@ class MockOpen(object):
self.read_data = read_data
self.filehandles = {}
+ self.call_count = 0
def __call__(self, name, *... | Track call_count in MockOpen | py |
diff --git a/tensor2tensor/bin/t2t_trainer.py b/tensor2tensor/bin/t2t_trainer.py
index <HASH>..<HASH> 100644
--- a/tensor2tensor/bin/t2t_trainer.py
+++ b/tensor2tensor/bin/t2t_trainer.py
@@ -328,12 +328,12 @@ def main(argv):
if argv:
set_hparams_from_args(argv[1:])
hparams = create_hparams()
- if is_chief()... | Move save_metadata function down Allows the hparams.json file include hparams added in the problems. | py |
diff --git a/ontobio/golr/golr_query.py b/ontobio/golr/golr_query.py
index <HASH>..<HASH> 100644
--- a/ontobio/golr/golr_query.py
+++ b/ontobio/golr/golr_query.py
@@ -332,6 +332,7 @@ class GolrSearchQuery(GolrAbstractQuery):
solr=None,
config=None,
fq=None,
+ ... | add fq pass through param to solr search | py |
diff --git a/master/buildbot/status/status_push.py b/master/buildbot/status/status_push.py
index <HASH>..<HASH> 100644
--- a/master/buildbot/status/status_push.py
+++ b/master/buildbot/status/status_push.py
@@ -378,10 +378,16 @@ class HttpStatusPush(StatusPush):
while True:
items = self.queue.po... | call item.asDict, if the method exists, in status_push. Fixes #<I>. | py |
diff --git a/pysat/instruments/methods/testing.py b/pysat/instruments/methods/testing.py
index <HASH>..<HASH> 100644
--- a/pysat/instruments/methods/testing.py
+++ b/pysat/instruments/methods/testing.py
@@ -190,8 +190,8 @@ def initialize_test_meta(epoch_name, data_keys):
alt_profile_meta['fraction'] = {'value_min'... | STY: Commenting out meta assignment not needed | py |
diff --git a/wp2github/_version.py b/wp2github/_version.py
index <HASH>..<HASH> 100644
--- a/wp2github/_version.py
+++ b/wp2github/_version.py
@@ -1,2 +1,2 @@
-__version_info__ = (1, 0, 1)
+__version_info__ = (1, 0, 2)
__version__ = '.'.join(map(str, __version_info__)) | Replace Markdown README with reStructured text | py |
diff --git a/tests/parser/functions/test_return_struct.py b/tests/parser/functions/test_return_struct.py
index <HASH>..<HASH> 100644
--- a/tests/parser/functions/test_return_struct.py
+++ b/tests/parser/functions/test_return_struct.py
@@ -24,7 +24,7 @@ def test() -> Voter:
c = get_contract_with_gas_estimation(co... | fix formatting on some test struct results | py |
diff --git a/nion/swift/model/Graphics.py b/nion/swift/model/Graphics.py
index <HASH>..<HASH> 100644
--- a/nion/swift/model/Graphics.py
+++ b/nion/swift/model/Graphics.py
@@ -1487,13 +1487,13 @@ class IntervalGraphic(Graphic):
p1 = mapping.map_point_channel_norm_to_widget(self.start)
p2 = mapping.map_... | Increase tolerance for hitting graphic edge with the mouse. Improves #<I>. | py |
diff --git a/Lib/fontmake/font_project.py b/Lib/fontmake/font_project.py
index <HASH>..<HASH> 100644
--- a/Lib/fontmake/font_project.py
+++ b/Lib/fontmake/font_project.py
@@ -120,11 +120,11 @@ class FontProject:
@timer()
def convert_curves(self, ufos, compatible=False):
if compatible:
- fo... | Reverse contours when converting to quadratic So that the truetype contours will go in the conventional direction. Fixes <URL> | py |
diff --git a/pyinfra/api/facts.py b/pyinfra/api/facts.py
index <HASH>..<HASH> 100644
--- a/pyinfra/api/facts.py
+++ b/pyinfra/api/facts.py
@@ -86,8 +86,8 @@ def get_facts(
# Create an instance of the fact
fact = facts[name]()
- # If we're pipelining & inside an op: just return the defaults
- if state.... | Return fact defaults when state is inactive. | py |
diff --git a/spyderlib/baseconfig.py b/spyderlib/baseconfig.py
index <HASH>..<HASH> 100644
--- a/spyderlib/baseconfig.py
+++ b/spyderlib/baseconfig.py
@@ -263,9 +263,9 @@ def get_interface_language():
"""
locale_language = locale.getdefaultlocale()[0]
- if locale_language is None:
- language =... | Return default language in case no locale is found | py |
diff --git a/jupytext/pandoc.py b/jupytext/pandoc.py
index <HASH>..<HASH> 100644
--- a/jupytext/pandoc.py
+++ b/jupytext/pandoc.py
@@ -3,11 +3,11 @@
import os
import subprocess
import tempfile
-import packaging.version
import nbformat
+from pkg_resources import parse_version
-class PandocError(ChildProcessError... | Use pkg_resources rather than packaging | py |
diff --git a/bakery/project/models.py b/bakery/project/models.py
index <HASH>..<HASH> 100644
--- a/bakery/project/models.py
+++ b/bakery/project/models.py
@@ -67,6 +67,18 @@ class Project(db.Model):
return self.config['local'].get('source', None)
@property
+ def source_files_type(self):
+ if s... | Autodetect source type for repository | py |
diff --git a/pyontutils/sheets.py b/pyontutils/sheets.py
index <HASH>..<HASH> 100644
--- a/pyontutils/sheets.py
+++ b/pyontutils/sheets.py
@@ -100,7 +100,7 @@ def _get_oauth_service(
# XXX this branch happens when the keys are in the user config
# but they are null and no secrets path is set
... | sheets get oauth warn if store scopes do not match requested cryptic errors due to using store files that are missing scope auth are extremely hard to debug since they are displaced from the point at which we retrieve the information now if the caller specifies the scopes the expect we can check them at load to make ... | py |
diff --git a/allennlp/data/dataset_readers/dataset_reader.py b/allennlp/data/dataset_readers/dataset_reader.py
index <HASH>..<HASH> 100644
--- a/allennlp/data/dataset_readers/dataset_reader.py
+++ b/allennlp/data/dataset_readers/dataset_reader.py
@@ -139,9 +139,8 @@ class DatasetReader(Registrable):
# And ... | Create method to save instances to cache file. (#<I>) Allows other dataset readers to override, e.g. to use pickle instead of jsonpickle. | py |
diff --git a/src/retrace.py b/src/retrace.py
index <HASH>..<HASH> 100755
--- a/src/retrace.py
+++ b/src/retrace.py
@@ -42,7 +42,7 @@ except ImportError:
# this may not work. Also, the version isn't available when vendoring.
__version__ = None
else:
- __version__ = pbr.version.VersionInfo('retrace').versio... | Add the vcs to the version string | py |
diff --git a/pmagpy/ipmag.py b/pmagpy/ipmag.py
index <HASH>..<HASH> 100755
--- a/pmagpy/ipmag.py
+++ b/pmagpy/ipmag.py
@@ -8428,8 +8428,11 @@ def find_ei(data, nb=1000, save=False, save_folder='.', fmt='svg',
or
2) a Fisherian distribution (site_correction = True). Default is FALSE.
Note that... | add more detail to find_ei docstring | py |
diff --git a/openquake/commonlib/logictree.py b/openquake/commonlib/logictree.py
index <HASH>..<HASH> 100644
--- a/openquake/commonlib/logictree.py
+++ b/openquake/commonlib/logictree.py
@@ -428,7 +428,7 @@ class SourceModelLogicTree(object):
else: # full enumeration
ordinal = 0
for ... | Added a comment [skip CI] | py |
diff --git a/engine.py b/engine.py
index <HASH>..<HASH> 100644
--- a/engine.py
+++ b/engine.py
@@ -1932,6 +1932,12 @@ class BibFormatObject:
if search_pattern is None:
search_pattern = []
self.search_pattern = search_pattern
+ try:
+ assert isinstance(recID, int), 'Argum... | formatter: type check of recid in BibFormatObject * Checks type of recid when creating a BibFormatObject. If the recid is not passed as integer, it will cast it and alert the admin. * Cherry-picked from d<I>c<I>f<I>f8c<I>e<I>a0f<I>c<I>d2d<I>d5 inspirehep/ops/prod. | py |
diff --git a/pandas/core/groupby/generic.py b/pandas/core/groupby/generic.py
index <HASH>..<HASH> 100644
--- a/pandas/core/groupby/generic.py
+++ b/pandas/core/groupby/generic.py
@@ -177,9 +177,6 @@ def pin_allowlisted_properties(klass: type[FrameOrSeries], allowlist: frozenset[
class SeriesGroupBy(GroupBy[Series]):
... | TYP: fix mypy on master (#<I>) | 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
@@ -148,7 +148,17 @@ class SQLStore(OpenIDStore):
def _execSQL(self, sql_name, *args):
sql = self._getSQL(sql_name)
- self.cur.execute(sql, ar... | [project @ store.sqlstore.SQLStore._execSQL: convert unicode args to str() to avoid postgresql api weirdness with unicode objects.] Thanks to Marek Kuziel for tracking this down. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -84,7 +84,7 @@ setup(
# but we assume it is already installed.
# "setuptools",
"wrapt~=1.10",
- 'windows-curses;platform_system=="Windows"',
+ 'windows-curses;platform_system=="Windows"... | only install windows-curses on CPython (and only on Windows, obviously) | py |
diff --git a/pandas/core/reshape/reshape.py b/pandas/core/reshape/reshape.py
index <HASH>..<HASH> 100644
--- a/pandas/core/reshape/reshape.py
+++ b/pandas/core/reshape/reshape.py
@@ -725,7 +725,7 @@ def get_dummies(data, prefix=None, prefix_sep='_', dummy_na=False,
----------
data : array-like, Series, or Dat... | Add missing period to get_dummies docs (#<I>) | py |
diff --git a/ai/backend/client/cli/pretty.py b/ai/backend/client/cli/pretty.py
index <HASH>..<HASH> 100644
--- a/ai/backend/client/cli/pretty.py
+++ b/ai/backend/client/cli/pretty.py
@@ -15,7 +15,9 @@ class PrintStatus(enum.Enum):
FAILED = 3
-def print_pretty(msg, *, status=PrintStatus.NONE, file=sys.stderr):
... | refs #<I>: Make it colored output REALLY working on Windows * Testing on Windows exposed an early reference binding problem with default arguments: sys.stderr is overriden by colorama but our print_pretty() function uses the vanilla version due to the module import/initialization order. | py |
diff --git a/tests/tests-unit-swpriv.py b/tests/tests-unit-swpriv.py
index <HASH>..<HASH> 100644
--- a/tests/tests-unit-swpriv.py
+++ b/tests/tests-unit-swpriv.py
@@ -130,7 +130,7 @@ class TestSwPriv(unittest.TestCase):
# when encoded in binary the tag will be a tenth the size of the file
# plus some ... | modified test to be slightly more permissive for size | py |
diff --git a/django_extensions/management/commands/notes.py b/django_extensions/management/commands/notes.py
index <HASH>..<HASH> 100644
--- a/django_extensions/management/commands/notes.py
+++ b/django_extensions/management/commands/notes.py
@@ -4,14 +4,14 @@ from django.conf import settings
import os
import re
-A... | Support all annotation tags with the command notes | py |
diff --git a/padme/__init__.py b/padme/__init__.py
index <HASH>..<HASH> 100644
--- a/padme/__init__.py
+++ b/padme/__init__.py
@@ -390,7 +390,8 @@ class metaclass(object):
self.mcls.__name__, cls.__name__)), (cls,), {})
-class proxy(proxy_base, metaclass=proxy_meta):
+@metaclass(proxy_meta)
+class ... | Use @metaclass to work with meta-classes This patch replaces metaklass= keyword argument in class definitions with the use of the @metaclass decorator. This makes the code compatible with Python <I> | py |
diff --git a/pcef/style.py b/pcef/style.py
index <HASH>..<HASH> 100644
--- a/pcef/style.py
+++ b/pcef/style.py
@@ -19,6 +19,7 @@ from pygments.styles import get_style_by_name
DEFAULT_FONT = "monospace"
if sys.platform == "win32":
DEFAULT_FONT = "Consolas"
+# todo add mac default font... Monaco?
#: Default edito... | Added a todo: find a default mac osx font that looks good | py |
diff --git a/nion/swift/model/Symbolic.py b/nion/swift/model/Symbolic.py
index <HASH>..<HASH> 100644
--- a/nion/swift/model/Symbolic.py
+++ b/nion/swift/model/Symbolic.py
@@ -347,16 +347,21 @@ class ComputationVariable(Observable.Observable, Persistence.PersistentObject):
return self.bound_item.base_objects if... | Clean up computation so binding is done before firing change events. This allows listeners to have the proper value. Helpful when there are multiple listeners. | py |
diff --git a/iron_cache.py b/iron_cache.py
index <HASH>..<HASH> 100644
--- a/iron_cache.py
+++ b/iron_cache.py
@@ -8,10 +8,12 @@ except:
try:
str_type = basestring
int_types = (int, long)
+ quote_plus = urllib.quote_plus
except NameError:
# PY3
str_type = str
int_types = (int,)
+ quote_... | BUG: quoteplus is not PY3 compat | py |
diff --git a/egg/_gui.py b/egg/_gui.py
index <HASH>..<HASH> 100644
--- a/egg/_gui.py
+++ b/egg/_gui.py
@@ -3658,7 +3658,7 @@ class DataboxProcessor(Window):
rescale = self.settings['PSD/Rescale'])
if n==1: ps.append(f)
ps.append(p)
-
+ ... | Update _gui.py Update to processor (first column should be processed too, not always a "time" column) | py |
diff --git a/wpull/network.py b/wpull/network.py
index <HASH>..<HASH> 100644
--- a/wpull/network.py
+++ b/wpull/network.py
@@ -15,18 +15,19 @@ _logger = logging.getLogger(__name__)
class Resolver(object):
IPv4 = socket.AF_INET
IPv6 = socket.AF_INET6
- tornado_resolver = tornado.netutil.ThreadedResolver()
... | Fixes Resolver to use global cache. | py |
diff --git a/src/oidcendpoint/common/authorization.py b/src/oidcendpoint/common/authorization.py
index <HASH>..<HASH> 100755
--- a/src/oidcendpoint/common/authorization.py
+++ b/src/oidcendpoint/common/authorization.py
@@ -77,8 +77,8 @@ def verify_uri(endpoint_context, request, uri_type, client_id=None):
raise... | Shouldn't do parse_qs twice. | py |
diff --git a/pybar/fei4_run_base.py b/pybar/fei4_run_base.py
index <HASH>..<HASH> 100644
--- a/pybar/fei4_run_base.py
+++ b/pybar/fei4_run_base.py
@@ -1028,6 +1028,8 @@ class Fei4RunBase(RunBase):
if module_id not in self._module_cfgs:
raise ValueError('Module ID "%s" is not valid' % module_id)
... | ENH: rename MainThread thread to indentify current module | py |
diff --git a/tests/calculators/hazard/classical/post_processing_test.py b/tests/calculators/hazard/classical/post_processing_test.py
index <HASH>..<HASH> 100644
--- a/tests/calculators/hazard/classical/post_processing_test.py
+++ b/tests/calculators/hazard/classical/post_processing_test.py
@@ -410,7 +410,6 @@ def _curv... | tests/calcs/hazard/classical/post_processing_test: Removed a superfluous `pass` from a test case class. | py |
diff --git a/tests/unittest_brain_numpy_core_multiarray.py b/tests/unittest_brain_numpy_core_multiarray.py
index <HASH>..<HASH> 100644
--- a/tests/unittest_brain_numpy_core_multiarray.py
+++ b/tests/unittest_brain_numpy_core_multiarray.py
@@ -36,7 +36,7 @@ class BrainNumpyCoreMultiarrayTest(unittest.TestCase):
... | DIsables the test for ravel_multi_index because strangely it fails when numpy is imported without alias whereas it is ok when numpy is imported with an alias. It should be investigated but is probably beyond the scope of this work. | py |
diff --git a/aiortc/rtcrtpsender.py b/aiortc/rtcrtpsender.py
index <HASH>..<HASH> 100644
--- a/aiortc/rtcrtpsender.py
+++ b/aiortc/rtcrtpsender.py
@@ -2,8 +2,6 @@ import asyncio
import logging
import random
-import pylibsrtp
-
from .codecs import get_encoder
from .exceptions import InvalidStateError
from .rtp im... | [rtp] don't catch SRTP exception This exception should not be raised anymore since configuring SRTP for retransmission. | py |
diff --git a/git_repo/services/ext/github.py b/git_repo/services/ext/github.py
index <HASH>..<HASH> 100644
--- a/git_repo/services/ext/github.py
+++ b/git_repo/services/ext/github.py
@@ -28,6 +28,7 @@ class GithubService(RepositoryService):
# upgrade self.gh from a GitHub object to a GitHubEnterprise objec... | keep _session of GitHub object. reuse it by GitHubEnterprise. | py |
diff --git a/salesforce/backend/query.py b/salesforce/backend/query.py
index <HASH>..<HASH> 100644
--- a/salesforce/backend/query.py
+++ b/salesforce/backend/query.py
@@ -86,6 +86,7 @@ def handle_api_exceptions(url, f, *args, **kwargs):
data = json.loads(str(e))[0]
if(data['errorCode'] == 'INVALID_SESSION_ID'):
... | ugh...forgot to renew all this time | py |
diff --git a/src/parsec/__init__.py b/src/parsec/__init__.py
index <HASH>..<HASH> 100644
--- a/src/parsec/__init__.py
+++ b/src/parsec/__init__.py
@@ -448,6 +448,9 @@ def times(p, mint, maxt=None):
while cnt < maxt:
res = p(text, index)
if res.status:
+ if maxt == float... | Prevent infinite loops. Fixes #<I>, thanks @andsens! | py |
diff --git a/client/setup.py b/client/setup.py
index <HASH>..<HASH> 100644
--- a/client/setup.py
+++ b/client/setup.py
@@ -93,6 +93,7 @@ setup(
install_requires=[
'ansible',
'apache-libcloud',
+ 'docker-py',
'google-api-python-client',
'google-apitools>=0.5.8',
'... | add docker-py to client dependencies to support local deployment | py |
diff --git a/src/crate/client/http.py b/src/crate/client/http.py
index <HASH>..<HASH> 100644
--- a/src/crate/client/http.py
+++ b/src/crate/client/http.py
@@ -544,8 +544,8 @@ class Client(object):
(ts, server, message))
else:
self._ac... | Use correct logger method ("warning" instead of "warn") | py |
diff --git a/pyswagger/contrib/client/webapp2.py b/pyswagger/contrib/client/webapp2.py
index <HASH>..<HASH> 100644
--- a/pyswagger/contrib/client/webapp2.py
+++ b/pyswagger/contrib/client/webapp2.py
@@ -45,9 +45,15 @@ class Webapp2TestClient(BaseClient):
req.prepare(scheme=self.prepare_schemes(req), handle_fil... | Fix the issue that webapp2 client failed with query string | py |
diff --git a/pystache/parsed.py b/pystache/parsed.py
index <HASH>..<HASH> 100644
--- a/pystache/parsed.py
+++ b/pystache/parsed.py
@@ -37,7 +37,11 @@ class ParsedTemplate(object):
Returns: a string of type unicode.
"""
- get_unicode = lambda val: val(context) if callable(val) else val
+ ... | Removed another use of the ternary operator for Python <I> support. | py |
diff --git a/brozzler/browser.py b/brozzler/browser.py
index <HASH>..<HASH> 100644
--- a/brozzler/browser.py
+++ b/brozzler/browser.py
@@ -561,7 +561,15 @@ var __brzl_tryLogin = function() {
passwordField.value = {{password|json}};
console.log('submitting username=' + usernameField.value
... | add hack for submitting a login form containing an element with name or id "submit", which masks the form submit() method | py |
diff --git a/algorithms/arrays/flatten.py b/algorithms/arrays/flatten.py
index <HASH>..<HASH> 100644
--- a/algorithms/arrays/flatten.py
+++ b/algorithms/arrays/flatten.py
@@ -11,7 +11,7 @@ def flatten(input_arr, output_arr=None):
if output_arr is None:
output_arr = []
for ele in input_arr:
- i... | Update flatten.py (#<I>) | py |
diff --git a/pgi/overrides/GObject.py b/pgi/overrides/GObject.py
index <HASH>..<HASH> 100644
--- a/pgi/overrides/GObject.py
+++ b/pgi/overrides/GObject.py
@@ -1,9 +1,26 @@
-# Copyright 2012 Christoph Reiter
+# -*- Mode: Python; py-indent-offset: 4 -*-
+# vim: tabstop=4 shiftwidth=4 expandtab
+#
+# Copyright (C) 2013 Ch... | Add missing copyright from pygobject | py |
diff --git a/kappa/function.py b/kappa/function.py
index <HASH>..<HASH> 100644
--- a/kappa/function.py
+++ b/kappa/function.py
@@ -98,9 +98,9 @@ class Function(object):
LOG.debug('tailing function: %s', self.name)
log_result = self.log.tail()
return log_result
- except Except... | Well that was embarassing. Not sure how that happened. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -3,7 +3,7 @@ from setuptools import setup
setup(
name='slacker',
- version='0.7.0',
+ version='0.7.3',
packages=['slacker'],
description='Slack API client',
author='Oktay Sancak', | Set version number to <I>. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -1,16 +1,22 @@
from setuptools import setup, find_packages
-version = '0.3'
+version = '0.4'
setup(name='smokesignal',
version=version,
description=("Simple python event signaling"),
long_description... | Version bump, and updated classifiers | py |
diff --git a/salt/modules/pw_user.py b/salt/modules/pw_user.py
index <HASH>..<HASH> 100644
--- a/salt/modules/pw_user.py
+++ b/salt/modules/pw_user.py
@@ -13,7 +13,7 @@ import copy
# Import salt libs
import salt.utils
-from six import string_types
+from salt.utils.six import string_types
from salt.exceptions impor... | Replaced module six in file /salt/modules/pw_user.py | py |
diff --git a/generic_follow/models.py b/generic_follow/models.py
index <HASH>..<HASH> 100644
--- a/generic_follow/models.py
+++ b/generic_follow/models.py
@@ -23,6 +23,6 @@ if getattr(settings, 'AUTH_USER_MODEL', 'auth.User') == 'auth.User':
from .model_mixins import UserFollowMixin
from django.contrib.auth.m... | forgot to call items() on the mixin dict | py |
diff --git a/FlowCal/io.py b/FlowCal/io.py
index <HASH>..<HASH> 100644
--- a/FlowCal/io.py
+++ b/FlowCal/io.py
@@ -870,11 +870,11 @@ class FCSData(np.ndarray):
Get the detector voltage used for the specified channel(s).
amplifier_gain
Get the amplifier gain used for the specified channel(s).
- ... | Small corrections in comments in io module. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -41,5 +41,5 @@ setup(
packages=('inplaceeditform_extra_fields', ),
include_package_data=True,
zip_safe=False,
- install_requires=['django-inplaceedit==1.2.2']
+ install_requires=['django-inplaceedit>=1.2.3... | Update the django-inplaceedit | py |
diff --git a/pgmpy/exceptions/Exceptions.py b/pgmpy/exceptions/Exceptions.py
index <HASH>..<HASH> 100644
--- a/pgmpy/exceptions/Exceptions.py
+++ b/pgmpy/exceptions/Exceptions.py
@@ -105,6 +105,7 @@ class ModelError(Exception):
def __str__(self):
return repr(str(self.extra))
+
class InvalidValueError(E... | Changed tests for division test_FactorSet.py | py |
diff --git a/tests/python/unittest/test_module.py b/tests/python/unittest/test_module.py
index <HASH>..<HASH> 100644
--- a/tests/python/unittest/test_module.py
+++ b/tests/python/unittest/test_module.py
@@ -381,7 +381,7 @@ def test_module_set_params():
aux_params={}, allow_missing=True, allow_extra=Fa... | [MXNET-<I>] Remove fixed seed in flaky test (#<I>) * Remove fixed seed in flaky test * Remove fixed seed in flaky test | py |
diff --git a/blockstack_client/storage.py b/blockstack_client/storage.py
index <HASH>..<HASH> 100644
--- a/blockstack_client/storage.py
+++ b/blockstack_client/storage.py
@@ -23,7 +23,6 @@
# this module contains the high-level methods for talking to ancillary storage.
-import pybitcoin
import keylib
import re
i... | rely on blockstack_client's hash functions | py |
diff --git a/salt/modules/yumpkg.py b/salt/modules/yumpkg.py
index <HASH>..<HASH> 100644
--- a/salt/modules/yumpkg.py
+++ b/salt/modules/yumpkg.py
@@ -1461,11 +1461,11 @@ def mod_repo(repo, basedir=None, **kwargs):
salt '*' pkg.mod_repo reponame basedir=/path/to/dir enabled=1
salt '*' pkg.mod_repo rep... | Make saltenv stripping more concise We're already filtering __pub_* arguments from the kwargs before using them to write the key/value pairs in repo config files, no need to do two extra dict lookups here. This commit excludes saltenv from the repo args in the same list comprehension where __pub_* arguments are filter... | py |
diff --git a/gps3/gps3.py b/gps3/gps3.py
index <HASH>..<HASH> 100644
--- a/gps3/gps3.py
+++ b/gps3/gps3.py
@@ -159,7 +159,7 @@ class Fix(object):
_emptydict = {key: 'n/a' for key in dataset}
setattr(self, package_name, _emptydict)
- self.DEVICES['devices'] = {key: 'n/a' for key in pac... | Corrected ommission of self in line #<I> | py |
diff --git a/scripts/experiments/run_ace2.py b/scripts/experiments/run_ace2.py
index <HASH>..<HASH> 100755
--- a/scripts/experiments/run_ace2.py
+++ b/scripts/experiments/run_ace2.py
@@ -362,9 +362,9 @@ class SrlExpParamsRunner(ExpParamsRunner):
root = RootStage()
train = get_annotation_as_tra... | Adding PM<I> with NONE repl | py |
diff --git a/moses/socks.py b/moses/socks.py
index <HASH>..<HASH> 100644
--- a/moses/socks.py
+++ b/moses/socks.py
@@ -64,6 +64,10 @@ class VersionNotSupportedError(Exception):
pass
+class AddressTypeNotSupportedError(Exception):
+ pass
+
+
def check_version(ver):
if ver != 0x05:
logger('sock... | Handle unknown address types for socks requests | py |
diff --git a/src/urh/util/Logger.py b/src/urh/util/Logger.py
index <HASH>..<HASH> 100644
--- a/src/urh/util/Logger.py
+++ b/src/urh/util/Logger.py
@@ -1,10 +1,17 @@
import logging
+import os
import sys
+import tempfile
from urh.constants import color
-logging.basicConfig(level=logging.WARNING, format='[%(level... | write log to file if app is frozen | py |
diff --git a/pysat/instruments/cosmic_gps.py b/pysat/instruments/cosmic_gps.py
index <HASH>..<HASH> 100644
--- a/pysat/instruments/cosmic_gps.py
+++ b/pysat/instruments/cosmic_gps.py
@@ -43,7 +43,6 @@ Warnings
from __future__ import print_function
from __future__ import absolute_import
-import glob
import numpy as... | STY: removed unused imports | py |
diff --git a/rinoh/text.py b/rinoh/text.py
index <HASH>..<HASH> 100644
--- a/rinoh/text.py
+++ b/rinoh/text.py
@@ -163,7 +163,7 @@ class StyledText(Styled):
level = getattr(self.parent, 'script_level', -1)
return level + 1 if self.is_script() else level
- @property
+ @cached_property
def ... | Caching StyledText.height also results in a small speedup | py |
diff --git a/pyetesync/service.py b/pyetesync/service.py
index <HASH>..<HASH> 100644
--- a/pyetesync/service.py
+++ b/pyetesync/service.py
@@ -11,6 +11,10 @@ from . import exceptions
API_PATH = ('api', 'v1')
+def _status_success(status_code):
+ return status_code // 100 == 2
+
+
class Authenticator:
def _... | Service: fix success test to consider 2xx as sucess instead of just <I> | py |
diff --git a/salt/modules/keystone.py b/salt/modules/keystone.py
index <HASH>..<HASH> 100644
--- a/salt/modules/keystone.py
+++ b/salt/modules/keystone.py
@@ -523,6 +523,4 @@ def _item_list():
protocols and
bootstrap Grants a new role to a new user on a new tenant, after
... | We don't need to add bash-completion | py |
diff --git a/sos/plugins/mysql.py b/sos/plugins/mysql.py
index <HASH>..<HASH> 100644
--- a/sos/plugins/mysql.py
+++ b/sos/plugins/mysql.py
@@ -79,6 +79,8 @@ class Mysql(Plugin):
name = "mysqldump_--all-databases"
self.add_cmd_output("mysqldump %s" % opts, suggest_filename=name)
+ self... | [mysql] Add 'du' to the mysql database path This patch gathers the size of the content in var/lib/mysql , which can be useful in some cases to see if a db is growing out of control (for example keystones tokens or another). Closes: #<I> Resolves: #<I> | py |
diff --git a/version_template.py b/version_template.py
index <HASH>..<HASH> 100644
--- a/version_template.py
+++ b/version_template.py
@@ -22,7 +22,7 @@ import the expand_ function and invoke it directly with either no or exactly one
# Note to maintainers:
#
-# - don't import at module level unless you intend for ... | Explicitly require setuptools >=<I> (resolves #<I>) | 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
@@ -25,7 +25,7 @@ import pandas
from openquake.baselib import general, parallel, python3compat
from openquake.commonlib i... | Fixed oq reaggregate | py |
diff --git a/src/vistir/__init__.py b/src/vistir/__init__.py
index <HASH>..<HASH> 100644
--- a/src/vistir/__init__.py
+++ b/src/vistir/__init__.py
@@ -13,7 +13,7 @@ from .misc import load_path, partialclass, run, shell_escape
from .path import mkdir_p, rmtree
-__version__ = '0.1.5'
+__version__ = '0.1.6.dev0'
... | Prebump to <I>.dev0 | py |
diff --git a/auto_ml/utils.py b/auto_ml/utils.py
index <HASH>..<HASH> 100644
--- a/auto_ml/utils.py
+++ b/auto_ml/utils.py
@@ -123,6 +123,12 @@ class FinalModelATC(BaseEstimator, TransformerMixin):
for col_idx in range(X.shape[1]):
col_vals = X.getcol(col_idx).toarray()
+ ... | super bad check if this is a binary variable | py |
diff --git a/docs/conf.py b/docs/conf.py
index <HASH>..<HASH> 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -60,9 +60,9 @@ author = 'Alan Wagner'
# built documents.
#
# The short X.Y version.
-version = '0.0.0'
+version = '1.0.0'
# The full version, including alpha/beta/rc tags.
-release = '0.0.0'
+release = '1.0... | updating to version <I> in docs conf | py |
diff --git a/astroplan/core.py b/astroplan/core.py
index <HASH>..<HASH> 100644
--- a/astroplan/core.py
+++ b/astroplan/core.py
@@ -935,6 +935,36 @@ class Observer(object):
"""
raise NotImplementedError()
+ @u.quantity_input(horizon=u.deg)
+ def can_see(self, time, target, horizon=0*u.degree, r... | Adding can_see() method for quick visibility checks | py |
diff --git a/pydeconz/__init__.py b/pydeconz/__init__.py
index <HASH>..<HASH> 100644
--- a/pydeconz/__init__.py
+++ b/pydeconz/__init__.py
@@ -74,7 +74,9 @@ class DeconzSession:
self.lights[light_id] = DeconzLight(light_id, light, self.async_put_state)
for sensor_id, sensor in sensors.items():
-... | Don't create an entry in sensors for non supported sensor types | py |
diff --git a/docs/conf.py b/docs/conf.py
index <HASH>..<HASH> 100755
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -21,9 +21,9 @@ sys.path.insert(0, os.path.abspath('../crispy_forms'))
sys.path.insert(0, os.path.abspath('../crispy_forms/templatetags'))
sys.path.append(os.path.abspath('_themes'))
-#import settings
-#from... | Reverting docs conf.py changes for RTD | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.