message
stringlengths
13
484
diff
stringlengths
38
4.63k
doc: Comment out "Consistent Snapshots" snippet The text above the snippet explains the basic idea of "consistent snapshots" and how to generate them with `write` and `writeall`. The commands in the snippet just leave the repo in an inconsistent state (see comment).
@@ -581,14 +581,24 @@ target file names specified in metadata do not contain digests in their names.) The repository maintainer is responsible for the duration of multiple versions of metadata and target files available on a repository. Generating consistent metadata and target files on the repository is enabled by set...
push notif: Drop irrelevant fields in `remove` payloads. These fields don't make much sense in this case; and the client doesn't look at them and never has. Stop including them.
@@ -723,7 +723,7 @@ class HandlePushNotificationTest(PushNotificationTest): with self.settings(PUSH_NOTIFICATION_BOUNCER_URL=True), \ mock.patch('zerver.lib.push_notifications' '.send_notifications_to_bouncer') as mock_send_android, \ - mock.patch('zerver.lib.push_notifications.get_common_payload', + mock.patch('zerver...
try each of the cuda imports individually it may happen that the import of DynamicSourceModule, while it will also not be used later on, theoretically in that case the script should not fail
@@ -8,9 +8,15 @@ import numpy #and run tests without pycuda installed try: import pycuda.driver as drv - from pycuda.compiler import SourceModule, DynamicSourceModule except ImportError: drv = None +try: + from pycuda.compiler import SourceModule +except ImportError: + SourceModule = None +try: + from pycuda.compiler i...
Fixed version generation string for deb package. Previously it failed when trying to build a release version.
@@ -6,7 +6,14 @@ set -e mkdir -p /tmp/syncplay/DEBIAN echo "Package: syncplay -Version: "$(sed -n -e "s/^.*version = //p" syncplay/__init__.py | sed "s/'//g")""$(git describe --exact-match --tags HEAD &>/dev/null && echo -git-$(date -u +%y%m%d%H%M))" +Version: "$( + sed -n -e "s/^.*version = //p" syncplay/__init__.py |...
Fix warnings if started without X gbulb.install(gtk=True) will import `gi.repository.Gtk`, leading to warnings if X is not available - which is detrimental for its use as command line tool in ssh/tty environments.
@@ -123,7 +123,7 @@ class _EntryPoint: def __init__(self, argv=None): """Parse command line options, read config and initialize members.""" - gbulb.install(gtk=True) + gbulb.install(gtk=_in_X and _has_Gtk) # parse program options (retrieve log level and config file name): args = docopt(self.usage, version='udiskie ' + ...
Removed unnecessary console.logs Removed unnecessary console.logs
@@ -110,7 +110,6 @@ export class ReportingGridComponent implements OnInit, AfterViewInit { refreshData(fullReport, report) { this.reportData = [...report]; this.fullReport = fullReport; - console.log(fullReport); this.checkFilters(); } @@ -188,7 +187,6 @@ export class ReportingGridComponent implements OnInit, AfterView...
portico: Add headings to /for/communities. Add headings to break up the page. Remove badly worded reference to /why-zulip. Add buttons similar to other /for pages at top and bottom.
{% include 'zerver/landing_nav.html' %} -<div class="portico-landing why-page"> - <div class="hero"> +<div class="portico-landing why-page solutions-page"> + <div class="hero bg-education"> + <div class="bg-dimmer"></div> <h1 class="center">Zulip for communities</h1> <p>Open-source projects, research collaborations, vo...
Replace direct use of int32_t with an alias DeviceIndex Summary: Pull Request resolved: It just makes the semantic meaning of the int32_t a little bit clearer.
namespace c10 { +/// An index representing a specific device; e.g., the 1 in GPU 1. +/// A DeviceIndex is not independently meaningful without knowing +/// the DeviceType it is associated; try to use Device rather than +/// DeviceIndex directly. +using DeviceIndex = int32_t; + /// Represents a a compute device on which...
[IMPR] use subTest for TestTranslate.test_localized Also follow PEP 8 naming convention for this test class
@@ -35,19 +35,15 @@ class TestTranslate(TestCase): self.msg_no_english = {'ja': 'test-no-english JA'} super(TestTranslate, self).setUp() - def testLocalized(self): + def test_localized(self): """Test fully localized translations.""" - self.assertEqual(i18n.translate('en', self.msg_localized, - fallback=True), - 'test-l...
Use page objects for the 'Validate Contact' keyword Also added documentation for the keyword, to be a good robot citizen
@@ -41,9 +41,15 @@ Via UI Validate Contact [Arguments] ${contact_id} ${first_name} ${last_name} + [Documentation] + ... Given a contact id, validate that the contact has the + ... expected first and last name both through the detail page in + ... the UI and via the API. + # Validate via UI - Go To Record Home ${contact...
Updated the Microsoft Graph API README * Updated the Microsoft Graph API README Added the authorization process commands - msgraph-api-auth-start, msgraph-api-auth-complete, msgraph-api-test * Update Packs/MicrosoftGraphAPI/Integrations/MicrosoftGraphAPI/README.md
@@ -65,6 +65,20 @@ The integration supports only Application permission type, and does not support ## Commands You can execute the command from the Cortex XSOAR CLI, as part of an automation, or in a playbook. After you successfully execute a command, a DBot message appears in the War Room with the command details. + +...
Add explicit type annotation in adhoc example config Without this type annotation, mypy will incorrectly infer a type that is too tight for user_options - either that it contains strings or sequences of strings (but not both).
@@ -2,7 +2,9 @@ from parsl.providers import AdHocProvider from parsl.channels import SSHChannel from parsl.executors import HighThroughputExecutor from parsl.config import Config +from typing import Any, Dict +user_opts: Dict[str, Dict[str, Any]] user_opts = {'adhoc': {'username': 'YOUR_USERNAME', 'script_dir': 'YOUR_S...
Update census.ipynb Fixed incorrect getting started link in census.ipynb
"# Preprocessing data with TensorFlow Transform\n", "***The Feature Engineering Component of TensorFlow Extended (TFX)***\n", "\n", - "This example colab notebook provides a somewhat more advanced example of how \u003ca target='_blank' href='https://www.tensorflow.org/tfx/transform/'\u003eTensorFlow Transform\u003c/a\u...
issue 2.8 PlayContext.connection no longer contains connection name Not clear what the intention is here. Either need to ferret it out of some other location, or just stop preloading the connection class in the top-level process.
@@ -40,6 +40,12 @@ import ansible_mitogen.process import ansible import ansible.executor.process.worker +try: + # 2.8+ has a standardized "unset" object. + from ansible.utils.sentinel import Sentinel +except ImportError: + Sentinel = None + ANSIBLE_VERSION_MIN = '2.3' ANSIBLE_VERSION_MAX = '2.8' @@ -261,14 +267,17 @@ c...
Update the query to only return the count from the table since that is all we care about.
@@ -398,14 +398,14 @@ def insert_notification_history_delete_notifications( select_to_use = select_into_temp_table_for_letters if notification_type == 'letter' else select_into_temp_table db.session.execute(select_to_use, input_params) - result = db.session.execute("select * from NOTIFICATION_ARCHIVE") + result = db.se...
Accept 204 responses from v0 metrics API The v0 metrics API is returning 204s for some requests to /node. This will be fixed later.
@@ -81,6 +81,10 @@ def test_metrics_node(dcos_api_session): for agent in dcos_api_session.slaves: response = dcos_api_session.metrics.get('/node', node=agent) + # If the response is empty, accept it and continue. To be fixed later. + if response.status_code == 204: + continue + assert response.status_code == 200, 'Stat...
fix: when stashing the singleton to sys.modules, use an actual module object. At least this won't trip anyone iterating through sys.modules and expects the values are actual modules.
@@ -12,6 +12,7 @@ import os import pprint import reprlib import sys +import types import _thread from coverage.misc import isolate_module @@ -282,6 +283,7 @@ class DebugOutputFile: # pragma: debugging self.write(f"New process: pid: {os.getpid()!r}, parent pid: {os.getppid()!r}\n") SYS_MOD_NAME = '$coverage.debug.DebugO...
Update to import for ProxyFix due to deprecation Reference: Deprecated since version 0.15: ProxyFix has moved to werkzeug.middleware.proxy_fix. All other code in this module is deprecated and will be removed in version 1.0.
@@ -5,7 +5,7 @@ import logging import traceback from flask import Flask, jsonify, session -from werkzeug.contrib.fixers import ProxyFix +from werkzeug.middleware.proxy_fix import ProxyFix # these have to come first to avoid circular import issues from api.common import check, PicoException, validate # noqa
Fix catastrophic backtracking issue in header parsing regular expression. The affected pattern is only used from a single non-public function, which in turn is not actually used anywhere. It's in dead code. No security issue.
@@ -3017,7 +3017,7 @@ def parse_range_header(header, maxlen=0): #: Header tokenizer used by _parse_http_header() -_hsplit = re.compile('(?:(?:"((?:[^"\\\\]+|\\\\.)*)")|([^;,=]+))([;,=]?)').findall +_hsplit = re.compile('(?:(?:"((?:[^"\\\\]|\\\\.)*)")|([^;,=]+))([;,=]?)').findall def _parse_http_header(h): """ Parses a ...
Fix typo in `Washington DC.md` There was an extra `#` in the header for the last entry in the file, which caused it to show up in the JSON with no title.
@@ -69,7 +69,7 @@ A DC resident discusses being accosted by officers when trying to enter his home * https://twitter.com/suckmyunicornD/status/1267767217392934917 * https://dcist.com/story/20/06/02/dupont-dc-home-protest-rahul-dubey/ -#### Police charge peaceful crowd, beat them with shields | +### Police charge peacef...
[ci/hotfix] Fix race condition in pytest reporting The AWS test seems to try to create the directory multiple times.
@@ -709,7 +709,7 @@ def append_short_test_summary(rep): return if not os.path.exists(summary_dir): - os.makedirs(summary_dir) + os.makedirs(summary_dir, exist_ok=True) test_name = rep.nodeid.replace(os.sep, "::") @@ -720,10 +720,6 @@ def append_short_test_summary(rep): # The test succeeded after failing, thus it is fla...
Randomize parallel test run order. Oversubscribe test load by 1.
@@ -253,7 +253,7 @@ def expand_tests(requested_test_classes, excluded_test_classes, total_tests = 0 sanity_tests = unittest.TestSuite() single_tests = unittest.TestSuite() - parallel_tests = unittest.TestSuite() + parallel_test_suites = [] for name, obj in inspect.getmembers(sys.modules[__name__]): if not inspect.iscla...
Pull out the bitfield validation functions into their own routine Mainly so we can monkeypatch them during testing
@@ -285,6 +285,32 @@ def validate_attestation_shard_block_root(attestation_data: AttestationData) -> ) +def _validate_custody_bitfield(attestation: Attestation) -> None: + # NOTE: to be removed in phase 1. + empty_custody_bitfield = b'\x00' * len(attestation.custody_bitfield) + if attestation.custody_bitfield != empty_...
Quote --storage-dir value Command will fail if the directory contains whitespace
@@ -27,7 +27,7 @@ class TargetAndroidNew(TargetAndroid): 'app', 'p4a.bootstrap', 'sdl2') self.p4a_apk_cmd += self._p4a_bootstrap color = 'always' if USE_COLOR else 'never' - self.extra_p4a_args = ' --color={} --storage-dir={}'.format( + self.extra_p4a_args = ' --color={} --storage-dir="{}"'.format( color, self._build_d...
Admin Router: Force Nginx to honour loggin setting during `init_by_lua` stage More details here:
@@ -4,6 +4,10 @@ include common/main.conf; http { resolver 198.51.100.1:53 198.51.100.2:53 198.51.100.3:53 valid=60s; + # Check + # https://github.com/openresty/lua-nginx-module/issues/467#issuecomment-305529857 + lua_shared_dict tmp 12k; + client_max_body_size 1024M; # Name: DC/OS Diagnostics (3DT)
(doc) add update tz add time zone for windows & update to 2 sections
@@ -288,14 +288,31 @@ Weight/Request error in logs happens when it encountered a warning or error and ### How do I resize my Hummingbot window without jumbling the text? When resizing the window of your Hummingbot, text becomes unclear or at the same location as the previous size of the window. To do a refresh to the n...
add: removed set_defaults from scheduler's maintainer tasks. Maybe implement later but did not work now.
@@ -82,11 +82,6 @@ class Scheduler: set_statement_defaults(self.shut_condition, scheduler=self) - for maintain_task in self.maintain_tasks: - #maintain_task.start_cond = set_statement_defaults(maintain_task.start_cond, scheduler=self) - maintain_task.set_logger() # Resetting the logger as group changed - maintain_task....
Update HAS_NETWORKX documentation Since this documentation has been out-of-date. This updates it to give the correct information.
@@ -93,10 +93,11 @@ External Python Libraries be installed in order to use them. * - .. py:data:: HAS_NETWORKX - - Internally, Qiskit uses the high-performance `retworkx - <https://github.com/Qiskit/retworkx>`__ library as a core dependency, but sometimes it can - be convenient to convert things into the Python-only `N...
Apply suggestions from code review excellent stuff, thanks.
@@ -362,18 +362,18 @@ JWT Authentication authentication_handlers = {chttpd_auth, cookie_authentication_handler}, {chttpd_auth, jwt_authentication_handler}, {chttpd_auth, default_authentication_handler} `JWT authentication` enables CouchDB to use externally generated JWT tokens -instead of defining users or roles in the...
Update harvester_api.py remove unnessuary time.time()
@@ -200,13 +200,13 @@ class HarvesterAPI: time_taken = time.time() - start if time_taken > 5: self.harvester.log.warning( - f"Looking up qualities on {filename} took: {time.time() - start}. This should be below 5 seconds " + f"Looking up qualities on {filename} took: {time_taken}. This should be below 5 seconds " f"to ...
Theme: Fix float-value rule completions Completions of "Rule Keys" with floating point values used to suggest sequence values. Before: "font.size": [11.0] After: "font.size": 11.0
{ "trigger": "accent_tint_modifier\tproperty", "contents": "\"accent_tint_modifier\": [${0:0}]," }, // floats - { "trigger": "line_selection_border_radius\tproperty", "contents": "\"line_selection_border_radius\": [${0:0.0}]," }, - { "trigger": "line_selection_border_width\tproperty", "contents": "\"line_selection_bord...
Remove alternative names of name attributes since they make signing policies less reliable.
@@ -144,18 +144,6 @@ NAME_OID = OrderedDict( ] ) -NAME_ALT = { - "CN": ["commonName"], - "L": ["localityName"], - "ST": ["SP", "stateOrProvinceName"], - "O": ["organizationName"], - "OU": ["organizationUnitName"], - "GN": ["givenName"], - "SN": ["surname"], - "MAIL": ["Email", "emailAddress"], - "SERIALNUMBER": ["seria...
pin development dependencies * Using `pip freeze`, pin the currently installed version of unpinned development dependencies. This includes: - ipdb - ipython - pyflakes - python-coveralls - redis * Update aiohttpretty to pull from COS's `develop` branch.
-r requirements.txt -git+https://github.com/cslzchen/aiohttpretty.git@feature/aiohttp3 +git+https://github.com/CenterForOpenScience/aiohttpretty.git@develop colorlog==2.5.0 flake8==3.0.4 -ipdb -ipython +ipdb==0.12.2 +ipython==7.8.0 mypy==0.580 pydevd==0.0.6 -pyflakes +pyflakes==2.1.1 pytest==2.8.2 pytest-asyncio==0.3.0...
Track TP process response types Adds a counter that tracks each TP process response with a tag for the message type.
@@ -78,11 +78,20 @@ class TransactionExecutorThread(object): self._invalid_observers = invalid_observers self._open_futures = {} + self._tp_process_response_counters = {} self._transaction_execution_count = COLLECTOR.counter( 'transaction_execution_count', instance=self) self._in_process_transactions_count = COLLECTOR....
Handle RemoteDisconnected in is_local check. Fixes
"""Common utilities.""" import hashlib +import http.client import os import urllib.request import urllib.error @@ -50,6 +51,8 @@ def is_local(): _is_local = False except urllib.error.URLError: _is_local = True + except http.client.RemoteDisconnected: + _is_local = True return _is_local
Update application.yaml change model
@@ -142,7 +142,7 @@ cls_inference: ################### text task: punc; engine_type: python ####################### text_python: task: punc - model_type: 'ernie_linear_p3_wudao' + model_type: 'ernie_linear_p3_wudao_fast' lang: 'zh' sample_rate: 16000 cfg_path: # [optional]
Update generic.txt All are ```luxnetrat``` instead:
@@ -10890,17 +10890,6 @@ sttsts.ru linkedliqht.com -# Reference: https://app.any.run/tasks/3f711d7e-b3b0-4bea-94ce-356db8aeb293/ - -191.205.215.182:2334 -regedxasd.duckdns.org - -# Reference: https://app.any.run/tasks/96757b09-76f2-4e92-9bf0-21b5a3bc49c5/ -# Reference: https://www.virustotal.com/gui/file/1717f043b5ea0d...
Add C standard specification to flags Add C standard specification "-std=c99" to Intel flags (without this ndarrays.c does not compile with icc).
@@ -61,6 +61,9 @@ def construct_flags(compiler, if debug: flags.append("-fcheck=bounds") + if compiler == "icc": + flags.append("-std=c99") + if compiler == "mpif90": if debug: flags.append("-fcheck=bounds")
[air] Use custom fsspec handler for GS `gcsfs` complains about an invalid `create_parents` argument when using google cloud storage with cloud checkpoints. Thus we should use an alternative fs spec handler that omits this argument for gs. The root issue will be fixed here:
@@ -3,14 +3,30 @@ from typing import Optional, Tuple try: import fsspec + except ImportError: fsspec = None try: import pyarrow import pyarrow.fs + + # Todo(krfricke): Remove this once gcsfs > 2022.3.0 is released + # (and make sure to pin) + class _CustomGCSHandler(pyarrow.fs.FSSpecHandler): + """Custom FSSpecHandler ...
Call SubResource correctly in list comprehension Call SubResource(id=x) instead of SubResource(x) in list comprehension since the latter introduced a type error and prevented az network lb outbound-rule update from being used with the --frontend-ip-configs flag This fixes
@@ -1984,7 +1984,7 @@ def set_lb_outbound_rule(instance, cmd, parent, item_name, protocol=None, outbou _set_param(instance, 'backend_address_pool', SubResource(id=backend_address_pool) if backend_address_pool else None) _set_param(instance, 'frontend_ip_configurations', - [SubResource(x) for x in frontend_ip_configurat...
don't build linux/arm/v7 (32bit) docker image Alpine Linux does not correct Rust version to build cryptography and wheels are not available for 32bit.
@@ -113,7 +113,7 @@ jobs: org.opencontainers.image.title=Maestral org.opencontainers.image.url=${{ github.event.repository.html_url }} org.opencontainers.image.version=${{ steps.prep.outputs.version }} - platforms: linux/amd64,linux/arm64,linux/arm/v7 + platforms: linux/amd64,linux/arm64 push: true tags: ${{ steps.prep...
i18n: Translate the whole text in stream deactivation modal. This commit fixes the template of stream deactivation modal to tag all the text for translation. This commit also removes the unnecessary span element.
-Archiving stream <strong>{{stream_name}}</strong> <span>will immediately unsubscribe everyone. This action cannot be undone.</span> +{{#tr}} + Archiving stream <z-stream></z-stream> will immediately unsubscribe everyone. This action cannot be undone. + {{#*inline "z-stream"}}<strong>{{stream_name}}</strong>{{/inline}}...
Update create_instances.py more lint fix
@@ -33,7 +33,7 @@ def create_instance(ami_name): instance_id = instance_file.read() with open('image_id.txt', 'r') as image_id_file: image_data = image_id_file.read() - print('Image data is {}.format(image_data)) + print('Image data is {}'.format(image_data)) with open("./Tests/images_data.txt", "a") as image_data_file...
Free tag: link #how-to-get-help This creates a clickable link in the response embed. Referencing the category is no longer necessary.
**We have a new help channel system!** -We recently moved to a new help channel system. You can now use any channel in the **<#691405807388196926>** category to ask your question. +Please see <#704250143020417084> for further information. -For more information, check out [our website](https://pythondiscord.com/pages/re...
Added function "view_database_tables" to download_dataport.py It will allow the user to see available tables in the dataport database.
@@ -129,6 +129,37 @@ def database_assert(database_table): or database_table == 'electricity_egauge_seconds' ), "Table not compatible with NILMTK" +def view_database_tables(database_username, database_password, + database_schema): + + + database_host = 'dataport.pecanstreet.org' + database_port = '5434' + database_name ...
Grammar.add_rule: don't abort when unable to find the loc of kwarg TN:
@@ -237,7 +237,7 @@ class Grammar(object): rule.set_name(names.Name.from_lower(name)) rule.set_grammar(self) - if loc: + if loc and name in keywords: rule.set_location(Location(loc.file, keywords[name].lineno)) rule.is_root = True
Run sudo apt-get update before installing a package As documented [here](https://docs.github.com/en/actions/using-github-hosted-runners/customizing-github-hosted-runners#installing-software-on-ubuntu-runners) and also discussed [here](https://github.com/actions/virtual-environments/issues/1757)
@@ -60,7 +60,9 @@ jobs: components: rustfmt - name: Install xmllint - run: sudo apt-get install libxml2-utils + run: | + sudo apt-get update + sudo apt-get install libxml2-utils - name: Create working crate run: make crates
[core/output] Re-enable basic pango support Re-enable pango as simple "pango" dict wherever a normal value (e.g. prefix, suffix) can go.
@@ -23,7 +23,7 @@ class block(object): __COMMON_THEME_FIELDS = [ 'separator', 'separator-block-width', 'default-separators', 'border-top', 'border-left', 'border-right', 'border-bottom', - 'pango', 'fg', 'bg', 'padding', 'prefix', 'suffix' + 'fg', 'bg', 'padding', 'prefix', 'suffix' ] def __init__(self, theme, module, ...
Improved German translation of the README file. Fixed comment at the beginning of the file.
<!-- -*** Official Duino Coin README -*** by revoxhere, 2019-2022 +*** Translated Duino Coin README (de_DE) +*** by revoxhere and Techcrafter, 2019-2022 --> <a href="https://duinocoin.com">
Fix pylint E1128 for backend.py E1128: Assigning to function call which only returns None (assignment-from-none) References: PyCQA/pylint#2332
import time from functools import cmp_to_key +from abc import ABCMeta, abstractmethod # Copyright 2007,, Frank Scholz <coherence@beebits.net> from lxml import etree @@ -77,6 +78,7 @@ class Backend(log.LogAble, Plugin): class BackendStore(Backend): """ the base class for all MediaServer backend stores """ + __metaclass_...
Added info about future fate of DB models docs DB models docs will probably be moved to docstrings in every described model.
@@ -4,7 +4,8 @@ This document includes details on implementation of AMY internals. Table of contents: -1. [Database models](./database_models.md) +1. [Database models](./database_models.md) (to be moved to + docstrings in `workshops/models.py`) 2. Templates hierarchy 3. Views hierarchy 4. [Server infrastructure](./serv...
Move tokeninfo call to user_data method This allows users who implement custom endpoints that call do_auth directly to work
@@ -136,19 +136,20 @@ class GooglePlusAuth(BaseGoogleOAuth2API, BaseOAuth2): *args, **kwargs) elif 'id_token' in self.data: # Client-side workflow token = self.data.get('id_token') + return self.do_auth(token, *args, **kwargs) + else: + raise AuthMissingParameter(self, 'access_token, id_token, or code') + + def user_da...
api_docs: Add "Narrow" common component. To facilitate re-use of the same parameters in other paths, this commit store the content of the parameter "narrow" in components.
@@ -2554,21 +2554,7 @@ paths: items: type: string example: ['message'] - - name: narrow - in: query - description: | - A JSON-encoded array of length 2 indicating the narrow for which you'd - like to receive events. For instance, to receive events for the stream - `Denmark`, you would specify `narrow=['stream', 'Denmar...
Fix import path Normalize the path to `_torchtext.so` so that it is correctly found when imported from other directories.
@@ -14,9 +14,23 @@ __all__ = ['data', def _init_extension(): + import os + import importlib import torch - torch.ops.load_library('torchtext/_torchtext.so') - torch.classes.load_library('torchtext/_torchtext.so') + + # load the custom_op_library and register the custom ops + lib_dir = os.path.dirname(__file__) + loader...
CMake : Build config tweaks disable warnings as errors disable strict overflow disable deprecated warning
@@ -49,12 +49,12 @@ endif() IF ( "${CMAKE_BUILD_TYPE}" MATCHES "Debug" ) ADD_DEFINITIONS( -DDEBUG=1 -UNDEBUG ) IF ( NOT WINDOWS ) - ADD_DEFINITIONS( -pipe -Wall -O0 -Wno-unused-local-typedefs -Wno-strict-aliasing -Wno-maybe-uninitialized) + ADD_DEFINITIONS( -pipe -Wall -O0 -Wno-unused-local-typedefs -Wno-strict-aliasin...
Update avcodecs.py add hardware based scale filters for nvenc and qsv
@@ -795,15 +795,7 @@ class NVEncH264(H264Codec): """ codec_name = 'h264_nvenc' ffmpeg_codec_name = 'h264_nvenc' - scale_filter = 'npp_scale' - - def _codec_specific_parse_options(self, safe, stream=0): - # NVENC doesn't support scaling - if 'width' in safe: - del(safe['width']) - if 'height' in safe: - del(safe['height...
Fix a pasto in untyped wrappers code generation TN:
-- Untyped wrappers for ${cls.name()} -- - % for prop in props: + % for prop in untyped_wrappers: ${prop.untyped_wrapper_decl} % endfor % endif
ENH: added Table.to_markdown(), direct method for generating markdown str Note: actually added method accidentally a couple of commits earlier, this patch contains the tests.
@@ -1048,7 +1048,8 @@ class TableTests(TestCase): """Exercising the table markdown method""" from cogent3.format.table import markdown - markdown_table = markdown(self.t6_header, self.t6_rows, justify="crl") + table = make_table(self.t6_header, self.t6_rows, format="md") + markdown_table = table.to_markdown(justify="cr...
Add doc for custom lifetime of java actor Custom lifetime of java Actor is already supported, but the related document is not updated
@@ -155,10 +155,9 @@ created with the specified arguments. Actor Lifetimes --------------- -.. tabbed:: Python +Separately, actor lifetimes can be decoupled from the job, allowing an actor to persist even after the driver process of the job exits. - Separately, actor lifetimes can be decoupled from the job, allowing an...
bug: filter out display types without file output don't process renderman display type that are not producing any file output (like `d_it`)
@@ -1093,6 +1093,11 @@ class RenderProductsRenderman(ARenderProducts): if not enabled: continue + # Skip display types not producing any file output. + # Is there a better way to do it? + if not display_types.get(display["driverNode"]["type"]): + continue + aov_name = name if aov_name == "rmanDefaultDisplay": aov_name ...
History: request_cancel_execution_initiated is not a task TODO: check what we put in self._tasks...
@@ -492,7 +492,6 @@ class History(object): } if event.workflow_id not in self._external_workflows_canceling: self._external_workflows_canceling[event.workflow_id] = workflow - self._tasks.append(workflow) else: logger.warning("request_cancel_initiated again for workflow {} (initiated @{}, we're @{})".format( event.work...
Update config.py Flask cares about casing, and that one lowercase letter could have ruined everything. Or it could have been harmless, no idea, but best not to find out.
@@ -67,7 +67,7 @@ class Config(object): MAIL_SERVER = os.environ.get("MAIL_SERVER", None) MAIL_PORT = int(os.environ.get("MAIL_PORT", 587)) MAIL_USE_TLS = casted_bool(os.environ.get("MAIL_USE_TLS", True)) - MAIL_USE_SSl = casted_bool(os.environ.get("MAIL_USE_SSL", False)) + MAIL_USE_SSL = casted_bool(os.environ.get("MA...
Make Battery notification timeout configurable Users may want a different timeout other than the default 10 seconds. Closes
@@ -330,6 +330,7 @@ class Battery(base.ThreadPoolText): ("update_interval", 60, "Seconds between status updates"), ("battery", 0, "Which battery should be monitored (battery number or name)"), ("notify_below", None, "Send a notification below this battery level."), + ("notification_timeout", 10, "Time in seconds to dis...
Skipped Forescout instead of Forescout-Test Added issue number to Athena Removed Joe Security from skipped (quota supposed to be renewed)
"TestUptycs": "Issue 19750", "InfoArmorVigilanteATITest": "Test issue 17358", "calculate_severity_-_critical_assets_-_test": "Issue 17924", - "Forescout-Test": "issue 17016", "Lastline - testplaybook": "Checking the integration via Generic detonation playbooks, don't want to load the daily quota", "entity_enrichment_ge...
remove block_email_domains_from_hubspot from accounting forms Note: removing the field on the BillingAccount model in a followup PR
@@ -160,13 +160,6 @@ class BillingAccountBasicForm(forms.Form): help_text="Users in any projects connected to this account will not " "have data sent to Hubspot", ) - block_email_domains_from_hubspot = forms.CharField( - label="Block Email Domains From Hubspot Data", - required=False, - help_text="(ex: dimagi.com, comm...
[MetaSchedule] Allow Easy Logging Level Setting This PR allowed users to set logging level without giving a logger config. Previous implementation hard-coded `logging.INFO` as the default logging level and requires a logger config to change it. Now the logging level and handlers can be inherited from the current `tvm.m...
@@ -433,16 +433,23 @@ class TuneConfig(NamedTuple): else: config = self.logger_config - global_logger_name = "tvm.meta_schedule" config.setdefault("loggers", {}) config.setdefault("handlers", {}) config.setdefault("formatters", {}) + global_logger_name = "tvm.meta_schedule" + global_logger = logging.getLogger(global_lo...
[mtiLib] Be more lenient in script block parsing Fixes
@@ -103,6 +103,8 @@ def parseScriptList(lines, featureMap=None): records = [] with lines.between('script table'): for line in lines: + while len(line) < 4: + line.append('') scriptTag, langSysTag, defaultFeature, features = line log.debug("Adding script %s language-system %s", scriptTag, langSysTag)
Add description to policies in cells.py blueprint policy-docs
@@ -26,21 +26,72 @@ cells_policies = [ policy.RuleDefault( name=POLICY_ROOT % 'discoverable', check_str=base.RULE_ANY), - policy.RuleDefault( - name=POLICY_ROOT % 'update', - check_str=base.RULE_ADMIN_API), - policy.RuleDefault( - name=POLICY_ROOT % 'create', - check_str=base.RULE_ADMIN_API), - policy.RuleDefault( - na...
Use Scala 2.12.4 for --scala-platform-version=2.12 ### Problem The default scala build toolchain is out-of-date and insecure(!). See for details. ### Solution Bumped version numbers.
@@ -25,7 +25,7 @@ major_version_info = namedtuple('major_version_info', ['full_version']) scala_build_info = { '2.10': major_version_info(full_version='2.10.6'), '2.11': major_version_info(full_version='2.11.11'), - '2.12': major_version_info(full_version='2.12.2'), + '2.12': major_version_info(full_version='2.12.4'), ...
Drop 921100 for now * Remove Content-Length from this rule It is already handled by 920160. * Remove Transfer-Encoding It's possible to have multiple values as per rfc 7230, section 4.
@@ -19,42 +19,6 @@ SecRule TX:EXECUTING_PARANOIA_LEVEL "@lt 1" "id:921012,phase:2,pass,nolog,skipAf # -= Paranoia Level 1 (default) =- (apply only when tx.executing_paranoia_level is sufficiently high: 1 or higher) # -# -# -=[ HTTP Request Smuggling ]=- -# -# [ Rule Logic ] -# This rule looks for a comma character in e...
add GSFont.fontView TODO: add docu for GSFontViewController
@@ -2263,6 +2263,7 @@ Properties masterIndex currentText tabs + fontView currentTab filepath tool @@ -2626,6 +2627,13 @@ GSFont.tabs = property(lambda self: FontTabsProxy(self)) :type: list''' +GSFont.fontView = property(lambda self: self.parent.windowController().tabBarControl().tabItemAtIndex_(0)) + + +'''.. attribut...
add back _stdvs_sq buffer to Standardize transform Summary: Pull Request resolved: see title.
@@ -175,6 +175,7 @@ class Standardize(OutcomeTransform): super().__init__() self.register_buffer("means", torch.zeros(*batch_shape, 1, m)) self.register_buffer("stdvs", torch.zeros(*batch_shape, 1, m)) + self.register_buffer("_stdvs_sq", torch.zeros(*batch_shape, 1, m)) self._outputs = normalize_indices(outputs, d=m) s...
Fix bug in pluginsystem typo in untested feature
@@ -94,7 +94,7 @@ class Plugin(object): return cfg def emit(self, event, **kwargs): - return self.env.pluginsystem.emit(self.id + "-" + event, **kwargs) + return self.env.plugin_controller.emit(self.id + "-" + event, **kwargs) def to_json(self): return {
Do not fix the configured requested_attributes This is always done on use, ie, on client_base.py::create_authn_request
@@ -509,50 +509,6 @@ class SPConfig(Config): return None - def load(self, cnf, metadata_construction=False): - super().load(cnf, metadata_construction=False) - self.fix_requested_attributes() - return self - - def fix_requested_attributes(self): - """Add friendly_name or name if missing to the requested attributes""" -...
Remove unnecessary whitespace removal in Helm templating Summary: As the title. Test Plan: integration Reviewers: max
@@ -37,7 +37,7 @@ spec: initContainers: - name: check-db-ready image: {{ include "image.name" .Values.postgresql.image | quote }} - imagePullPolicy: {{- .Values.postgresql.image.pullPolicy -}} + imagePullPolicy: {{ .Values.postgresql.image.pullPolicy }} command: ['sh', '-c', 'until pg_isready -h {{ include "dagster.pos...
Improve undocumented TarFile method type hints Add type hints for undocumented tarfile.TarFile file methods called via _extract_member() when extract() is called.
@@ -144,6 +144,18 @@ class TarFile(Iterable[TarInfo]): path: _Path = ...) -> None: ... def extractfile(self, member: Union[str, TarInfo]) -> Optional[IO[bytes]]: ... + def makedir(self, tarinfo: TarInfo, targetpath: _Path) -> None: ... # undocumented + def makefile(self, tarinfo: TarInfo, targetpath: _Path) -> None: .....
Update uTorrentPostProcess.py use param 5 for filename (not sure if this ever worked) debug cleanup
@@ -55,7 +55,7 @@ settings = ReadSettings() path = str(sys.argv[3]) label = sys.argv[1].lower().strip() kind = sys.argv[4].lower().strip() -filename = sys.argv[6].strip() +filename = sys.argv[5].strip() categories = [settings.uTorrent['cp'], settings.uTorrent['sb'], settings.uTorrent['sonarr'], settings.uTorrent['radar...
Use re.escape to escape paths, before handing them to re.match Addresses
@@ -4005,7 +4005,7 @@ def extract_hash(hash_fn, hash_matched = True except IndexError: pass - elif re.match(source_hash_name.replace('.', r'\.') + r'\s+', + elif re.match(re.escape(file_name) + r'\s+', line): _add_to_matches(found, line, 'source_hash_name', source_hash_name, matched) @@ -4023,7 +4023,7 @@ def extract_h...
Add test to make sure `toil clean` actually works Before, the google job Store wasn't deleted when invoked this way. This test should fail, and a fix will follow in the next commit.
@@ -30,6 +30,7 @@ from six.moves import xrange from toil import resolveEntryPoint from toil.batchSystems.parasolTestSupport import ParasolTestSupport +from toil.common import Toil from toil.job import Job, JobException from toil.lib.bioio import getLogLevelString from toil.batchSystems.mesos.test import MesosTestSuppor...
ENH: moved mapping routine to utilities Moved the dict/function mapping routine from inside Meta.rename to utils.
@@ -235,6 +235,35 @@ def load_netcdf4(fnames=None, strict_meta=False, file_format='NETCDF4', return data, meta +def get_mapped_value(value, mapper): + """Adjust value using mapping dict or function. + + Parameters + ---------- + value : str + MetaData variable name to be adjusted + mapper : dict or function + Dictionar...
Update treeprettyprinter.py Issue solved i.e preety_print for tuples
@@ -93,6 +93,8 @@ class TreePrettyPrinter(object): for n, b in enumerate(a): if not isinstance(b, Tree): a[n] = len(sentence) + if type(b) == tuple: + b = '/'.join(b) sentence.append('%s' % b) self.nodes, self.coords, self.edges, self.highlight = self.nodecoords( tree, sentence, highlight)
Improves Voice Chat Matching Changes the way voice channels are matched with chat channels, to make it less hardcoded.
@@ -33,6 +33,13 @@ MSG_UNSILENCE_SUCCESS = f"{constants.Emojis.check_mark} unsilenced current chann TextOrVoiceChannel = Union[TextChannel, VoiceChannel] +VOICE_CHANNELS = { + constants.Channels.code_help_voice_1: constants.Channels.code_help_chat_1, + constants.Channels.code_help_voice_2: constants.Channels.code_help_...
Port dimod.bqm.common type definitions for cyDQM In the future we should unify them with the ones in cyutilities
@@ -21,7 +21,6 @@ from libcpp.vector cimport vector cimport numpy as np from dimod.libcpp cimport cppBinaryQuadraticModel -from dimod.bqm.common cimport Integral32plus, Numeric, Numeric32plus ctypedef np.float64_t bias_type ctypedef np.int32_t index_type @@ -32,6 +31,28 @@ ctypedef fused Unsigned: np.uint32_t np.uint64...
Update README.md Added a step before git lfs commands
@@ -32,6 +32,7 @@ cd ~/catkin_ws/src sudo apt-get install python-catkin-tools # If you don't have the package installed yet. catkin_init_workspace git clone --recurse-submodules https://github.com/utra-robosoccer/soccer_ws # To clone the repository +cd soccer_ws # To get into the local repository and perform git lfs co...
llvm, composition: Rename __get_mech_index -> __get_node_index It will be used for nested compositions aas well.
@@ -2873,13 +2873,13 @@ class Composition(Composition_Base): data.append(nested_data) return pnlvm._tupleize(data) - def __get_mech_index(self, mechanism): - if mechanism is self.input_CIM: + def __get_node_index(self, node): + if node is self.input_CIM: return len(self.c_nodes) - elif mechanism is self.output_CIM: + e...
Fix devstack: replace deprecated screen functions Since [1], systemd is the default process init. Therefore, CK devstack plugin still uses screen_it function instead of generic run_process function. This leads to strange behavior of the plugin. This patch fixes this problem. [1] Story: Task: 4634
@@ -194,10 +194,10 @@ function install_cloudkitty { # start_cloudkitty() - Start running processes, including screen function start_cloudkitty { - screen_it ck-proc "cd $CLOUDKITTY_DIR; $CLOUDKITTY_BIN_DIR/cloudkitty-processor --config-file=$CLOUDKITTY_CONF" - screen_it ck-api "cd $CLOUDKITTY_DIR; $CLOUDKITTY_BIN_DIR/c...
Update pce.rst import leave-one-out error function
@@ -8,7 +8,7 @@ The :class:`.PolynomialChaosExpansion` class is imported using the following com Methods """"""" .. autoclass:: UQpy.surrogates.polynomial_chaos.PolynomialChaosExpansion - :members: fit, predict, validation_error, get_moments + :members: fit, predict, validation_error, leaveoneout_error, get_moments Att...
rwalk default Changed the default to `'rwalk'` instead of `'unif'`. While the maximal efficiency of `'rwalk'` is substantially lower than `'unif'`, it's more consistent overall and so should require less manual intervention by most users.
@@ -38,7 +38,7 @@ SQRTEPS = math.sqrt(float(np.finfo(np.float64).eps)) def NestedSampler(loglikelihood, prior_transform, ndim, nlive=500, - bound='multi', sample='unif', + bound='multi', sample='rwalk', update_interval=0.8, first_update=None, npdim=None, rstate=None, queue_size=None, pool=None, use_pool=None, live_poin...
Documentation - update hooks.py to wagtail_hooks.py Fixes
@@ -27,7 +27,7 @@ class CustomSettingsForm(forms.ModelForm): ``` ```python -# hooks.py +# wagtail_hooks.py from wagtail.admin.views.account import BaseSettingsPanel from wagtail import hooks @@ -70,7 +70,7 @@ class CustomProfileSettingsForm(forms.ModelForm): ``` ```python -# hooks.py +# wagtail_hooks.py from wagtail.ad...
Avoid python dependency break for python-dateutil python dateutil was updated to 2.7.0 botocore was updated to 1.8.9 and it breaks against dateutil 2.7.0
@@ -33,6 +33,9 @@ setup( 'release.storage', 'ssh'], install_requires=[ + # DCOS-21656 - `botocore`` requires less than 2.7.0 while + # `analytics-python` package installs 2.7.0 version + 'python-dateutil>=2.1,<2.7.0', 'aiohttp==0.22.5', 'analytics-python', 'coloredlogs', @@ -48,8 +51,8 @@ setup( 'azure-storage==0.32.0'...
Standalone: Do not exclude idlelib from standard library, make it non-automatic * Without this, it fails to import due to not being followed, but then it also isn't included.
@@ -158,8 +158,6 @@ def scanStandardLibraryPath(stdlib_dir): dirs.remove("dist-packages") if "test" in dirs: dirs.remove("test") - if "idlelib" in dirs: - dirs.remove("idlelib") if "turtledemo" in dirs: dirs.remove("turtledemo") @@ -305,6 +303,7 @@ _stdlib_no_auto_inclusion_list = ( "ttk", "tkFont", "tkColorChooser", +...
Add more prompt to Qtech.QSW2800 HG-- branch : feature/microservices
@@ -19,8 +19,9 @@ class Profile(BaseProfile): name = "Qtech.QSW2800" pattern_more = [ (r"^ --More-- $", " "), + (r"^Confirm to overwrite current startup-config configuration [Y/N]:", "\nY\n"), (r"^Confirm to overwrite current startup-config configuration", "\ny\n"), - (r"^Confirm to overwrite the existed destination fi...
Implements Channel Converter Adds a converter that can decipher more forms of channel mentions, to lay foundation for voice channel muting.
@@ -536,6 +536,46 @@ class FetchedUser(UserConverter): raise BadArgument(f"User `{arg}` does not exist") +class AnyChannelConverter(UserConverter): + """ + Converts to a `discord.Channel` or, raises an error. + + Unlike the default Channel Converter, this converter can handle channels given + in string, id, or mention ...
changed the assert statement comparing the accuracy of cuml and sklearn models and not the predicted labels
import pytest import numpy as np from cuml.test.utils import get_handle -from cuml.test.utils import array_equal from sklearn.datasets import make_classification from cuml.ensemble import RandomForestClassifier as curfc from sklearn.ensemble import RandomForestClassifier as skrfc +from sklearn.metrics import accuracy_s...
docs: Fixes incorrect configuration on Draft Action page Fixes incorrect configuration on draft action page.
@@ -26,6 +26,6 @@ the pull request to a draft automatically since it's likely not ready to review. pull_request_rules: - name: convert to draft conditions: - - "#check-failed>0" + - "#check-failure>0" actions: draft:
Fixed the capitalization in _python_function_name_to_component_name It now only changes the case of the first letter.
@@ -115,7 +115,8 @@ def set_default_base_image(image_or_factory: Union[str, Callable[[], str]]): def _python_function_name_to_component_name(name): import re - return re.sub(' +', ' ', name.replace('_', ' ')).strip(' ').capitalize() + name_with_spaces = re.sub(' +', ' ', name.replace('_', ' ')).strip(' ') + return name...
Update AUTHORS It's been a real pleasure to work on Swift all these years with you guys. You're doing an amazing job in the best mind. Don't change anything!
@@ -32,6 +32,7 @@ Janie Richling (jrichli@us.ibm.com) Michael Barton (mike@weirdlooking.com) Mahati Chamarthy (mahati.chamarthy@gmail.com) Samuel Merritt (sam@swiftstack.com) +Romain Le Disez (romain.ledisez@ovh.net) Contributors ------------ @@ -355,7 +356,6 @@ Richard Hawkins (richard.hawkins@rackspace.com) Robert Fr...
Fix potential race condition. Instead of first checking if the channel.id exists and then checking what it is, we just do a single API call, to prevent cases where something fucky might happen inbetween the first and the second call.
@@ -548,20 +548,20 @@ class HelpChannels(Scheduler, commands.Cog): self.bot.stats.incr(f"help.dormant_calls.{caller}") - if await self.claim_times.contains(channel.id): claimed_timestamp = await self.claim_times.get(channel.id) + if claimed_timestamp: claimed = datetime.fromtimestamp(claimed_timestamp) in_use_time = da...
Fix watch I changed the _download_name return type without realizing that it was also used by the watch endpoint. This switches the endpoint to go through get so that watches can be tracked just like downloads
@@ -82,8 +82,11 @@ class HostedEncryptedFile(resource.Resource): request.setHeader("Content-Security-Policy", "sandbox") if 'name' in request.args.keys(): if self.is_valid_request_name(request): - d = self._api._download_name(request.args['name'][0]) - d.addCallback(lambda stream: self._make_stream_producer(request, st...
Fix typo in StructBlock documentation The StructValue class `LinkValue` is refrerenced as `LinkStructValue` in the Meta class.
@@ -241,7 +241,7 @@ Instead, you should define a subclass of ``StructValue`` that implements your cu from wagtail.core.blocks import StructValue - class LinkValue(StructValue): + class LinkStructValue(StructValue): def url(self): external_url = self.get('external_url') page = self.get('page')