message
stringlengths
13
484
diff
stringlengths
38
4.63k
Disable SignUp * Disable SignUp Disabled signup from setting only hides signup link but users can signup anyway. Disables the sign_up function. * Fix translate String
@@ -13,6 +13,7 @@ import frappe.permissions import frappe.share import re from frappe.limits import get_limits +from frappe.website.utils import is_signup_enabled STANDARD_USERS = ("Guest", "Administrator") @@ -602,6 +603,9 @@ def verify_password(password): @frappe.whitelist(allow_guest=True) def sign_up(email, full_na...
Fix backwards compatibility for pip VcsSupport VcsSupport classes need to be instantiated on pip<19.2 This provides backward compatibility
@@ -61,15 +61,17 @@ class VCSRepository(object): def obtain(self): # type: () -> None - lte_pip_19 = ( - pip_shims.parsed_pip_version.parsed_version < pip_shims.parse_version("19.0") + lt_pip_19_2 = ( + pip_shims.parsed_pip_version.parsed_version < pip_shims.parse_version("19.2") ) + if lt_pip_19_2: + self.repo_backend...
Update NZBGetPostProcess.py fail more gracefully
@@ -236,14 +236,14 @@ if 'NZBOP_SCRIPTDIR' in os.environ and not os.environ['NZBOP_VERSION'][0:5] < '1 if success: sys.exit(POSTPROCESS_SUCCESS) else: - sys.exit(POSTPROCESS_ERROR) + sys.exit(POSTPROCESS_NONE) elif (radarrcat.startswith(category)): #DEBUG#print "Radarr Processing Activated" success = radarr.processMovi...
[cleanup] Deprecate pagegenerators.UnconnectedPageGenerator Use Site.unconnected_pages() instead
@@ -950,8 +950,7 @@ class GeneratorFactory(object): total=intNone(value), site=self.site) elif arg == '-unconnectedpages': - gen = UnconnectedPageGenerator(total=intNone(value), - site=self.site) + gen = self.site.unconnected_pages(total=intNone(value)) elif arg == '-imagesused': if not value: value = pywikibot.input( ...
[varLib] Allow sparse masters in HVAR Part of Part of
@@ -420,42 +420,46 @@ def _merge_TTHinting(font, masterModel, master_ttfs, tolerance=0.5): var = TupleVariation(support, delta) cvar.variations.append(var) -def _add_HVAR(font, model, master_ttfs, axisTags): +def _add_HVAR(font, masterModel, master_ttfs, axisTags): log.info("Generating HVAR") - hAdvanceDeltas = {} + gl...
(fix) updated poll interval lengths updated SHORT_POLL_INTERVAL and LONG_POLL_INTERVAL both to 1.0 so _status_poll_loop can actively query acc balances.
@@ -54,10 +54,10 @@ class BitmartExchange(ExchangeBase): trading functionality. """ API_CALL_TIMEOUT = 10.0 - SHORT_POLL_INTERVAL = 5.0 + SHORT_POLL_INTERVAL = 1.0 UPDATE_ORDER_STATUS_MIN_INTERVAL = 10.0 UPDATE_TRADE_STATUS_MIN_INTERVAL = 10.0 - LONG_POLL_INTERVAL = 120.0 + LONG_POLL_INTERVAL = 1.0 @classmethod def log...
TST: updated repr test for files Updated the repr test for files.
@@ -172,23 +172,23 @@ class TestBasics(): def setup(self): """Runs before every method to create a clean testing setup.""" self.out = '' + # Use a two-year as default. Some tests will use custom ranges. self.start = dt.datetime(2008, 1, 1) self.stop = dt.datetime(2009, 12, 31) - # store current pysat directory + # Stor...
[Docs] Changed output of model server When I run the model server the output is [value] not {"predictions": [value]} - perhaps this is something I have done but if not the docs should probably reflect this. I haven't tested the R version so that may need updating too.
@@ -306,7 +306,7 @@ in MLflow saved the model as an artifact within the run. the server should respond with output similar to:: - {"predictions": [6.379428821398614]} + [6.379428821398614] .. container:: R
Tests: Run compile library test in a per version directory. * This is to avoid clashes between different versions run at the same time and still easily find them.
@@ -109,12 +109,11 @@ def action(stage_dir, root, path): ) ) - +from nuitka.PythonVersions import python_version compileLibraryTest( search_mode = search_mode, - stage_dir = os.path.join(tmp_dir, "compile_library"), + stage_dir = os.path.join(tmp_dir, "compile_library_%s" % python_version ), decide = decide, action = a...
Developer Manual: Added description of how context managers are named. * This is a very useful coding rule in my mind, as it makes it really easy to recognize them.
@@ -293,6 +293,21 @@ There is no code in packages themselves. For programs, we use Names of modules should be plurals if they contain classes. Example is that a ``Nodes`` module that contains a ``Node`` class. +Names for context manages start with ``with`` +============================================= + +In order to e...
TST: added unit tests Added unit tests to cover newly uncovered lines.
@@ -271,6 +271,28 @@ class TestConstellationBasics(object): del self.testConst, self.load_date, self.custom_args return + @pytest.mark.parametrize("apply_inst", [False, True]) + def test_bad_set_custom(self, apply_inst): + """Test ValueError raised when not setting custom functions correctly. + + Parameters + ---------...
UI - FM - Alarm Diagnostic: Wrong field types fixed HG-- branch : ashapovalov/ui-fm-alarm-diagnostic-wrong-field-typ-1490087280651
@@ -142,7 +142,7 @@ Ext.define("NOC.fm.alarmdiagnosticconfig.Application", { }, { name: "periodic_delay", - xtype: "main.ref.script.LookupField", + xtype: "numberfield", fieldLabel: __("Delay"), min: 0, allowBlank: true @@ -155,7 +155,7 @@ Ext.define("NOC.fm.alarmdiagnosticconfig.Application", { }, { name: "periodic_sc...
CI: Removed test_converters_compatibility TT 1.x uses inkscape as converter only. Hence, this test is not required anymore.
@@ -200,14 +200,6 @@ def is_current_version_compatible(test_id, or not os.path.isfile(mod_args["preamble-file"]): mod_args["preamble-file"] = os.path.join(EXTENSION_DIR, "default_packages.tex") - if converter == "pstoedit": - textext.CONVERTERS = {textext.PstoeditPlotSvg.get_pdf_converter_name(): textext.PstoeditPlotSv...
Allow pipelines to be opened withe the JSON widget Pipieline files can currently be opened in either the pipeline editor or the file editor. This uodate also allows users to open pipeline files with the JSON viewer. Fixes
@@ -108,12 +108,15 @@ const extension: JupyterFrontEndPlugin<void> = { }); // Add the default behavior of opening the widget for .pipeline files - app.docRegistry.addFileType({ + app.docRegistry.addFileType( + { name: PIPELINE, displayName: 'Pipeline', extensions: ['.pipeline'], icon: pipelineIcon - }); + }, + ['JSON']...
Catch RemoteError if scanner has crashed If you restart the scanner (because it has crashed for e.g.) but don't restart the web script it won't show any data This way only the Worker status will be missing.
@@ -236,7 +236,10 @@ def get_pokemarkers(): if config.MAP_WORKERS: # Worker stats + try: markers.extend(get_worker_markers()) + except RemoteError: + print('Unable to connect to manager for worker data.') return markers def get_spawnpointsmarkers():
fix: Use correct path of built assets Get path from bundled_assets
@@ -576,13 +576,15 @@ def get_server_messages(app): def get_messages_from_include_files(app_name=None): """Returns messages from js files included at time of boot like desk.min.js for desk and web""" + from frappe.utils.jinja_globals import bundled_asset messages = [] app_include_js = frappe.get_hooks("app_include_js",...
Standalone: Fix Qt plugins in subfolders. * Also scan original files properly by proving the correct path. * This should e.g. fix the JPEG plugin.
@@ -105,12 +105,12 @@ if os.path.exists(guess_path): return [ ( - os.path.join(plugin_dir, os.path.basename(filename)), filename, + os.path.join(target_plugin_dir, os.path.relpath(filename, plugin_dir)), full_name ) for filename in - getFileList(target_plugin_dir) + getFileList(plugin_dir) if not filename.endswith(".qm...
Remove share directory API documentation is installed by CMake in the doc directory.
@@ -84,6 +84,8 @@ class LibpqxxRecipe(ConanFile): cmake = self._configure_cmake() cmake.install() + tools.rmdir(os.path.join(self.package_folder, "share")) + def package_info(self): pqxx_with_suffix = "pqxx-%s.%s" % tuple(self.version.split(".")[0:2]) is_package_with_suffix = self.settings.os != "Windows" and self.opti...
Fix auth of mailboxlayer and vatlayer Fix auth of apilayer mailboxlayer and vatlayer resolve
@@ -404,7 +404,7 @@ API | Description | Auth | HTTPS | CORS | API | Description | Auth | HTTPS | CORS | |---|---|---|---|---| | [Abstract Email Validation](https://www.abstractapi.com/email-verification-validation-api) | Validate email addresses for deliverability and spam | `apiKey` | Yes | Yes | -| [apilayer mailboxl...
Cleanup Ran flake8 to clean up some unneeded whitespaces.
@@ -133,7 +133,6 @@ class Folder(CanvasObject): ) return Folder(self._requester, response.json()) - def upload(self, file, **kwargs): """ Upload a file to this folder. @@ -155,7 +154,6 @@ class Folder(CanvasObject): **kwargs ).start() - def update(self, **kwargs): """ Updates a folder.
Update problem.py Should use "oneshot" for remote challenges.
@@ -246,6 +246,13 @@ class Remote(Service): return output + def service(self): + """ + Unlike the parent class, these are executables and should be restarted each time + """ + return {"Type":"oneshot", + "ExecStart":"/bin/bash -c \"{}\"".format(self.start_cmd) + } class FlaskApp(Service): """
Codacy Still trying to clear the codacy flag.
@@ -1245,7 +1245,7 @@ def get_tts_engine(profile): try: flite_cmd = ['flite', '-lv'] voices = subprocess.check_output( - flite_cmd, + ['flite','-lv'], shell=False ).decode('utf-8').split(" ")[2:-1] print(
Update README.md Links in table now open the notebooks in colab
|-----------|----|----| |Overview of Python ML/DL software ecosystem| Various | [markdown](software.md)| |List of Python tutorials | Various | [markdown](python.md)| -|Brief intro to colab| Colab | [notebook](colab_intro.ipynb)| -|Brief intro to data analysis |Matplotlib, Pandas, Xarray | [notebook](pandas_intro.ipynb)...
Fix master Summary: The `warnOnSpreadAttributes` config option is failing on `yarn build-for-python`, remove it since it's not surfacing any issues right now anyway. Test Plan: `yarn build-for-python`, verify no error. Reviewers: yuhan
@@ -53,7 +53,7 @@ module.exports = { ], }, ], - 'react/jsx-no-target-blank': ['error', {warnOnSpreadAttributes: true}], + 'react/jsx-no-target-blank': 'error', 'react/prefer-stateless-function': 'error', 'react/prop-types': 'off', 'react/display-name': 'off',
update analyze_spectral There are specific datatypes that are allowed with writing a dictionary from the Outputs observations class to a json text file. Converting to string was useful for avoiding float32 but we don't want wavelengths or reflectance frequencies to be strings so instead update the datatype transformati...
@@ -38,7 +38,6 @@ def analyze_spectral(array, header_dict, mask, histplot=True): wavelength_data = array[np.where(mask > 0)] wavelength_freq = wavelength_data.mean(axis=0) - # min_wavelength = int(np.ceil(float(header_dict["wavelength"][0]))) max_wavelength = int(np.ceil(float(header_dict["wavelength"][-1]))) @@ -47,13...
Remove protractor-add-test-answer css class from modify training data button
answer-group-editor .oppia-add-rule-button:active, answer-group-editor .oppia-add-rule-button:focus, - answer-group-editor .oppia-add-rule-button:hover { + answer-group-editor .oppia-add-rule-button:hover, + answer-group-editor .oppia-modify-training-data-button:active, + answer-group-editor .oppia-modify-training-data...
Force dtype=float for array returned by inf_like The scalar case already explicity returned np.inf.
@@ -3182,19 +3182,24 @@ def vectorize_if_needed(func, *x): def inf_like(x): - """Return the shape of x with value infinity. + """Return the shape of x with value infinity and dtype='float'. Preserves 'shape' for both array and scalar inputs. + But always returns a float array, even if x is of integer type. - >>> inf_li...
Tests: install python dependencies in pyright tests Otherwise pyright shows 100+ warnings related to imports.
@@ -91,8 +91,9 @@ jobs: - uses: actions/checkout@v3 - name: Install dependencies run: | - sudo apt-get install -y npm + sudo apt-get install -y npm libkrb5-dev libxmlsec1-dev npm install --global pyright + python -m pip --no-cache-dir install --upgrade -r requirements.txt - name: Make pyright report of current commit r...
DeleteUndefined: handle MaterializeAll MaterializeAll has to be checked in llvm 4. Do so.
#include "llvm/Transforms/Utils/BasicBlockUtils.h" #include <llvm/IR/DebugInfoMetadata.h> +#if LLVM_VERSION_MAJOR >= 4 +#include <llvm/Support/Error.h> +#endif + using namespace llvm; class DeleteUndefined : public ModulePass { @@ -106,7 +110,16 @@ static bool array_match(const StringRef &name, const char **array) } bo...
Field.doc: automatically append precise list of types TN:
@@ -1489,6 +1489,25 @@ class Field(BaseField): :type: int """ + @property + def doc(self): + result = super(Field, self).doc + + # If parsers build this field, add a precise list of types it can + # contain: the field type might be too generic. + if not self.struct.synthetic: + precise_types = self.types_from_parser.mi...
fix tostring deprecation Fixes: bloscpack/test_cmdline/mktestarray.py:30: DeprecationWarning: tostring() is deprecated. Use tobytes() instead.
@@ -27,7 +27,7 @@ def exists(filename): if not exists(DATA_FILE) and not exists(META_FILE): a = numpy.linspace(0, 100, int(2e7)) with open(DATA_FILE, 'wb') as f: - f.write(a.tostring()) + f.write(a.tobytes()) with open(META_FILE, 'w') as m: meta = dict(sorted(_ndarray_meta(a).items())) m.write(json.dumps(meta))
Refine CosineAnnealingWarmRestarts doc for issue Summary: Fixes Pull Request resolved:
@@ -697,18 +697,32 @@ class CosineAnnealingWarmRestarts(_LRScheduler): for base_lr in self.base_lrs] def step(self, epoch=None): - """Step could be called after every update, i.e. if one epoch has 10 iterations - (number_of_train_examples / batch_size), we should call SGDR.step(0.1), SGDR.step(0.2), etc. + """Step coul...
Added print out of ignore_forNorm chromosomes Number of chromosomes to be ignore might be more informative
@@ -20,6 +20,7 @@ outdir_ATACqc = 'MACS2_qc/' # do workflow specific stuff now include: os.path.join(workflow.basedir, "internals.snakefile") + ### include modules of other snakefiles ######################################## ################################################################################ @@ -57,6 +58,7...
export: Fix an unnecessary Any. This was introduced a few weeks ago in "Import script: Check and add system bots after every import."
@@ -1390,7 +1390,7 @@ def import_uploads(import_dir: Path, processing_avatars: bool=False) -> None: # Because the Python object => JSON conversion process is not fully # faithful, we have to use a set of fixers (e.g. on DateTime objects # and Foreign Keys) to do the import correctly. -def do_import_realm(import_dir: Pa...
Interpret entity docs as Mako templates This will allow us to have different doc renderings depending on the context. For instance, having different casings depending on the generated API. TN:
@@ -1148,16 +1148,19 @@ def create_doc_printer(lang, formatter): template_ctx['TODO'] = todo_markers[lang] if isinstance(entity, str): - doc = ctx.documentations[entity].render( + doc_template = ctx.documentations[entity] + elif entity.doc: + doc_template = Template(entity.doc) + else: + return '' + + doc = doc_templat...
Process docs: added version note for "advanced argument tweaking" feature related: openEOPlatform/documentation#41
@@ -105,6 +105,8 @@ but you can call the corresponding client method in multiple equivalent ways:: Advanced argument tweaking --------------------------- +.. versionadded:: 0.10.0 + In some situations, you may want to finetune what the (convenience) methods generate. For example, you want to play with non-standard, exp...
Match: make input value casts unsafe TN:
@@ -1015,10 +1015,13 @@ class Match(AbstractExpression): # bound and initialized. self.matchers = [] for m in matchers: - # Initialize match_var... + # Initialize match_var. Note that assuming the code generation + # is bug-free, this cast cannot fail, so don't generate type + # check boilerplate. let_expr = Let.Expr( ...
Remove unneeded config entries Since channels that mods can't read are now implicitly ignored, there is no need to explicitly ignore them.
@@ -248,15 +248,13 @@ guild: - *ADMIN_SPAM - *MODS - # Modlog cog ignores events which occur in these channels + # Modlog cog explicitly ignores events which occur in these channels. + # This is on top of implicitly ignoring events in channels that the mod team cannot view. modlog_blacklist: - - *ADMINS - - *ADMINS_VOI...
updated: reduction in overhead if memory is already accurate updated: using contextlib instead of home-grown class for "with" context.
@@ -2,6 +2,7 @@ import Queue import logging import traceback import threading +import contextlib import collections import envi @@ -230,18 +231,7 @@ class VivWorkspaceCore(object,viv_impapi.ImportApi): self.reloc_by_va[rva] = rtype self.relocations.append(einfo) - if rtype == RTYPE_BASERELOC: - # FIXME: we can't rebase...
[tests] Show additional informations with "urlshortener-blocked" APIError add site and user to the result['error'] dict in case of T244062 if not logged in, site.user() is None; show the IP in that case print "other" information in separate lines with APIError
@@ -120,10 +120,10 @@ class APIError(Error): def __str__(self): """Return a string representation.""" if self.other: - return '{0}: {1} [{2}]'.format( + return '{0}: {1}\n[{2}]'.format( self.code, self.info, - '; '.join( + ';\n '.join( '{0}: {1}'.format(key, val) for key, val in self.other.items())) @@ -2069,6 +2069,15...
Fix import ssl may fail under some Python installs It's only required for certain proxy configurations, so we don't want it to raise ImportError while the user imports our library.
import abc import asyncio import socket -import ssl as ssl_mod import sys +try: + import ssl as ssl_mod +except ImportError: + ssl_mod = None + from ...errors import InvalidChecksumError from ... import helpers @@ -68,6 +72,12 @@ class Connection(abc.ABC): loop=self._loop ) if ssl: + if ssl_mod is None: + raise Runtime...
[air/xgboost] Resolve xgboost benchmark failure After batch_size in predictor is applied correctly, we can reduce flakiness of our release test by using larger batch size for xgboost, since default 4096 is too small. This reduces runtime from ~310secs to ~200secs. Full context and debugging history see attached issue.
@@ -102,7 +102,12 @@ def run_xgboost_prediction(model_path: str, data_path: str): ds = data.read_parquet(data_path) ckpt = XGBoostCheckpoint.from_model(booster=model) batch_predictor = BatchPredictor.from_checkpoint(ckpt, XGBoostPredictor) - result = batch_predictor.predict(ds.drop_columns(["labels"])) + result = batch...
Fix non-json response of container commit The RESP BODY should be of json format, this patch fixes it. Closes-Bug:
@@ -617,7 +617,7 @@ class Manager(periodic_task.PeriodicTasks): repository, tag) utils.spawn_n(do_container_commit) - return snapshot_image.id + return {"uuid": snapshot_image.id} def _do_container_image_upload(self, context, snapshot_image, data, tag): try:
add SSH ingress on default sg for all addrs Also fixes the ip_ranges on the other rules to match the CidrBlock given when creating the vpc.
@@ -106,10 +106,9 @@ class EC2Provider(ExecutionProvider): # Required: False # Default: t2.small }, - "imageId" : #{"Description: String to append to the #SBATCH blocks - # in the submit script to the scheduler + "imageId" : #{"Description: The ID of the AMI # Type: String, - # Required: False }, + # Required: True }, ...
Fix bugs that prevented the form handlers from working on firefox. Now, the handlers directly interact with the input or textarea tag when inputting text.
@@ -45,6 +45,14 @@ class BaseFormHandler: def selenium(self): return BuiltIn().get_library_instance("SeleniumLibrary") + @property + def input_element(self): + """Returns the actual <input> or <textarea> element inside the element""" + elements = self.element.find_elements_by_xpath( + ".//*[self::input or self::textare...
Fixed typo in requisites.rst Glog -> Glob
@@ -68,7 +68,7 @@ first line in the stanza) or the ``- name`` parameter. - require: - pkg: vim -Glog matching in requisites +Glob matching in requisites ~~~~~~~~~~~~~~~~~~~~~~~~~~~ .. versionadded:: 0.9.8
swarming: fix ts_mon_metrics_test This is to fix
@@ -12,6 +12,7 @@ import swarming_test_env swarming_test_env.setup_test_env() from google.appengine.ext import ndb +import webapp2 import gae_ts_mon from test_support import test_case @@ -83,7 +84,8 @@ class TestMetrics(test_case.TestCase): def setUp(self): super(TestMetrics, self).setUp() gae_ts_mon.reset_for_unittest...
Update rogue_dns.txt Root ```upgrinfo.com``` is going to ```domain.txt```
@@ -223,4 +223,12 @@ ns2.whatnexthost.com # Reference: https://www.virustotal.com/gui/domain/ns1.fakesemoiin23.com/relations # Reference: https://www.virustotal.com/gui/domain/ns2.fakesemoiin23.com/relations +ns1.fakesemoiin23.com +ns2.fakesemoiin23.com 139.59.80.101:53 + +# Reference: https://www.virustotal.com/gui/do...
Config2: limit the number of retries to 15 This limits the waiting time until timeout from 43 min to 23.
@@ -649,7 +649,7 @@ special_page_limit = 500 step = -1 # Maximum number of times to retry an API request before quitting. -max_retries = 25 +max_retries = 15 # Minimum time to wait before resubmitting a failed API request. retry_wait = 5
Environment variable fallbacks should work for manually created configs This gives LocalConfig.find() and LocalConfig() the same defaults. The Code is also more easily understandable with the chain of 'or' fallbacks in one place.
@@ -52,56 +52,68 @@ class LocalConfig(object): current user. """ - def __init__(self, config, environment=None, files_loaded=None): - self._config = config + def __init__(self, config, files_loaded=None, env=None, driver=None): + self._config = config # type: compat.configparser.ConfigParser self.files_loaded = [] if f...
Switched to using Message.from_bytes in RtMidi backend. Since RtMidi always returns a complete message there's no need to use the full parser.
@@ -7,6 +7,7 @@ import threading import rtmidi from .. import ports +from ..messages import Message from ._parser_queue import ParserQueue def _get_api_lookup(): @@ -203,10 +204,13 @@ class Input(PortCommon, ports.BaseInput): self._rt.set_callback(self._callback_wrapper) def _callback_wrapper(self, msg_data, data): - s...
Add an annotation for time completed to show its non-None type This is part of DFK static typing, issue
@@ -110,7 +110,7 @@ class DataFlowKernel(object): self.hub_interchange_port = self.monitoring.start(self.run_id, self.run_dir) self.time_began = datetime.datetime.now() - self.time_completed = None + self.time_completed: Optional[datetime.datetime] = None logger.info("Run id is: " + self.run_id)
node tests: Add test_trigger_submit_compose_form(). (Steve Howell also contributed to this.)
@@ -822,6 +822,26 @@ function test_with_mock_socket(test_params) { assert(update_faded_messages_checked); }()); +(function test_trigger_submit_compose_form() { + var prevent_default_checked = false; + var compose_finish_checked = false; + var e = { + preventDefault: function () { + prevent_default_checked = true; + }, ...
fix "git clone" on windows env replaces, it does not update, and windows really needs its env
@@ -273,13 +273,20 @@ def run_cmd(cwd, cmd, env=None): if len(cmd) == 0: raise dbt.exceptions.CommandError(cwd, cmd) + # the env argument replaces the environment entirely, which has exciting + # consequences on Windows! Do an update instead. + full_env = env + if env is not None: + full_env = os.environ.copy() + full_...
[gcs/ha] Enable HA flags by default PR to enable all three flags for GCS HA: RAY_bootstrap_with_gcs=1 RAY_gcs_grpc_based_pubsub=1 RAY_gcs_storage=memory
@@ -294,9 +294,9 @@ RAY_CONFIG(bool, grpc_based_resource_broadcast, true) // Feature flag to enable grpc based pubsub in GCS. RAY_CONFIG(bool, gcs_grpc_based_pubsub, true) // The storage backend to use for the GCS. It can be either 'redis' or 'memory'. -RAY_CONFIG(std::string, gcs_storage, "redis") +RAY_CONFIG(std::str...
Tweak language in PR template This has irked me for a while. Declaring certainty that a change won't produce a regression seems impossibly hard, and I think this is a more achievable reflection of the intent.
- [ ] All migrations are backwards compatible and won't block deploy - [ ] The set of people pinged as reviewers is appropriate for the level of risk of the change - [ ] If QA is part of the safety story, the "Awaiting QA" label is used -- [ ] I am certain that this PR will not introduce a regression for the reasons be...
adding fields attribute to audio.Audio docstring update
@@ -11,6 +11,7 @@ class Audio(PlexPartialObject): Attributes: addedAt (datetime): Datetime this item was added to the library. + fields (list): List of :class:`~plexapi.media.Field`. index (sting): Index Number (often the track number). key (str): API URL (/library/metadata/<ratingkey>). lastViewedAt (datetime): Dateti...
Removes container cleanup test This is tested elsewhere, eg, test_service_start_cleanup Closes
from pathlib import Path -import docker import pytest from django.core.exceptions import ValidationError from django.test import TestCase @@ -26,12 +25,7 @@ def test_submission_evaluation( settings.task_always_eager = (True,) # Upload a submission and create an evaluation - dockerclient = docker.DockerClient( - base_ur...
OptionalParameter in ExternalPythonProgramTask Updated ExternalPythonProgramTask parameters type to OptionalParameter
@@ -260,13 +260,13 @@ class ExternalPythonProgramTask(ExternalProgramTask): :py:class:`luigi.parameter.Parameter` s for setting a virtualenv and for extending the ``PYTHONPATH``. """ - virtualenv = luigi.Parameter( + virtualenv = luigi.OptionalParameter( default=None, positional=False, description='path to the virtuale...
rng warning Changed settings for generating the RNG warning, which were happening too often.
@@ -198,7 +198,7 @@ def sample_rwalk(args): nfail += 1 # Check if we're stuck generating bad numbers. - if fail > 50 * walks: + if fail > 100 * walks: warnings.warn("Random number generation appears to be " "extremely inefficient. Adjusting the " "scale-factor accordingly.")
TST: improve tox.ini [CHANGED] invoke mpi4py futures correctly. To do this required ensuring I correctly specify the tox venv environment python interpreter. Other miscellaneous cleanup.
@@ -14,9 +14,7 @@ deps = py{36,37,38}: numba>0.48.0 scitrack pandas pytest-cov - py37mpi: mpi4py - py38mpi: mpi4py - py39mpi: mpi4py + py{37mpi,38mpi,39mpi}: mpi4py [testenv:py39] changedir = tests @@ -41,21 +39,21 @@ changedir = tests basepython = python3.7 whitelist_externals = mpiexec commands = - mpiexec -n 1 pytes...
Decouple the cmd_restart from the actual restart This is particularly useful if we want to restart without triggering the configuration validation, for example after a xrandr.
@@ -261,6 +261,20 @@ class Qtile(CommandObject): logger.debug('Stopping qtile') self._stopped_event.set() + def restart(self): + argv = [sys.executable] + sys.argv + if '--no-spawn' not in argv: + argv.append('--no-spawn') + buf = io.BytesIO() + try: + pickle.dump(QtileState(self), buf, protocol=0) + except: # noqa: E7...
Make LaunchBar font configurable When an icon can't be found, `LaunchBar` defaults to displaying text. The text is formatted according to `base._TextBox`'s defaults. This will pick up values set by `widget_defaults` but doesn't allow individual customisation for this widget. This PR fixes this issue by allowing users t...
@@ -51,7 +51,10 @@ from libqtile.widget import base class LaunchBar(base._Widget): - """A widget that display icons to launch the associated command + """ + A widget that display icons to launch the associated command. + + Text will displayed when no icon is found. Widget requirements: pyxdg_. @@ -72,9 +75,13 @@ class ...
BUG: Add missing DECREF in Py2 int() cast The Long number is downcast to int if possible, so the old version has to be DECREF'ed. Thanks to Johannes Barthelmes for bisecting the offending commit. Closes
@@ -1424,7 +1424,11 @@ static PyObject * #ifndef NPY_PY3K /* Invoke long.__int__ to try to downcast */ + { + PyObject *before_downcast = long_result; long_result = Py_TYPE(long_result)->tp_as_number->nb_int(long_result); + Py_DECREF(before_downcast); + } #endif return long_result;
Fix ctrl-\ behavior This commit fixes two issues with ctrl-\ when using IPython on linux: Previously, pressing ctrl-\ would make IPython exit without resetting the terminal configuration IPython users could not override the behavior of ctrl-\ using `signal.signal(signal.SIGQUIT, ...)` as they would in other terminal ap...
import signal import sys import re +import os from typing import Callable @@ -56,7 +57,7 @@ def reformat_and_execute(event): & insert_mode ))(reformat_and_execute) - kb.add('c-\\')(force_exit) + kb.add("c-\\")(quit) kb.add('c-p', filter=(vi_insert_mode & has_focus(DEFAULT_BUFFER)) )(previous_history_or_previous_complet...
Fix missing call to logger converter. If logger was not set and left to the default string 'bar', then it would have crashed when it tried to call `logger` as a function. See VideoClip.py:376 for correct equivalent.
@@ -6,6 +6,7 @@ out of VideoClips import subprocess as sp import os import numpy as np +from proglog import proglog from moviepy.compat import PY3, DEVNULL from moviepy.config import get_setting @@ -200,6 +201,8 @@ def ffmpeg_write_video(clip, filename, fps, codec="libx264", bitrate=None, """ Write the clip to a videof...
Bump cudf/cuml to 21.12 This is the newest version that supports both CUDA 11.X & Python 3.7
@@ -89,7 +89,7 @@ RUN conda config --add channels nvidia && \ # b/232247930: uninstall pyarrow to avoid double installation with the GPU specific version. RUN pip uninstall -y pyarrow && \ - conda install cudf=21.10 cuml=21.10 cudatoolkit=$CUDA_MAJOR_VERSION.$CUDA_MINOR_VERSION && \ + conda install cudf=21.12 cuml=21.1...
core: fix Dispatcher race introduced in It must be constructed before are messages pumped.
@@ -2214,6 +2214,7 @@ class ExternalContext(object): if self.config.get('setup_stdio', True): self._setup_stdio() + self.dispatcher = Dispatcher(self) self.router.register(self.parent, self.stream) self.log_handler.uncork() @@ -2222,7 +2223,6 @@ class ExternalContext(object): self.parent, mitogen.context_id, os.getpid(...
Update nasa-soho-comet-challenge-on-aws.yaml added publications to dataset listing
@@ -18,3 +18,12 @@ DataAtWork: Tutorials: Tools & Applications: Publications: + - Title: Topcoder NASA Comet Discovery: A Recap + URL: https://www.youtube.com/watch?v=E4OxTaqTP6E + AuthorName: TopCoder + - Title: Winners Selected for the NASA SOHO Comet Search with Artificial Intelligence Open-Science Challenge + URL: ...
Fix OneAccess.TDRE.get_metrics script HG-- branch : feature/microservices
@@ -70,7 +70,7 @@ class Script(GetMetricsScript): ): self.set_metric( name=self.SLA_ICMP_RTT, - value=delay, + value=int(delay * 1000000), ts=ts, tags={"probe": name} ) @@ -83,7 +83,7 @@ class Script(GetMetricsScript): ): self.set_metric( name=self.SLA_UDP_RTT, - value=delay, + value=int(delay * 1000000), ts=ts, tags={...
help_docs: Update `add-or-remove-users-from-a-stream` help doc. Uses new `select-stream-view-subscribers.md` in instructions. Also, adds a tip to bulk add users to a stream.
@@ -17,6 +17,8 @@ to a stream][configure-invites]. 1. Select a stream. +{!select-stream-view-subscribers.md!} + 1. Under **Add subscribers**, enter a name or email address. The typeahead will only include users who aren't already subscribed to the stream. @@ -24,6 +26,11 @@ to a stream][configure-invites]. {end_tabs} +...
Add st_birthtime to struct stat This is available on OS X, FreeBSD and NetBSD. On Linux, the definition itself will not result in any errors. However, code that does attempt to st_birthtime under Linux will now fail at C compile time rather than Cython compile time.
@@ -18,6 +18,11 @@ cdef extern from "<sys/stat.h>" nogil: time_t st_mtime time_t st_ctime + # st_birthtime exists on *BSD and OS X. + # Under Linux, defining it here does not hurt. Compilation under Linux + # will only (and rightfully) fail when attempting to use the field. + time_t st_birthtime + # POSIX prescribes in...
snow update link * snow update link * Update README.md added more cmd example
@@ -5,7 +5,7 @@ IT service management. Cortex XSOAR interfaces with ServiceNow to help streamlin - Query ServiceNow data with the ServiceNow query syntax. - Manage Security Incident Response (SIR) tickets with Cortex XSOAR, update tickets and enrich them with data. -Please refer to ServiceNow documentation for addition...
hw DeviceMgr: speed-up client_for_keystore() for common-case This method is often called when there is already an existing paired client for the keystore, in which case we can avoid scan_devices() - which would needlessly take several seconds.
@@ -511,10 +511,16 @@ class DeviceMgr(ThreadJob): if handler is None: raise Exception(_("Handler not found for") + ' ' + plugin.name + '\n' + _("A library is probably missing.")) handler.update_status(False) + pcode = keystore.pairing_code() + client = None + # search existing clients first (fast-path) + if not devices...
pull all services in parallel This is done by default now
@@ -241,7 +241,7 @@ case $CMD in esac if [ "$CMD" == "test" ]; then - docker-compose pull --parallel couch postgres redis elasticsearch kafka riakcs + docker-compose pull docker-compose run --rm web run_tests "${TEST:-python}" "$@" elif [ "$CMD" == "shell" ]; then docker-compose run --rm web ./manage.py $CMD "$@"
Put get_questions on a long timeout It varies by form source, so this should be safe to do. I tested this out locally and it does invalidate properly, and interestingly, if you change the form and then change it back, it'll hit the original cache, since the source is the same.
@@ -1212,7 +1212,8 @@ class FormBase(DocumentSchema): return xform.render() @time_method() - @quickcache(['self.source', 'langs', 'include_triggers', 'include_groups', 'include_translations']) + @quickcache(['self.source', 'langs', 'include_triggers', 'include_groups', 'include_translations'], + timeout=24 * 60 * 60) d...
BALD's isnan check is too late Per-entropy isnan check. The current check is too late.
@@ -208,14 +208,21 @@ def get_bald_scores(logits, masks): log_probs = jax.nn.log_softmax(logits) probs = jax.nn.softmax(logits) + weighted_nats = -probs * log_probs + weighted_nats = jnp.where(jnp.isnan(weighted_nats), 0, weighted_nats) + + marginal_entropy = jnp.mean(jnp.sum(weighted_nats, axis=-1), axis=1) + marginal...
TST: set up TestMetaLabels Cleaned up the TestMetaLabels class.
"""Tests the pysat MetaLabels object.""" import logging +import numpy as np import pytest import pysat class TestMetaLabels(object): - """Basic unit tests for the MetaLabels class.""" - + """Unit and integration tests for the MetaLabels class.""" def setup(self): """Set up the unit test environment for each method.""" ...
api/pupdevices/Light: drop blink, animate External single-color lights won't have this for now.
@@ -556,7 +556,3 @@ Light .. automethod:: pybricks.pupdevices.Light.on .. automethod:: pybricks.pupdevices.Light.off - - .. automethod:: pybricks.pupdevices.Light.blink - - .. automethod:: pybricks.pupdevices.Light.animate
Fix padding type mismatch in gshard builder Add num_packed_examples and batch_utilized_ratio eval metrics for gshard models
@@ -2359,7 +2359,8 @@ class UniTransformer(base_model.BaseTask): def _ComputeNonPadding(self, input_batch): if 'paddings' in input_batch.tgt: - return 1.0 - input_batch.tgt.paddings + return tf.cast(1.0 - input_batch.tgt.paddings, + py_utils.FPropDtype(self.params)) non_padding = tf.cast( tf.not_equal(input_batch.tgt.s...
Remove suggestion to switch to FastAPI branch Branch does not exist
@@ -28,7 +28,6 @@ Download this repo and install the dependencies: git clone https://github.com/lnbits/lnbits-legend.git cd lnbits-legend/ # ensure you have virtualenv installed, on debian/ubuntu 'apt install python3-venv' should work -# for now you'll need to `git checkout FastAPI` python3 -m venv venv ./venv/bin/pip ...
Store windows in list instead of set, fixes Since set is unordered, output of TaskList like widget was unpredictable. Before: window 4 | window 1 | window 3| window 2 | After: window 1 | window 2 | window 3 | window 4 |
@@ -44,7 +44,7 @@ class _Group(CommandObject): self.name = name self.label = name if label is None else label self.custom_layout = layout # will be set on _configure - self.windows = set() + self.windows = [] self.qtile = None self.layouts = [] self.floating_layout = None @@ -61,7 +61,7 @@ class _Group(CommandObject): ...
change: add a function in .cli.parse_args to get parser and parsed result Add a function .cli.parse_args.parse to get an argument parser and its parsed result.
@@ -97,4 +97,13 @@ def make_parser(defaults: typing.Optional[typing.Dict] = None help='Verbose mode; -v or -vv (more verbose)') return apsr + +def parse(argv: typing.List[str] + ) -> typing.Tuple[argparse.ArgumentParser, argparse.Namespace]: + """ + Parse given arguments ``argv`` and return it with the parser. + """ + ...
email tooltip: Adjust background color of email toolip in dark-mode. This commit adjust the email tooltip of popover in dark-mode.
@@ -399,6 +399,14 @@ body.dark-mode #out-of-view-notification { border: 1px solid 1px solid hsl(144, 45%, 62%); } +body.dark-mode .email_tooltip { + background-color: #404c59; +} + +body.dark-mode .email_tooltip:after { + border-bottom-color: #404c59 !important; +} + @-moz-document url-prefix() { body.dark-mode #settin...
Skip install prereqs when installing stable The current stable release (1.8.8) breaks an existing Docker 1.13 install with `--install-prereqs`. See
@@ -333,7 +333,9 @@ class VpcClusterUpgradeTest: with logger.scope("install dcos"): # Use the CLI installer to set exhibitor_storage_backend = zookeeper. - test_util.cluster.install_dcos(cluster, self.stable_installer_url, api=False, + # Don't install prereqs since stable breaks Docker 1.13. See + # https://jira.mesosp...
Update issue templates A little sizing and reordering.
@@ -9,28 +9,32 @@ assignees: '' <!--- Please search existing bugs before creating a new one --> -# Bug Report -**Install Source:** + +### Environment +- **System OS:** <!--- Windows/OSX/Linux/Heroku/Docker --> + +- **Python Version:** <!--- Python Version can be found by running "py -V" --> + +- **Install Source:** <!-...
Minor tweak to Tools.xml - correct referrring text [ci skip] In two places a reference to a section is made using "below" implying the section is in same doc, but Tools.xml definitions are distributed to both docs and this is incorrect for User Guide. Use "in manpage" instead.
@@ -282,8 +282,8 @@ Note that the source files will be scanned according to the suffix mappings in the <classname>SourceFileScanner</classname> object. -See the section "Scanner Objects," -below, for more information. +See the manpage section "Scanner Objects" +for more information. </para> </summary> </builder> @@ -38...
exclude some caffe2 modules from libtorch mobile build Summary: Pull Request resolved: ghimport-source-id: Test Plan: verified libtorch mobile library builds and links successfully; Imported from OSS
@@ -59,14 +59,18 @@ endif() # addressed yet. if (NOT BUILD_ATEN_ONLY) - add_subdirectory(proto) - add_subdirectory(contrib) add_subdirectory(core) + add_subdirectory(proto) + add_subdirectory(serialize) add_subdirectory(utils) + add_subdirectory(perfkernels) + + # Skip modules that are not used by libtorch mobile yet. ...
Fix a bug dependent on glibc version I changed adam.py so that bugs that depend on the version of glibc do not occur.
@@ -76,8 +76,8 @@ class AdamRule(optimizer.UpdateRule): @property def lr(self): - fix1 = 1. - self.hyperparam.beta1 ** self.t - fix2 = 1. - self.hyperparam.beta2 ** self.t + fix1 = 1. - math.pow(self.hyperparam.beta1, self.t) + fix2 = 1. - math.pow(self.hyperparam.beta2, self.t) return self.hyperparam.alpha * math.sqrt...
update up.sh Fix up.sh to point to binpash
@@ -7,7 +7,7 @@ set -e # will install dependencies locally. PLATFORM=$(uname | tr '[:upper:]' '[:lower:]') -URL='https://github.com/andromeda/pash/archive/refs/heads/main.zip' +URL='https://github.com/binpash/pash/archive/refs/heads/main.zip' VERSION='latest' DL=$(command -v curl >/dev/null 2>&1 && echo curl || echo 'w...
Update simulation.py To increase readability, make use of pandas index method `get_loc` instead of relying on `np.where`.
@@ -26,7 +26,7 @@ def get_dynamics(adata, key="fit", extrapolate=False, sorted=False, t=None): def compute_dynamics( adata, basis, key="true", extrapolate=None, sort=True, t_=None, t=None ): - idx = np.where(adata.var_names == basis)[0][0] if isinstance(basis, str) else basis + idx = adata.var_names.get_loc(basis) if i...
Fixes Ensure if target_edges is a list, we don't run into a `UnboundLocalError` because `edges` is not defined
# # ================================================================================================ +try: + import collections.abc as abc +except ImportError: + import collections as abc + import dwave_networkx as dnx import networkx as nx @@ -90,9 +95,9 @@ def find_clique_embedding(k, m, n=None, t=None, target_edges=...
Update ppo_cart_pole.gin with reward scaling and mini_batch_size=128, it will stably convert to 300 in 30 seconds
@@ -4,6 +4,10 @@ include 'ppo.gin' create_environment.env_name="CartPole-v0" create_environment.num_parallel_environments=8 +# reward scaling +ActorCriticAlgorithm.reward_shaping_fn = @reward_scaling +common.reward_scaling.scale = 0.01 + # algorithm config PPOLoss.entropy_regularization=1e-4 PPOLoss.gamma=0.98 @@ -16,7...
Update test_ec2_role_crud to match recent aws auth resp parameters See current response parameters at: This behavior was changed in vault 0.9.6. See: "[...] to keep consistency with input and output, when reading a role the binds will now be returned as string arrays rather than strings."
@@ -854,21 +854,21 @@ class IntegrationTest(TestCase): assert ('qux' in roles['data']['keys']) foo_role = self.client.get_ec2_role('foo') - assert (foo_role['data']['bound_ami_id'] == 'ami-notarealami') + assert (foo_role['data']['bound_ami_id'] == ['ami-notarealami']) assert ('ec2rolepolicy' in foo_role['data']['polic...
Add ?next= param for GitHub login This fixes by adding `?next=/asd` query for GitHub login button. It will redirect to pointed resource after successful log in.
<div class="col-12 col-md-5"> <h4>For The Carpentries Instructors</h4> - <p><a class="btn btn-primary w-100" href="/login/github/"><i class="fab fa-github"></i> Log in with your GitHub account</a></p> + <p><a class="btn btn-primary w-100" href="{% url 'social:begin' 'github' %}{% if next %}?next={{ next }}{% endif %}">...
[nixio] Add close() function Closes underlying nix file and cleans up maps and read_block tracking. __del__ added that calls the close function.
@@ -16,7 +16,7 @@ This IO supports both writing and reading of NIX files. Reading is supported only if the NIX file was created using this IO. """ -from __future__ import absolute_import, print_function +from __future__ import absolute_import import time from datetime import datetime @@ -1289,3 +1289,19 @@ class NixIO(...
Add the propose of the inssue Add a balloon tip with the price break. Missing yet some information when is more convenient buy the next price break and not your intended quantity.
@@ -1213,6 +1213,22 @@ def add_dist_to_worksheet(wks, wrk_formats, index, start_row, start_col, purch_qty=xl_rowcol_to_cell(row, purch_qty_col), qtys=','.join(qtys), prices=','.join(prices)), wrk_formats['currency']) + # Add comment if the price break + price_break_info = 'Price break:\n' + for count_price_break in ran...
[Stress Tester XFails] Remove and apple/swift#36943 The issues have been fixed
], "issueUrl" : "https://bugs.swift.org/browse/SR-8898" }, - { - "path" : "*\/MovieSwift\/MovieSwift\/MovieSwift\/views\/components\/bottomMenu\/BottomMenu.swift", - "issueDetail" : { - "kind" : "codeComplete", - "offset" : 1723 - }, - "applicableConfigs" : [ - "main" - ], - "issueUrl" : "https://bugs.swift.org/browse/...
DOC: updated changelog Updated changelog with a description of the changes in this branch.
@@ -26,8 +26,11 @@ This project adheres to [Semantic Versioning](https://semver.org/). docstrings from an instantiated Instrument in an interactive session * Bug Fix * Fixed default MetaLabel specification in `pysat.utils.load_netcdf4` + * Fixed `parse_delimited_filename` output consistency and ability to handle + lead...
Add link to GitHub discussion forum to docs Update "Getting help" topic to include a link to the new public discussion forum on GitHub.
@@ -19,6 +19,10 @@ limitations under the License. Thank you for your interest in Elyra! +### General questions + +Share your questions and ideas with the community in the [GitHub discussion forum](https://github.com/elyra-ai/elyra/discussions). + ### Create an issue or feature request If you encounter a problem or have...