message stringlengths 13 484 | diff stringlengths 38 4.63k |
|---|---|
Always upload cuspatial packages
Always upload cuspatial packages
Authors:
- Ray Douglass (https://github.com/raydouglass)
Approvers:
- AJ Schmidt (https://github.com/ajschmidt8)
- Jordan Jacobelli (https://github.com/Ethyling)
URL: | #!/usr/bin/env bash
-DEFAULT_CUDA_VER="11.5"
-DEFAULT_PYTHON_VER="3.8"
-
-#Upload cuspatial once per PYTHON
-if [[ "$CUDA" == "${DEFAULT_CUDA_VER}" ]]; then
export UPLOAD_CUSPATIAL=1
-else
- export UPLOAD_CUSPATIAL=0
-fi
-
-#Upload libcuspatial once per CUDA
-if [[ "$PYTHON" == "${DEFAULT_PYTHON_VER}" ]]; then
export U... |
Update napalm_syslog engine to use auth class
We have changed napalm-logs to have a keep alive so when the server
restarts the client automatically re-authenticates. This PR changes the
salt engine to make use of the new keep alive.
napalm-logs PR | @@ -312,9 +312,10 @@ def start(transport='zmq',
if not certificate:
log.critical('Please use a certificate, or disable the security.')
return
- priv_key, verify_key = napalm_logs.utils.authenticate(certificate,
+ auth = napalm_logs.utils.ClientAuth(certificate,
address=auth_address,
port=auth_port)
+
transport_recv_fun... |
Plugins: Reassign syntaxes after install before uninstall
Fixes
Removing the package means deleting the syntax file. While PC sets all
open files to Plain Text, we might try to assign default Markdown syntax
before uninstalling the package.
After installation assign all open files to
Packages/MarkdownEditing/Markdown.s... | @@ -21,6 +21,14 @@ def save_ingored_packages(ignored_packages):
def disable_native_markdown_package():
ignored_packages = get_ingored_packages()
if 'Markdown' not in ignored_packages:
+ reassign_syntax(
+ 'Packages/Markdown/Markdown.sublime-syntax',
+ 'Packages/MarkdownEditing/Markdown.sublime-syntax'
+ )
+ reassign_sy... |
Add inactive status to practice meta title
So it shows up in search results. | {% load template_extras %}
{% load humanize %}
-{% block title %}Prescribing measures for {{ practice }}{% endblock %}
+{% block title %}Prescribing measures for {{ practice }}{{ practice.inactive_status_suffix }}{% endblock %}
{% block active_class %}practice{% endblock %}
{% block extra_css %}
|
Added Node version limitation hint
Thanks! | @@ -18,7 +18,7 @@ See [keyword documentation](https://marketsquare.github.io/robotframework-browse
Only Python 3.7 or newer is supported.
-1. Install node.js e.g. from https://nodejs.org/en/download/
+1. Install node.js e.g. from https://nodejs.org/en/download/ (only < v15 supported; if unsure, use 14.15.0 LTS)
2. Inst... |
[Hockey] remove extra params to make command easier to use to lookup players.
prefer displaying onRoster players first but don't limit all players by it. | @@ -20,7 +20,7 @@ from .dev import HockeyDev
from .errors import InvalidFileError, NotAValidTeamError, UserHasVotedError, VotingHasEndedError
from .game import Game
from .gamedaychannels import GameDayChannels
-from .helper import HockeyStandings, HockeyStates, HockeyTeams, TeamDateFinder, YearFinder
+from .helper impo... |
Improvements List Database Page
New Engine name - Engine.version2 + Topology.details
New Custom Filter - Engine
- Custom lookup returning only active engines
- Custom queryset based on provided engine id | @@ -8,6 +8,7 @@ from functools import partial
from bson.json_util import loads
from django.utils.translation import ugettext_lazy as _
from django_services import admin
+from django.contrib.admin import SimpleListFilter
from django.shortcuts import render_to_response
from django.template import RequestContext
from djan... |
Fix up stylint lint handling to account for differential behaviour when
style code is parseable or not. | @@ -68,7 +68,7 @@ function lint({ file, write, encoding = 'utf-8', silent = false } = {}) {
return;
}
const source = buffer.toString();
- let formatted;
+ let formatted = source;
let messages = [];
// Array of promises that we need to let resolve before finishing up.
let promises = [];
@@ -114,16 +114,12 @@ function li... |
Update discord backend
Discord always asks permission | @@ -10,12 +10,14 @@ class DiscordOAuth2(BaseOAuth2):
AUTHORIZATION_URL = 'https://discordapp.com/api/oauth2/authorize'
ACCESS_TOKEN_URL = 'https://discordapp.com/api/oauth2/token'
ACCESS_TOKEN_METHOD = 'POST'
+ REVOKE_TOKEN_URL = 'https://discordapp.com/api/oauth2/token/revoke'
+ REVOKE_TOKEN_METHOD = 'GET'
DEFAULT_SCO... |
NY: May 28th
Closes
Closes
Closes | @@ -88,6 +88,41 @@ id: ny-merrick-1
## New York City
+### Police make violent arrests, officer breaks baton striking protestor | May 28th
+
+Footage taken at Union Square and East 17th street shows multiple officers grabbing and shoving a protestor to make an arrest. Another protestor confronts an officer who strikes t... |
Distance: handle heterogeneous and multidimensional variables
e.g. [[0, 0], [0, 0, 0]] will cause np.max calls to fail | @@ -1140,7 +1140,14 @@ class Distance(ObjectiveFunction):
"""
+ try:
+ v1 = np.hstack(variable[0])
+ except TypeError:
v1 = variable[0]
+
+ try:
+ v2 = np.hstack(variable[1])
+ except TypeError:
v2 = variable[1]
# Maximum of Hadamard (elementwise) difference of v1 and v2
|
config: change cacert.pem to cacert.crt
keylime_ca uses cacert.crt not cacert.pem | @@ -226,7 +226,7 @@ registrar_tls_dir = CV
# The following three options set the filenames where the CA certificate,
# client certificate, and client private key file are, relative to the 'tls_dir'.
-# If 'tls_dir = default', then default values will be used for 'ca_cert = cacert.pem',
+# If 'tls_dir = default', then d... |
request_client: add the option to ignore hostname validation
For most certificates we do not care about the hostname | @@ -5,14 +5,20 @@ Copyright 2017 Massachusetts Institute of Technology.
import requests
+from requests.adapters import HTTPAdapter
+from requests.packages.urllib3.poolmanager import PoolManager # pylint: disable=import-error
+
class RequestsClient:
- def __init__(self, base_url, tls_enabled, **kwargs):
+ def __init__(s... |
Add an allow_moderation_roles argument to the wait_for_deletion() util
The `allow_moderation_roles` bool can be specified to allow anyone with a role in `MODERATION_ROLES` to delete
the message. | @@ -11,7 +11,7 @@ from discord.errors import HTTPException
from discord.ext.commands import Context
import bot
-from bot.constants import Emojis, NEGATIVE_REPLIES
+from bot.constants import Emojis, NEGATIVE_REPLIES, MODERATION_ROLES
log = logging.getLogger(__name__)
@@ -22,12 +22,15 @@ async def wait_for_deletion(
dele... |
Fix search
// in the url was making the search fail | @@ -26,7 +26,7 @@ class ListNovelCrawler(Crawler):
def search_novel(self, query):
query = quote_plus(query.lower())
- soup = self.get_soup(search_url % (self.home_url, query))
+ soup = self.get_soup(search_url % (self.home_url.removesuffix("/"), query))
results = []
for tab in soup.select('.sect-body .thumb-item-flow')... |
Ignore extrafanart invocations on each addon path
E.g. Black Glass Nova skin use extrafanart, and call multiple times the addon at each path,
mainly cause problem with the playback, but also makes multiple list loads | @@ -111,16 +111,19 @@ def lazy_login(func):
def route(pathitems):
"""Route to the appropriate handler"""
LOG.debug('Routing navigation request')
- root_handler = pathitems[0] if pathitems else G.MODE_DIRECTORY
+ if pathitems:
+ if 'extrafanart' in pathitems:
+ LOG.warn('Route: ignoring extrafanart invocation')
+ return... |
api_docs: Add "StreamIdInPath" common component.
To facilitate re-use of the same parameters in other paths, this commit
store the content of the parameter "stream_id" (in path) in components. | @@ -1666,14 +1666,7 @@ paths:
description: |
Get all the topics in a specific stream.
parameters:
- - name: stream_id
- in: path
- description: |
- The unique ID of the stream.
- schema:
- type: integer
- example: 42
- required: true
+ - $ref: '#/components/parameters/StreamIdInPath'
responses:
'200':
description: Succ... |
Update staging.yaml
removed some merged branches | @@ -52,15 +52,9 @@ branches:
- es/module-display # Ethan March 4th
#- nh/cdc/one_domain # Norman March 26
- sr-ucr-mirror # Sravan May 1
- - mk/ccz-hosting-revamp # MK May 6
- fr/case-templates # FR May 15
- #- mk/media-version-on-revert # MK May 16
- form-odata # Nick P May 21
- web-user-reports-project-access # Gabri... |
DOC: updated CHANGELOG
Updated changelog to include this fix. | @@ -30,6 +30,7 @@ This project adheres to [Semantic Versioning](http://semver.org/).
- Fixed pysat_testing method definition to include mangle_file_dates keyword
- Added small time offsets (< 1s) to ensure COSMIC files and data have unique times
- Updates to Travis CI environment
+ - Removed `inplace` use in xarray `as... |
Add an integration test for dx download within inaccessible project
Summary:
The integration test for dx download executed from a project
the user had lost access to.
Test Plan: this test passed in jenkins dxpy-branch-integration-tests-on-staging
Reviewers: sking | @@ -1363,6 +1363,41 @@ class TestDXClientUploadDownload(DXTestCase):
# Even after project 1 is destroyed, the download URL should still work
run("wget -O /dev/null " + download_url)
+ @unittest.skipUnless(testutil.TEST_ENV,
+ 'skipping test that would clobber your local environment')
+ def test_dx_download_when_current... |
resolve lint error in firewalld state
'String formatting used in logging' for invalid ICMP type | @@ -424,7 +424,7 @@ def _present(name,
ret['comment'] = 'Error: {0}'.format(err)
return ret
else:
- log.error('{0} is an invalid ICMP type'.format(icmp_type))
+ log.error('%s is an invalid ICMP type', icmp_type)
if prune_block_icmp:
old_icmp_types = set(_current_icmp_blocks) - set(block_icmp)
|
Changes to Mattermost Partner Programs
Clarified some steps in the process | @@ -15,19 +15,25 @@ The purpose of the Mattermost Authorized Reseller Program is to enable customers
Companies who enter into a Mattermost Authorized Reseller agreement typically have existing relationships with customers and help them procure information technology products.
-Purchasing as a Mattermost Authorized Rese... |
Add more multiprocessing function stubs
Fixes | # Stubs for multiprocessing
-from typing import Any, Callable, Iterable, Mapping, Optional, Dict, List
+from typing import Any, Callable, Iterable, Mapping, Optional, Dict, List, Union
+from logging import Logger
from multiprocessing.context import BaseContext
from multiprocessing.managers import SyncManager
from multi... |
Update reduction_examples.rst
Add reduceccd | @@ -6,9 +6,12 @@ Here are some examples and different repositories using `ccdproc`.
* `ipython notebook`_
* `WHT basic reductions`_
* `pyhrs`_
+* `reduceccd`_
.. _ipython notebook: http://nbviewer.ipython.org/gist/mwcraig/06060d789cc298bbb08e
.. _WHT basic reductions: https://github.com/crawfordsm/wht_reduction_scripts... |
fix: add files under tests/ missing in sdist
Add files under tests/ missing, tests/res/20-00-cnf.sh for example, in
sdist by fixing the glob patterns in MANIFEST.in.
It may close I think. | @@ -8,4 +8,5 @@ include docs/api/*.*
include pkg/*
include setup.py
recursive-include src *.py
-recursive-include tests *.py *.yml *.txt *.json *.yml
+# for f in tests/**/*.* ; do echo ${f/*\./*.}; done | sort | uniq
+recursive-include tests *.ini *.json *.properties *.py *.sh *.toml *.xml *.yml
|
Prevent reloads when filters don't change
Fixes | @@ -122,10 +122,12 @@ export default class FilterDropdown extends React.Component {
};
handleClose = () => {
- const {onClose, setGlobalState} = this.props;
+ const {onClose, setGlobalState, initialValues} = this.props;
const {fieldValues} = this.state;
+ if (!_.isEqual(initialValues, fieldValues)) {
this.setRenderedVa... |
fix bugs in load balancing, hot thermal production
Production limits in constraint (4f) should be specific to Boiler, not all heating technologies
Electric Chiller consumption now included in electrical load balancing in time periods with with no grid access | @@ -344,7 +344,7 @@ function add_storage_op_constraints(m, p)
)
# Constraint (4f)-1: (Hot) Thermal production sent to storage or grid must be less than technology's rated production
if !isempty(p.BoilerTechs)
- @constraint(m, HeatingTechProductionFlowCon[b in p.HotTES, t in p.HeatingTechs, ts in p.TimeStep],
+ @constra... |
CI: conftest.json files opened as utf-8
(Otherwise Windows is not able to read utf-8 encoded strings for new node text) | @@ -171,7 +171,7 @@ def is_current_version_compatible(test_id,
png1 = os.path.join(tmp_dir, "1.png")
png2 = os.path.join(tmp_dir, "2.png")
- config = json.load(open(json_config))
+ config = json.load(open(json_config, encoding="utf-8"))
check_render = config["check"]["render"]
render_options = {}
|
ViewportGadget : Don't reset centre of interest in `setCamera()`
This fixes the following bugs :
Centre of interest lost after adjusting clipping planes or field of view
in the SceneView.
Centre of interest lost after switching to a look-through camera and back
in the SceneView. | @@ -76,6 +76,7 @@ class ViewportGadget::CameraController : public boost::noncopyable
public :
CameraController( IECoreScene::CameraPtr camera )
+ : m_centreOfInterest( 1.0f )
{
setCamera( camera );
}
@@ -96,8 +97,6 @@ class ViewportGadget::CameraController : public boost::noncopyable
{
m_fov = nullptr;
}
-
- m_centreOf... |
resources: default creator: avoid None
current_user can be None as well (in the execution-scheduler).
In that case, fall back to the `parent_instance` part. | @@ -123,7 +123,7 @@ class SQLResourceBase(SQLModelBase):
with db.session.no_autoflush:
if not self.creator:
user = current_user._get_current_object()
- if user.is_authenticated:
+ if user is not None and user.is_authenticated:
self.creator = user
else:
self.creator = parent_instance.creator
|
Modify test_dates_not_supported_by_date_time()...
... to check for just a substring instead | @@ -717,9 +717,7 @@ class TestFreshnessDateDataParser(BaseTestCase):
self.given_parser()
self.given_date_string(date_string)
self.when_date_is_parsed()
- if isinstance(self.error, ValueError):
- self.error = ValueError(re.sub('year [-+]*\d+ is out of range','year is out of range',str(self.error)))
- self.then_error_was... |
Fix a broken join
Related to | @@ -54,7 +54,7 @@ FROM
INNER JOIN
{project}.{hscic}.normalised_prescribing_standard rx
ON
- rx.month = dt.date
+ rx.month = TIMESTAMP(dt.date)
AND rx.bnf_code = dt.bnf_code
WHERE
-- These can be prescribed fractionally, but BSA round quantity down,
|
Update sso-saml-ldapsync.rst
Added "to Mattermost" for uniformity with the sentence above. | @@ -27,5 +27,5 @@ Once the synchronization with AD/LDAP is enabled, user attributes are synchroniz
.. note::
If a user is deactivated from AD/LDAP, they will be deactivated in Mattermost on the next sync. They will be shown as "Inactive" in the System Console users list, all of their sessions will expire and they won't... |
Update palindrome_products_test.py
Changes two tests to assertFactorsEqual in order to allow implementations that don't use lists to pass. | @@ -62,12 +62,12 @@ class PalindromeProductsTest(unittest.TestCase):
def test_empty_for_smallest_palindrome_if_none_in_range(self):
value, factors = smallest_palindrome(min_factor=1002, max_factor=1003)
self.assertIsNone(value)
- self.assertEqual(factors, [])
+ self.assertFactorsEqual(factors, [])
def test_empty_for_la... |
Docstring typo
Should be "...max..." instead of "...sum..." | @@ -2846,7 +2846,7 @@ If you wish to change this behavior, please set discard_failed_expectations, dis
):
"""Expect the column max to be between an min and max value
- expect_column_sum_to_be_between is a :func:`column_aggregate_expectation <great_expectations.dataset.base.Dataset.column_aggregate_expectation>`.
+ expe... |
Update checkdb.py
need if env == 'development': block for staging and production deploys | @@ -3,14 +3,14 @@ import os
from keys import *
from psycopg2.extensions import ISOLATION_LEVEL_AUTOCOMMIT
-
+env = os.getenv('APP_ENV')
dbname = os.getenv("DB_NAME")
+
+if env == 'development':
dbhost = dev_database_host
dbuser = dev_user
dbpass = dev_user_password
-env = os.getenv('APP_ENV')
-
-if env == 'staging':
+e... |
fix(deploy): Allow all Partitions for S3 Policy on managed stack
Solves where creating the managed stack in any partition but aws
will fail. | @@ -17,6 +17,7 @@ from samcli import __version__
from samcli.cli.global_config import GlobalConfig
from samcli.commands.exceptions import UserException, CredentialsError, RegionError
+
SAM_CLI_STACK_NAME = "aws-sam-cli-managed-default"
LOG = logging.getLogger(__name__)
@@ -142,9 +143,10 @@ def _get_stack_template():
Fn... |
Fixed typo in README.md
fixed typo RECOMMAND -> RECOMMEND in line 286 | @@ -283,7 +283,7 @@ cd data/
unzip libri_fmllr_cmvn.zip # features used for TERA
```
-### On-the-fly Feature Extraction (RECOMMANDED)
+### On-the-fly Feature Extraction (RECOMMENDED)
- This feature allow users to run training and testing with out preprocessing data, feature extraction is done during runtime (This will ... |
request_force_close: add 1s delay before closing the tranport,
so that the remote task does not get cancelled. | @@ -2268,15 +2268,20 @@ class LNWallet(LNWorker):
peer_addr = LNPeerAddr(host, port, node_id)
transport = LNTransport(privkey, peer_addr, proxy=self.network.proxy)
peer = Peer(self, node_id, transport, is_channel_backup=True)
+ async def trigger_force_close_and_wait():
+ # wait before closing the transport, so that
+ #... |
2.6.1
Automatically generated by python-semantic-release | @@ -9,7 +9,7 @@ https://community.home-assistant.io/t/echo-devices-alexa-as-media-player-testers
"""
from datetime import timedelta
-__version__ = "2.6.0"
+__version__ = "2.6.1"
PROJECT_URL = "https://github.com/custom-components/alexa_media_player/"
ISSUE_URL = "{}issues".format(PROJECT_URL)
|
_set_heat_capacity_P_polyfit: missing factor 2 in dvdt
method QHA._set_heat_capacity_P_polyfit :
if equilibrium volumes vs T is a polynomial of degree 2, then dvdt should be parameters[0] * 2 * t + parameters[1] | @@ -848,7 +848,7 @@ class QHA(object):
msg = ("Failed to fit equilibrium volumes vs T to "
"polynomial of degree 2.")
raise RuntimeError(msg)
- dvdt = parameters[0] * t + parameters[1]
+ dvdt = parameters[0] * 2 * t + parameters[1]
cp.append(cv_p + t * dvdt * dsdv_t)
dsdv.append(dsdv_t)
|
Fix minor typo in pong tutorial code comments
While reading through the pong tutorial code, I noticed that `of` should
have been `off` in code comments. This commit fixes the issue. | @@ -40,7 +40,7 @@ class PongGame(Widget):
def update(self, dt):
self.ball.move()
- # bounce of paddles
+ # bounce off paddles
self.player1.bounce_ball(self.ball)
self.player2.bounce_ball(self.ball)
@@ -48,7 +48,7 @@ class PongGame(Widget):
if (self.ball.y < self.y) or (self.ball.top > self.top):
self.ball.velocity_y *=... |
Clarified config setting unit of measure
Updated Idle Timeout config setting to clarify that the value specified is seconds. Addresses | @@ -336,7 +336,7 @@ Read Timeout
|all-plans| |self-hosted|
-Maximum time allowed from when the connection is accepted to when the request body is fully read.
+Maximum time allowed in seconds from when the connection is accepted to when the request body is fully read.
+---------------------------------------------------... |
We only need to force a hardware buffer
Use the optimal sound format if the hardware supports it | // quality and more!
// Launch Options:
-// -novid -nojoy -noff -nohltv -nouserclip -softparticlesdefaultoff -reuse -usetcp -NoQueuedPacketThread -primarysound -snoforceformat
+// -novid -nojoy -noff -nohltv -nouserclip -softparticlesdefaultoff -reuse -usetcp -NoQueuedPacketThread -primarysound
//
// -novid : disables ... |
HAProxy: fix bind mount to expose stats socket
configures the HAProxy
service to expose the stats socket with a bind mount, however the
main service container doesn't use that bind mount. Fix that. | @@ -211,7 +211,7 @@ outputs:
# the necessary bit and prevent systemd to try to reload the service in the container
- /usr/libexec/iptables:/usr/libexec/iptables:ro
- /usr/libexec/initscripts/legacy-actions:/usr/libexec/initscripts/legacy-actions:ro
- - /var/lib/haproxy:/var/lib/haproxy
+ - /var/lib/haproxy:/var/lib/hap... |
Fix ML Engine Dashboard link
from Google internal link | @@ -233,7 +233,7 @@ submit training` command is correct. ML Engine does not distinguish between
training and evaluation jobs.
Users can monitor and stop training and evaluation jobs on the [ML Engine
-Dasboard](https://pantheon.corp.google.com/mlengine/jobs).
+Dasboard](https://console.cloud.google.com/mlengine/jobs).
... |
tests: Verify logs of incoming webhook profile api key validation.
This commit verify warning logs while testing validate_api_key and
profile is incoming webhook but is_webhook is not set to True.
Verification is done using assertLogs so that logs does not cause spam
by printing in the test output. | @@ -1341,9 +1341,12 @@ class TestValidateApiKey(ZulipTestCase):
self._change_is_active_field(self.default_bot, True)
def test_validate_api_key_if_profile_is_incoming_webhook_and_is_webhook_is_unset(self) -> None:
- with self.assertRaises(JsonableError):
+ with self.assertRaises(JsonableError), self.assertLogs(level="WA... |
Update README.md
Add link to new language_modes.talon for enabling programming languages. | @@ -168,8 +168,8 @@ Specific programming languages may be activated by voice commands, or via title
Activating languages via commands will enable the commands globally, e.g. they'll work in any application. This will also disable the title tracking method (code.language in .talon files) until the "clear language modes"... |
Make loop optional in asyncio.Queue
Default value is `None`, so `loop` should be optional. | @@ -2,7 +2,7 @@ import sys
from asyncio.events import AbstractEventLoop
from .coroutines import coroutine
from .futures import Future
-from typing import Any, Generator, Generic, List, TypeVar
+from typing import Any, Generator, Generic, List, TypeVar, Optional
__all__: List[str]
@@ -13,7 +13,7 @@ class QueueFull(Excep... |
do not use dedup key for freebsd.
HG--
branch : feature/microservices | @@ -18,7 +18,7 @@ load_rc_config $name
pidfile="/var/run/consul/consul-template.pid"
command="{{ consul_template_bin_path }}/consul-template"
-command_args="-config {{consul_template_config_dir}}/ -pid-file=${pidfile} -dedup -kill-signal=SIGTERM &"
+command_args="-config {{consul_template_config_dir}}/ -pid-file=${pidf... |
test chunk iname with integral loop bouunds
This fails on main because unlike the other variant of this test the expression
is piecewise quasi-affine, but not quasi-affine thereby not being caught in
loopy.symbolic.with_aff_conversion_guard and subsequently failing. | @@ -50,7 +50,8 @@ __all__ = [
from loopy.version import LOOPY_USE_LANGUAGE_VERSION_2018_2 # noqa
-def test_chunk_iname(ctx_factory):
+@pytest.mark.parametrize("fix_parameters", (True, False))
+def test_chunk_iname(ctx_factory, fix_parameters):
ctx = ctx_factory()
knl = lp.make_kernel(
@@ -65,7 +66,13 @@ def test_chunk_... |
channel save <channel>
Added a command to save out a channel or multiple channels. | @@ -7,6 +7,7 @@ class Console(Module, Pipe):
def __init__(self):
Module.__init__(self)
Pipe.__init__(self)
+ self.channel_file = None
self.channel = None
self.pipe = None
self.buffer = ''
@@ -112,6 +113,11 @@ class Console(Module, Pipe):
yield COMMAND_SET_ABSOLUTE
return move
+ def channel_file_write(self, v):
+ if sel... |
[OVN] Bump up transaction timeout for functional tests
On heavy loaded environments, like Neutron gates, we can
observe sporadic failures of functional tests, that are
timeouts.
Lets increase the timeout value to 15 seconds for functional
tests because looks like 5 seconds is not enought.
Closes-Bug: | @@ -260,11 +260,11 @@ class TestOVNFunctionalBase(test_plugin.Ml2PluginV2TestCase,
set_cfg('ovn_sb_certificate', self.ovsdb_server_mgr.certificate, 'ovn')
set_cfg('ovn_sb_ca_cert', self.ovsdb_server_mgr.ca_cert, 'ovn')
- # 5 seconds should be more than enough for the transaction to complete
- # for the test cases.
- # ... |
Define multiSelect widget template
Knockout uses selectedOptions, not value, for multiple select | </span>
</script>
+<script type="text/html" id="CommcareSettings.widgets.multiSelect">
+ <span>
+ <span data-bind="if: valueIsLegal()">
+ <select multiple="multiple"
+ class="col-sm-3 form-control"
+ data-bind="options: options,
+ selectedOptions: selectedOptions,
+ optionsText: 'label',
+ attr: {
+ disabled: !enabled(... |
add adopter
* Update ADOPTERS.md
add adopter
* keep the list in alphabetical order | @@ -12,4 +12,5 @@ Please keep the list in alphabetical order.
| [canonical](https://ubuntu.com/) |[@RFMVasconcelos](https://github.com/rfmvasconcelos) | Hyperparameter tuning for customer projects in Defense and Fintech |
| [cisco](https://cisco.com/) |[@ramdootp](https://github.com/ramdootp) | Hyperparameter tuning fo... |
Fix DeprecationWarning from SciPy iterative solver
This addresses the following deprecation warning in SciPy 1.4.1:
```
scipy/sparse/linalg/isolve/iterative.py:2: DeprecationWarning: scipy.sparse.linalg.gmres called without specifying `atol`. The default value will be changed in a future release. For compatibility, spe... | +from functools import partial
import numpy as _np
from scipy.linalg import lstsq as _lstsq
from scipy.linalg import cho_factor as _cho_factor
@@ -56,11 +57,12 @@ class SR:
if self._use_iterative:
if lsq_solver is None:
- self._sparse_solver = gmres if self.is_holomorphic else minres
- elif lsq_solver == "gmres":
- sel... |
Tweak daemon docs
Summary: just a few cosmetic changes / missign links.
Test Plan: View daemon page
Reviewers: johann, prha, alangenfeld | @@ -9,11 +9,10 @@ import PyObject from 'components/PyObject';
# Dagster Daemon
Several Dagster features, like [schedules](/overview/schedules-sensors/schedules), [sensors](/overview/schedules-sensors/sensors),
-and run queueing, require a long-running `dagster-daemon` process to be included
+and [run queueing](/overvie... |
Fix typo in docs.
[skip ci] | @@ -685,7 +685,7 @@ currently:
* :py:class:`JSONField` field type, for storing JSON data.
* :py:class:`BinaryJSONField` field type for the ``jsonb`` JSON data type.
* :py:class:`TSVectorField` field type, for storing full-text search data.
-* :py:class:`DateTimeTZ` field type, a timezone-aware datetime field.
+* :py:cl... |
Documentation: Fix sphinx build failing;
Re-add previous check for sphinx | @@ -223,17 +223,20 @@ class Config:
else:
self.parser = ConfigParser.ConfigParser(defaults=os.environ)
+ # test to not fail when build the API doc
+ builds_doc = 'sphinx' in sys.modules
+
if 'RUCIO_CONFIG' in os.environ:
self.configfile = os.environ['RUCIO_CONFIG']
else:
configs = [os.path.join(confdir, 'rucio.cfg') fo... |
Delete these several lines
The `_register_rules` method on `Scheduler` was creating a Python set and adding a key associated with each rule to that set, but then never using it for anything. This commit removes that code. | @@ -168,18 +168,13 @@ class Scheduler:
"""Create a native Tasks object, and record the given RuleIndex on it."""
tasks = self._native.new_tasks()
- registered = set()
for output_type, rules in rule_index.rules.items():
for rule in rules:
- key = (output_type, rule)
- registered.add(key)
-
if type(rule) is TaskRule:
sel... |
Update sentinel1-slc.yaml
updated tutorial url | @@ -29,7 +29,7 @@ Resources:
DataAtWork:
Tutorials:
- Title: Interferometric Synthetic Aperture Radar Tutorial
- URL: https://github.com/live-eo/sentinel1-slc/
+ URL: https://github.com/live-eo/sentinel1-slc/blob/main/docs/tutorial_InSAR.md
AuthorName: LiveEO
AuthorURL: https://live-eo.com/
Tools & Applications:
|
FieldAccess: fix access to entity fields
FieldAccess.implicit_deref means that we automatically dereference the
receiver of the field access, not the retreived field. So there is no
need (and it is even incorrect) to strip the entity type for the
retreived field in our computations.
TN: | @@ -652,7 +652,6 @@ class FieldAccess(AbstractExpression):
if self.implicit_deref:
prefix = '{}.Node'.format(prefix)
- node_data_struct = node_data_struct.element_type
# If this is a node field/property, we must pass the precise type
# it expects for "Self".
|
lnworker: extend swap label only if we are still watching the address
Without this, old swap transactions for which we have deleted the
channel are incorrectly labeled. | @@ -936,6 +936,7 @@ class LNWallet(LNWorker):
amount_msat = 0
label = 'Reverse swap' if swap.is_reverse else 'Forward swap'
delta = current_height - swap.locktime
+ if self.wallet.adb.is_mine(swap.funding_txid):
tx_height = self.wallet.adb.get_tx_height(swap.funding_txid)
if swap.is_reverse and tx_height.height <= 0:
l... |
DOC: Fix import of default_rng
Fixes 19812 | @@ -235,7 +235,7 @@ library. Below, two arrays are created with shapes (2,3) and (2,3,2),
respectively. The seed is set to 42 so you can reproduce these
pseudorandom numbers::
- >>> import numpy.random.default_rng
+ >>> from numpy.random import default_rng
>>> default_rng(42).random((2,3))
array([[0.77395605, 0.4388784... |
[All] Add window_exists API function
Also make child window UIDs shorter and friendlier. | @@ -190,7 +190,7 @@ def create_window(title, url=None, width=800, height=600,
:param background_color: Background color as a hex string that is displayed before the content of webview is loaded. Default is white.
:return:
"""
- uid = 'webview' + uuid4().hex
+ uid = 'child_' + uuid4().hex[:8]
valid_color = r'^#(?:[0-9a-... |
Implementation of heat cdist(X,y,metric)
Case X.split is None and Y.split = 0 still needs design
currenly only 2D tensors supported
Bugfix for linalg.dot | @@ -44,8 +44,13 @@ def dot(a, b, out=None):
return a * b
elif a.numdims == 1 and b.numdims == 1:
# 1. If both a and b are 1-D arrays, it is inner product of vectors.
- if a.split is not None or b.split is not None:
+ if a.split is None and b.split is None:
+ sl = slice(None)
+ elif a.split is not None and b.split is no... |
doc: Update "Delegate to Hashed Bins" in tutorial
Explain and show output of delegate_hashed_bins() function call in
tutorial snippet.
Also update the subsequent comment for better continuity. | @@ -647,11 +647,24 @@ to some role.
>>> targets = repository.get_filepaths_in_directory(
... 'repository/targets/myproject', recursive_walk=True)
+# Delegate trust to 32 hashed bin roles. Each role is responsible for the set
+# of target files, determined by the path hash prefix. TUF evenly distributes
+# hexadecimal r... |
fix bloch sphere distortion
Matplotlib stopped to stretch the plot to fit it in a square box from 3.3.0. We do it manually. See | @@ -461,6 +461,9 @@ class Bloch:
self.axes.set_xlim3d(-0.7, 0.7)
self.axes.set_ylim3d(-0.7, 0.7)
self.axes.set_zlim3d(-0.7, 0.7)
+ # Manually set aspect ratio to fit a square bounding box.
+ # Matplotlib did this stretching for < 3.3.0, but not above.
+ self.axes.set_box_aspect((1, 1, 1))
self.axes.grid(False)
self.plo... |
Adding timestamps to the beginning of every test file in run_test
Summary: Pull Request resolved: | from __future__ import print_function
import argparse
+from datetime import datetime
import os
import shlex
import shutil
@@ -371,7 +372,8 @@ def main():
test_name = 'test_{}'.format(test)
test_module = parse_test_module(test)
- print_to_stderr('Running {} ...'.format(test_name))
+ # Printing the date here can help dia... |
Suppress pooch-related INFO messages
Files downloaded using geocat-datafiles were generating output cells in
generated documentation pages, this commit suppresses those messages. | @@ -87,3 +87,11 @@ sphinx_gallery_conf = {
html_theme_options = {
'navigation_depth': 2,
}
+
+# the following lines suppress INFO messages when files are downloaded using geocat.datafiles
+import geocat.datafiles
+import logging
+import pooch
+logger = pooch.get_logger()
+logger.setLevel(logging.WARNING)
+geocat.datafi... |
Add ContainerDefaultPidsLimit to set default pid limits in containers.conf
Starting With podman 2.X the default pids-limits has been halved from
4096 to 2048 (see the dep-on change for
more details).
Let's add a parameter to override this value so an operator can raise
this limit globally.
Depends-On: | @@ -53,6 +53,11 @@ parameters:
username: pa55word
'192.0.2.1:8787':
registry_username: password
+ ContainerDefaultPidsLimit:
+ type: number
+ default: 4096
+ description: Setting to configure the default pids_limit in /etc/container/container.conf.
+ This is supported starting with podman 2.0.x
SystemdDropInDependencie... |
Bump ffmpeg version
opencv requires a more recent ffmpeg.
Even though ffmpeg tends to add symbols when incrementing the
patch version, versions from 3.2.3 up to 3.2.5 don't add/remove
symbols when compared to each other. | @@ -41,7 +41,7 @@ pinned = {
'boost-cpp': 'boost-cpp 1.64.*', # NA
'bzip2': 'bzip2 1.0.*', # 1.0.6
'cairo': 'cairo 1.14.*', # 1.12.18
- 'ffmpeg': 'ffmpeg >=2.8,<2.8.11', # NA
+ 'ffmpeg': 'ffmpeg >=3.2.3,<3.2.6', # NA
'fontconfig': 'fontconfig 2.12.*', # 2.12.1
'freetype': 'freetype 2.7', # 2.5.5
'geos': 'geos 3.5.1', #... |
Adding more hooks
* bandit will perform a static code analysis, giving an report of
vulnerabilities.
* nosetests will simply run the existing test suite. | @@ -6,3 +6,15 @@ repos:
- id: end-of-file-fixer
- id: check-merge-conflict
- id: flake8
+
+- repo: https://github.com/PyCQA/bandit
+ rev: '1.6.2'
+ hooks:
+ - id: bandit
+
+- repo: local
+ hooks:
+ - id: nosetests
+ name: nosetests
+ entry: nosetests --with-coverage
+ language: system
|
add test for to_matrix method of standard gates
* start to_matrix method for ControlledGate
* add test to check to_matrix of standard gates
* remove stale code
* remove to_matrix from ControlledGate
consider adding back later.
* linting
* add exceptions to catch
* linting
* remove unused import | # pylint: disable=missing-docstring
import unittest
+from inspect import signature
-from qiskit import ClassicalRegister, QuantumCircuit, QuantumRegister
+from qiskit import ClassicalRegister, QuantumCircuit, QuantumRegister, execute
from qiskit.qasm import pi
from qiskit.exceptions import QiskitError
from qiskit.circu... |
Fix to have collectd only from EPEL
The Undercloud was receiving collectd from opstools which
requires install the extra collectd package (disk,python)
EPEL does not require those packages. | yum:
name: "{{ item }}"
state: present
+ disablerepo: "*"
+ enablerepo: "epel"
become: true
with_items:
- collectd
- collectd-apache
- collectd-ceph
- - collectd-disk
- collectd-mysql
- collectd-ping
- - collectd-python
- collectd-turbostat
+ when: collectd_from_epel
# (sai) Since we moved to containers we don't have j... |
move fire method back into RepeatRecord
now that it has been simplified | @@ -298,12 +298,6 @@ class Repeater(QuickCachedDocumentMixin, Document, UnicodeMixIn):
return HTTPDigestAuth(self.username, self.password)
return None
- def fire_for_record(self, repeat_record, force_send):
- if repeat_record.try_now() or force_send:
- repeat_record.overall_tries += 1
- self.post_for_record(repeat_reco... |
[Chore] Fixup tezos-baker-013-PtJakart.rb
Problem: Startup script for 'tezos-baker-013-PtJakart.rb' is written to
non-existing path. This causes build to fail.
Solution: Fix startup script path. | @@ -87,7 +87,7 @@ class TezosBaker013Ptjakart < Formula
launch_baker "$BAKER_ACCOUNT"
fi
EOS
- File.write("tezos-baker-013-PtJakart", startup_contents)
+ File.write("tezos-baker-013-PtJakart-start", startup_contents)
bin.install "tezos-baker-013-PtJakart-start"
make_deps
install_template "src/proto_013_PtJakart/bin_bak... |
Add extra development data so the All England page loads
Previously the absence of the PPU ImportLog entry caused the page to
throw an error. | from django.core.management import call_command
from django.core.management.base import BaseCommand
-from frontend.tests.test_api_spending import TestAPISpendingViewsPPUTable
+from frontend.models import ImportLog, PPUSaving
+from frontend.tests.test_api_spending import ApiTestBase, TestAPISpendingViewsPPUTable
class C... |
Do not generate API documentation for test classes
Our test classes are located in the same directory structure as the main
classes. They need to be excluded from the generation of documentation. | @@ -38,6 +38,7 @@ extensions = [
# Document Python Code
autoapi_type = 'python'
autoapi_dirs = [ '../../heat' ]
+autoapi_ignore= [ '*/tests/*' ]
# Add any paths that contain templates here, relative to this directory.
templates_path = ['_templates']
|
DOC: List venues for users' questions, discussion
[ci skip] | @@ -62,6 +62,15 @@ to perform basic tests. To try all available tests, ``./run_tests.py full``.
For alternatives and a summary of usage, ``./run_tests.py -h``
+Contact and support
+-------------------
+
+* Ask for help on the `tulip-control-users mailing list <https://sourceforge.net/p/tulip-control/mailman/tulip-contr... |
Fix Small Image Preview Sizing.
Before the sizing of the preview would be 100px in height regardless of
whether the image was that tall. Now it is any value up to 100px. | @@ -1997,11 +1997,16 @@ div.floating_recipient {
.message_inline_image {
margin-bottom: 5px;
margin-left: 5px;
- height: 100px;
+ max-height: 100px;
display: block !important;
border: none !important;
}
+/* this forces the line to have inline-block styling which gives it a height. */
+.message_inline_image a {
+ displa... |
Fix cluster_ CLI examples
Add missing "cluster_" to cluster_health, cluster_stats method doc | @@ -232,7 +232,7 @@ def cluster_health(index=None, level='cluster', local=False, hosts=None, profile
CLI example::
- salt myminion elasticsearch.health
+ salt myminion elasticsearch.cluster_health
'''
es = _get_instance(hosts, profile)
@@ -253,7 +253,7 @@ def cluster_stats(nodes=None, hosts=None, profile=None):
CLI exa... |
ceph-iscsi: set the pool name in the config file
When using a custom pool for iSCSI gateway then we need to set the pool
name in the configuration otherwise the default rbd pool name will be
used. | [config]
cluster_name = {{ cluster }}
+pool = {{ iscsi_pool_name }}
+
# API settings.
# The API supports a number of options that allow you to tailor it to your
# local environment. If you want to run the API under https, you will need to
|
Fixed Health plugin
Fixed PEP 8 issues and remove unused variable. | @@ -29,9 +29,6 @@ def health_bmi(jarvis, s):
return None
-
-
-
def bmi_categories(bmi):
if(bmi < 18.5):
category = "Underweight"
@@ -59,7 +56,6 @@ def health_calories(jarvis, s):
#Example: health calories woman 27 164 60 3
"""
- error = 0
strings = s.split()
if(len(strings) == 5):
gender = strings[0]
@@ -77,16 +73,8 @@... |
Dont clip page margins on account of body overflow
Though the `overflow` on the root element must be propagated to the
viewport we mustn't cut off the page margins in `draw_stacking_context()`
1. never clip when a PageBox is rendered
2. do the proposed clip when drawing the <BlockBox html>
fixes | @@ -184,6 +184,14 @@ def draw_stacking_context(context, stacking_context, enable_hinting):
# See http://www.w3.org/TR/CSS2/zindex.html
with stacked(context):
box = stacking_context.box
+
+ # apply the viewport_overflow to the html box, see #35
+ if box.element_tag == 'html' and (
+ stacking_context.page.style['overflow... |
python.talon: allow optional "state" before "raise"/"except"
Currently we have `state raise` and `raise {user.python_exception}`
commands. This annoyingly requires you to remember whether you are going
to say an exception name in order to know whether to say `state` or not.
Simpler to always allow it. | @@ -36,8 +36,9 @@ self taught: "self."
pie test: "pytest"
state past: "pass"
-raise {user.python_exception}: user.insert_between("raise {python_exception}(", ")")
-except {user.python_exception}: "except {python_exception}:"
+[state] raise {user.python_exception}:
+ user.insert_between("raise {python_exception}(", ")")... |
use awc_location_local instead of temp table
For some reason the agg query was joining on the temp table
that had been used to update the agg table
which only contained awc that were not already in the agg
table | @@ -47,8 +47,11 @@ class InactiveAwwsAggregationDistributedHelper(BaseICDSAggregationDistributedHel
def missing_location_query(self):
return """
- DROP TABLE IF EXISTS "{temp_tablename}";
- CREATE TEMPORARY TABLE "{temp_tablename}" AS SELECT
+ INSERT INTO "{table_name}" (
+ awc_id, awc_name, awc_site_code, supervisor_i... |
add endpoints to fetch a user based on their ID only
this functions the same as `validate_invitation_token`, but without
having the signed token, instead just the ID. This is so later endpoints
within the invite flow can also fetch the invited user | @@ -38,3 +38,15 @@ def validate_invitation_token(invitation_type, token):
return jsonify(data=invited_user.serialize()), 200
else:
raise InvalidRequest("Unrecognised invitation type: {}".format(invitation_type))
+
+
+@global_invite_blueprint.route('/service/<uuid:invited_user_id>', methods=['GET'])
+def get_invited_use... |
Fix OAuth flow for production setup.
Fixes | @@ -19,9 +19,9 @@ import shutil
import subprocess
import sys
+import google_auth_httplib2
from google_auth_oauthlib.flow import InstalledAppFlow
from googleapiclient import discovery
-import google_auth_httplib2
import httplib2
from local.butler import appengine
@@ -70,7 +70,7 @@ class DomainVerifier(object):
flow = In... |
Update widefield.py
Increased number of rays | @@ -37,7 +37,7 @@ def imagingPath(a=10, b=10, title=""):
# Input from the expected field of view
-nRays=100000
+nRays=1000000
objectHalfHeight = 5
inputRays = RandomUniformRays(yMax = objectHalfHeight,
yMin = -objectHalfHeight,
|
admin: Avoid passing unnecessary policy values to admin_tab.hbs.
We do not require values of realm_create_stream_policy,
realm_invite_to_stream_policy, realm_private_message_policy
and realm_wildcard_mention_policy in the organization settings
templates, as we handle the dropdown values of these settings
in javascript ... | @@ -72,12 +72,8 @@ export function build_page() {
server_inline_url_embed_preview: page_params.server_inline_url_embed_preview,
realm_default_twenty_four_hour_time_values: settings_config.twenty_four_hour_time_values,
realm_authentication_methods: page_params.realm_authentication_methods,
- realm_create_stream_policy: ... |
DOC: added summary to changelog
Added a summary of this pull request to the changelog. | @@ -7,6 +7,8 @@ This project adheres to [Semantic Versioning](https://semver.org/).
--------------------
* New Features
* Added the property `empty_partial` to the Constellation class
+ * Added the option to apply custom functions at the Constellation or
+ Instrument level within the Constellation class
* Added option ... |
Corrects the AUTH_PROFILE_MODULE
This takes the form of app_name.model_name, not a python path. | @@ -48,7 +48,7 @@ DEFAULT_FROM_EMAIL = 'noreply@comicframework.org'
ANONYMOUS_USER_NAME = 'AnonymousUser'
EVERYONE_GROUP_NAME = 'everyone'
-AUTH_PROFILE_MODULE = 'grandchallenge.profiles.UserProfile'
+AUTH_PROFILE_MODULE = 'profiles.UserProfile'
USERENA_USE_HTTPS = False
USERENA_DEFAULT_PRIVACY = 'open'
LOGIN_URL = '/a... |
chore: ignore storybook entries in test coverage
Since they are more or less secondary test code for visualising how
components look in the UI | "collectCoverageFrom": [
"src/**/*.{ts,tsx}",
"!**/node_modules/**",
- "!src/pb/**"
+ "!src/pb/**",
+ "!src/stories/**",
+ "!src/**/*.stories.tsx"
],
"resetMocks": true
},
|
commands/run: Update run output with final run config
The RunInfo object in the run output is initally created before the
config has been fully parsed therefore attributes for the project and
run name are never updated, once the config has been finalized make sure
to update the relavant information. | @@ -112,6 +112,11 @@ class RunCommand(Command):
'by running "wa list workloads".'
raise ConfigError(msg.format(args.agenda))
+ # Update run info with newly parsed config values
+ output.info.project = config.run_config.project
+ output.info.project_stage = config.run_config.project_stage
+ output.info.run_name = config... |
Error if dataset size = 1 batch.
Fix for the bug mentioned in | @@ -370,6 +370,7 @@ class Trainer(TrainerIO):
# determine when to check validation
self.val_check_batch = int(self.nb_tng_batches * self.val_check_interval)
+ self.val_check_batch = max(1, self.val_check_batch)
def __add_tqdm_metrics(self, metrics):
for k, v in metrics.items():
|
Update extensions.md
add babel extension | @@ -14,3 +14,5 @@ A list of Sanic extensions created by the community.
- [UserAgent](https://github.com/lixxu/sanic-useragent): Add `user_agent` to request
- [Limiter](https://github.com/bohea/sanic-limiter): Rate limiting for sanic.
- [Sanic EnvConfig](https://github.com/jamesstidard/sanic-envconfig): Pull environment... |
Update functions.rst
For New-Style functions, one should use ".apply()" method instead of "__call__()". | @@ -660,7 +660,7 @@ First, we have to define a function on variables:
return gx, gW, gb
def linear(x, W, b):
- return LinearFunction()(x, W, b)
+ return LinearFunction().apply((x, W, b))
This function takes three arguments: input, weight, and bias.
It can be used as a part of model definition, though is inconvenient si... |
Refactoring of DebugListener; no changes to functionality
Also added a little bit more documentation. | @@ -10,10 +10,12 @@ from cumulusci.tasks.robotframework.debugger import Breakpoint, Suite, Testcase,
class DebugListener(object):
"""A robot framework listener for debugging test cases
- This acts as the controller for the debugger. It is responsible for
- managing breakpoints.
+ This acts as the controller for the deb... |
fixup! Let dpkg.info expose package status
integration test | @@ -240,9 +240,9 @@ class PkgModuleTest(ModuleCase, SaltReturnAssertsMixin):
func = 'pkg.info_installed'
if grains['os_family'] == 'Debian':
- ret = self.run_function(func, ['bash-completion', 'dpkg'])
+ ret = self.run_function(func, ['bash', 'dpkg'])
keys = ret.keys()
- self.assertIn('bash-completion', keys)
+ self.as... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.