Bazel: Support archive_override

The user can specify that a dependency should come from an archive file (zip, gzip, etc) at a certain location, instead of from a registry.
See https://bazel.build/rules/lib/globals/module#archive_override.
Example in MODULE.bazel:
archive_override(
    module_name = "rules_cuda",
    integrity = "sha256-3B9PcEylbj1e3Zc/mKRfBIfQ8oxonQpXuiNhEhSLGDM=",
    patches = ["//tools/bazelbuild/patches:nvcc.bzl.patch"],
    strip_prefix = "rules_cuda-v0.1.2",
    urls = ["https://github.com/bazel-contrib/rules_cuda/releases/download/v0.1.2/rules_cuda-v0.1.2.tar.gz"],
)

ORT should support this alternate locations for downloading the source code.
@haikoschol FYI

These are very common. My understanding was that this is the "old way" of doing things (aka "workspace") and it is at least discouraged for bzlmod. But now I'm not so sure this is accurate. And in practice it is unlikely that people will migrate this to bzlmod if they have to maintain a custom registry in addition.
This concrete example is for a Bazel rules module, which I think is exactly the use case for bzlmod and it most likely is in or will be added to BCR.
But in general ORT might have to support archive_override to be usable in real world projects.

@haikoschol is it fair to assume that the content of the archive file is identical with the content of the file from the registry?
(If not, we'd have an issue with ambiguous ORT package IDs)

@haikoschol is it fair to assume that the content of the archive file is identical with the content of the file from the registry? (If not, we'd have an issue with ambiguous ORT package IDs)

The registry does not contain source archives, only metadata about them. For the rules_cuda example, the only available version in BCR is 0.2.1: https://github.com/bazelbuild/bazel-central-registry/blob/main/modules/rules_cuda/0.2.1/source.json
If bzlmod was used instead of archive_override, the MODULE.bazel file would contain something like:
bazel_dep("rules_cuda", version="0.2.1")

Then ORT needs to figure out what registry to query to get the information in source.json, in order to download the source archive for scanning.

Thanks for your feedback @haikoschol
The key sentence for me is:

But in general ORT might have to support archive_override to be usable in real world projects.

If this configuration is used, IMO ORT should support it, even if this is the legacy way of doing things.

The registry does not contain source archives,

In any case, the underlying question still remains IIUC: Is the archive override only used to use an alternative location to obtain the source code from, while the actual obtained sources remain identical. Or is it used to provide a different / alternative implementation for a dependency?

The registry does not contain source archives,

In any case, the underlying question still remains IIUC: Is the archive override only used to use an alternative location to obtain the source code from, while the actual obtained sources remain identical. Or is it used to provide a different / alternative implementation for a dependency?

It could be anything and I assume replacing the actual bits is a common use case, especially for local_override in monorepos.

I should have tried this sooner, but did just now:
cc$ bazel mod graph
ERROR: the root module specifies overrides on nonexistent module(s): rules_cuda. Type 'bazel help mod' for syntax and help.
cc$
cc$ cat MODULE.bazel
bazel_dep(name = "glog", version = "0.5.0", repo_name = "com_github_google_glog")
bazel_dep(name = "googletest", version = "1.14.0", repo_name = "com_google_googletest", dev_dependency = True)

archive_override(
    module_name = "rules_cuda",
    integrity = "sha256-3B9PcEylbj1e3Zc/mKRfBIfQ8oxonQpXuiNhEhSLGDM=",
    patches = ["//tools/bazelbuild/patches:nvcc.bzl.patch"],
    strip_prefix = "rules_cuda-v0.1.2",
    urls = ["https://github.com/bazel-contrib/rules_cuda/releases/download/v0.1.2/rules_cuda-v0.1.2.tar.gz"],
)

cc$ bazel mod graph
ERROR: the root module specifies overrides on nonexistent module(s): rules_cuda. Type 'bazel help mod' for syntax and help.

cc$ bazel build //main:main
ERROR: Error computing the main repository mapping: the root module specifies overrides on nonexistent module(s): rules_cuda
Computing main repo mapping:

Looks like archive_override is incompatible with bzlmod after all.

But in general ORT might have to support archive_override to be usable in real world projects.
If this configuration is used, IMO ORT should support it, even if this is the legacy way of doing things.

The scope for the initial implementation was limited to bzlmod. Without that, Bazel can't be considered a dependency manager (and with it IMHO still isn't a package manager).
Of course, those pesky "real world projects" don't care about that. IMHO, the only way to make progress on Bazel support in general is on a case by case basis. Basing the implementation on speculation about how people use the bazillion ways of skinning cats in Bazel doesn't seem promising to me.

Basing the implementation on speculation about how people use the bazillion ways of skinning cats in Bazel doesn't seem promising to me.

This is exactly the reason I was asking this question. Would support for archive_override introduce such speculations?

Looks like archive_override is incompatible with bzlmod after all.

Hum the customer project I am working on has this in their MODULE.bazel:
bazel_dep(name = "rules_cuda", version = "0.1.1")

archive_override(
    module_name = "rules_cuda",
    integrity = "sha256-3B9PcEylbj1e3Zc/mKRfBIfQ8oxonQpXuiNhEhSLGDM=",
    patches = [
        "//tools/bazelbuild/patches/cuda:nvcc.bzl.patch",
        "//tools/bazelbuild/patches/cuda:cuda_helper.patch",
        "//tools/bazelbuild/patches/cuda:cuda_library.patch",
    ],
    strip_prefix = "rules_cuda-v0.1.2",
    urls = ["https://github.com/bazel-contrib/rules_cuda/releases/download/v0.1.2/rules_cuda-v0.1.2.tar.gz"],
)

The first line is bzlmod no ?

Looks like archive_override is incompatible with bzlmod after all.
The first line is bzlmod no ?

Yes, I spoke too soon. Just updated my comment above.

Basing the implementation on speculation about how people use the bazillion ways of skinning cats in Bazel doesn't seem promising to me.

This is exactly the reason I was asking this question. Would support for archive_override introduce such speculations?

Since @nnobelis has a concrete project with this constellation, I'd say no.

Hum the customer project I am working on has this in its MODULE.bazel:
bazel_dep(name = "rules_cuda", version = "0.1.1")

archive_override(
    module_name = "rules_cuda",
    integrity = "sha256-3B9PcEylbj1e3Zc/mKRfBIfQ8oxonQpXuiNhEhSLGDM=",
    patches = [
        "//tools/bazelbuild/patches/cuda:nvcc.bzl.patch",
        "//tools/bazelbuild/patches/cuda:cuda_helper.patch",
        "//tools/bazelbuild/patches/cuda:cuda_library.patch",
    ],
    strip_prefix = "rules_cuda-v0.1.2",
    urls = ["https://github.com/bazel-contrib/rules_cuda/releases/download/v0.1.2/rules_cuda-v0.1.2.tar.gz"],
)

So this is replacing version 0.1.1 of rules_cuda with version 0.1.2, plus some patches (which AFAIK, ORT has no concept of currently).
@nnobelis what's the output of bazel mod graph?

Something quite weird:
<root>
├───rules_cuda@_
│<EMAIL_ADDRESS>(*)
│<EMAIL_ADDRESS>(*)

No version is outputted for this package ?!

Something quite weird:
<root>
├───rules_cuda@_
│<EMAIL_ADDRESS>(*)
│<EMAIL_ADDRESS>(*)

No version is outputted for this package ?!

Weird indeed and unclear how to handle it in ORT. But better than hiding the fact that 0.1.1 was replaced.

plus some patches (which AFAIK, ORT has no concept of currently).

Correct. Though coming up with a solution (like applying patches pn-the-fly before scanning, or creating custom source archives for source code with the patches applied) could become useful in the context of BitBake support as well.


Create a python package of flexmeasures-entsoe

In this PR, I have tried to create a pip installable package of our entsoe plugin. I have also removed the unused python modules, and solved the mypy issue.

Should I merge this PR?

We still need to decide on getting rid of the pinned dependencies (.txt). See my comment above.

Are there any plans to merge this in at some point?

Yes that would be great.
We have an internal deadline right now, but maybe afterwards we can return to this.
Was there anything blocking this, @Ahmad-Wahid ?

We can drop the .text requirements files.

To get rid of the pinned requirements, should I just remove the files or the requirements?

The open question was if pinned dependencies should stay. Here are my thoughts:

I'd say yes, but they should not impact what the pip-install procedure would install. Apparently, this is already the case in this PR!
We can document in the Readme that make install-for-dev installs the exact dependencies (so that devs work against the same stack), and that make upgrade-deps can upgrade these dependencies.
We should also document that importing just via the name flexmeasures_entsoe works.
Finally, a question: should we remove the dependency of flexmeasures from this plugin? It cannot be used on its own, it is installed by a flexmeasures installation. I think that is a good idea.

should we remove the dependency of flexmeasures from this plugin? It cannot be used on its own, it is installed by a flexmeasures installation.

I was also wondering about this with our smart-buildings plugin recently, where it isn't (yet) listed as a dependency, but I thought about including it. I haven't got a final answer, but just wanted to make an argument for including (keeping) the dependency: as a dev, if flexmeasures is installed in my local environment, it helps my IDE find imported functions and read their docstrings. So maybe include it as a dev dependency only?

Yes, we can try that.
Otherwise, for the actual dependency checking, I think it is clean to just list what the plugin requires on top of FlexMeasures' stack.


Core: Fix 75 typos

fix typo endianess to endianness 75 times.

Thanks for contributing this.
As explained in ARM-software/CMSIS_5#1664 we can't just rename the defines as this is a breaking change. We need to keep the old but wrong names for backward compatibility (marked as deprecated).


[dattri.algorithm] Support AttributionTask API in TracIN/TRAK/RPS Attributors

Description
1. Motivation and Context
We have a new API in #99 . We want to make all the attributors to support this API.
Note: The support of TracIN/TRAK/RPS Attributors aims to involve less user code change.
2. Summary of the change

Support AttributionTask API in TracIN/TRAK/RPS Attributors, includes all unittest, examples and documents.
Support ensemble for all attributors based on innerproduct

3. What tests have been added/updated for the change?

[x] Unit test: Typically, this should be included if you implemented a new function/fixed a bug.

Just raised an issue (#107) to keep track of the benchmark performance using the new API in this PR.


Teach Forward Mode about Effects and Zeros

In forwards mode, if you can prove code is effect free, then it is safe to not execute it if you are just pushing forward zeros & you don't need the primal result.
There might be some other things we can do with effects here too.
Probably worth cross-referencing what is happening in Dex-land with effects.

Related: https://github.com/JuliaDiff/Diffractor.jl/pull/109

what's the relation?

I still don't properly  understand #109 but one of the cases Keno thinks it is illegal is if it is used on code with side-effects.


Open XR Toolkit not working maybe wrong path...

1.When I  hover my mouse over the green "OpenXr Toolkit layer is active" only one layer instead of two appear
eg XR APILAYER NOVENDOR TOOLKIT not the XR Apilayer Ultraleap hand tracking
2/ When I open log file an Error message comes and says to open it manually.
3, When I search as indicated C:|Users|Michael Bolli|AppData|Local|OpenXR-Toolkit\Logs\XR-Apilayer-Novendor-toolkit.log manually, I find 3 files, ALL EMPTY: configs, logs, screenshots/  IS THIS NORMAL?
Have desinstalled and reinstalled the Toolkit.
MSFL last version, Reverb G2 device, Nvidia GeForce RTX 2080Ti, OpenXR Runtime 109.2111.23003.0

What game are you trying?

Thanks for your promt reply. Msfs2020 is the game.But now sometimes it works. Cockpit is sometimes flickery and Toolkit menu is only on left eye.

can you attach the log file from a time it worked?

Closing for now.
Please re-open if you can attach a log file, otherwise there is nothing we can do to help.

Sorry for replying late. Had not time. Have tried to make some flights and it seems it is almost OK concerning Toolkit. Sometimes the Sim crashes, but only in VR mode. Also controls do not always work.
Please tell me the ex[act order of initiating the game; should I start Reverb G2 first  and then FS2020 and activate VR  with Alt Tab only when ready for Take off in order to minimize crashes in VR?
XR_APILAYER_NOVENDOR_toolkit.log
Regards and be well


7940 mc java fixes for pyrsl

Here are a most of the fixes required to get pyrsl working with MC-Java.
I still have a few commits locally, but I'll create separate PRs for those as they are not as strait forward as these ones.
For reviewing purposes, the commits are grouped by type of syntax error.

This branch is out of date.  It has been superceeded by keithbrown:8442_build_bp_pyrsl which is a merge of this work and fix conflicts.  That branch will also include other fixes for the task.


Login access as CiviForm Admin AND Program Admin

Describe the bug
I'm not sure if this is actually a bug--I would also understand if this is how the tool is intended to be in order to preserve additional layers of privacy. BUT
I'm looking for a good way to be able to see how many applications were submitted. As CiviForm Admin, I have no way (currently) of knowing if it is a test application or a real application. My work-around is to assign myself as a Program Administrator to get access to the applications as they come in.
But I cannot login as a Program Administrator--my CiviForm Admin role takes precedence.
To Reproduce
Steps to reproduce the behavior:

Go to "Civiform.Seattle.gov"
Click on Admin Login'
Only able to view the CiviForm Admin view

Alternatively:

Open email when a new applicant submits an application
Click on the link to view the application
Get an error message, attached

Expected behavior
If the CiviForm Admin role is deliberately separate from the Program Admin role (which is very well might be!), then it's functioning as expected. It would be great to have a way to see how many applications were received that are REAL applications and not just test ones :)
Screenshots
Program Admin vs. CiviForm Admin.docx

I am unable to act as both a CiviForm Administrator AND Program Administrator. Without this access, I have a hard time troubleshooting issues that Program Admins face. I often cannot replicant their issue in Staging. It would also help to respond to resident questions about the status of their application, if I'm able to look them up in CiviForm. Is it possible to re-open this request? I'd like to better understand what it will take to grant CiviForm Admins (Matt and I) access as Program Admin)

@cassandralfernandes need your input.
It was an explicit decision to not give Civiform Admin access to Program Applications, to have better privacy model and limit number of people accessing PII. @elisekalstad if that's not a concern for you - we can change it.
Currently we have an explicit check to not allow Civiform Admin assign themselves as Program Admin. We can add a server config variable that will disable that check. So it will be up to civic entity to enable that or not.
That would behave similarly to demo server when using "Program and Civiform Admin" button. Applications will be under 3 dot menu:

There two options for the user flow:

When the flag is on - Civiform Admin has access to all applications for all programs without additional actions. If the flag is later turned off - they lose program access.

When the flag is on - Civiform Admin can add themselves as a Program Admin. If the flag is later turned off - they will not automatically lose access, they will need to be manually removed from that program.

Hi @azizova-leyla -- It's not a concern to have CiviForm Admins access PII (approved by Seattle's Privacy Team, common practice with other applications used in the City). It allows us to triage issues program admins encounter much quicker. And can help when residents reach out directly to us about an issue with their application.
My recommendation would be Option 1--access for all application for all programs. I know this is a deviation from the original setup of CiviForm, but this will help us provide better support to users! Thank you!!

Assigning to Gwen to enable this in the next release.

I enabled the feature flag. It will be enabled after next prod deploy.


Add SDK-only workflow metadata

What changed?
Adding a message for workflow metadata that is only available in the SDK.

Why?
The goal is to provide a standard interface for all the SDKs to read workflow metadata such as registered query, signal or update handlers.
See #temporalio/features#51

Breaking changes
no

Will the query for this metadata have any parameters or are users only able to query for the full thing?
I think the whole thing to begin with (it should not be that much data). As @cretz mentioned the issue is also pricing,
if we decide to charge for the query, many partial queries make no sense... But my preference is that queries with _temporal prefix be free, as it is today for the failed query...


Fill some missing Graph API data

Filled in missing descriptions of cmdlet params from live Graph API docs here

Docs Build status updates of commit df7899b:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

azureadps-2.0/AzureAD/Set-AzureADUser.md
:white_check_mark:Succeeded

For more details, please refer to the build report.
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.
For any questions, please:Try searching the docs.microsoft.com contributor guidesPost your question in the Docs support channel

Docs Build status updates of commit 41af957:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

azureadps-2.0/AzureAD/Set-AzureADUser.md
:white_check_mark:Succeeded

For more details, please refer to the build report.
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.
For any questions, please:Try searching the docs.microsoft.com contributor guidesPost your question in the Docs support channel

Docs Build status updates of commit ab6bc21:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

azureadps-2.0/AzureAD/Set-AzureADUser.md
:white_check_mark:Succeeded

For more details, please refer to the build report.
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.
For any questions, please:Try searching the docs.microsoft.com contributor guidesPost your question in the Docs support channel

Docs Build status updates of commit e150607:
:x: Validation status: errors
Please follow instructions here which may help to resolve issue.
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

Docs Build status updates of commit 3622a26:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

azureadps-2.0-preview/AzureAD/Add-AzureADAdministrativeUnitMember.yml
:white_check_mark:Succeeded

azureadps-2.0-preview/AzureAD/Add-AzureADApplicationOwner.yml
:white_check_mark:Succeeded

azureadps-2.0-preview/AzureAD/Add-AzureADApplicationPolicy.yml
:white_check_mark:Succeeded

azureadps-2.0-preview/AzureAD/Add-AzureADDeviceRegisteredOwner.yml
:white_check_mark:Succeeded

azureadps-2.0-preview/AzureAD/Add-AzureADDeviceRegisteredUser.yml
:white_check_mark:Succeeded

azureadps-2.0-preview/AzureAD/Add-AzureADDirectoryRoleMember.yml
:white_check_mark:Succeeded

azureadps-2.0-preview/AzureAD/Add-AzureADGroupMember.yml
:white_check_mark:Succeeded

azureadps-2.0-preview/AzureAD/Add-AzureADGroupOwner.yml
:white_check_mark:Succeeded

azureadps-2.0-preview/AzureAD/Add-AzureADMSApplicationOwner.yml
:white_check_mark:Succeeded

azureadps-2.0-preview/AzureAD/Add-AzureADMSFeatureRolloutPolicyDirectoryObject.yml
:white_check_mark:Succeeded

azureadps-2.0-preview/AzureAD/Add-AzureADMSLifecyclePolicyGroup.yml
:white_check_mark:Succeeded

azureadps-2.0-preview/AzureAD/Add-AzureADMSPrivilegedResource.yml
:white_check_mark:Succeeded

azureadps-2.0-preview/AzureAD/Add-AzureADMSServicePrincipalDelegatedPermissionClassification.yml
:white_check_mark:Succeeded

azureadps-2.0-preview/AzureAD/Add-AzureADScopedRoleMembership.yml
:white_check_mark:Succeeded

azureadps-2.0-preview/AzureAD/Add-AzureADServicePrincipalOwner.yml
:white_check_mark:Succeeded

azureadps-2.0-preview/AzureAD/Add-AzureADServicePrincipalPolicy.yml
:white_check_mark:Succeeded

azureadps-2.0-preview/AzureAD/Close-AzureADMSPrivilegedRoleAssignmentRequest.yml
:white_check_mark:Succeeded

azureadps-2.0-preview/AzureAD/Confirm-AzureADDomain.yml
:white_check_mark:Succeeded

azureadps-2.0-preview/AzureAD/Connect-AzureAD.yml
:white_check_mark:Succeeded

azureadps-2.0-preview/AzureAD/Disconnect-AzureAD.yml
:white_check_mark:Succeeded

azureadps-2.0-preview/AzureAD/Enable-AzureADDirectoryRole.yml
:white_check_mark:Succeeded

azureadps-2.0-preview/AzureAD/Get-AzureADAdministrativeUnit.yml
:white_check_mark:Succeeded

azureadps-2.0-preview/AzureAD/Get-AzureADAdministrativeUnitMember.yml
:white_check_mark:Succeeded

azureadps-2.0-preview/AzureAD/Get-AzureADApplication.yml
:white_check_mark:Succeeded

azureadps-2.0-preview/AzureAD/Get-AzureADApplicationExtensionProperty.yml
:white_check_mark:Succeeded

azureadps-2.0-preview/AzureAD/Get-AzureADApplicationKeyCredential.yml
:white_check_mark:Succeeded

azureadps-2.0-preview/AzureAD/Get-AzureADApplicationLogo.yml
:white_check_mark:Succeeded

azureadps-2.0-preview/AzureAD/Get-AzureADApplicationOwner.yml
:white_check_mark:Succeeded

azureadps-2.0-preview/AzureAD/Get-AzureADApplicationPasswordCredential.yml
:white_check_mark:Succeeded

azureadps-2.0-preview/AzureAD/Get-AzureADApplicationPolicy.yml
:white_check_mark:Succeeded

azureadps-2.0-preview/AzureAD/Get-AzureADApplicationProxyApplication.yml
:white_check_mark:Succeeded

azureadps-2.0-preview/AzureAD/Get-AzureADApplicationProxyApplicationConnectorGroup.yml
:white_check_mark:Succeeded

azureadps-2.0-preview/AzureAD/Get-AzureADApplicationProxyConnector.yml
:white_check_mark:Succeeded

azureadps-2.0-preview/AzureAD/Get-AzureADApplicationProxyConnectorGroup.yml
:white_check_mark:Succeeded

azureadps-2.0-preview/AzureAD/Get-AzureADApplicationProxyConnectorGroupMembers.yml
:white_check_mark:Succeeded

azureadps-2.0-preview/AzureAD/Get-AzureADApplicationProxyConnectorMemberOf.yml
:white_check_mark:Succeeded

azureadps-2.0-preview/AzureAD/Get-AzureADApplicationServiceEndpoint.yml
:white_check_mark:Succeeded

azureadps-2.0-preview/AzureAD/Get-AzureADApplicationSignInDetailedSummary.yml
:white_check_mark:Succeeded

azureadps-2.0-preview/AzureAD/Get-AzureADApplicationSignInSummary.yml
:white_check_mark:Succeeded

azureadps-2.0-preview/AzureAD/Get-AzureADAuditDirectoryLogs.yml
:white_check_mark:Succeeded

azureadps-2.0-preview/AzureAD/Get-AzureADAuditSignInLogs.yml
:white_check_mark:Succeeded

azureadps-2.0-preview/AzureAD/Get-AzureADContact.yml
:white_check_mark:Succeeded

azureadps-2.0-preview/AzureAD/Get-AzureADContactDirectReport.yml
:white_check_mark:Succeeded

azureadps-2.0-preview/AzureAD/Get-AzureADContactManager.yml
:white_check_mark:Succeeded

azureadps-2.0-preview/AzureAD/Get-AzureADContactMembership.yml
:white_check_mark:Succeeded

azureadps-2.0-preview/AzureAD/Get-AzureADContactThumbnailPhoto.yml
:white_check_mark:Succeeded

azureadps-2.0-preview/AzureAD/Get-AzureADContract.yml
:white_check_mark:Succeeded

azureadps-2.0-preview/AzureAD/Get-AzureADCurrentSessionInfo.yml
:white_check_mark:Succeeded

azureadps-2.0-preview/AzureAD/Get-AzureADDeletedApplication.yml
:white_check_mark:Succeeded

azureadps-2.0-preview/AzureAD/Get-AzureADDevice.yml
:white_check_mark:Succeeded

This comment lists only the first 50 files in the pull request.
For more details, please refer to the build report.
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.
For any questions, please:Try searching the docs.microsoft.com contributor guidesPost your question in the Docs support channel

Hello @mavaddat, thanks for your contribution. Unfortunately you will have to redo this PR so that it is created against the master and not the live. Also, break the PR into smaller chunks so it makes the work of reviewing the changes much easier.


Vertical component for nested sandpack on the documentation

@sannek here is the vertical component. I would like to customize more the second preview but that will require not used the Sandpack component and loose all the default styles. Maybe in a next iteration?

Awesome, thanks Zeh!
I don't think - at least for now - we should further customize the preview. It might look nicer, but will make it no longer a good preview of what it would really look like when people use it in their projects.


Split cookie key=value only after first equals sign.

Fix issue https://github.com/fabioberger/cookie/issues/1

Sorry I didn't see this sooner! Thanks for the PR! :D


Drag & Drop TabItem reordering

Is it possible to make TabItems reorderable with drag & drop?
Thanks in advance!

@Dimigergo Yes, you can use e.g. one of these libs or implement it self

Dragablz
gong-wpf-dragdrop


Update bower.json angular dependency

Hmm, interesting. I can't get the tests to pass with 1.3. I wonder how they passed here.

Another solution is to hook it to 1.2 branch with ~1.2.26.

I need this. :+1:

Can this be merged and a new release created?

If anybody else has this problem, there's a workaround.


feat(selection): Remove nodes based on tag name and class.

Extend the selection.removeFormatting() function so that it can remove nodes based on tag name and class name; handy if I’d like to remove e.g. span.foo only.

:tada: This PR is included in version 2.13.0 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


slider中嵌套两个页面中为list的页面  列表高度在安卓中有问题

slider中嵌套两个页面中为list的页面 ，安卓中即使屏幕还有很大空白高度，但是list依然显示不全，求解

可能需要自动计算高度

This PR/issue doesn't received response since Weex migrated to Apache two years ago and this repository is no longer active yet.
Feel free to ask question in new repository and thanks for your contribution.

This issue is outdated for a long time and will be closed now. You can create a new one if you still have questions.


mj-text > added letter spacing & updated readme

+1

Bump, can we fix the comma and have this merged?

@jitendravyas Same here, closing this one because no real update for a while now.
@shulcsm @blaugueux or @jitendravyas feel free to open a new PR with it !

@iRyusa https://github.com/mjmlio/mjml/pull/475


updated requirements.txt to fix outside app context error

To fix the outside context error, I have pinned the flask-sqlalchemy version to 2.5.1 in the requirements.txt file.

LGTM! Thank you @dvarsha15


How to get player rotation

I can get a ref to the ecctrl to get the player .translation() but is there a way to get rotation too?
I need it to determine the direction of a thrown object from the player.
Thanks.

For First person I guess I could just get the camera rotation.

characterRef.current.rotation() should be the character's rotation.

@ErdongChen-Andrew that's just giving me 0 0 0 1

Did you turn off the autoBalance? If so, you need to trace the character model .getWorldQuaternion()


New Feature: Load Metrics from External File or Transfer Metrics from Another Data Source

Currently, if you want to migrate metrics from one data source (e.g. one with demo data) to another data source (one with with live data), you need to copy/paste each JSON query individually and save it. This is tedious, and complicated by the fact that the UI is easily confused as to which data source you're on if you're toggling between a few.
It would be nice if there was a utility to load JSON queries from an external file, or from the List Druid Metric list, select the desired metrics and have a "transfer to other datasource" option.
Related, an ability to bulk-repoint slices from one datasource to another.

Agreed, better tooling to keep environments in sync would be nice.


Update to rust HEAD (205c356)

There were the following issues with your Pull Request

Commit: 1b56fb5ec3106c0aea2a29e655dcd4cccb697ae8
Commits must be in the following format: %{type}(%{scope}): %{description}
Invalid type. Valid types are feat, fix, docs, style, refactor, perf, test, chore, revert

Guidelines are available at https://github.com/serde-rs/quasi

This message was auto-generated by https://gitcop.com


Smartmontools index out of range

I've got an error with smartmontools and HTPC-Manager.  Ubuntu only had smartmontools 5.41 in the repos so I compiled and installed the latest version (6.5) from source.  I runs fine from command line.
smartctl pastebin: http://pastebin.com/yzPRyuwy
I get an error in HTPC Manager though.
2016-06-01 11:20:29 :: modules.stats :: ERROR :: Error Pulling S.M.A.R.T. data list index out of range
Traceback (most recent call last):
    File "/home/bill-nas/.HTPCManager/modules/stats.py", line 527, in smart_info
        devlist = DeviceList()
    File "/home/bill-nas/.HTPCManager/libs/pySMART/device_list.py", line 51, in __init__
        self._initialize()
    File "/home/bill-nas/.HTPCManager/libs/pySMART/device_list.py", line 106, in _initialize
        self.devices.append(Device(name))
    File "/home/bill-nas/.HTPCManager/libs/pySMART/device.py", line 140, in __init__
        self.update()
    File "/home/bill-nas/.HTPCManager/libs/pySMART/device.py", line 482, in update
        self.serial = line.split(':')[1].split()[0].rstrip()
IndexError: list index out of range`

Log since last start: http://pastebin.com/ZPKunyHs
HTPC Manager is running as root via a init.d script.  It's the latest release on master2
commit 46a499987f4f9d4df7ac3ffb8a4b39bc1328ab5e
Author: Hellowlol<EMAIL_ADDRESS>Date:   Wed Jun 1 15:54:09 2016 +0200

I'm running Ubuntu 12.04 for an OS with python 2.7.3 running htpcmanager.
I guess the main thing that I could think of that would be the problem would be that I have some hdds on a rocketraid card in jbod mode and the rocketraid card clobbers the SMART info.  Do all hdds have to report properly for it to work, or would it just ignore any that didn't return relevant info?
Here's output from one of the drives behind the rocketraid card.
bill-nas@ubuntu-nas:~$ sudo smartctl -a /dev/sdf
smartctl 6.5 2016-05-07 r4318 [x86_64-linux-3.2.0-23-generic] (local build)
Copyright (C) 2002-16, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Vendor:               HPT
Product:              DISK_6_0
Revision:             4.00
User Capacity:        1,000,123,400,192 bytes [1.00 TB]
Logical block size:   512 bytes
Logical Unit id:      0x00193c0000000000
Serial number:
Device type:          disk
Local Time is:        Wed Jun  1 11:35:07 2016 CDT
SMART support is:     Unavailable - device lacks SMART capability.

=== START OF READ SMART DATA SECTION ===
Request Sense failed, [Input/output error]
Error Counter logging not supported

[GLTSD (Global Logging Target Save Disable) set. Enable Save with '-S on']
Device does not support Self Test logging

Hi! There isnt away to fix this unless we manually path pysmart :(

Something like a whitelist of device names: /dev/sda /dev/sdb...
So it would be like the mountpoints for monitoring?

Yeah, we could try that.


Question on nested using blocks

I'm curious about how nested using blocks are implemented.  A single using block is equivalent of a try/finally with a call to Dispose.  For multiple disposable objects, we can amalgamate them into a single try/finally.  Do using blocks do the same?
using (var a = new A())
using (var b = new B())
  DoSomething(a, b);

Is the above equivalent to this:
A a;
B b;
try
   {
      a = new A();
      b = new B();
      DoSomething(a, b);
   }
finally
   {
      a?.Dispose();
      b?.Dispose();
   }

or to this?
A a;
try
   {
      a = new A();
      try
      {
         b = new B();
         DoSomething(a, b);
      }
      finally
      {
         b?.Dispose();
      }
   }
finally
   {
      a?.Dispose();
   }

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

ID: 042902cc-1598-5df1-34cc-caa0fad63e02
Version Independent ID: e186d0c4-523e-38f7-2cde-d00109ea784b
Content: using statement - C# Reference
Content Source: docs/csharp/language-reference/keywords/using-statement.md
Product: dotnet-csharp
Technology: csharp-language-reference
GitHub Login: @BillWagner
Microsoft Alias: wiwagn

This uses nested try/finally blocks. See SharpLab for what the compiler generates.

You might want to try https://github.com/dotnet/csharplang/discussions to discuss what goes on behind the scenes. These issues are really for reporting doc bugs or doc enhancements 😁
My guess would be that since they're nested, they're each declaring scope, so it's probably your 2nd try/finally example. I'll close this as off topic 😄

@adegeo,  I thought it might be considered an enhancement since the documentation did not answer my question.
@Youssef1313, thanks for the pointer to that tool.

@mrj001 I see that now. 😄 I'll ping @BillWagner to see if he thinks this is a good question to answer via the docs.


Is it possible to add more than 1 netem subcommands?

If you want to simulate a real network you have to add: losses, delay,  corrupt, and rate.
And I could not find a way to run pumba with more than one of those subcommands.
I tried:
1- run 2 pumba containers with different settings (not working only 1 subcommand is applied)
2- Use follwing syntaxes (not working):
Test 1:
pumba netem --duration 5m delay --time 3000 mycontainer corrupt --percent 10 mycontainer

Test 2:
pumba netem --duration 5m delay --time 3000 corrupt --percent 10 mycontainer

Test 3:
pumba netem --duration 5m delay --time 3000 mycontainer --duration 5m corrupt --percent 10 mycontainer

Any progress on that? Is it possible to run multiple netem subcommands to docker containers?

I ended up installing netem in a docker and calling it directly. Then it is possible (and easy) to pass different parameters (simulating different network problems): https://github.com/jordicenzano/live-streaming-ingest-advanced-simulation
I hope it helps

Thank you, it helps a lot.
Do you think I can use the same approach to simulate network latencies between docker containers and then, use pumba to inject OTHER random delays/packet-loss/corruption ??
What I want to do is to configure a network between containers with reasonable latencies and then simulate network problems with pumba.
I have some doubt because the concurrency of netem commands inside the containers and pumba.


Bug: After upgrading to 1.9.x, predictions from 1.8.x don't auto populate in the label stream

Description
After upgrading to 1.9.2, clicking on "Label All Tasks" or "Label Tasks As Displayed" shows the image, but not the predictions carried over from 1.8.2.  If I click "back" to the previous task and then click "forward", the prediction appears. Predictions are also not being displayed for Tasks appearing after clicking "Submit". The predictions were generated prior to the upgrade in one of two ways:

Either from the ML backend, or
generated offline and then pushed to Label-Studio via the API.

This problem is present in both cases.  Note also that in both cases the ML backend was turned OFF. Also, when clicking on tasks directly from the Data Manager, the predictions show up as expected.
Expected behavior
The predictions from previous LS versions should load as normal
Environment

OS: Ubuntu 20.04
Label Studio Version 1.8.2 --> 1.9.2

Hi @WillieMaddox - thank you for the report! We'll work on reproducing this issue on our side, and provide an update on whether we're able to.

We were able to confirm this regression our side, and will be implementing a fix; I'll update here when I have more information. Thanks again for letting us know about this issue!

Looking forward for the fix!

Yes, indeed. Looking forward to the fix!

Still looking forward to the fix


Add support for Bot Api 7.10

There is already progress on https://github.com/khamidjon-khamidov/flutter_telegram_web_app/tree/feature/Bot-Api-7.10
But, telegram.js is not still updated on Telegram side as of now. Will proceed when they update


Track CNCF Project Maturity Level Requirements

Description of issue or feature request:
Keep track of CNCF requirements.

[x] Document that it is being used successfully in production by at least three independent end users which, in the TOC’s judgement, are of adequate quality and scope.

[x] Have a healthy number of committers. A committer is defined as someone with the commit bit; i.e., someone who can accept contributions to some or all of the project.

[x] Demonstrate a substantial ongoing flow of commits and merged contributions.

[ ] Since these metrics can vary significantly depending on the type, scope and size of a project, the TOC has final judgement over the level of activity that is adequate to meet these criteria

[x] Have committers from at least two organizations.

[x] Have achieved and maintained a Core Infrastructure Initiative Best Practices Badge.

[x] Basic: 100% complete
[x] Silver
[ ] Gold

[x] Adopt the CNCF Code of Conduct.

[x] Explicitly define a project governance and committer process. This preferably is laid out in a GOVERNANCE.md file and references an OWNERS.md file showing the current and emeritus committers.

[x] Have a public list of project adopters for at least the primary repo (e.g., ADOPTERS.md or logos on the project website).

[ ] Receive a supermajority vote from the TOC to move to graduation stage.

TUF has graduated within the CNCF. Closing...


feat(openchallenges): add EDAM ontology terms and challenge annotations

Changelog

add 2 new tables to challenge-service db

edam_ontology_term : a table consisting of EDAM ontology terms currently used to annotate challenges in the OC; includes parent classes
challenge_input_data_annotation : a table mapping challenges to their EDAM annotation(s)

updated API data models

Preview
API docs

edam_ontology_term table

challenge_input_data_annotation table

2024 update:

automated script that dumps the CSV files has been updated to include the EDAM terms and annotations into the dump

@vpchung Please update the information included in the first comment of this PR.

Replaced by #2557


Crash when drag card

Hello,
When I keep dragging the card here and there without moving it down, app crash in this line
collectionView?.bringSubview(toFront: cell!)
in this method
//Define what card should we drag
    fileprivate func findDraggingCellByCoordinate(_ touchCoordinate: CGPoint) {
        if let indexPath = collectionView?.indexPathForItem(at: touchCoordinate) {
            if indexPath.item >= index {
                //top stack
                draggedCellPath = IndexPath(item: index, section: 0)
                initialCellCenter = collectionView?.cellForItem(at: draggedCellPath!)?.center
            } else {
                //bottomStack
                if (index > 0 ) {
                    draggedCellPath = IndexPath(item: index - 1, section: 0)
                }
                initialCellCenter = collectionView?.cellForItem(at: draggedCellPath!)?.center
            }

            //workaround for fix issue with zIndex
            let cell = collectionView!.cellForItem(at: draggedCellPath!)
            collectionView?.bringSubview(toFront: cell!)

        }
    }

How to overcome this issue. Please help me.

you can unwrap in by this:
if let draggedCellPath = draggedCellPath, let cell = collectionView?.cellForItem(at: draggedCellPath) {                 collectionView?.bringSubview(toFront: cell)             }

This does not actually fix the issue. It causes weird behaviour with the index such that cards start appearing on top of others and cards simply disappear as well. I will look more into it to see if I can find someway to fix the crash but first I have to go through and understand the code.

@RoshaniDias Fix is the next
just add if to check if index > 0
in method
internal func handleSwipe(_ sender: UISwipeGestureRecognizer) {
switch sender.direction {
case UISwipeGestureRecognizerDirection.up:
if index > 0 {
index -= 1
}
}}
I will publish new version as soon as I can

Fixed in 1.0.1


v4.1.1

Coverage remained the same at 86.25% when pulling 86256777d091e6f0d44d58df4fa7acd68901dc75 on v4.1.1 into 460fd9d4a5a1eecf338d86ee493a00503a8a0665 on master.


net/url: add URL.ForceFragment like ForceQuery for empty fragments to stringify with '#'

What version of Go are you using (go version)?

go version go1.11.2 linux/amd64

What did you do?
import (
  "fmt"
  "log"
  "net/url"
)

func main() {
    u, err := url.Parse("http://example.com/#")
	if err != nil {
		log.Fatal(err)
	}
	fmt.Println(u.String())
    fmt.Println(u.Fragment)
}

What did you expect to see?
http://example.com/#
#

What did you see instead?
http://example.com/

What's the issue?
At first glance, http://example.com/# and http://example.com/ are logically the same URL. This is largely true in the context of a browser navigating to that URL as typed into the URL bar, but they are subtly different in a link. If a user clicks the following link:
foo

If the document URL (or <base href>) is http://example.com/ then this click does not cause a navigation - it is a within document link. However, if the link was instead to:
foo

Then clicking it causes a navigation. A reload really, but still a navigation.
This becomes more of an issue when net/url is used to resolve a relative URL:

  <base href="http://example.com/">

  reload
  inert

base, _ = url.Parse("http://example.com/")
nav, _ = base.Parse("/")
local, _ = base.Parse("#")

nav and local are now equal, which means it's not possible to distinguish a document local link and a navigation link.

seems like nobody else needs this


Dealing with buffers

Buffers + Dask (or any other async scheduler) seem to be an attractive avenue for parallelizing the execution of the graph. However, the buffer creates a provenance issue for us due to how we handle stop documents.
Eg

100 images go through the pipeline with a 10 future buffer somewhere.
A stop document comes down and then all the subsequent ToEventStream nodes issue stop documents
It is possible that the 10 futures which were buffered are orphaned

Note that this isn't currently an issue since we have perfect back pressure (each document must be processed before the next one). However, buffers are designed to disrupt this back pressure, since that way we have multiple things being processed at once.
My current plan is to:

Keep track of all the buffer nodes in the graph.
When a stop comes down check all the buffer nodes to see if they are clear.
If not clear don't issue the stop, take note of the futures in the buffer.
When all the futures which we noted are finished/gone from the buffer, issue the stop document.
As new documents come down issue them correctly, this requires the translation nodes to know which data goes with which start/descriptors.

This scheme works with one issue. Each buffer must be terminal, there can be no chaining of buffers. If a buffer lead into another buffer (with something in between which produced/reduced the items in the steram) then we wouldn't have a way to register the futures as being part of the run (since when the stop document came down the second buffer may not have all the elements in it yet).

This is not a problem if the ToEventStream nodes are before the buffer.


Update license field in package.json to match LICENSE file

MIT instead of ISC

Already done. Thanks!


ng g app-shell Specified module does not exist

Versions
Angular CLI: 1.6.1
Node: 8.9.1
OS: darwin x64
Angular: 5.1.1
... animations, common, compiler, compiler-cli, core, forms
... http, language-service, platform-browser
... platform-browser-dynamic, platform-server, router
... service-worker

@angular/cli: 1.6.1
@angular-devkit/build-optimizer: 0.0.36
@angular-devkit/core: 0.0.22
@angular-devkit/schematics: 0.0.42
@ngtools/json-schema: 1.1.0
@ngtools/webpack: 1.9.1
@schematics/angular: 0.1.11
@schematics/schematics: 0.0.11
typescript: 2.4.2
webpack-bundle-analyzer: 2.9.1
webpack: 3.10.0

Repro steps
run ng g app-shell my-shell --universal-app=universal --root src/client
Observed behavior
This returns an error of
Error: Specified module does not exist
Specified module does not exist

I'm not sure what this error is referring to, so no idea how to fix the problem.
The only thing I can think of is that I have a multi app setup where the app I want to add the shell to is in src/client but I'm assuming that's what the --root option is for. Other than that everything else looks like it matches the defaults.

You have to keep the default files names of your universal files, or configure them. See ng help g app-shell for details.

I assume you mean the following
 --app-id (string) (Default: serverApp)
 --main (string) (Default: main.server.ts)
--tsconfig-file-name (string) (Default: tsconfig.server)
--root-module-file-name (string) (Default: app.server.module.ts)
--root-module-class-name (string) (Default: AppServerModule)

If so I'd already made sure they matched the defaults before I posted.

@brocco Please have a look at this.

Also just in case it's relevant, I've tried manually adding the app shell and that also doesn't work as the app shell isn't added to the generated index.html and I also get a server side error of ReferenceError: System is not defined

Is there any update on this; when we can expect in the Release

Thanks for reporting this issue. This issue was originally reported a long time ago and since then we've had many releases, one of which might have addressed this problem. Please update to the most recent Angular CLI version.
If the problem persists after upgrading, please open a new issue, provide a simple repository reproducing the problem, and describe the difference between the expected and current behavior.


abi-compliance-checker: init at 2.3

Motivation for this change
This adds abi-compliance-checker and its two dependencies, for dumping the API/ABI of C/C++ libraries.  It is the tool used to produce the reports on this webpage:
https://abi-laboratory.pro/
Things done

[x] Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS)
Built on platform(s)

[x] NixOS
[ ] macOS
[x] other Linux distributions

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
[x] Tested execution of all binary files (usually in ./result/bin/)
[ ] Determined the impact on package closure size (by running nix path-info -S before and after)
[x] Fits CONTRIBUTING.md.

@GrahamcOfBorg build abi-compliance-checker

Success on x86_64-linux (full log)
Attempted: abi-compliance-checker
Partial log (click to expand)
-- Installing /nix/store/bp8g6pzv3kafbvv3h6ma04dmc29dgmsd-abi-compliance-checker-2.3/share/abi-compliance-checker
WARNING: your PATH variable doesn't include '/nix/store/bp8g6pzv3kafbvv3h6ma04dmc29dgmsd-abi-compliance-checker-2.3/bin'
post-installation fixup
shrinking RPATHs of ELF executables and libraries in /nix/store/bp8g6pzv3kafbvv3h6ma04dmc29dgmsd-abi-compliance-checker-2.3
strip is /nix/store/h0lbngpv6ln56hjj59i6l77vxq25flbz-binutils-2.30/bin/strip
stripping (with command strip and flags -S) in /nix/store/bp8g6pzv3kafbvv3h6ma04dmc29dgmsd-abi-compliance-checker-2.3/bin
patching script interpreter paths in /nix/store/bp8g6pzv3kafbvv3h6ma04dmc29dgmsd-abi-compliance-checker-2.3
/nix/store/bp8g6pzv3kafbvv3h6ma04dmc29dgmsd-abi-compliance-checker-2.3/bin/abi-compliance-checker: interpreter directive changed from "/usr/bin/perl" to "/nix/store/kdbzhdzm43r58smfx29x3233dagihxp5-perl-5.28.0/bin/perl"
checking for references to /build in /nix/store/bp8g6pzv3kafbvv3h6ma04dmc29dgmsd-abi-compliance-checker-2.3...
/nix/store/bp8g6pzv3kafbvv3h6ma04dmc29dgmsd-abi-compliance-checker-2.3

Success on aarch64-linux (full log)
Attempted: abi-compliance-checker
Partial log (click to expand)
-- Installing /nix/store/gg2bygk1inkqzjgkmv0wqvfbsmcz2lqm-abi-compliance-checker-2.3/share/abi-compliance-checker
WARNING: your PATH variable doesn't include '/nix/store/gg2bygk1inkqzjgkmv0wqvfbsmcz2lqm-abi-compliance-checker-2.3/bin'
post-installation fixup
shrinking RPATHs of ELF executables and libraries in /nix/store/gg2bygk1inkqzjgkmv0wqvfbsmcz2lqm-abi-compliance-checker-2.3
strip is /nix/store/y4ymnvgxygpq05h03kyzbj572zmh6zla-binutils-2.30/bin/strip
stripping (with command strip and flags -S) in /nix/store/gg2bygk1inkqzjgkmv0wqvfbsmcz2lqm-abi-compliance-checker-2.3/bin
patching script interpreter paths in /nix/store/gg2bygk1inkqzjgkmv0wqvfbsmcz2lqm-abi-compliance-checker-2.3
/nix/store/gg2bygk1inkqzjgkmv0wqvfbsmcz2lqm-abi-compliance-checker-2.3/bin/abi-compliance-checker: interpreter directive changed from "/usr/bin/perl" to "/nix/store/w48isnsy2535w5iry1xzw9rbsd5sxfsn-perl-5.28.0/bin/perl"
checking for references to /build in /nix/store/gg2bygk1inkqzjgkmv0wqvfbsmcz2lqm-abi-compliance-checker-2.3...
/nix/store/gg2bygk1inkqzjgkmv0wqvfbsmcz2lqm-abi-compliance-checker-2.3

Success on aarch64-linux (full log)
Attempted: abi-compliance-checker, abi-dumper, vtable-dumper
Partial log (click to expand)
/nix/store/gg2bygk1inkqzjgkmv0wqvfbsmcz2lqm-abi-compliance-checker-2.3
/nix/store/96lhrsbyqg1hjd7jd3lk7kqg7gb8803m-abi-dumper-1.1
/nix/store/6p61i53v7cfrj2zc49vn73vmc03f0rh3-vtable-dumper-1.2

Success on x86_64-linux (full log)
Attempted: abi-compliance-checker, abi-dumper, vtable-dumper
Partial log (click to expand)
post-installation fixup
shrinking RPATHs of ELF executables and libraries in /nix/store/bp8g6pzv3kafbvv3h6ma04dmc29dgmsd-abi-compliance-checker-2.3
strip is /nix/store/h0lbngpv6ln56hjj59i6l77vxq25flbz-binutils-2.30/bin/strip
stripping (with command strip and flags -S) in /nix/store/bp8g6pzv3kafbvv3h6ma04dmc29dgmsd-abi-compliance-checker-2.3/bin
patching script interpreter paths in /nix/store/bp8g6pzv3kafbvv3h6ma04dmc29dgmsd-abi-compliance-checker-2.3
/nix/store/bp8g6pzv3kafbvv3h6ma04dmc29dgmsd-abi-compliance-checker-2.3/bin/abi-compliance-checker: interpreter directive changed from "/usr/bin/perl" to "/nix/store/kdbzhdzm43r58smfx29x3233dagihxp5-perl-5.28.0/bin/perl"
checking for references to /build in /nix/store/bp8g6pzv3kafbvv3h6ma04dmc29dgmsd-abi-compliance-checker-2.3...
/nix/store/bp8g6pzv3kafbvv3h6ma04dmc29dgmsd-abi-compliance-checker-2.3
/nix/store/ibsbv4v0apjwhdcb8a0xsx9q5z4kgy14-abi-dumper-1.1
/nix/store/l2axf7amp6c87ry4gvg426cpb4244sbw-vtable-dumper-1.2

Success on aarch64-linux (full log)
Attempted: abi-compliance-checker, abi-dumper, vtable-dumper
Partial log (click to expand)
post-installation fixup
shrinking RPATHs of ELF executables and libraries in /nix/store/4shihrk2q3qa4man4gv06g8nl258p154-abi-compliance-checker-2.3
strip is /nix/store/y4ymnvgxygpq05h03kyzbj572zmh6zla-binutils-2.30/bin/strip
stripping (with command strip and flags -S) in /nix/store/4shihrk2q3qa4man4gv06g8nl258p154-abi-compliance-checker-2.3/bin
patching script interpreter paths in /nix/store/4shihrk2q3qa4man4gv06g8nl258p154-abi-compliance-checker-2.3
/nix/store/4shihrk2q3qa4man4gv06g8nl258p154-abi-compliance-checker-2.3/bin/abi-compliance-checker: interpreter directive changed from "/usr/bin/perl" to "/nix/store/w48isnsy2535w5iry1xzw9rbsd5sxfsn-perl-5.28.0/bin/perl"
checking for references to /build in /nix/store/4shihrk2q3qa4man4gv06g8nl258p154-abi-compliance-checker-2.3...
/nix/store/4shihrk2q3qa4man4gv06g8nl258p154-abi-compliance-checker-2.3
/nix/store/swykif9l5yb937z293a2kcxizpi9wvyz-abi-dumper-1.1
/nix/store/zffansmsm4ki28xa9x11pjpxyhk7y5v3-vtable-dumper-1.2

Success on x86_64-linux (full log)
Attempted: abi-compliance-checker, abi-dumper, vtable-dumper
Partial log (click to expand)
post-installation fixup
shrinking RPATHs of ELF executables and libraries in /nix/store/h9v9hnr54ni3kd9qz3b8hbqj3ris7i1p-abi-compliance-checker-2.3
strip is /nix/store/h0lbngpv6ln56hjj59i6l77vxq25flbz-binutils-2.30/bin/strip
stripping (with command strip and flags -S) in /nix/store/h9v9hnr54ni3kd9qz3b8hbqj3ris7i1p-abi-compliance-checker-2.3/bin
patching script interpreter paths in /nix/store/h9v9hnr54ni3kd9qz3b8hbqj3ris7i1p-abi-compliance-checker-2.3
/nix/store/h9v9hnr54ni3kd9qz3b8hbqj3ris7i1p-abi-compliance-checker-2.3/bin/abi-compliance-checker: interpreter directive changed from "/usr/bin/perl" to "/nix/store/kdbzhdzm43r58smfx29x3233dagihxp5-perl-5.28.0/bin/perl"
checking for references to /build in /nix/store/h9v9hnr54ni3kd9qz3b8hbqj3ris7i1p-abi-compliance-checker-2.3...
/nix/store/h9v9hnr54ni3kd9qz3b8hbqj3ris7i1p-abi-compliance-checker-2.3
/nix/store/w1v91cmhadlp9zq3gp1g9z5jmgqj64p2-abi-dumper-1.1
/nix/store/9m2r1c4qh4p75gbrzgiyarnp8cpq1wlf-vtable-dumper-1.2

Ping?

Ping @orivej mind taking a look?  Should be ready to merge I think.

CC @matthewbauer would you mind reviewing please?

Thanks!


Rename migrate -> upgrade

Code Changes

[x] update db.py in the CLI commands
[x] add another CLI test for the upgrade command
[x] update admin.py

Steps to Confirm

[ ] nox -s dev & fides db upgrade

Pre-Merge Checklist

[x] All CI Pipelines Succeeded
[x] Update CHANGELOG.md

Description Of Changes
In a recent change I made to make automigration optional, I did some renaming of the init CLI command and API endpoints. Upon further reflection, I realized there may be a point where we want to start supporting downgrades, as this is a great feature for users in case of a bad upgrade.
Given this fact, I want to preemptively fix this since the feature is still new and users should still be using init. Eventually we can now add a fides db downgrade

Looks good! Nice future planning 👍🏽 One nit in the db_init docs block is all

nice catch!


LLama3.2-11b-Vision

Ice boxed, as Cortex currently does not support vision models (no template for model.yml)

dupe of #741


Native Support for Google Cloud Spanner

I'm wondering if you have considered adding Google Cloud Spanner support for OpenFGA?
It has global strong transactional consistency, extremely performant, 99.999 SLA, and it has zero downtime schema changes (everything you want for OpenFGA). It is also more cost effective to run spanner than it is to run Cloud SQL (Much cheaper to run ever since Spanner changed their pricing model - $65 dollars a month for about 1k reads / second and 200 writes / second with no downtime upgrades for more).
We are thinking of using OpenFGA with cloud spanner through the PGAdapter (postgres adapter), which is possible because it supports pgx connections, however that is extra overhead and we would love it if it was possible to use spanner with openfga without any sidecar proxy adapter infra to manage.
Spanner + OpenFGA work really well together

Hi @NOT-HAL9000,
We have discussed it, but we don't have any concrete plans yet.
An additional alternative to the ones you mentioned above could be for you to write a Cloud Spanner OpenFGA adapter. It should not be hard to do, however, we can't guarantee that we'll include that as part of the OpenFGA binary.

Thanks @aaguiarz-uy. Unfortunately we don't have much go experience so we will just have to rely on the PGAdapter.


abseil-cpp: remove setting of CMAKE_CXX_STANDARD flag

Motivation for this change
This PR removes setting the CMAKE_CXX_STANDARD flag. Setting this flag
effectively forces any dependents to use at least -std=c++17, which may not
be possible or desirable. Abseil itself supports C++ 11 and 14 as well.
Things done

[x] Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
Built on platform(s)

[x] NixOS
[ ] macOS
[ ] other Linux distributions

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
[ ] Tested execution of all binary files (usually in ./result/bin/)
21.11 Release Notes

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[x] Fits CONTRIBUTING.md.

It looks like I did that while bumping cbc and or-tools in #112951. Let's make sure to test those libraries with this change.

Hm, it looks like or-tools breaks with this change :disappointed:

Can or-tools override cmakeFlags? It seems to already be building its own abseil-cpp.

If or-tools compiles with -std=c++17, then perhaps it requires an abseil-cpp that's also compiled with -std=c++17. If other consumers of abseil-cpp require an abseil-cpp that's compiled with a different version of -std=c++XX, then I'm affraid that perhaps we simply need multiple versions of abseil-cpp in nixpkgs, no?

Are you refering to some packages inside nixpkgs?

Ha, no. I'm working on a libedgetpu derivation, and I was having some trouble linking nixpkgs abseil in.

Result of nixpkgs-review pr 126105 at 83cb2567 run on x86_64-linux 1

2 packages marked as broken and skipped:

linuxPackages_hardkernel_4_14.sysdig
linuxPackages_hardkernel_latest.sysdig

125 packages failed to build:

beancount (python38Packages.beancount)
charge-lnd
deja-dup
duplicity
duply
dvc-with-remotes
fava
fcitx5-mozc
gcalcli
git-annex-remote-googledrive
grpc
ledger2beancount
lieer
lndmanage
murmur
python38Packages.beancount_docverif
python38Packages.chirpstack-api
python38Packages.cirq
python38Packages.cirq-google
python38Packages.drivelib
python38Packages.goobook
python38Packages.google-api-core
python38Packages.google-api-python-client
python38Packages.google-cloud-access-context-manager
python38Packages.google-cloud-asset
python38Packages.google-cloud-automl
python38Packages.google-cloud-bigquery
python38Packages.google-cloud-bigquery-datatransfer
python38Packages.google-cloud-bigtable
python38Packages.google-cloud-container
python38Packages.google-cloud-core
python38Packages.google-cloud-dataproc
python38Packages.google-cloud-datastore
python38Packages.google-cloud-dlp
python38Packages.google-cloud-dns
python38Packages.google-cloud-error-reporting
python38Packages.google-cloud-firestore
python38Packages.google-cloud-iam
python38Packages.google-cloud-iot
python38Packages.google-cloud-kms
python38Packages.google-cloud-language
python38Packages.google-cloud-logging
python38Packages.google-cloud-monitoring
python38Packages.google-cloud-org-policy
python38Packages.google-cloud-os-config
python38Packages.google-cloud-pubsub
python38Packages.google-cloud-redis
python38Packages.google-cloud-resource-manager
python38Packages.google-cloud-runtimeconfig
python38Packages.google-cloud-secret-manager
python38Packages.google-cloud-securitycenter
python38Packages.google-cloud-spanner
python38Packages.google-cloud-speech
python38Packages.google-cloud-storage
python38Packages.google-cloud-tasks
python38Packages.google-cloud-texttospeech
python38Packages.google-cloud-trace
python38Packages.google-cloud-translate
python38Packages.google-cloud-videointelligence
python38Packages.google-cloud-vision
python38Packages.google-cloud-websecurityscanner
python38Packages.googleapis-common-protos
python38Packages.grpc_google_iam_v1
python38Packages.oauthenticator
python38Packages.pathy
python38Packages.proto-plus
python38Packages.pydrive
python38Packages.spacy
python38Packages.textacy
python38Packages.weboob
python38Packages.woob
python39Packages.beancount
python39Packages.beancount_docverif
python39Packages.chirpstack-api
python39Packages.cirq-google
python39Packages.drivelib
python39Packages.goobook
python39Packages.google-api-core
python39Packages.google-api-python-client
python39Packages.google-cloud-access-context-manager
python39Packages.google-cloud-asset
python39Packages.google-cloud-automl
python39Packages.google-cloud-bigquery
python39Packages.google-cloud-bigquery-datatransfer
python39Packages.google-cloud-bigtable
python39Packages.google-cloud-container
python39Packages.google-cloud-core
python39Packages.google-cloud-dataproc
python39Packages.google-cloud-datastore
python39Packages.google-cloud-dlp
python39Packages.google-cloud-dns
python39Packages.google-cloud-error-reporting
python39Packages.google-cloud-firestore
python39Packages.google-cloud-iam
python39Packages.google-cloud-iot
python39Packages.google-cloud-kms
python39Packages.google-cloud-language
python39Packages.google-cloud-logging
python39Packages.google-cloud-monitoring
python39Packages.google-cloud-org-policy
python39Packages.google-cloud-os-config
python39Packages.google-cloud-pubsub
python39Packages.google-cloud-redis
python39Packages.google-cloud-resource-manager
python39Packages.google-cloud-runtimeconfig
python39Packages.google-cloud-secret-manager
python39Packages.google-cloud-securitycenter
python39Packages.google-cloud-spanner
python39Packages.google-cloud-speech
python39Packages.google-cloud-storage
python39Packages.google-cloud-tasks
python39Packages.google-cloud-texttospeech
python39Packages.google-cloud-trace
python39Packages.google-cloud-translate
python39Packages.google-cloud-videointelligence
python39Packages.google-cloud-vision
python39Packages.google-cloud-websecurityscanner
python39Packages.googleapis-common-protos
python39Packages.grpc_google_iam_v1
python39Packages.oauthenticator
python39Packages.proto-plus
python39Packages.pydrive
python39Packages.weboob
python39Packages.woob
wal_e

57 packages skipped due to time constraints:

bear
google-cloud-cpp
gpt2tc
home-assistant
kmymoney
linuxPackages-libre.sysdig
linuxPackages.sysdig (linuxPackages_5_10.sysdig)
linuxPackages_4_14.sysdig
linuxPackages_4_19.sysdig
linuxPackages_4_4.sysdig
...

1 package built successfully:

abseil-cpp

Note that build failures may predate this PR, and could be nondeterministic or hardware dependent.
Please exercise your independent judgement. Does something look off? Please file an issue or reach out on IRC.

Alright I'll close this out, since it's breaking other packages.

It seems like your best bet is to override abseil the cmakeFlags in your own project, but it’d be nice if I had a better solution to recommend. Sorry.

Yup, that's what I ended up doing. No big deal.


Add ability to create requirements that do not expect a source code implementation

Summary
There will be some requirements that are not furfilled by the source code alone, there needs to be a way to say that the requirement does not require an source code implementation.
example: a requirement that is fulfilled by the platform it runs on and is not implemented in the source code.
We need to come up with a clever way of doing this. Until a solution is in place, a workaround could be to create a Java class NoSourceImplementation.java and annotate the requirements that would not need any real source code implementation there. This would work in the same way with Python of course.

This issue is quite difficult to get right, as it breaks a lot of the logic related to how we calculate statistics.
First, let's check on how this feature is currently implemented.
A requirement can be specified with or without the variable implemented_in_src. This variable is not marked as a required field in the schema file, and will default to True if not set explicitly

However, I'm not sure how we should count and visually present requirements that does not require an implementation.
In the table generated by the status command, such a requirement (REQ_1337 in the image below) is marked green as it is completed in the sense that it should not have an implementation, and all tests are passed, but the Implementation is marked as 'Missing'

My question about this new feature is as follows:

Is my assumption that A requirement that should not require an implementation, but is tested and all tests pass, should be counted as 'Implemented and Verified' correct?
What should the 'Implemented' column of the status table read for such a requirement? N/A? Skipped?

Could you guys provide me with some feedback on how we should address those questions?
@u30576 @u70565 @u70579 @u70650

yes, if the tests pass the requirement is verified.
A 'N/A' mark in the Implementation column would work.

yes, if the tests pass the requirement is verified.
A 'N/A' mark in the Implementation column would work.

Agree.
I'm just not sure about implemented_in_src.
Also, what should we do if we find an implementation for a requirement that should not have one?

yes, if the tests pass the requirement is verified.
A 'N/A' mark in the Implementation column would work.

Agree.
I'm just not sure about implemented_in_src.
Also, what should we do if we find an implementation for a requirement that should not have one?

I'm also on the fence about the wording of the variable. I just went with one of your suggestions from a previous discussion. maybe implementation_expected is better?
I'm not sure how we should handle that scenario. Normally we just throw an error and log a message, but I'm open for suggestions.

I opened up a PR for this matter. We can continue the discussion there
@lfvjimisola @rlinhem

Also, what should we do if we find an implementation for a requirement that should not have one?

If a requirement is marked to not have a implementation but there is an annotation with that requirement id in the code it's a user error. Throw a error and log it.
Either the requirement is erroneous marked or the code annotation is wrong. You can't have both anyway.

Also, what should we do if we find an implementation for a requirement that should not have one?

If a requirement is marked to not have a implementation but there is an annotation with that requirement id in the code it's a user error. Throw a error and log it. Either the requirement is erroneous marked or the code annotation is wrong. You can't have both anyway.

Just to confirm. We should stop the parsing?


Nil check for instance variables

Hi there!
I am just trying out crystal language recently. Found the following example does not work:
class X
property :var
def initialize(@var : String | Nil)
end
def some_method
@var = "initialized"
@var.split("") => this throws error during compilation "undefined method 'split' for Nil (compile-time type is (String | Nil))"
end
def some_method
return if @var.nil?
@var.split("") => this throws error during compilation "undefined method 'split' for Nil (compile-time type is (String | Nil))"
end
end
I think the nil check can be improved in both examples above:

In the first example, the variable is already initialized inside of the method
In the second example, the function returns early with a manual nil check

https://github.com/crystal-lang/crystal/issues/4220#issuecomment-290956365

There's a section in the Gitbook (albeit a rather hidden one) that covers both of these cases, but somewhat indirectly.

This is because any method call could potentially affect that instance variable, rendering it nil. Another reason is that another thread could change that instance variable after checking the condition.

For the first example:
def some_method
  @var = "initialized"
  @var.split("")
end

raises an error because of the second part of the quote above. Another thread could potentially change the value of @var in between the assignment and the method call, so it's type can't be restricted.
The second example:
def some_method
  return if @var.nil?
  @var.split("")
end

is more tied to the first sentence of the quote, but also affected by the second.
There are a few solutions to this kind of issue, the main one being to assign to a local variable first, where the value can't be affected by anything other than the local scope. For example:
class X
  property :var

  def initialize(@var : String | Nil)
  end

  def some_method
    @var = "initialized"
    # Only call `.split` if `@var` is not nil.
    @var.try( &.split(""))
  end

  # or

  def some_method
    @var = "initialized"
    # Raises an error if `@var` is nil
    @var.not_nil!.split("")
  end

  # or

  def some_method
    @var = "initialized"
    # Local assignment followed by `if` as a suffix
    var = @var
    var.split("") if var
  end

  # or

  def some_method
    if var = @var
      # `var` is a local, so it's type can be (and is) restricted inside of the if.
      var.split("")
    end
  end
end

Note that using if var only restricts the type of the variable inside the condition. It would be nice if return unless var restricted the type, but I don't think that's universally possible, so it hasn't been implemented.

Thank you, guys!
This is a great learning for me!

It would be nice if  return unless var  restricted the type, but I don't think that's universally possible, so it hasn't been implemented.

I'm pretty sure it is implemented and restricts the type properly. Of course it can't restrict @fields, but in the form return unless var = @field it restricts the var as non-nil for the rest of method.


Add load metrics for event loop

Motivation:
Hello, I recently observed that an Exponential Decay Formula(similar to the implementation of linux's loadavg) seems well-suited for monitoring the load of the EventLoop over a period of time.

Modification:
Add loadAvg1, loadAvg5, and loadAvg15 for the EventLoop, representing the load situation over the past 1, 5, and 15 minutes, respectively.
Result:
It could potentially serve as a performance monitoring metric, helping us to more easily identify performance bottlenecks based on load values(where a load approaching 1 might indicate optimal throughput and response speed). Therefore, I am attempting to submit this PR.

@normanmaurer I previously tried to implement this outside of netty, but I couldn't find a way to determine if the current EventLoop is executing a task (maybe I missed something). Is there a way to retrieve this state? If not, could you consider exposing an interface to get this state :)

Close this, as it should be implemented outside of Netty.


Split agents.rs to separate models and services to isolate domains

agents.rs is a big file with a lots of code and domains implemented.
It is hard to support such a big code files.
This will be good to split this file to a separate models and services that will concentrate on particular domains, e.g. authentication, articles, comments and etc.

I made my example of how this can be done and like to share it.
Please allow me to push to a separate "feature" branch, so then you can review and merge if this will be suitable.

@sanhomealex Thanks for feedback, I split files for types and services, and re-export to eliminate changes in other mods. If you want any further refactoring, you can just fork this repo to your account, make changes and send a pull request.

Hi @jetli !
Thank you for the updates.
That is exactly what I meant.


Load dataset list as server component

Will also fix https://github.com/colonial-heritage/dataset-browser/issues/94


rancher-monitoring prometheus not returning container memory usage

The container_memory_working_set_bytes is returning the memory corresponding to the pod and not for each container in the pod. Using container!=POD and container!="" as filters to the container_memory_working_set_bytes() is returning empty array.
How do I get the container level metrics instead of pod level metrics?

duplicate to https://github.com/rancher/rancher/issues/39185


DPub-AAM: Updated results

doc-footnote now passes for WebKitGtk:
https://trac.webkit.org/changeset/217426

Add Edge results (all failures) as per:
https://lists.w3.org/Archives/Public/public-aria/2017May/0081.html

Make URLs in README.md links

@halindrome: Please review. Thanks!


AuthenticationInterceptor(Alamofire5.2) retry process doesn't work well

[ x ] I've read, understood, and done my best to follow the *CONTRIBUTING guidelines.

I have a question about the AuthenticationInterceptor added in Alamofire 5.2. I am using AuthenticationInterceptor to refresh the oAuth token. https://github.com/Alamofire/Alamofire/blob/master/Documentation/AdvancedUsage.md#authenticationinterceptor
The code I'm trying is below.
struct OAuthCredential: AuthenticationCredential {
    let accessToken: String
    let refreshToken: String
    let userID: String
    let expiration: Date

    // Require refresh if within 5 minutes of expiration
    var requiresRefresh: Bool { Date(timeIntervalSinceNow: 60 * 5) > expiration }
}

class OAuthAuthenticator: Authenticator {
    func apply(_ credential: OAuthCredential, to urlRequest: inout URLRequest) {
        urlRequest.headers.add(.authorization(bearerToken: credential.accessToken))
    }

    func refresh(_ credential: OAuthCredential,
                 for session: Session,
                 completion: @escaping (Result<OAuthCredential, Error>) -> Void) {

        // Request to refresh token
        let request = Session.default.request(
            URL(string: "URL for token refresh")!,
            method: .patch,
            parameters: ["refresh_token": credential.refreshToken]
        )

        request.responseJSON { response in
            // Get new Credential information
            // ~~~~~~
            completion(.success(newCredential))
        }
    }

    func didRequest(_ urlRequest: URLRequest,
                    with response: HTTPURLResponse,
                    failDueToAuthenticationError error: Error) -> Bool {
        return response.statusCode == 401
    }

    func isRequest(_ urlRequest: URLRequest, authenticatedWith credential: OAuthCredential) -> Bool {
        let bearerToken = HTTPHeader.authorization(bearerToken: credential.accessToken).value
        return urlRequest.headers["Authorization"] == bearerToken
    }
}

// ~~~~~~
let session = Session.default
let urlRequest = try! URLRequest(
    url: URL(string: "https://api.example/docs")!,
    method: .get
)

session.request(urlRequest, interceptor: interceptor).responseJSON { response in
    // ~~~~~
}

What I don't know is whether didRequest and isRequest are sometimes called. I debugged while pasting a breakpoint when I got a 401 error, but it didn't stop at the above method.
The reason those methods weren't called was that they would always be returned on the line below. https://github.com/Alamofire/Alamofire/blob/4f72b95b49c22e445e1866712f719698fa11c30c/Source/AuthenticationInterceptor.swift#L297 I couldn't find a case that didn't go through this line.
I would like to know the case where two methods are called.
Alamofire Environment
Alamofire version: 5.2
Xcode version:11.5
Swift version:5.2.4
macOS version running Xcode: Catalina

If you're getting a 401 error, you shouldn't hitting that else case, as it should only fire when you don't have both a request and response. Can you double check your investigation? Or perhaps provide a runnable project which replicates the issue?

Without further input it's not possible to investigate, so I'm closing this for now. Feel free to open a new issue if investigation shows an issue with the Alamofire implementation.

@jshier I've just been debugging the same issue in my code where I am retro fitting the AuthenticationInterceptor into existing code. I was also observing that the retry mechanism was not being invoked when the following code receive a 401 response
// No retrying occurs when this gets a 401
session.request(urlRequest, interceptor: interceptor).response { response in
    // ~~~~~
}

I notice that response is a success in the handler. I then added a validate call and the retrying then works as expected
// Retrying does occur when this gets a 401
session.validate().request(urlRequest, interceptor: interceptor).response { response in
    // ~~~~~
}

On checking the tests in AuthenticationInterceptorTests.swift I can see calls to validate begin made there but there is no call to validate in the code snippet in the documentation https://github.com/Alamofire/Alamofire/blob/master/Documentation/AdvancedUsage.md#adapting-and-retrying-requests-with-requestinterceptor
// Execute requests with the interceptor
let session = Session()
let urlRequest = URLRequest(url: URL(string: "https://api.example.com/example/user")!)
session.request(urlRequest, interceptor: interceptor)

Hi, I have worked with Alamofire Authenticator protocol. To get call didRequest and isRequest method you need to validate the response, otherwise you wouldn’t get it.
session.request(request, interceptor: interceptor)
            .validate()
            .responseJSON(completionHandler: completion)

+1 vote for adding this to the documentation


Inconsistent tensor shapes in documentation for tf.nn.sampled_softmax_loss

Hi,
In the documentation for tf.nn.sampled_softmax_loss (as viewed here) it says the equivalent full softmax probabilities can be computed using tf.nn.softmax(tf.matmul(inputs, weights) + biases). However, under 'Args' it also states that inputs has shape batch_size, dim and weights has shape [num_classes, dim] — The dimensions of these tensors are incompatible for matrix multiplication.
I suspect that the actual equivalent operation would be something like tf.nn.softmax(tf.matmul(inputs, tf.transpose(weights)) + biases) but I'm not 100% sure.

@girving is this just a doc bug?

Yep, that's a doc bug.  It should be tf.nn.softmax(tf.matmul(inputs, tf.transpose(weights)) + biases) as suggested.  Fixing.


Publish design token NPM package

@Cal-L commented on Tue Jan 18 2022
Description

Publish design token package that will be utilized by both extension and mobile component systems

Technical Details

Publish design token package (do manually for now)
Package can be named under something like @metamask/design-tokens

Acceptance Criteria

Published package should be added as a dependency in package.json
Ability to utilize design tokens in component system

Done!


feat(legacy-preset-chart-nvd3): add richtooltip in nvd3 bar chart

SUMMARY

This is an enhancement of the rich tooltip about nvd3 bar chart, since we haven't merged into categorical bar echart yet, so
let get it here for nvd3 chart
BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF

after
time series bar chart

bar chart

TESTING INSTRUCTIONS

ADDITIONAL INFORMATION

[x] Has associated issue: https://github.com/apache/superset/issues/15162
[ ] Required feature flags:
[ ] Changes UI
[ ] Includes DB Migration (follow approval process in SIP-59)

[ ] Migration is atomic, supports rollback & is backwards-compatible
[ ] Confirm DB migration upgrade and downgrade tested
[ ] Runtime estimates and downtime expectations provided

[ ] Introduces new feature or API
[ ] Removes existing feature or API

/testenv up

Thanks for the improvement!!!


How to SetPixelSize

I am a newbie at Image Analysis. May I ask this silly question?
I want to use MeseasurementTool to measure the lengths or something, but I don't know how to determine the Pixel Size of an image.
Another question. Because the objects in the images maybe different in distance. How the algorithm effective？

The measurement assumes the pixel size is constant. This is the case in 2D and 3D microscopy, in CAT and MRI scans, and many other imaging modalities. But it is often not the case in photography. To properly measure things in a photograph (the 2D image formed by projecting a 3D scene through a pinhole or lens), you need to determine the distance of the camera to each object (or object part) imaged, thereby partially reconstructing the 3D scene that was photographed.
The pixel size for an image is determined by properly calibrating the instrument. This can be as simple as taking an image of a ruler.

Got it. Thank you crisluengo.


Split up monolithic documentation

The README is too long and hard to follow. Instead of trimming content, I think it would make sense to split it up into a docs directory with discrete files (creating a config, dynamic policies, using different frameworks, cookie management, etc).
This was originally discussed in https://github.com/twitter/secureheaders/issues/269#issuecomment-228167780 but I'm creating a specific issue for this purpose in case anyone sees this and wants to take on a fairly beginner-friendly task.
The docs could probably use some cleaning up as well as more elaboration on dense topics.
/cc @connorshea as the originator of the idea.

I can put it together based on the information I've gathered implementing the gem in GitLab :)

The wiki now exists! If anyone wants to go down that route, everyone should be able to modify it although it appears that only contributors can create pages.

I've started splitting this up locally from the single README but happy to go to the wiki if everyone is happy there. I'm not fussed either way.


Error applying Kueue CRDs on MacOS

(I will update this bug with more information to help reproduce this issue later)
Environment: MacOS
Command:
python xpk.py cluster create --cluster xpk-test --tpu-type=v4-16 --num-slices 1 --cluster-cpu-machine-type=n1-standard-8
Everything works as expected until we start applying the Kueue CRDs here.
[XPK] Starting xpk
...
[XPK] Task: `Set Kueue On Cluster` terminated with code `0`
[XPK] Enable Kueue CRDs
[XPK] Try 1: Applying Kueue CRDs
[XPK] Task: `Applying Kueue CRDs` is implemented by `kubectl apply -f 3`, streaming output live.
[XPK] Waiting for `Applying Kueue CRDs`, for 0 seconds
[XPK] Waiting for `Applying Kueue CRDs`, for 1 seconds
error: the path "3" does not exist

As you can see, the temporary file name generated ("3") seems to be invalid/garbage.
When running this same command on Linux, it works, and we see the following log line:
[XPK] Task: `Applying Kueue CRDs` is implemented by `kubectl apply -f /tmp/tmppwercgir, streaming output live.
This shows a valid temporary filename in the expected location, /tmp.
Right now, my hunch is it is one of the following:
A) There is a discrepancy in the way the tempfile package creates/handles/ temporary files on MacOS vs Linux.
B) Perhaps this is a weird manifestation of a permissions issue.
C) Some discrepancy in Python version being used, or version of tempfile package being used.

Great bug report. I think we should just check if we're on Mac and refuse to run -- we can't test than environment and we can't deliver an A+ experience there (the docker create and uploads will similarly be degraded on a dev's laptop).


feat: add boxplot vis type

Closes https://github.com/datavisyn/bioinsight/issues/359
Developer Checklist (Definition of Done)
Issue

[x] All acceptance criteria from the issue are met
[x] Tested in latest Chrome/Firefox

UI/UX/Vis

[x] Requires UI/UX/Vis review

[ ] Reviewer(s) are notified (tag assignees)
[ ] Review has occurred (link to notes)
[ ] Feedback is included in this PR
[ ] Reviewer(s) approve of concept and design

Code

[x] Branch is up-to-date with the branch to be merged with, i.e., develop
[x] Code is cleaned up and formatted
[ ] Unit tests are written (frontend/backend if applicable)
[ ] Integration tests are written (if applicable)

PR

[x] Descriptive title for this pull request is provided (will be used for release notes later)
[x] Reviewer and assignees are defined
[x] Add type label (e.g., bug, feature) to this pull request
[x] Add release label (e.g., release: minor) to this PR following semver
[x] The PR is connected to the corresponding issue (via Closes #...)
[x] Summary of changes is written

Summary of changes

added boxplot as separate vis type using the violin plot implementation with some customization

Screenshots

Additional notes for the reviewer(s)

Thanks for creating this pull request 🤗

Thanks for this PR, generally it works fine for me. There's just one minor thing: initially, there's nothing selected in the Overlay, but actually, "None" should be selected:


Rotate top explorer wallets in "Get Wallet" view

At the moment we show just top 6 wallets from the explorer api. We should rotate this list between say top 20 wallets.

imo it's a bad idea and leaves it with too much choice to pick from for the people who just want to be suggested a nice all purpose wallet. 6 is the sweet spot


setContext does not unset the value when undefined is passed

Hi there!
Thanks for an awesome lib 👍
I have got into an issue with setContext feature in the following case:
setContext({key: 'value'})
...
setContext({key: undefined})

Second call does not override the value, so it stays 'value'. That could be misleading.
Thoughts?

This should definitely be fixed, setContext should set undefined keys to null to force the removal.


Replaced app with framework and added tests

Danger has errored
[!] Invalid Dangerfile file: undefined method rb for #<Danger::Dangerfile:0x00007f9ba8caef18>
 #  from Dangerfile:19
 #  -------------------------------------------
 #  ## Default Xcode Headers
 >  rb clorox.check
 #
 #  -------------------------------------------

  Generated by :no_entry_sign: Danger


RestApiHandler is not equal to GeneralRestApiHandler

~This is the only case that GeneralXXX is not equal to XXX<GeneralYYY>.~
~The reason for this may be an issue with an inference of conditional types in TypeScript.~
See the following comment.

This is because TypeScript doesn't regard classes that implement an interface with a method containing its own type parameters as the extender of the original interface.
Minimal examples here.
https://www.typescriptlang.org/play/#code/JYOwLgpgTgZghgYwgAgGIHt0B4AqyIAekIAJgM7JlhSgDmAfMgN4CwAUMsgLYRgAW6ElgBy+IhFIUc9ABQg4PAFzJhASmUA3dMBLsAvu3YIANnDIUAsgE8M6ZMC4AHYxB7gKtrACICvr41YObl4BEjkFCGUfP3VkLR1mdk5OKF4AVygQJOQDNlz2MCtHFABxCWg4Y1tkAF40TCwqGhAGQzZC4uQAEXQIMmtbAFFxUjKQCqrMWuQBqcJicmQxieqAfmRqNJRleGMyFAB6A+Rd-bbQSFhEUok00AhlqErqwM4efkFwpUpqOlj43R5NodFA9PqzdDDBZjO7jR7PKZ1CFiBYUGH3eGTOzrTbbE6VfbII4bKBbdhAA
A base interface for the extender must be defined without methods containing type parameters, like GenuineGeneralFoo in the example.
This fact currently does no harm to this library and I'll close this issue after modifying all the base interfaces.


Apps loading on slow connections show an error message before loading

Describe the bug
When loading stripe apps on a slow connection they will sometimes show an error message before the app is loaded.
To Reproduce

Create 2 minimal views with code similar to;

import {ContextView} from '@stripe/ui-extension-sdk/ui';

const DefaultView = ({ userContext, environment }: any) => {
  return (<ContextView
    brandColor="#000000"
    title="Example app">
    Test
  </ContextView>);
};

export default DefaultView;

The app will need at least 2 views enabled so you can switch between them (e.g. enable both stripe.dashboard.drawer.default and stripe.dashboard.customer.detail).

In Chrome in the Network tab, throttle your connection to Slow 3G or similar:

Switch between the views in the browser so that the app loads a new view (e.g. click on a single customer, then back to the customer list). You may need to repeat this a few times.

Sometimes you will see an error like the one below before the app finally loads:

Eventually the app may load correctly, but only after the error message was displayed.

Expected behavior
To see the app loaded without an error message:

Screenshots
See above.
Desktop (please complete the following information):

OS: MacOS
Browser: Chrome
Version: 103

Additional context
Our app was rejected due to this loading issue. We were not able to replicate the issue ourselves until we throttled our connection. We noticed the connection was slow in the video we were sent of the issue (feel free to contact me if you'd like a copy).

This checks out - after 10 seconds there is a timeout, and if the internet is slow enough this is what will happen. I have talked to the folks on the app review team to make sure they are aware of this issue. Beyond that, I'd be curious if @sandhyaj-stripe thinks there is a better error message we can provide here, or if we want to extend the timeout?


PHPLIB-326: Aggregation, runCommand, and index management examples for Docs

https://jira.mongodb.org/browse/PHPLIB-326

Changed to v1.3 for historical accuracy. Thanks for merging this to the correct branch! I didn't realize it was master during the review period.


Optimize CI a bit

Context
Mainly for using gradle-build-action to speed up build on CI, and bump action versions by the way.
https://github.com/gradle/gradle-build-action
Checklist

[x] Review Contribution Guidelines.
[x] Make sure all contributed code can be distributed under the terms of the
Apache License 2.0, e.g. the code was written by
you or the original code is licensed under a license compatible to Apache License 2.0.
[ ] Update documentation when applicable.

 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.

@Goooler Thank you for your contribution. Could you re-submit this PR with just the version updates? We won't use the gradle-build-action at this point and the formatting of array elements was also recently changed to skip spaces. Thanks! 😄


first round of changes for the stored procedure to reflect the delete…

… record feature. Also changes to insert delete_date for provider temp table

doing to pull request so that you see what we have done so far and if we are in the right direction.