message
stringlengths
13
484
diff
stringlengths
38
4.63k
Fix Eltex.MES platform HG-- branch : feature/microservices
@@ -48,7 +48,9 @@ class Script(BaseScript): "42": "MES-1024", "43": "MES-2124", "52": "MES-1124", - "54": "MES-5248" + "54": "MES-5248", + "59": "MES-2124P", + "81": "MES-3324F" } def execute(self):
Fix generating error message The exception was always thrown. Woe to you, oh strict evaluation...
@@ -171,13 +171,15 @@ def deserialize_energy_system(cls, path, return instance data['buses'] = { - name: create(typemap.get(bus.get('type', 'bus'), - raisestatement( + name: create(mapping if mapping + else raisestatement( ValueError, - "Typemap is missing a mapping for 'bus'.")), + "Typemap is missing a mapping for '{...
Corrected user-wide config paths for *NIX Tested config in `~/.config/manim/manim.cfg` and `~/config/manim/manim.cfg` on Debian. The config in `config` doesn't work, while the one in `.config` does.
@@ -213,8 +213,8 @@ The user-wide config file lives in a special folder, depending on the operating system. * Windows: :code:`UserDirectory`/AppData/Roaming/Manim/manim.cfg -* MacOS: :code:`UserDirectory`/config/manim/manim.cfg -* Linux: :code:`UserDirectory`/config/manim/manim.cfg +* MacOS: :code:`UserDirectory`/.conf...
Fix example in the documentation Functions not coroutine functions should be passed to the executor.
@@ -20,7 +20,7 @@ a separate thread via the ``run_in_executor`` function. async def io_background_task(): ... - async def cpu_background_task(): + def cpu_background_task(): ... @app.route('/jobs/', methods=['POST'])
Permanently disable systemd-logind.service We stop it immediately and also use masking to prevent starting at the next reboot. Resolves
owner: root group: root mode: 0644 + +- name: Disable systemd.logind permenantly by masking + systemd: + name: systemd-logind.service + state: stopped + masked: yes
Update noaa-goes.yaml update name
-Name: "NOAA Geostationary Operational Environmental Satellites (GOES) 16 & 17" +Name: "NOAA Geostationary Operational Environmental Satellites (GOES) 16, 17 & 18" Description: | NEW GOES-18 Data!!! GOES-18 is now provisional and data has began streaming. Data files will be available between Provisional and the Operati...
Change polar region message to warning Due to feedback at the sprint review meeting I have changed the polar region message to a warning so it is more obvious to the user
@@ -89,7 +89,7 @@ class ReferenceGrid(object): outsideSouthPolar = southPoly.disjoint(inputFeature.projectAs(sr)) if(not outsideNorthPolar or not outsideSouthPolar): - arcpy.AddMessage("The GRG extent is within a polar region." + + arcpy.AddWarning("The GRG extent is within a polar region." + " Cells that fall within t...
fix: Throw actual exception instead of ValidationError to make tests pass
@@ -43,11 +43,17 @@ def run_server_script_for_doc_event(doc, event): for script_name in scripts: try: frappe.get_doc('Server Script', script_name).execute_doc(doc) - except Exception: + except Exception as e: message = frappe._('Error executing Server Script {0}. Open Browser Console to see traceback.').format( frappe....
Windows: Prevent scons from scanning MSVC installations when in MinGW mode * This also avoids warnings about it not being installed.
@@ -534,8 +534,13 @@ def createEnvironment(tools): if mingw_mode: - # Force usage of MinGW. + # Force usage of MinGW, disable MSVC tools. compiler_tools = ["mingw"] + + import SCons.Tool.MSCommon.vc # pylint: disable=import-error + + SCons.Tool.MSCommon.vc.msvc_setup_env = lambda *args: None + else: # Everything else s...
fix configs order don't overlap user's yaml config with .bzt-rc
@@ -168,7 +168,8 @@ class CLI(object): if self.options.no_system_configs is None: self.options.no_system_configs = False - if not self.options.no_system_configs: + load_hidden_configs = not self.options.no_system_configs + if load_hidden_configs: bzt_rc = os.path.expanduser(os.path.join('~', ".bzt-rc")) if os.path.exis...
[auth] missing ssl_mode SQLConfig requires an `ssl_mode`, this prevents auth from creating Developer accounts. I already deployed this.
@@ -228,7 +228,8 @@ GRANT ALL ON `{name}`.* TO '{name}'@'%'; db=self.name, ssl_ca='/sql-config/server-ca.pem', ssl_cert='/sql-config/client-cert.pem', - ssl_key='/sql-config/client-key.pem') + ssl_key='/sql-config/client-key.pem', + ssl_mode='VERIFY_CA') return create_secret_data_from_config( config, server_ca, client_...
Update changelog with custom tracker change Changelog updated with change for adding event_broker param to custom tracker store
@@ -39,6 +39,7 @@ Changed Deserialisation of pickled trackers will be deprecated in version 2.0. For now, trackers are still loaded from pickle but will be dumped as json in any subsequent save operations. +- In custom tracker store instantiation added ``event_broker``. Removed -------
Improve list VM reliability wait about 5 minutes, and add more logs
@@ -895,12 +895,16 @@ class AzurePlatform(Platform): return errors # the VM may not be queried after deployed. use retry to mitigate it. - @retry(tries=60, delay=1) # type: ignore + @retry(exceptions=LisaException, tries=150, delay=2) # type: ignore def _load_vms( self, environment: Environment, log: Logger ) -> Dict[s...
Add link to audio examples llvmlite error is unrelated to change, so will submit anyway.
## Onsets and Frames: Dual-Objective Piano Transcription For model details, see our paper on arXiv: -[Onsets and Frames: Dual-Objective Piano Transcription](https://arxiv.org/abs/1710.11153) +[Onsets and Frames: Dual-Objective Piano Transcription](https://arxiv.org/abs/1710.11153). You can also listen to the [Audio Exa...
[runtime_env] Fix ray_constants import in release test Fixes a typo in an import statement that caused the runtime_env_wheel_urls release test to fail. Unfortunately this test checks wheels that are autobuilt from commits on master, so there isn't a convenient way to test it before merging it to master.
@@ -21,7 +21,7 @@ import time import requests import pprint -import ray._private.runtime_env.constants as ray_constants +import ray._private.ray_constants as ray_constants from ray._private.utils import get_master_wheel_url, get_release_wheel_url
docker: Update deploy to use Docker Python image Similar to the last commit, apply this for the deploy image
-FROM centos:centos7 +FROM python:2.7.14-slim-stretch # need to compile swig ENV SWIG_FEATURES="-D__x86_64__" @@ -8,33 +8,40 @@ ENV SWIG_FEATURES="-D__x86_64__" ENV OLYMPIA_UID=9500 RUN useradd -u ${OLYMPIA_UID} -s /sbin/nologin olympia -ADD docker/git.gpg.key /etc/pki/rpm-gpg/RPM-GPG-KEY-git -ADD docker/epel.gpg.key /...
Hungary (HU) Capacity Update * Hungary (HU) Capacity Update also added Geothermal and Unknown data * Updated README * Error Fix
] ], "capacity": { - "biomass": 274, + "biomass": 305, "coal": 1049, - "gas": 4114, - "hydro": 57, + "gas": 4028, + "geothermal": 3, + "hydro": 58, "hydro storage": 0, - "nuclear": 1887, - "oil": 410, - "solar": 225, - "wind": 329 + "nuclear": 1899, + "oil": 421, + "solar": 944, + "wind": 327, + "unknown": 74 }, "contr...
docs: Update Facebook scopes allowed without an app review According to the Facebook [permissions page](https://developers.facebook.com/docs/facebook-login/permissions#reference-user_friends), the `user_friends` scope now requires an app review.
@@ -533,7 +533,7 @@ The following Facebook settings are available: 'facebook': { 'METHOD': 'oauth2', 'SDK_URL': '//connect.facebook.net/{locale}/sdk.js', - 'SCOPE': ['email', 'public_profile', 'user_friends'], + 'SCOPE': ['email', 'public_profile'], 'AUTH_PARAMS': {'auth_type': 'reauthenticate'}, 'INIT_PARAMS': {'cooki...
Remove commented out code from factories mock change [skip ci]
@@ -585,14 +585,7 @@ class PreprintFactory(DjangoModelFactory): preprint.save() if license_details: preprint.set_preprint_license(license_details, auth=auth) - # create_identifier_patcher = mock.patch("website.identifiers.client.EzidClient.create_identifier") - # mock_create_identifier = create_identifier_patcher.start...
Update vasp_check.py New line
@@ -13,6 +13,7 @@ class VASPCheck(rfm.RunOnlyRegressionTest): self.valid_prog_environs = ['cpeIntel'] else: self.valid_prog_environs = ['builtin'] + self.modules = ['VASP'] force = sn.extractsingle(r'1 F=\s+(?P<result>\S+)', self.stdout, 'result', float)
Fix tags in collectd ansible-playbook -i hosts install/collectd.yml --tags="undercloud" ansible-playbook -i hosts install/collectd.yml --tags="controller" ansible-playbook -i hosts install/collectd.yml --tags="compute"
- hosts: undercloud roles: - { role: osp_version } + tags: undercloud, controller, compute tasks: - name: set fact collectd_container set_fact: collectd_container: "{{ (rhosp_major|int > 14)| ternary(true, false) }}" + tags: undercloud, controller, compute
Fix error in layout for index.py. Change 'app_github_url' keyword to 'app_name', to match the changes in 'app_wrapper'.
@@ -94,11 +94,6 @@ def demo_app_header_colors(name): return {} -def demo_app_github_url(name): - """ Returns the link with the code for the demo app. """ - return name - - def demo_app_link_id(name): """Returns the value of the id of the dcc.Link related to the demo app. """ return 'app-link-id-{}'.format(name.replace(...
Removes type information checks This is untested and breaks with single channel images.
@@ -93,22 +93,6 @@ def _validate_tifffile( if Image.COLOR_SPACE_COMPONENTS[color_space] != tif_color_channels: raise ValidationError("Image contains invalid amount of channels.") - # Checks type information - try: - if str(tags["SampleFormat"].value[0]) == "IEEEFP": - if tags["BitsPerSample"].value[0] != 32: - raise Va...
Volatile input keys should also consider non-Variable arguments Additionally, check Variable argument sizes
@@ -166,10 +166,14 @@ class Traceable(object): Traceable._next_trace_id += 1 def get_input_key(self, args): - if any(arg.volatile if isinstance(arg, Variable) else False for arg in args): - return self.VOLATILE - return tuple(arg.requires_grad if isinstance(arg, Variable) else arg - for arg in args) + is_volatile = any...
Ignore InvalidVideoListTypeError exception on playback started when the profile is new not have continueWatching list data then we can ignore it
@@ -11,6 +11,7 @@ from __future__ import absolute_import, division, unicode_literals import resources.lib.common as common from resources.lib.common.cache_utils import CACHE_BOOKMARKS, CACHE_COMMON +from resources.lib.common.exceptions import InvalidVideoListTypeError from resources.lib.globals import G from resources....
block bot upgrade excluded from block list those who liked me in recent feed (usually 18 posts)
@@ -29,6 +29,16 @@ your_followers = False while not your_followers: your_followers = bot.get_user_followers(bot.user_id) +your_likers = set() +if bot.getSelfUserFeed(): + media_items = [item['pk'] for item in bot.LastJson["items"]] + for media in media_items: + if bot.getMediaLikers(media): + media_likers = bot.LastJso...
Make sure real OS tests are not run by default code had been commented out accidentally fixes
@@ -369,8 +369,8 @@ class RealFsTestCase(TestCase, RealFsTestMixin): self.open = fake_filesystem.FakeFileOpen(self.filesystem) self.os = fake_filesystem.FakeOsModule(self.filesystem) self.create_basepath() - # elif not os.environ.get('TEST_REAL_FS'): - # self.skip_real_fs() + elif not os.environ.get('TEST_REAL_FS'): + ...
Change function signature to implement the algorithm in the logout handler instead of extending main get function. Call the AWS Cognito API as described in Use native coroutines instead Fix auth_state is not cleared before logout
@@ -39,6 +39,7 @@ from tornado.auth import OAuth2Mixin from tornado import gen, web from tornado.httpclient import HTTPRequest, AsyncHTTPClient +from tornado.httputil import url_concat from jupyterhub.handlers import LogoutHandler from jupyterhub.auth import LocalAuthenticator @@ -65,22 +66,37 @@ class AWSCognitoLogout...
Add Google analytics Summary: See title.
@@ -27,6 +27,9 @@ const siteConfig = { organizationName: 'pytorch', projectName: 'botorch', + // Google analytics + gaTrackingId: 'UA-139570076-2', + // links that will be used in the header navigation bar headerLinks: [ {doc: 'introduction', label: 'Docs'},
Remove EINTR branch from PR PEP 475 handles Python 3.5+ When PR was submitted, older versions of Python were supported. Now only Python 3.6+ is supposed, so we can rely on PEP 475
@@ -189,9 +189,7 @@ def _open_socket(addrinfo_list, sockopt, timeout): eConnRefused = (errno.ECONNREFUSED, errno.WSAECONNREFUSED) except: eConnRefused = (errno.ECONNREFUSED, ) - if error.errno == errno.EINTR: - continue - elif error.errno in eConnRefused: + if error.errno in eConnRefused: err = error continue else:
Accept epoch time offset for alarm-history monasca-ui sends offset as epoch time in ms to get alarm state history. Currently this causes an error (see related story). Story: Task: 3928
@@ -724,8 +724,13 @@ class MetricsRepository(metrics_repository.AbstractMetricsRepository): raise exceptions.RepositoryException(ex) def _build_offset_clause(self, offset): - if offset: + # offset may be given as a timestamp or as epoch time in ms + if str(offset).isdigit(): + # epoch time + offset_clause = " and time ...
Remote TODO; now For
@@ -228,7 +228,6 @@ ctext = r"(?: {HTAB} | {SP} | [\x21-\x27] | [\x2A-\x5b] | \x5D-\x7E | {obs_text} # comment = "(" *( ctext / quoted-pair / comment ) ")" comment = r"(?: \( (?: {ctext} | {quoted_pair} )* \) ) ".format(**locals()) -# TODO: handle recursive comments - see <https://pypi.python.org/pypi/regex/> # Via = 1...
change Patch, PatchBoundary to dataclass This patch reimplements Patch and PatchBoundary as dataclass for simplicity.
@@ -20,6 +20,7 @@ from .elementseq import References from .pointsseq import PointsSequence from .sample import Sample +from dataclasses import dataclass from functools import reduce from os import environ from typing import Any, FrozenSet, Iterable, Iterator, List, Mapping, Optional, Sequence, Tuple, Union @@ -2922,29 ...
Update error.py create custom DeprecationWarning subclass to print deprecation warnings to the console with ANSI formatting
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. +import os class AssertionException(Exception): @@ -31,6 +32,12 @@ class AssertionException(Exception): return self.reported -class DeprecationWarni...
keep stderr out of stdout file mirror Summary: combining the with statements pushed stderr logs into stdout Test Plan: Streamed spew test, saw split logs Reviewers: #ft, alangenfeld
@@ -181,7 +181,8 @@ def mirror_step_io(step_context): ensure_dir(os.path.dirname(outpath)) ensure_dir(os.path.dirname(errpath)) - with mirror_stream(sys.stdout, outpath), mirror_stream(sys.stderr, errpath): + with mirror_stream(sys.stderr, errpath): + with mirror_stream(sys.stdout, outpath): yield # touch the file to s...
DRY-up loops to kick off status aggregation tasks This will make it easier to parallelise by service in the following commits, since we only have one loop to change.
@@ -91,31 +91,21 @@ def create_nightly_notification_status(): yesterday = convert_utc_to_bst(datetime.utcnow()).date() - timedelta(days=1) - # email and sms - for i in range(4): + for notification_type in [SMS_TYPE, EMAIL_TYPE, LETTER_TYPE]: + days = 10 if notification_type == LETTER_TYPE else 4 + + for i in range(days...
Fix PyCharm instructions in README Without this change, PyCharm won't refresh the file in the editor after Black runs.
@@ -658,7 +658,7 @@ $ where black - Scope: Project Files - Program: <install_location_from_step_2> - Arguments: `$FilePath$` - - Output paths to refresh: `$FilePathRelativeToProjectRoot$` + - Output paths to refresh: `$FilePath$` - Working directory: `$ProjectFileDir$` - Uncheck "Auto-save edited files to trigger the w...
CompoundEditor : Handle drags out of the tab close button Since we added the close button, we can now end up receiving move and release events that we have no interest in. We should just silently pass these on.
@@ -941,6 +941,10 @@ class _TabDragBehaviour( QtCore.QObject ) : if event.button() != QtCore.Qt.LeftButton : return False + if not self.__qTabBar : + # We can end up here from drag interactions with the close button + return False + try : # We only consume this event if we've been messing with events and @@ -1006,6 +10...
Improve error message By passing in additional parameters to the validation function users can better find where they set the invalid inheritance-break flag.
@@ -165,17 +165,19 @@ class ConfigurationCore(ABC): pass @staticmethod - def validate_break_inheritance_flag(config, level): + def validate_break_inheritance_flag(config, section_name, parent_key=""): for key, value in config.items(): if "inherit" == key: + parent_key_description = ' under key "' + parent_key + '"' fat...
Update to wagtail-purge==0.2.0 Changelog:
@@ -42,12 +42,12 @@ mistune==2.0.3 more-itertools==8.12.0 phonenumberslite==8.12.39 Pillow==9.0.1 -psycopg2==2.8.6 +psycopg2-binary reportlab==3.6.3 social_auth_app_django==5.0.0 tomd==0.1.3 wagtail-cache==1.0.2 -wagtail-purge==0.1 +wagtail-purge==0.2 wagtail==3.0.1 whitenoise==5.3.0 xmltodict==0.12.0
map popup menu dashboard link fixed HG-- branch : feature/microservices
@@ -898,9 +898,12 @@ Ext.define("NOC.inv.map.MapPanel", { }, onNodeMenuDashboard: function() { - var me = this; + var me = this, + objectType = me.nodeMenuObjectType; + + if('managedobject' == me.nodeMenuObjectType) objectType = 'mo'; window.open( - '/ui/grafana/dashboard/script/noc.js?dashboard=' + me.nodeMenuObjectTy...
new attribute in composites `mirror-initial` initially mirrors a mirrorable composite lec.mirror-initial = true lec_43.mirror-initial = true
@@ -76,6 +76,7 @@ class Composite: self.inter = False self.noswap = False self.mirror = False + self.mirror_initial = False self.order = order def str_title(): @@ -178,6 +179,8 @@ class Composite: self.noswap = value elif attr == 'mirror': self.mirror = value + elif attr == 'mirror-initial': + self.mirror_initial = val...
ui_report: Do not pass jQuery element to the html method. Although it works, this feature is not documented.
@@ -61,9 +61,8 @@ export function generic_embed_error(error_html) { export function generic_row_button_error(xhr, btn) { if (xhr.status >= 400 && xhr.status < 500) { - btn.closest("td").html( - $("<p>").addClass("text-error").text(JSON.parse(xhr.responseText).msg), - ); + const $error = $("<p>").addClass("text-error")....
Update test_xarray.py Try new fixture management
import pytest +import warnings from argopy import DataFetcher as ArgoDataFetcher from argopy.errors import InvalidDatasetStructure, ErddapServerError @@ -21,10 +22,12 @@ def ds_pts(): .region([-75, -55, 30.0, 40.0, 0, 100.0, "2011-01-01", "2011-01-15"]) .to_xarray() ) - except ErddapServerError: # Test is passed when s...
Fix A2A-VC config written toward A2O-VC Fix path config in A2A-VC, which was written toward A2O-VC. This will fix training crash by missing address.
@@ -31,7 +31,7 @@ downstream_expert: eval_batch_size: 5 trdev_data_root: "./downstream/a2a-vc-vctk/data/VCTK-Corpus/wav48" - eval_data_root: "./downstream/a2o-vc-vcc2020/data/vcc2020" + eval_data_root: "./downstream/a2a-vc-vctk/data/vcc2020" spk_embs_root: "./downstream/a2a-vc-vctk/data/spk_embs/" lists_root: "./downst...
Replaced circular link Replaced circular link to GitHub README file (where migration recommendations were published) with migration content from the README file history.
@@ -80,7 +80,9 @@ Deploy Mattermost on Docker for production use Upgrade from ``mattermost-docker`` ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -For an in-depth guide to upgrading from the deprecated `mattermost-docker repository <https://github.com/mattermost/mattermost-docker>`__, please refer to `this document <https://gith...
removed legacy code removed deprecated timesamp code
@@ -17,7 +17,6 @@ mkdir -p "$LOGPATH" # excludes sensative parameters # shellcheck disable=SC2129 echo "*** Start config parameters ****" >> "$LOG" -echo "Timestamp: [`date`]" >> "$LOG" echo -e "\tTimestamp: $(date -R)" >> "$LOG" # shellcheck disable=SC2002 cat "$ARM_CONFIG"|sed '/^[#;].*$/d;/^$/d;/if/d;/^ /d;/^else/d;...
Remove old "simple_polygons" fields in schemas These were missed in [1]. [1]:
@@ -15,7 +15,6 @@ create_broadcast_message_schema = { 'finishes_at': {'type': 'string', 'format': 'datetime'}, 'areas': {'type': 'object'}, 'areas_2': {'type': 'object'}, - 'simple_polygons': {"type": "array", "items": {"type": "array"}}, 'content': {'type': 'string', 'minLength': 1}, 'reference': {'type': 'string', 'm...
set 'running' event after observer has started this prevents 'running' from being set if starting the observer fails
@@ -1903,8 +1903,6 @@ class MaestralMonitor(object): name="Maestral uploader" ) - self.running.set() - try: self.local_observer_thread.start() except OSError as exc: @@ -1922,6 +1920,8 @@ class MaestralMonitor(object): else: raise exc + self.running.set() + self.connection_thread.start() self.download_thread.start() se...
ModLog: support self_stream voice state This feature will be available in discord.py 1.3.
@@ -25,7 +25,11 @@ CHANNEL_CHANGES_SUPPRESSED = ("_overwrites", "position") MEMBER_CHANGES_SUPPRESSED = ("status", "activities", "_client_status", "nick") ROLE_CHANGES_UNSUPPORTED = ("colour", "permissions") -VOICE_STATE_ATTRIBUTES = {"self_video": "Broadcasting", "channel.name": "Channel"} +VOICE_STATE_ATTRIBUTES = { ...
message view: Change PM flag to match PM compose flag. Fixes
@@ -1647,8 +1647,8 @@ blockquote p { border-top-color: hsla(0, 0%, 0%, 0.0); border-right-color: hsla(0, 0%, 0%, 0.0); border-bottom-color: hsla(0, 0%, 0%, 0.0); - background-color: hsl(0, 0%, 7%); - border-left-color: hsl(0, 0%, 7%); + background-color: hsl(0, 0%, 27%); + border-left-color: hsl(0, 0%, 27%); color: #ff...
XFail test_hinge_loss temporarily See XFailing right now to unblock CI. Authors: - Micka (https://github.com/lowener) Approvers: - Dante Gama Dessavre (https://github.com/dantegd) URL:
@@ -1381,6 +1381,8 @@ def test_sparse_pairwise_distances_output_types(input_type, output_type): assert isinstance(S, cp.ndarray) +@pytest.mark.xfail(reason='Temporarily disabling this test. ' + 'See rapidsai/cuml#3569') @pytest.mark.parametrize("nrows, ncols, n_info", [ unit_param(30, 10, 7),
smart_classroom_demo: Fix trivial issues * the comment is wrong (it was a remnant of an earlier version of the code that I forgot to change); * `face_config` isn't used in the body of the `if`, while `fd_model_path` is, so it makes more sense to check the latter.
@@ -670,8 +670,8 @@ int main(int argc, char* argv[]) { std::unique_ptr<FaceRecognizer> face_recognizer; - if (face_config.enabled && !fr_model_path.empty() && !lm_model_path.empty()) { - // Create face tracker + if (!fd_model_path.empty() && !fr_model_path.empty() && !lm_model_path.empty()) { + // Create face recognize...
Add create_network method in etcd db. Add create_network method in etcd db. Now support two db types, both etcd and sql for storing network. Relatated bug:
@@ -1336,3 +1336,17 @@ class EtcdAPI(object): except Exception as e: LOG.error('Error occurred while retrieving quota usage: %s', six.text_type(e)) + + @lockutils.synchronized('etcd_network') + def create_network(self, context, network_value): + if not network_value.get('uuid'): + network_value['uuid'] = uuidutils.gene...
Use method dispatch for executing instructions Removes chain of if/else statements.
@@ -391,15 +391,23 @@ class Executor(object): def execute(self, api_calls): # type: (List[models.Instruction]) -> None for instruction in api_calls: - if isinstance(instruction, models.APICall): + getattr(self, '_do_%s' % instruction.__class__.__name__.lower(), + lambda x: None)(instruction) + + def _do_apicall(self, i...
Temporarily disable caching Requires AllowOverride Index in the Apache config
@@ -11,6 +11,7 @@ Header set Access-Control-Allow-Origin "*" # Allow brief caching of API responses <IfModule mod_expires.c> - ExpiresByType application/json "access plus 2 hours" + # ExpiresActive on + # ExpiresByType application/json "access plus 2 hours" </IfModule>
Error Handler: Changed way of help command get + send to avoid warning Only get coroutine when this is gonna be awaited.
@@ -159,19 +159,17 @@ class ErrorHandler(Cog): * ArgumentParsingError: send an error message * Other: send an error message and the help command """ - prepared_help_command = self.get_help_command(ctx) - if isinstance(e, errors.MissingRequiredArgument): await ctx.send(f"Missing required argument `{e.param.name}`.") - a...
ci: make jobs interruptible This will cancel old running pipelines if a new one is created.
@@ -16,12 +16,14 @@ init: - shell script: - schutzbot/update_github_status.sh start + interruptible: true RPM: stage: rpmbuild extends: .terraform script: - sh "schutzbot/mockbuild.sh" + interruptible: true parallel: matrix: - RUNNER:
Cleaning locales that are symlinked to other locales. Fixes
import copy import json import logging +import os import threading import progressbar import texttable @@ -54,6 +55,17 @@ class Translator(object): self.instructions = instructions self._inject = inject + @staticmethod + def _cleanup_symlinks(locales): + """Symlinked locales should be ignored.""" + clean_locales = [] +...
Port buildgen to py3 ### Problem Porting buildgen to py3. Needs references to str and object. ### Solution added builtins import for str and object
@@ -8,6 +8,7 @@ import ast import logging import re import sys +from builtins import object, str from difflib import unified_diff from pants.build_graph.address import Address, BuildFileAddress
the pip install for TF2 needs updating TF2 installs GPU by default - need to drop the -gpu modifier to install correctly via pip in colab. likely the same issue in all TF2 colab examples
}, "source": [ "# We want to use TensorFlow 2.0 in the Eager mode for this demonstration. But this module works as well with the Graph mode.\n", - "!pip install -U --pre tensorflow-gpu --quiet" + "!pip install tensorflow --quiet" ], "execution_count": 0, "outputs": []
fix images paypal embed didn't work here
@@ -14,11 +14,6 @@ CWL v1.2.x: https://github.com/common-workflow-language/cwl-v1.2/ [**Support**](#Support) [![Gitter](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/common-workflow-language/common-workflow-language?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) [![GitHub star...
Set c99 to intel icc compiler so numpy will build Numpy will not build if this is not set because it has code that follows the c99 standard. icc is set to c89 by default. Look below at IntelCCompilerW which is the icc equivalent on Windows and that one already has c99 set.
@@ -58,7 +58,7 @@ def __init__(self, verbose=0, dry_run=0, force=0): v = self.get_version() mpopt = 'openmp' if v and v < '15' else 'qopenmp' - self.cc_exe = ('icc -m64 -fPIC -fp-model strict -O3 ' + self.cc_exe = ('icc -std=c99 -m64 -fPIC -fp-model strict -O3 ' '-fomit-frame-pointer -{}').format(mpopt) compiler = self...
Add DebOps project to eco test pipeline The 'debops/debops' repository contains a set of Ansible roles and playbooks focused on Debian and Ubuntu server management.
- name: ansible_collection_system url: https://github.com/devroles/ansible_collection_system contact: greg-hellings + - name: debops + url: https://github.com/debops/debops + contact: drybjed tasks: - name: Clone repo
Fixes for /integrations/ page. This fixes the hubot text that still stays when you transition to integration details along with fixing the first animation that is choppy and previews briefly before fading in. Fixes
@@ -48,14 +48,14 @@ var integration_events = function () { if (hashes.indexOf(_hash) > -1) { $lozenge_icon = $(".integration-lozenges .integration-lozenge.integration-" + _hash).clone(true); currentblock = $(hash); - instructionbox.children(".integration-lozenge").replaceWith($lozenge_icon); + instructionbox.hide().chi...
DOC: now support sphinx-autbuild [NEW] inside the doc directory, `make livehtml` serves web pages to browser, allowing checking doc appearance while writing.
@@ -87,6 +87,7 @@ doctest: @echo "Testing of doctests in the sources finished, look at the " \ "results in _build/doctest/output.txt." + .PHONY: livehtml livehtml: - sphinx-autobuild -p 5500 -b html $(ALLSPHINXOPTS) "$(SOURCEDIR)" $(BUILDDIR)/html + sphinx-autobuild -p 5500 -b html $(ALLSPHINXOPTS) _build/html
datasets.fetch_spm_multimodal_fmri() generates events.tsv files; warns in tests - Added _make_events_filepath_spm_multimodal_fmri(). - Events files are not egnerated during nosetests, and a warning is presented.
@@ -8,6 +8,7 @@ import glob import json import os import re +import warnings from botocore.handlers import disable_signing import nibabel as nib @@ -19,6 +20,7 @@ from nilearn.datasets.utils import (_fetch_file, _uncompress_file, ) from scipy.io import loadmat +from scipy.io.matlab.miobase import MatReadError from skle...
ASTNodeType: remove ASTNodeType from get_inheritance_chain's result TN:
@@ -1751,13 +1751,16 @@ class StructType(CompiledType): @classmethod def get_inheritance_chain(cls): """ - Return a list for all classes from ASTNodeType to `cls` in the - inheritance chain. + Return a list for all classes from ASTNodeType (excluded) to `cls` + (included) in the inheritance chain. Root-most classes com...
Change default iter/get messages limit And fix-up previous commit.
@@ -1013,7 +1013,7 @@ class TelegramClient(TelegramBareClient): else: return self(messages.DeleteMessagesRequest(message_ids, revoke=revoke)) - def iter_messages(self, entity, limit=20, offset_date=None, + def iter_messages(self, entity, limit=None, offset_date=None, offset_id=0, max_id=0, min_id=0, add_offset=0, searc...
Adds CV_time and CV_current as summary stats, and a helper function to extract the CV portion of charge.
@@ -796,6 +796,18 @@ class BEEPDatapath(abc.ABC, MSONable): summary["paused"] = self.raw_data.groupby("cycle_index").apply( get_max_paused_over_threshold) + # Add CV_time and CV_current summary stats + CV_time = [] + CV_current = [] + for cycle in summary.cycle_index: + raw_cycle = self.raw_data.loc[self.raw_data.cycle...
[Doc] Fixed typo error at comment. VideoDatset -> VideoDataset
@@ -102,7 +102,7 @@ class SampleFrames: test_mode (bool): Store True when building test or validation dataset. Default: False. start_index (None): This argument is deprecated and moved to dataset - class (``BaseDataset``, ``VideoDatset``, ``RawframeDataset``, etc), + class (``BaseDataset``, ``VideoDataset``, ``Rawframe...
Update scripts/generate_ipfs_hashes.py Revert only hash
@@ -152,7 +152,7 @@ def ipfs_hashing( # use ignore patterns somehow # ignore_patterns = configuration.fingerprint_ignore_patterns] assert configuration.directory is not None - result_list = client.add(configuration.directory, only_hash=True) + result_list = client.add(configuration.directory) key = os.path.join( config...
Changed motion check to look at sorted date list Previous method using clips resulted in an unsorted array, so the newest clip wasn't always added during check
@@ -221,7 +221,8 @@ class BlinkCamera(): # Check if the most recent clip is included in the last_record list # and that the last_record list is populated try: - new_clip = self.blink.videos[self.name][0]['clip'] + records = sorted(self.blink.record_dates[self.name]) + new_clip = records.pop() if new_clip not in self.la...
settings: Extend `DATA_UPLOAD_MAX_MEMORY_SIZE` from default value. In django 1.10 was added `DATA_UPLOAD_MAX_MEMORY_SIZE` parameter, which controls max size of uploading files. By default it is 2.5MB.
@@ -115,6 +115,7 @@ DEFAULT_SETTINGS = {'TWITTER_CONSUMER_KEY': '', 'S3_SECRET_KEY': '', 'S3_AVATAR_BUCKET': '', 'LOCAL_UPLOADS_DIR': None, + 'DATA_UPLOAD_MAX_MEMORY_SIZE': 25 * 1024 * 1024, 'MAX_FILE_UPLOAD_SIZE': 25, 'MAX_AVATAR_FILE_SIZE': 5, 'MAX_ICON_FILE_SIZE': 5,
feat: add checkpoint timedelta checker Simply call `brownie run sidechain/checkpoint get_checkpoint_delta`
-from brownie import Contract, accounts, history +import datetime + +from brownie import Contract, accounts, history, network # this script is used for bridging CRV rewards to sidechains # it should be run once per week, just after the start of the epoch week @@ -105,3 +107,22 @@ def avax(): streamer = Contract(addr) t...
Fixes an issue on localhost deploying to nested lxd Fixes
@@ -63,6 +63,8 @@ class DeployController: """ handles deployment """ for service in self.applications: + if app.current_cloud == "localhost": + service.placement_spec = None juju.deploy_service(service, app.metadata_controller.series, utils.info,
8443 should be removed since we are defaulting to https If port 8443 is used a redirect_uri_mismatch during OAuth flow from Github will happen, which prevents logging into the Openshift Console.
@@ -72,7 +72,7 @@ export AWS_SECRET_ACCESS_KEY=bar ``` ### GitHub Authentication -GitHub authentication is the default authentication mechanism used for this reference architecture. GitHub authentication requires an OAuth application to be created. The values should reflect the hosted zone defined in Route53 for exampl...
Update version 0.8.3 -> 0.8.4 New Features * `assert_bqm_almost_equal` function for testing * `ScaleComposite` * `sample_column` optional keyword argument for `SampleSet.to_pandas_df` * `sample_dict_cast` optional keyword argument for `SampleSet.data` Fixes * `BQM.normalize` now ignored ignored variables/interactions w...
# # ================================================================================================ -__version__ = '0.8.3' +__version__ = '0.8.4' __author__ = 'D-Wave Systems Inc.' __authoremail__ = 'acondello@dwavesys.com' __description__ = 'A shared API for binary quadratic model samplers.'
fix deepspeep + t5 error, The type of activation should be the same type as weight, both should be FP16.
@@ -31,4 +31,4 @@ class T5LayerNorm(nn.Module): variance = hidden_states.to(torch.float32).pow(2).mean(-1, keepdim=True) hidden_states = hidden_states * torch.rsqrt(variance + self.variance_epsilon) - return self.weight * hidden_states \ No newline at end of file + return self.weight * hidden_states.type_as(self.weight...
Preferred url scheme Added the flask preferred url scheme since we should always be running behind an HTTPS reverse proxy. This only works when generating urls using url_for outside of a request context (which is not super common), but adding it to be sure.
@@ -16,6 +16,7 @@ class Config(object): # Display Config RESULTS_PER_PAGE = 100 PREVIEW_LENGTH = 100 + PREFERRED_URL_SCHEME = 'https' # Data store config ELASTICSEARCH_URL = os.environ.get('ELASTICSEARCH_URL') or \
Make sure to commit when giving away files This might help with
@@ -1360,6 +1360,7 @@ class CachingFileStore(AbstractFileStore): # Record that. self.cur.execute('UPDATE refs SET state = ? WHERE path = ? AND file_id = ?', ('mutable', localFilePath, fileStoreID)) self.cur.execute('DELETE FROM files WHERE id = ?', (fileStoreID,)) + self.con.commit() # Now we're done return True
docs: Fix fluid-soundfont download link. This fixes a dead download link and adds a link to list of other downloadable soundfonts.
@@ -66,8 +66,8 @@ install one by doing the following: **Ubuntu:** Use the command `sudo apt-get install fluid-soundfont-gm`.<br /> **Mac:** Download the soundfont from -http://www.musescore.org/download/fluid-soundfont.tar.gz and unpack the SF2 -file. +ftp://ftp.osuosl.org/pub/musescore/soundfont/fluid-soundfont.tar.gz...
Use addClassResourceCleanup in account service test This patch is to use addClassResourceCleanup for the account service test.
@@ -44,14 +44,13 @@ class AccountTest(base.BaseObjectTest): for i in range(ord('a'), ord('f') + 1): name = data_utils.rand_name(name='%s-' % six.int2byte(i)) cls.container_client.update_container(name) + cls.addClassResourceCleanup(base.delete_containers, + [name], + cls.container_client, + cls.object_client) cls.conta...
CI: more aggressive cache invalidation E.g. if we bump the python version, should not reuse the pip cache. Easiest to invalidate cache if any build-specific file changes.
@@ -157,6 +157,7 @@ task: fingerprint_script: - echo $CIRRUS_TASK_NAME - find contrib/deterministic-build/*.txt -type f -print0 | sort -z | xargs -0 sha256sum | sha256sum + - find contrib/build-wine/ -type f -print0 | sort -z | xargs -0 sha256sum | sha256sum populate_script: mkdir -p contrib/build-wine/.cache/win32/win...
Run sublime.set_timeout also for docs that are already resolved For some reason ST does not like it when we show a popup from within the run method of LspResolveDocs.
@@ -22,7 +22,8 @@ class LspResolveDocsCommand(sublime_plugin.TextCommand): # don't show the detail in the cooperate AC popup if it is already shown in the AC details filed. self.is_detail_shown = bool(detail) minihtml_content = self.get_content(documentation, detail) - self.show_popup(minihtml_content) + # NOTE: For so...
Drop test_dmp_zz_modular_resultant() As an implicit rule, we don't test private methods. There is an indirect test for same f and g, but p=7 in test_PolyElement_subresultants().
@@ -838,13 +838,3 @@ def test_PolyElement_cancel(): g = t**2 + (x**2 + 2)/2 assert f.cancel(g) == ((-x**2 - 4)*t, 4*t**2 + 2*x**2 + 4) - - -def test_dmp_zz_modular_resultant(): - R, x, y = ring('x,y', ZZ) - R1 = R.drop(x) - - f = x + y + 2 - g = 2*x*y + x + 3 - - assert R._modular_resultant(f, g, 5) == -2*R1.y**2 + 1
increase wholesale COST to 1,000 from 100 to force excess production into curtailment when zero wholesale compensation
@@ -457,7 +457,7 @@ class UrdbParse: if sum(negative_wholesale_rate_costs) == 0: # no export to grid benefit, so force excess energy into curtailment - negative_wholesale_rate_costs = [100 for x in self.wholesale_rate] + negative_wholesale_rate_costs = [1000.0 for x in self.wholesale_rate] # FuelRate = array(Tech, Fuel...
Paginator Migration - Emoji and actions Switched the emoji used to clear the reactions of a paginator [":x:"] With [":trashcan:"], Clicking on this emoji deletes the message
@@ -10,7 +10,7 @@ FIRST_EMOJI = "\u23EE" # [:track_previous:] LEFT_EMOJI = "\u2B05" # [:arrow_left:] RIGHT_EMOJI = "\u27A1" # [:arrow_right:] LAST_EMOJI = "\u23ED" # [:track_next:] -DELETE_EMOJI = "\u274c" # [:x:] +DELETE_EMOJI = "<:trashcan:637136429717389331>" # [:trashcan:] PAGINATION_EMOJI = [FIRST_EMOJI, LEFT_EMOJ...
[Test] Use a flag to separate integration test from sample test * fork the sample test workflow * Revert "fork the sample test workflow" This reverts commit * update sample-test workflow def * update * Unconditionally run int test
@@ -29,6 +29,8 @@ spec: value: sample-tests - name: namespace value: kubeflow + - name: is-integration-test + value: "false" templates: - name: sample-test inputs: @@ -37,6 +39,7 @@ spec: - name: test-results-gcs-dir - name: sample-tests-image-suffix - name: namespace + - name: is-integration-test steps: - - name: buil...
FAQ update for instructions to fix timeout errors Fixed formatting with this commit.
@@ -178,7 +178,9 @@ What should I do if validation or grading of a notebook fails with a "Timeout wa --------------------------------------------------------------------------------------------------------------- This occurs because the validator or autograder is taking too long to validate or autograde your notebook. ...
Add fingerprint for 2019 Honda Civic Hatchback Honda Civic Hatchback 1.0T Elegance (Europe - Poland)
@@ -414,6 +414,7 @@ FW_VERSIONS = { b'37805-5AG-Z910\x00\x00', b'37805-5AJ-A750\x00\x00', b'37805-5AJ-L750\x00\x00', + b'37805-5AK-T530\x00\x00', b'37805-5AN-A750\x00\x00', b'37805-5AN-A830\x00\x00', b'37805-5AN-A840\x00\x00', @@ -474,6 +475,7 @@ FW_VERSIONS = { b'28101-5DJ-A710\x00\x00', b'28101-5DV-E330\x00\x00', b'2...
require --cluster-path and create it if doesn't exist Raise a CluserPathNotProvidedError when --cluster-path is not given on the command line. This will also create the given --cluster-path if it does not exist.
@@ -12,6 +12,7 @@ import random import ocs from ocsci import config as ocsci_config +from ocsci.exceptions import ClusterPathNotProvidedError __all__ = [ "pytest_addoption", @@ -99,6 +100,10 @@ def process_cluster_cli_params(config): """ cluster_path = get_cli_param(config, 'cluster_path') + if not cluster_path: + rais...
Typo in mathematical expression of Attention in DNA Replace Q with Theta
@@ -185,9 +185,9 @@ class DNAConv(MessagePassing): .. math:: \mathbf{x}_{v \leftarrow w}^{(t)} = \textrm{Attention} \left( \mathbf{x}^{(t-1)}_v \, \mathbf{\Theta}_Q^{(t)}, [\mathbf{x}_w^{(1)}, - \ldots, \mathbf{x}_w^{(t-1)}] \, \mathbf{Q}_K^{(t)}, \, + \ldots, \mathbf{x}_w^{(t-1)}] \, \mathbf{\Theta}_K^{(t)}, \, [\math...
bug fix type mismatch int has no attribute of item
@@ -42,9 +42,9 @@ def get_n_params(model): return pp def train(model, G): - best_val_acc = 0 - best_test_acc = 0 - train_step = 0 + best_val_acc = torch.tensor(0) + best_test_acc = torch.tensor(0) + train_step = torch.tensor(0) for epoch in np.arange(args.n_epoch) + 1: model.train() logits = model(G, 'paper')
verifier: handle SIGINT and SIGTERM correctly We now ensure that the revocation notifier is started and stopped by the same process.
SPDX-License-Identifier: Apache-2.0 Copyright 2017 Massachusetts Institute of Technology. ''' - +import signal import traceback import sys import functools @@ -1007,26 +1007,27 @@ def main(): context = cloud_verifier_common.init_mtls() - # after TLS is up, start revocation notifier - if config.getboolean('cloud_verifie...
change: rebase test default target env to py310 Rebase the test default target environment to python 3.10.
@@ -7,8 +7,8 @@ python = 3.6: py36 3.7: py37 3.8: py38 - 3.9: py39, type-check, lint, plugins, min - 3.10: py310 + 3.9: py39 + 3.10: py310, type-check, lint, plugins, min [flake8] exclude = .git,.tox,dist,*egg,setup.py
Image size reduction There is DEBIAN_FRONTEND no need for a variable, when the script setup_16.x is executed, it is declared. Adding a key --no-install-recommends when installing apt packages, you can save about 600 megabytes of disk space!
@@ -4,22 +4,21 @@ WORKDIR /app ADD . /app -ENV DEBIAN_FRONTEND=noninteractive RUN curl -sL https://deb.nodesource.com/setup_16.x | bash - && \ # install prequired modules to support install of mlflow and related components - apt-get install -y nodejs build-essential openjdk-11-jre-headless \ + apt-get install -y --no-i...
chore: platform specific syntax for pulsar-client 1. use pulsar-client == 2.10.0 for macos since 2.10.1 for macos not published 2. remove markdown since 3.3.5 is yanked
pip>=21 apsw<3.10 importlib_metadata<2.0.0 -markdown==3.3.5 pkginfo==1.7.1 beautifultable==1.0.0 cachetools==3.0.0 @@ -46,7 +45,8 @@ cryptography==3.3.2 sortedcontainers==2.2.2 pytorch-lightning>=1.6.5 filelock==3.3.1 -pulsar-client==2.10.1 +pulsar-client==2.10.1; sys_platform == "linux" +pulsar-client==2.10.0; sys_pla...
Enable menu if two factor or webauthn is enabled The menu shows links for both features so makes sense to show the menu if the settings are enabled.
-{% if security.registerable or security.recoverable or security.confirmable or security.unified_signin %} +{% if security.registerable or security.recoverable or security.confirmable or security.unified_signin or security.two_factor or security.webauthn %} <hr> <h2>{{ _fsdomain('Menu') }}</h2> <ul>
fix<tickets>: Force HELPDESK_PUBLIC_TICKET_QUEUE for anon tickets Before: we set initial value for the widget and had it hidden. So user could still change the queue with some HTML knowledge. Now: we drop the field at all and assign queue directly, utterly ignoring the POST request content for "queue" field.
@@ -192,8 +192,12 @@ class AbstractTicketForm(CustomFieldMixin, forms.Form): self.customfield_to_field(field, instanceargs) + def _get_queue(self): + # this procedure is re-defined for anon submission form + return Queue.objects.get(id=int(self.cleaned_data['queue'])) + def _create_ticket(self): - queue = Queue.objects...