message
stringlengths
13
484
diff
stringlengths
38
4.63k
Avoid Name_Error exceptions when source file cannot be read TN:
@@ -2749,6 +2749,22 @@ package body ${ada_lib_name}.Analysis.Implementation is -- This is where lexing occurs, so this is where we get most "setup" -- issues: missing input file, bad charset, etc. If we have such an -- error, catch it, turn it into diagnostics and abort parsing. + -- + -- As it is quite common, first c...
fix: double urlencoding of values This was breaking URLs for complex filters
@@ -1461,9 +1461,8 @@ frappe.views.ListView = class ListView extends frappe.views.BaseList { get_url_with_filters() { const query_params = this.get_filters_for_args() .map((filter) => { - filter[3] = encodeURIComponent(filter[3]); if (filter[2] === "=") { - return `${filter[1]}=${filter[3]}`; + return `${filter[1]}=${e...
Extend navigation tags with option to display `deprecated` badge This will help visually communicate a deprecated feature to the user.
@@ -7,16 +7,20 @@ register = template.Library() def navbar_template(title, url, active=False, disabled=False, - dropdown=False): + dropdown=False, deprecated=False): """Compose Bootstrap v4 <li> element for top navigation bar. List item can be added one or more class attributes: * active: to highlight currently visited...
Reduce concurrency to match number of CPUs This got missed in [1]. [1]:
@@ -17,7 +17,7 @@ case $NOTIFY_APP_NAME in -Q database-tasks,job-tasks 2> /dev/null ;; delivery-worker-research) - exec scripts/run_app_paas.sh celery -A run_celery.notify_celery worker --loglevel=INFO --concurrency=5 \ + exec scripts/run_app_paas.sh celery -A run_celery.notify_celery worker --loglevel=INFO --concurren...
Find packages Error when installing from master because some packages ('models' & 'mixins') are not being included.
@@ -8,7 +8,7 @@ import sys from distutils.util import strtobool -from setuptools import setup +from setuptools import setup, find_packages from setuptools.command.test import test as TestCommand @@ -61,7 +61,7 @@ setup_kwargs = { "Build fast. Run fast." ), "long_description": long_description, - "packages": ["sanic"], ...
web: Don't re-set cookieguard cookie in bouncer If the bouncer has succeeded, the cookie is already set. There's no reason to set it again.
@@ -186,15 +186,10 @@ class POXCookieGuardMixin (object): cgc = cookies.get(POX_COOKIEGUARD_COOKIE_NAME) if cgc and cgc.value == self._get_cookieguard_cookie(): if requested.startswith(self._pox_cookieguard_bouncer + "?"): - # See below for what this bouncing dumbness is log.debug("POX CookieGuard cookie is valid -- bo...
[Github] Update Github stable bot Disable automatic issue closing Correct the labels to exempt.
@@ -22,10 +22,10 @@ jobs: with: repo-token: ${{ secrets.GITHUB_TOKEN }} days-before-issue-stale: 30 - days-before-issue-close: 7 + days-before-issue-close: -1 # disable issue close days-before-pr-stale: -1 # disable stale bot on pr days-before-pr-close: -1 # disable stale bot on pr stale-issue-message: 'This issue has ...
sync: fix missing import for -q Some refactors during review dropped this import when it was reworked, but it's still needed when using the --quiet setting. Tested-by: Mike Frysinger
@@ -51,7 +51,7 @@ import git_superproject import gitc_utils from project import Project from project import RemoteSpec -from command import Command, MirrorSafeCommand +from command import Command, MirrorSafeCommand, WORKER_BATCH_SIZE from error import RepoChangedException, GitError, ManifestParseError import platform_u...
Fix - added unc path to zifile command in Harmony Extracting too large url resulted in 'File not found' issue (side effect was that files in offending directory were skipped). UNC path seems to help.
@@ -322,7 +322,9 @@ class HarmonySubmitDeadline( ) unzip_dir = (published_scene.parent / published_scene.stem) with _ZipFile(published_scene, "r") as zip_ref: - zip_ref.extractall(unzip_dir.as_posix()) + # UNC path (//?/) added to minimalize risk with extracting + # to large file paths + zip_ref.extractall("//?/" + str...
message view: Remove unnecessary expectOne check in tippyjs. This check was not needded as it is possible to have even zero edit message buttons in cases when a message is fails. So it raises unncesary errors on hovering over icons of those failed messages.
@@ -89,7 +89,7 @@ export function initialize() { // content from it. // // TODO: Change the template structure so logic is unnecessary. - const edit_button = elem.find("i.edit_content_button").expectOne(); + const edit_button = elem.find("i.edit_content_button"); content = edit_button.attr("data-tippy-content"); } inst...
Update conf.py edit version in docs' conf
@@ -26,7 +26,7 @@ author = u'Argonne' # The short X.Y version version = u'' # The full version, including alpha/beta/rc tags -release = u'0.1' +release = u'0.0.3' # -- General configuration ---------------------------------------------------
codestyle: Fix D210 D210: No whitespaces allowed surrounding docstring text
@@ -1524,7 +1524,8 @@ class ControlMechanism(ModulatoryMechanism_Base): return control_signal def _check_for_duplicates(self, control_signal, control_signals, context): - """ Check that control_signal is not a duplicate of one already instantiated for the ControlMechanism + """ + Check that control_signal is not a dupl...
Group.append: explicit first argument Don't use args[0].
@@ -116,17 +116,17 @@ class Group(object): for act in activities: propagate_attribute(act, 'raises_on_failure', self.raises_on_failure) - def append(self, *args, **kwargs): - if isinstance(args[0], (Submittable, Group)): + def append(self, submittable, *args, **kwargs): + if isinstance(submittable, (Submittable, Group)...
Documentation: Add a logo to the REST API docs The REST API should use the awesome Rucio logo.
@@ -101,6 +101,11 @@ spec = APISpec( "name": "Apache 2.0", "url": "https://www.apache.org/licenses/LICENSE-2.0.html", }, + "x-logo": { + "url": "http://rucio.cern.ch/documentation/img/rucio_horizontaled_black_cropped.svg", + "backgroundColor": "#FFFFFF", + "altText": "Rucio logo" + }, }, )
Fix copy/paste error in docs The correct method for group listing should be `list_groups_by_name`
@@ -354,7 +354,7 @@ List Groups By Name import hvac client = hvac.Client() - list_response = client.secrets.identity.list_entities_by_name() + list_response = client.secrets.identity.list_groups_by_name() group_keys = list_response['data']['keys'] print('The following group names are currently configured: {keys}'.forma...
revert: revert the original code and removing format_app from the if block
@@ -122,6 +122,14 @@ class FormplayerMain(View): apps = filter(None, apps) apps = filter(lambda app: app.get('cloudcare_enabled') or self.preview, apps) apps = filter(lambda app: app_access.user_can_access_app(user, app), apps) + role = None + try: + role = user.get_role(domain) + except DomainMembershipError: + # User...
DOC adjusted number of continuous distributions in scipy/doc/source/tutorial number of distributions increased by one in stats.rst
@@ -102,7 +102,7 @@ introspection: >>> dist_discrete = [d for d in dir(stats) if ... isinstance(getattr(stats, d), stats.rv_discrete)] >>> print('number of continuous distributions: %d' % len(dist_continu)) - number of continuous distributions: 96 + number of continuous distributions: 97 >>> print('number of discrete d...
Add Udemy (instructor) API Fix auth value
@@ -1073,6 +1073,7 @@ API | Description | Auth | HTTPS | CORS | | [Quotes on Design](https://quotesondesign.com/api/) | Inspirational Quotes | No | Yes | Unknown | | [Stoicism Quote](https://github.com/tlcheah2/stoic-quote-lambda-public-api) | Quotes about Stoicism | No | Yes | Unknown | | [Traitify](https://app.traiti...
Disabled embed test from the docs on Py3.4 It requires Py_DecodeLocale which appears in 3.5. This is causing it to fail on Windows. It's somehow passing on Linux for reasons that I don't understand (but it really shouldn't be)
@@ -484,6 +484,7 @@ VER_DEP_MODULES = { 'run.pep526_variable_annotations', # typing module 'run.test_exceptions', # copied from Py3.7+ 'run.time_pxd', # _PyTime_GetSystemClock doesn't exist in 3.4 + 'embedding.embedded', # From the docs, needs Py_DecodeLocale ]), (3,7): (operator.lt, lambda x: x in ['run.pycontextvar',...
Address minor Black issues Fixes a couple of very minor docstring nits raised by an updated version of Black.
@@ -26,7 +26,7 @@ class SoCoPlugin: @property def name(self): - """ human-readable name of the plugin """ + """Human-readable name of the plugin""" raise NotImplementedError("Plugins should overwrite the name property") @classmethod
docs: Use 1Lbb DOI in contrib download docstring * Use DOI in docstring example for pyhf contrib download - c.f.
@@ -46,7 +46,7 @@ def download(archive_url, output_directory, verbose, force, compress): .. code-block:: shell - $ pyhf contrib download --verbose https://www.hepdata.net/record/resource/1408476?view=true 1Lbb-likelihoods + $ pyhf contrib download --verbose https://doi.org/10.17182/hepdata.90607.v3/r3 1Lbb-likelihoods ...
Lazily create Button custom_ids in decorator interface The previous code would make two separate instances share the custom_id which might have been undesirable behaviour
@@ -267,11 +267,9 @@ def button( """ def decorator(func: ItemCallbackType) -> ItemCallbackType: - nonlocal custom_id if not inspect.iscoroutinefunction(func): raise TypeError('button function must be a coroutine function') - custom_id = custom_id or os.urandom(32).hex() func.__discord_ui_model_type__ = Button func.__di...
Use more semantic function name. Add comments.
@@ -644,11 +644,20 @@ function saveAttemptLog(store) { function saveAndStoreAttemptLog(store) { const attemptLogId = store.state.core.logging.attempt.id; const attemptLogItem = store.state.core.logging.attempt.item; - const storeAttemptLog = () => + /* + * Create a 'same item' check instead of same page check, which on...
Set the default permissions See
@@ -222,6 +222,7 @@ class UserenaBaseProfile(models.Model): """ abstract = True + default_permissions = ('add', 'change', 'delete') permissions = PROFILE_PERMISSIONS def __str__(self): @@ -353,4 +354,5 @@ class UserenaLanguageBaseProfile(UserenaBaseProfile): class Meta: abstract = True + default_permissions = ('add', '...
Improve logging in building of nova data model Improves logging during the building of the nova data model
@@ -268,6 +268,9 @@ class ModelBuilder(object): # New in nova version 2.53 instances = getattr(node_info, "servers", None) self.add_instance_node(node_info, instances) + else: + LOG.error("compute_node from aggregate / availability_zone " + "could not be found: {0}".format(node_name)) def add_compute_node(self, node): ...
Removed python_requires="<4" Python 4 doesn't exist, this requirement is redundant
@@ -133,7 +133,7 @@ setup_args = dict( ), 'Issues': 'https://github.com/nedbat/coveragepy/issues', }, - python_requires=">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*, <4", + python_requires=">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*", ) # A replacement for the build_ext command which raises a single exce...
Remove the parameter with_activation from _ApplyActivationFunction. If this is False, just.. don't call the function.
@@ -1169,19 +1169,17 @@ class ProjectionLayer(quant_utils.QuantizableLayer): if not p.is_inference: out = py_utils.CheckNumerics(out) out = activations.GetFn(p.activation)(out) - out = self._ApplyProjectionKernel( - w, b, out, with_activation=False, **proj_kwargs) + out = self._ApplyProjectionKernel(w, b, out, **proj_k...
Fixes a bug in status command where the inspect module is not supported in cython - use asyncio.iscoroutinefuntion instead
import asyncio -import inspect import time -from collections import deque, OrderedDict -from typing import Dict, List -from typing import TYPE_CHECKING +from collections import OrderedDict, deque +from typing import TYPE_CHECKING, Dict, List import pandas as pd @@ -11,7 +9,7 @@ from hummingbot import check_dev_mode fro...
deposit: group required fields together closes
@@ -310,15 +310,19 @@ export class RDMDepositForm extends Component { options={this.vocabularies.metadata.titles} required /> + <PublicationDateField required /> <CreatibutorsField label={"Creators"} + labelIcon={"user"} fieldPath={"metadata.creators"} roleOptions={this.vocabularies.metadata.creators.role} schema="crea...
Update pythonapp.yml [formerly 87cbf4ea25d9033e766d2901c9e25a6749e25abe] [formerly e26c3ee9db40ca63225908252ed718889bd38c8d] [formerly 858b96bb5f666e232bd5cbd0caeedf58a07886fd]
@@ -31,7 +31,8 @@ jobs: flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics - - name: Test with pytest - run: | - pip install pytest - pytest ...
Update bot_photo.py There is no reason to stop downloading photos if one of them didn't downloaded successful.
@@ -45,5 +45,4 @@ def download_photos(self, medias, path, description=False): if not self.download_photo(media, path, description=description): delay.error_delay(self) broken_items = medias[medias.index(media):] - break return broken_items
Intersection env: driving offroad gives 0 reward and is optionally terminal Fix
@@ -58,7 +58,8 @@ class IntersectionEnv(AbstractEnv): "high_speed_reward": 1, "arrived_reward": 1, "reward_speed_range": [7.0, 9.0], - "normalize_reward": False + "normalize_reward": False, + "offroad_terminal": True }) return config @@ -75,12 +76,14 @@ class IntersectionEnv(AbstractEnv): reward = self.config["arrived_...
tests: increase number of threads for testinfra from 4 to 8 to make testing faster.
@@ -220,7 +220,7 @@ commands= # wait 5 minutes for services to be ready sleep 300 # test cluster state using ceph-ansible tests - testinfra -n 4 --sudo -v --connection=ansible --ansible-inventory={changedir}/hosts {toxinidir}/tests/functional/tests + testinfra -n 8 --sudo -v --connection=ansible --ansible-inventory={ch...
Add code to clean up GIS timestamp for dchousing Added code to base.py that converts GIS-DTTM value into readable date timestamp. The data providest the timestamp as milliseconds. So added code to do the conversion as the raw data is ingested and written to file.
@@ -184,6 +184,13 @@ class BaseApiConn(object): data[field] = None else: data[field] = line[value] + + # clean opendata 'GIS_DTTM' formatting - convert milliseconds + if value == 'GIS_LAST_MOD_DTTM': + milli_sec = int(line[value]) + data[field] = \ + datetime.fromtimestamp(milli_sec / 1000.0).strftime( + '%m/%d/%Y') re...
Add arm energy probe instrument Arm Energy Probe with arm_probe has been recently added in devlib's instrument. Add the arm_energy_probe in the WA list of Energy measurement instruments
from __future__ import division from collections import defaultdict import os +import shutil from devlib import DerivedEnergyMeasurements from devlib.instrument import CONTINUOUS from devlib.instrument.energy_probe import EnergyProbeInstrument +from devlib.instrument.arm_energy_probe import ArmEnergyProbeInstrument fro...
Update locales.py Italian locale is missing translation for "week" and "weeks"
@@ -331,6 +331,8 @@ class ItalianLocale(Locale): "hours": "{0} ore", "day": "un giorno", "days": "{0} giorni", + "week": "una settimana,", + "weeks": "{0} settimane", "month": "un mese", "months": "{0} mesi", "year": "un anno",
Pin signedjson to <= 1.1.1 as a temporary workaround for To be reverted after the Synapse 1.56 release.
@@ -48,7 +48,7 @@ REQUIREMENTS = [ "unpaddedbase64>=1.1.0", "canonicaljson>=1.4.0", # we use the type definitions added in signedjson 1.1. - "signedjson>=1.1.0", + "signedjson>=1.1.0,<=1.1.1", "pynacl>=1.2.1", "idna>=2.5", # validating SSL certs for IP addresses requires service_identity 18.1.
Group charts by training/reward/value Summary: Group charts by training/reward/value
@@ -1034,25 +1034,34 @@ class Evaluator(object): return x for name, value in [ - ("data/td_loss", self.get_recent_td_loss()), - ("data/mc_loss", self.get_recent_mc_loss()), - ("Direct Method Reward", self.get_recent_reward_direct_method().normalized), + ("Training/td_loss", self.get_recent_td_loss()), + ("Training/mc_l...
GraphNode improvements. Constructor accepts an optional children parameter. is_leaf() and find_root() methods. __getitem__() and __iter__() methods. Moved graph dumping into the class.
# limitations under the License. class GraphNode(object): - """! @brief Simple graph node.""" + """! @brief Simple graph node. - def __init__(self): + All nodes have a parent, which is None for a root node, and zero or more children. + + Supports indexing and iteration over children. + """ + + def __init__(self, childr...
Give a call out to other event sources in the README Hopefully this raises awareness of other event sources chalice can integrate with.
@@ -15,20 +15,18 @@ Python Serverless Microframework for AWS :target: https://codecov.io/github/aws/chalice :alt: codecov.io -Chalice is a python serverless microframework for AWS. It allows you to quickly -create and deploy applications that use Amazon API Gateway and AWS Lambda. -It provides: +Chalice is a microframe...
Remove unnecessary ObservedData constraint first_observed and last_observed are both required, so this co-constraint was removed from WD04.
@@ -369,10 +369,6 @@ class ObservedData(STIXDomainObject): def _check_object_constraints(self): super(self.__class__, self)._check_object_constraints() - if self.get('number_observed', 1) == 1: - self._check_properties_dependency(['first_observed'], ['last_observed']) - self._check_properties_dependency(['last_observed...
MAINT: Fixup quantile tests to not use `np.float` This is deprecated usage, also small code style fixups since I was looking at it anyway. YMMV, but I think its a bit/nicer more compact now.
@@ -3116,12 +3116,11 @@ def test_quantile_monotonic(self): 8, 8, 7]) * 0.1, p0) assert_equal(np.sort(quantile), quantile) - @hypothesis.given(arr=arrays(dtype=np.float, shape=st.integers(min_value=3, - max_value=1000), - elements=st.floats(allow_infinity=False, - allow_nan=False, - min_value=-1e300, - max_value=1e300))...
Bump package requirements to latest versions pydocstyle: flake8: coverage: This came about because the version of coverage we were using was broken for python3. It would report 100% coverage and only report on the __init__.py files. The latest version of coverage fixes this.
# Dev requirements, used for various linting tools -coverage==4.0.3 -flake8==2.5.0 +coverage==4.3.4 +flake8==3.3.0 tox==2.2.1 wheel==0.26.0 doc8==0.7.0 # Pylint will fail on py3. Locking to a commit on master # until pylint2 is released. -e git://github.com/PyCQA/pylint.git@7cb3ffddfd96f5e099ca697f6b1e30e727544627#egg=...
[modules/contrib/dnf] fix undefined "widget" error while refactoring, i overlooked that the variable "widget" doesn't exist anymore. see
@@ -29,6 +29,7 @@ class Module(core.module.Module): return "/".join(result) def update(self): + widget = self.widget() res = util.cli.execute("dnf updateinfo", ignore_errors=True) security = 0
Installation commands python3, pip3 & mkdir ~/.mythril
@@ -9,7 +9,7 @@ Mythril is a security analysis tool for Ethereum smart contracts. It uses concol Install from Pypi: ```bash -$ pip install mythril +$ pip3 install mythril ``` Or, clone the GitHub repo to install the newest master branch: @@ -17,7 +17,7 @@ Or, clone the GitHub repo to install the newest master branch: `...
Fixed E271 flake8 errors multiple spaces after keyword
@@ -196,6 +196,6 @@ filterwarnings = ignore:.*inspect.getargspec.*deprecated, use inspect.signature.*:DeprecationWarning [flake8] -ignore = E271,E272,E293,E301,E302,E303,E401,E402,E501,E701,E702,E704,E712,E731 +ignore = E272,E293,E301,E302,E303,E401,E402,E501,E701,E702,E704,E712,E731 max-line-length = 120 exclude = _py...
TUTORIAL: minor cleanup An attempt to make part of the tutorial less jarring, and reformatting of the surrounding text to keep the lines <80 characters.
@@ -62,14 +62,14 @@ and verify metadata files. To begin, cryptographic keys are generated with the repository tool. However, before metadata files can be validated by clients and target files fetched in a secure manner, public keys must be pinned to particular metadata roles and -metadata signed by role's private keys....
Improvement - Changing button to show engine name and version Engine patch version being proper shown
<div class="control-label"><label>Engine migration:</label></div> <div class="controls"> {% if retry_migrate_plan %} - <button data-toggle="modal" class="btn btn-warning" id="migrate_plan_retry_btn" data-target="#migrate_plan_retry">Retry Migrating Oracle to Percona</button> + <button data-toggle="modal" class="btn btn...
Move `omit` to `run` section in .coveragerc Coverage used to be configured to omit certain directories while reporting. This commit slightly optimizes coverage to already omit those directories while measuring coverage.
[run] branch = True -[report] -exclude_lines = - pragma: no cover - def __str__ - if __name__ == .__main__.: - omit = # Command-line scripts. */tuf/scripts/client.py */tuf/scripts/repo.py */tests/* */site-packages/* + +[report] +exclude_lines = + pragma: no cover + def __str__ + if __name__ == .__main__.:
Fix error when running scripts This fixes the error Can't pickle local object 'LDAPBackend.__new__.<locals>.NBLDAPBackend'
@@ -140,11 +140,25 @@ class RemoteUserBackend(_RemoteUserBackend): return False +# Create a new instance of django-auth-ldap's LDAPBackend with our own ObjectPermissions +try: + from django_auth_ldap.backend import LDAPBackend as LDAPBackend_ + + class NBLDAPBackend(ObjectPermissionMixin, LDAPBackend_): + def get_permi...
[bugfix] Fix default alias for "thumb" "mini" is the new default alias for "thumb" in German after
@@ -264,18 +264,18 @@ class TestLiveCosmeticChanges(TestCosmeticChanges): def test_translateMagicWords(self): """Test translateMagicWords method.""" self.assertEqual( - '[[File:Foo.bar|miniatur]]', + '[[File:Foo.bar|mini]]', self.cct.translateMagicWords('[[File:Foo.bar|thumb]]')) self.assertEqual( - '[[File:Foo.bar|min...
Removed button from form_error_message.html There's already a link, and the button looks weird when there are multiple errors. This was added for new users making their first app, but we streamlined that flow in other ways (redirecting to reg form, adding a default question to folllowup form).
{# Poor spacing in this file because this template is used in the middle of sentences #}{% load xforms_extras %}{% load i18n %}{% if not not_actual_build %} "<a href="{% url "form_source" domain app.id error.form.unique_id %}">{{ error.form.name|trans:langs }}</a>" Form - in the "{{ error.module.name|trans:langs }}" Me...
[cleanup] reduce code complexity of generate_user_files.create_user_config Saving botpassword becomes its own function
# -*- coding: utf-8 -*- """Script to create user-config.py.""" # -# (C) Pywikibot team, 2010-2018 +# (C) Pywikibot team, 2010-2019 # # Distributed under the terms of the MIT license. # @@ -371,6 +371,11 @@ def create_user_config(main_family, main_code, main_username, force=False): os.remove(_fnc) raise + save_botpasswo...
Generalise prefer forward burn Previously it would not prefer a forward burn after a real travel.
@@ -1622,21 +1622,33 @@ def short_travel_cutcode(context: CutCode, channel=None): closest = cut backwards = True if d <= 0.1: # Distance in px is zero, we cannot improve. - # Need to swap to next segment forward if it is coincident and permitted - if ( - cut.next - and cut.next.permitted - and cut.next.burns_remaining ...
add log action to plugin loader this is introduced for debugging and monitoring purposes
@@ -2,6 +2,9 @@ from mythril.laser.ethereum.svm import LaserEVM from mythril.laser.ethereum.plugins.plugin import LaserPlugin from typing import List +import logging + +log = logging.getLogger(__name__) class LaserPluginLoader: @@ -23,6 +26,7 @@ class LaserPluginLoader: :param laser_plugin: plugin that will be loaded i...
Allow for more normalisations in compute_rms Added "abs" and "none" normalisation to compute_rms function.
@@ -204,7 +204,7 @@ class Powerspectrum(Crossspectrum): if self.norm.lower() == 'leahy': powers_leahy = powers.copy() - elif self.norm.lower() == "frac": + elif self.norm.lower() in ["frac", "abs", "none"]: powers_leahy = \ self.unnorm_power[minind:maxind].real * 2 / nphots else:
STY: updated prep_dir function Removed unused kwarg catch and added potentially useful informative output.
@@ -20,25 +20,26 @@ import pysat from pysat.tests.registration_test_class import TestWithRegistration -def prep_dir(inst=None): +def prep_dir(inst): """Prepare the directory to provide netCDF export file support Parameters ---------- - inst : pysat.Instrument or NoneType - Instrument class object or None to use 'pysat_...
Mem isolation Documentation addition
@@ -30,7 +30,7 @@ Required agent options ------------------------------ - ``containerizers=mesos`` - to enable PID based cgroup discovery, -- ``isolation=cgroups/cpu,cgroups/perf_event`` - to enable CPU shares management and perf event monitoring, +- ``isolation=cgroups/cpu,cgroups/perf_event,cgroups/mem`` - to enable ...
[BUG] Fix override/defaulting of "prediction intervals" adders This overrides the `_predict_quantiles` method of `conformal.py` with the base class default to ensure that the `_predict_quantiles` method for the forecaster that is wrapped with `conformal.py` is consistent with `_predict_interval`.
@@ -244,6 +244,36 @@ class ConformalIntervals(BaseForecaster): return pred_int.convert_dtypes() + def _predict_quantiles(self, fh, X, alpha): + """Compute/return prediction quantiles for a forecast. + + private _predict_quantiles containing the core logic, + called from predict_quantiles and default _predict_interval +...
Remove mox from nova.tests.unit.virt.xenapi.test_vm_utils.py remove self.stubs.Set to mock decorator Part of blueprint remove-mox-pike
@@ -842,16 +842,13 @@ class VDIOtherConfigTestCase(VMUtilsTestBase): self.assertEqual(expected, self.session.args[0]['other_config']) - def test_create_image(self): + @mock.patch.object(vm_utils, '_fetch_image', + return_value={'root': {'uuid': 'fake-uuid'}}) + def test_create_image(self, mock_vm_utils): # Other images...
startup: Prettyify video depth dump Use the right unit. for rgb10x2, this prints "30bpp" instead of "0x1E".
@@ -59,7 +59,7 @@ void dump_boot_args(struct boot_args *ba) printf(" stride: 0x%lx\n", ba->video.stride); printf(" width: %lu\n", ba->video.width); printf(" height: %lu\n", ba->video.height); - printf(" depth: 0x%lx\n", ba->video.depth); + printf(" depth: %lubpp\n", ba->video.depth); printf(" machine_type: %d\n", ba->m...
project_file.mako: add -DDEBUG=1 to C compile switches in debug mode This will repair automatic loading of GDB helpers (previous commit on this topic actually missed that). TN:
@@ -149,9 +149,24 @@ library project ${lib_name} is Ada_Mode_Args := ("-gnatp", "-gnatn2", "-fnon-call-exceptions"); end case; + ----------------- + -- C_Mode_Args -- + ----------------- + + -- Compilation switches for C that depend on the build mode + + C_Mode_Args := (); + case Build_Mode is + when "dev" => + C_Mode_...
Cleanup, don't patch traceback dealloc. * This was never really necessary, and most probably all about bug hiding only. * Also doing it on the fly was only going to waste cycles per frame creation.
@@ -408,24 +408,10 @@ void _initCompiledFrameType( void ) } -static void tb_dealloc( PyTracebackObject *tb ) -{ - // printf( "dealloc TB %ld %lx FR %ld %lx\n", Py_REFCNT( tb ), (long)tb, Py_REFCNT( tb->tb_frame ), (long)tb->tb_frame ); - - Nuitka_GC_UnTrack( tb ); - // Py_TRASHCAN_SAFE_BEGIN(tb) - Py_XDECREF( tb->tb_ne...
Only update rays if they are not blocked. We actually stop propagating the ray if it is blocked, this way we can keep track of where it was actually blocked.
@@ -332,9 +332,10 @@ class Matrix(object): """ outputRay = Ray() + + if rightSideRay.isNotBlocked: outputRay.y = self.A * rightSideRay.y + self.B * rightSideRay.theta outputRay.theta = self.C * rightSideRay.y + self.D * rightSideRay.theta - outputRay.z = self.L + rightSideRay.z outputRay.apertureDiameter = self.apertur...
Store epoch timestamps instead of strings. We're also switching from datetime.now() to datetime.utcnow().
@@ -9,7 +9,6 @@ from contextlib import suppress from datetime import datetime from pathlib import Path -import dateutil import discord import discord.abc from discord.ext import commands @@ -550,9 +549,9 @@ class HelpChannels(Scheduler, commands.Cog): self.bot.stats.incr(f"help.dormant_calls.{caller}") if await self.cl...
Fix cover `src` was a placeholder. Use `data-src` instead
@@ -54,7 +54,7 @@ class DaoNovelCrawler(Crawler): possible_image = soup.select_one(".summary_image a img") if isinstance(possible_image, Tag): - self.novel_cover = self.absolute_url(possible_image["src"]) + self.novel_cover = self.absolute_url(possible_image["data-src"]) logger.info("Novel cover: %s", self.novel_cover)...
ceph-container-engine: lvm2 on OSD nodes only Since the lvm2 package installation has been moved from ceph-osd role to ceph-container-engine role. But the scope wasn't limited to the OSD nodes only. This commit fixes this behaviour.
tags: with_pkg -- name: install container and lvm2 packages +- name: install container packages package: - name: ['{{ container_package_name }}', '{{ container_binding_name }}', 'lvm2'] + name: ['{{ container_package_name }}', '{{ container_binding_name }}'] update_cache: true register: result until: result is succeede...
refactor: use frappe.get_system_settings Not sure why this needs YET ANOTHER separate cache.
@@ -1157,10 +1157,7 @@ class Database: return INDEX_PATTERN.sub(r"", index_name) def get_system_setting(self, key): - def _load_system_settings(): - return self.get_singles_dict("System Settings") - - return frappe.cache().get_value("system_settings", _load_system_settings).get(key) + return frappe.get_system_settings(...
Try workbox's NetworkFirst strategy Might "just work" for the online parts when available (firebase etc), while falling back to cache ...
// Otherwise webpack can fail silently // https://github.com/facebook/create-react-app/issues/8014 -// <TODO-DELETE> -// import {serviceWorkerFetchListener} from "sync-message"; -// -// console.log(self.__WB_MANIFEST); -// -// const fetchListener = serviceWorkerFetchListener(); -// -// addEventListener('fetch', fetchLi...
Realized SSA isn't a full app, it's just a directory with detections. Made changes so that it won't run through slim or appinspect. Will manually verify by looking at the artifacts that it is correct.
@@ -272,7 +272,7 @@ jobs: slim package -o upload DA-ESS-ContentUpdate slim package -o upload DA-ESS_AmazonWebServices_Content slim package -o upload dev_sec_ops_analytics - slim package -o upload SSA_Content + $slim package -o upload SSA_Content cp upload/DA-ESS-ContentUpdate-*.tar.gz DA-ESS-ContentUpdate-latest.tar.gz...
Explicitly don't support nbytes in Series As discussed in issue , not to explicitly use nbytes from the Series.
@@ -32,7 +32,6 @@ class _MissingPandasLikeSeries(object): # Properties axes = unsupported_property('axes') iat = unsupported_property('iat') - nbytes = unsupported_property('nbytes') # Deprecated properties blocks = unsupported_property('blocks', deprecated=True) @@ -156,6 +155,11 @@ class _MissingPandasLikeSeries(obje...
Fix attribute error during rapid disconnects in VoiceClient. Fix
@@ -220,6 +220,7 @@ class VoiceClient(VoiceProtocol): self._player = None self.encoder = None self._lite_nonce = 0 + self.ws = None warn_nacl = not has_nacl supported_modes = (
Order Loss functions alphabetically in nn.rst Summary: Pull Request resolved:
@@ -1182,6 +1182,11 @@ Loss functions .. autofunction:: binary_cross_entropy +:hidden:`binary_cross_entropy_with_logits` +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +.. autofunction:: binary_cross_entropy_with_logits + :hidden:`poisson_nll_loss` ~~~~~~~~~~~~~~~~~~~~~~~~~~ @@ -1247,11 +1252,6 @@ Loss functions .. auto...
Update environments.py Added more informative error message for possible failures.
@@ -383,7 +383,7 @@ class HolodeckEnvironment(object): try: loading_semaphore.acquire(100) except posix_ipc.BusyError: - raise HolodeckException("Timed out waiting for binary to load") + raise HolodeckException("Timed out waiting for binary to load. Ensure that holodeck is not being run with root priveleges.") loading_...
Change log setup deployd This should be better than the previous option. It logs to both stderr and syslog with a message that includes the log level, module/class name and the message.
@@ -4,6 +4,8 @@ from __future__ import unicode_literals import inspect import logging +import logging.handlers +import os import socket import time @@ -81,13 +83,19 @@ class DeployDaemon(PaastaThread): super(DeployDaemon, self).__init__() self.started = False self.daemon = True + self.config = load_system_paasta_config...
first patch: allowed to use the own metamodel, when loading a file with unknown extension
@@ -142,16 +142,24 @@ class GlobalModelRepository(object): Returns: the list of loaded models """ - from textx import metamodel_for_file + from textx import metamodel_for_file, get_metamodel if model: self.update_model_in_repo_based_on_filename(model) + the_metamodel = get_metamodel(model) # default metamodel + else: +...
Fix typos in flask_rest_api_tutorial dependenices->dependencies documentaion->documentation and and->and
@@ -42,7 +42,7 @@ with high performance requirements. For that: # Dependencies # ------------ # -# Install the required dependenices by running the following command: +# Install the required dependencies by running the following command: # # :: # @@ -53,7 +53,7 @@ with high performance requirements. For that: # Simple ...
Add new trouble shooting case Add a case where an older version of python3 interferes with the installation of poetry.
@@ -7,6 +7,8 @@ Troubleshooting - `Many missing packages <#many-missing-packages>`__ - `Error: Poetry could not find a pyproject.toml file <#error-poetry-could-not-find-a-pyproject-toml-file>`__ + - `Error: Poetry \"The virtual environment seems to be broken\" + <#error-poetry-the-virtual-environment-seems-to-be-broken...
Documentation LU Decomposition: deriving L, U, and P Summary: Add note to LU decomposition to use `lu_unpack` to get `L`, `U`, and `P`. Fixes Pull Request resolved:
@@ -984,6 +984,9 @@ def _lu_impl(A, pivot=True, get_infos=False, out=None): for singular matrices due to the bug in the MAGMA library (see magma issue 13). + .. note:: + ``L``, ``U``, and ``P`` can be derived using :func:`torch.lu_unpack`. + Arguments: A (Tensor): the tensor to factor of size :math:`(*, m, n)` pivot (b...
ENH: added NaN testing Added NaN testing to list evaluation functions.
import numpy as np -def assert_list_contains(small_list, big_list): +def assert_list_contains(small_list, big_list, test_nan=False): """ Assert all elements of one list exist within the other list Parameters @@ -18,6 +18,8 @@ def assert_list_contains(small_list, big_list): List whose values must all be present within b...
server: Drop redundant `VettedPeer.__init__` server: Drop unused `VettedPeer.__init__`
@@ -26,10 +26,6 @@ class VettedPeer: last_attempt: uint64 = uint64(0) time_added: uint64 = uint64(0) - def __init__(self, h: str, p: uint16): - self.host = h - self.port = p - def __eq__(self, rhs: object) -> bool: return self.host == rhs.host and self.port == rhs.port # type: ignore[no-any-return, attr-defined]
[tune/release] Demote xgboost_sweep to weekly testing XGBoost functionality is tested daily in the xgboost release test suite. The expensive XGBoost sweep test can thus be run weekly.
@@ -198,7 +198,6 @@ NIGHTLY_TESTS = { SmokeTest("network_overhead"), "result_throughput_cluster", "result_throughput_single_node", - "xgboost_sweep", ], "~/ray/release/xgboost_tests/xgboost_tests.yaml": [ "train_small", @@ -252,6 +251,7 @@ WEEKLY_TESTS = { "~/ray/release/tune_tests/scalability_tests/tune_tests.yaml": [...
remove not from vault utils If the role is 'master' then the vault configs should just be pulled from the opts dictionary
@@ -98,7 +98,7 @@ def _get_vault_connection(): Get the connection details for calling Vault, from local configuration if it exists, or from the master otherwise ''' - if 'vault' in __opts__ and not __opts__.get('__role', 'minion') == 'master': + if 'vault' in __opts__ and __opts__.get('__role', 'minion') == 'master': l...
Fix precommit pyupgrade noticed that with `from __future__ import annotations` I no longer needed to import Typing, List etc. so it made the change. But then pylint was not happy because I was not using an import.
@@ -27,16 +27,14 @@ import random import time from abc import ABC from enum import Enum -from typing import Callable, Deque, Dict, List +from typing import Callable, Deque from esrally import exceptions from esrally.track import track from esrally.utils import io -# pylint: disable=used-before-assignment - -__PARAM_SOU...
refactor: rename ZEPHYR_MIRROR_BUGDOWN_KEY and DEFAULT_BUGDOWN_KEY rename ZEPHYR_MIRROR_BUGDOWN_KEY to ZEPHYR_MIRROR_MARKDOWN_KEY and DEFAULT_BUGDOWN_KEY tp DEFAULT_MARKDOWN_KEY. This commit is part of series of commits aimed at renaming bugdown to markdown.
@@ -1828,8 +1828,8 @@ def get_sub_registry(r: markdown.util.Registry, keys: List[str]) -> markdown.uti # These are used as keys ("realm_filters_keys") to md_engines and the respective # realm filter caches -DEFAULT_BUGDOWN_KEY = -1 -ZEPHYR_MIRROR_BUGDOWN_KEY = -2 +DEFAULT_MARKDOWN_KEY = -1 +ZEPHYR_MIRROR_MARKDOWN_KEY =...
Correct usb_status rather than status Correct signal, status bar should be usb info, not last info sent from the board.
@@ -857,7 +857,7 @@ class MeerK40t(wx.Frame, Module, Job): def on_active_change(self, old_active, context_active): if old_active is not None: old_active.unlisten('pipe;error', self.on_usb_error) - old_active.unlisten("pipe;status", self.on_usb_state_text) + old_active.unlisten("pipe;usb_status", self.on_usb_state_text)...
Update ensemble_copula_coupling_constants.py 10 km is a silly upper bound for visibility
@@ -62,5 +62,5 @@ bounds_for_ecdf = { "rainfall_rate_in_vicinity": bounds((0, 0.00003), "m s-1"), "lwe_snowfall_rate": bounds((0, 0.00001), "m s-1"), "lwe_snowfall_rate_in_vicinity": bounds((0, 0.00001), "m s-1"), - "visibility_in_air": bounds((0, 10000), "m") + "visibility_in_air": bounds((0, 100000), "m") }
Add --trials alias for --max-trials In many cases it makes more sense to spell max trials simply as `--trials` rather than the more pedantic `--max-trials`. These are equivalent.
@@ -278,7 +278,7 @@ def run_params(fn): help="Flag for OPTIMIZER. May be used multiple times.", ), click.Option( - ("-m", "--max-trials"), + ("-m", "--max-trials", "--trials"), metavar="N", type=click.IntRange(1, None), help=(
MAINT: Revise comment in numpy.core._dtype.py Replace append_metastr_to_string by metastr_to_unicode.
@@ -176,7 +176,7 @@ def _byte_order_str(dtype): def _datetime_metadata_str(dtype): - # TODO: this duplicates the C append_metastr_to_string + # TODO: this duplicates the C metastr_to_unicode functionality unit, count = np.datetime_data(dtype) if unit == 'generic': return ''
[dagit] Add optional authorization header to HTTP requests Summary: Used in conjunction with D7805 Test Plan: manual run in dagit & network tab confirms that the "authorization" header is present Reviewers: dgibson, dish, bengotow
@@ -4,7 +4,7 @@ import '@blueprintjs/select/lib/css/blueprint-select.css'; import '@blueprintjs/table/lib/css/table.css'; import '@blueprintjs/popover2/lib/css/blueprint-popover2.css'; -import {split, ApolloLink, ApolloClient, ApolloProvider, HttpLink} from '@apollo/client'; +import {concat, split, ApolloLink, ApolloCl...
also get scaler and training data path from dlhub_predictor_dict. Temporary until can fix errors with getting from model servable on DLHub
@@ -97,15 +97,17 @@ def make_prediction(dlhub_servable, prediction_data, scaler_path, training_data_ """ # Featurize the prediction data + print('Starting featurizing') compositions, X_test = featurize_mastml(prediction_data, scaler_path, training_data_path, exclude_columns) - + print('Done featurizing') # Run the pred...
Adding timeout to windows and local ubuntu jobs. Adding timeout.
@@ -465,6 +465,7 @@ jobs: build_test_ubuntu: name: Local Unit Testing on Ubuntu runs-on: ubuntu-latest + timeout-minutes: 20 container: image: ghcr.io/pyansys/mapdl:v22.2-ubuntu options: "--entrypoint /bin/bash" @@ -529,6 +530,7 @@ jobs: test_windows: name: Unit Testing on Windows runs-on: [self-hosted, Windows, pymapd...
Add SlidingFeaturesNodeGenerator to documentation See:
@@ -22,7 +22,7 @@ Generators ----------- .. automodule:: stellargraph.mapper - :members: Generator, FullBatchNodeGenerator, FullBatchLinkGenerator, GraphSAGENodeGenerator, DirectedGraphSAGENodeGenerator, DirectedGraphSAGELinkGenerator, ClusterNodeGenerator, GraphSAGELinkGenerator, HinSAGENodeGenerator, HinSAGELinkGener...
allow broadcasting rules in F+0 operation if dim(F)=1 and dim(Zero)=D, then F+Zero returns F concatenated D times (via SumT operation)
@@ -138,22 +138,22 @@ struct Add_Alias { // A + 0 = A template < class FA, int DIM > struct Add_Alias< FA, Zero< DIM>> { - static_assert(DIM == FA::DIM, "Dimensions must be the same for Add"); - using type = FA; + static_assert((DIM == FA::DIM)||(DIM==1)||(FA::DIM==1), "Incompatible dimensions for Add"); + using type =...
Lazy load param_dict and use symbol name Only load a param_hash if we actually need it. Also, use a symbol's name rather than it's str(), which invokes a bunch of custom sympy Printer nonsense. Speeds a sample param resolution by almost 100x. (see comment below for details)
@@ -46,13 +46,13 @@ class ParamResolver(object): return super().__new__(cls) def __init__(self, param_dict: ParamResolverOrSimilarType = None) -> None: - if hasattr(self, '_param_hash'): + if hasattr(self, 'param_dict'): return # Already initialized. Got wrapped as part of the __new__. + self._param_hash = None self.pa...
Fix - simple remote README isn't using remote private keys Fix Changes: use remote private keys; and rename user's config.ini -> myconfig.ini
@@ -26,7 +26,7 @@ From [get-test-MATIC](get-test-MATIC.md), do: ### Create Config File for Services -In your working directory, create a file `config.ini` and fill it with the following. It will use pre-existing services running for mumbai testnet. +In your working directory, create a file `myconfig.ini` and fill it wi...
llvm/execution: Force 'additional_tags' argument to be keyword only Fixes:
@@ -241,7 +241,7 @@ class MechExecution(FuncExecution): class CompExecution(CUDAExecution): - def __init__(self, composition, execution_ids=[None], additional_tags=frozenset()): + def __init__(self, composition, execution_ids=[None], *, additional_tags=frozenset()): super().__init__(buffers=['state_struct', 'param_stru...
CI: another try to fix code cov Put the file to the same state that was used when the pipeline passed.
@@ -32,7 +32,6 @@ jobs: - name: Install dependencies run: | python -m pip install --upgrade pip - python -m pip install -r requirements.txt python -m pip install -r requirements/ci.txt python -m pip install -e .
lint: flake8: B020 issue flake8 output: lona/html/attribute_dict.py:93:22: B020 Found for loop that reassigns the iterable it is iterating with each iterable value.
@@ -90,8 +90,8 @@ class AttributeDict: raise ValueError('dict required') with self._node.lock: - for key, value in value.items(): - self[key] = value + for key, _value in value.items(): + self[key] = _value def __getitem__(self, name): with self._node.lock:
Update README.rst This PR will: correct invalid module qualifiers with `pika.connection.Connection`; use high-level module qualifiers `pika.BaseConnection`; embed URL in AsyncIO, Tornado and Twisted; remove unnecessary reST markup for plain URL
@@ -21,8 +21,7 @@ RabbitMQ's extensions. Documentation ------------- -Pika's documentation can be found at -`https://pika.readthedocs.io <https://pika.readthedocs.io>`_. +Pika's documentation can be found at https://pika.readthedocs.io. Example ------- @@ -66,15 +65,16 @@ Pika provides the following adapters ----------...