message
stringlengths
13
484
diff
stringlengths
38
4.63k
Split long usecase text over multiple lines Fixes
@@ -22,6 +22,7 @@ class UseCaseItem(Classified, ElementPresentation): ), Text( text=lambda: self.subject.name or "", + width=lambda: self.width - 24, style={"font-weight": FontWeight.BOLD}, ), draw=draw_usecase,
0.8.2 changelog Test Plan: inspection Reviewers: alangenfeld
# Changelog -## 0.8.2 (Upcoming) +## 0.8.2 **Bugfix** -- Fixes issues with `dagster instance migrate` +- Fixes issues with `dagster instance migrate`. - Fixes bug in `launch_scheduled_execution` that would mask configuration errors. - Fixes bug in dagit where schedule related errors were not shown. +- Fixes JSON-serial...
Updated style of loading indicator We don't have one true standard here, but make it look more like reports and mobile workers instead of the bright blue label that we don't use anywhere else.
</span> </div> - <div class="label label-primary label-lg hide" + <h4 id="loading" class="hide" data-bind="visible: fetchState() === 'pending', css: {hide: false}"> - <i class="fa fa-spin fa-spinner"></i> {% trans "Loading Versions..." %} - </div> + <i class="fa fa-spin fa-spinner"></i> + {% trans "Loading versions..."...
add the Navitia API The [Navitia](https://www.navitia.io/) API is an open API build around transport data. you can query for journeys, isochrone, schedules, realtime data, ...
@@ -442,6 +442,7 @@ Please note a passing build status indicates all listed APIs are available since | Community Transit | Transitland API | No | Yes | [Go!](https://github.com/transitland/transitland-datastore/blob/master/README.md#api-endpoints) | | Goibibo | API for travel search | `apiKey` | Yes | [Go!](https://dev...
[Runtime][PipelineExecutor] Polish the name and comments of variable. Polish comments and variable name
@@ -515,8 +515,8 @@ class BackendRuntime { std::unordered_map<int, ModuleInputPairList> children_; /*\brief A map including the runtime input index and the notification data structure.*/ std::unordered_map<int, std::shared_ptr<DataNotify>> parents_notify_; - /*\brief The times of using pipeline function. */ - uint32_t ...
back out part of last change. The library works fine without the `__init__` but it's easier to mock out the properties this way.
@@ -2,6 +2,12 @@ from robot.libraries.BuiltIn import BuiltIn class BaseLibrary: + def __init__(self): + self._builtin = None + self._cumulusci = None + self._salesforce_api = None + self._salesforce = None + @property def salesforce(self): if getattr(self, "_salesforce", None) is None:
Fix example args in def table() Fix arg name from "name" to "table". Issue: TypeError: table() got an unexpected keyword argument 'name'
@@ -425,7 +425,7 @@ def table( Examples -------- >>> import awswrangler as wr - >>> df_table = wr.catalog.table(database='default', name='my_table') + >>> df_table = wr.catalog.table(database='default', table='my_table') """ client_glue: boto3.client = _utils.client(service_name="glue", session=boto3_session)
Add Callable and Mapping Also reorder for mypy
@@ -60,15 +60,25 @@ else: from collections import OrderedDict -if PYTHON_VERSION >= (3, 9): - from collections.abc import Iterable, Sequence +if PYTHON_VERSION < (3, 9): + from typing import ( + Callable, + Dict, + FrozenSet, + Iterable, + List, + Mapping, + Sequence, + Set, + Tuple, + ) +else: + from collections.abc i...
nagios: Remove some default files. Nagios ships with a bunch of default configuration files that one needs to delete in order to configure it.
@@ -48,6 +48,15 @@ class zulip_ops::nagios { source => 'puppet:///modules/zulip_ops/pagerduty_nagios.pl', } + file { [ '/etc/nagios3/conf.d/extinfo_nagios2.cfg', + '/etc/nagios3/conf.d/services_nagios2.cfg', + '/etc/nagios3/conf.d/contacts_nagios2.cfg', + '/etc/nagios3/conf.d/hostgroups_nagios2.cfg', + '/etc/nagios3/co...
Don't trigger signature help outside completion scopes Fixes
@@ -53,6 +53,7 @@ class SignatureHelpListener(sublime_plugin.ViewEventListener): self.view = view self._initialized = False self._signature_help_triggers = [] # type: List[str] + self._signature_help_selector = view.settings().get("auto_complete_selector", "") or "" # type: str self._visible = False self._help = None #...
Convert docstring param type to type-hint in three_dimensions.py * Convert docstring param type to type-hint in three_dimensions.py * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see
@@ -691,7 +691,7 @@ class Cone(Surface): Parameters ---------- - direction : :class:`numpy.array` + direction The direction of the apex. """ self.direction = direction
Add AllowDenyLists cog. This includes commands to add, remove and show the items in the whitelists and blacklists for the different list types. Commands are limited to Moderators+.
@@ -53,6 +53,7 @@ bot.load_extension("bot.cogs.verification") # Feature cogs bot.load_extension("bot.cogs.alias") +bot.load_extension("bot.cogs.allow_deny_lists") bot.load_extension("bot.cogs.defcon") bot.load_extension("bot.cogs.dm_relay") bot.load_extension("bot.cogs.duck_pond")
Qt receive widgets: do not show request that have expired They may still be retrieved from the menu
@@ -67,7 +67,7 @@ from electrum.util import (format_time, AddTransactionException, BITCOIN_BIP21_URI_SCHEME, InvoiceError, parse_max_spend) from electrum.invoices import PR_DEFAULT_EXPIRATION_WHEN_CREATING, Invoice -from electrum.invoices import PR_PAID, PR_UNPAID, PR_FAILED, pr_expiration_values, Invoice +from electru...
Describe usage of Pyccel container image This is a modified version of PR Describe usage of Pyccel container image usage based on generated images. As of now, images are available on Docker Hub (https://hub.docker.com/r/pyccel/pyccel/) and on the GitHub Container Registry (ghcr.io, private at the moment).
@@ -24,6 +24,16 @@ Pyccel comes with a selection of **extensions** allowing you to convert calls to - mpi4py - h5py (not available yet) +Pyccel Installation Methods +*************************** + +Pyccel can be installed on virtually any machine that provides Python 3, the pip package manager, a C/Fortran compiler, and...
Pontoon: Update Indonesian (id) localization of AMO Localization authors: Ilham N.P. Timothy Aditya Sutantyo alamanda
@@ -4,8 +4,8 @@ msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" "POT-Creation-Date: 2018-10-01 13:10+0000\n" -"PO-Revision-Date: 2016-11-03 22:05+0000\n" -"Last-Translator: eljuno <eljunotrie_anggoro@yahoo.co.id>\n" +"PO-Revision-Date: 2018-08-31 18:55+0000\n" +"Last-Translator...
Mark block invalid on BlockValidationError Since we do this whenever there block validation fails, do it when we catch the exception.
@@ -316,7 +316,6 @@ class BlockValidator(object): blkw)) if not self._validate_permissions(blkw, prev_state_root): - blkw.status = BlockStatus.Invalid raise BlockValidationError( 'Block {} failed permission validation'.format(blkw)) @@ -336,22 +335,16 @@ class BlockValidator(object): validator_id=public_key) if not con...
add decay parameter in ref_adagrad Summary: Pull Request resolved: Add decay parameter to match with C++ Adagrad implementation.
@@ -16,6 +16,7 @@ def ref_adagrad( using_fp16=False, output_effective_lr=False, output_effective_lr_and_update=False, + decay=1.0, row_wise=False, ): mom_in_f32 = mom_in @@ -25,9 +26,9 @@ def ref_adagrad( param_in_f32 = param_in.astype(np.float32) if row_wise: - mom_out = mom_in_f32 + np.mean(np.square(grad)) + mom_out...
GlusterFS: add minor README note for Closes
@@ -55,7 +55,7 @@ defined: | Name | Default value | Description | |-------------------|---------------|-----------------------------------------| -| glusterfs_devices | None | A list of block devices that will be completely managed as part of a GlusterFS cluster. There must be at least one device listed. Each device mu...
Fixed the Hello world code Without webview.start() it does nothing
@@ -27,6 +27,7 @@ _On Linux you need additional libraries. Refer to the [installation](https://pyw ``` python import webview webview.create_window('Hello world', 'https://pywebview.flowrl.com/hello') +webview.start() ``` Explore _pywebview_ further by reading [documentation](https://pywebview.flowrl.com/guide), [exampl...
Update obliquerat.txt Full-path detection for compromised domains.
# Reference: https://www.virustotal.com/gui/file/f5b007c75d953ed91595c1b1217d5f5301ef8043ea812472ccdb53472a350de3/detection 81.61.77.92:3344 + +# Reference: https://blog.talosintelligence.com/2021/02/obliquerat-new-campaign.html +# Reference: https://www.virustotal.com/gui/file/0196bc9ac3db6f02cfa97323c8fce6cc7318b8f8f...
Update quickstart.md minor 'typo' in command for training the model
@@ -30,7 +30,7 @@ Federal Master Trainer and Senior Instructor of the Italian Federation of Aerobi ### Step 2: Train the model ```bash -python train.py -data data/demo.train.pt -save_model demo-model +python train.py -data data/demo -save_model demo-model ``` The main train command is quite simple. Minimally it takes a...
Relax matplotlib pin for py38 Test Plan: unit Reviewers: max, alangenfeld
'geopandas', 'google-api-python-client', 'google-cloud-storage', - 'matplotlib==3.0.2; python_version >= "3.5"', + 'matplotlib>=3.0.2; python_version >= "3.5"', 'matplotlib==2.2.4; python_version < "3.5"', 'mock', 'pytest-mock',
[Hexagon] Add hexagon_posix.cc to TVM/RT sources in the right place This file was added before the variable with TVM/RT was initialized. The initialization overwrote the addition.
@@ -209,13 +209,6 @@ if(USE_VM_PROFILER) list(APPEND COMPILER_SRCS ${BACKEND_VM_PROFILER_SRCS}) endif(USE_VM_PROFILER) -if(BUILD_FOR_HEXAGON) - # Add file implementing posix_memalign. - list(APPEND RUNTIME_SRCS src/runtime/hexagon/hexagon_posix.cc) - - add_definitions(-D_MACH_I32=int) -endif() - file(GLOB DATATYPE_SRCS...
Prevent arbitrary test requirement files in pip installations etc. from interfering with the ccache. See
@@ -274,7 +274,7 @@ jobs: uses: hendrikmuhs/ccache-action@v1.2 with: variant: ${{ startsWith(runner.os, 'windows') && 'sccache' || 'ccache' }} # fake ternary - key: ${{ runner.os }}-hendrikmuhs-ccache${{ matrix.extra_hash }}-${{ matrix.python-version }}-${{ matrix.backend == 'c' || matrix.backend == 'c,cpp' }}-${{ cont...
[skip ci] Fix for ping_reviewers wait time This was set to 1 day instead of 1 week cc
@@ -18,4 +18,4 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | set -eux - python tests/scripts/ping_reviewers.py --wait-time-minutes 1440 + python tests/scripts/ping_reviewers.py --wait-time-minutes 10080
Handling <end-time> of -1 in the segments file Update kaldi.py to support <end-time> equal to -1 in segment file.
@@ -125,13 +125,18 @@ def load_kaldi_data_dir( genders = load_kaldi_text_mapping(path / "spk2gender") languages = load_kaldi_text_mapping(path / "utt2lang") + # to support <end-time> == -1 in segments file + # https://kaldi-asr.org/doc/extract-segments_8cc.html + # <end-time> of -1 means the segment runs till the end o...
refactor: convert doctype transaction log db.sql get_current_index()
@@ -9,6 +9,7 @@ from frappe.model.document import Document from frappe.query_builder import DocType from frappe.utils import cint, now_datetime + class TransactionLog(Document): def before_insert(self): index = get_current_index() @@ -29,18 +30,15 @@ class TransactionLog(Document): def hash_line(self): sha = hashlib.sh...
Fix counter in ST_ForceResponseResults There was an error in the counter to build the results matrix. Insted of using counter "j" related to the result itself, it was using counter "i", related to the probe numbering.
@@ -1272,7 +1272,7 @@ class ST_ForcedResponseResults: probe_resp = np.zeros_like(self.magnitude[:, :, 0]) for j, mag in enumerate(self.magnitude): _probe_resp = operator @ np.vstack((mag[:, dofx], mag[:, dofy])) - probe_resp[i] = np.sqrt((_probe_resp[0] * np.cos(angle)) ** 2 + + probe_resp[j] = np.sqrt((_probe_resp[0] ...
allow drug resistance reconciliation to commit when passed since its confirmed now. Skip logging missing person cases since those should be orphaned cases from migration clean up [skip ci]
@@ -25,13 +25,11 @@ class Command(BaseModelReconciliationCommand): "retain_case_id", "retain_reason", "closed_case_ids", - "closed_extension_case_ids", - "notes" + "closed_extension_case_ids" ] def handle(self, *args, **options): - # self.commit = options.get('commit') - self.commit = False + self.commit = options.get(...
Replace supervisord with systemd in LDAP troubleshooting Update the LDAP troubleshooting steps so that they are consistent with the rest of the documentaiton, which nowadays expects us to be running netbox via systemd instead of supervisord. Fixes
@@ -135,7 +135,7 @@ AUTH_LDAP_CACHE_TIMEOUT = 3600 ## Troubleshooting LDAP -`supervisorctl restart netbox` restarts the Netbox service, and initiates any changes made to `ldap_config.py`. If there are syntax errors present, the NetBox process will not spawn an instance, and errors should be logged to `/var/log/supervis...
Verification: move time constants above messages Allows referencing the constants within the message bodies.
@@ -16,6 +16,16 @@ from bot.utils.checks import InWhitelistCheckFailure, without_role_check log = logging.getLogger(__name__) +UNVERIFIED_AFTER = 3 # Amount of days after which non-Developers receive the @Unverified role +KICKED_AFTER = 30 # Amount of days after which non-Developers get kicked from the guild + +# Numbe...
update test for small contour in analyze_object The correction made to analyze_object for the case where the object is too small causes the test to fail. Really the function should return None if the object has less than 5 vertices.
@@ -939,7 +939,7 @@ def test_plantcv_analyze_object_small_contour(): # Test with debug = None pcv.params.debug = None obj_images = pcv.analyze_object(img=img, obj=obj_contour, mask=mask) - assert len(obj_images) != 0 + assert obj_images is None def test_plantcv_apply_mask_white():
Add missing LEXUS_NXH EPS f/w `@wiDa#7648` 2018 Lexus NX 300H DongleID/route 886a703694424882|2021-05-17--23-01-14
@@ -1443,8 +1443,9 @@ FW_VERSIONS = { b'881517804100\x00\x00\x00\x00', ], (Ecu.eps, 0x7a1, None): [ - b'8965B78100\x00\x00\x00\x00\x00\x00', b'8965B78060\x00\x00\x00\x00\x00\x00', + b'8965B78080\x00\x00\x00\x00\x00\x00', + b'8965B78100\x00\x00\x00\x00\x00\x00', ], (Ecu.fwdRadar, 0x750, 0xf): [ b'8821F4702300\x00\x00\x0...
Added a docstring to paulistring module. Fixes:
# See the License for the specific language governing permissions and # limitations under the License. +"""Methods related to optimizing and transforming PauliStrings.""" + from cirq.contrib.paulistring.convert_to_pauli_string_phasors import ( ConvertToPauliStringPhasors,)
Fix typo: find_libcrypto > _find_libcrypto. Fix a small typo to give CI a kick.
@@ -127,7 +127,7 @@ class RSAX931Test(TestCase): @skipIf(not salt.utils.platform.is_windows(), "Host OS is not Windows.") def test_find_libcrypto_win32(self): """ - Test find_libcrypto on Windows hosts. + Test _find_libcrypto on Windows hosts. """ lib_path = _find_libcrypto() self.assertEqual(lib_path, "libeay32") @@ -...
Check environment variable PIPENV_CUSTOM_VENV_NAME Resolves
@@ -365,6 +365,9 @@ class Project: @property def virtualenv_name(self) -> str: + custom_name = os.getenv("PIPENV_CUSTOM_VENV_NAME") + if custom_name: + return custom_name sanitized, encoded_hash = self._get_virtualenv_hash(self.name) suffix = "" if self.s.PIPENV_PYTHON:
Fix in FM alarmdetail report HG-- branch : feature/microservices
@@ -185,7 +185,9 @@ class ReportAlarmDetailApplication(ExtApplication): [("timestamp", 1)]): dt = datetime.datetime.now() - a["timestamp"] duration = dt.days * 86400 + dt.seconds - if duration and (duration < min_duration or duration > max_duration): + if duration and duration < min_duration: + continue + if duration a...
Fix default Guild env path Was env but we changed to venv recently and missed this.
@@ -309,8 +309,8 @@ class SSHRemote(remotelib.Remote): if not self.guild_env: return [] cwd = self.guild_env - if cwd.endswith("/env"): - cwd = cwd[:-4] + if cwd.endswith("/venv"): + cwd = cwd[:-5] return ["QUIET=1 source %s/bin/activate" % self.guild_env] def one_run(self, run_id_prefix, attrs):
properties/helpers.mako: minor reformatting TN:
No_${type_name} : constant ${type_name} := (Env => null); - function Convert - (Self : ${type_name}; From : ${sem_n}) return ${sem_n} + function Convert (Self : ${type_name}; From : ${sem_n}) return ${sem_n} with Inline; - function Convert - (Self : ${type_name}; From : ${sem_n}) - return ${sem_n} - is + function Conve...
Try to fetch account key in blob batch upload When a account name is implicitly specified in the destination URI.
@@ -702,9 +702,25 @@ def process_blob_upload_batch_parameters(namespace): raise ValueError('incorrect usage: destination cannot be a blob url') else: namespace.destination_container_name = identifier.container - if not namespace.account_name: + + if namespace.account_name: + if namespace.account_name != identifier.acco...
check if event type is keydown Fix problem where you have to hold f11 to switch fs/windowed due to not checking event type.
@@ -255,7 +255,7 @@ class Window(BaseWindow): ): self.close() - if self._fs_key is not None and event.key.keysym.sym == self._fs_key: + if self._fs_key is not None and event.key.keysym.sym == self._fs_key and event.type == sdl2.SDL_KEYDOWN: self.fullscreen = not self.fullscreen if event.type == sdl2.SDL_KEYDOWN:
Fix KeyError on incorrect genesis hash Fix KeyError that occurs when creating an exception for an incorrect genesis hash.
@@ -315,7 +315,7 @@ class DB(util.LoggedClass): genesis_hash = genesis_hash.decode() if genesis_hash != self.coin.GENESIS_HASH: raise self.DBError('DB genesis hash {} does not match coin {}' - .format(state['genesis_hash'], + .format(genesis_hash, self.coin.GENESIS_HASH)) self.db_height = state['height'] self.db_tx_cou...
fix: Move custom-actions under page-actions Change in custom-actions was affecting custom-actions in timeline the issue was introduced with
} } -.custom-actions { - display: flex; - align-items: center; -} - .page-actions { align-items: center; .btn { .custom-btn-group { display: inline-flex; } + + .custom-actions { + display: flex; + align-items: center; + } } .layout-main-section-wrapper {
Variable is not hashable So it is not confused with an ordinary number.
@@ -42,9 +42,6 @@ class Variable: for handler in self._handlers: handler(self) - def __hash__(self): - return object.__hash__(self) - strength = reversible_property(lambda s: s._strength) def dirty(self):
client: do not call items() in get_oldest This causes slowness if self._items is too large.
@@ -158,8 +158,10 @@ class LRUDict(object): Raises KeyError if dict is empty. """ - for item in self._items.items(): - return item + + # self._items.items() is slow if self._items has many items. + for key in self._items: + return (key, self._items[key]) raise KeyError('dictionary is empty') def pop_oldest(self):
tests: Remove test_private_message_policy from test_realm.py. This commit removes test_private_message_policy which is used to test changing private_message_policy using 'PATCH /realm' endpoint as we already do this in do_test_realm_update_api and invalid value is also tested in test_invalid_integer_attribute_values.
@@ -536,20 +536,6 @@ class RealmTest(ZulipTestCase): result = self.client_patch("/json/realm", req) self.assert_json_error(result, "Invalid user_group_edit_policy") - def test_private_message_policy(self) -> None: - # We need an admin user. - self.login("iago") - req = dict( - private_message_policy=orjson.dumps(Realm....
[MNT] temporarily remove stochastically failing tapnet from tests This PR emergency-removes tapnet based estimators from tests to avoid failures unrelated to PR from CI. See for the bug.
@@ -29,6 +29,9 @@ EXCLUDE_ESTIMATORS = [ "RandomIntervalClassifier", "MiniRocket", "MatrixProfileTransformer", + # tapnet based estimators fail stochastically for unknown reasons, see #3525 + "TapNetRegressor", + "TapNetClassifier", ]
puppeteer_test/16: Fix "not secure" warning hiding the button. When typing the password in Firefox, it shows a "Not Secure" warning which was hiding the "#get_api_key_button". You can see the screenshot of it in This commit fixes that issue by focusing on the button.
@@ -76,6 +76,12 @@ async function test_get_api_key(page: Page): Promise<void> { await common.fill_form(page, "#api_key_form", { password: test_credentials.default_user.password, }); + + // When typing the password in Firefox, it shows "Not Secure" warning + // which was hiding the Get API Key button. + // You can see t...
Add "visual reasoning" as a keyword Address meta review
"common sense", "paraphrase", "context-free question answering", - "riddle" + "riddle", + "visual reasoning" ], "preferred_score": "multiple_choice_grade", "metrics": [
Added Factory Tests (Rev 1) Added 3 tests to test out new logging and CLI seeding features: - test_cli_seed - test_cli_seed_with_repeat - test_cli_verbosity * I had mistakenly added the file to the wrong directory in Rev 0 commit.
@@ -8,6 +8,8 @@ import string import sys from ipaddress import ip_address, ip_network +import logging + try: from StringIO import StringIO except ImportError: # pragma: no cover @@ -123,6 +125,57 @@ class FactoryTestCase(unittest.TestCase): finally: sys.stdout = orig_stdout + def test_cli_seed(self): + from faker.cli i...
compose.js: Add return true for subscribed streams. This is basically going to fix a regression which was introduced in which made code early return in case of subscribed streams.
@@ -530,6 +530,7 @@ exports.validate_stream_message_address_info = function (stream_name) { compose_error(response, $('#stream')); return false; } + return true; }; function validate_stream_message() {
Fix object detector models The ObjectDetection base class has been corrupt since commit removed proto attribute from the NnpLoader class.
@@ -84,8 +84,8 @@ class ObjectDetection(object): return input_var def get_nnp_input_size(self): - nnp_input_size = self.nnp.proto.network[0].variable[0].shape.dim[2:] - return nnp_input_size + inputs = self.nnp.get_network(self.nnp.get_network_names()[0]).inputs + return list(inputs.values())[0].shape[2:] def __call__(...
Pass identity signer to _CandidateBlock This simplifies the interface a bit so that the signer associated with the public key does not need to be passed when finalizing.
@@ -132,7 +132,7 @@ class _CandidateBlock(object): max_batches, batch_injectors, settings_view, - signer_public_key, + identity_signer, ): self._pending_batches = [] self._pending_batch_ids = set() @@ -149,7 +149,7 @@ class _CandidateBlock(object): self._batch_injectors = batch_injectors self._settings_view = settings_...
Temporary workaround for the main synchronization issue we will addres with this task
#!/usr/bin/env python + import jinja2 import tempfile import os @@ -9,6 +10,7 @@ import random import re import traceback import subprocess +import threading from xos.config import Config, XOS_DIR from xos.logger import observer_logger as logger from multiprocessing import Process, Queue @@ -47,7 +49,7 @@ def get_playb...
fix setupdatabase() to use latest db version ARMui setupdatabase() was still pinned to old database version
@@ -236,7 +236,7 @@ def setupdatabase(): db.create_all() db.session.commit() # push the database version arm is looking for - user = Alembic_version('e688fe04d305') + user = Alembic_version('9cae4aa05dd7') db.session.add(user) db.session.commit() return True
optimize ragdolls ragdolls with physics disabled do not init properly, and collect at 0,0,0 also, set fade time to -1 so that ragdolls can fade as soon as possible
@@ -609,16 +609,15 @@ alias props_ultra "r_decalstaticprops 1;cl_phys_props_enable 1;r_drawdetailprops //cl_ragdoll_fade_time 5 // Fade out ragdolls in 5 seconds, which is the cutoff for special ragdoll effects //cl_ragdoll_forcefade 1 // Effectively disables ragdolls by instantly fading them //cl_ragdoll_forcefade 0 /...
Deseasonify: info log on help cog load Keep it consistent with all other cogs.
# Help command from Python bot. All commands that will be added to there in futures should be added to here too. import asyncio import itertools +import logging from collections import namedtuple from contextlib import suppress from typing import Union @@ -30,6 +31,8 @@ REACTIONS = { Cog = namedtuple('Cog', ['name', 'd...
Update v_vacuum_summary.sql added column vac_deleted_rows for number of deleted rows
@@ -27,6 +27,7 @@ CREATE OR REPLACE VIEW admin.v_vacuum_summary as SELECT a.userid, END AS vac_duration_secs, a."rows" AS vac_start_rows, b."rows" AS vac_end_rows, + a."rows" - b."rows" AS vac_deleted_rows, a.sortedrows AS vac_start_sorted_rows, b.sortedrows AS vac_end_sorted_rows, a."blocks" AS vac_start_blocks,
Bugfix port not specified using app run This fixes
@@ -1318,7 +1318,7 @@ class Quart(Scaffold): host = sn_host or "127.0.0.1" if port is None: - port = int(sn_port) or 5000 + port = int(sn_port or "5000") task = self.run_task( host,
Update Facter link to not be version-specific Thanks for Graham for the tip.
# Sal [![CircleCI](https://circleci.com/gh/salopensource/sal.svg?style=svg)](https://circleci.com/gh/salopensource/sal) -Sal is a multi-tenanted reporting dashboard for [Munki](https://github.com/munki/munki/) with the ability to display information from [Facter](https://puppet.com/docs/puppet/6.10/facter.html). It has...
TST: added old test back in Added the old xarray test back in.
@@ -509,6 +509,24 @@ class TestLoadNetCDF4XArray(): # Clear the class attributes del self.data_path, self.tempdir, self.testInst, self.stime + def test_basic_write_and_read_netcdf4_default_format(self): + """ Test basic netCDF4 writing and reading.""" + # Write the output test data + outfile = os.path.join(self.testIns...
Add quote_via argument to urlencode Fixes
# Stubs for urllib.parse -from typing import Any, List, Dict, Tuple, AnyStr, Generic, overload, Sequence, Mapping, Union, NamedTuple +from typing import Any, List, Dict, Tuple, AnyStr, Generic, overload, Sequence, Mapping, Union, NamedTuple, Callable +import sys __all__ = ( 'urlparse', @@ -123,6 +124,14 @@ def urldefra...
[jax2tf] Fix lowering for tf.while_loop Sometimes TF infers more specific shapes for the init_carry, and this has led to errors: "enters the loop with shape (1,), but has shape (None,) after one iteration" Unfortunately, I cannot construct a small test.
@@ -2751,7 +2751,12 @@ def _while(*args: TfVal, cond_nconsts: int, cond_jaxpr: core.ClosedJaxpr, body_tf_func = partial(_interpret_jaxpr, body_jaxpr, *body_consts, extra_name_stack="while/body") - return tf.while_loop(cond_tf_func, body_tf_func, init_carry) + # Sometimes TF infers more specific shapes for the init_carr...
blob backend migrator that checks destination first The idea here is that it should be much faster to check the destination first and only copy data that is missing. This is useful to do after a previous migration to validate the migration
@@ -296,6 +296,21 @@ class BlobDbBackendMigrator(BaseDocMigrator): print(self.filename) +class BlobDbBackendCheckMigrator(BlobDbBackendMigrator): + def migrate(self, doc): + meta = doc["_obj_not_json"] + self.total_blobs += 1 + if not self.db.new_db.exists(key=meta.key): + try: + content = self.db.old_db.get(key=meta.k...
new 16Q device map this is for ibmq_guadalupe, the only 16Q system available. longer-term it would be nice if the backend could provide its own preferred layout rather than needing to hard-code it here.
@@ -142,9 +142,9 @@ def plot_gate_map(backend, figsize=None, [0, 5], [0, 6], [1, 7], [1, 6], [1, 5], [1, 4], [1, 3], [1, 2], [1, 1], [1, 0]] - mpl_data[16] = [[1, 0], [0, 0], [0, 1], [0, 2], [0, 3], - [0, 4], [0, 5], [0, 6], [0, 7], [1, 7], - [1, 6], [1, 5], [1, 4], [1, 3], [1, 2], [1, 1]] + mpl_data[16] = [[1, 0], [1,...
Update comment I can also remove the `for` loop on this request if 's comment on here is correct:
@@ -60,7 +60,7 @@ tmp_dir=$(mktemp -d "/tmp/verify-published-package.XXXXXXXXXXXXXXXX") cd "${tmp_dir}" trap "{ rm -rf ${tmp_dir}; }" EXIT -# Test both the python 2 and python 3 versions. +# Test python 3 versions. for PYTHON_VERSION in python3; do # Prepare. RUNTIME_DEPS_FILE="${REPO_ROOT}/requirements.txt"
Fix ReportUnclassifiedOIDs and ReportMissedMIBs HG-- branch : feature/microservices
@@ -17,21 +17,13 @@ from noc.core.translation import ugettext as _ class ReportUnclassifiedOIDs(SimpleReport): title = _("Unclassified Trap OIDs") - c_f = """ - function() { - var c = {} - db[collection].find(query, {"vars": 1}).forEach(function(doc) { - var oid = doc.vars.trap_oid; - c[oid] = (c[oid] || 0) + 1; - }); ...
Add lus to aww_no_submissions.txt Added mizo translations to aww_no_submissions.txt
{% if more_than_one_week %} -AWC {{ awc }} has not submitted any form or done any activity in ICDS CAS application in more than one week. Please follow up with Block Level Helpdesk or Supervisor for assistance +AWC {{ awc }} hian kar khat chhungin application ah hian eng form mah a thehlut lo va, engmah hmalakna a neil...
Add error handlers for more command exceptions MissingPermissions, CheckFailure, DisabledCommand, and CommandOnCooldown will now have a simple message logged. * Log BotMissingPermissions and remove sending missing permissions as a message
@@ -4,9 +4,13 @@ import logging from discord.ext.commands import ( BadArgument, BotMissingPermissions, + CheckFailure, CommandError, CommandInvokeError, CommandNotFound, + CommandOnCooldown, + DisabledCommand, + MissingPermissions, NoPrivateMessage, UserInputError, ) @@ -58,10 +62,12 @@ class ErrorHandler: elif isinsta...
Update h3x_feeds.py You are currently trying to hit the full day export every hour while he provides an hourly export.
@@ -13,7 +13,7 @@ class MalwareCorpusTracker(Feed): default_values = { "frequency": timedelta(hours=1), "name": "MalwareCorpusTracker", - "source": "http://tracker.h3x.eu/api/sites_1day.php", + "source": "http://tracker.h3x.eu/api/sites_1hour.php", "description": "This feed contains known Malware C2 servers", } @@ -45,...
Fixed issue with automated transcript generation via "history -t" There is now a post-processing step which escapes all "/" characters which transcript testing treats as a regex escape if there isn't a "\" to esape it.
@@ -1913,6 +1913,13 @@ a..b, a:b, a:, ..b items by indices (inclusive) # Set echo back to its original state self.echo = saved_echo + # Post-process the file to escape un-escaped "/" regex escapes + with open(args.transcript, 'r') as fin: + data = fin.read() + post_processed_data = data.replace('/', '\/') + with open(a...
Consolidate client usage in MinBwAllocationPlacementTest Let's only use admin client for the operations that are really needing it. blueprint: qos-minimum-guaranteed-packet-rate
@@ -68,7 +68,7 @@ class NetworkQoSPlacementTestBase(manager.NetworkScenarioTest): cls.qos_client = cls.os_admin.qos_client cls.qos_min_bw_client = cls.os_admin.qos_min_bw_client cls.flavors_client = cls.os_adm.flavors_client - cls.servers_client = cls.os_adm.servers_client + cls.servers_client = cls.os_primary.servers_...
MAINT: Correct ContrastResults Ensure pvalue is defined
@@ -57,6 +57,8 @@ class ContrastResults: self.pvalue = np.full_like(value, np.nan) not_nan = ~np.isnan(value) self.pvalue[not_nan] = self.dist.sf(np.abs(value[not_nan])) * 2 + else: + self.pvalue = np.nan # cleanup # should we return python scalar?
Fire requests through Environment.events Example Grpc client not reporting stats when Locust is running as a library. Fixed by firing requests through Environment.events.request.fire instead of locust.events.request.fire Related Issue:
@@ -23,7 +23,8 @@ def run_grpc_server(environment, **_kwargs): class GrpcClient: - def __init__(self, stub): + def __init__(self, environment, stub): + self.env = environment self._stub_class = stub.__class__ self._stub = stub @@ -47,7 +48,7 @@ class GrpcClient: except grpc.RpcError as e: request_meta["exception"] = e ...
[docs] Use better method to mock ObjectRef Actually fix
@@ -161,12 +161,25 @@ MOCK_MODULES = [ ] +def make_typing_mock(module, name): + class Object: + pass + + Object.__module__ = module + Object.__qualname__ = name + Object.__name__ = name + + return Object + + def mock_modules(): for mod_name in MOCK_MODULES: mock_module = mock.MagicMock() mock_module.__spec__ = mock.Mag...
fix(example): asyncpg==0.23.0 installs from wheels deb-packages aren't needed
FROM python:3.8.7-slim COPY requirements.txt ./ - -RUN apt-get update \ - # Can't find wheels for asyncpg for some reason :( - && apt-get install --no-install-recommends -y libpq-dev gcc \ - && pip install -r requirements.txt \ - && apt remove -y libpq-dev gcc \ - && apt -y autoremove \ - && rm -rf /var/lib/apt/lists/*...
Update correct list of default NTP hosts The host starting with 0 was missing from this documentation. After seeing it blocked, and checking the agent code, this update would correct it. * [V5 agent code](https://github.com/DataDog/dd-agent/blob/33afda662aade99500f454b33f208e8289818d7b/utils/ntp.py#L32) * [V6 agent cod...
@@ -10,6 +10,7 @@ The Network Time Protocol (NTP) integration is enabled by default and reports th Default NTP servers reached: +* `0.datadog.pool.ntp.org` * `1.datadog.pool.ntp.org` * `2.datadog.pool.ntp.org` * `3.datadog.pool.ntp.org`
import: Narrow the id-window to just the current realm. On multi-realm systems this results in traversal of all messages in all realms and returns a massive payload of 1 row per stream on the server, not the intended one row per realm.
@@ -1328,7 +1328,8 @@ def do_import_realm(import_dir: Path, subdomain: str, processes: int = 1) -> Rea bulk_import_model(data, Reaction) # Similarly, we need to recalculate the first_message_id for stream objects. - update_first_message_id_query = """ + update_first_message_id_query = SQL( + """ UPDATE zerver_stream SE...
modified: infrastructure-provisioning/src/general/lib/os/fab.py added condition to "def install_ungit", which ungit.service file will be copied to deeplearning notebook
@@ -682,6 +682,9 @@ def install_ungit(os_user, notebook_name, edge_ip): if not exists(conn, '/home/{}/.ensure_dir/ungit_ensured'.format(os_user)): try: manage_npm_pkg('npm -g install ungit@{}'.format(os.environ['notebook_ungit_version'])) + if os.environ['conf_deeplearning_cloud_ami'] =='true' and os.environ['conf_clou...
Improve add-admin tool Add description, epilog, help text, put contents into a main() function
@@ -8,21 +8,32 @@ from app.models import User app = create_app() app.app_context().push() -pass_length = 16 +PASS_LENGTH = 16 +def main(): + parser_desc = "Server-side utility to facilitate creating admins and toggling existing users to admins." + parser_epil = "Be sure that you're running this from within the virtual ...
Accounts CSV fixes Don't return the accounts dict before adding to it when a pickle isn't found, convert rows to a normal dict (instead of ordered), do a normal truth test instead of just checking for None.
@@ -333,8 +333,8 @@ def accounts_from_csv(new_accounts, pickled_accounts): del pickled_account['password'] account.update(pickled_account) else: - account['provider'] = account.get('provider') or 'ptc' - if not all(account.get(x) is not None for x in ('model', 'iOS', 'id')): + account['provider'] = account.get('provide...
tox-update: set the ansible.cfg path before update During an upgrade we're installation the platform with the stable-3.2 branch. But the ansible configuration is still using the file from the current branch which could have some differences. Instead we can override the ANSIBLE_CONFIG environment variable with the stabl...
@@ -50,13 +50,13 @@ commands= git clone -b stable-3.2 --single-branch https://github.com/ceph/ceph-ansible.git {envdir}/tmp/ceph-ansible pip install -r {envdir}/tmp/ceph-ansible/tests/requirements.txt - ansible-playbook -vv -i {changedir}/{env:INVENTORY} {envdir}/tmp/ceph-ansible/tests/functional/setup.yml + bash -c 'A...
Handle multiresult exception entries without a success field Tested-by: Build Bot
@@ -200,7 +200,8 @@ class CouchbaseError(Exception): if not key: key = nokey_prefix + ":nokey:" + str(count) count += 1 - if v.success: + success = getattr(v,'success', True) + if success: ret_ok[key] = v else: ret_fail[key] = v
Fix indentation in training_features.sql Change formatting in training_features.sql to match styleguide.
@@ -52,5 +52,10 @@ SELECT FROM Training JOIN GroupSize ON Training.company_response_to_consumer = GroupSize.company_response_to_consumer -WHERE Training.company_response_to_consumer IN ('Untimely response', 'Closed', 'Closed with monetary relief', - 'Closed with non-monetary relief', 'Closed with explanation'); +WHERE ...
Carbon tempest CI fix: let ODL create br-int To avoid this bug until it is fixed: Note that it would be better to run with devstack creating br-int because that is how most customers will be using this but until the above bug is fixed let's have a working gate.
@@ -80,7 +80,6 @@ if is_service_enabled odl-compute; then if is_service_enabled nova; then create_nova_conf_neutron fi - sudo ovs-vsctl --may-exist add-br $OVS_BR bind_opendaylight_controller wait_for_active_bridge $OVS_BR $ODL_RETRY_SLEEP_INTERVAL $ODL_BOOT_WAIT
DOC: have notes in histogram_bin_edges match parameter style bins only accepts lowercase strings, but the notes are capitalized.
@@ -555,14 +555,14 @@ def histogram_bin_edges(a, bins=10, range=None, weights=None): using the `ptp` of the data. The final bin count is obtained from ``np.round(np.ceil(range / h))``. - 'Auto' (maximum of the 'Sturges' and 'FD' estimators) + 'auto' (maximum of the 'sturges' and 'fd' estimators) A compromise to get a g...
help center: Add a detail to /help/mute-a-stream. Indicate that muted streams are sorted to the bottom of their section.
@@ -5,7 +5,8 @@ notifications, unless you are [mentioned](/help/mention-a-user-or-group). Messages from muted streams do not generate [alert word](/help/pm-mention-alert-notifications#alert-words) notifications. -Muted streams still appear in the left sidebar, though they are grayed out. +Muted streams still appear in ...
Update index.md Resolves broken link mentioned in
@@ -16,7 +16,7 @@ group](https://delphi.cmu.edu/). The Epidata API includes: other epidemics tracked by Delphi through a variety of data streams. The Delphi group is extremely grateful for Pedrito Maynard-Zhang for all his -help with the Epidata API [documentation](api/index.md). +help with the Epidata API [documentati...
Fix, was not detecting when star import value was not present. * This could happen if "__all__" value contained names that were not actually present in the module.
@@ -1396,8 +1396,7 @@ bool IMPORT_MODULE_STAR( PyObject *target, bool is_module, PyObject *module ) break; } - // TODO: Not yet clear, what happens with __all__ and "_" of its - // contents. + // When we are not using the "__all__", we should skip private variables. if ( all_case == false ) { if ( Nuitka_String_AsStrin...
[API] Fix 500 error in /storage/raw/{hash} Fixed a 500 error that occurred when providing an invalid hash to the /storage/raw/{hash} endpoint. The code was raising the wrong type of exception. Moved code around to reduce indentation.
@@ -2,7 +2,6 @@ import base64 import logging from aiohttp import web -from aiohttp.http_exceptions import HttpBadRequest from aleph.exceptions import AlephStorageException, UnknownHashError from aleph.handlers.forget import count_file_references @@ -95,12 +94,14 @@ app.router.add_get("/api/v0/storage/{hash}", get_hash)...
Change kappa doctests This adds some rounding to the kappa values calculated in the docstrings, since different values were being encountered depending on the environment. An issue has been raised to discuss this (issue
@@ -802,9 +802,9 @@ class Rotor(object): -------- >>> rotor = rotor_example() >>> # H matrix for the 0th node - >>> rotor.H_kappa(0, 0) # doctest: +ELLIPSIS - array([[1.04039379e-27, 4.55965906e-17], - [4.55965906e-17, 1.99856891e-06]]) + >>> rotor.H_kappa(0, 0).round(6) # doctest: +ELLIPSIS + array([[0.e+00, 0.e+00], ...
REF: extract as function `_copy_options_from_ts` to reuse it within the function `synthesize_many`.
@@ -1205,16 +1205,7 @@ def _spec_plus_sys( bool_states=False, bool_actions=False, statevar=statevar) - # consider sys just a formula, - # not a synthesis problem - # so overwrite settings - if hasattr(sys, 'moore'): - cp = sys - else: - cp = specs - sys_formula.moore = cp.moore - sys_formula.plus_one = cp.plus_one - sy...
test_altlinux: Remove print statement The commit introduced an unnecessary print statement in the altlinux tests.
@@ -4,7 +4,6 @@ from ceph_deploy.hosts.alt.install import map_components, NON_SPLIT_PACKAGES class TestALTMapComponents(object): def test_valid(self): pkgs = map_components(NON_SPLIT_PACKAGES, ['ceph-osd', 'ceph-common', 'ceph-radosgw']) - print(pkgs) assert 'ceph' in pkgs assert 'ceph-common' in pkgs assert 'ceph-rado...
Add comments to explain how MultiProcessTestCase works Summary: Pull Request resolved: Test Plan: Imported from OSS
@@ -155,6 +155,16 @@ def simple_sparse_reduce_tests(rank, world_size, num_inputs=1): ] +# [How does MultiProcessTestCase work?] +# Each MultiProcessTestCase instance uses 1 + `world_size()` processes, by +# default `world_size()` returns 4. Let's take `test_rpc_spawn.py` as an +# example which inherits from this class....
remove commented code in validators.py no longer setting generator_fuel_escalation_pct to escalation_pct for on-grid runs
@@ -546,11 +546,7 @@ class ValidateNestedInput: self.input_dict["Scenario"]["Site"]["LoadProfile"]["outage_end_time_step"] = 17520 else: self.input_dict["Scenario"]["Site"]["LoadProfile"]["outage_end_time_step"] = 8760 - # else: - # Sets diesel fuel escalation to the electricity escalation rate - # TODO: remove with ne...
Improve local mode transformer test Add a lock for the transformer test, similar to the serving tests as the serving container will still run on the same port. Also remove this test from the continuous testing suite.
@@ -368,8 +368,9 @@ def test_mxnet_local_data_local_script(): fcntl.lockf(local_mode_lock, fcntl.LOCK_UN) -@pytest.mark.continuous_testing def test_local_transform_mxnet(sagemaker_local_session, tmpdir): + local_mode_lock_fd = open(LOCK_PATH, 'w') + local_mode_lock = local_mode_lock_fd.fileno() data_path = os.path.join...
Added options for qtbrowser interaction Pass fig factory instead Don't clear figure returned from factorygit add callbacks/best_effort.py Kwarg only on arguments
@@ -22,15 +22,17 @@ from .fitting import PeakStats class BestEffortCallback(CallbackBase): - def __init__(self): + def __init__(self, *, fig_factory=None, table_enabled=True): # internal state self._start_doc = None self._descriptors = {} self._table = None self._heading_enabled = True - self._table_enabled = True + se...
Update __init__.py Added temp screen for claiming lnurl
@@ -53,6 +53,10 @@ def deletewallet(): return redirect(url_for("home")) +@app.route("/lnurl") +def lnurl(): + lnurl = request.args.get("lightning") + return render_template("lnurl.html", lnurl=lnurl) @app.route("/lnurlwallet") def lnurlwallet():
compose: Remove PM recipient box outline. This removes the old blue styled outline around the PM recipient box that was part of the older bootstrap styling in favor of the dark outline on :focus that had been implemented for the rest of the recipient boxes recently.
@@ -298,8 +298,7 @@ textarea.new_message_textarea { } textarea.new_message_textarea, -#subject.recipient_box, -#stream.recipient_box { +.compose_table .recipient_box { border: 1px solid hsl(0, 0%, 86%); box-shadow: none; -webkit-box-shadow: none; @@ -307,9 +306,10 @@ textarea.new_message_textarea, } textarea.new_messag...
Add missing setup_data annotation to test that uses data/ Previously this test could not be run on a pristine checkout on its own; it relied on a previous execution of a test with the setup_data annotation (in CI, parsl/tests/test_data/test_file_apps.py) to pass.
import os +import pytest import parsl from parsl.app.app import App @@ -14,6 +15,7 @@ def cat(inputs=[], outputs=[], stdout=None, stderr=None): """.format(i=infiles, o=outputs[0]) +@pytest.mark.usefixtures('setup_data') def test_files(): if os.path.exists('cat_out.txt'):