RF: onyo invocation; add tests

This PR refactors main, improves its readability, adds tests and docstrings, and fixes multiple bugs.
The tests focus on behavior when invoking  onyo itself and its flags. Helper functions are also added, which should be useful for other tests which could benefit from powersets.
Bugs fixed:

insufficient number of args to onyo would still exit 0
args named 'config' to subcommands would result in subsequent args being ignored
onyo -d -C /tmp (and similar) would crash with Python trace

Codecov Report
Base: 75.29% // Head: 76.12% // Increases project coverage by +0.82% :tada:

Coverage data is based on head (b5284c3) compared to base (aa83c36).
Patch coverage: 100.00% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #217      +/-   ##
==========================================
+ Coverage   75.29%   76.12%   +0.82%
==========================================
  Files          19       19
  Lines        1287     1294       +7
  Branches      254      254
==========================================
+ Hits          969      985      +16
+ Misses        253      248       -5
+ Partials       65       61       -4

Impacted Files
Coverage Δ

onyo/commands/shell_completion.py
95.65% <100.00%> (ø)

onyo/main.py
100.00% <100.00%> (+30.43%)
:arrow_up:

onyo/utils.py
63.35% <100.00%> (+0.62%)
:arrow_up:

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

:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.

Especially the better handling of the argument "config" makes me happy :)

Thanks! Merging. :-)


HLSL: Implement bit casts between Half and UShort.

I'm trying to get AMD FidelityFX shader through SPIRV-Cross. For some reasons, I have to compile to SPIR-V first. (I know it'd be better to use the HLSL version directly, but for now this flow is more convenient for me.)
The matter is that this function in the generated HLSL gives compile errors:
half APrxLoRsqH1(half a)
{
    uint16_t param = 22947u;
    uint16_t param_1 = 1u;
    return (AW1_x(param) - ((a) >> AW1_x(param_1)));
}

error: int or unsigned int type required
   return (AW1_x(param) - ((a) >> AW1_x(param_1)));

For reference, this is the corresponding SPIR-V dissasembly of the function:
%APrxLoRsqH1_f161_ = OpFunction %half None %32 ; 0x000041a0
        %a_7 = OpFunctionParameter %_ptr_Function_half ; 0x000041b4
         %90 = OpLabel ; 0x000041c0
    %param_9 = OpVariable %_ptr_Function_ushort Function ; 0x000041c8
   %param_10 = OpVariable %_ptr_Function_ushort Function ; 0x000041d8
               OpStore %param_9 %ushort_22947 ; 0x000041e8
        %328 = OpFunctionCall %ushort %AW1_x_u161_ %param_9 ; 0x000041f4
        %329 = OpLoad %half %a_7 ; 0x00004208
        %330 = OpBitcast %ushort %329 ; 0x00004218
               OpStore %param_10 %ushort_1 ; 0x00004228
        %333 = OpFunctionCall %ushort %AW1_x_u161_ %param_10 ; 0x00004234
        %334 = OpShiftRightLogical %ushort %330 %333 ; 0x00004248
        %335 = OpISub %ushort %328 %334 ; 0x0000425c
        %336 = OpBitcast %half %335 ; 0x00004270
               OpReturnValue %336 ; 0x00004280
               OpFunctionEnd ; 0x00004288

This PR extends the support for bit casts so the function at hand is generated correctly for HLSL, like this:
half APrxLoRsqH1(half a)
{
    uint16_t param = 22947u;
    uint16_t param_1 = 1u;
    return f16tof32(AW1_x(param) - (f32tof16(a) >> AW1_x(param_1)));
}

The compiler will need to be passed the -enable-16bit-types switch, which will only work on SM 6.2+, but the intrinsics used were introduced in SM 5.0, so that's the one checked for.

I understand this is not as efficient as one could wish, but at least does the trick. Please take a look to the updated code.


Added html reporting option Closes #11

Added html reporting option

created createHtml() function for generate html report using with raw html string
added --reporter=html in cli usage
added html in validate.ts

Preview of html file

Preview of html file

LGTM! thanks so much @Y-developer!


Installation Issue from octoprint plugin manager

Installing plugin "OctoPrint-OctoLabel" from https://github.com/LowieGoossens/octolabel/archive/master.zip...
/home/pi/oprint/bin/python3 -m pip --disable-pip-version-check install file:///tmp/tmpg1us7vt_/master.zip --no-cache-dir
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Processing /tmp/tmpg1us7vt_/master.zip
ERROR: Exception:
Traceback (most recent call last):
File "/home/pi/oprint/lib/python3.9/site-packages/pip/_internal/cli/base_command.py", line 167, in exc_logging_wrapper
status = run_func(*args)
File "/home/pi/oprint/lib/python3.9/site-packages/pip/_internal/cli/req_command.py", line 205, in wrapper
return func(self, options, args)
File "/home/pi/oprint/lib/python3.9/site-packages/pip/_internal/commands/install.py", line 339, in run
requirement_set = resolver.resolve(
File "/home/pi/oprint/lib/python3.9/site-packages/pip/_internal/resolution/resolvelib/resolver.py", line 75, in resolve
collected = self.factory.collect_root_requirements(root_reqs)
File "/home/pi/oprint/lib/python3.9/site-packages/pip/_internal/resolution/resolvelib/factory.py", line 506, in collect_root_requirements
req = self._make_requirement_from_install_req(
File "/home/pi/oprint/lib/python3.9/site-packages/pip/_internal/resolution/resolvelib/factory.py", line 468, in _make_requirement_from_install_req
cand = self._make_candidate_from_link(
File "/home/pi/oprint/lib/python3.9/site-packages/pip/_internal/resolution/resolvelib/factory.py", line 215, in _make_candidate_from_link
self._link_candidate_cache[link] = LinkCandidate(
File "/home/pi/oprint/lib/python3.9/site-packages/pip/_internal/resolution/resolvelib/candidates.py", line 288, in init
super().init(
File "/home/pi/oprint/lib/python3.9/site-packages/pip/_internal/resolution/resolvelib/candidates.py", line 158, in init
self.dist = self._prepare()
File "/home/pi/oprint/lib/python3.9/site-packages/pip/_internal/resolution/resolvelib/candidates.py", line 227, in _prepare
dist = self._prepare_distribution()
File "/home/pi/oprint/lib/python3.9/site-packages/pip/_internal/resolution/resolvelib/candidates.py", line 299, in _prepare_distribution
return preparer.prepare_linked_requirement(self._ireq, parallel_builds=True)
File "/home/pi/oprint/lib/python3.9/site-packages/pip/_internal/operations/prepare.py", line 487, in prepare_linked_requirement
return self._prepare_linked_requirement(req, parallel_builds)
File "/home/pi/oprint/lib/python3.9/site-packages/pip/_internal/operations/prepare.py", line 532, in _prepare_linked_requirement
local_file = unpack_url(
File "/home/pi/oprint/lib/python3.9/site-packages/pip/_internal/operations/prepare.py", line 224, in unpack_url
unpack_file(file.path, location, file.content_type)
File "/home/pi/oprint/lib/python3.9/site-packages/pip/_internal/utils/unpacking.py", line 241, in unpack_file
unzip_file(filename, location, flatten=not filename.endswith(".whl"))
File "/home/pi/oprint/lib/python3.9/site-packages/pip/_internal/utils/unpacking.py", line 115, in unzip_file
zip = zipfile.ZipFile(zipfp, allowZip64=True)
File "/usr/lib/python3.9/zipfile.py", line 1257, in init
self._RealGetContents()
File "/usr/lib/python3.9/zipfile.py", line 1324, in _RealGetContents
raise BadZipFile("File is not a zip file")
zipfile.BadZipFile: File is not a zip file
Error!
Could not parse output from pip, see plugin_pluginmanager_console.log for generated output

Dear,
The link octoprint uses didn't work, i did change the link to following: https://github.com/LowieGoossens/octolabel/archive/refs/heads/master.zip


arch: arm: cortex_m: fix incorrect conversion from ASM to C of cpu_idle operations.

This mistake was introduced when converting from ASM to C.
The logic related to enterring sleep was swap.
Several irq masking/unmasking operations were also missing.
This change also restores the associated comment from the ASM source.
Th

@sjanc @gchwier @Thalley @nordic-piks I updated this PR with a fix to another discrepancy I saw in the _atomic_ variant.
With this, the generated assembly is the same (modulo register allocation and some instruction optimizations).
I don’t have an NRF board at hand, would you mind giving it a try please?

OK, updated PR seems to fix the issue for me,   I'll run few more tests that excise BT a bit more though

It fixes also problems with tests from zephyr/tests/boot/with_mcumgr for nRF5340

@ithinuel if this parses CI, we can consider marking it as a hotfix, as it's blocking a lot of things right now :D

For me tests are also working OK with this PR.

Everything is working as before, there always an interesting reset issue between the 52840-REV1 and REV-2
Billy..


Remove usage of shaded netty in imports in favor of none shaded one

Fixes #<issue_number_goes_here> (it's a good idea to open an issue first for context and/or discussion)

@garrettjonesgoogle I'm not sure the history on why we use grpc-netty-shaded, but I presume it's because of diamond dependencies issues with netty major versions?

Netty doesn't follow semantic versioning; they break compatibility between minor versions. Netty was the cause of some of our worse early diamond dependency conflicts. I think it is unwise to switch off of grpc-netty-shaded. cc @ejona86

Abandoning the PR, due to issues with non shaded netty in the past

Yes, grpc-java recommends using grpc-netty-shaded for most users, as is visible in our public documentation. gRPC uses unstable APIs in Netty and even if that weren't the case Netty itself does not follow semantic versioning (4.1 was allowed to break interfaces in 4.0). But also depending on the correct netty-tcnative version can be a bit hard for users, and grpc-netty-shaded includes the correct netty-tcnative version.


China marriage abroad - opposite sex

https://trello.com/c/YlTzoBOm/846-getting-married-in-china-opposite-sex-content-change-request-content-change-request
I've made a small content change.
CHANGED

your partner’s Chinese ID card or Hukou (if they’re Chinese)

TO

your partner’s Chinese ID card and Hukou (if they’re Chinese)

REASON
Factual accuracy
This doesn't affect the logic.

Closing this PR, now superseded by #3140


[Bug]: zwavejs2mqtt does not reconnect if the TCP (ser2net) serial port was drop

Checklist

[X]  I am not using Home Assistant. Or: a developer has told me to come here.
[X] I have checked the troubleshooting section and my problem is not described there.
[X] I have read the changelog and my problem is not mentioned there.

Deploy method
Docker
Zwavejs2Mqtt version
6.10.0
ZwaveJS version
9.3.0
Describe the bug
This is a similar issues as #1246.
Once the TCP serial connection drop, it will nerve reconnect until manual restart zwavejs2mqtt or press the SAVE button in the setting menu (another method to restart) also make the TCP serial port reconnect.
I had tested with  v4.3.1 and found the issues was resolved before.
But it is happening again on v5.x.x and v6.x.x of zwavejs2mqtt again.
To Reproduce

Connect the Z-Wave dongle via ser2net
Stop ser2net
Wait for the lost connection in zwavejs2mqtt
Restart ser2net

Expected behavior
After 4., the TCP serial port connection should be auto-restored.
Additional context
No response

I had tested with  v4.3.1 and found the issues was resolved before.
But it is happening again on v5.x.x and v6.x.x of zwavejs2mqtt again.

@dick902 Could you upload logs please? I need to see the errors that are thrown

@dick902 Could you upload logs please? I need to see the errors that are thrown
zwavejs2mqtt_2022-05-26.log

Pls. find attached file as my log file in debug level.
Log file seems show nothing about the TCP serial connection had interrupted.
In the control panel at not showing anything the TCP serial connection had interrupted.

I think the problem so is that zwavejs ins't catching the close event or isn't reconnecting
@dick902  could you also upload zwavejs driver logs please?
cc @AlCalzone

I think the problem so is that zwavejs ins't catching the close event or isn't reconnecting
@dick902 could you also upload zwavejs driver logs please?

zwavejs_2022-05-26.log
zwavejs2mqtt_2022-05-26.log

cc @AlCalzone

Pls. find attached files


Upgrade conduit-commons and other deps

Description
Quick checks:

[x] There is no other pull request for the same update/change.
[ ] I have written unit tests.
[x] I have made sure that the PR is of reasonable size and can be easily reviewed.

@raulb yeah, unfortunately the latest release of Buf CLI and the latest version of google.golang.org/protobuf  don't play well together. I've changed this PR to use a slightly older version of conduit-commons that doesn't use the latest version of protobuf.


GDScript 2.0: Stack overflow regression

Godot version
4.0 dev (7b8c574401b3b3a211fd478eaa3fbb99b6dbb798) nightly after 30th of April
System information
Arch Linux, KDE Plasma, Radeon RX580, amdgpu driver, Vulkan
Issue description
After testing my game in nightly builds of Godot 4.0 dev, starting with commit 7b8c574401b3b3a211fd478eaa3fbb99b6dbb798 (not strictly bisected) I am experiencing a Stack Overflow error, while previously it wasn't there, even though nothing in the game's code has changed:

This error was first noticed in a dev build from commit 7b8c574401b3b3a211fd478eaa3fbb99b6dbb798
The last known working Godot 4.0 dev commit is 8adf04804
A regression must have been introduced somewhere between these two  commits.
Steps to reproduce

Clone and my project Liblast from this specific commit: https://codeberg.org/unfa/Liblast/src/commit/31aefa29dcd62e637dcd203e77602f051a68c320 (the project uses LFS, so make sure you clone that as well - if in doubt please refer to this section of project's README)
Open the scene Game/Assets/Tests/Characer Test.tscn
Hit F6 to play the curent scene.
Observe a stack overflow error.

Minimal reproduction project
No response

Duplicate of #61130?

Please check it out in 4.0 RC 1. If the error is still reproduced, please report it and add an MRP.

I would like to a see a new test too, as this might have been fixed not long after reported by #62462.


mingw: unrecognized options and linking error

Hi!
I'm trying to cross-compile my project, including this library from ubuntu 20.04 to windows with mingw-w64 7.0.0-2, with this toolchain cmake file and I get this error:
x86_64-w64-mingw32-gcc: error: /arch:AVX: No such file or directory
x86_64-w64-mingw32-gcc: error: /Zi: No such file or directory

which I found in cmake/CXXhelpers.cmake
so my guess is that mingw doesn't know these options (and it expects dashes instead of slashes anyway)
commenting out line 18 seemed to work
however now I'm getting linking errors:
/usr/bin/x86_64-w64-mingw32-ld: bin/liblibnyquist.a(FlacDependencies.c.obj):FlacDependencies.c:(.text+0x1a6d2): undefined reference to `fopen_utf8'
/usr/bin/x86_64-w64-mingw32-ld: bin/liblibnyquist.a(FlacDependencies.c.obj):FlacDependencies.c:(.text+0x1a7b2): undefined reference to `fopen_utf8'

I actually don't need flac, nor libnyquist to manage fileio, so I just tried commenting out stuff so that it at least compiles but I just generated more errors instead. (Should I use a different library if I don't need half the stuff?)
Can someone push me in the right direction?

I found the problem for the linking error:
in src/FlacDependencies.c at line 82-84:
#if defined(_MSC_VER)
#include "FLAC/src/win_utf8_io.c"
#endif

the include is needed, but probably _MSC_VER is not defined when using MinGW
commenting out the if and endif worked again and now it runs yay!!
it would be cool if these would be fixed (so I could use it in a git submodule cleanly :D)
I'd love to create a pull request to fix these 2, but I don't want to break every other platform. I'll try my best at least:
for the 2nd one I found this:
if defined(_WIN32) || defined(_WIN64) which could replace _MSC_VER and possibly work
for the 1st one:
    if (WIN32)
        target_compile_options(${proj} PRIVATE /arch:AVX /Zi )
    endif()

I found that instead of if (WIN32) maybe if (MSVC) would work based on this


Update API Security wiki entry

Describe the task
Update https://github.com/bcgov/nr-forests-access-management/wiki/API-Security to reflect status after #883
Acceptance Criteria

[ ] Endpoint Listing updated
[ ]  Text  updated

Additional context
A wrap-up task for the Epic: Split user management into separate deployment unit#883

this is done in ticket #1221


Update wxa.py

改动说明

修正submit_audit参数错误
增加撤回审核接口
增加版本回退接口

Codecov Report

Merging #526 into master will decrease coverage by 0.02%.
The diff coverage is 60%.

@@            Coverage Diff             @@
##           master     #526      +/-   ##
==========================================
- Coverage   72.17%   72.14%   -0.03%
==========================================
  Files          80       80
  Lines        3037     3041       +4
==========================================
+ Hits         2192     2194       +2
- Misses        845      847       +2

Impacted Files
Coverage Δ

wechatpy/client/api/wxa.py
53.62% <60%> (-0.23%)
:arrow_down:

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 d84c0e3...abe3f7a. Read the comment docs.


add: Carbon Negative miner address

The miner switched to a new address but kept re-using the same coinbase script hex of<PHONE_NUMBER>0920090920090.
Closes #83
related #48

742802 is the last block to 33SAB6pzbhEGPbfY6NVgRDV7jVfspZ3A3Z
743037 is the first block to 3KZDwmJHB6QJ13QPXHaW7SS3yTESFPZoxb


How to manage memory?

What is the idea behind the memory management? Should I always call dispose when done with a tensor. If I run this code I had expected the GC to take care of memory management but I get out of memory (if n is large).
using System;
using TorchSharp.Tensor;

namespace ConsoleApp1
{
class Program
{
static void Main(string[] args)
{
int n = 10;
for (int i = 0; i< n; i++)
{
var x = FloatTensor.RandomN (new long[] { 64000, 1000 }, device: "cpu:0");
//var y = x + 1.0;
//var x = new long[64_000_000];
}
Console.WriteLine("Hello World!");
Console.ReadKey ();
}
}
}

It could be we need to add a call to this for each allocation of a tensor (especially large ones, obviously)
https://docs.microsoft.com/en-us/dotnet/api/system.gc.addmemorypressure?view=netcore-3.1

To answer the question - you can explicitly dispose, but if you don't then finalizers will be used.
(Note to self, from the docs: https://docs.microsoft.com/en-us/dotnet/api/system.gc.addmemorypressure?view=netcore-3.1

The AddMemoryPressure and RemoveMemoryPressure methods improve performance only for types that exclusively depend on finalizers to release the unmanaged resources. It's not necessary to use these methods in types that follow the dispose pattern, where finalizers are used to clean up unmanaged resources only in the event that a consumer of the type forgets to call Dispose. For more information on object finalization and the dispose pattern, see Cleaning Up Unmanaged Resources.
)

@AndersGarpebring #168 adds an option for registering native large tensors as causing memory pressure.  It is still explicit - and you must certainly make sure you're not holding on to tensors - but it helps the .NET GC be much more accurate about when to dispose the small object handles that wrap large native tensors.

#168 also added docs on memory management here: https://github.com/xamarin/TorchSharp/blob/master/docfx/articles/memory.md so I'll close this for now


system tests indicate that some written log lines cannot be retrieved

Our system tests call log.delete as an after hook, it's frequently the case that a log line fails to be deleted, even after >30s of waiting:
delete of system-test-logs-df4ebe77-8e09-432b-b971-2adacc2e18c4 failed retries = 1
delete of system-test-logs-df4ebe77-8e09-432b-b971-2adacc2e18c4 failed retries = 2
delete of system-test-logs-df4ebe77-8e09-432b-b971-2adacc2e18c4 failed retries = 3
delete of system-test-logs-a0d900e6-1005-43e0-bf10-b15750367cae failed retries = 1
delete of system-test-logs-a0d900e6-1005-43e0-bf10-b15750367cae failed retries = 2
delete of system-test-logs-a0d900e6-1005-43e0-bf10-b15750367cae failed retries = 3
delete of system-test-logs-dbb4fdef-2234-42b5-acd5-e413bac75c48 failed retries = 1
delete of system-test-logs-dbb4fdef-2234-42b5-acd5-e413bac75c48 failed retries = 2
delete of system-test-logs-dbb4fdef-2234-42b5-acd5-e413bac75c48 failed retries = 3

we should dig into this further and, if need be, log an issue with the upstream API.

Perhaps implement a logic to delete logs on a subsequent system-test.
collect all log IDs that failed to be deleted and write them in another log with hard coded name like 'to_delete'. In the beginning of every system-test check for entries in that log?


Fix container status info, closes #293

https://github.com/mesg-foundation/core/issues/293
To think, should we have unknown status? or print both statuses (or have verbose mode).
For now, it fixes the pbm.

After some brainstorm with @antho1404, we need to add more features to this PR about the Status function of the package container.

[ ] Add 2 new status: UNKNOWN and STARTING:

// Possible status for services.
const (
	UNKNOWN StatusType = iota
	STOPPED
	STARTING
	RUNNING
)

[ ] Merge container.ServiceStatus to container.Status
We need to merge the status functions into one. This new function should:

find the docker's service. if not found, return status STOPPED. if err, return status UNKNOWN with error. otherwise, continue
find the docker's container. if not found, return status STARTING. if err, return status UNKNOWN with error. otherwise, continue
check the container's state. if it's Running, return RUNNING. otherwise return STARTING

[ ] use the updated container.Status function in daemon/status.go and service/status.go

@krhubert what do you think?

@ilgooz @antho1404  please review

@antho1404 is working on fixing this PR


Data collection properties that are optional do not have their rules used

✏ Describe the bug
Optional Data Collection property's rules are not taken into consideration when it's not part of the request body.
I am trying to create a DTO that has to have one of the collections present if the other does not. (someData is required if someOtherData is not present. And vice versa).
The problem is that if none of the properties are passed to the DTO, then it does not consider the rules of those optional properties.
↪ To Reproduce

it('does not return validation rules for optional collections', function () {
    class ChildData extends Data
    {
        public function __construct(
            public string $key,
            public string $name,
        ) {

        }
    }

    class BaseData extends Data
    {
        public function __construct(
            public int $id,
            public string $name,
            #[RequiredWithout('someOtherData')]
            #[\Spatie\LaravelData\Attributes\DataCollectionOf(ChildData::class)]
            public \Spatie\LaravelData\DataCollection|Optional $someData,
            #[RequiredWithout('someData')]
            #[\Spatie\LaravelData\Attributes\DataCollectionOf(ChildData::class)]
            public \Spatie\LaravelData\DataCollection|Optional $someOtherData,
        ) {

        }
    }

    // Validation rules for someData and someOtherData not present
    dd(BaseData::getValidationRules(['name' => 'test', 'id' => 1]));
});

✅ Expected behavior
Validation rules are always present, so we can have cases like requiredWithout.
🖥 Versions
Laravel: 9.52.10
Laravel Data: 3.7.0
PHP: 8.1

It seems to be because of the condition on DataValidationRulesResolver::78 where if the property is optional and the field is not in the payload we skip validation. But in this case, I want the two fields to be optional but throw a validation error that at least one of them has to be set.
I am happy to do a PR if you think we could add a check for explicit Required or Exclude rules and allow validation always. Or let me know if I am missing something

I am happy to do a PR if you think we could add a check for explicit Required or Exclude rules and allow validation always. Or let me know if I am missing something

You're always welcome to do such a thing, I certainly would accept a well tested PR. Good luck!

@KaloyanYosifov, something to consider: https://github.com/spatie/laravel-data/issues/500
We basically have the same problem with data objects and a null value.

Fixed thanks to @KaloyanYosifov!


Wrong Map Visualization

Challenge http://www.freecodecamp.com/challenges/zipline-build-a-simon-game has an issue. Please describe how to reproduce it, and include links to screenshots if possible.
I've not completed this one, but I have completed the tic-tac-toe. The Simon challenge is marked as complete, while the tic-tac-toe is not. Links and solutions on the portfolio page are correctly reported.

Dear camper, your issue is related to:
https://github.com/FreeCodeCamp/FreeCodeCamp/issues/1800
Please see Help I've Found a Bug.


:(  They manage to put bots on my server :(

not like, but there are many bots in agario.city FFA 1 anti bot please :(
It can even handle bots
IS
http://agar-api.tk/ Agar API (or Agar.io API) : best bots for MultiOgar and Ogar servers!
when the hack is public, everyone will have bots

As far as I know, the Developers of AgarAPI are @nulcearc and @David1ali12.
According to the comment they made below.

^^ Unknown said, that they won't release the client now as private servers cannot handle more than 55 bots and therefore private servers aren't powerful as of yet.
This means that when they release the client, they will remove private servers support, so that people cannot bot on private servers.

Uhmm, i mean i want it for my server.... Just for admin use.

my skype : calvin.leonhardt


FloatingPointError: Loss is infinite or NaN

Thank you for your nice work!
However, I encountered some issues when I try to run it. I haven't been able to solve this error for a long time so I have to ask you for help.
When the procedure go into "TextEncoder" of "CustomCLIP" for the second time, it makes this error: "FloatingPointError: Loss is infinite or NaN!"
I debugged this error and found that the problem was in the TextEncoder's transformer network: Before the input enters the first LayerNorm, there is no NaN. But after LayerNorm, the output appears NaN.
I have searched the solutions of this error.
Someone says that it may be because float16 is not precise enough, causing overflow, and needs to be converted to float32. But your code is like this:
orig_type = x.dtype
ret = super().forward(x.type(torch.float32))
return ret.type(orig_type)

The input type has been converted to float32 before LayerNorm.
In addition, the input values are not large. They are all in the order of magnitude of about 1e-2.
So does anyone know why this error occurs?

halo friend! Did you work out this error? Can you give me some advice?


CAD-932, CAD-902: update scripts

Update the scripts to the node expecting the parent dirs of --socket-path and --db-path to exist.
Stash profiling & RTS stats data in profile/.
Update the README's.
Update the scripts to accomodate repository structure changes from April 21.
This PR does not result in breaking changes to upstream dependencies.

Checklist

[x] This PR contains all the work required to resolve the linked issue.

[x] The work contained has sufficient documentation to describe what it does and how to do it.

[x] The work has sufficient tests and/or testing.

[x] I have committed clear and descriptive commits. Be considerate as somebody else will have to read these.

[x] I have added the appropriate labels to this PR.

bors merge


Any interest in CRDs?

I love this project! For my own use, I'd prefer to have the bane configs live in CRDs inside my cluster, and have the DaemonSet sync those.
Do you have any interest in something like that for this repo, or should I go off and roll my own? "No" is a perfectly fine answer, of course, it's a fairly radical departure from the simplicity of your setup :)

Hey @danderson thanks for the issue!
I think it's important to remind ourselves that this is a POC because apparmor is hard on Kubernetes.
What you're suggesting imo is found in the future work of the proposal:

We could provide an official supported solution for loading profiles on the nodes. One option is to extend the reference implementation described above into a DaemonSet that watches the directory sources to sync changes, or to watch a ConfigMap object directly. Another option is to add an official API for this purpose, and load the profiles on-demand in the Kubelet.

So yeah I'm totally interested and so is the community, aside from any examples (which are totally welcome) there's still some work to do before bane is production ready (e.g. it needs garbage collection/profile reconciliation)
words? thoughts?


Shapenet features

❓ Questions & Help
Hi,
I have a quick question about ShapeNet data - couldn't find answer anywhere.
I would like to plot examples as point cloud - to do so I need x, y, z coordinates. Are they values of data.x from imported ShapeNet dataset?

They are saved in data.pos.

Thank you a lot for answer!

They are saved in data.pos, data.x contains the normals for each point.

Hi, @rusty1s , I find the data.x is provided by the raw ShapeNet Dataset, from colum 3 to 5. I'm not sure what is the data.x mean and how to calculate this value. Could you help me? Thx a lot!

Hey @mkumaszka @Flawless1202
Have a look at https://github.com/nicolas-chaulet/torch-points3d.
We have plenty of visualisations 👍
Best regards,
Thomas Chaton.

The ShapeNet dataset also provides normal vectors for each point, so for any given point data.pos[i], data.x[i] refers to its normal vector. We do not calculate that value, it's provided by the raw dataset to ease the learning task.

The ShapeNet dataset also provides normal vectors for each point, so for any given point data.pos[i], data.x[i] refers to its normal vector. We do not calculate that value, it's provided by the raw dataset to ease the learning task.

Thx a lot!


project: update infrastructure for bower/amd usage

For LaxarJS/laxar#179 and LaxarJS/laxar#225 to fully work, we need to update the widget infrastructure.
The widget.json should use the internal name: ax-popup-widget.
The bower.json should use the fully qualified name: laxar-popup-widget.
This makes widgets work exactly like controls.

Implemented on master (v2.2.0).


No MATLAB Wrapper in Windows installer.

Before opening a new issue, we wanted to provide you with some useful suggestions (Click "Preview" above for a better view):

Consider checking out SDK examples.
Have you looked in our documentations?
Is you question a frequently asked one?
Try searching our GitHub Issues (open and closed) for a similar issue.

All users are welcomed to report bugs, ask questions, suggest or request enhancements and generally feel free to open new issue, even if they haven't followed any of the suggestions above :)

Required Info

Camera Model
D405

Firmware Version
5.5

Operating System & Version
Win 10

Kernel Version (Linux Only)
--------------

Platform
PC

SDK Version
[SDK 2.0 (v2.54.2)

Language
MATLAB

Segment
Robot

Issue Description
Hello,
I am using a D405 cam, I installed the [SDK 2.0 (v2.54.2)]  (https://github.com/IntelRealSense/librealsense/releases/tag/v2.54.2) using the windows installer and also upgraded the firmware to the latest.
I could not find any MATLAB folder for the wrapper in the installed folder. Am I doing something  wrong ? These are the only folders I see ..

Please help ...
Thank you

Hi @saroshpatel  I replied to your question at https://github.com/IntelRealSense/librealsense/issues/6014#issuecomment-1820445396

Thank you. I saw that. I was solved.

You are very welcome.  As you have achieved a solution, I will close this case.  Thanks very much for the update!


phone-book Motoko example

Recreate the counter Motoko example found here: https://github.com/dfinity/examples/tree/master/motoko/phone-book
Use the calc Motoko example as a template: https://github.com/demergent-labs/azle/tree/main/examples/motoko_examples/calc
A big reason for recreating the Motoko examples is to find limitations with Azle. Please document any limitations/bugs/errors you find in Azle in this issue thread.

I would like to work on that next.


[sk] Added support for runtime defined variables

Summary
When running a pipeline with mage_ai.run, users can now specify runtime specific variables as keyword arguments which become accessible by blocks at execution time. Any variable name can be used except those reserved at block execution runtime, which are:

data_loader for data loaders
data_exporter for data exporters
transformer for transformers

If a name conflict with a reserved name is found, an error is raised and the pipeline execution fails.
Example Usage
Suppose the following is a data loader block defined by the user in a pipeline (notice that filepath is not defined):
import pandas as pd

if 'data_loader' not in globals():
    from mage_ai.data_preparation.decorators import data_loader

@data_loader
def load_data_from_file() -> pd.DataFrame:
    return pd.read_csv(filepath)

Then the pipeline executing the block can be ran as:
mage_ai.run('sample_pipeline', repo_name='default_repo', filepath='path/to/my/data.csv')

where the value specified for filepath will be used to populate the variable in the block.
Tests
Changes were tested locally by creating a pipeline with runtime variables and executing the pipeline with the given parameters in mage_ai.run
cc:
@wangxiaoyou1993

We need to make sure there're no syntax/compilation errors when running individual block files

I realized that too, I think that instead of providing variables just during runtime, there needs to be a more general variable management system. Ideally this would be a python variable management system that runs alongside the rest of the API. I can look into it further.

Made a few updates:

Websocket message now accepts a new parameter: global_vars, a dictionary of all the global variables to inject into the runtime. This parameter can be left as null to indicate that there are no global variables to inject. This allows the user at runtime to specify the global variables to inject into the runtime. Tagging @dy46 since server/output_display.py was modified and you would know if anything was broken.
Pipeline execution request (POST) now will expect to receive a parameter in the body of the request of the form:{
     "global_vars" : {}
}

which specifies the global variables to execute the pipeline with.

Can you pass the variables in kwargs to the block methods? Referencing a non defined variable in a block file will show syntax errors.


Change name of module

RtWithoutRenewal is a bit misleading. I'm proposing EpiAware which focuses on what @seabbs is mentioning here.

Agree

@zsusswein Want to change the repo name?

We can also change the repo name but the review from Katie is that we're fine to leave it as is if we don't want to change. Just need to be clear what's going on in the readme.


Edit comments in check-windows-service.rb

Pull Request Checklist
Minor change to comments - no issue.
General

[x] Update Changelog following the conventions laid out on Keep A Changelog
Not a change to code, so no entry in changelog

[x] Update README with any necessary configuration snippets
Not applicable

[x] Binstubs are created if needed
Not applicable

[x] RuboCop passes

[x] Existing tests pass

Purpose
Comment in script did not match the actual name of the script. Also replaced "user-inputted" with "user-supplied".

thanks!


Swipe could trigger onPress action  by mistake

Current behaviour

My application contains couple pages, each page is a list. Click each list item and jump to a different view. The problem is when current page is the first/last page and scroll left/right, it triggers "Click" action.
The root cause is in TabViewPageScroll.js, we should set onStartShouldSetResponderCapture in ScrollView. In Facebook document, it says: "So if a parent View wants to prevent the child from becoming responder on a touch start, it should have a onStartShouldSetResponderCapture handler which returns true". Here is the document link.
<ScrollView
        horizontal
        pagingEnabled
        directionalLockEnabled
        keyboardDismissMode="on-drag"
        keyboardShouldPersistTaps="always"
        overScrollMode="never"
        scrollEnabled={this.props.swipeEnabled}
        automaticallyAdjustContentInsets={false}
        bounces={false}
        alwaysBounceHorizontal={false}
        scrollsToTop={false}
        showsHorizontalScrollIndicator={false}
        scrollEventThrottle={1}
        onScroll={this._handleScroll}
        onScrollBeginDrag={onSwipeStart}
        onMomentumScrollEnd={this._handleMomentumScrollEnd}
        contentOffset={this.state.initialOffset}
        style={styles.container}
        contentContainerStyle={layout.width ? null : styles.container}
        onStartShouldSetResponderCapture = {(evt) => true}    //we should add this two lines of code
        onMoveShouldSetResponderCapture = {(evt) => true}  //we should add this two lines of code
        ref={el => (this._scrollView = el)}
      >
        {React.Children.map(children, (child, i) => (
          <View
            key={navigationState.routes[i].key}
            testID={navigationState.routes[i].testID}
            style={
              layout.width
                ? { width: layout.width, overflow: 'hidden' }
                : i === navigationState.index ? styles.page : null
            }
          >
            {i === navigationState.index || layout.width ? child : null}
          </View>
        ))}
      </ScrollView>

Screenshots (if applicable)

What have you tried

Your Environment

software
version

ios or android
iOS 11

react-native
0.55

react-native-tab-view
1.0

node
9.4

npm or yarn
5.6

On old iPhones (iPhone 5/5s), my above proposal works perfect. However, surprisingly on iPhoneX/7 it does not work but could disable onPress action. I'm not sure why.
Another way is to make bounces = true in ScrollView of TabViewPagerScroll.js

Dear fellows @ikzjfr0 and @satya164 , I think my issue #570 is related to this.
When swipes tabs at Android it seem to get two ahead. However it works well at ihpne 5s. I can´t tell on newer Iphones but I hope its the same issue.
Do you have any workaround for instance?
Appreciate your help. Thanks.

@lixaotec  set bounces={true} is a possible solution

Hey, I just released a new alpha 2.0.0-alpha.0 of the library. It's rewritten using react-native-gesture-handler and react-native-reanimated addresses a many platform specific bugs and performance problems. The documentation is updated as well.
Please try the new version and see if it addresses your issue. If not, please open a new issue following the issue template.

I'm still getting this issue on 2.14.0. Is there any setting I should be looking at?


uninstalling namespace in ssd hard need to be enhanced

Description
According to our discussion, we create a zdb server per namespace bun in uninstalling action we delete only the created namespace which ends a zdb server with no use. We need to enhance the uninstallation method to make the env more clear.

@zaibon I proposed the following:

In the node template, we don't allow ssd zerodb to be reusable by other namespaces.
In namespace template when we uninstall an ssd namespace we also uninstall and delete the zerodb.
However, I think it is a bit icky for the zerodb service to get created in the node template but gets removed in the namespace template. So may be in the case of ssd namespace, we actually do the zerodb creation in the namespace template, that way it would logically be ok to delete it there too.


Pins on the tiles are clickable?

Thanks for your wonderful package! You really saved me!
I would like to know that is there any solution to have the pins(📍) on the tile clickable? so, for example when I click on the 📍, a modal opens. Many thanks

Hi, sorry for the delay. For now, it's not possible natively. But as you can get the coordinates of the clickable area, you can loop on the array of pins and compare x and y values (add a tolerance).
Not very clean but should work. I will rework the lib in some weeks. I'm finishing work on another project.


Fix disable bitcode statement in targets

Cocoapods tries to build targets with bitcode. Current version of podspec looks like a typo

@ilkerc thank you!


Gatsby v5 - test run

Motivation
Based on #220
Checklist

[ ] Code follows coding conventions held in this repo
[ ] Automated tests have been added
[ ] Tests are passing
[ ] Docs have been updated (if applicable)
[ ] Temporary settings (e.g. variables used during development and testing) have been reverted to defaults

How to test
If manual testing is required, what are the steps?

createRedirect does not work for Gatsby5 project on Netlify -> not sure why => see Relationship deployment: https://deploy-preview-222--kontent-ai-gatsby-example-relationships.netlify.app/ -> /articles should redirect to /en-US/articles

blocked by https://github.com/gatsbyjs/gatsby/issues/37256

Starter update: https://github.com/kontent-ai/gatsby-starter/pull/52


Unittest

Create some unittests for run inside tox #2

Corral now have his own tests framework. You can run it with
$ python run_test.py


[AzureML] Add async APIs

The SDK needs to add an aio namespace with an async MLClient.
This will be required before GA and final API sign-off.

First step - do a prototype of a single operation to assess the work involved:

job.create_or_update: Specifically let's start with the Storage module for file upload/download and work backwards from there.
Move to first tier simple operations like environments, the move out to the jobs operations that depend on it.


Check for pair of brackets in query preparation for Athena cache

Feature or Bugfix

Bugfix

Detail
When preparing queries for comparisons, brackets are just stripped from the query string which in some cases leads to deeming queries unequal even if they are the same.
One example would be a query like:
SELECT *
FROM my_tbl
ORDER BY (col_1, col_2);

If i run this query twice against Athena it will think these are two different queries as it will just remove the ) in the end.
To prevent cases like this, my proposal would be to just check for columns which encapsulate the complete query. I know that also this is not perfect, but at least is a little bit better that it is right now. However, this is debatable and I'm open for a discussion :slightly_smiling_face:
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

AWS CodeBuild CI Report

CodeBuild project: GitHubCodeBuild8756EF16-4rfo0GHQ0u9a
Commit ID: dce9dc38af661e02f1cc082b19fe3033e26323ab
Result: SUCCEEDED
Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository


feat: add image viewer

Add image viewer
Fixed thread blocking during image upload

LGTM

I cherry pick this pull requests, pretty useful

@TheRamU  you may need fix this

LGTM.
now it should be fine from memory leaks especially on mobile

the only thing left now only fix this one later,

also that one it's not cause of image viewer

Show off I am so cool

anyway this stable and pretty useful, why not merge into the main then release lmao

plus the function and ui can be reused for improve,etc


why did dapr not support mariadb?

In what area(s)?

/area runtime

Describe the feature

why did dapr not support mariadb?
Release Note

RELEASE NOTE:ADD

Hey @ggjjlldd how are you?
As one of the main goal of Dapr is being community-driven and supporting a variety of databases would be certainly a desired future and a metric of success for the entire community.
Offering support to MariaDB as a statestore is a matter of implementing the statestore component, and if you think this is important for you - as part of the community, raising the flag as you are doing now when opened this issue is the right way to get there.
As I don't have previous knowledge about how many people or how many "flags" were raised for MariaDB I would suggest two ways for getting this done:

Open the same issue on the https://github.com/dapr/components-contrib repository and ask for the community feedback, hence for help to implement it in the next releases (or at least adding it on roadmap to be prioritized later)
Implement your own pluggable component (https://docs.dapr.io/operations/components/pluggable-components/pluggable-components-overview/) - keep in mind this is a preview feature


UserUpdate incorrect response

The UserUpdate chat event states that a permissions and username are passed when called.
After being unauthenticated and authenticated with the chat socket, neither are passed upon any role update.
Image here
Also mentioned in the community devs channel in the community discord.

These properties are no longer sent so they have been removed from the documentation


HHH-12717 order_inserts: commit with OneToOne and OneToMany causes incrorrect ordering and subsequent constraint violation

Testcase for HHH-12717 order_inserts: commit with OneToOne and OneToMany causes incrorrect ordering and subsequent constraint violation

The problem is not the ordering, but your mapping.
The Parent also has a FK to a Child:
@OneToOne(cascade = CascadeType.ALL)
public Child child;

which means the Child needs to exist prior to the Parent.
So, the Child entity is the parent of the Parent entity.
And, at the same time, the Parent is also a parent to the Child:
@OneToMany
private List<Child> otherChilds = new ArrayList<Child>();

This is a "Chicken or the Egg" problem and no sorting algorithm will figure out which one should be the first.
Looking forward to your explanation about your Domain Model.

Our Domain Model worked without any problems since years with hibernate 3.
With hibernate 5.2.17 the problem arises only if order_inserts is true.
With hibernate 5.2.4 the same test was green, even with activated order_inserts.
In the log output of the test I see, that the OneToMany association is mapped by a join table, for which the insert statement is executed late.
If we add @JoinColumn to the OneToMany List the association is mapped by a join column in the child table. If with this changed mapping the same child object is added to the OneToOne and at the same time to the OneToMany association there in theory a "Chicken or the Egg" problem could arrise. In reality a test showed me, that hibernate in that situation executes two insert statements an an additional update statement to avoid that problem.
But in our test case there is no @JoinColumn and additionally we never add the same child object to the OneToOne and to the OneToMany association.
In our application with thousands of entities we have a lot of constraint violations if we switch on order_inserts. With hibernate 3 this problem does'nt  exist.
What ca we do?

Closed issue because, unless the database table model is valid and parent tables don't have FK back to child tables, there's nothing we can do to fix it for every combination of unidirectional and bidirectional associations.


Hello, can you add Udp2raw-tunnel support or something similar? thank you

Hello, can you add Udp2raw-tunnel support or something similar? thank you
ISP providers in some countries add QoS restriction, if use Udp2raw-tunnel can helps Bypass UDP masking or QoS restrictions

Sorry but that is outside of the scope of this project.


Windows - Not able to get python based tools to work without  having VCRUNTIME140.DLL installed.

gptscript version - v0.0.0-dev-cb54f3b0-dirty
Set up - Windows 11 Pro VM on Azure.
Steps to reproduce the problem:

Execute gptscript that has uses remote python based tool.

tools: github.com/sangee2004/testrepo/pythontool

greetings

gptscript execution fails with exit status 0xc0000135

.\gptscript.exe --disable-cache --debug .\testpython2.gpt
{
  "level": "debug",
  "logger": "/pkg/loader",
  "msg": "opened testpython2.gpt",
  "time": "2024-04-26T20:22:28Z"
}
{
  "level": "debug",
  "logger": "/pkg/loader",
  "msg": "opened https://raw.githubusercontent.com/sangee2004/testrepo/807de896c266c9bfd3af2ae1b2459caa38b07d18/pythontool/tool.gpt",
  "time": "2024-04-26T20:22:28Z"
}
{
  "input": "",
  "level": "debug",
  "logger": "/pkg/monitor",
  "msg": "Run started",
  "program": {
    "name": ".\\testpython2.gpt",
    "entryToolId": "testpython2.gpt:1",
    "toolSet": {
      "https://raw.githubusercontent.com/sangee2004/testrepo/807de896c266c9bfd3af2ae1b2459caa38b07d18/pythontool/tool.gpt:1": {
        "name": "test-tool",
        "description": "greetings",
        "modelName": "gpt-4-turbo-preview",
        "internalPrompt": null,
        "instructions": "#!/usr/bin/env python3 ${GPTSCRIPT_TOOL_DIR}/main.py",
        "id": "https://raw.githubusercontent.com/sangee2004/testrepo/807de896c266c9bfd3af2ae1b2459caa38b07d18/pythontool/tool.gpt:1",
        "localTools": {
          "test-tool": "https://raw.githubusercontent.com/sangee2004/testrepo/807de896c266c9bfd3af2ae1b2459caa38b07d18/pythontool/tool.gpt:1"
        },
        "source": {
          "location": "https://raw.githubusercontent.com/sangee2004/testrepo/807de896c266c9bfd3af2ae1b2459caa38b07d18/pythontool/tool.gpt",
          "lineNo": 1,
          "repo": {
            "VCS": "git",
            "Root": "https://github.com/sangee2004/testrepo.git",
            "Path": "pythontool",
            "Name": "tool.gpt",
            "Revision": "807de896c266c9bfd3af2ae1b2459caa38b07d18"
          }
        },
        "workingDir": "https://raw.githubusercontent.com/sangee2004/testrepo/807de896c266c9bfd3af2ae1b2459caa38b07d18/pythontool"
      },
      "testpython2.gpt:1": {
        "modelName": "gpt-4-turbo-preview",
        "internalPrompt": null,
        "tools": [
          "github.com/sangee2004/testrepo/pythontool"
        ],
        "instructions": "greetings",
        "id": "testpython2.gpt:1",
        "toolMapping": {
          "github.com/sangee2004/testrepo/pythontool": "https://raw.githubusercontent.com/sangee2004/testrepo/807de896c266c9bfd3af2ae1b2459caa38b07d18/pythontool/tool.gpt:1"
        },
        "localTools": {
          "": "testpython2.gpt:1"
        },
        "source": {
          "location": "testpython2.gpt",
          "lineNo": 1
        },
        "workingDir": "."
      }
    }
  },
  "runID": "1",
  "time": "2024-04-26T20:22:28Z"
}
{
  "id": "1",
  "input": "",
  "level": "info",
  "logger": "/pkg/monitor",
  "msg": "started  [main]",
  "parentID": "",
  "time": "2024-04-26T20:22:28Z",
  "toolID": "testpython2.gpt:1"
}
{
  "id": "1",
  "level": "info",
  "logger": "/pkg/monitor",
  "msg": "sent     [main]",
  "parentID": "",
  "time": "2024-04-26T20:22:28Z",
  "toolID": "testpython2.gpt:1"
}
{
  "completionID": "1",
  "id": "1",
  "level": "debug",
  "logger": "/pkg/monitor",
  "msg": "debug",
  "parentID": "",
  "request": {
    "model": "gpt-4-turbo-preview",
    "messages": [
      {
        "role": "system",
        "content": "\nYou are task oriented system.\nYou receive input from a user, process the input from the given instructions, and then output the result.\nYour objective is to provide consistent and correct results.\nYou do not need to explain the steps taken, only provide the result to the given instructions.\nYou are referred to as a tool.\nYou don't move to the next step until you have a result.\n\ngreetings"
      }
    ],
    "temperature": 0,
    "tools": [
      {
        "type": "function",
        "function": {
          "name": "pythontool",
          "description": "greetings",
          "parameters": null
        }
      }
    ]
  },
  "time": "2024-04-26T20:22:28Z",
  "toolID": "testpython2.gpt:1"
}
         content  [1] content | Waiting for model response...
         content  [1] content | tool call pythontool -> {}
{
  "cached": false,
  "completionID": "1",
  "id": "1",
  "level": "debug",
  "logger": "/pkg/monitor",
  "msg": "debug",
  "parentID": "",
  "response": {
    "role": "assistant",
    "content": [
      {
        "toolCall": {
          "index": 0,
          "id": "call_5EnNNOsKJ7vtoFxrpM9zRN6U",
          "function": {
            "name": "pythontool",
            "arguments": "{}"
          }
        }
      }
    ]
  },
  "time": "2024-04-26T20:22:30Z",
  "toolID": "testpython2.gpt:1"
}
{
  "id": "call_5EnNNOsKJ7vtoFxrpM9zRN6U",
  "input": "{}",
  "level": "info",
  "logger": "/pkg/monitor",
  "msg": "started  [test-tool(2)]",
  "parentID": "1",
  "time": "2024-04-26T20:22:30Z",
  "toolID": "https://raw.githubusercontent.com/sangee2004/testrepo/807de896c266c9bfd3af2ae1b2459caa38b07d18/pythontool/tool.gpt:1"
}
{
  "level": "debug",
  "logger": "/pkg/repos",
  "msg": "Runtime python3.12 supports [/usr/bin/env python3 ${GPTSCRIPT_TOOL_DIR}/main.py]",
  "time": "2024-04-26T20:22:30Z"
}
{
  "level": "info",
  "logger": "/pkg/repos/git",
  "msg": "Cloning https://github.com/sangee2004/testrepo.git",
  "time": "2024-04-26T20:22:30Z"
}
Cloning into bare repository 'C:\Users\sangeetha\AppData\Local\cache\gptscript\repos\git\repos\f557c026c70814ea3835f8b3d3c822fa589fbf5fc02cb6fab23841b5b00072a0'...
remote: Enumerating objects: 6, done.
remote: Counting objects: 100% (6/6), done.
remote: Compressing objects: 100% (5/5), done.
remote: Total 6 (delta 0), reused 1 (delta 0), pack-reused 0
Receiving objects: 100% (6/6), done.
{
  "level": "info",
  "logger": "/pkg/repos/git",
  "msg": "Fetching 807de896c266c9bfd3af2ae1b2459caa38b07d18 at https://github.com/sangee2004/testrepo.git",
  "time": "2024-04-26T20:22:31Z"
}
From https://github.com/sangee2004/testrepo
 * branch            807de896c266c9bfd3af2ae1b2459caa38b07d18 -> FETCH_HEAD
{
  "level": "info",
  "logger": "/pkg/repos/git",
  "msg": "Checking out 807de896c266c9bfd3af2ae1b2459caa38b07d18 to C:\\Users\\sangeetha\\AppData\\Local\\cache\\gptscript\\repos\\807de896c266c9bfd3af2ae1b2459caa38b07d18\\python3.12",
  "time": "2024-04-26T20:22:32Z"
}
Preparing worktree (detached HEAD 807de89)
HEAD is now at 807de89 Update tool.gpt
{
  "level": "info",
  "logger": "/pkg/repos/runtimes/python",
  "msg": "Downloading Python 3.12.x",
  "time": "2024-04-26T20:22:32Z"
}
Collecting uv==0.1.24
  Using cached uv-0.1.24-py3-none-win_amd64.whl.metadata (25 kB)
Using cached uv-0.1.24-py3-none-win_amd64.whl (9.2 MB)
Installing collected packages: uv
Successfully installed uv-0.1.24

[notice] A new release of pip is available: 23.3.2 -> 24.0
[notice] To update, run: C:\Users\sangeetha\AppData\Local\cache\gptscript\repos\runtimes\python\95223bbea48009fc7d259386d46c711e02d2fa531478c2d9de5aa6deef99edd1.download\python\python.exe -m pip install --upgrade pip
{
  "level": "info",
  "logger": "/pkg/repos/runtimes/python",
  "msg": "Creating virtualenv in C:\\Users\\sangeetha\\AppData\\Local\\cache\\gptscript\\repos\\runtimes\\venv\\29e60b89a5a313899bb8c1affa83a63ae228532c35d8701170e1a9da56f5df80",
  "time": "2024-04-26T20:23:00Z"
}
{
  "cached": false,
  "completionID": "1",
  "id": "call_5EnNNOsKJ7vtoFxrpM9zRN6U",
  "level": "debug",
  "logger": "/pkg/monitor",
  "msg": "debug",
  "parentID": "1",
  "response": {
    "err": {
      "Stderr": null
    },
    "output": ""
  },
  "time": "2024-04-26T20:23:05Z",
  "toolID": "https://raw.githubusercontent.com/sangee2004/testrepo/807de896c266c9bfd3af2ae1b2459caa38b07d18/pythontool/tool.gpt:1"
}
{
  "err": "exit status 0xc0000135",
  "level": "debug",
  "logger": "/pkg/monitor",
  "msg": "Run stopped",
  "output": "",
  "runID": "1",
  "time": "2024-04-26T20:23:05Z"
}
2024/04/26 20:23:05 exit status 0xc0000135

Note:
To get around this issue , I had to install VCRUNTIME140.DLL using https://aka.ms/vs/17/release/vc_redist.x64.exe. After this , i am able to get the python tool to work as expected.

This might still be a thing, but can you try again? We've switched out the version of python we are using on windows, so this might not be a problem anymore.

Tested with gptscript version v0.0.0-dev-ec6d147b-dirty .
I am still getting the following error when trying to execute python based tools in Windows 11 Pro VM on Azure without  installing VCRUNTIME140.DLL using https://aka.ms/vs/17/release/vc_redist.x64.exe.
PS C:\Users\sangeetha\gptscript> .\gptscript.exe .\testpython2.gpt
01:03:39 started  [main]
01:03:39 sent     [main]
         content  [1] content | Waiting for model response...
         content  [1] content | tool call pythontool -> {}
         content  [1] content | tool call pythontool -> {}
01:03:40 started  [test-tool(2)] [input={}]
01:03:40 Fetching 807de896c266c9bfd3af2ae1b2459caa38b07d18 at https://github.com/sangee2004/testrepo.git
01:03:40 started  [test-tool(3)] [input={}]
01:03:41 Checking out 807de896c266c9bfd3af2ae1b2459caa38b07d18 to C:\Users\sangeetha\AppData\Local\cache\gptscript\repos\807de896c266c9bfd3af2ae1b2459caa38b07d18\python3.12
01:03:41 Creating virtualenv in C:\Users\sangeetha\AppData\Local\cache\gptscript\repos\runtimes\venv\687446f50e5b26d131cae44a450d454844961263c6aabff8453b65686e6fee77
01:03:41 Fetching 807de896c266c9bfd3af2ae1b2459caa38b07d18 at https://github.com/sangee2004/testrepo.git
01:03:41 usage    [total=155] [prompt=112] [completion=43]
2024/05/17 01:03:41 exit status 0xc0000135

PS C:\Users\sangeetha\gptscript> cat .\testpython2.gpt
tools: github.com/sangee2004/testrepo/pythontool

greetings

Too bad, well in that case it isn't really a bug.. just needs a documentation update to let people know about the dependency.

@drpebcak did you say we could make this a dependency in winget?

Yes, this has been done.

This is already available as dependency now.


Ultimate goal

Q: "So what is your ultimate goal with Rector? What do you want to do?"
Martin Victor Newham
↓
A: "Help every code in the planet change their code on daily basis."

Added


Dependabot commit message

Trying to trigger the dependabot.yml validator...

Ok, got the validation I was looking for and the format is indeed invalid like this: https://github.com/SwiftPackageIndex/SwiftPackageIndex-Server/pull/2726/checks?check_run_id=18787777355


How to use it in react-native?

Is there a way to use this lib in react-native, without using WebViews? I tried using web-view but it might have some performance issues. Any wrapper/solution? Thank you.

In-case you are still stuck I also was keen to get this working. I made a snack to demonstrate if anyone still needs or stumbles across here in the future. :)


english: fixed typos and added improvements

While I was doing the Russian translation I've noticed some minor typos. Also I've changed some prepositions for the better experience.

Thanks a lot


Add auryo app

More screenshots and info on the website or producthunt

Nice. Do you want to add screenshot metadata?
See https://github.com/electron/electron-apps/blob/master/contributing.md#adding-your-app

No thanks, there's still a lot of changes and additions happening. The screenshot above isn't even up-to-date anymore.

👍


Ocp 45 install for aws

Following changes were done:

indentation aligned to 4 spaces
-->  sorry for that;  the "real" changes are now hard to identify

the following changes were adopted from Azure approaches

OCP download + install

ocp-install.tf:  code lines  4, 77 - 80
one additional change compared to Azure

the OCP v4 version to be downloaded is now configurable via variables.tf

cpd installer

binary is now provided in `cp4d-deployment/aws/cpd_module
cpd-install.tf:  code lines  56 - 57
kept both lines of code in cpd-install.tf

to download from master branch, once the branch CPD3.5 is merged - currently commented out

to download from CP3.5branch - for CPD 3.5 dev phase

comment:

maybe we should have a common sub-folder for both - azure + aws: cp4d-deployment/common/...

Following updates:

After discussion with Gudrun, who is working on TrelloBoard card "OCP 4.5.x Installation(IPI) for Azure" we decided to not provide the possibility to set the OCP version via variables.tf. Instead we decided to use a local variable ocp_version in ocp-install.tf.
moved the cpd installer to a common folder

with this we have a common place for all cloud provides (aws, azure) for common components / resources
this is already used by aws
when we want to follow this approach, it needs to be adapted in azure too

reviewed the changes, looks good to me.

New Pull Request created in GHE.
--> Closed.


Walk/run animation blending

Issue related to this PR:
https://github.com/webaverse/app/issues/1695
Steps for testing:
Walk around
Press Shift to start running
Switch from walk to run and vice versa should not be instant

https://user-images.githubusercontent.com/4487857/145001320-839324d5-03ae-4ab4-bb67-2aaae43d140b.mp4

Device:
Dell precision 7710
Ram: 16gb
Ci7 6th gen
Nvidia Quadro m5000m (60Hz refresh rate)
Issues:
1-Walk to run is smooth now but run to walk appears quite instantaneous and a bit jerky.
https://user-images.githubusercontent.com/35926530/145093653-ab03f4d3-1f9d-42db-926e-b94cf974a5d2.mp4
2-Walk to run is smooth as whole but while closely looking at footsteps while the blend happens, The footsteps appear a bit off and different than original flow. They appear to be out of synchronization for a moment.
https://user-images.githubusercontent.com/35926530/145093702-19c03fa1-15e9-4711-afdc-1219ba13e4ad.mp4
3-While we start with run(By pressing shift+W) instead of first walking and then shifting to run, There appears an instant jerk at the start.
https://user-images.githubusercontent.com/35926530/145093771-b0f2387b-3ac4-4e2d-8136-5e3a835907d8.mp4
4-At low fps of around 25-40, The avatar slows down while running. Sometimes it doesn't run at low fps.
https://user-images.githubusercontent.com/35926530/145093812-5e65abf7-1728-4967-8292-9cc1911c7ca7.mp4
https://user-images.githubusercontent.com/35926530/145093798-016a7113-c768-494b-ae22-f6721bdea904.mp4

I have resolve main issue with this code. It is not modal. It is smooth.
Works as expected.
Also I had to introduce float speedValue (it is lerping to speed value, it respects timeDiff) beacuse there is no gradual change in speed between walk and run.

https://user-images.githubusercontent.com/4487857/145305180-82de2981-b67a-4dac-8e76-d072c92e5f49.mp4

1-Crouch run needs improvement as The transition from standing to walk and vice versa is jerky.
https://user-images.githubusercontent.com/35926530/145470688-5a5918cf-0eef-435b-9517-8d3ce2a3eabe.mp4
2-The footsteps at the start of walk/run transition seem a bit off and needs improvement. The pr overall has improved the walk/run transition and can be merged after crouch walk is fixed. This bug can be worked on in future.
https://user-images.githubusercontent.com/35926530/145470708-e7bd140d-2550-41db-b16f-3901d3e6d87a.mp4

This needs a rebase after merging https://github.com/webaverse/app/pull/1856

Rebase is done

Made some major timing fixes, blending should be smooth now.


Tuna - db folder to separate MIOpen and Non MIOpen specific class, definitions.

Tuna/db - new folder created
- tuna_tables.py ( Job_Mixin class definition, previously defined in tuna/miopen/db/miopen_tables )
- session_mixin ( Previously present under tuna folder)
- MIOpenJobMixin defined
- Non Miopen Specific tables definitions are updated as per above new classes.

Check constraints as well, you could have: GLOBAL_CONSTRAINTS and MIOPEN_CONSTRAINTS and merge them for MIOpen specific tables and non-MIOpen tables should just use GLOBAL_CONSTRAINTS

@alexandraBara @cderb

@alexandraBara @cderb

@cderb updated all the comments into latest branch

@cderb @alexandraBara

@alexandraBara


Update note on requirements for Huginn statistics

Description
Update docs on requirements for Huginn's endpoints. It's required that PUBLIC=1 for odin to pull stats from the server. See this discussion
Contributions

I added docs on requiring PUBLIC=1 to get stats from Huginn because it is an undocumented requirement

Checklist

[ ] I added one or multiple labels which best describes this PR.
[ ] I have tested the changes locally.
[ ] This PR has a reviewer on it.
[ ] I have validated my changes in a docker container and on Ubuntu. (Only needed for Odin or Docker Changes)

To the maintainers: apologies. For the life of me, I can't figure out how to add a label to the PR.


openroad binary library issue, missing library

I installed openroad conda package (openroad-2.0_10145_g0de6f5131) but looks like the binary is missing some libraries.
I am running it on ubuntu:22 with conda 23.9.0.
/usr/bin/miniconda3/bin/openroad: error while loading shared libraries: libfmt.so.8: cannot open shared object file: No such file or directory
Command exited with non-zero status 127

Yesterday I managed to install it. Not sure what went wrong while installing the conda packages. I will debug more and write it down here just in case if someone might come across this

Yesterday I managed to install it. Not sure what went wrong while installing the conda packages. I will debug more and write it down here just in case if someone might come across this

Fixed the reproduced error by running -
sudo apt install libfmt-dev


Input text box is being ignored in the latest online website!

Go to lab.antlr.org and do the following:

Start from a freshly opened browser. You can do it in different browsers, the result is the same.
Select the "Java" grammar.
Press "Run".
The input is correct, but the parse tree is completely wrong, as though for some some stale input, rather than fetched directly from the control.

Go to http://<IP_ADDRESS>/ and repeat the steps. It works correctly. This is my website with my original code before the latest changes.
The input text box looks correct but the parser input is something else!

I traced it down to this code, which returns 1, but the code just ignores the result.
Manually typing the pdfcrop command:
root@ubuntu-s-1vcpu-512mb-10gb-nyc1-01:/tmp/antlr-images# pdfcrop --hires temp.pdf
PDFCROP 1.40, 2020/06/06 - Copyright (c) 2002-2020 by Heiko Oberdiek, Oberdiek Package Support Group.
!!! Error: pdfTeX run failed with value 1!

The temp.ps file looks fine, and temp.pdf also looks correct. The result of the command creates a zero-lengthed  "tmp-pdfcrop-NNNN.pdf" file.
I never quite understood why you call pdfcrop. That is why I removed the step because I don't think it's necessary. After removing the step, I just did "pdf2svg" of temp.pdf directly, and it produces fine svg's.

hmm...works for me on C. let me try java. wow. weird.  it's the crop? i did that to avoid padding to a full page I think.

oh. already have issue: https://github.com/antlr/antlr4-lab/issues/38

Just gotta add thread ID to filename.

Just pushed a fix.

Yes, that works a lot better!


Return swap fee and reward APRs

Requires PRs from interface and pangolin.exchange also

@dhrubabasu good call. added a check to verify


ThreadExt::set_priority_and_policy errors for deadline policy

Trying to pass a Deadline policy and Deadline priority to ThreadExt::set_priority_and_policy yields an error in the call made to set_thread_priority_and_policy_deadline: "Deadline policy given without deadline priority". This happens because set_priority_and_policy calls set_thread_priority_and_policy with a ThreadPriority::Crossplatform parameter and the passed policy parameter:
use std::time::Duration;
use thread_priority::*;
fn main() {
    let duration = Duration::from_secs(3);
    let thread_priority = ThreadPriority::Deadline {
        deadline: duration.clone(),
        runtime: duration.clone(),
        period: duration.clone(),
        flags: DeadlineFlags::empty(),
    };

    matches!(
        std::thread::current().set_priority_and_policy(
            ThreadSchedulePolicy::Realtime(RealtimeThreadSchedulePolicy::Deadline),
            thread_priority,
        ),
        Err(Error::Priority(
            "Deadline policy given without deadline priority."
        ))
    );
}

Hi again!
Indeed. Thanks for reporting. Should be an easy fix.


change Mackinac Island shield to fixed-width

Michigan State Trunkline Highway 185 is the ring road of Mackinac Island, on which motorized vehicles are banned (except for a handful of emergency vehicles). It has a unique shield due to its non-motorized status. In #593 the SVG icon was replaced by a draw function, but erroneously set the shield to variable-width. This changes it back to fixed-width, and also removes the rounded corners to match the real-life shield.
before/after:

Once I figure out how shield_text.js works I'm going to try adding text constraint functions for triangles and diamonds.


Merge 2.x to Maximus feature branch

Description
On a regular basis, we want to make Maximum project feature branch in sync with upstream 2.x branch.
Issues Resolved
N/A
Check List

[ ] New functionality includes testing.

[x] All tests pass, including unit test, integration test and doctest

[ ] New functionality has been documented.

[ ] New functionality has javadoc added
[ ] New functionality has user manual doc added

[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.

DCO check is failing:
b8436392b4bdac546d098d6b62a5ca862e11cbb[7](https://github.com/opensearch-project/sql/actions/runs/3396610186/jobs/5647862398#step:3:8)    Expected "vamsi-amazon<EMAIL_ADDRESS>but got "Vamsi Manohar<EMAIL_ADDRESS>  3fd53cac2f388149a8d2c7b8ab5fcfea453a5b80    The sign-off is missing.
  e3fe0[8](https://github.com/opensearch-project/sql/actions/runs/3396610186/jobs/5647862398#step:3:9)6e2d8a0430[9](https://github.com/opensearch-project/sql/actions/runs/3396610186/jobs/5647862398#step:3:10)c9ac8103da90df59b279672    Can not find "vamsi-amazon<EMAIL_ADDRESS>in ["Vamsi Manohar<EMAIL_ADDRESS>"Vamsi Manohar<EMAIL_ADDRESS>  99cebe349710c6e2f3fecef8ddd1d9be488029c0    Expected "Forest Vey<EMAIL_ADDRESS>but got "forestmvey<EMAIL_ADDRESS>  40d8d9f27304fd87ca55e20199762558423367d5    Can not find "vamsi-amazon<EMAIL_ADDRESS>in ["Vamsi Manohar<EMAIL_ADDRESS>"Vamsi Manohar<EMAIL_ADDRESS>  be45[12](https://github.com/opensearch-project/sql/actions/runs/3396610186/jobs/5647862398#step:3:13)e0a5b5466b12defa88afd6d5ec6476ea6f    Expected "vamsi-amazon<EMAIL_ADDRESS>but got "reddyvam-amazon<EMAIL_ADDRESS>

Codecov Report

Merging #1039 (fbd6c7a) into feature/maximus-m1 (73787b7) will decrease coverage by 1.84%.
The diff coverage is 100.00%.

@@                   Coverage Diff                    @@
##             feature/maximus-m1    #1039      +/-   ##
========================================================
- Coverage                 97.58%   95.74%   -1.85%
- Complexity                 3207     3396     +189
========================================================
  Files                       318      349      +31
  Lines                      7962     9203    +1241
  Branches                    515      680     +165
========================================================
+ Hits                       7770     8811    +1041
- Misses                      190      334     +144
- Partials                      2       58      +56

Flag
Coverage Δ

query-workbench
62.76% <ø> (?)

sql-engine
98.27% <100.00%> (+0.69%)
:arrow_up:

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files
Coverage Δ

...java/org/opensearch/sql/storage/StorageEngine.java
100.00% <ø> (ø)

...a/org/opensearch/sql/utils/MLCommonsConstants.java
0.00% <ø> (ø)

...ql/opensearch/storage/OpenSearchStorageEngine.java
100.00% <ø> (ø)

...ensearch/sql/ppl/utils/PPLQueryDataAnonymizer.java
100.00% <ø> (ø)

...theus/data/constants/PrometheusFieldConstants.java
0.00% <ø> (ø)

...ain/java/org/opensearch/sql/analysis/Analyzer.java
100.00% <100.00%> (ø)

.../analysis/CatalogSchemaIdentifierNameResolver.java
100.00% <100.00%> (ø)

...rg/opensearch/sql/analysis/ExpressionAnalyzer.java
100.00% <100.00%> (ø)

...a/org/opensearch/sql/analysis/TypeEnvironment.java
100.00% <100.00%> (ø)

...c/main/java/org/opensearch/sql/expression/DSL.java
100.00% <100.00%> (ø)

... and 73 more

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


Support multiple backend sites

This looks really cool :)
I'm hosting multiple sites on the same IP - if I get time (doubtful) I might try & implement multiple backing sites (golang has SNI natively on the server).
Any thoughts RE the command line arguments for this?

hah I was totally thinking the same thing! I actually just pushed https://github.com/spacemonkeygo/tlshowdy yesterday as well (not that it's needed here since this just uses crypto/tls anyway), so it was on my mind.
I think the main challenge right now is that I'm just using the flag package for arg parsing, and that's probably the wrong thing to keep using. I suspect that the best commandline UX for multiple backing sites would be some form of repeated flag and the flag package doesn't do repeated flags well. I'd expect a UX like:
lecat -m site1.domain.tld:target1:port2 -m site2.domain.tld:target2:port2 ...

so maybe we pull in github.com/codegangsta/cli?
Dunno, if you get to it before I do (likely, even though you said doubtful), I'd be thrilled to merge a pull request

I can think of a few alternatives:

Use a library from outside the stdlib
Have one flag and use strings to process it (e.g. lecat -sites site1.tld:target1:port1,site2.tld:target2:port2)
Accept sites one-per-line via STDIN / config file

i'm leaning toward the first option. we do the second (comma-separated) at $dayjob and it works but it's not my favorite. the third option seems like it reduces the setup simplicity of the tool, but might be a good choice in addition to 1. but yeah, whatever works

Fair point RE 3 - I'm used to shell hackery eg echo 'foo.bar:localhost:8080' | lecat but it's not widespread knowledge.
I'd be in favor of defaulting target to localhost (so you can do foo.bar:8080).

Wait a second - I just realized you don't need any special libs after all for this syntax.
lecat [options] site1.domain.tld:target1:port1 [site2.domain.tld:target2:port2...]


Minifiers should convert to Unix newlines and limit line lengths

Extreme line lengths can cause problems in some systems and, if we
converted all html/css/js files to Unix newlines, we could not only save
bytes in some cases, but also substite "\n" for " " in some replacements
without gaining bytes.

Original issue reported on code.google.com by<EMAIL_ADDRESS>on 13 Aug 2008 at 2:21

Done in R171!

Original comment by<EMAIL_ADDRESS>on 14 Aug 2008 at 6:21

Changed state: Verified


[BUG] Purchasing with ETH on ETH with Rabby shows wrong ETH wallet

Account: 0x83334ef0C6f6396413C508A7762741e9FD8B20E9
When attempting to purchase LightNode, ETH Chain with ETH token shows non-current wallet. This appears to be a hard-coded testing wallet as ALL chains show the same balance and token ETH: 0.0040

See my Pool Testing wallet Balance

Coinbase wallet take-over. unable to fix.


Increase Protocols Limit

Description of the new feature / enhancement
Some packages support more than 16 protocols. For example - https://curl.se/
The limitation on the number of nodes causes incomplete metadata
Proposed technical implementation details
Increase to max 64

@ryfu-msft is this a fit for 1.4?

@ryfu-msft is this a fit for 1.4?

Changes have been made and will be included in 1.4.


When .ci.yaml test was removed in the framework, but not TESTOWNER, there was no validation failure

Seen in https://github.com/flutter/flutter/pull/125044#issuecomment-1513573105.
I think this should have resulted in a validate failure?
https://github.com/flutter/cocoon/blob/4354e68fdd4d12ffb8bd85e545519f9366d46e5e/app_dart/bin/validate_task_ownership.dart
cc @keyonghan

ci.yaml is the file that is being checked against the TESTOWNERS file meaning if the test is not in the .ci.yaml file it is not checked against TESTOWNERSHIP which makes sense.  I do not think validating the other way is valuable as we are looking for owners for present tests.


Brownfield - Alerts Solution Add

Working copy of Alerts Solution - Initial add to deploy common AVD Alerts with BICEP, ARM and Portal UI along with all associated documentation..

@JCoreMS thanks for contributing.


Move encoding to preprocessing

For now we're only using
data
preprocessing
tools
plot

https://github.com/theislab/ehrapy/pull/154


[Storage] Expose com.azure.core.util.ClientOptions via Builder and implement applicationId in UserAgent for telemetry

Expose com.azure.core.util.ClientOptions via Builder and implement applicationId in UserAgent for telemetry

[ ] Expose com.azure.core.util.ClientOptions via Builder and
[ ] Implement applicationId in UserAgent for telemetry
[ ] Unit Test

@gapra-msft @rickle-msft Can one of you look into this.

Hi @hemanttanwar Is this different from what you are suggesting? https://github.com/Azure/azure-sdk-for-java/pull/14916

Hi @hemanttanwar Is this different from what you are suggesting? #14916

@gapra-msft  This got decided in last 2 weeks. I understand that this is changing mid-way of your PR.
And I commented on this PR about it just now.
https://github.com/Azure/azure-sdk-for-java/pull/14916/files#r487260784


Enforce correct use of Serialize trait

This ensures Serialize::serialize calls Serializer::serialize_* exactly once.
Half of #651.

JSON update: https://github.com/serde-rs/json/commit/ede8672b052070acbe968f4c71e355c89ce1b7db

I realized after implementing this that the Serializer::Ok type gives a really natural way to implement things like serde_json::to_value: https://github.com/serde-rs/json/commit/dc53c603b5fea6a49c68aca25183dd676a788e68

Merging so that I have a commit to tag as 0.9.0-rc1, but I will leave #651 open until @oli-obk gets a chance to look over this.


Build Loaders in 1.0

The docs for build loaders in 1.0 still use the Build trait, which is supposed to be removed in 1.0.
Is there any alternative way of defining them?

No, I think the feature is being dropped with sbt 1.


Use constant for logging service instead of string literal

Fixes phpactor/phpactor#632

Great thanks, should have covered that with a test

Updated composer on develop now too


Use u8::try_from

Currently we use a cast to get the u8 depth, as suggested by the TODO in the code we can now use TryFrom since we bumped the MSRV.
Use u8::try_from.expect("") since depth (node count) is guarded by TAPROOT_CONTROL_MAX_NODE_COUNT.

u18? (:

lol, took me a while to see that little blighter :)

BTW. I generally want to forbid as keyword cast in my code, but I can't find the directive for that.

@dpc propose a clippy lint if there isn't one?

The commit message still says u18 :)

The commit message still says u18 :)

Damn, its hard to get good help huh. I only changed the PR title.

Fixed commit log, no other changes in force push.

BTW. I generally want to forbid as keyword cast in my code, but I can't find the directive for that.

#![deny(clippy::as_conversions)]

https://rust-lang.github.io/rust-clippy/master/#as_conversions
From https://www.reddit.com/r/rust/comments/w8nxi9/comment/ihqms23/?utm_source=share&utm_medium=web2x&context=3


Improve handing of insecure authentication over HTTP and HTTPS

Unless configured for authentication, Presto allow user to connect with any username. In this PR, I make this mode explicit by introducing an "insecure" authenticator. This authenticator retains the existing behavior, any username is allowed, but no password can be sent. The default authenticator type is set to insecure so it is clear in the startup message that authentication is not secured.
In addition, the when secure authentication is configured, insecure authentication over HTTP is disabled by default. This can be reenabled with a configuration setting.


bump omnibus-software for 3.1.6

Description

[X] bundle update --conservative omnibus-software to pick up the latest ruby 3.1.6 changes
[X] update omnibus_overrides.rb for 3.1.6 Ruby versions

Related Issue

Types of changes

[ ] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)
[ ] Chore (non-breaking change that does not add functionality or fix an issue)

Checklist:

[ ] I have read the CONTRIBUTING document.
[ ] I have run the pre-merge tests locally and they pass.
[ ] I have updated the documentation accordingly.
[ ] I have added tests to cover my changes.
[ ] If Gemfile.lock has changed, I have used --conservative to do it and included the full output in the Description above.
[ ] All new and existing tests passed.
[ ] All commits have been signed-off for the Developer Certificate of Origin.

https://buildkite.com/chef/chef-chef-foundation-main-omnibus-adhoc/builds/546 - adhoc build log


Adds Form Explainer readme, adds back links to other forms.

Coverage remained the same at 97.73% when pulling 2a2be7ddfd30c6093f13e9da4c3f1cf5f1ef5ebb on himedlooff:form-explainer into 14b7331e6c4e22b4da369db5adcff096b1747fb9 on cfpb:master.

Coverage remained the same at 97.73% when pulling 2a2be7ddfd30c6093f13e9da4c3f1cf5f1ef5ebb on himedlooff:form-explainer into 14b7331e6c4e22b4da369db5adcff096b1747fb9 on cfpb:master.

Coverage remained the same at 97.73% when pulling bcc1266a80cf9945d1e5559d040ada7bc40aa170 on himedlooff:form-explainer into 14b7331e6c4e22b4da369db5adcff096b1747fb9 on cfpb:master.

Coverage remained the same at 97.73% when pulling bcc1266a80cf9945d1e5559d040ada7bc40aa170 on himedlooff:form-explainer into 14b7331e6c4e22b4da369db5adcff096b1747fb9 on cfpb:master.

Coverage remained the same at 97.73% when pulling 5f9ce79f74b4ee57665b85e06c61a11b4f56cfdf on himedlooff:form-explainer into 14b7331e6c4e22b4da369db5adcff096b1747fb9 on cfpb:master.

Coverage remained the same at 97.73% when pulling a90af3eb79734d78a39c5259b35b91a43530a03f on himedlooff:form-explainer into 14b7331e6c4e22b4da369db5adcff096b1747fb9 on cfpb:master.

@ascott1 or @contolini can i get a quick review?

:+1: README is great.

Thanks!


Introduce packer

This PR adds packer configurations that will allow us to:

Build a server image that when started runs Tanzawa inside of a docker container
Keeps the system relatively secure (auto-updates)

There's two main parts:

Packer script to setup the base server
Dockerfile for Tanzawa running in a production-ready state on uWSGI

Provisioning should be able to take the domain name that the server will run on to allow configuration of certbot and the django ALLOWED_HOSTS environment variables.

My main goal was to get Tanzawa running in a container with uWSGI in a self-contained manner and I've done that. The packer script for the base server is still a WIP, specifically around SSL/Environment variables. Merging so I can focus on feature development for a bit before coming back.


Could not find a version that satisfies the requirement sip==4.19.2

when i try to install the coponents of reqs.txt with the command copied from your text i get this error message:
Could not find a version that satisfies the requirement sip==4.19.2 (from -r reqs.txt (line 3)) (from versions: )
No matching distribution found for sip==4.19.2 (from -r reqs.txt (line 3))
what to do?

Try changing the line to sip>=4.19.2 and try again. If that doesn't work, remove the line and try again.
If I remember correctly sip is used by python-rtmidi so it should grab sip automatically anyway. If not, let me know and I'll take a deeper look.


Use framework session for storing server generated message.

Describe the issue:
Currently using HttpSession session [1] to store server generated message which is being sent to metamask for obtaining signature. There is a suggestion to use framework session instead of HttpSession session.
[1] https://github.com/NimashaBandara/Custom-Federated-Metamask-Authenticator/blob/46d824c219d54396a15bd81db4bb577f5c69c71b/metamask-authenticator/src/main/java/org/wso2/carbon/identity/metamask/federated/authenticator/MetamaskAuthenticator.java#L90

This issue has now been fixed


FP Growth Documentation

I would like to add FP Growth algorithm documentation.
I am a GSSOC'21 participant

Go ahead @nikitajangid33.

Can I work on this @geekquad @yukti845? There's been no work done towards making a PR for this issue. Kindly assign it to me.

@nikitajangid33 we need updates on this issue.

@Manasi2001 go with this issue


Add support for log rotate on Windows  & Version bump to 1.0.2

Description

[Windows|Linux] Updated installation to 1.0.2
Windows requires package_version because of the x86/x64 msi's.
Note also that in the url there is a - character and in the package this - is a .

Windows:
default["sensu"]["msi_repo_url"] = "http://repositories.sensuapp.org/msi/2016"
default["sensu"]["version"] = "1.0.2-1-x64"
default['sensu']['windows_package_version'] = '<IP_ADDRESS>'
Linux:
default["sensu"]["version"] = "1.0.2-1"

[Windows] Updated client xml to support log rotating the in the sensu log folder.
["sensu"]["log_directory"] Log folder can be any folder as logn as the file name is sensu-client.out

Motivation and Context
Log file on Windows was not being rotated. This caused disk to fill up.
https://github.com/sensu/sensu-chef/issues/580
How Has This Been Tested?
Tested this on Windows 2016  & CentOS 7, Chef client 12.19.36
Run Chef-client, see if it installs the newer version, check if the client.xml is being changed.
See if the log file is being rotated (tested with 10kb else I would have to wait for a much longer time)
Screenshots (if appropriate):

Please note that the rotate was set to 10kb but after running Chef it was changed to 10 MB, therefor the sensu-client.out is larger than the rotated files.
Types of changes

[X] New feature (non-breaking change which adds functionality)

Checklist:

[X] My change requires a change to the documentation.
[X] I have updated the documentation accordingly.
[X] I have read the CONTRIBUTING document, but I do not have Kitchen etc installed.

The log changes look reasonable to me. If we're updating versions I'd suggest going to the latest release, 1.1.1. @cwjohnston @amdprophet @majormoses can you take a look too.

@majormoses  Awaiting your comments based on my comments. If I need to change the version to 0.29.5 (the minimum release to support logrotate) I will do so.

uggh this is messy. I am ok with these changes mostly. I'd like to hear from @cwjohnston first on some of the comments before merging and releasing.

ping @cwjohnston

closing per https://github.com/sensu/sensu-chef/pull/607#issue-181825797


Accept parameters for aliases

I think it could be useful to allow parameters for aliases.
Maybe something like that. In this example, myAlias receive two parameters from command line named user and pwd whose value is respectively aUser and aPwd. They are used by task1.
aliases.yaml
myAlias:
  - task1:aTarget:$user:$pwd
  - task2

command line
grunt myAlias:aUser:aPwd

Hi @jdat82, interesting idea I will think about it, thx.

This would prove useful, especially if you could establish in your Gruntfile.js something like:
    'data': {
        'myData': grunt.option('foo') || 'bar'
    }

and then in your aliases.json file something like:
    "myAlias": [
        "sass:compileSass --foo=xzy"
    ]

FWIW, would also like to see this enhancement under consideration.

Would love this!

This would be perfect for me!

Yeah this looks awesome

@jgallen23 Any chance you can look into this? I would be eternally grateful!

This sounds like a great feature.  I'd accept a PR if anybody wants to take a shot at it.

as a workaround, i used alias this, to run 2 tasks, and the first one with passed parameter:
'test': {
  description: 'starts test file',
  tasks: function(fileName) {
    grunt.task.run('run-test:' + fileName);
    grunt.task.run('open:testReport');
  }
},

now i can run it like test:parameter


Ensure logs are flushed before shutdown

When shutting down the service, logs should write out any buffered entries before allowing the service to actually shut down.

I believe that this is resolved now in main!


Debug launch configuration empty on cursor

What happened?
Pulumi debug launch configuration is empty when trying to debug on cursor. I expected the pulumi up and pulumi preview launch configs but without them the debugging extension is not usable?
Example

Output of pulumi about
(.venv) ndemir@Mac my-virtual-machine % pulumi about
CLI
Version      3.134.1
Go Version   go1.23.1
Go Compiler  gc

Plugins
KIND      NAME          VERSION
resource  azure-native  2.64.3
language  python        unknown
resource  random        4.16.6
resource  tls           4.11.1

Host
OS       darwin
Version  15.0
Arch     x86_64

This project is written in python: executable='/Users/ndemir/engineer/splatter/my-virtual-machine/venv/bin/python' version='3.12.4'

Current Stack: N-Demir/my-virtual-machine/dev

TYPE                             URN
pulumi:pulumi:Stack              urn:pulumi:dev::my-virtual-machine::pulumi:pulumi:Stack::my-virtual-machine-dev
pulumi:providers:pulumi          urn:pulumi:dev::my-virtual-machine::pulumi:providers:pulumi::default
pulumi:providers:tls             urn:pulumi:dev::my-virtual-machine::pulumi:providers:tls::default_4_11_1
pulumi:pulumi:StackReference     urn:pulumi:dev::my-virtual-machine::pulumi:pulumi:StackReference::N-Demir/infrastructure/dev
tls:index/privateKey:PrivateKey  urn:pulumi:dev::my-virtual-machine::tls:index/privateKey:PrivateKey::ssh-key
pulumi:providers:azure-native    urn:pulumi:dev::my-virtual-machine::pulumi:providers:azure-native::default_2_64_3

Found no pending operations associated with dev

Backend
Name           pulumi.com
URL            https://app.pulumi.com/N-Demir
User           N-Demir
Organizations  N-Demir
Token type     personal

Dependencies:
NAME                 VERSION
pip                  24.2
pulumi_azure_native  2.64.3
pulumi_random        4.16.6
pulumi-tls           4.11.1
setuptools           75.1.0
wheel                0.44.0

Pulumi locates its logs in /var/folders/56/7gjpxtt563n3q7bs3m3zxtlh0000gn/T/ by default
(.venv) ndemir@Mac my-virtual-machine %

Additional context
No response
Contributing
Vote on this issue by adding a 👍 reaction.
To contribute a fix for this issue, leave a comment (and link to your pull request, if you've opened one already).

@N-Demir are you saying that the list of automatic debug configurations is empty?  Here's a couple of solutions:

Add the Pulumi project folder as a VSCode workspace folder (Add Folder...).  The debugging extension performs a "shallow" search (not "deep") of the workspace folders to find Pulumi projects.
Create a launch configuration manually into launch.json, as described here.

Let us know if these solutions don't work for you, and thanks for trying out the new extension.


Added displayparams for ISO15118-20

Added DisplayParameters to DC/AC chargeloop req messages for ISO15118
It takes the SOC from the dc_ev_status

Hey @heavyweight87 - I recently merged a PR that includes simulated soc and displayparameters from the EV. I used ev_ress_soc as well. It seems to me that includes what you wanted as well. If it does, then we could perhaps close this PR?

Great! Thanks


Use debug instead warn for channel close exceptions

The current setting is too verbose and spams logs when HA consumers are enabled.

Actually, we'll modify app logger configurations instead. For now.


MM-8792: Remove policy and create announcement banner section

Summary
Remove the policy page, and move the banner configuration to customization
settings.
Ticket Link
MM-8792
Checklist

[x] Ran make check-style to check for style errors (required for all pull requests)
[x] Ran make test to ensure unit and component tests passed
[x] Has UI changes
[x] Includes text changes and localization file (.../i18n/en.json) updates

Setup Test Server label detected. Spinmint test server created if build succeeds (checks pass and no conflicts with base branch).

Spinmint test server created at: http://i-00305259052e87b37.spinmint.com
Test Admin Account: Username: sysadmin | Password: sysadmin
Test User Account: Username: user-1 | Password: user-1
Instance ID: i-00305259052e87b37

Spinmint test server destroyed


Postprocessing method reproduction issue

Hi,
I have been trying to reproduce the results of the paper using the OpenOOD scripts and saved checkpoints, and have run into a strange behavior. I can't seem to reproduce the post-processing OOD results (FPR@95, AUROC, etc.) reliably.
I am testing the ResNets, and did the following steps:

Clone OpenOOD
Set up python env.
run download script:

python scripts/download/download.py --contents 'datasets' 'checkpoints' \
	--datasets 'ood_v1.5' \
	--checkpoints 'ood_v1.5' \
	--save_dir './data' './results' \
	--dataset_mode 'benchmark' ```
4.
After running this, I get values that are much smaller than the reported values:
For example, on the farood metric, this run reports:

FPR@95
AUROC
AUPR_IN
AUPR_OUT
ACC

40.41
91.80
79.26
94.30
95.22

35.82
91.98
81.84
94.43
94.63

48.16
89.98
71.78
94.25
95.32

Interestingly, if I follow the same commands but add --seed n to the arguments (n being the seed in the saved checkpoints), the values become closer to the reported ones.
Any ideas as to my mistake or what is happening?

In general, a few methods (with random components in their design) indeed can be sensitive to random seeds. But this shouldn't be the case for ASH if I remember correctly.
Also, it's interesting that what you have shown here is actually a lot higher (rather than lower) than what we report for ASH on CIFAR-10. For example, see from this full table, the farood AUROC (averaged over three checkpoints) is only 78.49.
I cannot think of a cause for this. Would you mind trying the new evaluation surface which is the eval_ood.py to see if you can reproduce the results? Nearly all numbers reported in OpenOOD v1.5 are obtained by running that py file instead of the old interface (python main.py --config ...)


Disable default "SBG" tags inside CWL code

I was wondering if there is a setting where we can disable sbg tags that are added by default to the CWL code anytime you generate or edit CWL code inside Rabix Composer?
For example:
'sbg:exposed': true
$namespaces:
sbg: 'https://www.sevenbridges.com/'
 'sbg:x': 0
 'sbg:y': 106.890625

Hi @shalabhsuman we plan to improve the code pane for Rabix Composer in several ways, and hiding or removing this metadata is one of the goals. Currently there is no way in Composer to remove the tags, unfortunately.
Thanks.

+1


Pixels single image downloads

Adds pixel dimensions for single image downloads, i.e. works with a iiif-image location

This should probably be evaluated to show we are supporting user needs.  Is the event this triggers different from the existing view events?

@taceybadgerbrook No the events haven't changed. I'll add a note to GA when this gets deployed

I still approve.

Tacey looking at download usage

Usage trends for the period 1-15/4/20 compared to 1/1/20 - 31/3/20 show that this change has resulted inapproximately 100% increased downloads for desktop users.
Here is a link to the PowerPoint slide presentation:
https://wellcomecloud.sharepoint.com/:p:/r/sites/wcdigitalexperience/Shared Documents/Analytics/5206 More informative single image download buttons.pptx?d=w71855134008a4bb3bb3f787bccd00d13&csf=1&web=1&e=w0DDUB