message
stringlengths
13
484
diff
stringlengths
38
4.63k
tv4play: improve detection of geoblocking for some reason tv4 sends http 500 when the video is geoblocked
@@ -7,6 +7,7 @@ from datetime import datetime from datetime import timedelta from urllib.parse import urlparse +import requests from svtplay_dl.error import ServiceError from svtplay_dl.fetcher.dash import dashparse from svtplay_dl.fetcher.hls import hlsparse @@ -68,7 +69,12 @@ class Tv4play(Service, OpenGraphThumbMixi...
Update elasticsearch.rst Updated as per: and
@@ -16,7 +16,7 @@ Overview Elasticsearch allows you to search large volumes of data quickly, in near real time, by creating and managing an index of post data. The indexing process can be managed from the System Console after setting up and connecting an Elasticsearch server. The post index is stored on the Elasticsear...
Fix UPI AWS deployment with CoreOS Fixes:
@@ -271,7 +271,7 @@ class AWSUPI(AWSBase): self.name = self.__class__.__name__ super(AWSUPI, self).__init__() - if config.ENV_DATA['rhel_workers']: + if config.ENV_DATA.get('rhel_workers'): self.worker_vpc = None self.worker_iam_role = None self.worker_subnet = None @@ -423,7 +423,7 @@ class AWSUPI(AWSBase): if config....
Update prometheus2.spec to 2.6.0 Bumping Prometheus version to 2.6.0, released on 2018-12-17
%define debug_package %{nil} Name: prometheus2 -Version: 2.5.0 +Version: 2.6.0 Release: 1%{?dist} -Summary: The Prometheus 2.5.0 monitoring system and time series database. +Summary: The Prometheus 2.6.0 monitoring system and time series database. License: ASL 2.0 URL: https://prometheus.io Conflicts: prometheus
Add the missed decorator to pools The on_put function miss the decorator. This patch add it.
@@ -168,6 +168,7 @@ class Resource(object): response.body = transport_utils.to_json(data) + @decorators.TransportLog("Pools item") @acl.enforce("pools:create") def on_put(self, request, response, project_id, pool): """Registers a new pool. Expects the following input:
Update test_resizing.py Added a call to `text_file.close()` after the call to `np.savetxt()`.
@@ -61,6 +61,7 @@ class ModResizeAsciiBlock(SinkBlock): span = span_generator.next() text_file = open(self.filename, 'a') np.savetxt(text_file, span.data_view(np.float32).reshape((1,-1))) + text_file.close() class TestLateResize(unittest.TestCase): """Test late resizing of a ring in a pipeline"""
Update data-drift.md added new customization option to the data drift page
@@ -81,7 +81,9 @@ To change the bins displayed, you can define [custom options](../customization/o ## Report customization -As mentioned above, you can set different [options-for-data-target-drift.md](../customization/options-for-data-target-drift.md "mention") to modify the existing components of the report. Use this ...
doc/nxtdevices: remove note about old touch sensor Special treatment is no longer necessary; if no such touch sensor is detected, the port switches to analog mode. This means that it will work for both touch sensor types, as well as custom switches.
@@ -16,21 +16,6 @@ NXT Touch Sensor .. automethod:: pybricks.nxtdevices.TouchSensor.pressed - .. toggle-header:: - :header: **Using older NXT Touch Sensors** - - **Example: Using a first-generation NXT Touch Sensor.** - - Normally, the EV3 brick always verifies that a sensor is attached - before you can use it. This me...
ENH: added app.result.tabular_result [NEW] container for tabular result classes
@@ -443,3 +443,13 @@ class bootstrap_result(generic_result): """returns the LR values corresponding to the synthetic data""" result = [self[k].LR for k in self if k != "observed"] return result + + +class tabular_result(generic_result): + """stores one or multiple tabular data sets, keyed by a title""" + + _type = "tab...
Reproduce bug The nova-compute fails to start if the hypervisor has PCI addresses 32bit domain. Related-Bug:
@@ -22,6 +22,7 @@ from oslo_utils.fixture import uuidsentinel import nova from nova.compute import vm_states from nova import context +from nova import exception from nova import objects from nova.objects import fields from nova.pci import manager @@ -236,6 +237,42 @@ class PciDevTrackerTestCase(test.NoDBTestCase): tra...
Fix xvfb for travis (now it's a service) Because starting on January 15 of 2019, travis CI released an update to their Xenial build environment, which introduced a new way to start up `XVFB`, and that cause the travis build to fail See also:
@@ -4,6 +4,8 @@ language: python python: - '3.6-dev' - '3.7-dev' +services: + - xvfb before_install: - export PATH=/usr/bin:$PATH - sudo apt-get update -q @@ -19,9 +21,7 @@ before_install: # 'Gtk3 requires X11, and no DISPLAY environment variable is set' # http://docs.travis-ci.com/user/gui-and-headless-browsers/#Start...
./CarlaUE4 to ./CarlaUE4.sh It seems in pre-compiled version 0.9.0 to cmd line is: ./CarlaUE4.sh -carla-server -windowed -ResX=320 -ResY=240
@@ -73,7 +73,7 @@ Run the following command after replacing [PATH_TO_CARLA] with the actual path t If you use the builded binary (0.8.2): - ./CarlaUE4 -carla-server -windowed -ResX=320 -ResY=240 + ./CarlaUE4.sh -carla-server -windowed -ResX=320 -ResY=240 Wait for the message:
Fix ConfigRegister naming scheme Use the value and length of the address to generate the ConfigRegister name (rather than the debug value which is usually an anonymous).
@@ -26,7 +26,10 @@ def define_config_register(width, address, has_reset, _type=m.Bits): def get_name(): type_name = str(T).replace("(", "$").replace(")", "$") - return "ConfigRegister_%s_%s_%s" % (type_name, address, has_reset) + addr_value = m.bitutils.seq2int(address.bits()) + addr_N = address.N + return ("ConfigRegi...
Fix for rectangles of listview subitems if listview is a table and have cells
@@ -254,6 +254,9 @@ class _listview_item(object): remote_mem = RemoteMemoryBlock(self.listview_ctrl) rect = win32structures.RECT() + # If listview_ctrl has LVS_REPORT we can get access to subitems rectangles + is_table = self.listview_ctrl.has_style(win32defines.LVS_REPORT) + if area.lower() == "all" or not area: rect....
Create port with port_vnic_type and port_profile from config modify create_port function to use tempest.conf parameters, 'port_vnic_type' and 'port_profile' in case they are defined.
@@ -94,6 +94,10 @@ class ScenarioTest(tempest.test.BaseTestCase): if not client: client = self.ports_client name = data_utils.rand_name(self.__class__.__name__) + if CONF.network.port_vnic_type and 'binding:vnic_type' not in kwargs: + kwargs['binding:vnic_type'] = CONF.network.port_vnic_type + if CONF.network.port_prof...
[tests] Fix TooManyRedirects failure for test_merriam_webster Catch requests.exceptions.TooManyRedirects exception as an requested result if no Site can be created from this Url.
@@ -10,7 +10,7 @@ from contextlib import suppress from http import HTTPStatus from urllib.parse import urlparse -from requests.exceptions import ConnectionError, Timeout +from requests.exceptions import ConnectionError, Timeout, TooManyRedirects import pywikibot @@ -48,7 +48,7 @@ class SiteDetectionTestCase(TestCase): ...
DOC: move some docstring parts of exponweib to weibull_min also, add explanation that Weibull min distribution is often simply called "the Weibull" distribution.
@@ -1549,6 +1549,10 @@ class exponweib_gen(rv_continuous): %(before_notes)s + See Also + -------- + weibull_min, numpy.random.weibull + Notes ----- The probability density function for `exponweib` is: @@ -1569,11 +1573,8 @@ class exponweib_gen(rv_continuous): * :math:`a` is the exponentiation parameter, with the specia...
Solid Guide Summary: Wrote up a guide explaning our core abstraction the solid. Probably need to move around some of this content. Test Plan: Read. Reviewers: natekupp, alangenfeld, max
@@ -8,3 +8,4 @@ Learn principles guides/logging/logging + guides/solid/solid
Fixed typo in ThirdLevel.do_say() print Added shebang line
+#!/usr/bin/env python """ Create a CLI with a nested command structure as follows. The commands 'second' and 'third' navigate the CLI to the scope of the submenu. Nesting of the submenus is done with the cmd2.AddSubmenu() decorator. @@ -25,7 +26,7 @@ class ThirdLevel(cmd2.Cmd): def do_say(self, line): print("You calle...
better manage files table refresh and remove gif import removed gif import to better match REFI standard
@@ -482,11 +482,6 @@ class DialogManageFiles(QtWidgets.QDialog): self.parent_textEdit.append(entry['name'] + _(" imported.")) self.source.append(entry) - # clear and refill table widget - for r in self.source: - self.ui.tableWidget.removeRow(0) - self.fill_table() - def load_file_text(self, import_file): """ Import fro...
Add new context keys. This commit adds new context keys that have been introduced in the various ST4 builds.
"details": "Match the scope at the end of the line", "kind": ["variable", "k", "key"], }, + { + "trigger": "overlay_has_focus", + "details": "Overlay has focus", + "kind": ["variable", "k", "key"], + }, + { + "trigger": "overlay_name", + "details": "Name of the overlay open", + "kind": ["variable", "k", "key"], + }, + ...
Bump timeout for test This was failing inconsistently on Mac showing <BLANKLINE> along with exit -9 (killed) suggesting we're killing before the command can generate the preview.
@@ -6,7 +6,7 @@ review the setting before continuing. Because the prompt waits for user input, we need to terminate the process using a timeout: - >>> run("guild train mnist-softmax", timeout=1) + >>> run("guild train mnist-softmax", timeout=2) You are about to run mnist/mnist-softmax:train batch-size: 100 epochs: 10
[GeneralChannel] change cooldowns to match discord ratelimits more TLDR: The new rate limit for channel NAME AND TOPIC updates is 2 updates per 10 minutes, per channel. Reference: [Link to message on Discord Developers server](https://discord.com/channels/613425648685547541/697138785317814292/715995470048264233)
@@ -54,7 +54,7 @@ class GeneralChannel(commands.Cog): await ctx.tick() @gc.command(name="name") - @commands.cooldown(1, 60, commands.BucketType.user) + @commands.cooldown(2, 600, commands.BucketType.user) @commands.check(server_set) async def gcname(self, ctx, *, name: str): """Change name of #general""" @@ -75,7 +75,7...
Fix test assertion This test was calling `.load` on model objects, when it should have been calling `.dump`. This was not working as expected before the marshmallow upgrade either - the objects returned were errors and not template versions.
@@ -438,8 +438,9 @@ def test_get_template_versions(sample_template): assert versions[1].updated_at is not None from app.schemas import template_history_schema - v = template_history_schema.load(versions, many=True) + v = template_history_schema.dump(versions, many=True) assert len(v) == 2 + assert {template_history['ve...
Get time_step_spec from the environment's time_step_spec, not its observation_spec. The latter makes the assumption that the PyEnvironment uses the default time_step_spec structure, which is not necessarily true.
@@ -143,9 +143,8 @@ class TFPyEnvironment(tf_environment.TFEnvironment): 'wrapped environment are no longer guaranteed to happen in a common ' 'thread. Environment: %s', (self._env,)) - observation_spec = tensor_spec.from_spec(self._env.observation_spec()) action_spec = tensor_spec.from_spec(self._env.action_spec()) - ...
Fix pattern matching Patch incorporating Closes
import pytube from pytube import request -from pytube.extract import get_ytplayer_config, apply_signature, js_url +from pytube.extract import apply_signature, js_url +from typing import Any def apply_patches(): """ @@ -46,6 +47,8 @@ def apply_patches(): pytube.__main__.YouTube.descramble = descramble # Patch 3: https:/...
Fix for python2 env Since the python2 use `from __future__ import unicode_literals`, so the string literals will be `unicode` type in python2. Use `six.string_types` in `isinstance()` instead of using `str` type.
@@ -9,6 +9,7 @@ import argparse import functools import gdb +import six import pwndbg.chain import pwndbg.color @@ -225,7 +226,7 @@ class ArgparsedCommand(object): """ :param parser_or_desc: `argparse.ArgumentParser` instance or `str` """ - if isinstance(parser_or_desc, str): + if isinstance(parser_or_desc, six.string_...
[unit test] skip some test if OpenGL is not installed. close
@@ -41,6 +41,13 @@ from silx.gui.colors import rgba from silx.gui.colors import Colormap from silx import sx +try: + import OpenGL +except ImportError: + has_opengl = False +else: + has_opengl = True + _logger = logging.getLogger(__name__) @@ -193,6 +200,7 @@ class SXTest(TestCaseQt, ParametricTestCase): plt.setAttribu...
Updates based on feedback Removed sentence previously added. Added information regarding the Group Export Dashboard
@@ -197,11 +197,11 @@ For more information about letter case in MySQL table names and the ``--lower-ca Migrating from HipChat Server and HipChat Data Center to Mattermost ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -HipChat.com, Stride, HipChat Server and HipChat Data Center are all being discon...
Include the host name into the encoded message key This ensures that two messages with similar content from different devices wouldn't overlap, e.g., when two devices complain about the same NTP server as unreachable, we should have two separate messages.
@@ -289,7 +289,9 @@ class NapalmLogsServerProc(NapalmLogsProc): if six.PY3: dev_os = bytes(dev_os, 'utf-8') if self._buffer: - message = '{dev_os}/{msg}'.format(dev_os=dev_os, msg=msg_dict['message']) + message = '{dev_os}/{host}/{msg}'.format(dev_os=dev_os, + host=msg_dict['host'], + msg=msg_dict['message']) message_k...
Update windows_indirect_command_execution_via_forfiles.yml Updated description info on forfiles detection yaml
name: Windows Indirect Command Execution Via forfiles id: 59e54602-9680-11ec-a8a6-aaaaaaaaaaaa version: 1 -date: '2022-03-09' +date: '2022-04-05' author: Eric McGinnis, Splunk type: TTP datamodel: - Endpoint -description: The following analytic detection programs that have been started by pcalua.exe, forfiles, forfiles...
Fix docstrings in conductor manager Remove NodeCleaningFailure exception from docstrings of two methods, they are not raise it.
@@ -706,8 +706,6 @@ class ConductorManager(base_manager.BaseConductorManager): :param task: A TaskManager object :param skip_current_step: True to skip the current clean step; False to include it. - :raises: NodeCleaningFailure if an internal error occurred when - getting the next clean steps :returns: index of the nex...
mypy: add "Optional" to attributes with allowed None These attributes are also used with None value
@@ -564,10 +564,10 @@ class ImageBuildWorkflowData(ISerializer): plugin_failed: bool = False # info about pre-declared build, build-id and token - reserved_build_id: int = None - reserved_token: str = None + reserved_build_id: Optional[int] = None + reserved_token: Optional[str] = None koji_source_nvr: Dict[str, str] =...
Add support for new trace callTypes and actions Add new calltypes: callcode and staticall Add new action: reward
@@ -32,17 +32,26 @@ class ConfirmationType(Enum): class EthereumTxCallType(Enum): + # https://ethereum.stackexchange.com/questions/63743/whats-the-difference-between-type-and-calltype-in-parity-trace CALL = 0 DELEGATE_CALL = 1 + CALL_CODE = 2 + STATIC_CALL = 3 @staticmethod - def parse_call_type(call_type: str): + def ...
Review of 'Overview' documentation section * Reducing text amount; Fixing CoZ channel URL; Removing sister projects (using links instead); * Made changes as requested. * title update
Overview ======== -What does it currently do -^^^^^^^^^^^^^^^^^^^^^^^^^ - -- This project aims to be a full port of the original C# `NEO project <https://github.com/neo-project>`_ -- Run a Python based P2P node -- Interactive CLI for configuring node and inspecting blockchain -- Compile, test, deploy and run Smart Cont...
refactor: tests: popups: Assign mocked keypress to a variable. This commit assigns the mocked keypress method of the emoji_picker_view within `test_mouse_event` of the TestEmojiPickerView class to a variable, so that the corresponding assert method calls are type consistent.
@@ -1372,10 +1372,10 @@ class TestEmojiPickerView: ) def test_mouse_event(self, mocker, widget_size, event, button, keypress): emoji_picker = self.emoji_picker_view - mocker.patch.object(emoji_picker, "keypress") + mocked_emoji_picker_keypress = mocker.patch.object(emoji_picker, "keypress") size = widget_size(emoji_pic...
Build : Fix bug with builds using LOCATE_DEPENDENCY_RESOURCESPATH We also install other files (doc examples) into the resources folder, so SCons needs an explicit list of files from the dependency resources to copy over.
@@ -1214,7 +1214,14 @@ else : resources = None if commandEnv.subst( "$LOCATE_DEPENDENCY_RESOURCESPATH" ) : - resources = commandEnv.Install( "$BUILD_DIR", "$LOCATE_DEPENDENCY_RESOURCESPATH" ) + + resources = [] + resourceRoot = commandEnv.subst( "$LOCATE_DEPENDENCY_RESOURCESPATH" ) + for root, dirs, files in os.walk( r...
modules/nilrt_ip.py: Fix disable function When an interface is disabled, the adaptor mode should be Disabled.
@@ -36,6 +36,7 @@ except ImportError: try: import pyiface + from pyiface.ifreqioctls import IFF_LOOPBACK, IFF_RUNNING except ImportError: pyiface = None @@ -54,8 +55,6 @@ INTERFACES_CONFIG = "/var/lib/connman/interfaces.config" NIRTCFG_PATH = "/usr/local/natinst/bin/nirtcfg" INI_FILE = "/etc/natinst/share/ni-rt.ini" _C...
Documentation: Add a bash header template The bash files should have sanitized headers as well.
@@ -184,6 +184,73 @@ class HeaderTemplate(ABC): return self.get_header() in "".join(file_content) +class BashHeaderTemplate(HeaderTemplate): + @staticmethod + def _get_file_shebag(file_path: str) -> Optional[str]: + """ + Returns the bash file shebag. + + :param file_path: The path to the file. + :returns: The python f...
FIX: Return a copy of the empty array at the exit [ci skip] will run the tests depending on the result of atleast_2d() discussion
@@ -30,7 +30,7 @@ def _cholesky(a, lower=False, overwrite_a=False, clean=True, # Quick return for square empty array if a1.size == 0: - return a1, lower + return a1.copy(), lower overwrite_a = overwrite_a or _datacopied(a1, a) potrf, = get_lapack_funcs(('potrf',), (a1,))
Fix empty key for global options in run tracker the global scope "key" is an empty string, so fix that in the recorded options dict Follow up for: <img width="703" alt="Screen Shot 2020-09-17 at 1 15 24 PM" src="https://user-images.githubusercontent.com/1268088/93523412-da310180-f8e7-11ea-8f93-f4540ecf4c30.png">
@@ -25,6 +25,7 @@ from pants.goal.aggregated_timings import AggregatedTimings from pants.goal.pantsd_stats import PantsDaemonStats from pants.option.config import Config from pants.option.options_fingerprinter import CoercingOptionEncoder +from pants.option.scope import GLOBAL_SCOPE, GLOBAL_SCOPE_CONFIG_SECTION from pa...
update install guide for Linux Mint on Mint I had to install python3-setuptools package too
@@ -105,10 +105,10 @@ On OS X, you can install *The Fuck* via [Homebrew][homebrew]: brew install thefuck ``` -On Ubuntu, install *The Fuck* with the following commands: +On Ubuntu / Mint, install *The Fuck* with the following commands: ```bash sudo apt update -sudo apt install python3-dev python3-pip +sudo apt install ...
[DOC] ImportError troubleshooting, virtual environment tipps Additions to the installation guide: ImportError troubleshooting, virtual environment tipps
@@ -59,18 +59,6 @@ Note: currently this does not include the dependency ``catch-22``. As this package is not available on ``conda-forge``, it must be installed via ``pip`` if desired. Contributions to remedy this situation are appreciated. - -Release versions - troubleshooting -~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - -Mod...
Itertools update * Updated the typehints for itertools. * Removed the overload because it caused problems and cleaned up the imports. * Update itertools.pyi Added back optionality of second argument for itertools.permutations. * Update itertools.pyi Moved the Optional which I accidentially put on the wrong function -.-
# Based on http://docs.python.org/3.2/library/itertools.html from typing import (Iterator, TypeVar, Iterable, overload, Any, Callable, Tuple, - Union, Sequence, Generic, Optional) + Generic, Optional) _T = TypeVar('_T') _S = TypeVar('_S') @@ -44,20 +44,18 @@ def islice(iterable: Iterable[_T], stop: int) -> Iterator[_T]...
packages/dcos-image-deps: bump msrest and msrestazure msrest 0.4.0 has a hardcoded dependency on enum34.
}, "msrest": { "kind": "url", - "url": "https://pypi.python.org/packages/f5/b6/176a2109be5354bbcb31bf52e32ed91b1fc398f1a30ed12db0b429c64928/msrest-0.4.0-py3-none-any.whl", - "sha1": "fdd0ae8546202f817f1bbddf2828bc0af1720514" + "url": "https://pypi.python.org/packages/a4/79/956d2475af557ccc7de76ef67087fc8e7b591162748ab7...
Update beta_binom_post_pred_plot.py In the latest stable version of scipy, comb is scipy.special instead of scipy.misc.
@@ -8,8 +8,7 @@ import os figdir = os.path.join(os.environ["PYPROBML"], "figures") def save_fig(fname): plt.savefig(os.path.join(figdir, fname)) -from scipy.misc import comb -from scipy.special import beta +from scipy.special import comb, beta from scipy.stats import binom
Consider ResourceWarnings as errors for shutdown test Trinity shutdowns are improving which means we ocassionally get shutdowns that are considered clean which then causes our xfail to fail. Let's consider ResourceWarnings as errors, too.
@@ -15,6 +15,7 @@ async def scan_for_errors(async_iterable): error_trigger = ( "exception was never retrieved", + "ResourceWarning: unclosed resource", "Task was destroyed but it is pending", "Traceback (most recent call last)", )
Fixed an issue where you couldn't get the gcd of strings Something to do with the gosh darn Pickling not liking generators (Note: that's the actual built-in type, not my Generators)
@@ -139,8 +139,7 @@ class Generator: self.generated.append(f) return f def __iter__(self): - import copy - return iter(copy.deepcopy(self.gen)) + return self def _map(self, function): return Generator(map(lambda x: function([x])[-1], self.gen)) def _filter(self, function): @@ -510,15 +509,15 @@ def gcd(lhs, rhs=None): ...
try_load argument into targetdata.py Allows users to check if TPF has already been created and stored in .eleanor directory. try_load default == True
@@ -53,6 +53,9 @@ class TargetData(object): If true, will return a light curve made with a simple PSF model. cal_cadences : tuple, optional Start and end cadence numbers to use for optimal aperture selection. + try_load: bool, optional + If true, will search hidden ~/.eleanor directory to see if TPF has already + been ...
Adds gh link to mnist dataset Will revert when deeplearning.net comes back online.
@@ -47,7 +47,7 @@ PATH = DATA_PATH / "mnist" PATH.mkdir(parents=True, exist_ok=True) -URL = "http://deeplearning.net/data/mnist/" +URL = "https://github.com/pytorch/tutorials/raw/master/_static/" FILENAME = "mnist.pkl.gz" if not (PATH / FILENAME).exists():
Set umask 022 before starting prod install. Fixes
@@ -4,6 +4,7 @@ if [ "$EUID" -ne 0 ]; then echo "Error: The installation script must be run as root" >&2 exit 1 fi +umask 022 mkdir -p /var/log/zulip "$(dirname "$(dirname "$0")")/lib/install" "$@" 2>&1 | tee -a /var/log/zulip/install.log
Normalize imported dependency header- and lib-paths. This is mainly intended as a workaround for but generally a good idea.
@@ -261,6 +261,7 @@ def gather_imports(fips_dir, proj_dir) : # add header search paths for imp_hdr in deps[imp_proj_name]['exports']['header-dirs'] : hdr_path = '{}/{}/{}'.format(ws_dir, imp_proj_name, imp_hdr) + hdr_path = os.path.normpath(hdr_path) if not os.path.isdir(hdr_path) : log.warn("header search path '{}' no...
GDB "next": when about to return, run the "finish" command TN:
@@ -282,9 +282,7 @@ class NextCommand(BaseCommand): # reach it. gdb.execute('until {}'.format(root_expr.line_no)) else: - print('Cannot resume execution: {} is about to return'.format( - prop_repr(state.property) - )) + gdb.execute('finish') else: # Depending on the control flow behavior of the currently running
[doc] Fix documentation target for getglobaluserinfo This seems like a typo
@@ -2201,7 +2201,8 @@ class APISite(BaseSite): self._globaluserinfo['registration'] = iso_ts return self._globaluserinfo - globaluserinfo = property(fget=getglobaluserinfo, doc=getuserinfo.__doc__) + globaluserinfo = property(fget=getglobaluserinfo, + doc=getglobaluserinfo.__doc__) @remove_last_args(['sysop']) def is_b...
patched `numpy/core/setup_common.py` to check for the `-ipo` flag when running the intel compiler and not on windows before checking for the long double representation, as this option causes the compiler to generate intermediary object files and interferes with checking the representation. This had already been done f...
@@ -216,6 +216,24 @@ def check_long_double_representation(cmd): except (AttributeError, ValueError): pass + # Disable multi-file interprocedural optimization in the Intel compiler on Linux + # which generates intermediary object files and prevents checking the + # float representation. + elif sys.platform != "win32" an...
Remove comment Summary: Remove pointer to nonexistent Note. It is already removed in "Remove support for CUDNN 6 (#15851)" Pull Request resolved:
@@ -194,7 +194,6 @@ struct AT_CUDA_API DropoutDescriptor } // Restore a dropout descriptor given a dropout probability and existing RNG state. - // See Note [cuDNN dropout descriptor initialization] void set(cudnnHandle_t handle, float dropout, at::Tensor state_) { AT_ASSERTM(dropout > 0, "dropout must be nonzero; othe...
Version .9.2.4 Removed regex constraint which prevented tables with leading numeric characters from being analysed
@@ -48,7 +48,7 @@ import datetime from _curses import OK import math -__version__ = ".9.2.3" +__version__ = ".9.2.4" OK = 0 ERROR = 1 @@ -879,7 +879,7 @@ join pg_namespace as pgn on pgn.oid = pgc.relnamespace join (select tbl, count(*) as mbytes from stv_blocklist group by tbl) b on a.id=b.tbl where pgn.nspname = '%s' ...
Stopping initial animation for carousel Adding local state interaction tracker so that carousel knows when it's been interacted with/when to animate
return { contentSetStart: 0, leftToRight: false, + // tracks whether the carousel has been interacted with + interacted: false, }; }, watch: { const newIndexTooLarge = this.contentSetEnd >= this.contents.length; const newIndexTooSmall = newStartIndex < 0; const enoughContentForASet = this.contents.length >= this.conten...
Fix for broken /jobs/<jid> in 2016.11.4 Fixes
@@ -74,6 +74,7 @@ class RunnerClient(mixins.SyncClientMixin, mixins.AsyncClientMixin, object): reserved_kwargs = dict([(i, low.pop(i)) for i in [ 'username', 'password', 'eauth', 'token', 'client', 'user', 'key', + '__current_eauth_groups','__current_eauth_user', ] if i in low]) # Run name=value args through parse_inpu...
Ncf iter issue Ncf iter issue fix
@@ -56,13 +56,12 @@ class BaseRecommenderMetric(FullDatasetEvaluationMetric): self.gt_items[annotation.user] = annotation.item def evaluate(self, annotations, predictions): - iter_num = len(self.pred_per_user[0]) - measure = [] for user in range(self.users_num): if not self.pred_per_user[user]: continue map_item_score ...
Fix package build dependencies Apparently, they were lost during some rebase:(
@@ -47,8 +47,9 @@ fedora_epoch = 1 pwd = os.getcwd() home = os.environ["HOME"] + def gen_control_file(pkg: Package, out): - str_build_deps = ", ".join(build_deps) + str_build_deps = ", ".join(common_deps) file_contents = f''' Source: {pkg.name.lower()} Section: utils @@ -66,8 +67,9 @@ Description: {pkg.desc} with open(...
test_external: Refactor mock.patch to assertLogs. Replaced mock.patch with assertLogs for testing log outputs in file zerver/tests/test_external.py
@@ -118,16 +118,17 @@ class RateLimitTests(ZulipTestCase): self.assert_json_success(result) - @mock.patch('zerver.lib.rate_limiter.logger.warning') - def test_hit_ratelimiterlockingexception(self, mock_warn: mock.MagicMock) -> None: + def test_hit_ratelimiterlockingexception(self) -> None: user = self.example_user('cor...
docs: Update Docker development instructions to include chown. This adds a command to change ownership of /srv/zulip to the zulip user.
@@ -395,7 +395,8 @@ docker build -t user/zulipdev . Commit and tag the provisioned images. The below will install Zulip's dependencies: ``` docker run -itv $(pwd):/srv/zulip -p 9991:9991 user/zulipdev /bin/bash -# /bin/bash /srv/zulip/tools/provision --docker +$ /bin/bash sudo chmod -R zulip:zulip /srv/zulip +$ /bin/ba...
Bumping the version To get the temp fix for pyqtgraph due to regressions plotting spectrograms
@@ -7,7 +7,7 @@ from codecs import open setup( name='pyspedas', - version='1.0', + version='1.0.1', description='Python Space Physics Environment Data Analysis\ Software (SPEDAS)', long_description=open('README.md').read(),
memory: Map lowmem using 16K pages only Turns out CTRR does not like working with huge pages, and just throws up its hands in the air with an L2 address size fault if a huge page overlaps the CTRR region.
@@ -260,7 +260,13 @@ int mmu_map(u64 from, u64 to, u64 size) return -1; // L3 mappings to boundary - chunk = min(size, ALIGN_UP(from, MASK(VADDR_L2_OFFSET_BITS)) - from); + u64 boundary = ALIGN_UP(from, MASK(VADDR_L2_OFFSET_BITS)); + // CPU CTRR doesn't like L2 mappings crossing CTRR boundaries! + // Map everything bel...
[realms] Replace forgotten TODO. TBR=tandrii@chromium.org
@@ -31,7 +31,8 @@ def expand_realms(db, project_id, realms_cfg): All such realms_pb2.Realms messages across all projects (plus a list of all defined permissions with all their metadata) are later merged together into - a final universal realms_pb2.Realms by TODO. + a final universal realms_pb2.Realms by realms.merge(.....
2.5.9 Automatically generated by python-semantic-release
@@ -9,7 +9,7 @@ https://community.home-assistant.io/t/echo-devices-alexa-as-media-player-testers """ from datetime import timedelta -__version__ = "2.5.8" +__version__ = "2.5.9" PROJECT_URL = "https://github.com/custom-components/alexa_media_player/" ISSUE_URL = "{}issues".format(PROJECT_URL)
Fix onConnect docstring regarding return value The docstring mentioned a ConnectionAccept to be returned, whilst this model exists it doesn't seem to be used and the actual expected return value is str.
@@ -411,9 +411,9 @@ class IWebSocketChannel(object): :returns: When this callback is fired on a WebSocket server, you may return either ``None`` (in which case the connection is accepted with no specific WebSocket subprotocol) or - an instance of :class:`autobahn.websocket.types.ConnectionAccept`. + an str instance wit...
Refactor RandomSampler to use IdentitySampler This also gives us the 'seed' parameter for free.
""" A sampler that gives random samples. """ -from random import choice from dimod.core.sampler import Sampler -from dimod.sampleset import SampleSet +from dimod.reference.samplers.identity_sampler import IdentitySampler + __all__ = ['RandomSampler'] @@ -48,7 +48,7 @@ class RandomSampler(Sampler): self.parameters = {'n...
Update params.yaml Doing 25 epochs instead of 16
@@ -14,7 +14,7 @@ constants: csv_test: !ref <constants.data_folder>/test.csv # Neural Parameters - number_of_epochs: 16 + number_of_epochs: 25 batch_size: 8 lr: 1.0 dropout_rate: 0.15
Updates "precomp" matrix for wildcard budget to include SPAM term directly. Previously we added the SPAM component of a circuit's budget separately, but this is nicer for the alternate methods we're testing to solve the wildcard optimization.
@@ -168,6 +168,10 @@ class WildcardBudget(object): circuit_budget_matrix[i, self.primOpLookup[layer]] += 1.0 for component in layer.components: circuit_budget_matrix[i, self.primOpLookup[component]] += 1.0 + + if self.spam_index is not None: + circuit_budget_matrix[:, self.spam_index] = 1.0 + return circuit_budget_matr...
Update loa.py Replaced one of the placeholder function args descriptions with correct one Replaced use of np.max() function with max() function
@@ -154,13 +154,13 @@ class LionOptimizationAlgorithm(Algorithm): Args: population_size (Optional[int]): Population size :math:`\in [1, \infty)`. - burden_factor (Optional[float]): Burden factor :math:`\in [0, 1]`. - death_rate (Optional[float]): Dying rate :math:`\in [0, 1]`. - visibility (Optional[float]): View range...
Handle change in domain check behaviour in statsmodels 0.12. statsmodels 0.12 fixed a bug where evaluating points outside of the domain in density estimation now returns np.nan instead of raising a ValueError. Detect both cases and fallback to estimating the density point-wise.
@@ -185,6 +185,8 @@ def compute_density(x, weight, range, **params): try: y = kde.evaluate(x2) + if np.isscalar(y) and np.isnan(y): + raise ValueError('kde.evaluate returned nan') except ValueError: y = [] for _x in x2:
fix(recorder): Use EXPLAIN instead of EXPLAIN EXTENDED EXPLAIN EXTENDED is not a valid postgres query, use EXPLAIN instead
@@ -33,7 +33,7 @@ def sql(*args, **kwargs): # Collect EXPLAIN for executed query if query.lower().strip().split()[0] in ("select", "update", "delete"): # Only SELECT/UPDATE/DELETE queries can be "EXPLAIN"ed - explain_result = frappe.db._sql("EXPLAIN EXTENDED {}".format(query), as_dict=True) + explain_result = frappe.db...
Update nwm-archive.yaml Additional edits to formatting.
Name: NOAA National Water Model CONUS Retrospective Dataset Description: | - The NOAA National Water Model Retrospective dataset contains input and output from multi-decade CONUS retrospective simulations. These simulations used meteorological input fields from meteorological retrospective datasets. The output frequenc...
Update tutorial.rst Fixed typo
@@ -488,7 +488,7 @@ The `JSON Lines`_ format is useful because it's stream-like, you can easily append new records to it. It doesn't have the same problem of JSON when you run twice. Also, as each record is a separate line, you can process big files without having to fit everything in memory, there are tools like `JQ`_...
PR + Governance updates to CONTRIBUTING.md * Add note about PRs and governance Closes * Add note about CoC. Related to
@@ -93,6 +93,23 @@ Contribution Guidelines .. _formatting: https://molecule.readthedocs.io/en/latest/testing.html#formatting .. _linting: https://molecule.readthedocs.io/en/latest/testing.html#linting +Code Of Conduct +=============== + +Please see our `Code of Conduct`_ document. + +.. _Code of Conduct: https://github...
Remove use of the term "subdirectories". While gsutil mimics a directory structure in some ways, it's more appropriate to think of it as common prefixes to object names.
@@ -52,27 +52,30 @@ _DETAILED_HELP_TEXT = (""" gsutil mv ./dir gs://my_bucket -<B>RENAMING BUCKET SUBDIRECTORIES</B> - You can use the gsutil mv command to rename subdirectories. For example, - the command: +<B>RENAMING GROUPS OF OBJECTS</B> + You can use the gsutil mv command to rename all objects with a given prefix ...
Fix filename for download_saved_models This fix reflects examples changes.
@@ -63,7 +63,7 @@ For now, we'll just download pre-trained models with the script provided by the .. code-block:: bash - ./download_saved_models.sh + python download_saved_models.py This script downloads the pre-trained PyTorch models and puts them into the ``saved_models`` folder.
docs: Fix Grammar in Settings Transaction Family Change "remain pieces" to "remaining pieces".
@@ -143,7 +143,7 @@ following algorithm: Setting keys are broken into four parts, based on the dots in the string. For example, the address for the key `a.b.c` is computed based on `a`, `b`, `c` and the empty string. A longer key, for example `a.b.c.d.e`, is still broken into -four parts, but the remain pieces are in t...
Fix behavior of delete_documents() with filters for Milvus * Fix behavior of delete_documents() Delete filtered set of vectors rather than the whole collection * Update milvus.py * Update milvus.py
@@ -403,6 +403,10 @@ class MilvusDocumentStore(SQLDocumentStore): if status.code != Status.SUCCESS: raise RuntimeError(f'Milvus has collection check failed: {status}') if ok: + if filters: + existing_docs = super().get_all_documents(filters=filters, index=index) + self._delete_vector_ids_from_milvus(documents=existing_...
max_shown_downlinks add default value HG-- branch : feature/microservices
@@ -70,7 +70,8 @@ Ext.define("NOC.inv.networksegment.Model", { }, { name: "max_shown_downlinks", - type: "integer" + type: "integer", + defaultValue: 1000 } ] });
Remove the lock from the history recorder Thread safety should be the responsibility of the handler as not all handlers may require a lock
# distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF # ANY KIND, either express or implied. See the License for the specific # language governing permissions and limitations under the License. - -import threading import logging @@ -28,7 +26,6 @@ class HistoryRecorder(object): def __init__(self): self....
repository/legacy: log auth failures Resolves:
@@ -382,4 +382,10 @@ class LegacyRepository(PyPiRepository): except requests.HTTPError as e: raise RepositoryError(e) + if response.status_code in (401, 403): + self._log( + "Authorization error accessing {url}".format(url=url), level="warn" + ) + return + return Page(url, response.content, response.headers)
Fixed issue where RemoteCopy is returning empty string. This is causing dependant functions to return PSObject values instead of strings. This is resulting in multiple failures.
@@ -1170,7 +1170,6 @@ Function RemoteCopy($uploadTo, $downloadFrom, $downloadTo, $port, $files, $usern Start-Sleep -Seconds 1 $uploadJobStatus = Get-Job -Id $uploadJob.Id } - Write-Output "" $returnCode = Get-Content -Path $uploadStatusRandomFile Remove-Item -Force $uploadStatusRandomFile | Out-Null Remove-Job -Id $upl...
LogicVarType.c_type: turn the Exception into a language check TN:
@@ -561,7 +561,9 @@ class LogicVarType(BasicType): @classmethod def c_type(cls, c_api_settings): - raise Exception("Cannot expose logic variables to C at the moment") + check_source_language( + False, "Cannot expose logic variables to C at the moment" + ) class EquationType(BasicType):
group_by doesn't seem to apply for form reports Getting a validation error here: Introduced in
@@ -593,13 +593,16 @@ class ConfigureChartReport(ReportBuilderView): }) return self._handle_exception(error_response, e) field_names = report_form.fields.keys() + is_group_by_required = (report_form.source_type != 'form' + and ('group_by' in field_names + or 'location' in field_names)) return { 'report': { "title": sel...
Environment var for UPLOAD_FOLDER It would be helpful to have the option to set the UPLOAD_FOLDER via environment variable. This change allows that.
@@ -77,7 +77,7 @@ class Config(object): The default destination is the CTFd/uploads folder. If you need Amazon S3 files you can use the CTFd S3 plugin: https://github.com/ColdHeat/CTFd-S3-plugin ''' - UPLOAD_FOLDER = os.path.join(os.path.dirname(__file__), 'uploads') + UPLOAD_FOLDER = os.environ.get('UPLOAD_FOLDER') or...
docs: required reviews changed from 3 to 2 tidying up stale info looking at the docs
@@ -138,7 +138,7 @@ PR is selected for the merge only if: - PR is not a Draft. - PR has a green status (successful build). - PR doesn't have merge conflicts with `master` branch. -- PR has 3 approved reviews (as described above). +- PR has approved reviews (as described above). - PR does not have any [official reviewer...
landing-page: Change "Help Center" => "Why Zulip". We have a good "Help Center" section in the footer, where a user may already expect to look for help/support related requests, so we can replace the navbar spot there with the "Why Zulip" page link.
<li on-page="integrations"> <a href="/integrations/">Integrations</a> </li> - <li on-page="help"> - <a href="/help/">Help Center</a> + <li> + <a href="/why-zulip/">Why Zulip</a> </li> {% if user_is_authenticated %} {% include 'zerver/portico-header-dropdown.html' %}
Make a copy of source array This prevents reference-counting issues
"""Definitions for different agents that can be controlled from Holodeck""" from functools import reduce +from typing import Any import numpy as np @@ -249,7 +250,7 @@ class HolodeckAgent: # Allow for smaller arrays to be provided as input if len(self._action_buffer) > len(action): - action = np.asarray(action) + actio...
llvm, functions/LinearMatrix: Drop custom _result_length method The shared on works OK, and it's on its way out anyway.
@@ -4666,10 +4666,6 @@ class LinearMatrix(TransferFunction): # --------------------------------------- else: return np.array(specification) - @property - def _result_length(self): - return len(self.instance_defaults.value) - def get_output_struct_type(self): default_val = self.instance_defaults.value
No need to call raise_for_status in get_config_and_id_from_registry query_registry already calls requests.Response.raise_for_status. So, no need to call it again in get_config_and_id_from_registry.
@@ -945,13 +945,11 @@ class RegistryClient(object): """ response = query_registry( self._session, image, digest=digest, version=version) - response.raise_for_status() manifest_config = response.json() config_digest = manifest_config['config']['digest'] config_response = query_registry( self._session, image, digest=conf...
Drop unused We don't need to colate data by db_alias after loading it, because each worker is dedicated to its own db_alias, so stats are already grouped when they are collected.
@@ -164,37 +164,6 @@ def _reset_sequences(load_stats): cursor.execute(line) -def load_objects(objects): - """Load the given list of object dictionaries into the database - :return: List of LoadStat objects - """ - load_stats_by_db = {} - - objects_by_db = _group_objects_by_db(objects) - executor = ProcessPoolExecutor(m...
Prometheus version bump - 2.7.1 Bugfix and security release:
%define debug_package %{nil} Name: prometheus2 -Version: 2.7.0 +Version: 2.7.1 Release: 1%{?dist} -Summary: The Prometheus 2.7.0 monitoring system and time series database. +Summary: The Prometheus 2.7.1 monitoring system and time series database. License: ASL 2.0 URL: https://prometheus.io Conflicts: prometheus
fix - enum for color coding in PS Some keys are really weird in PS
"type": "list", "key": "color_code", "label": "Color codes for layers", - "object_type": "text" + "type": "enum", + "multiselection": true, + "enum_items": [ + { "red": "red" }, + { "orange": "orange" }, + { "yellowColor": "yellow" }, + { "grain": "green" }, + { "blue": "blue" }, + { "violet": "violet" }, + { "gray": "...
rbd-mirror: fix systemd unit in purge-docker rbd-mirror containers are not stopped in purge-docker-cluster playbook because of the wrong name used.
- name: disable ceph rbd-mirror service service: - name: "ceph-rbd-mirror@{{ ansible_hostname }}" + name: "ceph-rbd-mirror@rbd-mirror.{{ ansible_hostname }}" state: stopped enabled: no ignore_errors: true
Update generic.txt > ```stop_ransomware```
@@ -4516,10 +4516,6 @@ climapro-africa.com wwkkss.com -# Reference: https://twitter.com/petrovic082/status/1152952807600939008 - -bruze2.ug - # Reference: https://twitter.com/bad_packets/status/1153089384884736000 silynigr.xyz @@ -12576,10 +12572,6 @@ f0468736.xsph.ru 91.208.245.201:443 oooooooooo.ga -# Reference: http...
born_in_month more born_in_month
@@ -960,6 +960,8 @@ class ChildHealthMonthlyAggregationHelper(BaseICDSAggregationHelper): age_in_months = "(({} - child_health.dob) / 30.4 )".format(start_month_string) open_in_month = ("(({} - child_health.opened_on::date)::integer >= 0) AND (child_health.closed = 0 OR (child_health.closed_on::date - {})::integer > 0)...
Update POST for view * Update POST for view In the way POST view works is altered so that the same functionality is available as in GET view. This commit updates the POST view documentation to reflect this new behavior.
transfer size for attachments. .. http:post:: /{db}/_design/{ddoc}/_view/{view} - :synopsis: Returns certain rows for the specified stored view + :synopsis: Returns results for the specified view Executes the specified view function from the specified design document. - Unlike :get:`/{db}/_design/{ddoc}/_view/{view}` f...