diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/src/umbra/components/factory/scriptEditor/scriptEditor.py b/src/umbra/components/factory/scriptEditor/scriptEditor.py
index <HASH>..<HASH> 100644
--- a/src/umbra/components/factory/scriptEditor/scriptEditor.py
+++ b/src/umbra/components/factory/scriptEditor/scriptEditor.py
@@ -3088,7 +3088,7 @@ class Scrip... | Fix potential exception while closing all files in "scriptEditor" component. | py |
diff --git a/influxdb/client.py b/influxdb/client.py
index <HASH>..<HASH> 100644
--- a/influxdb/client.py
+++ b/influxdb/client.py
@@ -271,6 +271,7 @@ class InfluxDBClient(object):
:param data: the data to be written
:type data: (if protocol is 'json') dict
(if protocol is 'line')... | Data arg in write() can be single string (#<I>) * data arg in write() can be single string data argument in write() was expected to be list of strings, now it can be single string as well * Fix linter error * Trailing whitespace removed * Transformed to isinstance instead of using type() * Change list(s... | py |
diff --git a/salt/state.py b/salt/state.py
index <HASH>..<HASH> 100644
--- a/salt/state.py
+++ b/salt/state.py
@@ -2061,8 +2061,7 @@ class BaseHighState(object):
inc_sls,
', '.join(resolved_envs))
log.crit... | Make ambiguous or unknown includes failhard always | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -145,8 +145,8 @@ setup(
data_files=data_files,
install_requires=install_requires,
classifiers=[
- 'Programming Language :: Python',
- 'Programming Language :: Python :: 2',
- ],
+ 'Programming La... | reverting indents Reverting indents because the change broke regression tests. | py |
diff --git a/tests/test_schema.py b/tests/test_schema.py
index <HASH>..<HASH> 100755
--- a/tests/test_schema.py
+++ b/tests/test_schema.py
@@ -343,7 +343,11 @@ class TestErrorFormatting:
def test_validate_no_data_raises_error(self):
author = {'meta': {'this': 'that'}}
- errors = AuthorSchema().va... | Use strict=True to avoid marshmallow <I> special case | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -17,7 +17,6 @@ tests_pkgs = (
'pytest==2.*', # pytest 3.x does not work on python 3.2
'pylama',
'mock',
- 'requests', # used for downloading RouterOS images
)
dev_pkgs... | Download done with wget not requests | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -30,6 +30,6 @@ setup(
classifiers=classifiers,
url='http://github.com/tanghaibao/goatools',
description="Python scripts to find enrichment of GO terms",
- long_description=open("README.rst").read(),
+ long... | [readme] modify setup.py to include md rather than rst | py |
diff --git a/dipper/sources/KEGG.py b/dipper/sources/KEGG.py
index <HASH>..<HASH> 100644
--- a/dipper/sources/KEGG.py
+++ b/dipper/sources/KEGG.py
@@ -444,9 +444,10 @@ class KEGG(Source):
alt_locus_id = self._make_variant_locus_id(gene_id, disease_id)
alt_label = self.label_has... | update kegg * GENO:<I> --> GENO:<I> * RO:has_phenotype —> RO:is_marker_for * this latter change is to be conservative, because we don't have any citation information for the KEGG entries. | py |
diff --git a/growler/app.py b/growler/app.py
index <HASH>..<HASH> 100644
--- a/growler/app.py
+++ b/growler/app.py
@@ -289,15 +289,16 @@ class App(object):
def all(self, path="/", middleware=None):
"""
- An alias call for simple access to the default router. The middleware
- provided is ca... | Fixed grammar in some docstrings. | py |
diff --git a/src/masonite/helpers/time.py b/src/masonite/helpers/time.py
index <HASH>..<HASH> 100644
--- a/src/masonite/helpers/time.py
+++ b/src/masonite/helpers/time.py
@@ -10,7 +10,7 @@ def cookie_expire_time(str_time):
str_time {string} -- Could be values like 1 second or 3 minutes
Returns:
- ... | Fix simple typo: pendlum -> pendulum There is a small typo in src/masonite/helpers/time.py. Should read `pendulum` rather than `pendlum`. | py |
diff --git a/tests/sqlite.py b/tests/sqlite.py
index <HASH>..<HASH> 100644
--- a/tests/sqlite.py
+++ b/tests/sqlite.py
@@ -315,7 +315,7 @@ class TestTableFunction(BaseTestCase):
@skip_case_unless(json_installed)
class TestJSONField(ModelTestCase):
database = database
- requires = [APIData]
+ requires = [AP... | Ensure test doesn't fail when running on postgres. | py |
diff --git a/newsplease/crawler/commoncrawl_extractor.py b/newsplease/crawler/commoncrawl_extractor.py
index <HASH>..<HASH> 100644
--- a/newsplease/crawler/commoncrawl_extractor.py
+++ b/newsplease/crawler/commoncrawl_extractor.py
@@ -138,7 +138,7 @@ class CommonCrawlExtractor:
:return:
"""
i... | Update commoncrawl_extractor.py | py |
diff --git a/h2o-py/h2o/connection.py b/h2o-py/h2o/connection.py
index <HASH>..<HASH> 100644
--- a/h2o-py/h2o/connection.py
+++ b/h2o-py/h2o/connection.py
@@ -438,8 +438,17 @@ class H2OConnection(backwards_compatible()):
if cld.consensus and cld.cloud_healthy:
self._print(" success... | Fixing a type, and adding some more logging information | py |
diff --git a/webest/__init__.py b/webest/__init__.py
index <HASH>..<HASH> 100644
--- a/webest/__init__.py
+++ b/webest/__init__.py
@@ -5,6 +5,8 @@ __email__ = 'alvaro@alobbs.com'
__author__ = 'Alvaro Lopez Ortega'
__copyright__ = 'Copyright 2015 Alvaro Lopez Ortega'
+from selenium.webdriver.common.keys import Keys
... | Expose Selenium's keys as webest.Key | py |
diff --git a/quilt/error.py b/quilt/error.py
index <HASH>..<HASH> 100644
--- a/quilt/error.py
+++ b/quilt/error.py
@@ -37,5 +37,12 @@ class NoAppliedPatch(QuiltError):
class AllPatchesApplied(QuiltError):
+ def __init__(self, series, top=None):
+ self.series = series
+ self.top = top
+
def __... | Add constuctor for AllPatchesApplied Add constructor to AllPatchesApplied error to be able to get all relevant information in exception handling. | py |
diff --git a/greenhouse/utils.py b/greenhouse/utils.py
index <HASH>..<HASH> 100644
--- a/greenhouse/utils.py
+++ b/greenhouse/utils.py
@@ -307,16 +307,18 @@ class Timer(object):
self.kwargs = kwargs or {}
self._glet = glet = greenlet(self._run, scheduler.generic_parent)
self.waketime = waketi... | allow cancel() to be called more than once on a util.Timer | py |
diff --git a/unicore/distribute/api/repo_status.py b/unicore/distribute/api/repo_status.py
index <HASH>..<HASH> 100644
--- a/unicore/distribute/api/repo_status.py
+++ b/unicore/distribute/api/repo_status.py
@@ -21,20 +21,3 @@ class RepositoryStatusResource(object):
storage_path = self.config.get('repo.storage_... | refactor: added tests for repo_status.py | py |
diff --git a/eqcorrscan/core/match_filter.py b/eqcorrscan/core/match_filter.py
index <HASH>..<HASH> 100644
--- a/eqcorrscan/core/match_filter.py
+++ b/eqcorrscan/core/match_filter.py
@@ -3003,6 +3003,8 @@ class Detection(object):
detect_time.strftime('%Y%m%d_%H%M%S%f'))
if event is not ... | Assertion that correlation sum less than no_chans | 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
@@ -69,8 +69,8 @@ class SosSpecs(Specs):
lsmod = simple_file("sos_commands/kernel/lsmod")
lspci = first_of([
simple_file("sos_... | Reorder lspci file path from sos archive (#<I>) lspci_-nvv has more verbose information than lspci. Hence, reordering list of lspci files. | py |
diff --git a/openid/store/dumbstore.py b/openid/store/dumbstore.py
index <HASH>..<HASH> 100644
--- a/openid/store/dumbstore.py
+++ b/openid/store/dumbstore.py
@@ -49,8 +49,9 @@ class DumbStore(OpenIDStore):
def useNonce(self, server_url, timestamp, salt):
"""
In a system truly limited to dumb mod... | [project @ Wording in docs for openid.store.dumbstore.DumbStore.useNonce] | py |
diff --git a/pygal/graph/base.py b/pygal/graph/base.py
index <HASH>..<HASH> 100644
--- a/pygal/graph/base.py
+++ b/pygal/graph/base.py
@@ -185,13 +185,6 @@ class BaseGraph(object):
min(self._values) if self._values else None)
@cached_property
- def _secondary_min(self):
- """Getter for the... | Remove duplicated _secondary_min method | py |
diff --git a/littlechef/chef.py b/littlechef/chef.py
index <HASH>..<HASH> 100644
--- a/littlechef/chef.py
+++ b/littlechef/chef.py
@@ -139,10 +139,11 @@ def _merge_attributes(node, all_recipes, all_roles):
for r in all_recipes:
if recipe == r['name']:
for attr in r['attributes']:
... | Fix cookbook attributes merge when non-leaf attributes are declared | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -46,9 +46,16 @@ if os.name == 'nt':
# Hack to overcome a separate bug
def get_command_class(self, command):
- """Ensures self.cmdclass is not a tuple."""
- if type(self.cmdclass) is tuple:
- ... | Another try for Win <I>. | py |
diff --git a/telemetry/telemetry/core/backends/chrome/inspector_memory_unittest.py b/telemetry/telemetry/core/backends/chrome/inspector_memory_unittest.py
index <HASH>..<HASH> 100644
--- a/telemetry/telemetry/core/backends/chrome/inspector_memory_unittest.py
+++ b/telemetry/telemetry/core/backends/chrome/inspector_memo... | Add warnings to inspector DOM count unittest baselines. The unit test failure indicates a serious Document leak, where all WebCore::Document loaded in Chrome is leaking. This CL adds warning comments to the baseline to avoid regressions. BUG=<I> NOTRY=true Review URL: <URL> | py |
diff --git a/mechanicalsoup/stateful_browser.py b/mechanicalsoup/stateful_browser.py
index <HASH>..<HASH> 100644
--- a/mechanicalsoup/stateful_browser.py
+++ b/mechanicalsoup/stateful_browser.py
@@ -160,6 +160,8 @@ class StatefulBrowser(Browser):
self.__current_url = resp.url
if hasattr(resp, "soup"):... | StatefulBrowser.submit_selected: reset __current_page Without this, if the result of submitting the form is not an HTML page (as is the case for <URL>), the old page is kept in memory while the new URL is active. | py |
diff --git a/fusionbox/db/models.py b/fusionbox/db/models.py
index <HASH>..<HASH> 100644
--- a/fusionbox/db/models.py
+++ b/fusionbox/db/models.py
@@ -18,6 +18,7 @@ class QuerySetManager(models.Manager):
def published(self):
return self.filter(is_published=True)
"""
+ use_for_relat... | added use_for_related_fields to QuerySetManager so that it gets used for reverse relationships as well | py |
diff --git a/tabular_predDB/convergence_analysis/plot_convergence_results.py b/tabular_predDB/convergence_analysis/plot_convergence_results.py
index <HASH>..<HASH> 100644
--- a/tabular_predDB/convergence_analysis/plot_convergence_results.py
+++ b/tabular_predDB/convergence_analysis/plot_convergence_results.py
@@ -18,7 ... | include max_mean in run_key | py |
diff --git a/pycbc/conversions.py b/pycbc/conversions.py
index <HASH>..<HASH> 100644
--- a/pycbc/conversions.py
+++ b/pycbc/conversions.py
@@ -381,7 +381,7 @@ def lambda_tilde(mass1, mass2, lambda1, lambda2):
m1, m2, lambda1, lambda2, input_is_array = ensurearray(
mass1, mass2, lambda1, lambda2)
lsum... | cast ldiff to array to avoid TypeError (#<I>) | py |
diff --git a/easyquotation/sina.py b/easyquotation/sina.py
index <HASH>..<HASH> 100644
--- a/easyquotation/sina.py
+++ b/easyquotation/sina.py
@@ -43,6 +43,7 @@ class Sina:
self.stock_data.append(response_text)
def get_stock_data(self):
+ del self.stock_data[:]
threads = []
... | fix(sina): clear stock data after use fix #1 | py |
diff --git a/crispy/gui/quanty.py b/crispy/gui/quanty.py
index <HASH>..<HASH> 100644
--- a/crispy/gui/quanty.py
+++ b/crispy/gui/quanty.py
@@ -401,7 +401,7 @@ class QuantyDockWidget(QDockWidget):
self.saveInput()
self.runPushButton.setCallable(
- subprocess.check_call, [self.command, self... | Remove piping of the stdout | py |
diff --git a/tests/test_bcrypt.py b/tests/test_bcrypt.py
index <HASH>..<HASH> 100644
--- a/tests/test_bcrypt.py
+++ b/tests/test_bcrypt.py
@@ -49,7 +49,7 @@ def test_gensalt_rounds_valid(rounds, expected, monkeypatch):
assert bcrypt.gensalt(rounds) == expected
-@pytest.mark.parametrize(("rounds",), [[x] for x ... | Simplify, very slightly, how the parameterize decorator is used | py |
diff --git a/src/foremast/iam/__main__.py b/src/foremast/iam/__main__.py
index <HASH>..<HASH> 100644
--- a/src/foremast/iam/__main__.py
+++ b/src/foremast/iam/__main__.py
@@ -10,7 +10,14 @@ LOG = logging.getLogger(__name__)
def main():
- """Command to create IAM Instance Profiles, Roles, Users, and Groups."""
+... | docs: Improve help for `create-iam` | py |
diff --git a/applepy.py b/applepy.py
index <HASH>..<HASH> 100644
--- a/applepy.py
+++ b/applepy.py
@@ -355,17 +355,19 @@ class SoftSwitches:
class Memory:
- def __init__(self, options, display=None, speaker=None):
+ def __init__(self, options=None, display=None, speaker=None):
self.display = dis... | made options...um...optional param to Memory so tests pass | py |
diff --git a/wandb/wandb_keras.py b/wandb/wandb_keras.py
index <HASH>..<HASH> 100644
--- a/wandb/wandb_keras.py
+++ b/wandb/wandb_keras.py
@@ -92,11 +92,14 @@ class WandbKerasCallback(object):
% (epoch, self.monitor, self.best,
current, self.filepath))
self.... | fixed issue where wandb keras breaks when h5py not installed | py |
diff --git a/tests.py b/tests.py
index <HASH>..<HASH> 100644
--- a/tests.py
+++ b/tests.py
@@ -76,6 +76,16 @@ class PatternsTestCase(unittest.TestCase):
num_pattern = self.patterns.PHONE_NUMBER['US']
num = '12345678901'
self.assertTrue(re.match(num_pattern, num))
+
+ def test_ni_ph... | Added two tests for Nicaraguan Phone numbers | py |
diff --git a/gseapy/enrichr.py b/gseapy/enrichr.py
index <HASH>..<HASH> 100644
--- a/gseapy/enrichr.py
+++ b/gseapy/enrichr.py
@@ -99,8 +99,11 @@ class Enrichr(object):
# if gss contains .gmt, dict, enrichr_liraries.
# convert .gmt to dict
- gss_exist = []
- enrichr_library = ... | Update enrichr.py Little workaround to make it also work offline if gene set is a custom dictionary. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -12,7 +12,7 @@ setup(
packages=find_packages(exclude=['test', 'test.*']),
description='coloured output for nosetests',
entry_points={'nose.plugins.0.10': ['NOSETESTS_PLUGINS = rednose:RedNose']},
- install_re... | Use termstyle rather than python-termstyle (#<I>) | py |
diff --git a/montblanc/impl/rime/tensorflow/RimeSolver.py b/montblanc/impl/rime/tensorflow/RimeSolver.py
index <HASH>..<HASH> 100644
--- a/montblanc/impl/rime/tensorflow/RimeSolver.py
+++ b/montblanc/impl/rime/tensorflow/RimeSolver.py
@@ -301,13 +301,16 @@ class RimeSolver(MontblancTensorflowSolver):
rb=mb... | Log correct message when no dimensions are reduced | py |
diff --git a/helpers/postgresql.py b/helpers/postgresql.py
index <HASH>..<HASH> 100644
--- a/helpers/postgresql.py
+++ b/helpers/postgresql.py
@@ -37,8 +37,9 @@ class Postgresql:
self.config = config
+ connect_address = config.get('connect_address', config['listen']) or config['listen']
sel... | If there is no connect_address defined in yml file use address from listen as a fallback | py |
diff --git a/scapy/contrib/mpls.py b/scapy/contrib/mpls.py
index <HASH>..<HASH> 100644
--- a/scapy/contrib/mpls.py
+++ b/scapy/contrib/mpls.py
@@ -64,6 +64,7 @@ class MPLS(Packet):
bind_layers(Ether, MPLS, type=0x8847)
bind_layers(IP, MPLS, proto=137)
+bind_layers(IPv6, MPLS, proto=137)
bind_layers(UDP, MPLS, dpor... | RFC <I> says it should totally work with IPv6 too. Pointed out by Gabriel Potter | py |
diff --git a/cwltool/sandboxjs.py b/cwltool/sandboxjs.py
index <HASH>..<HASH> 100644
--- a/cwltool/sandboxjs.py
+++ b/cwltool/sandboxjs.py
@@ -16,6 +16,7 @@ def execjs(js, jslib):
for n in trynodes:
try:
nodejs = subprocess.Popen(n, stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subpro... | Stop looking for nodejs when found A small fix for 6ce<I> to stop searching for nodejs implementations when the first is found. This prevents an error when you have a local nodejs but not the node:slim docker image. (ref #<I> and #<I>). | py |
diff --git a/netmiko/huawei/huawei.py b/netmiko/huawei/huawei.py
index <HASH>..<HASH> 100644
--- a/netmiko/huawei/huawei.py
+++ b/netmiko/huawei/huawei.py
@@ -28,9 +28,6 @@ class HuaweiBase(CiscoBaseConnection):
pattern = rf" {code_cursor_left}"
output = re.sub(pattern, "", output)
- log.debu... | Removing unnecessary logging from Huawei driver (#<I>) | py |
diff --git a/packages/vaex-core/vaex/dataset.py b/packages/vaex-core/vaex/dataset.py
index <HASH>..<HASH> 100644
--- a/packages/vaex-core/vaex/dataset.py
+++ b/packages/vaex-core/vaex/dataset.py
@@ -4019,10 +4019,13 @@ array([[ 53.54521742, -3.8123135 , -0.98260511],
for name in ds:
column = ds.... | fix: .trim does not copy (slice) the array when not needed | py |
diff --git a/charmhelpers/fetch/__init__.py b/charmhelpers/fetch/__init__.py
index <HASH>..<HASH> 100644
--- a/charmhelpers/fetch/__init__.py
+++ b/charmhelpers/fetch/__init__.py
@@ -1,5 +1,5 @@
-from cStringIO import StringIO
import importlib
+from tempfile import NamedTemporaryFile
import time
from yaml import saf... | StringIO isn't going to work here | py |
diff --git a/ding0/tools/results.py b/ding0/tools/results.py
index <HASH>..<HASH> 100644
--- a/ding0/tools/results.py
+++ b/ding0/tools/results.py
@@ -183,13 +183,19 @@ def plot_generation_over_load(stats, plotpath):
sns.set_style("ticks")
# reformat to MW
- stats[['generation_capacity', 'peak_load']] = ... | Corrected indexes for the generation vs load plot | py |
diff --git a/HydraServer/server.py b/HydraServer/server.py
index <HASH>..<HASH> 100644
--- a/HydraServer/server.py
+++ b/HydraServer/server.py
@@ -224,7 +224,7 @@ class HydraServer():
domain = config.get('hydra_server', 'domain', '127.0.0.1')
spyne.const.xml_ns.DEFAULT_NS = 'soap_server.hydr... | Merged server.py from master to create a valid WSGI application. | py |
diff --git a/reana_db/version.py b/reana_db/version.py
index <HASH>..<HASH> 100644
--- a/reana_db/version.py
+++ b/reana_db/version.py
@@ -14,4 +14,4 @@ and parsed by ``setup.py``.
from __future__ import absolute_import, print_function
-__version__ = "0.7.0.dev20191219"
+__version__ = "0.7.0.dev20200129" | release: <I>.de<I> | py |
diff --git a/util.py b/util.py
index <HASH>..<HASH> 100644
--- a/util.py
+++ b/util.py
@@ -10,7 +10,7 @@ def pythonise(id):
if id[0] in string.digits:
id = "_" + id
- return id
+ return id.encode('ascii')
def get_value(item, kwargs):
"""Return either a literal value... | Ensure python names are strings not unicode | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -51,6 +51,7 @@ setup(
'setuptools',
'numpy',
'iminuit',
+ 'matplotlib'
],
classifiers=[
"Programming Language :: Python", | Add missing matplotlib dependency. | py |
diff --git a/tcex/app_config_object/profile.py b/tcex/app_config_object/profile.py
index <HASH>..<HASH> 100644
--- a/tcex/app_config_object/profile.py
+++ b/tcex/app_config_object/profile.py
@@ -316,6 +316,8 @@ class Profile:
playbook_type = playbook_variables.get(input_name, None)
if not play... | Don't autostage variables that are already staged | py |
diff --git a/fedora_messaging/message.py b/fedora_messaging/message.py
index <HASH>..<HASH> 100644
--- a/fedora_messaging/message.py
+++ b/fedora_messaging/message.py
@@ -185,6 +185,8 @@ class Message(object):
"""
Validate the headers and body with the message schema, if any.
+ .. warning:: T... | Note that validate should not be overridden Add a big red warning for developers to not override validate. | py |
diff --git a/sramongo/mongo_schema.py b/sramongo/mongo_schema.py
index <HASH>..<HASH> 100644
--- a/sramongo/mongo_schema.py
+++ b/sramongo/mongo_schema.py
@@ -472,7 +472,8 @@ class Experiment(Document):
study = ReferenceField(Study)
samples = ListField(StringField(), default=list)
runs = ListField(String... | Adds a db_flags and pipeline_flags. Added new flags to schema. | py |
diff --git a/mailerdev/mailer/__init__.py b/mailerdev/mailer/__init__.py
index <HASH>..<HASH> 100644
--- a/mailerdev/mailer/__init__.py
+++ b/mailerdev/mailer/__init__.py
@@ -1,8 +1,13 @@
+from django.utils.encoding import force_unicode
from mailer.models import Message
# replacement for django.core.mail.send_mai... | now resolves lazy strings as subjects git-svn-id: <URL> | py |
diff --git a/raiden/tests/integration/long_running/test_settlement.py b/raiden/tests/integration/long_running/test_settlement.py
index <HASH>..<HASH> 100644
--- a/raiden/tests/integration/long_running/test_settlement.py
+++ b/raiden/tests/integration/long_running/test_settlement.py
@@ -509,15 +509,10 @@ def run_test_ch... | Use message_handler and event handler already initialized | py |
diff --git a/jishaku/features/management.py b/jishaku/features/management.py
index <HASH>..<HASH> 100644
--- a/jishaku/features/management.py
+++ b/jishaku/features/management.py
@@ -38,6 +38,10 @@ class ManagementFeature(Feature):
paginator = WrappedPaginator(prefix='', suffix='')
+ # 'jsk reload' ... | Make 'jsk reload' on its own reload Jishaku | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -17,7 +17,8 @@ setuptools.setup(
keywords=['events', 'queue', 'producer', 'consumer', 'dispatch', 'sqs'],
packages=[
'eventcore',
- 'eventcore.sqs'
+ 'eventcore.dummy',
+ 'eventcore.sqs'... | Include dummy package to allow imports | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -26,6 +26,7 @@ setup(
install_requires=['xnat>=0.3.4',
'nipype>=1.0',
'pydicom>=1.0'],
+ dependency_links=['git+https://github.com/pydicom/pydicom.git'],
classifiers=[... | added pydicom dependency link | py |
diff --git a/analyzers/MISP/misp_analyzer.py b/analyzers/MISP/misp_analyzer.py
index <HASH>..<HASH> 100755
--- a/analyzers/MISP/misp_analyzer.py
+++ b/analyzers/MISP/misp_analyzer.py
@@ -11,8 +11,10 @@ class MISPAnalyzer(Analyzer):
Analyzer.__init__(self)
self.service = self.getParam('config.service',... | take key for key API in config. Also keep compat with old api_key. Output a JSON report.full instead of array | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -23,6 +23,19 @@ setup(
long_description="""A sphinx extension that automatically documents argparse commands and options.
For installation and usage details, see the `documentation <http://sphinx-argparse.readthedocs.o... | Add some classifiers for pypi | py |
diff --git a/baron/render.py b/baron/render.py
index <HASH>..<HASH> 100644
--- a/baron/render.py
+++ b/baron/render.py
@@ -298,6 +298,7 @@ nodes_rendering_order = {
],
"def": [
("list", "decorators", True),
+ ("bool", "async", False),
... | [fix] async is both a constant and a bool | py |
diff --git a/insteonplm/ipdb.py b/insteonplm/ipdb.py
index <HASH>..<HASH> 100644
--- a/insteonplm/ipdb.py
+++ b/insteonplm/ipdb.py
@@ -69,7 +69,8 @@ class IPDB(object):
Product(0x07, 0x00, None, 'I/O Linc', '2450', ['switch', 'binary_sensor', 'relay']),
- Product(0x09, 0x0a, None, '240v Load Control... | Added <I>v Load Controler NC (<I>SA2) | py |
diff --git a/examples/basic_tagger.py b/examples/basic_tagger.py
index <HASH>..<HASH> 100644
--- a/examples/basic_tagger.py
+++ b/examples/basic_tagger.py
@@ -21,6 +21,8 @@ def main(width=32, nr_vector=1000):
model = with_flatten(
chain(
HashEmbed(width, 1000),
+ ... | Add ReLu layers to basic tagger | py |
diff --git a/src/diamond/collector.py b/src/diamond/collector.py
index <HASH>..<HASH> 100644
--- a/src/diamond/collector.py
+++ b/src/diamond/collector.py
@@ -132,10 +132,11 @@ class Collector(object):
if isinstance(self.config['byte_unit'], basestring):
self.config['byte_unit'] = self.config['byt... | Only cast if starting as a base string | py |
diff --git a/PyFunceble/checker/syntax/domain_base.py b/PyFunceble/checker/syntax/domain_base.py
index <HASH>..<HASH> 100644
--- a/PyFunceble/checker/syntax/domain_base.py
+++ b/PyFunceble/checker/syntax/domain_base.py
@@ -172,21 +172,14 @@ class DomainSyntaxCheckerBase(CheckerBase):
The extension previous... | Improvement by removing unneeded variables. | py |
diff --git a/montblanc/impl/rime/tensorflow/queue_wrapper.py b/montblanc/impl/rime/tensorflow/queue_wrapper.py
index <HASH>..<HASH> 100644
--- a/montblanc/impl/rime/tensorflow/queue_wrapper.py
+++ b/montblanc/impl/rime/tensorflow/queue_wrapper.py
@@ -1,8 +1,9 @@
-import numpy as np
-import tensorflow as tf
-import pyra... | Add queue_wrapper dequeue to dictionary methods Create dicts and attrdicts keyed on array name | py |
diff --git a/redis/client.py b/redis/client.py
index <HASH>..<HASH> 100644
--- a/redis/client.py
+++ b/redis/client.py
@@ -432,9 +432,24 @@ class StrictRedis(object):
"Delete all keys in the current database"
return self.execute_command('FLUSHDB')
- def info(self):
- "Returns a dictionary ... | Implement support for passing an arg to INFO command. | py |
diff --git a/doc/source/code/tut_import.py b/doc/source/code/tut_import.py
index <HASH>..<HASH> 100644
--- a/doc/source/code/tut_import.py
+++ b/doc/source/code/tut_import.py
@@ -35,8 +35,8 @@ somaSec = cellRule['secLists']['Soma'][0]
cellRule['secs'][somaSec]['spikeGenLoc'] = 0.5
### Mainen
-netParams.importCell(l... | adapting importCell to new format (issue #<I>) | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -56,7 +56,7 @@ try:
except IndexError:
pass
else:
- if action in ['develop', 'install', 'test']:
+ if action in ['develop', 'install', 'test', 'bdist_egg']:
install_requires += [
'cliff==1.7.... | Fix OpenStack dependencies when Python egg is built | py |
diff --git a/src/ocrmypdf/builtin_plugins/concurrency.py b/src/ocrmypdf/builtin_plugins/concurrency.py
index <HASH>..<HASH> 100644
--- a/src/ocrmypdf/builtin_plugins/concurrency.py
+++ b/src/ocrmypdf/builtin_plugins/concurrency.py
@@ -72,12 +72,15 @@ def process_init(q: Queue, user_init: Callable[[], None], loglevel):
... | Remove parent process's log handlers properly | py |
diff --git a/pygeotools/lib/malib.py b/pygeotools/lib/malib.py
index <HASH>..<HASH> 100755
--- a/pygeotools/lib/malib.py
+++ b/pygeotools/lib/malib.py
@@ -1516,7 +1516,7 @@ def mad(a, axis=None, c=1.4826, return_med=False):
else:
med = np.ma.median(a, axis=axis)
#This is necessary for... | malib: fix broadcasting in mad | py |
diff --git a/src/resolvelib/structs.py b/src/resolvelib/structs.py
index <HASH>..<HASH> 100644
--- a/src/resolvelib/structs.py
+++ b/src/resolvelib/structs.py
@@ -116,7 +116,8 @@ class _FactoryIterableView(object):
"""
def __init__(self, factory):
- self._iterable = factory()
+ self._factory =... | fix: all the factory only when needed | py |
diff --git a/zipline/transforms/utils.py b/zipline/transforms/utils.py
index <HASH>..<HASH> 100644
--- a/zipline/transforms/utils.py
+++ b/zipline/transforms/utils.py
@@ -136,7 +136,7 @@ class StatefulTransform(object):
# IMPORTANT: Messages may contain pointers that are shared with
# other streams. ... | MAINT: Tune logging of StateTransform start/end to debug. These log lines are useful for debugging, but a bit spurious on every algorithm run. | py |
diff --git a/dss/config.py b/dss/config.py
index <HASH>..<HASH> 100644
--- a/dss/config.py
+++ b/dss/config.py
@@ -71,15 +71,16 @@ class Config:
# different bucket than the tests.
#
# Tests will continue to operate on the test bucket, however.
- if Config._CURRENT_CONFIG == BucketConfi... | Cache the GS bucket data like we do for S3 (#<I>) | py |
diff --git a/pysonos/core.py b/pysonos/core.py
index <HASH>..<HASH> 100755
--- a/pysonos/core.py
+++ b/pysonos/core.py
@@ -1172,6 +1172,15 @@ class SoCo(_SocoSingletonBase):
track_uri = response['TrackURI']
return re.match(r'^x-sonos-htastream:', track_uri) is not None
+ @property
+ def is_pla... | Is playing local queue (#<I>) | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -19,7 +19,7 @@ if sys.version_info[:2] < (2, 7):
setup(
name='django-local-settings',
- version='1.0a10',
+ version='1.0a11',
author='Wyatt Baldwin',
author_email='wyatt.baldwin@pdx.edu',
url='http... | Prepare release <I>a<I> | py |
diff --git a/tellive/tellstick.py b/tellive/tellstick.py
index <HASH>..<HASH> 100644
--- a/tellive/tellstick.py
+++ b/tellive/tellstick.py
@@ -160,7 +160,8 @@ class TellstickLiveClient(object):
dev = {'id': device.id, 'name': device.name}
dev['methods'] = device.methods(supported_methods)
... | Correctly send last_sent_value even when it is 0 | py |
diff --git a/salt/modules/data.py b/salt/modules/data.py
index <HASH>..<HASH> 100644
--- a/salt/modules/data.py
+++ b/salt/modules/data.py
@@ -98,5 +98,6 @@ def getvals(keys):
store = load()
ret = []
for key in keys:
- ret.append(store[key])
+ if key in store:
+ ret.append(store[... | don't backtrace when asking for keys that are not present | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -2,13 +2,14 @@
from setuptools import setup
setup(name='poppy-inverse-kinematics',
- version='1.0.2',
+ version='1.0.3',
author="Pierre Manceron",
description="An inverse kinematics library aiming p... | Add setup_require to setup.py | py |
diff --git a/openfisca_country_template/variables/demographics.py b/openfisca_country_template/variables/demographics.py
index <HASH>..<HASH> 100644
--- a/openfisca_country_template/variables/demographics.py
+++ b/openfisca_country_template/variables/demographics.py
@@ -9,7 +9,6 @@ from openfisca_core.model_api import ... | Add support for leap years in age formula | py |
diff --git a/salt/returners/local_cache.py b/salt/returners/local_cache.py
index <HASH>..<HASH> 100644
--- a/salt/returners/local_cache.py
+++ b/salt/returners/local_cache.py
@@ -12,6 +12,7 @@ import os
import shutil
import time
import hashlib
+import bisect
# Import salt libs
import salt.payload
@@ -270,15 +271... | list_jobs_filter with local_cache performance update - avoid sorting by keeping sorted - don't keep all in memory | py |
diff --git a/scoop/fallbacks.py b/scoop/fallbacks.py
index <HASH>..<HASH> 100644
--- a/scoop/fallbacks.py
+++ b/scoop/fallbacks.py
@@ -18,6 +18,7 @@
started properly."""
import sys
import warnings
+from functools import wraps
class NotStartedProperly(Exception):
@@ -26,6 +27,7 @@ class NotStartedProperly(Except... | + Added better behavior of decorator | py |
diff --git a/djangocms_text_ckeditor/__init__.py b/djangocms_text_ckeditor/__init__.py
index <HASH>..<HASH> 100644
--- a/djangocms_text_ckeditor/__init__.py
+++ b/djangocms_text_ckeditor/__init__.py
@@ -1,3 +1,3 @@
# -*- coding: utf-8 -*-
-__version__ = "3.5.1rc3"
+__version__ = "3.5.1rc4"
default_app_config = 'djang... | Bumped version to <I>rc4 | py |
diff --git a/testutils.py b/testutils.py
index <HASH>..<HASH> 100644
--- a/testutils.py
+++ b/testutils.py
@@ -443,6 +443,22 @@ class InvenioWebTestCase(unittest.TestCase):
except:
raise InvenioWebTestCaseException(element=element_link_text)
+ def find_element_by_partial_link_text_with_timeou... | WebComment: adapt web tests to the new framework * Adapts WebComment web tests to the new web test framework. (addresses #<I>) * Adds function 'find_element_by_partial_link_text_with_timeout' to the 'InvenioWebTestCase' class. | py |
diff --git a/tests/test_git_changelog.py b/tests/test_git_changelog.py
index <HASH>..<HASH> 100644
--- a/tests/test_git_changelog.py
+++ b/tests/test_git_changelog.py
@@ -83,8 +83,8 @@ class TestWithRepository(ChangelogTestCase):
assert_equal(u'þéßþ Úßéë', children[2].text)
def test_single_commit_time_... | Fix race condition in timestamp test | py |
diff --git a/test/testgeohash.py b/test/testgeohash.py
index <HASH>..<HASH> 100644
--- a/test/testgeohash.py
+++ b/test/testgeohash.py
@@ -1,3 +1,10 @@
+import sys
+
+# Test the source tree, not an installed version.
+sys.path.insert(0, '../Geohash')
+
+import geohash
+
if __name__ == '__main__':
import doctest
... | Ensure test is done on source tree, not an installed version. | py |
diff --git a/ccxt/__init__.py b/ccxt/__init__.py
index <HASH>..<HASH> 100644
--- a/ccxt/__init__.py
+++ b/ccxt/__init__.py
@@ -6381,7 +6381,7 @@ class coincheck (Exchange):
if type == 'market':
order_type = type + '_' + side
order['order_type'] = order_type
- prefix = (orde... | fix 2 bugs found with flake8 | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -47,9 +47,7 @@ if sys.version_info[0] == 2:
'zerorpc>=0.4.0',
]
-install_requires = [
- 'six'
-]
+install_requires = []
try:
# For Python >= 2.6 | removed the six dependency, we bundle our own now | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -8,7 +8,7 @@ from setuptools import setup, find_packages
def load_required_modules():
with open(os.path.join(os.path.dirname(__file__), "requirements.txt")) as f:
- return [line.strip() for line in f.read().stri... | Fix bug which load_required_modules always returns list which length is 1 | py |
diff --git a/flatpages_i18n/migrations/0001_initial.py b/flatpages_i18n/migrations/0001_initial.py
index <HASH>..<HASH> 100644
--- a/flatpages_i18n/migrations/0001_initial.py
+++ b/flatpages_i18n/migrations/0001_initial.py
@@ -1,11 +1,27 @@
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
+from django.... | sync_translation_fields and update_translation_fields commands run right after initial migration automatically | py |
diff --git a/indra/trips/processor.py b/indra/trips/processor.py
index <HASH>..<HASH> 100644
--- a/indra/trips/processor.py
+++ b/indra/trips/processor.py
@@ -554,6 +554,7 @@ class TripsProcessor(object):
m.position, evidence=ev)
_stmt_location... | Fix extracting auto/transphosphorylation only once | py |
diff --git a/watermarker/templatetags/watermark.py b/watermarker/templatetags/watermark.py
index <HASH>..<HASH> 100644
--- a/watermarker/templatetags/watermark.py
+++ b/watermarker/templatetags/watermark.py
@@ -253,6 +253,8 @@ def watermark(url, args=''):
# iterate over all parameters to see what we need to do
... | Updating template filter to handle spaces in the parameters. GC #5 | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -23,7 +23,7 @@ install_requires = [
'django-taggit==0.12',
'django-permission==0.8.2',
'django-auth-ldap==1.2.0',
- 'django-filter==0.7'
+ 'django-filter==0.7',
] | Added trailing comma | py |
diff --git a/doc/conf.py b/doc/conf.py
index <HASH>..<HASH> 100644
--- a/doc/conf.py
+++ b/doc/conf.py
@@ -33,7 +33,7 @@ extensions = \
'viewcode']] \
+ ['sphinxcontrib.%s' % ext for ext in ['cheeseshop']]
-# Only activate spelling, if it is installed. It is not required ... | [Tr] Minor comment fixes to Sphinx config | py |
diff --git a/regions/core/pixcoord.py b/regions/core/pixcoord.py
index <HASH>..<HASH> 100644
--- a/regions/core/pixcoord.py
+++ b/regions/core/pixcoord.py
@@ -37,7 +37,7 @@ class PixCoord(object):
x, y = np.broadcast_arrays(x, y)
if x.shape == ():
- self.x, self.y = np.asscalar(x), np.ass... | Replace calls to deprecated np.asscalar() by .item() | py |
diff --git a/simuvex/s_state.py b/simuvex/s_state.py
index <HASH>..<HASH> 100644
--- a/simuvex/s_state.py
+++ b/simuvex/s_state.py
@@ -540,7 +540,7 @@ class SimState(ana.Storable): # pylint: disable=R0904
@property
def thumb(self):
- if self.arch.name not in ('ARMEL', 'ARMHF'):
+ if not self.a... | Test ARM-ness of the architecture based on whether the arch name starts with 'ARM'. Acccording to rhelmot, there are cases where arch name of an ARM binary is neither ARMEL nor ARMHF. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -48,7 +48,7 @@ except (IOError, ImportError):
long_description = f.read()
-version = '0.2.0'
+version = '0.2.1'
class TestCommand(Command): | Increase version package to <I> | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -17,7 +17,7 @@ setup(name='pyprf_feature',
author_email='marian.schneider@maastrichtuniversity.nl',
license='GNU General Public License Version 3',
install_requires=['numpy', 'scipy', 'nibabel',
- ... | Lowered tensforflow to version <I>. - This was necessary due to compatibility with numpy issue. Newer Tf requires higher version of numpy that is incompatible with matplotlib. | py |
diff --git a/great_expectations/execution_engine/pandas_execution_engine.py b/great_expectations/execution_engine/pandas_execution_engine.py
index <HASH>..<HASH> 100644
--- a/great_expectations/execution_engine/pandas_execution_engine.py
+++ b/great_expectations/execution_engine/pandas_execution_engine.py
@@ -31,10 +31... | Revert PR <I> (#<I>) | py |
diff --git a/vncdotool/client.py b/vncdotool/client.py
index <HASH>..<HASH> 100644
--- a/vncdotool/client.py
+++ b/vncdotool/client.py
@@ -130,9 +130,12 @@ class VNCDoToolClient(rfb.RFBClient):
cursor = None
cmask = None
+ SPECIAL_KEYS_US = "~!@#$%^&*()_+{}|:\"<>?"
+
def _decodeKey(self, key):
- ... | --force-caps works with special keys, fixes #<I> | py |
diff --git a/spinoff/util/logging.py b/spinoff/util/logging.py
index <HASH>..<HASH> 100644
--- a/spinoff/util/logging.py
+++ b/spinoff/util/logging.py
@@ -1,9 +1,11 @@
# coding: utf8
from __future__ import print_function, absolute_import
+import datetime
import inspect
import re
import sys
+import time
import t... | Automatically print the time in logging | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.