diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/ls/joyous/models/recurring_events.py b/ls/joyous/models/recurring_events.py
index <HASH>..<HASH> 100644
--- a/ls/joyous/models/recurring_events.py
+++ b/ls/joyous/models/recurring_events.py
@@ -1526,7 +1526,7 @@ class ClosedForHolidaysPage(CancellationBase, EventExceptionBase, Page,
# TODO: it... | Planning on decorator pattern for ThisEvent | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -33,6 +33,7 @@ setup(
url='https://github.com/tadashi-aikawa/jumeaux.git',
keywords='diff rest api response two one other',
packages=find_packages(exclude=['tests*']),
+ package_data={'jumeaux': ['sample/**/*... | :skull: Fix bug that `jumeaux init` doesn't working | py |
diff --git a/ags_publishing_tools/MapServicePublisher.py b/ags_publishing_tools/MapServicePublisher.py
index <HASH>..<HASH> 100644
--- a/ags_publishing_tools/MapServicePublisher.py
+++ b/ags_publishing_tools/MapServicePublisher.py
@@ -213,6 +213,7 @@ class MapServicePublisher:
... | Adds a call to the update_service method BPFG-<I> | py |
diff --git a/glue/ligolw/lsctables.py b/glue/ligolw/lsctables.py
index <HASH>..<HASH> 100644
--- a/glue/ligolw/lsctables.py
+++ b/glue/ligolw/lsctables.py
@@ -619,7 +619,7 @@ class SnglInspiralIDs_old(object):
def new(self, row):
self.n += 1
- x, slidenum, y = row.get_old_id_parts()
+ x, slidenum, y = row.get_... | typo in SnglInspiralIDs_old class. | py |
diff --git a/spyder/plugins/explorer/widgets/explorer.py b/spyder/plugins/explorer/widgets/explorer.py
index <HASH>..<HASH> 100644
--- a/spyder/plugins/explorer/widgets/explorer.py
+++ b/spyder/plugins/explorer/widgets/explorer.py
@@ -661,7 +661,7 @@ class DirView(QTreeView, SpyderWidgetMixin):
if len(asso... | Files: Fix clear for 'Open with' menu | py |
diff --git a/ipyvolume/pylab.py b/ipyvolume/pylab.py
index <HASH>..<HASH> 100644
--- a/ipyvolume/pylab.py
+++ b/ipyvolume/pylab.py
@@ -337,7 +337,7 @@ def plot(x, y, z, color=default_color, **kwargs):
"""
fig = gcf()
_grow_limits(x, y, z)
- scatter = ipv.Scatter(x=x, y=y, z=z, color=color, color_selec... | fix: plot: default color_selected set to None | py |
diff --git a/holoviews/plotting/bokeh/callbacks.py b/holoviews/plotting/bokeh/callbacks.py
index <HASH>..<HASH> 100644
--- a/holoviews/plotting/bokeh/callbacks.py
+++ b/holoviews/plotting/bokeh/callbacks.py
@@ -113,9 +113,14 @@ class MessageCallback(object):
stream._metadata = {h: {'id': hid, 'events': sel... | Handled exception on LinkedStream callbacks (#<I>) | py |
diff --git a/argcomplete/__init__.py b/argcomplete/__init__.py
index <HASH>..<HASH> 100644
--- a/argcomplete/__init__.py
+++ b/argcomplete/__init__.py
@@ -15,6 +15,11 @@ debug_stream = sys.stderr
def debug(*args):
if _DEBUG:
+ if USING_PYTHON2:
+ # debug_stream has to be binary mode in Python ... | Fix crash when writing unicode to debug_stream in Python 2 (#<I>) | py |
diff --git a/mailchimp3/helpers.py b/mailchimp3/helpers.py
index <HASH>..<HASH> 100644
--- a/mailchimp3/helpers.py
+++ b/mailchimp3/helpers.py
@@ -99,7 +99,7 @@ def check_url(url):
return
-def merge_two_dicts(x, y):
+def merge_results(x, y):
"""
Given two dicts, x and y, merge them into a new dict as... | renamed merge_two_dicts to merge_results, the former name is too general for the function now with its specific behavior | py |
diff --git a/porespy/filters/_ibip.py b/porespy/filters/_ibip.py
index <HASH>..<HASH> 100644
--- a/porespy/filters/_ibip.py
+++ b/porespy/filters/_ibip.py
@@ -12,7 +12,7 @@ from porespy import settings
tqdm = get_tqdm()
-def ibip(im, inlets=None, dt=None, inv=None, mode='morph', max_iters=10000):
+def ibip(im, inl... | inv and mode='morph' are removed from arguments [ci skip] | py |
diff --git a/openquake/engine/engine.py b/openquake/engine/engine.py
index <HASH>..<HASH> 100644
--- a/openquake/engine/engine.py
+++ b/openquake/engine/engine.py
@@ -62,7 +62,8 @@ def save_job_stats(job, disk_space=None):
hc = job.risk_calculation.hazard_calculation
else:
hc = job.hazard_calcula... | A small fix when the hazard calculation is not known | py |
diff --git a/pyoko/db/queryset.py b/pyoko/db/queryset.py
index <HASH>..<HASH> 100644
--- a/pyoko/db/queryset.py
+++ b/pyoko/db/queryset.py
@@ -281,7 +281,7 @@ class QuerySet(object):
"""
try:
return self.get(**kwargs), False
- except (ObjectDoesNotExist, IndexError):
+ excep... | ADD, Documentation is added for get_or_none and delete_if_exists methods. | py |
diff --git a/audiolazy/__init__.py b/audiolazy/__init__.py
index <HASH>..<HASH> 100644
--- a/audiolazy/__init__.py
+++ b/audiolazy/__init__.py
@@ -30,6 +30,7 @@ from .lazy_poly import *
from .lazy_filters import *
from .lazy_io import *
from .lazy_synth import *
+from .lazy_midi import *
# Metadata (see setup.py ... | lazy_midi was missing in __init__ | py |
diff --git a/allauth/account/views.py b/allauth/account/views.py
index <HASH>..<HASH> 100644
--- a/allauth/account/views.py
+++ b/allauth/account/views.py
@@ -28,9 +28,10 @@ from . import app_settings
from .adapter import get_adapter
-import django
-if django.VERSION >= (1, 7):
+try:
from django.contrib.auth ... | Instead of checking the django version, just use try-except ImportError. | py |
diff --git a/commitizen/cmd.py b/commitizen/cmd.py
index <HASH>..<HASH> 100644
--- a/commitizen/cmd.py
+++ b/commitizen/cmd.py
@@ -10,9 +10,12 @@ class Command(NamedTuple):
def run(cmd: str) -> Command:
- cmd.split()
process = subprocess.Popen(
- cmd.split(), stdout=subprocess.PIPE, stderr=subproces... | refactor(cmd): reimplement how cmd is run In the original design, command to long will not be run. I use the code how invoke runs sunbprocess. <URL> | py |
diff --git a/bidso/find.py b/bidso/find.py
index <HASH>..<HASH> 100644
--- a/bidso/find.py
+++ b/bidso/find.py
@@ -23,7 +23,7 @@ def find_root(filename, target='bids'):
path of the target directory
"""
lg.debug(f'Searching root in {filename}')
- if target == 'bids' and (filename / 'participants.ts... | use dataset_description.json as base for root because it should always be there | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -7,8 +7,19 @@ if 'sdist' in sys.argv:
os.system('./admin/makedoc')
def getLicense():
- f = open('COPYING', 'r')
- return f.read()
+ return """\
+Licensed under the Apache License, Version 2.0 (the "License");
... | [project @ setup.py: remove reference to COPYING, replace with Apache license boilerplate.] | py |
diff --git a/example/api_deploy.py b/example/api_deploy.py
index <HASH>..<HASH> 100644
--- a/example/api_deploy.py
+++ b/example/api_deploy.py
@@ -9,9 +9,9 @@ import json
import logging
from pyinfra.api import Inventory, Config, State
+from pyinfra.api.connect import connect_all
from pyinfra.api.operation import a... | Update API example for connectors changes. | py |
diff --git a/nodeconductor/structure/models.py b/nodeconductor/structure/models.py
index <HASH>..<HASH> 100644
--- a/nodeconductor/structure/models.py
+++ b/nodeconductor/structure/models.py
@@ -172,9 +172,9 @@ class ResourceQuotaUsage(AbstractResourceQuota):
backup_storage_size = 0
services = iaas_mo... | Make backup calculation more resilient (itacloud-<I>) | py |
diff --git a/asv/commands/publish.py b/asv/commands/publish.py
index <HASH>..<HASH> 100644
--- a/asv/commands/publish.py
+++ b/asv/commands/publish.py
@@ -103,14 +103,24 @@ class Publish(Command):
repo = get_repo(conf)
benchmarks = Benchmarks.load(conf)
+ def copy_ignore(src, names):
+ ... | publish: only copy vendor/*.{js,css}, and don't set +x on copied files | py |
diff --git a/src/rez/cli/_bez.py b/src/rez/cli/_bez.py
index <HASH>..<HASH> 100644
--- a/src/rez/cli/_bez.py
+++ b/src/rez/cli/_bez.py
@@ -64,7 +64,7 @@ def run():
else:
args = inspect.getargspec(buildfunc).args
- kwargs = dict((k, v) for k, v in kwargs.iteritems() if k in args)
+ kwargs = dict((k... | Fix error in bez with iteritems | py |
diff --git a/fastly/models.py b/fastly/models.py
index <HASH>..<HASH> 100644
--- a/fastly/models.py
+++ b/fastly/models.py
@@ -28,6 +28,9 @@ class Model(object):
return self.__class__.query(self.conn, self.COLLECTION_PATTERN, method, suffix, body, **self.attrs)
def save(self):
+ if self._original... | fix(models): Do not perform save if `attrs` is unchanged | py |
diff --git a/djangocms_helper/runner.py b/djangocms_helper/runner.py
index <HASH>..<HASH> 100644
--- a/djangocms_helper/runner.py
+++ b/djangocms_helper/runner.py
@@ -20,7 +20,7 @@ def run(app, argv=sys.argv):
# This is a hackish to get the caller file which is the file
# which contains the HELPER_SETTINGS
... | This does not allow to add two extra-settings in argv making server crash when running it. | py |
diff --git a/tests/integration/netapi/rest_tornado/test_app.py b/tests/integration/netapi/rest_tornado/test_app.py
index <HASH>..<HASH> 100644
--- a/tests/integration/netapi/rest_tornado/test_app.py
+++ b/tests/integration/netapi/rest_tornado/test_app.py
@@ -553,8 +553,12 @@ class TestWebhookSaltAPIHandler(SaltnadoTest... | Account for a timeout when resolving the future | py |
diff --git a/pytorch_pretrained_bert/modeling.py b/pytorch_pretrained_bert/modeling.py
index <HASH>..<HASH> 100644
--- a/pytorch_pretrained_bert/modeling.py
+++ b/pytorch_pretrained_bert/modeling.py
@@ -1025,7 +1025,14 @@ class BertForTokenClassification(PreTrainedBertModel):
if labels is not None:
... | Only keep the active part mof the loss for token classification | py |
diff --git a/openquake/calculators/ebrisk.py b/openquake/calculators/ebrisk.py
index <HASH>..<HASH> 100644
--- a/openquake/calculators/ebrisk.py
+++ b/openquake/calculators/ebrisk.py
@@ -195,6 +195,7 @@ class EbriskCalculator(event_based.EventBasedCalculator):
self.datastore.create_dset('gmf_info', gmf_info_dt... | Added some flush in ebrisk | py |
diff --git a/ccmlib/node.py b/ccmlib/node.py
index <HASH>..<HASH> 100644
--- a/ccmlib/node.py
+++ b/ccmlib/node.py
@@ -515,6 +515,10 @@ class Node():
if not gently:
args.append('-f')
proc = subprocess.Popen(args, cwd= self.get_bin_dir(), shell=True, stdout=subprocess.PIPE)
+
+... | Delete pidfile when node is stopped on windows When a node is started, it checks for the pidfile to be written by cassandra.ps1. If the pidfile from an old C* process remains, it is possible for the old pid to be read which prevents the new node from stopping, as it no longer knows its correct pid | py |
diff --git a/contrib/aws/awsexecutor.py b/contrib/aws/awsexecutor.py
index <HASH>..<HASH> 100644
--- a/contrib/aws/awsexecutor.py
+++ b/contrib/aws/awsexecutor.py
@@ -515,9 +515,7 @@ def handleCloudResults(benchmark, output_handler, start_time, end_time):
raw_path = run.log_file[: -len(".log")]
... | Apply result file directory fix to awsexecutor.py The fix for the benchmarkclient executor looks also like it is the right thing to do for the aws executor, since this one seems to just have copied the code from there. | py |
diff --git a/graphql_social_auth/mixins.py b/graphql_social_auth/mixins.py
index <HASH>..<HASH> 100644
--- a/graphql_social_auth/mixins.py
+++ b/graphql_social_auth/mixins.py
@@ -1,14 +1,25 @@
import graphene
+class SocialAuthMixin(object):
+
+ @classmethod
+ def __init_subclass_with_meta__(cls, name=None, *... | SocialAuthMixin for abstract classes | py |
diff --git a/app/settings.py b/app/settings.py
index <HASH>..<HASH> 100644
--- a/app/settings.py
+++ b/app/settings.py
@@ -214,4 +214,8 @@ BOWER_INSTALLED_APPS = (
'https://github.com/Parisson/ui.git',
)
-CORS_ORIGIN_ALLOW_ALL = True
+CORS_ORIGIN_ALLOW_ALL = False
+CORS_ALLOW_CREDENTIALS = True
+CORS_ORIGIN_WHI... | try fixing CORS on localhost:<I> | py |
diff --git a/buku.py b/buku.py
index <HASH>..<HASH> 100755
--- a/buku.py
+++ b/buku.py
@@ -2568,6 +2568,7 @@ def get_firefox_profile_name(path):
try:
for name in os.listdir(path):
+ # can be in the format nnnnnn.default or nnnnnn.default-nnnnnn...
if '.default' in name and os.pat... | Add comment on default profile naming convention | py |
diff --git a/bids/layout/bids_validator.py b/bids/layout/bids_validator.py
index <HASH>..<HASH> 100644
--- a/bids/layout/bids_validator.py
+++ b/bids/layout/bids_validator.py
@@ -274,7 +274,8 @@ def validate_sequences(layout, config):
A BIDSLayout path of a data set.
config: string
- ... | update docstring to specify `runs` is a mandatory field in the config file | py |
diff --git a/mail_deduplicate/mailbox.py b/mail_deduplicate/mailbox.py
index <HASH>..<HASH> 100644
--- a/mail_deduplicate/mailbox.py
+++ b/mail_deduplicate/mailbox.py
@@ -27,7 +27,7 @@ from . import logger
from .colorize import choice_style
from .mail import DedupMail
-""" Patch and tweak Python's standard librabry... | fix minor spelling mistake in mailbox.py | py |
diff --git a/{{cookiecutter.repo_name}}/{{cookiecutter.repo_name}}/config/common.py b/{{cookiecutter.repo_name}}/{{cookiecutter.repo_name}}/config/common.py
index <HASH>..<HASH> 100644
--- a/{{cookiecutter.repo_name}}/{{cookiecutter.repo_name}}/config/common.py
+++ b/{{cookiecutter.repo_name}}/{{cookiecutter.repo_name}... | Added ATOMIC_REQUESTS=True to default DB setup Quoting Two Scoops of Django: > Use `ATOMIC_REQUESTS` as long as the performance overhead is bearable. That > means "forever" on most sites. | py |
diff --git a/salt/utils/http.py b/salt/utils/http.py
index <HASH>..<HASH> 100644
--- a/salt/utils/http.py
+++ b/salt/utils/http.py
@@ -287,7 +287,7 @@ def query(url,
if hasattr(ssl, 'SSLContext'):
# Python >= 2.7.9
context = ssl.SSLContext.load_cert... | Context is valid in Python <I> | py |
diff --git a/pysat/_instrument.py b/pysat/_instrument.py
index <HASH>..<HASH> 100644
--- a/pysat/_instrument.py
+++ b/pysat/_instrument.py
@@ -236,7 +236,7 @@ class Instrument(object):
self.directory_format = self.directory_format(tag, inst_id)
else:
# Value not provided by user o... | BUG: Correct params calls | py |
diff --git a/gns3server/utils/interfaces.py b/gns3server/utils/interfaces.py
index <HASH>..<HASH> 100644
--- a/gns3server/utils/interfaces.py
+++ b/gns3server/utils/interfaces.py
@@ -240,7 +240,9 @@ def interfaces():
# This interface have special behavior
for result in results:
result["special"] = Fa... | Interface starting with gns3 are not display by default in the cloud Fix <URL> | py |
diff --git a/datapackage/util.py b/datapackage/util.py
index <HASH>..<HASH> 100644
--- a/datapackage/util.py
+++ b/datapackage/util.py
@@ -22,6 +22,7 @@ class Specification(dict):
SPECIFICATION = {}
REQUIRED = ()
EXTENDABLE = False
+ SERIALIZE_EXCLUDES = ()
def __init__(self, *args, **kwargs):
... | as_dict and as_json methods to output datapackages, with option to filter fields from output. | py |
diff --git a/hairball/plugins/__init__.py b/hairball/plugins/__init__.py
index <HASH>..<HASH> 100644
--- a/hairball/plugins/__init__.py
+++ b/hairball/plugins/__init__.py
@@ -46,11 +46,12 @@ class PluginController(object):
def _process(self, scratch, thumbnail_path=None, **kwargs):
# We need to save the... | Only save the thumbnails if they haven't already been saved. | py |
diff --git a/asammdf/gui/widgets/tabular_base.py b/asammdf/gui/widgets/tabular_base.py
index <HASH>..<HASH> 100644
--- a/asammdf/gui/widgets/tabular_base.py
+++ b/asammdf/gui/widgets/tabular_base.py
@@ -1991,6 +1991,9 @@ class DataFrameViewer(QtWidgets.QWidget):
self.update_horizontal_scroll
)
+... | fix wrong column header width compared to the table widget | py |
diff --git a/LiSE/LiSE/engine.py b/LiSE/LiSE/engine.py
index <HASH>..<HASH> 100644
--- a/LiSE/LiSE/engine.py
+++ b/LiSE/LiSE/engine.py
@@ -39,10 +39,10 @@ class NextTurn(Signal):
with engine.advancing():
for res in iter(engine.advance, final_rule):
if res:
- bra... | Report the correct next_turn end time and clean up a little | py |
diff --git a/salt/states/mount.py b/salt/states/mount.py
index <HASH>..<HASH> 100644
--- a/salt/states/mount.py
+++ b/salt/states/mount.py
@@ -152,6 +152,8 @@ def mounted(name,
device_list = []
if real_name in active:
+ if 'superopts' not in active[real_name]:
+ active[real_name]['superopt... | fixed issue which causes mount.mounted to fail when superopts are not part of mount.active (extended=True), this fix will also fix potential problems with Solaris and FreeBSD | py |
diff --git a/tests/test_compat.py b/tests/test_compat.py
index <HASH>..<HASH> 100644
--- a/tests/test_compat.py
+++ b/tests/test_compat.py
@@ -9,11 +9,15 @@ from pulp.util import compat
if sys.version_info >= (3, 0):
def uchar():
- return 'ü'
+ def inner():
+ return 'ü'
+ return ... | Attempt to isolate unicode constant handling differences for py3k compatibility. | py |
diff --git a/sieve/extensions/builtin.py b/sieve/extensions/builtin.py
index <HASH>..<HASH> 100644
--- a/sieve/extensions/builtin.py
+++ b/sieve/extensions/builtin.py
@@ -23,6 +23,6 @@ import sieve.comparators.ascii_casemap
import sieve.comparators.octet
import sieve.handler
-sieve.handler.register('extension', 'fi... | handler registrations all require a value for the handler | py |
diff --git a/homely/_ui.py b/homely/_ui.py
index <HASH>..<HASH> 100644
--- a/homely/_ui.py
+++ b/homely/_ui.py
@@ -218,9 +218,12 @@ def run_update(infos, pullfirst, only=None, cancleanup=None):
setrepoinfo(None)
- if isfullupdate and not _NOTECOUNT.get('warn'):
- _write(SECTIONFILE, "<cle... | homely._ui: if automatic cleanup doesn't happen, tell the user why | py |
diff --git a/src/feat/test/test_agencies_journaler_postgres.py b/src/feat/test/test_agencies_journaler_postgres.py
index <HASH>..<HASH> 100644
--- a/src/feat/test/test_agencies_journaler_postgres.py
+++ b/src/feat/test/test_agencies_journaler_postgres.py
@@ -20,10 +20,10 @@ except ImportError:
pass
-DB_NAME = ... | The configuration of postgres database used in test in configurable with environment variables. | py |
diff --git a/master/buildbot/test/unit/test_steps_http.py b/master/buildbot/test/unit/test_steps_http.py
index <HASH>..<HASH> 100644
--- a/master/buildbot/test/unit/test_steps_http.py
+++ b/master/buildbot/test/unit/test_steps_http.py
@@ -99,15 +99,7 @@ class TestHTTPStep(steps.BuildStepMixin, unittest.TestCase):
... | Remove some lines that are periodically failing on Python 3. Sometimes the output message contains "HEAD, GET", and sometimes it contains "GET, HEAD". The errors status is always <I>, so it is safe to check for that on Python 2 or 3. | py |
diff --git a/tests/explainers/test_gradient.py b/tests/explainers/test_gradient.py
index <HASH>..<HASH> 100644
--- a/tests/explainers/test_gradient.py
+++ b/tests/explainers/test_gradient.py
@@ -84,7 +84,7 @@ def test_tf_keras_mnist_cnn():
sums = np.array([shap_values[i].sum() for i in range(len(shap_values))])
... | Relax convergence test for gradient exp in TF2 | py |
diff --git a/models.py b/models.py
index <HASH>..<HASH> 100644
--- a/models.py
+++ b/models.py
@@ -536,3 +536,31 @@ class CRPMixture(CollapsedMixture):
return out, templabels.z
+##########
+# temp #
+##########
+
+class DiagonalGaussianMixture(Mixture):
+ def resample_model(self):
+ from pyhsmm... | add DiagonalGaussianMixture | py |
diff --git a/lib/websearch_webinterface.py b/lib/websearch_webinterface.py
index <HASH>..<HASH> 100644
--- a/lib/websearch_webinterface.py
+++ b/lib/websearch_webinterface.py
@@ -1060,7 +1060,7 @@ class WebInterfaceRecordPages(WebInterfaceDirectory):
record_status = record_exists(argd['recid'])
merged... | WebSearch: merged records redirected with CFG_SITE_RECORD * When a merged record is detected, use CFG_SITE_RECORD to redirect to new record URL. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -28,7 +28,6 @@ except ImportError:
# Configure the required packages and scripts to install, depending on
# Python version and OS.
REQUIRED_PACKAGES = [
- 'rsa<=4.0; python_version < "3.5"',
'httplib2>=0.8',
'f... | Remove rsa restriction (#<I>) * DO NOT MERGE: Testing travis * Remove rsa restriction * Remove unwanted comment | py |
diff --git a/src/runez/logsetup.py b/src/runez/logsetup.py
index <HASH>..<HASH> 100644
--- a/src/runez/logsetup.py
+++ b/src/runez/logsetup.py
@@ -455,7 +455,11 @@ class ProgressSpinner(object):
self._write("\r")
self._has_progress_line = True
+ except ... | Try harder to ensure cursor shown after spinner ends | py |
diff --git a/aldryn_apphooks_config/utils.py b/aldryn_apphooks_config/utils.py
index <HASH>..<HASH> 100644
--- a/aldryn_apphooks_config/utils.py
+++ b/aldryn_apphooks_config/utils.py
@@ -1,6 +1,7 @@
# -*- coding: utf-8 -*-
from app_data import AppDataContainer, app_registry
from django.db.models import ForeignKey
+f... | Fixes apphooks config menus in i<I>n projects Without these changes, get_app_menu() called from a CMSToolbar menu only works when the current page's language matches that of the CMS user's langauge preference. | py |
diff --git a/packages/vaex-core/vaex/functions.py b/packages/vaex-core/vaex/functions.py
index <HASH>..<HASH> 100644
--- a/packages/vaex-core/vaex/functions.py
+++ b/packages/vaex-core/vaex/functions.py
@@ -107,6 +107,7 @@ minimum
maximum
clip
searchsorted
+isfinite
""".strip().split()]
for name, numpy_name in num... | Added isnan, isfinite (#<I>) * Added isfinite | py |
diff --git a/billy/utils.py b/billy/utils.py
index <HASH>..<HASH> 100644
--- a/billy/utils.py
+++ b/billy/utils.py
@@ -76,7 +76,7 @@ def term_for_session(abbr, session):
if session in term['sessions']:
return term['name']
- raise ValueError("no such session")
+ raise ValueError("no such se... | fix error from term_for_session | py |
diff --git a/setuptools/tests/test_easy_install.py b/setuptools/tests/test_easy_install.py
index <HASH>..<HASH> 100644
--- a/setuptools/tests/test_easy_install.py
+++ b/setuptools/tests/test_easy_install.py
@@ -171,8 +171,9 @@ class TestEasyInstallTest:
return str(sdist)
@pytest.mark.xfail(reason="#709 ... | Try only applying one xfail. | py |
diff --git a/tests/test_it.py b/tests/test_it.py
index <HASH>..<HASH> 100644
--- a/tests/test_it.py
+++ b/tests/test_it.py
@@ -15,7 +15,6 @@ def test_myapp_reloads_when_touching_ini(testapp):
testapp.stop()
assert len(testapp.response) == 2
- assert testapp.stderr == ''
assert testapp.stdout != ''
... | stop requiring stderr to be empty, we are killing the parent so pipes break | py |
diff --git a/source/rafcon/core/states/state.py b/source/rafcon/core/states/state.py
index <HASH>..<HASH> 100644
--- a/source/rafcon/core/states/state.py
+++ b/source/rafcon/core/states/state.py
@@ -101,7 +101,7 @@ class State(Observable, YAMLObject, JSONObject, Hashable):
self._final_outcome = None
s... | chore(state): set default execution status for states | py |
diff --git a/salt/state.py b/salt/state.py
index <HASH>..<HASH> 100644
--- a/salt/state.py
+++ b/salt/state.py
@@ -2016,6 +2016,9 @@ class BaseHighState(object):
if self.opts['state_auto_order']:
for name in state:
for s_dec in state[name]:
+ if not isinstance(s... | While handling `iorder` on states, skip non string entries. | py |
diff --git a/ariba/clusters.py b/ariba/clusters.py
index <HASH>..<HASH> 100644
--- a/ariba/clusters.py
+++ b/ariba/clusters.py
@@ -132,12 +132,16 @@ class Clusters:
def _receive_signal(self, signum, stack):
print('Signal received:', signum, file=sys.stderr)
- if os.path.exists(self.tmp_dir):
- ... | Keep tmp dir if not cleaning | py |
diff --git a/pyzotero/zotero.py b/pyzotero/zotero.py
index <HASH>..<HASH> 100644
--- a/pyzotero/zotero.py
+++ b/pyzotero/zotero.py
@@ -187,7 +187,7 @@ def retrieve(func):
# we need to dump as a zip!
self.snapshot = True
if fmt == 'bibtex':
- return bibtexparser.loads(retrie... | Allow common strings when parsing bibtex Closes #<I> | py |
diff --git a/quantecon/tests/test_lqcontrol.py b/quantecon/tests/test_lqcontrol.py
index <HASH>..<HASH> 100644
--- a/quantecon/tests/test_lqcontrol.py
+++ b/quantecon/tests/test_lqcontrol.py
@@ -68,8 +68,8 @@ class TestLQControl(unittest.TestCase):
x_seq, u_seq, w_seq = lq_mat.compute_sequence(x0)
- ... | TEST: Lower tolerance on the compute stationary matrices. | py |
diff --git a/pyteleloisirs/pyteleloisirs.py b/pyteleloisirs/pyteleloisirs.py
index <HASH>..<HASH> 100755
--- a/pyteleloisirs/pyteleloisirs.py
+++ b/pyteleloisirs/pyteleloisirs.py
@@ -88,6 +88,9 @@ def get_program_guide(channel, no_cache=False, refresh_interval=4):
_LOGGER.debug('Found outdated program guid... | Don't error out when invalid program data is requested | py |
diff --git a/import_export/resources.py b/import_export/resources.py
index <HASH>..<HASH> 100644
--- a/import_export/resources.py
+++ b/import_export/resources.py
@@ -703,7 +703,7 @@ class ModelResource(six.with_metaclass(ModelDeclarativeMetaclass, Resource)):
Django type.
"""
result = defaul... | Handle case where Field subclass does not have a get_internal_type() method | py |
diff --git a/elizabeth/intd/__init__.py b/elizabeth/intd/__init__.py
index <HASH>..<HASH> 100644
--- a/elizabeth/intd/__init__.py
+++ b/elizabeth/intd/__init__.py
@@ -13,3 +13,9 @@ from .net import *
from .per import *
from .sci import *
from .trans import *
+
+# BAD:
+# from elizabeth.intd import EMOJI
+
+# GOOD:
+... | Added comments to intd/__init__.py | py |
diff --git a/src/toil/leader.py b/src/toil/leader.py
index <HASH>..<HASH> 100644
--- a/src/toil/leader.py
+++ b/src/toil/leader.py
@@ -98,17 +98,17 @@ class JobBatcher:
self.workerPath = os.path.join(toilPackageDirPath(), "worker.py")
self.reissueMissingJobs_missingHash = {} #Hash to store number of o... | Erroneous "core" changed to "cores" | py |
diff --git a/workshift/forms.py b/workshift/forms.py
index <HASH>..<HASH> 100644
--- a/workshift/forms.py
+++ b/workshift/forms.py
@@ -381,6 +381,12 @@ class AssignShiftForm(forms.ModelForm):
class Meta:
model = RegularWorkshift
fields = ("current_assignee",)
+ labels = {
+ "current_assignee": "",
+ }
+ h... | Removed the labels and help texts from AssignShiftForm | py |
diff --git a/panoply/errors.py b/panoply/errors.py
index <HASH>..<HASH> 100644
--- a/panoply/errors.py
+++ b/panoply/errors.py
@@ -2,3 +2,8 @@ class PanoplyException(Exception):
def __init__(self, args=None, retryable=True):
super(PanoplyException, self).__init__(args)
self.retryable = retryable
... | Add new exception class for ssh tunnel logic | py |
diff --git a/tests/test_build_ext.py b/tests/test_build_ext.py
index <HASH>..<HASH> 100644
--- a/tests/test_build_ext.py
+++ b/tests/test_build_ext.py
@@ -28,6 +28,10 @@ class BuildExtTestCase(unittest.TestCase):
dist = Distribution({'name': 'xx', 'ext_modules': [xx_ext]})
dist.package_dir = self.tmp_... | On Windows, we must build a debug version iff running a debug build of Python | py |
diff --git a/category_encoders/binary.py b/category_encoders/binary.py
index <HASH>..<HASH> 100644
--- a/category_encoders/binary.py
+++ b/category_encoders/binary.py
@@ -118,6 +118,9 @@ class BinaryEncoder(BaseEstimator, TransformerMixin):
)
self.ordinal_encoder = self.ordinal_encoder.fit(X)
+ ... | In binary.py fixed small. The number of required digits must be calculated before dropping invariant columns | py |
diff --git a/src/rezplugins/build_system/cmake.py b/src/rezplugins/build_system/cmake.py
index <HASH>..<HASH> 100644
--- a/src/rezplugins/build_system/cmake.py
+++ b/src/rezplugins/build_system/cmake.py
@@ -168,7 +168,7 @@ class CMakeBuildSystem(BuildSystem):
return ret
@staticmethod
- def _add_build... | Added missing 'variant' keyword argument Commit <I> removed the 'variant' keyword argument from the _add_build_actions method in the cmake.py build system. It looks like this might have been done in error during merging of that commit. The argument was introduced in commit <I>b<I>, and rez build fails with a TypeError... | py |
diff --git a/pymatgen/analysis/adsorption.py b/pymatgen/analysis/adsorption.py
index <HASH>..<HASH> 100644
--- a/pymatgen/analysis/adsorption.py
+++ b/pymatgen/analysis/adsorption.py
@@ -570,7 +570,9 @@ def plot_slab(slab, ax, scale=0.8, repeat=5, window=1.5,
ax.set_aspect("equal")
center = corner + lattsum /... | Debug plot_slab from-TypeError: 'zip' object is not subscriptable-caused by doing zip_object[0] | py |
diff --git a/fedmsg/tests/test_commands.py b/fedmsg/tests/test_commands.py
index <HASH>..<HASH> 100644
--- a/fedmsg/tests/test_commands.py
+++ b/fedmsg/tests/test_commands.py
@@ -166,7 +166,7 @@ class TestCommands(unittest.TestCase):
def test_relay(self, argv):
actual_options = []
- def mock_main... | Fix a mock used by the test suite. | py |
diff --git a/quantecon/tests/test_mc_tools.py b/quantecon/tests/test_mc_tools.py
index <HASH>..<HASH> 100644
--- a/quantecon/tests/test_mc_tools.py
+++ b/quantecon/tests/test_mc_tools.py
@@ -106,6 +106,16 @@ def test_markovchain_pmatrices():
'period': 1,
'is_aperiodic': True,
},
+ #... | Add the same test case as in the Julia version | py |
diff --git a/dinsort.py b/dinsort.py
index <HASH>..<HASH> 100644
--- a/dinsort.py
+++ b/dinsort.py
@@ -1 +1,22 @@
-# dinsort.py
+# -*- coding: utf-8 -*-
+#
+# dinsort -- Sort terms according to German DIN
+#
+# Copyright (C) 2015 Uli Fouquet
+#
+# This program is free software: you can redistribute it and/or modify... | Add some placeholder for later real code. | py |
diff --git a/admin_enhancer/__init__.py b/admin_enhancer/__init__.py
index <HASH>..<HASH> 100644
--- a/admin_enhancer/__init__.py
+++ b/admin_enhancer/__init__.py
@@ -1,2 +1,2 @@
-__version__ = (0, 1, 0)
\ No newline at end of file
+__version__ = (0, 1, 1)
\ No newline at end of file | Bumped version number and uploaded to pypi. | py |
diff --git a/manticore/platforms/evm.py b/manticore/platforms/evm.py
index <HASH>..<HASH> 100644
--- a/manticore/platforms/evm.py
+++ b/manticore/platforms/evm.py
@@ -2373,8 +2373,9 @@ class EVMWorld(Platform):
self._transactions.append(tx)
else:
n = len(self._transactions... | Fix out-of-bound index in EVMWorld._process_pending_transaction (#<I>) | py |
diff --git a/backtrader/lineiterator.py b/backtrader/lineiterator.py
index <HASH>..<HASH> 100644
--- a/backtrader/lineiterator.py
+++ b/backtrader/lineiterator.py
@@ -115,7 +115,7 @@ class LineIterator(six.with_metaclass(MetaLineIterator, LineSeries)):
_ltype = IndType
- plotinfo = dict(plot=True, subplot=T... | lineiterator .. plotskip parameter to plotinfo - Allows to skip a plot even if it has been set to plot. Meant for chained LineObservers | py |
diff --git a/tests/gui/test_backward_compatibility_storage.py b/tests/gui/test_backward_compatibility_storage.py
index <HASH>..<HASH> 100644
--- a/tests/gui/test_backward_compatibility_storage.py
+++ b/tests/gui/test_backward_compatibility_storage.py
@@ -78,7 +78,20 @@ def test_backward_compatibility_storage(caplog):
... | feat(test_backward_compatibility): run state machines saved with other python version | py |
diff --git a/sos/report/plugins/openvswitch.py b/sos/report/plugins/openvswitch.py
index <HASH>..<HASH> 100644
--- a/sos/report/plugins/openvswitch.py
+++ b/sos/report/plugins/openvswitch.py
@@ -365,7 +365,7 @@ class OpenVSwitch(Plugin):
class RedHatOpenVSwitch(OpenVSwitch, RedHatPlugin):
- packages = ('openvsw... | [openvswitch] Extend package version pattern The next OVS release will be numbered <I>. In a near future, the Red Hat Fast Datapath channel will provide packages versionned in a same manner. While at it, OVS release major number may change again in the future. Use a pattern matching from OVS 2.x up to OVS 9.x. We sho... | py |
diff --git a/rootpy/tree/tree.py b/rootpy/tree/tree.py
index <HASH>..<HASH> 100644
--- a/rootpy/tree/tree.py
+++ b/rootpy/tree/tree.py
@@ -182,7 +182,11 @@ class Tree(Object, Plottable, RequireFile, ROOT.TTree):
if isinstance(branches, basestring):
branches = [branches]
for branch in bran... | activate and deactivate branch globs | py |
diff --git a/mongoctl/commands/common/status.py b/mongoctl/commands/common/status.py
index <HASH>..<HASH> 100644
--- a/mongoctl/commands/common/status.py
+++ b/mongoctl/commands/common/status.py
@@ -5,7 +5,7 @@ import mongoctl.repository as repository
from mongoctl.mongoctl_logging import *
from mongoctl.errors impor... | Fixing status commands for mongos servers | py |
diff --git a/test/test_docs.py b/test/test_docs.py
index <HASH>..<HASH> 100644
--- a/test/test_docs.py
+++ b/test/test_docs.py
@@ -5,6 +5,7 @@
# This module is part of GitPython and is released under
# the BSD License: http://www.opensource.org/licenses/bsd-license.php
import os
+import sys
from test.lib import T... | TST: Mark test_docs.Tutorials.test_submodules as xfail on Cygwin | py |
diff --git a/src/scriptworker/constants.py b/src/scriptworker/constants.py
index <HASH>..<HASH> 100644
--- a/src/scriptworker/constants.py
+++ b/src/scriptworker/constants.py
@@ -360,7 +360,7 @@ DEFAULT_CONFIG: immutabledict[str, Any] = immutabledict(
"project:releng:flathub:firefox:beta": ... | Allow autoland branch to use treescript push (#<I>) | py |
diff --git a/pylibdmtx/wrapper.py b/pylibdmtx/wrapper.py
index <HASH>..<HASH> 100644
--- a/pylibdmtx/wrapper.py
+++ b/pylibdmtx/wrapper.py
@@ -203,7 +203,7 @@ class DmtxDecode(Structure):
('cache', c_ubyte_p),
('image', POINTER(DmtxImage)),
- ('grid', POINTER(DmtxScanGrid)),
+ ('grid',... | [#1] Correct data type for DmtxScanGrid member of DmtxDecode | py |
diff --git a/test/test_asymetric.py b/test/test_asymetric.py
index <HASH>..<HASH> 100644
--- a/test/test_asymetric.py
+++ b/test/test_asymetric.py
@@ -159,7 +159,10 @@ class TestUtil(unittest.TestCase):
toSign = "test_RSA_sign_PSS SHA1"
mech = PyKCS11.RSA_PSS_Mechanism(
- PyKCS11.CKM_SHA1... | test_asymetric.py: use a correct size for RSA_PSS_Mechanism.sLen All PSS mechanisms require to provide the PSS parameters in appropriate C_XXXInit() APIs. The PKCS#<I> recommends to use salt length equal to appropriate hash length. For SHA1: salt length = <I> bytes For SHA<I>: salt length = <I> bytes | py |
diff --git a/tests/lax_control_flow_test.py b/tests/lax_control_flow_test.py
index <HASH>..<HASH> 100644
--- a/tests/lax_control_flow_test.py
+++ b/tests/lax_control_flow_test.py
@@ -999,10 +999,10 @@ class LaxControlFlowTest(jtu.JaxTestCase):
self.assertAllClose(ans, expected, check_dtypes=False)
jtu.che... | in grad-of-switch test, avoid relying on unary operations to remove weak types | py |
diff --git a/pyu2f/apdu.py b/pyu2f/apdu.py
index <HASH>..<HASH> 100644
--- a/pyu2f/apdu.py
+++ b/pyu2f/apdu.py
@@ -137,11 +137,11 @@ class ResponseApdu(object):
return self.sw1 == 0x90 and self.sw2 == 0x00
def CheckSuccessOrRaise(self):
- if self.sw1 == 0x69 and self.sw2 == 0x85:
+ if self.sw1 == 0x69 a... | Fix SW_WRONG_LENGTH error code. Not sure why it was 0x<I> originally. FIDO spec says this is 0x<I>. | py |
diff --git a/pycm/pycm_output.py b/pycm/pycm_output.py
index <HASH>..<HASH> 100644
--- a/pycm/pycm_output.py
+++ b/pycm/pycm_output.py
@@ -283,7 +283,7 @@ def table_print(classes, table):
table_list.extend(list(table[key].values()))
table_list.extend(classes)
table_max_length = max(map(len, map(str, ... | fix : minor bug in table_print shifts fixed | py |
diff --git a/mailutils.py b/mailutils.py
index <HASH>..<HASH> 100644
--- a/mailutils.py
+++ b/mailutils.py
@@ -47,7 +47,8 @@ from invenio.config import \
CFG_SITE_ADMIN_EMAIL, \
CFG_MISCUTIL_SMTP_HOST, \
CFG_MISCUTIL_SMTP_PORT, \
- CFG_VERSION
+ CFG_VERSION, \
+ CFG_DEVEL_SITE
from inve... | mailutils: do not send email to users on DEV sites * If CFG_DEVEL_SITE is true, e-mails are not sent to external people, but to the administrator with a header saying to whom the e-mail would have been sent on a production site. | py |
diff --git a/source/rafcon/utils/resources.py b/source/rafcon/utils/resources.py
index <HASH>..<HASH> 100644
--- a/source/rafcon/utils/resources.py
+++ b/source/rafcon/utils/resources.py
@@ -7,6 +7,7 @@
#
# Contributors:
# Sebastian Brunner <sebastian.brunner@dlr.de>
+# Franz Steinmetz <franz.steinmetz@dlr.de>
""... | fix(resources): Add PYTHONUSERBASE to search path list | py |
diff --git a/datatableview/helpers.py b/datatableview/helpers.py
index <HASH>..<HASH> 100644
--- a/datatableview/helpers.py
+++ b/datatableview/helpers.py
@@ -174,7 +174,7 @@ def make_xeditable(instance=None, extra_attrs=[], *args, **kwargs):
data = kwargs.get('default_value', instance)
# Compile values to ... | Allow make_xeditable "source" to be specified Slight oversight, since the default conditions are so automatic. This should allow a custom choices url to be specified without fussing with the “extra_attrs” argument. | py |
diff --git a/speccer/version.py b/speccer/version.py
index <HASH>..<HASH> 100644
--- a/speccer/version.py
+++ b/speccer/version.py
@@ -2,4 +2,4 @@
def get():
# returns current version of the lib
- return '0.2.3'
+ return '0.3.0' | Bumped up version a bit. | py |
diff --git a/byml.py b/byml.py
index <HASH>..<HASH> 100644
--- a/byml.py
+++ b/byml.py
@@ -88,7 +88,7 @@ class Byml:
if node_type == 0xd2:
return self._parse_f32_node(value)
if node_type == 0xd3:
- return self._parse_crc32_node(value)
+ return self._parse_u32_node(va... | byml: Parse 0xd3 as uint<I> They're used for crc<I> values, which are supposed to be unsigned, and also in Pack/Bootup.pack@/UI/MapTex/MainFieldArea.byaml as "masks" (which again should be unsigned). So I'm pretty sure 0xd3 is just a uint<I> and nothing more. | py |
diff --git a/root_numpy/_tree.py b/root_numpy/_tree.py
index <HASH>..<HASH> 100644
--- a/root_numpy/_tree.py
+++ b/root_numpy/_tree.py
@@ -11,6 +11,7 @@ __all__ = [
'list_trees',
'list_branches',
'list_structures',
+ 'list_directories',
'tree2array',
'tree2rec',
'array2tree',
@@ -73,6 +... | Inserted list_directories call and docstring | py |
diff --git a/openquake/commonlib/readinput.py b/openquake/commonlib/readinput.py
index <HASH>..<HASH> 100644
--- a/openquake/commonlib/readinput.py
+++ b/openquake/commonlib/readinput.py
@@ -704,7 +704,7 @@ def get_full_lt(oqparam):
'There are too many potential logic tree paths (%d):'
... | Better logging [skip CI] | py |
diff --git a/core/finance/financial_metrics.py b/core/finance/financial_metrics.py
index <HASH>..<HASH> 100644
--- a/core/finance/financial_metrics.py
+++ b/core/finance/financial_metrics.py
@@ -112,9 +112,25 @@ class FinancialMetrics():
pickle.dump(self, ofile, pickle.HIGHEST_PROTOCOL)
def load(sel... | Train again if has problem with pickle file | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -192,7 +192,7 @@ setup(
author='James R. Barlow',
author_email='jim@purplerock.ca',
license='MIT',
- packages=find_packages(exclude=["tests", "tests.*"]),
+ packages=find_packages(exclude=["tests", "tests.... | Do we need to exclude ocrmypdf.lib? | py |
diff --git a/tests/asserts.py b/tests/asserts.py
index <HASH>..<HASH> 100644
--- a/tests/asserts.py
+++ b/tests/asserts.py
@@ -73,9 +73,12 @@ def assert_equals(original, expected, stream=real_stdout):
A new version of assert_equals that does coloured differences
"""
- # replace \s with space, this makes ... | Handle assert_equals not being used for strings | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -11,7 +11,7 @@ with open('HISTORY.rst') as history_file:
install_requires = [
'requests>=2.11.0',
- 'bigchaindb>=0.7.0',
+ 'bigchaindb>=0.7.0.dev',
]
tests_require = [
@@ -39,7 +39,7 @@ docs_require = [
]
... | Point to bigchaindb <I>.dev (#<I>) | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.