diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/km3pipe/db.py b/km3pipe/db.py
index <HASH>..<HASH> 100644
--- a/km3pipe/db.py
+++ b/km3pipe/db.py
@@ -284,3 +284,12 @@ class DOMContainer(object):
log.warn("Multiple entries found: {0}".format(lookup) + "\n" +
"Return the first one.")
return lookup[0]
+
+ def ... | Lookup function for CLB UPI and Floor | py |
diff --git a/salt/utils/parsers.py b/salt/utils/parsers.py
index <HASH>..<HASH> 100644
--- a/salt/utils/parsers.py
+++ b/salt/utils/parsers.py
@@ -1747,13 +1747,18 @@ class SaltCMDOptionParser(six.with_metaclass(OptionParserMeta,
if len(self.config['fun']) != len(self.config['arg']):
... | Bugfix: Kwargs is not correctly parsed when using multi-function jobs The problem was that in multi-function jobs, 'arg' has an embedded set of lists. salt.utils.args.parse_input() is not aware of this embedded set of lists and hence will not correctly parse out the kwargs (convert it from a string to the proper data ... | py |
diff --git a/src/app/readers/tsv.py b/src/app/readers/tsv.py
index <HASH>..<HASH> 100644
--- a/src/app/readers/tsv.py
+++ b/src/app/readers/tsv.py
@@ -20,9 +20,10 @@ def generate_tsv_pep_protein_quants(fns):
from multiple files that may have different headers. Yields
fn, header as well as quant data for each ... | Do not do basename operation on every output line/ms1 feature | py |
diff --git a/doc/conf.py b/doc/conf.py
index <HASH>..<HASH> 100644
--- a/doc/conf.py
+++ b/doc/conf.py
@@ -25,6 +25,8 @@ version = open("../VERSION.txt").read().strip()
# documentation root, use os.path.abspath to make it absolute, like shown here.
sys.path.insert(0, os.path.abspath('..'))
+from luma.lcd.device imp... | include all supported devices in project name (#<I>) | py |
diff --git a/hashedindex/textparser.py b/hashedindex/textparser.py
index <HASH>..<HASH> 100644
--- a/hashedindex/textparser.py
+++ b/hashedindex/textparser.py
@@ -68,10 +68,10 @@ def get_ngrams(token_list, n=2):
tokens = iter(token_list)
try:
ngram = [next(tokens) for _ in range(0, n)]
+ yield... | Rearrange 'yield' statement for readability | py |
diff --git a/tests/test_examples.py b/tests/test_examples.py
index <HASH>..<HASH> 100755
--- a/tests/test_examples.py
+++ b/tests/test_examples.py
@@ -19,6 +19,7 @@ else:
import unittest
+@unittest.skip(reason='Works locally with tox but fails on Travis.')
class TestExamples(unittest.TestCase):
def tes... | Re-remove TestExamples which still fail on Travis. | py |
diff --git a/template_timings_panel/panels/TemplateTimings.py b/template_timings_panel/panels/TemplateTimings.py
index <HASH>..<HASH> 100644
--- a/template_timings_panel/panels/TemplateTimings.py
+++ b/template_timings_panel/panels/TemplateTimings.py
@@ -47,7 +47,6 @@ def cursor(func, self):
results = threading.local(... | Update TemplateTimings.py Issue #<I> fix | py |
diff --git a/safe/plugin.py b/safe/plugin.py
index <HASH>..<HASH> 100644
--- a/safe/plugin.py
+++ b/safe/plugin.py
@@ -884,6 +884,7 @@ class Plugin():
from safe.gui.tools.osm_downloader_dialog import OsmDownloaderDialog
dialog = OsmDownloaderDialog(self.iface.mainWindow(), self.iface)
+ dialo... | Fix OSM download dialog is never deleted Because it's parented to the iface mainwindow, PyQt transfers ownership of the dialog to the main window. And accordingly it's never automatically deleted when the dialog is closed. | py |
diff --git a/pyls/config/config.py b/pyls/config/config.py
index <HASH>..<HASH> 100644
--- a/pyls/config/config.py
+++ b/pyls/config/config.py
@@ -5,9 +5,6 @@ import pkg_resources
import pluggy
from pyls import _utils, hookspecs, uris, PYLS
-from .flake8_conf import Flake8Config
-from .pycodestyle_conf import PyCod... | Do not depend on pycodestyle (#<I>) | py |
diff --git a/pysnmp/smi/view.py b/pysnmp/smi/view.py
index <HASH>..<HASH> 100644
--- a/pysnmp/smi/view.py
+++ b/pysnmp/smi/view.py
@@ -66,6 +66,8 @@ class MibViewController:
# Types & MIB vars indices
for n, v in self.mibBuilder.mibSymbols[modName].items():
+ if n == "PYSNMP_M... | do not index PYSNMP_MODULE_ID symbol as it may get resolved into OID label instead of actual MIB object name | py |
diff --git a/rets/session.py b/rets/session.py
index <HASH>..<HASH> 100644
--- a/rets/session.py
+++ b/rets/session.py
@@ -17,7 +17,12 @@ from .parsers.login.one_five import OneFive
from .parsers.get_metadata.system import System
from .parsers.get_metadata.resource import Resource
from .models.bulletin import Bullet... | python 2 and 3 | py |
diff --git a/GUI/gui.py b/GUI/gui.py
index <HASH>..<HASH> 100644
--- a/GUI/gui.py
+++ b/GUI/gui.py
@@ -77,9 +77,14 @@ def parse_input():
if __name__ == "__main__":
import glob
- files = glob.glob('./*.fcs')[0]
+ import os
+ import FlowCytometryTools
+ datadir = os.path.join(FlowCytometryTools.__path... | feeding in datafile automatically from tests instead of same folder | py |
diff --git a/src/discoursegraphs/readwrite/mmax2.py b/src/discoursegraphs/readwrite/mmax2.py
index <HASH>..<HASH> 100755
--- a/src/discoursegraphs/readwrite/mmax2.py
+++ b/src/discoursegraphs/readwrite/mmax2.py
@@ -4,8 +4,7 @@
import os
from lxml import etree
-from networkx import MultiDiGraph
-
+from discoursegrap... | based MMAX docgraph on discourse docgraph class | py |
diff --git a/pysdmx.py b/pysdmx.py
index <HASH>..<HASH> 100644
--- a/pysdmx.py
+++ b/pysdmx.py
@@ -17,6 +17,7 @@ from io import BytesIO
import re
import zipfile
import time
+from collections import OrderedDict
def date_parser(date, frequency):
"""Generate proper index for pandas"""
@@ -156,7 +157,7 @@ class ... | put codes in OrderedDict. Thanks to dr-leo for suggesting it. | py |
diff --git a/bitex/interfaces/rocktrading.py b/bitex/interfaces/rocktrading.py
index <HASH>..<HASH> 100644
--- a/bitex/interfaces/rocktrading.py
+++ b/bitex/interfaces/rocktrading.py
@@ -48,7 +48,7 @@ class RockTradingLtd(RockTradingREST):
return self.public_query('funds/%s/trades' % pair, params=kwargs)
... | change the dictionary key names back to their original names | py |
diff --git a/geometry.py b/geometry.py
index <HASH>..<HASH> 100755
--- a/geometry.py
+++ b/geometry.py
@@ -245,7 +245,7 @@ class VertNormals(Ch):
"""If normalized==True, normals are normalized; otherwise they'll be about as long as neighboring edges."""
dterms = 'v'
- terms = 'f' 'normalized'
+ te... | Fix missing comma in VertNormals.terms | py |
diff --git a/spyderlib/spyder.py b/spyderlib/spyder.py
index <HASH>..<HASH> 100644
--- a/spyderlib/spyder.py
+++ b/spyderlib/spyder.py
@@ -445,14 +445,8 @@ class MainWindow(QMainWindow):
self.setWindowIcon(get_icon(icon_name, resample=os.name != 'nt'))
# Showing splash screen
- pix... | Main Window: Use the first splash screen for MainWindow too - I verified there is no problem with this approach. - Besides people report it's confuse to see two splash screens and sometimes the first one gets stucked. | py |
diff --git a/pyes/queryset.py b/pyes/queryset.py
index <HASH>..<HASH> 100644
--- a/pyes/queryset.py
+++ b/pyes/queryset.py
@@ -792,6 +792,7 @@ class QuerySet(object):
c._filters=list(self._filters)
c._facets=list(self._facets)
c._fields=list(self._fields)
+ c._ordering=list(self._order... | Update pyes/queryset.py Cloning of QuerySet now includes ordering. | py |
diff --git a/tensorforce/tests/test_tutorial_code.py b/tensorforce/tests/test_tutorial_code.py
index <HASH>..<HASH> 100644
--- a/tensorforce/tests/test_tutorial_code.py
+++ b/tensorforce/tests/test_tutorial_code.py
@@ -23,7 +23,6 @@ from __future__ import print_function
from __future__ import division
import unitte... | changed mocked MyClient object to custom mock class | py |
diff --git a/treebeard/mp_tree.py b/treebeard/mp_tree.py
index <HASH>..<HASH> 100644
--- a/treebeard/mp_tree.py
+++ b/treebeard/mp_tree.py
@@ -524,8 +524,21 @@ class MP_Node(Node):
# saving the instance before returning it
newobj.save()
newobj._cached_parent_obj = self
+
+ # we increas... | MP_Node.add_child was failing in sorted trees when adding to a parent with childs (needs django <I>+ to be cleanly fixed) | py |
diff --git a/lyricfetch/tests/test_dbus.py b/lyricfetch/tests/test_dbus.py
index <HASH>..<HASH> 100644
--- a/lyricfetch/tests/test_dbus.py
+++ b/lyricfetch/tests/test_dbus.py
@@ -34,7 +34,7 @@ class DBusInterface:
return f'Methods: {self.methods}, Properties: {self.properties}'
-class DBusService:
+class D... | Rename DBusService to DBusObject | py |
diff --git a/openid/test/test_association_response.py b/openid/test/test_association_response.py
index <HASH>..<HASH> 100644
--- a/openid/test/test_association_response.py
+++ b/openid/test/test_association_response.py
@@ -176,7 +176,7 @@ class TestOpenID1AssociationResponseSessionType(BaseAssocTest):
"""
... | Fix test broken by <I>aa2a9 (change form built-in logging to logging module) | py |
diff --git a/karaage/institutes/models.py b/karaage/institutes/models.py
index <HASH>..<HASH> 100644
--- a/karaage/institutes/models.py
+++ b/karaage/institutes/models.py
@@ -185,3 +185,9 @@ class InstituteDelegate(models.Model):
for field in self._tracker.changed():
log(None, self.institute, 2, '... | Log deleted delegates. Change-Id: I<I>d<I>dc<I>f4b3a<I>ad<I>ca<I>e<I>bfe5b<I> | py |
diff --git a/treeherder/webapp/api/permissions.py b/treeherder/webapp/api/permissions.py
index <HASH>..<HASH> 100644
--- a/treeherder/webapp/api/permissions.py
+++ b/treeherder/webapp/api/permissions.py
@@ -10,9 +10,7 @@ class IsStaffOrReadOnly(permissions.BasePermission):
def has_permission(self, request, view)... | Bug <I> - Remove unnecessary check for user.is_authenticated Since: * It's always true for all users other than `AnonymousUser`. * d-r-f's similar `IsAdminUser` implementation doesn't use it: <URL> | py |
diff --git a/baron/finder.py b/baron/finder.py
index <HASH>..<HASH> 100644
--- a/baron/finder.py
+++ b/baron/finder.py
@@ -83,6 +83,8 @@ def render(node):
for pos, (key_type, render_key, dependent) in enumerate(d[node['type']]):
if not dependent and not node.get(render_key):
continue
+ ... | [enh] allow non-list dependency in rendering dict | py |
diff --git a/pagoda/cooper.py b/pagoda/cooper.py
index <HASH>..<HASH> 100644
--- a/pagoda/cooper.py
+++ b/pagoda/cooper.py
@@ -267,7 +267,6 @@ class Markers:
joint.setAnchor2Rel(self.attach_offsets[label])
joint.setParam(ode.ParamCFM, self.cfm / f)
joint.setParam(ode.ParamERP, sel... | Do not set feedback on markers; seems to break. | py |
diff --git a/police_api/version.py b/police_api/version.py
index <HASH>..<HASH> 100644
--- a/police_api/version.py
+++ b/police_api/version.py
@@ -1 +1 @@
-__version__ = '1.1.0'
+__version__ = '1.2.0dev' | The next version will be <I> | py |
diff --git a/tests.py b/tests.py
index <HASH>..<HASH> 100644
--- a/tests.py
+++ b/tests.py
@@ -77,6 +77,18 @@ class BasicPreconditionTests (PreconditionTestBase):
self.assertEqual(0.25, f(0.5, 2))
+ def test_zero_preconditions(self):
+ p = preconditions()
+
+ def f():
+ return N... | Add a basic test: with no preconditions, the wrapped function is returned directly. | py |
diff --git a/vertex/test/test_q2q.py b/vertex/test/test_q2q.py
index <HASH>..<HASH> 100644
--- a/vertex/test/test_q2q.py
+++ b/vertex/test/test_q2q.py
@@ -609,12 +609,10 @@ class ConnectionTestMixin:
ErroneousClientFactory())
def connected(proto):
- def trapit(what):
- ... | Rewrite this test in a slightly more modern style; also fix a bug introduced earlier in this branch where the wrong exception type was being checked | py |
diff --git a/pandas/io/formats/style.py b/pandas/io/formats/style.py
index <HASH>..<HASH> 100644
--- a/pandas/io/formats/style.py
+++ b/pandas/io/formats/style.py
@@ -536,7 +536,7 @@ class Styler(StylerRenderer):
>>> df = pd.DataFrame([[1,2], [3,4]])
>>> s = df.style.highlight_max(axis=None,
... | skipped doc test (#<I>) | py |
diff --git a/src/rammbock/Rammbock.py b/src/rammbock/Rammbock.py
index <HASH>..<HASH> 100755
--- a/src/rammbock/Rammbock.py
+++ b/src/rammbock/Rammbock.py
@@ -78,10 +78,13 @@ class Rammbock(object):
def get_header(self, name):
print self.message
- return (x for _, x in self.message.header if _ ==... | small refactoring. IMHO "_" should not be used in any ways (here it was matched against name).. it should only tell that the value is not used | py |
diff --git a/Lib/fontParts/base/component.py b/Lib/fontParts/base/component.py
index <HASH>..<HASH> 100644
--- a/Lib/fontParts/base/component.py
+++ b/Lib/fontParts/base/component.py
@@ -87,7 +87,7 @@ class BaseComponent(
# baseGlyph
baseGlyph = dynamicProperty("base_baseGlyph",
- ... | Make doc string more specific for baseComponent.baseGlyph (#<I>) In the docs (<URL>), this definition is slightly misleading. The method returns the glyph name for the referenced glyph – not the glyph object itself. | py |
diff --git a/yaurtww/manifest.py b/yaurtww/manifest.py
index <HASH>..<HASH> 100644
--- a/yaurtww/manifest.py
+++ b/yaurtww/manifest.py
@@ -35,7 +35,7 @@ class Manifest():
with open(filename, 'r') as f:
for line in f:
if line.startswith("Version"):
- self._parse_... | set self.mver and self.rel_num | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -27,7 +27,7 @@ setup(
author='edX',
author_email='oscm@edx.org',
license='AGPL',
- packages=find_packages(exclude=['tests*']),
+ packages=find_packages(exclude=['tests', '*.tests']),
install_requires=... | Fix setup.py to exclude auth_backends/tests from installation | py |
diff --git a/openquake/server/tests/views_test.py b/openquake/server/tests/views_test.py
index <HASH>..<HASH> 100644
--- a/openquake/server/tests/views_test.py
+++ b/openquake/server/tests/views_test.py
@@ -40,6 +40,7 @@ from openquake.server.db import actions
from openquake.server.dbserver import db, get_status
from... | Raised the timeout in views_test [skip CI] | py |
diff --git a/asn1crypto/ocsp.py b/asn1crypto/ocsp.py
index <HASH>..<HASH> 100644
--- a/asn1crypto/ocsp.py
+++ b/asn1crypto/ocsp.py
@@ -330,7 +330,7 @@ class StatusGood(Null):
None or 'good'
"""
- if value is not None and value != 'good':
+ if value is not None and value != 'good' a... | Preserve the ability to pass core.Null() into ocsp.CertStatus() | py |
diff --git a/tools/otci/tests/test_otci.py b/tools/otci/tests/test_otci.py
index <HASH>..<HASH> 100644
--- a/tools/otci/tests/test_otci.py
+++ b/tools/otci/tests/test_otci.py
@@ -209,12 +209,9 @@ class TestOTCI(unittest.TestCase):
logging.info('leader bbr config: %r', bbr_config)
logging.info('leader ... | [otci] fix test random fails (#<I>) | py |
diff --git a/spikeextractors/extractors/mearecextractors/mearecextractors.py b/spikeextractors/extractors/mearecextractors/mearecextractors.py
index <HASH>..<HASH> 100644
--- a/spikeextractors/extractors/mearecextractors/mearecextractors.py
+++ b/spikeextractors/extractors/mearecextractors/mearecextractors.py
@@ -202,6... | fixed a bug in MEArecSortingExtractor | py |
diff --git a/src/canmatrix/formats/sym.py b/src/canmatrix/formats/sym.py
index <HASH>..<HASH> 100644
--- a/src/canmatrix/formats/sym.py
+++ b/src/canmatrix/formats/sym.py
@@ -302,6 +302,7 @@ Title=\"{}\"
for signal in frame.signals:
if signal.multiplex == i or signa... | Fix additional case in sym enum export (#<I>) * Accept types which are in the value table as enum sgnals * Fix previous change to also generate enums from the signal values field when signal is in a multiplexed frame. | py |
diff --git a/examples/menuconfig.py b/examples/menuconfig.py
index <HASH>..<HASH> 100644
--- a/examples/menuconfig.py
+++ b/examples/menuconfig.py
@@ -152,7 +152,7 @@ def value_str(sc):
return "-->"
return " "
- tri_val_str = {0: " ", 1: "M", 2: "*"}[sc.tri_value]
+ tri_val_str = (" ", "... | Simplify menuconfig.py's value_str() a bit No need to use a dictionary. | py |
diff --git a/abydos/tests/test_phonetic.py b/abydos/tests/test_phonetic.py
index <HASH>..<HASH> 100644
--- a/abydos/tests/test_phonetic.py
+++ b/abydos/tests/test_phonetic.py
@@ -4103,15 +4103,14 @@ class BeiderMorseTestCases(unittest.TestCase):
def test_bmpm_uscensus2000(self):
"""test abydos.bm.bmpm (US... | reduced set of US Census <I> tests for BMPM | py |
diff --git a/filer/fields/multistorage_file.py b/filer/fields/multistorage_file.py
index <HASH>..<HASH> 100644
--- a/filer/fields/multistorage_file.py
+++ b/filer/fields/multistorage_file.py
@@ -1,9 +1,9 @@
#-*- coding: utf-8 -*-
-import os
import base64
import hashlib
import warnings
from io import BytesIO
+from ... | Rebased PR#<I> from rollstudio to the latest develop branch, b<I> | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -1,6 +1,5 @@
__author__ = 'seanfitz'
-import os
from setuptools import setup
setup( | Remove the unused 'import os' from setup.py | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -203,7 +203,7 @@ setup(
install_requires=[
'ruffus>=2.6.3',
'Pillow>=2.7.0',
- 'lxml>=3.4.2',
+ 'lxml>=3.3.3',
'reportlab>=3.1.44',
'PyPDF2>=1.25.1'
], | setup: rollback lxml version to <I> - that's the latest in Ubuntu <I> | py |
diff --git a/djstripe/models/webhooks.py b/djstripe/models/webhooks.py
index <HASH>..<HASH> 100644
--- a/djstripe/models/webhooks.py
+++ b/djstripe/models/webhooks.py
@@ -219,7 +219,7 @@ class WebhookEventTrigger(models.Model):
if obj.valid:
if djstripe_settings.WEBHOOK_EVENT_CALLBACK:
... | Passed api_key in WEBHOOK_EVENT_CALLBACK | py |
diff --git a/intake/cli/server/tests/test_server.py b/intake/cli/server/tests/test_server.py
index <HASH>..<HASH> 100644
--- a/intake/cli/server/tests/test_server.py
+++ b/intake/cli/server/tests/test_server.py
@@ -229,9 +229,9 @@ class TestServerV1Source(TestServerV1Base):
@pytest.fixture()
def multi_server(tmpdir):... | Fix for file copy that breaks circleCI on conda-forge | py |
diff --git a/python/ray/tests/test_actor.py b/python/ray/tests/test_actor.py
index <HASH>..<HASH> 100644
--- a/python/ray/tests/test_actor.py
+++ b/python/ray/tests/test_actor.py
@@ -906,6 +906,30 @@ def test_actor_load_balancing(ray_start_cluster):
@pytest.mark.skipif(
+ pytest_timeout is None,
+ reason="Ti... | Add regression test for actor load balancing (#<I>) * Add regression test for actor load balancing * Increase timeout * Reduce number of nodes? | py |
diff --git a/schiene/schiene.py b/schiene/schiene.py
index <HASH>..<HASH> 100755
--- a/schiene/schiene.py
+++ b/schiene/schiene.py
@@ -19,7 +19,7 @@ def parse_connections(html):
price = None
data = {
- 'details': columns[0].a.get('href'),
+ 'details': columns[0].a.get('href... | Fix detail page being collaped when on same network | py |
diff --git a/pifpaf/__main__.py b/pifpaf/__main__.py
index <HASH>..<HASH> 100644
--- a/pifpaf/__main__.py
+++ b/pifpaf/__main__.py
@@ -229,7 +229,7 @@ class PifpafApp(app.App):
"[%(name)s] %(message)s%(color_stop)s")
outputs = [
- daiquiri.output.Stream(sys.stdout, formatter=formatter... | Fix logging being done on stdout instead of stderr | py |
diff --git a/pyhsm/ksm/yubikey_ksm.py b/pyhsm/ksm/yubikey_ksm.py
index <HASH>..<HASH> 100644
--- a/pyhsm/ksm/yubikey_ksm.py
+++ b/pyhsm/ksm/yubikey_ksm.py
@@ -220,7 +220,7 @@ class SQLBackend(object):
try:
s = sqlalchemy.select([self.aead_table]).where(
(self.aead_table.c.public_i... | key_handles is a list of tuples | py |
diff --git a/qav/validators.py b/qav/validators.py
index <HASH>..<HASH> 100644
--- a/qav/validators.py
+++ b/qav/validators.py
@@ -175,7 +175,7 @@ class URIValidator(Validator):
# taken from Django URL validator
uri_regex = re.compile(
- r'^(?:http|ftp)s?://' # http:// or https://
+ r'^\w+:(?... | allow uri schemas outside of ftp/http(s) to be valid | py |
diff --git a/holodeck/packagemanager.py b/holodeck/packagemanager.py
index <HASH>..<HASH> 100644
--- a/holodeck/packagemanager.py
+++ b/holodeck/packagemanager.py
@@ -85,7 +85,6 @@ def install(package_name):
Positional Arguments:
package_name -- the name of the package to install
"""
-
holodeck_path... | Added try catch for unicode error | py |
diff --git a/tests/conftest.py b/tests/conftest.py
index <HASH>..<HASH> 100644
--- a/tests/conftest.py
+++ b/tests/conftest.py
@@ -23,8 +23,7 @@ def clear_workers():
def _zap():
kills = [
- ['pkill', '-f', 'python launch.py'],
- ['pkill', '-f', 'python worker.py'],
+ ['p... | Update process termination to work with entry point commands | py |
diff --git a/isogeo_pysdk/isogeo.py b/isogeo_pysdk/isogeo.py
index <HASH>..<HASH> 100644
--- a/isogeo_pysdk/isogeo.py
+++ b/isogeo_pysdk/isogeo.py
@@ -339,6 +339,7 @@ class Isogeo(OAuth2Session):
password=password,
client_id=self.client_id,
client_secret=self.client_se... | Use proxies into token fetch too | py |
diff --git a/fermipy/diffuse/source_factory.py b/fermipy/diffuse/source_factory.py
index <HASH>..<HASH> 100644
--- a/fermipy/diffuse/source_factory.py
+++ b/fermipy/diffuse/source_factory.py
@@ -172,6 +172,8 @@ class SourceFactory(object):
return catalog.Catalog4FGLP(fitsfile=catalog_file, extdir=catalog_e... | added branch to load FL8Y type catalog | py |
diff --git a/pyrax/autoscale.py b/pyrax/autoscale.py
index <HASH>..<HASH> 100644
--- a/pyrax/autoscale.py
+++ b/pyrax/autoscale.py
@@ -441,9 +441,9 @@ class ScalingGroupManager(BaseManager):
largs = scaling_group.launchConfiguration.get("args", {})
srv_args = largs.get("server", {})
lb_args =... | Updated update_launch_config() since flav variable was being set to None. | py |
diff --git a/spyder/plugins/variableexplorer/widgets/objectexplorer/objectexplorer.py b/spyder/plugins/variableexplorer/widgets/objectexplorer/objectexplorer.py
index <HASH>..<HASH> 100644
--- a/spyder/plugins/variableexplorer/widgets/objectexplorer/objectexplorer.py
+++ b/spyder/plugins/variableexplorer/widgets/object... | Object Explorer: Update object explorer refresh_rate | py |
diff --git a/honcho/process.py b/honcho/process.py
index <HASH>..<HASH> 100644
--- a/honcho/process.py
+++ b/honcho/process.py
@@ -60,11 +60,12 @@ class ProcessManager(object):
pm.loop()
"""
- def __init__(self):
+ def __init__(self, printer=Printer):
+ self._printer = printer
self... | process: Inject the Printer ctor into ProcessManager | py |
diff --git a/bids/variables/io.py b/bids/variables/io.py
index <HASH>..<HASH> 100644
--- a/bids/variables/io.py
+++ b/bids/variables/io.py
@@ -205,7 +205,7 @@ def _load_time_variables(layout, dataset=None, columns=None, scan_length=None,
except Exception as e:
if scan_length is not None:
... | Update bids/variables/io.py | py |
diff --git a/cogen/core/pubsub.py b/cogen/core/pubsub.py
index <HASH>..<HASH> 100644
--- a/cogen/core/pubsub.py
+++ b/cogen/core/pubsub.py
@@ -61,9 +61,13 @@ class PSGet(events.TimedOperation):
return self.result
def cleanup(self, sched, coro):
- if coro in self.queue.active_subscriber... | fixed a bug (timeout will not be raised) when timeout is about to happen and the the pubsub key is not the coroutine instance | py |
diff --git a/tests/laundry_test.py b/tests/laundry_test.py
index <HASH>..<HASH> 100644
--- a/tests/laundry_test.py
+++ b/tests/laundry_test.py
@@ -32,7 +32,7 @@ class TestLaundry():
ok_('time_left' in machine)
def test_usage(self):
- for i in xrange(10):
+ for i in range(10):
... | apparently xrange doesn't exist in python 3 | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -30,6 +30,6 @@ setup(
'django-import-export>=0.5.0',
'six',
'python-dateutil',
- 'django-adminlte2',
+ 'django-adminlte2>=0.1.3',
],
) | Setting django-adminlte2 version requirement in setup.py | py |
diff --git a/visidata/loaders/fixed_width.py b/visidata/loaders/fixed_width.py
index <HASH>..<HASH> 100644
--- a/visidata/loaders/fixed_width.py
+++ b/visidata/loaders/fixed_width.py
@@ -40,7 +40,7 @@ def columnize(rows):
colstart = i
prev = i
- yield colstart, None # final column gets rest... | [loader] Fix editing in final column for fixed-width loader Returning `None` raises a `TypeError` in `putValue()` when editing cells in the final column. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -15,7 +15,7 @@ setup(
long_description_content_type="text/markdown",
url="https://github.com/CS207-Final-Project-Group-10/cs207-FinalProject",
tests_require=["pytest"],
- packages=['fluxions']
+ packages=[... | corrected missing comma in setup.py | py |
diff --git a/pdfconduit/flatten.py b/pdfconduit/flatten.py
index <HASH>..<HASH> 100644
--- a/pdfconduit/flatten.py
+++ b/pdfconduit/flatten.py
@@ -106,13 +106,14 @@ class IMGtoPDF:
class Flatten:
- def __init__(self, file_name, scale=2.0, tempdir=None):
+ def __init__(self, file_name, scale=2.0, suffix='flat... | Added suffix param to Flatten class | py |
diff --git a/arviz/plots/forestplot.py b/arviz/plots/forestplot.py
index <HASH>..<HASH> 100644
--- a/arviz/plots/forestplot.py
+++ b/arviz/plots/forestplot.py
@@ -356,7 +356,8 @@ class VarHandler():
self.combined = combined
self.colors = colors
self.model_color = dict(zip(self.model_names, se... | Fix divide by zero in forestplot (#<I>) | py |
diff --git a/salt/payload.py b/salt/payload.py
index <HASH>..<HASH> 100644
--- a/salt/payload.py
+++ b/salt/payload.py
@@ -21,6 +21,20 @@ def unpackage(package_):
return msgpack.loads(package_)
+def loads(msg):
+ '''
+ Run the correct loads serialization format
+ '''
+ return msgpack.loads(msg)
+
+... | Add dumps and loads functions to payload.py | py |
diff --git a/barf/barf/core/reil/reil.py b/barf/barf/core/reil/reil.py
index <HASH>..<HASH> 100644
--- a/barf/barf/core/reil/reil.py
+++ b/barf/barf/core/reil/reil.py
@@ -698,6 +698,9 @@ class DualInstruction(object):
class ReilSequence(object):
+ """Reil instruction sequence.
+ """
+
def __init__(self)... | Add iterators to ReilSequence and ReilContainer class. | py |
diff --git a/lib/websession_webinterface.py b/lib/websession_webinterface.py
index <HASH>..<HASH> 100644
--- a/lib/websession_webinterface.py
+++ b/lib/websession_webinterface.py
@@ -243,9 +243,14 @@ class WebInterfaceYourAccountPages(WebInterfaceDirectory):
return webuser.page_not_authorized(req, "../your... | Added verbose option to display user_info dictionary when verbose=9 and looking at Your Settings page. | py |
diff --git a/tests/test_script.py b/tests/test_script.py
index <HASH>..<HASH> 100644
--- a/tests/test_script.py
+++ b/tests/test_script.py
@@ -42,9 +42,9 @@ def test_linear_solvers():
alg_3.set_boundary_conditions(bctype='Dirichlet', bcvalue=0, pores=BC2_pores)
alg_3.run()
- print( alg_1['pore.air_mole_fractio... | Minor change to the test_solver | py |
diff --git a/plexapi/gdm.py b/plexapi/gdm.py
index <HASH>..<HASH> 100644
--- a/plexapi/gdm.py
+++ b/plexapi/gdm.py
@@ -23,12 +23,12 @@ class GDM:
"""Scan the network."""
self.update(scan_for_clients)
- def all(self):
+ def all(self, scan_for_clients=False):
"""Return all found entries... | Allow scanning for clients when using GDM.all() | py |
diff --git a/bumpr/config.py b/bumpr/config.py
index <HASH>..<HASH> 100644
--- a/bumpr/config.py
+++ b/bumpr/config.py
@@ -165,7 +165,7 @@ class Config(ObjectDict):
if hasattr(parsed_args, 'nocommit'):
self.commit = not parsed_args.nocommit
- for attr in 'bump_only' 'prepare_only', 'push'... | Fix small issue in config.py Add a comma to separate strings in a 'for' in override_from_args | py |
diff --git a/twarc/expansions.py b/twarc/expansions.py
index <HASH>..<HASH> 100644
--- a/twarc/expansions.py
+++ b/twarc/expansions.py
@@ -199,8 +199,8 @@ def flatten(response):
if "data" in response:
response["data"] = expand_payload(response["data"])
- # Add the __twarc metadata from the response t... | fix __twarc metadata writing for flattened tweets | py |
diff --git a/calloway/__init__.py b/calloway/__init__.py
index <HASH>..<HASH> 100644
--- a/calloway/__init__.py
+++ b/calloway/__init__.py
@@ -1,7 +1,7 @@
__version_info__ = {
'major': 0,
'minor': 1,
- 'micro': 3,
+ 'micro': 4,
'releaselevel': 'final',
'serial': 1
} | Bumped the version of calloway to <I> | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -39,6 +39,7 @@ setup_args = dict(
"APScheduler",
"cached-property",
"boto3",
+ "build",
"click",
"faker",
"Flask-Sockets",
@@ -79,7 +80,6 @@ setup_args = dict(
... | Depend on build always, not just in [dev] extra | py |
diff --git a/pypika/__init__.py b/pypika/__init__.py
index <HASH>..<HASH> 100644
--- a/pypika/__init__.py
+++ b/pypika/__init__.py
@@ -72,4 +72,4 @@ from .utils import (
__author__ = "Timothy Heys"
__email__ = "theys@kayak.com"
-__version__ = "0.11.0"
+__version__ = "0.11.1" | Bumped version to <I> | py |
diff --git a/aiogram/types/message.py b/aiogram/types/message.py
index <HASH>..<HASH> 100644
--- a/aiogram/types/message.py
+++ b/aiogram/types/message.py
@@ -193,7 +193,7 @@ class Message(base.TelegramObject):
quote_fn = md.quote_html if as_html else md.escape_md
- if not self.entities:
+ if... | Fixed entities parsing for captions | py |
diff --git a/zenpy/lib/endpoint.py b/zenpy/lib/endpoint.py
index <HASH>..<HASH> 100644
--- a/zenpy/lib/endpoint.py
+++ b/zenpy/lib/endpoint.py
@@ -1,5 +1,6 @@
import logging
from datetime import datetime
+from datetime import date
from zenpy.lib.exception import ZenpyException
@@ -208,15 +209,19 @@ class SearchE... | changed behaviour of supplied dates vs datetimes (#<I>) * changed behaviour of supplied dates vs datetimes The zendesk API supports searching for datetimes to, if they are ISO_<I> format. (<URL>) Before, supplied datetimes where formatted to dates. Now, if somebody supplies a date, we will format the date, otherwi... | py |
diff --git a/hamster/applet.py b/hamster/applet.py
index <HASH>..<HASH> 100755
--- a/hamster/applet.py
+++ b/hamster/applet.py
@@ -71,10 +71,13 @@ class Notifier(object):
def msg(self, body, edit_cb, switch_cb):
self._notify = pynotify.Notification(self.summary, body, self._icon, self._attach)
- ... | don't show action buttons for the new ubuntu notification system svn path=/trunk/; revision=<I> | py |
diff --git a/insights/specs/sos_archive.py b/insights/specs/sos_archive.py
index <HASH>..<HASH> 100644
--- a/insights/specs/sos_archive.py
+++ b/insights/specs/sos_archive.py
@@ -19,8 +19,8 @@ class SosSpecs(Specs):
simple_file("var/log/candlepin/error.log"),
simple_file(r"sos_commands/foreman/foreman... | Enhance specs sos_archives_4 (#<I>) | py |
diff --git a/pandas/tests/computation/test_eval.py b/pandas/tests/computation/test_eval.py
index <HASH>..<HASH> 100644
--- a/pandas/tests/computation/test_eval.py
+++ b/pandas/tests/computation/test_eval.py
@@ -840,7 +840,7 @@ class TestAlignment:
and parser == "pandas"
and index_name == "inde... | TST: Fix flaky xfail condition (#<I>) | py |
diff --git a/tests/manage.py b/tests/manage.py
index <HASH>..<HASH> 100755
--- a/tests/manage.py
+++ b/tests/manage.py
@@ -1,5 +1,4 @@
#!/usr/bin/env python
-import channels.log
import logging
import os
import sys
@@ -8,15 +7,6 @@ PROJECT_ROOT = os.path.dirname(os.path.abspath(os.path.dirname(__file__)))
sys.path.... | Fix logging compatibility with the latest Channels | py |
diff --git a/sprinter/formulas/egg.py b/sprinter/formulas/egg.py
index <HASH>..<HASH> 100644
--- a/sprinter/formulas/egg.py
+++ b/sprinter/formulas/egg.py
@@ -57,7 +57,7 @@ class EggFormula(FormulaBase):
if 'eggs' in config:
eggs += [egg.strip() for egg in re.split(',|\n', config['eggs'])]
... | fixing bug with config and no links | py |
diff --git a/src/image-copy/azext_imagecopy/create_target.py b/src/image-copy/azext_imagecopy/create_target.py
index <HASH>..<HASH> 100644
--- a/src/image-copy/azext_imagecopy/create_target.py
+++ b/src/image-copy/azext_imagecopy/create_target.py
@@ -21,10 +21,10 @@ def create_target_image(location, transient_resource_... | Update create_target.py to have lowercase target_storage_account_name (#<I>) * Update create_target.py to have lowercase target_storage_account_name Update create_target.py to have lowercase target_storage_account_name * AzureCLIimage-copy: Update create_target.py to only have location.lower() | py |
diff --git a/tests/test_future/test_utils.py b/tests/test_future/test_utils.py
index <HASH>..<HASH> 100644
--- a/tests/test_future/test_utils.py
+++ b/tests/test_future/test_utils.py
@@ -152,6 +152,26 @@ class TestUtils(unittest.TestCase):
self.assertTrue(isinstance(e.__context__, TypeError))
... | Add test for issue #<I> | py |
diff --git a/tests/test_views.py b/tests/test_views.py
index <HASH>..<HASH> 100644
--- a/tests/test_views.py
+++ b/tests/test_views.py
@@ -147,15 +147,15 @@ class GenerateXlsxTests(TestCase):
def test_adds_row_of_data(self):
wb = self.mixin.generate_xlsx(self.data)
ws = self._get_sheet(wb)
- ... | Update cell access in tests for newer openpyxl | py |
diff --git a/mlbgame/game.py b/mlbgame/game.py
index <HASH>..<HASH> 100644
--- a/mlbgame/game.py
+++ b/mlbgame/game.py
@@ -178,7 +178,7 @@ class GameScoreboard(object):
self.w_team = self.away_team
self.l_team = self.home_team
# create the datetime object for the game
- year, m... | variable rest in GameScoreboard removed since it was not being used. | py |
diff --git a/nodeconductor/testdata/management/commands/createsampledata.py b/nodeconductor/testdata/management/commands/createsampledata.py
index <HASH>..<HASH> 100644
--- a/nodeconductor/testdata/management/commands/createsampledata.py
+++ b/nodeconductor/testdata/management/commands/createsampledata.py
@@ -470,14 +4... | references to instance flavor and key were removed from sample data creation command (nc-<I>) | py |
diff --git a/src/sdk/pynni/nni/nas/pytorch/mutator.py b/src/sdk/pynni/nni/nas/pytorch/mutator.py
index <HASH>..<HASH> 100644
--- a/src/sdk/pynni/nni/nas/pytorch/mutator.py
+++ b/src/sdk/pynni/nni/nas/pytorch/mutator.py
@@ -162,7 +162,7 @@ class Mutator(BaseMutator):
if self._connect_all:
return se... | Fix visualization for ENAS micro (#<I>) | py |
diff --git a/salt/states/selinux.py b/salt/states/selinux.py
index <HASH>..<HASH> 100644
--- a/salt/states/selinux.py
+++ b/salt/states/selinux.py
@@ -296,7 +296,7 @@ def fcontext_policy_present(name, sel_type, filetype='a', sel_user=None, sel_lev
ret.update({'comment': 'Error adding new rule: {0}'.for... | states/selinux.py: Only return changes when they were succesfully applied | py |
diff --git a/cli.py b/cli.py
index <HASH>..<HASH> 100755
--- a/cli.py
+++ b/cli.py
@@ -1,6 +1,8 @@
#!/usr/bin/env python
import Spotify
import sys
+import os
+import dbus
def app():
@@ -38,7 +40,7 @@ def app():
else:
print """
############################################################
- # ... | dbus exception handler (if not spotify is started) | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -43,7 +43,7 @@ setup(
zip_safe=True,
keywords='ged4py',
classifiers=[
- 'Development Status :: 2 - Pre-Alpha',
+ 'Development Status :: 3 - Alpha',
'Intended Audience :: Developers',
... | Move package status to alpha, extend package classifiers. | py |
diff --git a/pvlib/temperature.py b/pvlib/temperature.py
index <HASH>..<HASH> 100644
--- a/pvlib/temperature.py
+++ b/pvlib/temperature.py
@@ -293,7 +293,7 @@ def pvsyst_cell(poa_global, temp_air, wind_speed=1.0, u_c=29.0, u_v=0.0,
u_v : float, default 0.0
Combined heat loss factor influenced by wind. P... | render units for uv and u1 with latex math | py |
diff --git a/examples/chat.py b/examples/chat.py
index <HASH>..<HASH> 100644
--- a/examples/chat.py
+++ b/examples/chat.py
@@ -97,10 +97,14 @@ async def subscribe(request):
queue = asyncio.Queue()
print('Someone joined.')
request.app['channels'].add(queue)
- while True:
- pa... | Clean up the connection when someone leaves Rather than using an infinite loop we switch to checking if the response task is done. This will happen if the client disconnects. When that happens we can exit the subscribe loop and free up the resources associated with the queue for that client. | py |
diff --git a/haphilipsjs/__init__.py b/haphilipsjs/__init__.py
index <HASH>..<HASH> 100644
--- a/haphilipsjs/__init__.py
+++ b/haphilipsjs/__init__.py
@@ -143,14 +143,9 @@ class PhilipsTV(object):
self.protocol = "http"
self.port = 1925
- # for devices with notify support we must have... | Adjust timeouts somewhat and allow two connections | py |
diff --git a/salt/utils/__init__.py b/salt/utils/__init__.py
index <HASH>..<HASH> 100644
--- a/salt/utils/__init__.py
+++ b/salt/utils/__init__.py
@@ -742,7 +742,7 @@ def dns_check(addr, port, safe=False, ipv6=None):
candidate_addr = ip_bracket(h[4][0])
- s = socket.socket(h[0], sock... | Actually connect to master instead of checking route availability | py |
diff --git a/GPy/models/sparse_GP.py b/GPy/models/sparse_GP.py
index <HASH>..<HASH> 100644
--- a/GPy/models/sparse_GP.py
+++ b/GPy/models/sparse_GP.py
@@ -122,7 +122,6 @@ class sparse_GP(GP):
#back substutue C into psi1V
tmp,info1 = linalg.lapack.flapack.dtrtrs(self.Lm,np.asfortranarray(self.psi1V),lo... | removed unnecessary computaiotn of P in sparse GP | py |
diff --git a/chamber/models/__init__.py b/chamber/models/__init__.py
index <HASH>..<HASH> 100644
--- a/chamber/models/__init__.py
+++ b/chamber/models/__init__.py
@@ -254,7 +254,7 @@ class SmartQuerySetMixin:
this method provides alternative to the standard distinct method.
:return: qs with unique obj... | made fast_dictinct more memory efficient | py |
diff --git a/venv_update.py b/venv_update.py
index <HASH>..<HASH> 100644
--- a/venv_update.py
+++ b/venv_update.py
@@ -424,9 +424,6 @@ def do_install(reqs):
PIP_DOWNLOAD_CACHE=pip_download_cache,
)
- # Remove stale values from the cache that have not been accessed in a week.
- run(['tmpwatch', '7d... | Moved the tmpwatch cache cleanup to after the pip install command--now it runs after the cache is created. Avoids erroring on a nonexistent cache. | py |
diff --git a/eventsourcing/application/process.py b/eventsourcing/application/process.py
index <HASH>..<HASH> 100644
--- a/eventsourcing/application/process.py
+++ b/eventsourcing/application/process.py
@@ -55,6 +55,11 @@ class ProcessApplication(Pipeable, Application):
except Exception as e:
rais... | Changed order of method defs. | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.