message
stringlengths
13
484
diff
stringlengths
38
4.63k
Make `is_authenticated` a property access rather than a function call. This is a change in Django that was still functional for compatibility reasons until recently, but ultimately should be an attribute.
@@ -12,7 +12,7 @@ class AddToBU(MiddlewareMixin): def process_view(self, request, view_func, view_args, view_kwargs): if hasattr(settings, 'ADD_TO_ALL_BUSINESS_UNITS'): - if request.user.is_authenticated(): + if request.user.is_authenticated: if settings.ADD_TO_ALL_BUSINESS_UNITS \ and request.user.userprofile.level !=...
Render stamp for tiles. PURPOSE After merging following error occur in non-Win OS: File "/Users/user/Library/Application Support/Blender/2.80/scripts/addons/rprblender/utils/render_stamp.py", line 47, in <module> class BitmapInfoHeader(ctypes.Structure): NameError: name 'ctypes' is not defined EFFECT OF CHANGE Fix plug...
@@ -6,13 +6,14 @@ This version uses Windows API so it's compatible only with Windows operation sys import platform +from . import IS_WIN from . import logging log = logging.Log(tag="render_stamp") # WinAPI text rendering doesn't work on Ubuntu and MacOS, use empty placeholder -if platform.system() == 'Windows': +if IS_...
Update protocols_passing_authentication_in_cleartext.yml Added a few more changes to make it more clear. Thank you for updating!
@@ -6,10 +6,10 @@ author: Rico Valdez, Splunk type: TTP datamodel: - Network_Traffic -description: This search looks for cleartext protocols at risk of leaking credentials. - Currently, this consists of legacy protocols such as telnet, POP3, IMAP, and non-anonymous - FTP sessions. While some of these protocols can be u...
update test_linker.py to handle a temp file using try/finally This is based on the recommendation from
@@ -46,10 +46,11 @@ class LinkerTest(unittest.TestCase): manifest = _mock_manifest('ABC') (fd, fname) = tempfile.mkstemp() + os.close(fd) + try: self.linker.write_graph(fname, manifest) - new_linker = linker.from_file(fname) - os.close(fd) + finally: os.unlink(fname) actual_nodes = new_linker.nodes()
Update Dockerfile Performing Browser Update that's erroring. `npx browserslist@latest --update-db`
@@ -12,6 +12,7 @@ FROM build-stage as core-ui COPY frontend/package.json . COPY frontend/package-lock.json . RUN npm install +RUN npx browserslist@latest --update-db RUN npm install @vue/cli COPY frontend/ . RUN npm run build
Fix forceBGZ behavior fixes
@@ -491,13 +491,13 @@ class HailContext private(val sc: SparkContext, if (forceBGZ) hadoopConf.set("io.compression.codecs", codecs.replaceAllLiterally("org.apache.hadoop.io.compress.GzipCodec", "is.hail.io.compress.BGzipCodecGZ")) - + try { val reader = new HtsjdkRecordReader(callFields) - val vkds = LoadVCF(this, read...
Fix use_gpu in experiment API Also removes use_tf, since it is now deprecated. Fixes
@@ -221,8 +221,7 @@ def run_experiment(method_call=None, dry=False, env=None, variant=None, - use_tf=False, - use_gpu=False, + force_cpu=False, pre_commands=None, **kwargs): """Serialize the method call and run the experiment using the @@ -240,11 +239,8 @@ def run_experiment(method_call=None, commands without executing...
Minor fix to fbprophet Use .loc as suggested in the warning
@@ -187,7 +187,7 @@ def _merge_X(df, X): X.columns = X.columns.astype(str) if "ds" in X.columns: raise ValueError("Column name 'ds' is reserved in fbprophet") - X["ds"] = X.index + X.loc[:, "ds"] = X.index # df = df.merge(X, how="inner", on="ds", copy=False) df = df.merge(X, how="inner", on="ds") return df, X.drop(colu...
Split ignored_tags in stats.py As a follow up for this patch split the ignored_tags to two list, ignored_pool_tags and ignored_spec_tags as the two tag list are different.
@@ -68,11 +68,15 @@ class PciDeviceStats(object): # the PCI alias, but they are matched by the placement # allocation_candidates query, so we can ignore them during pool creation # and during filtering here - ignored_tags = ['resource_class', 'traits'] - # these are metadata keys in the pool and in the request that are...
Disabling voltha-net encryption because it was causing latency issues. This needs to be better charactreized to ensure that encryption latencies are acceptable to HA requirements.
voltha_base_dir="/cord/incubator/voltha" hostName=`hostname` -docker network create --driver overlay --subnet=172.29.19.0/24 --opt encrypted=true voltha_net +docker network create --driver overlay --subnet=172.29.19.0/24 voltha_net +#docker network create --driver overlay --subnet=172.29.19.0/24 --opt encrypted=true vo...
test(changelog): fixes logic issue made evident by latest fix(git) commit Exception is raised by git error: "fatal: your current branch 'master' does not have any commits yet". This response is more informative than the original "No commits found" exception and the "fail fast" logic is a bit easier to follow.
@@ -6,6 +6,7 @@ from commitizen import cli, git from commitizen.commands.changelog import Changelog from commitizen.exceptions import ( DryRunExit, + GitCommandError, NoCommitsFoundError, NoRevisionError, NotAGitProjectError, @@ -19,10 +20,12 @@ def test_changelog_on_empty_project(mocker): testargs = ["cz", "changelog"...
run rst2pseudoxml.py with shell=true makes rst2pseudoxml.py work properly on Windows executes via a shell instead of not working
@@ -34,7 +34,8 @@ def test_rst_file_syntax(filename): p = subprocess.Popen( ['rst2pseudoxml.py', '--report=1', '--exit-status=1', filename], stderr=subprocess.PIPE, - stdout=subprocess.PIPE + stdout=subprocess.PIPE, + shell=True ) err = p.communicate()[1] assert p.returncode == 0, err.decode('utf8')
Add warning message for links In case a bidirectional link is defined with an efficiency value lower than 1, the logger will prompt a warning hinting the user of a (maybe) unintended behavior. If there are any links with such specification the respective links are listed.
@@ -995,6 +995,14 @@ def define_nodal_balances(network,snapshots): efficiency = get_switchable_as_dense(network, 'Link', 'efficiency', snapshots) + filter = ( + (get_switchable_as_dense(network, 'Link', 'p_min_pu', snapshots) < 0) & + (efficiency < 1) + ) + links = filter[filter].dropna(how='all', axis=1) + if links.si...
fix disconnected lso deployment create (redhat-operators) catalog source before configuring LSO
@@ -449,6 +449,9 @@ class Deployment(object): logger.info("Deployment of OCS via OCS operator") self.label_and_taint_nodes() + if not live_deployment: + create_catalog_source(image) + if config.DEPLOYMENT.get("local_storage"): setup_local_storage(storageclass=self.DEFAULT_STORAGECLASS_LSO) @@ -476,8 +479,6 @@ class Dep...
[bugfix, tests] Fix AppVeyor Python version you were right, I don't know why there is 3.5.0 missing
@@ -21,8 +21,8 @@ environment: PYTHON_VERSION: "2.7.4" PYTHON_ARCH: "64" - - PYTHON: "C:\\Python350-x64" - PYTHON_VERSION: "3.5.0" + - PYTHON: "C:\\Python351-x64" + PYTHON_VERSION: "3.5.1" PYTHON_ARCH: "64" # Appveyor pre-installs these versions onto build machines
Enable stale issue github action After several dry run outputs, it's performing the expected actions so we can enable this workflow.
@@ -44,4 +44,4 @@ jobs: repo-token: ${{ secrets.GITHUB_TOKEN }} loglevel: DEBUG # Set dry-run to true to not perform label or close actions. - dry-run: true + dry-run: false
Update thehive.py Do not add empty observables.
@@ -35,6 +35,7 @@ class HiveAlerter(Alerter): for mapping in self.rule.get('hive_observable_data_mapping', []): for observable_type, mapping_key in mapping.items(): data = self.lookup_field(match, mapping_key, '') + if len(data) != 0: artifact = {'tlp': 2, 'tags': [], 'message': None,
Fixed CortexM_CC3220SF usage of dp attribute. CortexM objects no longer have a 'dp' attribute.
@@ -147,6 +147,6 @@ class CortexM_CC3220SF(CortexM): try: self.writeMemory(CortexM.NVIC_AIRCR, CortexM.NVIC_AIRCR_VECTKEY | CortexM.NVIC_AIRCR_VECTRESET) # Without a flush a transfer error can occur - self.dp.flush() + self.flush() except exceptions.TransferError: - self.dp.flush() + self.flush()
Update inputoutput.py Fix long lines
@@ -755,11 +755,11 @@ def block_to_graphviz_string(block=None, namer=_graphviz_default_namer, split_st function that can subsequently be passed to 'output_to_graphviz' or 'block_to_graphviz_string'. :: - node_fanout = {n: "Fanout: %d" % my_fanout_func(n) for n in pyrtl.working_block().logic} - wire_delay = {w: "Delay: ...
NOC.inv.map.Maintainance use remote search HG-- branch : feature/microservices
@@ -175,43 +175,25 @@ Ext.define('NOC.inv.map.Maintainance', { loadData: function() { var me = this, - filter = function(element) { - if(this.filter.length === 0 && this.isCompleted) { - return !element.is_completed; - } - if(this.filter.length === 0 && !this.isCompleted) { - return true; - } - if(this.filter.length > ...
Fix tense problems Some of the first paragraph was in the past tense and some was in the present. Now everything is in the present.
**Why do we need asynchronous programming?** -Imagine that you're coding a Discord bot and every time somebody uses a command, you need to get some information from a database. But there's a catch: the database servers are acting up today and take a whole 10 seconds to respond. If you did **not** use asynchronous metho...
Update executor.py fixed spelling of registered
@@ -48,7 +48,7 @@ def GetExecutorParams(model_name, cluster_params, model_registry): """Get the params needed to instantiate the Executor. Args: - model_name: A model name regsitered in the ModelRegistry. + model_name: A model name registered in the ModelRegistry. cluster_params: A cluster hyperparams object. model_reg...
Update _mpca.py isort all (imports)
@@ -14,7 +14,7 @@ Reference: import numpy as np # import tensorly as tl -from tensorly.base import unfold, fold +from tensorly.base import fold, unfold from tensorly.tenalg import multi_mode_dot from sklearn.base import BaseEstimator, TransformerMixin
Fix yt music artist matching also run black formatting
@@ -218,10 +218,11 @@ def order_results( # (slug_result_name if result["type"] != "song" else slug_result_artists)) artist_match_number += ( 1 - if slugify(artist).replace("-", "") - in ( - slug_result_name if result["type"] != "song" else - slug_result_artists).replace("-", "") + if slugify(artist) + in [ + slug_resul...
switch to sa.profile.LookupField HG-- branch : feature/moversion
@@ -10,7 +10,7 @@ Ext.define('NOC.core.filter.Filter', { requires: [ 'Ext.ux.form.SearchField', - 'NOC.main.ref.profile.LookupField', + 'NOC.sa.profile.LookupField', 'NOC.main.pool.LookupField', 'NOC.sa.vendor.LookupField', 'NOC.sa.platform.LookupField', @@ -57,7 +57,7 @@ Ext.define('NOC.core.filter.Filter', { } }, { -...
Add GnocchiStorageS3BucketPrefix into deployment Closes-Bug: Depends-On:
@@ -93,6 +93,10 @@ parameters: description: S3 storage access key secret. type: string hidden: true + GnocchiStorageS3BucketPrefix: + default: '' + description: S3 storage bucket prefix. + type: string GnocchiFileBasePath: default: '/var/lib/gnocchi' description: Path to use when file driver is used. This could be NFS ...
Set GUI binary name to chia-blockchain in the Fedora rpm set gui binary name to chia-blockchain (rpm)
@@ -83,9 +83,11 @@ if [ "$REDHAT_PLATFORM" = "arm64" ]; then fi PRODUCT_NAME="chia" echo electron-builder build --linux rpm "${OPT_ARCH}" \ + --config.extraMetadata.name=chia-blockchain \ --config.productName="${PRODUCT_NAME}" --config.linux.desktop.Name="Chia Blockchain" \ --config.rpm.packageName="chia-blockchain" el...
ci: add comment per job execution On every force-push we lose the CI information from previous executions this commit includes a comment once each job finish.
@@ -142,8 +142,8 @@ def main(cluster_type, job_type): else: state = "failure" - desc = ("Ended with %s in %s minutes" % (state, - round((time.time() - start_time) / 60, 2))) + dur_mins = str(round((time.time() - start_time) / 60, 2)) + desc = ("Ended with %s in %s minutes" % (state, dur_mins)) dest_url = 'https://stora...
feat(DQN): DQN now inherits from IncrementalAgent See
@@ -2,14 +2,14 @@ from abc import ABC, abstractmethod from gym import spaces import logging -from rlberry.agents import Agent +from rlberry.agents import IncrementalAgent from rlberry.agents.dqn.exploration import exploration_factory from rlberry.agents.utils.memories import ReplayMemory, Transition logger = logging.ge...
Relax external update revision checking. Allow for a revision update from the same revision as the last tested.
@@ -55,7 +55,7 @@ def handle_update(testcase, revision, stacktrace, error): last_tested_revision = ( testcase.get_metadata('last_tested_revision') or testcase.crash_revision) - if revision <= last_tested_revision: + if revision < last_tested_revision: logs.log_warn(f'Revision {revision} less than previously tested ' f'...
Clean-up StudioML dependencies and remove version locks where possible.
-pip==20.0.2 +pip setuptools_scm setuptools_scm_git_archive @@ -6,42 +6,36 @@ setuptools_scm_git_archive configparser numpy -h5py -pillow flask -jinja2 cma apscheduler pycryptodome -PyNaCl==1.3.0 +PyNaCl requests requests_toolbelt python_jwt sseclient -timeout_decorator terminaltables -PyYAML==5.3.1 +PyYAML google-api-...
regen migration: use Panda safety parameters no magic numbers
@@ -15,6 +15,8 @@ from cereal.visionipc import VisionIpcServer, VisionStreamType from common.params import Params from common.realtime import Ratekeeper, DT_MDL, DT_DMON, sec_since_boot from common.transformations.camera import eon_f_frame_size, eon_d_frame_size, tici_f_frame_size, tici_d_frame_size +from panda.python ...
Simplify code by removing exec() Supercedes
@@ -245,18 +245,7 @@ class IOLoop(object): self._poller.poll() -# Define a base class for deriving abstract base classes for compatibility -# between python 2 and 3 (metaclass syntax changed in Python 3). Ideally, would -# use `@six.add_metaclass` or `six.with_metaclass`, but pika traditionally has -# resisted external...
One line change to readme Made Venv segment separate from windows installation
@@ -77,6 +77,8 @@ Not sure. Installing the Python package plyvel seems to require C++ compiler sup ------------------- +### Virtual Environment + Now navigate into the project, make a Python 3 virtual environment and activate it via
Update fhmm_exact.py Trying to solve
@@ -491,7 +491,7 @@ class FHMM(Disaggregator): # Copy mains data to disag output output_datastore.append(key=mains_data_location, - value=pd.DataFrame(chunk, columns=cols)) + value=pd.DataFrame(chunk, columns=cols, dtype='float32')) if data_is_available: self._save_metadata_for_disaggregation(
ceph-iscsi: add ceph-iscsi stable repositories This commit adds the support of the ceph-iscsi stable repository when use ceph_repository community instead of always using the devel repositories. We're still using the devel repositories for rtslib and tcmu-runner in both cases (dev and community).
- ceph-iscsi-config when: not use_new_ceph_iscsi | bool - - name: set_fact ceph_iscsi_repos - set_fact: - ceph_iscsi_repos: "{{ common_repos + iscsi_base }}" - - - name: set_fact ceph_iscsi_pkgs - set_fact: - ceph_iscsi_pkgs: "{{ common_pkgs + iscsi_base }}" - - name: when ceph_iscsi_config_dev is true when: - ceph_ori...
Fees should always be in XCH mojos units Fees are always XCH mojos
@@ -219,7 +219,7 @@ async def send(args: dict, wallet_client: WalletRpcClient, fingerprint: int) -> print(f"Wallet id: {wallet_id} not found.") return - final_fee = uint64(int(fee * mojo_per_unit)) + final_fee: uint64 = uint64(int(fee * units["chia"])) # fees are always in XCH mojos final_amount: uint64 = uint64(int(am...
Rename helper function to clarify purpose modified: pypeit/spectrographs/ldt_deveny.py
@@ -61,8 +61,8 @@ class LDTDeVenySpectrograph(spectrograph.Spectrograph): binning = self.get_meta_value(self.get_headarr(hdu), 'binning') gain = np.atleast_1d(hdu[0].header['GAIN']) ronoise = np.atleast_1d(hdu[0].header['RDNOISE']) - datasec = self.swap_section(hdu[0].header['TRIMSEC']) - oscansec = self.swap_section(h...
fix subclass test on py36 Summary: Not sure why i pushed my luck and picked a weird class for this test case
import sys import tempfile from functools import update_wrapper -from typing import List import pytest @@ -116,8 +115,8 @@ def test_is_subclass(): assert not is_subclass(ListType, str) # type that aren't classes can be passed into is_subclass - assert not inspect.isclass(List[str]) - assert not is_subclass(List[str], D...
Disable tripleo-ci-fedora-28-standalone job tripleo-ci-fedora-28-standalone is deprecated and should be disabled in all tripleo repos. Task:
dependencies: *deps_unit_lint - tripleo-ci-centos-7-standalone: dependencies: *deps_unit_lint - - tripleo-ci-fedora-28-standalone: - dependencies: *deps_unit_lint - tripleo-ci-centos-7-standalone-upgrade-stein: dependencies: *deps_unit_lint - tripleo-ci-centos-7-scenario000-multinode-oooq-container-upgrades:
set sym_offset if using XNU symbols This is to fix a bug with the hv raw binary patch that caused XNU symbols to stop working.
@@ -1541,7 +1541,7 @@ class HV(Reloadable): self.p.hv_set_time_stealing(False) - def load_raw(self, image, entryoffset=0x800): + def load_raw(self, image, entryoffset=0x800, use_xnu_symbols=False, vmin=0): sepfw_start, sepfw_length = self.u.adt["chosen"]["memory-map"].SEPFW tc_start, tc_size = self.u.adt["chosen"]["mem...
Modify lightbox to only display valid images and YT Videos. This modifies the lightbox to only display images inside the ".message_inline_image" class, rather than all images inside the message body, which currently includes things like the bot icon.
@@ -10,7 +10,7 @@ var asset_map = { function render_lightbox_list_images(preview_source) { if (!is_open) { - var images = Array.prototype.slice.call($(".focused_table .messagebox-content img")); + var images = Array.prototype.slice.call($(".focused_table .message_inline_image img")); var $image_list = $("#lightbox_over...
Fix formatting Summary: See title Test Plan: BK
@@ -38,12 +38,7 @@ def _do_setup(name='dagster-aws'): ], packages=find_packages(exclude=['test']), include_package_data=True, - install_requires=[ - 'boto3>=1.9', - 'dagster', - 'psycopg2-binary', - 'requests', - ], + install_requires=['boto3>=1.9', 'dagster', 'psycopg2-binary', 'requests',], extras_require={'pyspark':...
RawConfigParser dict_type argument should be a Type Fixes
import sys from typing import (AbstractSet, MutableMapping, Mapping, Dict, Sequence, List, Union, Iterable, Iterator, Callable, Any, IO, overload, - Optional, Pattern, TypeVar) + Optional, Pattern, Type, TypeVar) # Types only used in type comments only from typing import Optional, Tuple # noqa @@ -57,7 +57,7 @@ class L...
Make test_server.py more elegant and simple Use only one line for mocking network resources like ports and networks in test_server.py. Depends-On:
@@ -413,24 +413,18 @@ class TestServerCreate(TestServer): network_client = self.app.client_manager.network network_client.find_network = find_network network_client.find_port = find_port - network_resource = mock.Mock() - network_resource.id = 'net1_uuid' - port1_resource = mock.Mock() - port1_resource.id = 'port1_uuid...
Check edit permissions on dataverse file target instead of node [#PLAT-578]
@@ -40,7 +40,7 @@ class DataverseFile(DataverseFileNode, File): version.identifier = revision user = user or _get_current_user() - if not user or not self.node.can_edit(user=user): + if not user or not self.target.has_permission(user, 'write'): try: # Users without edit permission can only see published files if not da...
Unparsers: handle Skip parsers as Or alternatives TN:
@@ -590,7 +590,11 @@ class NodeUnparser(Unparser): # this field. field_unparser.always_absent = False for subparser in parser.parsers: - if not isinstance(subparser, Defer): + # Named parsing rules always create nodes, so we don't need to + # check Defer parsers. Skip parsers also create nodes, but most + # importantly...
Winpanda App: Fix Support For DC/OS Package Mutual Deps For The 'Start' Command 1) fix creating package map being passed to sorting procedure in the 'Start' command JIRA: - Winpanda App: Fix Support For DC/OS Package Mutual Deps For The 'Start' Command
@@ -305,7 +305,9 @@ class CmdStart(Command): pkg_manifests = ( self.config.inst_storage.get_pkgactive(PackageManifest.load) ) - packages_bulk = [Package(manifest=m) for m in pkg_manifests] + packages_bulk = { + m.pkg_id.pkg_name: Package(manifest=m) for m in pkg_manifests + } for package in cr_utl.pkg_sort_by_deps(pack...
Update LogRhythmRest.md Updated RN description.
-- Added 2 new commands: +Added 5 new commands. + - lr-get-hosts - lr-get-alarm-data - lr-get-alarm-events -- Added the lr-get-hosts, lr-get-alarm-data, lr-get-alarm-events, lr-get-networks, and lr-get-persons commands. \ No newline at end of file + - lr-get-networks + - lr-get-persons
Increase storage perf case timeout The NFS testcases have a high setup time since they copy 1TB file over NFS
@@ -55,7 +55,7 @@ def _make_raid(node: Node, disk_list: List[str]) -> None: """, ) class StoragePerformance(TestSuite): # noqa - TIME_OUT = 6000 + TIME_OUT = 12000 @TestCaseMetadata( description="""
Decode passwords as on profile updates as well Resolves
@@ -339,7 +339,7 @@ class User(db.Model): user.firstname = self.firstname if self.firstname else user.firstname user.lastname = self.lastname if self.lastname else user.lastname user.email = self.email if self.email else user.email - user.password = self.get_hashed_password(self.plain_text_password) if self.plain_text_...
release pre-commit: test translations we should be able to run on the stripped dir now
@@ -61,7 +61,7 @@ jobs: cp .pylintrc $STRIPPED_DIR cp mypy.ini $STRIPPED_DIR cd $STRIPPED_DIR - ${{ env.RUN }} "SKIP=test_translations pre-commit run --all" + ${{ env.RUN }} "pre-commit run --all" build_all: name: build all
UI tweak to --help-op formatting Move dependency list above flags Show "(required)" for required flags
@@ -324,14 +324,24 @@ def _print_op_help(opdef): out.write_text(opdef.description.replace("\n", "\n\n")) out.write_paragraph() out.write_text("Use 'guild run --help' for a list of options.") - flags = _format_op_flags_dl(opdef) - if flags: - _write_dl_section("Flags", flags, out) deps = _format_op_deps_dl(opdef) if dep...
Update README-documentation.md Table of contents
This document describes where the documentation is, how to write or update documentation for the Raytracing module and how to publish updated documentation through ReadTheDocs. +[TOC] + ## Reading documentation If you are a user of the raytracing package, you probably want to read the documentation online at https://ra...
Add AC Hardwire option to PowerPortTypeChoices Resolves FR
@@ -341,6 +341,8 @@ class PowerPortTypeChoices(ChoiceSet): TYPE_DC = 'dc-terminal' # Proprietary TYPE_SAF_D_GRID = 'saf-d-grid' + # Other + TYPE_OTHER = 'other' CHOICES = ( ('IEC 60320', ( @@ -447,6 +449,9 @@ class PowerPortTypeChoices(ChoiceSet): ('Proprietary', ( (TYPE_SAF_D_GRID, 'Saf-D-Grid'), )), + ('Other', ( + (...
Add missing quote in circuits.ipynb Adds a missing quote in the Circuits notebook that causes incorrect display of the doc: ![TempCirqOperations](https://user-images.githubusercontent.com/83899250/125640450-7fbcc35c-c8cb-4c03-af46-37f2ab235c11.png)
"source": [ "The above is not the only way one can construct moments, nor even the typical method, but illustrates that a `Moment` is just a collection of operations on disjoint sets of qubits.\n", "\n", - "Finally, at the top level a `Circuit` is an ordered series of `Moment` objects. The first `Moment` in this series...
add `_aSrc` add VTEMwaveform
@@ -57,6 +57,42 @@ class StepOffWaveform(BaseWaveform): else: return 0. +class RampOffWaveform(BaseWaveform): + + eps = 1e-9 + offTime = 0. + + def __init__(self, offTime=0.): + BaseWaveform.__init__(self, offTime=offTime, hasInitialFields=True) + + def eval(self, time): + if abs(time-0.) < self.eps: + return 1. + elif...
add link in urls.py to live update's multi-page app example using a function as the layout
# -*- coding: utf-8 -*- import dash_core_components as dcc +import dash_html_components as html from tutorial import styles layout = [dcc.Markdown(''' @@ -171,11 +172,15 @@ function. A few notes: - Each page can have interactive elements even though those elements may not be in the initial view. Dash handles these "dyn...
Changed order_by parameter name from camelCase to snake_case Fix OpenApiParameter order_by was missing
@@ -59,8 +59,8 @@ class FaceListView(ListViewSet): ): inferred = True conditional_filter = Q(person_label_is_inferred=inferred) - if self.request.query_params.get("orderby"): - if self.request.query_params.get("orderby").lower() == "date": + if self.request.query_params.get("order_by"): + if self.request.query_params.g...
Adding CrossBrowserTesting remote server example This illustrates how to run selenium base tests on CrossBrowserTesting remote devices.
@@ -69,6 +69,11 @@ Here's how to connect to a TestingBot Selenium Grid server for running tests: ```bash pytest my_first_test.py --server=USERNAME:KEY@hub.testingbot.com --port=80 ``` +Here's how to connect to a CrossBrowserTesting Selenium Grid server for running tests: + +```bash +pytest my_first_test.py --server=USE...
Let: track the original source name for bindings TN:
@@ -1009,7 +1009,8 @@ class Let(AbstractExpression): # Create the variables this Let expression binds and expand the result # expression using them. self.vars = [ - AbstractVariable(names.Name.from_lower(arg), create_local=True) + AbstractVariable(names.Name.from_lower(arg), create_local=True, + source_name=names.Name....
ceph-config: when using local_action set become: false There should be no need to use sudo when writing or using these files. It creates an issue when the user running ansible-playbook does not have sudo privs.
- name: template ceph_conf_overrides local_action: copy content="{{ ceph_conf_overrides }}" dest="{{ fetch_directory }}/ceph_conf_overrides_temp" + become: false run_once: true - name: get rendered ceph_conf_overrides local_action: set_fact ceph_conf_overrides_rendered="{{ lookup('template', '{{ fetch_directory }}/ceph...
docs: Tweak API docs to include RequestsFetcher This only documents the configurable attributes and not the inherited methods.
Fetcher ============ -.. automodule:: tuf.ngclient.fetcher +.. autoclass:: tuf.ngclient.FetcherInterface :undoc-members: :private-members: _fetch + +.. autoclass:: tuf.ngclient.RequestsFetcher + :no-inherited-members:
Allow Alt+Backspace to be handled by default handler This commit causes Backspaces key presses with the Alt-modifier to be handled by Qt's default event handler. Previously only the Ctrl- and Shift-modifiers were considered. Needed to pass test_builtin_undo_redo in spyder/plugins/editor/widgets/tests/test_shortcuts.py
@@ -4316,6 +4316,7 @@ def keyPressEvent(self, event): key = event.key() text = to_text_string(event.text()) has_selection = self.has_selected_text() + alt = event.modifiers() & Qt.AltModifier ctrl = event.modifiers() & Qt.ControlModifier shift = event.modifiers() & Qt.ShiftModifier @@ -4404,7 +4405,7 @@ def keyPressEve...
remove liveness probes They cause unnecesary restarts.
@@ -47,15 +47,6 @@ spec: env: {{ include "studio.sharedEnvs" . | nindent 8 }} - name: SEND_USER_ACTIVATION_NOTIFICATION_EMAIL value: "true" - # liveness probes are checks for when a pod should be restarted. - livenessProbe: - httpGet: - path: /healthz - port: {{ .Values.studioApp.appPort }} - initialDelaySeconds: 120 -...
fix: leaderboard not work when lang is not English fix issue 11907
@@ -141,7 +141,7 @@ class Leaderboard { } create_date_range_field() { - let timespan_field = $(this.parent).find(`.frappe-control[data-original-title='Timespan']`); + let timespan_field = $(this.parent).find(`.frappe-control[data-original-title=${__('Timespan')}]`); this.date_range_field = $(`<div class="from-date-fiel...
sql: Add warning about get_lock and SELECT FOR UPDATE Add warning about get_lock and SELECT FOR UPDATE Optimistic locking property
@@ -97,6 +97,8 @@ TiDB implements the asynchronous schema changes algorithm in F1. The Data Manipu TiDB implements an optimistic transaction model. Unlike MySQL, which uses row-level locking to avoid write conflict, in TiDB, the write conflict is checked only in the `commit` process during the execution of the statemen...
Replace npm with yarn Replacing npm with yarn allows dramatically speedup nodejs dependencies installation and therefore reduce gulp container image build time.
- name: Install nodejs shell: curl -sL https://rpm.nodesource.com/setup_8.x | bash - && yum install -y nodejs +- name: Install yarn repository + get_url: + url: https://dl.yarnpkg.com/rpm/yarn.repo + dest: /etc/yum.repos.d/yarn.repo + +- name: Install yarn + yum: name=yarn + - name: Check node version command: node -v ...
move out quote() tests on deprecated escapes (handle warnings at runtime) close
# test_lang.py +import sys +import warnings + import pytest from graphviz.lang import quote, attr_list, nohtml +@pytest.mark.parametrize('char', ['G', 'E', 'T', 'H', 'L', 'l']) +def test_deprecated_escape(recwarn, char): + warnings.simplefilter('always') + + escape = eval(r'"\%s"' % char) + + if sys.version_info < (3, ...
Re-raise KeyError exceptions. Chose to do this instead of returning a string.
@@ -360,7 +360,7 @@ class QuantumProgram(object): try: return self.__quantum_registers[name] except KeyError: - return "No quantum register of name " + name + raise KeyError('No quantum register "{0}"'.format(name)) def get_classical_register(self, name): """Return a Classical Register by name. @@ -373,7 +373,7 @@ clas...
ENH: option for slim ols results summary Add slim parameter to summary function. slim=True generates a minimal result table, default or slim=False generates the original output.
@@ -2618,7 +2618,7 @@ class RegressionResults(base.LikelihoodModelResults): self, exog=exog, transform=transform, weights=weights, row_labels=row_labels, **kwargs) - def summary(self, yname=None, xname=None, title=None, alpha=.05): + def summary(self, yname=None, xname=None, title=None, alpha=.05, slim=False): """ Summ...
Update remcos.txt IP:port shouldn't be missed.
@@ -1973,6 +1973,7 @@ u864246.tk # Reference: https://app.any.run/tasks/e9a9e116-924d-4411-a454-9a841c51c39d/ +185.244.30.123:5149 kirtasiye.myq-see.com # Reference: https://twitter.com/James_inthe_box/status/1245714128695521280 @@ -2005,4 +2006,5 @@ owensmith.linkpc.net # Reference: https://app.any.run/tasks/0618ea81-...
TST: tighten up the timing a bit We don't need to wait a full second for the motor to finish moving.
@@ -574,7 +574,7 @@ def test_cleanup_after_pause(RE, unpause_func, hw): def test_sigint_three_hits(RE, hw): import time motor = hw.motor - motor.delay = 1 + motor.delay = .5 pid = os.getpid() @@ -595,10 +595,13 @@ def test_sigint_three_hits(RE, hw): RE(finalize_wrapper(self_sig_int_plan(), abs_set(motor, 0, wait=True))...
Pin fastai. fastai 2.1.x uses torch 1.7. Unfortunately, we can't upgrade to torch 1.7 yet. We need to wait until all the libraries depending on torch are supported 1.7.
@@ -374,7 +374,8 @@ RUN pip install bcolz && \ pip install widgetsnbextension && \ pip install pyarrow && \ pip install feather-format && \ - pip install fastai && \ + # b/172491515: Unpin after upgrading to torch 1.7 + pip install fastai==2.0.19 && \ pip install allennlp && \ python -m spacy download en && python -m s...
update message content of the persistent view The messages were intended for a button that will automatically assign all availables roles to the interactor This changes since it's not the intended behavior
@@ -161,7 +161,7 @@ class ShowAllSelfAssignableRolesButton(discord.ui.Button): def __init__(self, assignable_roles: list[AssignableRole]): super().__init__( style=discord.ButtonStyle.success, - label="Show available roles", + label="Show all self assignable roles", custom_id=self.CUSTOM_ID, row=1 ) @@ -181,7 +181,7 @@ ...
CopyPrimitiveVariablesTest : Don't use `six` We don't need it now we are Python-3-only.
@@ -320,8 +320,7 @@ class CopyPrimitiveVariablesTest( GafferSceneTest.SceneTestCase ) : copy["filter"].setInput( sphereFilter["out"] ) copy["primitiveVariables"].setValue( "*" ) - with six.assertRaisesRegex( - self, + with self.assertRaisesRegex( RuntimeError, 'Cannot copy .* from "/cube" to "/sphere" because source an...
project_file.mako: refactor computation of compilation switches As a nice side effect, this repairs automatic loading of GDB helpers (using "-g" for C units). TN:
@@ -80,6 +80,13 @@ library project ${lib_name} is package Compiler is + ---------------------- + -- Common_Ada_Cargs -- + ---------------------- + + -- Compilation switches to use for Ada that do not depend on the build + -- mode. + -- If asked to, enable all warnings and treat them as errors, except: -- * conditional ...
this should go back to running my tests with errors? Let's try it
@@ -53,7 +53,6 @@ install: - export AWKWARD_DEPLOYMENT=base - pip install --upgrade pyOpenSSL # for deployment - if [[ $TRAVIS_PYTHON_VERSION != pypy* ]] ; then pip install pybind11 ; fi - - ln -s ../awkward-cpp/awkward/cpp awkward/cpp - python setup.py install - cd awkward-cpp - if [[ $TRAVIS_PYTHON_VERSION != pypy* ]...
deprecate decorator but continue to support it for now
@@ -3,6 +3,7 @@ import json from datetime import datetime from uuid import uuid4 +import warnings from django.core.serializers.json import DjangoJSONEncoder from django.utils.translation import ugettext_lazy as _ @@ -157,14 +158,20 @@ class RegisterGenerator(object): self.is_default = is_default def __call__(self, gene...
Transfers: fix log message otherwise it prints: submitjob: {'transfers': [<rucio.core.transfer.DirectTransferDefinition object at 0x7f55fb224f60>], 'job_params': {...}}
@@ -194,7 +194,7 @@ def submitter(once=False, rses=None, partition_wait_time=10, logger(logging.INFO, 'Starting to submit transfers for %s (%s)', activity, transfertool_obj) for job in grouped_jobs: - logger(logging.DEBUG, 'submitjob: %s' % job) + logger(logging.DEBUG, 'submitjob: transfers=%s, job_params=%s' % ([str(t...
Fix typo in quickstart section The function should be between quotes like a string. cli-name = mypkg.mymodule:some_func => cli-name = "mypkg.mymodule:some_func"
@@ -222,7 +222,7 @@ The following configuration examples show how to accomplish this: .. code-block:: toml [project.scripts] - cli-name = mypkg.mymodule:some_func + cli-name = "mypkg.mymodule:some_func" When this project is installed, a ``cli-name`` executable will be created. ``cli-name`` will invoke the function ``so...
Fixing the missing migration and wrong method name There is no `power` but `pow` method in `torch.Tensor`.
@@ -80,7 +80,6 @@ class OnlinePreprocessor(torch.nn.Module): self._stft_args = {'center': True, 'pad_mode': 'reflect', 'normalized': False, 'onesided': True} # stft_args: same default values as torchaudio.transforms.Spectrogram & librosa.core.spectrum._spectrogram self._stft = partial(torch.stft, **self._win_args, **se...
lzip: add source mirror Suggested by
sources: "1.21": - url: "http://download.savannah.gnu.org/releases/lzip/lzip-1.21.tar.gz" + url: [ + "http://download.savannah.gnu.org/releases/lzip/lzip-1.21.tar.gz", + "https://download-mirror.savannah.gnu.org/releases/lzip/lzip-1.21.tar.gz", + ] sha256: "e48b5039d3164d670791f9c5dbaa832bf2df080cb1fbb4f33aa7b3300b670d...
Deprecate saml2 frontend sign_alg and digest_alg configuration options sign_alg and digest_alg are deprecated; instead, use signing_algorithm and digest_algorithm configurations under the service/idp configuration path (not under policy/default)
@@ -377,18 +377,18 @@ class SAMLFrontend(FrontendModule, SAMLBaseModule): # Construct arguments for method create_authn_response # on IdP Server instance args = { + # Add the SP details + **resp_args, + # AuthnResponse data 'identity': ava, 'name_id': name_id, 'authn': auth_info, 'sign_response': sign_response, 'sign_a...
tpm_main: Only access agent configuration if needed Do not access the agent configuration from API's called by other components.
@@ -52,6 +52,7 @@ class tpm(tpm_abstract.AbstractTPM): self.__get_tpm2_tools() + if self.need_hw_tpm: # We don't know which algs the TPM supports yet self.supported["encrypt"] = set() self.supported["hash"] = set() @@ -64,7 +65,6 @@ class tpm(tpm_abstract.AbstractTPM): ek_handle = config.get("agent", "ek_handle") - if ...
GDB helpers: fix token string fetching for Python3 TN:
@@ -131,9 +131,7 @@ class Token: (first - src_buffer['P_BOUNDS']['LB0'])) char = gdb.lookup_type('character').pointer() - return (text_addr.cast(char) - .string('latin-1', length=4 * length) - .decode('utf32')) + return text_addr.cast(char).string('utf32', length=4 * length) def __repr__(self) -> str: return '<Token {}...
Fix incorrect alias on mm_override.cfg The correct alias is `game_overrides` now due to updates.
-alias game_override +alias game_overrides blink_duration .2 cl_blobbyshadows 0 @@ -124,6 +124,8 @@ tf_clientsideeye_lookats 1 tracer_extra 1 violence_hgibs 1 violence_hblood 1 +violence_agibs 1 +violence_ablood 1 plugin_unload 0 echo "Competitive matchmaking settings applied"
Delete note about deprecated /etc/default config files The old-style /etc/default config files should not be mentioned in the 1.0 Sawtooth docs.
@@ -13,13 +13,6 @@ directory (``config_dir``). By default, configuration files are stored in ``/etc/sawtooth``; see :doc:`configuring_sawtooth/path_configuration_file` for more information on the config directory location. -.. Note:: - - Sawtooth also includes a deprecated set of configuration files in - ``/etc/default...
Update location of `usage.rst` to fix manpage compilation `usage.rst` has been moved from `doc/en` to `doc/en/how-to`, so the `man_pages` configuration value needs to be updated to the new location, so that we dont get this warning: writing... WARNING: "man_pages" config value references unknown document usage
@@ -320,7 +320,7 @@ latex_domain_indices = False # One entry per manual page. List of tuples # (source start file, name, description, authors, manual section). -man_pages = [("usage", "pytest", "pytest usage", ["holger krekel at merlinux eu"], 1)] +man_pages = [("how-to/usage", "pytest", "pytest usage", ["holger krekel...
Ignore RequestsDependencyWarning for cryptography during tests The minimum recommended cryptography_version is hardcoded in requests/__init__.py.[1] [1]:
@@ -23,6 +23,12 @@ except ImportError: # Python 2.7 from collections import Mapping from types import ModuleType +try: + from cryptography import __version__ as cryptography_version + cryptography_version = list(map(int, cryptography_version.split('.'))) +except ImportError: + cryptography_version = None + import pywik...
ignore_missing_imports reduces 65 out of 77 errors Before: Found 77 errors in 37 files (checked 67 source files) After: Found 12 errors in 4 files (checked 67 source files)
@@ -13,6 +13,9 @@ ignore = E501 # line too long. Long-line code is reformated by black; remaining long lines in docstrings are OK W503 # line break before binary operator. W503 is incompatible with PEP 8, don't use it +[mypy] +ignore_missing_imports = True # Suppress all missing import errors for all libraries + [build...
Match load_rc_for_rally logic to load_rc_hook This makes the rally extras loading logic compatible with devstack-gate and unblocks the rally job. Closes-Bug:
@@ -44,7 +44,12 @@ function load_conf_hook { # Tweak gate configuration for our rally scenarios function load_rc_for_rally { for file in $(ls $RALLY_EXTRA_DIR/*.setup); do - $DSCONF merge_lc $LOCAL_CONF $file + tmpfile=$(tempfile) + config=$(cat $file) + echo "[[local|localrc]]" > $tmpfile + $DSCONF setlc_raw $tmpfile ...
Reset cases of names in duration.rst to upper Names were accidentally lower cased in previous commit.
@@ -140,13 +140,13 @@ Here are some of the other testing procedures implemented by survdiff: .. ipython:: python :okwarning: - # fleming-Harrington with p=1, i.e. weight by pooled survival time + # Fleming-Harrington with p=1, i.e. weight by pooled survival time stat, pv = sm.duration.survdiff(data.futime, data.death, ...
Change stiffness to make major axis predictable With equal stiffness the orbit is circular and the major axis position can change due to calculation precision in different systems.
@@ -1444,6 +1444,15 @@ def test_unbalance(rotor7): def test_deflected_shape(rotor7): + # change to asymmetric stiffness to it is easier to get the major axis at the same place + bearing0 = BearingElement(0, kxx=1e6, kyy=2e6, cxx=1e3, cyy=1e3) + bearing1 = BearingElement(6, kxx=1e6, kyy=2e6, cxx=1e3, cyy=1e3) + rotor7 =...
[EventPoster[ 1.1.0 Edit event message when an event has ended. Fixup docstrings.
@@ -12,7 +12,7 @@ from .event_obj import Event, ValidImage class EventPoster(commands.Cog): """Create admin approved events/announcements""" - __version__ = "1.0.0" + __version__ = "1.1.0" __author__ = "TrustyJAID" def __init__(self, bot): @@ -94,6 +94,8 @@ class EventPoster(commands.Cog): embed=em, ) async with self.c...
Include distinguished names in pillar_ldap results Includes the distinguished names (DNs) of LDAP entries in the results provided by the pillar_ldap module in map mode if 'dn' or 'distinguishedName' is included in the 'attrs' configuration option. Currently that is not possible because the DN is thrown away before the ...
@@ -201,6 +201,9 @@ def _result_to_dict(data, result, conf, source): data[source] = [] for record in result: ret = {} + if 'dn' in attrs or 'distinguishedName' in attrs: + log.debug('dn: %s', record[0]) + ret['dn'] = record[0] record = record[1] log.debug('record: %s', record) for key in record:
Update helpers.py Fix ValueError: too many values to unpack (expected 2)
@@ -81,6 +81,6 @@ def render_expression(expr: Expression_T, *args, if escape_args: return expr.format( *[escape(s) if isinstance(s, str) else s for s in args], - **{k: escape(v) if isinstance(v, str) else v for k, v in kwargs} + **{k: escape(v) if isinstance(v, str) else v for k, v in kwargs.items()} ) return expr.form...
[deploy] fix sed for updating HAIL_VERSION I could not get the `\d` to work for me on an Ubuntu machine. The `[0-9]` range seems to work with extended regexps.
@@ -138,7 +138,7 @@ Image URL: \`us.gcr.io/broad-dsp-gcr-public/terra-jupyter-hail:$terra_jupyter_ha EOF mv $temp_changelog terra-jupyter-hail/CHANGELOG.md -sed -i "/ENV HAIL_VERSION/s/\d\+\.\d\+\.\d\+/$HAIL_PIP_VERSION/" terra-jupyter-hail/Dockerfile +sed -Ei "/ENV HAIL_VERSION/s/[0-9]+\.[0-9]+\.[0-9]+/${HAIL_PIP_VERS...
Cancel PoET block on BlockNotReady Instead of retrying indefinitely, cancel the block if a BlockNotReady status is returned. Retrying indefinitely can cause the validator to hang because, if there are no valid batches with which to create a new block, the PoET engine will never consider any new blocks.
import logging import queue -import time import json @@ -113,24 +112,17 @@ class PoetEngine(Engine): return None def _finalize_block(self): - summary = None - while summary is None: summary = self._summarize_block() if summary is None: LOGGER.debug('Block not ready to be summarized') - time.sleep(1) - continue - else: ...
Update README.md Add paragraph space
@@ -115,8 +115,9 @@ To typecheck, run: `mypy -p git` To test, run: `pytest` -Configuration for flake8 is in the root/.flake8 file. -Configurations for mypy, pytest and coverage.py are in root/pyproject.toml. +Configuration for flake8 is in the ./.flake8 file. + +Configurations for mypy, pytest and coverage.py are in ./...