diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/gimmemotifs/maelstrom.py b/gimmemotifs/maelstrom.py
index <HASH>..<HASH> 100644
--- a/gimmemotifs/maelstrom.py
+++ b/gimmemotifs/maelstrom.py
@@ -185,6 +185,11 @@ def visualize_maelstrom(outdir, sig_cutoff=3, pwmfile=None):
def run_maelstrom(infile, genome, outdir, pwmfile=None, plot=True, cluster=True,
... | Check for duplicate regions and raise Exception | py |
diff --git a/datasketch/experimental/aio/storage.py b/datasketch/experimental/aio/storage.py
index <HASH>..<HASH> 100644
--- a/datasketch/experimental/aio/storage.py
+++ b/datasketch/experimental/aio/storage.py
@@ -150,6 +150,8 @@ if motor is not None and ReturnDocument is not None:
self._batch_size = 1000... | Fixes #<I>; MinhashLSH creates mongo index key. (#<I>) | py |
diff --git a/src/rudiments/reamed/click.py b/src/rudiments/reamed/click.py
index <HASH>..<HASH> 100644
--- a/src/rudiments/reamed/click.py
+++ b/src/rudiments/reamed/click.py
@@ -39,7 +39,7 @@ __all__ = [encode_filename(_) for _ in __all__]
def pretty_path(path, _home_re=re.compile('^' + re.escape(os.path.expanduser('... | fix re.sub for backslashed Windows paths | py |
diff --git a/perceval/backends/stackexchange.py b/perceval/backends/stackexchange.py
index <HASH>..<HASH> 100644
--- a/perceval/backends/stackexchange.py
+++ b/perceval/backends/stackexchange.py
@@ -89,8 +89,9 @@ class StackExchange(Backend):
for whole_page in whole_pages:
self._push_cache_queue(w... | [stackexchange] Return element instead of iterator | py |
diff --git a/openfisca_survey_manager/scenarios.py b/openfisca_survey_manager/scenarios.py
index <HASH>..<HASH> 100644
--- a/openfisca_survey_manager/scenarios.py
+++ b/openfisca_survey_manager/scenarios.py
@@ -98,7 +98,10 @@ class AbstractSurveyScenario(object):
# waiting for the new pandas version to... | Do not remove entities id and roles from input data frame | py |
diff --git a/canvasapi/util.py b/canvasapi/util.py
index <HASH>..<HASH> 100644
--- a/canvasapi/util.py
+++ b/canvasapi/util.py
@@ -1,7 +1,6 @@
from __future__ import absolute_import, division, print_function, unicode_literals
import os
-from collections import Iterable
from six import binary_type, string_types, ... | Update is iterable detection to use iter() instead of checking isinstance Iterable (#<I>) Resolves #<I> | py |
diff --git a/pytodoist/test/api.py b/pytodoist/test/api.py
index <HASH>..<HASH> 100644
--- a/pytodoist/test/api.py
+++ b/pytodoist/test/api.py
@@ -1,7 +1,6 @@
#!/usr/bin/env python
"""This module contains unit tests for the pytodoist.api module."""
-from __future__ import print_function
import sys
import unittest... | Removed print statements from two tests. | py |
diff --git a/rest_framework_json_api/metadata.py b/rest_framework_json_api/metadata.py
index <HASH>..<HASH> 100644
--- a/rest_framework_json_api/metadata.py
+++ b/rest_framework_json_api/metadata.py
@@ -42,11 +42,19 @@ class JSONAPIMetadata(SimpleMetadata):
serializers.Serializer: 'Serializer',
})
- ... | relation_type_lookup on <=<I> | py |
diff --git a/src/sagemaker/sklearn/estimator.py b/src/sagemaker/sklearn/estimator.py
index <HASH>..<HASH> 100644
--- a/src/sagemaker/sklearn/estimator.py
+++ b/src/sagemaker/sklearn/estimator.py
@@ -80,7 +80,7 @@ class SKLearn(Framework):
and values, but ``str()`` will be called to convert them before
... | documentation: Correct comment in SKLearn Estimator about default Python version (#<I>) | py |
diff --git a/hypercorn/base.py b/hypercorn/base.py
index <HASH>..<HASH> 100644
--- a/hypercorn/base.py
+++ b/hypercorn/base.py
@@ -1,10 +1,10 @@
import asyncio
-from email.utils import formatdate
from enum import auto, Enum
from socket import AF_INET, AF_INET6
from ssl import SSLObject, SSLSocket
from time import ... | Bugfix use the wsgiref datetime formatter This exists for servers to set the date header, and is hence correct and likely to remain so. | py |
diff --git a/examples/plot_fashion-mnist_example.py b/examples/plot_fashion-mnist_example.py
index <HASH>..<HASH> 100644
--- a/examples/plot_fashion-mnist_example.py
+++ b/examples/plot_fashion-mnist_example.py
@@ -41,7 +41,6 @@ pal = [
'#5e4fa2'
]
color_key = {str(d):c for d,c in enumerate(pal)}
-color_key = {str(... | dedupe line in Fashion mnist example | py |
diff --git a/pronto/synonym.py b/pronto/synonym.py
index <HASH>..<HASH> 100644
--- a/pronto/synonym.py
+++ b/pronto/synonym.py
@@ -13,7 +13,7 @@ if typing.TYPE_CHECKING:
from .ontology import Ontology
-_SCOPES = frozenset({"EXACT", "RELATED", "BROAD", "NARROW"})
+_SCOPES = frozenset({"EXACT", "RELATED", "BROAD... | Don't have a special case for `None` synonym scope | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -21,7 +21,7 @@ If you get errors, check the following things:
"""
setup(name='CleanerVersion',
- version='1.4.3',
+ version='1.4.4',
description='A versioning solution for relational data models using the ... | Bumped version number to <I>; M2M self-references have been added | py |
diff --git a/indra/util/statement_presentation.py b/indra/util/statement_presentation.py
index <HASH>..<HASH> 100644
--- a/indra/util/statement_presentation.py
+++ b/indra/util/statement_presentation.py
@@ -554,9 +554,13 @@ def group_and_sort_statements(stmt_list, sort_by='default', stmt_data=None,
# Return the ... | Refactor return for statements to be more like other output. | py |
diff --git a/yolk/cli.py b/yolk/cli.py
index <HASH>..<HASH> 100755
--- a/yolk/cli.py
+++ b/yolk/cli.py
@@ -499,7 +499,7 @@ class Yolk(object):
#Search for source, egg, and svn
self.print_download_uri(version, True)
self.print_download_uri(version, False)
- self.print_do... | Fix problem with -D svn | py |
diff --git a/satpy/writers/cf_writer.py b/satpy/writers/cf_writer.py
index <HASH>..<HASH> 100644
--- a/satpy/writers/cf_writer.py
+++ b/satpy/writers/cf_writer.py
@@ -149,7 +149,10 @@ def make_time_bounds(dataarray, start_times, end_times):
if start_time is not None)
end_time = min(end_time f... | Fix the cf_writer to accept single-valued time coordinate variable | py |
diff --git a/esper/world.py b/esper/world.py
index <HASH>..<HASH> 100644
--- a/esper/world.py
+++ b/esper/world.py
@@ -11,6 +11,10 @@ class World:
self._next_entity_id = 0
self._database = {}
+ def clear_database(self):
+ """Remove all entities and components from the world."""
+ se... | Add method to clear database (used by benchmark) | py |
diff --git a/satpy/readers/virr_l1b.py b/satpy/readers/virr_l1b.py
index <HASH>..<HASH> 100644
--- a/satpy/readers/virr_l1b.py
+++ b/satpy/readers/virr_l1b.py
@@ -53,7 +53,7 @@ LOG = logging.getLogger(__name__)
class VIRR_L1B(HDF5FileHandler):
"""VIRR_L1B reader."""
- def __init__(self, filename, filename_in... | Remove kwargs from init | py |
diff --git a/superset/db_engine_specs.py b/superset/db_engine_specs.py
index <HASH>..<HASH> 100644
--- a/superset/db_engine_specs.py
+++ b/superset/db_engine_specs.py
@@ -1426,6 +1426,10 @@ class ImpalaEngineSpec(BaseEngineSpec):
)
@classmethod
+ def epoch_to_dttm(cls):
+ return 'from_unixtime({co... | impala support for epoch timestamps (#<I>) | py |
diff --git a/src/cs50/__init__.py b/src/cs50/__init__.py
index <HASH>..<HASH> 100644
--- a/src/cs50/__init__.py
+++ b/src/cs50/__init__.py
@@ -1,10 +1,5 @@
import sys
-from os.path import abspath, join
-from site import getsitepackages, getusersitepackages
-from termcolor import cprint
-from traceback import extract... | removed unneeded packages from __init__.py | py |
diff --git a/tests/testcipher.py b/tests/testcipher.py
index <HASH>..<HASH> 100644
--- a/tests/testcipher.py
+++ b/tests/testcipher.py
@@ -85,8 +85,6 @@ class TestEncryptDecrypt(unittest.TestCase):
c=cipher.new("bf-ofb",encryptkey,iv=iv)
ciphertext=c.update(data)+c.finish()
decryptkey=encryptkey[0:5]+encryptke... | Remove writing of cipher.txt | py |
diff --git a/postmark_inbound/__init__.py b/postmark_inbound/__init__.py
index <HASH>..<HASH> 100644
--- a/postmark_inbound/__init__.py
+++ b/postmark_inbound/__init__.py
@@ -126,6 +126,8 @@ class Attachment(object):
raise Exception('Postmark Inbound Error: the file type %s is not allowed' % self.content_t... | add binary to write mode if it isn't present | py |
diff --git a/tools/profiling/microbenchmarks/bm_diff.py b/tools/profiling/microbenchmarks/bm_diff.py
index <HASH>..<HASH> 100755
--- a/tools/profiling/microbenchmarks/bm_diff.py
+++ b/tools/profiling/microbenchmarks/bm_diff.py
@@ -101,7 +101,7 @@ argp.add_argument('-t', '--track',
help='Which metrics... | Update bm_diff.py | py |
diff --git a/bcbio/distributed/multitasks.py b/bcbio/distributed/multitasks.py
index <HASH>..<HASH> 100644
--- a/bcbio/distributed/multitasks.py
+++ b/bcbio/distributed/multitasks.py
@@ -4,7 +4,7 @@ from bcbio import structural, utils, chipseq
from bcbio.bam import callable
from bcbio.ngsalign import alignprep, topha... | Update process_alignment resources to match ipython specifications | py |
diff --git a/aiortc/codecs/g711.py b/aiortc/codecs/g711.py
index <HASH>..<HASH> 100644
--- a/aiortc/codecs/g711.py
+++ b/aiortc/codecs/g711.py
@@ -51,16 +51,16 @@ class PcmEncoder:
class PcmaEncoder(PcmEncoder):
- _convert = audioop.lin2alaw
+ _convert = staticmethod(audioop.lin2alaw)
class PcmaDecoder(... | [codecs] wrap G<I> converters in staticmethod CPython seems to tolerate the lack of staticmethod, PyPy does not. | py |
diff --git a/scikits/umfpack/tests/test_interface.py b/scikits/umfpack/tests/test_interface.py
index <HASH>..<HASH> 100644
--- a/scikits/umfpack/tests/test_interface.py
+++ b/scikits/umfpack/tests/test_interface.py
@@ -67,10 +67,12 @@ class TestSolvers(object):
lu = um.splu(A)
- Pr = csc_matrix((4, ... | BUG: make test work on older scipy versions | py |
diff --git a/python/ray/services.py b/python/ray/services.py
index <HASH>..<HASH> 100644
--- a/python/ray/services.py
+++ b/python/ray/services.py
@@ -246,6 +246,14 @@ def get_node_ip_address(address="8.8.8.8:53"):
node_ip_address = s.getsockname()[0]
except Exception as e:
node_ip_address = "127... | The function get_node_ip_address while catch an exception and return … (#<I>) …'<I>', when we forbid the external network. Instead of we can get ip address from hostname. The function get_node_ip_address while catch an exception and return '<I>' when we forbid the external network. Instead of we can get ip addre... | py |
diff --git a/tests/test_.py b/tests/test_.py
index <HASH>..<HASH> 100755
--- a/tests/test_.py
+++ b/tests/test_.py
@@ -40,9 +40,11 @@ True
>>> test.testBAS('typecast1.bas')
typecast1.bas:5: Cannot convert value to string. Use STR() function
True
+>>> test.testBAS('typecast2.bas')
+typecast2.bas:10: Cannot convert st... | Test updated. Updated na_th_an typecast test. | py |
diff --git a/salt/transport/tcp.py b/salt/transport/tcp.py
index <HASH>..<HASH> 100644
--- a/salt/transport/tcp.py
+++ b/salt/transport/tcp.py
@@ -4,8 +4,6 @@ TCP transport classes
Wire protocol: "len(payload) msgpack({'head': SOMEHEADER, 'body': SOMEBODY})"
"""
-
-
import errno
import logging
import os | Drop Py2 and six on salt/transport/tcp.py | py |
diff --git a/tensor2tensor/layers/common_attention.py b/tensor2tensor/layers/common_attention.py
index <HASH>..<HASH> 100644
--- a/tensor2tensor/layers/common_attention.py
+++ b/tensor2tensor/layers/common_attention.py
@@ -299,7 +299,7 @@ def get_standardized_layers(hparams, dp=None):
def add_standard_attention_hp... | fix get_standardized_layers spelling (#<I>) | py |
diff --git a/inginious/agent/docker_agent.py b/inginious/agent/docker_agent.py
index <HASH>..<HASH> 100644
--- a/inginious/agent/docker_agent.py
+++ b/inginious/agent/docker_agent.py
@@ -575,7 +575,8 @@ class DockerAgent(object):
self._containers_ending[container_id] = (message, container_path, retval, fut... | Fix possible race condition in docker_agent | py |
diff --git a/moderngl/texture.py b/moderngl/texture.py
index <HASH>..<HASH> 100644
--- a/moderngl/texture.py
+++ b/moderngl/texture.py
@@ -310,6 +310,11 @@ class Texture:
'''
Read the pixel data as bytes into system memory.
+ The texture can also be attached to a :py:class:`Framebuffe... | Texture.read: Mention Framebuffer.read in docstring | py |
diff --git a/gtdoit/logbook.py b/gtdoit/logbook.py
index <HASH>..<HASH> 100644
--- a/gtdoit/logbook.py
+++ b/gtdoit/logbook.py
@@ -101,7 +101,7 @@ class IdGenerator:
return key
-class _LogBookRunner(object):
+class LogBookRunner(object):
""" Helper class for splitting the runnable part of Logbook into... | Changing name on class `_LogBookRunner` The new name is `LogBookRunner`. It fits better with the naming scheme of logbook as a whole. Possibly all non-public methods/classes should have initial underscore in the future. I'll sleep on that... | py |
diff --git a/tests/test_hdate.py b/tests/test_hdate.py
index <HASH>..<HASH> 100644
--- a/tests/test_hdate.py
+++ b/tests/test_hdate.py
@@ -3,7 +3,6 @@ import hdate
import hdate.hdate_julian as hj
import datetime
-import random
HEBREW_YEARS_INFO = {
@@ -183,9 +182,9 @@ class TestHDate(object):
rand... | Test all the different holidays for get_holyday_type | py |
diff --git a/{{cookiecutter.project_slug}}/config/settings/test.py b/{{cookiecutter.project_slug}}/config/settings/test.py
index <HASH>..<HASH> 100644
--- a/{{cookiecutter.project_slug}}/config/settings/test.py
+++ b/{{cookiecutter.project_slug}}/config/settings/test.py
@@ -48,10 +48,6 @@ TEMPLATES[0]["OPTIONS"]["loade... | Remove EMAIL_HOST & EMAIL_PORT with locmem backend These settings should not be required since Django never connects to an external component when sending email. Instead it's stored in memory. <URL> | py |
diff --git a/poloniex/poloniex.py b/poloniex/poloniex.py
index <HASH>..<HASH> 100644
--- a/poloniex/poloniex.py
+++ b/poloniex/poloniex.py
@@ -38,8 +38,11 @@ def _api_wrapper(fn):
self.semaphore.acquire()
resp = fn(self, command, **params).json(object_hook=_AutoCastDict)
+ # check for 'error'... | always include error message from poloniex in exception | py |
diff --git a/polyaxon/polypod/notebook.py b/polyaxon/polypod/notebook.py
index <HASH>..<HASH> 100644
--- a/polyaxon/polypod/notebook.py
+++ b/polyaxon/polypod/notebook.py
@@ -130,6 +130,7 @@ class NotebookSpawner(ProjectJobSpawner):
"--port={port} "
"--ip=0.0.0.0 "
"--allow-root "... | Update notebook spawner: set allow_origin to "*" fixes #<I> | py |
diff --git a/examples/iti_21/server.py b/examples/iti_21/server.py
index <HASH>..<HASH> 100644
--- a/examples/iti_21/server.py
+++ b/examples/iti_21/server.py
@@ -85,14 +85,16 @@ class PDQSupplier(AbstractHandler):
def reply(self):
print('Received a message')
- query_params = dict((self.FIELD_NAM... | Changed to send a response with results | py |
diff --git a/lastfm.py b/lastfm.py
index <HASH>..<HASH> 100644
--- a/lastfm.py
+++ b/lastfm.py
@@ -14,6 +14,7 @@ class Scrobbler(Module):
self.running = True
self.authenticated = False
self.queue = list()
+ self.osc_creds()
def osc_creds(self):
if (not hasattr(self, 'username') or
not hasattr(self, ... | lastfm: fix assumption about initialization order | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -54,7 +54,7 @@ install_requires = [
"django-classification-banner>=0.1.4",
"django-maploom==1.2.1",
"psycopg2==2.4.5",
- "django-tilebundler==0.1-alpha5"
+ "django-tilebundler==0.1-alph... | bumped up tilebundler version | py |
diff --git a/src/util/fileUtils.py b/src/util/fileUtils.py
index <HASH>..<HASH> 100644
--- a/src/util/fileUtils.py
+++ b/src/util/fileUtils.py
@@ -63,6 +63,7 @@ def openFD(fd):
"""
if type(fd).__name__ == "str" : return open(fd)
if type(fd).__name__ == "file" : return open(fd.name)
+ if type(fd).__name__ == "... | optomised memory usage for wig elements | py |
diff --git a/tests/test_cache.py b/tests/test_cache.py
index <HASH>..<HASH> 100644
--- a/tests/test_cache.py
+++ b/tests/test_cache.py
@@ -172,6 +172,18 @@ class CacheTest(PeruTest):
await self.cache.export_tree(
self.content_tree, export_dir, previous_tree=self.content_tree)
assert_conte... | add a failing test for restoring missing files from a subdir Reported by @Tweakbert at <URL> | py |
diff --git a/tests/test.py b/tests/test.py
index <HASH>..<HASH> 100644
--- a/tests/test.py
+++ b/tests/test.py
@@ -7,13 +7,16 @@ def test_sum():
eq_(2+2,4)
def test_get_html_200():
- import requests
from image_scraper.utils import get_html
page_html, url=get_html('http://ananth.co.in/test.html', False)
ac... | Added <I> test for get_html. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -7,7 +7,7 @@ deps = {
'eth': [
"cached-property>=1.5.1,<2",
"eth-bloom>=1.0.3,<2.0.0",
- "eth-keys>=0.2.1,<1.0.0",
+ "eth-keys>=0.2.1,<0.3.0",
"eth-typing>=2.0.0,<3.0.0",
... | eth-keys shouldn't be allowed to minor bump It's causing dependency conflicts with other libraries that are requiring eth-keys <<I> -- since semver allows breaking changes in minor releases in a v0 major release, it makes more sense to constrain at the minor version here. | py |
diff --git a/zipline/finance/risk.py b/zipline/finance/risk.py
index <HASH>..<HASH> 100644
--- a/zipline/finance/risk.py
+++ b/zipline/finance/risk.py
@@ -615,10 +615,10 @@ class RiskMetricsIterative(RiskMetricsBase):
def update(self, dt, algorithm_returns, benchmark_returns):
self.algorithm_returns_con... | MAINT: Revert slice into returns containers instead of using .valid() Backing out slice vs. valid(), because of an incompatiblity with starting a minutely emitted session mid-day, since the midday start date is not yet wired through SimulationParameters. | py |
diff --git a/utils/json2csv.py b/utils/json2csv.py
index <HASH>..<HASH> 100755
--- a/utils/json2csv.py
+++ b/utils/json2csv.py
@@ -52,7 +52,6 @@ def get_headings():
'user_listed_count',
'user_location',
'user_name',
- 'user_screen_name',
'user_statuses_count',
'user_time_zone',
... | remove duplicate user_screen_name The get_row() and get_heading functions had "user_screen_name" variable twice, which can cause problems when importing csv to pandas later. | py |
diff --git a/eve_docs/config.py b/eve_docs/config.py
index <HASH>..<HASH> 100644
--- a/eve_docs/config.py
+++ b/eve_docs/config.py
@@ -1,7 +1,7 @@
from flask import current_app as capp
from eve.utils import home_link
from .labels import LABELS
-
+import re
def get_cfg():
cfg = {}
@@ -67,12 +67,13 @@ def sche... | Add support for sub-resources | py |
diff --git a/astroid/brain/brain_six.py b/astroid/brain/brain_six.py
index <HASH>..<HASH> 100644
--- a/astroid/brain/brain_six.py
+++ b/astroid/brain/brain_six.py
@@ -51,7 +51,7 @@ from sys import intern
map = map
range = range
from importlib import reload
-reload_module = reload
+reload_module = lambda module: relo... | Transform read_module() into a lambda to prevent it being marked as a bound method | py |
diff --git a/irc/tests/test_client.py b/irc/tests/test_client.py
index <HASH>..<HASH> 100644
--- a/irc/tests/test_client.py
+++ b/irc/tests/test_client.py
@@ -55,15 +55,16 @@ class TestThrottler(object):
while time.time() < deadline:
limited_next(counter)
# ensure the counter was advanced about 30 times
- la... | Reset the counter in the test for matching technique | py |
diff --git a/cmd2/parsing.py b/cmd2/parsing.py
index <HASH>..<HASH> 100644
--- a/cmd2/parsing.py
+++ b/cmd2/parsing.py
@@ -57,21 +57,20 @@ class Statement(str):
:type output_to: str or None
"""
- def __new__(
- cls,
- obj: object,
- *,
- raw: str = None,
- comman... | Fixed issue with parsing.py on Python <I> and <I> Apparently versions of Python prior to <I> don't allow a comma after the last argument being passed to a method. | py |
diff --git a/sos/jupyter/sos_step.py b/sos/jupyter/sos_step.py
index <HASH>..<HASH> 100755
--- a/sos/jupyter/sos_step.py
+++ b/sos/jupyter/sos_step.py
@@ -59,7 +59,7 @@ class Interactive_Step_Executor(Step_Executor):
return host.retrieve_results(tasks)
# no pending
elif not en... | Fix jupyter notebook for recent change | py |
diff --git a/pyemma/coordinates/io/featurizer.py b/pyemma/coordinates/io/featurizer.py
index <HASH>..<HASH> 100644
--- a/pyemma/coordinates/io/featurizer.py
+++ b/pyemma/coordinates/io/featurizer.py
@@ -122,14 +122,14 @@ class BackboneTorsionFeature:
self.dim = len(self._phi_inds) + len(self._psi_inds)
... | [featurizer] fix describe in backbone torsions: show only first residue index/name. | py |
diff --git a/netmiko/base_connection.py b/netmiko/base_connection.py
index <HASH>..<HASH> 100644
--- a/netmiko/base_connection.py
+++ b/netmiko/base_connection.py
@@ -78,7 +78,7 @@ class BaseSSHConnection(object):
try:
self.remote_conn_pre.connect(hostname=self.ip, port=self.port,
... | Set allow_agent=False for the client connection Authentication on Cisco IOS fails when using the ssh agent. | py |
diff --git a/python-package/lightgbm/engine.py b/python-package/lightgbm/engine.py
index <HASH>..<HASH> 100644
--- a/python-package/lightgbm/engine.py
+++ b/python-package/lightgbm/engine.py
@@ -188,7 +188,7 @@ def train(params, train_set, num_boost_round=100,
train_data_name = valid_names[i]
... | [Python] Fix typo in engine.py (#<I>) Replace "Traninig" with "Training" | py |
diff --git a/epab/cli.py b/epab/cli.py
index <HASH>..<HASH> 100644
--- a/epab/cli.py
+++ b/epab/cli.py
@@ -18,7 +18,7 @@ import epab.utils
from epab import __version__
with open('epab.yml') as config_file:
- CONFIG = yaml.load(config_file)
+ CONFIG = yaml.safe_load(config_file)
def _install_pyinstaller(c... | fix: fix unsafe YAML loading | py |
diff --git a/pyqode/core/__init__.py b/pyqode/core/__init__.py
index <HASH>..<HASH> 100644
--- a/pyqode/core/__init__.py
+++ b/pyqode/core/__init__.py
@@ -78,7 +78,7 @@ def getRcDirectory():
"rc")
# import the core rc modules
-if os.environ["QT_API"] == "PyQt4":
+if os.environ["QT_API"] == "... | Fix issues on linux (due to previous commits on windows) | py |
diff --git a/asset/synth.py b/asset/synth.py
index <HASH>..<HASH> 100644
--- a/asset/synth.py
+++ b/asset/synth.py
@@ -29,15 +29,13 @@ excludes = ["setup.py", "nox*.py", "README.rst", "docs/conf.py", "docs/index.rst
for version in versions:
if version == "v1p1beta1":
config_path = "/google/cloud/asset/v1... | fix(asset): correct asset synthfile (#<I>) | py |
diff --git a/tests/calculators/hazard/event_based/core_test.py b/tests/calculators/hazard/event_based/core_test.py
index <HASH>..<HASH> 100644
--- a/tests/calculators/hazard/event_based/core_test.py
+++ b/tests/calculators/hazard/event_based/core_test.py
@@ -253,7 +253,6 @@ class EventBasedHazardCalculatorTestCase(unit... | tests/calcs/hazard/event_based/core_test: Removed an assertion referencing the `n_sources` variable, which has been deleted. Former-commit-id: bc7e<I>d<I>ca<I>acc<I>c8bd<I>ad<I>c4c1 | py |
diff --git a/atomicpress/models.py b/atomicpress/models.py
index <HASH>..<HASH> 100644
--- a/atomicpress/models.py
+++ b/atomicpress/models.py
@@ -1,7 +1,7 @@
# -*- coding: utf-8 -*-
import datetime
-from app import db
+from .app import db
from sqlalchemy.orm import relationship | Fixed python3 path issue | py |
diff --git a/spatialist/vector.py b/spatialist/vector.py
index <HASH>..<HASH> 100644
--- a/spatialist/vector.py
+++ b/spatialist/vector.py
@@ -1,7 +1,7 @@
# -*- coding: utf-8 -*-
################################################################
# OGR wrapper for convenient vector data handling and processing
-# John ... | [vector] updated year in file description | py |
diff --git a/bf/styles.py b/bf/styles.py
index <HASH>..<HASH> 100644
--- a/bf/styles.py
+++ b/bf/styles.py
@@ -70,12 +70,6 @@ class Styles(Dict):
indent is how much to indent indented lines (such as inside braces).
"""
from unum import Unum
- def render_dict(d):
- return ('{... | simplified Styles.render() by removing the nested method and simply doing its work of recursion inline. | py |
diff --git a/pycbc/ahope/datafind_utils.py b/pycbc/ahope/datafind_utils.py
index <HASH>..<HASH> 100644
--- a/pycbc/ahope/datafind_utils.py
+++ b/pycbc/ahope/datafind_utils.py
@@ -483,16 +483,11 @@ def setup_datafind_runtime_frames_single_call_perifo(cp, scienceSegs,
# Now need to convert each frame file into an ... | Get the ifo of the frames correctly, not from a hack | py |
diff --git a/src/accounts/search_indexes.py b/src/accounts/search_indexes.py
index <HASH>..<HASH> 100644
--- a/src/accounts/search_indexes.py
+++ b/src/accounts/search_indexes.py
@@ -47,16 +47,11 @@ class UserIndex(indexes.SearchIndex, indexes.Indexable):
def prepare(self, obj):
prepared_data = super(User... | Removing a few variables on accounts search_indexes | py |
diff --git a/src/pythonfinder/models/windows.py b/src/pythonfinder/models/windows.py
index <HASH>..<HASH> 100644
--- a/src/pythonfinder/models/windows.py
+++ b/src/pythonfinder/models/windows.py
@@ -34,7 +34,10 @@ class WindowsFinder(BaseFinder):
path = Path(version_object.info.install_path.__getattr__('')... | Use fallback paths for windows lookups | py |
diff --git a/nbtools/form.py b/nbtools/form.py
index <HASH>..<HASH> 100644
--- a/nbtools/form.py
+++ b/nbtools/form.py
@@ -396,7 +396,7 @@ class InteractiveForm(interactive):
elif param_type == 'number' and self.is_float(default_value):
return FloatFormInput(spec, value=default_value)
eli... | Render optional number parameters as text inputs so that the empty string isn't cast to 0 | py |
diff --git a/test/test_SimulatedLinkamT95.py b/test/test_SimulatedLinkamT95.py
index <HASH>..<HASH> 100644
--- a/test/test_SimulatedLinkamT95.py
+++ b/test/test_SimulatedLinkamT95.py
@@ -186,10 +186,23 @@ class TestSimulatedLinkamT95(unittest.TestCase):
self.assertEqual(status_bytes[0], '\x50') # Man... | Also test that heat command can be used to stop holding, even while cooling | py |
diff --git a/userprofile/backends/simple/__init__.py b/userprofile/backends/simple/__init__.py
index <HASH>..<HASH> 100644
--- a/userprofile/backends/simple/__init__.py
+++ b/userprofile/backends/simple/__init__.py
@@ -39,11 +39,18 @@ class SimpleBackend(SimpleBackend):
def user_registered(sender, user, request, *ar... | build field values form form instead of post | py |
diff --git a/pandas/io/tests/parser/dtypes.py b/pandas/io/tests/parser/dtypes.py
index <HASH>..<HASH> 100644
--- a/pandas/io/tests/parser/dtypes.py
+++ b/pandas/io/tests/parser/dtypes.py
@@ -241,6 +241,9 @@ one,two
result = self.read_csv(StringIO(data), header=0,
dtype='category... | TST: add test to confirm GH<I> (specify category dtype for empty) (#<I>) Issue #<I> was fixed by PR #<I>, adding one more specific test to confirm this | py |
diff --git a/tests/test_blockchain.py b/tests/test_blockchain.py
index <HASH>..<HASH> 100644
--- a/tests/test_blockchain.py
+++ b/tests/test_blockchain.py
@@ -1,8 +1,8 @@
-from provider_backend.blockchain.ocean_contracts import OceanContracts
+from provider_backend.blockchain.OceanContractsWrapper import OceanContracts... | #<I>: some restructuring and clean up (needed for last commit). | py |
diff --git a/src/python/test/test_dxclient.py b/src/python/test/test_dxclient.py
index <HASH>..<HASH> 100755
--- a/src/python/test/test_dxclient.py
+++ b/src/python/test/test_dxclient.py
@@ -217,7 +217,9 @@ class TestDXClient(DXTestCase):
run(u'dx rm -r mkdirtest')
def test_dxpy_session_isolation(self):... | Tweak test to be more robust | py |
diff --git a/eth/tools/fixtures/helpers.py b/eth/tools/fixtures/helpers.py
index <HASH>..<HASH> 100644
--- a/eth/tools/fixtures/helpers.py
+++ b/eth/tools/fixtures/helpers.py
@@ -154,7 +154,7 @@ def chain_vm_configuration(fixture: Dict[str, Any]) -> Iterable[Tuple[int, Type[
elif network == 'ByzantiumToConstantino... | tests: transition to correct VM (Petersburg, not Constantinople) in helper. | py |
diff --git a/pyqode/core/widgets/outline.py b/pyqode/core/widgets/outline.py
index <HASH>..<HASH> 100644
--- a/pyqode/core/widgets/outline.py
+++ b/pyqode/core/widgets/outline.py
@@ -23,6 +23,7 @@ class OutlineTreeWidget(QtWidgets.QTreeWidget):
"""
def __init__(self, parent=None):
super(OutlineTreeWi... | Fix bugs preventing the OpenCobolIDE test suite from succeeding | py |
diff --git a/test/test_request.py b/test/test_request.py
index <HASH>..<HASH> 100644
--- a/test/test_request.py
+++ b/test/test_request.py
@@ -55,6 +55,10 @@ class RequestTest(unittest.TestCase):
r = ice.Request({})
self.assertEqual(r.path, '/')
+ def test_empty_path(self):
+ r = ice.Reque... | Add test for empty PATH_INFO in environ There is a check in ice.Request that tests if the value for PATH_INFO key in environ dictionary is an empty string. If it is found to be an empty string, the value is set to '/'. This check has not been tested in the tests for this class. As a result, the ice module does not hav... | py |
diff --git a/tests/unit_tests/test_climate.py b/tests/unit_tests/test_climate.py
index <HASH>..<HASH> 100644
--- a/tests/unit_tests/test_climate.py
+++ b/tests/unit_tests/test_climate.py
@@ -231,9 +231,8 @@ async def test_set_preset_mode_invalid_modes(monkeypatch):
await _climate.async_update()
- preset_mod... | test: fix bad mode preset_test | py |
diff --git a/plexapi/server.py b/plexapi/server.py
index <HASH>..<HASH> 100644
--- a/plexapi/server.py
+++ b/plexapi/server.py
@@ -366,15 +366,9 @@ class PlexServer(PlexObject):
def optimizedItems(self):
""" Returns list of all :class:`~plexapi.media.Optimized` objects connected to server. """
- ... | use fetchItem and fetchItems instead of query | py |
diff --git a/jobstamps/jobstamp.py b/jobstamps/jobstamp.py
index <HASH>..<HASH> 100644
--- a/jobstamps/jobstamp.py
+++ b/jobstamps/jobstamp.py
@@ -101,7 +101,11 @@ class HashMethod(object):
def check_dependency(self, dependency_path):
"""Check if mtime of dependency_path is greater than stored mtime."""
... | Don't assume hashes have been stored | py |
diff --git a/bakery/tasks.py b/bakery/tasks.py
index <HASH>..<HASH> 100644
--- a/bakery/tasks.py
+++ b/bakery/tasks.py
@@ -56,7 +56,11 @@ def run(command, cwd = None, log = None):
raise ValueError
def prun(command, cwd, log=None):
- """ Wrapper for subprocess.Popen that capture output and return as resul... | Improving tasks.py comments (minor) | py |
diff --git a/slackclient/_channel.py b/slackclient/_channel.py
index <HASH>..<HASH> 100644
--- a/slackclient/_channel.py
+++ b/slackclient/_channel.py
@@ -6,7 +6,7 @@ class Channel(object):
self.members = members
def __eq__(self, compare_str):
- if self.name == compare_str or self.id == compare_s... | allow channels to be found with leading # | py |
diff --git a/horizon/setup.py b/horizon/setup.py
index <HASH>..<HASH> 100644
--- a/horizon/setup.py
+++ b/horizon/setup.py
@@ -41,7 +41,7 @@ setup(
+ findall('horizon/dashboards/nova/templates') \
+ findall('horizon/dashboards/syspanel/templates') \
... | Removes unmainted requirements from setup.py Horizon maintains a requirements list in tools/pip-requires. This patch removes the unmaintained and incomplete list from setup.py, to avoid misleading naive users. Change-Id: I1e<I>f3c0dca<I>c<I>ee<I>d<I>abac<I>a<I> | py |
diff --git a/installers/Windows/installer.py b/installers/Windows/installer.py
index <HASH>..<HASH> 100644
--- a/installers/Windows/installer.py
+++ b/installers/Windows/installer.py
@@ -99,7 +99,6 @@ packages=
ntsecuritycon
{packages}
files={package_dist_info} > $INSTDIR/pkgs
- black-20.8b1.dist-info > $... | Installer: Stop copying black dist-info when building Windows installers | py |
diff --git a/src/bidi/algorithm.py b/src/bidi/algorithm.py
index <HASH>..<HASH> 100644
--- a/src/bidi/algorithm.py
+++ b/src/bidi/algorithm.py
@@ -275,19 +275,22 @@ def resolve_neutral_types(sor, eor, extended_chars):
# used at level run boundaries.
+ #TODO seems buggy for now
dummy = [{'biditype':sor}... | Intermediate commit, before moving to class based implementation | py |
diff --git a/script/update-external-binaries.py b/script/update-external-binaries.py
index <HASH>..<HASH> 100755
--- a/script/update-external-binaries.py
+++ b/script/update-external-binaries.py
@@ -8,7 +8,7 @@ from lib.config import get_target_arch
from lib.util import safe_mkdir, rm_rf, extract_zip, tempdir, downloa... | Update external frameworks version Bump to [<I>](<URL>) which upgraded Squirrel.Mac. | py |
diff --git a/ibis/backends/pyspark/compiler.py b/ibis/backends/pyspark/compiler.py
index <HASH>..<HASH> 100644
--- a/ibis/backends/pyspark/compiler.py
+++ b/ibis/backends/pyspark/compiler.py
@@ -486,7 +486,11 @@ def compile_group_concat(t, expr, scope, timecontext, context=None, **kwargs):
sep = expr.op().sep.op()... | fix(pyspark): use empty check for collect_list in GroupConcat rule | py |
diff --git a/rash/cli.py b/rash/cli.py
index <HASH>..<HASH> 100644
--- a/rash/cli.py
+++ b/rash/cli.py
@@ -99,7 +99,7 @@ def version_add_arguments(parser):
pass
-def locate_run(output, target):
+def locate_run(output, target, no_newline):
"""
Print location of RASH related file.
"""
@@ -107,6 +1... | Make "rash locate" bash friendly | py |
diff --git a/infoblox_client/objects.py b/infoblox_client/objects.py
index <HASH>..<HASH> 100644
--- a/infoblox_client/objects.py
+++ b/infoblox_client/objects.py
@@ -281,8 +281,9 @@ class InfobloxObject(BaseObject):
fields = [field for field in self._fields
if field in self._updatea... | Changes as per linting | py |
diff --git a/slackminion/plugin/base.py b/slackminion/plugin/base.py
index <HASH>..<HASH> 100644
--- a/slackminion/plugin/base.py
+++ b/slackminion/plugin/base.py
@@ -57,11 +57,11 @@ class BasePlugin(object):
if channel[0] == '@':
self._bot.send_im(channel[1:], text)
elif chan... | add reply_broadcast to send_message calls | py |
diff --git a/ontrack-delivery/publish.py b/ontrack-delivery/publish.py
index <HASH>..<HASH> 100755
--- a/ontrack-delivery/publish.py
+++ b/ontrack-delivery/publish.py
@@ -2,6 +2,7 @@
import argparse
import os
+import re
import github
import ontrack
@@ -74,9 +75,11 @@ def github_publish(options):
def get_rele... | Release: Release name extraction from the branch | py |
diff --git a/geomdl/abstract.py b/geomdl/abstract.py
index <HASH>..<HASH> 100644
--- a/geomdl/abstract.py
+++ b/geomdl/abstract.py
@@ -887,6 +887,7 @@ class Curve(SplineGeometry):
max_k = self.knotvector[-1]
new_kv = [max_k - k for k in self.knotvector]
self._knot_vector[0] = list(reversed(ne... | Don't forget to reset the curve after reversing | py |
diff --git a/src/oidcservice/oauth2/service.py b/src/oidcservice/oauth2/service.py
index <HASH>..<HASH> 100644
--- a/src/oidcservice/oauth2/service.py
+++ b/src/oidcservice/oauth2/service.py
@@ -173,6 +173,10 @@ class RefreshAccessToken(Service):
_args = self.extend_request_args({}, oauth2.AccessTokenResponse,... | Refresh token likely in refresh access token response. | py |
diff --git a/uiautomator.py b/uiautomator.py
index <HASH>..<HASH> 100644
--- a/uiautomator.py
+++ b/uiautomator.py
@@ -197,6 +197,8 @@ class Adb(object):
"Adb not found in $ANDROID_HOME path: %s." % os.environ["ANDROID_HOME"])
else:
import distutils
+ ... | fix distutils.spawn import issue in some python distributions | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -63,8 +63,14 @@ setup(
classifiers=[
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
- "License :: OSI Approved :: Apache License 2.0",
+ "License :: OSI Approved :: A... | Fix PyPI classifiers (#<I>) * Add PyPI classifiers for supported python versions * Fix PyPI classifiers for Apache License | py |
diff --git a/plaid/version.py b/plaid/version.py
index <HASH>..<HASH> 100644
--- a/plaid/version.py
+++ b/plaid/version.py
@@ -1 +1 @@
-__version__ = '2.3.0'
+__version__ = '2.3.1' | plaid-python@<I> | py |
diff --git a/raiden/ui/cli.py b/raiden/ui/cli.py
index <HASH>..<HASH> 100644
--- a/raiden/ui/cli.py
+++ b/raiden/ui/cli.py
@@ -140,13 +140,13 @@ def options(func):
@options
@click.command()
-def app(address, # pylint: disable=too-many-arguments,too-many-locals
+def app(address,
keystore_path,
eth... | rpccordsdomain is in run but unconditionally given | py |
diff --git a/cassandra/io/libevreactor.py b/cassandra/io/libevreactor.py
index <HASH>..<HASH> 100644
--- a/cassandra/io/libevreactor.py
+++ b/cassandra/io/libevreactor.py
@@ -123,10 +123,8 @@ class LibevLoop(object):
conn.close()
if conn._write_watcher:
conn._write_watcher.sto... | Do not del libev IO wrappers while thread is still running fixes an issue where the runtime would occasionally segfault when exiting without cluster shutdown. This is because the IO object was deacllocated while the thread was running and might still enter the IO callback. | py |
diff --git a/bin/check_mutations.py b/bin/check_mutations.py
index <HASH>..<HASH> 100644
--- a/bin/check_mutations.py
+++ b/bin/check_mutations.py
@@ -61,7 +61,7 @@ def start_logging(log_file='', log_level='INFO'):
def parse_arguments():
- info = 'Extracts gene sequences from a genomic FASTA file'
+ info = '... | Corrected CLI description for check_mutations script | py |
diff --git a/pynailgun/test_ng.py b/pynailgun/test_ng.py
index <HASH>..<HASH> 100644
--- a/pynailgun/test_ng.py
+++ b/pynailgun/test_ng.py
@@ -130,5 +130,7 @@ class TestNailgunConnection(unittest.TestCase):
if __name__ == '__main__':
- for i in range(10):
- unittest.main(exit=False)
+ for i in range(5... | test_ng.py: running <I> tests in a row | py |
diff --git a/astrocats/catalog/catalog.py b/astrocats/catalog/catalog.py
index <HASH>..<HASH> 100644
--- a/astrocats/catalog/catalog.py
+++ b/astrocats/catalog/catalog.py
@@ -714,7 +714,7 @@ class Catalog:
# Write it all out!
# NOTE: this needs to use a `list` wrapper to allow modification of
... | MAINT: reverted for loop change | py |
diff --git a/src/Gelatin/compiler/SyntaxCompiler.py b/src/Gelatin/compiler/SyntaxCompiler.py
index <HASH>..<HASH> 100644
--- a/src/Gelatin/compiler/SyntaxCompiler.py
+++ b/src/Gelatin/compiler/SyntaxCompiler.py
@@ -97,9 +97,9 @@ class SyntaxCompiler(DispatchProcessor):
matcher.statements = self._suite(sublist[... | fix: last commit broke the 'when' statement. | py |
diff --git a/moto/route53/models.py b/moto/route53/models.py
index <HASH>..<HASH> 100644
--- a/moto/route53/models.py
+++ b/moto/route53/models.py
@@ -2,11 +2,20 @@ from __future__ import unicode_literals
from collections import defaultdict
+import string
+import random
import uuid
from jinja2 import Template
... | Updated R<I> ID's to match what AWS do now | py |
diff --git a/bokeh/__init__.py b/bokeh/__init__.py
index <HASH>..<HASH> 100644
--- a/bokeh/__init__.py
+++ b/bokeh/__init__.py
@@ -1,11 +1,14 @@
from __future__ import absolute_import, print_function
+import logging
import warnings
from . import utils
from . import sampledata
from ._version import get_versions
... | Add logging and catch IOError when you don't have the static files. | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.