diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/pywbem/cim_http.py b/pywbem/cim_http.py
index <HASH>..<HASH> 100644
--- a/pywbem/cim_http.py
+++ b/pywbem/cim_http.py
@@ -250,7 +250,7 @@ def get_default_ca_certs():
def wbem_request(url, data, creds, headers=[], debug=0, x509=None,
verify_callback=None, ca_certs=None,
... | One fix to cim_http.py to add pylint disable | py |
diff --git a/src/example.py b/src/example.py
index <HASH>..<HASH> 100644
--- a/src/example.py
+++ b/src/example.py
@@ -10,7 +10,12 @@ def main():
start_time = time.time()
unpdfer = UnPDFer()
- (pdftext,pdfhash,tokens,success) = unpdfer.unpdf(filename,SCRUB=True)
+ (pdftext,pdfhash,_tokens,success)... | added token usage to the example code block | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -65,7 +65,7 @@ class PyTest(TestCommand):
setup(
name="arctic",
- version="1.79.1",
+ version="1.79.2",
author="Man AHL Technology",
author_email="ManAHLTech@ahl.com",
description=("AHL Research Ve... | Update setup.py to next version | py |
diff --git a/salt/output/__init__.py b/salt/output/__init__.py
index <HASH>..<HASH> 100644
--- a/salt/output/__init__.py
+++ b/salt/output/__init__.py
@@ -8,12 +8,16 @@ for managing outputters.
import os
import sys
import errno
+import logging
+import traceback
# Import salt libs
import salt.loader
import salt.... | Don't fail outputters silently in debug | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -100,4 +100,7 @@ setup(
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
- 'Topic :: Software Development :: Widget Sets... | Setup.py: Add Python <I> as a supported language | py |
diff --git a/spyderlib/plugins/editor.py b/spyderlib/plugins/editor.py
index <HASH>..<HASH> 100644
--- a/spyderlib/plugins/editor.py
+++ b/spyderlib/plugins/editor.py
@@ -1439,7 +1439,7 @@ class Editor(SpyderPluginWidget):
editor = editorstack.clone_editor_from(finfo, set_current=False)
self.... | Editor: Fix again new slot signature because opening new files was not working correctly | py |
diff --git a/csirtg_mail/urls.py b/csirtg_mail/urls.py
index <HASH>..<HASH> 100644
--- a/csirtg_mail/urls.py
+++ b/csirtg_mail/urls.py
@@ -106,7 +106,7 @@ def _extract_urls_text(content, defanged_urls=False):
found = re.findall(RE_URL_PLAIN, content, re.MULTILINE)
if defanged_urls:
- found = re.finda... | Change to ensure that chosing defanged URLs also returns normal URLs as well | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -43,7 +43,7 @@ setup(
install_requires=["cffi"],
license="APL2",
packages=["nomenclature", "nomenclature.tests"],
- url="https://github.com/hybridcluster/nomenclautre/",
+ url="https://github.com/hybridclu... | Fix URL in setup.py. | py |
diff --git a/chess/__init__.py b/chess/__init__.py
index <HASH>..<HASH> 100644
--- a/chess/__init__.py
+++ b/chess/__init__.py
@@ -2829,7 +2829,7 @@ class Board(BaseBoard):
def push_san(self, san: str) -> Move:
"""
Parses a move in standard algebraic notation, makes the move and puts
- it ... | Fix push_san() docstring Fixed a typo where it says "on the the", clearly an overlook from 5 years ago. The correct wording is "onto the", talking about a move stack. As stated on GrammarBook.com: In general, use "onto" as one word to mean “on top of,” “to a position on,” “upon.” And since we push moves "on top of" th... | py |
diff --git a/uptick/ui.py b/uptick/ui.py
index <HASH>..<HASH> 100644
--- a/uptick/ui.py
+++ b/uptick/ui.py
@@ -16,10 +16,11 @@ log = logging.getLogger(__name__)
def print_version(ctx, param, value):
if not value or ctx.resilient_parsing:
return
- click.echo('{prog} {version}'.format(
- prog=pkg... | [version] show bitshares and graphenelib version aswell | py |
diff --git a/salt/config.py b/salt/config.py
index <HASH>..<HASH> 100644
--- a/salt/config.py
+++ b/salt/config.py
@@ -1722,6 +1722,8 @@ def get_id(root_dir=None, minion_id=False, cache=True):
with salt.utils.fopen('/etc/hosts') as hfl:
for line in hfl:
names = line.split()
+ ... | Added /etc/host check for empty lines | py |
diff --git a/integration_tests/blockstack_integration_tests/scenarios/name_pre_regup_sign_verify_profile.py b/integration_tests/blockstack_integration_tests/scenarios/name_pre_regup_sign_verify_profile.py
index <HASH>..<HASH> 100644
--- a/integration_tests/blockstack_integration_tests/scenarios/name_pre_regup_sign_veri... | pass gaia hub write endpoint | py |
diff --git a/bets/__init__.py b/bets/__init__.py
index <HASH>..<HASH> 100644
--- a/bets/__init__.py
+++ b/bets/__init__.py
@@ -167,6 +167,17 @@ class BetsApi(object):
data = {'description': description}
return self._create(url, data, expires_at, bets_until, min_stake)
+ def create_billable_hours(... | ticket:<I> Create billable hours | py |
diff --git a/tests/test_quickstart.py b/tests/test_quickstart.py
index <HASH>..<HASH> 100644
--- a/tests/test_quickstart.py
+++ b/tests/test_quickstart.py
@@ -16,6 +16,7 @@ from ballet.eng.misc import IdentityTransformer
from ballet.feature import Feature
from ballet.quickstart import generate_project, main
from bal... | Add sample pull request to e2e test | py |
diff --git a/lib/djtables/column.py b/lib/djtables/column.py
index <HASH>..<HASH> 100644
--- a/lib/djtables/column.py
+++ b/lib/djtables/column.py
@@ -112,6 +112,7 @@ class Column(object):
"""Return True if a CSS class is defined for this column."""
return self._css_class is not None
+ @property
... | make css_class a property, since it's just a getter. | py |
diff --git a/salt/utils/process.py b/salt/utils/process.py
index <HASH>..<HASH> 100644
--- a/salt/utils/process.py
+++ b/salt/utils/process.py
@@ -164,7 +164,7 @@ class ThreadPool(object):
if kwargs is None:
kwargs = {}
try:
- self._job_queue.put((func, args, kwargs), False)
+ ... | Mark the task as done as soon as you pull it. Ff there is an exception while running the func, that doesn't mean we should keep trying | py |
diff --git a/nutch/test_nutch.py b/nutch/test_nutch.py
index <HASH>..<HASH> 100644
--- a/nutch/test_nutch.py
+++ b/nutch/test_nutch.py
@@ -189,5 +189,4 @@ def test_crawl_client():
assert len(rounds) == 1
assert cc.currentJob is None
jobs = rounds[0]
- assert len(jobs) == 4
assert all([j.info()['s... | Remove len(jobs) test. I'm not quite sure how to do this one correctly right now. | py |
diff --git a/ipa/ipa_ec2.py b/ipa/ipa_ec2.py
index <HASH>..<HASH> 100644
--- a/ipa/ipa_ec2.py
+++ b/ipa/ipa_ec2.py
@@ -183,10 +183,15 @@ class EC2Provider(IpaProvider):
self.running_instance_id = instances[0].instance_id
def _set_image_id(self):
+ """If existing image used get image id from boto3... | Cleanup ec2 provider doc strings. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -21,7 +21,7 @@ setup(
keywords='identifier GS1 GLN GTIN SSCC GSIN ISBN ISMN ISSN BIC IBAN',
platforms='all',
classifiers=[
- "Development Status :: 4 - Beta",
+ "Development Status :: 5 - Productio... | Dropped Python <I>, added Python <I>, Python <I> and Python Imlementations CPython and PyPy. | py |
diff --git a/python/phonenumbers/__init__.py b/python/phonenumbers/__init__.py
index <HASH>..<HASH> 100644
--- a/python/phonenumbers/__init__.py
+++ b/python/phonenumbers/__init__.py
@@ -146,7 +146,7 @@ from .phonenumbermatcher import PhoneNumberMatch, PhoneNumberMatcher, Leniency
# Version number is taken from the ... | Prep for <I> release | py |
diff --git a/salt/config/__init__.py b/salt/config/__init__.py
index <HASH>..<HASH> 100644
--- a/salt/config/__init__.py
+++ b/salt/config/__init__.py
@@ -2730,12 +2730,12 @@ def is_profile_configured(opts, provider, profile_name, vm_=None):
# If cloning on Linode, size and image are not necessary.
# They a... | Default to True and False instead of None Ref PR #<I> | py |
diff --git a/nipap/nipap/xmlrpc.py b/nipap/nipap/xmlrpc.py
index <HASH>..<HASH> 100755
--- a/nipap/nipap/xmlrpc.py
+++ b/nipap/nipap/xmlrpc.py
@@ -553,7 +553,7 @@ class NipapXMLRPC:
"""
try:
- return self.nip.find_free_prefix(args.get('auth'), args.get('args'))
+ return self.ni... | Fix xmlrpc call to find_free_prefix VRF is sent as a separate positional argument to the backend function. This can't have ever worked... | py |
diff --git a/wikitextparser/spans_test.py b/wikitextparser/spans_test.py
index <HASH>..<HASH> 100644
--- a/wikitextparser/spans_test.py
+++ b/wikitextparser/spans_test.py
@@ -381,6 +381,9 @@ class Spans(TestCase):
b'<ref>[[L| [[S]] ]]</ref>'
))
)
+
+ @expectedFailure
+ def t... | Break the expected failiure test into two tests for better coverage | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -47,7 +47,7 @@ def load_requirements(*requirements_paths):
return list(requirements)
-VERSION = '1.4.6'
+VERSION = '2.0.0'
if sys.argv[-1] == 'tag':
print("Tagging the version on github:")
@@ -71,7 +71,6 @@ se... | Bump the version to <I> | py |
diff --git a/pychromecast/socket_client.py b/pychromecast/socket_client.py
index <HASH>..<HASH> 100644
--- a/pychromecast/socket_client.py
+++ b/pychromecast/socket_client.py
@@ -363,9 +363,17 @@ class SocketClient(threading.Thread):
reset.
"""
# check if connection is expired
- ... | Socket stability debugging 1. Split the logged errors for expired heartbeat and socket communication error for easier debugging. 2. Changed the error raised when reading from a broken socket from RuntimeError to socket.error so it would be caught by the thread’s run loop. | py |
diff --git a/panflute/tools.py b/panflute/tools.py
index <HASH>..<HASH> 100644
--- a/panflute/tools.py
+++ b/panflute/tools.py
@@ -13,7 +13,6 @@ import sys
import json
import yaml
import shlex
-import shutil
# shutil.which: new in version 3.3
try:
@@ -92,7 +91,7 @@ def run_pandoc(text='', args=None):
if arg... | tools.py: simplifies import which | py |
diff --git a/src/collectors/memory_cgroup/memory_cgroup.py b/src/collectors/memory_cgroup/memory_cgroup.py
index <HASH>..<HASH> 100644
--- a/src/collectors/memory_cgroup/memory_cgroup.py
+++ b/src/collectors/memory_cgroup/memory_cgroup.py
@@ -39,7 +39,7 @@ class MemoryCgroupCollector(diamond.collector.Collector):
... | set memoty_cgroup disable by default | py |
diff --git a/datascience/tables.py b/datascience/tables.py
index <HASH>..<HASH> 100644
--- a/datascience/tables.py
+++ b/datascience/tables.py
@@ -2283,7 +2283,7 @@ class Table(collections.abc.MutableMapping):
name = labels[i],
orientation = 'h',
marker_co... | change dtick to try and show all yaxis labels | py |
diff --git a/host/pybar/fei4_run_base.py b/host/pybar/fei4_run_base.py
index <HASH>..<HASH> 100644
--- a/host/pybar/fei4_run_base.py
+++ b/host/pybar/fei4_run_base.py
@@ -18,6 +18,7 @@ from pybar.fei4.register import FEI4Register
from pybar.fei4.register_utils import FEI4RegisterUtils
from pybar.daq.fifo_readout imp... | ENH: use exceptions from analysis | py |
diff --git a/lifetimes/estimation.py b/lifetimes/estimation.py
index <HASH>..<HASH> 100644
--- a/lifetimes/estimation.py
+++ b/lifetimes/estimation.py
@@ -96,6 +96,7 @@ class BetaGeoFitter(BaseFitter):
return np.inf
r, alpha, a, b = params
+ n = freq.shape[0]
A_1 = gammaln(r + ... | cool, penalizer term now scales with number of data point | py |
diff --git a/pipenv/core.py b/pipenv/core.py
index <HASH>..<HASH> 100644
--- a/pipenv/core.py
+++ b/pipenv/core.py
@@ -2326,7 +2326,7 @@ def do_check(
else:
python = system_which("python")
if ignore:
- ignored = "--ignore {0}".format("--ignore ".join(ignore))
+ ignored = "--ignore {0}".... | Fix passing multiple ignores to pipenv check Fix missing space in command line arguments to 'safety' when multiple CVEs are ignored. | py |
diff --git a/salt/states/user.py b/salt/states/user.py
index <HASH>..<HASH> 100644
--- a/salt/states/user.py
+++ b/salt/states/user.py
@@ -118,7 +118,7 @@ def _changes(name,
if _group_changes(lusr['groups'], wanted_groups, remove_groups):
change['groups'] = wanted_groups
if home:
- if lusr['ho... | only change/report new home when createhome is True | py |
diff --git a/com.vmplacement.simulation/iostress.py b/com.vmplacement.simulation/iostress.py
index <HASH>..<HASH> 100644
--- a/com.vmplacement.simulation/iostress.py
+++ b/com.vmplacement.simulation/iostress.py
@@ -28,7 +28,10 @@ def populateUtilList():
i = 0
while(True):
command = "/usr/bin/iostat -... | Update iostress.py | py |
diff --git a/mamba/cli.py b/mamba/cli.py
index <HASH>..<HASH> 100644
--- a/mamba/cli.py
+++ b/mamba/cli.py
@@ -21,8 +21,9 @@ def main():
for file_ in _collect_specs_from(arguments.specs):
with loader.load_from_file(file_) as module:
- runner.run(module.specs)
- specs.extend(module.... | Fix an error when trying to run specs from a module which doesn't contain any spec | py |
diff --git a/duniterpy/documents/transaction.py b/duniterpy/documents/transaction.py
index <HASH>..<HASH> 100644
--- a/duniterpy/documents/transaction.py
+++ b/duniterpy/documents/transaction.py
@@ -1,5 +1,5 @@
import re
-from typing import TypeVar, List, Type, Optional, Dict, Union
+from typing import TypeVar, List, ... | [feat] InputSource: add equality and hash methods | py |
diff --git a/arctic/tickstore/tickstore.py b/arctic/tickstore/tickstore.py
index <HASH>..<HASH> 100644
--- a/arctic/tickstore/tickstore.py
+++ b/arctic/tickstore/tickstore.py
@@ -126,12 +126,8 @@ class TickStore(object):
date_range = to_pandas_closed_closed(date_range)
if date_range is not None:
... | MDP-<I> to_pandas_closed_closed now does an implicit to_dt | py |
diff --git a/telethon/client/messageparse.py b/telethon/client/messageparse.py
index <HASH>..<HASH> 100644
--- a/telethon/client/messageparse.py
+++ b/telethon/client/messageparse.py
@@ -135,7 +135,11 @@ class MessageParseMethods:
# Pinning a message with `updatePinnedMessage` seems to
... | Fix another crash for return value when sending albums | py |
diff --git a/tinytag/tinytag.py b/tinytag/tinytag.py
index <HASH>..<HASH> 100644
--- a/tinytag/tinytag.py
+++ b/tinytag/tinytag.py
@@ -135,6 +135,7 @@ class TinyTag(object):
b'^fLaC': Flac,
b'^\x30\x26\xB2\x75\x8E\x66\xCF\x11\xA6\xD9\x00\xAA\x00\x62\xCE\x6C': Wma,
b'....ftypM4A': ... | added magic bytes file signature for MP4 | py |
diff --git a/salt/client/ssh/__init__.py b/salt/client/ssh/__init__.py
index <HASH>..<HASH> 100644
--- a/salt/client/ssh/__init__.py
+++ b/salt/client/ssh/__init__.py
@@ -20,6 +20,7 @@ import yaml
import uuid
import tempfile
import binascii
+import sys
# Import salt libs
import salt.client.ssh.shell
@@ -526,6 +5... | Fixing return code to be "1" instead of 0 when the return code of a run is something other than 0 | py |
diff --git a/cumulusci/cli/cci.py b/cumulusci/cli/cci.py
index <HASH>..<HASH> 100644
--- a/cumulusci/cli/cci.py
+++ b/cumulusci/cli/cci.py
@@ -896,7 +896,7 @@ class ConnectServiceCommand(click.MultiCommand):
runtime.keychain.set_default_service(
service_type, service_name, project=... | use project_config.project__name instead | py |
diff --git a/examples/logical_interconnects.py b/examples/logical_interconnects.py
index <HASH>..<HASH> 100644
--- a/examples/logical_interconnects.py
+++ b/examples/logical_interconnects.py
@@ -35,13 +35,13 @@ config = {
}
# To run this example, a logical interconnect name is required
-logical_interconnect_name = ... | Removing unwanted files - from previous pR | py |
diff --git a/anyvcs/git.py b/anyvcs/git.py
index <HASH>..<HASH> 100644
--- a/anyvcs/git.py
+++ b/anyvcs/git.py
@@ -223,9 +223,6 @@ class GitRepo(VCSRepo):
def log(self, revrange=None, limit=None, firstparent=False, merges=None,
path=None, follow=False):
- if self.empty():
- return []
-
cmd ... | only check for empty repo when necessary in log() | py |
diff --git a/crawl/index.py b/crawl/index.py
index <HASH>..<HASH> 100755
--- a/crawl/index.py
+++ b/crawl/index.py
@@ -26,7 +26,7 @@ class Index:
entries = []
if os.path.exists(path) and os.path.isdir(path):
- entries = os.listdir(path)
+ entries = sorted(os.listdir(path))
self.entries_cac... | Make sure entries are sorted in alphabetical order | py |
diff --git a/Lib/fontParts/test/test_component.py b/Lib/fontParts/test/test_component.py
index <HASH>..<HASH> 100644
--- a/Lib/fontParts/test/test_component.py
+++ b/Lib/fontParts/test/test_component.py
@@ -486,6 +486,7 @@ class TestComponent(unittest.TestCase):
from .legacyPointPen import LegacyPointPen
... | Putting back in getting of identifier | py |
diff --git a/sos/plugins/ipa.py b/sos/plugins/ipa.py
index <HASH>..<HASH> 100644
--- a/sos/plugins/ipa.py
+++ b/sos/plugins/ipa.py
@@ -91,7 +91,10 @@ class Ipa(Plugin, RedHatPlugin):
self.add_copy_spec([
"/var/log/ipaserver-install.log",
- "/var/log/ipareplica-install.log"... | [ipa] add missing server install logs Few install logs have been missing in report. Closes: #<I> | py |
diff --git a/assets/scripts/build_gallery.py b/assets/scripts/build_gallery.py
index <HASH>..<HASH> 100644
--- a/assets/scripts/build_gallery.py
+++ b/assets/scripts/build_gallery.py
@@ -190,6 +190,9 @@ def build_gallery(
if only_these_expectations:
if expectation not in only_these_expectations:
... | Comment out kl_divergence for build_gallery (#<I>) * Comment out kl_divergence for build_gallery | py |
diff --git a/django_ajax/__init__.py b/django_ajax/__init__.py
index <HASH>..<HASH> 100644
--- a/django_ajax/__init__.py
+++ b/django_ajax/__init__.py
@@ -7,7 +7,7 @@ import datetime
import os
import subprocess
-VERSION = (2, 2, 6, 'final', 0)
+VERSION = (2, 2, 7, 'final', 0)
def get_version(version=None): | Updated django-ajax version to <I> | py |
diff --git a/docs/source/conf.py b/docs/source/conf.py
index <HASH>..<HASH> 100644
--- a/docs/source/conf.py
+++ b/docs/source/conf.py
@@ -71,6 +71,7 @@ language = None
exclude_patterns = []
# The name of the Pygments (syntax highlighting) style to use.
+# Commented out, as flask_small theme already sets this confi... | Updated sphinx config file to use 'flask_small' theme, and added a GitHub 'Fork Me' ribbon | py |
diff --git a/source/rafcon/mvc/statemachine_helper.py b/source/rafcon/mvc/statemachine_helper.py
index <HASH>..<HASH> 100644
--- a/source/rafcon/mvc/statemachine_helper.py
+++ b/source/rafcon/mvc/statemachine_helper.py
@@ -276,10 +276,13 @@ def create_state_model_for_state(new_state, state_element_models):
new... | fix statemachine_helper issue #2 of multiple TransitionModel for one Transition in one ContainerStateModel -> issue report assume the source of failure in the history module | py |
diff --git a/pandas/plotting/_core.py b/pandas/plotting/_core.py
index <HASH>..<HASH> 100644
--- a/pandas/plotting/_core.py
+++ b/pandas/plotting/_core.py
@@ -374,7 +374,6 @@ as ``layout`` is returned:
<class 'numpy.ndarray'>
"""
-
_backend_doc = """\
backend : str, default None
Backend to use instead of... | DOC: Fixed DataFrame.plot docs (#<I>) | py |
diff --git a/local_settings/loader.py b/local_settings/loader.py
index <HASH>..<HASH> 100644
--- a/local_settings/loader.py
+++ b/local_settings/loader.py
@@ -24,7 +24,7 @@ class Loader(Base):
parser = self._make_parser()
with open(self.file_name) as fp:
parser.read_file(fp)
- exte... | Change where `extends` is removed from loaded settings Popping `extends` from the ConfigParser section can cause a KeyError in some circumstances. Refs 0f<I>b0ff<I>b<I>f3e7f<I>c<I>f<I> | py |
diff --git a/spyderlib/utils/dochelpers.py b/spyderlib/utils/dochelpers.py
index <HASH>..<HASH> 100644
--- a/spyderlib/utils/dochelpers.py
+++ b/spyderlib/utils/dochelpers.py
@@ -109,7 +109,7 @@ def getdoc(obj):
title_and_argspec = text['title'] + text['argspec']
if first_line == titl... | Object Inspector: Strip whitespace from beginning of truncated doc string. Minor update to revision e<I>b<I> that strips out leading white space to improve the formatting of documentation in plain text mode. Update Issue <I> Status: Fixed | py |
diff --git a/samp-server-cli.py b/samp-server-cli.py
index <HASH>..<HASH> 100755
--- a/samp-server-cli.py
+++ b/samp-server-cli.py
@@ -50,7 +50,7 @@ def get_arguments(args):
parser.add_argument('-logqueries', action='store_const', const=1, default=0, help='toggle logging of queries sent by players')
parser.add_ar... | Set default maxplayers to <I> | py |
diff --git a/salt/states/file.py b/salt/states/file.py
index <HASH>..<HASH> 100644
--- a/salt/states/file.py
+++ b/salt/states/file.py
@@ -1240,7 +1240,7 @@ def managed(name,
if contents_newline:
# Make sure file ends in newline
- if not contents.endswith('\n'):
+ if contents and not conte... | Check to see if contents has been specified | py |
diff --git a/tests/integration/wheel/test_client.py b/tests/integration/wheel/test_client.py
index <HASH>..<HASH> 100644
--- a/tests/integration/wheel/test_client.py
+++ b/tests/integration/wheel/test_client.py
@@ -74,7 +74,7 @@ class WheelModuleTest(TestCase, AdaptedConfigurationTestCaseMixin):
# Remove this skip... | Also skip this test for now on macOS | py |
diff --git a/PyFunceble/config/loader.py b/PyFunceble/config/loader.py
index <HASH>..<HASH> 100644
--- a/PyFunceble/config/loader.py
+++ b/PyFunceble/config/loader.py
@@ -398,7 +398,8 @@ class ConfigLoader:
PyFunceble.storage.HTTP_CODES = Box(
config["http_codes"],
)
- PyFunceble.s... | Fix issue with the integration of the collection. This patch fixes #<I>. Indeed, while deploying the source code related to the collection, the integration into existing infrastructure wasn't smooth. This patch fixes it by loading the collection later in the loading process. Contributors: * @ZeroDot1 * @Dandelio... | py |
diff --git a/cli/libreant_db.py b/cli/libreant_db.py
index <HASH>..<HASH> 100644
--- a/cli/libreant_db.py
+++ b/cli/libreant_db.py
@@ -181,14 +181,8 @@ def attach_list(filepaths, names, notes):
for fname, name, note in zip(filepaths, names, notes):
assert os.path.exists(fname)
mime = mimetypes.gu... | if mimetype can't be guessed, go on | py |
diff --git a/gpiocrust/raspberry_pi.py b/gpiocrust/raspberry_pi.py
index <HASH>..<HASH> 100644
--- a/gpiocrust/raspberry_pi.py
+++ b/gpiocrust/raspberry_pi.py
@@ -86,10 +86,10 @@ class InputPin(object):
def __init__(self, pin, value=0, callback=None, edge=edges.BOTH,
bouncetime=0):
self.... | Fix error in wait_for_edge | py |
diff --git a/vyper/parser/pre_parser.py b/vyper/parser/pre_parser.py
index <HASH>..<HASH> 100644
--- a/vyper/parser/pre_parser.py
+++ b/vyper/parser/pre_parser.py
@@ -90,10 +90,14 @@ def pre_parse(code):
token.start,
)
+ # Make note of contract or struct names along wi... | Add some helpful comments in pre_parse function | py |
diff --git a/lucid/optvis/style.py b/lucid/optvis/style.py
index <HASH>..<HASH> 100644
--- a/lucid/optvis/style.py
+++ b/lucid/optvis/style.py
@@ -50,10 +50,16 @@ class StyleLoss(object):
"""
self.input_grams = [style_func(s) for s in style_layers]
self.ema = None
+
if ema_decay is not None:
+ ... | Clarify use of moving averages in StyleLoss | py |
diff --git a/tests/mock_tests/test_sqlparsing.py b/tests/mock_tests/test_sqlparsing.py
index <HASH>..<HASH> 100644
--- a/tests/mock_tests/test_sqlparsing.py
+++ b/tests/mock_tests/test_sqlparsing.py
@@ -232,6 +232,7 @@ class VoidQuery(MockTest):
class TestCanvasVoidQuery(VoidQuery):
+ @skip
def test_query(... | Support for Django <I> | py |
diff --git a/superset/sql_lab.py b/superset/sql_lab.py
index <HASH>..<HASH> 100644
--- a/superset/sql_lab.py
+++ b/superset/sql_lab.py
@@ -183,7 +183,6 @@ def get_sql_results( # pylint: disable=too-many-arguments
log_params=log_params,
)
except Exception as ex: # pylint: disable... | fix(sqllab): log exceptions caused by the user as debug and not error (#<I>) | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -16,7 +16,7 @@ tests_require = [
setup(
name='django-emailtemplates',
- version='1.1.5',
+ version='1.1.6',
packages=find_packages(),
include_package_data=True,
license='MIT License', | Update setupy.py - bumped version to <I> | py |
diff --git a/tensorflow_datasets/image/__init__.py b/tensorflow_datasets/image/__init__.py
index <HASH>..<HASH> 100644
--- a/tensorflow_datasets/image/__init__.py
+++ b/tensorflow_datasets/image/__init__.py
@@ -29,6 +29,7 @@ from tensorflow_datasets.image.colorectal_histology import ColorectalHistologyLa
from tensorfl... | Missing import in image/__init__.py to include DTD dataset. PiperOrigin-RevId: <I> | py |
diff --git a/tests/utils.py b/tests/utils.py
index <HASH>..<HASH> 100644
--- a/tests/utils.py
+++ b/tests/utils.py
@@ -552,7 +552,7 @@ def focus_graphical_editor_in_page(page):
def check_if_locale_exists(locale):
import subprocess
output = subprocess.check_output(["locale", "-a"])
- if locale in output:
+... | test: make locale comparison py2 and py3 compatible | py |
diff --git a/insteonplm/plm.py b/insteonplm/plm.py
index <HASH>..<HASH> 100644
--- a/insteonplm/plm.py
+++ b/insteonplm/plm.py
@@ -114,7 +114,8 @@ class PLM(asyncio.Protocol):
self.log.debug('No callback found in device %s for message code %02x with cmd1 %02x and cmd2 %02x and acknak %02x', msg... | Catch IndexError exception in data_received | py |
diff --git a/pybundle/pybundle.py b/pybundle/pybundle.py
index <HASH>..<HASH> 100644
--- a/pybundle/pybundle.py
+++ b/pybundle/pybundle.py
@@ -5,6 +5,12 @@ from inspect import stack
def frozen_bundle():
+ """Legacy wrapper for frozen"""
+ return frozen()
+
+
+def frozen():
+ """Determine if script is runn... | Refactored frozen_bundle to frozen | py |
diff --git a/bakery/utils.py b/bakery/utils.py
index <HASH>..<HASH> 100644
--- a/bakery/utils.py
+++ b/bakery/utils.py
@@ -110,6 +110,7 @@ def project_fontaine(project):
import json
_out_src = os.path.join(DATA_ROOT, '%(login)s/%(id)s.out/' % project)
os.chdir(_out_src)
+ # import ipdb; ipdb.set_t... | useful spot for ipdb | py |
diff --git a/tensorflow_datasets/image_classification/cifar10_corrupted.py b/tensorflow_datasets/image_classification/cifar10_corrupted.py
index <HASH>..<HASH> 100644
--- a/tensorflow_datasets/image_classification/cifar10_corrupted.py
+++ b/tensorflow_datasets/image_classification/cifar10_corrupted.py
@@ -124,7 +124,7 ... | Add release notes for cifar<I>_corrupted | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -2,15 +2,15 @@
from setuptools import setup, find_packages
setup(
- name = "python-gitlab",
- version = "0.1",
+ name = "i-python-gitlab",
+ version = "6.1",
packages = find_packages(),
install_requir... | modified to upload to pypi | py |
diff --git a/gwpy/io/gwf.py b/gwpy/io/gwf.py
index <HASH>..<HASH> 100644
--- a/gwpy/io/gwf.py
+++ b/gwpy/io/gwf.py
@@ -40,13 +40,6 @@ except ImportError:
else:
HASGLUE = True
-try:
- from lalframe import frread
-except ImportError:
- HASLALFRAME = False
-else:
- HASLALFRAME = True
-
from ..detector im... | io.gwf: cleaned up lalframe import protection | py |
diff --git a/aikif/core_data.py b/aikif/core_data.py
index <HASH>..<HASH> 100644
--- a/aikif/core_data.py
+++ b/aikif/core_data.py
@@ -134,7 +134,17 @@ class Event(CoreData):
return CoreData.__str__(self)
class Location(CoreData):
- pass
+ def __init__(self, name, data=None, parent=None):
+ ... | stub for Location class in Core Data | py |
diff --git a/honeybadger/contrib/fastapi.py b/honeybadger/contrib/fastapi.py
index <HASH>..<HASH> 100644
--- a/honeybadger/contrib/fastapi.py
+++ b/honeybadger/contrib/fastapi.py
@@ -1,6 +1,7 @@
import logging
from fastapi.routing import APIRoute
+from fastapi import exceptions
from starlette.requests import Reque... | fix: handle HTTP Exception in custom route. | py |
diff --git a/src/ai/backend/client/request.py b/src/ai/backend/client/request.py
index <HASH>..<HASH> 100644
--- a/src/ai/backend/client/request.py
+++ b/src/ai/backend/client/request.py
@@ -214,6 +214,8 @@ class Request:
assert self.method == 'GET'
self.date = datetime.now(tzutc())
self.head... | Fix connection to authentication-required websocket endpoints | py |
diff --git a/script/bootstrap.py b/script/bootstrap.py
index <HASH>..<HASH> 100755
--- a/script/bootstrap.py
+++ b/script/bootstrap.py
@@ -100,7 +100,11 @@ def create_chrome_version_h():
version = f.read()
with open(template_file, 'r') as f:
template = f.read()
- with open(target_file, 'wb+') as f:
+ if ... | Fix bootstrap.py on posix platform | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -1,12 +1,18 @@
# -*- coding: utf-8 -*-
+import io
+import os
+
from setuptools import find_packages, setup
from subsystem.subsystem import __description__, __program__, __version__
-def read(filename):
- with open(... | Use a proper read function in setup.py | py |
diff --git a/utils.py b/utils.py
index <HASH>..<HASH> 100644
--- a/utils.py
+++ b/utils.py
@@ -15,11 +15,23 @@ class DeployDockerBasesCommand(distutils.cmd.Command):
pass
def run(self):
+ import requests
+ import arca
from arca import DockerBackend
backend = DockerBacke... | Only pushing docker base images to registry when version changes | py |
diff --git a/imagemounter/disk.py b/imagemounter/disk.py
index <HASH>..<HASH> 100644
--- a/imagemounter/disk.py
+++ b/imagemounter/disk.py
@@ -191,7 +191,7 @@ class Disk(object):
cmds.extend([['ewfmount', '-X', 'allow_other'], ['ewfmount']])
elif method == 'vmware-mount':
- ... | Add -r to vmware-mount for readonly mounts | py |
diff --git a/resolwe/flow/executors/startup_processing_container.py b/resolwe/flow/executors/startup_processing_container.py
index <HASH>..<HASH> 100644
--- a/resolwe/flow/executors/startup_processing_container.py
+++ b/resolwe/flow/executors/startup_processing_container.py
@@ -500,7 +500,7 @@ class ProcessingManager:
... | Check if file upload completed successfully Previous check was flawed: it checked if the upload failed by comparing the result code to b'0'. But upload process can fail in other ways, for instance returning b'' if socket closed unexpectedly. | py |
diff --git a/test/data/test_builtin_datasets.py b/test/data/test_builtin_datasets.py
index <HASH>..<HASH> 100644
--- a/test/data/test_builtin_datasets.py
+++ b/test/data/test_builtin_datasets.py
@@ -298,8 +298,6 @@ class TestDataset(TorchtextTestCase):
'alle', 'möglichen', 'Funkt... | Remove the step to clean the cache for test_iwslt (#<I>) | py |
diff --git a/elasticsearch_dsl/field.py b/elasticsearch_dsl/field.py
index <HASH>..<HASH> 100644
--- a/elasticsearch_dsl/field.py
+++ b/elasticsearch_dsl/field.py
@@ -84,11 +84,8 @@ class Field(DslBase):
return self._serialize(data)
def deserialize(self, data):
- if isinstance(data, tuple):
- ... | No need to change data in place Fixes #<I>, thanks, @noamkush for the report | py |
diff --git a/beetle/cli.py b/beetle/cli.py
index <HASH>..<HASH> 100644
--- a/beetle/cli.py
+++ b/beetle/cli.py
@@ -44,6 +44,14 @@ class Commander:
))
+class BeetleContext(object):
+ def __init__(self):
+ self.commander = None
+ self.writer = None
+ self.config = None
+ se... | Added simple beetle context class. And used it when registering plugins. | py |
diff --git a/wtf_tinymce/forms/fields.py b/wtf_tinymce/forms/fields.py
index <HASH>..<HASH> 100644
--- a/wtf_tinymce/forms/fields.py
+++ b/wtf_tinymce/forms/fields.py
@@ -33,7 +33,6 @@ class TinyMceField(TextAreaField):
default=None,
widget=None,
_form=None,
- _name=None,
_pre... | Fix compatibility issue with WTForms >= <I> | py |
diff --git a/analyzers/Splunk/splunk.py b/analyzers/Splunk/splunk.py
index <HASH>..<HASH> 100755
--- a/analyzers/Splunk/splunk.py
+++ b/analyzers/Splunk/splunk.py
@@ -161,7 +161,7 @@ class Splunk(Analyzer):
taxonomies = []
value = 0
namespace = "Splunk"
- taxonomyResults = {"level": "i... | Change level depending on the number of results | py |
diff --git a/tftpy/TftpStates.py b/tftpy/TftpStates.py
index <HASH>..<HASH> 100644
--- a/tftpy/TftpStates.py
+++ b/tftpy/TftpStates.py
@@ -593,6 +593,12 @@ class TftpStateServerRecvRRQ(TftpState):
log.debug("No such file %s but using dyn_file_func" % path)
self.context.fileobj = \
... | Allow dyn_file_func to trigger a FileNotFound error. | py |
diff --git a/Otherfiles/notebook_check.py b/Otherfiles/notebook_check.py
index <HASH>..<HASH> 100644
--- a/Otherfiles/notebook_check.py
+++ b/Otherfiles/notebook_check.py
@@ -23,10 +23,8 @@ if __name__ == "__main__":
for index, notebook in enumerate(NOTEBOOKS_LIST):
ep = ExecutePreprocessor(timeout=6000, ... | fix : minor edit in notebook_check script | py |
diff --git a/salt/config.py b/salt/config.py
index <HASH>..<HASH> 100644
--- a/salt/config.py
+++ b/salt/config.py
@@ -24,6 +24,7 @@ import salt.crypt
import salt.loader
import salt.utils
import salt.pillar
+from salt.exceptions import SaltClientError
log = logging.getLogger(__name__)
@@ -178,7 +179,10 @@ def m... | Make minion hold off for network connection | py |
diff --git a/fedmsg.d/ssl.py b/fedmsg.d/ssl.py
index <HASH>..<HASH> 100644
--- a/fedmsg.d/ssl.py
+++ b/fedmsg.d/ssl.py
@@ -30,7 +30,7 @@ config = dict(
ssldir="/etc/pki/fedmsg",
crl_location="https://fedoraproject.org/fedmsg/crl.pem",
- crl_cache="/tmp/crl.pem",
+ crl_cache="/var/run/fedmsg/crl.pem",
... | Don't suggest that users use /tmp in example config. | py |
diff --git a/tests/test_protect_call.py b/tests/test_protect_call.py
index <HASH>..<HASH> 100644
--- a/tests/test_protect_call.py
+++ b/tests/test_protect_call.py
@@ -116,18 +116,22 @@ class TestProtectCall(common.KeepKeyTest):
self.assertRaises(PinException, self._some_protected_call, False, True, False)
... | Skip PIN timeout tests on the emulator ualarm doesn't work correctly on macos. | py |
diff --git a/octodns/provider/ns1.py b/octodns/provider/ns1.py
index <HASH>..<HASH> 100644
--- a/octodns/provider/ns1.py
+++ b/octodns/provider/ns1.py
@@ -96,16 +96,17 @@ class Ns1Client(object):
# remove record's zone from cache
del self._zones_cache[zone]
- # write to (o... | evict NS1 record from cache before an operation | py |
diff --git a/indra/assemblers/__init__.py b/indra/assemblers/__init__.py
index <HASH>..<HASH> 100644
--- a/indra/assemblers/__init__.py
+++ b/indra/assemblers/__init__.py
@@ -30,3 +30,7 @@ try:
from indra.assemblers.cyjs_assembler import CyJSAssembler
except ImportError:
pass
+try:
+ from indra.assemblers... | Add KamiAssembler to import in assemblers/__init__ | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -24,5 +24,6 @@ setup(name='overrides',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
+ 'Programming Languag... | python <I> support | py |
diff --git a/tests/unit/utils/test_ssdp.py b/tests/unit/utils/test_ssdp.py
index <HASH>..<HASH> 100644
--- a/tests/unit/utils/test_ssdp.py
+++ b/tests/unit/utils/test_ssdp.py
@@ -306,3 +306,23 @@ class SSDPFactoryTestCase(TestCase):
assert factory._sendto.called
assert factory._sendto.call_arg... | Add unit test for configuration of the server starter class | py |
diff --git a/fedmsg_atomic_composer/config.py b/fedmsg_atomic_composer/config.py
index <HASH>..<HASH> 100644
--- a/fedmsg_atomic_composer/config.py
+++ b/fedmsg_atomic_composer/config.py
@@ -70,7 +70,7 @@ config = dict(
# Map and expand certain global variables to each release
map_to_release=('output_dir', ... | config: Map the ostree_summary to the release | py |
diff --git a/scripts/perf/scheduler_dag_execution_timing.py b/scripts/perf/scheduler_dag_execution_timing.py
index <HASH>..<HASH> 100755
--- a/scripts/perf/scheduler_dag_execution_timing.py
+++ b/scripts/perf/scheduler_dag_execution_timing.py
@@ -181,7 +181,7 @@ def main(num_runs, repeat, pre_create_dag_runs, dag_ids):... | Fix Environment Variable in perf/scheduler_dag_execution_timing.py (#<I>) | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -6,18 +6,15 @@ with open('pygerduty/version.py') as version_file:
exec(compile(version_file.read(), version_file.name, 'exec'))
kwargs = {
- "name": "pygerduty",
+ "name": "pygerduty-py3",
"version": str(__v... | Update setup.py for py3 fork | py |
diff --git a/github/tests/Persistence.py b/github/tests/Persistence.py
index <HASH>..<HASH> 100644
--- a/github/tests/Persistence.py
+++ b/github/tests/Persistence.py
@@ -43,7 +43,7 @@ class Persistence(Framework.TestCase):
def testLoad(self):
loadedRepo = self.g.load(self.dumpedRepo)
- self.asse... | Adapt to Python <I> | py |
diff --git a/cumulusci/robotframework/Salesforce.py b/cumulusci/robotframework/Salesforce.py
index <HASH>..<HASH> 100644
--- a/cumulusci/robotframework/Salesforce.py
+++ b/cumulusci/robotframework/Salesforce.py
@@ -1102,7 +1102,6 @@ class Salesforce(object):
)
if time.time() - start_ti... | Removed unnecessary screenshot screenshot will automatically be taked due to the decorator and exception | py |
diff --git a/colorlog/colorlog.py b/colorlog/colorlog.py
index <HASH>..<HASH> 100644
--- a/colorlog/colorlog.py
+++ b/colorlog/colorlog.py
@@ -7,6 +7,13 @@ import sys
from colorlog.escape_codes import escape_codes
+try:
+ import colorama
+except ImportError:
+ pass # colorama on windows is recommended but no... | Using colorama for Windows support | py |
diff --git a/steam/util/web.py b/steam/util/web.py
index <HASH>..<HASH> 100644
--- a/steam/util/web.py
+++ b/steam/util/web.py
@@ -21,4 +21,4 @@ def generate_session_id():
:returns: session id
:rtype: :class:`str`
"""
- return hexlify(sha1_hash(random_bytes(32)))[:32]
+ return hexlify(sha1_hash(ran... | fix generate_session_id() in py3 hexlify returns bytes apperantly ¯\_(ツ)_/¯ | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.