Add user mode workqueues

This doesn't require the addition of any new system calls, the existing syscalls for queue and thread objects are sufficient.
The workqueue main loop code moved to lib/ since it can run in either user or kernel mode.
New APIs added to start a workqueue in user mode, and submit a work item to it.

Codecov Report

Merging #11669 into master will increase coverage by <.01%.
The diff coverage is 76%.

@@            Coverage Diff             @@
##           master   #11669      +/-   ##
==========================================
+ Coverage   48.23%   48.24%   +<.01%
==========================================
  Files         279      280       +1
  Lines       43291    43302      +11
  Branches    10359    10361       +2
==========================================
+ Hits        20881    20889       +8
- Misses      18270    18271       +1
- Partials     4140     4142       +2

Impacted Files
Coverage Δ

kernel/work_q.c
100% <100%> (+5.26%)
:arrow_up:

include/kernel.h
94.44% <57.14%> (-4.05%)
:arrow_down:

lib/work_q.c
82.35% <82.35%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 80a8cfc...fc34b9d. Read the comment docs.

Code looks great.
What's the reason we need a separate API for userspace?  I mean, as you point out a workqueue is really just a wrapper for a thread and a queue, both of which are already usable identically.  Can't we do a simple runtime test or something for the permissions bits and use the same entry points?  Seems sort of confusing to have separate APIs.

@andyross
For starting a workqueue, there's no way to indicate that you want to start the workqueue in user mode without changing the API. So I added a new one.
For adding an item to a workqueue, it's a different type of enqueue operation if the queue is running in user mode or not (k_queue_append vs k_queue_alloc_append).

Can't we do a simple runtime test or something for the permissions bits and use the same entry points?

I would rather not add any new system calls. These APIs don't do any privilege elevation.

For clarity, I'm not asking for new syscalls, just the opposite: I'd like to see the function call API be identical.  With queues, because of the crazy way we did it, there's a requirement of a heap and the function calls can't match.  But AFAICT the distinction between "user" and "kernel" work queue APIs is just that one has the string "user" in its function name and the other doesn't.
And the implementations are so similar that IMHO the switch ought to be done at runtime based on a flag in the object or something.
Syscalls are expensive to define and maintain.  I agree.  But oddball APIs are even more so.

And the implementations are so similar that IMHO the switch ought to be done at runtime based on a flag in the object or something.

You can't look inside the object when you're in user mode. We would have to add a system call.

@andyross

With queues, because of the crazy way we did it, there's a requirement of a heap

Do you have an alternate proposal on how to add user mode access to queues without a heap and preserving their semantics?

You can tell you're in userspace though.  I mean, right now the rule is "if in userspace, use these functions, otherwise, use these other functions".  Why can't we do that logic for the user?  We're already doing it for syscalls (though I don't see why we need to be that fancy and think we should do it with a runtime check)

(And regarding queues, I agree it's a semi-broken API and honestly would have preferred to see it deprecated and replaced rather propagated into userspace.  This kind of API-variant-virus is one of the reasons.)


Allow filtering of new image url and path

Thanks for this, we will merge this post 1.0.0 release.

Moved to #959 where I can add some tests/tweaks


Create BoolReverseConverter.cs

A simple converter to reverse a boolean value.
Description of Change
Added a new converter
API Changes
None
Behavioral Changes
None

 Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.:x: Syed-Esqimo sign nowYou have signed the CLA already but the status is still pending? Let us recheck it.


Excel file is not saved if another excel window is set to always on top.

Microsoft PowerToys version
0.70.1
Installation method
PowerToys auto-update
Running as admin
Yes
Area(s) with issue?
Always on Top
Steps to reproduce
Open two excel documents and set one window to always-on-top. Edit the other excel file and save it.
✔ Expected Behavior
Edited excel file to be save to disk.
❌ Actual Behavior
The file which was edited was not saved. Instead the save command executed for the file which was set to always-on-top. I can tell this looking to the "date modified" property of the files.
Other Software
No response

/dup https://github.com/microsoft/PowerToys/issues/20516


Ingress Support

Ingress support would be nice for this add-on. I'm currently running into an issue accessing the web UI and I suspect I would be able to with ingress as I'm able to access other ingress add-ons. I'm not too familiar with ingress or addon development, this looks like a good start:
https://developers.home-assistant.io/docs/add-ons/presentation/#ingress
It might not be much more than adding ingress: true to config.yaml. Still need to look into it some more.

ingress: true doesn't set up HTTPS with a proper certificate that Actual requires. I can play around to see if I can make it work though

Closing as a duplicate of https://github.com/sztupy/hassio-actualbudget/issues/5


Add Session API to check EnSight version

Add a call on the Session object to make sure the EnSight version is at least some target.

Codecov Report
Attention: 60 lines in your changes are missing coverage. Please review.

Comparison is base (5dd10a3) 75.20% compared to head (7e5c110) 75.24%.

Files
Patch %
Lines

src/ansys/pyensight/core/utils/export.py
71.69%
51 Missing and 9 partials :warning:

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #351      +/-   ##
==========================================
+ Coverage   75.20%   75.24%   +0.03%
==========================================
  Files          18       18
  Lines        2860     2884      +24
  Branches      518      524       +6
==========================================
+ Hits         2151     2170      +19
- Misses        547      549       +2
- Partials      162      165       +3

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

@randallfrank wonderful! Could you please add the same check with the same version on the create_particle/add_emitter/ functions in the parts utils?
Thanks!

I think I have this in now, please review.

@randallfrank thanks! That's perfect


[GPoS] stakers may update failed

maybe happens on https://github.com/crustio/crust/blob/21eed2034fc77e59948331643d189f3b3f9711d7/cstrml/staking/src/lib.rs#L1526-L1557

close this due to the protection of minimum validator protection and it will clean stakers based on changes on #106 (https://github.com/crustio/crust/pull/106/files?file-filters[]=.rs#diff-0045990bb0c6445759becd42819b2ab0R1700)


Sample on custom OAuth authenticator is not working as expected.

The steps and sample at https://is.docs.wso2.com/en/5.9.0/learn/writing-a-new-oauth-client-authenticator/ do not work.
Below bugs were fixed and tried, yet there are few more corrections to be done.

Upgraded the dependency versions.
Try register specifically in the OSGI reference holder.

Still, the clientID and secret are not read from the headers and this custom authenticator is not engaged.

This issue is being closed due to extended inactivity. Please feel free to reopen it if further attention is needed. Thank you for helping us keep the issue list relevant and focused!


net: context: connect: Make sure local end is bound before connecting

Introduce net_context_bind_default() to ensure that local address is
set for context if not yet (via explict bind() call). This fixes
dereferences of NULL pointer to local address which was exposed when
MMU was enabled for qemu_x86.
Signed-off-by: Paul Sokolovsky<EMAIL_ADDRESS>

Proposed fix for https://github.com/zephyrproject-rtos/zephyr/issues/752#issuecomment-314680895 . If approved, call to net_context_bind_default() might be added to some other functions (in separate patches).

 is enough, no need to put the ": connect" there.

 is enough, no need to put the ": connect" there.

Well, it fits within limit, and I'm proponent on commit subjects which give more info, not less (e.g., as I mentioned above, similar change may need to be applied to send()/recv()).

Ok, fixes applied and shippable passes. @jukkar : Please re-review.

Closed in favor of https://github.com/zephyrproject-rtos/zephyr/pull/817


ModuleNotFoundError: No module named 'mxnet.contrib.amp'

Description
(A clear and concise description of what the bug is.)
Error Message
(Paste the complete error message. Please also include stack trace by setting environment variable DMLC_LOG_STACK_TRACE_DEPTH=10 before running your script.)
To Reproduce
(If you developed your own code, please provide a short script that reproduces the error. For existing examples, please provide link.)
Steps to reproduce
(Paste the commands you ran that produced the error.)

What have you tried to solve it?

Environment
We recommend using our script for collecting the diagnositc information. Run the following command and paste the outputs below:
curl --retry 10 -s https://raw.githubusercontent.com/dmlc/gluon-nlp/master/tools/diagnose.py | python

# paste outputs here

What is the version of MXNet you are using?

Seems to be an issue when running an mxnet/python:1.4.0_cpu_py3 docker image.

AMP was introduced in MXNet 1.5. Could you try that version (or newer)?

I have the same problem - ModuleNotFoundError: No module named 'mxnet.contrib.amp'.
Version MXNet is 2.0.0.

In 2.0 AMP is not in contrib anymore - you should use mxnet.amp instead.


fix multi-node test failures

Issue #, if available:
#1546
Description of changes:
fix multi-node test failures
CheckList:

[X] Commits are signed per the DCO using --signoff

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

hi @eirsep, @AWSHurneyt  all tests pass consistently. merging the pr.


Uncaught TypeError: n.props.saveVideo is not a function

When I click on save, this error appears in the console. I guess there's some issue with saving.

Yes. We are working on it and this will be fixed soon. Thank you for reporting this 🙂

any update on this issue ? @Prakshal-Jain

@Acarvajal904 Thank you for reaching out. We have discontinued working on the old version of the Video Editor.
The good news is, I am working on second version (V2) of the editor, which is far better, have way many features, more efficient and optimized than the current one.
If you wish to try it, you can find it here: https://github.com/Prakshal-Jain/Reactive/tree/v2
Feel free to provide any suggestions and let me know if you want to see any feature in V2. I will be happy to work collaboratively on that 🙂
As I am actively working on v2, it will be launched by mid-July.
Thank you!


[INFRA] Update to current seqan3 master

If there is interest :)

This repo will move to BioC++ soon, so I don't think it makes sense to merge any PRs at this time! But thanks.


Buttons don't show up on Windows 10

So this is weird :/ In my main OS, Windows 10 64-bit, the buttons don't show up in auto mode.
On my Windows 7 VM they show up. Something must be different in the touch detection.

I was right. So apparently on Windows 10
'ontouchstart' in window: true

Note that I don't have any touch devices connected :/

OK, something weird is happening with Firefox. Internet Explorer works normally.
I'm goona close this, but it's weird nevertheless. Might have something to do with FF dev tools enabling touch events when the dev toolbar is open https://bugzilla.mozilla.org/show_bug.cgi?id=970346.

Yeah, hopefully it's a Firefox issue.


Is there any async api for python?

Hi, I am using questDB for dumping stream data with async websocket connection. I want to know if there are async framwork in python sdk. Thanks!

Hi,
For throughput, especially with dataframes, all the communication with the server is implemented in native code.
I've toyed with the idea of providing an async wrapper over it, but there hasn't been overwhelming demand for it, and it has some limitations (like the loss of ability to auto-flush).
You can take a look (check outand try) the prototype in the async_pool branch.
It introduces a pool of senders and allows sending multiple requests in parallel (with true parallelism, sending is still in native code and releases the GIL).
There's also an async API varient there.
PR: https://github.com/questdb/py-questdb-client/pull/66
PR description is slightly out of date, take a look at the diff.
Feedback would be very welcome.

It is very useful to me !! Thanks


"Unresolvable JSON pointer" when jsonschema>=4.18.1

When pylint-sarif-unofficial (this software) is used with jsonschema at version 4.18.1 or higher--but not at 4.17.* and not at 4.18.0--it gives the error:
jsonschema.exceptions._RefResolutionError: Unresolvable JSON pointer: 'definitions/messageClass'

Here's an example of full error output, running pylint2sarif on itself:
(pylint-sarif-unofficial-py3.11) ek@Glub:~/repos-wsl/pylint-sarif (develop +%=)$ pylint2sarif src/pylint2sarif.py
Traceback (most recent call last):
  File "/home/ek/.cache/pypoetry/virtualenvs/pylint-sarif-unofficial-4ksIlfgF-py3.11/lib/python3.11/site-packages/jsonschema/validators.py", line 1147, in resolve_fragment
    document = document[part]
               ~~~~~~~~^^^^^^
KeyError: 'messageClass'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/ek/.cache/pypoetry/virtualenvs/pylint-sarif-unofficial-4ksIlfgF-py3.11/bin/pylint2sarif", line 6, in <module>
    sys.exit(main())
             ^^^^^^
  File "/home/ek/repos-wsl/pylint-sarif/src/pylint2sarif.py", line 41, in main
    p2s = Pylint2Sarif(args)
          ^^^^^^^^^^^^^^^^^^
  File "/home/ek/repos-wsl/pylint-sarif/src/pylint2sarif.py", line 137, in __init__
    self.sarif = builder.build_classes()
                 ^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/ek/.cache/pypoetry/virtualenvs/pylint-sarif-unofficial-4ksIlfgF-py3.11/lib/python3.11/site-packages/python_jsonschema_objects/__init__.py", line 135, in build_classes
    builder.construct(uri, defn, **kw)
  File "/home/ek/.cache/pypoetry/virtualenvs/pylint-sarif-unofficial-4ksIlfgF-py3.11/lib/python3.11/site-packages/python_jsonschema_objects/classbuilder.py", line 497, in construct
    ret = self._construct(uri, *args, **kw)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/ek/.cache/pypoetry/virtualenvs/pylint-sarif-unofficial-4ksIlfgF-py3.11/lib/python3.11/site-packages/python_jsonschema_objects/classbuilder.py", line 584, in _construct
    self.resolved[uri] = self._build_object(uri, clsdata, parent, **kw)
                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/ek/.cache/pypoetry/virtualenvs/pylint-sarif-unofficial-4ksIlfgF-py3.11/lib/python3.11/site-packages/python_jsonschema_objects/classbuilder.py", line 665, in _build_object
    typ = self.resolve_type(ref, ".".join([nm, prop]))
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/ek/.cache/pypoetry/virtualenvs/pylint-sarif-unofficial-4ksIlfgF-py3.11/lib/python3.11/site-packages/python_jsonschema_objects/classbuilder.py", line 485, in resolve_type
    with self.resolver.resolving(ref) as resolved:
  File "/usr/lib/python3.11/contextlib.py", line 137, in __enter__
    return next(self.gen)
           ^^^^^^^^^^^^^^
  File "/home/ek/.cache/pypoetry/virtualenvs/pylint-sarif-unofficial-4ksIlfgF-py3.11/lib/python3.11/site-packages/jsonschema/validators.py", line 1034, in resolving
    url, resolved = self.resolve(ref)
                    ^^^^^^^^^^^^^^^^^
  File "/home/ek/.cache/pypoetry/virtualenvs/pylint-sarif-unofficial-4ksIlfgF-py3.11/lib/python3.11/site-packages/jsonschema/validators.py", line 1081, in resolve
    return url, self._remote_cache(url)
                ^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/ek/.cache/pypoetry/virtualenvs/pylint-sarif-unofficial-4ksIlfgF-py3.11/lib/python3.11/site-packages/jsonschema/validators.py", line 1099, in resolve_from_url
    return self.resolve_fragment(document, fragment)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/ek/.cache/pypoetry/virtualenvs/pylint-sarif-unofficial-4ksIlfgF-py3.11/lib/python3.11/site-packages/jsonschema/validators.py", line 1149, in resolve_fragment
    raise exceptions._RefResolutionError(
jsonschema.exceptions._RefResolutionError: Unresolvable JSON pointer: 'definitions/messageClass'

jsonschema 4.18 changes how $ref is handled and that appears related to this, but 4.18.0 does work. The patch releases 4.18.1, 4.18.2, and 4.18.3 address regressions and shouldn't break anything, but I'm unsure if the bug is really in jsonschema or in pylint-sarif-unofficial.
Because I haven't yet dropped support for Python 3.7, but jsonschema 4.18 has, this bug is not observed when cloning this repository, installing it with poetry install, and testing it, and is further not observed even after poetry update, poetry up, or poetry up --latest. I first noticed this problem on another project's CI (for https://github.com/dmvassallo/EmbeddingScratchwork/pull/208). I reproduced it as shown above by running poetry shell and, in the poetry-managed virtual environment, pip install -U jsonschema. I verified which versions are affected by running commands like pip install -U jsonschema==4.18.0 and testing again.
Because 4.18.1, 4.18.2, and 4.18.3 address regressions present in 4.18.0, it is somewhat undesirable to pin jsonschema at 4.18.0, even as a temporary stopgap. The best thing to do would be for me to find the cause of the incompatibility in pylint-sarif-unofficial and fix it, and/or open a bug report for jsonschema. However, in the short term (which would become long term if I never get around to doing that), it might be better to pin jsonschema at 4.17.* and modify this repository and PyPI package's readme to advocate installing pylint-sarif-unofficial with pipx rather than in the project virtual environment. (That is itself because, if pinned, tools like Dependabot typically won't update it.)

This project uses jsonschema indirectly through python-jsonschema-objects, which does not currently support version 4.18.* of jsonschema.
Since the status of python-jsonschema-objects with jsonschema 4.18 is now tracked in https://github.com/cwacek/python-jsonschema-objects/issues/235, and versions >0.4.2 of python-jsonschema-objects pin jsonschema to be below 4.18 such that this project no longer has to (#26), I'm closing this issue for now. It can be reopened if it turns out this project has any incompatibilities beyond those that are found to affect python-jsonschema-objects in general (or a new issue can be opened).

This has been resolved now if you want to test pylint-sarif with newer versions of both.


Compatible problem in Chart 1b and 1f

Environment
JDK: Both JDK8 and JDK7

openjdk version "1.8.0_191"
OpenJDK Runtime Environment (build 1.8.0_191-8u191-b12-0ubuntu<IP_ADDRESS>-b12)
OpenJDK 64-Bit Server VM (build 25.191-b12, mixed mode)

openjdk version "1.7.0_75"
OpenJDK Runtime Environment (build 1.7.0_75-b13)
OpenJDK 64-Bit Server VM (build 24.75-b04, mixed mode)

OS:

Linux version 4.15.0-39-generic (buildd@lcy01-amd64-012) (gcc version 5.4.0 20160609 (Ubuntu 5.4.0-6ubuntu1~16.04.10))  42~16.04.1-Ubuntu SMP Wed Oct 24 17:09:54 UTC 2018

d4j Version:

commit 366383cbb4d68d417bb317ecfe1712d23be1e7cf

Reproduce
Under JDK8 excuting command in Chart 1b (In both master and java-8-support)

liuy@dell-PowerEdge-T640:~/projects/defects4j/framework/bin$ ./run_evosuite.pl -p Chart -v 1b -n 2 -c branch -o Research/testSuties/ -b 1
Check out 2266 to /tmp/run_evosuite.pl_9794_1544121836..................... OK
Init local repository...................................................... OK
Tag post-fix revision...................................................... OK
Apply patch................................................................ OK
Run post-checkout hook..................................................... OK
Initialize fixed program version........................................... OK
Apply patch................................................................ OK
Initialize buggy program version........................................... OK
Diff 2266:2264............................................................. OK
Apply patch................................................................ OK
Tag pre-fix revision....................................................... OK
Check out program version: Chart-1b........................................ OK
Running ant (compile)...................................................... OK
Running ant (export.cp.compile)............................................ OK
Run EvoSuite (branch;/home/liuy/projects/defects4j/framework/util/evo.confi OK
tar: /tmp/run_evosuite.pl_9794_1544121836/evosuite-branch/: Cannot open: No such file or directory
tar: Error is not recoverable: exiting now

And the same to Chart 1f

liuy@dell-PowerEdge-T640:~/projects/defects4j/framework/bin$ ./run_evosuite.pl -p Chart -v 1f -n 2 -c branch -o Research/testSuties/ -b 1
Check out 2266 to /tmp/run_evosuite.pl_10095_1544121918.................... OK
Init local repository...................................................... OK
Tag post-fix revision...................................................... OK
Apply patch................................................................ OK
Run post-checkout hook..................................................... OK
Initialize fixed program version........................................... OK
Apply patch................................................................ OK
Initialize buggy program version........................................... OK
Diff 2266:2264............................................................. OK
Apply patch................................................................ OK
Tag pre-fix revision....................................................... OK
Check out program version: Chart-1f........................................ OK
Running ant (compile)...................................................... OK
Running ant (export.cp.compile)............................................ OK
Run EvoSuite (branch;/home/liuy/projects/defects4j/framework/util/evo.confi OK
tar: /tmp/run_evosuite.pl_10095_1544121918/evosuite-branch/: Cannot open: No such file or directory
tar: Error is not recoverable: exiting now

But under the JDK7, it will be executed correctly.
Hypothesis
As ur Readme.md said that

The next major release of Defects4J will be compatible with Java 8.

The problem is probably caused by compatibility between JDK7 and JDK8.
Hope to fix soon.

Fixed. Note that we replaced the run_randoop and run_evosuite scripts with a generic gen_tests script.


Question: possible to make T3 work with commonjs libraries?

Since T3 has it's own dependency management, eg. getGlobal, it will probably make using it with commonjs-based libraries a bit difficult.
Do you have any recommended approaches? Can we still browserify or webpack using T3 somehow?

Can you explain more about what you're trying to do?
Keep in mind, you can still use require() inside of T3 code if you want to. getGlobal() and getService() are there for environments that don't have require().

Oh good, so module loading with getGlobal is optional.
I was wondering if T3 encourage a specific app structure, like you should only load with getGlobal and write adapters for third-party libraries.
Say I am using virtual-dom, what I can do is:
A. use browserify to create a standalone dist.js of it, and import its exported global into T3.
B. use require('virtual-dom') in our T3 code, and let browserify manage the build and dependencies.
Both can be considered modular, for T3, is A the encouraged approach?

Just to be clear: getGlobal() and getService() are not module loaders. They are just methods to access previously-loaded modules.
Yup, A is the way we'd recommend doing that.

Got it, require() in my context isn't a loader neither, as I was referring to a browserify build (a bundled file).
If A is the preferred approach then my only issue would be whether it's worth it to have 2 separate dependency management tool: one is my T3-based app, the other is browserify.
In order to work with npm package like virtual-dom, usually we need to require a few other modules as well, so we would have 1 browserify build, and then we would load them into a T3-based app.

I'm sorry, I don't have experience building such an application, but I'm happy to provide guidance if you're going to give this a try. We'd love to hear about the experience.

(From a cursory perusal of T3's style and architecture)
T3 makes the assumption that you're starting from first principles, from just what browsers give you. It does not expect anyone to be familiar with the various developments and trends on JavaScript application design, including production deployment practices such as using a packer like Requirejs, browserify, webpack to "build" a minified version of the source.
T3 is happy to consume such a resource as a module, so long as the framework's implementation does not drastically overreach. It may be difficult to construct an angular-based app with t3, with each module having its own ng-app attribute (or something similar).
One of the keys to T3 is that modules have a lifecycle divorced from the webpage's, and so there are assumptions that a generic browserified bundle will make about the lifecycle that will be wrong.
Browserify can probably consume T3 as well, but there's a chance is would require modifying the compiler pipeline.

Fixed by #40. Will work with our next release.


Create OpenCV Demo

Create a demo to show how to use OpenCV with the project

http://demos.seb.ly/JSTouchController/TouchControl.html

http://hammerjs.github.io

https://stackoverflow.com/questions/14996746/data-uri-how-to-create-them-in-java

Reorganize the project


[WIP] unique index for distributed API

DO NOT MERGE!
Make unique key index version logic persistent. Introduces a new file extension .vpm.

Codecov Report

Merging #9363 into develop will decrease coverage by 0.00%.
The diff coverage is 88.00%.

@@              Coverage Diff              @@
##             develop    #9363      +/-   ##
=============================================
- Coverage      54.10%   54.09%   -0.01%
+ Complexity     35518    35514       -4
=============================================
  Files           2427     2427
  Lines         192116   192090      -26
  Branches       35066    35060       -6
=============================================
- Hits          103952   103920      -32
- Misses         73238    73252      +14
+ Partials       14926    14918       -8

Impacted Files
Coverage Δ
Complexity Δ

.../storage/impl/local/OAbstractPaginatedStorage.java
47.25% <70.00%> (-0.23%)
402.00 <6.00> (-10.00)

...ex/engine/v1/OCellBTreeSingleValueIndexEngine.java
68.88% <100.00%> (+8.36%)
32.00 <5.00> (+6.00)

.../collection/closabledictionary/OClosableEntry.java
64.40% <0.00%> (-11.87%)
19.00% <0.00%> (-3.00%)

...tomicoperations/operationsfreezer/WaitingList.java
77.41% <0.00%> (-6.46%)
7.00% <0.00%> (-1.00%)

...rient/core/query/live/OLiveQueryQueueThreadV2.java
80.76% <0.00%> (-3.85%)
5.00% <0.00%> (-1.00%)

...common/concur/lock/OOneEntryPerKeyLockManager.java
60.28% <0.00%> (-2.13%)
32.00% <0.00%> (-1.00%)

...gies/orient/server/hazelcast/OHazelcastPlugin.java
51.59% <0.00%> (-1.88%)
110.00% <0.00%> (-2.00%)

...ntechnologies/orient/server/OClientConnection.java
70.55% <0.00%> (-1.85%)
49.00% <0.00%> (-2.00%)

...n/closabledictionary/OClosableLinkedContainer.java
70.49% <0.00%> (-1.25%)
56.00% <0.00%> (-2.00%)

...logies/orient/core/db/viewmanager/ViewManager.java
67.06% <0.00%> (-1.19%)
51.00% <0.00%> (-1.00%)

... and 23 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 266c96c...1ee3813. Read the comment docs.


Keycloak Operator 12.0.1 (Upstream Community)

Signed-off-by: Sebastian Laskawiec<EMAIL_ADDRESS>Updates to existing Operators

[x] Is your new CSV pointing to the previous version with the replaces property?
[x] Is your new CSV referenced in the appropriate channel defined in the package.yaml ?
[x] Have you tested an update to your Operator when deployed via OLM?
[x] Is your submission signed?

Your submission should not

[x] Modify more than one operator
[x] Modify an Operator you don't own
[x] Rename an operator - please remove and add with a different name instead
[x] Submit operators to both upstream-community-operators and community-operators at once
[x] Modify any files outside the above mentioned folders
[x] Contain more than one commit. Please squash your commits.

Operator Description must contain (in order)

[x] Description about the managed Application and where to find more information
[x] Features and capabilities of your Operator and how to use it
[x] Any manual steps about potential pre-requisites for using your Operator

Operator Metadata should contain

[x] Human readable name and 1-liner description about your Operator
[x] Valid category name1
[x] One of the pre-defined capability levels2
[x] Links to the maintainer, source code and documentation
[x] Example templates for all Custom Resource Definitions intended to be used
[x] A quadratic logo

Remember that you can preview your CSV here.
--
1 If you feel your Operator does not fit any of the pre-defined categories, file a PR against this repo and explain your need
2 For more information see here

@mvalahtv Hey! May I kindly ask for some help with interpreting the CI failures? I started with Travis, emits the following error:
time="2021-01-07T14:29:50Z" level=error msg="permissive mode disabled" bundles="[kind-registry:5000/test-operator/keycloak-operator:v7.0.1 kind-registry:5000/test-operator/keycloak-operator:v8.0.1 kind-registry:5000/test-operator/keycloak-operator:v8.0.2 kind-registry:5000/test-operator/keycloak-operator:v9.0.0 kind-registry:5000/test-operator/keycloak-operator:v9.0.2 kind-registry:5000/test-operator/keycloak-operator:v10.0.0 kind-registry:5000/test-operator/keycloak-operator:v11.0.0 kind-registry:5000/test-operator/keycloak-operator:v12.0.1]" error="[Invalid bundle keycloak-operator.v10.0.0, bundle specifies a non-existent replacement keycloak-operator.v9.0.2, Invalid bundle keycloak-operator.v11.0.0, bundle specifies a non-existent replacement keycloak-operator.v10.0.0, Invalid bundle keycloak-operator.v12.0.1, bundle specifies a non-existent replacement keycloak-operator.v11.0.0]"

So it looks like the it can not build a proper chain of updates. If I look at the last 2 chain pieces (Invalid bundle keycloak-operator.v12.0.1, bundle specifies a non-existent replacement keycloak-operator.v11.0.0), it seems that there's a wrong version in Keycloak Operator's 12.0.1 replaces tag. The tag uses keycloak-operator.v11.0.0, which corresponds to the previous CSV. Maybe something recently changed and this needs to be v11.0.0 or even 11.0.0.
Could you please help me with this?

@mvalahtv Hey! May I kindly ask for some help with interpreting the CI failures? I started with Travis, emits the following error:
time="2021-01-07T14:29:50Z" level=error msg="permissive mode disabled" bundles="[kind-registry:5000/test-operator/keycloak-operator:v7.0.1 kind-registry:5000/test-operator/keycloak-operator:v8.0.1 kind-registry:5000/test-operator/keycloak-operator:v8.0.2 kind-registry:5000/test-operator/keycloak-operator:v9.0.0 kind-registry:5000/test-operator/keycloak-operator:v9.0.2 kind-registry:5000/test-operator/keycloak-operator:v10.0.0 kind-registry:5000/test-operator/keycloak-operator:v11.0.0 kind-registry:5000/test-operator/keycloak-operator:v12.0.1]" error="[Invalid bundle keycloak-operator.v10.0.0, bundle specifies a non-existent replacement keycloak-operator.v9.0.2, Invalid bundle keycloak-operator.v11.0.0, bundle specifies a non-existent replacement keycloak-operator.v10.0.0, Invalid bundle keycloak-operator.v12.0.1, bundle specifies a non-existent replacement keycloak-operator.v11.0.0]"

So it looks like the it can not build a proper chain of updates. If I look at the last 2 chain pieces (Invalid bundle keycloak-operator.v12.0.1, bundle specifies a non-existent replacement keycloak-operator.v11.0.0), it seems that there's a wrong version in Keycloak Operator's 12.0.1 replaces tag. The tag uses keycloak-operator.v11.0.0, which corresponds to the previous CSV. Maybe something recently changed and this needs to be v11.0.0 or even 11.0.0.
Could you please help me with this?

@slaskawi you can ignore travis. I turned it off for future.

@slaskawi you can ignore travis. I turned it off for future.

@slaskawi I see following error in kiwi test
     Events:
      Type    Reason               Age   From                        Message
      ----    ------               ----  ----                        -------
      Normal  RequirementsUnknown  15m   operator-lifecycle-manager  requirements not yet checked
      Normal  RequirementsNotMet   15m   operator-lifecycle-manager  one or more requirements couldn't be found

@slaskawi I see following error in kiwi test
     Events:
      Type    Reason               Age   From                        Message
      ----    ------               ----  ----                        -------
      Normal  RequirementsUnknown  15m   operator-lifecycle-manager  requirements not yet checked
      Normal  RequirementsNotMet   15m   operator-lifecycle-manager  one or more requirements couldn't be found

@mvalarh The tests have been fixed.

@mvalarh The tests have been fixed.


More lints

Enables some additional rustfmt and clippy checks. Specifically, adjusts the way imports are formatted to be more friendly with commits (a changed import will only affect one line), specifies the length of comments (sets to 100, which was already the standard I was using when making comments anyway), and sets clippy lints to restrict panicking.

Codecov Report

Merging #121 (2583767) into dev (283e562) will increase coverage by 0.00%.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##              dev     #121   +/-   ##
=======================================
  Coverage   95.02%   95.03%
=======================================
  Files          68       68
  Lines        9535     9539    +4
=======================================
+ Hits         9061     9065    +4
  Misses        474      474

Impacted Files
Coverage Δ

src/archetype/identifier/iter.rs
100.00% <ø> (ø)

src/archetype/identifier/mod.rs
94.88% <ø> (ø)

src/archetype/impl_debug.rs
0.00% <ø> (ø)

src/archetype/impl_drop.rs
100.00% <ø> (ø)

src/archetype/impl_eq.rs
100.00% <ø> (ø)

src/archetype/impl_serde.rs
99.82% <ø> (ø)

src/archetype/mod.rs
97.44% <ø> (ø)

src/archetypes/impl_debug.rs
0.00% <ø> (ø)

src/archetypes/impl_eq.rs
93.33% <ø> (ø)

src/archetypes/iter.rs
100.00% <ø> (ø)

... and 54 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.


Basic TreeKDE (KDE based on kdtrees) implementation

Aside from minor comments and decreasing test coverage, LGTM


base64 values should be decoded with proper encodings

base64 values should be decoded with proper encodings
base64 properties was always been decoded with base64.b64decode(data).decode('utf8')
which is a strict mode. It throws UnicodeDecodeError exception when the property value is not UTF-8

To reproduce issue
utf8.php (save with encoding utf-8)
<?php
$utf_str = "ç ı ü ğ ö ş İ Ğ Ü Ö Ş Ç";

echo $utf_str;

include "win1254.php";
?>

save it to same folder
win1254.php (save with encoding windows-1254)
<?php
$deneme = array('ÇOK GÜZELMİŞ' => 'şanlıurfa'); //put breakpoint here
$win1254_str = "ç ı ü ğ ö ş İ Ğ Ü Ö Ş Ç";
echo $win1254_str;
?>

put a breakpoint to win1254.php line 1
open a browser and locate to utf8.php
and try to debug

should solve issue #110

I would like to merge your fixes into my fork:
https://github.com/ryanpcmcquen/SublimeTextXdebugPlus
Would you mind rebasing them against the master branch?
I am attempting to get my fork into Package Control:
https://github.com/wbond/package_control_channel/pull/7658


[5.7][Driver] Work around lld 13+ issue with --gc-sections for ELF by adding -z nostart-stop-gc

Cherrypick of #60544
Explanation: lld 13 changed how --gc-sections works last year, which was then flipped on by default, and causes all Swift code on ELF platforms not to link with lld 13 and 14 anymore.
Scope: Only affects lld for these ELF platforms
SR Issue: #60406
Risk: low, since it only affects ELF platforms for this one linker
Testing: I just built the last August 2 source snapshot of the 5.7 toolchain for Android AArch64, where lld 14 is the default linker, with this patch and it works well.
Reviewer: @compnerd

@swift-ci test

@swift-ci please test Linux platform


CSS Compiler Add Less Support

add less support for css compiler

https://github.com/dotless/dotless

aborted and to be replaced with #82 and #83


Removing ambry-coordinator

This change removes all usages of Coordinator and removes Coordinator code
Built and formatted.
Primary reviewers: @pnarayanan, @cgtz
Expected time to review: 20-30 mins
Addresses #432.

Built on mac and linux.

merged


Implemented a streaming version of the DirectBuffer decompress and compress methods

As discussed in #27, you might want to avoid allocating a large enough target buffer to decompress the whole file into. This pull requests implements the ZstdDirectBuffer(Decompressing/Compressing)Stream (open for a better name) classes. The decompressor you initialize with the full buffer (like in the case of a memory map), and the compressing version you pass it a buffer and have to implement the flushing yourself.
You can then decompress that stream to another (direct) ByteBuffer of any size, until the whole stream is read and there are no more bytes to be decompressed.
For compressing you only have to implement an abstract method that takes care of flushing the buffer and either returning the same buffer, or creating a new one (as you would expect for a memory map)
I've copied and adapted the tests that seemed relevant, and also copied the benchmark code.

Current coverage is 51.01% (diff: 63.88%)

Merging #28 into master will increase coverage by 1.49%

@@             master        #28   diff @@
==========================================
  Files             6          7     +1
  Lines           309        345    +36
  Methods           0          0
  Messages          0          0
  Branches         62         72    +10
==========================================
+ Hits            153        176    +23
- Misses          122        128     +6
- Partials         34         41     +7

Powered by Codecov. Last update 4a63b75...b27f906

I've just implemented a compressor variant. it's an abstract class, and you only have to take care to flush the buffer when needed. I think it's quite elegant. And supports both normal buffered streaming or memory mapping with a moving region.

I might update the interface of the Decompressor to also have an abstract method that handles the request for more data. In that way both use cases can be supported.

please keep this pull request open a bit longer, I welcome feedback off course! But I want to add some more tests around the streaming API, to actually tests limits of them.

Yes, sure. It looks good to me. The only recommendation: can you check that the supplied ByteBuffers are actually DirectByteBuffers (.is_direct) in the java code as you assume that they are in the JNI code.
Also I was thinking if we can make the compressor non-abstract, i.e. the provided flush method to be noop (as there are not common behavior)  but let the user override it or if he prefer to drive the flushing outside of the stream compression.

I think I'm done. I've removed the abstract methods and implemented defaults, for the decompressor I completely agree, for the compressor, not that sure.
So waiting for your feedback, but I would say ready to merge ;)

Thanks a lot for the contribution. Just merged it.


Style Expressions Concat Function

Added the concat function which can take in 2+ arguments to use the String.concat function. The function can be utilized with other expressions or just regular strings. Arguments are just like the following (from MDN):
const greetList = ["Hello", " ", "Venkat", "!"];
"".concat(...greetList); // "Hello Venkat!"

This should close #15246.
Note that this is only applied to the canvas expression list and not webgl. I was confused how to actually get the values and haven't worked with raw webgl before. This is also my first pull request so hopefully not too many changes are needed for this. I also updated the style expression example just to show this off. I can revert it back if requested.

Thanks for the contribution, @MannyKSoSo


Option to ignore SSL errors when adding server

Hi all,
currently the app validates a server URL at input and will not allow to add a server when the SSL certificate is considered invalid for whatever reasons. I added my self-signed certificate and CA, which are only used internally, to IOS' trust store and they both have green checkmarks "Verified" but still the app does not allow me to add the URL.
How about an option to ignore SSL errors, for example a switch or a warning when pressing "Log In" with the option to either cancel or proceed anyway? After all, I think issues with IOS and self-signed certificates are not that uncommon in internal networks where paperless is probably used most often.
Thank you + Regards
Stefan

I actually went and tested this, and I can confirm that this definitely works. You have to use the correct subject alternative name for the networking stack to accept it.
You can test if it works by trying in safari, when safari accepts it, the app will accept it as well.

Closing this now, with the recommendation to install a self-signed CA as a trusted root, and then using self-signed certificates that the OS trust store accepts. I'm trying to make the error reporting around this better in an upcoming version.

You can test if it works by trying in safari, when safari accepts it, the app will accept it as well.

Is this still valid? I'm getting no certificate complains with the installed self signed certificate in safari, but the app wouldn't accept it. Reboot didn't help.

Can confirm that the app will accept the certificate on macOS, but not on iOS.

@timvahlbrock That's strange. I'm almost certain that it's a certificate issue, since I verified it actually works without any errors.
How did you create your certificates?

using openssl. And it works on macOS in Safari and in the app, but on iOs only in Safari. And I've triple checked that I activated the certificate on iOS in both places.

One special case might be, that the server just uses the root ca certificate directly, without creating an application certificate.

@timvahlbrock I only tested using a separate CA and application certificate. I'm not sure if this might be the difference? Would you be able to try out using separate certificates?

Yeah, i will check on that tomorrow

I've an own internally used CA and a server certificate signed by this CA for my paperless instance. With only the root certificate installed on my iPhone this works very well.
On the iPhone It is not enough to install the cert, you will have to set trust:
Settings -> General -> About -> (scroll down)  Certificate Trust Settings -> ENABLE FULL TRUST FOR ROOT CERTIFICATES

Got it to work using a separate server certificate. However, when I first created the certificate I gave it a live time of about 100 years, which chrome was okay with, but safari didn't like. Quick research showed that apple doesn't seem to like certificates that are valid longer than a year. Maybe that was the problem before, as my root ca cert is also valid for 100 years, but that didn't seem to bother Safari. It also doesn't seem to be a problem now, as long as the server certificate is short lived enough. Thanks for your quick response and effort on this app.

Awesome, great that at least that's working.
For a bit of context: I'm hesitant to add any kind of custom TLS handling because that brings me into territory where a mistake on my part could have significant consequences.
That's why I'd really like to stick to the system provided mechanism as long as it's feasible to get it to work that way.

Yeah i think that is the way that i would be going as well. But as I haven't developed any iOS Apps so far myself, I wasn't sure whether apple changed the behavior for apps since the original comment.

I think Apple doesn't accept certificates with that long validity. The limit is 825 days, if I'm not wrong.

Yeah, I read something of 389 days, but anything less than a year seems to be fine.


(CODEMGMT-69) Update Acceptance Test

PMT is no longer using the Modulefile and the acceptance test needed to be
updated to use a "metadata.json" file instead. Also, the test has been
updated with current Beaker syntax in increase readability.

Waiting for CLA signature by @cowofevil
@cowofevil - We require a Contributor License Agreement (CLA) for people who contribute to Puppet, but we have an easy click-through license with instructions, which is available at https://cla.puppetlabs.com/
Note: if your contribution is trivial and you think it may be exempt from the CLA, please post a short reply to this comment with details. http://docs.puppetlabs.com/community/trivial_patch_exemption.html

CLA signed by all contributors.

Confirmed acceptance test passes on current master.

@cowofevil and @andersonmills too late for this PR, but please reference PUP tickets in the commit messages for PRs against the puppet repository. It helps with release scripts, and ensures that we are always referencing tickets in open jira projects from our open github projects.

@kylog That appears to mean that all PMT tickets have to have a PUP clone if they don't originate as PUP tickets. Is that accurate?


[BugFix] Fix join got wrong result when enable runtime_adaptive_dop

Problem Summary:
Fixes [# (issue)](https://github.com/StarRocks/starrocks/issues/23559)
when enable runtime_adaptive_dop bucket-shuffle/colocate join will also share hash-join builder. so we need make spill options to shared-mode
reproduce case:
nosetests-3.4 -s --with-xunit --xunit-file=./result/test_adaptive_dop_hash_join_py_TestAdaptiveDopHashJoin_test_adaptive_dop_hash_join.xml --verbose case/system_case/test_dql/test_adaptive_dop/test_adaptive_dop_hash_join.py:TestAdaptiveDopHashJoin.test_adaptive_dop_hash_join --nologcapture

What type of PR is this:

[x] BugFix
[ ] Feature
[ ] Enhancement
[ ] Refactor
[ ] UT
[ ] Doc
[ ] Tool

Checklist:

[ ] I have added test cases for my bug fix or my new feature
[ ] This pr will affect users' behaviors
[ ] This pr needs user documentation (for new or modified features or behaviors)

[ ] I have added documentation for my new feature or new function

Bugfix cherry-pick branch check:

[x] I have checked the version labels which the pr will be auto backported to target branch

[x] 3.0
[ ] 2.5
[ ] 2.4
[ ] 2.3

@Mergifyio backport branch-3.0


Ensure Linux installer registers bitcoinpaymentrequest

In discussions I think Gary mentioned that the Linux installer wasn't registering .bitcoinpaymentrequest as a file extension. Needs checking/ updating.

See MultiBit website #185 which covers the script changes needed.


CDPS-783: Integrate with Prisoner Search to check prisoner exists

Codecov Report
Attention: Patch coverage is 93.33333% with 2 lines in your changes missing coverage. Please review.

Project coverage is 60.29%. Comparing base (7276f65) to head (d73cba5).

Files
Patch %
Lines

...on/client/prisonersearch/dto/PrisonerNumbersDto.kt
0.00%
2 Missing :warning:

Additional details and impacted files
@@             Coverage Diff              @@
##               main      #13      +/-   ##
============================================
+ Coverage     57.70%   60.29%   +2.58%
- Complexity       82       97      +15
============================================
  Files            22       25       +3
  Lines           383      413      +30
  Branches         38       38
============================================
+ Hits            221      249      +28
- Misses          154      156       +2
  Partials          8        8

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


add outputFormat   to   convert/office   endpoint

Add argoutputFormat  to convert/office endpoint,  so users can  output another format using  the endpoint. Especially for the users migrated from  v2.0 like me.
#80
curl --request POST --url http://<IP_ADDRESS>:3000/convert/office --header 'Content-Type: multipart/form-data' --form<EMAIL_ADDRESS>--form outputFormat=docx -o t12.docx
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current                                  Dload  Upload   Total   Spent    Left  Speed 100 28105  100 11984  100 16121  41156  55364 --:--:-- --:--:-- --:--:-- 55398

Hello @lsaint
Thank you for your PR. Unfortunately, Gotenberg's goal is to convert file to PDF, and only PDF.
For now I think the best option on your part should be to fork this project and create your own image (as you may already have done 😄).
Sorry for the inconvenience 👍


Clean up the Makefile and Dockerfiles

/assign @gabemontero

/lgtm

of course the driver yaml still points to my docker.io/gmontero @coreydaley ... my assumption was that was intentional until the new images actually exist on quay.io

/approve

of course the driver yaml still points to my docker.io/gmontero @coreydaley ... my assumption was that was intentional until the new images actually exist on quay.io

Correct.


Feature request/discussion: a better asInstanceOf

When asInstanceOf fails you get a java.lang.ClassCastException: X cannot be cast to Y. It would be nice to include the whole object in the error message.
For example
val a = obj.asInstanceOfType[A]

would be equivalent to
obj shouldBe an [A] // extra assertion for a better error message
val a = obj.asInstanceOf[A]

How about
obj shouldBe an [A] { a =>
  a.memberOfA should === ("some value")
}

@gabrieljones one rule that guided matchers design is it should read like English, and that last one doesn't. However, you can probably use inside.
https://www.scalatest.org/user_guide/using_inside
inside (obj) { case a: A =>
  a.memberOfA should === ("some value")
}

@bvenners Thanks so much for creating ScalaTest
Some observations:
shouldBe a gives a really nice error
TypeA(0) was not an instance of TypeB, but an instance of TypeA
ScalaTestFailureLocation: InstanceOfTest at (InstanceOfTest.scala:14)
Expected :TypeB
Actual   :TypeA

Whereas inside not so much
The partial function passed as the second parameter to inside was not defined at the value passed as the first parameter to inside, which was: TypeA(0)
ScalaTestFailureLocation: InstanceOfTest at (InstanceOfTest.scala:23)

Test code:
import org.scalatest.Inside
import org.scalatest.funsuite.AnyFunSuite
import org.scalatest.matchers.should

case class TypeA(i: Int)
case class TypeB(i: Int)

class InstanceOfTest extends AnyFunSuite with should.Matchers with Inside {

  val instanceOfA = TypeA(0)

  test("shouldBe a") {
    instanceOfA shouldBe a [TypeA]
    instanceOfA shouldBe a [TypeB]
  }

  test("inside") {
    inside(instanceOfA) { case ia: TypeA =>
      ia should have {
        'i (0)
      }
    }
    inside(instanceOfA) { case ib: TypeB =>
      ib should have {
        'i (0)
      }
    }
  }
}


albef_vqa.rank_answers returns single answer

I've ran following piece of code
import torch
from lavis.models import load_model, load_model_and_preprocess
from PIL import Image

device = torch.device("cuda" if torch.cuda.is_available() else "cpu")

# load sample image
raw_image = Image.open("LAVIS/docs/_static/merlion.png").convert("RGB")

model, vis_processors, txt_processors = load_model_and_preprocess(
            name="albef_vqa", model_type="vqav2", is_eval=True, device=device
        )

question = "Which city is this photo taken?"

image = vis_processors["eval"](raw_image).unsqueeze(0).to(device)
question = txt_processors["eval"](question)

samples = {"image": image, "text_input": question}

answer_list = ["Singapore", "London", "Palo Alto", "Tokyo"]
answers = model.rank_answers(samples, answer_list=answer_list, num_ans_candidates=3)

answers

and got this as an output
{'name': 'blip_image_train', 'image_size': 384}
{'name': 'blip_image_eval', 'image_size': 384}
{'name': 'blip_question'}
{'name': 'blip_question'}

['Singapore']

Is this the expected behavior? Or have I missed something about the inputs?
I was expecting 3 ordered answers or maybe even 3 ordered answers with their probabilities (would be really nice), but got the output from predict_answers

It would be nice if you could provide a complete description of the models' interfaces

Hi @bottledmind ,
The answer is expected.
However, I see your point is valid and helpful.
We'll discuss and see potential patch for this.
Thanks.

Hi @dxli94
For VQA, why need answer_list for the predictive model? How to use that case without answer_list?
Thanks

Hi @dxli94 For VQA, why need answer_list for the predictive model? How to use that case without answer_list?
Thanks

Hi @phanxuanphucnd ,
Answer candidates are usually provided in VQA datasets, leading to a predictive evaluation setup.
See example for cases without using answer list.
Thanks.


samsung tizen os tv

fluid-player version [v3.31.0] latest version not load samsung tizen os tv
After the update, I noticed that the new update player does not work on Samsung TVs. And I had to cancel the update.
The best version that works on this platform is this version (3.29.0)
I use this player on my site and I try to improve it.
Regards {MagNus}

@saman-magnus an internal ticket was created. Thank you!


Integrate recent changes from little-quokka/python-panasonic-comfort-cloud to danielcherubini/python-panasonic-comfort-cloud

@little-quokka Can you double check this i had to do some merging to fix the conflicts.. i believe it's right

The pcomfortcloud/session.py file should no longer be there, but is part of the diff. There also seems to be this part missing in pcomfortcloud/init.py:
from .exceptions import (
    Error,
    LoginError,
    RequestError,
    ResponseError
)

It's a lot of changes, but that caught my eyes.

File main.py is also gone, so is panasonic_auth.py and as previously mentioned session.py.

yeah i'm going to repair this.

So @little-quokka when i pull your branch, and run it... i get some odd behaviour.

That above is just git cloning your repo

Running on linux, and for some reason it's trying to do something with the window management.

Just downloaded the latest version of my repo into a new folder and can run it on both Linux and Windows w/o any error (or seeing it interfering with the window manager - rather strange for a command line program anyway).


Diffusion fails when kld_weight is raised

I built a dataset and trained all 3 stages on it. It gives clean reconstructions but no new items or interpolations: generation after stage 3 is always either a data item, or hash.  I want to improve interpolation, but when I raise kld_weight , stage 1 and stage 2 train well and produce accurate reconstruction, but stage 3 fails.
When β is raised, the encoder produces more widely varying latents for the same data item. (For β 1e-5 L1 between latents is ~.05, for β 1e-4 it's ~.25, the trend continues for higher β.) When diffusion is trained on 1 set of extracted latents, it reconstructs them well and it can generate data items from noise.
But in end-to-end training, when the diffusion stage sees newly generated latents it cannot reconstruct them at all. It performs worse than when generating from noise, producing only hash. It never learns, so gensdf loss never stabilize or drops.
Any idea what this problem is?
Thanks for your consideration.

We also had to spend considerable amount of time finetuning the loss functions and weights for our dataset. Honestly you might just need more data -- that always helps. Our method does not seem to interpolate well on small datasets, or may require a grid search for hyperparameters.


False positive no-undef in TypeScript with interface

see: https://github.com/eslint/typescript-eslint-parser/issues/416
The problem with using StandardJS is that we do not have control on the rules thus we cannot turn off no-undef.
I hope we can add some config for TypeScript to turn this rule off.
Or allow user to turn off some of the rules.

It should be noted that abstract classes and class members inherited from abstract classes also throw this error.

Having the same issue, @feross is there a solution for this yet? Isn't there a way to specify configs for this somehow? Due to this issue I can't use standard anymore with typescript. Which sucks because standard is really awesome.
Please help.

+1

Also for no-use-before-define

JYI: https://github.com/standard/standard/pull/1101
I have created a PR to turn this off for typescript but it hasn't been reviewed/approved and it is stale

Let's track this issue here: https://github.com/standard/standard/issues/1283


winget downloads PowerShell v7.2.7 when machine scope is specified

          also related to Powershell: why is winget trying to install v7.2.7 when requested a machine scope? i had to cancel the installation (ctrl-c)

Winget clearly shows that v7.3.1 is in the package manifest... but then it goes to download v7.2.7?
os: Win 10 x64 Pro 22H2 with full updates, including 2023-01
C:\WINDOWS\system32>winget show Microsoft.PowerShell
Found PowerShell [Microsoft.PowerShell]
Version: <IP_ADDRESS>
Publisher: Microsoft Corporation
Publisher Url: https://github.com/PowerShell/PowerShell/
Publisher Support Url: https://github.com/PowerShell/PowerShell/issues
Author: Microsoft Corporation
Moniker: pwsh
Description:
  PowerShell is a cross-platform (Windows, Linux, and macOS) automation and configuration tool/framework that works well with your existing tools and is optimized for dealing with structured data (e.g. JSON, CSV, XML, etc.), REST APIs, and object models.
  It includes a command-line shell, an associated scripting language and a framework for processing cmdlets.
Homepage: https://microsoft.com/PowerShell
License: MIT
License Url: https://github.com/PowerShell/PowerShell/blob/master/LICENSE.txt
Copyright: Copyright (c) Microsoft Corporation
Copyright Url: https://github.com/PowerShell/PowerShell/blob/master/LICENSE.txt
Release Notes Url: https://github.com/PowerShell/PowerShell/releases/tag/v7.3.1
Tags:
  command-line
  cross-platform
  open-source
  powershell
  pwsh
  shell
Installer:
  Installer Type: wix
  Installer Url: https://github.com/PowerShell/PowerShell/releases/download/v7.3.1/PowerShell-7.3.1-win-x64.msi
  Installer SHA256: cad0026df877f1b195b87aae1858e8bc8ba759c19b7440cd62e1f5432665519f
  Release Date: 2022-12-13

C:\WINDOWS\system32>

C:\WINDOWS\system32>winget install Microsoft.PowerShell  --scope machine
Found PowerShell [Microsoft.PowerShell] Version <IP_ADDRESS>
This application is licensed to you by its owner.
Microsoft is not responsible for, nor does it grant any licenses to, third-party packages.
Downloading https://github.com/PowerShell/PowerShell/releases/download/v7.2.7/PowerShell-7.2.7-win-x64.msi
  ████▉                           17.0 MB /  102 MB
^C^C^C Package download canceled.

C:\WINDOWS\system32>winget --info
Windows Package Manager v1.4.10173
Copyright (c) Microsoft Corporation. All rights reserved.

Windows: Windows.Desktop v10.0.19045.2486
System Architecture: X64
Package: Microsoft.DesktopAppInstaller v1.19.10173.0

Logs: %LOCALAPPDATA%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\DiagOutputDir

User Settings: %LOCALAPPDATA%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\settings.json

Originally posted by @R-Adrian in https://github.com/microsoft/winget-pkgs/issues/94861#issuecomment-1409887688

This seems more of a winget-pkgs issue than a CLI one. I see that Scope: machine was last included in 7.2.7 manifest, but was not carried forward in subsequent versions.
Perhaps @anamnavi can shed some light on why it was removed.

This seems more of a winget-pkgs issue than a CLI one. I see that Scope: machine was last included in 7.2.7 manifest, but was not carried forward in subsequent versions.

This matches what I see in the logs:

Downloads and opens <IP_ADDRESS> manifest.
Installer selection begins.
Fails as none match scope.
Downloads and opens <IP_ADDRESS> manifest.
Installer selection begins.
Fails as none match scope.
Downloads and opens <IP_ADDRESS> manifest.
Installer selection begins.
Fails as none match scope.
Downloads and opens <IP_ADDRESS> manifest.
Installer selection begins.
Matches machine scope.

I'll move it back to winget-pkgs since the client is acting in an expected manner.


Diarization does not work for Russian?

I run diarization on M1 Mac like this:
python3 diarize.py -a trimmed_1min.wav --no-stem --whisper-model large-v2 --device cpu
I get this error:
File "/Users/alexanderblagochevsky/Documents/whisper-diarization/diarize.py", line 160, in
f'Punctuation restoration is not available for {whisper_results["language"]} language.'
TypeError: list indices must be integers or slices, not str
I've tried commenting out punctuation part of the diarization.py and the script completes without error but in the output I get the whole conversation as only 1 speaker.

Fixed, Thanks


fixed hang issue in texinfo

The wait call in Init-test.inc in run_ginfo function called from malformed-split.sh test was causing it, on adding bash dependency in buildenv and calling test scripts using bash, from test-driver in build-aux dir, helped to resolve the issue.

@HarithaIBM good to see the progress. Any idea why bash behaves better? Can you open a separate issue to track this ?

sure Mike, raised https://github.com/ZOSOpenTools/bashport/issues/57


cdk-addons does not clean up ceph-csi when enable-ceph=false

Discovered this while working on https://github.com/juju-solutions/bundle-canonical-kubernetes/issues/675. I deployed a modified kubernetes-master charm that is supposed to revert to the older ceph integration on Kubernetes 1.11. However, the ceph-csi stuff is still present:
$ kubectl get all
NAME                                                   READY     STATUS    RESTARTS   AGE
pod/csi-rbdplugin-attacher-0                           1/1       Running   0          6h
pod/csi-rbdplugin-nl52k                                2/2       Running   0          6h
pod/csi-rbdplugin-provisioner-0                        1/1       Running   0          6h
pod/default-http-backend-hjmmz                         1/1       Running   0          7h
pod/nginx-ingress-kubernetes-worker-controller-b2w8p   1/1       Running   0          7h

NAME                                         DESIRED   CURRENT   READY     AGE
replicationcontroller/default-http-backend   1         1         1         7h

NAME                                TYPE        CLUSTER-IP       EXTERNAL-IP   PORT(S)     AGE
service/csi-rbdplugin-attacher      ClusterIP   <IP_ADDRESS>   <none>        12345/TCP   6h
service/csi-rbdplugin-provisioner   ClusterIP   <IP_ADDRESS>   <none>        12345/TCP   6h
service/default-http-backend        ClusterIP   <IP_ADDRESS>   <none>        80/TCP      7h
service/kubernetes                  ClusterIP   <IP_ADDRESS>     <none>        443/TCP     7h

NAME                                                        DESIRED   CURRENT   READY     UP-TO-DATE   AVAILABLE   NODE SELECTOR                        AGE
daemonset.apps/csi-rbdplugin                                1         1         1         1            1           <none>                               6h
daemonset.apps/nginx-ingress-kubernetes-worker-controller   1         1         1         1            1           juju-application=kubernetes-worker   7h

NAME                                         DESIRED   CURRENT   AGE
statefulset.apps/csi-rbdplugin-attacher      1         1         6h
statefulset.apps/csi-rbdplugin-provisioner   1         1         6h

The command that cdk-addons runs to apply addons and prune old ones (link) does not clean it up:
$ ls /root/snap/cdk-addons/current/addons
auth-delegator.yaml       heapster-service.yaml             metrics-apiservice.yaml
auth-reader.yaml          influxdb-grafana-controller.yaml  metrics-server-deployment.yaml
grafana-service.yaml      influxdb-service.yaml             metrics-server-service.yaml
heapster-controller.yaml  kube-dns.yaml                     resource-reader.yaml
heapster-rbac.yaml        kubernetes-dashboard.yaml

$ kubectl apply -f /root/snap/cdk-addons/current/addons --recursive -l cdk-addons=true --prune=true --force
clusterrolebinding.rbac.authorization.k8s.io/metrics-server:system:auth-delegator configured
rolebinding.rbac.authorization.k8s.io/metrics-server-auth-reader unchanged
service/monitoring-grafana unchanged
serviceaccount/heapster unchanged
configmap/heapster-config unchanged
configmap/eventer-config unchanged
deployment.extensions/heapster-v1.6.0-beta.1 unchanged
clusterrolebinding.rbac.authorization.k8s.io/heapster-binding configured
role.rbac.authorization.k8s.io/system:pod-nanny unchanged
rolebinding.rbac.authorization.k8s.io/heapster-binding unchanged
service/heapster unchanged
deployment.extensions/monitoring-influxdb-grafana-v4 unchanged
service/monitoring-influxdb unchanged
service/kube-dns unchanged
serviceaccount/kube-dns unchanged
configmap/kube-dns unchanged
deployment.extensions/kube-dns configured
secret/kubernetes-dashboard-certs unchanged
serviceaccount/kubernetes-dashboard unchanged
role.rbac.authorization.k8s.io/kubernetes-dashboard-minimal unchanged
rolebinding.rbac.authorization.k8s.io/kubernetes-dashboard-minimal unchanged
deployment.apps/kubernetes-dashboard unchanged
service/kubernetes-dashboard unchanged
apiservice.apiregistration.k8s.io/v1beta1.metrics.k8s.io configured
serviceaccount/metrics-server unchanged
configmap/metrics-server-config unchanged
deployment.extensions/metrics-server-v0.2.1 unchanged
service/metrics-server unchanged
clusterrole.rbac.authorization.k8s.io/system:metrics-server configured
clusterrolebinding.rbac.authorization.k8s.io/system:metrics-server configured

I suspect this occurs when no other addon being applied lives in the default namespace.

In further testing, I found that the merged PRs do not fully solve the issue. Reopening.


Remove eventual crate

https://github.com/carllerche/eventual
This crate is deprecated in favor of futures.
It pulls a problematic version of time
Crate:         time
Version:       0.1.43
Title:         Potential segfault in the time crate
Date:          2020-11-18
ID:            RUSTSEC-2020-0071
URL:           https://rustsec.org/advisories/RUSTSEC-2020-0071
Solution:      Upgrade to >=0.2.23
Dependency tree:
time 0.1.43

It looks like we are only using time through chrono now, which claims not to use vulnerable API: https://github.com/chronotope/chrono/issues/602#issuecomment-1075915577

removed in https://github.com/qdrant/wal/commit/a2d582776598a55d37b185377dbfafa7d57c51f4


code-server --install-extension ms-python.python@ always installs the latest version

Web Browser: None
Local OS: n/a
Remote OS: within docker container
Remote Architecture:  (from docker) Linux 1b4f61ce602c 5.4.0-60-generic #67-Ubuntu SMP Tue Jan 5 18:31:36 UTC 2021 x86_64 GNU/Linux
code-server --version: "3.8.0 c4610f7829701aadb045d450013b84491c30580d"  and "3.7.2 a0db6723c1ef22b40d7ac0df5ac1bb9a92e4fe46"

This is not a problem with 3.7.1
When running ...

$ code-server --install-extension<EMAIL_ADDRESS>Installing extensions...
Installing extension 'ms-python.python' v2021.1.502429796...
Extension 'ms-python.python' v2021.1.502429796 was successfully installed.

Notice that it installed a version different than what was requested.  It seems to always install the latest, no matter what valid version I request.
Also, this happens... (just putting a different valid version now)

coder@1b4f61ce602c:~$ code-server --install-extension<EMAIL_ADDRESS>Installing extensions...
Extension<EMAIL_ADDRESS>is already installed.

... which it isn't.  See...

coder@1b4f61ce602c:~$ code-server --list-extensions --show-versions
<EMAIL_ADDRESS><EMAIL_ADDRESS>
Please let me know if this is an upstream problem I need to file, and where.
Thanks!

Sorry for the late reply @ddurham2 - thanks for the detailed issue! I've added this to our Triage bucket and hope we can investigate soon!

Observations as relating to the version pinning:
I ran into the same issue as I was attempting to pin the ms-python.python extension version to the known-working version indicated in #2341 as this post does .
However, after poking around a bit, I observed that version-pinning works if and only if that version is available at the target repository.
Here's the pertinent snippet in my Dockerfile I am executing that works:
RUN code-server --version && \
    code-server --install-extension<EMAIL_ADDRESS>&& \
    code-server --list-extensions --show-versions

Resulting output:

I also found at the time of this writing that at VS-Code's marketplace, and Open-VSX marketplace, the version I wish I could pin to get around the broken Python extension #2341 doesn't show up on a drop-down list...
VS-Code Marketplace

Open-VSX Marketplace

I'm not sure where the code-server GUI looks to pull versioning, but didn't seem available via web-browser interface.

@jsjoeio Thanks for the info. I do hope this gets fixed soon as my other work arounds are starting to fail.
As for installing the vsxi manually, is there a way to do that from the cli?  (I'm in a Dockerfile here)  I tried giving code-server --install-extension /path/to/file.vsxi but it saying it can't find the extension.  The usage statement says I should be able to give it a vsxi file.
I'm wondering if installing via vsxi file path broke for the same reason that the '@version' syntax broke (my original problem)?
Also, if I were to give it a vsxi file (like ms-python) which requires a dependency (like how ms-python also now depends on jupiter), should installing the vsxi from the cli automatically install dependencies?

@ddurham2  - This is what I'm doing to install via vsix file, hope it helps!
RUN curl -# -L -o /tmp/ms-python-release.vsix "https://github.com/microsoft/vscode-python/releases/download/2020.5.86806/ms-python-release.vsix" && \
    code-server --version && \
    # Below line doesn't work due to a bug that always installs latest version... working around this with vsix file install
    #code-server --install-extension<EMAIL_ADDRESS>&& \
    code-server --install-extension /tmp/ms-python-release.vsix && \
    code-server --list-extensions --show-versions

COPY user_settings.yaml /home/coder/.local/share/code-server/User/settings.json

I tried to workaround this with installing a manually downloaded version of this extension (or any other - this issue seems to affect all extensions) from this address:
url = f'https://extensions.coder.com/api/publishers/{ext.publisher}/vsextensions/{ext.name}/{ext.version}/vspackage'

but sadly, I get the newest version as well. This is kinda important for me to be able to download the right extensions version. Are there any updates on this issue?

@mateuszkitlas have you tried manually installing it from Open VSX? See docs.


Minor typo: AES265 -> AES256

If someone decides to develop a 265-bit key version of AES, I'd probably still read the paper, though.

yup


Toggle Tests for each scan

Hi
Thanks for your great work on embark! Came across this some time and follow your development. While working with Emba I come across several things that would be great to be implemented, I will add them as feature requests for the projects, so it can be discussed if they are valid or not.
Feature request:
It would be great to have the possibility to disable individual tests.
For example the grepit tests takes a lot of time but delivers only marginal results. It would be great to customize the scan as much as possible.
There is already an "Expert Mode" when starting the scan, so it would be good if all modules / scans could be toggled on / off here.
I think in uploader/tests.py or uploader/models.py the command line options for emba are defined, have not looked into detail if this can be modified there.

Hi @jblu42, we have this feature already in EMBA and planned it for EMBArk.

addressed in https://github.com/e-m-b-a/embark/pull/83


Add files via upload

What the program do ?
---- Hello World program
In what programming language it is written?
  Jupyter Notebook with Python 3

Added Hello World in Jupyter Notebook folder
Added Scatter Plot in Jupyter Notebook folder
Added fig-scatter-cs.png in Jupyter Notebook folder


Chore/add gitbook init

PR'ing so progress can be watched.

[x] npm commands to serve / publish docs
[x] high level readme on how to pull, preview, push docs
[x] setup custom domain name
[x] double check github pages and gitbook publishing permissions
[x] gloss over GitBook settings to make sure we're using everything we care about

This is just to get a workflow in place. Next will likely be a rough overview per project, and a consistent way to add examples/code snippets. Also up for suggestions on which, if any, languages we should support by default.

@swederik
http://tools.cornerstonejs.org/ should now be live (if DNS has propagated for you.)
Adding new subdomains for docs associated with other repositories is a two step process:

Create a one line CNAME file similar to this one in the gh-pages branch of the repo.
Add a new CNAME record to the Google Domains DNS record with this pattern:

tools -- CNAME -- 1h -- cornerstonejs.github.io.
^ note the trailing period

The completion of this task creates at least twomore:

We should probably create a bare bones "cornerstone.org" repository to use as hosting for our "orgs" website (which can be a basic index to documentation/examples for now).
SSL would be nice, if only for SEO purposes

It's worth noting that we also have cornerstonejs.io should we need it for anything.

Extra settings, plugins, theme info can be found here:

https://github.com/GitbookIO/gitbook
https://toolchain.gitbook.com/
Examples: https://github.com/GitbookIO/gitbook/blob/master/docs/examples.md

This is actually pretty cool. I don't think we need docs on how to use/publish our docs. Here is a high level overview, let me know if you want me to squeeze it into the readme, wiki, GitBook, or if it's not worth adding:
Non-Maintainers:

Click "Edit This Page" at the top of the GitBook page you want to edit
Make edits and preview
Create pull request

Maintainers:

Run npm run docs to preview documentation for your checked out branch
Run npm run docs:deploy to publish your checked out branch's docs

Limit to myself and @swederik for now?

Note: This may get more complex if we decide to add versions, multiple language support, or documentation for the dev branch (likely overkill for where we're at now)

@swederik can you take a peak at this and let me know if I can :shipit:?
Not 100% sure we even want to use the GUI provided by GitBook.com (FYI). Merging this should close https://github.com/cornerstonejs/cornerstoneTools/issues/255, and get us on the path to better docs and easier doc contributions.

Looks good to me! Merged :-D


How to align the coordinate system of zero123 in threestudio?

I want to align the coordinate system of zero123 in Threestudio with zero123++, how can I do that?

Can you elaborate more on what you want to do?


GemVersionPromoter refactorings

I've been changing bundler-patch to work with the code portions that
have been moved into Bundler, and the tap block at the end of
sort_dep_specs couldn't be overridden, so that's been moved into its own
method.
Another refactoring was to move local vars into instance vars to stop
passing them around. Going all the way to push that into a class seemed
a bit much at this stage.

@segiddins I've caught up bundler-patch to be compatible with this - if yer cool with it, be nice to have maybe an rc2 release when convenient?

@chrismo can you talk me through the decision to use ivars instead of passing the values being compared to the functions?

(a) reads a lot cleaner to me (b) ivars are shared state within an object ... preferably they'd all go into their own class (along the lines of https://sourcemaking.com/refactoring/introduce-parameter-object), but that seems overkill and a perf risk to be spawning an object per comparison. I could go further a create a single instance that was reused - but then I could just 're-use' the instance I'm already in.
It's an awkward in-between state, but I feel is a compromise between readability of all the various comparison cases, good OOP and perf issues.
Happy to discuss other options.

That's fair. This seems good to me! @segiddins r?

I personally don't like the pattern but it's @chrismo's Code so it's up to him

If you feel the style is too different from the rest of the codebase or just have a strong preference that would be a good enough argument for me to go back to passing the args (I don't plan on going anywhere, but y'all on core team have a greater responsibility to it ;)
Thinking about it, there's a good chance I'll be in this code again soon, with a couple pending specs and/or once we get some more feedback - we could go as-is for now, and I'll tinker with it some more.

I'm think I'm okay with trying it—I feel kind of weird about it, but it also seems frustrating to have to pass the arguments a thousand times.  ¯_(ツ)_/¯
@homu r+

:pushpin: Commit 9596f09 has been approved by indirect

:hourglass: Testing commit 9596f09 with merge c90329a...

:sunny: Test successful - status


Update SharedCell serialization

This should handle handles properly and avoid unnecessary stringifying and parsing.
Issue #7694

Merged via #7906 and #7907


System.TypeException : Apex Class does not have a no-arg constructor

Expected Behavior
Framework should query records without throwing exception.
Actual Behavior
System.TypeException :  does not have a no-arg constructor
Steps to Reproduce the Problem
Followed documentation for https://github.com/mitchspano/apex-trigger-actions-framework#avoid-repeated-queries

Create an Apex class to query SOQL records (TA_Opportunity_Queries)
Open Execute Anonymous Window
Execute - Object triggerInstance = Type.forName('TA_Opportunity_Queries').newInstance();
Above statement is equivalent to MetadataTriggerHandler (line 192).
System.TypeException: TA_Opportunity_Queries does not have a no-arg constructor.

Specifications

Version: current
Platform: salesforce

Hello @rarpit - thank you for checking out the framework and raising this issue.
In the documentation, you can see that we author an inner class called Service which is the Trigger Action, and the top level class is the Singleton.
public class TA_Opportunity_Queries {
  private static TA_Opportunity_Queries instance;

  private TA_Opportunity_Queries() {
  }

  public static TA_Opportunity_Queries getInstance() {
    if (TA_Opportunity_Queries.instance == null) {
      TA_Opportunity_Queries.instance = new TA_Opportunity_Queries();
    }
    return TA_Opportunity_Queries.instance;
  }

  public Map<Id, Account> beforeAccountMap { get; private set; }

  public class Service implements TriggerAction.BeforeInsert {
    public void beforeInsert(List<Opportunity> newList) {
      TA_Opportunity_Queries.getInstance().beforeAccountMap = getAccountMapFromOpportunities(
        newList
      );
    }

    private Map<Id, Account> getAccountMapFromOpportunities(
      List<Opportunity> newList
    ) {
      Set<Id> accountIds = new Set<Id>();
      for (Opportunity myOpp : newList) {
        accountIds.add(myOpp.AccountId);
      }
      return new Map<Id, Account>(
        [SELECT Id, Name FROM Account WHERE Id IN :accountIds]
      );
    }
  }
}

So the Apex_Class_Name__c value on the Trigger_Action__mdt row should be:
TA_Opportunity_Queries.Service

System.Savepoint sp = Database.setSavepoint();
Account acme = new Account(Name = 'Acme');
insert acme;

Opportunity opp = new Opportunity(
    Name = 'Sample Opportunity',
    CloseDate = Date.today(),
    StageName = 'Prospecting',
    AccountId = acme.Id
);
insert opp;

opp = [SELECT Id, Name FROM Opportunity WHERE Id = :opp.Id];
System.Assert.areEqual('Acme | Sample Opportunity', opp.Name);
Database.rollback(sp);

The system is working as intended, so I will close this issue, but I will also update the documentation to make this clearer for future readers.

Thank you @mitchspano for quick resolution.


Feature request: Use dropdown on any element

I have only been able to get dropdown to work inside nav elements.
It would be nice if it was possible to add dropdowns to elements outside of nav, for instance:

        ...

What examples have you played with that aren't working outside the navs? Shouldn't be a problem to enable if you're using the right classes and data attributes per our docs.

It works correctly if I use data-toggle="dropdown".
It does not work if I use javascript only: $("#id-of-toggle-element").dropdown()
My original example does not work. If I add data-toggle="dropdown" to the a element, it works.
I believed from reading the docs that the javascript-only approach would be equivalent to using data-toggle.
The javascript-only approach works for elements inside a nav

The JS approach is likely looking for explicit HTML structure (e.g., an li within a ul). @fat?


Fix tests

This came up in CITGM while improving assert.throws in Node.js. See https://github.com/nodejs/node/pull/19867 for more information.
The current tests never checked for the error message and instead, the error message would have been returned, just the same as if there would be no second argument at all.
This makes sure the error message is actually tested for.
Since I just looked at the code, I also added another commit to remove all assert.doesNotThrow calls. Those are always unnecessary. They do not provide any benefit since in case of an error it will just catch the error and rethrow.

👍 thanks


Add PyQt GUI to simulation

I got the following example. It's working, but there are problems:

When the main loop with 100000 clocks is finished I want to stop clock generation - how to do that?
To process Qt events I have to use yield delay(50, units = "us") which is dependent on simulator speed and size of the project - how to make delays in coroutine to be based on real seconds?

May be I should use completely another approach?
How to start Qt's event loop? Or it's better to use TCP sockets over loopback to pass data between GUI and simulation?
from cocotb.triggers import Event as event
from PyQt4 import QtGui, QtCore

@cocotb.test()
def test_gui(dut):
	dut.log.info("test_gui start")
	wait_gui = event()
	cocotb.fork(gui(dut, wait_gui))
	cocotb.fork(clock_100mhz(dut.clock))
	dut.reset = 1
	for i in range(50):
		yield posedge(dut.clock)
	dut.reset = 0
	for i in range(100000):
		yield posedge(dut.clock)
	dut.log.info("test_gui wait gui")
	yield wait_gui.wait()
	dut.log.info("test_gui finish")

@cocotb.coroutine
def gui(dut, wait_gui):
	app = QtGui.QApplication([])
	my_button = QtGui.QPushButton()
	my_button.connect(my_button, QtCore.SIGNAL("clicked()"), my_button, QtCore.SLOT("hide()"))
	my_button.resize(150, 100)
	my_button.show()
	app.processEvents()
	yield posedge(dut.clock)
	while True:
		if(not my_button.isVisible()): wait_gui.set()
		my_button.setText("test %d" % int(dut.test))
		app.processEvents()
		yield delay(50, units = "us")

When the main loop with 100000 clocks is finished I want to stop clock generation - how to do that?

If you save a reference to your forked coroutine, you can stop it by calling kill. e.g
clock_coro = cocotb.fork(clock_100mhz(dut.clock))
........
clock_coro.kill()

To process Qt events I have to use yield delay(50, units = "us") which is dependent on simulator speed and size of the project - how to make delays in coroutine to be based on real seconds?

I'm not familiar with the Qt event processing loop but what if you just remove the yield delay statement in the gui function?

Here is my example of using PyQt with Cocotb, however this code uses crutch: loopback sockets...
import cocotb
from cocotb.triggers import Timer as delay
from cocotb.triggers import RisingEdge as posedge
from cocotb.result import TestFailure as failed

import time, sys
import errno, socket
from multiprocessing import Process
from PyQt4 import QtGui, QtCore, QtNetwork

class gui(QtGui.QDialog):
	def __init__(self, parent = None):
		super(gui, self).__init__(parent)

		layout = QtGui.QVBoxLayout()
		self.setLayout(layout)
		self.label = QtGui.QLabel()
		layout.addWidget(self.label)
		button = QtGui.QPushButton("close")
		button.clicked.connect(self.close)
		layout.addWidget(button)

		self.server = QtNetwork.QTcpServer(self)
		self.server.newConnection.connect(self.new_connection)
		if not self.server.listen(port = 25015):
			self.close()

	def client_read(self):
		text = str(self.client.readAll())
		self.label.setText(text)

	def new_connection(self):
		self.client = self.server.nextPendingConnection()
		self.client.disconnected.connect(self.client.deleteLater)
		self.client.readyRead.connect(self.client_read)

def sim_gui(args):
	app = QtGui.QApplication([])
	_gui = gui()
	_gui.exec_()

@cocotb.test()
def test_gui(dut):
	p_gui = Process(target = sim_gui, args = ("gui",))
	p_gui.start()
	time.sleep(1)
	sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
	sock.connect(("localhost", 25015))

	cocotb.fork(clock_100mhz(dut.clock))
	dut.reset = 1
	for i in range(50):
		yield posedge(dut.clock)
	dut.reset = 0
	for i in range(50000):
		if((i % 10000) == 0):
			try: sock.send(("%s\n" % str(i)).encode("utf-8"))
			except socket.error as serr: pass
		yield posedge(dut.clock)

	try: sock.send(("finished").encode("utf-8"))
	except socket.error as serr: pass
	sock.close()

@cocotb.coroutine
def clock_100mhz(signal):
	period = 10000
	while True:
		signal <= 1
		yield delay(period / 2, units = "ps")
		signal <= 0
		yield delay(period / 2, units = "ps")


Not getting propoer JSON from Zuul Filter to handle it on the front-end

JDK 1.8
Spring Boot 2.0.5
Spring Security OAuth 2.1.5
Spring Cloud Dependencies Finchley.SR4

Googled so far:
https://cloud.spring.io/spring-cloud-netflix/multi/multi__router_and_filter_zuul.html
https://stackoverflow.com/questions/31099368/netflixoss-zuul-filter-for-rejecting-requests
https://stackoverflow.com/questions/38444304/how-to-retrieve-json-error-from-zuul-filter

Problem:
Want to have a proper JSON response if endpoint doesn't contain valid token or token itself. Something like below:
{
statusCode: 403,
statusMsg: "Not Authorised to perform this request",
result: ""
}

We have 17 micro-services behind Zuul proxy. There are certain endpoints which are public and majority requires an OAuth Token before they can have the response.
To achieve this, we have implemented OAuth in Zuul itself to check header for token. If token is not found or invalid, it should throw a 403 forbidden ErrorCode along with a customised StatusMessage for Angular to handle it properly.
Below is endpoint filter to allow only public endpoints without authentication:
@Configuration
@EnableResourceServer
public class TokenService extends ResourceServerConfigurerAdapter {

@Override
public void configure(final HttpSecurity http) throws Exception {

    try {
        http.authorizeRequests()
                .antMatchers("/auth/**",
                        "/main/user/login",
                        "/main/user/basicUserCreation",
                        "/main/user/create",
                        "/main/user/forgetPass",
                        "/main/user/recoverPass",
                        "/order/market/all",
                        "/wallet/withdraw/fee")
                .permitAll()
                .antMatchers("/**")
                .authenticated().and().csrf().disable();
    } catch (Exception e){
        log.error(e.getMessage(), e.getCause());
        throw new Exception(e.getMessage(), e.getCause());
    }
}

}
Above code filters properly. But I want to tweak the 403 response. For that, I have created another Service OverRiding ZuulFilter as below:
@Slf4j
@Service
public class FilterService extends ZuulFilter {

@Autowired
private ProxyRequestHelper helper;

RequestContext context;

@Override
public boolean shouldFilter() {
    RequestContext ctx = RequestContext.getCurrentContext();
    return !ctx.containsKey(FORWARD_TO_KEY) // a filter has already forwarded
            && !ctx.containsKey(SERVICE_ID_KEY);
}

@SneakyThrows
@Override
public Object run(){
    context=RequestContext.getCurrentContext();
    ZuulResponseDTO zuulResponseDTO=new ZuulResponseDTO();
    JSONObject response= new JSONObject();

    if (context.getResponseBody() == null) {
        context.setResponseBody("You are not authorized to access this section without Login");
        context.setResponseStatusCode(403);
        context.setSendZuulResponse(false);

        zuulResponseDTO.setResult(null);
        zuulResponseDTO.setStatusCode(403);
        zuulResponseDTO.setStatusMsg(context.getResponseBody());
        zuulResponseDTO.setResult("null");

        response.put("statusCode", zuulResponseDTO.getStatusCode());
        response.put("statusMsg", zuulResponseDTO.getStatusMsg());
        response.put("result", zuulResponseDTO.getResult());
    }
    log.info("Returning Error >>>>>>>> " + response);
    return response;
}

@Override
public String filterType() {
    return PRE_TYPE;

}

@Override
public int filterOrder() {
    return 0;
    }
}

The problem is that it doesn't send the response as JSON object, instead it just sends as plain text without statusCode or Result values. Below is the screenshot for the same:

Hello, @kunalbarchha, Zuul is no longer supported. The Finchley release train has not been supported for years now. We recommend you switch to the 2020.x release train (or wait for the GA release later this month to switch to the 2021.x release train). And migrate from Zuul to Spring Cloud Gateway.

@OlgaMaciaszek Yes, I do understand the support is revoked, but I guess there should be some sort of guidance mechanism in place to people like me who are managing legacy code. There are 17 micro-services and code base is huge. We do plan to migrate from Zuul to native Spring libraries. But as you may already know, it cannot be done instantly. We recently completed migrating from Spring 1.5.X to 2.1.5, and that was a pain :-)
By the way, is it straight forward to just remove Zuul from dependency and integrating Spring Cloud Gateway ?


[FIF-242] React Conversion - Survey upload UI Style Update

Will change style to mimic mocks
Known Issues

There isn't a defined mock for this page

I found some cosmetic details we can improve on the page.

On the issue about the button background color, it looks like Google Chrome assigns the hover style to the element when it has the focus and is in the mobile mode, when the focus changes to another element, it should have the normal style.


Don't Merge! PR real time test for target branch full build

Docs Build status updates of commit 62f3afe:
:clock10: Full build: the average full build time is 7 min(s) 18 sec(s), this is based on the last 30 build(s) for this repository.

Docs Build status updates of commit 62f3afe:
:warning: Validation status: warnings

File
Status
Preview URL
Details

docs-ref-conceptual/testing.md
:warning:Warning
View (azure-cli-latest) View (azure-cli-2017-03-09-profile) View (azure-cli-2018-03-01-hybrid)
Details

docs-ref-conceptual/testing.md

[Warning] Missing attribute: either ms.prod or ms.service is required. Use ms.prod for on-premise products, or ms.service for cloud services.
[Warning] Missing attribute: title.
[Warning] Missing attribute: either ms.prod or ms.service is required. Use ms.prod for on-premise products, or ms.service for cloud services.
[Warning] Missing attribute: title.
[Warning] Missing attribute: either ms.prod or ms.service is required. Use ms.prod for on-premise products, or ms.service for cloud services.
[Warning] Missing attribute: title.

For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.


Embedded HDF5 fails to build with parallel support

In GitLab by @jbigot on Apr 29, 2021, 18:17

mentioned in commit d25c308abb21017c8eca11f0e4d04bb2baf3301a

mentioned in commit c5d2e5c0a27b2b2de083c72d1412e9d7e4498ccc

mentioned in commit c8dd6c709acfbbe5941709a6f367eaa903769434

created merge request !362 to address this issue


i have exclude node_modules,but not exclude vendor

i had set the nuxt.config.js like this

but when i run build ,i got the error that
ERROR in vendor.bundle.6cf639c819d39b419cb8.js from UglifyJs
Unexpected token: name (swiperPlugins) [./~/gz-vue/src/components/gz-swiper/index.js:5,0][vendor.bundle.6cf639c819d39b419cb8.js:12668,4]
i know the reason that components/gz-swiper have the syntax es6,but i am confused the config of nuxt i only set axios in the vendor,why my components are still be builted in vendor.bundle, how to config nuxt.config.js.
please tell my why, i am crazy now ,my god

@lemonpigpig Apologizes for any inconvenience. Are you using latest (1.0.0-alpha) version of nuxt.js? I think problem is either some .babelrc file exists in gz-vue directory hierarchy or somewhere  gz-swiper is directly importing a vendor. (You may confirm this by checking vendor.bundle.xxxx.js:yy what line is not being transformed.


Get main activity view to setOnTouchListener.

Is there an existing issue for this?

[X] I have searched the existing issues
[X] I have read the guide to filing a bug

Steps to reproduce
I want to be able to listen on the touch listener from kotlin to have android specific native touch handling. However even when getting the main view with findViewById<View>(android.R.id.content).getRootView().setOnTouchListener the touch listener is never registered.
Actual results
Nothing is happening, when the touch listener function should be called
Logs

Logs

<!-- Paste your logs here -->

Flutter Doctor output

Doctor output

[✓] Flutter (Channel stable, 3.16.2, on Ubuntu 22.04.3 LTS 6.2.0-37-generic,
    locale en_US.UTF-8)
    • Flutter version 3.16.2 on channel stable at
      /home/k/snap/flutter/common/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 9e1c857886 (4 days ago), 2023-11-30 11:51:18 -0600
    • Engine revision cf7a9d0800
    • Dart version 3.2.2
    • DevTools version 2.28.3

[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
    • Android SDK at /home/k/Android/Sdk
    • Platform android-34, build-tools 34.0.0
    • Java binary at: /usr/bin/java
    • Java version OpenJDK Runtime Environment (build 17.0.9+9-Ubuntu-122.04)
    • All Android licenses accepted.

[✗] Chrome - develop for the web (Cannot find Chrome executable at
    google-chrome)
    ! Cannot find Chrome. Try setting CHROME_EXECUTABLE to a Chrome executable.

[✓] Linux toolchain - develop for Linux desktop
    • clang version 10.0.0-4ubuntu1
    • cmake version 3.16.3
    • ninja version 1.10.0
    • pkg-config version 0.29.1

[!] Android Studio (not installed)
    • Android Studio not found; download from
      https://developer.android.com/studio/index.html
      (or visit https://flutter.dev/docs/get-started/install/linux#android-setup
      for detailed instructions).

[✓] VS Code (version unknown)
    • VS Code at /snap/code/current
    • Flutter extension version 3.78.0
    ✗ Unable to determine VS Code version.

[✓] Connected device (2 available)
    • moto g pure (mobile) • ZY22F48G5R • android-arm • Android 11 (API 30)
    • Linux (desktop)      • linux      • linux-x64   • Ubuntu 22.04.3 LTS
      6.2.0-37-generic

[✓] Network resources
    • All expected network resources are available.

! Doctor found issues in 2 categories

Hi @0xffffa
In order to address the issue properly, please provide a completed and minimal reproducible code sample that doesn’t include 3rd party plugins or complex production code so that we may verify this.
As this is related to native code, it would be better if you could provide it in a GitHub repository and please add license the code in the repository under some open-source license (e.g. MIT, Apache, BSD, GPL) so that we may look into it. Thank you!