diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/dipper/sources/NCBIGene.py b/dipper/sources/NCBIGene.py
index <HASH>..<HASH> 100644
--- a/dipper/sources/NCBIGene.py
+++ b/dipper/sources/NCBIGene.py
@@ -169,14 +169,14 @@ class NCBIGene(Source):
if self.testMode and int(gene_num) not in self.gene_ids:
continue
- ... | ncbigene: make sure all test ids get in test | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -11,7 +11,7 @@ elif sys.version_info[0] == 3:
setup(
name='cobs',
- version='1.0.0',
+ version='1.1.0',
description='Consistent Overhead Byte Stuffing (COBS)',
author='Craig McQueen',
author_email=... | Update version number to <I> in setup.py. | py |
diff --git a/GPy/util/gpu_init.py b/GPy/util/gpu_init.py
index <HASH>..<HASH> 100644
--- a/GPy/util/gpu_init.py
+++ b/GPy/util/gpu_init.py
@@ -24,7 +24,7 @@ try:
pycuda.driver.init()
if gpuid>=pycuda.driver.Device.count():
print '['+MPI.Get_processor_name()+'] more processes than the GPU ... | fix the problem starting multiple process with limited number of GPUs | py |
diff --git a/dashboard_app/tests.py b/dashboard_app/tests.py
index <HASH>..<HASH> 100644
--- a/dashboard_app/tests.py
+++ b/dashboard_app/tests.py
@@ -231,7 +231,7 @@ class BundleDeserializationTestCase(TestCase):
self.mocker.replay()
self.bundle.deserialize()
self.assertFalse(self.bundle.is_... | Update BundleDeserializationError unit tests after previous change | py |
diff --git a/src/binwalk/modules/extractor.py b/src/binwalk/modules/extractor.py
index <HASH>..<HASH> 100644
--- a/src/binwalk/modules/extractor.py
+++ b/src/binwalk/modules/extractor.py
@@ -41,6 +41,11 @@ class Extractor(Module):
long='matryoshka',
kwargs={'matryoshka' : 8},
description='Recurs... | Fixed recursive extraction directory naming bug. | py |
diff --git a/xmantissa/webadmin.py b/xmantissa/webadmin.py
index <HASH>..<HASH> 100644
--- a/xmantissa/webadmin.py
+++ b/xmantissa/webadmin.py
@@ -432,13 +432,24 @@ class REPL(athena.LiveFragment):
registerAdapter(REPL, DeveloperApplication, INavigableFragment)
+
+
class Traceback(Item):
typeName = 'mantissa... | Author: jonathanj Reviewer: glyph Fixes: #<I> Handle the case, in cookieDomainForRequest, where a request has no "host" header. | py |
diff --git a/openquake/input/logictree.py b/openquake/input/logictree.py
index <HASH>..<HASH> 100644
--- a/openquake/input/logictree.py
+++ b/openquake/input/logictree.py
@@ -122,7 +122,7 @@ class BranchSet(object):
@classmethod
def _is_area(cls, source):
- if not hasattr(cls, '_GEMAreaSource'):
+ ... | logictree: fixed (rather harmless) typo | py |
diff --git a/salt/states/boto_secgroup.py b/salt/states/boto_secgroup.py
index <HASH>..<HASH> 100644
--- a/salt/states/boto_secgroup.py
+++ b/salt/states/boto_secgroup.py
@@ -241,6 +241,17 @@ def _check_rule(rule, _rule):
from boto, since they may not completely match rules defined in sls files
but may be fun... | Fixing change detection for protocols without from_port and to_port. | py |
diff --git a/aldjemy/orm.py b/aldjemy/orm.py
index <HASH>..<HASH> 100644
--- a/aldjemy/orm.py
+++ b/aldjemy/orm.py
@@ -46,9 +46,10 @@ def _extract_model_attrs(model, sa_models):
p_table = tables[parent_model.db_table]
p_name = parent_model.pk.column
+ disable_backref = True if fk.rel.related_... | Optionally skip adding SQLAlchemy backrefs Do not add SQLAlchemy backrefs to relationships if the Django field name ends with '+' (eg: duplicate Django's ORM behavior). Note that this is off-the-cuff, and completely untested. Hopefully closes #<I>. | py |
diff --git a/py8583/isoHost.py b/py8583/isoHost.py
index <HASH>..<HASH> 100755
--- a/py8583/isoHost.py
+++ b/py8583/isoHost.py
@@ -24,22 +24,22 @@ def main(s):
conn.close()
continue
- IsoPacket = ISO8583(data[2:], IsoSpec1987BCD())
+ IsoMessage = ISO... | IsoPacket -> IsoMessage | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -13,21 +13,12 @@ class build_ext(_build_ext):
def finalize_options(self):
_build_ext.finalize_options(self)
# Prevent numpy from thinking it is still in its setup process:
- if sys.version_info[0]... | Cleanup setup.py since py2 is no longer supported. | py |
diff --git a/greg/greg.py b/greg/greg.py
index <HASH>..<HASH> 100755
--- a/greg/greg.py
+++ b/greg/greg.py
@@ -757,10 +757,12 @@ def sync(args):
# Sort entries_to_download
entries_to_download.sort(key=operator.attrgetter("linkdate"),
reverse=False)
- ... | Fixing the entrycounter thing, actually looping over entries | py |
diff --git a/scheduler/coreos.py b/scheduler/coreos.py
index <HASH>..<HASH> 100644
--- a/scheduler/coreos.py
+++ b/scheduler/coreos.py
@@ -281,7 +281,7 @@ class FleetHTTPClient(object):
return rc, output
# wait for container to start
- for _ in range(30):
+ for _ in range(1200):
... | fix(controller): bump timeout to <I> min for image to download | py |
diff --git a/orca/orca.py b/orca/orca.py
index <HASH>..<HASH> 100644
--- a/orca/orca.py
+++ b/orca/orca.py
@@ -1855,6 +1855,9 @@ def write_tables(fname, table_names=None, prefix=None):
store[key_template.format(t.name)] = t.to_frame()
+iter_step = namedtuple('iter_step', 'step_num,step_name')
+
+
def ... | moved iter_step def to module level to eliminate redundancy | py |
diff --git a/dipper/sources/Panther.py b/dipper/sources/Panther.py
index <HASH>..<HASH> 100644
--- a/dipper/sources/Panther.py
+++ b/dipper/sources/Panther.py
@@ -405,7 +405,8 @@ class Panther(Source):
# #"Found an identifier I don't know how to fix (species %s): %s",
# # sp, geneid)
- ... | account for curies with multiple colons | py |
diff --git a/git/test/test_submodule.py b/git/test/test_submodule.py
index <HASH>..<HASH> 100644
--- a/git/test/test_submodule.py
+++ b/git/test/test_submodule.py
@@ -344,8 +344,9 @@ class TestSubmodule(TestBase):
abspmp = nsm.abspath
assert nsm.move(nmp) is nsm
nmp = nmp[:-1] # cut last /
- assert nsm.... | fixed submodule test to work on windows | py |
diff --git a/sumy/__main__.py b/sumy/__main__.py
index <HASH>..<HASH> 100644
--- a/sumy/__main__.py
+++ b/sumy/__main__.py
@@ -70,6 +70,8 @@ def main(args=None):
else:
print(to_bytes(sentence))
+ return 0
+
def handle_arguments(args, default_input_stream=sys.stdin):
language = args["-... | Added success return code to function "main" | py |
diff --git a/gpiozero/__init__.py b/gpiozero/__init__.py
index <HASH>..<HASH> 100644
--- a/gpiozero/__init__.py
+++ b/gpiozero/__init__.py
@@ -51,10 +51,14 @@ from .input_devices import (
LightSensor,
DistanceSensor,
AnalogInputDevice,
- MCP3008,
+ MCP3001,
+ MCP3002,
MCP3004,
- MCP3208,... | Expose all MCP* classes added in #<I> | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -33,4 +33,4 @@ setup(name='marcx',
author_email='martin.czygan@gmail.com',
url='https://github.com/ubleipzig/marcx',
py_modules=['marcx'],
- install_requires=['pymarc>=2.0', 'jsonpath-rw==1.3.0', 'ply... | allow newer ply and jsonpath versions | py |
diff --git a/tests/test_text/test_freqdist.py b/tests/test_text/test_freqdist.py
index <HASH>..<HASH> 100644
--- a/tests/test_text/test_freqdist.py
+++ b/tests/test_text/test_freqdist.py
@@ -1,13 +1,14 @@
# tests.test_text.test_freqdist
# Tests for the frequency distribution visualization
#
-# Author: Rebecca Bilb... | starting to work on freqdist tests | py |
diff --git a/docs/conf.py b/docs/conf.py
index <HASH>..<HASH> 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -48,7 +48,7 @@ copyright = u'2013, Aaron Gallagher'
# |version| and |release|, also used in various other places throughout the
# built documents.
#
-version = release = vcversioner.find_version().version
+v... | Also don't write out excess version.txt files. | py |
diff --git a/holoviews/core/dimension.py b/holoviews/core/dimension.py
index <HASH>..<HASH> 100644
--- a/holoviews/core/dimension.py
+++ b/holoviews/core/dimension.py
@@ -676,8 +676,9 @@ class Dimensioned(LabelledData):
dim = sanitized.get(dim, dim)
select[self.get_dimension_in... | Minor fix to Dimensioned.select Only create clone when no item is found | py |
diff --git a/testing/test_autoflow.py b/testing/test_autoflow.py
index <HASH>..<HASH> 100644
--- a/testing/test_autoflow.py
+++ b/testing/test_autoflow.py
@@ -88,7 +88,7 @@ class TestGPmodel(unittest.TestCase):
mu, var = self.m.predict_y(self.Xtest)
def test_predict_density(self):
- d = self.m.pr... | adding test to replicate bug #<I> | py |
diff --git a/doc/sphinxext/gen_rst.py b/doc/sphinxext/gen_rst.py
index <HASH>..<HASH> 100644
--- a/doc/sphinxext/gen_rst.py
+++ b/doc/sphinxext/gen_rst.py
@@ -236,11 +236,11 @@ def generate_file_rst(fname, target_dir, src_dir, plot_gallery):
# horizontal list or a single rst call to 'image'.
if len(figure_lis... | MISC: cleaner generated code in doc/examples | py |
diff --git a/charmhelpers/contrib/ssl/__init__.py b/charmhelpers/contrib/ssl/__init__.py
index <HASH>..<HASH> 100644
--- a/charmhelpers/contrib/ssl/__init__.py
+++ b/charmhelpers/contrib/ssl/__init__.py
@@ -70,4 +70,10 @@ def generate_selfsigned(keyfile, certfile, keysize="1024", config=None, subject=
hookenv.... | Added more error checking to contrib.ssl.generate_selfsigned function | py |
diff --git a/fermipy/roi_model.py b/fermipy/roi_model.py
index <HASH>..<HASH> 100644
--- a/fermipy/roi_model.py
+++ b/fermipy/roi_model.py
@@ -1263,6 +1263,21 @@ class ROIModel(fermipy.config.Configurable):
self.load(coordsys=coordsys,srcname=srcname)
+ def __getstate__(self):
+ d = self.__dict__... | Add getstate/setstate to ROIModel to permit copying an instance. | py |
diff --git a/xml4h/nodes.py b/xml4h/nodes.py
index <HASH>..<HASH> 100644
--- a/xml4h/nodes.py
+++ b/xml4h/nodes.py
@@ -56,7 +56,7 @@ class Node(object):
def __str__(self):
# TODO Degrade non-ASCII characters gracefully
- return str(self.__unicode__())
+ return self.__unicode__().encode(enc... | Avoid ASCII encoding errors, inelegantly, by replacing problematic chars | py |
diff --git a/salt/states/pip_state.py b/salt/states/pip_state.py
index <HASH>..<HASH> 100644
--- a/salt/states/pip_state.py
+++ b/salt/states/pip_state.py
@@ -136,6 +136,12 @@ def installed(name,
This usually means having the system's pip package installed or running
Salt from an active `virtualenv`_.... | Expand the `pip` library requirement. | py |
diff --git a/src/armet/resources/attributes.py b/src/armet/resources/attributes.py
index <HASH>..<HASH> 100644
--- a/src/armet/resources/attributes.py
+++ b/src/armet/resources/attributes.py
@@ -313,6 +313,10 @@ class BooleanAttribute(Attribute):
)
def clean(self, value):
+ if isinstance(value, bool)... | Add a check to see if we received an actual boolean instead of a stringified boolean. | py |
diff --git a/lhc/binf/loci/tools/query.py b/lhc/binf/loci/tools/query.py
index <HASH>..<HASH> 100644
--- a/lhc/binf/loci/tools/query.py
+++ b/lhc/binf/loci/tools/query.py
@@ -7,9 +7,13 @@ from lhc.io.loci import open_loci_file
def query(query_loci: Iterable[GenomicInterval], loci: pysam.TabixFile, *, direction: st... | improve track missing chromosome in loci query | py |
diff --git a/pipenv/environments.py b/pipenv/environments.py
index <HASH>..<HASH> 100644
--- a/pipenv/environments.py
+++ b/pipenv/environments.py
@@ -20,7 +20,7 @@ PIPENV_NOSPIN = os.environ.get('PIPENV_NOSPIN')
# User-configuraable max-depth for Pipfile searching.
# Note: +1 because of a temporary bug in Pipenv.
... | Use string as a default value for PIPENV_MAX_DEPTH | py |
diff --git a/atlassian/bitbucket.py b/atlassian/bitbucket.py
index <HASH>..<HASH> 100644
--- a/atlassian/bitbucket.py
+++ b/atlassian/bitbucket.py
@@ -839,7 +839,7 @@ class Bitbucket(AtlassianRestAPI):
params['limit'] = limit
return (self.get(url, params=params) or {}).get('values')
- def get... | Bitbucket: method for markup | py |
diff --git a/great_expectations/datasource/data_connector/runtime_data_connector.py b/great_expectations/datasource/data_connector/runtime_data_connector.py
index <HASH>..<HASH> 100644
--- a/great_expectations/datasource/data_connector/runtime_data_connector.py
+++ b/great_expectations/datasource/data_connector/runtime... | removed warning for batch_identifiers (#<I>) | py |
diff --git a/test/shinken_test.py b/test/shinken_test.py
index <HASH>..<HASH> 100755
--- a/test/shinken_test.py
+++ b/test/shinken_test.py
@@ -14,6 +14,7 @@ import random
import unittest
import copy
+
# import the shinken library from the parent directory
import __import_shinken ; del __import_shinken
@@ -317,7... | Fix an encode problem. stdout can be in any encoding. So print encode to that encoding and eventually xmlcharrefreplace if encoding (like ascii) can't encode every unicode char. | py |
diff --git a/django_static/templatetags/django_static.py b/django_static/templatetags/django_static.py
index <HASH>..<HASH> 100644
--- a/django_static/templatetags/django_static.py
+++ b/django_static/templatetags/django_static.py
@@ -5,7 +5,6 @@ import sys
import stat
import shutil
import codecs
-from glob import g... | removed glob import which is, according to pylint, unused | py |
diff --git a/libsubmit/cobalt/template.py b/libsubmit/cobalt/template.py
index <HASH>..<HASH> 100755
--- a/libsubmit/cobalt/template.py
+++ b/libsubmit/cobalt/template.py
@@ -1,13 +1,10 @@
-template_string = '''#!/bin/bash
+template_string = '''#!/bin/bash -e
echo "Starting Cobalt job script"
echo "----Cobalt Nod... | Removing env output, and setting -e flag for immediate fail in script | py |
diff --git a/gwpy/timeseries/io/gwf/__init__.py b/gwpy/timeseries/io/gwf/__init__.py
index <HASH>..<HASH> 100644
--- a/gwpy/timeseries/io/gwf/__init__.py
+++ b/gwpy/timeseries/io/gwf/__init__.py
@@ -231,7 +231,7 @@ def register_gwf_api(library):
DeprecationWarning)
if not isinstance(... | timeseries.io.gwf: fixed typo in deprecation warning | py |
diff --git a/pelix/rsa/shell.py b/pelix/rsa/shell.py
index <HASH>..<HASH> 100644
--- a/pelix/rsa/shell.py
+++ b/pelix/rsa/shell.py
@@ -393,10 +393,10 @@ class RSACommandHandler(object):
io_handler.write_line(self._utils.make_table(title, rows))
def _list_imports(self, session, import_regs, endpo... | Fixed Mypy comments in RSA Shell | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -6,7 +6,7 @@ from setuptools import setup, find_packages
setup(
name='seriously',
- version='2.0.22',
+ version='2.0.23',
description='A Python-based golfing language',
long_description='Seriou... | drop <I> because it lacks the statistics module | py |
diff --git a/jsonapi_requests/configuration.py b/jsonapi_requests/configuration.py
index <HASH>..<HASH> 100644
--- a/jsonapi_requests/configuration.py
+++ b/jsonapi_requests/configuration.py
@@ -22,7 +22,10 @@ class Factory:
@property
def API_ROOT(self):
- return self._config_dict['API_ROOT']
+ ... | Append slash to API root if needed. | py |
diff --git a/tests/test_abstract_state_machine.py b/tests/test_abstract_state_machine.py
index <HASH>..<HASH> 100644
--- a/tests/test_abstract_state_machine.py
+++ b/tests/test_abstract_state_machine.py
@@ -174,11 +174,12 @@ class AbstractSMUnitTest(unittest.TestCase):
'2011000000': '... | Adding definition of the TimeperiodDict for _yearly for UT | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -3,6 +3,20 @@
from setuptools import setup, find_packages
+test_deps = [
+ 'pytest',
+ 'pytest-cov',
+ 'py-evm==0.2.0a34',
+ 'eth-tester==0.1.0b33',
+ 'web3==4.8.2',
+]
+
+
+extras = {
+ 'test': test_dep... | Bump eth-tester and py-evm versions. | py |
diff --git a/tests/test_admin.py b/tests/test_admin.py
index <HASH>..<HASH> 100644
--- a/tests/test_admin.py
+++ b/tests/test_admin.py
@@ -61,7 +61,7 @@ class TestAdminRegisteredModels(TestCase):
self.factory = RequestFactory()
# the 2 models that do not inherit from StripeModel and hence
# d... | Add APIKey to list of models not inheriting from StripeModelAdmin | py |
diff --git a/tests/integration/backward_compatible/serialization/compact_compatibility/compact_compatibility_test.py b/tests/integration/backward_compatible/serialization/compact_compatibility/compact_compatibility_test.py
index <HASH>..<HASH> 100644
--- a/tests/integration/backward_compatible/serialization/compact_com... | Fixed test imports for older releases. (#<I>) Fixed test imports for older releases | py |
diff --git a/grr/__init__.py b/grr/__init__.py
index <HASH>..<HASH> 100644
--- a/grr/__init__.py
+++ b/grr/__init__.py
@@ -157,10 +157,12 @@ class Grr:
self.shell_exec(['git', 'fetch', fetch['url'], fetch['ref']])
def init_repo(self):
- if os.path.isfile('.git/hooks/commit-msg'):
+ git_dir... | Don't assume git-dir is in .git For e.g., submodules it isn't. | py |
diff --git a/TeamComp/main.py b/TeamComp/main.py
index <HASH>..<HASH> 100644
--- a/TeamComp/main.py
+++ b/TeamComp/main.py
@@ -54,10 +54,10 @@ def download_matches(store_callback, seed_players, minimum_tier = Tier.bronze,
prints_on=False, minimum_match_id=0):
def checkpoint(time_slice, play... | Printing that we reached the callback even if there is no callback | py |
diff --git a/utool/util_path.py b/utool/util_path.py
index <HASH>..<HASH> 100644
--- a/utool/util_path.py
+++ b/utool/util_path.py
@@ -129,14 +129,17 @@ def delete(path, dryrun=False, recursive=True, verbose=True, ignore_errors=True,
def remove_file_list(fpath_list, verbose=VERBOSE):
- print('[path] Removing %d... | reported number of files actually able to be removed | py |
diff --git a/picotui/menu.py b/picotui/menu.py
index <HASH>..<HASH> 100644
--- a/picotui/menu.py
+++ b/picotui/menu.py
@@ -20,7 +20,7 @@ class WMenuBar(ItemSelWidget):
i = 0
for name, pulldown in self.items:
if self.focus and i == self.selected:
- self.attr_color(C_WHITE, C... | menu: Make selected item bold white On some terminals (notably Linux's builtin virtual terminal), C_WHITE is indistinguishable from the default color, making it hard or impossible to see which item is selected. | py |
diff --git a/tests/test_run.py b/tests/test_run.py
index <HASH>..<HASH> 100644
--- a/tests/test_run.py
+++ b/tests/test_run.py
@@ -1,3 +1,4 @@
+import os
from psdash.run import PsDashRunner
from psdash.node import LocalNode
import gevent
@@ -118,6 +119,7 @@ class TestRunner(unittest2.TestCase):
prin... | Trying to fix failing tests in Travis CI. | py |
diff --git a/platform_helper.py b/platform_helper.py
index <HASH>..<HASH> 100644
--- a/platform_helper.py
+++ b/platform_helper.py
@@ -19,7 +19,7 @@ import sys
def platforms():
return ['linux', 'darwin', 'freebsd', 'openbsd', 'solaris', 'sunos5',
- 'mingw', 'msvc']
+ 'mingw', 'msvc', 'gnuk... | Fixed the build on Debian/kfreebsd | py |
diff --git a/redis/client.py b/redis/client.py
index <HASH>..<HASH> 100644
--- a/redis/client.py
+++ b/redis/client.py
@@ -1330,11 +1330,12 @@ class Pipeline(Redis):
for args, options in commands]
def parse_response(self, connection, command_name, **options):
+ result = Redis.parse_respon... | only change self.watching when commands succeed | py |
diff --git a/dedupe/labeler.py b/dedupe/labeler.py
index <HASH>..<HASH> 100644
--- a/dedupe/labeler.py
+++ b/dedupe/labeler.py
@@ -138,7 +138,6 @@ class RLRLearner(sklearn.linear_model.LogisticRegression, ActiveLearner):
class BlockLearner(Learner):
- candidates: TrainingExamples
block_learner: training.Bl... | Remove unneeded type hint BlockLearner.candidates Already is part of the Learner base class | py |
diff --git a/MAVProxy/modules/mavproxy_rally.py b/MAVProxy/modules/mavproxy_rally.py
index <HASH>..<HASH> 100644
--- a/MAVProxy/modules/mavproxy_rally.py
+++ b/MAVProxy/modules/mavproxy_rally.py
@@ -5,8 +5,8 @@
from pymavlink import mavwp
from pymavlink import mavutil
import time, os, platform
-
from MAVProxy.modul... | rally: Auto save rally points to log folder when they are listed (reapply) | py |
diff --git a/tests/test_widgets.py b/tests/test_widgets.py
index <HASH>..<HASH> 100644
--- a/tests/test_widgets.py
+++ b/tests/test_widgets.py
@@ -387,6 +387,22 @@ class TestWidgetManagerInActivity(TestBetamax):
self.assertEqual(widget_manager[w1.id].order, 3)
self.assertEqual(widget_manager[w2.id].or... | Added test for `edit` function for a widget | py |
diff --git a/safe_qgis/dock.py b/safe_qgis/dock.py
index <HASH>..<HASH> 100644
--- a/safe_qgis/dock.py
+++ b/safe_qgis/dock.py
@@ -611,7 +611,7 @@ class Dock(QtGui.QDockWidget, Ui_DockBase):
self.exposureLayers.append(myLayer)
#handle the cboAggregation combo
- self.cboAggregation.ins... | renemed no aggregation to entire area | py |
diff --git a/examples/run_classifier.py b/examples/run_classifier.py
index <HASH>..<HASH> 100644
--- a/examples/run_classifier.py
+++ b/examples/run_classifier.py
@@ -95,7 +95,7 @@ class DataProcessor(object):
@classmethod
def _read_tsv(cls, input_file, quotechar=None):
"""Reads a tab separated value... | fix tsv read error in Windows | py |
diff --git a/docs/conf.py b/docs/conf.py
index <HASH>..<HASH> 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -18,7 +18,8 @@ import os
import mock
-MOCK_MODULES = ['numpy', 'scipy', 'matplotlib', 'matplotlib.pyplot', 'scipy.interpolate']
+MOCK_MODULES = ['numpy', 'scipy', 'matplotlib', 'matplotlib.pyplot',
+ ... | conf.py: mock Image for 'Read the docs' | py |
diff --git a/validator/sawtooth_validator/consensus/handlers.py b/validator/sawtooth_validator/consensus/handlers.py
index <HASH>..<HASH> 100644
--- a/validator/sawtooth_validator/consensus/handlers.py
+++ b/validator/sawtooth_validator/consensus/handlers.py
@@ -136,8 +136,8 @@ class ConsensusRegisterActivateHandler(Ha... | Update consensus activation comment Updates a comment to reflect recent changes to the way consensus activation works at genesis. | py |
diff --git a/deluge_client/client.py b/deluge_client/client.py
index <HASH>..<HASH> 100644
--- a/deluge_client/client.py
+++ b/deluge_client/client.py
@@ -138,8 +138,9 @@ class DelugeRPCClient(object):
exception_type, exception_msg, _, traceback = data
else:
exception_type... | Errors now encoded correctly, fixing #<I> | py |
diff --git a/tests/test_modeling_tf_common.py b/tests/test_modeling_tf_common.py
index <HASH>..<HASH> 100644
--- a/tests/test_modeling_tf_common.py
+++ b/tests/test_modeling_tf_common.py
@@ -306,13 +306,13 @@ class TFModelTesterMixin:
max_diff = np.amax(np.abs(tf_hidden_states - pt_hidden_states))
... | Move threshold up for flaky test with Electra (#<I>) * Move threshold up for flaky test with Electra * Update above as well | py |
diff --git a/redis.py b/redis.py
index <HASH>..<HASH> 100644
--- a/redis.py
+++ b/redis.py
@@ -279,7 +279,7 @@ class Redis(object):
"""
return self.send_command('EXISTS %s\r\n' % name)
- def delete(self, name):
+ def delete(self, *args):
"""
>>> r = Redis(db=9)
>>> r... | delete now supports multiple keys to delete at once | py |
diff --git a/galpy/df_src/diskdf.py b/galpy/df_src/diskdf.py
index <HASH>..<HASH> 100644
--- a/galpy/df_src/diskdf.py
+++ b/galpy/df_src/diskdf.py
@@ -442,7 +442,7 @@ class dehnendf(diskdf):
thisOrbit= Orbit([rap,0.,Lz[ii]/rap])
thisOrbit.integrate(sc.array([0.,tr]),self._psp)
... | fix sampling routine because orbit calling has changed | py |
diff --git a/axiom/test/test_axiomatic.py b/axiom/test/test_axiomatic.py
index <HASH>..<HASH> 100644
--- a/axiom/test/test_axiomatic.py
+++ b/axiom/test/test_axiomatic.py
@@ -312,14 +312,7 @@ class StartTests(TestCase):
"reactor class: <class 'twisted.internet.selectreactor.SelectReactor'>"]
proto... | Remove the PYTHONPATH trickery. | py |
diff --git a/tensor2tensor/utils/trainer_lib.py b/tensor2tensor/utils/trainer_lib.py
index <HASH>..<HASH> 100644
--- a/tensor2tensor/utils/trainer_lib.py
+++ b/tensor2tensor/utils/trainer_lib.py
@@ -349,13 +349,18 @@ def create_estimator(model_name,
def tpu_model_fn(features, labels, mode, params):
"""W... | Added batch_config (with batch_op_allowed_batch_sizes) in model export V2. PiperOrigin-RevId: <I> | py |
diff --git a/anyconfig/api.py b/anyconfig/api.py
index <HASH>..<HASH> 100644
--- a/anyconfig/api.py
+++ b/anyconfig/api.py
@@ -37,7 +37,6 @@ import anyconfig.backends
import anyconfig.backend.json
import anyconfig.compat
import anyconfig.mdicts
-import anyconfig.parser
import anyconfig.template
import anyconfig.ut... | fix: make anyconfig.loads returning None if no parser or parser is not found | py |
diff --git a/s_tui/GraphData.py b/s_tui/GraphData.py
index <HASH>..<HASH> 100644
--- a/s_tui/GraphData.py
+++ b/s_tui/GraphData.py
@@ -22,8 +22,8 @@ import os
import psutil
-from aux import TURBO_MSR
-from aux import read_msr
+from HelperFunctions import TURBO_MSR
+from HelperFunctions import read_msr
class G... | Change aux to HelperFunctions in GraphData | py |
diff --git a/test.py b/test.py
index <HASH>..<HASH> 100644
--- a/test.py
+++ b/test.py
@@ -112,7 +112,7 @@ def testcache():
q2.append((x, y))
assert list(a.items()) == q2
- assert zip(a.keys(), a.values()) == q2
+ assert list(zip(a.keys(), a.values())) == q2
assert list(a.... | Fixed bug in test.py. Thanks to Marc Abramowitz for finding & fixing it. | py |
diff --git a/salt/utils/openstack/nova.py b/salt/utils/openstack/nova.py
index <HASH>..<HASH> 100644
--- a/salt/utils/openstack/nova.py
+++ b/salt/utils/openstack/nova.py
@@ -119,7 +119,7 @@ class SaltNova(object):
self.kwargs['auth_plugin'] = auth_plugin
self.kwargs['auth_system'] = os_auth_p... | Check if api_key is set in kwargs instead of checking for key | py |
diff --git a/datalad_service/handlers/draft.py b/datalad_service/handlers/draft.py
index <HASH>..<HASH> 100644
--- a/datalad_service/handlers/draft.py
+++ b/datalad_service/handlers/draft.py
@@ -31,6 +31,8 @@ class DraftResource(object):
'files': None, 'name': name, 'email': email})
commit... | Add missing ref to commit_files reponse. | py |
diff --git a/panya/utils/__init__.py b/panya/utils/__init__.py
index <HASH>..<HASH> 100644
--- a/panya/utils/__init__.py
+++ b/panya/utils/__init__.py
@@ -16,7 +16,7 @@ def generate_slug(obj, text, tail_number=0):
# use django slugify filter to slugify
slug = slugify(text)
- existing_slugs = [item.sl... | if no longer needed, but now with slug searching | py |
diff --git a/lib/svtplay_dl/fetcher/hds.py b/lib/svtplay_dl/fetcher/hds.py
index <HASH>..<HASH> 100644
--- a/lib/svtplay_dl/fetcher/hds.py
+++ b/lib/svtplay_dl/fetcher/hds.py
@@ -47,7 +47,11 @@ def hdsparse(options, res, manifest):
if res.status_code == 403 or res.status_code == 404:
streams[0] = ServiceE... | hds: some cases we need to encode the playlist as str for py2 | py |
diff --git a/salt/modules/saltutil.py b/salt/modules/saltutil.py
index <HASH>..<HASH> 100644
--- a/salt/modules/saltutil.py
+++ b/salt/modules/saltutil.py
@@ -390,6 +390,7 @@ def running():
path = os.path.join(proc_dir, fn_)
with salt.utils.fopen(path, 'rb') as fp_:
buf = fp_.read()
+ ... | Close file handle before attempting removal Fixes earlier commit; forgot that opening a file defaults to a lock under Windows | py |
diff --git a/karaage/usage/views.py b/karaage/usage/views.py
index <HASH>..<HASH> 100644
--- a/karaage/usage/views.py
+++ b/karaage/usage/views.py
@@ -87,7 +87,9 @@ def index(request, machine_category_id):
time = 0
m_list.append({'machine': m, 'usage': time, 'jobs': jobs})
- for i... | Only list institutes with quota for this mc. Change-Id: I<I>de<I>b<I>d9d6c<I>e8f<I>cd<I> | py |
diff --git a/config_demo.py b/config_demo.py
index <HASH>..<HASH> 100644
--- a/config_demo.py
+++ b/config_demo.py
@@ -13,11 +13,6 @@ page_num = 10
site_name = 'TorCMS网站'
site_url = 'http://127.0.0.1:8088'
-# 使用DataBase的不同形式,以应对Peewe针对数据库的不同语法
-# 1 for SQLite
-# 2 for MySQL
-# 3 for PostgreSQL
-dbtype = 3
cookie... | Only support PostgreSQL now. | py |
diff --git a/git/remote.py b/git/remote.py
index <HASH>..<HASH> 100644
--- a/git/remote.py
+++ b/git/remote.py
@@ -388,7 +388,7 @@ class Remote(LazyMixin, Iterable):
if attr == "_config_reader":
# NOTE: This is cached as __getattr__ is overridden to return remote config values implicitly, such as
... | fix(remote): assure only repository configuration Previously it was possible for it to pick up non-repository branch configuration, even though it was unlikely. Closes #<I> | py |
diff --git a/alot/widgets/search.py b/alot/widgets/search.py
index <HASH>..<HASH> 100644
--- a/alot/widgets/search.py
+++ b/alot/widgets/search.py
@@ -186,6 +186,7 @@ def prepare_content_string(thread):
msgs = sorted(thread.get_messages().keys(),
key=lambda msg: msg.get_date(), reverse=True)
... | don't include quoted lines in msg content summary | py |
diff --git a/bulbs/content/serializers.py b/bulbs/content/serializers.py
index <HASH>..<HASH> 100644
--- a/bulbs/content/serializers.py
+++ b/bulbs/content/serializers.py
@@ -13,6 +13,8 @@ class ContentSerializer(serializers.ModelSerializer):
view_name='content-detail',
lookup_field='pk'
)
+ t... | Added nested Tag serializer to Content | py |
diff --git a/iktomi/web/core.py b/iktomi/web/core.py
index <HASH>..<HASH> 100644
--- a/iktomi/web/core.py
+++ b/iktomi/web/core.py
@@ -93,9 +93,7 @@ class WebHandler(object):
logger.exception(e)
raise
- headers = response.headers.items()
- start_response(respons... | webob.Response is WSGI app itself | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -8,6 +8,7 @@ setup(name='twittersearch',
author_email='agonzales@twitter.com',
license='MIT',
version='0.1',
+ install_requires=["requests", "tweet_parser"],
packages=find_packages(),
sc... | updated dependencies for eventual pypi | py |
diff --git a/tcconfig/tcset.py b/tcconfig/tcset.py
index <HASH>..<HASH> 100644
--- a/tcconfig/tcset.py
+++ b/tcconfig/tcset.py
@@ -297,6 +297,12 @@ class TcSetMain(Main):
return 0
+ def __extract_dst_network(self):
+ if self._options.dst_container:
+ return self._dclient.extract_conta... | Add support for --dst-container | py |
diff --git a/secretballot/middleware.py b/secretballot/middleware.py
index <HASH>..<HASH> 100644
--- a/secretballot/middleware.py
+++ b/secretballot/middleware.py
@@ -1,8 +1,11 @@
# -*- coding: utf-8 -*-
from hashlib import md5
+# for support Django 1.10+
+from django.utils.deprecation import MiddlewareMixin
-cla... | fix(middleware): added support for Django <I>+ (MiddlewareMixin/object problem). | py |
diff --git a/separate.py b/separate.py
index <HASH>..<HASH> 100644
--- a/separate.py
+++ b/separate.py
@@ -100,6 +100,7 @@ class Name:
# remove lengthless items
if len(part) == 0:
del self.__split_name[index]
+ continue
# remove excess spaces from the beginning and end of items
... | Names like Thurston Howell the 3rd are working now. | py |
diff --git a/examples/API_v2/lookup_users_using_user_ids.py b/examples/API_v2/lookup_users_using_user_ids.py
index <HASH>..<HASH> 100644
--- a/examples/API_v2/lookup_users_using_user_ids.py
+++ b/examples/API_v2/lookup_users_using_user_ids.py
@@ -8,7 +8,7 @@ bearer_token = ""
client = tweepy.Client(bearer_token)
# ... | Added additional user for user lookup | py |
diff --git a/gruvi/protocols.py b/gruvi/protocols.py
index <HASH>..<HASH> 100644
--- a/gruvi/protocols.py
+++ b/gruvi/protocols.py
@@ -153,8 +153,8 @@ class Protocol(object):
self._client_factory = type(transport)
else:
raise TypeError('expecting a string, a tuple or a transport')
+ ... | [protocols] only set .transport when listen() succeeds It appears that bind() to an already bound address will only fail when you actually listen() on the transport. | py |
diff --git a/salt/modules/inspectlib/collector.py b/salt/modules/inspectlib/collector.py
index <HASH>..<HASH> 100644
--- a/salt/modules/inspectlib/collector.py
+++ b/salt/modules/inspectlib/collector.py
@@ -490,8 +490,15 @@ class Inspector(EnvLoader):
'''
self._init_env()
- self._save_cfg_pkg... | Merge two db operations on collector | py |
diff --git a/python/ccxt/async_support/base/exchange.py b/python/ccxt/async_support/base/exchange.py
index <HASH>..<HASH> 100644
--- a/python/ccxt/async_support/base/exchange.py
+++ b/python/ccxt/async_support/base/exchange.py
@@ -63,7 +63,7 @@ class Exchange(BaseExchange):
def __del__(self):
if self.se... | minor edits in the text of the asyncio .close in async_support/base/exchange.py | py |
diff --git a/src/diamond/server.py b/src/diamond/server.py
index <HASH>..<HASH> 100644
--- a/src/diamond/server.py
+++ b/src/diamond/server.py
@@ -131,7 +131,7 @@ class Server(object):
collectors[key] = subcollectors[key]
# Ignore anything that isn't a .py file
- elif os.p... | Fixes #<I>, this keeps the server from scanning the unit tests | py |
diff --git a/grove/amplification/grover.py b/grove/amplification/grover.py
index <HASH>..<HASH> 100644
--- a/grove/amplification/grover.py
+++ b/grove/amplification/grover.py
@@ -19,6 +19,7 @@
import numpy as np
import pyquil.quil as pq
from pyquil.gates import H
+from pyquil.job_results import wait_for_job
from ... | Changing grover to use job connection to be consistent with docs | py |
diff --git a/sevenbridges/decorators.py b/sevenbridges/decorators.py
index <HASH>..<HASH> 100644
--- a/sevenbridges/decorators.py
+++ b/sevenbridges/decorators.py
@@ -68,7 +68,7 @@ def check_for_error(func):
raise e
except requests.RequestException as e:
raise SbgError(message=str(e))... | py2-3 compatibility. Requests throws ValueError on json decoding errors | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -34,22 +34,22 @@ requirements = [
optimization_extra = [
- "qiskit-optimization>=0.3.0",
+ "qiskit-optimization>=0.4.0",
]
finance_extra = [
- "qiskit-finance>=0.3.0",
+ "qiskit-finance>=0.3.3",
]
... | Bump applications minimum versions (#<I>) * Bump applications minimum versions * Bump Finance and Nature min.versions * Update Optimization and Finance min. versions | py |
diff --git a/model.py b/model.py
index <HASH>..<HASH> 100644
--- a/model.py
+++ b/model.py
@@ -69,14 +69,14 @@ class BaseMLP(BaseEstimator, ClassifierMixin):
out_dim = self.n_class
self.build_model(X.shape[1], out_dim)
- #if self.verbose:
- temp = [layer['output_dim']
- ... | added the verbose back to printing the model | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -16,7 +16,7 @@ setup(
package_dir={'': 'src'},
install_requires=[
"pyop >= 3.0.1",
- "pysaml2",
+ "pysaml2 >= 5.0.0",
"pycryptodomex",
"requests",
"PyYAML", | Set minimum pysaml2 version PySAML2 had a recent vulnerability report. Setting the minimum version to the fixed release will make sure we always get a safe version. See, CVE-<I>-<I> on XML Signature Wrapping (XSW) vulnerability. | py |
diff --git a/tornado/template.py b/tornado/template.py
index <HASH>..<HASH> 100644
--- a/tornado/template.py
+++ b/tornado/template.py
@@ -115,7 +115,8 @@ class Template(object):
self.file = _File(_parse(reader, self))
self.code = self._generate_python(loader, compress_whitespace)
try:
- ... | Give template-generated code a fake "filename" to avoid confusing code-coverage tools | py |
diff --git a/PySimpleGUI.py b/PySimpleGUI.py
index <HASH>..<HASH> 100644
--- a/PySimpleGUI.py
+++ b/PySimpleGUI.py
@@ -1,6 +1,6 @@
#!/usr/bin/python3
-version = __version__ = "4.19.0.1 Unreleased - Window.set_title added"
+version = __version__ = "4.19.0.2 Unreleased - Window.set_title added, removed resetting stdou... | Removed resetting of stdout if a flush is performed | py |
diff --git a/src/hunter/__init__.py b/src/hunter/__init__.py
index <HASH>..<HASH> 100644
--- a/src/hunter/__init__.py
+++ b/src/hunter/__init__.py
@@ -34,7 +34,7 @@ class Tracer(Fields.predicate):
This always returns self (drills down) - as opposed to only drilling down when predicate(event) is True becaus... | Fix some bugs with the previous rename. | py |
diff --git a/synapse/lib/storm.py b/synapse/lib/storm.py
index <HASH>..<HASH> 100644
--- a/synapse/lib/storm.py
+++ b/synapse/lib/storm.py
@@ -1337,7 +1337,7 @@ class Parser:
argtype = opts.get('type')
if argtype is not None and argtype not in s_datamodel.Model().types:
mesg = f'Argument ... | Fail gracefully for bad types in a way that can be serialized over messagepack (#<I>) | py |
diff --git a/sql_server/pyodbc/query.py b/sql_server/pyodbc/query.py
index <HASH>..<HASH> 100644
--- a/sql_server/pyodbc/query.py
+++ b/sql_server/pyodbc/query.py
@@ -114,8 +114,6 @@ def query_class(QueryClass):
def as_sql(self, with_limits=True, with_col_aliases=False):
"""
"""
- ... | Fixed issue <I>, consistently use the 'connection' Query attribute instead of redundantly importing it from django.db. Thanks tarkatronic for the report and patch. git-svn-id: <URL> | py |
diff --git a/parsl/monitoring/monitoring.py b/parsl/monitoring/monitoring.py
index <HASH>..<HASH> 100644
--- a/parsl/monitoring/monitoring.py
+++ b/parsl/monitoring/monitoring.py
@@ -261,7 +261,7 @@ class MonitoringHub(RepresentationMixin):
if isinstance(comm_q_result, str):
self.logger.error(f"... | Add missing f for an f-string (#<I>) | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -17,7 +17,7 @@
from setuptools import setup, find_packages
setup(name='zipline',
- version='0.5.1',
+ version='0.5.2',
description='A backtester for financial algorithms.',
author='Quantopian Inc.',... | Bumps release to <I>. Mainly fixes to imports and downloading of resources that were preventing installations. | py |
diff --git a/taipan/collections/dicts.py b/taipan/collections/dicts.py
index <HASH>..<HASH> 100644
--- a/taipan/collections/dicts.py
+++ b/taipan/collections/dicts.py
@@ -126,6 +126,9 @@ def peekitem(dict_):
raise KeyError("peekitem(): dictionary is empty")
return next(iteritems(dict_))
+# TODO(xion): p... | Add a few TODOs to .collections.dicts | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.