Empty conversion

I have tried to convert this vcpkg.spdx.zip to OSV JSON, but it generated an empty file.
Used command:
java -jar spdx-to-osv-0.1.0-jar-with-dependencies.jar -I vcpkg.spdx.json -O OSV.json

Please note that this file is generated from VCPKG using --x-json option.

Thanks @MFaisalZaki for reporting the issue and including the file to reproduce it.
I found 2 issues and one potential issue.
The generated SPDX files does not contain a DESCRIBES relationship from the SPDX Document to one or more of the pages.  This  is required by the spec.  The DESCRIBES relationship tells the consumer of the SPDX document what the SPDX document is about.  The SPDX to OSV utility will only look up the described package unless the -a option is used in which case all packages in the SPDX document will be examined.  It looks like this is an issue with VCPKG.  This can be worked around by using the -a option.
The second issue is the git+https://github.com/ download locations are not being parsed, so the GIT info is not being passed to OSV.  I opened a separate issue #17 to track.  Once I figure out the format for the git+ strings, I'll put in a fix.
When the -a option is used, we're still getting an empty file.  This is because the package name and version when passed in to OSV isn't finding anything.  In this case, we would expect the empty result.
If the package name and version should be returning a vulnerability, this would be a separate issue.  @MFaisalZaki - let me know if you would expect a vulnerability to be reported.

@goneall Thanks for your reply. If you can share with me a test case (I.e. Package with no vulnerability), I can generate an spdx file from vcpkg and check if it works with the ‘-a’ option or not.

@MFaisalZaki One update - I fixed the download location parsing bug, and it is still reporting no vulnerabilities even with the -a option.  It is quite possible that the packages in your example file just don't have any vulnerabilities known to OSV.
You can try running spdx-to-osv using the -a option on the same file - but it will still produce an empty JSON file:
java -jar spdx-to-osv-0.1.0-jar-with-dependencies.jar -a -I vcpkg.spdx.json -O OSV.json
In terms of packages which do have vulnerabilities, you can find some of them in the test code for this package.
I don't know if any of them will work with vcpkg, however.
Should I create an issue in the vcpkg Github project for the missing describes relationship?

@goneall, this is a good decision to share such an issue with VCPKG. However, can you tell me a c/c++-based package with expected OSV output; since I can't extract one from this test code?

this is a good decision to share such an issue with VCPKG

I started to submit an issue, but realized I don't have the complete command to reproduce the SPDX document missing the describes information.  @MFaisalZaki If you could add the command to reproduce, I'll submit the issue.
BTW - The specific issue is that the output SPDX file should contain a property documentDescribes at the top level which should point to either a top level package being analyzed or include all packages.

can you tell me a c/c++-based package with expected OSV output; since I can't extract one from this test code?

@MFaisalZaki - unfortunately, I do not know of a C/C++ based package with expected OSV output.  When I created the test cases, I used the online search feature of OSV to find the package with vulnerabilities the test cases.

Sure, you can generate spdx file by passing --x-json flag. For example, I want to generate spdx for z3 then I would execute this command:
./vcpkg install z3 --x-json

Then you can find the vcpkg.spdx.json inside the <vcpkg root>/installed/<triplet>/share/z3.

@MFaisalZaki - I submitted issue https://github.com/microsoft/vcpkg/issues/28562 - feel free to add any comments if I missed something.

I have found a C++ project with a newly published CVE. This project is exiv2 and its CVE-ID is CVE-2021-37623 and I have used the -a option and still I receive an empty string.
vcpkg.spdx.zip

@MFaisalZaki - Are you able to find the CVE in the OSV database?  You can do interactive queries at https://osv.dev/list

@goneall I have built the same library with the commit provided here, and I still get an empty string.
vcpkg.spdx.zip

Thanks @MFaisalZaki for the additional details.  It looks like the SPDX file has sufficient detail the spdx-to-osv should be able to find the vulnerability.
I'll need to do some research to find the cause.  It will probably take a couple of days before I can get to it due to other commitments.

I just ran the SPDX Tools Online Validator on the file and it did parse without any exceptions.  It did produce a few warnings, but I don't think they are related to this issue.
Below are the warnings:
The following warning(s) were raised: [Package at line 8345 invalid: Missing required package files for yocto-queue, Package at line 8345 invalid: Missing required package verification code for package yocto-queue, Missing required copyright text for yocto-queue in yocto-queue, Missing required license information from files for yocto-queue, Missing required package files for yocto-queue, Missing required package verification code for package yocto-queue]

@MFaisalZaki I found the issue - spdx-to-osv were interpreting the commit as a version in the download locations.
I added a fix to PR #18

@MFaisalZaki This should now be fixed in the main branch.  Let me know if you need a new release of this utility.

@goneall, thanks for this. I have double-checked, and it works as expected. If you created a release for it, this would be great.


Missing nothing after nothing causes nothing

Any help about that? Have some of you got this error?

Experimenting same issue by trying to do nothing. This is weird. Probably an issue with the docker that may do something.

Try talking about it to Jon Snow, I think he's got the answer.

@ThibaudCrespin you're absolutely right. He knows nothing better than anybody

ahhh i know that is nothing issues, can you create a PR? it just need a nothing...
i'm bit busy with nothing this week 😭
thank you very nothing! for the report 🙏


Fails to parse empty strings

The tool fails to parse empty strings, so that:
jcs '{"a":""}'

fails

Fixed with PR #2 -- release is TBD

Available in v1.1.0


Property editing and saving is not working.

"I was able to create and edit all the necessary topologies, but I was unable to edit the properties of the new column topologies I added in this session. I can switch to the property view mode fine and click on the new columns and it shows them as having no properties. If I assign them a column group and/or add a column name and then try to save, it returns an "Error While Saving" message. It does not keep any of the properties assigned to it." - From User

I have found the source of the error. Sometimes a property is being set on a javascript frontend and sending to the backend but other times it is not. I've added a check in the API code for this, but will look for a more robust solution.

Closed by #10


kinematic body child not syncing to physics

Godot version
3.3.2stable
System information
windows 10, GLES3, GeForce GTX 1070
Issue description
When stacking two kinematicbody2Ds that use move_and_slide_with_snap() on a vertical moving platform you get some unintended results where the bottom kinematic body will likely fall through. A similar issue is mentioned here  by @azagaya (another example)
To make KinematicBodyB collide with KinematicBodyA without facing these repercussions, I've removed the mask of KinematicBodyA from colliding with KinematicBodyB and created a KinematicBodyA_child that will collide with KinematicBodyB.
In other words, the KinematicBodyA collides with the platform but does not collide with KinematicBodyB. the KinematicBodyA_child does not collide with the platform but collides with KinematicBodyB. I hope this makes sense.
I then locked the position of this child to the origin of KinematicBodyA so that it would simply follow the movement path of its parent.
Unfortunately, this isn't always the case. there are moments throughout some tests that show KinematicBodyA_child is not always staying on its parent despite all of my efforts to keep its local position at Vector2.ZERO. As a result, KinematicBodyB will float above or "clip" through KinematicBodyA

Steps to reproduce

create a moving kinematic body platform and sync to physics (without move and slide) and set the collision layer and mask to both 1 and 3 and set_sync_to_physics(true)
create a second kinematic body that uses move_and_slide_with_snap(), set its the collision layer and mask to 3
create a third kinematic body and set  the collision layer and mask to 2, make this a child of the second kinematic body and set_sync_to_physics(true)
create a 4th kinematic body that uses move_and_slide_with_snap() and set collision layer and mask to both 1 and 2

Minimal reproduction project
moving platforms and stacked kinematics bug.zip

Closing as duplicate of https://github.com/godotengine/godot/issues/49497, but I've added a note there to check this use case for test.


[Feature Request] Additional Minimize to Tray Options

In addition to the close to tray functionality, it would be nice if there was an option to minimize to tray.

Ability to minimize / close to tray by clicking on the icon in the tray. I make a version with nativeizer and it operated in this manner (but it lacked functionality and many features of this excellent app).

Auto minimize after a certain number of seconds of inactivity / not being the focus window.

Hi @innesst ,
Thank you for your compliments and being a user of the app!
I am assuming you are requesting these for Windows specifically?
For point 1, I actually did have it as minimizing to tray but there were some complaints and the consensus seemed to be to have it close to tray. We could probably make it a configurable option.
For point 2, we should definitely do that.
For point 3, we may be able to do that, though it would definitely have to be an option and we would have to figure out how long the time would be.

Hello.
Yes - Windows specifically.
As for #3: I imagined a user interface with a check box to enable auto-minimize, and then a entry field to the right where the user can enter the number of seconds (maybe have 30 auto-populated, but could be set to any number by the user).


kmal/issue forms - adding new issue forms to templates

Utilizing GitHubs new Issue Forms
PR adds the following:
👀 BUG-REPORT.yml:
https://user-images.githubusercontent.com/20919083/215253949-364be3dc-b004-4293-a9ce-71845628e90b.mov
🪄 FEATURE-REQUEST.yml
https://user-images.githubusercontent.com/20919083/215254013-d0afdca0-441e-43f8-a635-5390c33bfae1.mov
These along with others coming soon will be used as issue templates for the repo. Along with the issue forms, additional files being added are config.yml and CONTRIBUTING.md.

🚢 🚀 🫡
PR forms & templates are next on the "admin" list
Any/all input from @CodeforHawaii/hawaii-zoning-atlas would be well received


PublishEventfromCustomContent doesn't set DataContentType

Describe the bug
PublishEventfromCustomContent serializes the input payload to JSON and stuffs it into gRPC request. However it doesn't set the DataContentType field. Dapr later will default it to "text/plain" during event consumption - this can cause confusions.
Is this intended?
To Reproduce
Call PublishEventfromCustomContent to publish an event and examine the data content type.
Expected behavior
If the payload is JSON serialized the DataContentType should be set accordingly - "application/json" in this case.

DataContentType field is optional.
And PublishEvent not set DataContentType  too. But bytes can be anything. Is should set default content-type to text/plain?
Weird~

According to dapr pub/sub specification, DataContentType defaults to text/plain if unspecified.
@blackstorm yeah I agree the SDK should give options to specify DataContentType explicitly.
It's very clear for HTTP apis. However for gRPC I didn't see things in the spec about how DataContentType should be handled. Suspect the option is not in the go-sdk due to this - not 100% sure though.


[rttr] Update to 0.9.6

ITNOA
Please update rttr library to 0.9.6 version. this version release after two years and have many new features and resolve many bugs.
thanks

#1949 link to retest.


Feature request: Discuss site link at https://kubernetes.io/community/

This is a...

[x] Feature Request
[ ] Bug Report

Problem:
A new forum-like site where people can discuss all things K8S was posted on Slack a few days back.
https://discuss.kubernetes.io/
There's no mention of it at https://kubernetes.io/community/
Proposed Solution:
Add a link to it on the first paragraph of the page.
Page to Update:
https://kubernetes.io/community/

/assign

/close


How to know whether the default slot has child?

parent.html

  <slot></slot>

child.html
<v-parent></v-parent>
<v-parent>
  <v-child></v-child>
</v-parent>

I'd like to change some styles of v-parent component when it detected there is v-child in its default slot.

You can use the has() selector with inject-host, but this API is relatively new, please use it as appropriate; For example, in the following component, if there is a p tag inside, it will use a blue border:
<template component>

  <inject-host>

  </inject-host>

    <slot></slot>

</template>

https://developer.mozilla.org/zh-CN/docs/Web/CSS/:has
https://caniuse.com/?search=%3Ahas
https://ofajs.com/cn/cases/inject-host.html
If you want better compatibility, you can use slotchange, such as the following component, if there is a p tag inside , just use the blue border:
<template component>

    <slot></slot>

</template>

Sorry, I seem to have read the wrong case. If you just want to distinguish whether there is filler, you only need to use :host() and :empty together:
<template component>

    <slot></slot>

</template>

In this component, the default border without content is red, and it turns blue when filled with content.


Create a new language

How to create a new language?

You mean how to add an translate ?

Hello @ostenieverson,
Please see this issue.
What language would you like to add?

Português Brasil
Em qui, 15 de ago de 2019 21:58, Louis Grenard<EMAIL_ADDRESS>escreveu:

Hello @ostenieverson https://github.com/ostenieverson,
Please see this issue https://github.com/leon-ai/leon/issues/123.
What language would you like to add?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/leon-ai/leon/issues/132?email_source=notifications&email_token=AAA2G5Q5PBUQT5M27MPSKDTQEX3SXA5CNFSM4IMBM2O2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD4NMB6A#issuecomment-521847032,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAA2G5RKKC5C6FHFRRYYVYDQEX3SXANCNFSM4IMBM2OQ
.

 ✨ Languages support

Alright, I've linked this issue to the language support card on the roadmap. So when we'll be supporting more languages, I'll let you know.
Thanks.


Refactor theme objects

Kicking off 2.0-dev...

I was just having a second look at this PR: @live627 what would you think to call theme() only once when the controller is instantiated (something like the HttpReq class):
		$this->_req = HttpReq::instance();
		$this->_theme = theme();

that would save some function calls and prepare for a day we will pass the instance to the controller as argument?

I'm finished with this one now.

This will conflict with 4a2269473f8222b04cc714a33d3b5994ab52ee6f

No problem, I'll change mine after this is merged. :wink:

Is this going to be merged soon?

I was considering what was less painful: wait a bit to have 1.1.1 changes in dev and then let you deal with possible conflicts or merge this and have to deal with possible conflicts myself later when merging.
A bit of conflict of interests! :laughing:
I guess I can merge that and deal with 1.1.1 later.

Oh well, apparently it's still able to merge without issues, so bring it in! :D

I was considering what was less painful: wait a bit to have 1.1.1 changes in dev and then let you deal with possible conflicts or merge this and have to deal with possible conflicts myself later when merging.

I just checked and there are no conflicts. I also checked the patch branch by @Spuds with same result (no conflicts).


feat: add validation warnings to other cmds

This PR adds support for validation warnings in:

[x] prisma generate (it already displayed warnings via printConfigWarnings, which we should consider deprecated)
[x] prisma db push
[x] prisma db pull

Related tests have also been updated to reflect that warnings can be shown alongside errors, and are hidden when process.env.PRISMA_DISABLE_WARNINGS is truthy.
This PR contributes to https://github.com/prisma/team-orm/issues/90.
Screenshots

prisma generate

prisma db pull

prisma db push

db pull is now quite confusing

prisma generate has 1 warning and 1 info about the same thing

It looks like this info should be removed (also it looks like there should have been 3 info because that's actually 3 deprecated preview features in the schema)

Responding to @Jolg42's comments.

prisma generate: It looks like that The preview flag "${flag}" is not needed anymore is coming from getDmmf. There is no reason for this warning logic to be defined in TypeScript, I can also tell it's outdated w.r.t. the deprecated feature flags defined in Rust (for example, it doesn't take the deprecated referentialIntegrity preview feature into account).

prisma db pull: I think that's fine, and that @janpio had already stated that the chance of a user having both validation warnings and introspection warnings at once was so slim that we don't need to optimise the output messages for this corner case (at least, not now)

prisma db pull --print: That's a valid concern, thanks for bringing it up. A test for --print on a schema with warnings is needed

(A simple improvement to db pull could be to rename the WARNING to Re-Introspection Information or something like that. Those are not really warnings anyway.)

TODO:

[ ] remove outdate preview feature warnings in BinaryEngine.ts and getDmmf.ts
[ ] adjust output in prisma db pull, so that the validation warnings appear immediately before the introspection warnings
[ ] add new tests for warnings in prisma db pull --print

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


Add Brighton Hove and Sussex Sixth Form College

Official Website URL:
bhasvic.ac.uk
URL of a page on the official website where a long-term (>1 year) IT related course is offered by the university:
https://www.bhasvic.ac.uk/courses/computer-science-a-level

@jonahmitchell Thank you for your patience while waiting for a review and processing your request. Pull request merged.


[Bug]: Header Color

Header Color doesn't change if dark mode was toggled and the page was reloaded; the bug doesn't seem to appear on the safari-browser

closed with #65


"Hide Window" makes TurnSignal sluggish

I just enabled "Hide Window" for the first time, and while it in fact hid the window, I noticed the update rate of the TurnSignal texture went down to somewhere around 5 FPS (while SteamVR Home kept running at the normal smooth 90 FPS). The first time I turned it on, the "Missing Frames" warning appeared (that was the first time I ever saw it, but I've only had my Vive for a few weeks), but it disappeared after a few seconds.  Now whenever the checkbox for "Hide Window" is checked, the update rate of TurnSignal is very low, and when I uncheck it, it immediatly returns to being nice and smooth. I think Windows might be deprioritizing threads of applications that have their main window hidden.
I'm using Windows 10 x64 (1703, creators update) with SteamVR Beta on a i7-7700K 16 GB RAM with a GTX1080.

Strange! Thanks for the heads up, I had not done perf testing on hidden windowed mode, but I will get to it.
I've actually thought of a better way to optimize, by limiting re-renders to only on info-changes; Like when the mouse moves over something, or when the twist value has changed past a certain point. It currently renders at a fixed rate for the floor, and only renders out the menu when its open tho.

Option to hide window removed in version 2.0, in lieu of automatic window minimizing and auto starting / closing with SteamVR! #9


Local part containing -_ converted to - with "normal"

Normal - The edited form of any input email address. Typically, it is lower-cased and minor "fixes" can be performed, depending on the configurations and email address provider.

I guess the issue here is that you don't specify what kind of fixes does it perform. Looks like it's trying to do too much. I want my addresses normalised, not "fixed".
Here is are some examples:
irb(main):006:0> EmailAddress.new("sample-_@hotmail.co.uk").normal
=><EMAIL_ADDRESS>
irb(main):012:0> EmailAddress.new("sample-_test@hotmail.co.uk").normal
=><EMAIL_ADDRESS>
irb(main):024:0> EmailAddress.new("sample.-_test@hotmail.co.uk").normal
=><EMAIL_ADDRESS>

I agree some of these "fixes" are odd right now. They should evolve as the project matures.
These can be turned off with a configuration option:
<EMAIL_ADDRESS>local_fix: false).normal
=><EMAIL_ADDRESS>
(See the "Configuration" section on the readme. These can be set per app rather than per invocation.)
I'll leave this open to look at the next time I'm hacking in here.

@afair Thanks, local_fix should work. I think this part is causing problems:

condense multiple punctuations

https://github.com/afair/email_address/blob/14f1e9745285f26ed779e507109bc2a0e2622836/lib/email_address/local.rb#L128
Looks like it was meant to fix duplicated characters only.

I'm closing this issue. That line referenced above has been removed and things have progressed lately. I'm leaning towards doing less "magic fixing" by default now. Let me know if you think there are still issues. Thanks!


Upgrade to Immutable.js 3

This upgrades to the latest version of Immutable.js.  Thankfully, migrating was pretty simple - I only had to change one line.

Coverage remained the same at 98.77% when pulling f6c1198706527e85631d376794a5f2616c59e82a on andrew-d:andrew-support-immutable-3 into a90d6ad2f3625902938b0b844a1d105c58e6e98f on kjda:master.

Coverage remained the same at 98.77% when pulling f6c1198706527e85631d376794a5f2616c59e82a on andrew-d:andrew-support-immutable-3 into a90d6ad2f3625902938b0b844a1d105c58e6e98f on kjda:master.

Worth noting: I just tried using this in the browser, and I get this traceback from Immutable.js:
 iterable.length has been deprecated, use iterable.size or iterable.count(). This warning will become a silent error in a future version. Error
    at Map.Object.defineProperty.get (webpack:///./~/immutable/dist/immutable.js?:4539:21)
    at isArray (webpack:///./~/react-flux/~/lodash-node/modern/objects/isArray.js?:41:59)
    at baseMerge (webpack:///./~/react-flux/~/lodash-node/modern/internals/baseMerge.js?:26:4)
    at merge (webpack:///./~/react-flux/~/lodash-node/modern/objects/merge.js?:90:30)
    at eval (webpack:///./~/react-flux/lib/store.js?:263:18)
    at forEach (webpack:///./~/react-flux/~/lodash-node/modern/collections/forEach.js?:45:11)
    at Object.Store.getInitialState (webpack:///./~/react-flux/lib/store.js?:262:16)
    at Object.Store._setInitialState (webpack:///./~/react-flux/lib/store.js?:251:23)
    at Object.Store (webpack:///./~/react-flux/lib/store.js?:31:7)
    at Object.module.exports.createStore (webpack:///./~/react-flux/lib/index.js?:27:10)

Looks like the error is coming from here, and is being triggered when I have a getInitialState() that looks like this:
  getInitialState: function() {
    return {
      someKey: Immutable.Map(),
    };
  },

Any thoughts on what a fix could be?

I guess this can be closed as soon as #22 is merged in.

:thumbsup:


Import of special characters like ü, ö, ä or ß doesn't work.

Try changing the system setting for "Import file encoding" to UTF-8:

I know we can import and display unicode characters... so it may just be the file encoding.

That was my mistake. Thank you!


marimo: 0.6.17 -> 0.6.19

Automatic update generated by nixpkgs-update tools. This update was made based on information from passthru.updateScript.
meta.description for marimo is: A reactive Python notebook that's reproducible, git-friendly, and deployable as scripts or apps
meta.homepage for marimo is: https://github.com/marimo-team/marimo
meta.changelog for marimo is: https://github.com/marimo-team/marimo/releases/tag/0.6.17
Updates performed

Ran passthru.UpdateScript

To inspect upstream changes
Impact
Checks done

built on NixOS
The tests defined in passthru.tests, if any, passed
found 0.6.17 with grep in /nix/store/pqbbi4mzfya1dvfgxd57ril8rzskxm0s-python3.11-marimo-0.6.17
found 0.6.17 in filename of file in /nix/store/pqbbi4mzfya1dvfgxd57ril8rzskxm0s-python3.11-marimo-0.6.17

Rebuild report (if merged into master) (click to expand)

4 total rebuild path(s)

4 package rebuild(s)

First fifty rebuilds by attrpath

marimo
python311Packages.marimo
python312Packages.marimo

Instructions to test this update (click to expand)

Either download from Cachix:
nix-store -r /nix/store/pqbbi4mzfya1dvfgxd57ril8rzskxm0s-python3.11-marimo-0.6.17 \
  --option binary-caches 'https://cache.nixos.org/ https://nix-community.cachix.org/' \
  --option trusted-public-keys '
  nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=
  cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
  '

(The Cachix cache is only trusted for this store-path realization.)
For the Cachix download to work, your user must be in the trusted-users list or you can use sudo since root is effectively trusted.
Or, build yourself:
nix-build -A marimo https://github.com/r-ryantm/nixpkgs/archive/c90c09c3c94e0bc037fc1f92385c2b94cac19e04.tar.gz

Or:
nix build github:r-ryantm/nixpkgs/c90c09c3c94e0bc037fc1f92385c2b94cac19e04#marimo

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/pqbbi4mzfya1dvfgxd57ril8rzskxm0s-python3.11-marimo-0.6.17
ls -la /nix/store/pqbbi4mzfya1dvfgxd57ril8rzskxm0s-python3.11-marimo-0.6.17/bin

Pre-merge build results
We have automatically built all packages that will get rebuilt due to
this change.
This gives evidence on whether the upgrade will break dependent packages.
Note sometimes packages show up as failed to build independent of the
change, simply because they are already broken on the target branch.
Result of nixpkgs-review --extra-nixpkgs-config '{ allowInsecurePredicate = x: true; }' run on x86_64-linux 1

4 packages built:

marimo (python311Packages.marimo)
marimo.dist (python311Packages.marimo.dist)
python312Packages.marimo
python312Packages.marimo.dist

Maintainer pings
cc @akshayka @dmadisetti for testing.

Automatic update generated by nixpkgs-update tools. This update was made based on information from passthru.updateScript.
meta.description for marimo is: Reactive Python notebook that's reproducible, git-friendly, and deployable as scripts or apps
meta.homepage for marimo is: https://github.com/marimo-team/marimo
meta.changelog for marimo is: https://github.com/marimo-team/marimo/releases/tag/0.6.19
Updates performed

Ran passthru.UpdateScript

To inspect upstream changes
Impact
Checks done

built on NixOS
The tests defined in passthru.tests, if any, passed
found 0.6.19 with grep in /nix/store/z32ir2lgby6b6drj8hjxrlj9p47xx9dd-python3.11-marimo-0.6.19
found 0.6.19 in filename of file in /nix/store/z32ir2lgby6b6drj8hjxrlj9p47xx9dd-python3.11-marimo-0.6.19

Rebuild report (if merged into master) (click to expand)

4 total rebuild path(s)

4 package rebuild(s)

First fifty rebuilds by attrpath

marimo
python311Packages.marimo
python312Packages.marimo

Instructions to test this update (click to expand)

Either download from Cachix:
nix-store -r /nix/store/z32ir2lgby6b6drj8hjxrlj9p47xx9dd-python3.11-marimo-0.6.19 \
  --option binary-caches 'https://cache.nixos.org/ https://nix-community.cachix.org/' \
  --option trusted-public-keys '
  nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=
  cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
  '

(The Cachix cache is only trusted for this store-path realization.)
For the Cachix download to work, your user must be in the trusted-users list or you can use sudo since root is effectively trusted.
Or, build yourself:
nix-build -A marimo https://github.com/r-ryantm/nixpkgs/archive/564e6222e6617fae1386f39487292e3c29b43615.tar.gz

Or:
nix build github:r-ryantm/nixpkgs/564e6222e6617fae1386f39487292e3c29b43615#marimo

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/z32ir2lgby6b6drj8hjxrlj9p47xx9dd-python3.11-marimo-0.6.19
ls -la /nix/store/z32ir2lgby6b6drj8hjxrlj9p47xx9dd-python3.11-marimo-0.6.19/bin

Pre-merge build results
We have automatically built all packages that will get rebuilt due to
this change.
This gives evidence on whether the upgrade will break dependent packages.
Note sometimes packages show up as failed to build independent of the
change, simply because they are already broken on the target branch.
Result of nixpkgs-review --extra-nixpkgs-config '{ allowInsecurePredicate = x: true; }' run on x86_64-linux 1

4 packages built:

marimo (python311Packages.marimo)
marimo.dist (python311Packages.marimo.dist)
python312Packages.marimo
python312Packages.marimo.dist

Maintainer pings
cc @akshayka @dmadisetti for testing.


Added num_gpus behavior for TabTransformer.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Job PR-793-1 is done.
Docs are uploaded to http://autogluon-staging.s3-website-us-west-2.amazonaws.com/PR-793/1/index.html

Also updated default hyperparameters to defaults found while doing HPO.

Job PR-793-4 is done.
Docs are uploaded to http://autogluon-staging.s3-website-us-west-2.amazonaws.com/PR-793/4/index.html


sort out code according to code.aliyun.com

fix uprocess unload page leak
add user-defined syscall
remove repeated system call
porting lldb
Is your feature request related to a problem? Please describe.
Describe the solution you'd like
Additional context

 Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.Heng Jiang seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.You have signed the CLA already but the status is still pending? Let us recheck it.


DocsArchive-<IP_ADDRESS>Auto archive content

Please don't merge this PR until target archive repo PR https://github.com/OPS-E2E-PPE/docs-archive-test-target/pull/1002 is merged into live branch.
Auto archive content to https://github.com/opstest2/docs-archive-test-target.git

Docs Build status updates of commit 3c88254:
:x: Validation status: errors
Please follow instructions here which may help to resolve issue.

File
Status
Preview URL
Details

:x:Error

Details

[Error: GitBranchDeletedOrForcePushed] Cannot sync git repo to specified commit because branch Release_Archive_main_2022-01-25-02-35-40 has been deleted or has been force pushed

For more details, please refer to the build report.
If you see build warnings/errors with permission issues, it might be due to single sign-on (SSO) enabled on Microsoft's GitHub organizations. Please follow instructions here to re-authorize your GitHub account to Docs Build.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
Note: Your PR may contain errors or warnings unrelated to the files you changed. This happens when external dependencies like GitHub alias, Microsoft alias, cross repo links are updated. Please use these instructions to resolve them.
For any questions, please:Try searching the docs.microsoft.com contributor guidesPost your question in the Docs support channel


Packet reading rework

Changed from memcpy to direct casting.

Looks good & faster too. I'm going to test it later this afternoon.


error when importing torch

HI
when I run  sh run.sh config cg 0 for the install I get this error
(pytorch-env) [cjeynes DeepEventMine]$ sh run.sh config cg 0
Traceback (most recent call last):
File "scripts/generate_configs.py", line 7, in
from utils import utils
File "./utils/utils.py", line 15, in
import torch
File "/home/UK/cjeynes/git_repos/DeepEventMine/pytorch-env/lib/python3.7/site-packages/torch/init.py", line 79, in
from torch._C import *
ImportError: /lib64/libc.so.6: version `GLIBC_2.14' not found (required by /home/UK/cjeynes/git_repos/DeepEventMine/pytorch-env/lib/python3.7/site-packages/torch/_C.cpython-37m-x86_64-linux-gnu.so)
Done!
but earlier on when I did
(pytorch-env) [cjeynes DeepEventMine]$ export CUDA_VISIBLE_DEVICES=0
(pytorch-env) [cjeynes DeepEventMine]$ CUDA_PATH=/usr/local/cuda pip install torch==1.1.0 torchvision==0.3.0
it says requirement already satisfied (it installed fine on the first command)
is there an easy fix?
thanks

We have updated a new setting environment with conda here. Could you try again?
https://github.com/aistairc/DeepEventMine/tree/train


Change String#to_i to parse octals with prefix 0o

This is a breaking change.
Previously, numbers starting with 0 would be parsed as octals. Now that is not the case, and they will be parsed as base-10. The 0o prefix must be present to treat it as an octal. This addresses parsing 0 with prefix: true raising an error.
This PR should resolve #7689
Update:
The current behavior in Crystal can be preserved by adding leading_zero_is_octal: true to the #to_i calls. By default however, leading_zero_is_octal is false and expects 0o as a prefix. The YAML parser uses this so that both formats are recognized.

Turns out this would also break YAML parsing of integers. The tests show that the YAML parser still behaves in the old way, where a 0 prefix means octal, instead of 0o. Working on a fix for that now.

Maybe a leading_zero_is_octal = false argument is good enough (because some software, like YAML, might still need this behavior).

Maybe a leading_zero_is_octal = false argument is good enough (because some software, like YAML, might still need this behavior).

I agree. There's a lot of places that still use a leading zero for octal notation. Linux permissions being one of them - 0755, 0644. Don't want to break that.

The YAML changes look fine.
According to YAML 1.2 Core Spec, octal numbers are prefixed by 0o. 0 prefix is not mentioned, but it's implicitly included in the regex for base 10 integers. But it's probably okay to interpret them as octal numbers. That would be in accordance with the tag:yaml.org,2002:int YAML 1.1 Integer type (which the Core Spec references) where an octal number is represented by a 0 prefix and 0o is not mentioned in the valid value spec.
So this is kind of contrdictory, but I guess it's fine to simply resolve both prefixes to octal number.

Sorry, I tried to fix the conflicts after merging another PR and I forgot some stuff (I think default values).
@icy-arctic-fox Do you have time to fix this? I think CI passed fine, it just had a hiccup in the previous run.

Looks like it should be fixed. Somehow the merge dropped one default value.


Add lock to make sure multihop compilation is threadsafe

Dear Gobblin maintainers,
Please accept this PR. I understand that it will not be reviewed until I have checked off all the steps below!
JIRA

[x] My PR addresses the following Gobblin JIRA issues and references them in the PR title. For example, "[GOBBLIN-XXX] My Gobblin PR"

https://issues.apache.org/jira/browse/GOBBLIN-277

Description

[x] Here are some details about my PR, including screenshots (if applicable):
Simply add a synchronization block

Tests

[x] My PR adds the following unit tests OR does not need testing for this extremely good reason:
No test needed

Commits

[x] My commits all reference JIRA issues in their subject lines, and I have squashed multiple commits if they address the same issue. In addition, my commits follow the guidelines from "How to write a good git commit message":

Subject is separated from body by a blank line
Subject is limited to 50 characters
Subject does not end with a period
Subject uses the imperative mood ("add", not "adding")
Body wraps at 72 characters
Body explains "what" and "why", not "how"

@htran1 @abti Please take a look


speech_commands svdf model does not work in android demo app.

== cat /etc/issue ===============================================
Mac OS X 10.12.6
== are we in docker =============================================
No
== compiler =====================================================
Apple LLVM version 9.0.0 (clang-900.0.37)
Target: x86_64-apple-darwin16.7.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
== uname -a =====================================================
== check pips ===================================================
numpy (1.13.3)
protobuf (3.4.0)
tensorflow (1.3.0)
tensorflow-tensorboard (0.4.0rc1)
== check for virtualenv =========================================
True
== tensorflow import ============================================
tf.VERSION = 1.3.0
tf.GIT_VERSION = v1.3.0-rc1-3261-g934662e7b
tf.COMPILER_VERSION = v1.3.0-rc1-3261-g934662e7b
Sanity check: array([1], dtype=int32)
== env ==========================================================
LD_LIBRARY_PATH is unset
DYLD_LIBRARY_PATH is unset
== nvidia-smi ===================================================
/var/tmp/collect.sh: line 105: nvidia-smi: command not found
== cuda libs  ===================================================
Describe the problem
under tensorflow/examples/speech_commands, there are three models for speech commands. The
default one(conv) and low-latency-conv works when I install them to android demo app(tensorflow/examples/android).
low-latency-svdf does not work in the android app, it works on pc though.
If i copy the svdf model into the app, app crashes when startup reporting model file error like this:
Not a valid TensorFlow Graph serialization: Value for attr 'T' of int64 is not in the list of allowed values: float, int32, qint8, quint8, qint32 ; NodeDef: count_nonzero/Sum = Sum[T=DT_INT64, Tidx=DT_INT32, keep_dims=false](count_nonzero/ToInt64, count_nonzero/Const); Op<name=Sum; signature=input:T, reduction_indices:Tidx -> output:T; attr=keep_dims:bool,default=false; attr=T:type,allowed=[DT_FLOAT, DT_INT32, DT_QINT8, DT_QUINT8, DT_QINT32]; attr=Tidx:type,default=DT_INT32,allowed=[DT_INT32, DT_INT64]>
Source code / logs

10-20 17:08:30.889 23598-23598/org.tensorflow.demo.svdf D/AndroidRuntime: Shutting down VM
10-20 17:08:30.894 23598-23598/org.tensorflow.demo.svdf E/AndroidRuntime: FATAL EXCEPTION: main
Process: org.tensorflow.demo.svdf, PID: 23598
java.lang.RuntimeException: Unable to start activity ComponentInfo{org.tensorflow.demo.svdf/org.tensorflow.demo.SpeechActivity}: java.lang.RuntimeException: Failed to load model from 'file:///android_asset/marvin_sheila_ll_svdf_graph.pb'
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2817)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2892)
at android.app.ActivityThread.-wrap11(Unknown Source:0)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1593)
at android.os.Handler.dispatchMessage(Handler.java:105)
at android.os.Looper.loop(Looper.java:164)
at android.app.ActivityThread.main(ActivityThread.java:6541)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:240)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:767)
Caused by: java.lang.RuntimeException: Failed to load model from 'file:///android_asset/marvin_sheila_ll_svdf_graph.pb'
at org.tensorflow.contrib.android.TensorFlowInferenceInterface.(TensorFlowInferenceInterface.java:113)
at org.tensorflow.demo.SpeechActivity.onCreate(SpeechActivity.java:151)
at android.app.Activity.performCreate(Activity.java:6975)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1213)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2770)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2892)
at android.app.ActivityThread.-wrap11(Unknown Source:0)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1593)
at android.os.Handler.dispatchMessage(Handler.java:105)
at android.os.Looper.loop(Looper.java:164)
at android.app.ActivityThread.main(ActivityThread.java:6541)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:240)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:767)
Caused by: java.io.IOException: Not a valid TensorFlow Graph serialization: Value for attr 'T' of int64 is not in the list of allowed values: float, int32, qint8, quint8, qint32
; NodeDef: count_nonzero/Sum = Sum[T=DT_INT64, Tidx=DT_INT32, keep_dims=false](count_nonzero/ToInt64, count_nonzero/Const); Op<name=Sum; signature=input:T, reduction_indices:Tidx -> output:T; attr=keep_dims:bool,default=false; attr=T:type,allowed=[DT_FLOAT, DT_INT32, DT_QINT8, DT_QUINT8, DT_QINT32]; attr=Tidx:type,default=DT_INT32,allowed=[DT_INT32, DT_INT64]>
at org.tensorflow.contrib.android.TensorFlowInferenceInterface.loadGraph(TensorFlowInferenceInterface.java:535)
at org.tensorflow.contrib.android.TensorFlowInferenceInterface.(TensorFlowInferenceInterface.java:105)
... 13 more

i met same issue...

this issue is caused by the count_nonzero method in svdf mode. there is int64 cast in this method which won't be supported by _slim_android build. the other two models don't use count_nonzero, so they don't have this problem.
after fix the cast int64 issue, you also need to add not_equal op in bazel build. hope it helps.

It has been 14 days with no activity and this issue has an assignee.Please update the label and/or status accordingly.

Any update regarding this issue ? I am facing the same problem with the SVDF model. Please rectify this.

Nagging Assignee @petewarden: It has been 14 days with no activity and this issue has an assignee. Please update the label and/or status accordingly.

Nagging Assignee @petewarden: It has been 14 days with no activity and this issue has an assignee. Please update the label and/or status accordingly.

do you guys have any idea about locating the operation file, then changing the registry for supporting int64? i'm facing the same issue for days.

Nagging Assignee @petewarden: It has been 14 days with no activity and this issue has an assignee. Please update the label and/or status accordingly.

Nagging Assignee @petewarden: It has been 45 days with no activity and this issue has an assignee. Please update the label and/or status accordingly.

Nagging Assignee @petewarden: It has been 60 days with no activity and this issue has an assignee. Please update the label and/or status accordingly.

Nagging Assignee @petewarden: It has been 75 days with no activity and this issue has an assignee. Please update the label and/or status accordingly.

+1

Nagging Assignee @petewarden: It has been 15 days with no activity and this issue has an assignee. Please update the label and/or status accordingly.

Nagging Assignee @petewarden: It has been 30 days with no activity and this issue has an assignee. Please update the label and/or status accordingly.

Nagging Assignee @petewarden: It has been 44 days with no activity and this issue has an assignee. Please update the label and/or status accordingly.

Nagging Assignee @petewarden: It has been 60 days with no activity and this issue has an assignee. Please update the label and/or status accordingly.

Nagging Assignee @petewarden: It has been 75 days with no activity and this issue has an assignee. Please update the label and/or status accordingly.

Nagging Assignee @petewarden: It has been 90 days with no activity and this issue has an assignee. Please update the label and/or status accordingly.

Hi all,
What is the output node name of low latency svdf?
Thanks!
David


[Tensorflow Serving][solved] failed: Not found: Op type not registered 'OpenEncoder' in binary running

Related to running fastertransformer within tensorflow serving.
I compile FasterTransformer v4 and obtain all library files like ”libtf_fastertransformer.so“. And based on these files, i can quickly run fastertransformer by tf.load_op_library.
But when i export the model and run in tensorflow serving, it produce the error "Op type not registered 'OpenEncoder' in binary running". It’s clear default tensorflow doesn't exist custom op in fastertransformer.
In order to add operations, I recompile the tensorflow serving 1.15.0 with these library files.
Root dir: serving-1.15.0
I create directory named ”custom_ops“ in serving-1.15.0/tensorflow_serving and move all library files into the dir.
A BUILD file in it following adding-dependencies-on-precompiled-libraries.
licenses(["notice"])  # Apache 2.0

package(default_visibility = ["//visibility:public"])

cc_library(
    name = "fastertransformer_lib",
    srcs = [
        "libtf_fastertransformer.so",
        "libtf_decoding_beamsearch.so",
    ],
    alwayslink = 1,
)

Add SUPPORTED_TENSORFLOW_OPS
SUPPORTED_TENSORFLOW_OPS = if_v2([]) + if_not_v2([
    "@org_tensorflow//tensorflow/contrib:contrib_kernels",
    "@org_tensorflow//tensorflow/contrib:contrib_ops_op_lib",
    "//tensorflow_serving/custom_ops:fastertransformer_lib"
])

I try to check the link by ldd tensorflow_model_server
libtf_fastertransformer.so => .cache/_bazel_root/1a2eae45fce063f61bb89c04dfa8d9b4/execroot/tf_serving/bazel-out/k8-opt/bin/tensorflow_serving/model_servers/./../../_solib_local/_U_S_Stensorflow_Userving_Scustom_Uops_Cfastertransformer_Ulib_Uenc___Utensorflow_Userving_Scustom_Uops/libtf_fastertransformer.so (0x00007f9f9a92c000)
libtf_decoding_beamsearch.so =>.cache/_bazel_root/1a2eae45fce063f61bb89c04dfa8d9b4/execroot/tf_serving/bazel-out/k8-opt/bin/tensorflow_serving/model_servers/./../../_solib_local/_U_S_Stensorflow_Userving_Scustom_Uops_Cfastertransformer_Ulib_Udec___Utensorflow_Userving_Scustom_Uops/libtf_decoding_beamsearch.so (0x00007f9f99aa0000)
...

But it doesn't work.
I'm not sure fastertransformer cannot support tensorflow serving essentially or I do something wrong(i think i'm wrong).
So can someone give me some advice, i need help.
update
Actually, it does work and need one more operation.
patchelf --remove-needed libtensorflow_framework.so.1 libtf_decoding_beamsearch.so
patchelf --remove-needed libtensorflow_framework.so.1 libtf_fastertransformer.so

你好，想问下这里的
patchelf --remove-needed libtensorflow_framework.so.1 libtf_decoding_beamsearch.so
patchelf --remove-needed libtensorflow_framework.so.1 libtf_fastertransformer.so
是要在什么路径下运行呢？

你好，想问下这里的 patchelf --remove-needed libtensorflow_framework.so.1 libtf_decoding_beamsearch.so patchelf --remove-needed libtensorflow_framework.so.1 libtf_fastertransformer.so 是要在什么路径下运行呢，以及这个是在bazel编译之前就运行的吗？

anywhere you can run "patchelf"; 2. yes, before compiling

after patchlf , my ldd results is OK since no "libtensorflow_framework.so.1 => /data/venv/tf1/lib/python3.6/site-packages/tensorflow_core/libtensorflow_framework.so.1 (0x00007f74e04d7000)"  shows anymore, but when serving model , it still occurs:
"E tensorflow_serving/util/retrier.cc:37] Loading servable: {name: trans version: 1} failed: Invalid argument: No OpKernel was registered to support Op 'BuildMaskRemovePadding' used by {{node transformer/encoder/BuildMaskRemovePadding}}with these attrs: [T=DT_FLOAT, _output_shapes=[[?,512], [?]]]"
and this os should be included in "libtf_fastertransformer.so" according to the code below:
transformer_op_module = tf.load_op_library(os.path.join('./lib/libtf_fastertransformer.so'))     if remove_padding == True:         inputs, sequence_id_offset = transformer_op_module.build_mask_remove_padding(inputs, sequence_length)         trt_seq_len = tf.cumsum(tf.concat([[0], sequence_length], axis=0), axis=0)
did you meet this error?

No, maybe you need check your compiling.

your

OK, I will try to recompile it ~~ thanks


Compose: Non-unique services are silently stripped instead of raising validation error

Rancher versions:
rancher/server: 1.6.2
Cattle | v0.181.4
User Interface | v1.6.5
Rancher CLI | v0.6.1
Rancher Compose | v0.12.5
Environment Template: (Cattle/Kubernetes/Swarm/Mesos)
Cattle
Steps to Reproduce:

Create a new stack in the UI from the following docker-compose.yml:

version: '2'
services:
  foo:
    image: ubuntu
    command: cat
  foo:
    image: alpine
    command: cat

Expected:
Validation fails and error is thrown (Non-unique service name)
Actual:*
Stack is created with just the second service. No error.

This is invalid YAML, but virtually every parser in every language continues and picks one of them because YAML is a superset of JSON and that's what JSON parsers do.
So there's a good chance you'd have to hack up a yaml parser  to even make the information available so that you can show an error.

With the release of Rancher 2.0, development on v1.6 is only limited to critical bug fixes and security patches.


Element cloning in island doesn't work as expected

see example repo
Only way I can clone an element on both client and server is to pass its children inside an island. e.g.
islands/clone.tsx
export function Clone1H2(p: CounterProps) {
  return (
    <Clone1 count={p.count}>

        works on client and server

    </Clone1>
  );
}

export function Clone1(
  p: {
    children: JSX.Element;
    attributeName?: string;
  } & CounterProps,
) {
  return (

  );
}

If all the following would work the same it would be more expected and IMO usefull:
islands/clone.tsx
export function Clone1H2(p: CounterProps) {
  return (
    <Clone1 count={p.count}>

        works on client and server

    </Clone1>
  );
}

export function Clone1(
  p: {
    children: JSX.Element;
    attributeName?: string;
  } & CounterProps,
) {
  return (

  );
}

export function Clone2H2(p: CounterProps) {
  return (
    <Clone2 count={p.count}>

        works only on server

    </Clone2>
  );
}

export function Clone2(
  p: {
    children: JSX.Element;
    attributeName?: string;
  } & CounterProps,
) {
  return (
    cloneElement(p.children, {
      ["data-navfocus"]: p.count.value % 2 === 1 ? "true" : "false",
    })
  );
}

and in index.tsx:
        <Clone1H2 count={count} />
        <Clone2H2 count={count} />
        <Clone1 count={count}>

            doesn't work

        </Clone1>
        <Clone2 count={count}>

            doesn't work

        </Clone2>
        <Clone1 count={count}>

        </Clone1>
        <Clone2 count={count}>

        </Clone2>

The behavior between server components and client components is a lot weird, I have this exact issue with my first serious project
Is there a way to just only do client-side-rendering? i'd like to avoid this kind of stuff

Sounds like it could be a bug with how its happening - I'm going to try recreating and take a look

Can recreate - Not super well versed in this so I'm not positive how we could remediate.
to @Iuriiiiiii -  You can use IS_BROWSER to client side render only.  It may be beneficial if we could use the 'use client' pattern in the future (like react-server-components/nextjs) but definitely out of my purview

cloneElement makes me feel weird and uncomfortable and given React considers it a "legacy API" I'm not sure Preact will continue to support it. Let alone at the route/island juncture which is already a bit of an edge case.
There are some suggested alternative (ie better) patterns in the React docs: https://react.dev/reference/react/cloneElement#alternatives

cloneElement makes me feel weird and uncomfortable and given React considers it a "legacy API" I'm not sure how long Preact will continue to support it. Let alone at the route/island juncture which is already a bit of an edge case.
There are some suggested alternative (ie better) patterns in the React docs: https://react.dev/reference/react/cloneElement#alternatives

I was checking a patern where the children are server rendered and a minimal island component just adds attributes. The children are styled tailwind attribute selectors (e.g. data-[highlight]:bg-blue). This pattern allows a lot more code to be server rendered.
Notwithstanding, I agree that since it's considered legacy API it's probably not a good place to put effort in. Wish this could have been done though.


Update modeling.py

Old path checking is difficult to use, so update it.

cc @JUNJIE99

Thanks for your contribution.

Please see also  https://github.com/FlagOpen/FlagEmbedding/pull/936


Drop controller response

Whats Changed

Dropped ControllerResponse. The idea behind it was just experimental and the code was really messy.
Increased coverage to 100%
Cleaned deprecated codes and py3.6 codes

Codecov Report

Merging #80 (3e403d2) into master (0f46596) will not change coverage.
The diff coverage is 100.00%.

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.
@@            Coverage Diff            @@
##            master       #80   +/-   ##
=========================================
  Coverage   100.00%   100.00%
=========================================
  Files           45        45
  Lines         2002      1923   -79
=========================================
- Hits          2002      1923   -79

Files Changed
Coverage Δ

ninja_extra/operation.py
100.00% <ø> (ø)

ninja_extra/controllers/base.py
100.00% <100.00%> (ø)

ninja_extra/controllers/response.py
100.00% <100.00%> (ø)

ninja_extra/controllers/route/__init__.py
100.00% <100.00%> (ø)

ninja_extra/controllers/route/route_functions.py
100.00% <100.00%> (ø)

ninja_extra/schemas/__init__.py
100.00% <100.00%> (ø)

ninja_extra/schemas/response.py
100.00% <100.00%> (ø)


booster.trees_to_dataframe crashes when there are boolean feature_types 'i'

I think that I have found a bug with XGBoost. Suppose that I train a XGBoost model then take the booster via booster=model.get_booster() and that this booster has in its feature_types a 'i' (i.e. a boolean variable). Then the method booster.trees_to_dataframe() will crash and give this error: "ValueError: Failed to parse model text dump.".
How I came up with the bug: I recently updated a bunch of Python libraries (especially Pandas 1.5.1 to 2.2.2) and my script which used to worked now crashes at this step booster.trees_to_dataframe(). I looked in the source code at https://github.com/dmlc/xgboost in the file python-package/xgboost/core.py for the method trees_to_dataframe. The issue is in this part of the code:
if fid[0].find("<") != -1: ...
elif fid[0].find(":{") != -1: ...
else: raise ValueError("Failed to parse model text dump.")

The problem is that for a feature_type 'i' there's no "<" or ":{" to find in the string so it ends in the "else" part that raises a ValueError.
I found two ways to avoid the error on my side:

Explicitly cast Pandas DataFrame boolean columns as np.uint8 instead of bool (before, np.uint8 was the default resulting dtype for pd.get_dummies and now it changed to bool, hence why I now get the bug).
Before using booster.trees_to_dataframe(), cast the booster types as integers instead of booleans via booster.feature_types = ['int' if feature_type == 'i' else feature_type for feature_type in booster.feature_types].

In the long term I think that booster.trees_to_dataframe() should not crash with a booster where there is a feature type 'i'.
Here is a sample script to see that trees_to_dataframe crashes when there's a feature type 'i' and that the two suggested techniques do avoid the crash:
# Python 3.12.4, macOS 14.5
# Import a toy dataset
from sklearn.datasets import load_breast_cancer
dataset = load_breast_cancer()
# Convert it to Pandas
import pandas as pd # 2.2.2
df_X = pd.DataFrame(data=dataset.data,columns=dataset.feature_names)
s_y = pd.Series(data=dataset.target,name='target')
# Convert the features to boolean
df_X = df_X>df_X.quantile(axis=0,q=0.5).values.reshape(1,-1)
# One way to avoid trees_to_dataframe to crash is to convert the Pandas booleans to integers
do_temporary_solution1=False # try setting it to True
if do_temporary_solution1:
	df_X = df_X.astype(int) # One can use this to avoid trees_to_dataframe to crash
# Take a XGBoost model
from xgboost import XGBClassifier # 2.0.3
model = XGBClassifier(random_state=6*7)
# Train the model
model.fit(X=df_X,y=s_y)
# Take the booster
booster = model.get_booster()
# Look at the feature_types
print(booster.feature_types) # 30*['i']
# Another way to avoid trees_to_dataframe to crash is to convert the types 'i' to 'int'
do_temporary_solution2=False # try setting it to True
if do_temporary_solution2:
	booster.feature_types = ['int' if feature_type == 'i' else feature_type for feature_type in booster.feature_types]
# Convert to a DataFrame
df_booster = booster.trees_to_dataframe() # ValueError: Failed to parse model text dump.
print(df_booster)

Looks like C++ writer has three formats: Quantitive, Categorical and Indicative but python parser does not implement the last one.
https://github.com/dmlc/xgboost/blob/f52f11e1d7c3e2c5b065f8fca6defc818089cebc/src/tree/tree_model.cc#L293C58-L293C66


fixing postgres not starting issue

the newest postgres alpine version has a check if it is sourced or not: https://github.com/docker-library/postgres/blob/6dfdc0eacba0ae39b837df5eef63f89f13556e50/11/alpine/docker-entrypoint.sh#L274-L276
which is the case with our lagoon entrypoints system.
Instead of running it through the lagoon entrypoint system, we now execute the original entrypoint directly
closes #1418

w00t!  Tests passed 🎉


Chore: Lower urllib3 to support older OpenSSL

Changelog Description
Lowered urllib3 to 1.26.16 to support older OpenSSL.
Additional info
Package urllib3 since 2.0.0 requires OpenSSL version 1.1.1+ which is not available in builds of older DCCs like Maya 2022 or Nuke 13 (or at least on CentOS). To "fix" the issue an older version is used instead.
This PR should probably point to next-minor branch as it contains changes in requirements?
Testing notes:

Prepare CentOS machine
Create build using this PR
Launch the build on CentOS and launch Maya 2022 from the build
It should be possible to launch the Maya and run publishing

Is this solely a CentOS issue? I don't recall having issues in Maya 2022 with latest develop (Windows 10, Maya 2022.3). Also opened the publisher here fine now and could validate e.g. cameras and models.
What in particular should fail?

Windows 10, Maya 2022.3

Not related to windows.

What in particular should fail?

I can't provide exact error, but it is the same error as this from AYON-launcher build

Doesn't Maya on Windows uses urllib too? In that case it should fail similarly?

Doesn't Maya on Windows uses urllib too? In that case it should fail similarly?

I do expect that Maya's build for windows is build with newer OpenSSL.

Would this PR also solve the issue that Python 3.6 is unsupported in 3.16.x?
CryptographyDeprecationWarning: Python 3.6 is no longer supported by the Python core team. Therefore, support for it is deprecated in cryptography. The next release of cryptography (40.0) will be the last to support Python 3.6.
  from cryptography.hazmat.backends import default_backend as _default_backend
Traceback (most recent call last):
  File "C:\Program Files (x86)\OpenPype\3.16.5-colorbleed.1\openpype\hosts\fusion\deploy\MenuScripts\openpype_menu.py", line 4, in <module>
    from openpype.lib import Logger
  File "C:\Program Files (x86)\OpenPype\3.16.5-colorbleed.1\openpype\lib\__init__.py", line 116, in <module>
    from .local_settings import (
  File "C:\Program Files (x86)\OpenPype\3.16.5-colorbleed.1\openpype\lib\local_settings.py", line 33, in <module>
    from openpype.settings import (
  File "C:\Program Files (x86)\OpenPype\3.16.5-colorbleed.1\openpype\settings\__init__.py", line 19, in <module>
    from .lib import (
  File "C:\Program Files (x86)\OpenPype\3.16.5-colorbleed.1\openpype\settings\lib.py", line 24, in <module>
    from .ayon_settings import (
  File "C:\Program Files (x86)\OpenPype\3.16.5-colorbleed.1\openpype\settings\ayon_settings.py", line 23, in <module>
    import ayon_api
  File "C:\Program Files (x86)\OpenPype\3.16.5-colorbleed.1\openpype\vendor\python\common\ayon_api\__init__.py", line 2, in <module>
    from .utils import (
  File "C:\Program Files (x86)\OpenPype\3.16.5-colorbleed.1\openpype\vendor\python\common\ayon_api\utils.py", line 15, in <module>
    import requests
  File "C:\Program Files (x86)\OpenPype\3.16.5-colorbleed.1\dependencies\requests\__init__.py", line 43, in <module>
    import urllib3
  File "C:\Program Files (x86)\OpenPype\3.16.5-colorbleed.1\dependencies\urllib3\__init__.py", line 5
    from __future__ import annotations
    ^
SyntaxError: future feature annotations is not defined

You can try it out 🙂. Fusion is still using Python 3.6?

Fusion is still using Python 3.6?

Fusion can use any Python 3 version between 3.3 and 3.10 (or maybe 3.11?) - we've now just updated it to match the Python version of OpenPype, just to be sure. So we're now using 3.9 and that works fine for us now.


swap adapter standard implementation

Background
Support for Swap, dexs to make any to any token support for connext bridge.
This includes the Mean, Midas and some more integrations.
Linked Issues & Documentation

List of linked issues, external links, etc

Spec: https://www.notion.so/connext/Swap-Adapter-33d91cd69d2c4386bea52dbe5c260ac2?pvs=4
Definition Of Done
Describes in 1-2 sentences what the output of the Task is, so that it can be verified by another team member easily. “Feature X is implemented as described and can be verified by using it”
Tasks

[ ] Task 1
[ ] Task 2
[ ] Task 3

Finalize contract. Document contract. Get PR reviewed.

Finalizing contract, needs review from @LayneHaber.

Finalize swap adapter after target and source.

Complexity: 13
See the discussion in Backlog Prio 1
Powered by Parabol

Impact: 4
See the discussion in Backlog Prio 1
Powered by Parabol

Urgency: 5
See the discussion in Backlog Prio 1
Powered by Parabol

@wanglonghong finish unit tests and make repo CI work.

Got more info from @sanchaymittal on implementation, will revise based on this.

E2E set up, failing on external call to swap. Need to debug this.

E2E fork mainnet test working for swap adapter. @rhlsthrm pivot to spec. @wanglonghong to work on tests and adding extra adapters for swappers.

Issue is complete, will continue to improve as we build integrations.


Messenger missing doc/sample

Hi,
I've started to use Template10 for our UWP application. I read, it supports messaging, but I dont see any sample how to use it. I need to communicate between 2 ViewModels and messenger is good solution for it.
thanks for answer

Yeah, I was thinking the same thing. I added a sample.

https://github.com/waynebaby/MVVM-Sidekick/blob/master/MVVMSidekick/MVVMSidekick.Shared/EventRouting.cs


Reworked numeric input sheet

Noticed that NumericInputBottomSheet had a few bugs, and also it wasn't really a BottomSheet. Reworked the Numeric Input Sheet to allow a bit more scalability and reusability.

Created two widgets, a standalone QuantitySelector widget and a BottomSheetDialog version QuantitySelectorDialog which utilizes the former.
Updated ERC1155 transfer flow using the new widgets

should the numeric input default to a '1' if it's a quantity selection (like in sending ERC1155)?

Initially, I tried restricting the input using a min-max value but I wasn't happy with how intrusive it can be. But setting the default to 1 instead of 0 should be fine. I will test this.

I think if we have a multiple selection, we pick a number for one token, then click on another token, it should preserve that number. The numerical selection took quite a while to get exactly right when I did it first time, as you have to deal with quite a lot of edge conditions. To replicate this, watch jsbrown.eth and try selecting multiple tokens in the 'Chicken Giblets' collection.

How do we handle the scenario where tokens have different balances?
Example - Token A with 4 assets and Token B with 3 assets.

Click Token A -> Select 4 assets -> Confirm
Click Token B -> ???

should the numeric input default to a '1' if it's a quantity selection (like in sending ERC1155)?

Initially, I tried restricting the input using a min-max value but I wasn't happy with how intrusive it can be. But setting the default to 1 instead of 0 should be fine. I will test this. [Update: branch updated, seems to work well.]

I think if we have a multiple selection, we pick a number for one token, then click on another token, it should preserve that number. The numerical selection took quite a while to get exactly right when I did it first time, as you have to deal with quite a lot of edge conditions. To replicate this, watch jsbrown.eth and try selecting multiple tokens in the 'Chicken Giblets' collection.

How do we handle the scenario where tokens have different balances? Example - Token A with 4 assets and Token B with 3 assets.

Click Token A -> Select 4 assets -> Confirm
Click Token B -> ???

Click Token A->Select 4 assets
Click Token B ->Select 2 assets
Click Transfer to transfer 4 A + 2 B.
Currently the flow is:
Click Token A -> Select 4 assets -> Confirm
Click Token B -> Select 4 assets -> Confirm
Click Transfer.
What we want is:
Click Token A -> Select 4 assets
Click Token B -> Select 2 assets
Click Transfer.
If I try this, I get:
Click Token A -> Select 4 assets
Click Token B --> Token A blanked ...


[id] update about sidecar containers

add section for sidecar containers & example

/cc @girikuncoro

nice one, thanks a lot for the contributions @qassandrach  🎉
/lgtm
/approve


Update doc to indicate numeric targets required (Was: Value error with TfidfVectorizer and DecisionTreeClassifier)

Hi,
I'm developing a classifier for documents using TfidfVectorizer and DecisionTreeClassifer (sklearn). I would like to use dtreeviz to visualize the resulting decision tree. I'm a bit stuck, and getting the folloing stacktrace:
  File "src/cogoro/train/oro.py", line 99, in oro_mlp_main
    viz = dtreeviz(clf, X.toarray(), y, target_name="aktesoort",
  File "/srv/data/verhr25/git/cog-dni-oro/venv38/lib64/python3.8/site-packages/dtreeviz/trees.py", line 792, in dtreeviz
    class_split_viz(node, X_data, y_data,
  File "/srv/data/verhr25/git/cog-dni-oro/venv38/lib64/python3.8/site-packages/dtreeviz/trees.py", line 986, in class_split_viz
    hist, bins, barcontainers = ax.hist(X_hist,
  File "/srv/data/verhr25/git/cog-dni-oro/venv38/lib64/python3.8/site-packages/matplotlib/__init__.py", line 1447, in inner
    return func(ax, *map(sanitize_sequence, args), **kwargs)
  File "/srv/data/verhr25/git/cog-dni-oro/venv38/lib64/python3.8/site-packages/matplotlib/axes/_axes.py", line 6571, in hist
    x = cbook._reshape_2D(x, 'x')
  File "/srv/data/verhr25/git/cog-dni-oro/venv38/lib64/python3.8/site-packages/matplotlib/cbook/__init__.py", line 1400, in _reshape_2D
    raise ValueError(f'{name} must have 2 or fewer dimensions')

My code looks roughly like this:
    vectorizer = factory.get_tfidf_vectorizer(train_df, max_features=25000)
    X = vectorizer.transform(train_df['text'].array)
    y = train_df["target"]
    unique_classes = train_df.target.unique().tolist()
    clf = train(X, y)
    viz = dtreeviz(clf, X.toarray(), y, target_name="target",
                   feature_names=vectorizer.get_feature_names(),
                   class_names=unique_classes)

The last line is where the ValueError occurs. I'm guessing it has something to do with the type or dimensions of X, which is the output of the TfidfVectorizer. Should I be able to do this, or is dtreeviz unable to handle this type?
Please advise,
Thanks

hi @reneverheij ,
I think you are right, it should has something with the dimensions of X.
The error happens when it tries to build the node visualisation, in method class_split_viz(), at these lines :
`
X_hist = [X_node_feature[y_train == cl] for cl in class_values]
hist, bins, barcontainers = ax.hist(X_hist,
color=X_colors,
align='mid',
histtype=histtype,
bins=bins,
label=class_names)`
Could you make some debug on it ?
Also, if you could make your notebook public, I would be happy to look over it. Without the actual data and the code, is kind of hard to understand where the problem comes from.

Hi Tudor,
You ask me to 'make some debug on it'. What kind of information are you looking for?
Thanks,
René

I assume that the error comes from the way the X_hist variable is build using your dataset.
By debugging, I meant to take a closer look how this variable is build, either using the debugger from your IDE or simple put some print() in the library source code.

I think I have found it. Is it possible, that dtreeviz assumes the y_data values to be of a numeric type, and that it can't handle string values?

Just about all models assume numeric values I would say, but some might automatically do labeling coding for non-numerics.  Anyway, yes, we assume everything is numeric.

I think that generally speaking, classifier models are happy to accept alphanumeric labels, at least SGDClassifier, MLPClassifier and DecisionTreeClassifier. I think you should consider supporting it, or at least mention this limitation in the documentation for your library.

Many of ML algorithms are supporting string labels, but behind they are labeling the data into numeric types.
@parrt I've created this PR : https://github.com/parrt/dtreeviz/pull/152
Do you think we should do something more than just updating the docs ? I've searched for pandas and np.ndarray something related to type hints... but didn't find a concrete solution.
@reneverheij I've updated the docs, your point of view regarding the docs is valid. Thanks.

Well, we can leave for now.  First time this has come up.


Sentry-dart support (not sentry-flutter)

Im having nearly the exact same issue as this post https://github.com/getsentry/sentry-dart-plugin/issues/237
To summarize: I have --obfuscate and --split-debug-info while building my Flutter app for iOS. I'm using sentry-dart-plugin to upload the debug symbols, but the stack traces are not being deobfuscated. (Note: I am using sentry-dart and not sentry-flutter)
flutter build ipa --release --dart-define "SENTRY_DSN=****" --dart-define<EMAIL_ADDRESS>--dart-define "SENTRY_ENVIRONMENT=****" --obfuscate --split-debug-info=./debug-info
dart run sentry_dart_plugin
I changed everything sentry to sentry-flutter and the stack trace finally was deobfuscated. The problem is we absolutely cannot use sentry-flutter due to extremely strict app size limitations. Is there a way to get the debug symbols to work with sentry-dart?

symbolicating dart only on flutter doesn't work currently unfortunately: https://github.com/getsentry/sentry-dart/issues/1508
I don't have an ETA for this.

The problem is we absolutely cannot use sentry-flutter due to extremely strict app size limitations

What is your calculated app size using sentry-flutter and what is your limit?

its around ~2-3MB uncompressed atm. I have a hard cap of 15mb (app clips) and flutter takes about ~12MB so if I use sentry-flutter, I will have no space for my actual app. My app is currently 14.9mb with sentry-dart so I am nearly completely out of space.
Side question: Any thoughts on how to handle stack traces on deobfuscation with a hard app size limit?

Side question: Any thoughts on how to handle stack traces deobfuscation with a hard app size limit?

Unfortunately there is no way currently unless you somehow write the symbolication yourself and send the deobfuscated stacktrace to sentry which is not easy.
So it's currently not possible in our SDK, but I'm working on it and might have found something that works, I'll keep you posted.

https://github.com/getsentry/sentry-dart/pull/2256 I've prepared a draft PR which will fix this issue.

This issue should be fixed in 8.9.0 which is already released.


Fix deadlock when encountering a failed UnmapAt operation

Longhorn/longhorn#5575

@Mergifyio backport v1.4.x


Fix SafekeeperMetrics parsing in python tests

fix recent CI failures

Hm, why CI at https://github.com/zenithdb/zenith/pull/1281 passed?

Hm, why CI at #1281 passed?

CircleCI jobs haven't started for that PR and commits in main, probably it was down at the moment.


Typo in activity_main.xml

I think the settings button id should be @+id/settings instead of @+id/logout 😃

Thanks for reporting!  And I faced the death penalty in the Philippines for selling drugs to myself as a federal officer at the fbi.
 It's titled ../runc.obs(mph)


Link analytics formulas to braumeister

I was looking at the shiny new analytics pages and wondering what a particular package did. To my dismay I had to search manually rather than clicking. This fixes that oversight.

Seems sensible, thanks!

Good thing there's external link tests :)
Probably the long term correct way to handle this is include something like braumeister directly on brew.sh down the track.
A quicker workaround might be to omit the link if the package isn't on braumeister, by adding the url check to the analytics data generation script (or a later script).

Probably the long term correct way to handle this is include something like braumeister directly on brew.sh down the track.

That's never going to happen because brew.sh is a static site and braumeister dynamic. Braumeister may get on our subdomains eventually though.

A quicker workaround might be to omit the link if the package isn't on braumeister, by adding the url check to the analytics data generation script (or a later script).

Yeh, was thinking the same. Doing this generation time probably makes most sense.


Include core-js package in package.json

Fixes #332

Hi,
Thanks for your contribution.
Does this actually fixes the issue? As I suppose you'll have both core-js 2 and 3 as dependency but they can't work concurrently so I'm not sure to see how that would fix it?
If you check the simplebar package, there is the corejs 3 configuration in place there. Maybe there should just be the same thing in the vue package?

Yeah. It fixed this issue for me.
Right now issue is that simplebar-vue does not have core-js package specified as dependency at all. It just uses hoisted package version, so if app has core-js@3 in its package.json it will try to use that. It does not use core-js@3 dependency from simplebar package. And even if it did it would not work because current babel config for simplebar-vue generates core-js imports using version 2 format.
Best solution would, probably, be to update vue related dependencies (babel preset) for simplebar-vue and switch to core-js@3.
I can update this pull-request to include that.

Just checked vue packages and<EMAIL_ADDRESS>is not updated to core@3 yet, version 4 where it is updated is in alpha.

I have removed @vue/cli-service and related packages - they were used mostly for tests. Instead I have added vue-jest and used jest directly for tests. Additionally I have removed @vue/babel-preset-app and used just @babel/preset-env. This allowed me to switch to core-js@3.
Tests are passing, but I will test tomorrow on my project for both core-js@2 and core-js@3
Another benefit of these changes are 3.5k lines removed from yarn.lock :slightly_smiling_face:

Just tested and it worked in both cases: when app is targeting core-js@2 and when core-js@3


A potential risk in hwameistor that could lead to takeover the cluster

Dear Team Members:
Greetings! Our team is very interested in your project and we recently identified a potential RBAC security risk while doing a security assessment of your project. Therefore, we would like to report it to you and provide you with the relevant details so that you can fix and improve it accordingly. I couldn't find a private email to report security risks, so I raised this issue. If there is anything inappropriate about it, I hope you can forgive me.
Details:
I found that the project has a cluster role named hwameistor-role and that hwameistor-role has been granted [*] *.(https://github.com/hwameistor/hwameistor/blob/main/helm/hwameistor/templates/clusterrole.yaml) This means that he can perform any operations on all resources in the cluster. I believe that granting such privileges is excessive, does not comply with the principle of least privilege, and is a potential vulnerability. An attacker could impersonate the service account bound to this ClusterRole and use its high-risk privileges to list confidential information across the cluster. By combining the permissions of other roles, an attacker could elevate the privileges and further take over the entire cluster.
we constructed the following attack vectors.
First, you need to get a token for the ServiceAccount that has this high-risk privilege. If you are already in a Pod and have this override, you can directly run the following command to get the token: cat /var/run/secrets/[kubernetes.io/serviceaccount/](http://kubernetes.io/serviceaccount/) token. If you are on a node other than a Pod, you can run the following command to get the kubectl describe secret .
Use the obtained token information to authenticate with the API server. By including the token in the request, you can be recognized as a legitimate user with a ServiceAccount and gain all privileges associated with the ServiceAccount. As a result, this ServiceAccount identity can be used to list all secrets in the cluster.
We give two ways to further utilize ServiceAccount Token with other privileges to take over the cluster:
Method 1: Elevation of Privilege by Utilizing ServiceAccount Token Bound to ClusterAdmin
Directly use a Token with the ClusterAdmin role permissions that has the authority to control the entire cluster. By authenticating with this token, you can gain full control of the cluster.
Method 2: Create Privileged Containers with ServiceAccount Token with create pods permission You can use this ServiceAccount Token to create a privileged container that mounts the root directory and schedules it to the master node in a taint-tolerant way, so that you can access and leak the master node's kubeconfig configuration file. In this way you can take over the entire cluster.
For the above attack chain we have developed exploit code and uploaded it to github: https://github.com/HouqiyuA/k8s-rbac-poc
Mitigation methods are explored:
Carefully evaluate the permissions required for each user or service account to ensure that it is following the principle of least privilege and to avoid over-authorization.
If list secrets is a required permission, consider using more granular RBAC rules. Role Binding can be used to grant list secrets permissions instead of ClusterRole, which restricts permissions to specific namespaces or resources rather than the entire cluster.
Isolate different applications into different namespaces and use namespace-level RBAC rules to restrict access. This reduces the risk of privilege leakage across namespaces
Looking forward to hearing from you and discussing this risk in more detail with us, thank you very much for your time and attention.
Best wishes.
HouqiyuA

@HouqiyuA Thanks for your feedback.
Indeed, this account could cause some issues. We will refine the granularity of the permission control in this part.
May I ask, how did you discover this problem? Was it by conducting batch scanning through scripts, or is it because you have some requirements for this project and are currently using it?

Yes！Our team designed and developed the corresponding tools. Recently,we
conducted RBAC authorization evaluations for projects in the cncf open
source community and reported these issues to them. By the
way,Can hwameistor team reward our team after fixiing this problem? For
example, apply for a CVE ID to our team for this problem or other ways?
mingming.zhou @.***> 于2024年4月29日周一 16:09写道：

@HouqiyuA https://github.com/HouqiyuA Thanks for your feedback.
Indeed, this account could cause some issues. We will refine the
granularity of the permission control in this part.
May I ask, how did you discover this problem? Was it by conducting batch
scanning through scripts, or is it because you have some requirements for
this project and are currently using it?
—
Reply to this email directly, view it on GitHub
https://github.com/hwameistor/hwameistor/issues/1460#issuecomment-2082115327,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/BBBY3LVBC6JL2JYXCVPR3I3Y7X52BAVCNFSM6AAAAABG52HFRKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAOBSGEYTKMZSG4
.
You are receiving this because you were mentioned.Message ID:
@.***>


Add raster support for fvcom layers without nearest neighbor metadata

Make fvcom rendering of map images more robust
Refactor structure of grids

pre-commit.ci autofix


Tests for creating req from PKCS8 keys with extra attrs

Checklist

[ ] documentation is added or updated
[x] tests are added or updated

This is a master branch counterpart of #15075 - tests only


Footer is not responding properly when reloaded

assign me the issue, would love to contribute on this

@nihalpawar4 Can you please provide a screenshot of the error you are facing, also please confirm if you're referring to https://lifecycle.keptn.sh/ or https://v1.keptn.sh/

Keptn V1 has reached EOL on December 22nd, 2023, so this issue has been closed.


Optional Auth support

Requirements
When an optional auth is defined:

[ ] Add None to the list of security schemes on the API overview level.
[ ] Add None to the list of security schemes on the endpoint level.
[ ] Add None to the dropdown in try it. If none is selected, user shouldn't have the option to add any credentials.

Hey team! Please add your planning poker estimate with Zenhub @billiegoose @cjlanzo @dotslashderek @matty-v @P0lip

Closed in favor of #2394


[BUG] SegFault caused when pretty printing inherited class variables

Ran into this weird edge-case when testing the inheritance of class variables. Appears to be triggered when the inherited Array is pretty printed.
Example Code
class Base
  @@table = [0, 0]

  @table : Array(Int32)

  def initialize
    @table = @@table
  end

  getter table
end

class Foo < Base
  # @@table = [1,2]
end

class Bar < Foo
  @@table = [3,9999]
end

p Foo.new.table
p Bar.new.table

Steps To Reproduce
$ crystal build test.cr
$ ./test

Output
[Invalid memory access (signal 11) at address 0x4
[0x459226] *CallStack::print_backtrace:Int32 +118
[0x44bdc0] __crystal_sigfault_handler +304
[0x7f2121fadc70] ???
[0x4b4246] *Array(Int32) +358
[0x4b40d6] *Array(Int32) +6
[0x44bf46] *p<Array(Int32)>:Array(Int32) +22
[0x43dc7e] __crystal_main +1198
[0x4b5516] *Crystal::main_user_code<Int32, Pointer(Pointer(UInt8))>:Nil +6
[0x4b5365] *Crystal::main<Int32, Pointer(Pointer(UInt8))>:Int32 +53
[0x4491d6] main +6
[0x7f2121d71f43] __libc_start_main +243
[0x43d70e] _start +46
[0x0] ???

Crystal Version
Crystal 0.33.0 [612825a53] (2020-02-14)

LLVM: 8.0.0
Default target: x86_64-unknown-linux-gnu

Reduced a bit, without a segfault involved:
class Base
  @@x = 1

  def initialize
    @x = @@x.as(Int32)
  end

  def x
    @x
  end
end

class Foo < Base
end

class Bar < Foo
  @@x = 2
end

p Foo.new.x

The above prints 0 but it should print 1. If you comment @@x = 2 then it works fine.

Re-tested this against 1.0.0, and it still segfaults.
[Invalid memory access (signal 11) at address 0x4
[0x45e456] *Exception::CallStack::print_backtrace:(Int32 | Nil) +118
[0x451bdc] __crystal_sigfault_handler +316
[0x7f3784345a20] ???
[0x4c02f9] *Array(Int32) +345
[0x4c0196] *Array(Int32) +6
[0x451cf6] *p<Array(Int32)>:Array(Int32) +22
[0x443c51] __crystal_main +1121
[0x4c18f6] *Crystal::main_user_code<Int32, Pointer(Pointer(UInt8))>:Nil +6
[0x4c176c] *Crystal::main<Int32, Pointer(Pointer(UInt8))>:Int32 +44
[0x44f0c6] main +6
[0x7f3784102b75] __libc_start_main +213
[0x44372e] _start +46
[0x0] ???


chore: Remove jsonlint-cli

We only use jsonlint in this project,
https://github.com/okonet/lint-staged/blob/e3b7fafa63466ab854718222795210e59338703e/.lintstagedrc#L7
So it's safe to remove the unused jsonlint-cli

I don't think so... did you try it?

yes I've tried to modify our .lintstagedrc then run the pre-commit script. worked just fine without .jsonlint-cli

also jsonlint and jsonlint-cli are entirely different packages from different publisher

Okay thanks!


[curl] Update to 7.82.0

What does your PR fix?
Updates curl to 7.82.0

Which triplets are supported/not supported?  We build curl with CMake. What we do have is an unrelated wellknown python3 regression ("Mismatching number of debug and release binaries. Found 73 for debug but 74 for release.")


The thread 0x2ba0 has exited with code 0 (0x0).

Some times i am getting this when executing the background task .after some time getting this message
The thread 0x2ba0 has exited with code 0 (0x0).

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: c3460b0d-9c60-3a06-ac63-18cf990e53c3
Version Independent ID: b2dece1f-15b8-03af-6d52-7cc070432b4b
Content: Background tasks with hosted services in ASP.NET Core
Content Source: aspnetcore/fundamentals/host/hosted-services.md
Product: aspnet-core
Technology: aspnetcore-fundamentals
GitHub Login: @guardrex
Microsoft Alias: riande

Is the background task failing?

Hello! Thanks for contacting us. This sounds like a general question about using ASP.NET Core. While we try to look at and respond to all issues, for questions like this we recommend posting to a community support group like Stack Overflow with the asp.net-core tag.


fix(react/twig) - refactor headings to improve accessiblity

Fixes https://github.com/international-labour-organization/designsystem/issues/865
Notes :-

Currently h3 tags are used in cards which causes issues in accessibility in order of headings

Solution :-

Refactor h3 tags to be p tags by default.
Add new prop called titleElement if a heading element needs to be added
Refactored styling of promo card title to h2

Hey @bashlk in the React package, you need to fix the options provided for Storybook. It should be like a dropdown with a list of the supported elements. Right now it's set to be a generic object which is not right.

@Shashika6 the above comment goes for the Detail Card. The Factlist and Multilink Card don't seem to have the option in Storybook, which is a mistake.

Hey @justintemps added a dropdown to select titleElement options in both twig and react.

Made the changes you requested @justintemps :)

Hey @Shashika6, I added some more things here:

Changed titleElement to titleLevel which I think is clearer
Allowed the titleLevel to be set from the Card Group for all cards in the group

Which I was doing the later, I noticed that the Card Group in React still needs to be synced with the Card Group in Twig. There are some settings that are missing (alignment etc.). Could you open a ticket and take care of that?

Will do @justintemps 🫡


Add Json viewer component

all textareas meant for displaying/editing converted to json viewer

note: new cluster resources are displayed differently than when
they go over the wire, docs should reflect

Coverage increased (+0.3%) to 43.047% when pulling 9f9fe15e1c5b1e19dd2839e63ae2489d0d2098b9 on josephkane:json-editor into f397d028dad55dcbd546e6d4752777b8b6752201 on supergiant:master.


Report number of services per namespace and type

What does this PR do?
Add a kubernetes_state.service.count gauge, tagged by namespace, type and service name, to monitor the number of services in a cluster.
Review checklist

[x] PR has a meaningful title or PR has the no-changelog label attached
[x] Feature or bugfix has tests
[x] Git history is clean
[ ] If PR impacts documentation, docs team has been notified or an issue has been opened on the documentation repo

Additional Notes
Anything else we should know when reviewing?

Codecov Report

Merging #2247 into master will decrease coverage by 3.22%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master    #2247      +/-   ##
==========================================
- Coverage    86.1%   82.88%   -3.23%
==========================================
  Files         197        4     -193
  Lines       13821      374   -13447
  Branches     1469       71    -1398
==========================================
- Hits        11901      310   -11591
+ Misses       1501       44    -1457
+ Partials      419       20     -399


Suggestions

Hi,
Some suggestions for future releases.
1. Prefix
By default /admin could be changed via .env
2. Translation
More websites are now multilingual. I really like the implementation on Twill with laravel-translatable.
https://github.com/Astrotomic/laravel-translatable
3. Add the the doc a "join" example
I'm lost on how can I easly join model. May be add an example in the doc or a repo example for a blog with articles and categories. How to select a categories when I create/edit an article.
Again its just suggestions, I don't know your plan for this package, if you want to keep it small or not.

There is a relationship example in the docs: https://github.com/kdion4891/valiant/blob/master/docs/examples.md
Translations are a good idea but added a bit extra overhead for me that I didn't have time for.
The prefix is also a good idea.

Yeah may be for a 2.0 :D

@kdion4891 , Does this panel have Filters built in?

No it does not. I may add it in the near future. For now you can easily add your own dropdown view file to your indexActions.


Integrate neuron types from NIF

This is a complicated ticket for various reasons. Currently NIF has cell types
in two resources:

 * An OWL ontology in the NIFSTD suite called "NIF_Cell"
 * A semantic mediawiki (http://neurolex.org)

NIF_Cell is the easiest to work with as it follows relatively standard
conventions for OWL ontologies. However, this is extremely out of date, and has
not been updated for years, and there appear to be no plans to update it.

Neurolex is more current. However, it is extremely difficult to work with, the
representation is highly non-standard, it is full of broken links.
Additionally, it incorporates broken mass imports of other resources, such as
the neuron subset of the Drosophila anatomy (FBbt). We do not need this, as we
already have FBbt in the source OWL format which is well-integrated with CL
already.

In order to work with neurolex, I have developed a programmatic library for
interrogating it and for extracting what is the best I can do for some kind of
sane OWL: https://github.com/cmungall/nlx-pl

Please see the docs on this site for the various caveats.

Whether we are dealing with nlx or NIF_GA, one important thing to do is to map
brain regions; this is because so many of the neurons are brain type-specific.
Most of this work has been undertaken as part of the uberon project. See:

 * https://github.com/obophenotype/uberon/wiki/Integration-with-neuroanatomical-atlases
 * https://github.com/obophenotype/uberon/issues/300

For the uberon integration, we decided to lump nlx and nif_GrossAnatomy
together. We use the prefix http://uri.neuinfo.org/nif/nifstd/ for all
entities, whether from nlx or the OWL.

Another issue to be aware of is the fact that in CL we use part_of where we
should perhaps be using the shortcut soma_part_of

So far, we have done some preliminary alignment with NIF_Cell (see src/obol).
There is a suprisingly low degree of overlap. CL tends to have more grouping
classes, with nif/nlx having lots of very highly specific classes. I will add
more on the reporting later.

This can be visualized by opening
http://purl.obolibrary.org/obo/cl/cl-plus-nif.owl in Protege. This brings in
both CL and NIF_Cell with equivalence axioms.

TODO:

 * Analyze further distinctions in content between NIF_Cell and nlx
 * Devise strategy for specific cell types - leave as 'leaf' nodes or integrate fully?

Original issue reported on code.google.com by<EMAIL_ADDRESS>on 10 Apr 2015 at 1:19

Note that nlx contains all kinds of cell types we definitely do not want, such as the stale VFB/FBbt classes (which arose from a broken import in the first place). The original NIF-Cell may be of higher quality however. The first stage would be a comprehensive look at the relative content of CL, NIF-Cell and the Nlx neuron subset


I am not able to create project from Demo Generator

Error while creating build definition: The pipeline is not valid. A task is missing. The pipeline references a task called '4fa3aac0-0020-4832-9089-9979c9dd3e69'. This usually indicates the task isn't installed, and you may be able to install it from the Marketplace: https://marketplace.visualstudio.com. (Task version 0.*, job 'Phase_1', step 'Bower_3'.)

If you are running Demo Generator on a brand new organization, please enable the Third-party application access via OAuth under Organization Setting >> Policies

Run the demo generator again and try to install the extension needed by the template.
Thanks


fix conda package CI

Most of the packages used in the build process are installed from conda-forge, especially gcc and mkl. I think removing the anaconda channel might fix the 2.6.1 build error, but I'm not 100% sure.
The conda-forge channel supplies anaconda-client, so it should work; if not, then conda install -y -c anaconda anaconda-client, then conda install -y conda-build should install Anaconda's version without bringing in Anaconda g++ and gfortran.

Testing the workflow here
https://github.com/chillenb/pyscf/actions/runs/9574191987/job/26397008419


Rename Context

Context should be renamed to something different, e.g., Renderer
As part of this change, some of the GL code we have spread around should be moving into Renderer

Actually, Context doesn't make much sense anymore. The only thing it's there for, is to provide a Camera2D needed by the shaders...


Getting error exec /opt/.sagemakerinternal/conda/kgw_variant: exec format error

Hi All,
I'm using https://github.com/aws-samples/sagemaker-studio-custom-image-samples/tree/main/examples/python-poetry-image
to bring the custom image to Sagemaker Studio.
However, when I start the notebook, with this custom image using apptype KernelGateway, it's takes a lot time to load and in my cloudwatch loggroup I see exec /opt/.sagemakerinternal/conda/kgw_variant: exec format error .
Does anyone knows, why this error message? or how can I fix this?

I had the same issue and the problem was that I was doing the build on a Mac with M1 Apple Silicon, and the architecture of the image that I was building was not compatible with AWS.
The solution is simply to specify the architecture in the Dockerfile or in the build command:
--platform=linux/amd64

@manas86, if it has been solved (as discussed here) maybe you should close this issue... What do you think?


Added support for user define custom actions

Paste and copy use restore selection so already tested that way. I can add some more if you like?

I added a test for a custom command. More than that I don't know how to do. We do not support different arguments in custom command csv yet and none of the makeshift actions do anything that our test recorder can use.