message
stringlengths
13
484
diff
stringlengths
38
4.63k
Update sso-saml.rst linked Paul's script for creating a user file.
@@ -19,6 +19,8 @@ Mattermost officially supports Okta, OneLogin and Microsoft ADFS as the identity If you'd like, you may also try configuring SAML for a custom IDP. For instance, customers have successfully set up Duo, PingFederate and SimpleSAMLphp as a custom IDPs. We are open to providing assistance when configurin...
Refactor cascade interface Replace nested ''if'' by dictionaries lookup. Make pep8 compliant.
-from . import bandpass_filters -from . import decomposition +from pysteps.cascade import decomposition, bandpass_filters + +_cascade_methods = dict() +_cascade_methods['fft'] = decomposition.decomposition_fft +_cascade_methods['gaussian'] = bandpass_filters.filter_gaussian +_cascade_methods['uniform'] = bandpass_filte...
Update README.md Leaderboard reoopen
[![Documentation Status](https://readthedocs.org/projects/microsoft-recommenders/badge/?version=latest)](https://microsoft-recommenders.readthedocs.io/en/latest/?badge=latest) -## What's New (October 5, 2020) +## What's New (October 19, 2020) -[Microsoft News Recommendation Competition Winners Announced, Leaderboard to...
setup.sh: Remove redundant chmod chmod 755 makes chmod +x redundant, meaning that chmod +x should be removed
@@ -34,7 +34,6 @@ if [[ "$OS" == "Fedora" ]]; then unzip chromedriver_linux64_2.3.zip sudo cp chromedriver /usr/bin/chromedriver sudo chown root /usr/bin/chromedriver - sudo chmod +x /usr/bin/chromedriver sudo chmod 755 /usr/bin/chromedriver elif [[ "$OS" == "Ubuntu" ]] || [[ "$OS" == "LinuxMint" ]]; then sudo apt-get ...
update parameters for texture_mapping do not use the config file and pass a list of images instead
@@ -473,10 +473,8 @@ def main(config_fpath): except Exception as e: print("Error: ", e, " (file ", pan, ")") - # the config file contains the list of the images used - config_file = "xxxx.conf" - # if the config file is not used a list of images can be passed - # with the argument "--images img1 img2 ..." + # List of i...
Update conf.py Changed copyright date for page footers in doc set.
@@ -61,7 +61,7 @@ master_doc = 'index' # General information about the project. project = u'Mattermost' -copyright = u'2015-2020 Mattermost' +copyright = u'2015-2021 Mattermost' author = u'Mattermost' # The version info for the project you're documenting, acts as replacement for
Fix issue: model should be relative to source directory Not relative to the document.
@@ -66,9 +66,8 @@ class DiagramDirective(sphinx.util.docutils.SphinxDirective): ) ) - rel_filename, filename = self.env.relfn2path(model_file) - self.env.note_dependency(rel_filename) - model = load_model(filename) + self.env.note_dependency(model_file) + model = load_model(Path(self.env.srcdir) / model_file) outdir = ...
Remove 008 protocol from mainnet baking Problem: 009 protocol was activated mainnet, now there is no sense in running 008 daemons on mainnet. Solution: Remove 008 daemons from the contents of mainnet baking service.
@@ -7,7 +7,7 @@ from .model import Service, ServiceFile, SystemdUnit, Unit, Install, OpamBasedPa networks = ["mainnet", "edo2net", "florencenet"] networks_protos = { - "mainnet": ["008-PtEdo2Zk", "009-PsFLoren"], + "mainnet": ["009-PsFLoren"], "edo2net": ["008-PtEdo2Zk"], "florencenet": ["009-PsFLoren"] }
[Doc] Generative models, edit for readability Edit pass for grammar and style
@@ -4,18 +4,18 @@ Generative models ================== * **DGMG** `[paper] <https://arxiv.org/abs/1803.03324>`__ `[tutorial] - <3_generative_model/5_dgmg.html>`__ `[code] + <3_generative_model/5_dgmg.html>`__ `[PyTorch code] <https://github.com/dmlc/dgl/tree/master/examples/pytorch/dgmg>`__: - this model belongs to the...
Call `Ephem.from_horizons()` with `epochs` arg `Ephem.from_horizons()` requires the `epochs` positional argument.
@@ -516,7 +516,8 @@ The data is fetched using the wrappers to these services provided by [astroquery](https://astroquery.readthedocs.io/). ```python -Ephem.from_horizons("Ceres") +epoch = time.Time("2020-04-29 10:43") +Ephem.from_horizons("Ceres", epoch) Orbit.from_sbdb("Apophis") ```
contrib/lkt_semantic/char: fix wrong expected output TN:
@@ -9,9 +9,8 @@ Expr <StringLit test.lkt:1:18-1:23> Id <RefId "Char" test.lkt:2:9-2:13> references <StructDecl "Char" __prelude:20:11-20:25> -test.lkt:2:16: error: Mismatched types: expected `Char`, got a string literal -1 | val b : Char = 'l' - | ^^^ +Expr <CharLit test.lkt:2:16-2:19> + has type <StructDecl "Char" __p...
Bugfix ensure defaults aren't copied between blueprint routes Simple mistake of not copying a mutable variable.
@@ -826,7 +826,7 @@ class BlueprintSetupState: endpoint = f"{self.blueprint.name}.{endpoint}" url_defaults = self.url_defaults if defaults is not None: - url_defaults.update(defaults) + url_defaults = {**url_defaults, **defaults} self.app.add_url_rule( path, endpoint,
Readd the __proxy_keepalive scheduled job Although added by in - see for very obscure reasons, these changes somehow disappeared. Readding them, hopefully they'll resist longer this time.
@@ -3205,6 +3205,28 @@ class ProxyMinion(Minion): self.schedule.delete_job(master_event(type='alive', master=self.opts['master']), persist=True) self.schedule.delete_job(master_event(type='failback'), persist=True) + # proxy keepalive + proxy_alive_fn = fq_proxyname+'.alive' + if proxy_alive_fn in self.proxy and 'statu...
config_service: README update Updated README.md file inside ui folder. Review-Url:
-# \<Config UI\> +# LUCI Config UI -This is a UI for the configuration service +This is a UI for the configuration service. -## Install the Polymer-CLI -First, make sure you have the [Polymer CLI](https://www.npmjs.com/package/polymer-cli) installed. Then run `polymer serve` to serve your application locally. +## Setti...
ENH: RunEngine bail methods all return runstart uid list This is to match the clean behavior of `__call__` and `resume`
@@ -899,6 +899,7 @@ class RunEngine: task.cancel() if self.state == 'paused': self._resume_event_loop() + return self._run_start_uids def stop(self): """ @@ -918,6 +919,7 @@ class RunEngine: self._task.cancel() if self.state == 'paused': self._resume_event_loop() + return self._run_start_uids def halt(self): ''' @@ -93...
Hotfix for psum transpose The previous patch has been causing some failures in the `is_undefined_primal` assertion in `broadcast_position`, but it looks like in all of those cases there are no positional axes, so this should fix them. More debugging underway, but I wanted to make sure they're unblocked.
@@ -654,6 +654,7 @@ def _psum_transpose_rule(cts, *args, axes, axis_index_groups): for axis in axes: axes_partition[isinstance(axis, int)].append(axis) + if pos_axes: def broadcast_positional(ct, arg): assert ad.is_undefined_primal(arg) if type(ct) is ad.Zero: return ad.Zero(arg.aval)
Update badges in README to reflect new workflows I've also restructured it a bit by using reference links instead of inline links.
# Python Discord: Site [![Discord](https://img.shields.io/static/v1?label=Python%20Discord&logo=discord&message=%3E100k%20members&color=%237289DA&logoColor=white)](https://discord.gg/2B963hn) -![Lint, Test & Deploy](https://github.com/python-discord/site/workflows/Lint,%20Test%20&%20Deploy/badge.svg?branch=master) -[![...
Fix Huawei.VRP get_capabilties for Stack.Members HG-- branch : feature/microservices
@@ -70,10 +70,14 @@ class Script(BaseScript): Check stack members :return: """ - r = self.cli("display stack peer") - return len([l for l in r.splitlines() if "STACK" in l]) + r = self.profile.parse_table(self.cli("display stack peer")) + return [l[0] for l in r["table"]] + # return len([l for l in r.splitlines() if "S...
fixed wrong download url Update ytmusic.py Update ytmusic.py
@@ -145,8 +145,8 @@ def get_results(self, search_term: str, **kwargs) -> List[Dict[str, Any]]: "name": result["title"], "type": result["resultType"], "link": ( - f'https://{"music" if result["resultType"] == "song" else "www"}.', - f".youtube.com/watch?v={result['videoId']}", + f'https://{"music" if result["resultType"...
Fix Issue unitary matrix size is 2^n \times 2^n Previously said n \times n
@@ -17,7 +17,7 @@ of single-qubit gates and a two-qubit entangling gate (CNOT) target but a mechanism to define other gates. For many gates of practical interest, there is a circuit representation with a polynomial number of one- and two-qubit gates, giving a more compact representation -than requiring the programmer t...
Fixed problems when trying to use Digi-Key API, but not available Related to INTI-CMNB/KiBot#209
@@ -91,6 +91,9 @@ class api_digikey(distributor_class): DK_API.api_ops = {} cache_ttl = 7 cache_path = None + if not available: + debug_obsessive('Digi-Key API not available') + return for k, v in ops.items(): if k == 'client_id': DK_API.id = v
Clarify LASPH warning Forgot to include hybrids
@@ -568,7 +568,7 @@ class DictSet(VaspInputSet): elif any(el.Z > 20 for el in structure.composition): incar["LMAXMIX"] = 4 - # Warn user about LASPH for meta-GGAs, hybrids, and vdW-DF + # Warn user about LASPH for +U, meta-GGAs, hybrids, and vdW-DF if not settings.get("LASPH", False) and ( settings.get("METAGGA", False...
Default to a transaparent background Fixes
@@ -788,7 +788,7 @@ class GtkView(Gtk.DrawingArea, Gtk.Scrollable, View): cr = cairo.Context(self._back_buffer) cr.save() - cr.set_source_rgb(1, 1, 1) + cr.set_operator(cairo.OPERATOR_CLEAR) cr.paint() cr.restore() @@ -855,13 +855,10 @@ class GtkView(Gtk.DrawingArea, Gtk.Scrollable, View): def do_configure_event(self, ...
Vagrantfile: Check for OS before patching the lxc-config. Followup of Without this vagrant up will fail on Windows. Vagrant.20up.20error
@@ -31,6 +31,7 @@ end # have the box (e.g. on first setup), Vagrant would download it but too # late for us to patch it like this; so we prompt them to explicitly add it # first and then rerun. +if Vagrant::Util::Platform.linux? if ['up', 'provision'].include? ARGV[0] LXC_VERSION = `lxc-ls --version`.strip unless defin...
Incidents: reduce log level of 403 exception In addition to 404, this shouldn't send Sentry notifs.
@@ -51,12 +51,13 @@ async def download_file(attachment: discord.Attachment) -> t.Optional[discord.Fi Download & return `attachment` file. If the download fails, the reason is logged and None will be returned. + 404 and 403 errors are only logged at debug level. """ log.debug(f"Attempting to download attachment: {attach...
Update TAXII example It was set up for an old version of the default test data in medallion.
@@ -8,7 +8,7 @@ import stix2 def main(): collection = Collection( - "http://127.0.0.1:5000/trustgroup1/collections/52892447-4d7e-4f70-b94d-d7f22742ff63/", + "http://127.0.0.1:5000/trustgroup1/collections/91a7b528-80eb-42ed-a74d-c6fbd5a26116/", user="admin", password="Password0", ) @@ -16,12 +16,12 @@ def main(): taxii ...
AnimationEditor : Add tooltips for frame, value and interpolation. ref
@@ -436,16 +436,21 @@ class _KeyWidget( GafferUI.GridContainer ) : GafferUI.GridContainer.__init__( self, spacing=4, borderWidth=4 ) + # tool tips + frameToolTip = "# Frame\n\nThe frame of the currently selected keys." + valueToolTip = "# Value\n\nThe value of the currently selected keys." + interpolationToolTip = "# I...
Fix the text.Span.__repr__ method Use `repr` instead of `str` on nested objects, to improve clarity when debugging. Fixes Issue
@@ -57,7 +57,7 @@ class Span(NamedTuple): return ( f"Span({self.start}, {self.end}, {self.style!r})" if (isinstance(self.style, Style) and self.style._meta) - else f"Span({self.start}, {self.end}, {str(self.style)!r})" + else f"Span({self.start}, {self.end}, {repr(self.style)})" ) def __bool__(self) -> bool:
Only process valid connections The `_from_server_socket routine` may return a None which should not be sent to workers to process. for
@@ -216,6 +216,7 @@ class ConnectionManager: if conn is self.server: # New connection new_conn = self._from_server_socket(self.server.socket) + if new_conn is not None: self.server.process_conn(new_conn) else: # unregister connection from the selector until the server
Fix symlink bug in file_path.set_read_only() If read_only is True, then we modify the mode, which makes stat.S_ISLNK() return False, which causes an error in fs.chmod for symlinks. Store the original mode and check that instead.
@@ -888,7 +888,8 @@ def set_read_only(path, read_only): Zaps out access to 'group' and 'others'. """ - mode = fs.lstat(path).st_mode + orig_mode = fs.lstat(path).st_mode + mode = orig_mode # TODO(maruel): Stop removing GO bits. if read_only: mode &= stat.S_IRUSR|stat.S_IXUSR # 0500 @@ -899,7 +900,7 @@ def set_read_only...
DOC: updated introduction Updated introduction by re-writing the text, adding labels, and fixing the section header style.
+.. _introduction: -============ Introduction ============ -Every scientific instrument has unique properties though the general process for -science data analysis is independent of platform. Find and download the data, -write code to load the data, clean the data, apply custom analysis functions, -and plot the results...
fix bug in toy sensor Test Plan: ran dagster-daemon Reviewers: dish
@@ -49,7 +49,7 @@ def _wrapped_fn(context): continue fstats = os.stat(filepath) if fstats.st_mtime > since: - fileinfo_since.append(filename, fstats.st_mtime) + fileinfo_since.append((filename, fstats.st_mtime)) result = fn(context, fileinfo_since)
Add distinction between requested times and data times in the EdbMnemomic class Expand docstrings.
@@ -31,6 +31,10 @@ Notes A valid MAST authentication token has to be present in the local ``jwql`` configuration file (config.json). + When querying mnemonic values, the underlying MAST service returns + data that include the datapoint preceding the requested start time + and the datapoint that follows the requested en...
Adding definition of backup_flags During the upgrade from M to N i encountered an error in a step requiring the upgrade of mysql version. The variable backup_flags is undefined at that point. Closes-Bug:
@@ -50,6 +50,7 @@ mysql_need_update if [[ -n $(is_bootstrap_node) ]]; then if [ $DO_MYSQL_UPGRADE -eq 1 ]; then + backup_flags="--defaults-extra-file=/root/.my.cnf -u root --flush-privileges --all-databases --single-transaction" mysqldump $backup_flags > "$MYSQL_BACKUP_DIR/openstack_database.sql" cp -rdp /etc/my.cnf* "...
notifications: Switch to use `make_links_absolute()` from lxml library. Instead of using custom regexes for converting relative URLs to absolute URLs switch to using `make_links_absolute()` function from lxml library.
@@ -26,6 +26,7 @@ from zerver.models import ( import datetime from email.utils import formataddr +import lxml.html import re import subprocess import ujson @@ -69,18 +70,10 @@ def topic_narrow_url(realm, stream, topic): def relative_to_full_url(base_url, content): # type: (Text, Text) -> Text - # URLs for uploaded cont...
Update detect_dga_domains_using_pretrained_model_in_dsdl.yml updating story names
@@ -26,8 +26,7 @@ references: - https://en.wikipedia.org/wiki/Domain_generation_algorithm tags: analytic_story: - - Data Protection - - Prohibited Traffic Allowed or Protocol Mismatch + - Data Exfiltration - DNS Hijacking - Suspicious DNS Traffic - Dynamic DNS
Use a child instead of a background for checked boxes It fixes the style of checkboxes in PDF forms.
@@ -333,12 +333,15 @@ input[type="radio"] { height: 1.2em; width: 1.2em; } -input[type="checkbox"][checked], -input[type="radio"][checked] { - background: black content-box; +input[type="checkbox"][checked]:before, +input[type="radio"][checked]:before { + background: black; + content: ""; + display: block; + height: 10...
get_lldp_neighbors.py edited online with Bitbucket fix brokin merge HG-- branch : e_zombie/get_lldp_neighborspy-edited-online-with--1493193154832
@@ -215,61 +215,3 @@ class Script(BaseScript): ------------------------------------------------------------------------------- """ - -<<<<<<< local -======= - device_id = self.scripts.get_fqdn() - # Get neighbors - neighbors = [] - - # try ladvdc - for match in self.rx_ladvdc.finditer(self.cli("ladvdc -L")): - # ladvdc...
Add missing add to set I missed this as well when refactoring and is probably the cause of the leaking incomplete batches.
@@ -807,6 +807,7 @@ class IncomingBatchQueue: def put(self, batch): if batch.header_signature not in self._ids: + self._ids.add(batch.header_signature) self._queue.put(batch) def get(self, timeout=None):
Update android_generic.txt Port :2222 is related to ```Android.Spy``` malware samples on ```bbb123.ddns.net``` dyn-domain.
@@ -670,10 +670,40 @@ commealamaison1.zapto.org adnab.ir rozup.ir/download/3039645/ +# Reference: https://www.virustotal.com/gui/domain/bbb123.ddns.net/relations # Reference: https://www.virustotal.com/gui/file/153e52d552fdd1b4533d3eb9aa8f59bda645e8a4409b28a336c0cab1d26bd876/detection - -94.49.131.95:2222 - # Reference...
bug fix fix an error in `Monitor._get_local_changes` if `last_sync is None`
@@ -1636,13 +1636,14 @@ Any changes to local files during this process may be lost. """) # get modified or added items for path in snapshot.paths: stats = snapshot.stat_info(path) + last_sync = CONF.get("internal", "lastsync") or 0 # check if item was created or modified since last sync dbx_path = self.sync.to_dbx_path...
message_edit: Remove unnecessary comment. This comment is not required now since topic and stream editing is not allowed from this UI now and is instead done from a modal.
@@ -440,7 +440,6 @@ function edit_message($row, raw_content) { } const is_editable = editability === editability_types.FULL; - // current message's stream has been already been added and selected in Handlebars const $form = $( render_message_edit_form({
parent: reuse _=codecs.decode alias in exec'd first stage SSH command size: 453 (-8 bytes) Preamble size: 8946 (no change)
@@ -323,7 +323,7 @@ class Stream(mitogen.core.Stream): # replaced with the context name. Optimized for size. @staticmethod def _first_stage(): - import os,sys,zlib + import os,sys R,W=os.pipe() r,w=os.pipe() if os.fork(): @@ -337,7 +337,7 @@ class Stream(mitogen.core.Stream): os.environ['ARGV0']=e=sys.executable os.exe...
FLuxTerm now uses data provided by solver, VolTerm modified for use in update with plus sign solver passes vec to evaluator which ends up - after being put into variable by equation - as parameter for function(); flipped sign for convenience in EUSolver and RK solver
@@ -32,13 +32,14 @@ class AdvVolDGTerm(Term): if doeval: vols = self.region.domain.cmesh.get_volumes(1) # TODO which dimension do we really want? + # integral over element with constant test # function is just volume of the element out[:] = 0 # out[:, 0, 0, 0] = vols # out[:, 0, 1, 1] = vols / 3.0 - out[:nm.shape(vols)...
Not redrawing all the post every time a new one is added via websocket. Fixes T323
@@ -34,7 +34,14 @@ socket.on('uscore', function(d){ socket.on('thread', function(data){ socket.emit('subscribe', {target: data.pid}) - document.getElementsByClassName('alldaposts')[0].innerHTML = data.html + document.getElementsByClassName('alldaposts')[0].innerHTML; + var ndata = document.createElement( "div" ); + nda...
Corrected import in tutorial example. 'path' was imported instead of 're_path' from django.urls
@@ -233,7 +233,7 @@ Put the following code in ``chat/routing.py``: .. code-block:: python # chat/routing.py - from django.urls import path + from django.urls import re_path from . import consumers
Update xknx.md Type in the connection_state_changed_cb example. It currently says "connection_state_change_cb" instead of "connection_state_changed_cb". While this is a simple typo it makes the code fail.
@@ -146,7 +146,7 @@ async def main(): asyncio.run(main()) ``` -An awaitable `connection_state_change_cb` will be called every time the connection state to the gateway changes. Example: +An awaitable `connection_state_changed_cb` will be called every time the connection state to the gateway changes. Example: ```python i...
SceneInspector : Add tooltip to labels This just shows the same as the label, but can be useful in the case of extremely long names which don't fit fully on the label itself (same approach we use in the NodeEditor).
@@ -772,7 +772,8 @@ class DiffRow( Row ) : label = GafferUI.Label( inspector.name(), horizontalAlignment = GafferUI.Label.HorizontalAlignment.Right, - verticalAlignment = GafferUI.Label.VerticalAlignment.Top + verticalAlignment = GafferUI.Label.VerticalAlignment.Top, + toolTip = inspector.name() ) label._qtWidget().set...
added the missing padding_strategy in the function squad_convert_examples_to_features
@@ -389,6 +389,7 @@ def squad_convert_examples_to_features( doc_stride, max_query_length, is_training, + padding_strategy="max_length", return_dataset=False, threads=1, tqdm_enabled=True, @@ -439,6 +440,7 @@ def squad_convert_examples_to_features( max_seq_length=max_seq_length, doc_stride=doc_stride, max_query_length=m...
Added information for empty parameter when using Azure CLI in PowerShell * Added information for empty parameter when using Azure CLI in PowerShell Added information to use '""' or --% operator in PowerShell for parameters: public-ip-address nsg * Escaped ' characters Added missing escape sequence * Update _params.py
@@ -289,7 +289,7 @@ def load_arguments(self, _): c.argument('os_disk_size_gb', type=int, help='the size of the os disk in GB', arg_group='Storage') c.argument('availability_set', help='Name or ID of an existing availability set to add the VM to. None by default.') c.argument('vmss', help='Name or ID of an existing virt...
Fix spurious intermittent failure in test_machines.py::test_status Not sure why the agent_status seems to revert sometimes to 'pending' but the additional checks were basically redundant anyway.
@@ -26,18 +26,17 @@ async def test_status(event_loop): assert machine.agent_status == 'pending' assert not machine.agent_version + # there is some inconsistency in the capitalization of status_message + # between different providers await asyncio.wait_for( - model.block_until(lambda: (machine.status == 'running' and + ...
Fixed input_formatter scoreDiff issue Also removed unnecessary calculations (for now)
@@ -3,11 +3,11 @@ from modelHelpers import feature_creator def get_state_dim_with_features(): - return 198 + return 196 class InputFormatter: - last_score_diff = 0 + last_total_score = 0 """ This is a class that takes in a game_tick_packet and will return an array of that value @@ -54,14 +54,14 @@ class InputFormatter:...
Update dumpstyle.py Added from __future__ import absolute_import, and adjusted import statement for compatibility. Corrected directory location in __main__ routine to be relative to rst2pdf package (os.path.listdir('styles') wouldn't work if we weren't running from the right directory).
to .style in the styles directory. ''' +from __future__ import absolute_import import sys import os -from rson import loads as rloads +from .rson import loads as rloads from json import loads as jloads def dumps(obj, forcestyledict=True): @@ -155,7 +156,8 @@ def convert(srcname): dstf.write(dstr) dstf.close() - if __na...
Fix string decode issue for python3 A binary representation `"\n" * 5 + "hh".encode('utf-8')` reproduces the error from travis-ci.
@@ -52,7 +52,7 @@ class PythonScript(threading.Thread): else: # something unexpected happend here, this script was supposed to survive at leat the timeout if len(self.err) is not 0: - stderr = "\n" * 5 + self.err + stderr = "\n\n\n\n\n %s" % self.err raise AssertionError(stderr)
Fix syntax issues in vsts Fix syntax issues in vsts
@@ -3,13 +3,13 @@ steps: # Fix Git SSL errors pip install certifi python -m certifi > cacert.txt - Write-Host "##vso[task.setvariable variable=GIT_SSL_CAINFO]"$(Get-Content cacert.txt)" + Write-Host "##vso[task.setvariable variable=GIT_SSL_CAINFO]$(Get-Content cacert.txt)" # Shorten paths to get under MAX_PATH or else ...
ENH: added MetaLabels and reference tags Added a section for MetaLabels and added reference tags to some of the sections.
@@ -22,6 +22,7 @@ General .. automodule:: pysat.instruments.methods.general :members: +.. _api-instrument-template: Instrument Template ------------------- @@ -41,12 +42,24 @@ Files .. autoclass:: pysat.Files :members: +.. _api-meta: + Meta ---- .. autoclass:: pysat.Meta :members: +.. _api-metalabels: + +MetaLabels +--...
verify that files exist before trying to remove them, win_file.remove raises an exception if the file does not exist
@@ -2832,6 +2832,7 @@ def _findOptionValueInSeceditFile(option): _reader = codecs.open(_tfile, 'r', encoding='utf-16') _secdata = _reader.readlines() _reader.close() + if __salt__['file.file_exists'](_tfile): _ret = __salt__['file.remove'](_tfile) for _line in _secdata: if _line.startswith(option): @@ -2853,7 +2854,9 @...
[CI] Add alexnet and googlenet caffe model to request hook This PR intends to move the alexnet and googlenet caffe models from the old link to s3, therefore getting rid of the flakiness in `caffe/test_forward.py` introduced by external url timeouts. Fixes
@@ -37,6 +37,9 @@ URL_MAP = { "http://images.cocodataset.org/zips/val2017.zip": f"{BASE}/cocodataset-val2017.zip", "https://bj.bcebos.com/x2paddle/models/paddle_resnet50.tar": f"{BASE}/bcebos-paddle_resnet50.tar", "https://data.deepai.org/stanfordcars.zip": f"{BASE}/deepai-stanfordcars.zip", + "http://dl.caffe.berkeley...
fix session typo thanks to Vintas Avinash closes
@@ -3016,7 +3016,7 @@ def postStartSetup( self ): ## NOTE: MAKE SURE THIS IS LAST THING CALLED # Start the CLI if enabled if self.appPrefs['startCLI'] == '1': - info( "\n\n NOTE: PLEASE REMEMBER TO EXIT THE CLI BEFORE YOU PRESS THE STOP BUTTON. Not exiting will prevent MiniEdit from quitting and will prevent you from s...
Add missing closing paren in hint text The hint at the end of the pong tutorial associated with making the game end after a certain score was missing its closing parenthesis.
@@ -455,7 +455,7 @@ you could do: :class:`~kivy.uix.button.Button` and :class:`~kivy.uix.label.Label` classes, and figure out how to use their `add_widget` and `remove_widget` - functions to add or remove widgets dynamically. + functions to add or remove widgets dynamically.) * Make it a 4 player Pong Game. Most tablet...
Script to compare the scales calculated from DIALS vs aimless. Also start of code to create a simulated dataset.
@@ -238,7 +238,7 @@ def initialise_absorption_scales(self, reflection_table, lmax): def calc_absorption_constraint(self): n_g_scale = self.n_g_scale_params n_g_decay = self.n_g_decay_params - return (1e5 * (self.active_parameters[n_g_scale + n_g_decay:])**2) + return (1e7 * (self.active_parameters[n_g_scale + n_g_decay...
Make test assertions match the test name more closely This updates test_editable_vcs_install_in_pipfile_with_dependency_resolution_doesnt_traceback to check (a) that dependency resolution was triggered, and (b) that there was no traceback (rather than just the specific traceback we are currently seeing).
@@ -456,8 +456,8 @@ requests = {git = "https://github.com/requests/requests.git", editable = true} f.write(contents) c = p.pipenv('install') assert c.return_code == 1 - assert 'FileNotFoundError' not in c.out - assert 'FileNotFoundError' not in c.err + assert "Your dependencies could not be resolved" in c.err + assert ...
docs: Document how to use Zulip behind an haproxy reverse proxy. With significant rearrangement by tabbott to have more common text between different proxy implementations.
@@ -74,6 +74,43 @@ those providers, Zulip's full-text search will be unavailable. ## Putting the Zulip application behind a reverse proxy Zulip is designed to support being run behind a reverse proxy server. +This section contains notes on the configuration required with +variable reverse proxy implementations. + +### ...
tools/downloader/downloader.py: use the correct exit code on failure I accidentally removed this in
@@ -269,6 +269,7 @@ def main(): reporter.print('FAILED:') for failed_model_name in failed_models: reporter.print(failed_model_name) + sys.exit(1) if __name__ == '__main__': main()
Using raw ynode instead Since we don't have jenkins.yaml
@@ -13,7 +13,7 @@ commit = '' ircMsgResult(CHANNELS) { ystage('Test') { - ynode.forConfiguredHostType(ownerName: 'Yelp', repoName: 'paasta') { + ynode { ensureCleanWorkspace { commit = clone( PACKAGE_NAME,
tests/mechanism/RecurrentTransferMechanism: Enable LLVM tests The existing tests are simple enough for parent TransferMechanism execution. Recurrent projection is not used and the mechanism is reset each time.
@@ -94,28 +94,30 @@ class TestRecurrentTransferMechanismInputs: @pytest.mark.mechanism @pytest.mark.recurrent_transfer_mechanism @pytest.mark.benchmark(group="RecurrentTransferMechanism") - def test_recurrent_mech_inputs_list_of_ints(self, benchmark): + @pytest.mark.parametrize('mode', ['Python', 'LLVM']) + def test_re...
[libjpeg] Update checksums for tarballs The Independent JPEG Group uploaded new tarballs that removed some control characters from the beginning of some build files.
sources: "9c": url: "http://ijg.org/files/jpegsrc.v9c.tar.gz" - sha256: "650250979303a649e21f87b5ccd02672af1ea6954b911342ea491f351ceb7122" + sha256: "1e9793e1c6ba66e7e0b6e5fe7fd0f9e935cc697854d5737adec54d93e5b3f730" "9d": url: "http://ijg.org/files/jpegsrc.v9d.tar.gz" - sha256: "99cb50e48a4556bc571dadd27931955ff458aae3...
Update install.py hotfix
@@ -81,7 +81,7 @@ def linux_installation(): # Make the binary executable for path, _, _ in os.walk(os.path.join(worlds_path, "LinuxDefaultWorlds")): os.chmod(path, 0o777) - binary_path = os.path.join(worlds_path, "LinuxDefaultWorlds/LinuxNoEditor/Holodeck/Binaries/Linux/holodeck") + binary_path = os.path.join(worlds_pa...
Replace factory reset with select-all and delete. For developers with custom system scripts folders, as described in the DEBUGGING.md document, the factory reset was killing off the glTF addon itself.
@@ -25,7 +25,9 @@ try: filepath = argv[0] - bpy.ops.wm.read_factory_settings(use_empty=True) + bpy.ops.object.select_all(action='SELECT') + bpy.ops.object.delete(use_global=False) + bpy.ops.import_scene.gltf(filepath=argv[0]) extension = '.gltf'
[query] Don't broadcast the contigRecoding if there are no contigs We end up with tens of thousands of miniscule broadcasts across thousands of executors, the management of which seems to take signifigant time.
@@ -1465,14 +1465,15 @@ class PartitionedVCFRDD( @(transient@param) _partitions: Array[Partition] ) extends RDD[String](SparkBackend.sparkContext("PartitionedVCFRDD"), Seq()) { - val contigRemappingBc = sparkContext.broadcast(reverseContigMapping) + val contigRemappingBc = if (reverseContigMapping.size != 0) sparkConte...
Fix lightweight themes data in search API Fix mozilla/addons-frontend#1964
@@ -421,7 +421,9 @@ class ESBaseAddonSerializer(BaseESSerializer): display_username=persona_data['author'], header=persona_data['header'], footer=persona_data['footer'], - persona_id=1 if persona_data['is_new'] else None, + # "New" Persona do not have a persona_id, it's an old relic + # from old ones. + persona_id=0 if...
exe_test: Use assertNotIn Use assertNotIn instead of assertFalse(x in y) because it will give better error messages.
@@ -467,7 +467,7 @@ class TestExecutorTest(unittest.TestCase): self.assertTrue(record.outcome, Outcome.FAIL) # Verify phase_one was not run ran_phase = [phase.name for phase in record.phases] - self.assertFalse('phase_one' in ran_phase) + self.assertNotIn('phase_one', ran_phase) # Teardown function should be executed. ...
[varLib.featureVars] Fix overlap remainder logic Fixes
@@ -187,7 +187,8 @@ def overlayBox(top, bot): # Remainder is empty if bot's each axis range lies within that of intersection. # # Remainder is shrank if bot's each, except for exactly one, axis range lies - # within that of intersection. + # within that of intersection, and that one axis, it spills out of the + # inter...
Update oudated CutomLoader code example py3 for CustomLoader example
@@ -55,8 +55,8 @@ class BaseLoader: if not exists(path): raise TemplateNotFound(template) mtime = getmtime(path) - with file(path) as f: - source = f.read().decode('utf-8') + with open(path) as f: + source = f.read() return source, path, lambda: mtime == getmtime(path) """
cythonize --no-docstrings * cythonize -D, --no-docstrings Add `-D, --no-docstrings` option for the cythonize script. * remove the short `-D` option, remaining only `--no-docstrings`
@@ -94,6 +94,9 @@ def cython_compile(path_pattern, options): # assume it's a file(-like thing) paths = [path] + if options.no_docstrings: + Options.docstrings = False + ext_modules = cythonize( paths, nthreads=options.parallel, @@ -194,6 +197,8 @@ def parse_args(args): help='increase Python compatibility by ignoring so...
circleci: Use the joy of `os.makedirs(..., exist_ok=True)`. Since Python 3.2, we no longer need to write this little wrapper all over our own code! There was much rejoicing.
#!/usr/bin/env python3 -import errno import os import yaml -def generate_dockerfile_directories(dockerfile_path: str) -> None: - if not os.path.exists(os.path.dirname(dockerfile_path)): - try: - os.makedirs(os.path.dirname(dockerfile_path)) - except OSError as e: - if e.errno != errno.EEXIST: - raise - if __name__ == "...
tools/downloader/README.md: move the text about alternatives to --all It makes more sense to explain this right after --all is introduced.
@@ -67,17 +67,18 @@ The basic usage is to run the script like this: ./downloader.py --all ``` -This will download all models into a directory tree rooted in the current -directory. To download into a different directory, use the `-o`/`--output_dir` -option: +This will download all models. The `--all` option can be repl...
PrimitiveVariablesTest: check geometric interpretation interpretation needs to make it through interpretation needs to be updated properly (tests hash)
@@ -68,5 +68,42 @@ class PrimitiveVariablesTest( GafferSceneTest.SceneTestCase ) : del o2["a"] self.assertEqual( o1, o2 ) + def testGeometricInterpretation( self ) : + + s = GafferScene.Sphere() + p = GafferScene.PrimitiveVariables() + p["in"].setInput( s["out"] ) + + p["primitiveVariables"].addMember( "myFirstData", I...
don't use HiDPI icons in linux this fixes a too small tray icon in GNOME with HiDPI scaling, at the cost at the other icons being pixelated
@@ -338,6 +338,10 @@ class MaestralApp(QtWidgets.QSystemTrayIcon): def run(): QtCore.QCoreApplication.setAttribute(QtCore.Qt.AA_EnableHighDpiScaling) app = QtWidgets.QApplication(["Maestral"]) + if platform.system() == "Darwin": + # Fixes a Qt bug where the tray icon is too small on GNOME with HiDPI + # scaling enabled...
BUG: fix raise exception on granger causality test Issue Fix for the appropriate behavior when passing a list containing a zero lag to `maxlag` (e.g. `[0, 1, 2]`), now it raises `ValueError`
@@ -1336,18 +1336,17 @@ def grangercausalitytests(x, maxlag, addconst=True, verbose=True): addconst = bool_like(addconst, "addconst") verbose = bool_like(verbose, "verbose") try: + maxlag = int_like(maxlag, "maxlag") + if maxlag <= 0: + raise ValueError("maxlag must a a positive integer") + lags = np.arange(1, maxlag +...
small fixes removed a TODO changed separator in one test
@@ -121,7 +121,6 @@ Define a boolean variable BEFORE the for loop. Then change its value INSIDE the """ # TODO: MessageStep: catch the "obvious solution" where the user adds the separator after the last word? - # TODO: is overriding generate_inputs needed? def solution(self, words: List[str], separator: str): total = '...
WL: add Core.simulate_keypress This lets `Qtile.cmd_simulate_keypress` work when using the Wayland backend. The key is only processed internally for keybinds and if required passing it to a focussed `Internal` window.
@@ -687,3 +687,15 @@ class Core(base.Core, wlrq.HasListeners): def keysym_from_name(self, name: str) -> int: """Get the keysym for a key from its name""" return xkb.keysym_from_name(name, case_insensitive=True) + + def simulate_keypress(self, modifiers: List[str], key: str) -> None: + #"""Simulates a keypress on the fo...
Display NVCC version in CI for convenience to look at Summary: Pull Request resolved:
@@ -53,6 +53,11 @@ gcc --version echo "CMake version:" cmake --version +if [[ "$BUILD_ENVIRONMENT" == *cuda* ]]; then + echo "NVCC version:" + nvcc --version +fi + # TODO: Don't run this... pip_install -r requirements.txt || true
Fix a super annoying validation issue Was throwing opaque "too many values to unpack" error Simply needed the name of the field.
@@ -49,7 +49,9 @@ class InvenTreeMoneySerializer(MoneyField): if amount is not None: amount = Decimal(amount) except: - raise ValidationError(_("Must be a valid number")) + raise ValidationError({ + self.field_name: _("Must be a valid number") + }) currency = data.get(get_currency_field_name(self.field_name), self.defa...
Remove gw_port expire call This was initially added as part of the patch here: However, it doesn't serve a purpose anymore because nothing references the gateway port DB object before it is deleted. Closes-Bug:
@@ -436,11 +436,9 @@ class L3_NAT_dbonly_mixin(l3.RouterPluginBase, def _delete_router_gw_port_db(self, context, router): with context.session.begin(subtransactions=True): - gw_port = router.gw_port router.gw_port = None if router not in context.session: context.session.add(router) - context.session.expire(gw_port) try...
use [...]= operator instead of [()] or [:] () was aparently more of a nonstandard legacy thing ... is more recent : is avoided due to 0-d array assignment problem
@@ -634,7 +634,7 @@ class CPUCodeGenerator(PyGen): def generate_op(self, op, out, *args): recv_id = len(self.recv_nodes) self.recv_nodes.append(op) - self.append("{}[()] = self.recv_from_queue_send({})", out, recv_id) + self.append("{}[...] = self.recv_from_queue_send({})", out, recv_id) @generate_op.on_type(CPUQueueGa...
Remove unnecessary "distinct" clause in Node.objects.can_view. Forming queryset where node id is in list of node ids. List of node ids can have duplicates.
@@ -137,12 +137,12 @@ class AbstractNodeQuerySet(GuidMixinQuerySet): qs |= self.filter(private_links__is_deleted=False, private_links__key=private_link) if user is not None and not isinstance(user, AnonymousUser): - read_user_query = get_objects_for_user(user, 'read_node', self) + read_user_query = get_objects_for_user...
Avoid reconnect prompt after error if connection is still valid Instead of whitelisting all errors that do not require reconnecting, we simply only reconnect if we detect a disconnect has occurred. psql notably behaves in a similar way: Fixes
@@ -354,21 +354,16 @@ class PGExecute(object): def _must_raise(self, e): """Return true if e is an error that should not be caught in ``run``. - ``OperationalError``s are raised for errors that are not under the - control of the programmer. Usually that means unexpected disconnects, - which we shouldn't catch; we handl...
fix image export bug fixes
@@ -23,8 +23,8 @@ class ImageExporter(Exporter): bg.setAlpha(0) self.params = Parameter(name='params', type='group', children=[ - {'name': 'width', 'type': 'int', 'value': tr.width(), 'limits': (0, None)}, - {'name': 'height', 'type': 'int', 'value': tr.height(), 'limits': (0, None)}, + {'name': 'width', 'type': 'int',...
fix JNI wrapper for IValue interface change Summary: Pull Request resolved: Seems CI was broken by PR - fix based on interface change. Test Plan: - build locally
@@ -324,7 +324,7 @@ class JIValue : public facebook::jni::JavaClass<JIValue> { return jMethodListArr(JIValue::javaClassStatic(), jArray); } else if (ivalue.isGenericDict()) { auto dict = ivalue.toGenericDict(); - const auto keyType = dict._keyType(); + const auto keyType = dict.keyType(); if (!keyType) { facebook::jni:...
Fix gnocchi repository URL in local.conf.controller This patch set updates gnocchi repository URL in local.conf.controller bacause it moved from under openstack to their own repository.
@@ -46,7 +46,7 @@ disable_service ceilometer-acompute enable_service ceilometer-api # Enable the Gnocchi plugin -enable_plugin gnocchi https://git.openstack.org/openstack/gnocchi +enable_plugin gnocchi https://github.com/gnocchixyz/gnocchi LOGFILE=$DEST/logs/stack.sh.log LOGDAYS=2
Justify no cover for AccessDenied case The permissions with which stratis-cli makes requests on the D-Bus are controlled by the "stratisd.conf" file. The CLI tests do not control the contents or installation of "stratisd.conf" and therefore, we cannot test this case reliably.
@@ -168,9 +168,10 @@ def _interpret_errors(errors): # Inspect lowest error error = errors[-1] - # pylint: disable=fixme - # FIXME: remove no coverage pragma when adequate testing for CLI output - # exists. + # The permissions with which stratis-cli makes requests on the D-Bus + # are controlled by the "stratisd.conf" f...
Update commit Update commit as discussed here and advised there:
127.0.0.1 consumerproductsusa.com 127.0.0.1 ceromobi.club 127.0.0.1 com-notice.info -127.0.0.1 cws.conviva.com -#*.cws.conviva.com 127.0.0.1 www.com-notice.info 127.0.0.1 apple.com-notice.info 127.0.0.1 www.apple.com-notice.info #*.angiemktg.com 127.0.0.1 weconfirmyou.com #*.weconfirmyou.com +127.0.0.1 cws.conviva.com ...
Fix missing job_id parameter in the log message This is to fix the missing job_id parameter in the log message.
@@ -66,7 +66,8 @@ def get_job(node, job_id): except drac_exceptions.BaseClientException as exc: LOG.error('DRAC driver failed to get the job %(job_id)s ' 'for node %(node_uuid)s. Reason: %(error)s.', - {'node_uuid': node.uuid, + {'job_id': job_id, + 'node_uuid': node.uuid, 'error': exc}) raise exception.DracOperationEr...
added hash method internally protobuf convert list to set, which requires hashable type
@@ -220,6 +220,9 @@ class SignedMessage(SyftMessage): def get_protobuf_schema() -> GeneratedProtocolMessageType: return SignedMessage_PB + def __hash__(self) -> int: + return hash((self.signature, self.verify_key)) + class SignedImmediateSyftMessageWithReply(SignedMessage): """ """
Removed bit about unit testing in Karma Because there are no unit tests written in JS, it is probably more clear to remove the text explaining how to run the Karma tests.
@@ -73,44 +73,6 @@ You could also look in `tox.ini` and see which tests it runs, and run those comm python -m unittest test.test_integration ``` -#### To run lint and unit tests: - -```sh -$ npm test -``` - -#### To run unit tests and watch for changes: - -```sh -$ npm run test-watch -``` - -#### To debug unit tests in...
Bump the minimum Python dependency to 3.7 See
@@ -26,7 +26,7 @@ include = ["rich/py.typed"] [tool.poetry.dependencies] -python = "^3.6.3" +python = "^3.7.13" typing-extensions = { version = ">=4.0.0, <5.0", python = "<3.9" } dataclasses = { version = ">=0.7,<0.9", python = "<3.7" } pygments = "^2.6.0"
fix truth value of of numpy array when --input_crop arg is given, it is throwing error with "truth value of an array with more than on element ambiguous". since already there is check for crop_size>0 I I guess .any() should be sufficient.
@@ -228,7 +228,7 @@ def main(): if frame_num == 0: raise ValueError("Can't read an image from the input") break - if input_crop: + if input_crop it not None: frame = center_crop(frame, input_crop) if frame_num == 0: output_transform = OutputTransform(frame.shape[:2], args.output_resolution)
Fix url in python/setup.py setuptools metadata. Authors: - Carl Simon Adorf (https://github.com/csadorf) Approvers: - GALI PREM SAGAR (https://github.com/galipremsagar) - Corey J. Nolet (https://github.com/cjnolet) URL:
@@ -107,7 +107,7 @@ setup(name='cuml', "Programming Language :: Python :: 3.9" ], author="NVIDIA Corporation", - url="https://github.com/rapidsai/cudf", + url="https://github.com/rapidsai/cuml", setup_requires=['Cython>=0.29,<0.30'], packages=find_packages(include=['cuml', 'cuml.*']), package_data={
handle webview print requests in cocoa The WebKit webview in macOS does not automatically handle the Javascript window.print method. This fix let pywebview handle the print event via WebUIDelegate's webView:printFrameView: method.
@@ -57,6 +57,27 @@ class BrowserView: def webView_contextMenuItemsForElement_defaultMenuItems_(self, webview, element, defaultMenuItems): return nil + def webView_printFrameView_(self, webview, frameview): + """ + This delegate method is invoked when a script or a user wants to print a webpage (e.g. using the Javascrip...