message
stringlengths
13
484
diff
stringlengths
38
4.63k
install_rally.sh: moved zypper pkg manager up to handle case when yum is installed on SUSE to fulfill dependencies.
@@ -292,6 +292,14 @@ get_pkg_manager () { else pkg_manager="dnf install" fi + elif have_command zypper; then + # SuSE. Needs to be before yum based RHEL/CentOS/Fedora to handle cases when + # yum is installed on SUSE to fulfill dependencies. + if [ "$ASKCONFIRMATION" -eq 0 ]; then + pkg_manager="zypper -n --no-gpg-chec...
kivy tx dialog: dscancel btn text was too long see first part of
@@ -197,11 +197,12 @@ class TxDialog(Factory.Popup): def update_action_button(self): action_button = self.ids.action_button + # note: button texts need to be short; there is only horizontal space for ~13 chars options = ( ActionButtonOption(text=_('Sign'), func=lambda btn: self.do_sign(), enabled=self.can_sign), Action...
add dtype parameter to function.dotarg This patch adds parameter `dtype` to `function.dotarg`, defaulting to `float`, such that `function.dotarg` can be used for complex-valued arguments.
@@ -3186,7 +3186,7 @@ def rotmat(__arg: IntoArray) -> Array: arg = Array.cast(__arg) return stack([trignormal(arg), trigtangent(arg)], 0) -def dotarg(__argname: str, *arrays: IntoArray, shape: Tuple[int, ...] = ()) -> Array: +def dotarg(__argname: str, *arrays: IntoArray, shape: Tuple[int, ...] = (), dtype: DType = flo...
requirements.txt: Don't use mwoauth-0.3.1 Follow-up to
@@ -37,7 +37,7 @@ unicodedata2>=7.0.0-2 ; python_version < '3' # OAuth support # mwoauth 0.2.4 is needed because it supports getting identity information # about the user -mwoauth>=0.2.4 +mwoauth>=0.2.4,!=0.3.1 # core interwiki_graph.py: git+https://github.com/nlhepler/pydot#egg=pydot-1.0.29
Remove mirror trace for plot 2d This could become confusing especially when changing units from 0-pk to pk-pk.
@@ -486,25 +486,6 @@ class Shape(Results): ), ) - if orientation == "major": - # duplicate - fig.add_trace( - go.Scatter( - x=Q_(zn, "m").to(length_units).m, - y=-1 * values, - mode="lines", - line=dict(color=self.color), - name=f"{orientation}", - showlegend=False, - customdata=np.stack( - (values, Q_(self.major_angle...
Update Changes Section Updated link to point to CHANGELOG.rst.
@@ -105,5 +105,6 @@ Changes CfnCluster to AWS ParallelCluster ================================= -In Version `2.0.0`, we changed the name of CfnCluster to AWS ParallelCluster. With that name change we released several new features, which you can read about here: https://aws.amazon.com/blogs/opensource/aws-parallelcluste...
views: Render categorised help menu. Help menu (opened by pressing `?`) will have keys segregated under categories according to their usage.
@@ -5,7 +5,11 @@ import threading import urwid import time -from zulipterminal.config.keys import KEY_BINDINGS, is_command_key +from zulipterminal.config.keys import ( + KEY_BINDINGS, + is_command_key, + HELP_CATEGORIES +) from zulipterminal.helper import asynch, match_user from zulipterminal.ui_tools.buttons import ( ...
Add SWA in optimizers.__init__ to fix the following error when `tfa.optimizers.SWA` is used: AttributeError: module 'tensorflow_addons.optimizers' has no attribute 'SWA'
@@ -32,6 +32,7 @@ from tensorflow_addons.optimizers.lazy_adam import LazyAdam from tensorflow_addons.optimizers.lookahead import Lookahead from tensorflow_addons.optimizers.moving_average import MovingAverage from tensorflow_addons.optimizers.rectified_adam import RectifiedAdam +from tensorflow_addons.optimizers.stocha...
Ignore failed docker restart in k8s example This is trying to restart before the service is fully configured I think and so it is failing. Just skipping for now.
@@ -2289,7 +2289,7 @@ function dind::custom-docker-opts { local json=$(IFS="+"; echo "${jq[*]}") docker exec -i ${container_id} /bin/sh -c "mkdir -p /etc/docker && jq -n '${json}' > /etc/docker/daemon.json" docker exec ${container_id} systemctl daemon-reload - docker exec ${container_id} systemctl restart docker + dock...
Update 14_Modeling_Protein_Ligand_Interactions_With_Atomic_Convolutions.ipynb removed bug from raw_dataset load
"download_url(\"https://s3-us-west-1.amazonaws.com/deepchem.io/datasets/pdbbind_core_df.csv.gz\")\n", "data_dir = os.path.join(dc.utils.get_data_dir())\n", "dataset_file= os.path.join(dc.utils.get_data_dir(), \"pdbbind_core_df.csv.gz\")\n", - "raw_dataset = dc.utils.save.load_from_disk(dataset_file)" + "raw_dataset = d...
$.Iterators: minor documentation fixes TN:
@@ -66,13 +66,13 @@ package ${ada_lib_name}.Iterators is function "and" (Left, Right : ${pred_ref}) return ${pred_ref}; -- Return a predicate that accepts only nodes that are accepted by both - -- Left and Right. + -- ``Left`` and ``Right``. -- --% belongs-to: ${pred_ref} function "or" (Left, Right : ${pred_ref}) retur...
Xfail ACHNBrowserUI/5.1, platform=iOS on 5.3. Example failure:
"compatibility": "5.1", "branch": "master", "configuration": "debug" + }, + "xfail": { + "issue": "https://bugs.swift.org/browse/SR-13198", + "compatibility": "5.1", + "branch": "swift-5.3-branch", + "configuration": "debug" } } ]
Update README.md Adds badge for docker build
@@ -20,6 +20,7 @@ However, powerful business logic works in the background to ensure that stock tr # Docker [![Docker Pulls](https://img.shields.io/docker/pulls/inventree/inventree)](https://hub.docker.com/r/inventree/inventree) +![Docker Build](https://github.com/inventree/inventree/actions/workflows/docker_latest.yam...
Removed some "typename" bits outside template class as this caused errors on some platforms.
@@ -68,7 +68,7 @@ namespace dials { namespace af { Shoebox<> > reflection_table_type_generator; - typedef typename reflection_table_type_generator::type reflection_table_types; + typedef reflection_table_type_generator::type reflection_table_types; typedef flex_table<reflection_table_types> reflection_table; enum Flags...
swarming: use fixed width bucket for slice expiration delay metrics Exponential bucket does not have good granularity for this metrics.
@@ -128,10 +128,13 @@ _tasks_expiration_delay = gae_ts_mon.CumulativeDistributionMetric( # - project_id: e.g. 'chromium-swarm' _tasks_slice_expiration_delay = gae_ts_mon.CumulativeDistributionMetric( 'swarming/tasks/slice_expiration_delay', - 'Delay of task slice expiration, in seconds.', [ + 'Delay of task slice expir...
client: log stacktrace This is to confirm that subprocess42.Popen is directly called from run_isolated.
@@ -35,6 +35,7 @@ import signal import sys import threading import time +import traceback import subprocess @@ -614,7 +615,8 @@ class Popen(subprocess.Popen): except OSError: self.kill() self.wait() - logging.info('crbug.com/1271827: before return') + logging.info('crbug.com/1271827: before return %s', + traceback.form...
Remove commented code bg theories cannot have a variable number of params, each polynomial must be explicitely defined rather than having a generic poly whose degree can be defined in a config widget.
@@ -271,10 +271,6 @@ class FitWidget(qt.QWidget): self.associateConfigDialog("Polynomial", getPolyDialog(parent=self, default=self.fitconfig)) - # self.associateConfigDialog("Polynomial", - # getPolyDialog(parent=self, - # default=self.fitconfig), - # theory_is_background=True) def _populateFunctions(self): """Fill com...
fix Black Magic on Fastchip The latest commit still has issues with Fastchip, despite it fixing the color issues on //c and //c+. I just removed all the acceleration code completely. Seems to work on ][+, //c, //c+, Fastchip, and //gs without issues.
;license:MIT -;(c) 2019 by qkumba +;(c) 2019 by qkumba/Tom Greene/Frank M. !cpu 6502 !to "build/PRELAUNCH/BLACK.MAGIC",plain !source "src/prelaunch/common.a" - +ENABLE_ACCEL + ; acceleration has problems with Fastchip + ; let's remove it lda #$60 sta $9C2 jsr $800 ; decompress lda #$60 sta $1B2D sta $D6E6 - jsr Disable...
issue 2.4 compat: replace iter_read with explicit generator Can't use yield inside try/finally on 2.4.
@@ -505,6 +505,48 @@ def write_all(fd, s, deadline=None): poller.close() +class IteratingRead(object): + def __init__(self, fds, deadline=None): + self.deadline = deadline + self.poller = PREFERRED_POLLER() + for fd in fds: + self.poller.start_receive(fd) + + self.bits = [] + self.timeout = None + + def close(self): + ...
Register API as last step. Rename internal attributes.
@@ -143,19 +143,20 @@ class Faucet(app_manager.RyuApp): valve.update_config_metrics(self.metrics) # Start BGP - self.dp_bgp_speakers = {} + self._dp_bgp_speakers = {} self._reset_bgp() + # Start all threads + self._threads = [ + hub.spawn(thread) for thread in [ + self._gateway_resolve_request, self._host_expire_reques...
Update channel-settings.rst Fixing channel header sentence.
@@ -41,7 +41,7 @@ has `restricted the permissions <https://docs.mattermost.com/administration/conf Adding links to the Channel Header ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Add links to the channel header using markdown. +Use markdown to add links to the channel header. Example: [This is an example link](www.example.com)
refactor: test_boxes: Use stream name instead of id in muted test cases. Similar to pinned stream names in stream_categories, implement muted stream names in test_generic_autocomplete_streams.
@@ -829,7 +829,7 @@ class TestWriteBox: 3: "#**Web public stream**", 4: "#**Secret stream**", }, - {"muted": {99}}, + {"muted": ["Secret stream"]}, ), # With 'Stream 1' and 'Secret stream' muted. ( @@ -841,7 +841,7 @@ class TestWriteBox: 3: "#**Stream 1**", 4: "#**Secret stream**", }, - {"muted": {99, 1}}, + {"muted": ...
Fix type in ImageNet/Resnet Example block_cls type Sequence[int] -> ModuleDef
@@ -82,7 +82,7 @@ class BottleneckResNetBlock(nn.Module): class ResNet(nn.Module): """ResNetV1.""" stage_sizes: Sequence[int] - block_cls: Sequence[int] + block_cls: ModuleDef num_classes: int num_filters: int = 64 dtype: Any = jnp.float32
followed flake8 linting Added covid19_telegram_bot followed flake8 linting Fix
@@ -4,7 +4,6 @@ Github: @iam-shanmukha """ import requests from covid import Covid -from os import * previous_data = [] # #######################Telegram########################### @@ -14,14 +13,9 @@ def send_msg(text): token = "YOUR-TOKEN-HERE" chat_id = "GROUP-CHAT-ID-HERE" url_req = ( - "https://api.telegram.org/bot...
added support for dict action space for dqn agent DQN loss calculation error when using Dict Action space
@@ -507,6 +507,7 @@ class DqnAgent(tf_agent.TFAgent): def _compute_q_values(self, time_steps, actions, training=False): network_observation = time_steps.observation + actions = tf.nest.flatten(actions)[0] if self._observation_and_action_constraint_splitter is not None: network_observation, _ = self._observation_and_act...
update tikv grafana allocator_stats name changed allocator stats name from "jemalloc_stats" to "allocator_stats". Update grafana config accordingly. Tested by deploy a cluster and check grafana: <img width="1005" alt="Screen Shot 2019-05-03 at 12 34 08 PM" src="https://user-images.githubusercontent.com/2606959/57161191...
"steppedLine": false, "targets": [ { - "expr": "tikv_jemalloc_stats{instance=~\"$instance\"}", + "expr": "tikv_allocator_stats{instance=~\"$instance\"}", "format": "time_series", "hide": false, "intervalFactor": 2, "thresholds": [], "timeFrom": null, "timeShift": null, - "title": "Jemalloc Stats", + "title": "Allocator...
Change the method of waiting in the playwright tests We put effort into `Wait until loading is complete` so we might as well use it!
@@ -12,7 +12,7 @@ Go to user profile Click button:has-text("View profile") Click .profile-card-name .profile-link-label - Wait until network is idle + Wait until loading is complete Take screenshot Go to contacts home @@ -20,5 +20,5 @@ Go to contacts home Type text input[placeholder='Search apps and items...'] Contacts...
Fix WeChatMessage.send_markdown 1. replace discarded method with `send`, [ref commit](https://github.com/jxtech/wechatpy/commit/c876a71c5f21f3a5449abed72a5656b5e5c1b13c#diff-8d5d79095778bde1f0cd139596ba9d90) 2. unify params used as other methods
@@ -266,10 +266,10 @@ class WeChatMessage(BaseWeChatAPI): "msgtype": "markdown", "markdown": {"content": content} } - return self._send_message( - agent_id=agent_id, - user_ids=user_ids, - party_ids=party_ids, - tag_ids=tag_ids, + return self.send( + agent_id, + user_ids, + party_ids, + tag_ids, msg=msg )
Fix bugs on sample code * add missing module * Fix NameError * typo * Update heterogeneous.rst missing the comma => SyntaxError * Update heterogeneous.rst Fix 'x' is not defined in class HGT * Update heterogeneous.rst refactor code block * refactor code * update * update
@@ -370,9 +370,12 @@ These operators can be directly used to build heterogeneous GNN models as can be self.lin = Linear(hidden_channels, out_channels) def forward(self, x_dict, edge_index_dict): - x_dict = {key: lin(x).relu() for key, lin in self.lin_dict.items()} + for node_type, x in x_dict.items(): + x_dict[node_typ...
GafferDelightTest : Use 3delight's maya lambert as diffuse shader Previously, it was using a shader named "matte" - I'm not sure where this was supposed to come from? The 3delight live_edit example uses "matte", but it appears to only ship with this in source form, not compiled.
@@ -77,8 +77,8 @@ class InteractiveDelightRenderTest( GafferSceneTest.InteractiveRenderTest ) : def _createMatteShader( self ) : shader = GafferOSL.OSLShader() - shader.loadShader( "matte" ) - return shader, shader["parameters"]["Cs"] + shader.loadShader( "maya/osl/lambert" ) + return shader, shader["parameters"]["i_co...
build-langkit_support.py: forward build mode to ManageScript.run TN:
@@ -98,6 +98,7 @@ def main(): argv.append(args.cmd) if args.cmd == 'build-langkit-support': + argv.append('--build-mode={}'.format(args.build_mode)) if args.gargs: argv.append('--gargs={}'.format(args.gargs)) if args.cmd == 'install-langkit-support':
update: ensure ceph command returns 0 these commands could return something else than 0. Let's ensure all retries have been done before actually failing.
- name: non container | waiting for the monitor to join the quorum... command: ceph --cluster "{{ cluster }}" -s --format json register: ceph_health_raw - until: > - hostvars[inventory_hostname]['ansible_hostname'] in (ceph_health_raw.stdout | default('{}') | from_json)["quorum_names"] or - hostvars[inventory_hostname]...
Fix PulseVolume theme_path bug Widget tried to draw the icons before loading the images from the provided theme_path.
@@ -246,8 +246,8 @@ class PulseVolume(Volume): return -1 def timer_setup(self): + if self.theme_path: + self.setup_images() self.poll() if self.update_interval is not None: self.timeout_add(self.update_interval, self.timer_setup) - if self.theme_path: - self.setup_images()
Documentation updates for boto_secgroup Documentation updates for and
@@ -40,13 +40,20 @@ passed in as a dict, or as a string to pull from pillars or minion config: boto_secgroup.present: - name: mysecgroup - description: My security group + - vpc_name: myvpc - rules: - ip_protocol: tcp from_port: 80 to_port: 80 cidr_ip: - - 10.0.0.0/0 - - 192.168.0.0/0 + - 10.0.0.0/8 + - 192.168.0.0/16 ...
manpage - fix grammar problem [skip appveyor] A stray word wasn't immediately spotted as it appeared on the next line.
@@ -1227,7 +1227,7 @@ Python 3.9 and onwards clients always default to MD5, even in FIPS mode. The default database is <filename>.sconsign.dblite</filename>. In the presence of this option, <replaceable>ALGORITHM</replaceable> is -be included in the name to indicate the difference, +included in the name to indicate the...
show label for table fields All fields, except table ones, display their labels which is a natural thing to do.
{%- if data -%} {%- set visible_columns = get_visible_columns(doc.get(df.fieldname), table_meta, df) -%} + <label>{{ _(df.label) }}</label> <div {{ fieldmeta(df) }}> <table class="table table-bordered table-condensed"> <thead>
docs: youtube channel in "about" section * YouTube channel addded in about section. I have added ERPNext YouTube channel reference in the about section. #Create an official Handle for YouTube Channel (Like or erpnextofficial) * chore: handle [skip ci]
@@ -19,6 +19,8 @@ frappe.ui.misc.about = function () { Facebook: <a href='https://facebook.com/erpnext' target='_blank'>https://facebook.com/erpnext</a></p> <p><i class='fa fa-twitter fa-fw'></i> Twitter: <a href='https://twitter.com/erpnext' target='_blank'>https://twitter.com/erpnext</a></p> + <p><i class='fa fa-yout...
Source: Rename cog + move checks status from footer to field Renamed cog from `Source` to `BotSource` for itself (bot will be unable to get cog, because this always return command). Moved checks status from footer to field and changed it's content.
@@ -8,9 +8,6 @@ from discord.ext.commands import BadArgument, Cog, Command, Context, Converter, from bot.bot import Bot from bot.constants import URLs -CANT_RUN_MESSAGE = "You can't run this command here." -CAN_RUN_MESSAGE = "You are able to run this command." - class SourceConverter(Converter): """Convert argument to ...
Update the bandit.yaml available tests list According to the bandit current version document, the B109 and B111 plugin has been removed. And Add the following tests: Complete Test Plugin Listing: B507, B610, B611, B703 Blacklist Plugins Listing: B322, B323, B325, B413, B414 Reference URL: Closes-Bug:
# B106 : hardcoded_password_funcarg # B107 : hardcoded_password_default # B108 : hardcoded_tmp_directory -# B109 : password_config_option_not_marked_secret # B110 : try_except_pass -# B111 : execute_with_run_as_root_equals_true # B112 : try_except_continue # B201 : flask_debug_true # B301 : pickle # B319 : xml_bad_pull...
Update docstring for check_user method Remove claimed col disabled users are not registered
@@ -41,12 +41,12 @@ def check_user(user): """ Verify users' status. - registered confirmed disabled merged usable password claimed - ACTIVE: x x o o x x - NOT_CONFIRMED: o o o o x o - NOT_CLAIMED: o o o o o o - DISABLED: o x x o x x - USER_MERGED: x x o x o x + registered confirmed disabled merged usable password + ACT...
PS - all published instances could be grouped with a task name Subset in a group will show up together in Loader
+import os import pyblish.api from avalon import photoshop @@ -19,6 +20,8 @@ class CollectInstances(pyblish.api.ContextPlugin): families_mapping = { "image": [] } + # True will add all instances to same group in Loader + group_by_task_name = False def process(self, context): stub = photoshop.stub() @@ -49,6 +52,12 @@ c...
Add embed message mentioning help channel claimant Update docstring
@@ -105,10 +105,18 @@ class HelpChannels(commands.Cog): """ Claim the channel in which the question `message` was sent. - Move the channel to the In Use category and pin the `message`. Add a cooldown to the - claimant to prevent them from asking another question. Lastly, make a new channel available. + Send an embed st...
Change imported files to read only as per Arjun's suggestion. Also minor refactoring.
@@ -164,15 +164,19 @@ class FileJobStore(AbstractJobStore): # Functions that deal with temporary files associated with jobs ########################################## - def _copyOrLink(self, url, path): + def _copyOrLink(self, srcURL, destPath): # linking is not done be default because of issue #1755 + srcPath = self._...
Fix issue with `.loc` returning values out of order. `cudf.merge` doesn't guarantee item ordering, an important feature of `loc`. This PR fixes that by adding a reordering step to post processing the merge. Fixes Authors: - H. Thomson Comer (https://github.com/thomcom) Approvers: - Michael Wang (https://github.com/isVo...
@@ -245,12 +245,14 @@ class GeoSeries(cudf.Series): else 0, } ) - index_df = cudf.DataFrame({"map": item}) - new_index = index_df.merge(map_df, how="left")["idx"] + index_df = cudf.DataFrame({"map": item}).reset_index() + new_index = index_df.merge( + map_df, how="left", sort=False + ).sort_values("index") if isinstanc...
Skip E741 for viz flake8 code Unfortunately this is a keyword arg to a plotly class.
ignore = D203, E124, E126, F403, F405, F811, E402, E129, W605, W504 max-line-length = 160 exclude = parsl/executors/serialize/, test_import_fail.py +# E741 disallows ambiguous single letter names which look like numbers +# We disable it in visualization code because plotly uses 'l' as +# a keyword arg +per-file-ignores...
imaplib: Add new functions from Python 3.9 Add imaplib.IMAP4.unselect()
@@ -93,6 +93,8 @@ class IMAP4: def thread(self, threading_algorithm: str, charset: str, *search_criteria: str) -> _CommandResults: ... def uid(self, command: str, *args: str) -> _CommandResults: ... def unsubscribe(self, mailbox: str) -> _CommandResults: ... + if sys.version_info >= (3, 9): + def unselect(self) -> _Com...
[Release] Update index.json for extension [ dns-resolver ] Triggered by Azure CLI Extensions Release Pipeline - ADO_BUILD_URL: Last commit:
"version": "0.1.0" }, "sha256Digest": "4537129127c2e4efc69909c5769753d3f8213d5e3eef9c4d42282d4e011905d8" + }, + { + "downloadUrl": "https://azcliprod.blob.core.windows.net/cli-extensions/dns_resolver-0.2.0-py3-none-any.whl", + "filename": "dns_resolver-0.2.0-py3-none-any.whl", + "metadata": { + "azext.minCliCoreVersion...
change file names to avoid confusion with the input csv files called DH_AllEdges.csv and DH_AllNodes.csv
@@ -186,13 +186,13 @@ class InputLocator(object): """scenario/outputs/data/optimization/network/layout/DH_AllNodes.csv or DC_AllNodes.csv List of plant and consumer nodes in a district heating or cooling network and their building names """ - return os.path.join(self.get_optimization_network_layout_folder(), network_ty...
C API: add exceptions wrapping in unit token primitives TN:
@@ -289,39 +289,69 @@ package body ${ada_lib_name}.Analysis.C is procedure ${capi.get_name('unit_first_token')} (Unit : ${analysis_unit_type}; - Token : ${token_type}_Ptr) - is + Token : ${token_type}_Ptr) is + begin + Clear_Last_Exception; + + declare U : constant Analysis_Unit := Unwrap (Unit); T : constant Token_Typ...
Update DiyServo.py Updated the example with how to set the PID values
@@ -24,5 +24,7 @@ motor.attach(arduino) # Start the DiyServo servo = Runtime.start("diyservo","DiyServo") servo.attach(arduino,A0) # Attach the analog pin 0 +# Set the PID values. This example shows what DiyServo has as default. +servo.pid.setPID("diyservo", 0.020, 0.001, 0.0); servo.moveTo(90) # At this stage you can ...
Update android_generic.txt Moved to dedicated ```android_parcel.txt```
@@ -631,19 +631,6 @@ korzystna.biz/praca.apk morefuntfkjaskjfk123.cx techndevs.us -# Reference: https://www.virustotal.com/gui/file/c716c56d401815842120a61140098f9e851d1f79cf4088a56ec6f1b6fd4bad62/detection -# Reference: https://vms.drweb.com/virus/?i=14931549&lng=en -# Reference: https://www.hybrid-analysis.com/sample...
skip import nccl and gloo_gpu in cpu machine Summary: Pull Request resolved: Skip importing nccl and gloo_gpu modules in cpu machine
@@ -18,8 +18,13 @@ from caffe2.proto import caffe2_pb2 import numpy as np import warnings -dyndep.InitOpsLibrary("@/caffe2/caffe2/contrib/nccl:nccl_ops") dyndep.InitOpsLibrary("@/caffe2/caffe2/contrib/gloo:gloo_ops") + +# We only import nccl operators when the machine has GPUs +# Otherwise the binary can be compiled wi...
Set credentials in STORAGE_URL for S3 func tests This sets the s3rver username and password for the S3 functional testing jobs, required since we have bumped s3rver version.
@@ -41,6 +41,7 @@ for storage in ${GNOCCHI_TEST_STORAGE_DRIVERS}; do export PATH=$PWD/npm-s3rver/bin:$PATH fi eval $(pifpaf -e STORAGE run s3rver) + STORAGE_URL=s3://S3RVER:S3RVER@localhost:4568 ;; file) STORAGE_URL=file://
added advanced logging config for audit * added advanced logging config for audit * Update source/administration/config-settings.rst * Update source/administration/config-settings.rst * Update config-settings.rst Reorganized logging update.
@@ -1083,15 +1083,13 @@ Advanced Logging Output logs to multiple targets ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -Send log records to multiple targets: - -- Multiple local file targets -- Multiple syslogs -- Multiple TCP sockets +Allow any combination of local file, syslog, and TCP socket targets and send log records to multip...
Fix the wheel count check for pex building. ### Problem fixed most of the locations that were expecting particular whl counts, but missed one. ### Solution Fix the last whl count check. ### Result Confirmed that `build-support/bin/release.sh -p` works.
@@ -513,8 +513,8 @@ function fetch_and_check_prebuilt_wheels() { fi done - # N.B. For platform-specific wheels, we expect 6 wheels: {linux,osx} * {cp27m,cp27mu,abi3}. - if [ "${cross_platform}" != "true" ] && [ ${#packages[@]} -ne 6 ]; then + # N.B. For platform-specific wheels, we expect 2 wheels: {linux,osx} * {abi3,...
migrating ipm etl to data packages Working on Issue
@@ -401,6 +401,54 @@ def _etl_epacems_pkg(etl_params, data_dir, pkg_dir): # logger.info(time_message) return(['hourly_emissions_epacems']) +############################################################################### +# EPA IPM ETL FUNCTIONS +##########################################################################...
update hekatomb to install with pip hekatomb is now available on pypi to simplify its installation
@@ -245,12 +245,13 @@ vault::cred /in:C:\Users\demo\AppData\Local\Microsoft\Vault\" > Finally, it will extract domain controller private key through RPC uses it to decrypt all credentials. ```python -python3 hekatomb.py -hashes :ed0052e5a66b1c8e942cc9481a50d56 DOMAIN.local/administrator@10.0.0.1 -debug -dnstcp +pip3 in...
Update README.md Fixed bad in-document navigation links (different syntax compared to bitbucket).
@@ -18,7 +18,7 @@ On all platforms pstoedit support is broken by ghostscript releases 9.21 and lat ## New in relase 0.7.2 (2018-04-06) - Fixed: Failure on missing Inkscape version key (issue #10: "Error occurred while converting text from LaTeX to SVG") -[(go to full release history...)](#markdown-header-release-histor...
Fix re2 dictionary Fixes:
@@ -25,6 +25,6 @@ RUN apt-get update && \ RUN git clone https://github.com/google/re2.git -RUN wget -qO $OUT/fuzz-target.dict \ +RUN wget -qO $OUT/fuzzer.dict \ https://raw.githubusercontent.com/google/fuzzing/master/dictionaries/regexp.dict COPY build.sh target.cc $SRC/
mgr: add missing admin key for mgr container Followup on Add missing admin key for mgr node in containerized deployment.
set_fact: ceph_config_keys: - /etc/ceph/{{ cluster }}.mgr.{{ ansible_hostname }}.keyring + - /etc/ceph/{{ cluster }}.client.admin.keyring - name: stat for ceph config and keys local_action: stat path={{ fetch_directory }}/{{ fsid }}/{{ item }}
csv_export: Add support Enc, Dec Cycles and Instr count parsing This is for AOM-CTC where we need to measure + Encoding Cycle + Encoding Instructions Count + Decoding Cycle + Decoding Instructions Count
@@ -43,6 +43,10 @@ met_index = { "APSNR Cr (libvmaf)": 28, "CAMBI (libvmaf)": 29, "Enc MD5": 30, + "Enc Instr Cnt": 31, + "Enc Cycle Cnt": 32, + "Dec Instr Cnt": 33, + "Dec Cycle Cnt": 34, } # row_id for different sets inside template. @@ -242,7 +246,7 @@ def write_set_data(run_path, writer, current_video_set, current_...
Fix, the setting of "__module__" in class creation should not overwrite values * Also do not leak a reference in case that write is being rejected by the resulting type object.
@@ -611,11 +611,14 @@ PyObject *BUILTIN_TYPE3(PyObject *module_name, PyObject *name, PyObject *bases, Py_DECREF(pos_args); - int res = PyObject_SetAttr(result, const_str_plain___module__, module_name); + if (HAS_ATTR_BOOL(result, const_str_plain___module__) == false) { + int res = SET_ATTRIBUTE(result, const_str_plain_...
Corrected typo in the introduction Changed `(key`, `value`) to (`key`, `value`)
@@ -54,7 +54,7 @@ You can easily change a value of an item using its _key_. ## Deleting values using keys -You can delete an item from a dictionary using `dict.pop(<key>)`. This will remove the `(key`, `value`) pair from the dictionary and return the `value` for use. `dict.pop(<key>)` accepts second argument, `default`...
$.Analysis: fix public converter codegen for arrays of big integers TN:
% if cls.to_public_converter_required: function ${cls.to_public_converter} (Value : ${cls.name}) return ${cls.api_name} is - Result : ${cls.api_name} (1 .. Value.N); begin + return Result : ${cls.api_name} (1 .. Value.N) do for I in Result'Range loop - Result (I - Value.Items'First + Result'First) := - ${cls.element_ty...
ebuild.ebuild_built: iterate over attributes to build tracking list Avoids issues where tracked attributes from EAPI objs might not always be frozensets in future rewrites.
@@ -5,6 +5,7 @@ built ebuild packages (vdb packages and binpkgs are derivatives of this) __all__ = ("package", "package_factory") from functools import partial +import itertools import re from snakeoil import demandimport @@ -88,7 +89,9 @@ class package(ebuild_src.base): @property def tracked_attributes(self): # tracke...
Remove TextChannel.default_thread_slowmode_delay This doesn't have meaning on text channels apparently
@@ -160,10 +160,6 @@ class TextChannel(discord.abc.Messageable, discord.abc.GuildChannel, Hashable): The default auto archive duration in minutes for threads created in this channel. .. versionadded:: 2.0 - default_thread_slowmode_delay: :class:`int` - The default slowmode delay in seconds for threads created in this c...
Update README.md Metric collection - Steps said 1, 2, 2. I have updated the last step *[Restart the Agent][8] to begin sending Gunicorn metrics to Datadog.* To say 3.
@@ -47,7 +47,7 @@ instances: - proc_name: <YOUR_APP_NAME> ``` -2. [Restart the Agent][8] to begin sending Gunicorn metrics to Datadog. +3. [Restart the Agent][8] to begin sending Gunicorn metrics to Datadog. #### Log collection
Check to make sure the aov exists first this was causing the macOS addon to fail depth and object_id aovs are missing on macOS uncomment the logging statement to see this
@@ -145,6 +145,10 @@ class RenderTargets: return fb_image def get_frame_buffer(self, aov_name='default'): + name = aov_name + if name not in self.aovs: + # logging.info("Looking for unknown aov",name) + return None return self.aovs[aov_name].render_buffer def get_resolved_image(self, fb):
disable session tracking Session tracking generates a log of requests (one for every page navigation)
@@ -25,7 +25,8 @@ hqDefine('cloudcare/js/sentry', [ console: false, }), ], - tunnel: initialPageData.reverse('report_sentry_error') + tunnel: initialPageData.reverse('report_sentry_error'), + autoSessionTracking: false }); } };
spellchecks // edited by skirpichev Based on sympy/sympy#12244
@@ -39,7 +39,7 @@ def finite_diff_weights(order, x_list, x0=Integer(0)): x_list: sequence Sequence of (unique) values for the independent variable. It is useful (but not necessary) to order x_list from - nearest to farest from x0; see examples below. + nearest to furthest from x0; see examples below. x0: Number or Symb...
ValuePlugBinding : Use `isSetToDefault()` in preference to Python This shaves 13% off the serialisation of a gaffer-examples template.
@@ -118,17 +118,12 @@ std::string valueSerialisationWalk( const Gaffer::ValuePlug *plug, const std::st // Emit the `setValue()` call for this plug. - object pythonValue = pythonPlug.attr( "getValue" )(); - - if( PyObject_HasAttrString( pythonPlug.ptr(), "defaultValue" ) ) - { - object pythonDefaultValue = pythonPlug.at...
helper: Add helper function to match groups based on input text. This parallels the exisiting match_stream and match_user functions.
@@ -404,6 +404,14 @@ def match_stream(stream: Any, text: str) -> bool: return False +def match_groups(group_name: str, text: str) -> bool: + """ + True if any group name matches with `text` (case insensitive), + False otherwise. + """ + return group_name.lower().startswith(text.lower()) + + def powerset(iterable: Itera...
docstring typo fixes cheers
@@ -166,9 +166,9 @@ def streaming_bulk(client, actions, chunk_size=500, max_chunk_bytes=100 * 1024 * should return a tuple containing the action line and the data line (`None` if data line should be omitted). :arg max_retries: maximum number of times a document will be retried when - ``429`` is received, set to 0 (defa...
Skip imports tests on arm64 Skip imports tests on arm64 Authors: - Jordan Jacobelli (https://github.com/Ethyling) Approvers: - Ray Douglass (https://github.com/raydouglass) URL:
@@ -35,9 +35,9 @@ requirements: - gdal >=3.3.0,<3.4.0a0 - geopandas >=0.9.0,<0.10.0a0 -test: - commands: - - python -c "import cuspatial" +test: # [linux64] + commands: # [linux64] + - python -c "import cuspatial" # [linux64] about: home: http://rapids.ai/
fix common responses button ref
@@ -8,11 +8,22 @@ div.editor-tools { line-height: 30px; padding: 5px 5px 0; margin-bottom: p.$spacing-sm; + display: flex; } a.markup-toolbar-link { padding: 0 6px; + display: inline-flex; + @include c.text-body-xs; + line-height: 1; + align-self: center; + color: var(--color-heading); + text-decoration: none; + + &:ho...
Move comment back to the class it describes (it accidentally drifted away). Summary: Pull Request resolved: Test Plan: Imported from OSS
@@ -42,14 +42,6 @@ using ::c10::QualifiedName; using ExtraFilesMap = std::unordered_map<std::string, std::string>; using ModulePtr = c10::intrusive_ptr<c10::ivalue::Object>; -// A method in a module, e.g. f in: -// -// class M(ScriptModule): -// @script_method -// def f(self, x): -// ... -// Note: because Method/Module...
Add symbol in Huawei.VRP prompt HG-- branch : feature/microservices
@@ -22,7 +22,7 @@ class Profile(BaseProfile): (r"^Delete flash:", "y\n\r"), (r"^Squeeze flash:", "y\n\r") ] - pattern_prompt = r"^[<#\[](?P<hostname>[a-zA-Z0-9-_\.\[\(/`\s:]+)(?:-[a-zA-Z0-9/]+)*[>#\]\)]" + pattern_prompt = r"^[<#\[](?P<hostname>[a-zA-Z0-9-_\.\[\(/`'\"\s:]+)(?:-[a-zA-Z0-9/]+)*[>#\]\)]" pattern_syntax_er...
Use self.__class__ for new objects, not Class() For more info on this, see
@@ -1223,7 +1223,7 @@ class DAList(DAObject): return self if isinstance(other, DAList): other._trigger_gather() - the_list = DAList(elements=self.elements + other.elements, gathered=True, auto_gather=False) + the_list = self.__class__(elements=self.elements + other.elements, gathered=True, auto_gather=False) the_list.s...
Update installing.rst ##### SUMMARY Correcting wording - former vs. latter as AFAIK it is pipx that isolates not pip3 ##### ISSUE TYPE Docs Pull Request +label: docsite_pr
@@ -35,7 +35,7 @@ related to containers and use the discussions_ forum instead. Using pip or pipx ----------------- -You can use either pip3_ or pipx_ to install it, the former one +You can use either pip3_ or pipx_ to install it; the latter one automatically isolates the linter from your current python environment. Th...
Fix the downgrade of the migration. By the way I'm not concerned about fixing service.postage data if we have to rollback.
@@ -56,7 +56,7 @@ def upgrade(): def downgrade(): # ### commands auto generated by Alembic - please adjust! ### op.add_column('services_history', sa.Column('postage', sa.VARCHAR(length=255), autoincrement=False, nullable=True)) - op.add_column('services', sa.Column('postage', sa.VARCHAR(length=255), autoincrement=False...
Fix y_pos The y_pos should be equal to the radius -> nodes_o_de / 2.
@@ -386,11 +386,11 @@ class Rotor(object): for z_pos in z_positions: dfb_z_pos = dfb[dfb.nodes_pos_l == z_pos] dfb_z_pos = dfb_z_pos.sort_values(by="n_l") - y_pos = nodes_o_d[int(dfb_z_pos.iloc[0]["n_l"])] + y_pos = nodes_o_d[int(dfb_z_pos.iloc[0]["n_l"])] / 2 mean_od = np.mean(nodes_o_d) for t in dfb_z_pos.tag: df.loc...
Created AWS User, key, and id for testing upload to S3
@@ -261,11 +261,70 @@ jobs: path: | report/ + create-report: + runs-on: ubuntu-latest + needs: [validate-content, build-sources, build-package, run-appinspect] + steps: + - name: Checkout Repo + uses: actions/checkout@v2 + + + - name: Install System Packages + run: | + sudo apt update -qq + sudo apt install jq -qq + + ...
Update cloud_io.py * Update cloud_io.py Solves `AttributeError: 'PosixPath' object has no attribute 'startswith'` * Update cloud_io.py
@@ -25,8 +25,8 @@ def load(path_or_url: Union[str, IO, Path], map_location=None): if not isinstance(path_or_url, (str, Path)): # any sort of BytesIO or similiar return torch.load(path_or_url, map_location=map_location) - if path_or_url.startswith("http"): - return torch.hub.load_state_dict_from_url(path_or_url, map_loc...
tests: fix mtls_cert generation in test_restful.py The test now manually generates a x509 certificate for testing instead of trying to initialize an agent for that.
@@ -27,7 +27,7 @@ To run without root privileges, be sure to export KEYLIME_TEST=True For Python Coverage support (pip install coverage), set env COVERAGE_FILE and: * coverage run --parallel-mode test_restful.py ''' - +import datetime import sys import signal import unittest @@ -43,7 +43,6 @@ from cryptography.hazmat.p...
Adds KeyboardInterrupt handling to customlm.py This allows the user to prematurely end an optimization, but it doesn't work within a MPI context yet - Ctrl+C just kills mpiexec and it's never handled within Python. A work in progress.
@@ -9,11 +9,15 @@ from __future__ import division, print_function, absolute_import, unicode_litera import time as _time import numpy as _np import scipy as _scipy +import signal as _signal #from scipy.optimize import OptimizeResult as _optResult from ..tools import mpitools as _mpit from ..baseobjs import VerbosityPrin...
Remove the unused .text_equals DSL attribute expression The same can be done with ``tok1.symbol.equals(tok2.symbol)``. TN:
@@ -3542,38 +3542,6 @@ class FieldAccessExpr(BasicExpr): self.type.name.camel) -class TokenTextEq(BasicExpr): - """ - Resolved expression to test equality of the text of two tokens. - """ - def __init__(self, left, right, abstract_expr=None): - """ - :type left: ResolvedExpression - :type right: ResolvedExpression - :p...
Add better defaulting to pandas message for `groupby` * Add better defaulting to pandas message for `groupby` * Resolves * Adds a function that contains the correct name instead of using an anonymous lambda. * User will now see: ``` UserWarning: `DataFrame.groupby_on_multiple_columns` defaulting to pandas implementatio...
@@ -490,6 +490,7 @@ class DataFrameGroupBy(object): else: by = self._by - return self._df._default_to_pandas( - lambda df: f(df.groupby(by=by, axis=self._axis, **self._kwargs)), **kwargs - ) + def groupby_on_multiple_columns(df): + return f(df.groupby(by=by, axis=self._axis, **self._kwargs), **kwargs) + + return self._...
fix: Do not set page_length as null Do not set page_length as null since due to this all the records are fetched at once which slows down the system if there are thousands of records
@@ -82,8 +82,6 @@ frappe.views.ReportView = class ReportView extends frappe.views.ListView { return Object.assign(args, { with_comment_count: false, - start: 0, - page_length: null, group_by: this.group_by_control.group_by || null, order_by: this.group_by_control.order_by || null, });
DOC: Fix signal.window.get_window() docstring Add 'center' argument into get_window() docstring with 'exponential' window and add an example for it.
@@ -1971,7 +1971,7 @@ def get_window(window, Nx, fftbins=True): - `~scipy.signal.windows.general_gaussian` (needs power, width) - `~scipy.signal.windows.dpss` (needs normalized half-bandwidth) - `~scipy.signal.windows.chebwin` (needs attenuation) - - `~scipy.signal.windows.exponential` (needs decay scale) + - `~scipy.s...
safer handling of review path 'published_path' might be missing. Thumbnail path was fixed previously, this one was missed.
@@ -163,17 +163,21 @@ class IntegrateSlackAPI(pyblish.api.InstancePlugin): def _get_review_path(self, instance): """Returns abs url for review if present in instance repres""" - published_path = None + review_path = None for repre in instance.data.get("representations", []): tags = repre.get('tags', []) if (repre.get("...
Respect colorbar tickminor for discrete levels This ensures tickminor=True is respected if user passes custom non-discrete locator (e.g. a MultipleLocator) with a BoundaryNorm normalizer (in which case a default minor DiscreteLocator is used) and ensures default rc['(x|y)tick.minor.visible'] setting of False is respect...
@@ -1089,25 +1089,18 @@ class Axes(maxes.Axes): locator = _not_none(locator, locator_default, None) formatter = _not_none(formatter, formatter_default, 'auto') formatter = constructor.Formatter(formatter, **formatter_kw) - categorical = isinstance(formatter, mticker.FixedFormatter) - discrete = isinstance(mappable.norm...
Add narrative docs for plot/scatter_coord methods Added missing narrative documentation for methods: plot_coord and scatter_coord of the WCSAxes class. Closes:
Overplotting markers and artists ******************************** +The class :class:`~astropy.visualization.wcsaxes.WCSAxes` provides two handy methods: +:meth:`~astropy.visualization.wcsaxes.WCSAxes.plot_coord`, +:meth:`~astropy.visualization.wcsaxes.WCSAxes.scatter_coord` + +Used to plots and scatter respectively :cl...
Verification: simplify kick note reason This will make it much easier to filter out verification kicks when querying the infraction database.
@@ -367,7 +367,7 @@ class Verification(Cog): "actor": self.bot.user.id, # Bot actions this autonomously "expires_at": None, "hidden": True, - "reason": f"Kicked for not having verified after {constants.Verification.kicked_after} days", + "reason": "Verification kick", "type": "note", "user": member.id, }
Define floating ip's into k8s-config ssl context to avoid
@@ -478,9 +478,15 @@ class Kubespray: kubespray_vars["openstack_lbaas_subnet_id"] = metadata["resources"]["subnet_id"] kubespray_vars["openstack_lbaas_floating_network_id"] = metadata["resources"]["ext_net_id"] # See https://github.com/kubernetes-incubator/kubespray/issues/2141 - # Set this variable to true to get rid ...
Using internal logging. Internal logging could be replaced with Python logging package.
@@ -54,8 +54,7 @@ def is_json(data): json.dumps(data, cls=BlenderEncoder) return True except: - import logging - logging.exception("failed to json.dump custom properties.") + print_console('DEBUG', 'Failed to json.dumps custom properties') return False def create_image_file(context, blender_image, dst_path, file_format...
(docs) paper trade update add supported connectors for paper trading
@@ -41,3 +41,24 @@ Add more paper trade assets by editing `conf_global.yml` using a text editor. ** !!! warning When adding balances, make sure to exit and restart Hummingbot for the changes to take effect. + + +## Supported Connectors + +Here are the list of supported connectors for paper trading. + +``` +# Supported ...
Improve documentation of contrib.sqla.ModelView.get_query. Mention overriding get_one to prohit access to elements by simply changing the URL.
@@ -833,6 +833,17 @@ class ModelView(BaseModelView): class MyView(ModelView): def get_query(self): return super(MyView, self).get_query().filter(User.username == current_user.username) + + Individual elements that are filtered in the list view are still + accessible through the edit view by simply changing the URL, eve...
Removes f-strings in favor of %-format-strings in circuitstructure.py (For python 3.5 compatibility)
@@ -200,7 +200,7 @@ class CircuitPlaquette(object): def element_label(self, irow, icol): c = self.elements.get((irow, icol), None) - return f"{c.layerstr}" if (c is not None) else "" + return c.layerstr if (c is not None) else "" class FiducialPairPlaquette(CircuitPlaquette): @@ -331,14 +331,15 @@ class FiducialPairPla...
Adds somehow-clobbered fixes for displaying error bars on errorgen rates in reports. This 2-line fix must have gotten clobbered by a recent merge, as this functionality was working before but mysteriously disappeared (?).
@@ -2552,6 +2552,7 @@ class ProjectionsBoxPlot(WorkspacePlot): elif nQubits == 2: if projections.size == 15: projections = _np.concatenate(([0.0], projections)).reshape((4, 4)) + eb_matrix = _np.concatenate(([0.0], eb_matrix)) xlabel = "Q2"; ylabel = "Q1" xd, yd = projections.shape else: # projections.size == 15*15 @@ ...
fw/config: add extra_plugin_paths setting Add extra_plugin_paths setting which gets populated from WA_PLUGIN_PATHS environment variable. This allows specifying additional locations to scan for WA plugins.
@@ -458,6 +458,13 @@ class MetaConfiguration(Configuration): specified when invoking a run. """, ), + ConfigurationPoint( + 'extra_plugin_paths', + kind=list_of_strings, + description=""" + A list of additional paths to scan for plugins. + """, + ), ] configuration = {cp.name: cp for cp in config_points} @@ -483,6 +490...