message
stringlengths
13
484
diff
stringlengths
38
4.63k
Remove note about needing at least one route That's no longer true with the new deployer.
@@ -22,10 +22,6 @@ decorator. Let's look at an example. def every_hour(event): print(event.to_dict()) - @app.route('/') - def index(): - return {'hello': 'world'} - In this example, we've updated the starter hello world app with a scheduled event. When you run ``chalice deploy`` Chalice will create @@ -48,8 +44,3 @@ in...
Fix Msh2MeshIO: Skip writting data if out is None, write all digits for node coordinates, write material ids.
@@ -2899,7 +2899,7 @@ class Msh2MeshIO(MeshIO): if drop_z and nm.sum(coors[:, -1]) == 0.0: coors = coors[:, :-1] - mesh._set_io_data(coors[:,1:], nm.int32(coors[:,-1] * 0), + mesh._set_io_data(coors[:,1:], nm.int32(coors[:,-1] * 1), conns0, mat_ids0, descs0) return mesh @@ -3009,14 +3009,6 @@ class Msh2MeshIO(MeshIO): ...
Allow username detection on older Cisco ios versions This switches to the older `| include` syntax, and allows usernames with `password` to be detected.
@@ -3034,14 +3034,14 @@ class IOSDriver(NetworkDriver): """ username_regex = ( r"^username\s+(?P<username>\S+)\s+(?:privilege\s+(?P<priv_level>\S+)" - r"\s+)?(?:secret \d+\s+(?P<pwd_hash>\S+))?$" + r"\s+)?(?:(password|secret) \d+\s+(?P<pwd_hash>\S+))?$" ) pub_keychain_regex = ( r"^\s+username\s+(?P<username>\S+)(?P<key...
Ensure topic as bytes when zmq_filtering enabled when send multipart in zeromq, the first data should be bytes Conflicts: - salt/transport/zeromq.py
@@ -864,7 +864,7 @@ class ZeroMQPubServerChannel(salt.transport.server.PubServerChannel): else: # TODO: constants file for "broadcast" log.trace('Sending broadcasted data over publisher %s', pub_uri) - pub_sock.send('broadcast', flags=zmq.SNDMORE) + pub_sock.send(b'broadcast', flags=zmq.SNDMORE) pub_sock.send(payload) ...
protocols: don't listen when using udp forgot to correctly tests udp part Fixes: (protocols: support SO_REUSEPORT)
@@ -50,12 +50,12 @@ class CarbonService(service.Service): if hasattr(socket, "SO_REUSEPORT"): carbon_sock.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEPORT, 1) carbon_sock.bind((self.interface, self.port)) - carbon_sock.listen(tmp_port.backlog) if hasattr(self.protocol, 'datagramReceived'): self._port = reactor.adoptDa...
DOC: Update to clarify actual behavior real_if_(all elements)_close Updated the description to consider all array elements Updated the examples to use multiple elements array, to show that one element not close enough prevent for the whole array to be considered as real Closes
@@ -492,7 +492,8 @@ def _real_if_close_dispatcher(a, tol=None): @array_function_dispatch(_real_if_close_dispatcher) def real_if_close(a, tol=100): """ - If complex input returns a real array if complex parts are close to zero. + If input is complex with all imaginary parts close to zero, return + real parts. "Close to ...
Update callback_data.py Can't pass 0 to value, raises error 'ValueError: Value for {part} is not passed!'
@@ -55,7 +55,7 @@ class CallbackData: for part in self._part_names: value = kwargs.pop(part, None) - if not value: + if value is None: if args: value = args.pop(0) else:
Adding background and for color to mulititextinput Adding background and foreground color support to multilinetextinput. This makes it possible to change colors. Only color that is still fixed is the placeholder text (SystemColors.GrayText).
from travertino.size import at_least from toga_winforms.libs import WinForms, SystemColors +from toga_winforms.colors import native_color from .base import Widget @@ -14,6 +15,7 @@ class MultilineTextInput(Widget): self.native.Enter += self.winforms_enter self.native.Leave += self.winforms_leave self._placeholder = Non...
Add assertion to test_consolidate_hashes_raises_exception Trivial follow up to related change to verify logger warning with both starting conditions. Related-Change:
@@ -6089,7 +6089,7 @@ class TestSuffixHashes(unittest.TestCase): open_loc = '__builtin__.open' if six.PY2 else 'builtins.open' with mock.patch(open_loc, watch_open): self.assertTrue(os.path.exists(inv_file)) - # no new suffixes get invalided... so no write iop + # no new suffixes get invalidated... so no write iop df_m...
qt gui: display nice error if QR code data overflows there is existing handler-code at e.g. but we should make sure setData() always raises the exc when needed, as paintEvent() is too late for nice handling. closes closes
from typing import Optional import qrcode +import qrcode.exceptions from PyQt5.QtGui import QColor, QPen import PyQt5.QtGui as QtGui @@ -16,6 +17,10 @@ from electrum.simple_config import SimpleConfig from .util import WindowModalDialog, WWLabel, getSaveFileName +class QrCodeDataOverflow(qrcode.exceptions.DataOverflowEr...
Fix SSLError caused by not passing the cafile When tls is enabled, the cafile needs to be passed in the session. Closes-Bug:
@@ -23,6 +23,7 @@ PASSWORD_PLUGIN = 'password' TRUSTEE_CONF_GROUP = 'trustee' KEYSTONE_AUTHTOKEN_GROUP = 'keystone_authtoken' loading.register_auth_conf_options(cfg.CONF, TRUSTEE_CONF_GROUP) +loading.register_session_conf_options(cfg.CONF, TRUSTEE_CONF_GROUP) loading.register_auth_conf_options(cfg.CONF, KEYSTONE_AUTHTO...
Clarify environment reset after configuration change See
@@ -66,6 +66,11 @@ For example, the number of lanes can be changed with: plt.imshow(env.render(mode="rgb_array")) plt.show() +.. warning:: + + The environment must be :py:meth:`~highway_env.envs.common.abstract.AbstractEnv.reset` before the change of configuration + is effective. + Training an agent -------------------...
GafferOSL::ShadingEngine : Get shading context from OSL The way we were previously caching these in thread local storage seems to have been creating some sort weird hard to reproduce crash.
@@ -622,6 +622,23 @@ OSL::ShadingSystem *shadingSystem() return g_shadingSystem; } +// This just exists to ensure that release is called +struct ShadingContextWrapper +{ + + ShadingContextWrapper() + : shadingContext( ::shadingSystem()->get_context() ) + { + } + + ~ShadingContextWrapper() + { + ::shadingSystem()->relea...
Gameboy : Rename gb_boot.bin to gb_bios.bin Since gambatte, mgba and vbam use it as gb_bios.bin, should we don't rename it to be in conformity? Thanks
@@ -143,7 +143,7 @@ game ( comment "Nintendo - Gameboy" rom ( name dmg_boot.bin size 256 crc 59c8598e md5 32fbbd84168d3482956eb3c5051637f5 sha1 4ed31ec6b0b175bb109c0eb5fd3d193da823339f ) - rom ( name gb_boot.bin size 256 crc 59c8598e md5 32fbbd84168d3482956eb3c5051637f5 sha1 4ed31ec6b0b175bb109c0eb5fd3d193da823339f ) +...
Test reading empty input with multiple cores See
@@ -31,9 +31,9 @@ def test_small(run): run('-a TTAGACATATCTCCGTCG', 'small.fastq', 'small.fastq') -def test_empty(run): +def test_empty(run, cores): """empty input""" - run('-a TTAGACATATCTCCGTCG', 'empty.fastq', 'empty.fastq') + run("--cores {} -a TTAGACATATCTCCGTCG".format(cores), "empty.fastq", "empty.fastq") def te...
Update gozi.txt [0] [1] ```Involved Domains``` ([1]).
@@ -65,3 +65,20 @@ yraco.cn/wpapi em2eddryi6ptkcnh.onion/wpapi nap7zb4gtnzwmxsv.onion/wpapi t7yz3cihrrzalznq.onion/wpapi + +# Reference: https://twitter.com/campuscodi/status/1039531511144431616 +# Reference: https://marcoramilli.blogspot.com/2018/08/hacking-hacker-stopping-big-botnet.html + +1000numbers.com +batteryga...
Closes netbox-community#9762 Added nat_outside to IPAddressTable class
@@ -369,6 +369,11 @@ class IPAddressTable(TenancyColumnsMixin, NetBoxTable): orderable=False, verbose_name='NAT (Inside)' ) + nat_outside = tables.Column( + linkify=True, + orderable=False, + verbose_name='NAT (Outside)' + ) assigned = columns.BooleanColumn( accessor='assigned_object_id', linkify=True, @@ -381,7 +386,7...
Fix, do not pass actual locals to import calls. * This was wasteful as generating the locals dictionary means a lot of C code potentially. * This only affects imports inside functions and classes, these are relatively rare. It is however going to be slightly faster of course.
@@ -172,8 +172,6 @@ def getImportModuleHardCode(to_name, module_name, import_name, needs_check, def generateImportModuleCode(to_name, expression, emit, context): - provider = expression.getParentVariableProvider() - globals_name = context.allocateTempName("import_globals") getLoadGlobalsCode( @@ -182,19 +180,6 @@ def g...
Reorder some stuff to make it a little easier to follow This does mean a second pass through the list of control nodes, but the separation of concerns is worth it IMO
@@ -990,9 +990,6 @@ class XForm(WrappedNode): return [] questions = [] - repeat_contexts = set() - group_contexts = set() - excluded_paths = set() # prevent adding the same question twice # control_nodes will contain all nodes in question tree (the <h:body> of an xform) # The question tree doesn't contain every questio...
Update mediaprocessor.py extra sort if streams were purged to clean things up
@@ -496,6 +496,7 @@ class MediaProcessor: options.remove(p) except: self.log.debug("Unable to purge stream, may already have been removed.") + return len(purge) > 0 def sublistIndexes(self, x, y): indexes = [] @@ -1062,7 +1063,8 @@ class MediaProcessor: } attachments.append(attachment) - self.purgeDuplicateStreams(acom...
Tests: Added support for testing installed version of Nuitka * We normally carefully try to avoid using the import path to find Nuitka to compile and test with, but we might also precisely want to use the installed version to compare against.
@@ -340,6 +340,8 @@ def compareWithCPython( """ + # Many cases to consider here, pylint: disable=too-many-branches + if dirname is None: path = filename else: @@ -351,12 +353,20 @@ def compareWithCPython( else: converted = False + if os.getenv("NUITKA_TEST_INSTALLED", "") == "1": command = [ sys.executable, - os.path.j...
Update survey with new IDs for Q4 Fix bug
@@ -32,10 +32,18 @@ SURVEYS = { 'exit_survey_campaign_id': 2208951, 'active': False, # allows cron job to skip this survey }, + # bug 1416244 'general-q3-2018': { # General survey for en-US users enabled in Q3 of 2018 'email_collection_survey_id': 4494159, 'exit_survey_id': 4456859, 'exit_survey_campaign_id': 7259518, ...
Added BlackHosts link to the "Interesting Applications" section Hope someone gets good use of this!
@@ -444,6 +444,8 @@ devices under a variety of operating systems. * [dnsmasq conversion script](https://gist.github.com/erlepereira/c11f4f7a3f60cd2071e79018e895fc8a#file-dnsmasq-antimalware) This GitHub gist has a short shell script (bash, will work on any 'nix) and uses `wget` & `awk` present in most distros, to fetch...
Add methods removed in 3.x to the changes doc. Refs
@@ -77,6 +77,7 @@ instead use :py:func:`prefetch` to achieve the same result. * The ``naive()`` method is now :py:meth:`~BaseQuery.objects`, which defaults to using the model class as the constructor, but accepts any callable to use as an alternate constructor. +* The ``annotate()`` query method is no longer supported....
Fix Slicer matplotlib-warning. Closes
@@ -1344,7 +1344,9 @@ class Slicer(object): the shown range. clim : None or list of [min, max] - For pcolormesh (vmin, vmax). + For `pcolormesh` (`vmin`, `vmax`). + + Note that this overrules `vmin`/`vmax` provided in `pcolor_opts`. xlim, ylim, zlim : None or list of [min, max] Axis limits. @@ -1363,7 +1365,13 @@ class...
Fix bug [FTL] Copying from Machinery to Source editor results in a broken string In editor.js->componentDidUpdate add else if to check the content copied from machinery tab. In case parsed to fluent message content is Junk, convert it to complex
@@ -92,6 +92,24 @@ export class EditorBase extends React.Component<EditorProps, State> { ) { this.analyzeFluentMessage(this.props.editor.translation); } + // If translation changes from machinery tab, + // check if it's valid and convert syntax to comlex if no. + else if ( + this.props.entity && + this.state.forceSourc...
Add the decorator to the reactor integration test This test occassionally fails on the develop branch and I cannot reproduce it. recommended to add the flaky decorator to the test until we can circle back around and look at this more closely.
@@ -12,6 +12,7 @@ from __future__ import absolute_import # Import Salt testing libs import tests.integration as integration +from tests.support.helpers import flaky # Import Salt libs import salt.utils.event @@ -22,6 +23,7 @@ class ReactorTest(integration.ModuleCase, integration.SaltMinionEventAssertsMixI Test Salt's r...
Fix response handling in tenant Response object from requests doesn't have status attribute, some code path will hit this: AttributeError: 'Response' object has no attribute 'status' Response doesn't have read() method either, changed to use text attribute.
@@ -514,7 +514,7 @@ class Tenant(): keylime_logging.log_http_response( logger, logging.ERROR, response.json()) logger.error( - f"POST command response: {response.status} Unexpected response from Cloud Verifier: {response.read()}") + f"POST command response: {response.status_code} Unexpected response from Cloud Verifier...
lnutil: add rationale for MIN_FUNDING_SAT related:
@@ -309,6 +309,12 @@ REDEEM_AFTER_DOUBLE_SPENT_DELAY = 30 CHANNEL_OPENING_TIMEOUT = 24*60*60 +# Small capacity channels are problematic for many reasons. As the onchain fees start to become +# significant compared to the capacity, things start to break down. e.g. the counterparty +# force-closing the channel costs much...
Added optional random seed for transition model of SwitchMultiTargetGroundTruthSimulator Removed random state argument from property. Now it just uses self.random_state
@@ -144,14 +144,18 @@ class SwitchMultiTargetGroundTruthSimulator(MultiTargetGroundTruthSimulator): The element in the ith row and the jth column is the probability of\ switching from the ith transition model in :attr:`transition_models`\ to the jth") + seed: Optional[int] = Property(default=None, doc="Seed for random ...
Fixed docstrings typo is_single, to as_single
@@ -294,7 +294,7 @@ def iterable_like(target, reference, fillvalue=None, as_single=False): Object taken as departure point. fillvalue : object, optional Fill value. Defaults to `None`. - is_single : bool, optional + as_single : bool, optional Reference should be regarded as a single entry. Defaults to `True`. Returns
Prevent viewbox auto-scaling to items that are not in the same scene. This can happen when an item that was previously added to the viewbox is then removed using scene.removeItem().
@@ -1280,7 +1280,7 @@ class ViewBox(GraphicsWidget): ## First collect all boundary information itemBounds = [] for item in items: - if not item.isVisible(): + if not item.isVisible() or not item.scene() is self.scene(): continue useX = True
Phrasing updates to new vendor doc Product suggested a slight change in phrasing for this page. This only changes a few sentences in the RFC page about new vendor integrations.
@@ -110,13 +110,12 @@ An approved RFC is not a commitment to implementation on any sort of timeline. T ## New hardware integrations -Several hardware vendors already have integrations with cirq. We are not -currently soliciting additional vendors. However, if you are considering -integrating with cirq, we would highly ...
Silence: persist silenced channels Can be used to support rescheduling.
@@ -2,6 +2,7 @@ import asyncio import json import logging from contextlib import suppress +from datetime import datetime, timedelta from typing import Optional from discord import TextChannel @@ -63,6 +64,10 @@ class Silence(commands.Cog): # Overwrites are stored as JSON. muted_channel_perms = RedisCache() + # Maps mut...
Python3.7: Fixup static linking with Anaconda on Linux * This may fix a whole class of errors with also pyenv. * Starting with 3.7 it's not longer an option to remove the "main.o" from the link library, so this is a workaround, that will also mean the function "Py_GetArgcArgv" is wrong result.
@@ -608,6 +608,7 @@ extern "C" { #if PYTHON_VERSION >= 300 #if defined(__GNUC__) +__attribute__((weak)) __attribute__((visibility("default"))) #endif void Py_GetArgcArgv(int *argc, wchar_t ***argv) { @@ -617,6 +618,7 @@ void Py_GetArgcArgv(int *argc, wchar_t ***argv) { #else #if defined(__GNUC__) +__attribute__((weak))...
Amt of candy gained added to event Since now candy gained is no longer fixed at 3, good to show user how many candies gained instead of just total
@@ -517,7 +517,7 @@ class PokemonGoBot(object): self.event_manager.register_event('skip_evolve') self.event_manager.register_event('threw_berry_failed', parameters=('status_code',)) self.event_manager.register_event('vip_pokemon') - self.event_manager.register_event('gained_candy', parameters=('quantity', 'type')) + se...
Make modpings rescheduling robust to unfilled cache Additionally, this adds a check which will remove entries in the redis cache of former moderators.
@@ -13,6 +13,7 @@ from bot.constants import Colours, Emojis, Guild, Icons, MODERATION_ROLES, Roles from bot.converters import Expiry from bot.log import get_logger from bot.utils import time +from bot.utils.members import get_or_fetch_member log = get_logger(__name__) @@ -57,18 +58,29 @@ class ModPings(Cog): log.trace(...
tooling: Make test-js-with-puppeteer fail fast on passing invalid file names. fixes:
@@ -106,15 +106,19 @@ def add_provision_check_override_param(parser: ArgumentParser) -> None: def find_js_test_files(test_dir: str, files: Iterable[str]) -> List[str]: test_files = [] for file in files: - file = min( + relative_file_path = min( ( os.path.join(test_dir, file_name) for file_name in os.listdir(test_dir) i...
Update worst_asns.txt Related to
# AS36352 (ColoCrossing) 107.172.0.0/16,colocrossing + +# Reference: https://twitter.com/malwrhunterteam/status/1248226241527844865 +# Reference: https://www.virustotal.com/gui/ip-address/213.176.32.0/details + +# AS22769 +213.176.32.0/19,ddosing network
MAINT: Tweaks to progress display. Factor out methods for starting/stopping display. Clear output after closing widget.
@@ -260,7 +260,7 @@ except ImportError: HAVE_WIDGETS = False try: - from IPython.display import display, HTML as IPython_HTML + from IPython.display import clear_output, display, HTML as IPython_HTML HAVE_IPYTHON = True except ImportError: HAVE_IPYTHON = False @@ -336,42 +336,52 @@ class IPythonWidgetProgressPublisher(...
Check in forgotten entity definition [skip appveyor] Added a plural of build signature to scons.mod and forgot to check in the change to that file, so validation failed on the CI run.
<!ENTITY contentsig "<phrase xmlns='http://www.scons.org/dbxsd/v1.0'>content signature</phrase>"> <!ENTITY contentsigs "<phrase xmlns='http://www.scons.org/dbxsd/v1.0'>content signatures</phrase>"> <!ENTITY buildsig "<phrase xmlns='http://www.scons.org/dbxsd/v1.0'>build signature</phrase>"> +<!ENTITY buildsigs "<phrase...
Update ASP README to highlight default recipe The Recipe was presented after some non-standard API calls, so moving the suggested usage up, giving it its own section, and reinforcing the suggested usage in the non-standard section.
# Introduction to ASP -This page documents the API for ASP (Automatic Sparsity), a tool that enables sparse training and inference for PyTorch models by adding 2 lines of Python. +This serves as a quick-start for ASP (Automatic SParsity), a tool that enables sparse training and inference for PyTorch models by adding 2 ...
Switch pypi & github release to do pypi last. It allows retagging in case of error, without being blocked by pypi because of the release already published. It is also not recommended at all to delete a pypi release, while github release is doable
@@ -27,20 +27,20 @@ notifications: on_failure: always on_start: never deploy: - - provider: pypi - user: JonathanHuot - password: - secure: "OozNM16flVLvqDoNzmoTENchhS1w0/dEJZvXBQK2KWmh8fyGj2UZus1vkl6bA5V3Yu9MZLYFpDcltl/qraY3Up6iXQpwKz4q+ICygAudYM2kJ5l8ZEe+wy2FikWbD6LkXf5uKIJJnPNSC8AI86ZyxM/XZxbYjj/+jXyJ1YFZwwQ=" - dis...
Update coords.py Added new unit possibilities for velocity Reduced the amount of time spent in initial for-loop
@@ -176,40 +176,60 @@ def scale_units(out_unit, in_unit): 'rad': ['rad', 'radian', 'radians'], 'h': ['h', 'hr', 'hrs', 'hours'], 'm': ['m', 'km', 'cm'], - 'm/s': ['m/s', 'cm/s', 'km/s']} + 'm/s': ['m/s', 'cm/s', 'km/s', 'm s$^{-1}$', + 'cm s$^{-1}$', 'km s$^{-1}$', 'm s-1', 'cm s-1', + 'km s-1']} + replace_str = {'/s':...
$.Lexer.Extract_Tokens: add contracts for the TDH formal TN:
@@ -55,7 +55,9 @@ package ${ada_lib_name}.Lexer is Tab_Stop : Positive := ${ctx.default_tab_stop}; With_Trivia : Boolean; TDH : in out Token_Data_Handler; - Diagnostics : in out Diagnostics_Vectors.Vector); + Diagnostics : in out Diagnostics_Vectors.Vector) + with Pre => Initialized (TDH) and then not Has_Source_Buffer...
Update pantheon-takeover.yaml Correct link to issue. Medium article (wrote by me)
@@ -5,7 +5,8 @@ info: author: pdteam severity: high reference: - - https://github.com/EdOverflow/can-i-take-over-xyz + - https://github.com/EdOverflow/can-i-take-over-xyz/issues/24 + - https://medium.com/bug-bounty/how-i-took-over-several-stanford-subdomains-also-let-me-explain-you-the-pain-to-report-it-d84b08704be8 ta...
Bugfix use the websocket context in the websocket method Rather than the request context
@@ -1696,7 +1696,7 @@ class Quart(Scaffold): for function in functions: response = await self.ensure_async(function)(response) - session_ = (websocket_context or _request_ctx_stack.top).session + session_ = (websocket_context or _websocket_ctx_stack.top).session if not self.session_interface.is_null_session(session_): ...
lint: Improve data-tippy-allowHTML error message. The error message a user gets from the linter when using the data-tippy-allowHTML attribute now conveys the fact that the <template> tag is supposed to hold the tooltip content. This might make understanding the correct workflow easier for someone who encounters this er...
@@ -738,7 +738,7 @@ html_rules: List["Rule"] = [ }, { "pattern": r"(?i:data-tippy-allowHTML)", - "description": "Never use data-tippy-allowHTML; for an HTML tooltip, set data-tooltip-template-id to the id of a <template>.", + "description": "Never use data-tippy-allowHTML; for an HTML tooltip, set data-tooltip-template...
remove cardiac from docstring since intervals are meant to be more general (can be breath-to-breath)
@@ -15,7 +15,7 @@ def intervals_to_peaks(intervals, intervals_time=None, sampling_rate=1000): intervals_time : list or array, optional List or numpy array of timestamps corresponding to intervals, in seconds. sampling_rate : int, optional - Sampling rate (Hz) of the continuous cardiac signal in which the peaks occur. +...
Calories correct issue by replacing is by ==
@@ -40,9 +40,9 @@ class calories: return None gender_no = 0 - if(gender is "male" or gender is "man" or gender is "m"): + if(gender == "male" or gender == "man" or gender == "m"): gender_no = 5 - elif(gender is "female" or gender is 'woman' or gender is "f"): + elif(gender == "female" or gender == 'woman' or gender == ...
Run 'nosetests tests' for all Python versions except PyPy3 Also: make sure all tests, in whatever subdirectory, are run on PyPy3
@@ -53,4 +53,6 @@ jobs: install: - if [[ "$TRAVIS_PYTHON_VERSION" == "2"* ]] || [[ "$TRAVIS_PYTHON_VERSION" == "pypy"* ]]; then pip install -r requirements-py2.txt; else pip3 install -r requirements-py3.txt; fi # command to run tests -script: for s in tests/*.py; do nosetests -v "$s" || exit $?; done +script: + # pypy3...
update to use a single line if statement when dealing with prepended text add comment on using +2
@@ -3094,17 +3094,11 @@ def _getAdmlPresentationRefId(adml_data, ref_id): else: if etree.QName(p_item.tag).localname == 'text': if prepended_text: - if getattr(p_item, 'text', ''): - prepended_text = ' '.join([prepended_text, getattr(p_item, 'text', '').rstrip()]) + prepended_text = ' '.join((text for text in (prepende...
[Hexagon] Add default constructor to struct Optional in session.cc It's needed for older compilers.
@@ -62,6 +62,7 @@ struct Optional : public dmlc::optional<T> { using dmlc::optional<T>::optional; using dmlc::optional<T>::operator=; Optional(const T& val) : dmlc::optional<T>(val) {} // NOLINT(*) + Optional() = default; T* operator->() { return &this->operator*(); } const T* operator->() const { return &this->operato...
Disco Pane content update - Octo. 2017 * Disco Pane content update - Octo. 2017 Fixes * Fix ublock origin
@@ -19,13 +19,13 @@ class TestDiscoveryViewList(TestCase): # Represents a dummy version of `olympia.discovery.data` self.addons = OrderedDict([ - (696234, addon_factory(id=696234, type=amo.ADDON_PERSONA)), - (626810, addon_factory(id=626810, type=amo.ADDON_EXTENSION)), - (511962, addon_factory(id=511962, type=amo.ADDON...
Use -e and -x options when running bash Some errors were being masked before
@@ -34,7 +34,10 @@ cat << EOF | {{ docker.executable }} run -i \ {{ docker.image }} \ {{ docker.command }} || exit 1 +set -e +set +x export BINSTAR_TOKEN=${BINSTAR_TOKEN} +set -x export PYTHONUNBUFFERED=1 echo "$config" > ~/.condarc
Update .travis.yml for 3.4 workaround We'll drop 3.4 support in our next major release but until then this should keep travis builds working.
@@ -11,6 +11,8 @@ python: - "3.8" install: - pip install -U pip setuptools + # remove pyyaml line when we drop py3.4 support + - pip install "pyyaml<5.3" - pip install tox-travis pre-commit - pip install codecov script:
Tag the git clone version for penguin example during TFX 1.0 release period. During the release period, we change the API exported folders, examples and tutorials, to keep user experience for playing the example during the releasing period, tag the version for now and will update to head after release finished.
@@ -37,7 +37,7 @@ pip install -U tfx[examples] Then, clone the tfx repo and copy penguin/ folder to home directory: <pre class="devsite-terminal devsite-click-to-copy"> -git clone https://github.com/tensorflow/tfx ~/tfx-source && pushd ~/tfx-source +git clone https://github.com/tensorflow/tfx/releases/tag/v0.29.0 ~/tfx...
Add "KeyError" to bare except in azurearm Fixes pylint, refs
@@ -390,7 +390,7 @@ def list_nodes(conn=None, call=None): # pylint: disable=unused-argument try: provider, driver = __active_provider_name__.split(':') active_resource_group = __opts__['providers'][provider][driver]['resource_group'] - except: + except KeyError: pass for node in nodes:
Fix invalid alembic revision comment closes closes
"""Add track principal Revision ID: 2496c4adc7e9 -Revises: eefba82b42c5 +Revises: 4e459d27adab Create Date: 2019-10-02 18:20:33.866458 """
Rally must not log clear text user passwords Relates
@@ -12,7 +12,12 @@ class EsClientFactory: Abstracts how the Elasticsearch client is created. Intended for testing. """ def __init__(self, hosts, client_options): - logger.info("Creating ES client connected to %s with options [%s]" % (hosts, client_options)) + masked_client_options = dict(client_options) + if "basic_aut...
lemonwhale: try to find the ID of the video in a new way. fixes
@@ -4,7 +4,6 @@ from __future__ import absolute_import import re import json -from svtplay_dl.utils.urllib import unquote_plus from svtplay_dl.service import Service from svtplay_dl.error import ServiceError from svtplay_dl.fetcher.hls import hlsparse @@ -12,40 +11,56 @@ from svtplay_dl.utils import decode_html_entitie...
sync: switch to multiprocessing.Event We've switched most of this command over to multiprocessing and off of _threading, so do the Event object too. The APIs are the same between the modules, so we shouldn't need to update anything else. Tested-by: Mike Frysinger
@@ -850,7 +850,7 @@ later is required to fix a server side protocol bug. print('error: failed to remove existing smart sync override manifest: %s' % e, file=sys.stderr) - err_event = _threading.Event() + err_event = multiprocessing.Event() rp = self.manifest.repoProject rp.PreSync()
Replace 'pluginfooter' block with 'footer' and 'footer_links' blocks 'footer' blocks represents the <footer> html tag 'footer_links' are the anchor tags inside nav
{# Page footer #} <footer class="footer container-fluid"> - {# Plugin Custom Footer #} - {% block pluginfooter %}{% endblock %} - + {% block footer %} <div class="row align-items-center justify-content-between mx-0"> - {# Docs & Community Links #} <div class="col-sm-12 col-md-auto fs-4 noprint"> <nav class="nav justify...
docs: Remove unnecessary type annotations from tutorial. In we removed the need to explicitly declare types for Django model fields. Here, we update that detail in our documentation.
@@ -192,9 +192,9 @@ boolean field, `mandatory_topics`, to the Realm model in class Realm(models.Model): # ... - emails_restricted_to_domains: bool = models.BooleanField(default=True) - invite_required: bool = models.BooleanField(default=False) -+ mandatory_topics: bool = models.BooleanField(default=False) + emails_rest...
Update README formattng at README: Usage. fixed missing newlines. upadted indentation.
@@ -179,6 +179,7 @@ Magic shell completions are now enabled! Usage Examples: + Create a new project using Python 3.7, specifically: $ pipenv --python 3.7 @@ -204,6 +205,7 @@ Magic shell completions are now enabled! $ pipenv run pip freeze Commands: + check Checks for PyUp Safety security vulnerabilities and against PEP...
Fixes failing wildcard for ZMQ Resolves:
@@ -15,9 +15,8 @@ tls_check_hostnames = False ca_implementation = openssl # Revocation IP & Port used by either the cloud_agent or keylime_ca to receive -# revocation events from the verifier. A wildcard can be used to listen on all -# interfaces, or likewise a specific IP (e.g 192.168.0.1) -receive_revocation_ip= * +#...
Update map signals for 1.9.2 Use the from_claims variant for Hospital Admissions
@@ -38,7 +38,7 @@ map](https://covidcast.cmu.edu/): | Early Indicators | COVID-Related Doctor Visits | [`doctor-visits`](covidcast-signals/doctor-visits.md) | `smoothed_adj_cli` | | Early Indicators | COVID Indicator Combination | [`indicator-combination`](covidcast-signals/indicator-combination.md) | `nmf_day_doc_fbc_...
document `regex_replace` Jinja filter Fixes
@@ -405,6 +405,29 @@ Returns: None +.. jinja_ref:: regex_replace + +``regex_replace`` +----------------- + +.. versionadded:: 2017.7.0 + +Searches for a pattern and replaces with a sequence of characters. + +Example: + +.. code-block:: jinja + + {% set my_text = 'yes, this is a TEST' %} + {{ my_text | regex_replace(' (...
Partial revert "Updated docstrings" This reverts commit
@@ -53,7 +53,10 @@ def make_new_dset(parent, shape=None, dtype=None, data=None, name=None, fletcher32=None, maxshape=None, compression_opts=None, fillvalue=None, scaleoffset=None, track_times=None, external=None, track_order=None, dcpl=None): - """ Return a new low-level dataset identifier """ + """ Return a new low-le...
ENH: composable apply_to takes advatnage of tinydb based data stores [NEW] more efficient determination of data remaining to be processed
@@ -378,8 +378,11 @@ class Composable(ComposableType): process.output = None self.input = None + # with a tinydb dstore, this also excludes data that failed to complete + todo = [m for m in dstore if not self.job_done(m)] + for result in ui.imap( - process, dstore, parallel=parallel, par_kw=par_kw, mininterval=mininter...
Add reproduce_failure failure to hypothesis tests Add it by default. This makes it easier to replay an error.
@@ -28,6 +28,7 @@ from io import StringIO from typing import Iterable from gaphas.connector import Handle +from hypothesis import reproduce_failure # noqa from hypothesis.control import assume, cleanup from hypothesis.errors import UnsatisfiedAssumption from hypothesis.stateful import (
finalize backend JuMP.Model in http.jl should fix our memory leak!
@@ -10,8 +10,7 @@ function job(req::HTTP.Request) m = xpress_model(timeout, tol) @info "Starting REopt with timeout of $(timeout) seconds..." results = reopt(m, d) - # fix our memory leak? https://github.com/jump-dev/CPLEX.jl/issues/185 - m = nothing + finalize(backend(m)) GC.gc() @info "REopt model solved with status ...
Update README.md Correcting link for Enterprise Ethical Hacking
@@ -8,7 +8,7 @@ The following are the different video courses that will be part of the Art of Ha * [Security Penetration Testing (The Art of Hacking Series)](https://www.safaribooksonline.com/library/view/security-penetration-testing/9780134833989) * [Wireless Networks, IoT, and Mobile Devices Hacking (The Art of Hacki...
qt5: Fixup CC/CXX environment variables usage in test recipe The environment variables `CC`/`CXX` may contain spaces, e.g. if you use a Yocto SDK for cross-compiling. Therefore, we should enclose the values in quotes to prevent word splitting. Use same syntax as in `recipes/qt/5.x.x/conanfile.py` to be consist.
@@ -43,17 +43,17 @@ class TestPackageConan(ConanFile): os.environ[var] = val return val - value = _getenvpath('CC') + value = _getenvpath("CC") if value: - args += ['QMAKE_CC=' + value, - 'QMAKE_LINK_C=' + value, - 'QMAKE_LINK_C_SHLIB=' + value] + args += ['QMAKE_CC="' + value + '"', + 'QMAKE_LINK_C="' + value + '"', +...
CI/CD: Update base image `nvidia/cuda` from 11.1 to 11.1.1 update cuda_version 11.1 -> 11.1.1
@@ -88,8 +88,8 @@ jobs: # the config used in '.azure-pipelines/gpu-tests.yml' - {python_version: "3.9", pytorch_version: "1.12", cuda_version: "11.3.1", ubuntu_version: "20.04"} # latest (used in Tutorials) - - {python_version: "3.8", pytorch_version: "1.9", cuda_version: "11.1", ubuntu_version: "20.04"} - - {python_ve...
Fix noc-1459 Fix reportobjectsserial EXCEPTION: <class 'AttributeError'> 'NoneType' object has no attribute 'full_name'
@@ -92,15 +92,15 @@ class ReportFilterApplication(SimpleReport): platform = Platform.get_by_id(mo["platform"]) if mo.get("platform") else None vendor = Vendor.get_by_id(mo["vendor"]) if mo.get("vendor") else None version = Firmware.get_by_id(mo["version"]) if mo.get("version") else None - sn, hw = ra[mo["id"]][:2] + sn...
Add the missing documentation for mariadb recovery This change is a missing part for the new Kayobe functionality introduced in
@@ -250,6 +250,27 @@ Further information on backing up and restoring the database is available in the :kolla-ansible-doc:`Kolla Ansible documentation <admin/mariadb-backup-and-restore.html>`. +Performing Database Recovery +============================ + +Recover a completely stopped MariaDB cluster using the underlying...
fix graphql log message Summary: The GraphQL interface says this should not be null - so don't set it to None Test Plan: existing snapshot tests Reviewers: prha, max, schrockn
@@ -813,8 +813,9 @@ def construct_basic_params(graphene_info, event_record, execution_plan): check.opt_inst_param(execution_plan, 'execution_plan', ExecutionPlan) return { 'runId': event_record.run_id, - 'message': event_record.user_message - or (event_record.dagster_event.message if event_record.dagster_event else Non...
update kramdown security alert related to older kramdown version
@@ -68,7 +68,7 @@ GEM jekyll-theme-time-machine (= 0.1.1) jekyll-titles-from-headings (= 0.5.3) jemoji (= 0.12.0) - kramdown (= 2.3.0) + kramdown (= 2.3.1) kramdown-parser-gfm (= 1.1.0) liquid (= 4.0.3) mercenary (~> 0.3)
Add flag to disable gossip compression - Self-Managed Documentation for: Updated: Self-Managed Admin Guide > Configure Mattermost > Configuration Settings > High Availability > Enable Gossip Compression - Removed Cloud-first disclaimer note
@@ -1020,10 +1020,6 @@ Enable Gossip Compression **False**: All communication using the gossip protocol remains uncompressed. Once all servers in a cluster are upgraded to Mattermost v5.33 or later, we recommend that you disable this configuration setting for better performance. -.. note:: - - This configuration settin...
Remove unused method from metadata app _get_ovsdb_connection_string is not used anywhere in the project.
@@ -485,9 +485,6 @@ class DFMetadataProxyHandler(BaseMetadataProxyHandler): self.conf = conf self.nb_api = nb_api - def _get_ovsdb_connection_string(self): - return 'tcp:{}:6640'.format(cfg.CONF.df.management_ip) - def get_headers(self, req): remote_addr = req.remote_addr if not remote_addr:
Bug fix for stock item traking list Query was returning ALL stock tracking objects! Now filter by StockItem ID
sortable: true, search: true, method: 'get', + queryParams: function(p) { + return { + item: {{ item.pk }}, + } + }, columns: [ { field: 'date',
revent: Ignore name prefixes in add_listener When add_listener is given just a function and it uses the function name to infer the event type, it will now ignore things that look like a prefix. In other words, if you have a function like: def _handle_BLAH_SomeEvent (event): ... .. it now ignores the BLAH.
@@ -398,7 +398,8 @@ class EventMixin (object): if (not event_type) and not (event_name): if not handler.func_name.startswith("_handle_"): raise RuntimeError("Could not infer event type") - event_name = handler.func_name[8:] + #event_name = handler.func_name[8:] + event_name = handler.func_name.rsplit('_', 1)[-1] by_nam...
Update instructor for switching to team edition Since the enterprise branch and team branch are merged into master, the instruction to switch edition has changed.
@@ -51,4 +51,4 @@ Production Docker Setup on Mac OS X You can run a production deployment on Mac OS X by `installing Docker Compose using the online guide <http://docs.docker.com/installation/mac/>`_ then following the above instructions. -**Other options:** To install a feature-equivalent version of Mattermost that do...
Cleanup unused components in error-page. Remove display conditionals from template.
<h1>{{ $tr('selectLearners', { className }) }}</h1> <p>{{ $tr('showingAllUnassigned') }}</p> - <p v-if="facilityUsers.length === 0">{{ $tr('noUsersExist') }}</p> - - <p v-else-if="usersNotInClass.length === 0">{{ $tr('allUsersAlready') }}</p> - - <div v-else> <div class="actions-header"> <!-- TODO align right --> /> </...
Show that the enum values are unimportant Show that the numerical enum values are unimportant by assigning them with enum.auto().
@@ -29,24 +29,22 @@ Base = declarative_base(metadata=meta) class PhoneStatus(enum.Enum): - # unverified - unverified = 1 - # verified - verified = 2 + unverified = enum.auto() + verified = enum.auto() class HostingStatus(enum.Enum): - can_host = 1 - maybe = 2 - difficult = 3 - cant_host = 4 + can_host = enum.auto() + m...
remove matrixGroup surfaces it's better to handle each element surfaces seperatly, because not all elements have surfaces which creates empty gaps when drawing.
@@ -35,19 +35,6 @@ class MatrixGroup(Matrix): self._lastRayToBeTraced = None self._lastRayTrace = None - @property - def surfaces(self): - """ A list of interfaces that represents the element for drawing purposes - - We combine all interfaces into a single list of interfaces - """ - - allSurfaces = [] - for element in ...
Update integrate_new.py return removed family
@@ -81,7 +81,8 @@ class IntegrateAssetNew(pyblish.api.InstancePlugin): "assembly", "fbx", "textures", - "action" + "action", + "harmony.template" ] exclude_families = ["clip"] db_representation_context_keys = [
travis-ci: fix pip install typos and run lint under py2.7 only from lint branch When more of the pylint failures are fixed it might be run by default.
@@ -31,23 +31,29 @@ after_success: - codecov stages: - - test + - name: test + if: NOT branch = lint - lint + if: branch = lint - name: deploy if: branch = master if: type IN (push, api) if: tag IS present jobs: + fast_finish: true + allow_failures: + - stage: lint + include: # do various lint scans - stage: lint - pyt...
Warn on conditions that can trigger cuBLAS sgemm bug Summary: The sgemm in cuBLAS 9.0 has some issues with sizes above 2M on Maxwell and Pascal architectures. Warn in this case. Pull Request resolved:
#include <ATen/cuda/CUDABlas.h> #include <algorithm> +#include <mutex> float THCudaBlas_Sdot(THCState *state, int64_t n, float *x, int64_t incx, float *y, int64_t incy) { @@ -189,6 +190,26 @@ void adjustLdLevel3(char transa, char transb, int64_t m, int64_t n, int64_t k, i } +// Check https://github.com/pytorch/pytorch/...
Change the name of kubernetes-dashboard deployment. Related-Bug:
@@ -99,7 +99,7 @@ do done #echo check for existence of kubernetes-dashboard deployment -/usr/bin/kubectl get deployment kube-dashboard --namespace=kube-system +/usr/bin/kubectl get deployment kubernetes-dashboard --namespace=kube-system if [ "\$?" != "0" ]; then /usr/bin/kubectl create -f /srv/kubernetes/manifests/kube...
Description improvement for Google Cloud installs. Google Cloud allows port 587 for smtp.gmail.com and 2525 for other services such as SparkPost and Mailgun. Took a long time to figure this out.
"collapsible": 0, "columns": 0, "depends_on": "eval:!doc.domain && doc.enable_outgoing", - "description": "If non standard port (e.g. 587)", + "description": "If non standard port (e.g. 587). If on Google Cloud, try port 2525.", "fieldname": "smtp_port", "fieldtype": "Data", "hidden": 0,
fix: Start week from Sunday instead of Monday Like we do in client-side
@@ -246,7 +246,7 @@ def get_quarter_start(dt, as_str=False): def get_first_day_of_week(dt, as_str=False): dt = getdate(dt) - date = dt - datetime.timedelta(days=dt.weekday()) + date = dt - datetime.timedelta(days=(dt.weekday() + 1) % 7) return date.strftime(DATE_FORMAT) if as_str else date def get_year_start(dt, as_str...
Typos and dataset properties. We are moving forward in the investigation of the Federal Senate dataset. Soon we will send more news about it.
import pandas as pd -data = pd.read_csv('../data/2017-05-02-senado_2017.csv',sep=';',encoding = "ISO-8859-1", skiprows=1) +data = pd.read_csv('../data/senate_2017.csv',sep=';',encoding = "ISO-8859-1", skiprows=1) data.columns = map(str.lower, data.columns) data.shape @@ -36,12 +36,12 @@ data.rename(columns={ 'fornecedo...
solve ambiguous variable name 'l' this fix is far from ideal, it just fixes the flake8 style error for now. Solving in a more proper way would require further refactoring of this code. Preferably also reducing number of nested blocks.
@@ -91,10 +91,10 @@ def dia2django(archivo): myname = "\nclass %s(models.Model) :\n" % actclas clases[actclas] = [[], myid, myname, 0] if j.getAttribute("name") == "attributes": - for l in j.getElementsByTagName("dia:composite"): - if l.getAttribute("type") == "umlattribute": + for ll in j.getElementsByTagName("dia:com...
[doc] a better doc string for site.code and site.lang properties give a better explanation for the differences
@@ -811,7 +811,7 @@ class BaseSite(ComparableMixin): @property def code(self): """ - The identifying code for this Site. + The identifying code for this Site equal to the wiki prefix. By convention, this is usually an ISO language code, but it does not have to be. @@ -822,7 +822,7 @@ class BaseSite(ComparableMixin): de...
Fixing the incremental build to correctly normalize. Also switched to use the `match_dependents`. Fixes
@@ -96,6 +96,13 @@ class Pod(object): raise ValueError('.. not allowed in file paths.') return os.path.join(self.root, pod_path.lstrip('/')) + def _normalize_pod_path(self, pod_path): + if '..' in pod_path: + raise ValueError('.. not allowed in pod paths.') + if not pod_path.startswith('/'): + pod_path = '/{}'.format(p...
set_user_status: Fix the alignment of the selected emoji widget. This was previously hackily centered; we now center it properly.
.status_emoji_wrapper { height: 20px; width: 22px; - padding: 4px 8px 4px 8px; + padding: 6px 8px 2px 8px; border-right: 1px solid; border-color: inherit; cursor: pointer; .selected_emoji { width: 18px; height: 18px; - top: 4px; + top: 50%; + transform: translateY(-50%); cursor: pointer; } .smiley_icon {
Fix a variable shadowing bug TODO: Update unit tests to catch this; current graph in testdata/sync_pipeline.pbtxt is too simple (with only 3 components).
@@ -209,14 +209,13 @@ class SyncPipelineTaskGenerator(task_gen.TaskGenerator): execution.id), pipeline=self._pipeline) - def _upstream_nodes_executed(self, node: pipeline_pb2.PipelineNode) -> bool: + def _upstream_nodes_executed(self, + cur_node: pipeline_pb2.PipelineNode) -> bool: """Returns `True` if all the upstream...
Mark configuration file as required for both image and cluster creation The image builder process was using the default cli configuration path when not specified.
@@ -39,7 +39,9 @@ class CliCommand(ABC): if region_arg: parser.add_argument("-r", "--region", help="AWS Region to use.", choices=SUPPORTED_REGIONS) if config_arg: - parser.add_argument("-c", "--config", dest="config_file", help="Defines an alternative config file.") + parser.add_argument( + "-c", "--config", dest="conf...