message stringlengths 13 484 | diff stringlengths 38 4.63k |
|---|---|
Update .gitignore
This update to the .gitignore pre-emptively adds a few folders, namely lib/, dist/, and venv/.
lib/ and dist/ are common names of folders used to store build artecfacts,
and venv/ is default environment name for Python virutal environments. | @@ -64,6 +64,7 @@ _pycache_
augur/bin
.pytest_cache
.ipynb_checkpoints
+venv/
# Node #
########
@@ -86,3 +87,6 @@ docs/python/build/doctrees/augurcontext.doctree
# build directories #
#####################
build/
+lib/
+dist/
+
|
Remove unused args
fixes | @@ -2,6 +2,7 @@ commonfields:
id: UnzipFile
version: -1
name: UnzipFile
+releaseNotes: "Remove unused arguments"
script: |-
import zipfile
import os
@@ -97,12 +98,14 @@ tags:
args:
- name: fileName
default: true
+ deprecated: true
- name: password
secret: true
description: optional password which zip file protected by
... |
[Hexagon] Correct use of wrong cmake variable
The code should be checking DSPRPC_LIB_DIRS instead of REMOTE_DIR. | @@ -49,7 +49,7 @@ if (BUILD_FOR_ANDROID AND USE_HEXAGON_SDK)
get_hexagon_sdk_property("${USE_HEXAGON_SDK}" "${USE_HEXAGON_ARCH}"
DSPRPC_LIB DSPRPC_LIB_DIRS
)
- if(REMOTE_DIR)
+ if(DSPRPC_LIB_DIRS)
link_directories(${DSPRPC_LIB_DIRS})
else()
message(WARNING "Could not locate some Hexagon SDK components")
|
Fix `unit.cloud.clouds.test_ec2` for Windows
Mock instead of create tempfile | # Import Python libs
from __future__ import absolute_import
-import os
-import tempfile
# Import Salt Libs
from salt.cloud.clouds import ec2
from salt.exceptions import SaltCloudSystemExit
# Import Salt Testing Libs
-from tests.support.mixins import LoaderModuleMockMixin
from tests.support.unit import TestCase, skipIf
... |
Fix libfaiss dependency to not expressly depend on conda-forge
Authors:
- Jordan Jacobelli (https://github.com/Ethyling)
Approvers:
- Ray Douglass (https://github.com/raydouglass)
URL: | @@ -49,7 +49,7 @@ requirements:
- faiss-proc=*=cuda
- gtest=1.10.0
- gmock
- - conda-forge::libfaiss=1.7.0
+ - libfaiss 1.7.0 *_cuda
run:
- libcumlprims {{ minor_version }}
- cudf {{ minor_version }}
@@ -59,7 +59,7 @@ requirements:
- {{ pin_compatible('cudatoolkit', max_pin='x.x') }}
- treelite=2.0.0
- faiss-proc=*=cud... |
Vim plugin: use systemlist (if available)
We need yapf output as list, so use the systemlist() vim function,
which was added in vim 7.4.248. | @@ -33,11 +33,16 @@ function! yapf#YAPF() range
let l:cmd = 'yapf --lines=' . l:line_ranges
" Call YAPF with the current buffer
- let l:formatted_text = system(l:cmd, join(getline(1, '$'), "\n") . "\n")
+ if exists('*systemlist')
+ let l:formatted_text = systemlist(l:cmd, join(getline(1, '$'), "\n") . "\n")
+ else
+ le... |
Make status reporter create cfyuser group
As it now requires it, it has been failing on broker and DB which don't have it. | @@ -50,6 +50,7 @@ cp -R ${RPM_SOURCE_DIR}/packaging/status-reporter/files/* %{buildroot}
%pre
+groupadd -fr cfyuser
getent passwd cfyreporter >/dev/null || useradd -r -d /etc/cloudify -s /sbin/nologin cfyreporter
%files
|
find: Changing first message
Changing I am an AI bot message from az find command | @@ -19,7 +19,7 @@ from pkg_resources import parse_version
from knack.log import get_logger
logger = get_logger(__name__)
-WAIT_MESSAGE = ['I\'m an AI bot (learn more: aka.ms/aladdinkb); Let me see how I can help you...']
+WAIT_MESSAGE = ['Finding examples...']
EXTENSION_NAME = 'find'
|
Allow the evaluation to write to the input volume
This volume will anyway be destroyed. | @@ -122,7 +122,7 @@ class Evaluator(object):
self._client.containers.run(
image=self._eval_image_sha256,
volumes={
- self._input_volume: {'bind': '/input/', 'mode': 'ro'},
+ self._input_volume: {'bind': '/input/', 'mode': 'rw'},
self._output_volume: {'bind': '/output/', 'mode': 'rw'},
},
**self._run_kwargs,
|
llvm, state: Remove custom output struct type callback
The default works ok, and it will be needed to implement shape casting. | @@ -2149,9 +2149,6 @@ class State_Base(State):
def _get_input_struct_type(self, ctx):
return ctx.get_input_struct_type(self.function)
- def _get_output_struct_type(self, ctx):
- return ctx.get_output_struct_type(self.function)
-
def _get_param_struct_type(self, ctx):
return ctx.get_param_struct_type(self.function)
|
FIX: openstack attach ip timeout
increased amount of attempts and timeout limit
switch attempts limit to time limit | +import datetime
import os
import logging
import socket
@@ -198,24 +199,25 @@ class CephVMNode(object):
logger.info("Destroying volume %s", name)
driver.destroy_volume(volume)
- def attach_floating_ip(self):
+ def attach_floating_ip(self, timeout=120):
driver = self.driver
pool = driver.ex_list_floating_ip_pools()[0]
s... |
send_datasets command: `send_date` param optional
Allows the command to preproduce the "Send now" button exactly. | @@ -6,15 +6,19 @@ from corehq.motech.dhis2.tasks import send_datasets
class Command(BaseCommand):
- """
- Manually send datasets for a project assuming it was run at a date in the past
- """
+ help = ('Manually send datasets for a domain. Specify --send-date '
+ 'to simulate a date in the past')
def add_arguments(self,... |
ci: fix gha deprecations for promote-ga action
update docker/login-action to v2
remove usage of deprecated ::set-output | @@ -19,7 +19,7 @@ jobs:
with:
fetch-depth: 0
- name: "Docker Login"
- uses: docker/login-action@v1
+ uses: docker/login-action@v2
with:
registry: ${{ (!startsWith(secrets.RELEASE_REGISTRY, 'docker.io/')) && secrets.RELEASE_REGISTRY || null }}
username: ${{ secrets.GH_DOCKER_RELEASE_USERNAME }}
@@ -33,7 +33,7 @@ jobs:
i... |
Adalog/Logic_Ref: simplify Set_Value code
TN: | @@ -30,22 +30,17 @@ package body Langkit_Support.Adalog.Logic_Ref is
function Set_Value (Self : in out Var; Data : Element_Type) return Boolean
is
- Old : Var := Self;
begin
- Inc_Ref (Old.Value);
-
if Debug.Debug then
Trace ("Setting the value of " & Image (Self) & " to "
& Element_Image (Data));
- Trace ("Old value i... |
SConstruct : Remove `gaffer` wrapper on Windows
We were already not including the Windows-specific `gaffer.cmd` on Linux, this removes the corresponding `gaffer` launch wrapper on Windows. | @@ -1352,7 +1352,7 @@ libraries = {
},
"scripts" : {
- "additionalFiles" : [ "bin/gaffer", "bin/__gaffer.py" ],
+ "additionalFiles" : [ "bin/__gaffer.py" ],
},
"misc" : {
@@ -1377,8 +1377,7 @@ libraries = {
}
-if env["PLATFORM"] == "win32" :
- libraries["scripts"]["additionalFiles"].append( "bin/gaffer.cmd" )
+librarie... |
Fix issue with encoder padding mask
Summary:
Fix issue with encoder padding mask
Also add lengths as a field in encoder_out of encode_src method
Add a conditional clause in transformer_monotonic_attention.py to handle the case where encoder_padding_mask is None | @@ -152,7 +152,8 @@ class TransformerMonotonicDecoder(TransformerDecoder):
encoder_out = encoder_out_dict["encoder_out"][0]
encoder_padding_mask = (
encoder_out_dict["encoder_padding_mask"][0]
- if len(encoder_out_dict["encoder_padding_mask"]) > 0
+ if encoder_out_dict["encoder_padding_mask"]
+ and len(encoder_out_dict... |
Remove link to /#settings in header.
This removes the linke to /#settings in the "Change your settings"
header at the top of the /help/change-your-settings page. | -# Change your [settings](/#settings)
+# Change your settings
1. Click the cog (<i class="icon-vector-cog"></i>) icon in the top right corner.
2. From the dropdown menu, choose the **Settings** option.
|
Dereference and null the temporary "element_utf8" variable.
To avoid a reference (memory) leak | @@ -1757,6 +1757,7 @@ PyWcsprm_sub(
"string values for axis sequence must be one of 'latitude', 'longitude', 'cubeface', 'spectral', 'stokes', or 'celestial'");
goto exit;
}
+ Py_CLEAR(element_utf8);
} else if (PyLong_Check(element)) {
tmp = (Py_ssize_t)PyLong_AsSsize_t(element);
if (tmp == -1 && PyErr_Occurred()) {
|
Prepare 2.7.0rc1
[ci skip-rust]
[ci skip-build-wheels] | # 2.7.x Stable Releases
+## 2.7.0rc1 (Sep 01, 2021)
+
+### Bug fixes
+
+* Error, don't warn, when `--generate-lockfiles-resolve` is set to a disabled tool lockfile (cherrypick of #12738) ([#12741](https://github.com/pantsbuild/pants/pull/12741))
+
+* Add specific and actionable instructions to stale lockfile errors (ch... |
[Cocoa] Make confirm_quit an instance attribute
We might need seperate confirm_quit options for each window. This also
gets rid of the global variable. | @@ -48,8 +48,9 @@ class BrowserView:
else:
return False
- def windowShouldClose_(self, notification):
- if not _confirm_quit or self.display_confirmation_dialog():
+ def windowShouldClose_(self, window):
+ i = BrowserView.get_instance('window', window)
+ if not i.confirm_quit or self.display_confirmation_dialog():
retu... |
Added Travis CI info image
(For testing purposes currently referring to develop branch) | +[](https://travis-ci.com/textext/textext)
+
# TexText - A LaTeX/ XeLaTex/ LuaLaTex extension for Inkscape (releases 0.92, 0.91 and 0.48)
TexText is a Python plugin for the vector graphics editor [Inkscape](http://www.inkscape.org/) providing the ... |
Fix crcPI Space issue / Removed ctypes import and replaced with &s
crc overflowed 16 bits, but Python has no overflowing so that broke; Added bitwise ands to limit the bits to uint16
Removed ctypes dependency and replaced with &s | #!/usr/bin/env python3
import logging
-import ctypes
log = logging.getLogger("MPP-Solar")
@@ -140,26 +139,24 @@ def crcPI(data_bytes):
]
for c in data_bytes:
- # todo fix spaces
- if c == " ":
- continue
# log.debug('Encoding %s', c)
# todo fix response for older python
if type(c) == str:
c = ord(c)
- t_da = ctypes.c_u... |
Fix `check_orphans.py` uses unsafe yaml loader
```
paasta-mesos-master::10-81-63-228-uswest2bdevc.dev.yelpcorp.com :
check_orphan_registrations : True
/opt/venvs/paasta-tools/bin/check_orphans.py:39: YAMLLoadWarning:
calling yaml.load() without Loader=... is deprecated, as the default
Loader is unsafe. Please read for ... | @@ -36,7 +36,7 @@ class ExitCode(Enum):
def get_zk_hosts(path: str) -> List[str]:
with open(path) as f:
- x = yaml.load(f)
+ x = yaml.safe_load(f)
return [f"{host}:{port}" for host, port in x]
|
Move test for adding devices to cache of nonexistent pool
This test replaces a removed test which called add-cache
on a nonexistent pool. | Test 'init-cache'.
"""
+# isort: FIRSTPARTY
+from dbus_client_gen import DbusClientUniqueResultError
+
# isort: LOCAL
from stratis_cli import StratisCliErrorCodes
from stratis_cli._errors import StratisCliEngineError, StratisCliPartialChangeError
@@ -88,6 +91,22 @@ class InitCacheFail2TestCase(SimTestCase):
self.check_... |
Fix trpo flaky test
Setting seed=2 makes the flaky test more stable. | @@ -7,6 +7,7 @@ import pytest
import tensorflow as tf
from garage.envs import normalize
+from garage.experiment import deterministic
from garage.experiment import snapshotter
from garage.np.baselines import LinearFeatureBaseline
from garage.tf.algos import TRPO
@@ -108,8 +109,9 @@ class TestTRPO(TfGraphTestCase):
env.c... |
Pontoon: Update Gujarati (gu-IN) localization of AMO
Localization authors:
Anvee Malviya | @@ -5,8 +5,8 @@ msgstr ""
"Project-Id-Version: PROJECT 1.0\n"
"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n"
"POT-Creation-Date: 2018-08-23 07:48+0000\n"
-"PO-Revision-Date: 2018-08-23 19:46+0000\n"
-"Last-Translator: Hariom Panchal <hariompanchal6079@gmail.com>\n"
+"PO-Revision-Date: 2018-08-07 16:15+0000\n"
+"Last-Translato... |
Fix for Python 2
This is needed to get pipenv to work on Python 2 hosts (current version on PyPI is broken). Adds the base class of `FileNotFoundError` and adds the default argument of `None` to the `utime` call. | @@ -1060,7 +1060,7 @@ def touch_update_stamp():
mkdir_p(PIPENV_CACHE_DIR)
p = os.sep.join((PIPENV_CACHE_DIR, '.pipenv_update_check'))
try:
- os.utime(p)
- except FileNotFoundError:
+ os.utime(p, None)
+ except OSError:
with open(p, 'w') as fh:
fh.write('')
|
Change Advanced Scala with Cats to Scala with Cats
Underscore.io renamed "Advanced Scala with Cats" to "Scala with Cats" and updated the contents of the book for Cats 1.0.0-RC1. The commit changes the name of the book and its respective link. The old link doesn't work anymore, | @@ -508,13 +508,13 @@ Projects with over 500 stargazers are in bold.
* [Scala Collections Cookbook](http://colobu.com/ScalaCollectionsCookbook/) - Scala collections introduction. written in Chinese.
* [Scala Exercises](http://scala-exercises.47deg.com/) - Brings the popular Scala Koans to the web. Offering hundreds of ... |
More docs for methods in operator.h
Summary: Pull Request resolved: | @@ -671,6 +671,9 @@ class Operator : public OperatorBase {
return OperatorBase::template Input<Tensor>(idx, type);
}
+ /// XOutput is a modernized version of Output which returns a Tensor
+ /// rather than a Tensor* (the raw pointer in the latter case is
+ /// useless, as Tensor is a pointer type.)
Tensor XOutput(int i... |
Reinstate "no cost savings available" warning
This was originally introduced in but the HTML was subsequently
removed (I think during the merging of the new dashboards).
Closes | </div>
</div>
+ <div class="alert alert-warning hidden" id="no-cost-saving-warning">
+ There is currently no cost savings data available for these measures
+ </div>
+
{% verbatim %}
<script id="summary-panel" type="text/x-handlebars-template">
<p>{{ performanceDescription }}</p>
|
Remove the problematic migration entirely
The thumbnail check code is run every time the server is started anyway! | # Generated by Django 2.2.10 on 2020-04-04 12:38
from django.db import migrations
-from django.db.utils import OperationalError, ProgrammingError
-
-from part.models import Part
-from stdimage.utils import render_variations
def create_thumbnails(apps, schema_editor):
"""
Create thumbnails for all existing Part images.
... |
Don't include subjects_acceptable in exporting preprint providers
[#OSF-9046] | @@ -19,7 +19,7 @@ from osf.models.preprint_provider import rules_to_subjects
# When preprint_providers exclusively use Subject relations for creation, set this to False
SHOW_TAXONOMIES_IN_PREPRINT_PROVIDER_CREATE = True
-FIELDS_TO_NOT_IMPORT_EXPORT = ['access_token', 'share_source']
+FIELDS_TO_NOT_IMPORT_EXPORT = ['acc... |
DoubleSided shader error.
PURPOSE
DoubleSided shader error.
EFFECT OF CHANGE
Fixed error RPR_Doublesided. | @@ -1163,9 +1163,9 @@ class RPRShaderNodeDoublesided(RPRShaderNode):
rpr_node = self.create_node(pyrpr.MATERIAL_NODE_TWOSIDED, {})
if shader1:
- rpr_node.set_input(pyrpr.MATERIAL_INPUT_COLOR0, shader1)
+ rpr_node.set_input(pyrpr.MATERIAL_INPUT_FRONTFACE, shader1)
if shader2:
- rpr_node.set_input(pyrpr.MATERIAL_INPUT_CO... |
Improvements to sessions script
remove count because this is very slow, just use delete return value for logging afterwards
change word in log | @@ -22,24 +22,22 @@ SESSION_AGE_THRESHOLD = 30
def main(dry_run=True):
old_sessions = Session.objects.filter(modified__lt=timezone.now() - datetime.timedelta(days=SESSION_AGE_THRESHOLD))
- initial_count = old_sessions.count()
if dry_run:
- logger.warn('Dry run mode, will delete files and then abort the transaction')
- ... |
Check if CXX compiler supports all the needed functions
* Check if CXX compiler supports all the needed functions
This commit improves the code for PR according to
comments. Instead of checking ubuntu/gcc versions it
checks the support for the needed functions from the C++ compiler
using CHECK_CXX_SOURCE_COMPILES.
Fixe... | @@ -10,34 +10,6 @@ project(ATen)
cmake_policy(SET CMP0012 NEW)
-# ---[ If running on Ubuntu, check system version and compiler version.
-if(EXISTS "/etc/os-release")
- execute_process(COMMAND
- "sed" "-ne" "s/^ID=\\([a-z]\\+\\)$/\\1/p" "/etc/os-release"
- OUTPUT_VARIABLE OS_RELEASE_ID
- OUTPUT_STRIP_TRAILING_WHITESPACE... |
fix lifecycle config rule validation
Fixes | @@ -246,8 +246,15 @@ class Rule(BaseRule):
noncurrent_version_transition=None,
transition=None):
check_status(status)
- if not rule_filter:
- raise ValueError("Rule filter must be provided")
+ if (not abort_incomplete_multipart_upload and not expiration
+ and not noncurrent_version_expiration
+ and not noncurrent_versi... |
Fix test_early_z_pushed_to_end()
* Fix test_early_z_pushed_to_end()
Make it test what it's intended to test by removing extra optimizations. | @@ -18,21 +18,18 @@ from cirq.google import ExpZGate, ConvertToXmonGates, EjectZ
from cirq.value import Symbol
-def assert_optimizes(before, after):
- pre_optimizations = [
- ConvertToXmonGates(ignore_failures=True)
- ]
- followup_optimizations = [
+def assert_optimizes(before, after,
+ pre_opts=(ConvertToXmonGates(ign... |
Update coin change problem
Optimized the coin change problem solution using dynamic programming. The previous solution used recursion. | -// Recursive C program for
-// coin change problem.
#include <stdio.h>
+#include <string.h>
-// Returns the count of ways we can
-// sum S[0...m-1] coins to get sum n
int count(int S[], int m, int n)
{
- // If n is 0 then there is 1 solution
- // (do not include any coin)
- if (n == 0)
- return 1;
+ // table[i] will b... |
[skip-ci][COMMUNITY] New committer Ashutosh Parkhi
[COMMUNITY] New committer Ashutosh Parkhi | @@ -62,6 +62,7 @@ We do encourage everyone to work anything they are interested in.
- [Trevor Morris](https://github.com/trevor-m): @trevor-m - byoc, compiler
- [Leandro Nunes](https://github.com/leandron) (PMC): @leandron - tvmc
- [Lily Orth-Smith](https://github.com/electriclilies): @electriclilies - relay
+- [Ashuto... |
Updated updater.py
Changed None to ``None`` in the docstring | @@ -183,7 +183,7 @@ class Updater:
Returns:
Local file path if the file is an up to date target file.
- None if file is not found or it is not up to date.
+ ``None`` if file is not found or it is not up to date.
"""
if filepath is None:
|
hip minor fix for c10
Summary:
TSIA
Pull Request resolved: | @@ -374,7 +374,7 @@ struct DefaultHIPAllocator final : public at::Allocator {
// lock the mutex
std::lock_guard<std::mutex> lock(HIPContext::mutex());
- if (FLAGS_caffe2_gpu_memory_tracking) {
+ if (c10::FLAGS_caffe2_gpu_memory_tracking) {
auto sz_it = g_size_map.find(ptr);
DCHECK(sz_it != g_size_map.end());
auto aff_i... |
Update src/dash-table/dash/DataTable.js
Add XSS vulnerability warning | @@ -487,6 +487,8 @@ export const propTypes = {
]),
/**
* (default: False) If True, html may be used in markdown cells
+ * Be careful enabling html if the content being rendered can come
+ * from an untrusted user, as this may create an XSS vulnerability.
*/
html: PropTypes.bool
}),
|
Add time_to_anomaly method
Simplifies also the `propagate_to_anomly` method | @@ -1024,6 +1024,27 @@ class Orbit(object):
new_epoch,
)
+ @u.quantity_input(value=u.rad)
+ def time_to_anomaly(self, value):
+ """ Returns time required to be in a specific true anomaly.
+
+ Parameters
+ ----------
+ value : ~astropy.units.Quantity
+
+ Returns
+ -------
+ tof: ~astropy.units.Quantity
+ Time of flight ... |
Pass schema specified during reflection into generated model meta.
Refs | @@ -586,6 +586,7 @@ class Introspector(object):
class BaseModel(Model):
class Meta:
database = self.metadata.database
+ schema = self.schema
def _create_model(table, models):
for foreign_key in database.foreign_keys[table]:
|
Enable linker preprocessing for armclang.
This should be temporary; for some reason the .sct cpp shebang isn't working for me. Same result in any case. | @@ -23,6 +23,9 @@ class MakefileArmclang(MakefileTool):
def __init__(self, workspace, env_settings):
MakefileTool.__init__(self, workspace, env_settings, logger)
+ # enable preprocessing linker files for GCC ARM
+ self.workspace['preprocess_linker_file'] = True
+ self.workspace['linker_extension'] = '.sct'
@staticmetho... |
Add loading of log configuration
Add loading of config files for the PoET engine. This will allow for
broader configuration of the logging subsystem. | @@ -80,6 +80,13 @@ def main(args=None):
opts = parse_args(args)
try:
+ log_config = get_log_config('poet-engine-log-config.toml')
+ if log_config is None:
+ log_config = get_log_config('poet-engine-log-config.yaml')
+
+ if log_config is not None:
+ log_configuration(log_config=log_config)
+ else:
log_dir = get_log_dir(... |
Update pubsub snipets to accomodate changed semantics.
Re-assign 'policy.viewers'/'policy.editors', rather than mutating them
in place. | @@ -124,9 +124,9 @@ def topic_iam_policy(client, to_delete):
# [START topic_set_iam_policy]
ALL_USERS = policy.all_users()
- policy.viewers.add(ALL_USERS)
+ policy.viewers = [ALL_USERS]
LOGS_GROUP = policy.group('cloud-logs@google.com')
- policy.editors.add(LOGS_GROUP)
+ policy.editors = [LOGS_GROUP]
new_policy = topic... |
Fix PY3 h5py error when writing list of strings as attr
(TypeError: No conversion path for dtype: dtype('<U2'))
This solution ensures HDF5 encoding of is identical on all version of python: variable length | @@ -856,7 +856,9 @@ def save_NXdata(filename, signal, axes,
data_group = entry.create_group(nxdata_name)
data_group.attrs["NX_class"] = "NXdata"
data_group.attrs["signal"] = signal_name
- data_group.attrs["axes"] = axes_names
+ data_group.attrs["axes"] = numpy.array(
+ axes_names,
+ dtype=h5py.special_dtype(vlen=six.te... |
Update readme
Addresses Issue | @@ -38,11 +38,10 @@ This open-source manuscript is a gateway for entering the Landlab world:
http://www.earth-surf-dynam.net/5/21/2017/
-After installation, tests can be run with:
+Two main installation options exist for Landlab. Most people will likely want to
+[install the conda package](https://github.com/landlab/la... |
Relay: Support `--loglevel <level>` fully
There's no real logging in Relay yet, but this makes it support
switching level anyway. | Relays sit below an announcer, or another relay, and simply repeat what
they receive over PUB/SUB.
"""
-# Logging has to be configured first before we do anything.
+import argparse
+import gevent
+import hashlib
import logging
+import simplejson
+import time
+import uuid
+import zlib
from threading import Thread
-impor... |
Update lbaas-driver-v2 releasenotes
Update lbaas-driver-v2 releasenotes | @@ -8,3 +8,6 @@ features:
fixes:
- Includes the following bug fixes
Bug 1640076 - Using odl lbaas driver_v2 to create listener failed.
+ Bug 1633030 - Using odl lbaas driver_v2 to create loadbalancer failed.
+ Bug 1613583 - Odl lbaas driver_v2 Line 61 url_path error.
+ Bug 1613583 - Using ODL lbaas driver_v2 to create ... |
custom fields: Add frontend validations in textual custom fields.
Add validations for short and long textual custom fields in
frontend. | <div class="user-name-section custom_user_field">
<label for="{{ field_name }}" class="title">{{ field_name }}</label>
{{#if is_long_text_field}}
- <textarea name="{{ field_name }}" id="{{ field_id }}">{{ field_value }}</textarea>
+ <textarea name="{{ field_name }}" id="{{ field_id }}" maxlength="500">{{ field_value }}... |
Update generic.txt
dedup of ```cobaltstrike``` | @@ -7200,13 +7200,6 @@ regsvr32.kz
webfax.org
yahoo.org.kz
-# Reference: https://twitter.com/SBousseaden/status/1221834746084368385
-# Reference: https://app.any.run/tasks/4a40a89c-bddd-4df8-993e-5732d8a52133/
-# Reference: https://www.virustotal.com/gui/domain/securelogonweb.com/relations
-# Reference: https://www.vir... |
Deflake test_client_library_integration
Using ray_start_regular_shared test_tune_library_integration seems to make test_serve_handle flake. Separate use ray_start_regular instead.
No flake:
<img width="610" alt="Screen Shot 2022-07-27 at 1 10 59 PM" src="https://user-images.githubusercontent.com/14043490/181363214-522e... | @@ -8,7 +8,7 @@ from ray._private.client_mode_hook import enable_client_mode, client_mode_should
@pytest.mark.skip(reason="KV store is not working properly.")
-def test_rllib_integration(ray_start_regular_shared):
+def test_rllib_integration(ray_start_regular):
with ray_start_client_server():
import ray.rllib.algorithm... |
Fix debug message
We're fetching the destination tag here. The build tag is something
different. | @@ -212,18 +212,18 @@ def stream_task_output(session, task_id, file_name,
def tag_koji_build(session, build_id, target, poll_interval=5):
- logger.debug('Finding build tag for target %s', target)
+ logger.debug('Finding destination tag for target %s', target)
target_info = session.getBuildTarget(target)
- build_tag = t... |
Make abc.GuildChannel.overwrites return a dictionary
Fix | @@ -346,16 +346,16 @@ class GuildChannel:
def overwrites(self):
"""Returns all of the channel's overwrites.
- This is returned as a list of two-element tuples containing the target,
- which can be either a :class:`Role` or a :class:`Member` and the overwrite
- as the second element as a :class:`PermissionOverwrite`.
+ ... |
Fix file paths and urls for deployment smoke test
* Fix file paths and urls for deployment smoke test
The documentation for smoke testing a deployed version of kfserving are out of date / incorrect.
* Update DEVELOPER_GUIDE.md
* Update DEVELOPER_GUIDE.md | @@ -208,9 +208,14 @@ make deploy-dev-storageInitializer
- **Note**: These commands also publishes to `KO_DOCKER_REPO` with the image of version 'latest', and change the configmap of your cluster to point to the new built images. It's just for development and testing purpose so you need to do it one by one. In configmap... |
workloads/pcmark: Fix reading results in python3
Ensure that the results file is decoded when using python3. | #
import os
import re
+import sys
import zipfile
from wa import ApkUiautoWorkload
@@ -58,6 +59,8 @@ class PcMark(ApkUiautoWorkload):
def update_output(self, context):
expected_results = len(self.regex_matches)
zf = zipfile.ZipFile(os.path.join(context.output_directory, self.result_file), 'r').read('Result.xml')
+ if sy... |
Fix remaining pylint errors.
Simplify if expression and fix the remaining unnecessary else statement. | @@ -288,7 +288,7 @@ def callbacks(app): # pylint: disable=redefined-outer-name
return {
'atomScale': atom_radius,
'relativeAtomScale': relative_atom_radius,
- 'bonds': True if len(show_bonds) > 0 else False,
+ 'bonds': bool(len(show_bonds) > 0),
'bondScale': bond_scale,
'ao': ambient_occlusion,
'brightness': brightness... |
add wait_blocker split timeout
add close_process method in restart_browser method. | @@ -645,7 +645,7 @@ class WebappInternal(Base):
logger().debug('Reloading user screen')
- self.driver_refresh()
+ self.restart_browser()
if self.config.coverage:
self.driver.get(f"{self.config.url}/?StartProg=CASIGAADV&A={self.config.initial_program}&Env={self.config.environment}")
@@ -653,7 +653,7 @@ class WebappInter... |
retune the picking method in vtkFrameWidgetRepresentation
adds a common pick function
the pick function tries with tolerance=0, then tolerance=0.005
The picking tolerance is not easy to use, and the behavior seems to
have changed between vtk7 and vtk8. This commit adds a workaround that
seems to work ok with both vers... | @@ -208,6 +208,21 @@ DataRep MakeDisk(double radius, double handleRadius, int axis)
return DataRepFromPolyData(Transform(d->GetOutput(), t));
}
+vtkDataSet* PickDataSet(vtkPicker* picker, int x, int y, vtkRenderer* renderer)
+{
+ picker->SetTolerance(0.0);
+ picker->Pick(x, y, 0.0, renderer);
+ if (picker->GetDataSet()... |
changed fixture for get_cache_dir() test
this hopefully fixes the build errors on appveyor for windows builds | @@ -114,28 +114,24 @@ def test_validate_project_urls():
@pytest.fixture
-def fixture_env_variable():
+def patch_for_get_cache_dir():
# storing current environmental variables for resetting later
- current_xdg = fv.os.environ.get("XDG_CACHE_HOME", None)
- current_platform = fv.sys.platform
- curernt_os_name = fv.os.name... |
help-docs: Update Homebrew instructions for the latest release on macOS.
The command `brew cask` is no longer a `brew` command as of Homebrew
version 3.5.2.
Updates the instruction to use `brew <command> --cask` instead.
Fixes: | @@ -14,7 +14,6 @@ look at the newest features, consider the [beta releases](#install-a-beta-releas
{tab|mac}
#### Disk image (recommended)
-<!-- TODO why zip? -->
1. Download [Zulip for macOS](https://zulip.com/apps/mac).
@@ -24,12 +23,12 @@ The app will update automatically to future versions.
#### Homebrew
-1. Run `b... |
Update build.gradle
Forgot to rebase before adding the tasks for building docs without testing. | @@ -401,7 +401,7 @@ task makeHailDocs(type: Exec, dependsOn: ['shadowJar', 'setupTutorial', 'makeFun
environment PYTHONPATH: '' + projectDir + '/python:' + sparkHome + '/python:' + sparkHome + '/python/lib/py4j-' + py4jVersion + '-src.zip'
}
-task makeHailDocsNoTest(type: Exec, dependsOn: ['runPandoc', 'prepareJavascri... |
Fix for "part" form fields
Specify "default" rather than overriding "value" | @@ -74,34 +74,34 @@ function partFields(options={}) {
icon: 'fa-boxes',
},
component: {
- value: global_settings.PART_COMPONENT,
+ default: global_settings.PART_COMPONENT,
group: 'attributes',
},
assembly: {
- value: global_settings.PART_ASSEMBLY,
+ default: global_settings.PART_ASSEMBLY,
group: 'attributes',
},
is_tem... |
Fixes README.md: 104: MD046/code-block-style
104: MD046/code-block-style Code block style
[Expected: fenced; Actual: indented] | @@ -101,7 +101,9 @@ cloning the repository directly into your [Sublime Text Packages directory].
You can locate your Sublime Text Packages directory by using the menu item
`Preferences` -> `Browse Packages...`
+```bash
git clone https://github.com/jonlabelle/SublimeJsPrettier.git "JsPrettier"
+```
## Usage
|
Add reference/target to the list of allowed sphinx nodes
In order to be able to add outside links in docstrings
For libadalang#923 | @@ -1370,7 +1370,7 @@ SUPPORTED_TAGS = [
"#text", "comment", "field", "paragraph", "list_item", "literal_block",
"enumerated_list", "field_name", "document", "bullet_list",
"system_message", "problematic", "warning", "field_list",
- "field_name", "field_body", "block_quote"
+ "field_name", "field_body", "block_quote", ... |
Add tkFileDialog to future.movers.tkinter
Related to issue / Commit | @@ -10,3 +10,9 @@ else:
except ImportError:
raise ImportError('The FileDialog module is missing. Does your Py2 '
'installation include tkinter?')
+
+ try:
+ from tkFileDialog import *
+ except ImportError:
+ raise ImportError('The tkFileDialog module is missing. Does your Py2 '
+ 'installation include tkinter?')
|
fix loading 1dim tensor from 0.3.* to 0dim tensor
Summary:
This PR fixes .
Adding backward support when loading a checkpoint from 0.3.* with 1dim tensor, they are now 0 dim tensor in 0.4+.
Pull Request resolved: | @@ -642,6 +642,10 @@ class Module(object):
if key in state_dict:
input_param = state_dict[key]
+ # Backward compatibility: loading 1-dim tensor from 0.3.* to version 0.4+
+ if len(param.shape) == 0 and len(input_param.shape) == 1:
+ input_param = input_param[0]
+
if input_param.shape != param.shape:
# local shape shoul... |
Update 10setupBlitz.sh
Fixed typo that offered one option count more than available.
"..choose from these 5 options ..." > "..choose from these 4 options.." | @@ -196,7 +196,7 @@ if [ ${mountOK} -eq 1 ]; then
if [ ${network} = "bitcoin" ]; then
echo "Bitcoin Options"
menuitem=$(dialog --clear --beep --backtitle "RaspiBlitz" --title "Getting the Blockchain" \
- --menu "You need a copy of the Bitcoin Blockchain - you have 5 options:" 13 75 5 \
+ --menu "You need a copy of the ... |
mergify: add stable-6.0 backport configuration
This adds the stable-6.0 backport configuration in mergify. | @@ -35,3 +35,10 @@ pull_request_rules:
conditions:
- label=backport-stable-5.0
name: backport stable-5.0
+ - actions:
+ backport:
+ branches:
+ - stable-6.0
+ conditions:
+ - label=backport-stable-6.0
+ name: backport stable-6.0
|
Update lightning_module.rst
`*_epoch_out` methods expects a return of None. | @@ -448,7 +448,7 @@ The matching pseudocode is:
optimizer.step()
optimizer.zero_grad()
- epoch_out = training_epoch_end(outs)
+ training_epoch_end(outs)
Training with DataParallel
^^^^^^^^^^^^^^^^^^^^^^^^^^
|
Remove redundant code comments
Comments are unified in the README | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
-"""
-This code creates a dataframe of dicom headers based on dicom files in a filepath.
-This code also extracts the images within those dicoms if requested. see section 'print images'
-pip3 install image numpy pandas pydicom pillow pypng
-"""
import numpy as np
import pa... |
Fix whitespace issue
Introduced in | @@ -101,6 +101,9 @@ Bugs fixed
* Intel C compilers could complain about unsupported gcc pragmas.
Patch by Ralf Gommers. (Github issue :issue:`5052`)
+* Includes all bug-fixes and features from the 0.29 maintenance branch
+ up to the :ref:`0.29.33` release.
+
Other changes
-------------
|
Reduce parallelism for e2e tests from 4 to 2
e2e tests have been very flaky in CI, try to reduce the number of tests
run in parallell to see if that yields more stable CI builds | @@ -39,7 +39,7 @@ blocks:
- docker login --username "${DOCKER_USERNAME}" --password-stdin <<< "${DOCKER_PASSWORD}"
- ./bin/docker_build
# Run end-to-end/integration tests
- - tox -e integration_test -- -n 4 --use-docker-for-e2e
+ - tox -e integration_test -- -n 2 --use-docker-for-e2e
# Store metadata for promotion jobs... |
Table mixin for Tenancy columns
A mixin to add the Tenant and Tenant Group columns to a table. | @@ -3,6 +3,7 @@ import django_tables2 as tables
__all__ = (
'TenantColumn',
'TenantGroupColumn',
+ 'TenancyColumnsMixin',
)
@@ -50,3 +51,7 @@ class TenantGroupColumn(tables.TemplateColumn):
def value(self, value):
return str(value) if value else None
+
+class TenancyColumnsMixin(tables.Table):
+ tenant_group = TenantGr... |
left_sidebar: Add data-placement to settings icon to prevent flickering.
Changing the position of tooltip using data-placement=bottom fixes this flickering artifact.
Fixes: | </ul>
<div id="streams_list" class="zoom-out">
<div id="streams_header" class="zoom-in-hide"><h4 class="sidebar-title" data-toggle="tooltip" title="{{ _('Filter streams') }}">{{ _('STREAMS') }}</h4>
- <i id="streams_inline_cog" class='fa fa-cog' aria-hidden="true" data-toggle="tooltip" title="{{ _('Subscribe, add, or c... |
fix(rez-pip): ensure the pip version check warning is displayed
The pip version check was using a too broad exception catch that would
cause the original raise to be silently skipped even it was raised
based on a successful version match (<19). Adjust exception handling
to avoid this issue. | @@ -250,6 +250,8 @@ def find_pip(pip_version=None, python_version=None):
if int(pip_major) < 19:
raise VersionError("pip >= 19 is required! Please update your pip.")
+ except VersionError:
+ raise
except:
# silently skip if pip version detection failed, pip itself will show
# a reasonable error message at the least.
|
packaging: Remove pin for jpeg, numpy
* packaging: Remove pin for jpeg, numpy
These may no longer be necessary due to the default anaconda channel
having the necessary packages now.
* Update packaging/torchvision/meta.yaml | @@ -9,14 +9,13 @@ requirements:
build:
- {{ compiler('c') }} # [win]
- libpng
- - jpeg <=9b
+ - jpeg
# NOTE: The only ffmpeg version that we build is actually 4.2
- ffmpeg >=4.2 # [not win]
host:
- python
- setuptools
- - defaults::numpy >=1.11
{{ environ.get('CONDA_PYTORCH_BUILD_CONSTRAINT') }}
{{ environ.get('CONDA_C... |
[sync] thread safe check for folder conflicts
see | @@ -48,8 +48,8 @@ from maestral.config import MaestralConfig, MaestralState
from maestral.fsevents import Observer
from maestral.constants import (IDLE, SYNCING, PAUSED, STOPPED, DISCONNECTED,
EXCLUDED_FILE_NAMES, MIGNORE_FILE, IS_FS_CASE_SENSITIVE)
-from maestral.errors import (RevFileError, NoDropboxDirError,
- SyncE... |
helper: Refactor updating message count on muted streams.
This simplifies how updating message count is handled
for muted stream vs non-muted streams. | @@ -108,10 +108,10 @@ def set_count(id_list: List[int], controller: Any, new_count: int) -> None:
add_to_counts = True
if msg_type == 'stream':
stream_id = messages[id]['stream_id']
- for stream in streams:
- if stream.stream_id in controller.model.muted_streams:
+ if stream_id in controller.model.muted_streams:
add_to... |
Throttle scaler even when an exception is raised
The with throttle(seconds): construct doesn't work when an exception
is raised through it. | @@ -835,8 +835,8 @@ class ScalerThread(ExceptionalThread):
def tryRun(self):
while not self.stop:
- try:
with throttle(self.scaler.config.scaleInterval):
+ try:
queuedJobs = self.scaler.leader.getJobs()
queuedJobShapes = [
Shape(wallTime=self.scaler.getAverageRuntime(
|
Fixes TypeError: isinstance in airflow_component_test in Python 3.8.
Changes the mocking function to __init__ of the class instead of functools.partial to mitigate collision with the internal library. | import collections
import datetime
-import functools
import os
from unittest import mock
from airflow import models
+from airflow.operators import python_operator
import tensorflow as tf
from tfx import types
@@ -97,8 +97,8 @@ class AirflowComponentTest(tf.test.TestCase):
self.assertEqual(arg_list[0][1]['pipeline_info'... |
Update generic.txt
Moving to ```raccoon```: | @@ -8714,11 +8714,6 @@ medicacademic.com/aza/
hallmarkherbals.com
-# Reference: https://www.virustotal.com/gui/domain/analyticsonline.top/relations
-# Reference: https://twitter.com/FaLconIntel/status/1247895934127591426
-
-analyticsonline.top
-
# Reference: https://twitter.com/MBThreatIntel/status/1248412024305897475
... |
portico: Fix password strength bar reset after form invalidation.
This code prevents the password bar from being incorrectly clear after
the sign up form is rendered again after invalid data is submitted
(generally due to forgetting to agree to ToS).
Fixes | @@ -38,6 +38,12 @@ $(function () {
unhighlight: highlight('success'),
});
+ if (password_field) {
+ // Reset the state of the password strength bar if the page
+ // was just reloaded due to a validation failure on the backend.
+ common.password_quality(password_field.val(), $('#pw_strength .bar'), password_field);
+ }
... |
add to ease the structuring of models,
consider the combination with SaverRestorer(..., prefix="...") | @@ -77,6 +77,35 @@ def under_name_scope():
return _impl
+def under_variable_scope():
+ """
+ Returns:
+ A decorator which makes the function happen under a variable scope,
+ which is named by the function itself.
+
+ Examples:
+
+ .. code-block:: python
+
+ @under_variable_scope()
+ def mid_level(x):
+ with argscope(Co... |
Allow dry-run deployments of installed packages
Makes the -d flag behavior consistent with the main 'deploy' command
(accepts both package names and source directories.)
Note that source directories will not be packaged and installed when
the -d flag is specified. | @@ -904,7 +904,11 @@ def deploy_problems(args, config):
try:
for problem_name in problem_names:
- if args.dry:
+ if isdir(join(get_problem_root(problem_name, absolute=True))):
+ # problem_name is already an installed package
+ deploy_location = join(get_problem_root(problem_name, absolute=True))
+ elif isdir(problem_na... |
Core & Internals: Fix main web.py endpoint errors
/vos endpoint was missing completely.
Fix import typo with SStates from the subscriptions endpoint. | #!/usr/bin/env python
-# Copyright 2012-2020 CERN for the benefit of the ATLAS collaboration.
+# -*- coding: utf-8 -*-
+# Copyright 2020 CERN
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
#
# Authors:
# - Thomas Beermann <thomas.be... |
Update common/chromium/export_blink_webdisplayitemlist.patch
The Great Blink mv for source files, part 2. | -diff --git a/third_party/WebKit/public/platform/WebDisplayItemList.h b/third_party/WebKit/public/platform/WebDisplayItemList.h
-index 82af75c3727e..548eefc0fae5 100644
---- a/third_party/WebKit/public/platform/WebDisplayItemList.h
-+++ b/third_party/WebKit/public/platform/WebDisplayItemList.h
+diff --git a/third_party... |
Create per-split output dirs in the BaseDriver. This is needed because some Beam
runners will fail if the output directory doesn't exist. | @@ -26,26 +26,35 @@ import tensorflow as tf
from tfx import types
from tfx.orchestration import data_types
from tfx.orchestration import metadata
+from tfx.types import artifact_utils
from tfx.types import channel_utils
def _generate_output_uri(base_output_dir: Text, name: Text,
execution_id: int) -> Text:
"""Generate ... |
Refactor pre-build check into function
Improves intent | @@ -712,6 +712,11 @@ class BlockPublisher(object):
"""
return self._candidate_block is not None
+ def _can_build(self):
+ """Returns whether the block publisher is ready to build a block.
+ """
+ return self._chain_head is not None and self._pending_batches
+
def _log_consensus_state(self):
if self._logging_states.cons... |
Fix always include TAG review in intents.
This change makes is so that all intent email templates include the TAG
review field. | @@ -17,10 +17,10 @@ Intent to {{feature.intent_stage}}: {{feature.name}}
Specification: <a href="{{feature.spec_link}}">{{feature.spec_link}}</a>
{% endif %}
{% for link in feature.doc_links %}<a href="{{link}}">{{link}}</a>{% endfor %}
-
+{% endif %}
<label>TAG review</label>
{{feature.tag_review|urlize}}
-{% endif %}... |
Add __init__ to modules doc
Add a description for the module __init__() function, as suggested
in | @@ -209,6 +209,29 @@ default configuration file for the minion contains the information and format
used to pass data to the modules. :mod:`salt.modules.test`,
:file:`conf/minion`.
+.. _module_init:
+
+``__init__`` Function
+---------------------
+
+If you want your module to have different execution modes based on mini... |
Fix instantiating a xml.etree.ElementTree.Element
The methods removed by
are abstract in `MutableSequence` and therefore must be specified on `Element`. | # Stubs for xml.etree.ElementTree
-from typing import Any, Callable, Dict, Generator, IO, ItemsView, Iterable, Iterator, KeysView, List, MutableSequence, Optional, Sequence, Text, Tuple, TypeVar, Union
+from typing import Any, Callable, Dict, Generator, IO, ItemsView, Iterable, Iterator, KeysView, List, MutableSequence... |
Refreshing numel on a stride update is pointless.
Summary:
Pull Request resolved:
Test Plan: Imported from OSS | @@ -677,7 +677,6 @@ struct C10_API TensorImpl : public c10::intrusive_ptr_target {
virtual void set_stride(int64_t dim, int64_t new_stride) {
TORCH_CHECK(allow_tensor_metadata_change(), "set_stride ", err_msg_tensor_metadata_change_not_allowed);
strides_[dim] = new_stride;
- refresh_numel();
refresh_contiguous();
}
|
AntiSpam: create tasks in a safer manner
Name the tasks and use `scheduling.create_task` to ensure exceptions
are caught. | @@ -18,7 +18,7 @@ from bot.constants import (
)
from bot.converters import Duration
from bot.exts.moderation.modlog import ModLog
-from bot.utils import lock
+from bot.utils import lock, scheduling
from bot.utils.messages import format_user, send_attachments
@@ -115,7 +115,7 @@ class AntiSpam(Cog):
self.message_deletio... |
llvm/builtins: Flip order of loops in transposed multiplication
Improves memory access pattern and therefore performance. | @@ -93,8 +93,8 @@ def setup_vxm_transposed(ctx):
b1.store(ctx.float_ty(0), ptr)
# Multiplication
- with helpers.for_loop_zero_inc(builder, y, "vxm_outer") as (b1, index_i):
- with helpers.for_loop_zero_inc(b1, x, "vxm_inner") as (b2, index_j):
+ with helpers.for_loop_zero_inc(builder, x, "trans_vxm_outer") as (b1, inde... |
Change summoner example function name, add params
Changed the function name to better reflect its purpose
Moved summoner name to argument, added region
Moved further examples for getting a summoner to a comment which
outlines their purpose | import cassiopeia as cass
from cassiopeia.core import Summoner
-def test_cass():
- name = "Kalturi"
- me = Summoner(name=name)
- print("Name:", me.name)
- print("Id:", me.id)
- print("Account id:", me.account.id)
- print("Level:", me.level)
- print("Revision date:", me.revision_date)
- print("Profile icon id:", me.prof... |
Create Python workunit value using separate function
Move the logic to create a Python dict with the workunit fields on it to
a separate function. This will be helpful for adding asynchronous
Workunit reporting shortly. | @@ -52,6 +52,7 @@ use logging::{Destination, Logger};
use rule_graph::{GraphMaker, RuleGraph};
use std::any::Any;
use std::borrow::Borrow;
+use std::collections::HashSet;
use std::ffi::CStr;
use std::fs::File;
use std::io;
@@ -61,6 +62,7 @@ use std::panic;
use std::path::{Path, PathBuf};
use std::time::Duration;
use te... |
Grab() and Retrieve() Camera Interface
Using grab and retrieve() rather than read(), with additional checks. | @@ -492,7 +492,13 @@ class CameraInterface(wx.Frame, Module):
if self.device is None:
self.camera_lock.release()
return
- ret, frame = self.capture.read()
+ ret = self.capture.grab()
+ if not ret:
+ wx.CallAfter(self.camera_error_webcam)
+ self.capture = None
+ self.camera_lock.release()
+ return
+ ret, frame = self.ca... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.