message stringlengths 13 484 | diff stringlengths 38 4.63k |
|---|---|
fix: detect the external interface
This commit replaces eno1 with the
correct interface nem of the router gateway in
the OVN deployment. | # Create a logical router to connect the VMs switch
#
ovn-nbctl lr-add lr0
- ovn-nbctl lrp-add lr0 lr0-sw0 00:00:00:65:77:09 {{ kubeinit_inventory_network_gateway }}/24
+ ovn-nbctl lrp-add lr0 lr0-sw0 00:00:00:65:77:09 {{ kubeinit_inventory_network_gateway }}/{{ kubeinit_inventory_network_cidr }}
ovn-nbctl lsp-add sw0 ... |
dispersion_analysis.py: free unused memory after each step
allows running several examples in parallel without hogging memory | @@ -10,6 +10,7 @@ from __future__ import absolute_import
import os
import sys
sys.path.append('.')
+import gc
import functools
from copy import copy
from argparse import ArgumentParser, RawDescriptionHelpFormatter
@@ -481,6 +482,8 @@ def main():
save_eigenvectors(eigenshapes_filename % iv, svecs, pb)
+ gc.collect()
+
l... |
Update exchange_powershell_abuse_via_ssrf.yml
Resolving | name: Exchange PowerShell Abuse via SSRF
id: 29228ab4-0762-11ec-94aa-acde48001122
-version: 1
-date: '2021-08-27'
+version: 2
+date: '2022-10-02'
author: Michael Haag, Splunk
type: TTP
datamodel: []
@@ -20,7 +20,7 @@ description: 'This analytic identifies suspicious behavior related to ProxyShell
Review the source atte... |
interface: fix DeprecationWarnings re SSLContext
```
...\electrum\electrum\interface.py:585: DeprecationWarning: ssl.SSLContext() without protocol argument is deprecated.
sslc = ssl.SSLContext()
...\electrum\electrum\interface.py:585: DeprecationWarning: ssl.PROTOCOL_TLS is deprecated
sslc = ssl.SSLContext()
``` | @@ -495,8 +495,8 @@ class Interface(Logger):
sslc = ca_sslc
else:
# pinned self-signed cert
- sslc = ssl.create_default_context(ssl.Purpose.SERVER_AUTH, cafile=self.cert_path)
- sslc.check_hostname = 0
+ sslc = ssl.create_default_context(purpose=ssl.Purpose.SERVER_AUTH, cafile=self.cert_path)
+ sslc.check_hostname = Fa... |
Fix broken test_discovery_with_libvirt_error
Mock only small parts of libvirt not the whole library,
when testing libvirt discovery.
Closes-Bug: | @@ -130,6 +130,9 @@ class FakeManualInstanceConn(object):
def listAllDomains(self):
return [FakeManualInstanceDomain()]
+ def isAlive(self):
+ return False
+
class TestDiscovery(base.BaseTestCase):
@@ -288,14 +291,13 @@ class TestDiscovery(base.BaseTestCase):
self.client.instance_get_all_by_host.call_args_list)
@testto... |
update regex for eos processName
some EOS processNames contain '-' for example:
ProcMgr-worker | @@ -9,7 +9,7 @@ prefixes:
date: (\w+ +\d+)
time: (\d\d:\d\d:\d\d)
host: ([^ ]+)
- processName: (\w+)
+ processName: ([\w-]+)
tag: ([\w-]+)
line: '{date} {time} {host} {processName}: %{tag}'
# ISO8601 date-time format
@@ -17,6 +17,6 @@ prefixes:
date: (\d{4}-\d{2}-\d{2})
time: (\d{2}:\d{2}:\d{2}[\.\d{3}]?[\+|-]\d{2}:\d{... |
MAINT: Decrement stacklevel to 2 for public linalg funcs
[ci skip] | @@ -176,7 +176,7 @@ def solve(a, b, sym_pos=False, lower=False, overwrite_a=False,
if debug is not None:
warn('Use of the "debug" keyword is deprecated '
'and this keyword will be removed in future '
- 'versions of SciPy.', DeprecationWarning, stacklevel=3)
+ 'versions of SciPy.', DeprecationWarning, stacklevel=2)
# Ge... |
Make one of the slowest io.fits tests faster by generating fewer random numbers
But use a random seed so the test cannot become flaky (even if very
unlikely) because the quantization only loses precision if the noise in
each tile is "high enough". | @@ -1506,7 +1506,8 @@ class TestCompressedImage(FitsTestCase):
def test_lossless_gzip_compression(self):
"""Regression test for https://aeon.stsci.edu/ssb/trac/pyfits/ticket/198"""
- noise = np.random.normal(size=(1000, 1000))
+ rng = np.random.RandomState(seed=42)
+ noise = rng.normal(size=(20, 20))
chdu1 = fits.CompI... |
soundd: increase upper bound for volume level
Raise soundd upper limit | @@ -48,7 +48,7 @@ void Sound::update() {
// scale volume using ambient noise level
if (sm.updated("microphone")) {
- float volume = util::map_val(sm["microphone"].getMicrophone().getFilteredSoundPressureWeightedDb(), 30.f, 56.f, 0.f, 1.f);
+ float volume = util::map_val(sm["microphone"].getMicrophone().getFilteredSound... |
Report more info from and robustify the ToyService
Maybe this will make it not fail and fix | @@ -18,6 +18,7 @@ from builtins import range
import codecs
import os
import random
+import traceback
import unittest
# Python 3 compatibility imports
@@ -277,7 +278,7 @@ class ToyService(Job.Service):
try:
while True:
if terminate.isSet(): # Quit if we've got the terminate signal
- logger.debug("Demo service worker bei... |
Added functions.
Added subgeo2gei, subgei2geo. | @@ -711,3 +711,67 @@ def subsm2gsm(time_in, data_in):
# gvector = np.column_stack((xgsm, ygsm, zgsm))
return [xgsm, ygsm, zgsm]
+
+
+def subgei2geo(time_in, data_in):
+ """
+ Transform data from GEI to GEO.
+
+ Parameters
+ ----------
+ time_in: list of float
+ Time array.
+ data_in: list of float
+ Coordinates in GEI.... |
fix mignore rules not being cleared when...
... mignore file is deleted | @@ -568,12 +568,12 @@ class UpDownSync:
@property
def mignore_rules(self):
- if get_ctime(self.mignore_path) > self._mignore_load_time:
+ if get_ctime(self.mignore_path) != self._mignore_ctime_loaded:
self._mignore_rules = self._load_mignore_rules_form_file()
return self._mignore_rules
def _load_mignore_rules_form_file... |
remove setup_requires
# 163 this was causing issues because pip/setuptools ignores a given index url for setup_requires | @@ -56,12 +56,6 @@ class DeployPypi(Command):
msg="Uploading package to pypi")
-SETUP_REQUIRES = [
- "setuptools>=36",
- "pytest-runner",
-]
-
-
TESTS_REQUIRE = [
"pytest>=3.1.0",
"pytest-cov",
@@ -74,8 +68,6 @@ TESTS_REQUIRE = [
setup(
name="tavern",
- setup_requires=SETUP_REQUIRES,
-
cmdclass={
"docs": BuildDocs,
"up... |
GafferArnold::ParameterHandler : Allow overriding to a ClosurePlug
using gaffer.plugType | @@ -234,6 +234,7 @@ const AtString g_gafferPlugTypeArnoldString( "gaffer.plugType" );
const AtString g_FloatPlugArnoldString( "FloatPlug" );
const AtString g_Color3fPlugArnoldString( "Color3fPlug" );
const AtString g_Color4fPlugArnoldString( "Color4fPlug" );
+const AtString g_ClosurePlugArnoldString( "ClosurePlug" );
}... |
Deseasonify: adjust 'Merrybot' to 'MerryBot'
For the sake of consistency - all other seasonal bot names have
the B capitalized. | @@ -33,7 +33,7 @@ class Christmas(SeasonBase):
"""Branding for December."""
season_name = "Festive season"
- bot_name = "Merrybot"
+ bot_name = "MerryBot"
colour = Colours.soft_red
description = (
|
add pudl_out access to the gen/pm/fuel ownership scaled something...
i hate it... but it does indeed work. | @@ -823,6 +823,35 @@ class PudlTabl(object):
)
return self._dfs["gen_allocated_eia923"]
+ def gen_pm_fuel_ownership(self, update=False):
+ """
+ WIP.
+
+ This is what is needed to generate a ownership scaled output at the
+ generator/prime_mover/fuel level... But this shouldn't really live here.
+ """
+ if update or se... |
Reflect the fact that AWS free tier is not enough
The AWS free tier covers only a t2.micro instance, which is unsufficient (nowadays?) for installing TLJH. | @@ -14,9 +14,6 @@ Prerequisites
#. An Amazon Web Services account.
- The `AWS free tier <https://aws.amazon.com/free/>`_ is fully
- capable of running a minimal littlest Jupyterhub for testing purposes.
-
If asked to choose a default region, choose the one closest to the majority
of your users.
|
Handled case where RPC may not exist for a given RPC.
The current implementation prints "invalid command: " for both an invalid command and cases where RPC might not exist but command is valid | @@ -458,6 +458,8 @@ class _Connection(object):
encode = None if sys.version < '3' else 'unicode'
return etree.tostring(rsp[0], encoding=encode)
return rsp[0]
+ except TypeError:
+ return "No RPC equivalent found for: " + command
except:
return "invalid command: " + command
|
ceph-rgw: add cluster parameter on ceph_ec_profile
introduced a regression with the ceph_ec_profile module call in
the ceph-rgw role due the missing cluster module parameter. | - name: create ec profile
ceph_ec_profile:
name: "{{ item.value.ec_profile }}"
+ cluster: "{{ cluster }}"
k: "{{ item.value.ec_k }}"
m: "{{ item.value.ec_m }}"
delegate_to: "{{ groups[mon_group_name][0] }}"
|
Bump minimum version of galaxy-lib
Follow common-workflow-language/cwltool#982
Resolve software requirements using Environment Modules | @@ -36,7 +36,7 @@ def runSetup():
apacheLibcloud = 'apache-libcloud==2.2.1'
cwltool = 'cwltool==1.0.20180820141117'
schemaSalad = 'schema-salad>=2.6, <3'
- galaxyLib = 'galaxy-lib==17.9.3'
+ galaxyLib = 'galaxy-lib==17.9.9'
htcondor = 'htcondor>=8.6.0'
dill = 'dill==0.2.7.1'
six = 'six>=1.10.0'
|
ENH: stats.dlaplace.rvs improvements
This commit incorporates the following recommendations:
1) Add references in the comments
2) Use np.expm1 to improve accuracy | @@ -941,13 +941,19 @@ class dlaplace_gen(rv_discrete):
# The discrete Laplace is equivalent to the two-sided geometric
# distribution with PMF:
# f(k) = (1 - alpha)/(1 + alpha) * alpha^abs(k)
+ # Reference:
+ # https://www.sciencedirect.com/science/
+ # article/abs/pii/S0378375804003519
# Furthermore, the two-sided geo... |
Temporarily add vcrpy!=2.0.0 as requirement for nose-detecthttp
nose-detecthttp requires vcrpy. vcrpy 2.0.0 has had a breaking change which
makes it incompatible with Python<3.5.[1]
The root issue should be fixed upstream, but till then avoid vcrpy 2.0.0.
[1]: | @@ -77,6 +77,8 @@ commands =
deps =
nose
nose-detecthttp
+ # Temporary requirement. Should be fixed in vcrpy or required in nose-detecthttp.
+ vcrpy!=2.0.0
unicodecsv
mock
@@ -91,6 +93,8 @@ deps =
beautifulsoup4
nose
nose-detecthttp>=0.1.3
+ # Temporary requirement. Should be fixed in vcrpy or required in nose-detectht... |
Removed `compute_callrate_mt` default value
since it triggered `hl.init()` | @@ -162,7 +162,7 @@ def get_qc_mt(
def compute_callrate_mt(
mt: hl.MatrixTable,
- intervals_ht: hl.Table = hl.import_locus_intervals(exome_calling_intervals_path),
+ intervals_ht: hl.Table,
bi_allelic_only: bool = True,
autosomes_only: bool = True
) -> hl.MatrixTable:
@@ -177,7 +177,7 @@ def compute_callrate_mt(
contai... |
fix error while loading cv2.VideoCapture
* test=develop fix error while loading cv2.VideoCapture
* test=develop
fix bug of index out of range in SampleFrames
* fix bug | import os
import sys
+import cv2
import math
import random
import functools
@@ -386,7 +387,6 @@ def video_loader(frames, nsample, seglen, mode):
def mp4_loader(filepath, nsample, seglen, mode):
cap = cv2.VideoCapture(filepath)
videolen = int(cap.get(cv2.CAP_PROP_FRAME_COUNT))
- average_dur = int(videolen / nsample)
sam... |
DOC: special: Set Axes3D rect to avoid clipping labels in plot.
This fixes the clipping of the axis ticks and labels in the
Bessel function plot in the `special` tutorial. | @@ -50,7 +50,7 @@ drum head anchored at the edge:
>>> from mpl_toolkits.mplot3d import Axes3D
>>> from matplotlib import cm
>>> fig = plt.figure()
- >>> ax = Axes3D(fig)
+ >>> ax = Axes3D(fig, rect=(0, 0.05, 0.95, 0.95))
>>> ax.plot_surface(x, y, z, rstride=1, cstride=1, cmap='RdBu_r', vmin=-0.5, vmax=0.5)
>>> ax.set_x... |
custom fields documentation missing word "more"
The "one or object types" looks like it is missing the word "more". | @@ -24,7 +24,7 @@ Marking a field as required will force the user to provide a value for the field
The filter logic controls how values are matched when filtering objects by the custom field. Loose filtering (the default) matches on a partial value, whereas exact matching requires a complete match of the given string t... |
Ability to add a comment
New method add_comment | @@ -316,6 +316,17 @@ class Confluence(AtlassianRestAPI):
params['start'] = start
return (self.get(url, params=params) or {}).get('results')
+ def add_comment(self, page_id, text):
+ """
+ Add comment into page
+ :param page_id
+ :param text
+ """
+ data = {'type': 'comment',
+ 'container': {'id': page_id, 'type': 'page... |
tests: use osd ids instead of device name in ooo_collocation
on master, it doesn't make sense anymore to use device name, we should
use osd id instead. | @@ -60,12 +60,6 @@ def setup(host):
if cmd.rc == 0:
osd_ids = cmd.stdout.rstrip("\n").split("\n")
osds = osd_ids
- if docker and fsid == "6e008d48-1661-11e8-8546-008c3214218a":
- osds = []
- for device in ansible_vars.get("devices", []):
- real_dev = host.run("sudo readlink -f %s" % device)
- real_dev_split = real_dev.... |
Fix error during sa-managed-object saving
HG--
branch : bugfixes/sa_mo_save-error | @@ -58,7 +58,7 @@ class TagsExpression(object):
def as_sql(self, qn, connection):
t = ",".join(str(adapt(x)) for x in self.tags)
- return "ARRAY[%s] <@ %s.%s" % (t, self.table, qn("tags")), []
+ return "ARRAY[%s] <@ \"%s\".%s" % (t, self.table, qn("tags")), []
class TagsNode(tree.Node):
|
Ensure that Qtile.finalize() is called on restart
For issue | @@ -81,6 +81,7 @@ class Qtile(command.CommandObject):
"""This object is the `root` of the command graph"""
def __init__(self, config, displayName=None, fname=None, no_spawn=False, state=None):
+ self._restart = False
self.no_spawn = no_spawn
self._eventloop = None
@@ -339,6 +340,9 @@ class Qtile(command.CommandObject):... |
Add warning if num_jobs >1 and torch.num_threads >1
+ in some cases this can result in a endless computation
This warning makes the user aware of this | @@ -27,6 +27,7 @@ from typing import (
)
import numpy as np
+import torch
from intervaltree import Interval, IntervalTree
from tqdm.auto import tqdm
from typing_extensions import Literal
@@ -4055,6 +4056,13 @@ class CutSet(Serializable, Sequence[Cut]):
)
executor = None
+ if num_jobs > 1 and torch.get_num_threads() > 1... |
Correct a mistake for URL description
Link for bug-tracker in "Virtual instance reservation" section is
displayed improperly.
Correct it by adding new line before it. | @@ -32,6 +32,7 @@ Virtual instance reservation
**Note** virtual instance reservation feature is not available in current
release. Expected to be available in the future (`bug tracker`_).
+
.. _bug tracker: https://blueprints.launchpad.net/blazar/+spec/new-instance-reservation
Virtual instance reservation mostly looks l... |
Update capitalization for OptiFine capes
Changed from `optifine` to `OptiFine` | @@ -101,7 +101,7 @@ class MinecraftData(commands.Cog):
@minecraft.group(invoke_without_command=True)
@checks.bot_has_permissions(embed_links=True)
async def cape(self, ctx, player: MCPlayer):
- """Get minecraft capes by nickname"""
+ """Get Minecraft capes by nickname"""
try:
await self.session.get(
f"https://crafatar.... |
pil_to_tensor accimage backend return uint8
accimage always stores images as uint8, so let's be compatible with the internal representation. Tests were failing without this as it would return a float32 image normalized between 0-1 | @@ -155,7 +155,8 @@ def pil_to_tensor(pic):
raise TypeError('pic should be PIL Image. Got {}'.format(type(pic)))
if accimage is not None and isinstance(pic, accimage.Image):
- nppic = np.zeros([pic.channels, pic.height, pic.width], dtype=np.float32)
+ # accimage format is always uint8 internally, so always return uint8... |
Generic API: make Name_Map tagged
This is just for the convenience of using the dot notation when calling
its lookup primitives.
TN: | @@ -528,7 +528,7 @@ package Langkit_Support.Generic_API.Introspection is
-- Name maps --
---------------
- type Name_Map is private;
+ type Name_Map is tagged private;
-- Map from names to enum types, enum values, struct types and struct
-- members for a given casing convention and a given language.
|
Remove link
A small documentation fix that refers to the URL instead of the local file that has to be cleaned up. | @@ -198,7 +198,7 @@ Ray has experimental support for machines running Apple Silicon (such as M1 macs
* ``bash Miniforge3-MacOSX-arm64.sh``
- * ``rm https://github.com/conda-forge/miniforge/releases/latest/download/Miniforge3-MacOSX-arm64.sh # Cleanup.``
+ * ``rm Miniforge3-MacOSX-arm64.sh # Cleanup.``
#. Ensure you're ... |
Update honggfuzz
This version adds splicing
(https://github.com/google/honggfuzz/commit/150cbd741c7346571e5a9c47b7819d2e37500a64)
which rather significantly improves coverage in some tests (e.g. in
sqlite3) | @@ -23,14 +23,14 @@ RUN apt-get update -y && \
libblocksruntime-dev \
liblzma-dev
-# Download honggfuz version 2.1 + 539ea048d6273864e396ad95b08911c69cd2ac51
+# Download honggfuz version 2.1 + 8c0808190bd10ae63b26853ca8ef29e5e17736fe
# Set CFLAGS use honggfuzz's defaults except for -mnative which can build CPU
# depend... |
Update Alabama.md
More links & tagging Alabama | During an altercation with protesters, a woman falls to the ground and other protesters are pushed away after trying to help her, while an officer steps on and trips over the woman.
+tags: baton, kick, beat, push, shove
+
id: al-huntsville-1
**Links**
@@ -15,6 +17,8 @@ id: al-huntsville-1
Police officer exits his vehic... |
langkit.utils: make dispatch_on_type work for instances
TN: | @@ -268,30 +268,38 @@ def type_check_instance(klass):
return lambda t: isinstance(t, klass)
-def dispatch_on_type(type, type_to_action_assocs, exception=None):
+def dispatch_on_type(typ_or_inst, type_to_action_assocs, exception=None):
"""
- Dispatch on the type parameter, execute the corresponding action
- depending on... |
LiteralExpr.__repr__: fix to handle None static types
TN: | @@ -2637,8 +2637,10 @@ class LiteralExpr(BasicExpr):
'1-literal': self.literal}
def __repr__(self):
- return '<LiteralExpr {} ({})>'.format(self.template,
- self.type.name().camel)
+ return '<LiteralExpr {} ({})>'.format(
+ self.template,
+ self.type.name().camel if self.static_type else '<no type>'
+ )
class NullExpr(... |
Fixing DistilBert error message
Fixing error message | @@ -166,7 +166,7 @@ class DistilBertTokenizer(PreTrainedTokenizer):
if not os.path.isfile(vocab_file):
raise ValueError(
f"Can't find a vocabulary file at path '{vocab_file}'. To load the vocabulary from a Google pretrained"
- " model use `tokenizer = BertTokenizer.from_pretrained(PRETRAINED_MODEL_NAME)`"
+ " model use... |
Update health_api.py
Adding docs to health endpoint. | @@ -18,7 +18,9 @@ class HealthApi(BaseApi):
router = app.router
router.add_get('/health', security.authentication_exempt(self.get_health_info))
- @aiohttp_apispec.docs(tags=["health"])
+ @aiohttp_apispec.docs(tags=['health'],
+ summary='Health endpoints returns the status of CALDERA',
+ description='Returns the status ... |
docs: Emphasise WIP PRs in git-guide.md.
Fiuxes | @@ -784,7 +784,9 @@ complicated rebase.
When you're ready for feedback, submit a pull request. At Zulip we recommend
submitting work-in-progress pull requests early and often. This allows you to
get feedback and help with your bugfix or feature. Prefix work-in-progress pull
-requests with **[WIP]**.
+requests with **[W... |
Temporarily disable select/topk/kthvalue AD
Summary:
Temporarily disable them for perf consideration. Will figure out a way to do `torch.zeros(sizes, grad.options())` in torchscript before enabling these.
Pull Request resolved: | @@ -166,30 +166,30 @@ const std::vector<std::string> functions = {
# FIXME: torchscript: torch.zeros(sizes, grad.options())
return torch.zeros(sizes).to(grad).scatter_(dim, indices, grad)
- def topk(self,
- k: int,
- dim: int = -1,
- largest: bool = True,
- sorted: bool = True):
- result0, result1 = torch.topk(self, k,... |
Adding support for non-file SVGs
source.setter now uses Svg.set_tree() to set the tree and execute .reload()
Svg() can now reloaded/initiated using set_tree(tree) when source is not a file.
Svg() Constructor therefore does not require source parameter - which now defaults to None.
source.setter is only executed during ... | @@ -366,7 +366,7 @@ cdef class Svg(RenderContext):
"""Svg class. See module for more informations about the usage.
"""
- def __init__(self, source, anchor_x=0, anchor_y=0,
+ def __init__(self, source=None, anchor_x=0, anchor_y=0,
bezier_points=BEZIER_POINTS, circle_points=CIRCLE_POINTS,
color=None):
'''
@@ -420,6 +420,... |
chore: Drop duplicate event method
This particular definition was chosen since there was no corresponding
subscribe method with the same key generation logic | @@ -41,7 +41,6 @@ io.use((socket, next) => {
sid: socket.sid,
})
.then((res) => {
- console.log(`User ${res.body.message.user} found`);
socket.user = res.body.message.user;
socket.user_type = res.body.message.user_type;
})
|
[nightly] Change the logs and metrics for serve ha test
Serve HA tests have been running for two days and they failed:
QPS low (350)
Availability low (99.94%).
This PR reduced the availability metrics to 99.9% and print logs for debugging. | @@ -319,7 +319,7 @@ def get_stats():
failures = float(data[-1][18]) - float(data[offset][18])
# Available, through put
- return (total - failures) / total, total / (end_time - start_time)
+ return (total - failures) / total, total / (end_time - start_time), data
def main():
@@ -333,11 +333,17 @@ def main():
duration = ... |
Add `free` to list description
There has been some recent interest in adding paid services to this list, so adding `free` in the project's description to clarify the mission of the project. | # Public APIs [](https://travis-ci.org/toddmotto/public-apis)
-A collective list of JSON APIs for use in web development.
+A collective list of free JSON APIs for use in web development.
For information on contributing to this project, please see the [... |
quickstart -> don't throw exception if elected to avoid installing
samples | @@ -226,6 +226,7 @@ def quickstart():
print("Would you like to download & view samples? [Y]/n:")
i = input()
samples = True if not len(i) or i.lower in ("y", "yes") else False
+ sample_location = None
if samples:
pwd = pathlib.Path().absolute()
print(f"Select location for sample files [{pwd}/liu_samples]:")
@@ -256,6 +... |
fixed tests and hopefully increased coverage.
fixed tests and hopefully increased coverage. | @@ -166,6 +166,9 @@ def test_plantcv_analyze_bound():
# Test with debug='plot', line position that will trigger -y, and two channel object
_ = pcv.analyze_bound(img=img, imgname="img", obj=object_contours[0], mask=mask, line_position=1, device=0,
debug="plot", filename=False)
+ # Test with debug='plot', line position t... |
[client] Fix regression in
I typoed cleanup() to clean().
TBR=qyearsley@chromium.org | @@ -1221,7 +1221,7 @@ def main(args):
min_free_space=options.min_free_space,
max_age_secs=MAX_AGE_SECS)
for c in caches:
- c.clean()
+ c.cleanup()
return 0
if not options.no_clean:
|
Update timestamp
Update timestamp to add endpoint_url field on migrate | "issingle": 1,
"istable": 0,
"max_attachments": 0,
- "modified": "2018-08-07 04:12:43.691760",
+ "modified": "2019-02-25 04:12:43.691760",
"modified_by": "Administrator",
"module": "Integrations",
"name": "S3 Backup Settings",
|
FIX: destroy cluster
fixed destroy cluster option | @@ -248,9 +248,7 @@ def run(args):
tcs.append(tc)
break
if test.get('destroy-cluster') is True:
- (nodename, uid, node_num, _, _) = ceph_nodes[0].hostname.split('-')
- cleanup_name = nodename + "-" + uid
- cleanup_ceph_nodes(osp_cred, name=cleanup_name)
+ cleanup_ceph_nodes(osp_cred)
if test.get('recreate-cluster') is ... |
[Tutorial] Fix vta vision detection tutorial 'sphinx' style error.
Issue:
Some bash code in this tutorial does not get syntax highlighting
because of the format errors.
Solution:
Fix the 'sphinx' 'rst' style error. | @@ -39,7 +39,7 @@ tensorization in the core) to massage the compute graph for the hardware target.
# YOLO-V3-tiny Model with Darknet parsing have dependancy with CFFI and CV2 library,
# we need to install CFFI and CV2 before executing this script.
#
-# pip3 install "Pillow<7"
+# .. code-block:: bash
#
# pip3 install cf... |
fixed a few documentation bugs
there was a warning of header underline not being long enough
and code type graphql was being used intead of json | @@ -78,7 +78,7 @@ We should receive:
}
InputFields and InputObjectTypes
-----------------------
+----------------------------------
InputFields are used in mutations to allow nested input data for mutations
To use an InputField you define an InputObjectType that specifies the structure of your input data
@@ -114,7 +114... |
Add CAPABILITY_NAMED_IAM for Create and Update of Cluster
Add CAPABILITY_NAMED_IAM for create, update of the cluster.
Manually tested the change by creating and Updating a cluster. | @@ -32,7 +32,7 @@ class CfnClient(Boto3Client):
return self._client.create_stack(
StackName=stack_name,
TemplateBody=template_body,
- Capabilities=["CAPABILITY_IAM"],
+ Capabilities=["CAPABILITY_IAM", "CAPABILITY_NAMED_IAM"],
DisableRollback=disable_rollback,
Tags=tags,
)
@@ -50,7 +50,7 @@ class CfnClient(Boto3Client):... |
Remove unneeded directory literals
resolves | @@ -455,12 +455,6 @@ class CWLJob(Job):
cwltool.stdfsaccess.StdFsAccess(outdir),
recursive=True))
- def make_dir_literal(obj):
- if "location" in obj and obj["location"].startswith("file:"):
- obj["location"] = "_:" + str(uuid.uuid4())
-
- adjustDirObjs(output, make_dir_literal)
-
adjustFileObjs(output, functools.parti... |
Fix lint failure.
Introduced in | @@ -33,7 +33,8 @@ from test_utils.system import unique_resource_id
USER_PROJECT = os.environ.get('GOOGLE_CLOUD_TESTS_USER_PROJECT')
-RUNNING_IN_VPCSC = os.getenv('GOOGLE_CLOUD_TESTS_IN_VPCSC', '').lower() == 'true'
+RUNNING_IN_VPCSC = os.getenv(
+ 'GOOGLE_CLOUD_TESTS_IN_VPCSC', '').lower() == 'true'
def _bad_copy(bad_r... |
Add missing ws separator between words
This is to add missing ws separator between words, usually
in log messages. | @@ -217,8 +217,9 @@ def start_shellinabox_console(node_uuid, port, console_cmd):
raise loopingcall.LoopingCallDone()
if (time.time() > expiration):
- locals['errstr'] = _("Timeout while waiting for console subprocess"
- "to start for node %s.") % node_uuid
+ locals['errstr'] = (_("Timeout while waiting for console "
+ ... |
Disabling umap reproducibility tests for cuda 11.4
Authors:
- Corey J. Nolet (https://github.com/cjnolet)
Approvers:
- Dante Gama Dessavre (https://github.com/dantegd)
URL: | @@ -298,8 +298,14 @@ class UMAPParametrizableTest : public ::testing::Test {
assertions(handle, X_d.data(), e1, test_params, umap_params);
+ // v21.08: Reproducibility looks to be busted for CTK 11.4. Need to figure out
+ // why this is happening and re-enable this.
+#if CUDART_VERSION == 11040
+ return;
+#else
// Disa... |
update for ALLOWED_FILTERS
updated ALLOWED_FILTERS for Movies, Shows, and Photos sections. | @@ -649,7 +649,8 @@ class MovieSection(LibrarySection):
"""
ALLOWED_FILTERS = ('unwatched', 'duplicate', 'year', 'decade', 'genre', 'contentRating',
'collection', 'director', 'actor', 'country', 'studio', 'resolution',
- 'guid', 'label')
+ 'guid', 'label', 'writer', 'producer', 'subtitleLanguage', 'audioLanguage',
+ 'l... |
Make untruth work with multiple dimensions
Closes | @@ -4955,6 +4955,18 @@ def untruth(lhs, ctx):
(any) -> [int(x in a) for x in range(max(a))]
"""
lhs = iterable(lhs, ctx=ctx)
+ if any(type(x) != int for x in lhs):
+ lhs = [iterable(x, ctx=ctx) for x in lhs]
+ dimensions = len(lhs[0])
+ maxCoords = [max(x[i] for x in lhs) + 1 for i in range(dimensions)]
+ deep_listify ... |
billing: Don't use data attribute for iterating through subscriptions.
Iterating through data attribute is same as iterating through
subscriptions. | @@ -108,7 +108,7 @@ def get_upcoming_invoice(stripe_customer_id: str) -> stripe.Invoice:
def extract_current_subscription(stripe_customer: stripe.Customer) -> Any:
if not stripe_customer.subscriptions:
return None
- for stripe_subscription in stripe_customer.subscriptions.data:
+ for stripe_subscription in stripe_custo... |
Removed Picatic and updated Eventbrite
Removed Picatic (acquired by Eventbrite) and updated Eventbrite link. | @@ -684,8 +684,7 @@ API | Description | Auth | HTTPS | CORS |
### Events
API | Description | Auth | HTTPS | CORS |
|---|---|---|---|---|
-| [Eventbrite](https://www.eventbrite.com/developer/v3/) | Find events | `OAuth` | Yes | Unknown |
-| [Picatic](http://developer.picatic.com/?utm_medium=web&utm_source=github&utm_cam... |
ENH: added utility import
Imported get_mapped_value to the utils namespace. | @@ -11,6 +11,7 @@ from pysat.utils._core import display_available_instruments
from pysat.utils._core import display_instrument_stats
from pysat.utils._core import generate_instrument_list
from pysat.utils._core import listify
+from pysat.utils._core import get_mapped_value
from pysat.utils._core import load_netcdf4
fro... |
Update README.md
Remove support email ID as that channel is not active anymore. | @@ -181,4 +181,4 @@ For each of the above data sources
## References and support
-* For feedback and support reach out to your TAM or gcp-co-dashboard@google.com
+* For feedback and support reach out to your TAM
|
Fixes type hint to account for include_cursor
Test Plan: Unit
Reviewers: prha | import warnings
from abc import ABC, abstractmethod, abstractproperty
-from typing import Callable, Iterable, List, Optional
+from typing import Callable, Iterable, List, Optional, Tuple, Union
import pyrsistent
from dagster.core.definitions.events import AssetKey
@@ -124,7 +124,7 @@ def get_asset_events(
ascending: bo... |
Update molecule.charge to be float in ASEAtomsAdaptor
This is what pymatgen uses | @@ -190,7 +190,7 @@ class AseAtomsAdaptor:
cls = Molecule if cls is None else cls
molecule = AseAtomsAdaptor.get_structure(atoms, cls=cls)
- molecule.charge = int(np.sum(atoms.get_initial_charges()))
+ molecule.charge = np.sum(atoms.get_initial_charges())
molecule.spin_multiplicity = int(np.sum(atoms.get_initial_magnet... |
Fixed --no-mouse parameter message
`--no-mouse` is deprecated. Changed parameter to `--set console_mouse=false` | @@ -294,7 +294,7 @@ class Window(urwid.Frame):
if not k:
if args[1] == "mouse drag":
signals.status_message.send(
- message = "Hold down fn, shift, alt or ctrl to select text or use the --no-mouse parameter.",
+ message = "Hold down fn, shift, alt or ctrl to select text or use the --set console_mouse=false parameter.",... |
Woraround to prevent a runtime error in Linux
Woraround to avoid a "RuntimeError: no access to protected functions or
signals for objects not created from Python" | from qtpy.QtGui import QImage, QPixmap, QPainter
from qtpy.QtWidgets import (QApplication, QCheckBox, QHBoxLayout, QMenu,
QVBoxLayout, QWidget, QGridLayout, QFrame,
- QScrollArea, QPushButton, QSizePolicy, QSpinBox,
- QSplitter, QStyleOptionSlider, QStyle)
+ QScrollArea, QPushButton, QScrollBar, QSizePolicy,
+ QSpinBox... |
fix dbnsfp
google drive interface keeps changing - switched to ftp server dbnsfp source | @@ -7,15 +7,9 @@ recipe:
recipe_type: bash
recipe_cmds:
- |
- # Uses Google Drive for faster download with tricks from
- # http://stackoverflow.com/a/38937732/252589
- ggID='0B60wROKy6OqcRmZLbWd4SW5Yc1U'
- ggURL='https://drive.google.com/uc?export=download'
mkdir -p variation
cd variation
- filename="$(curl -k -sc tmp-... |
popovers: New function for hiding all user info popovers.
New function `hide_all_user_info_popovers` closes all user info
popovers, instead of calling multiple functions everytime to close
user info popover now we can just call this new function.
This commit is a follow-up of | @@ -723,6 +723,12 @@ export function hide_user_sidebar_popover() {
}
}
+function hide_all_user_info_popovers() {
+ hide_message_info_popover();
+ hide_user_sidebar_popover();
+ hide_user_info_popover();
+}
+
function focus_user_info_popover_item() {
// For now I recommend only calling this when the user opens the menu ... |
[docs] Reduce chunk size for algolia records
Summary: Title
Test Plan: Run a deploy, was successful
Reviewers: max | @@ -18,12 +18,13 @@ const settings = {
};
// We are operating under an Algolia record size limit (currently 10KB). Before this changeset,
-// we were just truncating records at 5000 chars. Now we chunk each document into 10000 char
+// we were just truncating records at 5000 chars. Now we chunk each document into 8000 ... |
move disabled to call_chunks
This allows disabling states when using salt-ssh | @@ -1954,6 +1954,29 @@ class State(object):
'''
Iterate over a list of chunks and call them, checking for requires.
'''
+ # Check for any disabled states
+ disabled = {}
+ if 'state_runs_disabled' in self.opts['grains']:
+ for low in chunks[:]:
+ state_ = '{0}.{1}'.format(low['state'], low['fun'])
+ for pat in self.opt... |
Add retry for funding script
...because jsonrpc library hard-coded timeouts | @@ -23,7 +23,14 @@ class Endpoint:
async def __sendRequest(self, *args):
client = aiohttpClient(self.session, self.url)
+ # manual retry since the library has hard-coded timeouts
+ while True:
+ try:
response = await client.request(*args)
+ break
+ except:
+ print("!timeout! retrying")
+ pass
return response
async def ... |
Update extensions.md
Add a skeleton, better than nothing. | @@ -9,4 +9,16 @@ nav_order: 2
Making extensions
=================
-Coming soon...
+Start off by copying the example extension in `lnbits/extensions/example` into your own:
+```sh
+cp lnbits/extensions/example lnbits/extensions/mysuperplugin -r # Let's not use dashes or anything; it doesn't like those.
+cd lnbits/extens... |
Remove unused scaling_enabled method from adhoc provider
scaling_enabled usually lives on executors, not on providers,
and this method never seems to be invoked. | @@ -238,10 +238,6 @@ class AdHocProvider(ExecutionProvider, RepresentationMixin):
self.resources[job_id]['status'] = JobStatus(JobState.COMPLETED)
return rets
- @property
- def scaling_enabled(self):
- return True
-
@property
def label(self):
return self._label
|
Lkt lowering: handle "null" literal expressions
TN: | @@ -1324,6 +1324,10 @@ class LktTypesLoader:
elif isinstance(expr, L.NotExpr):
return E.Not(helper(expr.f_expr))
+ elif isinstance(expr, L.NullLit):
+ result_type = self.resolve_type_decl(expr.p_check_expr_type)
+ return E.No(result_type)
+
elif isinstance(expr, L.NumLit):
return E.Literal(int(expr.text))
|
mypy_primer: check conclusion field as well
Fixes
The comment workflow waits for the mypy primer to run. I think with
Github's changes to workflow running, these runs get marked as
completed, but have the conclusion "action_required".
E.g., see | @@ -47,14 +47,17 @@ jobs:
workflow_id: "mypy_primer.yml",
})
if (response) {
- return response.data.workflow_runs.find(run => run.head_sha == pr_commit_sha)
+ workflow_runs = response.data.workflow_runs
+ // Sort by reverse updated_at
+ workflow_runs.sort((a, b) => new Date(b.updated_at).getTime() - new Date(a.updated_... |
Rename variable in initialize.get_solution_stack
cr | @@ -497,19 +497,19 @@ def get_region(region_argument, interactive, force_non_interactive=False):
return region
-def get_solution_stack(solution_string):
+def get_solution_stack(platform):
# Get solution stack from config file, if exists
- if not solution_string:
+ if not platform:
try:
- solution_string = solution_stac... |
Update cls_target.py
correct mis-spelling of args. | @@ -14,7 +14,7 @@ class ClsTarget(nn.Module):
self.vocab_size = vocab_size
self.hidden_size = args.hidden_size
- self.linear_1 = nn.Linear(args.hidden_size, aargs.hidden_size)
+ self.linear_1 = nn.Linear(args.hidden_size, args.hidden_size)
self.linear_2 = nn.Linear(args.hidden_size, args.labels_num)
self.softmax = nn.L... |
ubuiltins.bool: Clarify docs.
Avoid double and triple negatives. | @@ -113,10 +113,10 @@ class bool:
def __init__(self, *args) -> None:
"""
- Returns a Boolean value, i.e. one of ``True`` or ``False``.
+ Creates a boolean value, which is ``True`` or ``False``.
- ``x`` is converted using the standard truth testing procedure. If ``x``
- is false or omitted, this returns ``False``; other... |
Load OSS Nux iframe via https
### Summary & Motivation
1. Load over https
2. Remove ugly iframe border
3. 1 second timeout.
### How I Tested These Changes
OSS Dagit:
<img width="879" alt="Screen Shot 2023-01-11 at 2 43 05 AM"
src="https://user-images.githubusercontent.com/2286579/211889039-6361aafa-1fb5-494b-a273-c688c... | @@ -20,7 +20,8 @@ export const CommunityNux = () => {
);
};
-const TIMEOUT = 5000;
+// Wait 1 second before trying to show Nux
+const TIMEOUT = 1000;
const CommunityNuxImpl: React.FC<{dismiss: () => void}> = ({dismiss}) => {
const [shouldShowNux, setShouldShowNux] = React.useState(false);
@@ -93,7 +94,7 @@ const Commun... |
Exclude json and source from Loader
Temporary measure, this should really be customisable per project and application. | @@ -152,7 +152,8 @@ class Window(QtWidgets.QDialog):
assets_model.addItem(item)
assets_model.setFocus()
- self.data["button"]["load"].show()
+ assets_model.setCurrentRow(0)
+ self.data["button"]["load"].hide()
self.data["button"]["stop"].hide()
def on_assetschanged(self, *args):
@@ -232,6 +233,10 @@ class Window(QtWidg... |
remove output_regex from supertask task.json
This field has no effect in the supertask | "multiple_choice_grade"
],
"example_input_prefix": "Context: ",
- "example_output_prefix": "\nA: ",
- "output_regex": ""
+ "example_output_prefix": "\nA: "
}
|
GDB helpers: hide special properties from completion
TN: | @@ -232,6 +232,12 @@ For instance::
prefix = word.lower()
result = [prop.name for prop in self.context.debug_info.properties
if prop.name.lower().startswith(prefix)]
+
+ # If the users didn't ask for a special property, don't suggest special
+ # properties, as they are usually just noise for them.
+ if not prefix.start... |
fix exit code bug
when running under Xvfb it is possible for the quit timer to trigger
after calling exit(1). When quit was called it was forcing exit(0).
I'm not sure why the quit timer was still triggering, but this commit
will ensure it always uses the correct exit code. | @@ -23,6 +23,7 @@ def _consoleAppExceptionHook(exc_type, exc_value, exc_traceback):
class ConsoleApp(object):
_startupCallbacks = {}
+ _exitCode = 0
def __init__(self):
om.init()
@@ -85,10 +86,11 @@ class ConsoleApp(object):
@staticmethod
def quit():
- ConsoleApp.applicationInstance().quit()
+ ConsoleApp.exit(ConsoleAp... |
doc: remove note about unstable API in RTD docs
The API is no longer unstable. | @@ -22,12 +22,6 @@ Code `examples <https://github.com/theupdateframework/python-tuf/tree/develop/ex
are available for client implementation using ngclient and a
basic repository using Metadata API.
-.. note:: Major API changes are unlikely but these APIs are not yet
- considered stable, and a higher-level repository op... |
New entry, Indiana: tear gassing protestors
Sent to me over pm on reddit. | @@ -51,3 +51,15 @@ One woman struggled against the officer restraining her, so she and her friend w
**Links**
* https://www.reddit.com/r/PublicFreakout/comments/guffju/indianapolis_police_on_women_rights/
+
+## Lafayette
+
+### Officer drops tear gas into peaceful protest without warning |
+
+In this video, protestors ... |
Added -N (view mode) to cmake when listing header paths.
This improves performance when generating for VSCode. | @@ -179,7 +179,7 @@ def get_vs_header_paths(fips_dir, proj_dir, cfg):
# next get the used active Visual Studio instance from the cmake cache
proj_name = util.get_project_name_from_dir(proj_dir)
build_dir = util.get_build_dir(fips_dir, proj_name, cfg['name'])
- outp = subprocess.check_output(['cmake', '-LA', '.'], cwd=b... |
Update README.md
Added short discussion on human game-playing priors. | @@ -88,6 +88,8 @@ As previously mentioned, playing "randomly" (assuming parsable input) can solve
It is also likely that model performance is fairly sensitive to the details of the instructions, the choices of flavor text, as well as even the choices of symbols for the ASCII representation of the board. I argue that th... |
Fix some template escaping.
The |safe in the format call was being lost and the output escaped. | <p class="share-link">
<br/>
{% set link='<a href="' + share_link + '">' + share_link + '</a>' %}
- {{ _('Share this article: {link}')|f(link=link|safe) }}
+ {{ _('Share this article: {link}')|f(link=link)|safe }}
</p>
{% endif %}
</article>
|
Remove pip install instructions
as now attrdict and jsmin are installed from conda-forge. | @@ -71,11 +71,6 @@ We recommend that you create a conda environment using the available
.. _environment.yml: \
https://github.com/pySTEPS/pysteps/blob/master/environment.yml
-In addition, you still need to pip install few remaining important dependencies::
-
- pip install attrdict
- pip install jsmin
-
This will allow ... |
Avoid setting Py_TPFLAGS_HEAPTYPE in Pyston
See | @@ -166,7 +166,7 @@ static int __Pyx_PyType_Ready(PyTypeObject *t);/*proto*/
static int __Pyx_PyType_Ready(PyTypeObject *t) {
// FIXME: is this really suitable for CYTHON_COMPILING_IN_LIMITED_API?
-#if CYTHON_USE_TYPE_SPECS || !(CYTHON_COMPILING_IN_CPYTHON || CYTHON_COMPILING_IN_LIMITED_API)
+#if CYTHON_USE_TYPE_SPECS ... |
Add test section to extras_require
Closes | @@ -15,16 +15,22 @@ setup(
"Programming Language :: Python :: 3.10",
],
description="Send JSON-RPC requests",
+ extras_require={
+ "test": [
+ "pytest",
+ "pytest-cov",
+ "tox",
+ ],
+ },
include_package_data=True,
- install_requires=[],
license="MIT",
long_description=README,
long_description_content_type="text/markdo... |
Set diesel fuel cost to escalation_pct for on-grid runs
This will be un-done when we update the UI and make a new version release. At that point, we will expose generator_fuel_escalation_pct in the UI | @@ -506,9 +506,9 @@ class ValidateNestedInput:
self.input_dict["Scenario"]["Site"]["LoadProfile"]["outage_end_time_step"] = 8760
# else:
# Sets diesel fuel escalation to the electricity escalation rate
- # Removed because diesel fuel cost escalation will be exposed as an input for on-grid
- # self.input_dict["Scenario"... |
Correct printing of error info message for docker volume create command
zip() function in python3 returns an iterator. So creating a list from it for
proper error info message printing for docker volume create command
Resolves: | @@ -369,7 +369,7 @@ def validate_opts(opts, vmdk_path):
if len(invalid) != 0:
msg = 'Invalid options: {0} \n'.format(list(invalid)) \
+ 'Valid options and defaults: ' \
- + '{0}'.format(zip(list(valid_opts), defaults))
+ + '{0}'.format(list(zip(list(valid_opts), defaults)))
raise ValidationError(msg)
# For validation o... |
Upgraded Message's get_command method to return pure command
(backward compatible) | @@ -130,7 +130,7 @@ class Message(base.TelegramObject):
command, _, args = self.text.partition(' ')
return command, args
- def get_command(self):
+ def get_command(self, pure=False):
"""
Get command from message
@@ -138,7 +138,10 @@ class Message(base.TelegramObject):
"""
command = self.get_full_command()
if command:
-... |
rgw: call `ceph_ec_profile` when needed
Let's replace `command` tasks with `ceph_ec_profile` calls | ---
-- name: remove ec profile
- command: "{{ container_exec_cmd }} ceph --connect-timeout 10 --cluster {{ cluster }} osd erasure-code-profile rm {{ item.value.ec_profile }}"
- loop: "{{ rgw_create_pools | dict2items }}"
+- name: create ec profile
+ ceph_ec_profile:
+ name: "{{ item.value.ec_profile }}"
+ k: "{{ item.v... |
Get chassis from config file
Allow local controller to get chassis name from the configuration option
'host' in neutron.conf. The 'host' will be got from socket.gethostname by
default | # License for the specific language governing permissions and limitations
# under the License.
-import socket
import sys
import time
@@ -584,7 +583,7 @@ def init_ryu_config():
# python df_local_controller.py <chassis_unique_name>
# <local ip address> <southbound_db_ip_address>
def main():
- chassis_name = socket.gethos... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.