message stringlengths 13 484 | diff stringlengths 38 4.63k |
|---|---|
Correctly handle serve port option, fix
Thanks for catching it! | @@ -171,8 +171,8 @@ def register_command(subparsers):
parser.set_defaults(func=run)
parser.add_argument('--host', default='127.0.0.1',
help='Host to expose the demo serve on')
- parser.add_argument('--port', action='store_const', default=7878,
- const=int, help='Port to expose the demo server on')
+ parser.add_argument... |
Fix EOL
Remove a redundant / wrong closing parentheses. | @@ -300,7 +300,7 @@ def filter_genes(
logg.info(
f"in less than {_min_cells} cells ({layer})."
if _min_counts is None
- else f"{_min_counts)} counts ({layer}).",
+ else f"{_min_counts} counts ({layer}).",
no_indent=True,
)
if max_cells is not None or max_counts is not None:
|
roadmap: update TiKV roadmap
Via: | @@ -39,28 +39,45 @@ This document defines the roadmap for TiDB development.
## TiKV:
-- [ ] Raft
- - [x] Region merge
- - [ ] Local read thread
- - [ ] Multi-thread raftstore
- - [x] None voter
- - [x] Pre-vote
- - [ ] Multi-thread apply pool
- - [ ] Split region in batch
- - [ ] Raft Engine
-- [x] RocksDB
- - [x] Dele... |
stop `nan` from breaking everything
unit and integration tests pass
i owe *yet another* test | @@ -198,6 +198,8 @@ class CsvImporter:
# required float
try:
+ if value == 'nan':
+ raise ValueError('nan not valid for `value`')
value = float(row.val)
except (TypeError, ValueError) as e:
# val was either `None` or not a float
|
Fix a bug in patch
Related to apply_to_all_doctypes | @@ -23,12 +23,14 @@ def execute():
user_permissions_to_delete = []
for user_permission in frappe.get_all('User Permission', fields=['*']):
+ skip_for_doctype = []
+
+ # while migrating from v11 -> v11
if has_skip_for_doctype:
if not user_permission.skip_for_doctype:
- frappe.db.set_value('User Permission', user_permiss... |
Issue - remove bots from contributors list
* fix-contributors-list
* remove-bots
* delete-extraneous-file
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see | @@ -20,7 +20,7 @@ def announce(version):
stdout = check_output(["git", "log", f"{last_version}..HEAD", "--format=%aN"])
stdout = stdout.decode("utf-8")
- contributors = set(stdout.splitlines())
+ contributors = {name for name in stdout.splitlines() if not name.endswith("[bot]")}
template_name = (
"release.minor.rst" if... |
Fix: push selected non-tracking branch
close | @@ -74,6 +74,7 @@ class GsPushCommand(WindowCommand, PushBase):
elif self.savvy_settings.get("prompt_for_tracking_branch"):
if sublime.ok_cancel_dialog(SET_UPSTREAM_PROMPT):
self.window.run_command("gs_push_to_branch_name", {
+ "local_branch_name": self.local_branch_name,
"set_upstream": True,
"force": self.force,
"for... |
Added HAVING class
added a class named Having and inherited it with TokenList
It will be easier for further manipulations as a HAVING clause contains multiple conditions just like WHERE clause | @@ -533,6 +533,12 @@ class Where(TokenList):
'HAVING', 'RETURNING', 'INTO')
+class Having(TokenList):
+ """A HAVING clause."""
+ M_OPEN = T.Keyword, 'HAVING'
+ M_CLOSE = T.Keyword, ('ORDER', 'LIMIT')
+
+
class Case(TokenList):
"""A CASE statement with one or more WHEN and possibly an ELSE part."""
M_OPEN = T.Keyword, '... |
message_controls: Make click area for icons more uniform.
Previously user have to click pixel perfect on the message controls
icons to achieve the click action.
This commit will uniformly increases the click target
area for the icons.
Tweaked by tabbott to avoid some weird glitches. | @@ -594,7 +594,7 @@ td.pointer {
}
.message_controls {
- top: -3px;
+ top: -5px;
}
.message_top_line {
@@ -674,8 +674,10 @@ td.pointer {
.message_controls {
display: inline-block;
position: absolute;
- top: 1px;
+ top: -1px;
right: -56px;
+ width: 54px;
+ height: 22px;
z-index: 1;
// This is a bit tricky; we need to re... |
v2.7.6 Changed ABCMessageHandler
The return value of a __repr__ must be a string object | @@ -168,14 +168,15 @@ class ABCMessageHandler(ABC):
def __repr__(self):
rules = ""
- for rules in self.rules:
+ for rule in self.rules:
rules += (
- rules[0].call.__name__
+ "("
+ + rule[0].call.__name__
+ ": "
- + ", ".join([rule.__class__.__name__ for rule in rules])
- + "\n"
+ + ", ".join([rule_.__class__.__name__ f... |
Fixes case when identifier is None.
Attempts to find the identifier with the given arguments. | -'''Module provider for EUserv'''
+'''
+Module provider for EUserv
+
+Author: Matthias Schoettle (mschoettle), 2019
+
+EUserv API Docs: https://support.euserv.com/api-doc/
+'''
from __future__ import absolute_import
import json
@@ -151,7 +157,8 @@ class Provider(BaseProvider):
def _update_record(self, identifier, rtype... |
Fix correct numerical issue with log_softmax
Summary:
This fixes the numerical problem in log_softmax cpu code when inputs are big but their differences are small.
Pull Request resolved: | @@ -51,13 +51,14 @@ void host_softmax(Tensor output, const Tensor& input, const int64_t dim) {
}
if (LogSoftMax)
- tmpsum = max_input + std::log(tmpsum);
+ tmpsum = std::log(tmpsum);
else
tmpsum = 1 / tmpsum;
for (int64_t d = 0; d < dim_size; d++)
if (LogSoftMax)
- output_data[d * dim_stride] = input_data[d * dim_strid... |
Add `@final` to `NotImplementedType` and `ellipsis`
These aren't subclassable at runtime. (Missed these two in my previous PR due to the fact that they're exposed in the `types` module, rather than builtins, at runtime. Also they're both a little weird to say the least, so let's see what the CI thinks...) | @@ -979,6 +979,7 @@ class property(object):
def __set__(self, __obj: Any, __value: Any) -> None: ...
def __delete__(self, __obj: Any) -> None: ...
+@final
class _NotImplementedType(Any): # type: ignore
# A little weird, but typing the __call__ as NotImplemented makes the error message
# for NotImplemented() much better... |
Gate usage on minimum supported Python version
3.7 is recommended, but 3.5 should be currently supported | @@ -14237,6 +14237,6 @@ def ProcessGAMCommand(args):
if __name__ == "__main__":
if sys.platform.startswith('win'):
freeze_support()
- if sys.version_info[0] < 3 or sys.version_info[1] < 7:
- systemErrorExit(5, 'GAM requires Python 3.7 or newer. You are running %s.%s.%s. Please upgrade your Python version or use one of ... |
Fix named tensor build
Summary:
Pull Request resolved:
We're missing an include for named tensors in templates/TypeDefault.h.
Test Plan: - run ci [namedtensor ci] | #include <c10/util/ArrayRef.h>
#include <c10/util/intrusive_ptr.h>
#include <torch/csrc/WindowsTorchApiMacro.h>
+#ifdef BUILD_NAMEDTENSOR
+#include <ATen/NamedTensorUtils.h>
+#endif
namespace c10 {
struct Storage;
|
Fixes old OpString references in upgrade2v0.9.7.py script.
Forgot to fix these before! Removes OpString and WeightedOpString
references. | @@ -129,7 +129,7 @@ replacements = {
"directMLEGSTgatesets" : "directMLEGSTmodels",
"focusedLSGSTgatesets" : "focusedLSGSTmodels",
"gatesetFilenameOrObj" : "modelFilenameOrObj",
-"CompressedGateString" : "CompressedOpString",
+"CompressedGateString" : "CompressedCircuit",
"gateStringToEstimate" : "circuitToEstimate",
"... |
[sync] added ItemType.Unknown
see issue | @@ -196,10 +196,13 @@ class ItemType(enum.Enum):
:cvar File: File type.
:cvar Folder: Folder type.
+ :cvar Unknown: Item type could not be determined. This can occur for remote deleted
+ events, see issue #198.
"""
File = "file"
Folder = "folder"
+ Unknown = "unknown"
class ChangeType(enum.Enum):
@@ -457,7 +460,8 @@ cl... |
Fix: typo of environment - MISP_FEED_MPORT_FROM_DATE to MISP_FEED_IMPORT_FROM_DATE.
I found typo of environment in parsing config variables section.
- actual: MISP_FEED_MPORT_FROM_DATE
- expect: MISP_FEED_IMPORT_FROM_DATE | @@ -145,7 +145,7 @@ class MispFeed:
"MISP_FEED_SSL_VERIFY", ["misp_feed", "ssl_verify"], config, False, True
)
self.misp_feed_import_from_date = get_config_variable(
- "MISP_FEED_MPORT_FROM_DATE", ["misp_feed", "import_from_date"], config
+ "MISP_FEED_IMPORT_FROM_DATE", ["misp_feed", "import_from_date"], config
)
self.... |
Update Metal_Transmon_Cross.py
orientation bug fix | @@ -239,7 +239,7 @@ Description:
clawRotate = 0
if connector_location == 'N':
- clawRotate = 90
+ clawRotate = -90
elif connector_location == 'E':
clawRotate = 180
|
Update _get_in_touch.html
fixed typo (errant bracket) | -<div class="alert alert-info"><span class="glyphicon glyphicon-exclamation-sign"></span> Do you need help with your analysis? Don't forget to check the (<a href='/faq'>FAQ page</a>, and <a href="mailto:{{ SUPPORT_TO_EMAIL }}" class="feedback-show">get in touch</a> if you have questions.</div>
+<div class="alert alert-... |
Support "tags" yaml tag
add tags yaml tags | @@ -242,6 +242,7 @@ class DatasetMetadata:
extra_gated_fields: Optional[Dict] = None
extra_gated_prompt: Optional[str] = None
license_details: Optional[str] = None
+ tags: Optional[List[str]] = None
licenses: Optional[Union[EmptyList, List[str]]] = None # deprecated
languages: Optional[Union[EmptyList, List[str]]] = No... |
Use creates_node in NodeToParsersPass
To determine which parsers should be added to the map. | @@ -1428,9 +1428,11 @@ class NodeToParsersPass():
node type to one specific parser.
"""
- if isinstance(parser, Transform):
- self.nodes_to_rules[parser.get_type()].append(parser)
- elif isinstance(parser, List):
+ if creates_node(parser, follow_refs=False):
+ if isinstance(parser, Opt):
+ for alt in parser.get_type().... |
Added 'unfocused_border' widget argument,
to be used for coloring border of unfocused windows. | @@ -62,6 +62,13 @@ class TaskList(base._Widget, base.PaddingMixin, base.MarginMixin):
"Method for alerting you of WM urgent "
"hints (one of 'border' or 'text')"
),
+ (
+ "unfocused_border",
+ None,
+ "Border color for unfocused windows. "
+ "Affects only hightlight_method 'border' and 'block'. "
+ "Defaults to None, w... |
Moved js logic from document ready handler to ajaxComplete handler
Similar to | hqDefine("m4change/javascripts/main", function () {
var initialPageData = hqImport("hqwebapp/js/initial_page_data");
- $(function () {
+ $(document).on("ajaxComplete", function (e, xhr, options) {
+ var fragment = "async/",
+ pageUrl = window.location.href.split('?')[0],
+ ajaxUrl = options.url.split('?')[0];
+ if (aja... |
Create a holder for "attribute expression" constructors
TN: | @@ -267,6 +267,37 @@ class Frozable(object):
return wrapper
+class AttributeExpression(object):
+ """
+ Holder for information related to a ".attribute" construct in the property
+ DSL.
+ """
+
+ def __init__(self, constructor, args, kwargs, parameterless):
+ """
+ :param constructor: Callable that builds the expressio... |
[fix|refactor]: updated the review fixs and used chunked to avoid blocking of the
query | import csv
from django.core.management.base import BaseCommand
-from corehq.apps.reports.util import get_all_users_by_domain
+from corehq.apps.users.models import CommCareUser
from custom.icds_reports.const import INDIA_TIMEZONE
from custom.icds_reports.models import ICDSAuditEntryRecord
from django.db.models import Ma... |
Add Neblio support to electrumx
* add neblio
* update daemon & deserializer and add header_hash
* remove LegacyRPDaemon usage for Neblio
getblock() RPC was updated in nebliod to eliminate the need for LegacyRPCDaemon support in electrumx | @@ -955,3 +955,35 @@ class Fujicoin(Coin):
TX_PER_BLOCK = 1
RPC_PORT = 3776
REORG_LIMIT = 1000
+
+class Neblio(Coin):
+ NAME = "Neblio"
+ SHORTNAME = "NEBL"
+ NET = "mainnet"
+ XPUB_VERBYTES = bytes.fromhex("0488b21e")
+ XPRV_VERBYTES = bytes.fromhex("0488ade4")
+ P2PKH_VERBYTE = bytes.fromhex("35")
+ P2SH_VERBYTES = [... |
Relax the swift version check
Only check the swiftlang/clang versions, don't fail the check if
the Target info doesn't match. | @@ -145,7 +145,7 @@ def is_correct_swift_version(swiftc, compatibility_version):
error_msg = "error: please select {description}".format(
description=supported_configs[platform.system()][compatibility_version]['description']
)
- if swift_version != expected_swift_version:
+ if swift_version.split("\n")[0] != expected_s... |
installer.sh: Do not delete the local copy of the certificates.
Copy, rather than move, the certificates to
/var/lib/keylime/tpm_cert_store/. This way, git status
does not show that all the certificates have been deleted. | @@ -605,7 +605,7 @@ echo "==========================================================================
if [ ! -d "/var/lib/keylime/tpm_cert_store" ]; then
echo "Creating new tpm_cert_store"
mkdir -p /var/lib/keylime
- mv $KEYLIME_DIR/tpm_cert_store /var/lib/keylime/tpm_cert_store
+ cp $KEYLIME_DIR/tpm_cert_store /var/lib... |
Update note on temporary status.
Anything called exactly "TODO" is easily searchable. | @@ -49,9 +49,9 @@ def containerise(name,
("representation", representation["format"]),
("version", version["version"]),
- # TEMPORARY, REMOVE PLEASE
- # Temporarily assume "assets", as existing published assets
- # won't have this new variable.
+ # TODO(marcus): Temporarily assume "assets".
+ # remove the assumption on... |
Move nn.codec to False to prevent wrong codec strict mode change
Currently, as a followup to there is a situation where the wrong code is changed to strict False | @@ -497,7 +497,7 @@ class RecognitionModel(pl.LightningModule):
else:
raise ValueError(f'invalid resize parameter value {self.resize}')
- codec.strict = False
+ self.nn.codec.strict = False
else:
self.train_set.dataset.encode(self.codec)
|
fix: Delete if DuplicateEntry and insert again
Sometimes I add a fix for something. After some time, I forget the
reason for it. And when something breaks, I remember why I added it
in the first place. This is one of those times. | @@ -164,14 +164,19 @@ def insert_event_jobs(events, event_type):
def insert_single_event(frequency, event, cron_format=None):
cron_expr = {"cron_format": cron_format} if cron_format else {}
-
- if not frappe.db.exists("Scheduled Job Type", {"method": event, "frequency": frequency, **cron_expr }):
- frappe.get_doc({
+ d... |
Update version 0.7.0 -> 0.7.1
Fixes
* Remove dwave-networkx version upper bound to resolve version conflicts | # ================================================================================================
__all__ = ['__version__', '__author__', '__authoremail__', '__description__']
-__version__ = '0.7.0'
+__version__ = '0.7.1'
__author__ = 'D-Wave Systems Inc.'
__authoremail__ = 'acondello@dwavesys.com'
__description__ = '... |
Introduce process_count_max minion configuration parameter
This allows users to limit the number of processes or threads a minion
will start in response to published messages, prevents resource
exhaustion in case a high number of concurrent jobs is scheduled in a
short time. | @@ -1333,6 +1333,7 @@ class Minion(MinionBase):
self._send_req_async(load, timeout, callback=lambda f: None) # pylint: disable=unexpected-keyword-arg
return True
+ @tornado.gen.coroutine
def _handle_decoded_payload(self, data):
'''
Override this method if you wish to handle the decoded data
@@ -1365,6 +1366,15 @@ class... |
register item after dependencies
this is a workaround to avoid circular dependencies for skills | @@ -131,8 +131,8 @@ def add_item(ctx: Context, item_type: str, item_public_id: PublicId) -> None:
if not is_fingerprint_correct(package_path, item_config): # pragma: no cover
raise click.ClickException("Failed to add an item with incorrect fingerprint.")
- register_item(ctx, item_type, item_public_id)
_add_item_deps(ct... |
README: List the three services that EDCD *might* be providing
Only Live is guaranteed to be available. | @@ -94,6 +94,34 @@ Anyone planning to send data too EDDN **MUST** comply with all the advice in
that document, and the individual schema README files as applicable. It's
also the best resource for those listening to the EDDN data stream.
+#### EDDN endpoints
+
+There are up to three separate services which might be run... |
Reviewer fix (remove Slack integration)
* Revert "Removed Slack reporting of unit tests as requested by reviewer."
This reverts commit
* Removed Slack reporting of unit test results at request of reviewer | @@ -185,4 +185,5 @@ class VEPTests(unittest.TestCase):
if __name__ == '__main__':
suite = unittest.TestLoader().discover('.')
+ results = SlackResult()
unittest.TextTestRunner(verbosity=2).run(suite)
\ No newline at end of file
|
changing the name of class TestFS to FSTest in test/test_indexing.py
Avoid pytest collecting TestFS even though it contains no tests by changing the name to _TestFS. | @@ -71,7 +71,7 @@ class TestFormat(object):
assert 0
-class TestFS(object):
+class _TestFS(object):
name = 'inmemorytestgrid'
files = dict()
@@ -87,9 +87,9 @@ class TestFS(object):
def close(self):
self.cache[self.file_id] = self.getvalue()
- super(TestFS._Writer, self).close()
+ super(_TestFS._Writer, self).close()
- ... |
Don't restrict the C/C++ standard
GCC has it set by default or uses even newer version. | @@ -616,7 +616,7 @@ def c_checker(code: str, working_directory: str) -> CheckerRunFunction:
return gcc_checker(
code,
".c",
- [os.getenv("CC", "gcc"), "-std=c99"] + INCLUDE_FLAGS,
+ [os.getenv("CC", "gcc")] + INCLUDE_FLAGS,
working_directory=working_directory,
)
@@ -626,7 +626,7 @@ def cpp_checker(code: str, working_di... |
fix: do not update URL on saved reports
"Saved reports" imply that they have already stored filters, columns
etc. Applying URL from filters doesn't make sense here. | @@ -1456,8 +1456,9 @@ frappe.views.ListView = class ListView extends frappe.views.BaseList {
on_update() {}
update_url_with_filters() {
- if (frappe.get_route_str() == this.page_name) {
+ if (frappe.get_route_str() == this.page_name && !this.report_name) {
// only update URL if the route still matches current page.
+ /... |
On centos7 with the old configuration Diamond was started on DEBUG mode, this starts the process the same way as in centos6
and centos5 | Description=diamond - A system statistics collector for graphite
[Service]
-ExecStart=/usr/bin/python /usr/bin/diamond --log-stdout --foreground
-Restart=on-abort
+ExecStart=/usr/bin/python /usr/bin/diamond -p /var/run/diamond.pid
+Type=forking
+PIDFile=/var/run/diamond.pid
[Install]
WantedBy=multi-user.target
|
Refresh ceph dashboard user role
This change allows the operator to refresh the
ceph dashboard admin role on multiple ceph-ansible
executions.
In the current state the role is set only when the
user is created, and there's no way to change it if
the user exists.
Closes: | if {{ container_exec_cmd }} ceph --cluster {{ cluster }} dashboard ac-user-show {{ dashboard_admin_user | quote }}; then
{{ container_exec_cmd }} ceph --cluster {{ cluster }} dashboard ac-user-set-password {{ dashboard_admin_user | quote }} {{ dashboard_admin_password | quote }}
else
- {{ container_exec_cmd }} ceph --c... |
test_management_commands: Use subTest with help tests.
We remove the print statement, and instead use
subTest to improve debuggability. | @@ -172,11 +172,9 @@ class TestCommandsCanStart(TestCase):
@slow("Aggregate of runs dozens of individual --help tests")
def test_management_commands_show_help(self) -> None:
- with stdout_suppressed() as stdout:
+ with stdout_suppressed():
for command in self.commands:
- print('Testing management command: {}'.format(co... |
Also inform groups and qtile of mouse-enter focus changes
Cursor motion when focus_follow_mouse is true only focusses in the core
but doesn't focus groups, so border colors do not change and
occasionally other side effects appear (e.g. qtile.current_window is
not changed). This fixes that. | @@ -45,6 +45,7 @@ from wlroots.wlr_types import (
from wlroots.wlr_types.cursor import WarpMode
from xkbcommon import xkb
+from libqtile import hook
from libqtile.backend import base
from libqtile.backend.wayland import keyboard, output, window, wlrq
from libqtile.log_utils import logger
@@ -245,7 +246,12 @@ class Core... |
Create atomic Map<string, list> type
This will be used to track blocks waiting to be validated because some
dependent block has not yet been validated. | @@ -65,3 +65,62 @@ class ConcurrentSet:
def __contains__(self, element):
with self._lock:
return element in self._set
+
+
+class ConcurrentMultiMap:
+ """A dictionary that maps keys to lists of items. All methods are
+ modifications to the referenced list."""
+ def __init__(self):
+ self._dict = dict()
+ self._lock = R... |
Correct typo in doc string
Small typo I noticed while reading through documentation. I'm assuming the docs below are pulled from this string | @@ -610,7 +610,7 @@ class EarthLocation(u.Quantity):
@property
def lat(self):
- """Longitude of the location, for the default ellipsoid."""
+ """Latitude of the location, for the default ellipsoid."""
return self.geodetic[1]
@property
|
Travis-CI Changes
Now building on travis-ci.com instead of travis-ci.org. | branch | status
--- | ---
-master | [](https://travis-ci.org/chaoss/augur)
- dev | [](https://travis-ci.org/chaoss/augur)
- gsoc-dev | [ | @@ -453,6 +453,9 @@ class RecurrentTransferMechanism(TransferMechanism):
"""Implement decay
"""
+ if INITIALIZING in context:
+ self.previous_input = self.variable
+
if self.decay is not None and self.decay != 1.0:
self.previous_input *= self.decay
|
Fix all ScreenManagers sharing the same transition
All ScreenManagers share the same SlideTransition instance by default, which can cause some timing issues and other weirdness (and is more generally a bad idea). This PR fixes the issue. | @@ -906,7 +906,7 @@ class ScreenManager(FloatLayout):
to None.
'''
- transition = ObjectProperty(SlideTransition(), baseclass=TransitionBase)
+ transition = ObjectProperty(baseclass=TransitionBase)
'''Transition object to use for animating the transition from the current
screen to the next one being shown.
@@ -966,6 +9... |
Fail on error when UrlValidator fails on SchedulerPluginCloudFormationInfrastructure
Make SchedulerPluginCloudFormationInfrastructure validation failed on S3 error and https error | @@ -1702,7 +1702,11 @@ class SchedulerPluginCloudFormationInfrastructure(Resource):
def _register_validators(self):
self._register_validator(
- UrlValidator, url=self.template, fail_on_https_error=True, expected_bucket_owner=self.s3_bucket_owner
+ UrlValidator,
+ url=self.template,
+ fail_on_https_error=True,
+ fail_on... |
minor: Remove unused url argument.
This is not required anymore after we moved to run_test model
to save screenshots. | @@ -72,14 +72,9 @@ class CommonUtils {
}
}
- async get_page(url = null) {
+ async get_page() {
await this.ensure_browser();
-
const page = await this.browser.newPage();
- if (url !== null) {
- await page.goto(url);
- }
-
return page;
}
|
Allow an empty commodities array in commodities/3
closes | },
"commodities": {
"type" : "array",
- "minItems" : 1,
"description" : "Commodities returned by the Companion API, with illegal commodities omitted",
"items" : {
"type" : "object",
|
SceneHierarchy : Take advantage of new PathListingWidget APIs
This gives us greatly improved performance when working with large numbers of locations, and allows us to finally mirror multiple selections from the viewer into the PathListingWidget.
Fixes | @@ -162,19 +162,15 @@ class SceneHierarchy( GafferUI.NodeSetEditor ) :
assert( pathListing is self.__pathListing )
- paths = pathListing.getExpandedPaths()
- paths = IECore.PathMatcher( [ "/" ] + [ str( path ) for path in paths ] )
with Gaffer.BlockedConnection( self._contextChangedConnection() ) :
- ContextAlgo.setExp... |
Add 'scale-up' upgrade steps for cinder-backup
This patch adds the missing steps for 'scale-up' upgrade
support for the cinder-backup service similar to the implementation
in
Related-Bug: | @@ -338,6 +338,67 @@ outputs:
register: output
retries: 5
until: output.rc == 0
+ - name: Create hiera data to upgrade cinder_backup in a stepwise manner.
+ when:
+ - step|int == 1
+ block:
+ - name: set cinder_backup upgrade node facts in a single-node environment
+ set_fact:
+ cinder_backup_short_node_names_upgraded:... |
Using Py_UNICODE to store lone surrogates makes Py3 join surrogate pairs on 16-bit Unicode platforms (Windows) when reading them back in, although we correctly processed them before.
Instead, we now use the "unicode_escape" codec to store byte strings, because it can return surrogate characters (which the other codecs ... | @@ -1632,13 +1632,14 @@ class UnicodeNode(ConstNode):
# lone (unpaired) surrogates are not really portable and cannot be
# decoded by the UTF-8 codec in Py3.3
self.result_code = code.get_py_const(py_object_type, 'ustring')
- data_cname = code.get_pyunicode_ptr_const(self.value)
+ data_cname = code.get_string_const(
+ S... |
update top-level messaging in README
Test Plan: did not test
Reviewers: schrockn, max | # Dagster
-Dagster is a system for building modern data applications.
+Dagster is a data orchestrator for machine learning, analytics, and ETL
+
**Elegant programming model:** Dagster provides a set of abstractions for building self-describing,
testable, and reliable data applications. It embraces the principles of fun... |
python2 compat solution
instead of list.copy() | @@ -22,7 +22,7 @@ class SMAConfigParser(ConfigParser, object):
return value
if value == '':
- return default.copy()
+ return list(default)
value = value.split(separator)
@@ -36,7 +36,7 @@ class SMAConfigParser(ConfigParser, object):
def getdict(self, section, option, vars=None, listseparator=",", dictseparator=":", def... |
[batch] fix job private jobs
AFAIK, we do not need a distinct name anyway | @@ -134,7 +134,7 @@ class AzureResourceManager(CloudResourceManager):
)
try:
- await self.arm_client.put(f'/deployments/{machine_name}-dplmnt', json=vm_config)
+ await self.arm_client.put(f'/deployments/{machine_name}', json=vm_config)
log.info(f'created machine {machine_name}')
except Exception:
log.exception(f'error ... |
migrations: Subscription.is_user_active denormalization - final step.
With the previous two commits deployed, we're ready to use the
denormalization to optimize the query.
With dev environment db prepared using
./manage.py populate_db --extra-users=2000 --extra-streams=400
this takes the execution time of the query in
... | @@ -3161,12 +3161,10 @@ def bulk_get_subscriber_user_ids(
zerver_subscription.user_profile_id
FROM
zerver_subscription
- INNER JOIN zerver_userprofile ON
- zerver_userprofile.id = zerver_subscription.user_profile_id
WHERE
zerver_subscription.recipient_id in %(recipient_ids)s AND
zerver_subscription.active AND
- zerver_... |
Clarify use of "program qubits"
This commit adjusts the first pagraph in the "Qubits" section
in two ways:
* Explicitly says that the qubits described in the paragraph are
"program qubits".
* Moves the sentence talking about quantum registers to later in
the paragraph, once the idea is introduced. | @@ -36,10 +36,10 @@ Qubits
~~~~~~
There is a quantum bit (``qubit``) type that is interpreted as a reference to a
-two-level subsystem of a quantum state. Quantum registers are static
-arrays of qubits that cannot be dynamically resized. The statement ``qubit name;``
-declares a reference to a quantum bit. The statemen... |
[Relay] Add tensor rank check for `nn.instance_norm`
Add tensor rank check for `nn.instance_norm`. | @@ -923,6 +923,7 @@ bool InstanceNormRel(const Array<Type>& types, int num_inputs, const Attrs& attr
ICHECK_EQ(types.size(), 4);
const auto* data = types[0].as<TensorTypeNode>();
if (data == nullptr) return false;
+ ICHECK_GT(data->shape.size(), 2);
const InstanceNormAttrs* param = attrs.as<InstanceNormAttrs>();
int ax... |
Refactor ConstantValue
Makes it simpler to extend | @@ -278,13 +278,7 @@ class ConstantValue(ConstantString):
)
def deserialize(self, external_value):
- """
- Ignores ``external_value`` and returns ``self.value`` cast from
- ``self.value_data_type`` to ``self.commcare_data_type``.
- """
- serializer = (serializers.get((self.value_data_type, self.commcare_data_type))
- o... |
[DOC] replace wrong option doc
-always option was accidentially wrong. Replace it by a better explanation. | @@ -14,8 +14,7 @@ The following parameters are supported:
¶ms;
--always If used, the bot won't ask if it should file the message
- onto user talk page.
+-always The bot won't ask for confirmation when putting a page
-text: Use this text to be added; otherwise 'Test' is used
|
[docs] Add CI contribution instructions
This PR documents the steps to introducing a new CI docker image, which we've been doing a lot lately. | @@ -174,6 +174,29 @@ The images for these containers are hosted in the `tlcpack Docker Hub <https://h
and referenced in the `Jenkinsfile.j2 <https://github.com/apache/tvm/tree/main/Jenkinsfile.j2>`_. These can be inspected and run
locally via standard Docker commands.
+Adding a new Docker image
+"""""""""""""""""""""""... |
Record per-target compile workflow stats when using RscCompile
### Problem
We would like to have metrics about how much of a build uses Rsc.
### Solution
Record the compile workflow a target uses under `RscCompile` | @@ -455,9 +455,21 @@ class RscCompile(ZincCompile, MirroredTargetOptionMixin):
on_success=ivts.update,
on_failure=ivts.force_invalidate)
+ workflow = rsc_compile_context.workflow
+
+ # Replica of JvmCompile's _record_target_stats logic
+ def record(k, v):
+ self.context.run_tracker.report_target_info(
+ self.options_sc... |
[ckcore] Show help for alias command
* [ckcore] Show help for alias command
#fixes 221 | @@ -481,6 +481,9 @@ class HelpCommand(CLISource):
return "Shows available commands, as well as help for any specific command."
async def parse(self, arg: Optional[str] = None, **env: str) -> Source:
+ def show_cmd(cmd: CLIPart) -> str:
+ return f"{cmd.name} - {cmd.info()}\n\n{cmd.help()}"
+
if not arg:
all_parts = sort... |
Getting help at conda-forge page edited
Made a few corrections in this page. | -How to get help in conda-forge
+How to get help at conda-forge
==============================
You could connect with us via **Gitter, GitHub Issues or Mailing List**.
@@ -7,7 +7,7 @@ We would be happy to hear from you!
Gitter
-------------------
-If you are just starting out with conda-forge and/or are completely lost... |
Remove callback parameter from custom.Button
Its behaviour was strange. Removing and adding an event
handler every time a message is sent is not a good idea
and it would just do more harm than good. | @@ -37,23 +37,12 @@ class ButtonMethods(UpdateMethods):
for row in buttons:
current = []
for button in row:
+ if isinstance(button, custom.MessageButton):
+ button = button.button
+
inline = custom.Button._is_inline(button)
is_inline |= inline
is_normal |= not inline
- if isinstance(button, custom.Button):
- if button.... |
Fix typo
Summary:
Pull Request resolved: | @@ -158,7 +158,7 @@ public:
* > namespace { Tensor my_kernel_cpu(Tensor a, Tensor b) {...} }
* >
* > static auto registry = c10::RegisterOperators()
- * > .op("my_op", c10::RegisterOperators()
+ * > .op("my_op", c10::RegisterOperators::options()
* > .kernel<decltype(my_kernel_cpu), &my_kernel_cpu>(CPUTensorId()));
*/
t... |
complexcircle.py: fix normalization issues
The numpy.sign behavior for complex variables is different from Matlab's
which projects a complex vector element-wise on the complex unit circle. | @@ -65,7 +65,7 @@ class ComplexCircle(Manifold):
return y
def retr(self, z, v):
- return np.sign(z + v)
+ return self._normalize(z + v)
def log(self, x1, x2):
v = self.proj(x1, x2 - x1)
@@ -77,7 +77,7 @@ class ComplexCircle(Manifold):
def rand(self):
n = self._n
- return np.sign(rnd.randn(n) + 1j * rnd.randn(n))
+ retu... |
Fix comments for metrics_to_scalars
metrics_to_scalars can return non-float values, such as int or complex, depending on the dtype of the tensor. | @@ -27,13 +27,13 @@ def metrics_to_scalars(metrics: Any) -> Any:
Raises:
MisconfigurationException:
- If ``value`` contains multiple elements, hence preventing conversion to ``float``
+ If tensors inside ``metrics`` contains multiple elements, hence preventing conversion to a scalar.
"""
def to_item(value: torch.Tensor... |
Trigger warning/error for deprecated Target method overrides.
### Problem
deprecated two methods that are intended to be overridden by `Target` subclasses. But because we don't detect the override, the warning will never trigger.
### Solution
Detect the override by looking for a non-equal `__func__` object. | @@ -617,6 +617,9 @@ class Target(AbstractTarget):
:param Payload payload: The post-Target.__init__() Payload object.
:yields: AddressSpec strings representing dependencies of this target.
"""
+
+ if cls.compute_injectable_specs.__func__ is not Target.compute_injectable_specs.__func__:
+ cls._compute_injectable_specs_wa... |
Fix plot rotor - disk_elements
Now the visual representation of disk elements are based on the shaft elements length. The objective here is avoid large distortions between short and long shafts. | @@ -159,7 +159,7 @@ class DiskElement(Element):
# fmt: on
return G
- def patch(self, position, ax, bk_ax):
+ def patch(self, position, length, ax, bk_ax):
"""Disk element patch.
Patch that will be used to draw the disk element.
Parameters
@@ -170,6 +170,8 @@ class DiskElement(Element):
Axes in which the plot will be dr... |
Append correct type to transition_times
Previously, when the platform did not need to move, a datetime object was appended, leading to comparison errors in later platform.move calls. | @@ -68,7 +68,8 @@ def create_smooth_transition_models(initial_state, x_coords, y_coords, times, tu
a = np.arctan2(vy, vx) # initial bearing
if dx == 0 and dy == 0 and vx == 0 and vy == 0: # if at destination with 0 speed, stay
- transition_times.append(time)
+ transition_times.append(
+ timedelta(seconds=(time - times[... |
invite_users: Discard "#" in private streams.
Added an if statement which renders "#" only when it's not "invite only".
Fixes part of | {{#if (eq name ../notifications_stream)}}
#{{name}} <i>({{t 'Receives new stream announcements' }})</i>
{{else}}
- #{{name}}
+ {{#if (not invite_only)}}#{{/if}}{{name}}
{{/if}}
</label>
{{/each}}
|
fix init.py
HG--
branch : feature/microservices | @@ -22,7 +22,8 @@ class Profile(BaseProfile):
pattern_more = [
(r"---?More---?", " "),
(r"--- \[Space\] Next page, \[Enter\] Next line, \[A\] All, Others to exit ---", " "),
- (r"Startup configuration file name", "\n")
+ (r"Are you sure to delete non-active file", "Y\n\n"),
+ (r"Startup configuration file name", "\n\n\... |
Update io_examples.ipynb
Explicit about which dataset | "cell_type": "markdown",
"metadata": {},
"source": [
- "We are using the Northeastern University Oracle SigMF recordings found [here](http://www.genesys-lab.org/oracle)"
+ "We are using the Northeastern University Oracle SigMF recordings found [here](http://www.genesys-lab.org/oracle) (Dataset #2)"
]
},
{
|
Quality: Autoformat generated code twice on Windows.
* Otherwise differences remained, seems something is not fully stable
in that way, but this helps. | @@ -862,6 +862,11 @@ def makeHelpersBinaryOperation(operand, op_code):
autoformat(filename_c, None, True)
autoformat(filename_h, None, True)
+ # No idea why, but this helps.
+ if os.name == "nt":
+ autoformat(filename_c, None, True)
+ autoformat(filename_h, None, True)
+
def writeline(output, *args):
if not args:
|
Update usage.rst
fix bugs after master merge | @@ -18,6 +18,8 @@ Data are returned as a collection of measurements in a :class:`xarray.Dataset`:
ds
+.. currentmodule:: xarray
+
Fetched data are returned as a 1D array collection of measurements. If you prefer to work with a 2D array collection of vertical profiles, simply transform the dataset with the :class:`xarra... |
Append to the prescribing table during conversion
This replaces the operation in openprescribing-data/runner.py at | @@ -134,12 +134,49 @@ class Command(BaseCommand):
# Create table at raw_nhs_digital_data
table_ref = create_temporary_data_source(uri)
- temp_table = self.write_aggregated_data_to_temp_table(table_ref, date)
+ self.append_aggregated_data_to_prescribing_table(
+ table_ref, date)
+ temp_table = self.write_aggregated_data... |
[DOCKER] Fix git clone failure.
git clone --branch=xxx won't take a hash, switch from the hash to the
tag that represents that hash. | @@ -19,8 +19,7 @@ make -j4 sdk && make -j4 sdk_install_pkg
./linux/installer/bin/sgx_linux_x64_sdk*.bin --prefix /opt
cd -
-tag=6098af # v1.0.5
-git clone --branch=$tag --depth=1 https://github.com/baidu/rust-sgx-sdk.git /opt/rust-sgx-sdk
+git clone --branch=v1.0.5 --depth=1 https://github.com/baidu/rust-sgx-sdk.git /o... |
Fix Imap widget
`poll()` method was modifying `self.text` in place before returning the
value. However, `self.text` is a property setter which sets the layout
text. The widget should only update the text value by returning the
value from `poll()`. | @@ -83,11 +83,11 @@ class ImapWidget(base.ThreadPoolText):
def poll(self):
im = imaplib.IMAP4_SSL(self.server, 993)
if self.password == 'Gnome Keyring Error':
- self.text = 'Gnome Keyring Error'
+ text = 'Gnome Keyring Error'
else:
im.login(self.user, self.password)
status, response = im.status(self.mbox, '(UNSEEN)')
-... |
Fixes a bug in Cython state-vector term calcs (fixes segfaults)
Piping down dim=d^2 to the Cython sv_prs_as_polys(...) [from
SV_prs_as_polys(...)] instead of d would cause occasional segfaults.
Note that the GateTermCalculator's "dim" is d^2 whereas the SV
functions consider just d to be the relevant dimension.
This is... | @@ -1220,11 +1220,13 @@ def SV_prs_as_polys(calc, rholabel, elabels, gatestring, comm=None, memLimit=Non
for jj,indx in enumerate(inds):
E_cindices[ii][jj] = <INT>indx
+ #Note: term calculator "dim" is the full density matrix dim
+ stateDim = int(round(np.sqrt(calc.dim)))
#Call C-only function (which operates with C-re... |
Add postgres-only note to nulls= param of Ordering node.
Refs
[skip ci] | @@ -1322,7 +1322,7 @@ Query-builder
:param node: A column-like object.
:param str direction: ASC or DESC
:param str collation: Collation name to use for sorting.
- :param str nulls: Sort nulls (FIRST or LAST).
+ :param str nulls: Sort nulls (FIRST or LAST, Postgres-only).
Represent ordering by a column-like object.
|
remove leftover task cancel
The task is no longer created in the cog | @@ -464,5 +464,4 @@ class DocCog(commands.Cog):
async def cog_unload(self) -> None:
"""Clear scheduled inventories, queued symbols and cleanup task on cog unload."""
self.inventory_scheduler.cancel_all()
- self.init_refresh_task.cancel()
await self.item_fetcher.clear()
|
fix: handle case where alexa guard is disabled
This also changes the entity parsing code to be extremely defensive so that this function won't break startup no matter what Amazon returns.
Fixes | @@ -206,14 +206,18 @@ async def get_entity_data(
login_obj: AlexaLogin, entity_ids: List[Text]
) -> AlexaEntityData:
"""Get and process the entity data into a more usable format."""
- raw = await AlexaAPI.get_entity_state(login_obj, entity_ids=entity_ids)
+
entities = {}
- device_states = raw.get("deviceStates")
+ if e... |
MNT: move more of request_suspend into coro
Should eliminate race conditions. | @@ -1020,8 +1020,13 @@ class RunEngine:
explanation of why the suspension has been requested
"""
+
+ print("Suspending....To get prompt hit Ctrl-C twice to pause.")
+ ts = datetime.now().strftime('%Y-%m-%d %H:%M:%S')
+ print("Suspension occurred at {}.".format(ts))
+
+ async def _request_suspend(pre_plan, post_plan, ju... |
Add 'scale-up' upgrade steps for manila
This patch adds the missing steps for 'scale-up' upgrade
support for the manila service similar to the implementation
in
Related-Bug:
Depends-On: | @@ -318,6 +318,67 @@ outputs:
register: output
retries: 5
until: output.rc == 0
+ - name: Create hiera data to upgrade manila_share in a stepwise manner.
+ when:
+ - step|int == 1
+ block:
+ - name: set manila_share upgrade node facts in a single-node environment
+ set_fact:
+ manila_share_short_node_names_upgraded: "{... |
Updates Dependency Manager Files In CODEOWNERS
Updates Pipfile and pipenv lock file to poetry equivalents in
CODEOWNERS. | @@ -35,7 +35,8 @@ Dockerfile @MarkKoz @Akarys42 @Den4200 @jb3
docker-compose.yml @MarkKoz @Akarys42 @Den4200 @jb3
# Tools
-Pipfile* @Akarys42
+poetry.lock @Akarys42
+pyproject.toml @Akarys42
# Statistics
bot/async_stats.py @jb3
|
remove minimum 32-bit restriction
Change minimum 32-bit restriction for floating point types to 8-bit.
This change is to enable reduced precision types that may use vector operations underneath the hood (cases #lanes > 1 such as half4). | @@ -127,7 +127,7 @@ inline void TVMArrayFree_(TVMArray* arr) {
inline void VerifyType(int dtype_code, int dtype_bits, int dtype_lanes) {
CHECK_GE(dtype_lanes, 1);
if (dtype_code == kDLFloat) {
- CHECK_EQ(dtype_bits % 32, 0);
+ CHECK_EQ(dtype_bits % 8, 0);
} else {
CHECK_EQ(dtype_bits % 8, 0);
}
|
Cleanup BUILD_DOCS cmake section
Summary:
Breaking out of
cc mingzhe09088 Yangqing
Pull Request resolved: | @@ -306,7 +306,7 @@ if(BUILD_DOCS)
if(EXISTS ${CMAKE_CURRENT_BINARY_DIR}/docs)
file(REMOVE_RECURSE ${CMAKE_CURRENT_BINARY_DIR}/docs)
- endif (EXISTS ${CMAKE_CURRENT_BINARY_DIR}/docs)
+ endif()
file(MAKE_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/docs)
configure_file(${DOXYGEN_C_IN} ${DOXYGEN_C_OUT} @ONLY)
@@ -323,10 +323,10... |
Change link to slack in docs to slackin
Summary: Title
Test Plan: yarn develop
Reviewers: schrockn, max | @@ -53,7 +53,10 @@ export const Header = forwardRef(({ onMenuClick, sidebarOpened }, ref) => {
</div>
</div>
<Menu sx={styles.socialIcons(showingSearch)}>
- <ExternalLink href="https://dagster.slack.com" sx={styles.externalLink}>
+ <ExternalLink
+ href="https://dagster-slackin.herokuapp.com/"
+ sx={styles.externalLink}... |
[BUG] `sklearn 1.2.0` compatibility - decouple `sklearn.base._pprint`
The benchmarking module was still calling the private method `sklearn.base._pprint` which has moved in `1.2.0`.
This is solved by replacing `_pprint` which a `repr` call, which may make things a bit less pretty but still leaves them functional (and c... | @@ -6,7 +6,7 @@ __author__ = ["mloning", "sajaysurya"]
import pandas as pd
from joblib import dump, load
-from sklearn.base import ClassifierMixin, RegressorMixin, _pprint
+from sklearn.base import ClassifierMixin, RegressorMixin
from sklearn.model_selection import GridSearchCV, RandomizedSearchCV
from sklearn.pipeline... |
Update cloud-billing.rst
"contact sales" was not properly linked | @@ -13,7 +13,7 @@ From February 2, 2023, Mattermost Cloud Professional and Enterprise plans are of
2. Fill in your payment information.
3. Select **Switch to annual billing**
-To upgrade to a Professional plan within Mattermost, select **View plans** in the header or in the System Console. For Enterprise plans, you nee... |
Update __init__.py
In case of DELETE action we don't pass the value if we want to remove the attribute.
There are more cases but it's for you to handle. | @@ -120,6 +120,8 @@ class Item(BaseModel):
def validate_no_empty_key_values(self, attribute_updates, key_attributes):
for attribute_name, update_action in attribute_updates.items():
action = update_action.get("Action") or "PUT" # PUT is default
+ if action == "DELETE":
+ continue
new_value = next(iter(update_action["Va... |
updates readme
request kittens | @@ -69,8 +69,8 @@ API | Description | Auth | HTTPS | CORS |
| [PlaceGOAT](https://placegoat.com/) | Placeholder goat images | No | Yes | Unknown |
| [RandomCat](https://aws.random.cat/meow) | Random pictures of cats | No | Yes | Yes |
| [RandomDog](https://random.dog/woof.json) | Random pictures of dogs | No | Yes | Ye... |
Factor out shared query logic
Summary: Prep for run groupings queries.
Test Plan: Unit
Reviewers: sashank, prha | @@ -137,7 +137,7 @@ def _add_filters_to_query(self, query, filters):
return query
- def get_runs(self, filters=None, cursor=None, limit=None):
+ def _runs_query(self, filters=None, cursor=None, limit=None):
filters = check.opt_inst_param(
filters, 'filters', PipelineRunsFilter, default=PipelineRunsFilter()
)
@@ -154,23... |
Update operations.py
wcr throws error when the lambda function uses fields of custom structs.
Catching the AttributeError fixes this issue | @@ -79,7 +79,7 @@ def detect_reduction_type(wcr_str):
b = sympy.Symbol('b')
try:
result = wcr(a, b)
- except TypeError: # e.g., "Cannot determine truth value of relational"
+ except (TypeError, AttributeError): # e.g., "Cannot determine truth value of relational"
result = None
# Check resulting value
|
lint: Catch exit(1) in management commands.
Using sys.exit(1) in a management command makes it impossible
to unit test the code in question. The correct approach to
do the same thing in Django management commands is to raise
CommandError. | @@ -673,6 +673,10 @@ def build_custom_checkers(by_lang):
]),
'description': "Now that we're a Python 3 only codebase, we don't need to use typing.Text. Please use str instead.",
},
+ {'pattern': 'exit[(]1[)]',
+ 'include_only': set(["/management/commands/"]),
+ 'description': 'Raise CommandError to exit with failure in... |
Minor documentation and log changes
Observed verbally in a previous PR, addressing before they leave my mind. | @@ -66,10 +66,10 @@ class EndpointInterchange:
Funcx config object that describes how compute should be provisioned
reg_info : dict[str, dict]
- Tuple of connection info for task_queue and result_queue
- Connection parameters to connect to the service side RabbitMQ pipes
- Optional: If not supplied, the endpoint will u... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.