message
stringlengths
13
484
diff
stringlengths
38
4.63k
Add Dropout to blacklist Summary: Pull Request resolved: Add Dropout to blacklist to avoid the error in eager mode quantization. ghstack-source-id: Test Plan: Test locally in python notebook.
@@ -11,7 +11,7 @@ from .QConfig import default_dynamic_qconfig import torch.nn.qat as nnqat -DEFAULT_SKIP_LIST = [nn.Identity, nn.MaxPool2d, nn.AvgPool2d, nn.AdaptiveAvgPool2d] +DEFAULT_SKIP_LIST = [nn.Dropout, nn.Identity, nn.MaxPool2d, nn.AvgPool2d, nn.AdaptiveAvgPool2d] def propagate_qconfig_helper(module, qconfig_d...
Better validation of filelists Closes
@@ -980,8 +980,12 @@ def _normalize_fileset(fileset, treename): if isinstance(fileset, str): with open(fileset) as fin: fileset = json.load(fin) + elif not isinstance(fileset, Mapping): + raise ValueError("Expected fileset to be a path string or mapping") for dataset, filelist in fileset.items(): if isinstance(filelist...
util.commandline: StoreRepoObject: skip check for unknown aliases If no aliases were allowed.
@@ -286,6 +286,7 @@ class StoreRepoObject(StoreConfigObject): self.repo_key = self.valid_repo_types[self.repo_type] self.allow_aliases = set(kwargs.pop("allow_aliases", ())) + if self.allow_aliases: unknown_aliases = self.allow_aliases.difference(self.valid_repo_types) if unknown_aliases: raise argparse.ArgumentTypeErr...
snake: Refactor awkward [0] to a short-circuit In get_raw_secret_value()
@@ -657,13 +657,9 @@ def get_raw_secret_value( plugin_secrets = plugin.analyze(file_handle, filename) - matching_secret = [ - plugin_secret.secret_value - for plugin_secret in plugin_secrets - if plugin_secret.secret_hash == secret['hashed_secret'] - ] + # Return value of matching secret + for plugin_secret in plugin_s...
pmaint regen: handle repos without cache in a better fashion Previously this would just crash when no repo args were passed since the attr would be missing for the stacked global repo. We really need a way to limit certain tools to certain types of repos.
@@ -282,7 +282,7 @@ def regen_main(options, out, err): if not repo.operations.supports("regen_cache"): out.write("repository %s doesn't support cache regeneration" % (repo,)) continue - elif not repo.cache and not options.force: + elif not getattr(repo, 'cache', False) and not options.force: out.write("skipping repo %s...
Inkscape_r2p: Fix imports for Python 2/3 Add absolute_import, change import syntax.
@@ -12,11 +12,12 @@ the vectorpdf code to process the PDF. and doesn't check return from inkscape for errors. ''' +from __future__ import absolute_import import sys, os, tempfile, subprocess from weakref import WeakKeyDictionary from rst2pdf.log import log -from vectorpdf_r2p import VectorPdf +from .vectorpdf_r2p impor...
Fixed CHECK failure in logger module due to Docker workaround. NOTE: Marathon/Metronome apps do not allow colons in the task ID.
"single_source" : { "kind": "git", "git": "https://github.com/dcos/dcos-mesos-modules.git", - "ref": "7ce5ba397bbaa8fdcc985ef2e6dd8bc81709931a", - "ref_origin": "1.9.x" + "ref": "2a5a02f1de47dcbe44844f7358adf85ea630cf4a", + "ref_origin": "master" } }
Fix bug in discv5 logging statement Fixes
@@ -781,7 +781,7 @@ class DiscoveryProtocol(asyncio.DatagramProtocol): if received_echo != echo: self.logger.warning( "Unexpected topic_nodes from %s, expected echo %s, got %s", - encode_hex(echo), encode_hex(received_echo)) + remote, encode_hex(echo), encode_hex(received_echo)) return nodes.extend(response)
No need for if_main_process() in on_stage_end run_on_main() is already used in `core.py` for `on_stage_end` function
@@ -116,7 +116,7 @@ class W2VBrain(sb.core.Brain): stage_stats["acc"] = sum(self.acc_metric) / len(self.acc_metric) # Perform end-of-iteration things, like annealing, logging, etc. - if stage == sb.Stage.VALID and sb.utils.distributed.if_main_process(): + if stage == sb.Stage.VALID: lr = self.hparams.noam_annealing.cur...
slack: Parse emoji skin tone variants. Fixes part of
@@ -1123,7 +1123,11 @@ def build_reactions( # For the Unicode emoji codes, we use equivalent of # function 'emoji_name_to_emoji_code' in 'zerver/lib/emoji' here for slack_reaction in reactions: - emoji_name = slack_reaction["name"] + # Slack's data exports use encode skin tone variants on emoji + # reactions like this:...
Fixes Circuit.expand_subcircuits and adds .expand_subcircuits_inplace. The prior .expand_subcircuits() method worked in-place, so it was renamed to .expand_subcircuits_inplace() and a new .expand_subcircuits() method was created which simply copies a circuit and expands the copy's subcircuits in-place before returning ...
@@ -1682,7 +1682,7 @@ class Circuit(object): parallel_lbls = [_Label(lbl_list) if len(lbl_list) != 1 else lbl_list[0] for lbl_list in parallel_lbls] return Circuit._fastinit(tuple(parallel_lbls), self.line_labels, editable=False, occurrence=self.occurrence) - def expand_subcircuits(self): # INPLACE + def expand_subcirc...
Updates packages arrow-0.12.1 boto3-1.5.22 botocore-1.8.36 certifi-2018.1.18
# # pip-compile --output-file requirements.txt requirements.in # -arrow==0.12.0 +arrow==0.12.1 blessed==1.14.2 -boto3==1.5.14 -botocore==1.8.28 # via boto3, s3transfer -certifi==2017.11.5 # via requests +boto3==1.5.22 +botocore==1.8.36 # via boto3, s3transfer +certifi==2018.1.18 # via requests chardet==3.0.4 # via requ...
Fix 15135 * Fix 15135 Remove the `update_addon_total_downloads` per * Update the run time for update_addon_weekly_downloads
@@ -36,8 +36,7 @@ HOME=/tmp 00 12 * * * %(django)s download_counts_from_file # Once per day after metrics import is done -30 12 * * * %(z_cron)s update_addon_total_downloads -35 12 * * * %(z_cron)s update_addon_weekly_downloads +30 12 * * * %(z_cron)s update_addon_weekly_downloads 30 13 * * * %(z_cron)s update_addon_av...
Fix Rosenbrock tutorial The algorithms list had a missing value, which would cause the script to error out
@@ -83,7 +83,7 @@ sampler.sample(rep) results.append(sampler.getdata()) -sampler=spotpy.algorithms.demcz(spot_setup, parallel=parallel, dbname='RosenDREAM', dbformat=dbformat, sim_timeout=timeout) +sampler=spotpy.algorithms.demcz(spot_setup, parallel=parallel, dbname='RosenDEMCZ', dbformat=dbformat, sim_timeout=timeout...
Fix .get_buttons failing for some messages sent by the bot Closes
@@ -1080,7 +1080,8 @@ class Message(ChatGetter, SenderGetter, TLObject, abc.ABC): for row in self.reply_markup.rows: for button in row.buttons: if isinstance(button, types.KeyboardButtonSwitchInline): - if button.same_peer: + # no via_bot_id means the bot sent the message itself (#1619) + if button.same_peer or not sel...
Adjust paired PureCN to the new way of locating PureCN.R Unlike run_purecn_normaldb, run_purecn was never adjusted.
@@ -165,7 +165,10 @@ def _run_purecn(paired, work_dir): # Use UCSC style naming for human builds to support BSgenome genome = ("hg19" if dd.get_genome_build(paired.tumor_data) in ["GRCh37", "hg19"] else dd.get_genome_build(paired.tumor_data)) - cmd = ["PureCN.R", "--seed", "42", "--out", tx_out_base, "--rds", "%s.rds" ...
Fix incorrect smartos.vm_present example When looking up my own docs because I forgot how it worked, I noticed and example was broken. I also added an extra warning as I wasted half an hour on silly mistake.
@@ -58,7 +58,7 @@ Management of SmartOS Standalone Compute Nodes label: 'test kvm' owner: 'sjorge' disks: - disk0 + disk0: size: 2048 model: virtio compression: lz4 @@ -111,6 +111,12 @@ Management of SmartOS Standalone Compute Nodes they get removed via add_*, set_*, update_*, and remove_*. Properties must be manually ...
Add choices for GG45 and TERA connectors and Cat7a/Cat8 cables Fixes
@@ -873,6 +873,10 @@ class PortTypeChoices(ChoiceSet): TYPE_8P6C = '8p6c' TYPE_8P4C = '8p4c' TYPE_8P2C = '8p2c' + TYPE_GG45 = 'gg45' + TYPE_TERA4P = 'tera-4p' + TYPE_TERA2P = 'tera-2p' + TYPE_TERA1P = 'tera-1p' TYPE_110_PUNCH = '110-punch' TYPE_BNC = 'bnc' TYPE_MRJ21 = 'mrj21' @@ -898,6 +902,10 @@ class PortTypeChoices...
Add new Absorp Chl input to modelinputs.json The added AbsorptionChillerElecCOP parameter is always passed to utils.jl/reopt.jl, so we need to add it to modelinputs.json for the precompile
"BoilerEfficiency": 1.0 , "ElectricChillerCOP": 1.0 , "AbsorptionChillerCOP": 1.0 , + "AbsorptionChillerElecCOP": 1.0, "CHPThermalProdSlope": [] , "CHPThermalProdIntercept": [] , "FuelBurnYIntRate": [] ,
compose: Change borders from gray to translucent. This works better on color backgrounds while staying the same on white. The compose input borders are also darkened slightly.
.compose-content { - border-top: 1px solid hsl(0, 0%, 93%); + border-top: 1px solid hsla(0, 0%, 0%, 0.07); -webkit-transition: background-color 200ms linear; -moz-transition: background-color 200ms linear; -o-transition: background-color 200ms linear; @@ -299,7 +299,7 @@ textarea.new_message_textarea { textarea.new_mes...
Fix docstring of test_request_context Add missing `app.`.
@@ -2448,7 +2448,7 @@ class Flask(Scaffold): :data:`request` point at the request for the created environment. :: - with test_request_context(...): + with app.test_request_context(...): generate_report() When using the shell, it may be easier to push and pop the
refactor: support generators in db.bulk_insert When you want to insert a huge amount of docs in DB, using bulk insert currently requries creating a huge number of objects, this is ineffecient from memory perspective and also delays failures if any till last step in execution.
import datetime import json +import itertools import random import re import string import traceback from contextlib import contextmanager, suppress from time import time +from typing import Any, Dict, Iterable, List, Optional, Sequence, Tuple, Union from pypika.dialects import MySQLQueryBuilder, PostgreSQLQueryBuilder...
enhancement: add a test case of empty patterns for pickle backend add a test case to load some empty patterns for pickle backend.
@@ -20,6 +20,7 @@ class HasParserTrait(TBC.HasParserTrait): class Test_10(TBC.Test_10_dumps_and_loads, HasParserTrait): load_options = dump_options = dict(protocol=TT.pickle.HIGHEST_PROTOCOL) + empty_patterns = [('', {})] class Test_20(TBC.Test_20_dump_and_load, HasParserTrait):
Update MarySpeech.py enriched
#start Service -mouth = Runtime.createAndStart("MarySpeech", "MarySpeech") +mouth = Runtime.start("MarySpeech", "MarySpeech") + +#possible voices +print ("these are the voices I can have", mouth.getVoices()) +print ("this is the voice I am using", mouth.getVoice()) + +#set a different voice +#mouth.setVoice("cmu-slt-hs...
Add missing instruction to dev installation guide The missing data folder will throw an exception: `sqlalchemy.exc.OperationalError: (sqlite3.OperationalError) unable to open database file`
@@ -40,6 +40,13 @@ Take a look at [Polar][polar] for an excellent way of spinning up a Lightning Ne ## Running the server LNbits uses [Quart][quart] as an application server. +Before running the server for the first time, make sure to create the data folder: + +```sh +$ mkdir data +``` + +To then run the server, use: `...
Add GUI logging for phobos Log messages are displayed in the GUI depending on the add-on settings of the loglevel.
@@ -79,8 +79,8 @@ def decorate(level): def log(message, level="INFO", origin=None, prefix=""): """Logs a given message to the blender console and logging file if present and if log level is low enough. The origin can be defined as string. - However, if not a string the information will also be displayed in the - Blende...
Update release.md Probably want to delete gitconfig otherwise people will be submitting changes to their cloned repos as will roscoe :D
@@ -9,7 +9,7 @@ Notes on how to release donkey. 3. Pull the lastest donkeycar code. 4. Make your changes. 5. Move the disk back to your computer. -6. Remove your wi-fi password and change the host name to d2. +6. Remove your wi-fi password and change the host name to d2. Delete `.gitconfig`. 7. Create the disk image fr...
Improve error logging for failures to update or create StateAnswersCalcOutputModel entities.
@@ -853,8 +853,12 @@ class StateAnswersCalcOutputModel(base_models.BaseMapReduceBatchResultsModel): try: # This may fail if calculation_output is too large. instance.put() - except Exception as e: - logging.error(e) + except Exception: + logging.exception( + 'Failed to add calculation output for exploration ID %s, ' + ...
DOC: Update macro names. [ci skip]
@@ -619,14 +619,14 @@ for NumPy v1.14 and above if (!PyArg_ParseTuple(args, "OOO!", &arg1, &arg2, &PyArray_Type, &out)) return NULL; - arr1 = PyArray_FROM_OTF(arg1, NPY_DOUBLE, NPY_IN_ARRAY); + arr1 = PyArray_FROM_OTF(arg1, NPY_DOUBLE, NPY_ARRAY_IN_ARRAY); if (arr1 == NULL) return NULL; - arr2 = PyArray_FROM_OTF(arg2, ...
MAINT: refactor on TreeGeometryBase [CHANGED] store the cumulative length attribute in params['cum_length'] [CHANGED] mopved _init_tip_ranks() method from SquareTreeGeometry to TreeGeometryBase
@@ -490,7 +490,7 @@ class TreeGeometryBase(PhyloNode): if self.is_root(): self._x = 0 elif self._x is None: - val = self.params[self._length] + self.parent.x + val = self.params['cum_length'] self._x = val return self._x @@ -525,13 +525,13 @@ class TreeGeometryBase(PhyloNode): if edge.is_root(): continue - parent_frac ...
SpreadsheetUI : Format array values separated by "," Based on feedback from Murray.
@@ -1046,12 +1046,12 @@ class _PlugTableModel( QtCore.QAbstractTableModel ) : elif value is None : return "" - if not forToolTip : - return str( value ) - else : try : - return "\n".join( str( x ) for x in value ) + # Unknown type. If iteration is supported then use that. + separator = "\n" if forToolTip else ", " + re...
tests/DDM: Drop extra 'monitor' mechanism from the threshold modulation test Pass the modulator value directly from input.
@@ -665,30 +665,21 @@ def test_DDM_in_composition(benchmark, comp_mode): @pytest.mark.composition @pytest.mark.ddm_mechanism def test_DDM_threshold_modulation(comp_mode): - M = pnl.DDM( - name='DDM', + M = pnl.DDM(name='DDM', function=pnl.DriftDiffusionAnalytical( threshold=20.0, ), ) - monitor = pnl.TransferMechanism(...
[ENH] Proximity forest, removal of legacy conversion This PR replaces legacy conversion in proximity forest with `convert` - should be 1:1 refactor change.
@@ -15,7 +15,7 @@ from sklearn.preprocessing import normalize from sklearn.utils import check_random_state from sktime.classification.base import BaseClassifier -from sktime.datatypes._panel._convert import from_nested_to_2d_array +from sktime.datatypes import convert from sktime.distances import ( dtw_distance, erp_di...
Fix warning check for python 2.7 Python 2.7 represses repeated warnings in a way that causes the unit test to fail => make sure that warnings are always generated
@@ -139,6 +139,7 @@ class TestFreqresp(unittest.TestCase): # Check for warning if frequency is out of range import warnings + warnings.simplefilter('always', UserWarning) # don't supress with warnings.catch_warnings(record=True) as w: omega_bad = np.linspace(10e-4,1.1,10) * np.pi/sys.dt ret = sys.freqresp(omega_bad)
Fix for ValueError: zero-size array This PR is part of * fix for 'ValueError: zero-size array to reduction operation maximum which has no identity' when .loc[[key]] isn't found. This didn't raise in pandas 1.0, does in 1.2 * fix cached_property to work with 3.7 or 3.9.
@@ -54,6 +54,10 @@ from libs.datasets.taglib import UrlStr from libs.datasets.demographics import DistributionBucket from libs.pipeline import Region import pandas.core.groupby.generic + +try: # To work with python 3.7 and 3.9 without changes. + from functools import cached_property +except ImportError: from backports....
Filter custom events from stats_for_run query Same as
@@ -289,7 +289,12 @@ def get_stats_for_run(self, run_id): db.func.max(SqlEventLogStorageTable.c.timestamp).label("last_event_timestamp"), ] ) - .where(SqlEventLogStorageTable.c.run_id == run_id) + .where( + db.and_( + SqlEventLogStorageTable.c.run_id == run_id, + SqlEventLogStorageTable.c.dagster_event_type != None, + ...
BUG: stats: Random parameters in `pytest.mark.parametrize()` break pytest-xdist. Don't use random parameters in `pytest.mark.parametrize()`, as it can confuse the pytest-xdist extension; see Closes
@@ -1385,7 +1385,8 @@ class TestLogistic: # with 64 bit floating point. assert_equal(logp, [-800, -800]) - @pytest.mark.parametrize("loc_rvs,scale_rvs", [np.random.rand(2)]) + @pytest.mark.parametrize("loc_rvs,scale_rvs", [(0.4484955, 0.10216821), + (0.62918191, 0.74367064)]) def test_fit(self, loc_rvs, scale_rvs): dat...
Added missing dot Added a missing dot in the `Launch a Pipeline` section of Tools
@@ -216,7 +216,7 @@ Archived pipelines are not returned by default. To include them, use the `--show ## Launch a pipeline Some nextflow pipelines have a considerable number of command line flags that can be used. -To help with this, you can use the `nf-core launch` command +To help with this, you can use the `nf-core l...
Correct typo "baised" ==> "based"
@@ -19,7 +19,7 @@ MAP_acq_func = { class AMBS(Search): - """Asynchronous Model-Based Search baised on the `Scikit-Optimized Optimizer <https://scikit-optimize.github.io/stable/modules/generated/skopt.Optimizer.html#skopt.Optimizer>`_. + """Asynchronous Model-Based Search based on the `Scikit-Optimized Optimizer <https:...
[IMPR] Add -confirm option to harvest_template.py add -confirm option which sets 'always' option to False remove -always option because it is the default behavior update argument parsing
@@ -22,8 +22,7 @@ These command line parameters can be used to specify which pages to work on: You can also use additional parameters: --always If used, the bot won't ask if it should add the specified - text +-confirm If used, the bot will ask if it should make changes -create Create missing items before importing. @@...
Update New York.md Adding June 5th incident involving a reporter being shot at/arrested.
@@ -27,6 +27,13 @@ id: ny-buffalo-2 * https://www.wivb.com/news/five-people-arrested-one-person-injured-during-protest-activity-in-niagara-square/ * https://www.reddit.com/r/PublicFreakout/comments/gwv7k4/just_about_an_hour_ago_police_officers_shove_man/fsxfeb3/ +### Reporter shot at after identifying himself | June 5t...
Fix crawler for comrademao When getting chapter body in korean novel in comrademao old crawler return [], this update fix it
@@ -80,7 +80,11 @@ class ComrademaoCrawler(Crawler): soup = BeautifulSoup(response.content, 'lxml') logger.debug(soup.title.string) + if soup.select('div.entry-content div.container div.container a p'): contents = soup.select('div.entry-content div.container div.container a p') + else: + contents = soup.select('div.ent...
Change all comparisons to lowerase Removed some superfluous parentheses.
@@ -66,9 +66,10 @@ def error_response(message, error_code, http_status_code, headers=None): def _matches_content_type(content_type, valid_content_types): # If '*/*' is in the Accept header or the valid types, # then all content_types match. Otherwise see of there are any common types - return ('*/*' in content_type or ...
Python3.8: Fix, positional only arguments were not enforced be so. * Only one of the checking loops was considering the proper start value.
@@ -1038,7 +1038,7 @@ static Py_ssize_t handleKeywordArgs(struct Nuitka_FunctionObject const *function if (found == false) { PyObject **varnames = function->m_varnames; - for (Py_ssize_t i = 0; i < keywords_count; i++) { + for (Py_ssize_t i = kw_arg_start; i < keywords_count; i++) { if (RICH_COMPARE_BOOL_EQ_OBJECT_OBJE...
decrease min-delta in early stopping to 0.002 triggers stopping with decent amount of training data too early
@@ -82,7 +82,7 @@ def _expand_gt(ctx, param, value): help='Stop condition for training. Set to `early` for early stooping or `dumb` for fixed number of epochs') @click.option('-N', '--epochs', show_default=True, default=-1, help='Number of epochs to train for') @click.option('--lag', show_default=True, default=5, help=...
Fix error in plot_color2D method: handle lists of different-lengths lists in the y-axis
@@ -954,8 +954,8 @@ class BaseDataAnalysis(object): else: plot_xvals_step = (abs(np.max(plot_xvals) - np.min(plot_xvals)) / len(plot_xvals)) - plot_yvals_step = (abs(np.max(plot_yvals) - np.min(plot_yvals)) / - len(plot_yvals)) + plot_yvals_step = [(abs(np.max(x) - np.min(x)) / + len(x)) for x in plot_yvals] # plot_yva...
initialize meshrenderer before pybullet in 18.04 initialize pybullet GUI first will cause segfault, the reason is unknown
@@ -45,6 +45,12 @@ class Simulator: self.load() def load(self): + self.renderer = MeshRenderer(width=self.resolution, + height=self.resolution, + device_idx=self.device_idx, + use_fisheye=self.use_fisheye) + self.renderer.set_fov(90) + if self.mode == 'gui': self.cid = p.connect(p.GUI) else: @@ -52,12 +58,6 @@ class Si...
bip39_recovery: also scan change addresses fixes
# file LICENCE or http://www.opensource.org/licenses/mit-license.php from typing import TYPE_CHECKING +import itertools from . import bitcoin from .constants import BIP39_WALLET_FORMATS @@ -44,11 +45,15 @@ async def scan_for_active_accounts(network: 'Network', get_account_xpub, wallet_ async def account_has_history(net...
[tasks] Create different Loop objects for different instances Fixes
@@ -405,6 +405,21 @@ class Loop: self.hours = hours self.minutes = minutes +class _LoopFactory: + def __init__(self, func, **kwargs): + self.func = func + self.name = func.__name__ + self.kwargs = kwargs + + def __get__(self, obj, objtype): + if obj is None: + return self + + loop = Loop(self.func, **self.kwargs) + loo...
scim: Temporarily stop running SCIM change operations atomically. do_deactivate_user can't be run in an atomic block due to concerns around revoking session in a transaction. See for more details. Without the change in this commit, the process of deactivating a user via SCIM is broken.
@@ -4,7 +4,7 @@ import django_scim.constants as scim_constants import django_scim.exceptions as scim_exceptions from django.conf import settings from django.core.exceptions import ValidationError -from django.db import models, transaction +from django.db import models from django.http import HttpRequest from django_sci...
Update premailer function call. The signature changed a bit from the version we used to run.
@@ -110,7 +110,7 @@ def make_mail(subject, if html_template: html = transform(render_email(html_template, context_vars), - 'https://' + Site.objects.get_current().domain) + base_url='https://' + Site.objects.get_current().domain) mail.attach_alternative(html, 'text/html') return mail
Fix requirements remove duplicated requirements * gevent is required by locustio and nose by apiritif
@@ -7,7 +7,6 @@ fuzzyset==0.0.19 hdrpy>=0.3.3 ipaddress; python_version < '3.0' lxml>=3.8.0,!=4.2.0 -nose progressbar33 psutil>=5,!=5.3.0 pytest>=3 @@ -18,4 +17,3 @@ selenium Appium-Python-Client urwid==2.0.1 terminaltables>=3.1.0 -gevent!=1.3.5
fix `GUILD_HELP_JSON=1` partial reversion of
@@ -165,6 +165,15 @@ class JSONHelpFormatter: if self._help_text is not None: self._help_text.append("\n") + @contextlib.contextmanager + def indentation(self): + # Used by click when GUILD_HELP_JSON=1 + self.indent() + try: + yield + finally: + self.dedent() + def indent(self): if self._help_text is None: self._help_t...
fix Raisecom.RCIOS get_arp HG-- branch : feature/dcs
@@ -27,6 +27,6 @@ class Script(BaseScript): r += [{ "ip": match.group("ip"), "mac": match.group("mac"), - "interface": "ip%s" % match.group("interface") + "interface": match.group("interface") }] return r
Readme.md: Fix Image displayment The `center` tag would cause the image not to be rendered, but the raw text to be inserted. Simply removing the center tag fixes this.
@@ -37,9 +37,7 @@ Full text available at: http://arxiv.org/abs/1609.06647 The *Show and Tell* model is a deep neural network that learns how to describe the content of images. For example: -<center> ![Example captions](g3doc/example_captions.jpg) -</center> ### Architecture @@ -66,9 +64,7 @@ learned during training. Th...
Fixed a typo in the return type of _array_ir_types There could be other typing issues in that module, but I will address them separately.
@@ -115,7 +115,7 @@ def dtype_to_ir_type(dtype: Union[np.dtype, np.generic]) -> ir.Type: f"No dtype_to_ir_type handler for dtype: {dtype}") from err return ir_type_factory() -def _array_ir_types(aval: core.ShapedArray) -> ir.Type: +def _array_ir_types(aval: core.ShapedArray) -> Sequence[ir.Type]: return (ir.RankedTenso...
Keymap: Add Goto Next/Prev Modification New builtin commands added with ST3189.
@@ -137,6 +137,9 @@ next_field: next_misspelling: command_type: text doc_string: Navigate to the next misspelling in the document. +next_modification: + command_type: text + doc_string: Navigate to the next modification in the document. next_result: command_type: window doc_string: Jump to the next build result. @@ -17...
Update binify.py Clearly I didn't think through the previous change.
@@ -10,6 +10,7 @@ def handle_binify(command: Command): if not command.has_arg(): response = "Please include string to convert." elif set(command.arg).issubset(["0", "1", " "]) and len(command.arg) > 2: + command.arg = command.arg.replace(" ", "") if len(command.arg) % 8 != 0: response = "Binary string contains partial ...
`streamListener.filter(follow=)` expects `[str]` Example shows the list of parameters as `int`s; they should be `str`s.
@@ -83,7 +83,7 @@ the word *python*. The **track** parameter is an array of search terms to stream This example shows how to use **filter** to stream tweets by a specific user. The **follow** parameter is an array of IDs. :: - myStream.filter(follow=[2211149702]) + myStream.filter(follow=["2211149702"]) An easy way to ...
fix cuda multiple algorithm test Summary: Fixing a bug in the multiple algorithm test where threads were spawned repeatedly, causing collisions during rendezvous.
@@ -156,8 +156,8 @@ TEST_F(CudaAllreduceTest, MultipleAlgorithms) { allreduceHalvingDoubling, allreduceHalvingDoublingPipelined}; - for (const auto& fn : fns) { spawn(size, [&](std::shared_ptr<Context> context) { + for (const auto& fn : fns) { // Run algorithm auto fixture = CudaFixture(context, 1, count); auto ptrs = ...
Update domain.txt typo
@@ -5281,7 +5281,7 @@ pktriot.net # Reference: https://twitter.com/kyleehmke/status/1383742871329591296 # Reference: https://github.com/stamparm/maltrail/pull/17070 -# Reference: # Reference: https://www.virustotal.com/gui/file/08261ed40e21140eb438f16af0233217c701d9b022dce0a45b6e3e1ee2467739/detection +# Reference: htt...
Add proper __repr__ to LogSoftMax Summary: Fixes Pull Request resolved:
@@ -1128,6 +1128,9 @@ class Softmax(Module): def forward(self, input): return F.softmax(input, self.dim, _stacklevel=5) + def extra_repr(self): + return 'dim={dim}'.format(dim=self.dim) + @weak_module class Softmax2d(Module):
[IMPR] Use a set as default container A set is the the appropriate implemetation of a container holding all seen items instead using a dict with it's key and unused value. Don't care about 2 nanoseconds which is lower than the function overhead!
@@ -843,14 +843,14 @@ def filter_unique(iterable, container=None, key=None, add=None): """ Yield unique items from an iterable, omitting duplicates. - By default, to provide uniqueness, it puts the generated items into - the keys of a dict created as a local variable, each with a value of True. - It only yields items w...
puppeteer_tests: Change `test_get_api_key` order to fix the flake. I tried different methods/strategies to find the reason for this flake. But sadly I couldn't find the actual reason for its failure. (Read https://chat.zulip.org/#narrow/stream/43-automated-testing/topic/upgrading.20puppeteer.20to.209.2E1.2E1) Somehow c...
@@ -62,7 +62,8 @@ async function test_change_password(page: Page): Promise<void> { // when the above issue is resolved. await page.waitForFunction(() => document.activeElement!.id === "change_password_modal"); await page.type("#old_password", test_credentials.default_user.password); - await page.type("#new_password", "...
fix(device): fix z2m mapping of W2049LightController related to
@@ -505,14 +505,13 @@ class E1812SwitchController(SwitchController): class W2049LightController(LightController): def get_z2m_actions_mapping(self) -> DefaultActionsMapping: return { - "brightness_up_click": Light.TOGGLE, - "brightness_down_click": Light.CLICK_BRIGHTNESS_DOWN, + "on": Light.ON, + "off": Light.OFF, "arr...
speed up determining row height in Tree avoid calling outlineView_viewForTableColumn_item_ from outlineView_heightOfRowByItem_
@@ -65,7 +65,8 @@ class TogaTree(NSOutlineView): @objc_method def outlineView_viewForTableColumn_item_(self, tree, column, item): - col_identifier = self._impl.column_identifiers[id(column.identifier)] + + col_identifier = str(column.identifier) try: value = getattr(item.attrs['node'], col_identifier) @@ -118,16 +119,2...
Documentation: added converor-stager description Removed one duplicated line
@@ -34,8 +34,7 @@ def get_parser(): """ Returns the argparse parser. """ - parser = argparse.ArgumentParser() - parser = argparse.ArgumentParser() + parser = argparse.ArgumentParser(description="Conveyor is a daemon to manage file transfers. The conveyor-stager is responsible for make transfers from Tape endopoints to ...
exception-handling-error-in-network-attach Attach the same network to the container, the error log is 2018-02-09 17:31:06.811 43376 ERROR zun.compute.manager TypeError: 'Container' object has no attribute '__getitem__' this patch fix it Closes-Bug:
@@ -938,7 +938,7 @@ class DockerDriver(driver.ContainerDriver): raise exception.ZunException('Container %(container)s has' ' alreay connected to the network' '%(network)s.' - % {'container': container['uuid'], + % {'container': container.uuid, 'network': network}) self._get_or_create_docker_network(context, network_api...
Fix failing doctests on auto ticks But I am not convinced the code is working properly yet
@@ -259,8 +259,11 @@ class _HeatMapper(object): bbox = ax.get_window_extent().transformed(transform) size = [bbox.width, bbox.height][axis] axis = [ax.xaxis, ax.yaxis][axis] - fontsize = axis.get_majorticklabels()[0].get_fontsize() - max_ticks = int((size * .85) // (fontsize / 72)) + tick, = axis.set_ticks([0]) + fonts...
description added functions
@@ -35,6 +35,8 @@ The micro framework features following algorithms: The following benchmark functions are included in NiaPy: - Ackley +- Alpine1 +- Alpine2 - Griewank - Rastrigin - Rosenbrock @@ -44,6 +46,7 @@ The following benchmark functions are included in NiaPy: - Sphere - Whitley + # Setup ## Requirements
Add show all host_status policy to scn001 Depends-on:
@@ -200,3 +200,6 @@ parameter_defaults: MultipathdEnable: true NovaLibvirtVolumeUseMultipath: true BackupAndRestoreSkipNFSTest: true + NovaShowHostStatus: all + NovaApiHostStatusPolicy: > + (role:reader and system_scope:all) or (role:reader and project_id:%(project_id)s)
Update hiddentear.txt Moving to ```supremebot```:
@@ -78,21 +78,8 @@ http://84.252.95.236 http://51.15.91.55 -# Reference: https://www.virustotal.com/gui/file/22978740db1e322f671369d67d5272028280ee6dfcf6e3018743fe6fd0fc315f/detection - -f0482784.xsph.ru - -# Reference: https://twitter.com/ViriBack/status/1387115824352202765 -# Reference: https://app.any.run/tasks/4a4e...
test_path: revive match tests These tests had not been running on Nose and I did not spot that previously.
@@ -390,7 +390,7 @@ def test_match_posix(self): ([r'a\*', 'a*'], ['a*'] + self.filenames_start_with_a), ([r'a\[012]'], ['a[012]']), ]: - yield (self.check_match, patterns, matches) + self.check_match(patterns, matches) @skip_if_not_win32 def test_match_windows(self): @@ -401,7 +401,7 @@ def test_match_windows(self): ([...
no EIGEN engine for DeformConv Summary: Pull Request resolved: There's no EIGEN engine implemented for DeformConv but unit test was checking it.
@@ -430,7 +430,6 @@ class TestConvolution(hu.HypothesisTestCase): output_channels=st.integers(1, 3), batch_size=st.integers(1, 3), order=st.sampled_from(["NCHW"]), - engine=st.sampled_from(["", "EIGEN"]), shared_buffer=st.booleans(), use_bias=st.booleans(), deformable_group=st.integers(1, 3), @@ -448,7 +447,6 @@ class ...
[commands] Explicit set traceback for hybrid invoke Fix
@@ -445,11 +445,11 @@ class HybridAppCommand(discord.app_commands.Command[CogT, P, T]): else: exc = HybridCommandError(e) exc.__cause__ = e - await command.dispatch_error(ctx, exc) + await command.dispatch_error(ctx, exc.with_traceback(e.__traceback__)) except app_commands.AppCommandError as e: exc = HybridCommandError...
dynamicly quantized linear benchmarking Summary: Pull Request resolved: Test Plan: Imported from OSS
@@ -5,8 +5,10 @@ from __future__ import unicode_literals import operator_benchmark as op_bench + import torch import torch.nn.quantized as nnq +import torch.nn.quantized.dynamic as nnqd """ @@ -35,27 +37,41 @@ qlinear_configs = op_bench.config_list( ) -class QLinearBenchmark(op_bench.TorchBenchmarkBase): - def init(sel...
Move most of the code in assistant to the plugins repo The assistant example will now simply be the "core" that initializes the rest of plugins, allowing for more updates to the *bot* without cluttering Telethon's git history.
@@ -71,14 +71,20 @@ not really needed for the previous two trivial examples. * Usable as a: **bot**. * Difficulty: **medium**. -This example is the actual bot account [@TelethonianBot] running in the -[official Telethon's chat] to help people out. The file is a bit big and -assumes some [`asyncio`] knowledge, but other...
Update elf_mirai.txt [0] [1] [2]
/mirai.x86 # Reference: https://www.virustotal.com/en/ip-address/209.141.55.13/information/ +# Reference: https://twitter.com/i/moments/1046121581393543168 /Extendo.mips /Josho.arm5 +/Josho.arm7 /8UsA.sh /zaky.sh @@ -179,3 +181,20 @@ ukrainianhorseriding.com /hoho.sh4 /hoho.spc /hoho.x86 + +# Reference: https://twitter...
Add support to promo trailer video for custom kodi skins The custom Kodi skins can now use the property ListItem.Trailer to implement for example the playback of a promo video when a listitem is selected
@@ -12,6 +12,7 @@ from future.utils import iteritems import resources.lib.common as common +from resources.lib.globals import g from .exceptions import InvalidReferenceError MAX_PATH_REQUEST_SIZE = 47 # Stands for 48 results, is the default value defined by netflix for a single request @@ -45,7 +46,7 @@ VIDEO_LIST_PART...
Update README.rst source:
@@ -22,7 +22,7 @@ HistomicsTK can be used in two ways: - **As a pure Python package**: enables application of image analysis algorithms to data independent of the `Digital Slide Archive`_ (DSA). HistomicsTK provides a collection of fundamental algorithms for tasks such as color normalization, color deconvolution, nucle...
100% test coverage for densearith.py Similar assumption may be broken only in dmp_ff_div(), e.g. for EX or RR.
@@ -789,8 +789,7 @@ def dmp_pdiv(f, g, u, K): if dr < dg: break - elif not (dr < _dr): - raise PolynomialDivisionFailed(f, g, K) + assert dr < _dr if u: c = dmp_pow(lc_g, N, u - 1, K) @@ -841,8 +840,7 @@ def dmp_prem(f, g, u, K): if dr < dg: break - elif not (dr < _dr): - raise PolynomialDivisionFailed(f, g, K) + asser...
Using secret placeholder instead of the secret itself Summary: T123438891 - as part of the effort, replacing the secret in the comment with a placeholder
@@ -411,7 +411,7 @@ service Command extends fb303.FacebookService { * fcr_client.run_session(session, 'show version') * // push a configlet * configlet = '''conf t -snmp-server community TEST RO +snmp-server community {SECRET} exit wr mem''' * fcr_client.run_session(session, configlet)
readme: remove the tidb-tools repo link Via:
- [TiDB Roadmap](ROADMAP.md) - [Connect with us](community.md) + More Resources - - [Frequently Used Tools](https://github.com/pingcap/tidb-tools) - [PingCAP Blog](https://pingcap.com/blog/) - [Weekly Update](https://pingcap.com/weekly/)
[core/input] Move event handling to core.event Until now, bumblebee-status did event handling in two places with almost identical code: in core.event (makes sense) and core.input (still makes sense, but a bit more dubious). Changed core.input to use core.event
@@ -19,35 +19,32 @@ def button_name(button): if button == WHEEL_DOWN: return 'wheel-down' return 'n/a' -callbacks = {} - class Object(object): def __init__(self): super(Object, self).__init__() self.id = str(uuid.uuid4()) -def register(obj, button=None, cmd=None): - logging.debug('registering callback {} {}'.format(obj...
Support searching for titles which contain quotes [change] piratebay: replacing single quotes with spaces as their search engine doesn't like them
@@ -126,8 +126,10 @@ class UrlRewritePirateBay(object): entries = set() for search_string in entry.get('search_strings', [entry['title']]): query = normalize_unicode(search_string) - # TPB search doesn't like dashes - query = query.replace('-', ' ') + + # TPB search doesn't like dashes or quotes + query = query.replace...
Update csharp_snippets.py Initial snippet_watcher support fo vscode on Mac. Disabled by default
@@ -31,10 +31,13 @@ ctx.lists["user.snippets"] = { # # there's probably a way to do this without -# # if app.platform == "windows": -# watcher = snippet_watcher( -# {os.path.expandvars(r"%AppData%\Code\User\snippets"): ["csharp.json"],}, -# update_list, +# snippet_path = None +# if app.platform == "windows": +# snippet...
Add a few utility functions for old couch revs These may be useful in debugging future fires
@@ -262,15 +262,6 @@ def send_keys_to_couch(db, keys): return r.json()['rows'] -def bulk_get_revs(target_db, doc_ids): - """ - return (_id, _rev) for every existing doc in doc_ids - if a doc id is not found in target_db, it is excluded from the result - """ - result = target_db.all_docs(keys=list(doc_ids)).all() - retu...
Passed kwargs to db_remove The function db_remove fails because the call to the dbexists function needs kwargs to connect to the db if you're passing all connection parameters from cli.
@@ -175,7 +175,7 @@ def db_remove(database_name, **kwargs): salt minion mssql.db_remove database_name='DBNAME' ''' try: - if db_exists(database_name) and database_name not in ['master', 'model', 'msdb', 'tempdb']: + if db_exists(database_name, **kwargs) and database_name not in ['master', 'model', 'msdb', 'tempdb']: co...
WHISPER_FALLOCATE_CREATE documentation improved Documenting silent conflict between WHISPER_SPARSE_CREATE and WHISPER_FALLOCATE_CREATE carbon-cache configuration variables: when both are set to True, WHISPER_SPARSE_CREATE is effectively disabled.
@@ -198,6 +198,7 @@ WHISPER_AUTOFLUSH = False # allocation and zero-ing. Enabling this option may allow a large increase of # MAX_CREATES_PER_MINUTE. If enabled on an OS or filesystem that is unsupported # this option will gracefully fallback to standard POSIX file access methods. +# If enabled, disables WHISPER_SPARSE...
$.Lexer: special-case offset/length for the termination token TN:
## vim: filetype=makoada -<% lexer = ctx.lexer %> +<% + lexer = ctx.lexer + termination = lexer.ada_token_name('Termination') +%> with Ada.Strings.Unbounded; use Ada.Strings.Unbounded; with Ada.Unchecked_Conversion; @@ -214,13 +217,22 @@ package body ${_self.ada_api_settings.lib_name}.Lexer is end case; + -- Special ca...
Make BlackBoxPredictor handle networks throwing exceptions Summary: Pull Request resolved: OSS: add a tiny unit test utility function to create tensors given shape and data outside of any workspace. I use it in an internal test
@@ -98,6 +98,15 @@ caffe2::Tensor* createTensorAndFill( return tensor; } +template <typename T> +caffe2::Tensor createTensorAndFill( + const std::vector<int64_t>& shape, + const std::vector<T>& data) { + Tensor tensor(caffe2::CPU); + fillTensor<T>(shape, data, &tensor); + return tensor; +} + // Fill a constant to a ten...
Update README.md Add "follow on twitter" button
# InvenTree +<p><a href="https://twitter.com/intent/follow?screen_name=inventreedb"> + <img src="https://img.shields.io/twitter/follow/inventreedb?style=social&logo=twitter" + alt="follow on Twitter"></a></p> + [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT) [...
PresetsPlugValueWidget : Ensure current context is set when generating presets Fixes: Fixes - PresetsPlugValueWidget : Fixed bug that meant no context variables were set when generating dynamic plug presets.
@@ -92,6 +92,9 @@ class PresetsPlugValueWidget( GafferUI.PlugValueWidget ) : if self.getPlug() is None : return result + # Required for context-sensitive dynamic presets + with self.getContext(): + currentPreset = Gaffer.NodeAlgo.currentPreset( self.getPlug() ) allowCustom = Gaffer.Metadata.value( self.getPlug(), "pres...
jinja2: Add InternationalizationExtension elements. Fixes
@@ -71,6 +71,16 @@ class Environment: def from_string(self, source: Text, globals: Optional[Dict[str, Any]] = ..., template_class: Optional[Type[Template]] = ...) -> Template: ... def make_globals(self, d: Optional[Dict[str, Any]]) -> Dict[str, Any]: ... + # Frequently added extensions are included here: + # from Inter...
Lexical envs: fix a ref-counting leak in Get_Env TN:
@@ -189,11 +189,15 @@ package body Langkit_Support.Lexical_Env is ------------- function Get_Env (Self : in out Env_Getter; - Info : Entity_Info) return Lexical_Env is + Info : Entity_Info) return Lexical_Env + is + Cache_Enabled : constant Boolean := Info = No_Entity_Info; + -- The cache (Self.Env) can be used only if...
ci: Change production setup in ci according to bionic and Circle CI. Used postgres 10 inplace of postgres 9.5 as it is used in Bionic. Upgraded nginx version in success-http-headers which is in CircleCI Bionic enviroment.
@@ -41,7 +41,7 @@ sudo /etc/init.d/memcached restart sudo "$(dirname "$0")/../../scripts/setup/terminate-psql-sessions" postgres zulip zulip_base # Remove and recreate the postgres database -sudo pg_ctlcluster 9.5 main stop -sudo pg_dropcluster 9.5 main -sudo rm -rf /etc/postgresql/9.5/main /var/lib/postgresql/9.5/main...
ch_tests: fix _get_hypervisor_param Return kvm if /dev/kvm exists on high priority
@@ -158,10 +158,13 @@ class CloudHypervisorTestSuite(TestSuite): node.tools[Usermod].add_user_to_group("mshv", sudo=True) def _get_hypervisor_param(self, node: Node) -> str: + kvm_exists = node.tools[Ls].path_exists(path="/dev/kvm", sudo=True) + if kvm_exists: + return "kvm" mshv_exists = node.tools[Ls].path_exists(pat...
Correct extra_includes for dev.major The file names have changed around a bit, so be sure to include the new forms as well.
@@ -165,8 +165,9 @@ def _extension_extra_sources(): # For typing brevity we specify sources in Unix-style string form, then # normalise them into the OS-specific form later. extra_sources = { - 'qutip.cy.spmatfuncs': ['qutip/cy/src/zspmv.cpp'], - 'qutip.cy.openmp.parfuncs': ['qutip/cy/openmp/src/zspmv_openmp.cpp'], + '...
Cleanup, the "LIBDIR" trick is now obsolete. * We used to have runners patched at install time with the correct path to add, but that was moved into the "__main__" here for no good reason.
@@ -30,38 +30,6 @@ import os import sys import warnings -# LIBDIR trick start (marker for removal on platforms that don't need it) -libdir = "@LIBDIR@" - -# Two cases: -if libdir != '@' "LIBDIR" '@': - # Changed by our "distutils" hook, then use the given path. - - if not os.path.isabs(libdir): - libdir = os.path.join(...
Fix docstring to use 'distribution' instead of 'platform' "centos" is a distribution, not a platform
@@ -90,9 +90,9 @@ class ResolverWithPlugins(DefaultImportResolver): {'package_name': 'cloudify-openstack-plugin'} >>> _make_plugin_filters('cool?version=1.0.2') {'package_name': 'cool', 'package_version': '1.0.2'} - >>> _make_plugin_filters('cool?version=1.0.2&platform=centos') + >>> _make_plugin_filters('cool?version=...