message
stringlengths
13
484
diff
stringlengths
38
4.63k
Remove unneeded check and add comments Removes the unneeded check for if the cache is empty. Also adds a seconds comment about the format of the contents of the Redis cache.
@@ -30,6 +30,7 @@ AOC_WHITELIST = AOC_WHITELIST_RESTRICTED + (Channels.advent_of_code,) class AdventOfCode(commands.Cog): """Advent of Code festivities! Ho Ho Ho!""" + # Redis Cache for linking Discord IDs to Advent of Code usernames account_links = RedisCache() def __init__(self, bot: Bot): @@ -186,23 +187,9 @@ class ...
(airline-demo-testability-2) Use file handle solids for sfo_weather_data Summary: Use the new fancy things. No behavior change. Test Plan: Run in dagit. Buildkite. Reviewers: max, natekupp
from dagster_aws.s3.resources import s3_resource from dagster_aws.s3.system_storage import s3_plus_default_storage_defs -from dagster_aws.s3.solids import put_object_to_s3_bytes, download_from_s3_to_bytes +from dagster_aws.s3.solids import put_object_to_s3_bytes + +from .mirror_keyed_file_from_s3 import mirror_keyed_fi...
Fixed js error in iframe_login This is a bug in a previous PR. There's no javascript after it, so it doesn't seem to stop the user from being able to log in, but still good to fix.
<script src="{% static 'blazy/blazy.js' %}"></script> <script> new Blazy({container: 'body'}); - var username = (new URLSearchParams(window.location.search)).get("username"); - if (username) { + var username = (new URLSearchParams(window.location.search)).get("username"), + element = document.getElementById('id_auth-us...
fix wrong link the previous link can not open, the correct link maybe
@@ -19,5 +19,5 @@ Resources * `Blog <https://browbeatproject.org>`_ * `Twitter <https://twitter.com/browbeatproject>`_ * `Code Review <https://review.openstack.org/#/q/project:openstack/browbeat>`_ -* `Git Web <https://review.openstack.org/gitweb?p=openstack/browbeat.git;a=summary>`_ +* `Git Web <https://git.openstack....
Add more details to the internal error for "worker cannot find registered function" This adds some more debug information for this internal error that shouldn't happen.
import dis import hashlib +import os import importlib import inspect import json @@ -405,7 +406,10 @@ class FunctionActorManager: warning_message = ( "This worker was asked to execute a " "function that it does not have " - "registered. You may have to restart " + f"registered ({function_descriptor}, " + f"node={self._...
Allow user-defined kwargs passed to click.group Fixes
@@ -57,6 +57,8 @@ def group( short_help: str = None, options_metavar: str = '[OPTIONS]', add_help_option: bool = True, + # User-defined + **kwargs: Any, ) -> _Decorator: ...
Orders trustees by id Orders trustees by id to garantee access order on "freeze" method
@@ -1171,7 +1171,7 @@ class Trustee(HeliosModel): @classmethod def get_by_election(cls, election): - return cls.objects.filter(election = election) + return cls.objects.filter(election = election).order_by('id') @classmethod def get_by_uuid(cls, uuid):
Fix typo Fix "contorls" to "controls" in window_text docstring
@@ -307,7 +307,7 @@ class BaseWrapper(object): """ Window text of the element - Quite a few contorls have other text that is visible, for example + Quite a few controls have other text that is visible, for example Edit controls usually have an empty string for window_text but still have text displayed in the edit windo...
Minor relocate of badge no more info needed
![Instabot is better that other open-source bots!](https://github.com/instagrambot/instabot/blob/master/docs/img/tag%20instabot.png "Instabot is better that other open-source bots!") Cool Instagram scripts for promotion and API wrapper. Written in Python. ___ +[![Telegram Chat](https://patrolavia.github.io/telegram-bad...
{Compute} Doc fix for 'vm user delete' Clarify that 'vm user delete' also removes the home directory on Linux systems.
@@ -1950,6 +1950,8 @@ short-summary: Manage user accounts for a VM. helps['vm user delete'] = """ type: command short-summary: Delete a user account from a VM. +long-summary: > + Also deletes the user home directory on Linux VMs. examples: - name: Delete a user account. text: az vm user delete -u username -n MyVm -g My...
Adds the job user and team This is required as some challenge admins want to see the teams for each job in order to download the supplementary file.
{% extends "site.html" %} {% load evaluation_extras %} +{% load user_profile_link from profiles %} {% load guardian_tags %} {% load url from grandchallenge_tags %} <thead> <tr> <th>ID</th> + {% if "change_challenge" in challenge_perms %} + <th>User</th> + {% endif %} <th>Created</th> <th>Updated</th> <th>Status</th> {%...
add stdout as an output format for report subcommand Using --format=stdout now writes output to STDOUT in human-readable form, in addition to tabular/Excel/etc.
@@ -41,6 +41,7 @@ THE SOFTWARE. """ import os +import sys import numpy as np import pandas as pd @@ -123,6 +124,13 @@ def write_styled_html(path, df, index=None): ofh.write(html) +# Write a dataframe to STDOUT +def write_to_stdout(stem, df, index=None, line_width=None): + """Write dataframe in tab-separated form to STD...
chore: correct region tag in submit_job_to_cluster.py Change region tag to make it unique. The previous tag was used in another create cluster file and caused problems with automation tools.
@@ -85,7 +85,7 @@ def download_output(project, cluster_id, output_bucket, job_id): return bucket.blob(output_blob).download_as_string() -# [START dataproc_create_cluster] +# [START dataproc_submit_job_create_cluster] def create_cluster(dataproc, project, zone, region, cluster_name): """Create the cluster.""" print("Cre...
wallet.get_request_by_addr: make deterministic This makes test_invoices/test_wallet_get_request_by_addr pass without flakyness. closes
@@ -2355,8 +2355,13 @@ class Abstract_Wallet(ABC, Logger, EventListener): if not req.is_lightning() or self.lnworker.get_invoice_status(req) == PR_UNPAID] if not reqs: return None - # note: there typically should not be more than one relevant request for an address - return reqs[0] + # note: There typically should not ...
Update Update desc
no_log_contains: id "942190" - test_title: 942190-40 - desc: "MSSQL Logical Functions - IIF (Transact-SQL)" + desc: "MSSQL Logical Functions - IIF (Transact-SQL) - regression test" stages: - stage:
missing pipe [nodeploy]
@@ -19,7 +19,7 @@ fi echo "Starting devserver in new tmux session..." tmux new-session -d -s $session tmux new-window -t "$session:1" -n gae "dev_appserver.py --admin_host=0.0.0.0 --host=0.0.0.0 --datastore_path=/datastore/tba.db src/default.yaml src/web.yaml src/api.yaml src/dispatch.yaml 2>&1 | tee /var/log/tba.log; ...
Changes default "onBadFit" option to *nothing* (not even Robust+). This update to the default behavior of do_long_sequence_gst when a model doesn't fit the data is more conservative -- only do the special Robust+ or wildcard post-processing analysis when the user specificially requests it.
@@ -1329,7 +1329,7 @@ def _post_opt_processing(callerName, ds, target_model, mdl_start, lsgstLists, objective = advancedOptions.get('objective', 'logl') badFitThreshold = advancedOptions.get('badFitThreshold',DEFAULT_BAD_FIT_THRESHOLD) if ret.estimates[estlbl].misfit_sigma(evaltree_cache=evaltree_cache, comm=comm) > ba...
Python API: override __nonzero__ for node wrappers TN:
@@ -790,6 +790,16 @@ class ${root_astnode_name}(object): ctypes.byref(result)) return ${root_astnode_name}._wrap(result) + def __nonzero__(self): + """ + Return always True so that checking a node against None can be done as + simply as:: + + if node: + ... + """ + return True + def __len__(self): """Return the number ...
container-common: Enable docker on boot for ubuntu docker daemon is automatically started during package installation but the service isn't enabled on boot.
tags: with_pkg - - name: start docker service - service: - name: docker - state: started - enabled: yes - tags: - with_pkg - - name: red hat 8 based systems tasks when: - ansible_distribution_major_version == '8' tags: with_pkg +- name: start docker service + service: + name: docker + state: started + enabled: yes + ta...
Improve sentence parsing I've always parsed this sentence as "attrs comes with serious, business aliases". I just realized you probably meant srs bzns aliases and figured I'd clarify.
@@ -48,7 +48,7 @@ By default, all features are added, so you immediately have a fully functional d As shown, the generated ``__init__`` method allows for both positional and keyword arguments. -If playful naming turns you off, ``attrs`` comes with serious business aliases: +If playful naming turns you off, ``attrs`` co...
Setup (Windows): Query inkscape install location correctly MSI installer writes install location in key HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\inkscape.exe
@@ -117,14 +117,14 @@ goto FINAL :DETECT_INKSCAPE_LOCATION echo Trying to find Inkscape in Windows Registry... +rem Checking NSIS-Installer registry information rem Inkscape installation path is usually found in the registry -rem "SOFTWARE\Inkscape\Inkscape" -rem under HKLM (Local Machine -> machine wide installation) ...
Quick syntax correction for clarity `''.join(srcCode)` is not really readable. On the other hand, `str.join('', srcCode)` is much better.
@@ -31,7 +31,7 @@ for file in allFiles: srcCode = f.readlines() # The last three lines are always the main() call srcCode = srcCode[:-3] - srcCode = ''.join(srcCode) + srcCode = str.join('', srcCode) module.__SRC_CODE = srcCode bmpSrcCode = highlight(srcCode, PythonLexer(), BmpImageFormatter())
Update language ID map html: add text.html.ngx for angular files shaderlab: these are supposedly Unity Shaderlab files r: the R language server can also handle R-flavoured markdown files xsl and xml: decouple them In general, added repo links to thirdparty syntaxes
"bibtex": "text.bibtex", "cpp": "source.c++", "csharp": "source.cs", - "html": "embedding.php | text.html.basic", + "html": "embedding.php | text.html.basic | text.html.ngx", // https://github.com/princemaple/ngx-html-syntax "javascript": "source.js", - "javascriptreact": "source.jsx", // 3rdparty + "javascriptreact": ...
boot: Remove special case for pypy load failures There was a special case for Pypy in the handling of errors when loading components. It looks like in the years since it was written, it may have become unnecessary. Removing it leads to more helpful error messages, so... let's remove it?
@@ -104,9 +104,7 @@ def _do_import (name): message = str(sys.exc_info()[1].args[0]) s = message.rsplit(" ", 1) - # Sadly, PyPy isn't consistent with CPython here. - #TODO: Check on this behavior in pypy 2.0. - if s[0] == "No module named" and (name.endswith(s[1]) or __pypy__): + if s[0] == "No module named" and (name.e...
fix bug wth --runtest where software or system packages were not showing due to directory error. The if conditions in eb_menu were not setup properly.
@@ -32,7 +32,7 @@ import subprocess import time import glob -from buildtest.tools.config import BUILDTEST_ROOT +from buildtest.tools.config import BUILDTEST_ROOT, config_opts from buildtest.tools.menu import buildtest_menu def systempkg_menu(systempkg): @@ -199,6 +199,8 @@ def eb_menu(ebpkg): app_tc_set = set() + + # t...
Fixes an "*" import in the middle of the code. Importing everything without namespace is a bad practice. Doing it outside module level is currently forbidden. Python 3.9.1 refuses to compile it. Flake8 reports: F406 'from kicost.kicost_gui import *' only allowed at module level.
@@ -63,7 +63,7 @@ class kicost_kicadplugin(ActionPlugin): bom_file = '' try: try: - from kicost.kicost_gui import * + from kicost.kicost_gui import kicost_gui kicost_gui(bom_file) # If KiCad and KiCost share the same Python installation. except ImportError: subprocess.call(('kicost', '--guide', bom_file), shell=True)
Update train.py remove redundant code
@@ -98,7 +98,6 @@ def main(train_data_file, test_data_file, vocab_file, target_file, emb_file, for pass_id in xrange(num_passes): chunk_evaluator.reset(exe) for data in train_reader(): - print len(data) cost, batch_precision, batch_recall, batch_f1_score = exe.run( fluid.default_main_program(), feed=feeder.feed(data),
Split the empty cluster case from normal case Cover normal usage of get_brokers function
@@ -339,6 +339,8 @@ class TestZK(object): } assert actual_without_fetch_state == expected_without_fetch_state + def test_get_topics_empty_cluster(self, mock_client): + with ZK(self.cluster_config) as zk: zk.get_children = mock.Mock(side_effect=NoNodeError()) actual_with_no_node_error = zk.get_topics() expected_with_no_...
bootstrap_javascript use settings include_jquery tnx
@@ -282,7 +282,7 @@ def bootstrap_jquery(jquery='full'): @register.simple_tag -def bootstrap_javascript(jquery='falsy'): +def bootstrap_javascript(jquery=None): """ Return HTML for Bootstrap JavaScript. @@ -315,7 +315,7 @@ def bootstrap_javascript(jquery='falsy'): javascript_tags = [] # Set jquery value from setting or...
tests/state_docs: clear registry before running the test. Make sure docs examples get consistent naming
@@ -3,6 +3,18 @@ import pytest import psyneulink as pnl import doctest +def clear_registry(): + from psyneulink.components.component import DeferredInitRegistry + from psyneulink.components.system import SystemRegistry + from psyneulink.components.process import ProcessRegistry + from psyneulink.components.mechanisms.m...
Fix when filter working on POST HG-- branch : feature/microservices
@@ -65,6 +65,8 @@ class ExtFormatMiddleware(object): def process_request(self, request): if request.GET and request.GET.get("__format") == "ext": request.is_extjs = True + elif request.POST and request.POST.get("__format") == "ext": + request.is_extjs = True else: request.is_extjs = False
use addClassResourceCleanup in test_roles Replaces resource_cleanup with addClassResourceCleanup in test_roles. test_utils.call_and_ignore_notfound_exc is NOT used in resource_setup as delete_role_from_user_on_project and similar calls, do not delete the role, it just unassigns the role from the target.
@@ -32,6 +32,8 @@ class RolesV3TestJSON(base.BaseIdentityV3AdminTest): for _ in range(3): role_name = data_utils.rand_name(name='role') role = cls.roles_client.create_role(name=role_name)['role'] + cls.addClassResourceCleanup(cls.roles_client.delete_role, + role['id']) cls.roles.append(role) u_name = data_utils.rand_na...
Add build status to README Library can now successfully do nothing
# Manim - Mathematical Animation Engine [![Documentation Status](https://readthedocs.org/projects/manim/badge/?version=latest)](https://manim.readthedocs.io/en/latest/?badge=latest) +[![Build Status](https://travis-ci.org/3b1b/manim.svg?branch=master)](https://travis-ci.org/3b1b/manim) [![MIT License](https://img.shiel...
fixed duplication of representations nuke.api.plugin.ExporterReview adds representation explicitly via publish_on_farm, so skip adding repre if already there. (Issue in ExtractBurnin other way.) ExporterReview should be probably refactored and publish_on_farm removed altogether.
@@ -601,7 +601,6 @@ class ProcessSubmittedJobOnFarm(pyblish.api.InstancePlugin): "files": os.path.basename(remainder), "stagingDir": os.path.dirname(remainder), } - representations.append(rep) if "render" in instance.get("families"): rep.update({ "fps": instance.get("fps"), @@ -609,6 +608,16 @@ class ProcessSubmittedJo...
Add more description to policies in the keypairs.py This updates the policy doc for server extend controller in keypairs.py Partial implement blueprint blueprint policy-docs
# License for the specific language governing permissions and limitations # under the License. -from oslo_policy import policy - from nova.policies import base @@ -63,9 +61,20 @@ keypairs_policies = [ 'method': 'GET' } ]), - policy.RuleDefault( - name=BASE_POLICY_NAME, - check_str=base.RULE_ADMIN_OR_OWNER), + base.crea...
Fixed _custom_opac flag If we specify opacity for every point, then we should set _custom_opac to true.
@@ -1484,7 +1484,7 @@ class BasePlotter(PickingHelper, WidgetHelper): opacity = np.array(opacity) if scalars.shape[0] == opacity.shape[0]: # User could pass an array of opacities for every point/cell - pass + _custom_opac = True else: opacity = opacity_transfer_function(opacity, n_colors)
Add warning about mounting relative paths and minor tweaks
@@ -72,11 +72,16 @@ Running mriqc automatically be executed without need of running the command in item 3. +.. warning:: + + Paths `<bids_dir>` and `<output_dir>` must be absolute. In particular, specifying relative paths for + `<output_dir>` will generate no error and mriqc will run to completion without error but pro...
Cast regularization parameters to float. This works around a bug in earlier proto versions that automatically infer these values to be integer instead of float.
@@ -111,9 +111,9 @@ def _build_regularizer(regularizer): """ regularizer_oneof = regularizer.WhichOneof('regularizer_oneof') if regularizer_oneof == 'l1_regularizer': - return slim.l1_regularizer(scale=regularizer.l1_regularizer.weight) + return slim.l1_regularizer(scale=float(regularizer.l1_regularizer.weight)) if reg...
DOC: Update TESTS.rst to use the correct names Not actually sure that setup_module() is what was wanted here, but it works? Mention a bit more about actual pytest fixtures.
@@ -178,30 +178,33 @@ Similarly for methods:: Easier setup and teardown functions / methods --------------------------------------------- -Testing looks for module-level or class-level setup and teardown functions by -name; thus:: +Testing looks for module-level or class method-level setup and teardown +functions by na...
Optimize mesh export using np.fromiter. Made optimization of mesh export using np.fromiter() instead of creating creating python lists of mesh data. On my tests it speedups export process more than 2 times, on some scenes ore than 4 times.
@@ -43,24 +43,26 @@ class MeshData: if tris_len == 0: raise SyncError("Mesh %s has no polygons" % mesh.name, mesh) - data.vertices = np.array([vert.co for vert in mesh.vertices], dtype=np.float32) - data.normals = np.array( - [norm for tri in mesh.loop_triangles - for norm in tri.split_normals], - dtype=np.float32 - ) ...
Add ContainerImagePrepare service to CellController role The CellController role does not have ContainerImagePrepare service. This result in empty external_deploy_steps_tasks.yaml and does not update container images when trying to update the cell stack. Closes-Bug:
- OS::TripleO::Services::CertmongerUser - OS::TripleO::Services::Clustercheck - OS::TripleO::Services::Collectd + - OS::TripleO::Services::ContainerImagePrepare - OS::TripleO::Services::Docker - OS::TripleO::Services::Fluentd - OS::TripleO::Services::HAproxy
Added SLIs, SLOs and Burn rate Alerts section SLIs, SLOs and Burn rate Alerts section documentation, need to add pictures. +fixed typos in slos.tf
# See the License for the specific language governing permissions and # limitations under the License. -# Create an SLO for availablity for the custom service. +# Create an SLO for availability for the custom service. # Example SLO is defined as following: # 90% of all non-4XX requests within the past 30 day windowed p...
generate_adhoc_ssl_pair: make issuer match subject With this change, the generated certificate can be trusted, and the following command starts working: openssl s_client -showcerts -connect dev:443 -verifyCAfile dev.crt </dev/null
@@ -462,8 +462,8 @@ def generate_adhoc_ssl_pair(cn=None): subject.O = 'Dummy Certificate' # noqa: E741 issuer = cert.get_issuer() - issuer.CN = 'Untrusted Authority' - issuer.O = 'Self-Signed' # noqa: E741 + issuer.CN = subject.CN + issuer.O = subject.O # noqa: E741 pkey = crypto.PKey() pkey.generate_key(crypto.TYPE_RS...
Do not fail if process already ended We can expect the subprocess has already ended by the time we're checking for child processes. Handle this case gracefully so that tests do not fail with an exception.
@@ -1548,7 +1548,11 @@ def win32_kill_process_tree(pid, sig=signal.SIGTERM, include_parent=True, ''' if pid == os.getpid(): raise RuntimeError("I refuse to kill myself") + try: parent = psutil.Process(pid) + except psutil.NoSuchProcess: + log.debug("PID not found alive: %d", pid) + return ([], []) children = parent.chi...
Cell ID performance improvements Determine if the platform can store cell IDs in an array up front and use pogo_async's new array storage feature, don't cast between sequence types since pogo_async can handle each of them now, only round coordinates if caching IDs.
@@ -6,7 +6,7 @@ from pogo_async.hash_server import HashServer from asyncio import sleep, Lock, Semaphore, get_event_loop from random import choice, randint, uniform, triangular from time import time, monotonic -from array import array +from array import typecodes from queue import Empty from aiohttp import ClientSessio...
rpm: Properly detect other ARMv7 (32 Bit) arches Like it is currently being done for the different x86 arches (i386, i486, ...).
@@ -30,7 +30,16 @@ ARCHES_ALPHA = ( "alphaev68", "alphaev7", ) -ARCHES_ARM = ("armv5tel", "armv5tejl", "armv6l", "armv7l", "aarch64") +ARCHES_ARM_32 = ( + "armv5tel", + "armv5tejl", + "armv6l", + "armv6hl", + "armv7l", + "armv7hl", + "armv7hnl", +) +ARCHES_ARM_64 = ("aarch64",) ARCHES_SH = ("sh3", "sh4", "sh4a") ARCHES...
TST: implemented testing utilities Updated time unit tests to use the testing utilities.
@@ -11,6 +11,7 @@ import numpy as np import pytest from pysat.utils import time as pytime +from pysat.utils import testing class TestGetYearDay(): @@ -158,9 +159,8 @@ class TestCreateDateRange(): tst_stop = stop[-1] if hasattr(stop, "__iter__") else stop # Test the seasonal return values - assert season[0] == tst_start...
Remove netaddr useless requirement This patch cleans up the requirements.txt list to remove netaddr module actually replaced by oslo_utils.
@@ -8,7 +8,6 @@ automaton>=0.5.0 # Apache-2.0 eventlet!=0.18.3,>=0.18.2 # MIT WebOb>=1.6.0 # MIT greenlet>=0.3.2 # MIT -netaddr!=0.7.16,>=0.7.13 # BSD paramiko>=2.0 # LGPLv2.1+ python-neutronclient>=5.1.0 # Apache-2.0 python-glanceclient>=2.5.0 # Apache-2.0
Create compilation passes for ASTNode kinds and final structs processing TN:
@@ -30,9 +30,7 @@ from mako.lookup import TemplateLookup from langkit import caching, names, template_utils from langkit.ada_api import AdaAPISettings from langkit.c_api import CAPISettings -from langkit.diagnostics import ( - Severity, check_source_language, errors_checkpoint -) +from langkit.diagnostics import Severi...
Association connect should not blindly assume memberEnds In the rare case memberEnd instances are missing, we should just do nothing.
@@ -79,13 +79,16 @@ class AssociationConnect(RelationshipConnect): subject = line.subject def member_ends_match(subject): - return ( + return len(subject.memberEnd) >= 2 and ( + ( head_subject is subject.memberEnd[0].type and tail_subject is subject.memberEnd[1].type - ) or ( + ) + or ( head_subject is subject.memberEn...
Using snapshot alf/examples When playing a trained model with alf snapshot, we should also set redirect the python path to its examples directory in case some conf files have been changed.
@@ -1103,8 +1103,9 @@ def get_alf_snapshot_env_vars(root_dir): alf_repo = os.path.join(root_dir, "alf") alf_cnest = os.path.join(alf_repo, "alf/nest/cnest") # path to archived cnest.so + alf_examples = os.path.join(alf_repo, "alf/examples") python_path = os.environ.get("PYTHONPATH", "") - python_path = ":".join([alf_re...
Update libc.math tests cimport some C99 float and long double functions, and test legacy kwargs for double functions.
from libc.math cimport (M_E, M_LOG2E, M_LOG10E, M_LN2, M_LN10, M_PI, M_PI_2, M_PI_4, M_1_PI, M_2_PI, M_2_SQRTPI, M_SQRT2, M_SQRT1_2) -from libc.math cimport (acos, asin, atan, atan2, cos, sin, tan, cosh, sinh, - tanh, acosh, asinh, atanh, exp, log, log10, pow, sqrt) +from libc.math cimport (acos, asin, atan, atan2, cos...
feat: archiving pipelines $feat: add archive jobs BE integration $feat: add tests for archive jobs button
@@ -3,6 +3,7 @@ from dbnd._vendor.marshmallow import fields, validate class JobSchemaV2(ApiObjectSchema): + id = fields.Int() name = fields.Str() user = fields.Str() ui_hidden = fields.Boolean()
For the NotificationWithTemplateSchema exclude the scheduled_notifications so we do not query that table. The scheduled_notifications is not used as of yet.
@@ -449,7 +449,7 @@ class NotificationWithTemplateSchema(BaseSchema): class Meta: model = models.Notification strict = True - exclude = ('_personalisation', ) + exclude = ('_personalisation', 'scheduled_notification') template = fields.Nested( TemplateSchema,
Update facades for 2.9 release The following updates the facades to prevent spurious warnings about missing facades. Although it logs, because nothing has been coded to the facades we can safely add them without any consequence.
@@ -29,13 +29,17 @@ client_facades = { 'Backups': {'versions': [1, 2]}, 'Block': {'versions': [2]}, 'Bundle': {'versions': [1, 2, 3]}, + 'CharmHub': {'versions': [1]}, 'CharmRevisionUpdater': {'versions': [2]}, 'Charms': {'versions': [2]}, 'Cleaner': {'versions': [2]}, 'Client': {'versions': [1, 2]}, 'Cloud': {'version...
Only configure flint2 once If we've run configure before and a Makefile exists, let make figure out whether a recompile is necessary of flint2
@@ -8,7 +8,9 @@ pip install -r requirements.txt # Check for git clone of flint2 on MacOS and install if found if [ -f flint2/configure ]; then cd flint2/ + if [ ! -f Makefile ]; then ./configure + fi make -j4 make install cd ../
polys: avoid unnecessary using numbered_symbols() in primitive_element() Also drop redundant polys option
@@ -674,14 +674,14 @@ def primitive_element(extension, **args): x = Dummy('x') domain = args.get('domain', QQ) - F, Y = zip(*[(minimal_polynomial(e, domain=domain).replace(y), y) - for e, y in zip(extension, numbered_symbols('y', cls=Dummy))]) + F = [minimal_polynomial(e, domain=domain) for e in extension] + Y = [p.gen...
Fix LTE _init_ HG-- branch : feature/microservices
@@ -15,6 +15,8 @@ from noc.core.profile.base import BaseProfile class Profile(BaseProfile): name = "Eltex.LTE" pattern_username = r"(?<!Last )login: " + username_submit = "\r" + password_submit = "\r" pattern_more = [ (r"\[Yes/press any key for no\]", "Y") ]
remove overwrite __init__ Overrriding __init__ is not necessary.
@@ -36,9 +36,6 @@ INVENTORY_PATH = os.path.join(PLUGINS_DIR, "inventory") class PhotoshopHost(HostBase, IWorkfileHost, ILoadHost): name = "photoshop" - def __init__(self): - super(PhotoshopHost, self).__init__() - def install(self): """Install Photoshop-specific functionality of avalon-core.
Fix resolving against multiple markers Fix for when requirements are also present Fixes
@@ -310,7 +310,9 @@ class Resolver(object): for dependency_string in dependency_strings: try: - individual_dependencies = [dep.strip() for dep in dependency_string.split(', ')] + split_deps = dependency_string.split(';') + dependencies, markers = split_deps[0], '; '.join(list(set([marker.strip() for marker in split_dep...
fix: `set_column_display` contradicts arguments `show` should set `hidden` as 0, but does the opposite. This is fixed. Use `Array.isArray()` instead of deprecated usage
@@ -501,9 +501,9 @@ export default class Grid { } set_column_disp(fieldname, show) { - if ($.isArray(fieldname)) { + if (Array.isArray(fieldname)) { for (let field of fieldname) { - this.update_docfield_property(field, "hidden", show); + this.update_docfield_property(field, "hidden", show ? 0 : 1); this.set_editable_gr...
docs: Updated quickstart docs to import FeatureService docs: updated quickstart docs to import FeatureService
@@ -82,7 +82,7 @@ online_store: from datetime import timedelta -from feast import Entity, FeatureView, Field, FileSource, ValueType +from feast import Entity, FeatureService, FeatureView, Field, FileSource, ValueType from feast.types import Float32, Int64 # Read data from parquet files. Parquet is convenient for local ...
Fix computed getter Content defaults are saved in `diffTracker.contentDefaults`, not in `diffTracker.content_defaults` Prioritize `diffTracker`'s values over `channel.content_defaults` as diffTracker contains the latest updates
contentDefaults: { get() { return { - ...(this.diffTracker.content_defaults || {}), ...(this.channel.content_defaults || {}), + ...(this.diffTracker.contentDefaults || {}), }; }, set(contentDefaults) {
[hailtop] use the exact same error message for sync and async * [hailtop] use the exact same error message for sync and async Importantly, I want to see the stack trace in either case. * revert
@@ -629,7 +629,7 @@ async def retry_transient_errors(f: Callable[..., Awaitable[T]], *args, **kwargs errors += 1 if errors % 10 == 0: st = ''.join(traceback.format_stack()) - log.warning(f'encountered {errors} errors. My stack trace is {st}. Most recent error was {e}', exc_info=True) + log.warning(f'Encountered {errors...
NanoRange: Fixed bugs from comments Changed the way MSVC is handled, open for handling version checks Removed the version number in the conanfile.py Updated the copy logic from working with .zip to .tar.gz
@@ -6,7 +6,6 @@ from conans.errors import ConanInvalidConfiguration class NanorangeConan(ConanFile): name = "nanorange" - version = "20191001" license = "Boost 1.0" author = "Paul M. Bendixen paulbendixen@gmail.com" url = "github.com/conan-io/conan-center-index" @@ -18,6 +17,10 @@ class NanorangeConan(ConanFile): # No ...
Added missing component of cmac to save file _n was not saved in the save file
@@ -30,7 +30,7 @@ class CMAC(LinearApproximator): super().__init__(weights=weights, input_shape=(self._phi.size,), output_shape=output_shape) - self._add_save_attr(_phi='pickle') + self._add_save_attr(_phi='pickle', _n='primitive') def fit(self, x, y, alpha=1.0, **kwargs): """
Add pre-conditions to avoid on_timeout being called after stop() Apparently the cancellation request for a TimerHandle doesn't necessarily have to be honoured despite large periods of time passing
@@ -314,7 +314,9 @@ class View: self._timeout_handler = loop.call_later(self.timeout, self.dispatch_timeout) def dispatch_timeout(self): - if not self._stopped.done(): + if self._stopped.done(): + return + self._stopped.set_result(True) asyncio.create_task(self.on_timeout(), name=f'discord-ui-view-timeout-{self.id}')
change add_outgrads and primitive_mut_add to do the vspace.zeros() initialization inside primitive_mut_add
@@ -44,7 +44,7 @@ def backward_pass(g, end_node, start_node): def add_outgrads(vspace, prev_g_flagged, g): if prev_g_flagged is None: if type(getval(g)) == SparseObject: - return primitive_mut_add(vspace, vspace.zeros(), g), True + return primitive_mut_add(vspace, None, g), True else: return g, False else: @@ -52,7 +52...
Compare the bytes we read with a bytes object, not str. Fixes
@@ -23,7 +23,7 @@ def print_unsourced_ids_from_wikipedia(): for page_id, type in cursor: if type == b'page': print(page_id) - elif type == 'subcat': + elif type == b'subcat': subcategories.add(page_id) if not subcategories: break
improved export file export original file. Or export sqlite created file.
@@ -1122,7 +1122,7 @@ class DialogManageFiles(QtWidgets.QDialog): def export(self): """ Export files to selected directory. If an imported file was from a docx, odt, pdf, html, epub then export the original file - and also export the plain text version. + If the file was created within QualCoder (so only in the databas...
Classes for extensions Added for both extensions and lnfaucet db
@@ -30,3 +30,62 @@ class Database: """Given a query, cursor.execute() it.""" self.cursor.execute(query, values) self.connection.commit() + + +class ExtDatabase: + def __init__(self, db_path: str = os.path.join(LNBITS_PATH, "extensions", "overview.sqlite3")): + self.path = db_path + self.connection = sqlite3.connect(db_...
[bugfix] Fix _formatLimit_MonthOfYear Limit is given as 1900 but not recognized by predicate
@@ -2152,7 +2152,7 @@ formatLimits = { } # All month of year articles are in the same format -_formatLimit_MonthOfYear = (lambda v: 1 <= 1900 and v < 2051, 1900, 2051) +_formatLimit_MonthOfYear = (lambda v: 1900 <= v < 2051, 1900, 2051) for month in yrMnthFmts: formatLimits[month] = _formatLimit_MonthOfYear
test: Misc update in test_tutorial Add missing remove_target call from "Delegate to Hashed Bins" section Add comments to dirty_roles output assertion
@@ -134,7 +134,8 @@ class TestTutorial(unittest.TestCase): repository.root.load_signing_key(private_root_key) repository.root.load_signing_key(private_root_key2) - # Patch logger to assert that it accurately logs dirty roles + # NOTE: The tutorial does not call dirty_roles anymore due to #964 and + # #958. We still cal...
Fix 'navigation_depth' functionality Read the Docs was not using the sphinx_rtd_theme settings due to clobbering the configuration dictionary, tweaked conf.py to avoid this.
# add these directories to sys.path here. If the directory is relative to the # documentation root, use os.path.abspath to make it absolute, like shown here. # +import importlib import os import warnings # import sys @@ -61,12 +62,9 @@ warnings.filterwarnings("ignore", category=UserWarning, # The theme to use for HTML ...
Enable tuples and lists in handle_probability_param() handle_probability_param() in parameters.py has so far only supported single numbers, True, False and StochasticParameter. Now it also supports tuples of form (a, b), which are transformed to Uniform and lists of form [a, b, c, ...], which are transformed to Choice....
@@ -105,7 +105,7 @@ def handle_discrete_param(param, name, value_range=None, tuple_to_uniform=True, list_str = ", list of %s" % (allowed_type,) if list_to_choice else "" raise Exception("Expected %s, tuple of two %s%s or StochasticParameter for %s, got %s." % (allowed_type, allowed_type, list_str, name, type(param),)) ...
GDB helpers: emit bind directives for BindingScope TN:
@@ -13,8 +13,8 @@ import funcy from langkit import names from langkit.compiled_types import ( AbstractNodeData, Argument, ASTNode, BoolType, CompiledType, - LexicalEnvType, LongType, Symbol, T, Token, get_context, - render as ct_render, resolve_type, EnvRebindingsType + EnvRebindingsType, LexicalEnvType, LongType, Symb...
Deletion: remove outer try/except block in reaper run_once run_daemon already takes care of catching unhandled exceptions and re-trying the run_once function.
@@ -463,7 +463,7 @@ def _run_once(rses, include_rses, exclude_rses, vos, chunk_size, greedy, scheme, if not rses_to_process: logger(logging.ERROR, 'Reaper: No RSEs found. Will sleep for 30 seconds') return - try: + dict_rses = {} _, total_workers, logger = heartbeat_handler.live() tot_needed_free_space = 0 @@ -601,11 +...
Fix Extreme.XOS.get_capabilities script HG-- branch : feature/microservices
@@ -17,7 +17,7 @@ from noc.lib.text import parse_table class Script(BaseScript): name = "Extreme.XOS.get_capabilities" - rx_lldp = re.compile(r"^\s*\d+\s+Enabled\s+Enabled", re.MULTILINE) + rx_lldp = re.compile(r"^\s*\d+(\:\d+)?\s+Enabled\s+Enabled", re.MULTILINE) rx_cdp = re.compile(r"^\s*CDP \S+ enabled ports\s+:\s+\...
$.Introspection: enhance documentation TN:
@@ -6,7 +6,7 @@ package ${ada_lib_name}.Introspection is Invalid_Field : exception; - ## In a lot of testcases, there is a single concrete AST node that has no + ## In a lot of testcases, there is a single concrete node that has no ## field. For these, generates a type that has no valid value. type Field_Reference is %...
Typo ? I removed "-e" option from "pip install -e dist/*.whl # installs jaxlib (includes XLA)" line 58. It is now coherent with lines 69-70. When I tried the command with the "-e" it threw an error, without "-e" it worked fine.
@@ -55,7 +55,7 @@ You can install the necessary Python dependencies using ``pip``:: To build ``jaxlib`` with CUDA support, you can run:: python build/build.py --enable_cuda - pip install -e dist/*.whl # installs jaxlib (includes XLA) + pip install dist/*.whl # installs jaxlib (includes XLA) See ``python build/build.py ...
Fix arguments parsing in RandomGhosting Fixes
@@ -50,22 +50,40 @@ class RandomGhosting(RandomTransform): if axis not in (0, 1, 2): raise ValueError(f'Axes must be in (0, 1, 2), not "{axes}"') self.axes = axes - if isinstance(num_ghosts, int): - self.num_ghosts_range = num_ghosts, num_ghosts - elif isinstance(num_ghosts, tuple) and len(num_ghosts) == 2: - self.num_...
Fix ToTensor when PIL Image has mode F Fixes The only case of floating point supported by PIL seems to be `F`, so this should fix it.
@@ -59,6 +59,8 @@ def to_tensor(pic): img = torch.from_numpy(np.array(pic, np.int32, copy=False)) elif pic.mode == 'I;16': img = torch.from_numpy(np.array(pic, np.int16, copy=False)) + elif pic.mode == 'F': + img = torch.from_numpy(np.array(pic, np.float32, copy=False)) else: img = torch.ByteTensor(torch.ByteStorage.fr...
Remove unused variable My editor keeps moaning about it.
@@ -164,7 +164,6 @@ def measure_by_ccg(request, format=None): org_ids = utils.param_to_list(request.query_params.get('org', [])) tags = [x for x in request.query_params.get('tags', '').split(',') if x] - rolled = {} measure_values = MeasureValue.objects.by_ccg(org_ids, measure_id, tags) rsp_data = {
Extend the incremental marker for parametrize The incremental marker is adapted to handle properly test classes with parametrize defined at class level. Fix
@@ -461,21 +461,49 @@ an ``incremental`` marker which is to be used on classes: # content of conftest.py - import pytest + # store history of failures per test class name and per index in parametrize (if parametrize used) + _test_failed_incremental: Dict[str, Dict[Tuple[int, ...], str]] = {} def pytest_runtest_makerepo...
add Namespace.add_field This patch adds the add_field method to namespace v2 to facilitate the creation of fields that have the same name as their argument.
@@ -709,6 +709,24 @@ class Namespace: raise ValueError('Cannot define the jacobian {!r}: dimension is negative.'.format(jacobian)) setattr(self, jacobian, function.jacobian(geom, numpy.size(geom) - i)) + def add_field(self, __names: Union[str, Sequence[str]], *__bases, shape: Tuple[int, ...] = (), dtype: function.DType...
Missing Sample Updated to show missing sample text for a response.
@@ -144,11 +144,12 @@ General Issues 2. If an issue has a Jira ticket with a ``help-wanted`` label, there is a Help Wanted ticket in GitHub. It can be closed with the following note: .. code-block:: text + Hi @username Thanks for the report! We have created a [Help Wanted issue here](link to GitHub issue) and are looki...
Attempt to fix pipe_to unit test on Windows (for real this time) The previous fix was apparently broken when I checked in with Linux line endings. This approach should be independent of that.
@@ -406,13 +406,10 @@ def test_pipe_to_shell(base_app): # Windows # Get help menu and pipe it's output to the sort shell command out = run_cmd(base_app, 'help | sort') - expected = normalize(""" - - -_relative_load edit history pause pyscript run set shortcuts -======================================== -cmdenvironment h...
Update Task API Including ended_at in datetime_fields Removing unnecessary DateTimeFilters
@@ -27,8 +27,10 @@ class TaskSerializer(serializers.ModelSerializer): 'created_at', 'task_name', 'database', + 'rollback', 'relevance', + 'ended_at', ) def get_relevance(self, task): @@ -87,20 +89,6 @@ class TaskSerializer(serializers.ModelSerializer): return None -class EventFilter(filters.FilterSet): - class Meta: - ...
Update CONTRIBUTING.md Update the contributing instructions to use python-poetry instead of sdispater as the repository namespace.
@@ -87,7 +87,7 @@ You will need Poetry to start contributing on the Poetry codebase. Refer to the You will first need to clone the repository using `git` and place yourself in its directory: ```bash -$ git clone git@github.com:sdispater/poetry.git +$ git clone git@github.com:python-poetry/poetry.git $ cd poetry ```
Fix handling of ZFIT_DISABLE_TF_WARNING environment variable. The logic in _maybe_disable_warnings() did not actually do what the warning about the suppression of TensorFlow warnings claimed. Setting the environment variable had no effect. Also slightly simplified the wording of the warning.
"""Top-level package for zfit.""" # Copyright (c) 2021 zfit -import inspect -import sys import warnings from pkg_resources import get_distribution @@ -32,15 +30,16 @@ __all__ = ["z", "constraint", "pdf", "minimize", "loss", "core", "data", "func", def _maybe_disable_warnings(): import os - true = "IS_TRUE" - if not os....
Add flag to disable reservation cleanup This shouldn't be needed on our patched version of k8s that doesn't send offers to maint'd hosts. This adds a flag so I can disable it in the cron job that cleans up maint'd hosts.
@@ -42,6 +42,10 @@ def parse_args(): '-v', '--verbose', action='store_true', dest="verbose", default=False, ) + parser.add_argument( + '--disable-reservation-cleanup', action='store_true', + dest="disable_reservation_cleanup", default=False, + ) args = parser.parse_args() return args @@ -100,6 +104,7 @@ def main(): cle...
update googlebenchmark version updates googlebenchmark version to match RMM/cuDF
@@ -4,7 +4,7 @@ include(ExternalProject) ExternalProject_Add(GoogleBenchmark GIT_REPOSITORY https://github.com/google/benchmark.git - GIT_TAG main + GIT_TAG v1.5.1 SOURCE_DIR "${GBENCH_ROOT}/googlebenchmark" BINARY_DIR "${GBENCH_ROOT}/build" INSTALL_DIR "${GBENCH_ROOT}/install"
[modules/spotify] enable scrolling this change should enable scrolling for the spotify module (unfortunately, i am unable to fully test this, as i am not using spotify) fixes
@@ -110,7 +110,8 @@ class Module(core.module.Module): def hidden(self): return self.string_song == "" - def __get_song(self): + @core.decorators.scrollable + def __get_song(self, widget): bus = self.__bus if self.__bus_name == "spotifyd": spotify = bus.get_object( @@ -128,11 +129,10 @@ class Module(core.module.Module):...
Fix "platform_adaptation" documentation test on windows For reasons I don't full understand, including "windows.h" seems to break everything. There's an alternative sleep function in stdlib.h so I've used that instead since it makes the point just as well.
cdef extern from *: """ #if defined(_WIN32) || defined(MS_WINDOWS) || defined(_MSC_VER) - #define WIN32_LEAN_AND_MEAN - #include <windows.h> - #define myapp_sleep(m) Sleep(m) + #include "stdlib.h" + #define myapp_sleep(m) _sleep(m) #else #include <unistd.h> #define myapp_sleep(m) ((void) usleep((m) * 1000))
Fix typos Fixed minor typos - Azaras to Azara's / Ruis' to Rui's
@@ -89,7 +89,7 @@ True ## 4. Combine matched records -Implement the `create_record()` function that takes a `(treasure, coordinate)` pair from Azaras list and a `(location, coordinate, quadrant)` record from Ruis' list and returns `(treasure, coordinate, location, coordinate, quadrant)` **if the coordinates match**. +I...
Allow nic-config conversion without Heat The current script requires the orchestration (Heat) be available. This change will allow the script to convert existing templates provided without the orchestration service present.
@@ -82,6 +82,13 @@ def parse_opts(argv): parser.add_argument('template', metavar='TEMPLATE_FILE', help='Existing NIC config template to convert.') + parser.add_argument('--standalone', + default=False, + action='store_true', + help='This switch allows the script to operate in ' + 'environments where the orchestration s...
Fix Sphinx crossrefs to 'Client'. Broken by move to 'spanner_v1' (the aliases in 'spanner' are not honored). Closes
@@ -42,23 +42,23 @@ Spanner Client Instantiating a Client ---------------------- -To use the API, the :class:`~google.cloud.spanner.client.Client` +To use the API, the :class:`~google.cloud.spanner_v1.client.Client` class defines a high-level interface which handles authorization and creating other objects: .. code:: p...
[TVMC] Keep quantized weights when importing PyTorch model BYOC requires `keep_quantized_weight` be set to true when converting PyTorch models using `from_torch`. Setting this to be True when using TVMC.
@@ -262,7 +262,9 @@ class PyTorchFrontend(Frontend): input_shapes = list(shape_dict.items()) logger.debug("parse Torch model and convert into Relay computation graph") - return relay.frontend.from_pytorch(traced_model, input_shapes, **kwargs) + return relay.frontend.from_pytorch( + traced_model, input_shapes, keep_quan...
Release: Make sure to check with pip locally before uploading to PyPI * This will avoid breakage like recently with runners wrongly handled by pip. * Only very basic test is done with pip installed Nuitka.
from __future__ import print_function import os +import sys +import shutil from nuitka.tools.release.Documentation import createReleaseDocumentation from nuitka.tools.release.Release import checkBranchName @@ -53,31 +55,31 @@ def main(): contents = open("README.rst", "rb").read() assert b".. contents" not in contents +...
Making the start of stop string to mark hidden tests configurable TODO: Find out why nbgrader quickstart does not put them into the configuration file?
@@ -3,13 +3,39 @@ import re from .. import utils from . import NbGraderPreprocessor +from traitlets import Unicode +from textwrap import dedent class RemoveHidden(NbGraderPreprocessor): + hidestart = Unicode( + '### HIDESTART', + config=True, + help=dedent( + """ + Suppose you want to hide some test cases from your stu...