message
stringlengths
13
484
diff
stringlengths
38
4.63k
cloud roster: Work with custom conf dir A path to the salt-cloud config file is hardcoded into the cloud roster, so it won't work with a custom conf dir. Remove the hardcoded path and construct it using __opts__['conf_file'].
@@ -20,6 +20,7 @@ usually located at /etc/salt/cloud. For example, add the following: # Import python libs from __future__ import absolute_import +import os # Import Salt libs import salt.loader @@ -37,7 +38,9 @@ def targets(tgt, tgt_type='glob', **kwargs): # pylint: disable=W0613 ''' ret = {} - cloud_opts = salt.confi...
Update model.py Fix linter.
@@ -1798,8 +1798,6 @@ class Model: metadata = utils.get_local_charm_metadata(charm_dir) charm_series = charm_series or await get_charm_series(metadata, self) - charm_origin.base = utils.get_local_charm_base, - charm_series, channel, metadata, charm_dir, client.Base) base = utils.get_local_charm_base( charm_series, chan...
_type can be absent in inner_hits Fixes
@@ -41,7 +41,7 @@ class Response(AttrDict): return self._shards.total == self._shards.successful and not self.timed_out def _get_result(self, hit): - dt = hit['_type'] + dt = hit.get('_type') for t in hit.get('inner_hits', ()): hit['inner_hits'][t] = Response(self._search, hit['inner_hits'][t]) callback = self._search....
Update README.md Fix formatting of HTML output example
@@ -559,6 +559,7 @@ class ContactPage(MenuPage): These change would result in the following HTML output when rendering a `ContactPage` instance in a main menu: ```html +... <li class=" dropdown"> <a href="/contact-us/" class="dropdown-toggle" id="ddtoggle_18" data-toggle="dropdown" aria-haspopup="true" aria-expanded="f...
Update dridex.txt ```ThreatGrid``` --> ```Dridex Malware Detected 100% (table)
@@ -122,3 +122,30 @@ topdalescotty.top 5.133.242.156:170 89.22.103.139:8000 ponestona.com + +# Reference: https://blog.talosintelligence.com/2019/07/threat-roundup-for-0705-0712.html (# Win.Packed.Xcnfe-7012508-0) + +5twtwy19pp.com +b7qxyidhg5.com +c62yc6xsm1.com +coxymk80cd.com +ct1wlbyjzx.com +exgk5nzv7m.com +fvtbhln...
[Feature Store] Fix scheduled ingest [ML-3194](https://jira.iguazeng.com/browse/ML-3194)
@@ -444,7 +444,7 @@ def ingest( if isinstance(source, DataSource) and source.schedule: min_time = datetime.max - for target in targets or featureset.status.targets: + for target in featureset.status.targets: if target.last_written: cur_last_written = target.last_written if isinstance(cur_last_written, str):
Screengrab App : Allow client to opt out of saving the image. Now we have `WidgetAlgo.grab()`, users of the screengrab app may prefer capturing their images from the command / commandFile directly.
@@ -69,7 +69,7 @@ class screengrab( Gaffer.Application ) : description = "Where to save the resulting image", defaultValue = "", extensions = "png", - allowEmptyString = False, + allowEmptyString = True, ), IECore.StringVectorParameter( @@ -350,16 +350,9 @@ class screengrab( Gaffer.Application ) : # Write the image, cr...
subtitle.remux: remove copyts copyts made that videos started at 10s and made subtitles be wrong.
@@ -117,7 +117,7 @@ class postprocess(object): log.info(u"Muxing {0} into {1}".format(orig_filename, new_name)) tempfile = u"{0}.temp".format(orig_filename) - arguments = ["-map", "0:{}".format(videotrack), "-map", "0:{}".format(audiotrack), "-c", "copy", "-copyts", "-f", "mp4"] + arguments = ["-map", "0:{}".format(vid...
Add # pytype: disable=import-error to a couple of import statements to allow cpu=ppc builds (the imported modules aren't currently linked into jaxlib when building for ppc).
@@ -59,7 +59,7 @@ else: jax_jit = xla_client._xla.jax_jit try: - from jaxlib import cusolver + from jaxlib import cusolver # pytype: disable=import-error except ImportError: cusolver = None @@ -69,7 +69,7 @@ except ImportError: rocsolver = None try: - from jaxlib import cuda_prng + from jaxlib import cuda_prng # pytype...
Correct 'see also' docs for some kernels [ci skip]
@@ -392,7 +392,7 @@ class Ring2DKernel(Kernel2D): See Also -------- Gaussian2DKernel, Box2DKernel, Tophat2DKernel, RickerWavelet2DKernel, - Ring2DKernel, AiryDisk2DKernel, Moffat2DKernel + TrapezoidDisk2DKernel, AiryDisk2DKernel, Moffat2DKernel Examples -------- @@ -727,7 +727,7 @@ class AiryDisk2DKernel(Kernel2D): See...
Replace tf.math.ceil with znp.ceil. Some tests fail. See next commit for update of tensorflow fixing the issue.
@@ -5,6 +5,7 @@ import tensorflow as tf import tensorflow_addons as tfa import tensorflow_probability as tfp +import zfit.z.numpy as znp from .. import exception, z from ..core.data import Data, sum_samples from ..core.interfaces import ZfitPDF @@ -191,8 +192,7 @@ class FFTConvPDFV1(BaseFunctor): area_ratios = (upper_s...
upgrade sparsify server max file size Reviewers: mgoin, kevinaer, alexm, tuan, ben Subscribers: #core, #python_ml
@@ -24,9 +24,7 @@ from neuralmagicML.server.blueprints import ( system_blueprint, ui_blueprint, ) -from neuralmagicML.server.models import ( - database_setup, -) +from neuralmagicML.server.models import database_setup from neuralmagicML.server.workers import JobWorkerManager @@ -112,7 +110,7 @@ def run( ui_path = os.pa...
fix(light_controller): pass a default value for the "on" method related
@@ -125,7 +125,7 @@ class LightController(TypeController[LightEntity], ReleaseHoldController): def get_predefined_actions_mapping(self) -> PredefinedActionsMapping: return { - Light.ON: self.on, + Light.ON: (self.on, (True,)), Light.OFF: self.off, Light.TOGGLE: self.toggle, Light.TOGGLE_FULL_BRIGHTNESS: (
Fix, was not bug compatible after optimizing issubclass built-in * Also add "isinstance" which is very similar code. This is only having an effect in full compat code, i.e. mostly when testing the CPython test suites, which do issubclass spreading over lines a lot.
@@ -239,6 +239,8 @@ def generateBuiltinIsinstanceCode(to_name, expression, emit, context): context=context, ) + context.setCurrentSourceCodeReference(expression.getCompatibleSourceReference()) + res_name = context.getIntResName() emit("%s = Nuitka_IsInstance(%s, %s);" % (res_name, inst_name, cls_name)) @@ -272,6 +274,8...
Lexical env: fix Get_New_Env documentation according to implementation TN:
@@ -116,8 +116,8 @@ package Langkit_Support.Lexical_Env is function Get_New_Env (Self : Env_Rebindings; Old_Env : Lexical_Env) return Lexical_Env; - -- Return the new env corresponding to Old_Env in Self. Return - -- No_Env_Getter if there is no association. + -- Return the new env corresponding to Old_Env in Self. Ret...
Fixed Error Message Forgot case where the Value could of repetitions could be None
@@ -137,7 +137,7 @@ class rope(_algorithm): raise ValueError("Repetition for following runs must be an " "even number.") - if repetitions < 30: + if repetitions is not None and repetitions < 30: raise ValueError("Repetitions must be at least 30") starttime = time.time()
Added placeholder Without this, a blank option appears, I think because tags is true.
@@ -21,6 +21,7 @@ hqDefine("hqwebapp/js/widgets", [ var $input = $(input); $input.select2(_.extend({ multiple: true, + placeholder: ' ', tags: true, tokenSeparators: [",", " "], createTag: function (params) {
swarming: remove init_symlinks This is not necessary anymore as we enabled symlink on Windows bots. Fixed:
@@ -9,34 +9,10 @@ import sys APP_DIR = os.path.dirname(os.path.realpath(os.path.abspath(__file__))) -def init_symlinks(root): - """Adds support for symlink-as-file on Windows. - - Manually resolves symlinks in path for directory and add them to sys.path. - """ - if sys.platform != 'win32': - return - for i in os.listdi...
BUG: metadata access Fixed metadata access to be cleaner.
@@ -251,8 +251,8 @@ class TestBasics(): self.testInst.custom.attach(custom1, 'add') self.testInst.load(2009, 1) - assert self.testInst.meta['doubleMLT'].units == 'hours1' - assert self.testInst.meta['doubleMLT'].long_name == 'doubleMLT' + assert self.testInst.meta[('doubleMLT', 'units')] == 'hours1' + assert self.testI...
Swap FLASK_DEBUG for FLASK_ENV This achieves the same thing and gets rid of the warning about being in a production environment when the app starts up.
@@ -28,7 +28,7 @@ export FIRETEXT_API_KEY='FIRETEXT_ACTUAL_KEY' export NOTIFICATION_QUEUE_PREFIX='YOUR_OWN_PREFIX' export FLASK_APP=application.py -export FLASK_DEBUG=1 +export FLASK_ENV=development export WERKZEUG_DEBUG_PIN=off "> environment.sh ```
Remove incorrect reset line in UM232H pinout The datasheet says RST# is an input which resets the FT232H, not an output to the device under test.
@@ -80,9 +80,6 @@ Please read `4. UM232H Pin Out and Signal Descriptions <https://www.ftdichip.com * - AD3 - TMS - Test Mode State - * - RST# - - RESET - - Connect this pin to the (active low) reset input of the target CPU (EN for ESP32) You will also need to connect VIO to V3V and USB to 5V0 of UM232H to power the FTD...
Update core_screenshot_config.yaml Add 30 second delay to MI primary
@@ -35,6 +35,10 @@ primary: page.done(); message: clicking button to get rid of popup, using viewport height 8500 for IN + MI: + overseerScript: page.manualWait(); await page.waitForDelay(30000); page.done(); + message: waiting 30 sec to load MI + MT: overseerScript: page.manualWait(); await page.waitForDelay(30000); p...
format microseconds correctly make sure results of num2date are same for arrays and scalar values
@@ -569,12 +569,23 @@ def DateFromJulianDay(JD, calendar='standard', only_use_cftime_datetimes=True, ms_eps = np.atleast_1d(np.array(np.finfo(np.float64).eps,np.longdouble)) ms_eps = 86400000000.*np.maximum(ms_eps*julian, ms_eps) microsecond = np.where(microsecond < ms_eps, 0, microsecond) - indxms = microsecond > 1000...
test_runner: Add comment explaining abnormal database destruction. When running the test-backend suite in serial mode, `destroy_test_db` double appends the database id number to the template if passed an argument for `number`. The comment here explains this behavior.
@@ -229,15 +229,26 @@ def destroy_test_databases(worker_id: Optional[int]=None) -> None: for alias in connections: connection = connections[alias] try: + # In the parallel mode, the test databases are created + # through the N=self.parallel child processes, and in the + # parent process (which calls `destroy_test_datab...
updated discovery added houbi as exchange name
@@ -19,7 +19,7 @@ The following walks through all the steps when running `config` for the first ti |-----|-----| | `What is your market making strategy >>>`: | Enter `discovery`.<br/><br/>Currently available options: `arbitrage` or `cross_exchange_market_making` or `pure_market_making` or `discovery` or `simple_trade` ...
Quant Noise Summary: Implemented fix bit scalar quantization with quant noise for pytext models
@@ -27,7 +27,6 @@ def quantize_model_(model, p=0.2, bits=8, update_step=3000, method="histogram", - bits: number of bits - update_step: update quantization parameters every update_step steps """ - # quantize all layers # remove weights indicates whether the weights extension should be removed, in addition to # weight_o...
pkg_implementation_spec_ada.mako: remove obsolete comment TN:
@@ -568,9 +568,6 @@ package ${ada_lib_name}.Analysis.Implementation is -- We implement array types as discriminated records so that binding to C -- can be done without copy. - -- TODO??? This is likely to change in the near future: we would like to - -- have here pure Ada arrays instead. - % for array_type in ctx.sorte...
Removed possibility to invalidate 'queue' context it was strange that nf invalidated this context now it doesn't seem to happen anymore perhaps was a nf bug
@@ -136,11 +136,6 @@ class EventsHandler(threading.Thread): if event.event_data['is_in_mylist']: # If video is in my list, invalidate the continueWatching list (update lolomo context data) api.update_lolomo_context('continueWatching') - else: - # Else invalidate the 'queue' list (update lolomo context data) - # Todo: g...
Update control ipython3-qtconsole has been renamed in python3-qtconsole in debian10
@@ -11,7 +11,7 @@ Build-Depends: cython3 (>= 0.23.2), graphviz, help2man, ipython3, - ipython3-qtconsole, + python3-qtconsole, pandoc <!nodoc>, python3-all-dev, python3-dateutil,
Add a stratisd test This is a very relevant test, since GetManagedObjects is the primary way to get information about stratisd's world over the D-Bus.
@@ -20,7 +20,7 @@ import sys import time import unittest -from testlib.utils import exec_command, process_exists +from testlib.utils import exec_command, exec_test_command, process_exists from testlib.stratis import StratisCli, clean_up DISKS = [] @@ -49,6 +49,27 @@ class StratisCertify(unittest.TestCase): StratisCli.d...
Fix error from combination of two Complex.c changes Essentially SoftComplexToPy required another bit of utility code that has now become tempita. I've just skipped using this utility code
@@ -349,12 +349,11 @@ static double __Pyx_SoftComplexToDouble(__pyx_t_double_complex value) { static PyObject *__pyx_Py_FromSoftComplex(__pyx_t_double_complex value); /* proto */ //////// SoftComplexToPy //////////////// -//@requires: ToPy //@requires: RealImag static PyObject *__pyx_Py_FromSoftComplex(__pyx_t_double_c...
making inspector object singleton again by assigning to the base pollster class Closes-Bug:
@@ -47,21 +47,21 @@ class GenericComputePollster(plugin_base.PollsterBase): def setup_environment(self): super(GenericComputePollster, self).setup_environment() - self.inspector = self._get_inspector(self.conf) + self.inspector = GenericComputePollster._get_inspector(self.conf) @staticmethod def aggregate_method(stats)...
MAINT: Print more informative message when test fails. The Deprecation tests were only printing the warning type on failure, print the whole warning instead so that it is possible to know where the warnings originated.
@@ -101,7 +101,7 @@ def assert_deprecated(self, function, num=1, ignore_others=False, (self.warning_cls.__name__, warning.category)) if num is not None and num_found != num: msg = "%i warnings found but %i expected." % (len(self.log), num) - lst = [str(w.category) for w in self.log] + lst = [str(w) for w in self.log] r...
fix Total Annual energy in proforma was using PV degradation factor for every tech. now it just sums the annual values from each tech.
@@ -332,7 +332,6 @@ def generate_proforma(scenariomodel, template_workbook, output_file_path): current_row += 1 ws['A{}'.format(current_row)] = "Year 1 net energy produced with system (kWh/year)" ws['B{}'.format(current_row)] = wind_energy + generator_energy + sum([pv['pv_energy'] for pv in pv_data]) - total_energy_cel...
Bugfix: TP spam vec's todense() needs to return a ndarray for reps to work. This wasn't a problem before introducting the C-representations which require more strictly that a numpy array and not just a ProtectedArray be passed as an argument to initialize it.
@@ -701,7 +701,7 @@ class DenseSPAMVec(SPAMVec): in `scratch` maybe used when it is not-None. """ #don't use scratch since we already have memory allocated - return self.base[:,0] + return _np.asarray(self.base[:,0]) def __copy__(self): # We need to implement __copy__ because we defer all non-existing
docs: added note about `pre-commit autoupdate` Added explanation to docs why `pre-commit autoupdate` will not find latest version for Poetry's hooks.
@@ -24,7 +24,6 @@ the defaults are overwritten. You must fully specify all arguments for your hook if you make use of `args:`. {{% /note %}} - ## poetry-check The `poetry-check` hook calls the `poetry check` command @@ -99,3 +98,24 @@ repos: - id: poetry-export args: ["-f", "requirements.txt", "-o", "requirements.txt"]...
Restored onPreProcess and validation code Even though the UI no longer allows invalid answers since it doesn't support free text, it's still possible for another question to update a combobox with an invalid answer.
@@ -547,6 +547,9 @@ hqDefine("cloudcare/js/form_entry/entrycontrols_full", function () { self.options.subscribe(function () { self.renderSelect2(); + if (!self.isValid(self.rawAnswer())) { + self.question.error(gettext('Not a valid choice')); + } }); self.additionalSelect2Options = function () { @@ -614,7 +617,7 @@ hqD...
Docs: Update bag.rst This PR updates `bag.rst` with a single fix: split *Dask.Bag* to *Dask Bag*.
Bag === -Dask.Bag parallelizes computations across a large collection of generic Python +Dask Bag parallelizes computations across a large collection of generic Python objects. It is particularly useful when dealing with large quantities of semi-structured data like JSON blobs or log files.
fix: Use urllib instead of requests Simply because "too much effort" to add another library pfft
+import json import os import re -import requests import shlex import subprocess import sys +import urllib.request +def get_files_list(pr_number): + req = urllib.request.Request(f"https://api.github.com/repos/frappe/frappe/pulls/{pr_number}/files") + res = urllib.request.urlopen(req) + dump = json.loads(res.read().deco...
apidoc: Show customer owner can create/delete user apidoc states that the token type is "User authorization token" when supplied for creating or deleting a user. The token needs to be the user that is the customer owner
@@ -80,7 +80,7 @@ class UserViewSet(mixins.CreateModelMixin, @apiVersion 1.0.0 @apiDescription Create a user. - @apiHeader {String} token User authorization token. + @apiHeader {String} token Customer owner authorization token. @apiHeaderExample {json} Header-Example: { "Authorization": "Token 45138a913da44ab89532bab03...
settings: Fix typing for LDAP_EMAIL_ATTR. This is already defined in `prod_settings_template`.
@@ -135,7 +135,7 @@ if FAKE_LDAP_MODE: "custom_profile_field__phone_number": "phoneNumber", } elif FAKE_LDAP_MODE == 'c': - LDAP_EMAIL_ATTR = 'email' # type: Optional[str] + LDAP_EMAIL_ATTR = 'email' AUTH_LDAP_USER_ATTR_MAP = { "full_name": "cn", }
Fix language check on inserting code snippets into Script Editor Restores language check for ScriptEditor widget when inserting a code snippet to the editor with the insert button.
@@ -104,28 +104,25 @@ class CodeSnippetDisplay extends MetadataDisplay< this._evtMouseUp = this._evtMouseUp.bind(this); } - // Handle code snippet insert into an editor + // Handle code snippet insertion into an editor private insertCodeSnippet = async (snippet: IMetadata): Promise<void> => { - const widget: Widget = t...
Adapt documentation to reflect new supported argument Reflect the changes of
@@ -559,7 +559,7 @@ Example:: add_docstr(torch._C.cat, """ -cat(seq, dim=0) -> Tensor +cat(seq, dim=0, out=None) -> Tensor Concatenates the given sequence of :attr:`seq` Tensors in the given dimension. @@ -570,6 +570,7 @@ Concatenates the given sequence of :attr:`seq` Tensors in the given dimension. Args: seq (sequence...
doc/robotics: emphasize positive directions Move it to the class description, because it applies to all methods Use minimal and concise language, with only one definition per line, instead of having an elaborate paragraph.
@@ -8,7 +8,20 @@ from ._common import Control as _Control class DriveBase: """A robotic vehicle with two powered wheels and an optional support - wheel or caster.""" + wheel or caster. + + By specifying the dimensions of your robot, this class + makes it easy to drive a given distance in millimeters or turn by a given ...
Fixes validators version requirement The current requirement is 0.18.2, but this is invalid for Python 2.7 The last version that supports Python 2.7 is 0.14.2. So, unless we drop Python 2.7 support (meaning dropping Win32 and OSX) we must ask for 0.14.2.
@@ -5,5 +5,5 @@ future # For print statements. tqdm >= 4.30.0 # Progress bar. requests >= 2.18.4 # Scrape, API and web modules. babel >= 2.6 # For currency format by the language in the spreadsheet. -validators >= 0.18.2 # For validation of datasheet URLs in the spreadsheet. +validators >= 0.14.2 # For validation of da...
Update hosts malicious hosts
@@ -2467,3 +2467,20 @@ analytics.shein.co.uk 0.0.0.0 auspost-record.com 0.0.0.0 alert-auspost.com 0.0.0.0 auspost-input.com + +# Added January 22, 2023 +0.0.0.0 vep.hautnah-kosmetik-grafenau.de +0.0.0.0 ttri.kanzlei-ecklmaier.de +0.0.0.0 d-stuff.cfd +0.0.0.0 ruhrboudoir.de +0.0.0.0 d-bring.cfd +0.0.0.0 obev.pauya.de +0...
Update utils.py implemented AverageMeterGroup and NamedAverageMeter classes
@@ -316,6 +316,69 @@ class AttrDict(dict): self.__dict__ = self +lass AverageMeterGroup: + """Average meter group for multiple average meters, ported from Naszilla repo.""" + + def __init__(self): + self.meters = OrderedDict() + + def update(self, data, n=1): + for k, v in data.items(): + if k not in self.meters: + sel...
test should use layer name Switch test to use layer type rather than name - name changes depending on quantity and ordering of tests.
@@ -694,9 +694,9 @@ class TestCornerCases(unittest.TestCase): ) spec = mlmodel.get_spec() - output_names = [layer.name for layer in spec.neuralNetwork.layers] - expected_names = [u'model/conv2d/Conv2D', u'Identity'] - np.testing.assert_array_equal(output_names, expected_names) + output_types = [layer.WhichOneof('layer'...
Modify tests/conftest.py - Change order of factory functions called by dc_pod_factory
@@ -764,8 +764,8 @@ def service_account_factory(request): @pytest.fixture() def dc_pod_factory( request, - service_account_factory, pvc_factory, + service_account_factory ): """ Create deploymentconfig pods
fix(device): fix button mapping of WXCJKG13LMLightController Bottom right button had the wrong action
@@ -189,7 +189,7 @@ class WXCJKG13LMLightController(LightController): "button_5_hold": Light.HOLD_COLOR_DOWN, "button_5_release": Light.RELEASE, "button_6_single": Light.CLICK_COLOR_UP, - "button_6_double": Light.ON_MIN_COLOR_TEMP, + "button_6_double": Light.ON_FULL_COLOR_TEMP, "button_6_hold": Light.HOLD_COLOR_UP, "bu...
Update spectral.py Clarify documentation
@@ -46,7 +46,7 @@ def lombscargle(x, freqs : array_like Angular frequencies for output periodogram. precenter : bool, optional - Pre-center amplitudes by subtracting the mean. + Pre-center measurement values by subtracting the mean. normalize : bool, optional Compute normalized periodogram.
[dagit] Update "Timing" column for Queued runs Summary: Queued runs should say "Queued" instead of starting. Test Plan: Start a run, verify row in Queued tab. Reviewers: johann, dgibson, prha
@@ -9,6 +9,7 @@ import {PythonErrorInfo} from 'src/PythonErrorInfo'; import {TokenizingFieldValue} from 'src/TokenizingField'; import {RunActionsMenu, RunBulkActionsMenu} from 'src/runs/RunActionsMenu'; import {RunStatusTagWithStats} from 'src/runs/RunStatusTag'; +import {queuedStatuses} from 'src/runs/RunStatuses'; im...
[core] Add '-d' as shorthand for '--debug' see
@@ -24,7 +24,7 @@ class Config(util.store.Store): help='Specify the name of an iconset to use (overrides theme default)') parser.add_argument('-a', '--autohide', nargs='+', default=[], help='Specify a list of modules to hide when not in warning/error state') - parser.add_argument('--debug', action='store_true', + parse...
Remove ex13 from the list of exceptions The dependency pygmsh was removed from ex13 in an earlier commit and, hence, we relicense the file to BSD-3-Clause.
@@ -34,7 +34,7 @@ later in this document or at the beginning of the respective files. Some examples under `docs/examples/` are licensed differently. In particular, they have a GPL-licensed dependency and, therefore, are also GPL-licensed. -- docs/examples/ex{04,13,28,32,35}.py +- docs/examples/ex{04,28,32,35}.py > Copy...
Set the `paramiko` package version to 2.10.3 `paramiko` package version prior to 2.10.1 has a race condition which could be a potential security issue.
@@ -10,7 +10,7 @@ typing; python_version < '3.5' # typing package sup enum34<=1.1.10; python_version < '3.5' # Enum package backport for python 2.7 # All dependencies needed in extras for rucio client (and server/daemons) should be defined here -paramiko~=2.9.2 # ssh_extras; SSH2 protocol library (also needed in the se...
Stop using jinja2's tojson We're already vendoring the filter, which also has less features than what we want to support.
@@ -460,13 +460,9 @@ def render_jinja_tmpl(tmplstr, context, tmplpath=None): undefined=jinja2.StrictUndefined, **env_args ) - tojson_filter = jinja_env.filters.get("tojson") indent_filter = jinja_env.filters.get("indent") jinja_env.tests.update(JinjaTest.salt_jinja_tests) jinja_env.filters.update(JinjaFilter.salt_jinja...
Travis: Improve build time Install binary ffmpeg (3.2.4) package instead of build it
@@ -7,7 +7,7 @@ python: cache: directories: - $HOME/.cache/pip -sudo: false +sudo: required matrix: fast_finish: true allow_failures: @@ -43,20 +43,15 @@ addons: - liblapack-dev - python-pyexiv2 - yasm +before_install: + - echo "deb http://archive.ubuntu.com/ubuntu zesty main universe" | sudo tee --append /etc/apt/sour...
join() parallel process instead of a recursive sleep its not clear to me why the recursive calls were chosen originally. this should address
@@ -2183,8 +2183,7 @@ class State(object): continue if run_dict[tag].get('proc'): # Run in parallel, first wait for a touch and then recheck - time.sleep(0.01) - return self.check_requisite(low, running, chunks, pre) + run_dict[tag].get('proc').join() if r_state == 'onfail': if run_dict[tag]['result'] is True: fun_stat...
chore: Link to the newer Cloud NDB repo in the README This should make it easier to find the new code and reduce the potential for confusion.
## Introduction +This repository is for the original Datastore ndb client library. +If you are looking for Cloud NDB, which supports Python 3 and works both inside and outside of the Google App Engine environment, please see [this repository][0]. + --- **Note:** As of Google App Engine SDK 1.6.4, ndb has reached status...
Fixed grub interactive prompt removed upgrade apt
@@ -54,7 +54,7 @@ gcloud beta compute instances create crypto-driver \ * Installing necessary tools like java, git, maven, pip, python 2.7 and Cloud Bigtable command line tool cbt using the following command: ```console sudo -s - apt-get -y update && apt-get -y upgrade + apt-get -y update apt -y --allow-downgrades inst...
Update schedule.py fullfill requirement of a cloudwatch rulename: ([a-zA-Z0-9-_]+))
@@ -19,7 +19,7 @@ def schedule(args): json_config = json.load(config_file) namespace = json_config['namespace'] - rulename = "%s.%s-%s-mins" % (function_name, namespace, schedule_mins) + rulename = "%s-%s-%s-mins" % (function_name, namespace, schedule_mins) # create the cloudwatch event rule rule = cw.put_rule(Name=rul...
adopters: add Keruyun Via:
@@ -28,6 +28,7 @@ This is a list of TiDB adopters in various industries. - [FUNYOURS JAPAN (Gaming)](http://company.funyours.co.jp/) - [Hainan eKing Technology (Enterprise Technology)](https://www.crunchbase.com/organization/hainan-eking-technology) - [2Dfire (FoodTech)](http://www.2dfire.com/) +- [Keruyun (FoodTech)](...
Fixed reorientate tests for big endian machines exif_str() return a little endian EXIF Thanks
@@ -28,7 +28,7 @@ STORAGE_PATH = abspath(join(dirname(__file__), '../fixtures/images/')) def exif_str(x): - return b'Exif\x00\x00II*\x00\x08\x00\x00\x00\x05\x00\x12\x01\x03\x00\x01\x00\x00\x00%s\x00\x00\x1a\x01\x05\x00\x01\x00\x00\x00J\x00\x00\x00\x1b\x01\x05\x00\x01\x00\x00\x00R\x00\x00\x00(\x01\x03\x00\x01\x00\x00\x0...
Fixed wrong path of ceph.conf in docs. The path of ceph.conf sample template moved to ceph-config. Therefore docs needs to be changed to the right directory.
@@ -171,7 +171,7 @@ ceph.conf Configuration ----------------------- The supported method for defining your ceph.conf is to use the ``ceph_conf_overrides`` variable. This allows you to specify configuration options using -an INI format. This variable can be used to override sections already defined in ceph.conf (see: ``...
Add unit test for nested_kl_divergence in PPO This test makes sure that nested_kl_divergence works with nested distributions of different shapes.
@@ -77,6 +77,22 @@ class PPOUtilsTest(parameterized.TestCase, tf.test.TestCase): kl_divergence_ = self.evaluate(kl_divergence) self.assertAllClose(expected_kl_divergence, kl_divergence_) + # test for distributions with different shapes + one_reshaped = tf.constant([[1.0]] * 3, dtype=tf.float32) + dist_neg_one_reshaped ...
client: update isolated This is to have crrev.com/c/2022482 for the task like
@@ -114,7 +114,7 @@ ISOLATED_CLIENT_DIR = u'ic' # Take revision from # https://ci.chromium.org/p/infra-internal/g/infra-packagers/console ISOLATED_PACKAGE = 'infra/tools/luci/isolated/${platform}' -ISOLATED_REVISION = 'git_revision:0c630715fe1307ec34118ec6d4160de489e0eca5' +ISOLATED_REVISION = 'git_revision:998a75a9756...
Reduce lower limit of tx per block seen at a certain fee rate, so estimates are produced sooner Reduce lower limit of tx per block seen at a certain fee rate, so that we produce estimates sooner
@@ -29,7 +29,9 @@ LONG_DECAY = 0.99931 HALF_SUCCESS_PCT = 0.6 # Require 60 % success rate for target confirmations SUCCESS_PCT = 0.85 # Require 85 % success rate for target confirmations DOUBLE_SUCCESS_PCT = 0.95 # Require 95 % success rate for target confirmations -SUFFICIENT_FEE_TXS = 0.1 # Require an avg of 0.1 tx i...
Make RuleTest use ABCMeta This will prevent child classes to be instantiated unless they implement all abstract methods, leading to a more descriptive error message.
import unittest -from abc import abstractmethod +from abc import ABCMeta, abstractmethod from typing import Callable, Dict, Iterable, List, NamedTuple, Tuple from tests.helpers import MockMessage @@ -12,7 +12,7 @@ class DisallowedCase(NamedTuple): n_violations: int -class RuleTest(unittest.TestCase): +class RuleTest(un...
Update Example.py Bug fix
@@ -108,6 +108,7 @@ class VoiceState: self.start_time = datetime.datetime.now() self.current = self.playlist[0] + self.votes = [] self.votes.append({ 'user' : self.current.requester, 'value' : 'keep' }) await self.bot.send_message(self.current.channel, 'Now playing ' + str(self.current))
Calculate how many items to assign to sales order Do not over-allocate by default
@@ -1658,7 +1658,7 @@ function allocateStockToSalesOrder(order_id, line_items, options={}) { var available = Math.max((data.quantity || 0) - (data.allocated || 0), 0); // Remaining quantity to be allocated? - var remaining = opts.quantity || available; + var remaining = Math.max(line_item.quantity - line_item.shipped -...
droplets: Disable SSH password authentication. We cannot disable this in base droplet as DigitalOcean overrides the file and enable password authentication during droplet creation.
@@ -124,6 +124,8 @@ def set_user_data(username: str, userkey_dicts: List[Dict[str, Any]]) -> str: {setup_zulipdev_ssh_keys} {setup_root_ssh_keys} +sed -i "s/PasswordAuthentication yes/PasswordAuthentication no/g" /etc/ssh/sshd_config +service ssh restart {hostname_setup} su -c '{server_repo_setup}' zulipdev su -c '{pyt...
[quant][onnx] Mark upsample_nearest2d, sigmoid and reshape as no scale Summary: Pull Request resolved: return the scale of the input tensor Test Plan: python test/onnx/test_pytorch_onnx_caffe2_quantized.py Imported from OSS
@@ -40,7 +40,10 @@ double getScaleFromInput(Node* input_node) { "aten::slice", "aten::avg_pool2d", "quantized::cat", - "prim::ListConstruct"}; + "prim::ListConstruct", + "aten::upsample_nearest2d", + "aten::sigmoid", + "aten::reshape"}; if (input_name == "aten::quantize_per_tensor") { TORCH_CHECK( input_node->inputs()....
events api: Delete incorrect parameter in response. max_logo_file_size isn't included in the responses of GET /events api but is mentioned in the api documentation. Hence it is deleted.
@@ -3520,10 +3520,6 @@ paths: * "D" means the logo is the default Zulip logo. * "U" means uploaded by an organization administrator. - max_logo_file_size: - type: integer - description: | - The maximum file size allowed for the uploaded organization logos. bot_domain: type: string description: |
Fix warning Fix another warning when converting from numpy to torch in collate function
@@ -1656,7 +1656,9 @@ class TimeSeriesDataSet(Dataset): ) target_scale.append(scale) else: # convert to tensor - target_scale = torch.tensor([batch[0]["target_scale"] for batch in batches], dtype=torch.float) + target_scale = torch.from_numpy( + np.array([batch[0]["target_scale"] for batch in batches], dtype=np.float32...
[utils] Remove unused code. Remove log_stack_failure_recursive from pcluster.utils Remove _log_cfn_event from pcluster.utils
@@ -219,36 +219,6 @@ def verify_stack_status(stack_name, waiting_states, successful_states): return status in successful_states -def log_stack_failure_recursive(stack_name, failed_states=None, indent=2): - """Log stack failures in recursive manner, until there is no substack layer.""" - if not failed_states: - failed_s...
python/module_py.mako: fix wrong type annotation TN:
@@ -783,7 +783,7 @@ class ${root_astnode_name}(object): """ Cache for fields and argument-less properties. - :type: dict[int, T] + :type: dict[str, T] """ @property
doc: warn that tutorials are based on develop branch fixes
@@ -54,6 +54,9 @@ If you use `pyannote.audio` please use the following citations. ## Tutorials +:warning: These tutorials assumes that you installed the [`develop` branch](https://github.com/pyannote/pyannote-audio/issues/145) of `pyannote.audio`. +:warning: They are most likely [broken](https://github.com/pyannote/pya...
typo in the second export Replace := with = in the export SCENARIO_RUNNER_PATH
@@ -10,7 +10,7 @@ The Node setup is visualized [here](../docs/images/ad_demo.png "AD Demo Node Set ## Startup export PYTHONPATH=$PYTHONPATH:<path_to_carla>/PythonAPI/carla-<carla_version_and_arch>.egg:<path_to_carla>/PythonAPI/carla/ - export SCENARIO_RUNNER_PATH:=<path_to_scenario_runner> + export SCENARIO_RUNNER_PATH...
Adding codecov configuration Added minimal configuration
@@ -20,6 +20,11 @@ jobs: python -m pip install tox - name: Run tests run: tox + - name: Upload coverage to Codecov + uses: codecov/codecov-action@v1 + with: + token: ${{ secrets.CODECOV_TOKEN }} + fail_ci_if_error: true release: needs: test
site_tests.test_search_where_title: Use assertIn instead of assertTrue This way unittest will produce a more descriptive error message by showing AssertionError: 'wiki' not found in <page title> instead of AssertionError: False is not true
@@ -1505,7 +1505,7 @@ class SearchTestCase(DefaultSiteTestCase): get_redirects=True, where='title'): self.assertIsInstance(hit, pywikibot.Page) self.assertEqual(hit.namespace(), 0) - self.assertTrue('wiki' in hit.title().lower()) + self.assertIn('wiki', hit.title().lower()) except pywikibot.data.api.APIError as e: if e...
Take num of items returned in current job for days with no gazette monitor Without considering the number of items returned in the current job, we got false failures when we get items in the latest job.
@@ -61,8 +61,10 @@ class ComparisonBetweenSpiderExecutionsMonitor(Monitor): .filter(JobStats.spider == self.data.spider.name) .all() ) - extracted_in_period = sum( - [stat.job_stats.get("item_scraped_count", 0) for stat in job_stats] + n_scraped_items = self.data.stats.get("item_scraped_count", 0) + extracted_in_period...
Update Tenable_sc.yml Update argument for tenable-sc-get-all-scan-results
@@ -1043,8 +1043,8 @@ script: default: false defaultValue: 'false' description: |- - Whether to return only manageable alerts. Returns both usable and - manageable by default. + Filter only manageable alerts. By default, returns both usable and + manageable alerts. isArray: false name: manageable predefined: @@ -1053,7...
Update Utilities.py Fix bug in _get_a_plus
@@ -337,14 +337,14 @@ def _bi_variate_normal_pdf(x1, x2, rho): def _get_a_plus(a): eig_val, eig_vec = np.linalg.eig(a) - q = np.array(eig_vec) - x_diagonal = np.array(np.diag(np.maximum(eig_val, 0))) + q = np.matrix(eig_vec) + x_diagonal = np.matrix(np.diag(np.maximum(eig_val, 0))) return q * x_diagonal * q.T def _get_...
fix: remove base_url use case not supported by requests, so not needed anymore
"engine": "InnoDB", "field_order": [ "provider_name", - "base_url", "cb_00", "openid_configuration", "sb_client_credentials_section", "label": "Scopes", "options": "OAuth Scope" }, - { - "fieldname": "base_url", - "fieldtype": "Data", - "label": "Base URL" - }, { "fieldname": "authorization_uri", "fieldtype": "Data", "...
go: enable cgo by default Enable `--golang-cgo-enabled` by default. The option has not been released yet so it is safe to change the default now. [ci skip-rust] [ci skip-build-wheels]
@@ -203,8 +203,7 @@ class GolangSubsystem(Subsystem): ) cgo_enabled = BoolOption( - "--cgo-enabled", - default=False, + default=True, help=softwrap( """\ Enable Cgo support, which allows Go and C code to interact. This option must be enabled for any
[bugfix] Re-enable TestCategoryFromWikibase tests wikinews item for it was removed from Q6939656. Use wikisource instead.
@@ -3567,8 +3567,8 @@ class TestCategoryFromWikibase(DefaultSiteTestCase): """Test page_from_repository method.""" sites = { - 'it.wb': { - 'family': 'wikinews', + 'it.ws': { + 'family': 'wikisource', 'code': 'it', 'result': 'Categoria:2016', },
fixed a typo for mapping rule of hicexplorer.snakefile The snakepipes were crashing because `{params.idx}` in `rule map_fastq_single_end:` were not properly named.
@@ -24,7 +24,7 @@ rule map_fastq_single_end: conda: CONDA_HIC_ENV shell: """ echo "mapping {input}" > {log.out} - bwa mem -A1 -B4 -E50 -L0 -t {threads} {params.index} {input} 2>> {log.err} | samtools view -bo {output} - + bwa mem -A1 -B4 -E50 -L0 -t {threads} {params.idx} {input} 2>> {log.err} | samtools view -bo {outp...
Fix race condition in time-to-start metric by recording the start time with before_task_publish instead of after_task_publish
import datetime -from celery.signals import after_task_publish, task_prerun +from celery.signals import before_task_publish, task_prerun from django.core.cache import cache @@ -32,7 +32,7 @@ class TimeToStartTimer(object): cache.delete(self._cache_key) -@after_task_publish.connect +@before_task_publish.connect def cele...
Fix for StandardPipelineRenderer adds a settings check to make behavior compatible with the StandardPixelRenderer
@@ -1107,7 +1107,7 @@ class StandardPipelineRenderer(RendererBase): sx = float(win_wd) / scale_x sy = float(win_ht) / scale_y if (sx < 1.0) or (sy < 1.0): - #self.logger.warning("new scale would exceed max/min; scale unchanged") + if self.viewer.settings.get('sanity_check_scale', True): raise RenderError("new scale wou...
doc: Fix typo with SM_MODEL_DIR, missing quotes The documentation incorrectly specifies SM_CHANNEL_TRAIN instead of SM_MODEL_DIR for the directory where models are stored. There is also example code missing quotation marks.
@@ -58,7 +58,7 @@ The training script is very similar to a training script you might run outside o For the exhaustive list of available environment variables, see the `SageMaker Containers documentation <https://github.com/aws/sagemaker-containers#list-of-provided-environment-variables-by-sagemaker-containers>`_. -A ty...
Add DataRequired validators to relevant fields WTForms DataRequired() validators fit with the form validation workflow that each function follows, with <form>.validate_on_submit(). Closes
@@ -57,12 +57,12 @@ class NewScopeForm(FlaskForm): class ImportScopeForm(FlaskForm): - scope = TextAreaField("Scope Import") + scope = TextAreaField("Scope Import", validators=[DataRequired()]) submit = SubmitField("Import Scope") class ImportBlacklistForm(FlaskForm): - scope = TextAreaField("Blacklist Import") + scope...
Provides group_names for use with provider_network plugin This patch will provide group_names to the provider network object, which will then be used to compare group_binds for selective provider network placement across nodes. Partial-Bug: Depends-On:
provider_networks: "{{ provider_networks }}" bind_prefix: "{{ provider_network_bind_prefix | default('') }}" is_metal: "{{ is_metal }}" + group_names: "{{ group_names }}" register: pndata when: neutron_provider_networks is not defined tags:
Optimizatiom: Use -O3 with LTO for platforms without static libpython * On Windows, there is pseudo static link library by Anaconda, that doesn't count, and Nuitka-Python is not affected. * This will e.g. make at least use of better LTO on e.g. Fedora Python where there is no static libpython available.
@@ -460,7 +460,14 @@ if env.gcc_mode and env.lto_mode: if env.debug_mode: env.Append(LINKFLAGS=["-Og"]) else: - env.Append(LINKFLAGS=["-O2" if env.lto_mode and not nuitka_python else "-O3"]) + # For LTO with static libpython combined, there are crashes with Python core + # being inlined, so we must refrain from that. O...
OpenOLT reconciliation state machine and logical device reconciliation
@@ -116,6 +116,10 @@ class OpenoltDevice(object): self.heartbeat_signature = None self.heartbeat_thread.start() + if is_reconciliation: + # Put state machine in state up + reactor.callFromThread(self.olt_up, reconciliation=True) + self.log.debug('openolt-device-created', device_id=self.device_id) def process_indication...
Add test for operating reserves check that sr_provided is greater than or equal to sr_required
@@ -209,6 +209,11 @@ class TestOffGridSystem(ResourceTestCaseMixin, TestCase): inputs['LoadProfile']["min_load_met_pct"], "Load met pct is less than required pct.") + # Check that SR provided is greater than SR required + self.assertGreaterEqual(sum(outputs['LoadProfile']['total_sr_provided']), + sum(outputs['LoadProfi...
ENH: use new utility Use new column formatting utility in Instrument string output.
@@ -1104,23 +1104,8 @@ class Instrument(object): output_str += 'Number of Times: {:d}\n'.format(len(self.index)) output_str += 'Number of variables: {:d}\n'.format(num_vars) - if num_vars <= max_vars: output_str += '\nVariable Names:\n' - num = len(self.variables) // 3 - - # Print out groups of three variables at a tim...
Don't use mmap on local files by default Fixes
@@ -71,9 +71,17 @@ def futures_executor(items, function, accumulator, workers=1, status=True, unit= return accumulator -def _work_function(item, flatten=False, savemetrics=False, **_): +def _work_function(item, flatten=False, savemetrics=False, mmap=False, **_): dataset, fn, treename, chunksize, index, processor_instan...
silence unreachable code warnings Summary: Stack: &nbsp;&nbsp;&nbsp;&nbsp;:black_circle:&nbsp; **#15036 silence unreachable code warnings**&nbsp;&nbsp;[:yellow_heart:](https://our.intern.facebook.com/intern/diff/D13411100/) Pull Request resolved:
@@ -901,7 +901,6 @@ TypePtr getTypePtr() { " could not be converted to any of the known types { ", C10_FORALL_TYPES(TYPE_STR) "}"); #undef TYPE_STR - return nullptr; } template<> inline TypePtr getTypePtr<at::Tensor>() { return DynamicType::get(); }
change divide_polyline& divide_polyline_by_length
@@ -298,6 +298,7 @@ class Polyline(Primitive): else: looped_pts = [points[i] for i in range(id1, len(points))] + points[1:id2+1] split_polylines.append(Polyline(looped_pts)) + if self.is_closed() and not corner_ids: return [Polyline(self.points)] @@ -332,33 +333,7 @@ if self.is_closed() and not corner_ids: """ segment_...
fix url bug for word2vec fix url bug for word2vec
@@ -43,8 +43,6 @@ class TokenEmbedding(nn.Embedding): unknown_token_vector=None, extended_vocab_path=None, trainable=True): - - embedding_name = embedding_name.lower() vector_path = osp.join(EMBEDDING_HOME, embedding_name + ".npz") if not osp.exists(vector_path): # download