message
stringlengths
13
484
diff
stringlengths
38
4.63k
Fix confusion between paying and payment channel In seller.py, balance calls payment instead of paying.
@@ -448,7 +448,7 @@ class SimpleSeller(object): if not self._session or not self._session.is_attached(): raise RuntimeError('market-maker session not attached') - paying_balance = await self._session.call('xbr.marketmaker.get_payment_channel_balance', self._channel['channel']) + paying_balance = await self._session.cal...
make it easier to set the compiler Hi, I'm trying to package Mininet for Guix which doesn't symlink cc to gcc and this would make it easier to package, as well as configure it for alternative compilers.
@@ -14,6 +14,7 @@ BINDIR ?= $(PREFIX)/bin MANDIR ?= $(PREFIX)/share/man/man1 DOCDIRS = doc/html doc/latex PDF = doc/latex/refman.pdf +CC ?= cc CFLAGS += -Wall -Wextra @@ -46,7 +47,7 @@ slowtest: $(MININET) mininet/examples/test/runner.py -v mnexec: mnexec.c $(MN) mininet/net.py - cc $(CFLAGS) $(LDFLAGS) -DVERSION=\"`PY...
ci: docs: Check for failure properly Fixes:
@@ -147,8 +147,19 @@ function run_docs() { last_release=$("${PYTHON}" -m dffml service dev setuppy kwarg version setup.py) + # Log failed tests to file + doctest_failures="$(mktemp)" + TEMP_DIRS+=("${doctest_failures}") + # Doctests - ./scripts/doctest.sh + ./scripts/doctest.sh 2>&1 | tee "${doctest_failures}" + + # Fa...
c_api/header_c.mako: replace uses of the _self variable TN:
@@ -29,7 +29,7 @@ typedef void* ${node_type}; ${c_doc('langkit.node_kind_type')} typedef enum { -% for astnode in _self.astnode_types: +% for astnode in ctx.astnode_types: % if astnode.abstract: /* ${astnode.name()} (abstract) */ @@ -51,7 +51,7 @@ typedef void *${lexical_env_type}; typedef uint8_t ${bool_type}; -% for ...
Update squad_v2.py Change lines 100 and 102 to prevent overwriting ```predictions``` variable.
@@ -97,9 +97,9 @@ class SquadV2(datasets.Metric): ) def _compute(self, predictions, references, no_answer_threshold=1.0): - predictions = dict((p["id"], p["prediction_text"]) for p in predictions) - dataset = [{"paragraphs": [{"qas": references}]}] no_answer_probabilities = dict((p["id"], p["no_answer_probability"]) fo...
Remove redundant shape assertion Fixes
@@ -432,8 +432,6 @@ class KerasClassifier(ClassifierNeuralNetwork, ClassifierGradients, Classifier): # Apply preprocessing x_preprocessed, _ = self._apply_preprocessing(x=x_expanded, y=None, fit=False) - assert len(x_preprocessed.shape) == 4 - # Determine shape of expected output and prepare array output_shape = output...
Clean up scrolling logic Looks like this makes for a smoother scroll experience.
@@ -17,8 +17,8 @@ class Scrolling: self.vscroll_policy: Optional[Gtk.ScrollablePolicy] = None self._hadjustment_handler_id = 0 self._vadjustment_handler_id = 0 - self._last_hvalue = 0.0 - self._last_vvalue = 0.0 + self._last_hvalue = 0 + self._last_vvalue = 0 def get_property(self, prop): if prop.name == "hadjustment":...
Do not store weights from NeighNeighbor classes by default These are not usually particularly meaningful
@@ -36,7 +36,7 @@ __author__ = "Matthew Horton, Evan Spotte-Smith" __version__ = "0.1" __maintainer__ = "Matthew Horton" __email__ = "mkhorton@lbl.gov" -__status__ = "Beta" +__status__ = "Production" __date__ = "August 2017" ConnectedSite = namedtuple('ConnectedSite', 'site, jimage, index, weight, dist') @@ -192,7 +192...
readme_template.md: Chrome required manually cleanup DNS Cache See:
@@ -254,6 +254,9 @@ You can also refer to the "Third-Party Hosts Managers" section for further recom Your operating system will cache DNS lookups. You can either reboot or run the following commands to manually flush your DNS cache once the new hosts file is in place. +| Chromium/Google Chrome required manually cleanup...
index/schema.py: Make cmd_version actually optional. During migration, we may have to import json index file which was produced with an older version. If the index file is missing cmd_version, migration will fail.
@@ -59,6 +59,7 @@ class ArchiveResult: } info['start_ts'] = parse_date(info['start_ts']) info['end_ts'] = parse_date(info['end_ts']) + info['cmd_version'] = info.get('cmd_version') return cls(**info) def to_dict(self, *keys) -> dict:
make risk measure more memory efficient Summary: Pull Request resolved: Using torch.quantile is way more efficient because it does not create large tensors for values and indices (which are the same size as the input). torch.topk also yields memory improvements
@@ -24,6 +24,7 @@ from abc import ABC, abstractmethod from math import ceil from typing import Optional +import torch from botorch.acquisition.objective import MCAcquisitionObjective from torch import Tensor @@ -144,8 +145,12 @@ class CVaR(RiskMeasureMCObjective): A `sample_shape x batch_shape x q`-dim tensor of CVaR s...
joystick: revert max axes value revert this to 255
@@ -41,7 +41,7 @@ class Joystick: def __init__(self): # TODO: find a way to get this from API, perhaps "inputs" doesn't support it self.min_axis_value = {'ABS_Y': 0., 'ABS_RZ': 0.} - self.max_axis_value = {'ABS_Y': 1023., 'ABS_RZ': 255.} + self.max_axis_value = {'ABS_Y': 255., 'ABS_RZ': 255.} self.cancel_button = 'BTN_...
[oracle] corrections about service checks and events [oracle] corrections about service checks and events
## Overview Get metrics from Oracle Database servers in real time to: - -* Visualize and monitor Oracle Database service status. -* Be notified about Oracle Database cluster failovers and events. +* Visualize and monitor your Oracle Database's availability and performance metrics. ## Setup ### Installation @@ -57,7 +55...
Fix Test Failure due to assert bar_graphql_type.interfaces == [foo_graphql_type] failed only on tox, because .interfaces was a tuple instead of a list. Error didn't occur using just pytest. Fixed by explicitly converting both to list.
@@ -318,4 +318,4 @@ def test_interface_with_interfaces(): assert isinstance(fields["foo"], GraphQLField) assert isinstance(fields["bar"], GraphQLField) - assert bar_graphql_type.interfaces == [foo_graphql_type] + assert list(bar_graphql_type.interfaces) == list([foo_graphql_type])
A small typo in GAM Fixing a small typo in plot_partial function's docstring.
@@ -315,7 +315,7 @@ class GLMGamResults(GLMResults): ---------- smooth_index : int index of the smooth term within list of smooth terms - plot_se : book + plot_se : bool If plot_se is true, then the confidence interval for the linear prediction will be added to the plot. cpr : bool
message_list_view: Use translated form of "at" in timestamp tooltip. The English word "at" was manually appended to the string output of datetime-related functions to generate the string shown in the tooltip when hovering over the timestamp of a message. Use the translated form "{date} at {time}" instead, as found else...
@@ -256,10 +256,12 @@ export class MessageListView { if (last_edit_timestamp !== undefined) { const last_edit_time = new Date(last_edit_timestamp * 1000); const today = new Date(); - return ( - timerender.render_date(last_edit_time, undefined, today)[0].textContent + - " at " + - timerender.stringify_time(last_edit_tim...
Fix&simplify finalize_sym_literals Symbol names were not properly attributed and checked for duplicates.
@@ -1897,35 +1897,26 @@ class CompileCtx(object): symbols = self._symbol_literals self._symbol_literals = None - i = 1 - for name in sorted(symbols): - # Create a candidate name for this symbol: replace all - # non-alphabetic characters with underscores and remove - # leading/trailing/consecutive underscores. - candida...
[modules/system] Add parameters to override commands For each command in the system module, add a parameter that allows the user to override the default behaviour. fixes
@@ -10,8 +10,15 @@ the system. Per default a confirmation dialog is shown before the actual action is performed. -Paramters: +Parameters: * system.confirm: show confirmation dialog before performing any action (default: true) + * system.reboot: specify a reboot command (defaults to 'reboot') + * system.shutdown: specif...
Update README.md Updated info on compressed_segmentation.
[![Build Status](https://travis-ci.org/seung-lab/cloud-volume.svg?branch=master)](https://travis-ci.org/seung-lab/cloud-volume) [![PyPI version](https://badge.fury.io/py/cloud-volume.svg)](https://badge.fury.io/py/cloud-volume) -# cloud-volume +# CloudVolume ```python3 from cloudvolume import CloudVolume @@ -17,7 +17,7...
array_types_ada.mako: add comment to describe type emission logic TN:
<% elt_type = cls.element_type.name %> + ## If this array type is exposed in the public API, it is declared there, so + ## no need to re-declare it here. There is one exception to this rule: if + ## the element type itself is exposed, but as a different type (for instance + ## entities), then we need a separate type. %...
IDL lower and upper case are both OK in Markdown files
+import mock from nbformat.v4.nbbase import new_code_cell, new_raw_cell, new_markdown_cell from testfixtures import compare import jupytext @@ -257,3 +258,53 @@ nor be split into two pieces.""" compare(text, nb.cells[0].source) assert nb.cells[0].cell_type == 'markdown' assert len(nb.cells) == 1 + + +def test_read_mark...
js: only remove hash if there is one Firefox seems to add a history entry because the url changes from '{url}' to '{url}#'.
@@ -9,8 +9,10 @@ export function closeOverlay() { $$('.overlay-wrapper').forEach((el) => { el.classList.remove('shown'); }); + if (window.location.hash) { window.location.hash = ''; } +} // Show various overlays depending on the hash. export function handleHash() {
Catch Limiter Bug Fix Added default values to daily_catch_limit and exit_on_limit_reached incase they are not found in CatchPokemon Task
@@ -24,6 +24,9 @@ class CatchLimiter(BaseTask): self.duration = self.config.get("duration", 15) self.no_log_until = datetime.now() self.min_ultraball_to_keep = 0 + self.daily_catch_limit = 500 # default it to 500 if not found in CatchPokemon + self.exit_on_limit_reached = False # default it to false if not found in Cat...
Fixed multiproject test Didn't remove date Didn't raise the error
@@ -61,9 +61,13 @@ def test_multiproject_1(): '-wi', 'tests/multipart.xml', 'tests/multipart2.xml'] logging.debug('Running '+str(cmd)) subprocess.check_output(cmd, stderr=subprocess.STDOUT) - cmd = ['xlsx2csv', 'tests/multipart1+2.xlsx', 'tests/result_test/multipart1+2.csv'] + cmd = ['xlsx2csv', 'tests/multipart1+2.xls...
Change direction of arrow Fixes
@@ -199,7 +199,7 @@ exports.addExchangesConfiguration = function(exchanges) { // GR exchanges['GR->IT'] = { lonlat: [18.759248, 38.902132], - rotation: 90 + rotation: -90 }; exchanges['GR->MK'] = { lonlat: [22.011736, 41.160374],
Add DistMult to the README This wasn't added in or but could've been.
@@ -183,6 +183,7 @@ The StellarGraph library currently includes the following algorithms for graph m | Watch Your Step [14] | The Watch Your Step algorithm computes node embeddings by using adjacency powers to simulate expected random walks. | | Deep Graph Infomax [15] | Deep Graph Infomax trains unsupervised GNNs to m...
Add a note about service.running A common source of confusion, hopefully this will help prevent that confusion.
@@ -378,6 +378,63 @@ exactly like the ``require`` requisite (the watching state will execute if .. note:: + If the watching state ``changes`` key contains values, then ``mod_watch`` + will not be called. If you're using ``watch`` or ``watch_in`` then it's a + good idea to have a state that only enforces one attribute -...
Fix multiple match text for token regex It has to account for the addition of groups. It's easiest to compare the entire string so `finditer` is used to return re.Match objects; the tuples of `findall` would be cumbersome. Also threw in a change to use `assertCountEqual` cause the order doesn't really matter.
@@ -174,8 +174,9 @@ class TokenRemoverTests(unittest.IsolatedAsyncioTestCase): tokens = ["x.y.z", "a.b.c"] message = f"garbage {tokens[0]} hello {tokens[1]} world" - results = token_remover.TOKEN_RE.findall(message) - self.assertEqual(tokens, results) + results = token_remover.TOKEN_RE.finditer(message) + results = [ma...
Logged sync and render time in tiled final render mode PURPOSE Synchronization and render times aren't displayed in tiled final render mode log. Add it. EFFECT OF CHANGE synchronization and render times are correctly logged in tiled final render mode.
@@ -284,6 +284,10 @@ class RenderEngine(Engine): athena_data['Stop Time'] = datetime.datetime.utcnow().strftime("%Y-%m-%d %H:%M:%S.%f") athena_data['Samples'] = round(self.render_samples * progress) + + log.info(f"Scene synchronization time:", perfcounter_to_str(self.sync_time)) + log.info(f"Render time:", perfcounter_...
Dockerfile: Update base image to 20.04 19.10 is now EOL so update to use 20.04 LTS as a base instead.
# # We want to make sure to base this on a recent ubuntu release -FROM ubuntu:19.10 +FROM ubuntu:20.04 # Please update the references below to use different versions of # devlib, WA or the Android SDK
Removed docs from configurable parameters docs is not supported by DynamicProperty and it is removed from the list of configurable parameters. Improved documentation for set_command and get_command. Fixed typo.
@@ -51,7 +51,7 @@ class DynamicProperty(property): def __get__(self, obj, objtype=None): if obj is None: - # Property return itself when invocad from a class + # Property return itself when invoked from a class return self if self.fget is None: raise AttributeError("unreadable attribute") @@ -91,12 +91,11 @@ class Inst...
Use author as the title of the embed Allows the icon to be centered
@@ -842,10 +842,10 @@ class HelpChannels(commands.Cog): log.trace(f"Sending available message in {channel_info}.") embed = discord.Embed( - title=AVAILABLE_TITLE, color=constants.Colours.bright_green, description=AVAILABLE_MSG, ) + embed.set_author(name=AVAILABLE_TITLE, icon_url=constants.Icons.green_checkmark) embed.s...
Update ilapfuncs.py Allow KMLs to be generated even if a timestamp is not present.
@@ -220,7 +220,7 @@ def kmlgen(report_folder, kmlactivity, data_list, data_headers): length = (len(data_list)) while a < length: modifiedDict = dict(zip(data_headers, data_list[a])) - times = modifiedDict['Timestamp'] + times = modifiedDict.get('Timestamp','N/A') lon = modifiedDict['Longitude'] lat = modifiedDict['Lati...
Update contributor-guide.rst Added verbose pip install -v argument, needed to see pyqode.qt install print statements in setupy.py
@@ -594,7 +594,7 @@ To do so, execute these commands in the top-level of the repository: conda env create -n <env_name> environment.yml conda activate <env_name> - python -m pip install -e . + python -m pip install -ve . For convenience, you can also try to install directly in an existing environment such as the `base`...
Separate htex worker log directories by block id This commit adds an addition block level to htex worker log paths, like this: .../runinfo/004/worker-nodes/block-0/627785a8965e/manager.log This has been useful during a run with multiple large blocks to discern which logs belong to which block.
@@ -474,7 +474,7 @@ def worker(worker_id, pool_id, pool_size, task_queue, result_queue, worker_queue Pop request from queue Put result into result_queue """ - start_file_logger('{}/{}/worker_{}.log'.format(args.logdir, pool_id, worker_id), + start_file_logger('{}/block-{}/{}/worker_{}.log'.format(args.logdir, args.bloc...
[Test] increase timeout for `test_traceback.py` `test_traceback.py` was taking ~55s to finish recently, and since today it starts to time out at 60s more frequently. All test cases do succeed so increase its test time out for now. We will look into if there is any performance regression separately.
@@ -116,6 +116,7 @@ py_test_module_list( "test_multi_tenancy.py", "test_scheduling.py", "test_scheduling_2.py", + "test_traceback.py", ], size = "medium", extra_srcs = SRCS, @@ -138,7 +139,6 @@ py_test_module_list( "test_numba.py", "test_queue.py", "test_ray_shutdown.py", - "test_traceback.py", "test_unhandled_error.py...
Update export_result_mysql.dig Made commented changes. Removed api endpoint and moved database under td.
timezone: UTC _export: - mysql: - endpoint: api.treasuredata.com + td: database: sample_datasets + mysql: connection: MY_REMOTE_CONNECTION dbname: MY_DB_NAME table: MY_TABLE_NAME
show status on graphs HG-- branch : feature/microservices
{ "alias": "Input", "transform": "negative-Y" + }, + { + "alias": "Oper status", + "yaxis": 2 + }, + { + "alias": "Admin status", + "yaxis": 2 } ], "span": 12, "value": "/^${{interface.type}}$/" } ] + }, + { + "refId": "C", + "measurement": "Interface | Status | Oper", + "alias": "Oper status", + "hide": false, + "poli...
[Dataset] GNNBenchmarkDataset * PPIDataset * Revert "PPIDataset" This reverts commit * gnn benchmark dataset * Update gnn_benckmark.py
@@ -10,7 +10,8 @@ from .sbm import SBMMixture from .reddit import RedditDataset from .ppi import PPIDataset, LegacyPPIDataset from .tu import TUDataset, LegacyTUDataset -from .gnn_benckmark import AmazonCoBuy, CoraFull, Coauthor +from .gnn_benckmark import AmazonCoBuy, CoraFull, Coauthor, AmazonCoBuyComputerDataset, \ ...
addressing issue closes
@@ -5,7 +5,7 @@ from typing import List, Tuple, Callable, Iterator import tensorflow as tf from neuralmonkey.tf_utils import update_initializers -from neuralmonkey.logging import log +from neuralmonkey.logging import log, warn # pylint: enable=invalid-name InitializerSpecs = List[Tuple[str, Callable]] @@ -52,8 +52,8 @@...
Update phishing.txt Have updated domains due to comment
@@ -306,23 +306,25 @@ netflix-exp.com # Reference: https://twitter.com/PhishingAi/status/1037167256138989569 # Reference: https://paste.ee/p/z6Xng -citycloudbd.com +citycloudbd.com/pot/Share/share ctsluganda.org -figwit.co.uk +figwit.co.uk/SEIREN/Office/Share/share gayatriea.com joaquinpianguita.com kazurimanager.com m...
Fix lookback names to be consistent with urdb_parse The previous names were from the URDB documentation which is incorrect
@@ -108,9 +108,9 @@ class RateData: 'demandwindow', 'demandreactivepowercharge', # lookback demand charges - 'lookbackMonths', - 'lookbackPercent', - 'lookbackRange', + 'lookbackmonths', + 'lookbackpercent', + 'lookbackrange', # coincident rates 'coincidentrateunit', 'coincidentratestructure', @@ -447,27 +447,27 @@ cla...
Remove show_immediately from matplotlib graph It looks like appveyor is hanging after running the example due to the plot being open.
@@ -151,7 +151,7 @@ class PressureMatrix: >>> my_pressure_matrix.plot_shape() >>> my_pressure_matrix.plot_pressure_theta(z=int(nz/2)) >>> my_pressure_matrix.matplot_pressure_theta_cylindrical(z=int(nz/2), - ... show_immediately=True) + ... show_immediately=False) """ def __init__(
Updates stability analyzer to be compatible with sparse data. Changes a dictionary index to a .get(index, default) call so that if an outcome is not present (e.g. when all the the outcomes are of a single type) the stability analysis doesn't fail.
@@ -1771,7 +1771,7 @@ class StabilityAnalyzer(object): # The most likely null hypothesis model, i.e., constant probabilities that are the observed frequencies. counts = self.data[dskey][circuit].counts total = self.data[dskey][circuit].total - means = {o: counts[o] / total for o in outcomes} + means = {o: counts.get(o,...
help_docs: Update `stream-notifications` help doc. Uses new `select-stream-view-personal` for instructions. Also, moves one sentence notes to be under header vs tab block, and updates numbers used in instruction list to all be '1', and clarifies text about notifications table in general personal setting.
@@ -5,34 +5,38 @@ stream basis. ## Set notifications for a single stream +These settings will override any default stream notification settings. + {start_tabs} 1. Hover over the stream in the left sidebar. -2. Click the ellipsis (<i class="zulip-icon zulip-icon-ellipsis-v-solid"></i>) to the +1. Click the ellipsis (<i ...
scripts/update-plugin-list: Improve requirement detection PEP 566 does not require a space after the dependency name.
@@ -78,7 +78,7 @@ def iter_plugins(): requires = "N/A" if info["requires_dist"]: for requirement in info["requires_dist"]: - if requirement == "pytest" or "pytest " in requirement: + if re.match(r"pytest(?![-.\w])", requirement): requires = requirement break releases = response.json()["releases"]
Ensure networking process is killed before db process Since the networking process currently depends on the database process, it is safer to first kill the networking process and then the db process.
@@ -135,7 +135,7 @@ def trinity_boot(args: Namespace, kill_trinity_gracefully( trinity_config, logger, - (database_server_process, networking_process), + (networking_process, database_server_process), plugin_manager, main_endpoint, reason=reason
swarming: fix crash in metrics. Was introduced in
@@ -335,7 +335,7 @@ def _set_executors_metrics(payload): status = 'quarantined' elif bot_info.is_dead(utils.utcnow()): status = 'dead' - elif bot_info.state.get('maintenance', False): + elif bot_info.state and bot_info.state.get('maintenance', False): status = 'maintenance' target_fields = dict(_TARGET_FIELDS)
Remove `bpr.occupancy` from electricity calculation Also redefines the call for refrigeration, server room and industrial process demands from whether they have a specific type of occupancy to whether they have that specific internal load.
@@ -54,18 +54,18 @@ def calc_Eint(tsd, bpr, schedules): tsd['Ealf'] = tsd['Elf'] + tsd['Eaf'] # calculate other electrical loads in W - if 'COOLROOM' in bpr.occupancy: - tsd['Eref'] = schedules['Ere'] * bpr.internal_loads['Ere_Wm2'] * bpr.occupancy['COOLROOM'] + if bpr.internal_loads['Ere_Wm2'] > 0: + tsd['Eref'] = sch...
The function suggest_float was not implemented in the class 'ChainerMNTrial'. So, I implemented it.
@@ -189,6 +189,17 @@ class ChainerMNTrial(BaseTrial): self.delegate = trial self.comm = comm + def suggest_float(self, name, low, high, *, log=False): + # type: (str, float, float, bool) -> float + + def func(): + # type: () -> float + + assert self.delegate is not None + return self.delegate.suggest_float(name, low, h...
Bump all test dependencies There was one new flake8 warning, which this fixes.
-r requirements.txt -flake8==4.0.1 -flake8-bugbear==22.4.25 +flake8==5.0.4 +flake8-bugbear==22.7.1 isort==5.10.1 -moto==3.1.9 +moto==4.0.0 pytest==7.1.2 pytest-env==0.6.2 -pytest-mock==3.7.0 +pytest-mock==3.8.2 pytest-cov==3.0.0 pytest-xdist==2.5.0 -freezegun==1.2.1 +freezegun==1.2.2 requests-mock==1.9.3 # used for cre...
Update endpoint tests to work with botocore 1.23.x Verify endpoints are a subset of the data we require to account for the new variant keyword added to endpoints.json in botocore 1.23.x. Fixes
@@ -25,7 +25,11 @@ from chalice.awsclient import TypedAWSClient ]) def test_resolve_endpoint(stubbed_session, service, region, endpoint): awsclient = TypedAWSClient(stubbed_session) - assert endpoint == awsclient.resolve_endpoint(service, region) + if endpoint is None: + assert awsclient.resolve_endpoint(service, regio...
Update sys_info.py Used flake8 linting and there is not requirements.txt as all the libraries are pre-installed.
@@ -14,8 +14,9 @@ print("Processor: ", sys_info.processor) b = psutil.boot_time() bootTime = datetime.fromtimestamp(b) -print("Booted On: ", bootTime.day, "/", bootTime.month, "/", bootTime.year, " ", bootTime.hour, ":", bootTime.minute, ":", bootTime.second) - +print("Booted On") +print("Day:", bootTime.day, "/", boot...
Change options for default docker app sometimes test deploying docker app fails. This PR adjust settings to limit resources and increase grace period and health check interval.
@@ -190,16 +190,16 @@ def marathon_test_docker_app(app_name: str, constraints=None): test_uuid = uuid.uuid4().hex app = copy.deepcopy({ 'id': "integration-test-{}-{}".format(app_name, test_uuid), - 'cpus': 1, - 'mem': 1024, + 'cpus': 0.5, + 'mem': 128, 'disk': 0, 'instances': 1, 'healthChecks': [ { - "gracePeriodSecond...
Add precise location information for lexer matchers TN:
@@ -23,6 +23,9 @@ class Matcher(object): input will trigger a match. """ + def __init__(self, location=None): + self.location = location or extract_library_location() + @property def match_length(self): """ @@ -90,7 +93,8 @@ class Pattern(Matcher): * ``^`` and ``$``, to match the very beginning of the input and its end...
fix missing string boundaries in dunder all see follow-up
@@ -50,7 +50,7 @@ __all__ = ['ENGINES', 'FORMATS', 'RENDERERS', 'FORMATTERS', 'unflatten', 'version', 'view', 'RequiredArgumentError', 'FileExistsError', 'UnknownSuffixWarning', 'FormatSuffixMismatchWarning', - 'ExecutableNotFound, CalledProcessError', + 'ExecutableNotFound', 'CalledProcessError', 'set_default_engine',...
Warn about missing --bypass-file-store with in-place update When using `InplaceUpdateRequirement` in the `hints` section, `toil-cwl-runner` now warns that the Toil file store does not support this, and that the option --bypass-file-store should be provided on the command line.
@@ -2974,10 +2974,9 @@ def scan_for_unsupported_requirements( if not bypass_file_store: # If we are using the Toil FileStore we can't do InplaceUpdateRequirement req, is_mandatory = tool.get_requirement("InplaceUpdateRequirement") - if req and is_mandatory: - # The tool actually uses this one, and it isn't just a hint....
Update setup.py Updated requirements, for later sectors and northern hemisphere to properly work with tess-point
@@ -58,7 +58,7 @@ setup( 'mplcursors', 'photutils>=0.7', 'tqdm', 'lightkurve>=1.1.0', 'astropy>=3.2.3', 'astroquery', 'bokeh', 'fitsio', 'pandas', 'setuptools>=41.0.0', - 'tensorflow<=1.14.0', 'vaneska', 'beautifulsoup4>=4.6.0', 'tess-point'], + 'tensorflow<=1.14.0', 'vaneska', 'beautifulsoup4>=4.6.0', 'tess-point>=0.3...
fix: Add invalid conditions for Check fieldtype Update invalid conditions for select and link
@@ -36,10 +36,11 @@ frappe.ui.Filter = class { Date: ['like', 'not like'], Datetime: ['like', 'not like'], Data: ['Between', 'Previous', 'Next'], - Select: ['like', 'not like'], - Link: ["Between", 'Previous', 'Next'], + Select: ['like', 'not like', 'Between', 'Previous', 'Next'], + Link: ["Between", 'Previous', 'Next'...
DOC: use custom str instead of repr Use str instead of repr for custom in inst str.
@@ -1075,7 +1075,7 @@ class Instrument(object): output_str += 'Data Padding: ' + self.pad.__repr__() + '\n' output_str += 'Keyword Arguments Passed to load(): ' output_str += self.kwargs.__str__() + '\n' - output_str += self.custom.__repr__() + output_str += self.custom.__str__() # Print out the orbit settings if self....
Fixing Revert view with Reversion 2.0 revision_view and recover_view get extra context added by way of overriding render_revision_form(), but this method got renamed in Reversion 2.0, so we need to override _reversion_revisionform_view() too Unfortunately saving this form hits other issues so this is WIP
@@ -243,8 +243,17 @@ class ItemEditor(ExtensionModelAdmin): recover_form_template = "admin/feincms/recover_form.html" + # For Reversion < v2.0.0 def render_revision_form(self, request, obj, version, context, revert=False, recover=False): context.update(self.get_extra_context(request)) return super(ItemEditor, self).ren...
Modernize SCONS_CACHE_MSVC_CONFIG manpage entry [skip appveyor] Mention name change; remove the wording about version changes possibly causing problems - the currrent implementation should be resilient to this.
@@ -8398,29 +8398,29 @@ so the command line can be used to override <listitem> <para>(Windows only). If set, save the shell environment variables generated when setting up the Microsoft Visual C++ compiler -(and/or Build Tools) to a cache file, to give these settings, -which are relatively expensive to generate, persis...
[example] Fixed incorrect inference result with Tiny Yolo v2 Face model for Face Recognition example. fixes
@@ -283,7 +283,7 @@ class FaceRecognitionExample extends BaseCameraExample { dHeight: this._currentCoModelInfo.inputSize[0], }, }; - await this._coRunner.run(this._currentInputElement, drawOptions); + await this._coRunner.run(element, drawOptions); let frOutput = this._coRunner.getOutput(); inferenceTime += parseFloat(...
FIX: removed deprecated handling 'Plot' fixed docstring for argument plot the singular value plot
@@ -1059,7 +1059,7 @@ def singular_values_plot(syslist, omega=None, omega : array_like List of frequencies in rad/sec to be used for frequency response plot : bool - If True (default), plot magnitude and phase + If True (default), generate the singular values plot omega_limits : array_like of two values Limits of the f...
make window management on mac work a bit better At least for me on a MacBook pro on ventura, the current implementations of `window_move_desktop_{left,right}` produce an error, and even if they didn't they would use keybindings that don't work by default. This fixes that error and uses the default keybindings of ctrl-l...
@@ -14,14 +14,16 @@ def _drag_window_mac(win=None): if win is None: win = ui.active_window() fs = win.children.find(AXSubrole="AXFullScreenButton")[0] - rect = fs.AXFrame["$rect2d"] - x = rect["x"] + rect["width"] + 5 - y = rect["y"] + rect["height"] / 2 + rect = fs.AXFrame + x = rect.x + rect.width + 5 + y = rect.y + ...
netskope-readme missing #
@@ -434,7 +434,7 @@ Take an action on a quarantined file. There is no context output for this command. -### Command example +#### Command example !netskope-quarantined-file-update file_id=1M_RR4jLPUwclKOhqZ7sPSqkMNS-S6Vyr quarantine_profile_id=1 action=block #### Human Readable Output
Add Google Analytics to built docs This is currently using the same tag as voxel51.com
</footer> {% endblock %} + +{% block footer %} +<!-- Global site tag (gtag.js) - Google Analytics --> +<script async src="https://www.googletagmanager.com/gtag/js?id=UA-141773487-1"></script> +<script> + window.dataLayer = window.dataLayer || []; + function gtag(){dataLayer.push(arguments);} + gtag('js', new Date()); +...
Proof of concept: export process graph to Graphviz for visualization Graphviz graphs have `_repr_svg_()`, so render nicely in jupyter notebook
@@ -881,3 +881,16 @@ class ImageCollectionClient(ImageCollection): newCollection = ImageCollectionClient(id, newbuilder, self.session) newCollection.bands = self.bands return newCollection + + def to_graphviz(self): + """ + Build a graphviz DiGraph from the process graph + :return: + """ + import graphviz + graph = gra...
Fix E741 Variable name l is ambiguous, as in, "looks like other chars"
@@ -192,27 +192,27 @@ def load_loggers(m, config, quiet): type = config.get(logger, "type") config_options = get_config_dict(config, logger) if type == "db": - l = Loggers.db.DBFullLogger(config_options) + new_logger = Loggers.db.DBFullLogger(config_options) elif type == "dbstatus": - l = Loggers.db.DBStatusLogger(conf...
vdb.ondisk: make ConfiguredTree inherit from wrapper instead of multiplex Similar to how the configured binpkg tree is handled.
@@ -18,16 +18,18 @@ from pkgcore.config import ConfigHint from pkgcore.ebuild import ebuild_built from pkgcore.ebuild.cpv import versioned_CPV from pkgcore.ebuild.errors import InvalidCPV -from pkgcore.repository import errors, multiplex, prototype +from pkgcore.repository import errors, prototype, wrapper demandload( ...
mpir: add m4 to build_requires * mpir: add m4 to build_requires To fix checking for suitable m4... configure: error: No usable m4 in $PATH or /usr/5bin * Don't require m4 for Visual Studio
@@ -44,6 +44,8 @@ class MpirConan(ConanFile): del self.settings.compiler.cppstd def build_requirements(self): + if self.settings.compiler != "Visual Studio": + self.build_requires("m4/1.4.18") self.build_requires("yasm/1.3.0") if tools.os_info.is_windows and self.settings.compiler != "Visual Studio" and \ "CONAN_BASH_P...
compiled_types.get_context: forward all arguments to other get_context TN:
@@ -18,7 +18,7 @@ from langkit.utils import (DictProxy, common_ancestor, issubtype, memoized, not_implemented_error, type_check) -def get_context(): +def get_context(*args, **kwargs): """ Return the current compilation context, see langkit.compile_context.get_context. @@ -29,7 +29,7 @@ def get_context(): :rtype: Compil...
Add Confluence markup format parameter It will allow to create Confluence pages that will be interpreted with the wiki markup syntax. More info about Confluence formats here:
@@ -279,7 +279,8 @@ class Confluence(AtlassianRestAPI): params['status'] = status return self.delete(url, params=params) - def create_page(self, space, title, body, parent_id=None, type='page'): + def create_page(self, space, title, body, parent_id=None, type='page', + representation='storage'): """ Create page from sc...
Update README.md update manual options
@@ -261,14 +261,15 @@ optional arguments: -nt, --notag Overrides and disables tagging when using the automated option -nd, --nodelete Overrides and disables deleting of original files - -pr, --preserveRelative + -pr, --preserverelative Preserves relative directories when processing multiple files using the copy-to or m...
Add check for add_reactions permission Fixes the bug report by webhp where GearBot spits out a 403 error when not having add reactions permission in the guild. (https://canary.discordapp.com/channels/365498559174410241/474303535153020969/655626715024064512)
@@ -30,6 +30,7 @@ class Reminders(BaseCog): if ctx.invoked_subcommand is None: await ctx.invoke(self.bot.get_command("help"), query="remind") + @commands.bot_has_permissions(add_reactions=True) @remind.command("me", aliases=["add", "m", "a"]) async def remind_me(self, ctx, duration: Duration, *, reminder: ReminderText)...
ci: fail when the playbooks fails This commit makes the CI job to fail when the Ansible playbook fails.
@@ -366,7 +366,7 @@ def run_e2e_job(distro, driver, masters, workers, str(job_type), str(launch_from)) print(deployment_command) - launch_output = subprocess.run(deployment_command, shell=True) + launch_output = subprocess.run(deployment_command, shell=True, check=True) print("'launch_e2e.py' ==> ./ci/launch_e2e.sh out...
Tell Android users how to have enough storage Close
@@ -146,6 +146,8 @@ If you do not see any devices, you can create and start an emulator by running: --name robotfriend --abi x86 \ --package 'system-images;android-28;default;x86' --device pixel + $ echo 'disk.dataPartition.size=4096M' >> $HOME/.android/avd/robotfriend.avd/config.ini + $ {emulator_path} -avd robotfrien...
[bugfix] Fix another error in Fix failing tests after
@@ -1185,7 +1185,7 @@ class TestLagpattern(DefaultSiteTestCase): for info, time in patterns.items(): lag = api.lagpattern.search(info) self.assertIsNotNone(lag) - self.assertEqual(int(lag.group('lag')), time) + self.assertEqual(float(lag.group('lag')), time) if __name__ == '__main__': # pragma: no cover
Change minWithdrawable from 1 msat to 1000 msats for the lnurl_full_withdraw 1 msat is fractional and thus unacceptable anyway. Also, when withdrawing from lnbits itself, this interferes with the input form to expect fractional 1.001 steps
@@ -129,7 +129,7 @@ async def lnurl_full_withdraw(): _external=True, ), "k1": "0", - "minWithdrawable": 1 if wallet.withdrawable_balance else 0, + "minWithdrawable": 1000 if wallet.withdrawable_balance else 0, "maxWithdrawable": wallet.withdrawable_balance, "defaultDescription": f"{LNBITS_SITE_TITLE} balance withdraw f...
Update manual.py tvid fix
@@ -375,7 +375,7 @@ def main(): tagdata = [3, tvdbid, season, episode] else: tagdata = getinfo(path, silent=silent, tvdbid=tvdbid) - elif ((args['imdbid'] or args['tmdbid']) and not args['tvdbid']): + elif ((args['imdbid'] or args['tmdbid']) and not args['tvid']): if (args['imdbid']): imdbid = args['imdbid'] tagdata = ...
docs: remove fixed Ansible limitation The solution was that Mitogen's loader should emulate the behaviour of ansible.executor.module_common, which restricts dependency scanning to the ansible.module_utils namespace.
@@ -77,10 +77,6 @@ Limitations * Only the ``sudo`` become method is available, however adding new methods is straightforward, and eventually at least ``su`` will be included. -* In some cases the module loader may aggressively upload optional dependencies - available on the Ansible host machine but not on the target ma...
CompileCtx.main_rule_name: turn into a property TN:
@@ -363,8 +363,6 @@ class CompileCtx(object): self.grammar = grammar ":type: langkit.parsers.Grammar" - self.main_rule_name = grammar.main_rule_name - self.python_api_settings = ( PythonAPISettings(lib_name.lower, self.c_api_settings) if enable_python_api else None @@ -557,6 +555,15 @@ class CompileCtx(object): :type: ...
wildfire download report save as entry fixes
@@ -171,7 +171,7 @@ script: var currentTime = new Date(); var fileName = command + '_at_' + currentTime.getTime(); - return {Type: entryTypes.note, + return {Type: 9, FileID: saveFile(resPDF), File: fileName, Contents: fileName,
MAINT: remove commented code Remove old code used to support COSMIC data.
@@ -565,10 +565,6 @@ def load_netcdf_pandas(fnames, strict_meta=False, file_format='NETCDF4', # Prepare dataframe index for this netcdf file time_var = loaded_vars.pop(epoch_name) - - # Convert from GPS seconds to seconds used in pandas (unix time, - # no leap seconds) - # time_var = convert_gps_to_unix_seconds(time_va...
Change the default intermediate directory to be under /tmp/. If we keep it under /opt, this could cause an issue when we convert to singularity image, which will attempt to create a directory without root permission.
@@ -64,7 +64,7 @@ flags.DEFINE_string('output_vcf', None, flags.DEFINE_string('output_gvcf', None, 'Optional. Path where we should write gVCF file.') flags.DEFINE_string( - 'intermediate_results_dir', '/opt/tmp_output', + 'intermediate_results_dir', '/tmp/deepvariant_tmp_output', 'Optional. If specified, this should be...
Change datatype of revalidator,handler threads Currently these parameters are number type. They fail string validation at vs_config. Default set to none to retain current behavior. Closes-Bug:
@@ -43,15 +43,15 @@ parameters: OvsHandlerCores: description: > Number of cores to be used for ovs handler threads. - type: number - default: 1 + type: string + default: "" tags: - role_specific OvsRevalidatorCores: description: > Number of cores to be used for ovs revalidator threads. - type: number - default: 1 + typ...
Exclude the stdlib from flake8 CI check We should hopefully be getting rid of this entire subdirectory soon anyway This will make PRs to flake8-pyi a lot easier.
@@ -35,10 +35,8 @@ per-file-ignores = # https://github.com/PyCQA/flake8/issues/1079 # F811 redefinition of unused '...' stubs/*.pyi: E301, E302, E305, E501, E701, E741, F401, F403, F405, F822, Y026, Y027 - stdlib/@python2/*.pyi: E301, E302, E305, E501, E701, E741, F401, F403, F405, F822, Y026, Y027 - stdlib/@python2/ty...
explicit keyword args for seaborn plot fn seaborn 0.12 got released. keyword arguments are now required for plotting functions:
@@ -926,8 +926,8 @@ def calibration_plot( order = min(3, len(mean_predicted_values[i]) - 1) sns.regplot( - mean_predicted_values[i], - fraction_positives[i], + x=mean_predicted_values[i], + y=fraction_positives[i], order=order, x_estimator=np.mean, color=colors[i],
Update android_pua.txt Regex covers all subdomains from ```a.appjiagu.com``` up to ```z.appjiagu.com``` only.
@@ -36,3 +36,13 @@ admob.linkpc.net easyphonetrack.com /spy_phone/test_connection.php + +# Reference: https://www.virustotal.com/gui/file/e1288cb54727e673ffbd90ef4fcda2079d9f8a3d7b22b54b4e4726864462987c/detection +# Reference: https://www.virustotal.com/gui/file/47ea88989bc1b1e90ea66d535c8c412994dd6eddaee82a4b69d3cd092...
Handle resources with no name This commit prevents silent failures when encountering a resource with no name, which has been observed with glance images that are in a "queued" state. Closes-Bug:
@@ -167,7 +167,7 @@ def obj_from_name(resource_config, resources, typename): pattern = re.compile(patternstr) matching = [resource for resource in resources - if re.search(pattern, resource.name)] + if re.search(pattern, resource.name or "")] if not matching: raise exceptions.InvalidScenarioArgument( "{typename} with p...
0 must be composite number 0 must be composite number
# Requirement https://sample-programs.therenegadecoder.com/projects/prime-number/ # Issue #1834 # Accept a number on command line and print if it is Prime or Composite -# Prime Numbers will always be Odd and have only 1 Divisor, itself.. Use that to determine Composite. +# Prime Numbers will have only 1 Divisor, itself...
Update amazon-eks.template.yaml Formatting changes to Description text for ManagedNodeGroupAMIType. Reordered AllowedValues for KubernetesVersion to match deployment guide.
@@ -134,7 +134,7 @@ Parameters: Description: Choose if you want to use a managed node group. If you select "yes", you must select Kubernetes Version 1.14 or higher. Type: String ManagedNodeGroupAMIType: - Description: Select one of the two AMI Types for your Managed Node Group (Only applies if you selected Managed Node...
Metadata update Fixed bug in assigning units to metadata
@@ -610,7 +610,8 @@ def extract_modelled_observations(inst=None, model=None, inst_name=[], # Update the instrument object and attach units to the metadata for mdat in interp_data.keys(): attr_name = mdat.split("{:s}_".format(model_label))[-1] - inst.meta.data.units[mdat] = model.data_vars[attr_name].units + inst.meta._...
Try another version of apt/dpkg killing. Summary: Pull Request resolved: Test Plan: Imported from OSS
@@ -37,9 +37,14 @@ sudo apt-get purge -y unattended-upgrades cat /etc/apt/sources.list -# For the bestest luck, kill -9 now -sudo pkill -9 apt-get || true - -# Bail out early if we detect apt/dpkg is stuck -ps auxfww | (! grep '[a]pt') -ps auxfww | (! grep '[d]pkg') +# For the bestest luck, kill again now +sudo pkill a...
Update cpu_asimdfhm.c Updated `vfmlal_low_u32` and `vfmlslq_high_u32` to their `f16` new names. Described here: Many of the intrinsics had names updated. Supposedly previous specifications were not published so old names not required.
@@ -10,8 +10,8 @@ int main(void) float32x4_t vf = vdupq_n_f32(1.0f); float32x2_t vlf = vdup_n_f32(1.0f); - int ret = (int)vget_lane_f32(vfmlal_low_u32(vlf, vlhp, vlhp), 0); - ret += (int)vgetq_lane_f32(vfmlslq_high_u32(vf, vhp, vhp), 0); + int ret = (int)vget_lane_f32(vfmlal_low_f16(vlf, vlhp, vlhp), 0); + ret += (int)...
Replace fn::join with fn::sub in cfn template Improves readability
"Effect": "Allow", "Resource": [ { - "Fn::Join": [ - "", - [ - "arn:", - { - "Ref": "AWS::Partition" - }, - ":cloudformation:", - { - "Ref": "AWS::Region" - }, - ":", - { - "Ref": "AWS::AccountId" - }, - ":stack/", - { - "Ref": "AWS::StackName" - }, - "/*" - ] - ] + "Fn::Sub": "arn:${AWS::Partition}:cloudformation:${AW...
Enable tests working on ROCm 2.1 dual gfx906 Summary: Pull Request resolved:
@@ -1077,6 +1077,7 @@ class TestCuda(TestCase): self.assertEqual(t._version, old_version + 1) @unittest.skipIf(not TEST_MULTIGPU, "only one GPU detected") + # Note: fails sometimes on the CI, passes on dual gfx906 @skipIfRocm def test_broadcast_coalesced(self): numel = 5 @@ -1147,7 +1148,6 @@ class TestCuda(TestCase): ...
BUG: fix to check before apply `shlex.split` `shlex.split` will try to read stdin if `None` is passed, so change to check before apply it. see
@@ -466,10 +466,8 @@ def customize(self, dist = None): noarch = self.distutils_vars.get('noarch', noopt) debug = self.distutils_vars.get('debug', False) - f77 = shlex.split(self.command_vars.compiler_f77, - posix=(os.name == 'posix')) - f90 = shlex.split(self.command_vars.compiler_f90, - posix=(os.name == 'posix')) + f...
Update with notes from devs Updating to include notes from Joram + Christopher.
-============================= -WIP: Developer Tool Kit -============================= +WIP: Developer Toolkit +====================== -This document is a work-in-progress for summarizing developer toolkit capabilities currently under development. +High Level Overview +------------------- -High-level: +This document is...
fix changelog typo Summary: Is the new bullet for 9.4 or 9.3? Test Plan: n/a Reviewers: cdecarolis
@@ -13,6 +13,8 @@ opt_in: * Intermediate Storage and System Storage now default to the first provided storage definition when no configuration is provided. Previously, it would be necessary to provide a run config for storage whenever providing custom storage definitions, even if that storage required no run configurat...