message
stringlengths
13
484
diff
stringlengths
38
4.63k
update `create_pydantic_model` docs Didn't mention the `include_columns` option.
@@ -54,8 +54,8 @@ We can then create model instances from data we fetch from the database: You have several options for configuring the model, as shown below. -exclude_columns -~~~~~~~~~~~~~~~ +include_columns / exclude_columns +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ If we want to exclude the ``popularity`` column from the ...
Add warning to a known autograd issue on XLA backend. Summary: Pull Request resolved:
@@ -384,6 +384,20 @@ unsigned VariableHooks::_register_hook(const Tensor& self, std::function<Tensor( } void handle_view_on_rebase(DifferentiableViewMeta* diff_view_meta, bool indirect) { + // TODO: Remove this warning once we allow XLA to workaround CopySlices. + if (diff_view_meta->base_.device().type() == c10::Devic...
BUG: toggling conemporaneous on Dendrogram now toggles [FIXED] Dendrogram display now relfects new value
@@ -423,6 +423,7 @@ class Dendrogram(Drawable): self._edge_mapping = {} self._contemporaneous = contemporaneous self._tips_as_text = True + self._length_attr = self.tree._length @property def label_pad(self): @@ -442,9 +443,10 @@ class Dendrogram(Drawable): def contemporaneous(self, value): if not type(value) == bool: ...
Fixed bad hash method iteration example Updated the iteration docs to a working example. Made consistent with iteration and method example in previous lines.
@@ -173,7 +173,7 @@ def generate_password_hash(password, method="pbkdf2:sha256", salt_length=8): :param password: the password to hash. :param method: the hash method to use (one that hashlib supports). Can - optionally be in the format ``pbkdf2:<method>[:iterations]`` + optionally be in the format ``pbkdf2:method:iter...
[revert]: removed the default pse route statement as it is maintained by the routers Github Issue: Authored-by: Shubham Bansal
@@ -121,10 +121,6 @@ function MapOrSectorController($location, storageService, locationsService) { break; } } - // PSE is the deafult tab - if (awcReportPath === 'awc_reports') { - awcReportPath += '/pse'; - } $location.path(awcReportPath); } });
update ldap documentation use new ldap cache configuration in documentation
@@ -110,8 +110,8 @@ AUTH_LDAP_USER_FLAGS_BY_GROUP = { AUTH_LDAP_FIND_GROUP_PERMS = True # Cache groups for one hour to reduce LDAP traffic -AUTH_LDAP_CACHE_GROUPS = True -AUTH_LDAP_GROUP_CACHE_TIMEOUT = 3600 +AUTH_LDAP_CACHE_TIMEOUT = 3600 + ``` * `is_active` - All users must be mapped to at least this group to enable ...
[Train] Monkeypatch environment variables in `test_json` If we use `os.environ` to set environment variables in tests, then our tests become coupled. By using `monkeypatch`, we can safely set environment variables while ensuring our tests remain decoupled. For more information, see the [monkeypatching documentation](ht...
@@ -59,10 +59,10 @@ class TestBackend(Backend): @pytest.mark.parametrize("workers_to_log", [0, None, [0, 1]]) @pytest.mark.parametrize("detailed", [False, True]) @pytest.mark.parametrize("filename", [None, "my_own_filename.json"]) -def test_json(ray_start_4_cpus, make_temp_dir, workers_to_log, detailed, - filename): +d...
PerfRegion uses PLT_LINKLET_TIMES env var instead of verbose Fixes
@@ -27,6 +27,14 @@ def console_log_after_boot(print_str, given_verbosity_level=0, debug=False): if glob.is_boot_completed(): console_log(print_str, given_verbosity_level, debug) +def os_check_env_var(var_str): + import os + return var_str in os.environ.keys() + +def os_get_env_var(var_str): + import os + return os.envi...
Remove object as base class for MutableChain Plus some minor styling adjustments
""" This module contains essential stuff that should've come with Python itself ;) """ +import errno import gc +import inspect import os import re -import inspect +import sys import weakref -import errno from functools import partial, wraps from itertools import chain -import sys from scrapy.utils.decorators import dep...
Don't use checkboxes in bug issue form Github's form schema treats the `checkbox` type as a tasklist. Since the intention is to allow the user to select more than one command environment we should use a dropdown and give the user the option to select more than one option.
@@ -47,16 +47,17 @@ body: attributes: label: Operating System description: Your operating system and version. - - type: checkboxes + - type: dropdown id: win attributes: label: Windows environment description: If using Windows, how are you running CumulusCI? + multiple: true options: - - label: Command Prompt - - label...
[LLVM] Fix build errors in CodeGenCPU::AddDebugInformation This code is guarded by TVM_LLVM_VERSION >= 50 and < 70, so the errors were not detected in local tests or in CI.
@@ -203,11 +203,12 @@ void CodeGenCPU::AddDebugInformation(PrimFunc f_tir, llvm::Function* f_llvm) { ICHECK(f_llvm->getReturnType() == t_void_ || f_llvm->getReturnType() == t_int_) << "Unexpected return type"; auto ret_type_tir = f_llvm->getReturnType() == t_int_ ? DataType::Int(32) : DataType::Void(); - llvm::DIType* ...
Add native/quantized to the list of header rewrites Summary: Pull Request resolved: same as title. I am not sure why this was not added in the first place. Test Plan: wait for build to succeed.
@@ -632,6 +632,7 @@ def preprocessor(output_directory, filepath, stats, hip_clang_launch): if ( f.startswith("ATen/cuda") or f.startswith("ATen/native/cuda") + or f.startswith("ATen/native/quantized/cuda") or f.startswith("ATen/native/sparse/cuda") or f.startswith("THC/") or f.startswith("THCUNN/")
fix nightly job Summary: not sure whats up with tag cleaning, seems to be trying to delete the same ones every day. Also we deleted the script its trying to run. Test Plan: ??? Reviewers: max, schrockn
@@ -32,6 +32,7 @@ jobs: - run: name: Clean Phabricator Tags command: | + git fetch -p -P origin git tag | grep phabricator | xargs git push -d origin - run: @@ -75,4 +76,4 @@ jobs: command: | python -m venv . source bin/activate - . dev_env_setup.sh + make install_dev_python_modules
changed the digits regex to optionally accept signed numbers edited the unit test accordingly documented the get_remove_digits function to properly describe the new way that we handle digits updated the test suite accordingly, added two new files
@@ -462,11 +462,13 @@ def get_remove_punctuation_map( def get_remove_digits(text: str) -> str: - """Removes all digits. + """Removes signed / unsigned numbers, removes decimal / delimiter + separated numbers, does not remove currency symbols, will modify + some tokens where digits appear. :param text: A unicode string ...
Fix katex math rendering Summary: I'm 80% sure that this fixes the math bug. But I can't repro locally so I don't know. Pull Request resolved:
@@ -55,22 +55,6 @@ extensions = [ 'sphinxcontrib.katex', ] -# katex (mathjax replacement) macros -# -# - -katex_macros = r''' -"\\op": "\\operatorname{{#1}}", -"\\i": "\\mathrm{i}", -"\\e": "\\mathrm{e}^{#1}", -"\\w": "\\omega", -"\\vec": "\\mathbf{#1}", -"\\x": "\\vec{x}", -"\\d": "\\operatorname{d}\\!{}", -"\\dirac":...
TST: Test real ?gtsvx with NAG f07cbf example This commit adds a test for ?gtsvx using the example provided by NAG. The example solves a system of equations of the form AX=B where A is a tridiagonal matrix. See
@@ -922,6 +922,36 @@ class TestHetrd(object): ) +class TestGtsvx: + + @pytest.mark.parametrize('dtype', REAL_DTYPES) + def test_nag_f07cbf(self, dtype): + """Find the solution that satisfies the set of equations Ax=b. + + For the full reference see: + https://www.nag.com/numeric/fl/nagdoc_latest/examples/source/f07cbf....
Write more often on district migration To avoid tasks OOMing
@@ -211,14 +211,11 @@ class AdminCreateDistrictsDo(LoggedInHandler): year = int(year) year_dcmps = DistrictListQuery(year).fetch() districts_to_write = [] - events_to_write = [] - districtteams_to_write = [] + for dcmp in year_dcmps: district_abbrev = DistrictType.type_abbrevs[dcmp.event_district_enum] district_key = D...
public_export.py: Reorder the creation of the RealmAuditLog object. This reordering was originally made with regard to the delete after access feature for the public export. However, this reordering is more correct overall, i.e., the object should be created before the event pertaining to the object is sent.
@@ -25,15 +25,14 @@ def public_only_realm_export(request: HttpRequest, user: UserProfile) -> HttpRes if len(limit_check) >= time_delta_limit: return json_error(_('Exceeded rate limit.')) - # Using the deferred_work queue processor to avoid killing the process after 60s + RealmAuditLog.objects.create(realm=realm, + even...
[core/theme] Fix loading of iconsets * First, make iconsets override anything already present in the "base" configuration * Second, make sure that CLI provided iconsets have higher priority than "built-in" ones see
@@ -51,10 +51,11 @@ class Theme(object): self.__keywords = {} self.__value_idx = {} self.__data = raw_data if raw_data else self.load(name) + + for icons in self.__data.get("icons", []): + self.__data = util.algorithm.merge(self.load(icons, "icons"), self.__data) if iconset != "auto": self.__data = util.algorithm.merge...
Fix Travis builds on default Trusty infrastructure After the Travis container infrastructure was deprecated, boto imports stopped working in our tests; this hack fixes that issue.
@@ -7,3 +7,8 @@ install: - make develop extras=[aws,google] # adding extras to avoid import errors script: - TOIL_TEST_QUICK=True make test_offline +env: + # Necessary to get boto to work in Travis's Ubuntu Precise + # environment (see #2498). Consider removing this if/when we + # transition to the Xenial environment. ...
bugfix: show each license in new line styling: almost same as deposit form
<dt><b>{{ _('Licenses')}}</b></dt> <dd> {%- for right in rights%} - <a href="{{ right.link }}" target="_blank">{{ right.title }}</a> + <div class="content"> + <div class="header"> + {{ right.title }} + </div> + <div class="description"> + {% if right.description %} + <span style="color: rgba(0,0,0,.7);"> + {{ right.des...
Add installation instructions for openSUSE magic-wormhole has been included in openSUSE since Leap 15.1, and is also available in Tumbleweed: So document this explicitly.
@@ -70,6 +70,12 @@ $ sudo apt install magic-wormhole $ sudo dnf install magic-wormhole ``` +### Linux (openSUSE) + +``` +$ sudo zypper install python-magic-wormhole +``` + ### Linux (Snap package) Many linux distributions (including Ubuntu) can install ["Snap"
Fix openssl 1.0.2x shared library permissions Invoking `conan install` second time fails if openssl/1.0.2x package is used. Shared libraries are built with permissions restricting owner to write, a behaviour that produces mentioned install failure. Update openssl recipe to fix shared library permissions on Unix-like sy...
@@ -555,6 +555,12 @@ class OpenSSLConan(ConanFile): with tools.chdir(os.path.join(self.package_folder, 'lib')): os.rename('libssl.lib', 'libssld.lib') os.rename('libcrypto.lib', 'libcryptod.lib') + # Old OpenSSL version family has issues with permissions. + # See https://github.com/conan-io/conan/issues/5831 + if self....
Update Bno055.py Cleanup for automated test
-arduino = Runtime.createAndStart("arduino","Arduino") -arduino.connect("COM11") - -bno = Runtime.createAndStart("bno","Bno055") +# config +port = "COM11" +# Code to be able to use this script with virtalArduino +if ('virtual' in globals() and virtual): + virtualArduino = Runtime.start("virtualArduino", "VirtualArduino...
Add n_link argument This argument will be used if we want to link the bearing to a different node (instead of ground).
@@ -127,7 +127,11 @@ class BearingElement(Element): Array with the speeds (rad/s). tag: str, optional A tag to name the element - Default is None + Default is None. + n_link: int, optional + Node to which the bearing will connect. If None the bearing is + connected to ground. + Default is None. Examples -------- >>> # ...
[docs] Fix bug in old LaTeX package expdlist This bug is an extra space in the hacked \@item. It shows up with Sphinx 1.0's \pysiglinewithargsret and gives overfull hboxes which do not modify PDF output but they slow down compilation and fill the LaTeX log with dozens (at least) of overfull hboxes warnings.
@@ -187,6 +187,11 @@ latex_elements = { \renewenvironment{description}% {\begin{latexdescription}[\setleftmargin{60pt}\breaklabel\setlabelstyle{\bfseries\itshape}]}% {\end{latexdescription}} +% Fix bug in expdlist's modified \@item +\usepackage{etoolbox} +\makeatletter +\patchcmd\@item{{\@breaklabel} }{{\@breaklabel}}{...
Fix oslo.vmware change that added new keyword argument Next release of oslo.vmware adds a new keyword argument that this mock needs to consume (otherwise this whole test breaks).
@@ -45,7 +45,8 @@ class VsphereOperationsTest(base.BaseTestCase): vm_object.propSet[0].val = vm_instance return vm_object - def retrieve_props_side_effect(pc, specSet, options): + def retrieve_props_side_effect(pc, specSet, + options, skip_op_id=False): # assert inputs self.assertEqual(self._vsphere_ops._max_objects, o...
Switch __nonzero__ to __bool__. This is the right magic method to use for Python 3.
@@ -123,6 +123,10 @@ class DataFrameCollection: """Returns number of tables that are stored in this DataFrameCollection.""" return len(self._table_ids) + def __bool__(self): + """Returns true if this collection contains something.""" + return bool(self._table_ids) + def items(self) -> Iterator[Tuple[str, pd.DataFrame]]...
Trivial: use default value in next() func This patch replaces StopIteration exception handler for next() function setting the default value in the next() argument.
@@ -693,14 +693,13 @@ class HostManager(object): timeout = context_module.CELL_TIMEOUT nodes_by_cell = context_module.scatter_gather_cells( ctxt, cells, timeout, target_fnc) - try: - # Only one cell should have a value for the compute nodes - # so we get it here + + # Only one cell should have values for the compute no...
Update QuantumCircuit.barrier docstrings - Issue8076 Fix * Update QuantumCircuit.barrier docstrings * Update docstring formatting * Update qiskit/circuit/barrier.py Committed string suggestion * Ran black ($tox -eblack) to update formating
@@ -21,7 +21,12 @@ from .instruction import Instruction class Barrier(Instruction): - """Barrier instruction.""" + """Barrier instruction. + + A barrier is a visual indicator of the grouping of a circuit section. + It also acts as a directive for circuit compilation to separate pieces + of a circuit so that any optimiz...
search: fix rdm search bar 'executeSearch'. Fixed an issue where 'executeSearch' is undefined.
@@ -141,18 +141,15 @@ export const RDMRecordSearchBarElement = withState( placeholder: passedPlaceholder, queryString, onInputChange, - executeSearch, updateQueryState, }) => { const placeholder = passedPlaceholder || i18next.t("Search"); const onBtnSearchClick = () => { - updateQueryState({ filters: [] }); - executeSe...
Fixup hover popup behavior We used show_popup two times, but it's a smoother experience to use show_popup and then update_popup. There's a bug in ST where it thinks the view is modified when doing a show_popup or an add_regions call with an edit token. Workaround this by running sublime.set_timeout. See:
@@ -109,11 +109,11 @@ class LspHoverCommand(LspTextCommand): def handle_code_actions(self, responses: Dict[str, List[CodeActionOrCommand]], point: int) -> None: self._actions_by_config = responses - sublime.set_timeout(lambda: self.show_hover(point)) + self.show_hover(point) def handle_response(self, response: Optional...
Deleted check when SFR is not completely fulfilled This is currently blocking when diversified SFRs cannot complete due to a lack of a certain type of instance. If we are scaling up, the target capacity may be overwitten with the same value. If we are scaling down, there is no point checking this
@@ -572,12 +572,6 @@ class SpotAutoscaler(ClusterAutoscaler): self.resource['id'], )) raise ClusterAutoscalingError - if self.is_aws_launching_instances() and self.sfr['SpotFleetRequestState'] == 'active': - self.log.warning( - "AWS hasn't reached the TargetCapacity that is currently set. We won't make any " - "changes...
Fix for `plot_field` function failing on non-square grids Fix for issue
@@ -16,7 +16,7 @@ def plot_field(field, xmax=2., ymax=2., zmax=None, view=None, linewidth=0): y_coord = np.linspace(0, ymax, field.shape[1]) fig = pyplot.figure(figsize=(11, 7), dpi=100) ax = fig.gca(projection='3d') - X, Y = np.meshgrid(x_coord, y_coord) + X, Y = np.meshgrid(x_coord, y_coord, indexing='ij') ax.plot_su...
Changelog for 0.5.9 Test Plan: N/A Reviewers: #ft, alangenfeld
# Changelog +## 0.5.9 +- Fixes an issue using custom types for fan-in dependencies with intermediate storage. + +## 0.5.8 +- Fixes an issue running some Dagstermill notebooks on Windows. +- Fixes a transitive dependency issue with Airflow. +- Bugfixes, performance improvements, and better documentation. + ## 0.5.7 - Fi...
Update apt_adwind.txt Removing dup.
@@ -744,13 +744,16 @@ tradcan.duckdns.org 185.165.153.150:4145 # Reference: https://pastebin.com/29uSdMAk +# Reference: https://app.any.run/tasks/6272b39e-7fea-4134-819e-6d3b6b5a0d2b +# Reference: https://www.virustotal.com/gui/file/7a01202131c133a5f78134f264383e827a68164a05e5927da485527da00f8b32/detection 0000rrrvvv.d...
docs/Running: Section-ise the setup.py install section * Moves the "you need to edit these files in the monitor" into a section related to this, rather than up in #concepts.
@@ -306,16 +306,8 @@ from the Gateway to the Relay and Monitor. As the code currently (2021-05-16) stands it MUST run on a standalone host such that everything is served relative to the path root, not a path prefix. -Also all of the `contrib/monitor` files have `eddn.edcd.io` hard-coded. You -will need to perform searc...
Fixes to reconnect to the phone and specify a serial number * Add ability to close and reconnect to phone. * Add specifying an Android phone's serial number. This allows supporting multiple Android phones plugs in a single test with subclasses: conf.declare('adb_serial_number1', default=None, description='SN for my And...
@@ -60,7 +60,7 @@ def init_dependent_flags(): parser.parse_known_args() -def _open_usb_handle(**kwargs): +def _open_usb_handle(serial_number=None, **kwargs): """Open a UsbHandle subclass, based on configuration. If configuration 'remote_usb' is set, use it to connect to remote usb, @@ -74,13 +74,13 @@ def _open_usb_han...
switch2container: remove deb systemd units When running the switch2container playbook on a Debian based system then the systemd unit path isn't the same than Red Hat based system. Because the systemd unit files aren't removed then the new container systemd unit isn't take in count.
- name: remove old systemd unit files file: - path: /usr/lib/systemd/system/{{ item }} + path: "{{ item }}" state: absent with_items: - - ceph-mon@.service - - ceph-mon.target + - /usr/lib/systemd/system/ceph-mon@.service + - /usr/lib/systemd/system/ceph-mon.target + - /lib/systemd/system/ceph-mon@.service + - /lib/sys...
fixup: ensure default blinder source 'INTERMISSION' shows a SMTPE signal fixed documentation
@@ -99,7 +99,7 @@ Without any further configuration this will produce two test sources named `cam1 Without any further configuration a source becomes a **test source** by default. Every test source will add a [videotestsrc](https://gstreamer.freedesktop.org/documentation/videotestsrc/index.html?gi-language=python) and ...
Drop use of deprecated allow_tags attribute. mozilla/sumo-project#136
@@ -5,6 +5,7 @@ from django import forms from django.contrib import admin from django.urls import reverse from django.db import models +from django.utils.safestring import mark_safe from kitsune.kbadge.models import Badge, Award @@ -20,13 +21,12 @@ def show_image(obj): if not obj.image: return "None" img_url = obj.imag...
[IMPR] catch ServerError as a whole in reflinks.py All server errors derive from ServerError which can be used to catch them all.
@@ -64,11 +64,7 @@ from pywikibot import comms, config, i18n, pagegenerators, textlib from pywikibot.backports import removeprefix from pywikibot.bot import ConfigParserBot, ExistingPageBot, SingleSiteBot from pywikibot.comms.http import get_charset_from_content_type -from pywikibot.exceptions import ( - FatalServerErr...
Remove required-by for tensorboard tests Not sure why this isn't showing up (recent refactored use of setup tools?) but it's non-critical and not worth chasing.
@@ -15,7 +15,7 @@ installed `pypi.tensorboard` package. license: Apache 2.0 location: ... requires: ... - required-by:...guildai... + required-by:... <exit 0> >>> run("guild packages info tensorboard") # doctest: -PY3 @@ -28,5 +28,5 @@ installed `pypi.tensorboard` package. license: Apache 2.0 location: ... requires: .....
Update distro.linux_distribution & mariadb_ver [10.8] Fix: DeprecationWarning: distro.linux_distribution() is deprecated Deprecated since version 3.5, removed in version 3.7. Update: OVH MariaDB mirror has been updated and support Ubuntu 22.04 [jammy]
"""WordOps core variable module""" import configparser import os +import sys from datetime import datetime from re import match from socket import getfqdn from shutil import copy2 -from distro import linux_distribution +from distro import distro, linux_distribution from sh import git @@ -30,6 +31,7 @@ class WOVar(): # ...
Fixed broken pytest I'm not convinced this is the best way to do the mock, but my mock fu is weak. I'm going to check it in anyway, so I can run the test in ci.
@@ -6,11 +6,21 @@ from unittest import mock import cumulusci.robotframework.utils as robot_utils from cumulusci.utils import touch +mock_SeleniumLibrary = mock.Mock() + + +class MockBuiltIn: + get_library_instance = mock.Mock( + return_value={"SeleniumLibrary": mock_SeleniumLibrary} + ) + + +robot_utils.BuiltIn = MockB...
navbar: Fix search icon click event. This block was accidentally deleted in
@@ -69,6 +69,13 @@ function append_and_display_title_area(tab_bar_data) { } function bind_title_area_handlers() { + $(".search_closed").on("click", function (e) { + exports.open_search_bar_and_close_narrow_description(); + search.initiate_search(); + e.preventDefault(); + e.stopPropagation(); + }); + $("#tab_list span:...
go: check whether the race detector is supported on the platform Check whether the race detector is supported on the current platform and disable it if it is not supported.
# Licensed under the Apache License, Version 2.0 (see LICENSE). from __future__ import annotations +import logging from dataclasses import dataclass from typing import Iterable @@ -12,8 +13,9 @@ from pants.backend.go.target_types import ( GoRaceDetectorEnabledField, GoTestRaceDetectorEnabledField, ) -from pants.backend...
swarming: actually retry the pool finding function 4 attempts with 10s between = ~30s
@@ -43,7 +43,7 @@ def retry_exception(exc_type, max_attempts, delay): return deco -@retry_exception(ValueError, 1, 10) +@retry_exception(ValueError, 4, 10) def pick_best_pool(url, server_version): """Pick the best pool to run the health check task on.
fix: Stock Balance Report Shows Fatal Error -2 Old: skip_total_row = result['skip_total_row'] if 'skip_total_row' in result else '' result["add_total_row"] = report.add_total_row and not skip_total_row New: result["add_total_row"] = report.add_total_row and not result.get('skip_total_row')
@@ -185,8 +185,7 @@ def run(report_name, filters=None, user=None, ignore_prepared_report=False): else: result = generate_report_result(report, filters, user) - skip_total_row = result['skip_total_row'] if 'skip_total_row' in result else '' - result["add_total_row"] = report.add_total_row and not skip_total_row + result...
Proper warning level of deprecation notice This enables us to control emitted messages via the PYTHONWARNINGS environment variable or by -W option.
@@ -876,7 +876,8 @@ class Response: def stream(self): # type: ignore warnings.warn( # pragma: nocover "Response.stream() is due to be deprecated. " - "Use Response.aiter_bytes() instead." + "Use Response.aiter_bytes() instead.", + DeprecationWarning, ) return self.aiter_bytes # pragma: nocover @@ -884,7 +885,8 @@ class...
Insert a shallow copy of default_settings Prevents pymongo from adding an "_id" key to the default_values dict itself.
@@ -222,7 +222,7 @@ def get_settings(): db = api.db.get_conn() settings = db.settings.find_one({}, {"_id": 0}) if settings is None: - db.settings.insert(default_settings) + db.settings.insert(default_settings.copy()) return default_settings return settings
Fixed dupe bug for comments, enhanced logging info Fixed the dupe bug by altering the find duplicates method
@@ -370,7 +370,8 @@ class GitHubWorker: # Increment our global track of the cntrb id for the possibility of it being used as a FK self.cntrb_id_inc += 1 - except: + except Exception as e: + logging.info("Caught exception: " + str(e)) logging.info("Contributor not defined. Please contact the manufacturers of Soylent Gre...
Hypothesis tests: add ability to enforce shape inference Summary: Pull Request resolved: Add parameter to enforce that outputs are inferred
@@ -510,7 +510,12 @@ class HypothesisTestCase(test_util.TestCase): np.testing.assert_allclose(indices, ref_indices, atol=1e-4, rtol=1e-4) - def _assertInferTensorChecks(self, name, shapes, types, output): + def _assertInferTensorChecks(self, name, shapes, types, output, + ensure_output_is_inferred=False): + self.assert...
Make MD work again by disabling SSL verification Moldelectrica still hasn't replaced their expired cert after >2 weeks Closes
@@ -26,8 +26,8 @@ def get_data(session=None): s = session or requests.Session() #In order for the data url to return data, cookies from the display url must be obtained then reused. - response = s.get(display_url) - data_response = s.get(data_url) + response = s.get(display_url, verify=False) + data_response = s.get(da...
fix typo in caesar_cipher.py very character-> every character
@@ -27,7 +27,7 @@ def encrypt(input_string: str, key: int, alphabet: str | None = None) -> str: ========================= The caesar cipher is named after Julius Caesar who used it when sending secret military messages to his troops. This is a simple substitution cipher - where very character in the plain-text is shift...
load source files as binary If we load them as text on a system without an locale setup, (so it defaults to C or POSIX), then no modules/states with unicode in the documentation can be loaded.
@@ -53,7 +53,7 @@ if six.PY3: for suffix in importlib.machinery.BYTECODE_SUFFIXES: SUFFIXES.append((suffix, 'rb', 2)) for suffix in importlib.machinery.SOURCE_SUFFIXES: - SUFFIXES.append((suffix, 'r', 1)) + SUFFIXES.append((suffix, 'rb', 1)) # pylint: enable=no-member,no-name-in-module,import-error else: SUFFIXES = imp...
Python API: no AnalysisUnit.get_from_provider without default provider This API is not supposed to be available when the language spec does not defines a default unit provider. TN:
@@ -544,6 +544,7 @@ class AnalysisContext: GrammarRule._unwrap(rule)) return AnalysisUnit._wrap(c_value) +% if ctx.default_unit_provider: def get_from_provider(self, name, kind, charset=None, reparse=False): ${py_doc('langkit.get_unit_from_provider', 8)} if isinstance(name, bytes): @@ -561,6 +562,7 @@ class AnalysisCon...
Hebbian learning fix * Hebbian learning fix simply changed it from error to warning. * Removed no-targets error removed error statement when system is not given targets for learning, because Hebbian doesn't need targets
@@ -1861,9 +1861,13 @@ class System(System_Base): def _instantiate_target_inputs(self, context=None): if self.learning and self.targets is None: + # MODIFIED CW and KM 1/29/18: changed below from error to warning if not self.target_mechanisms: - raise SystemError("PROGRAM ERROR: Learning has been specified for {} but i...
Add new environment option KOLIBRI_DEBUG, make get_logger internal to kolibri.utils.options __get_logger does not return a fully configured logger, since logging may not be configured at the time of calling the function
@@ -130,6 +130,11 @@ base_option_spec = { "default": False, "envvars": ("KOLIBRI_SERVER_PROFILE",), }, + "DEBUG": { + "type": "boolean", + "default": False, + "envvars": ("KOLIBRI_DEBUG",), + }, }, "Paths": { "CONTENT_DIR": { @@ -177,9 +182,13 @@ base_option_spec = { } -def get_logger(KOLIBRI_HOME): +def __get_logger(K...
[dagit] Fix AssetView.test key warnings ### Summary & Motivation Repair these warnings by adjusting some of the mocks. ### How I Tested These Changes yarn jest AssetView
@@ -13372,9 +13372,9 @@ __metadata: linkType: hard "caniuse-lite@npm:^1.0.0, caniuse-lite@npm:^1.0.30001109, caniuse-lite@npm:^1.0.30001214, caniuse-lite@npm:^1.0.30001219, caniuse-lite@npm:^1.0.30001286, caniuse-lite@npm:^1.0.30001297, caniuse-lite@npm:^1.0.30001299, caniuse-lite@npm:^1.0.30001332": - version: 1.0.300...
Wrong Client is also a FatalClientError FatalClientError is it SHOULD NOT be redirected to client (redirect_uri), but MUST be redirected to USERS (error_uri).
@@ -224,7 +224,7 @@ class TemporarilyUnavailableError(OAuth2Error): error = 'temporarily_unavailable' -class InvalidClientError(OAuth2Error): +class InvalidClientError(FatalClientError): """ Client authentication failed (e.g. unknown client, no client authentication included, or unsupported authentication method).
Update Redis exporter to 1.14.0 PR - allow configuring whether the port is included in the client's details (by default it is not)
@@ -58,7 +58,7 @@ packages: context: static: <<: *default_static_context - version: 1.13.1 + version: 1.14.0 license: MIT summary: Prometheus exporter for Redis server metrics. description: Prometheus Exporter for Redis Metrics. Supports Redis 2.x, 3.x, 4.x, 5.x and 6.x
Fix pylint warning in test_l3_hamode_db.py ************* Module neutron.tests.unit.db.test_l3_hamode_db C:841, 0: Line too long (80/79) (line-too-long) Trivialfix
@@ -838,8 +838,8 @@ class L3HATestCase(L3HATestFramework): self.admin_ctx, states, self.agent1['host']) def test_exclude_dvr_agents_for_ha_candidates(self): - """Test dvr agents configured with "dvr" only, as opposed to "dvr_snat", - are excluded. + """Test dvr agents configured with "dvr" only, as opposed to + "dvr_sn...
Remove unnecessary log statement. All paths are covered by more specific statements, so remove extra log line in the most common case.
@@ -427,13 +427,13 @@ class Interchange: try: msg = Message.unpack(raw_msg) - log.debug("received Message/Heartbeat? on task queue") except Exception: log.exception(f"Failed to unpack message, RAW:{raw_msg}") continue if msg == "STOP": # TODO: Yadu. This should be replaced by a proper MessageType + log.debug("Received ...
make `setxor1d' a bit clear and speed up We need to find the index which is not the same with the left and right, I think np.logical_and's meaning is more clear and I test this got a speed up
@@ -378,8 +378,9 @@ def setxor1d(ar1, ar2, assume_unique=False): # flag = ediff1d( aux, to_end = 1, to_begin = 1 ) == 0 flag = np.concatenate(([True], aux[1:] != aux[:-1], [True])) # flag2 = ediff1d( flag ) == 0 - flag2 = flag[1:] == flag[:-1] - return aux[flag2] +# flag2 = flag[1:] == flag[:-1] +# return aux[flag2] + ...
Update options-for-quality-metrics.md specified which reports it applies to
## Available Options -These options apply to different plots in the Evidently reports: Data Drift, Classification Performance, Probabilistic classification performance, Regression Performance. +These options apply to different plots in the Evidently reports: Data Drift, Categorical Target Drift, Classification Performa...
smp: Fix smp_call macros with fewer than 4 arguments The full 4-argument version of smp_call is smp_call4; smp_call doesn't exist.
@@ -15,10 +15,10 @@ void smp_secondary_entry(void); void smp_start_secondaries(void); -#define smp_call0(i, f) smp_call(i, f, 0, 0, 0, 0) -#define smp_call1(i, f, a) smp_call(i, f, a, 0, 0, 0) -#define smp_call2(i, f, a, b) smp_call(i, f, a, b, 0, 0) -#define smp_call3(i, f, a, b, c) smp_call(i, f, a, b, c, 0) +#define...
[Doc] NN Modules Edit for grammar and style * Edit for grammar and style Improve the flow and readability * Update docs/source/features/nn.rst Better now? NN Modules as a title is vague
.. currentmodule:: dgl -NN Modules +Graph neural network modules =============== -A set of high-level pre-defined modules are provided to build graph neural networks. +This topic provides a link to several high-level, pre-defined modules you can use to build graph neural networks (NN). .. toctree:: @@ -13,11 +13,10 @@ ...
Update italics formatting help to use asterisks See for context. One user didn't realize `*text*` italicizes it, and asterisks are used in other help docs more consistently, e.g. `_italics_` kept as an alternative for italics.
@@ -22,9 +22,9 @@ Text Style You can use either ``_`` or ``*`` around a word to make it italic. Use two to make it bold. -* ``_italics_`` renders as `italics` +* ``*italics*`` (or ``_italics_``) renders as *italics* * ``**bold**`` renders as **bold** -* ``**_bold-italic_**`` renders as |bold_italics| +* ``***bold-itali...
m1n1.constructutils: Improve recursive reload Reload more things, but also avoid reloading the same class multiple times.
@@ -5,35 +5,70 @@ from .utils import Reloadable, ReloadableMeta import inspect import textwrap -def recusive_reload(obj): +g_struct_trace = set() +g_depth = 0 + +def recusive_reload(obj, token=None): + global g_depth + + if token is None: + g_depth = 0 + token = object() + + cur_token = getattr(obj, "_token", None) + i...
Capirca should be able to use non-int ports Adding feature to allow capirca_acl module to translate ports specified using the service name to their integer value, as mapped in the IANA /etc/services file
@@ -149,7 +149,7 @@ _IP_FILEDS = [ 'next_ip' ] -_DEFAULT_SERVICES = {} +_SERVICES = {} # ------------------------------------------------------------------------------ # helper functions -- will not be exported @@ -208,8 +208,9 @@ def _get_services_mapping(): services shortcut and they will need to specify the protocol...
Add python-dateutil as a dependency of the EBCLI Components of the 'dateutil' module are invariably found in the response objects that botocore generates SIM: cr
@@ -11,6 +11,7 @@ requires = [ 'cement==2.8.2', 'colorama==0.3.7', 'pathspec==0.5.5', + 'python-dateutil>=2.1,<3.0.0', # use the same range that 'botocore' uses 'pyyaml>=3.11', 'setuptools >= 20.0', 'docker-compose >= 1.21.2, < 1.22.0',
Update README.md Add some instructions to solve a common port number issue when 7000 is occupied
# Docker -Make sure you have Docker installed +Make sure you have Docker installed, and Docker Desktop is running. ## Build an image @@ -16,6 +16,12 @@ docker build -t knowledge -f docker/Dockerfile.dev . docker run --rm -it -p 7000:7000 -e KNOWLEDGE_REPO=test_repo knowledge </pre> +After the server is up and running i...
Update 35-gaussian_density_fit.py pbc/RHF does not support k-point meshes.
@@ -91,7 +91,7 @@ mf.kernel() # below. Assuming in the first pass, the GDF 3-index tensors are saved with # the following code # -mf = scf.RHF(cell, cell.make_kpts([2,2,2])).density_fit(auxbasis=auxbasis) +mf = scf.KRHF(cell, cell.make_kpts([2,2,2])).density_fit(auxbasis=auxbasis) mf.with_df._cderi_to_save = 'pbc_gdf.h...
Improve ensuring scene setting only one call to Harmony message box for missing attributes resolution attributes.
import os import time +import sys from avalon import api, harmony +from avalon.vendor import Qt import pyblish.api from pype import lib def ensure_scene_settings(): - fps = lib.get_asset()["data"]["fps"] - frame_start = lib.get_asset()["data"]["frameStart"] - frame_end = lib.get_asset()["data"]["frameEnd"] + asset_data...
Add ordering operators to Location TN:
@@ -82,6 +82,16 @@ class Location(object): self.line = line self.text = text + @property + def as_tuple(self): + return (self.file, self.line) + + def __eq__(self, other): + return self.as_tuple == other.as_tuple + + def __lt__(self, other): + return self.as_tuple < other.as_tuple + def __repr__(self): return "<Locatio...
Fix trailing slash in base_url. * Strip trailing slash in base_url. * Revert "Strip trailing slash in base_url." This reverts commit * Combine urls using urllib.parse.urljoin().
@@ -5,6 +5,7 @@ import os import re from collections import UserList from typing import Any, Dict, List, Union +from urllib.parse import urljoin import requests.utils from requests import Response, Session @@ -152,7 +153,7 @@ class APIClient: def _get_base_url_with_base_path(self): base_path = "/api/{}/projects/{}".for...
Update broad-references.yaml Updating readme URL
Name: Broad Genome References Description: Broad maintained human genome reference builds hg19/hg38 and decoy references. -Documentation: https://s3.amazonaws.com/broad-references/README +Documentation: https://s3.amazonaws.com/broad-references/broad-references-readme.html Contact: hensonc@broadinstitute.org ManagedBy:...
[doc] Update documentation lintrails --> linktrails
@@ -142,7 +142,7 @@ def update_family_file(): text += yield except GeneratorExit: text += ' }' - # write lintrails to family file + # write linktrails to family file pywikibot.output('Writing family file...') family_file_name = join('pywikibot', 'family.py') with codecs.open(family_file_name, 'r', 'utf8') as family_fil...
Update prototype_index.rst Adds module recipe to prototype index.
@@ -91,6 +91,15 @@ Prototype features are not available as part of binary distributions like PyPI o :link: ../prototype/vulkan_workflow.html :tags: Mobile +.. Modules + +.. customcarditem:: + :header: Skipping Module Parameter Initialization in PyTorch 1.10 + :card_description: Describes skipping parameter initializati...
STY: take dict before Series name Changed `_custom.py` 'add' logic to take the function supplied metadata in the dictionary before the Series metadata, since the series metadata is more likely to carry over from input and the dictionary input is more likely to be delibrately specified.
@@ -163,14 +163,14 @@ class Custom(object): sat[newData['data'].columns] = newData # if a series is returned, add it as a column elif isinstance(newData['data'], pds.Series): - # look for name attached to series first - if newData['data'].name is not None: - sat[newData['data'].name] = newData - # look if name is provi...
Update detection-testing.yml Accidentally removed change directory. We were not in the correct directory for the file we were trying to upload to S3.
@@ -323,7 +323,7 @@ jobs: - name: Upload S3 Badge and Summary Artifacts for Nightly Scheduled Run if: ${{ github.event_name == 'schedule' }} run: | - #cd bin/docker_detection_tester + cd bin/docker_detection_tester #python generate_detection_coverage_badge.py --input_summary_file summary_test_results.json --output_badg...
user status: Decrease user status modal width by 20% User status modal width is decreased by 20% to make it look better with the user status message options added in the previous commit.
.user_status_overlay { .overlay-content { - width: 480px; + width: 384px; margin: 0 auto; position: relative; top: calc((30vh - 50px) / 2); } input.user_status { - width: 420px; + width: 336px; }; .user-status-header {
Fix typo in Exception type Hasn't been hit unless there is an error in the migrations which is why it didn't cause tests to fail
@@ -126,7 +126,7 @@ def run_migrations_online(): for rec in engines.values(): rec["transaction"].commit() - except Except: + except Exception: for rec in engines.values(): rec["transaction"].rollback() raise
Update cobaltstrike.txt Fixed
@@ -10608,7 +10608,17 @@ yazorac.com # Reference: https://twitter.com/TheDFIRReport/status/1382757614094852103 -apigw.tencentcs.com +service-3ehlvob0-1301977346.gz.apigw.tencentcs.com +service-7swl0aox-1257100087.cd.apigw.tencentcs.com +service-fooemyjn-1304230653.sh.apigw.tencentcs.com +service-hzt1fyzo-1305236517.gz....
feat(api): schedule scavenge-unused management command daily Running during daytime so that any potential errors have a higher chance of being noticed quickly. Load is neglibile.
*/5 * * * * /usr/local/bin/python3 -u /usr/src/app/manage.py chores >> /var/log/cron.log 2>&1 */5 * * * * /usr/local/bin/python3 -u /usr/src/app/manage.py check-slaves >> /var/log/cron.log 2>&1 +7 11 * * * /usr/local/bin/python3 -u /usr/src/app/manage.py scavenge-unused >> /var/log/cron.log 2>&1
Close Add URM connector to the list of available types for front and rear ports. There are URM-P2, URM-P4 and URM-P8 connectors available.
@@ -958,6 +958,9 @@ class PortTypeChoices(ChoiceSet): TYPE_SPLICE = 'splice' TYPE_CS = 'cs' TYPE_SN = 'sn' + TYPE_URM_P2 = 'urm-p2' + TYPE_URM_P4 = 'urm-p4' + TYPE_URM_P8 = 'urm-p8' CHOICES = ( ( @@ -998,6 +1001,9 @@ class PortTypeChoices(ChoiceSet): (TYPE_ST, 'ST'), (TYPE_CS, 'CS'), (TYPE_SN, 'SN'), + (TYPE_URM_P2, 'U...
npm 5.0.0 added a second line after fsevents Remove that line from so we only get the json
@@ -188,7 +188,7 @@ def _extract_json(npm_output): # macOS with fsevents includes the following line in the return # when a new module is installed which is invalid JSON: # [fsevents] Success: "..." - while lines and lines[0].startswith('[fsevents]'): + while lines and (lines[0].startswith('[fsevents]') or lines[0].sta...
CoreDNS support EndpointSlices In order to properly support EndpointSlices, enhance ClusterRole. story: task: 44582
@@ -40,6 +40,13 @@ rules: - nodes verbs: - get +- apiGroups: + - discovery.k8s.io + resources: + - endpointslices + verbs: + - list + - watch --- apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRoleBinding
Fix format of tip; improve info order Correct the indent so that the tip is formatted correctly. Also move the tip after the info about replacing the VALxKEY strings, because the tip is less important (the example shows the current version number).
@@ -75,6 +75,11 @@ genesis block also includes the keys for the other nodes in the initial network. sawtooth.consensus.algorithm.version=1.0 \ sawtooth.consensus.pbft.members='["VAL1KEY","VAL2KEY",...,"VALnKEY"]' + Replace ``"VAL1KEY","VAL2KEY","VAL3KEY",...,"VALnKEY"`` with the validator public + keys of all the nodes...
Update REAME, post merge fix Remove redundant phrase.
@@ -195,7 +195,6 @@ If you want to run the pipeline on a subset of your BIDS dataset, you can use the `-tsv` flag to specify in a TSV file the participants belonging to your subset. -A description of the arguments for the `preprocessing` task is presented below: <details> <summary> Here is a description of the argument...
Fix sporadic dry_run test failures By using sets instead of lists. Apparently events aren't always ordered perfectly when received by the client, so using sets removes the need for order.
@@ -234,7 +234,7 @@ class ExecutionsTest(AgentlessTestCase): self.assertDictEqual(invocations[0], {'before-sleep': None}) def test_dry_run_execution(self): - expected_messages = [ + expected_messages = { "Starting 'install' workflow execution (dry run)", "Creating node", "Sending task 'cloudmock.tasks.provision'", @@ -...
Tidy up two checks that do the same thing This also is in the regular language spirit.
@@ -167,11 +167,9 @@ def _interpret_errors(errors): if isinstance( # pylint: disable=bad-continuation error, - DbusClientMissingSearchPropertiesError, + (DbusClientMissingSearchPropertiesError, DbusClientMissingPropertyError), ): # pragma: no cover return _DBUS_INTERFACE_MSG - if isinstance(error, DbusClientMissingProp...
Remove use of format! to change &str to String Turning an &str into String requires only .into(), or .to_string(), whereas format! is more complex than necessary.
@@ -34,7 +34,7 @@ use err::CliError; pub fn run<'a>(args: &ArgMatches<'a>) -> Result<(), CliError> { let genesis_file_path = if args.is_present("output") { args.value_of("output") - .ok_or_else(|| CliError::ArgumentError(format!("Failed to read `output` arg"))) + .ok_or_else(|| CliError::ArgumentError("Failed to read `...
Add minimal optional method For now it only reads in the datapackage and returns without doing anything else.
@@ -133,6 +133,15 @@ class EnergySystem: g(entity, groups) return groups + if not datapackage is NOT_AVAILABLE: + @classmethod + def from_datapackage(cls, path): + package = datapackage.Package(path) + # This is necessary because before reading a resource for the first + # time its `headers` attribute ist `None`. + for...
Only unsubscribe dropdown hooks when they were subscribed WindowVisibilityToggler subscribes to two hooks conditional upon self.on_focus_lost_hide, but unconditionally unsubscribes them. This pollutes the log with lots of erroneous exception messages. Closes
@@ -127,6 +127,7 @@ class WindowVisibilityToggler: def unsubscribe(self): """unsubscribe all hooks""" + if self.on_focus_lost_hide: try: hook.unsubscribe.client_focus(self.on_focus_change) except utils.QtileError as err:
Prevent duplicate check_queued_build executions by populating and checking the task_id_check field on the build
@@ -61,11 +61,7 @@ def check_queued_build(build_id): reset_database_connection() from mrbelvedereci.build.models import Build - try: build = Build.objects.get(id = build_id) - except Build.DoesNotExist: - time.sleep(1) - check_queued_build.delay(build_id) if build.status != 'queued': return 'Build is not queued. Curren...
Remove maintainer (myself) I have been away from this project too long to still qualify as a maintainer. I shall continue to contribute as and when possible.
@@ -21,4 +21,4 @@ _pywebview_ is a BSD licensed open source project. It is an independent project -_pywebview_ is created by [Roman Sirokov](https://github.com/r0x0r/). Maintained by Roman and [Shiva Prasad](https://github.com/shivaprsdv). +_pywebview_ is created and maintained by [Roman Sirokov](https://github.com/r0x...
Add release timeline The examples and the release timeline will help developer to plan the function deprecation w.r.t the insights-core release cycle.
@@ -464,7 +464,7 @@ Functions from insights.util import deprecated def old_feature(arguments): - deprecated(old_feature, "Use the new_feature() function instead") + deprecated(old_feature, "Use the new_feature() function instead", "3.1.25") ... Class methods @@ -478,7 +478,7 @@ Class methods ... def old_method(self, *a...
[Context] Add region_name in credential If we don't add region_name in multi-regions cloud, it exist the potential possibility that we can not pass the validate function. And previous param of region_name does not in right location.
@@ -210,11 +210,13 @@ class UserGenerator(context.Context): user_credential = objects.Credential( self.credential.auth_url, user.name, password, self.context["tenants"][tenant_id]["name"], - consts.EndpointPermission.USER, self.credential.region_name, - project_domain_name=project_dom, user_domain_name=user_dom, + cons...