message
stringlengths
13
484
diff
stringlengths
38
4.63k
[sync] make Monitor methods thread safe this becomes important when multiple frontends try to start / stop the daemon at the same time
@@ -2892,6 +2892,8 @@ class SyncMonitor: self.paused_by_user = Event() self.paused_by_user.set() + self._lock = RLock() + self.startup = Event() self.fs_event_handler = FSEventHandler(self.syncing, self.startup, self.sync) @@ -2926,6 +2928,8 @@ class SyncMonitor: def start(self): """Creates observer threads and starts ...
Remove duplicated "new feature" box on PPU page Closes
</p> </div> <div class="col-md-5"> - <p class="alert alert-info" style="margin-top: 0">This is a new, experimental feature. We'd love to <a href="mailto:{{ SUPPORT_TO_EMAIL }}" class="feedback-show" style="text-decoration: underline">hear your feedback</a>.</p> <p class="alert alert-info" style="margin-top: 0"> This is...
gift-pokemon: Gen III Both the new and the reboots
@@ -20,6 +20,11 @@ def gift_data(): G = get_version(u'gold') S = get_version(u'silver') C = get_version(u'crystal') + RU = get_version(u'ruby') + SA = get_version(u'sapphire') + EM = get_version(u'emerald') + FR = get_version(u'firered') + LG = get_version(u'leafgreen') return [ # Gen I [ u'bulbasaur', [ R, B ], 5, u'p...
Fixed quota update fails Fixed quota update fails
@@ -63,6 +63,7 @@ export class ManageEnvironmentComponent implements OnInit { if (this.getCurrentTotalValue()) { if (this.getCurrentTotalValue() >= this.getCurrentUsersTotal()) { this.manageUsersForm.controls['total'].setErrors(null); + if (this.manageUsersForm.controls['total'].value > 1000000000) this.manageUsersForm...
Put experimental examples at the end and order other examples alphabetically Test Plan: manual inspection Reviewers: sashank, yuhan
"title": "Asset Materialization", "description": "Record that a solid materialized an asset" }, - { - "name": "basic_pyspark", - "title": "PySpark", - "description": "Run PySpark code in solids" - }, { "name": "conditional_execution", "title": "Conditional Execution", "title": "Kubernetes Deployment", "description": "D...
Included: License file in the Linux package HG-- branch : TexText_0.6
@@ -4,10 +4,10 @@ rem rem The script creates a directory "textext-[Version]-linux" with a rem subdirectoy "extension". The extion files go into the extension rem subdirectory while the readme and setup-script are placed into -rem the "textext-[Version]-linu"x directory +rem the "textext-[Version]-linux" directory rem S...
Add type hinting in finite mdp See
import importlib from functools import partial +from typing import TYPE_CHECKING + import numpy as np from highway_env import utils +if TYPE_CHECKING: + from highway_env.envs import AbstractEnv + -def finite_mdp(env, - time_quantization=1., - horizon=10.): +def finite_mdp(env: 'AbstractEnv', + time_quantization: float ...
[modules/ping] Use framework background update functionality see
@@ -15,7 +15,6 @@ Parameters: import re import time -import threading import core.module import core.widget @@ -25,37 +24,6 @@ import core.decorators import util.cli -def get_rtt(module, widget): - try: - widget.set("rtt-unreachable", False) - res = util.cli.execute( - "ping -n -q -c {} -W {} {}".format( - widget.get("...
journal name validation When exporting, unusual characters cause an error in filename. so limited this with name validation.
@@ -31,6 +31,7 @@ from GUI.ui_dialog_journals import Ui_Dialog_journals from confirm_delete import DialogConfirmDelete import datetime import os +import re import sys import logging import traceback @@ -38,6 +39,7 @@ import traceback path = os.path.abspath(os.path.dirname(__file__)) logger = logging.getLogger(__name__)...
svtplay: Add support for tabs on genre pages Adds support for tabs on genre page, only works for the items on tabs that do not link to just a show page.
@@ -126,8 +126,22 @@ class Svtplay(Service, OpenGraphThumbMixin): def _genre(self, jansson): videos = [] - for i in jansson["clusterPage"]["clips"]: - videos.append(i["contentUrl"]) + parse = urlparse(self._url) + dataj= jansson["clusterPage"] + tab = re.search("tab=(.+)",parse.query) + if(tab): + tab = tab.group(1) + ...
Add a Python 2 version of make_image_classifier as a workaround for somebody's Python 3 problems. (This is not pip installed.)
@@ -55,6 +55,17 @@ py_binary( ], ) +# The make_image_classifier script as a PY2 py_binary. +py_binary( + name = "make_image_classifier_py2", + srcs = ["make_image_classifier.py"], + main = "make_image_classifier.py", + python_version = "PY2", + deps = [ + ":make_image_classifier_main", + ], +) + py_test( name = "make_i...
Fix undefined attribute bug in ELFBinaryFile. If the path to the ELF file is invalid, the _owns_file attribute would not be defined, but was accessed in __del__().
@@ -104,12 +104,12 @@ class ELFBinaryFile(object): """ def __init__(self, elf, memory_map=None): + self._owns_file = False if isinstance(elf, six.string_types): self._file = open(elf, 'rb') self._owns_file = True else: self._file = elf - self._owns_file = False self._elf = ELFFile(self._file) self._memory_map = memory_...
fix error on first annotation page open At first `checkpoint` localstorage entry does not exist, so `checkpoint` variable ends up to be `null`.
@@ -29,7 +29,7 @@ export const mutations = { localStorage.setItem('checkpoint', JSON.stringify(checkpoint)) }, loadPage(state) { - const checkpoint = JSON.parse(localStorage.getItem('checkpoint')) + const checkpoint = JSON.parse(localStorage.getItem('checkpoint')) || {} state.page = checkpoint[state.projectId] ? checkp...
Update search_files.py GK fix for modified timestamp extraction
@@ -146,7 +146,7 @@ class FileSeekerZip(FileSeekerBase): if fnmatch.fnmatch(member, filepattern): try: extracted_path = self.zip_file.extract(member, path=self.temp_folder) # already replaces illegal chars with _ when exporting - f = extracted_path.infolist() + f = self.zip_file.getinfo(member) date_time = f.date_time ...
Add more discussion of the --capture-key and --keyfile-path options Move them down to the OPTIONS section.
@@ -73,11 +73,9 @@ blockdev list [pool_name]:: List all blockdevs that make up the specified pool, or all pools, if no pool name is given. key set <(--keyfile-path <path> | --capture-key)> <key_desc>:: - Set a key in the kernel keyring for use with encryption either from a keyfile - or captured interactively from user ...
Update bonus.rtl.sh change duplicated line
@@ -16,7 +16,6 @@ if [ ${#network} -eq 0 ]; then exit 1 fi -source /mnt/hdd/raspiblitz.conf # add default value to raspi config if needed if ! grep -Eq "^rtlWebinterface=" /mnt/hdd/raspiblitz.conf; then
Remove Rietveld CQ config. Rietveld CQ has already been disabled and is no longer supoorted. TBR=agable@chromium.org No-Try: True
@@ -6,9 +6,6 @@ cq_name: "luci-py" git_repo_url: "https://chromium.googlesource.com/infra/luci/luci-py" cq_status_url: "https://chromium-cq-status.appspot.com" gerrit {} -rietveld { - url: "https://codereview.chromium.org" -} verifiers { gerrit_cq_ability { committer_list: "project-infra-committers"
[asciidoc] Repair user-provided ASCIIDOC_OPTIONS The ASCIIDOC_OPTIONS value from conf.py was being inserted at the end of the asciidoc command line, after the input file ('-'). This causes asciidoc to fail with: asciidoc: Too many arguments The solution is to insert ASCIIDOC_OPTIONS before the input file argument.
@@ -55,12 +55,13 @@ class CompileAsciiDoc(PageCompiler): binary = self.site.config.get('ASCIIDOC_BINARY', 'asciidoc') options = self.site.config.get('ASCIIDOC_OPTIONS', '') options = shlex.split(options) + command = [binary, '-b', 'html5', '-s'] + options + ['-'] if not is_two_file: m_data, data = self.split_metadata(d...
Return message even if no OS has matched This commit fixes and might also help keeping track of messages that do not match any OS in general.
@@ -193,6 +193,7 @@ class NapalmLogsServerProc(NapalmLogsProc): log.debug('No match found for %s', dev_os) if not ret: log.debug('Not matched any OS') + ret.append((None, msg_dict)) return ret def start(self):
feat(README): update some badges Currently commented
<a href="https://dev.azure.com/timotheemathieu/timotheemathieu/_build?definitionId=2"> <img alt="azure" src="https://dev.azure.com/timotheemathieu/timotheemathieu/_apis/build/status/rlberry-py.rlberry?branchName=refs%2Fpull%2F119%2Fmerge"> </a> +</p> +<p align="center"> <!-- <a href="https://img.shields.io/pypi/pyversi...
Prepare 1.30.0rc2 [ci skip-rust-tests]
@@ -5,6 +5,27 @@ This document describes releases leading up to the ``1.30.x`` ``stable`` series. See https://pants.readme.io/v1.30/docs/release-notes-1-30 for an overview of the changes in this release. +1.30.0rc2 (7/14/2020) +--------------------- + +Bugfixes +~~~~~~~~ + +* Fix Pytest XML reports and Coverage breakin...
sanitize ansi sequence close
@@ -55,6 +55,9 @@ GIT_REQUIRE_MINOR = 9 GIT_REQUIRE_PATCH = 0 +ANSI_ESCAPE = re.compile(r'\x1B\[[0-?]*[ -/]*[@-~]') + + class LoggingProcessWrapper(object): """ @@ -262,6 +265,9 @@ class GitCommand(StatusMixin, raise GitSavvyError( "`{}` failed.".format(command_str), show_panel=show_panel_on_stderr) + if stdout: + stdo...
- updated logging Printing what is actually missing is more helpful than only full data.
@@ -130,8 +130,8 @@ class IntegrateFtrackNote(pyblish.api.InstancePlugin): if not note_text.solved: self.log.warning(( "Note template require more keys then can be provided." - "\nTemplate: {}\nData: {}" - ).format(template, format_data)) + "\nTemplate: {}\nMissing values for keys:{}\nData: {}" + ).format(template, not...
Add src to sys.path if module is in src fixes
import sys +from ...masonry.utils.module import Module from .venv_command import VenvCommand @@ -25,19 +26,32 @@ class ScriptCommand(VenvCommand): module, callable_ = scripts[script].split(':') + src_in_sys_path = 'sys.path.append(\'src\'); '\ + if self._module.is_in_src() else '' + cmd = ['python', '-c'] cmd += [ '"im...
llvm/codegen/scheduler: Use Any(AllHaveRun(PASS)) instead of EveryNCalls(1) to translate scheduler consideration queue The former approach considered Run scope executions and causes premature executions if custom scheduling rules were used.
@@ -2396,7 +2396,7 @@ from psyneulink.core.globals.parameters import Parameter, ParametersBase from psyneulink.core.globals.registry import register_category from psyneulink.core.globals.utilities import \ ContentAddressableList, call_with_pruned_args, convert_to_list, convert_to_np_array -from psyneulink.core.scheduli...
Change actions shortcuts in go_back and go_forward in Firefox mac When editing text `cmd-left` and `cmd-right` just move the cursor to the start or end of the line. `cmd-[` and `cmd-]` don't have that issue.
@@ -28,10 +28,10 @@ class BrowserActions: actions.key("cmd-n") def go_back(): - actions.key("cmd-left") + actions.key("cmd-[") def go_forward(): - actions.key("cmd-right") + actions.key("cmd-]") def go_home(): actions.key("cmd-shift-h")
SConstruct : use `universal_newlines` instead of `.decode()` `universal_newlines` offers better handling of encoding, and a clearer path to using the `text` argument when Python 2 support is dropped.
@@ -425,11 +425,11 @@ if env["PLATFORM"] != "win32" : if "g++" in os.path.basename( env["CXX"] ) : # Get GCC version. - gccVersion = subprocess.check_output( [ env["CXX"], "-dumpversion" ], env=env["ENV"] ).decode().strip() + gccVersion = subprocess.check_output( [ env["CXX"], "-dumpversion" ], env=env["ENV"], universa...
fix tests for operations pass site codes instead of locations
@@ -53,8 +53,12 @@ class TestOperation(TestCase): self.location_structure, ) - def check_operation(self, old_locations, new_locations, archived=True): - self.operation(self.domain, old_locations, new_locations).perform() + def check_operation(self, old_site_codes, new_site_codes, archived=True): + operation = self.oper...
Added URL field back in. I am awaiting DOI for the paper. Have added journal URL as a placeholder.
@@ -18,4 +18,5 @@ Resources: DataAtWork: Publications: - Title: High-Order Accurate Direct Numerical Simulation of Flow over a MTU-T161 Low Pressure Turbine Blade + URL: https://www.journals.elsevier.com/computers-and-fluids AuthorName: A. S. Iyer, Y. Abe, B. C. Vermeire, P. Bechlars, R. D. Baier, A. Jameson, F. D. Wit...
'core' folder included to parameters related On-Premise cluster * 'core' folder included to parameters related On-Premise cluster Update is required because this sample was migrated to the samples/core folder * Update README.md
@@ -56,20 +56,14 @@ Open the Kubeflow pipelines UI. Create a new pipeline, and then upload the compi 1. The name of a GCP project. 2. An output directory in a Google Cloud Storage bucket, of the form `gs://<BUCKET>/<PATH>`. - On-Premise - For On-Premise cluster, the pipeline will create a Persistent Volume Claim (PVC),...
duplicate format_rule code into deduplication list view (the irony) planning to do refactoring the deduplication view in the near future which will remove duplicate code
@@ -967,7 +967,18 @@ class DeduplicationRuleListView(DataInterfaceSection, CRUDPaginatedViewMixin): return rule, None def _format_rule(self, rule): - ret = super()._format_rule(rule) + ret = { + 'id': rule.pk, + 'name': rule.name, + 'case_type': rule.case_type, + 'active': rule.active, + 'last_run': (ServerTime(rule.la...
Removed exception for empty methods I'll create a seperate ticket for that
@@ -374,9 +374,6 @@ class DeviceViewSet(CustomFieldModelViewSet): """ Execute a NAPALM method on a Device """ - if not request.GET.get('method'): - raise ServiceUnavailable('No NAPALM methods were specified.') - device = get_object_or_404(Device, pk=pk) if not device.primary_ip: raise ServiceUnavailable("This device do...
Additional fix for Even though was closed with I discovered a small visual bug. The list of possible badges to get by people was incorrect (still using the old logic for selecting missing requirements); this commit fixes this issue.
@@ -324,6 +324,18 @@ class PersonManager(BaseUserManager): default=0, output_field=IntegerField())) + def passed_either(req_a, req_b): + return Sum(Case(When(trainingprogress__requirement__name=req_a, + trainingprogress__state='p', + trainingprogress__discarded=False, + then=1), + When(trainingprogress__requirement__na...
compose: Replace hrefs with "tabindex=0" for all buttons. For all buttons in the compose box, `href="#"` is replaced by "tabindex=0" so that the buttons are still focusable. This change also fixes a bug that caused the Formatting button to redirect to All messages.
<div class="drag"></div> <div id="below-compose-content"> <input type="file" id="file_input" class="notvisible pull-left" multiple /> - <a class="message-control-button fa fa-smile-o" aria-label="{{_('Add emoji')}}" id="emoji_map" href="#" title="{{ _('Add emoji') }}"></a> - <a class="message-control-button fa fa-font"...
Update app-dev Kube docs to remove reference to settings-tp log file After the rust re-write, this no longer logs to a file be default.
@@ -608,21 +608,6 @@ create and submit a batch of transactions containing the configuration change. [2018-09-05 20:07:41.903 DEBUG core] received message of type: TP_PROCESS_REQUEST - * You can also connect to the ``sawtooth-settings-tp`` container on any pod, - then examine ``/var/log/sawtooth/logs/settings-xxxxxxx-de...
Remove dangling cmake check for long typemeta Summary: TSIA Pull Request resolved:
@@ -37,28 +37,6 @@ if(EXISTS "/etc/os-release") endif() endif() -# ---[ Check if the data type long and int32_t/int64_t overlap. -cmake_push_check_state(RESET) -set(CMAKE_REQUIRED_FLAGS "-std=c++11") -CHECK_CXX_SOURCE_COMPILES( - "#include <cstdint> - - template <typename T> void Foo(); - template<> void Foo<int32_t>()...
Don't store refs to files in cache File cache has been unused since file_reference were introduced, there's no point saving them to cache if they're never queried. Fixes
@@ -357,10 +357,7 @@ class UploadMethods: entities=msg_entities, reply_markup=markup, silent=silent, schedule_date=schedule, clear_draft=clear_draft ) - msg = self._get_response_message(request, await self(request), entity) - await self._cache_media(msg, file, file_handle, image=image) - - return msg + return self._get...
UI: Improved help output wording * Make it more clear that some options should not be used by the end users.
@@ -437,7 +437,7 @@ debug_group.add_option( dest="profile", default=False, help="""\ -Enable vmprof based profiling of time spent. Defaults to off.""", +Enable vmprof based profiling of time spent. Not working currently. Defaults to off.""", ) debug_group.add_option( @@ -465,10 +465,11 @@ debug_group.add_option( dest="...
[tests] Improve devstack/post playbook efficiency By adjusting the syntax to the newer format, the fetch-subunit role will be skipped entirely, rather than run with all its tasks skipped. This gives us results sooner and burns less electricity, making the world a better place. :)
- hosts: all - roles: - - fetch-tox-output - - role: fetch-subunit-output + tasks: + - include_role: + name: fetch-tox-output + - include_role: + name: fetch-subunit-output when: fetch_subunit|default(true)|bool - - process-stackviz + - include_role: + name: process-stackviz
help: Fix warning in deactivate-your-account help page. After adding owner role, we allow last admin to deactivate but not allow the last owner to deactivate, and this commit fixes the warning about not allowing last admin.
your account at any time. !!! warn "" - If you are the only administrator in the organization, you cannot + If you are the only owner in the organization, you cannot deactivate your account. You'll need to - [add another administrator](/help/change-a-users-role) first. + [add another owner](/help/change-a-users-role) f...
Updated plot_fock_distribution removed the offset value 0.4 to center the fock state distribution on the ticks.
@@ -685,7 +685,7 @@ def plot_fock_distribution(rho, offset=0, fig=None, ax=None, N = rho.shape[0] - ax.bar(np.arange(offset, offset + N) - .4, np.real(rho.diag()), + ax.bar(np.arange(offset, offset + N), np.real(rho.diag()), color="green", alpha=0.6, width=0.8) if unit_y_range: ax.set_ylim(0, 1)
Document that the (redundant) second FASTQ header is always removed Closes
@@ -40,6 +40,10 @@ The output file format is also recognized from the file name extension. If the extensions was not recognized or when Cutadapt writes to standard output, the same format as the input is used for the output. +When writing a FASTQ file, a second header (the text after the ``+`` on the +third line of a r...
[Chore] Add release description of smart contract rollup binaries Problem: Smart contract rollup binaries were added, but we have not added descriptions for them that are to be included in the automated release steps. Solution: Add the descriptions for the new binaries, so that they will be included in the new releases...
@@ -42,6 +42,16 @@ in [ description = "Client for interacting with transaction rollup node"; supports = "PtLimaPt"; } + { + name = "octez-smart-rollup-client-PtMumbai"; + description = "Smart contract rollup CLI client for PtMumbai"; + supports = "PtMumbai"; + } + { + name = "octez-smart-rollup-node-PtMumbai"; + descri...
llvm, functions/LinearCombination,LinearMatrix: Use default value as base for _result_length
@@ -2264,8 +2264,7 @@ class LinearCombination(CombinationFunction): # ------------------------------- @property def _result_length(self): - # Input variable should be at least 2d - return np.atleast_2d(self.instance_defaults.variable).shape[1] + return len(self.instance_defaults.value) def get_input_struct_type(self): ...
Add sap combiner and deps to manifest for core collection * This fixes an issue with collection of the sap_hdb_version spec in core collection
@@ -103,6 +103,16 @@ plugins: - name: insights.combiners.hostname enabled: true + # needed to collect the sap_hdb_version spec that uses the Sap combiner + - name: insights.parsers.lssap + enabled: true + + - name: insights.parsers.saphostctrl + enabled: true + + - name: insights.combiners.sap + enabled: true + # neede...
BaseStructType: accept names.Name instances as field names This will extend the choice of casing at least for fields from built-in structures. TN:
@@ -1296,14 +1296,19 @@ class BaseStructType(CompiledType): """ Bind input fields to `self` and initialize their name. - :param list[(str, AbstractNodeData)] fields: List of (name, field) for - this struct's fields. Inheritted fields must not appear in this - list. + :param list[(str|names.Name, AbstractNodeData)] fiel...
updates README typo default timeout for HTTP CHECK is 10 seconds, but the documentation say default timeout in 1 second. Updated to fix this typo
@@ -24,7 +24,7 @@ instances: # check_certificate_expiration: true # default is true # days_warning: 28 # default 14 # days_critical: 14 # default 7 - # timeout: 3 # in seconds. Default is 1. + # timeout: 3 # in seconds. Default is 10. - name: Example website (staging) url: http://staging.example.com/ ```
Fix bug in extract all for tarfiles Was getting hung up on "./" path prefixes coming from tarfile interface. Fix is to normalize member listing and names for tar files.
@@ -436,24 +436,38 @@ def _untar(src, select, unpack_dir): return _gen_unpack( unpack_dir, src, - tf.getmembers, - lambda tfinfo: tfinfo.name, + _tar_members_fun(tf), + _tar_member_name, tf.extractall, select) -def _gen_unpack(unpack_dir, src, list_members, member_name, extract_all, +def _tar_members_fun(tf): + def f()...
BugFix: Logging Errors caused by wrong parameters for LOGGER.debug -- relicts from using print()
@@ -99,7 +99,7 @@ class _TargetCollector(object): # mark target names not in existing_anchors as UNDEFINED if key not in self.existing_anchors: item.state = TARGET_STATE.UNDEFINED - LOGGER.debug(key, TARGET_STATE.name(item.state)) + LOGGER.debug('%s %s', key, TARGET_STATE.name(item.state)) LOGGER.debug('------- existin...
DOC: Minor grammar fix I don't expect this to be controversial.
@@ -267,15 +267,14 @@ def least_squares( element (i, j) is the partial derivative of f[i] with respect to x[j]). The keywords select a finite difference scheme for numerical estimation. The scheme '3-point' is more accurate, but requires - twice as much operations compared to '2-point' (default). The - scheme 'cs' uses...
New Salt Lake City entry, unkown date From:
@@ -14,3 +14,11 @@ The man on the ground was shot with a beanbag, resulting in heavy damage **Links** * https://www.reddit.com/r/nextfuckinglevel/comments/gtv4co/downtown_salt_lake_city_may_30th_2020_unarmed/ + +### Police shoot tear gas canister at man from close range, striking him in the chest | Uknown Date + +Man s...
Make sure we are storing IPv4Networks as strings in state db Fixes
@@ -28,12 +28,12 @@ class BaseLXDSetupController: def set_state(self, key, value): key = "{}.{}".format(self.state_key, key) - ret = app.state.set(key, value) + ret = app.state.set(key, str(value)) return ret def get_state(self, key): key = "{}.{}".format(self.state_key, key) - return app.state.get(key).decode('utf8') ...
[input] Cleaner termination logic, also, remove /tmp/bee.log Accidentially opened file /tmp/bee.log, without writing anything to it.
@@ -14,14 +14,18 @@ RIGHT_MOUSE = 3 WHEEL_UP = 4 WHEEL_DOWN = 5 +def is_terminated(): + for thread in threading.enumerate(): + if thread.name == "MainThread" and not thread.is_alive(): + return True + return False + def read_input(inp): """Read i3bar input and execute callbacks""" epoll = select.epoll() epoll.register(...
added trailing comma make sure black stops complaining
@@ -49,7 +49,7 @@ callPackage (nur.repo-sources."%s" + "/%s") {} # TODO find commit hash prefixes = { "nixpkgs": "https://github.com/nixos/nixpkgs/tree/master/", - "nur": "https://github.com/nix-community/nur-combined/tree/master/" + "nur": "https://github.com/nix-community/nur-combined/tree/master/", } stripped = path...
session: disable resource-limits for private IP sessions When hosting a server over .onion, all resource usage was accounted against the private IP of the Tor gateway (e.g. localhost). related:
@@ -17,6 +17,7 @@ import time from collections import defaultdict from functools import partial from ipaddress import IPv4Address, IPv6Address +from typing import Optional import attr import pylru @@ -765,18 +766,24 @@ class SessionManager: for session in self.sessions: await self._task_group.spawn(session.notify, touc...
Update noaa-rtma.yaml Update contact
@@ -5,7 +5,8 @@ Description: | Data is available from the start of 2019 until present. Documentation: https://www.nco.ncep.noaa.gov/pmb/products/rtma/ Contact: | - For any questions regarding data delivery not associated with this platform or any general questions regarding the NOAA Big Data Program, email noaa.bdp@noa...
typeahead_helper: Add test coverage for highlighting. Specificially, the test_highlight_with_escaping, used in most of our typeaheads.
@@ -7,6 +7,7 @@ add_dependencies({ people: 'js/people.js', typeahead_helper: 'js/typeahead_helper.js', util: 'js/util.js', + Handlebars: 'handlebars', }); var popular = {num_items: function () { @@ -138,3 +139,23 @@ _.each(matches, function (person) { ]); }()); + +(function test_highlight_with_escaping() { + var item =...
Update finders.py Fix for PYPI formed paths
@@ -141,6 +141,9 @@ class PathFinder(BaseFinder): for path in glob('{0}/lib/python*/site-packages'.format(self.virtual_env)): if path not in self.paths: self.paths.append(path) + for path in glob('{0}/lib/python*/*/site-packages'.format(self.virtual_env)): + if path not in self.paths: + self.paths.append(path) for path...
Avoid logging to both terminal and GUI The problem was that gui loggin gautomatically pushes unformatted log messages to the terminal, thus all messages appear twice.
@@ -121,14 +121,14 @@ def log(message, level="INFO", origin=None, prefix=""): # log to terminal or Blender if prefs.logtoterminal: print(terminalmsg) - + else: # log in GUI depending on loglevel import sys # start from this function frame = sys._getframe(1) f_name = frame.f_code.co_name # go back until operator (using ...
Update rmsrat.txt Update for Reference section.
# See the file 'LICENSE' for copying permission # Reference: https://twitter.com/James_inthe_box/status/1118968911590907904 +# Reference: https://twitter.com/James_inthe_box/status/1121513004627927040 159.69.48.50:5655
llvm/codegen/UDF: Enable flatten on non-pointer operands Needed for tuple and list literals. Don't use alloca.
@@ -182,21 +182,20 @@ class UserDefinedFunctionVisitor(ast.NodeVisitor): shape = helpers.get_array_shape(val) return ir.ArrayType(self.ctx.float_ty, len(shape))(shape) elif node.attr == "flatten": + if helpers.is_pointer(val): + val = self.builder.load(val) def flatten(builder): - shape = helpers.get_array_shape(val) -...
Add clarity on state space assumptions [ci skip]
@@ -41,6 +41,8 @@ def create_smooth_transition_models(initial_state, x_coords, y_coords, times, tu Notes ----- x_coords, y_coords and times must be of same length. + This method assumes a cartesian state space with velocities eg. (x, vx, y, vy). It returns + transition models for 2 cartesian coordinates and their corre...
Monkey patch PyGObject to make Gaphor boot on GTK4 Until is merged.
@@ -14,9 +14,19 @@ if os.getenv("GAPHOR_USE_GTK") != "NONE": gtk_version = "4.0" if os.getenv("GAPHOR_USE_GTK") == "4" else "3.0" gtk_source_version = "5" if os.getenv("GAPHOR_USE_GTK") == "4" else "4" + if gtk_version == "4.0": + # Monkey patch PyGObject + import gi.overrides.Gtk + + del gi.overrides.Gtk.TreeView.enab...
chore: reference main branch of google-cloud-python Adjust google-cloud-python links to reference main branch.
@@ -12,7 +12,7 @@ processing power of Google's infrastructure. - `Product Documentation`_ .. |GA| image:: https://img.shields.io/badge/support-GA-gold.svg - :target: https://github.com/googleapis/google-cloud-python/blob/master/README.rst#general-availability + :target: https://github.com/googleapis/google-cloud-python...
Remove brightness packet from oldcookie smartmatrx Remove the brightness packet from the test for oldcookie smartmatrix interfaces.
@@ -60,13 +60,13 @@ class TestSmartMatrix(MpfTestCase): call(b'\xba\x11\x00\x03\x04\x00\x00\x00\x00\x01\x02\x03') # frame ]) + #test old cookie self.machine.rgb_dmds.smartmatrix_2.update([0x00, 0x01, 0x02, 0x03]) self.advance_time_and_run(.1) start = time.time() while self.serial_mocks["com5"].write.call_count < 2 and ...
[COMMUNITY] -> Reviewer Please join us to welcome as a new reviewer to TVM. contributed extensively across different layers of the system, including layout transform, PaddlePaddle, TFLite, and ONNX frontend. [Commits History](https://github.com/apache/tvm/commits?author=blackkker) [Code Review](https://github.com/apach...
@@ -204,6 +204,7 @@ We do encourage everyone to work anything they are interested in. - [Lianmin Zheng](https://github.com/merrymercy): @merrymercy - [Min Chen](https://github.com/multiverstack-intellif): @multiverstack-intellif - [Xiyou Zhou](https://github.com/zxybazh): @zxybazh +- [@blackkker](https://github.com/bla...
[sqlpp11] Add the scripts in the package and update PATH * Add the scripts in the package and update PATH * Apply pep8 tool Used: black --line-length 100 * Move tool to bin dir Requested by conan hooks
@@ -24,13 +24,21 @@ class Sqlpp11Conan(ConanFile): self.info.header_only() def source(self): - tools.get(**self.conan_data["sources"][self.version], - destination=self._source_subfolder, strip_root=True) + tools.get( + **self.conan_data["sources"][self.version], + destination=self._source_subfolder, + strip_root=True +...
build: Ship libbase_static.a for macOS/Linux Needed for using e.g. `switches::kEnableFeatures` in electron/electron#13784.
@@ -83,6 +83,7 @@ BINARIES = { BINARIES_SHARED_LIBRARY = { 'darwin': [ + os.path.join('obj', 'base', 'libbase_static.a'), os.path.join('obj', 'components', 'cdm', 'renderer', 'librenderer.a'), os.path.join('obj', 'net', 'libhttp_server.a'), os.path.join('obj', 'third_party', 'webrtc', 'rtc_base', 'librtc_base.a'), @@ -...
test: Remove testing of pyomo-hack The support for freeing the pyomo datastructures during pyomos solving phase was removed from pypsa in commit #5ac1325, since it proved to be too slow for productive use.
@@ -39,7 +39,7 @@ def test_lopf(): snapshots = network.snapshots for formulation, free_memory in product(["angles", "cycles", "kirchhoff", "ptdf"], - [{}, {"pypsa"}, {"pypsa", "pyomo-hack"}]): + [{}, {"pypsa"}]): network.lopf(snapshots=snapshots,solver_name=solver_name,formulation=formulation, free_memory=free_memory) ...
SceneAlgo : Use `parallelProcessLocations()` in `parallelTraverse()` The two have basically identical implementations, save for the behaviour regarding copying of the functor. Ideally we will rationalise this further in the future so that `parallelProcessLocations()` can be used directly for everything.
@@ -44,80 +44,6 @@ namespace GafferScene namespace Detail { -template <class ThreadableFunctor> -class TraverseTask : public tbb::task -{ - - public : - - TraverseTask( - const GafferScene::ScenePlug *scene, - const Gaffer::ThreadState &threadState, - ThreadableFunctor &f - ) - : m_scene( scene ), m_threadState( thread...
Magic number increased to 120 Original size of 100 was insufficient to cover driver version when driver is "MongoDB Internal Driver"
@@ -48,6 +48,7 @@ class ClientSection(BaseSection): pos = line.find('client metadata') if pos != -1: + #MongoDB Internal Driver was pushing version number outside index, increased from 100 to 120 to accommodate tokens = line[pos:pos + 120].split(' ') ip, _ = tokens[3].split(':') ip_formatted = str(ip)
Test Rust SDK without default features enabled Runs unit tests both with and without default features enabled, to ensure that the SDK works in both scenarios.
@@ -29,4 +29,5 @@ services: volumes: - $SAWTOOTH_CORE:/project/sawtooth-core working_dir: /project/sawtooth-core/sdk/rust - command: cargo test + # Test that the SDK compiles with default features both enabled and disabled + command: bash -c "cargo test && cargo test --no-default-features"
rm backfill_vaccination_initiated This PR addresses `backfill_vaccination_initiated` is no longer called.
@@ -64,39 +64,6 @@ def derive_vaccine_pct(ds_in: MultiRegionDataset) -> MultiRegionDataset: return ds_in.replace_timeseries_wide_dates([ts_in_without_pcts, most_recent_pcts]) -def backfill_vaccination_initiated(dataset: MultiRegionDataset) -> MultiRegionDataset: - """Backfills vaccination initiated data from total dose...
Update to support PySide2 QSignal definition and qt_min_version implementation are now independent of PyQt5
@@ -29,7 +29,7 @@ from pyqtgraph.Qt import QtGui, QtCore, loadUiType log = logging.getLogger(__name__) log.addHandler(logging.NullHandler()) -QtCore.QSignal = QtCore.pyqtSignal +QtCore.QSignal = QtCore.Signal def fromUi(*args, **kwargs): @@ -52,9 +52,11 @@ def fromUi(*args, **kwargs): def qt_min_version(major, minor=0)...
Update phishing.txt Explicit phishing from ```nowddns.com``` dynamic domain.
@@ -7942,3 +7942,73 @@ oni.gov.ge # Reference: https://twitter.com/soccia555/status/1133435220814966784 pcbever.be + +# Reference: https://www.virustotal.com/gui/domain/nowddns.com/relations + +apple-intl.nowddns.com +apple-login.nowddns.com +apple-manage-information.nowddns.com +apple-order-manage.nowddns.com +apple-o...
Remove unnecessary parameter from function Parameter is not used by the function.
@@ -3680,7 +3680,7 @@ api-group-workflows/#api-rest-api-2-workflow-search-get) # Agile(Formerly Greenhopper) REST API implements # Resource: https://docs.atlassian.com/jira-software/REST/7.3.1/ ####################################################################### - def add_issues_to_backlog(self, sprint_id, issues): ...
add sms sender to old script we have problems where govuk service is not migrated to sms_senders on new datbases. update this old script so we don't affect live systems, but when people rebuild their database from scratch they get the sms sender for govuk notify.
@@ -32,6 +32,13 @@ def upgrade(): unique=True) op.create_index(op.f('ix_service_sms_senders_service_id'), 'service_sms_senders', ['service_id'], unique=True) + # populate govuk seeded service + op.execute(""" + INSERT INTO service_sms_senders + (id, sms_sender, service_id, is_default, inbound_number_id, created_at, upd...
Flesh out the set of project URLs [skip ci] Include links to getlektor.com, as well as direct links to documentation and changelog.
@@ -7,7 +7,12 @@ license = BSD platforms = any author = Armin Ronacher author_email = armin.ronacher@active-4.com -url = http://github.com/lektor/lektor/ +url = https://www.getlektor.com/ +project_urls = + Homepage = https://www.getlektor.com/ + Source = https://github.com/lektor/lektor/ + Documentation = https://www.g...
StandardLightVisualiser : Make point lights smaller They were quite a lot bigger than other lights Improvements - Viewer : Reduced size of point lights to better match other light sources.
@@ -631,7 +631,7 @@ IECoreGL::ConstRenderablePtr StandardLightVisualiser::pointRays( float radius ) { const float angle = M_PI * 2.0f * float(i)/(float)numRays; const V3f dir( 0.0, sin( angle ), -cos( angle ) ); - addRay( dir * (.5 + radius), dir * (1 + radius), vertsPerCurve->writable(), p->writable() ); + addRay( dir...
Update minimal_seq2seq.py Fixed: Added encoder_type param to Seq2SeqModel constructor.
@@ -40,7 +40,7 @@ model_args = { "max_length": 15, } -model = Seq2SeqModel("bert-base-cased", "bert-base-cased", args=model_args) +model = Seq2SeqModel("bert", "bert-base-cased", "bert-base-cased", args=model_args) def count_matches(labels, preds):
[enahnce] Fetch doctype's roles in report if developer mode is on or is standard is no * [enahnce] Fetch doctype's role in report if developer mode is on or is standard is no * Update report.py lets not keep separate rules for developer_mode! - this is not discoverable by a new developer
@@ -49,7 +49,7 @@ class Report(Document): delete_custom_role('report', self.name) def set_doctype_roles(self): - if not self.get('roles'): + if not self.get('roles') and self.is_standard == 'No': meta = frappe.get_meta(self.ref_doctype) roles = [{'role': d.role} for d in meta.permissions if d.permlevel==0] self.set('ro...
model: transformers: example: Fix accuracy assertion Fixes:
@@ -31,7 +31,8 @@ class TestExample(unittest.TestCase): stdout = subprocess.check_output([sys.executable, filepath]) lines = stdout.decode().split("\n") # Check the Accuracy - self.assertIn("Accuracy: 0.0", lines) + if not list(filter(lambda line: line.startswith("Accuracy: "), lines)): + raise AssertionError(f"Accurac...
fix: Fix deprecation warning for using ET.getiterator * Using the xml element tree getiterator function has been deprecated for a while it seems. To get rid of the warning I updated to using iter wrapped in a list which is all the getiterator function did.
@@ -56,7 +56,7 @@ def candlepin_broker(broker): if content: root = ET.fromstring('\n'.join(content)) # remove namespace before save to avoid urgly search - for node in root.getiterator(): + for node in list(root.iter()): prefix, has_namespace, postfix = node.tag.rpartition('}') if has_namespace: node.tag = postfix
Added exception and error message in find_lib() that gets raised if no files are found.
@@ -38,7 +38,7 @@ def find_lib(name, paths=[], dirHints=[]): if name in files: return os.path.join(root, name) - + raise Exception('Could not find file named "%s". Searched recursively in %s.' % (name, str(searchPaths))) class CLibrary:
Update average_median.py added doctest, fixed TypeError: list indices must be integers or slices, not float error due to number/2 producing float as index.
+def median(nums): """ Find median of a list of numbers. -Read more about medians: - https://en.wikipedia.org/wiki/Median -""" + >>> median([0]) + 0 + >>> median([4,1,3,2]) + 2.5 + Args: + nums: List of nums -def median(nums): - """Find median of a list of numbers.""" - # Sort list + Returns: + Median. + """ sorted_lis...
Group libraries in TOC and add PyTorch Elastic Summary: Move XLA out of Notes and group with other libraries. Also adds link to PyTorch Elastic ![image](https://user-images.githubusercontent.com/8042156/76912125-f76d1080-686f-11ea-99d5-bb7be199adbd.png) Pull Request resolved:
@@ -16,7 +16,6 @@ PyTorch is an optimized tensor library for deep learning using GPUs and CPUs. :caption: Notes notes/* - PyTorch on XLA Devices <http://pytorch.org/xla/> .. toctree:: :maxdepth: 1 @@ -62,24 +61,15 @@ PyTorch is an optimized tensor library for deep learning using GPUs and CPUs. name_inference torch.__co...
Fixed problem where the scratchpad dropdown would not obey position and geometry.
@@ -184,6 +184,7 @@ class DropDownToggler(WindowVisibilityToggler): its floating x, y, width and height is set. """ if (not self.visible) or (not self.shown): + # SET GEOMETRY win = self.window screen = win.qtile.current_screen # calculate windows floating position and width/height @@ -194,8 +195,9 @@ class DropDownTog...
Clean up the code for adding charm The readability of some of the if statements was slightly hard to comprehend because of the if, elif statements.
@@ -576,14 +576,14 @@ class AddCharmChange(ChangeInfo): context.origins[self.charm] = {str(None): origin} return self.charm - elif Schema.CHARM_STORE.matches(url.schema): + if Schema.CHARM_STORE.matches(url.schema): entity_id = await context.charmstore.entityId(self.charm) log.debug('Adding %s', entity_id) await contex...
Make the egg build reproducible bit-for-bit Hard coding the timestamp Removing directory entries
@@ -19,7 +19,8 @@ rm -rf insights/parsers/* cp ../insights/parsers/__init__.py insights/parsers find insights -name '*.pyc' -delete -zip ../insights.egg -r EGG-INFO/ insights/ +find . -type f -exec touch -c -t 201801010000.00 {} \; +zip --no-dir-entries ../insights.zip -r EGG-INFO/ insights/ cd .. rm -rf tmp git checko...
Add /opt/homebrew to where spatialite extension can be found Helps homebrew on Apple Silicon setups find spatialite without needing a full path. Similar to Thanks,
@@ -51,6 +51,7 @@ SPATIALITE_PATHS = ( "/usr/lib/x86_64-linux-gnu/mod_spatialite.so", "/usr/local/lib/mod_spatialite.dylib", "/usr/local/lib/mod_spatialite.so", + "/opt/homebrew/lib/mod_spatialite.dylib", ) # Used to display /-/versions.json SpatiaLite information SPATIALITE_FUNCTIONS = (
Add Mumbai and Canada-Central as new regions to support CodeCommit in cr
@@ -102,6 +102,7 @@ def list_branches(repo_name, next_token=None): def region_supported(region): supported_regions = [ + "ca-central-1", # Canada (Central) "us-east-1", # US East (N. Virginia) "us-east-2", # US East (Ohio) "us-west-1", # US West (N. California) @@ -113,6 +114,7 @@ def region_supported(region): "ap-nort...
Fix links in module packaging Fix dead links
@@ -30,8 +30,8 @@ skills: - name: hello ``` -Details on pointing opsdroid to extension modules can be found in the [configuration reference](configuration). -For more on creating skills, see the [next section](skills/index) of these docs. +Details on pointing opsdroid to extension modules can be found in the [configura...
fix the static nested sampler to be able to work with plateaus of log(l)
@@ -685,6 +685,9 @@ class Sampler: delta_logz = np.logaddexp(0, np.max(self.live_logl) + logvol - logz) + plateau_mode = False + plateau_counter = 0 + nplateau = 0 stop_iterations = False # The main nested sampling loop. for it in range(sys.maxsize): @@ -726,8 +729,8 @@ class Sampler: stop_iterations = True if self.liv...
Make feature boxplots by subgroups more flexible. Change the limit when no boxplots are shown to 150 and make it easier to see message when boxplots are omitted by adding a heading. Add a new message about using thumbnails for features > 30 but <= 150, if not specified.
"metadata": {}, "outputs": [], "source": [ - "if len(features_used) > 30:\n", - " display(Markdown('Since the data has more than 30 features, boxplots with feature values for all groups '\n", - " 'will be skipped. This experiment currently has {} features.'.format(len(features_used))))\n", - "else:\n", + "num_features ...
Update parallel-coordinates-plot.md Add example with unselected
@@ -5,12 +5,12 @@ jupyter: text_representation: extension: .md format_name: markdown - format_version: '1.1' - jupytext_version: 1.1.1 + format_version: '1.3' + jupytext_version: 1.13.7 kernel_info: name: python2 kernelspec: - display_name: Python 3 + display_name: Python 3 (ipykernel) language: python name: python3 la...
issue ansible: avoid touching setrlimit() on target. This replaces the previous method for capping poorly Popen() performance, instead entirely monkey-patching the problem function rather than simply working around it.
@@ -43,7 +43,6 @@ import operator import os import pwd import re -import resource import signal import stat import subprocess @@ -91,15 +90,41 @@ _fork_parent = None good_temp_dir = None -# issue #362: subprocess.Popen(close_fds=True) aka. AnsibleModule.run_command() -# loops the entire SC_OPEN_MAX space. CentOS>5 ship...
Update dorkbot.txt Merging from + Aliases field is created.
# Copyright (c) 2014-2019 Maltrail developers (https://github.com/stamparm/maltrail/) # See the file 'LICENSE' for copying permission +# Aliases: dorkbot, ngrbot + # Reference: http://www.microsoft.com/security/portal/threat/encyclopedia/Entry.aspx?Name=Win32/Dorkbot#tab=2 av.shannen.cc @@ -308,3 +310,11 @@ appupdate02...
Sublime Settings: Fix mixed up lists and sets Don't mixup set/list usage. Decide for either one. As `completions` are accessed using an index in row 636 >> or completions and isinstance(completions[0][1], str) we must not use set() to create completions of themes/color schemes.
@@ -743,7 +743,7 @@ class KnownSettings(object): - contents (string): the path to commit to the settings """ hidden = _settings().get('settings.exclude_color_scheme_patterns') or [] - completions = set() + completions = [] for scheme_path in sublime.find_resources("*.tmTheme"): if any(hide in scheme_path for hide in hi...
Force utf-8 decoding when querying metabase Some discord usernames contain unicode characters, which causes an decoding error as chardet isn't 100% and can't falsely detect the response text as
@@ -115,12 +115,12 @@ class Metabase(Cog): try: async with self.bot.http_session.post(url, headers=self.headers, raise_for_status=True) as resp: if extension == "csv": - out = await resp.text() + out = await resp.text(encoding="utf-8") # Save the output for use with int e self.exports[question_id] = list(csv.DictReader...
Update design.md Message-Id: Message-Id:
@@ -13,15 +13,14 @@ The goal of this exercise is to introduce the student to the concept of classes. - Know how to create a class. - Know how to create objects. - Understand that instantiating a class creates an object. -- Know that `__init__()` is what is known as a 'constructor'. -- Know that `__init__()` is called u...