message
stringlengths
13
484
diff
stringlengths
38
4.63k
Remove extra please Please -= 1
@@ -374,5 +374,5 @@ class AdventOfCode(commands.Cog): async def cog_command_error(self, ctx: commands.Context, error: Exception) -> None: """Custom error handler if an advent of code command was posted in the wrong channel.""" if isinstance(error, InChannelCheckFailure): - await ctx.send(f":x: Please use <#{Channels.ad...
Fix port command for SDK >0.9.10 The port functional test can not be passed in my local environment. When 'dns_assignment' is None, the port create, show command will fail because parameter for 'utils.format_list_of_dicts' can not be None.
@@ -35,6 +35,10 @@ def _format_admin_state(state): return 'UP' if state else 'DOWN' +def _format_dns_assignment(dns_assignment): + return utils.format_list_of_dicts(dns_assignment) \ + if dns_assignment else None + _formatters = { 'admin_state_up': _format_admin_state, 'is_admin_state_up': _format_admin_state, @@ -43,7...
test_manifest_config_properties: use assertEqual The method assertEquals is an deprecated alias for assertEqual. See: Tested-by: Daniel Kutik
@@ -480,13 +480,13 @@ class ManifestPropertiesFetchedCorrectly(unittest.TestCase): self.assertFalse(fakeproj.partial_clone) fakeproj.config.SetString('repo.depth', '48') - self.assertEquals(fakeproj.depth, '48') + self.assertEqual(fakeproj.depth, '48') fakeproj.config.SetString('repo.clonefilter', 'blob:limit=10M') - s...
Fix seq2reward test Summary: Diff (https://github.com/facebookresearch/ReAgent/commit/9b25610ec10bb092a0b65726c6edcc91fe668238) swapped out uses of FullyConnected (which takes a tensor as input) with FloatFeatureFullyConnected (which takes FeatureData as input). This broke an assumption made in the predictor wrapper.
@@ -859,6 +859,5 @@ class CompressModelWithPreprocessor(DiscreteDqnWithPreprocessor): state_feature_data = serving_to_feature_data( state, self.state_preprocessor, self.sparse_preprocessor ) - # TODO: model is a fully connected network which only takes in Tensor now. - q_values = self.model(state_feature_data.float_fea...
Use `None` instead of mutable `[]` default argument See
@@ -76,7 +76,7 @@ class Environment: def __init__( self, *, - user_classes=[], + user_classes=None, shape_class=None, tags=None, exclude_tags=None, @@ -92,7 +92,7 @@ class Environment: else: self.events = Events() - self.user_classes = user_classes + self.user_classes = user_classes or [] self.shape_class = shape_class...
Replicas: remove whitespaces from geoip cache key Memcached doesn't work with spaces in keys.
@@ -138,7 +138,7 @@ def __get_distance(se1, client_location, ignore_error): # does not cache ignore_error, str.lower on hostnames/ips is fine canonical_parties = list(map(lambda x: str(x).lower(), [se1, client_location['ip'], client_location.get('latitude', ''), client_location.get('longitude', '')])) canonical_parties...
Lexical env: don't allocate Env_Rebindings_Type for empty rebindings TN:
@@ -151,6 +151,12 @@ package body Langkit_Support.Lexical_Env is ------------ function Create (Bindings : Env_Rebindings_Array) return Env_Rebindings is + begin + if Bindings'Length = 0 then + return null; + end if; + + declare Result : constant Env_Rebindings := new Env_Rebindings_Type' (Size => Bindings'Length, Rebin...
adding unmatch/match methods from video:Movie and video:Show classes to base:PlexPartialObject minor improvements to matches method thanks to matching can be done for artists, albums, shows, movies all other media types safely return an empty list []
@@ -429,6 +429,43 @@ class PlexPartialObject(PlexObject): """ return self._server.history(maxresults=maxresults, mindate=mindate, ratingKey=self.ratingKey) + def unmatch(self): + """ Unmatches show object. """ + key = '/library/metadata/%s/unmatch' % self.ratingKey + self._server.query(key, method=self._server._session...
Explicitly install bazel version 0.15.0 Until [this][1] issue is resolved, [@drigz suggestion][2] works for now. [1]: [2]:
@@ -47,6 +47,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \ rm -rf /var/lib/apt/lists/* # Install bazel +ENV BAZEL_VERSION=0.15.0 RUN apt-get update && apt-get install -y python-software-properties zip && \ echo "deb http://ppa.launchpad.net/webupd8team/java/ubuntu precise main" | tee -a /etc/a...
langkit.caching: minor reformatting TN:
@@ -5,8 +5,8 @@ import json class Cache(object): - - """General purpose content cache. + """ + General purpose content cache. Generating and building libraries can be quite long. This cache class is an attempt to reduce the time to do this.
fix: Website URL parsing function parses absolute telephone/phone tel: URLs as relative * Update utils.py Fix: tel: URLs should be parsed as absolute path * fix: Parsing telephone/phone tel: URLs as absolute
@@ -166,6 +166,8 @@ def abs_url(path): return if path.startswith('http://') or path.startswith('https://'): return path + if path.startswith('tel:'): + return path if path.startswith('data:'): return path if not path.startswith("/"):
Update routing.py Attempt to fix incompatibility with Windows
@@ -307,11 +307,11 @@ class StaticRouter(SinkRouter): api = self.route.get('api', hug.api.from_object(api_function)) for base_url in self.route.get('urls', ("/{0}".format(api_function.__name__), )): def read_file(request=None, path=""): - filename = os.path.normpath(path.lstrip("/")) - if filename.startswith('../'): - ...
[hail/fs] fix use of Semaphore in router fs I do not think this ever worked, my bad!
@@ -183,8 +183,7 @@ class RouterFS(FS): async def _copy(): sema = asyncio.Semaphore(max_simultaneous_transfers) - async with sema: - await Copier.copy(self.afs, asyncio.Semaphore, transfer) + await Copier.copy(self.afs, sema, transfer) return async_to_blocking(_copy()) def exists(self, path: str) -> bool:
cephadm-adopt: use custom dashboard images cephadm uses default value for dashboard container images which need to be customized by ansible for upstream or downstream purpose. This feature wasn't present when cephadm-adopt.yml has been designed. Also set the container_image_base variable for upgrade purpose.
run_once: true delegate_to: '{{ groups[mon_group_name][0] }}' + - name: set container image base in ceph configuration + command: "{{ container_exec_cmd | default('') }} ceph --cluster {{ cluster }} config set mgr mgr/cephadm/container_image_base {{ ceph_docker_registry }}/{{ ceph_docker_image }}" + changed_when: false...
$.Rewriting_Implementation: stop depending on $.Introspection This dependency from implementation stuff to public API stuff is unrequired and prevents us from disabling Ada API generation. TN:
@@ -7,7 +7,6 @@ with System; with ${ada_lib_name}.Common; use ${ada_lib_name}.Common; use ${ada_lib_name}.Common.Token_Data_Handlers; with ${ada_lib_name}.Implementation; -with ${ada_lib_name}.Introspection; use ${ada_lib_name}.Introspection; with ${ada_lib_name}.Lexer_Implementation; use ${ada_lib_name}.Lexer_Implemen...
Fix bug in 2.3 CPE string construction logic. Use the cpe part as it is Fixes
@@ -2168,7 +2168,7 @@ class ImageCpe(Base): "-", "-", ] - final_cpe[2] = self.cpetype[1] + final_cpe[2] = self.cpetype final_cpe[3] = self.vendor final_cpe[4] = self.name final_cpe[5] = self.version
add release notes for 0.7.16 Test Plan: inspection Reviewers: sashank, nate
- `dagster_spark.create_spark_solid` now accepts a `required_resource_keys` argument, which enables setting up a step launcher for Spark solids, like the `emr_pyspark_step_launcher`. -## 0.7.15 (Latest) +## 0.7.16 (Latest) + +**Bugfix** + +- Enabled `NoOpComputeLogManager` to be configured as the `compute_logs` impleme...
Allow filtering ES forms by case_id Usage: FormsES().updating_cases(['case_id_1', 'case_id_2'])
@@ -29,6 +29,7 @@ class FormES(HQESQuery): user_type, user_ids_handle_unknown, j2me_submissions, + updating_cases, ] + super(FormES, self).builtin_filters def user_aggregation(self): @@ -100,3 +101,9 @@ def j2me_submissions(gt=None, gte=None, lt=None, lte=None): filters.regexp("form.meta.appVersion", "v2+.[0-9]+.*"), s...
add a fallback for people using clang 5.0 to use cindex40.py refers to should be done properly as soon as clang5.0 is officially out
@@ -32,7 +32,8 @@ cindex_dict = { '3.7': PKG_NAME + ".plugin.clang.cindex37", '3.8': PKG_NAME + ".plugin.clang.cindex38", '3.9': PKG_NAME + ".plugin.clang.cindex39", - '4.0': PKG_NAME + ".plugin.clang.cindex40" + '4.0': PKG_NAME + ".plugin.clang.cindex40", + '5.0': PKG_NAME + ".plugin.clang.cindex40" }
Fix Alcatel.AOS.7302 pattern prompt HG-- branch : feature/microservices
@@ -14,6 +14,6 @@ from noc.core.profile.base import BaseProfile class Profile(BaseProfile): name = "Alcatel.7302" - pattern_prompt = r"^leg:.+#" + pattern_prompt = r"^(typ:|leg:|)\S+(>|#)" command_save_config = "admin software-mngt shub database save" command_exit = "logout"
removing Buscador [Buscador VM](https://inteltechniques.com/buscador) is not supported by the creator anymore (Michael Bazzell)
@@ -4,7 +4,6 @@ Open-source intelligence (OSINT) is data collected from open source and publicly ## Passive Recon Tools: - [AMass](https://github.com/OWASP/Amass) -- [Buscador VM](https://inteltechniques.com/buscador) - [Exiftool](https://www.sno.phy.queensu.ca/~phil/exiftool/) - [ExtractMetadata](http://www.extractmet...
disable display setup script This script appears to be a problem for lightdm on Rasbian Duster
@@ -52,6 +52,12 @@ if [ "$1" = "1" ] || [ "$1" = "on" ]; then # set user pi user for autostart sudo sed -i 's/^autologin-user=.*/autologin-user=pi/g' /etc/lightdm/lightdm.conf + + # disable display-setup script + if grep -Eq "^display-setup-script=" /etc/lightdm/lightdm.conf; then + sed -i -E 's/^(display-setup-script=...
Temporarily disable macOS stock Python Travis build It's failing with InterpreterNotFound
@@ -8,32 +8,32 @@ env: - NEWEST_PYTHON=3.7 python: # <https://docs.travis-ci.com/user/languages/python/> - - 2.7 - # Python 3.4 fails installing packages # <https://travis-ci.org/jakubroztocil/httpie/jobs/403263566#L636> # - 3.4 - - 3.5 - 3.6 # - 3.7 # is done in the matrix below as described in travis-ci/travis-ci#906...
[cffLib.specializer] Fix bug introduced in Test case (which apparently is not covered by our current tests!): ./fonttools cffLib.specializer 1 2 3 4 5 0 rrcurveto
@@ -461,7 +461,7 @@ def specializeCommands(commands, # Swap last two args order args = args[:-2]+args[-1:]+args[-2:-1] else: # hhcurveto / vvcurveto - if op[0] == 'h': # hhcurveto + if op0 == 'h': # hhcurveto # Swap first two args order args = args[1:2]+args[:1]+args[2:]
GDB helpers: materialize explicit arguments and Self as bindings TN:
@@ -26,10 +26,15 @@ ${"overriding" if property.overriding else ""} function ${property.name} is use type AST_Envs.Lexical_Env; + % for arg in property.explicit_arguments: + ${gdb_helper('bind', arg.name.lower, arg.name.camel_with_underscores)} + % endfor + ## We declare a variable Self, that has the named class wide ac...
Preliminary Game -> Activity changes NOTE - this requires an update to discord.py!! If you get change_presence() errors *after* this commit, make sure you are running the newest discord.py rewrite.
@@ -184,16 +184,16 @@ class Bot: server_embed.add_field(name="Owners", value=owners, inline=True) server_embed.add_field(name="Prefixes", value=prefix, inline=True) server_embed.add_field(name="Status", value=status_text, inline=True) - if bot_member.game and bot_member.game.name: + if bot_member.activity and bot_membe...
Update baldr.txt New trails + generalization + some cleanings.
# Reference: https://twitter.com/fletchsec/status/1108144401530978304 -86818.prohoster.biz/gate.php +86818.prohoster.biz # Reference: https://twitter.com/PRODAFT/status/1105581121595719681 @@ -73,6 +73,7 @@ gangbulk.icu # Reference: https://twitter.com/x42x5a/status/1123250026883497985 +http://66.154.103.144/auth.php h...
rendered_markdown: Improve headings. * Switch from underline to a smaller range of font sizes to indicate h5/h6 headings. * Provide margin-top for headings while avoiding problematic behavior for messages that start with a heading.
h6 { font-weight: 600; line-height: 1.4; - /* No margin-top is important to make messages that start with a heading - avoid a weird blank area at the top of a message. */ - margin-top: 0; + margin-top: 15px; margin-bottom: 5px; } + /* Headings: Ensure that messages that start with a heading don't have + a weirdly blank...
If there's a mixed-attribute on the node, this will fail, just skip it with a warning.
@@ -549,6 +549,11 @@ class CollectLook(pyblish.api.InstancePlugin): if not cmds.attributeQuery(attr, node=node, exists=True): continue attribute = "{}.{}".format(node, attr) + # We don't support mixed-type attributes yet. + if cmds.attributeQuery(attr, node=node, multi=True): + self.log.warning("Attribute '{}' is mixed...
Update welcome-to-mattermost.rst Made a few grammatical / typo changes
Welcome to Mattermost! ========== -This article will go over the basics of Mattermost and a general overview of the appliation so that you can start using it right way. +This article will cover the basics of Mattermost and give a general overview of the application so that you can start using it right way. Ready? Let's...
Added a filter for bogus containers now being created by the ONOS build. The build leaves containers tagged <none> which are a byproduct of the build process and they can't be pushed into the registry or otherwise manipulated. This would cause the installer being built in test mode to fail.
@@ -288,7 +288,7 @@ if [ "$testMode" == "yes" ]; then echo -e "${lBlue}Extracting the docker image list from the voltha VM${NC}" volIpAddr=`virsh domifaddr $vVmName${uId} | tail -n +3 | awk '{ print $4 }' | sed -e 's~/.*~~'` ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -i ../.vagrant/machines/voltha$...
Add test_long_description_content_type Test that specifying a `long_description_content_type` keyword arg to the `setup` function results in writing a `Description-Content-Type` line to the `PKG-INFO` file in the `<distribution>.egg-info` directory. `Description-Content-Type` is described at
@@ -398,6 +398,31 @@ class TestEggInfo(object): self._run_install_command(tmpdir_cwd, env) assert glob.glob(os.path.join(env.paths['lib'], 'barbazquux*')) == [] + def test_long_description_content_type(self, tmpdir_cwd, env): + # Test that specifying a `long_description_content_type` keyword arg to + # the `setup` func...
Remove extra "Unsubscribe" on left-sidebar stream popover. An extra "Unsubscribe" was left over from when it was a CSS :pseudo content rather than text in the templates.
max-width: 200px; } -.streams_popover .popover_sub_unsub_button::after { - content: " Unsubscribe"; -} - .streams_popover .sp-container { background: white; cursor: pointer;
Adds drop_zero_counts and process_times DataSet methods. These can be particularly useful for time-depdendent data analysis.
@@ -2249,7 +2249,56 @@ class DataSet(object): ds.done_adding_data() return _OrderedDict([(t, dsDict[t]) for t in sorted(dsDict.keys())]) - def process_circuits(self, processor_fn, aggregate=False): + def drop_zero_counts(self): + """ + Creates a copy of this data set that doesn't include any zero counts. + + Returns + ...
Add function to automatically install trove-ui will install trove-ui when Trove is enabled. Per RDO request redhat-openstack/easyfix#14
@@ -52,6 +52,10 @@ class packstack::horizon () ensure_packages(['openstack-ironic-ui'], {'ensure' => 'present'}) } + if hiera('CONFIG_TROVE_INSTALL') == 'y' { + ensure_packages(['openstack-trove-ui'], {'ensure' => 'present'}) + } + include '::packstack::memcached' $firewall_port = hiera('CONFIG_HORIZON_PORT')
Close by showing stderr and exceptions. Also check if input redirection is actually enabled.
@@ -141,7 +141,8 @@ public class LiveCodingAnalyst implements DocumentListener { else { pythonRunConfiguration = null; } - String inputFilePath = pythonRunConfiguration == null + String inputFilePath = + (pythonRunConfiguration == null || ! pythonRunConfiguration.isRedirectInput()) ? null : pythonRunConfiguration.getIn...
[batch][azure] increase timeout for Azure * [batch][azure] increase timeout for Azure Azure seems to have pervasively higher latency than GCP. This should reduce the amount of warning logs we receive. * add import
from typing import Mapping, Optional, List, Union +import aiohttp + from ..common import Session, AnonymousCloudCredentials from .credentials import AzureCredentials @@ -14,4 +16,6 @@ class AzureSession(Session): credentials = AzureCredentials.from_file(credentials_file, scopes=scopes) else: credentials = AzureCredenti...
Fix illegal memory accesses when NITEMS > 1, and nrows % NITEMS != 0. This is based on All of the credit for detecting the bug, and part of the credit for fixing it goes to Authors: - Andy Adinets (@canonizer) Approvers: - John Zedlewski (@JohnZed) URL:
@@ -67,34 +67,55 @@ struct ArgMax { } }; +/** tree_leaf_output returns the leaf outputs from the tree with leaf indices + given by leaves for n_rows items. FULL_ITEMS indicates whether n_rows == + NITEMS, to allow the compiler to skip the conditional when unrolling the + loop. */ +template <typename output_type, bool F...
Update README re: experimental support for Windows As mentioned in , Windows support is "experimental" and does not currently support multiple workers.
@@ -83,6 +83,9 @@ Installation If you are running on a clean install of Fedora 28 or above, please make sure you have the ``redhat-rpm-config`` package installed in case if you want to use ``sanic`` with ``ujson`` dependency. +.. note:: + + Windows support is currently "experimental" and on a best-effort basis. Multipl...
Bias predicted times a little earlier Allow one more minute in the past, round predictions down to the next minute
@@ -11,7 +11,7 @@ from helpers.match_manipulator import MatchManipulator class MatchTimePredictionHelper(object): EPOCH = datetime.datetime.fromtimestamp(0) - MAX_IN_PAST = datetime.timedelta(minutes=-3) # One match length, ish + MAX_IN_PAST = datetime.timedelta(minutes=-4) # One match length, ish @classmethod def as_l...
Cleanup include files in jit/passes/common_subexpression_elimination.h. Summary: Pull Request resolved:
-#include <torch/csrc/jit/ir.h> - -#include <algorithm> -#include <unordered_map> +#include <torch/csrc/jit/passes/common_subexpression_elimination.h> -#include <ATen/core/functional.h> -#include <ATen/core/interned_strings.h> -#include <c10/util/Exception.h> +#include <torch/csrc/jit/ir.h> #include <torch/csrc/jit/nod...
Remove ReportFormESView It was used in pact, as shown in this rename commit When we removed the pact custom module, we removed the last remaining reference to this.
@@ -25,10 +25,9 @@ from corehq.elastic import ( get_es_new, report_and_fail_on_shard_failures, ) -from corehq.pillows.base import VALUE_TAG, restore_property_dict +from corehq.pillows.base import VALUE_TAG from corehq.pillows.mappings.case_mapping import CASE_ES_ALIAS from corehq.pillows.mappings.reportcase_mapping imp...
fix udocker/singularity example URLs Fixes
@@ -180,10 +180,8 @@ Using uDocker ------------- Some shared computing environments don't support Docker software containers for technical or policy reasons. -As a workaround, the CWL reference runner supports using alternative ``docker`` implementations on Linux -with the ``--user-space-docker-cmd`` option. - -One suc...
Styler example in docs add a Styler example to the st.dataframe docstring
@@ -476,8 +476,8 @@ class DeltaGenerator(object): pandas styling features, like bar charts, hovering, and captions.) Styler support is experimental! - Example - ------- + Examples + -------- >>> df = pd.DataFrame( ... np.random.randn(50, 20), ... columns=('col %d' % i for i in range(20))) @@ -488,6 +488,19 @@ class Del...
Add simple example of ClientCredentialsAuthorizer Resolves
@@ -94,4 +94,34 @@ When your tokens are expired, you should just request new ones by making another Client Credentials request. Depending on your needs, you may need to track the expiration times along with your tokens. -The SDK does not offer any special facilities for doing this. + +Using ClientCredentialsAuthorizer ...
Creating the class test.base.TestBaseNonAtomic to properly test when an atomic transaction has been set. This new class inherits from TransactionTestCase which does not wrap tests in transaction.atomic. TestCase on the other hand does, and get_connection().in_atomic_block is always True, which is not great when testing...
@@ -6,7 +6,7 @@ try: from django.urls import clear_url_caches except ImportError: # Django < 1.10 pragma: no cover from django.core.urlresolvers import clear_url_caches -from django.test import TestCase +from django.test import TestCase, TransactionTestCase from django.test.utils import override_settings from django.ut...
Then.Expr: switch to ComputingExpr TN:
@@ -10,8 +10,8 @@ from langkit.diagnostics import check_source_language from langkit.expressions.analysis_units import AnalysisUnitType from langkit.expressions.base import ( AbstractExpression, AbstractVariable, BasicExpr, BindingScope, CallExpr, - ComputingExpr, LiteralExpr, No, NullExpr, PropertyDef, ResolvedExpress...
Remove comment numerical warning Answers Just set in stone the warning filter for "Numerical issues". Authors: - Victor Lafargue (https://github.com/viclafargue) Approvers: - Dante Gama Dessavre (https://github.com/dantegd) URL:
@@ -160,8 +160,9 @@ def test_standard_scaler_sparse(failure_logger, @pytest.mark.parametrize("axis", [0, 1]) @pytest.mark.parametrize("with_mean", [True, False]) @pytest.mark.parametrize("with_std", [True, False]) -# FIXME: ignore warnings from cuml and sklearn about scaling issues -# issue: https://github.com/rapidsai...
hagrid: parallelize launch cmds only if multiple cmds are present print logs for each running cmd
@@ -283,7 +283,7 @@ def launch(args: TypeTuple[str], **kwargs: TypeDict[str, Any]) -> None: return -def execute_commands(cmds: list, dry_run: bool) -> None: +def execute_commands(cmds: list, dry_run: bool = False) -> None: process_list: list = [] for cmd in cmds: if dry_run: @@ -294,23 +294,45 @@ def execute_commands(c...
Added validator method for ChatClientConfig which will validate domain format Added test case for the same
@@ -29,7 +29,7 @@ from kairon.shared.data.signals import push_notification from kairon.exceptions import AppException from kairon.shared.utils import Utility from kairon.shared.models import TemplateType - +from validators import domain class Entity(EmbeddedDocument): start = LongField(required=True) @@ -642,6 +642,12 ...
MAINT: Remove redundant test. The Python 3.8 32 bits fast test on windows was being run twice.
@@ -67,19 +67,6 @@ stages: displayName: 'Run Lint Checks' failOnStderr: true - - job: WindowsFast - pool: - vmImage: 'VS2017-Win2016' - strategy: - matrix: - Python37-32bit-fast: - PYTHON_VERSION: '3.8' - PYTHON_ARCH: 'x86' - TEST_MODE: fast - BITS: 32 - steps: - - template: azure-steps-windows.yml - - job: Linux_Pytho...
Made searching even stricter by searching from start of each word Added regex back to sub and split by non-alphabet. Now use two pointers to move from words to words.
import logging +import re import time from typing import Dict, List, Optional @@ -19,6 +20,8 @@ TEST_CHANNELS = ( Channels.helpers ) +REGEX_NON_ALPHABET = re.compile(r"[^a-z]", re.MULTILINE & re.IGNORECASE) + class Tags(Cog): """Save new tags and fetch existing tags.""" @@ -42,20 +45,19 @@ class Tags(Cog): @staticmetho...
Update version 0.9.9 -> 0.9.10 Fixes * Fix the behavior of the file-like returned by `DQM.to_file`
# # ================================================================================================ -__version__ = '0.9.9' +__version__ = '0.9.10' __author__ = 'D-Wave Systems Inc.' __authoremail__ = 'acondello@dwavesys.com' __description__ = 'A shared API for binary quadratic model samplers.'
[main] tweak pending_link check Allow bypassing the auth module and setting the auth token on the client directly. This is useful for CI and tests.
@@ -564,9 +564,11 @@ class Maestral: """Indicates if Maestral is linked to a Dropbox account (read only). This will block until the user's keyring is unlocked to load the saved auth token.""" - if self._auth.linked: # this triggers keyring access on first call + if self.client.linked: + return False + + elif self._auth...
Use new importlib.metadata.entry_points interface where available. With Python 3.10, the entry_points() method returning a SelectableGroups dict interface was deprecated. The preferred way is to now filter by group through a keyword argument. Fixes GH6514.
import functools import inspect import itertools +import sys import warnings from importlib.metadata import entry_points @@ -95,6 +96,10 @@ def build_engines(entrypoints): @functools.lru_cache(maxsize=1) def list_engines(): + # New selection mechanism introduced with Python 3.10. See GH6514. + if sys.version_info >= (3...
database version now v6 Added unique constraint to journal name
@@ -1399,11 +1399,12 @@ class MainWindow(QtWidgets.QMainWindow): cur.execute( "CREATE TABLE code_name (cid integer primary key, name text, memo text, catid integer, owner text," "date text, color text, unique(name))") + # Database version v6 - unique name for journal cur.execute("CREATE TABLE journal (jid integer prima...
Update dev-setup-centos-7.rst missing sudo at line 32
@@ -29,7 +29,7 @@ Set up your development environment for building, running, and testing Mattermos a. ``sudo yum group install "Development Tools"`` - b. ``yum install -y libpng12`` + b. ``sudo yum install -y libpng12`` 3. Download and install Go 1.8 for Linux:
closes reverting feature
return template_height - template_height / 3 + 'px'; } + /* + // not working on Chrome sometimes angular.element($window).bind("keyup", function ($event) { if ($event.keyCode === $scope.ctrlKey || $event.keyCode === $scope.cmdKey || $event.keyCode === 91 || $event.keyCode === 93) } $scope.$apply(); }); + */ } })();
Bug Send Pin Comment notifications Notify: authors of existing translations across all locales reviewers of existing translations across all locales Send separate notification for each locale the user has contributed to. Each notification is then linked to corresponding translate view.
import logging import re + +from collections import defaultdict from datetime import datetime from urllib.parse import urlparse @@ -557,6 +559,40 @@ def _send_add_comment_notifications(user, comment, entity, locale, translation): ) +def _send_pin_comment_notifications(user, comment): + # When pinning a comment, notify:...
Add notes for tabulate in docstring of to_markdown Add notes for tabulate in docstring of to_markdown, following pandas.
@@ -2876,6 +2876,10 @@ class Frame(object, metaclass=ABCMeta): str Series or DataFrame in Markdown-friendly format. + Notes + ----- + Requires the `tabulate <https://pypi.org/project/tabulate>`_ package. + Examples -------- >>> kser = ks.Series(["elk", "pig", "dog", "quetzal"], name="animal")
Update zones.json * Update zones.json Capacity info for Belarus has been added. * BY: Biogas moved to gas from biomass
"https://github.com/systemcatch" ] }, - "BY": {}, + "BY": { + "_comment": "gas includes 24.4 MW of biogas. gas includes 1273 CHP", + "capacity": { + "biomass": 6.6, + "coal": 0, + "gas": 9492, + "hydro": 73, + "hydro storage": 0, + "nuclear": 0, + "oil": 447, + "solar": 50.9, + "wind": 70.4 + }, + "contributors": [ + "...
Fixes Use absolute path when executing excluder as it's used when checking for excluder.
register: docker_excluder_stat - name: Enable docker excluder - command: "{{ r_openshift_excluder_service_type }}-docker-excluder exclude" + command: "/sbin/{{ r_openshift_excluder_service_type }}-docker-excluder exclude" when: - r_openshift_excluder_enable_docker_excluder | bool - docker_excluder_stat.stat.exists regi...
Make `align_to` method-only. Summary: Pull Request resolved: The ellipsis version of `align_to` only works if it is called as a method. To prevent any confusion, this PR disables `torch.align_to` (but keeps `Tensor.align_to`. Test Plan: - [namedtensor ci]
supports_named_tensor: True - func: align_to(Tensor(a) self, DimnameList names) -> Tensor(a) - variants: function, method + variants: method supports_named_tensor: True - func: align_as(Tensor self, Tensor other) -> Tensor
ResolvedExpression.destructure_entity: remove expression tree sharing TN:
@@ -1086,17 +1086,26 @@ class ResolvedExpression(object): def destructure_entity(self): """ Must be called only on expressions that evaluate to entities. Return - expressions to access separately 1) the node and 2) the entity info for - an entity. + 3 expressions: - :rtype: (ResolvedExpression, ResolvedExpression). + 1...
Update test for new metadata Geocoder test uses test geo data but real phone number data, and the fixed-line patterns for TW have become more specific.
@@ -212,8 +212,8 @@ class PhoneNumberGeocoderTest(unittest.TestCase): TEST_GEOCODE_DATA['1650960'] = {'en': u("Mountain View, CA")} # Test the locale mapping - TEST_GEOCODE_DATA['8868'] = {'zh': u("Chinese"), 'zh_Hant': u("Hant-specific")} - tw_number = FrozenPhoneNumber(country_code=886, national_number=810080123) + T...
[gae.py] Require cloudbuildhelper v1.1.13. To pick up
@@ -904,7 +904,7 @@ def _check_go(min_version='1.16.0'): 'Could not find `go` in PATH. Is it needed to deploy Go code.') -def _check_cloudbuildhelper(min_version='1.1.9'): +def _check_cloudbuildhelper(min_version='1.1.13'): """Checks `cloudbuildhelper` is in PATH and it is fresh enough.""" explainer = ( 'It is needed t...
Fix validation_step in DQNTrainer Summary: AutoDataModule yields dictionary of tensors. Therefore, we need to manually type the input
@@ -304,6 +304,8 @@ class DQNTrainer(DQNTrainerBaseLightning): return retval def validation_step(self, batch, batch_idx): + if isinstance(batch, dict): + batch = rlt.DiscreteDqnInput.from_dict(batch) rewards = self.boost_rewards(batch.reward, batch.action) discount_tensor = self.compute_discount_tensor(batch, rewards) ...
[PY3] Fix test that is flaky in Python 3 We can't rely on lists having the same order in Python3 the same way we rely on them in Python2. If we sort them first, and then compare them, this test will be more reliable.
@@ -486,7 +486,7 @@ class TestCustomExtensions(TestCase): env = Environment(extensions=[SerializerExtension]) if six.PY3: rendered = env.from_string('{{ dataset|unique }}').render(dataset=dataset).strip("'{}").split("', '") - self.assertEqual(rendered, list(unique)) + self.assertEqual(sorted(rendered), sorted(list(uniq...
doc: Update docs for tags in cfncluster create we have to encapsulate with single quotes for tags JSON
@@ -28,12 +28,17 @@ optional arguments: specify a specific cluster template to use --extra-parameters EXTRA_PARAMETERS, -p EXTRA_PARAMETERS add extra parameters to stack create - --tags TAGS, -g TAGS tags to be added to the stack + --tags TAGS, -g TAGS tags to be added to the stack, TAGS is a JSON formatted string enca...
Update README.md Thanks, Matti!
@@ -48,7 +48,11 @@ NumPy requires `pytest` and `hypothesis`. Tests can then be run after installat Code of Conduct ---------------------- -NumPy is a community-driven open source project developed by a very diverse group of [contributors](/gallery/team.html). The NumPy leadership has made a strong commitment to creatin...
Decorators: pass bound arguments to callable Bound arguments are more convenient to work with than the raw args and kwargs.
@@ -18,9 +18,10 @@ log = logging.getLogger(__name__) __lock_dicts = defaultdict(WeakValueDictionary) Argument = t.Union[int, str] -_IdCallable = t.Callable[..., t.Hashable] -_IdAwaitable = t.Callable[..., t.Awaitable[t.Hashable]] -ResourceId = t.Union[t.Hashable, _IdCallable, _IdAwaitable] +BoundArgs = t.OrderedDict[st...
Disable gpg check in fedora:rawhide image The heat-container-agent is currently failing to build due to misconfigured upstream fedora:rawhide image. We can revert this change later. Story: Task: 36184
@@ -11,7 +11,7 @@ LABEL name="heat-container-agent" \ atomic.type="system" \ distribution-scope="public" -RUN dnf -y --setopt=tsflags=nodocs install \ +RUN dnf -y --setopt=tsflags=nodocs --nogpgcheck install \ bash \ findutils \ gcc \
Uses abspath() for test data access in dependency_utils_test. `dependency_utils.py` changes working directory while buidling an ephemeral package. So we need to access test data using abspath.
@@ -51,7 +51,8 @@ class DependencyUtilsTest(tf.test.TestCase): @mock.patch('tempfile.mkdtemp') @mock.patch('subprocess.call') def testEphemeralPackageMocked(self, mock_subprocess_call, mock_mkdtemp): - source_data_dir = os.path.join(os.path.dirname(__file__), 'testdata') + source_data_dir = os.path.join( + os.path.dirn...
Modified sed script to not use -i and to remove necessary lines sed -i is not supported on OS X. Removal of lines 1-6 and 10 from mod.rs had unintentionally been removed. Now reinstated.
@@ -30,9 +30,10 @@ define crate_template $(1)/src/%/mod.rs: svd/%.svd.patched mkdir -p $$(@D) cd $$(@D); svd2rust -i ../../../$$< + rustfmt $$(@D)/lib.rs export DEVICE=$$$$(basename $$< .svd.patched); \ - sed -i "s/crate :: Interrupt/crate :: $$$${DEVICE} :: Interrupt/" $$(@D)/lib.rs - form -i $$(@D)/lib.rs -o $$(@D)/ ...
Fix typo in querying docs Replaces
@@ -1055,7 +1055,7 @@ MySQL uses *Rand*: .. code-block:: python # Pick 5 lucky winners: - LotterNumber.select().order_by(fn.Rand()).limit(5) + LotteryNumber.select().order_by(fn.Rand()).limit(5) Paginating records ------------------
Add inference mock Add monitor mock
@@ -66,8 +66,10 @@ class ReducerControl: self.__state = ReducerState.monitoring - def monitor(self, config): + def monitor(self, config=None): self.__state = ReducerState.monitoring + # todo connect to combiners and listen for globalmodelupdate request. + # use the globalmodel received to start the reducer combiner met...
[jax2tf] add a new test for jax2tf gda test. Now it cover the test using gda as jax function input.
@@ -1336,11 +1336,12 @@ class XlaCallModuleTest(tf_test_util.JaxToTfTestCase): global_shape, global_mesh, mesh_axes, lambda idx: global_data[idx]), global_data - # Create GDA global_mesh = jtu.create_global_mesh((4, 2), ("x", "y")) mesh_axes = P(("x", "y")) params, _ = create_gda((8, 2), global_mesh, mesh_axes) + input...
making link more clear For the separate section for FITS file compression. It's kind of hidden in the text. Issue
@@ -131,11 +131,16 @@ for more details). Working with compressed files """"""""""""""""""""""""""""" +.. note:: + + Files that use compressed HDUs within the FITS file are discussed + in :ref:`Compressed Image Data <astropy-io-fits-compressedImageData>`. + + The :func:`open` function will seamlessly open FITS files tha...
Fix wrong parsed VP9 codec string The VP9 profile number was wrong
@@ -189,7 +189,7 @@ def _determine_video_codec(content_profile): return 'dvhe' return 'hevc' if content_profile.startswith('vp9'): - return 'vp9.0.' + content_profile[14:16] + return 'vp9.' + content_profile[11:12] return 'h264'
Increase TimerTest tolerance to 20% on Windows Summary: Pull Request resolved: Test Plan: CI
@@ -22,10 +22,16 @@ TEST(TimerTest, Test) { float us = timer.MicroSeconds(); float ms = timer.MilliSeconds(); - // Time should be at least accurate +- 10%. + // Time should be at least accurate +- 10%. (20% on Windows) +#ifndef _WIN32 EXPECT_NEAR(ns, 100000000, 10000000); EXPECT_NEAR(us, 100000, 10000); EXPECT_NEAR(ms,...
Adding ATEN_NO_TEST option to root level cmake for propogation to aten Summary: Pull Request resolved:
@@ -56,6 +56,7 @@ include(CMakeDependentOption) option(BUILD_TORCH "Build Torch" OFF) option(BUILD_CAFFE2 "Build Caffe2" ON) option(BUILD_ATEN "Build ATen" OFF) +option(ATEN_NO_TEST "Do not build ATen test binaries" OFF) option(BUILD_BINARY "Build C++ binaries" ON) option(BUILD_DOCS "Build Caffe2 documentation" OFF) op...
Cleanup bench script a bit. [skip ci]
@@ -29,13 +29,13 @@ def timed(fn): N = 10 for i in range(N): start = time.time() - fn(*args, **kwargs) + fn(i, *args, **kwargs) times.append(time.time() - start) - print(fn.__name__, round(sum(times) / N, 3)) + print('%0.2f ... %s' % (round(sum(times) / N, 2), fn.__name__)) return inner -def populate_register(n): - for...
Implement seeding Fix
@@ -190,13 +190,13 @@ class AbstractEnv(gym.Env): """ Reset the environment to it's initial configuration - :param seed: not implemented + :param seed: The seed that is used to initialize the environment's PRNG :param options: Allows the environment configuration to specified through `options["config"]` :return: the ob...
Updated DE capacity Updated installed netto capacity in Germany. Source: Frauenhofer ISE (last update: 2.05.19)
] ], "capacity": { - "biomass": 7720, - "coal": 45380, - "gas": 29630, + "biomass": 7740, + "coal": 44910, + "gas": 29390, "geothermal": 38, - "hydro": 5500, - "hydro storage": 9440, + "hydro": 4800, + "hydro storage": 9600, "nuclear": 9516, "oil": 4300, - "solar": 45550, + "solar": 47200, "unknown": 3137, - "wind": 59...
Remove HAVE_ROBHAT option, which is no longer used It was redundant to the DRIVE_TRAIN_TYPE and CONTROLLER_TYPE options
@@ -198,7 +198,6 @@ IMU_DLP_CONFIG = 0 # Digital Lowpass Filter setting (0:250Hz, 1:184 HAVE_SOMBRERO = False #set to true when using the sombrero hat from the Donkeycar store. This will enable pwm on the hat. #ROBOHAT MM1 -HAVE_ROBOHAT = False # set to true when using the Robo HAT MM1 from Robotics Masters. This will ...
Fixed a test so that it passes on Chrome and Firefox It was failing on firefox because the keyword returns a FirefoxWebElement object on firefox and a WeblEment on chrome.
@@ -97,7 +97,11 @@ Get Webelement (singlular) [Setup] Go to setup home ${element}= Get webelement A:breadcrumb:Home - Should be true $element.__class__.__name__=="WebElement" + # Different browsers return different classes of objects so we + # can't easily do a check for the returned object type that works + # for all ...
Update plot_brainstorm_phantom_elekta.py closes
@@ -7,16 +7,13 @@ Brainstorm Elekta phantom dataset tutorial ========================================== Here we compute the evoked from raw for the Brainstorm Elekta phantom -tutorial dataset. For comparison, see [1]_ and: +tutorial dataset. For comparison, see :footcite:`TadelEtAl2011` and: https://neuroimage.usc.edu/...
misc/file_reader: minor reformatting TN:
@@ -30,6 +30,10 @@ procedure Main is New_Line; end Put_Title; + ----------- + -- Parse -- + ----------- + procedure Parse (Filename, Charset : String) is begin U := Ctx.Get_From_File (Filename, Charset); @@ -47,6 +51,7 @@ begin Put_Line ("main.adb: Starting..."); -- Create a context with our file reader + declare FR : ...
Add support for using loopback devices as OSDs This is particularly useful in CI environments where you dont have the option of adding extra devices or volumes to the host. It is also a simple change to support loopback devices
# partition. - name: activate osd(s) when device is a disk - command: ceph-disk activate {{ item | regex_replace('^(\/dev\/cciss\/c[0-9]{1}d[0-9]{1})$', '\\1p') }}1 + command: ceph-disk activate "{{ item | regex_replace('^(\/dev\/cciss\/c[0-9]{1}d[0-9]{1})$', '\1p') | regex_replace('^(\/dev\/loop[0-9]{1})$', '\1p') }}1...
Then expressions: create a local scope for the "then variable" TN:
@@ -9,9 +9,9 @@ from langkit.compiled_types import ( from langkit.diagnostics import check_source_language from langkit.expressions.analysis_units import AnalysisUnitType from langkit.expressions.base import ( - AbstractExpression, AbstractVariable, LiteralExpr, No, PropertyDef, - ResolvedExpression, render, construct,...
Remove pydocstyle version restriction Ignore the newly added error D999 for __all__ in pywikibot/__init__.py.[1] This patch also fixes the current flake8 InvocationError. [1]:
@@ -60,7 +60,7 @@ commands = basepython = python2.7 deps = flake8 pyflakes >= 1.1 - pydocstyle == 2.0.0 + pydocstyle hacking flake8-docstrings>=1.1.0 flake8-per-file-ignores @@ -200,6 +200,8 @@ per-file-ignores = scripts/makecat.py : D103 scripts/interwiki.py : P102 pywikibot/__init__.py : P103 + # pydocstyle cannot ha...
Some scripts in GtBurst need to be made executables. This will hopefully fixed in fermitools, but for now I fixed here at running time.
@@ -582,8 +582,8 @@ class TransientLATDataBuilder(object): """ This builds the cmd string for the script """ - - cmd_str = '%s %s' % (os.path.join('fermitools', 'GtBurst', 'scripts', 'doTimeResolvedLike.py'), + executable = os.path.join('fermitools', 'GtBurst', 'scripts', 'doTimeResolvedLike.py') + cmd_str = '%s %s' % ...
[util/popup] add generic "close" on root menu add a "close" entry for the root menu of all popup menus (if they are not automatically destroyed when leaving the menu). fixes
@@ -22,6 +22,9 @@ class menu(object): self._root.withdraw() self._menu = tk.Menu(self._root, tearoff=0) self._menu.bind("<FocusOut>", self.__on_focus_out) + + self.add_menuitem("close", self.__on_focus_out) + self.add_separator() else: self._root = parent.root() self._root.withdraw()
Fix error when trying to delete notification secret Closes ansible/galaxy-issues#287
@@ -829,10 +829,11 @@ class NotificationSecretDetail(RetrieveUpdateDestroyAPIView): serializer = self.get_serializer(instance=instance) return Response(serializer.data, status=status.HTTP_202_ACCEPTED) - def destroy(self): + def destroy(self, request, *args, **kwargs): obj = super(NotificationSecretDetail, self).get_ob...
skip ctc_loss test on Windows Summary: Pull Request resolved: It is flaky on Windows only, so disable for now: Test Plan: Imported from OSS
@@ -5445,6 +5445,8 @@ class TestAutogradDeviceType(TestCase): gradgradcheck(where, [cond, x, y], [torch.randn(5, 5, 5, device=device)]) @skipCUDAIfRocm + @unittest.skipIf(IS_WINDOWS, """Test is flaky on Windows: + https://github.com/pytorch/pytorch/issues/34870""") def test_ctc_loss(self, device): batch_size = 64 num_l...
ebuild.profiles: parent_paths: toss unnecessary RuntimeError Now that the load/invoker doesn't catch nearly all exception types, this should raise and toss a traceback if there are bad issues by default.
@@ -209,8 +209,6 @@ class ProfileNode(object, metaclass=caching.WeakInstMeta): f'unknown repo {repo_id!r}' ) continue - except (TypeError, AttributeError): - raise RuntimeError("repo mapping is unset") l.append((abspath(pjoin(location, 'profiles', path)), line, lineno)) else: l.append((abspath(pjoin(self.path, repo_id)...
fixed pixmap scale error in qt6 needed int not float
@@ -600,7 +600,7 @@ class DialogCodeInAV(QtWidgets.QDialog): class DialogCodeInImage(QtWidgets.QDialog): """ View coded section in original image. - Called by: reports.DialogReportCodes qhn results are produced + Called by: reports.DialogReportCodes, when results are produced """ app = None @@ -698,7 +698,7 @@ class Di...
Can move port again Fixes
@@ -78,7 +78,8 @@ class ProxyPortItem(Presentation[sysml.ProxyPort], HandlePositionUpdate, Named): return cinfo.connected.port_side(cinfo.port) if cinfo else None def dimensions(self): - return Rectangle(-8, -8, 16, 16) + x, y = self._handles[0].pos + return Rectangle(x - 8, y - 8, 16, 16) def point(self, x, y): return...
Add filterable option to IronicInspectorLog Resolves:
@@ -195,7 +195,7 @@ class Specs(SpecSet): iptables = RegistryPoint() ipv4_neigh = RegistryPoint() ipv6_neigh = RegistryPoint() - ironic_inspector_log = RegistryPoint() + ironic_inspector_log = RegistryPoint(filterable=True) iscsiadm_m_session = RegistryPoint() jboss_domain_server_log = RegistryPoint(multi_output=True, ...
corrected date to be Jun 1st both Inquirer and WHYY say "Monday" which was Jun 1st, I was mistaken in my earlier commit
@@ -80,7 +80,7 @@ At least 6 officers surround a handcuffed man who says "I can't breathe". Office * https://twitter.com/greg_doucette/status/1268200800649707526 -### Police shove protestors and strike man across the face with a baton | May 31st +### Police shove protestors and strike man across the face with a baton |...