Command failed on windows 64

Operating system
windows x64
Compiler
MSVC
Steps to reproduce the behavior
vcpkg install docwire[tests]:x64-windows

Failure logs
Package: docwire[core,tests]:x64-windows@2024-01-05
Host Environment

Host: x64-windows
Compiler: MSVC 19.39.33523.0
vcpkg-tool version: 2024-01-11-710a3116bbd615864eef5f9010af178034cb9b44
vcpkg-scripts version: 59aeb8fe8 2024-05-23 (25 hours ago)

To Reproduce
vcpkg install docwire[tests]:x64-windows
Failure logs
-- Found external ninja('1.11.0').
-- Configuring x64-windows
CMake Error at scripts/cmake/vcpkg_execute_required_process.cmake:112 (message):
    Command failed: "C:/Program Files/Microsoft Visual Studio/2022/Professional/Common7/IDE/CommonExtensions/Microsoft/CMake/Ninja/ninja.exe" -v
    Working Directory: E:/docwire-2024.03.26/vcpkg/buildtrees/docwire/x64-windows-rel/vcpkg-parallel-configure
    Error code: 1
    See logs for more information:
      E:\docwire-2024.03.26\vcpkg\buildtrees\docwire\config-x64-windows-dbg-CMakeCache.txt.log
      E:\docwire-2024.03.26\vcpkg\buildtrees\docwire\config-x64-windows-rel-CMakeCache.txt.log
      E:\docwire-2024.03.26\vcpkg\buildtrees\docwire\config-x64-windows-out.log

Call Stack (most recent call first):
  installed/x64-windows/share/vcpkg-cmake/vcpkg_cmake_configure.cmake:252 (vcpkg_execute_required_process)
  E:/docwire-2024.03.26/ports/docwire/portfile.cmake:19 (vcpkg_cmake_configure)
  scripts/ports.cmake:175 (include)

### Additional context

[config-x64-windows-dbg-CMakeCache.txt.log](https://github.com/microsoft/vcpkg/files/15430912/config-x64-windows-dbg-CMakeCache.txt.log)
[config-x64-windows-dbg-err.log](https://github.com/microsoft/vcpkg/files/15430913/config-x64-windows-dbg-err.log)
[config-x64-windows-dbg-out.log](https://github.com/microsoft/vcpkg/files/15430914/config-x64-windows-dbg-out.log)

I will reproduce this issue locally.

@Nico3201975, vcpkg currently does not have a docwire port.

It does through docwire GitHub to download all the dependencies via build.ps1 file that contains command using vcpkg to do all the stuff. Somehow I got ninja build error, and all the logs are provided.
Is it possible to fix this compile issue through the logs?
Sent from my iPhone
------------------ Original ------------------
From: JonLiu1993 @.>
Date: Fri, May 24, 2024 6:37 PM
To: microsoft/vcpkg @.>
Cc: NicoMei @.>, Mention @.>
Subject: Re: [microsoft/vcpkg] Command failed on windows 64 (Issue #38927)
@Nico3201975, vcpkg currently does not have a docwire port.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you were mentioned.Message ID: @.***>

Please provide eror log:
E:\docwire-2024.03.26\vcpkg\buildtrees\docwire\config-x64-windows-out.log

It’s down the bottom of the open issue I post.
Just in case let me paste it here:
config-x64-windows-dbg-CMakeCache.txt.log config-x64-windows-dbg-err.log config-x64-windows-dbg-out.log
Sent from my iPhone
------------------ Original ------------------
From: JonLiu1993 @.>
Date: Fri, May 24, 2024 6:51 PM
To: microsoft/vcpkg @.>
Cc: NicoMei @.>, Mention @.>
Subject: Re: [microsoft/vcpkg] Command failed on windows 64 (Issue #38927)
Please provide eror log:
E:\docwire-2024.03.26\vcpkg\buildtrees\docwire\config-x64-windows-out.log
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you were mentioned.Message ID: @.***>

Why the heck is that port parsing the vcpkg.json of the dependent ports?

Please provide eror log:
E:\docwire-2024.03.26\vcpkg\buildtrees\docwire\config-x64

config-x64-windows-rel-CMakeCache.txt.log
config-x64-windows-out.log
-windows-out.log

I see a vcpkg tag from January, and several overlay ports:
https://github.com/docwire/docwire/tree/master/ports
Maybe it is better handled at https://github.com/docwire/docwire/issues/126.

I see a vcpkg tag from January, and several overlay ports: https://github.com/docwire/docwire/tree/master/ports Maybe it is better handled at docwire/docwire#126.

Yep, I post on both side.


how to disable wrapping at the right edge

I'm using cmd (clink). output on the console is wrapping at the right edge of window. I can not find any setting that can help me change this behaviour. I do not want wrapping. I'm Ok with horizontal scrollbar to see the long text.

I'm not aware of any other terminals that do this.

Wrapping is more or less a natural behaviour since terminals always have a defined size.

I use windows 7 cmd.exe that gives me horizontal scrollbar and I doesn't wrap long lines.

not sure when the last time you use win cmd.exe

you're correct. but my point is: if it's possible with win cmd.exe to display horizontal scrollbar and not to wrap long lines at the edge. Then it should also be possible with your so called: "A terminal for a more modern age".

At this time, it's not a feature that I'm interested in implementing.

fare enough


Add PolkaFoundry, PolkaSmith SS58 address

This PR adds an account prefix for PolkaFoundry, PolkaSmith network.
Github: https://github.com/polkafoundry/newpolka
Website: https://polkafoundry.com/

Hi @BenWhiteJam. Could you review it?

@thanhtung6824 can you please reach out in Element?

@thanhtung6824 can you please merge master

@BenWhiteJam Thank you for reviewing ;)
@bkchr I've merged from master.

Ty


[PyO3] Add StarknetGeneralConfig methods

Codecov Report

Merging #198 (54fdd62) into main (8ffa36c) will increase coverage by 0.00%.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##             main     #198   +/-   ##
=======================================
  Coverage   79.17%   79.18%
=======================================
  Files          41       41
  Lines        2473     2474    +1
=======================================
+ Hits         1958     1959    +1
  Misses        515      515

Impacted Files
Coverage Δ

src/definitions/general_config.rs
100.00% <100.00%> (ø)

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more


WIP: requester pays

This is failing with
GenericError: Generic S3 error: Error performing list request: Client error with status 403 Forbidden: <?xml version="1.0" encoding="UTF-8"?>
<Error>AccessDenied<Message>There were headers present in the request which were not signed</Message><HeadersNotSigned>x-amz-request-payer</HeadersNotSigned><RequestId>QEA9RD5BETE6BN7E</RequestId><HostId>tfgEYvVBmWEx5EZljTRXuR6S6ocChjas5qF8eXThc0yt6bRyGEJCYjCFJ+/YOvA2Q2DT/NSqBTw=</HostId></Error>

We should open an issue in object_store
Closes #76

Made an upstream issue in arrow-rs: https://github.com/apache/arrow-rs/issues/6716


Introduce custom status item view on OS X.

Fixes #1499,  #1393, #1975.
This PR implements:

Implement right-clicked event on OS X and Windows. As a side effect, the 'clicked' event will also be emitted even the tray has context menu.
Implement popContextMenu API on OS X and Windows.

I haven't tested but I think we should redraw the status item after the setImage/setTitle calls?

And does the status item show correctly with dark menu bar?

I haven't tested but I think we should redraw the status item after the setImage/setTitle calls?

Oops. I have missed them. Done now.

And does the status item show correctly with dark menu bar?

Haven't test it yet due to my OS X version is 10.9.

:+1:

Thanks

Hey guys,
Can this be implemented for Windows too?

Is it possible to drag&drop (URL) for example? As far as I see, right now only files are allowed :(

Seems like it's not optional to pass a Menu to Tray.popUpContextMenu() (on windows at least).


Fix kernel module instructions

With /proc/config.gz no longer being provided in the aarch64 kernels, these instructions need to be adjusted. (I wrote the original instructions here, in fact.)

An progress here? @bchatelard

@superseed please merge this.


Gephi 0.9.0

https://github.com/gephi/gephi/wiki/Releases#gephi-090-dec-20-2015

Thank you for the contribution. It needed some fixes, so they were made in 5e2fd6d27b991f7130a90e49ba34ec979e2d3bb9. Your contribution is still included (and still credited to you), with the appropriate modifications. Please feel free to ask about any of the changes.


New version: Genie v0.9.7

Registering package: Genie
Repository: https://github.com/GenieFramework/Genie.jl
Created by: @essenciary
Version: v0.9.7
Commit: 2f90c135d1fa679a7f1f6a39dc9ff9a0d6f36feb
Reviewed by: @essenciary
Reference: https://github.com/GenieFramework/Genie.jl/commit/2f90c135d1fa679a7f1f6a39dc9ff9a0d6f36feb#commitcomment-34338649

Is skipping 0.9.6 intentional?

@StefanKarpinski Yes, v0.9.6 lived on #master for a while, just it hasn't been registered. The current version is now breaking for users on #master 0.9.6 so it needs bumping to 0.9.7. Thanks!


Feature Layer Extrusion fixes

Hi @eri9600 - Thanks for this. I added in other changes that seem to have cropped up in other issues, just to get it all done at once:
https://devtopia.esri.com/runtime/common-samples/issues/703
https://devtopia.esri.com/runtime/common-samples/issues/688
Once you've reviewed. You're good to merge this into your fix and then your fix into master. Thanks!

@TADraeseke In the description for #703, it explains that we need two buttons to display different information but we still have only one toggle button. Should we change this or just leave it the way it is?


Binary tree traversals in java

🚀 Feature
(A clear and concise description of what the feature is.)
Have you read the Contributing Guidelines on Pull Requests?
Yes
[DWOC]
Motivation
Any process for visiting all of the nodes of a binary tree in some order is called a traversal. This single piece of code contains both recursive and nonrecursive implementation of all traversals. BST Traversal is the same as Binary Tree Traversal.
Pitch
Codes of Preorder traversal, inorder traversal, and postorder traversal of binary tree in both recursive and nonrecursive ways are present.

I can do it in Java as well as in c++, please assign me this issue.

🚀 Feature
(A clear and concise description of what the feature is.)
Have you read the Contributing Guidelines on Pull Requests?
Yes
[DWOC]
Motivation
Any process for visiting all of the nodes of a binary tree in some order is called a traversal. This single piece of code contains both recursive and nonrecursive implementation of all traversals. BST Traversal is the same as Binary Tree Traversal.
Pitch
Codes of Preorder traversal, inorder traversal, and postorder traversal of binary tree in both recursive and nonrecursive ways are present.

Please assign me this issue, I'll do it in JAVA under DWOC


pg14

I tested and it works for me.
I'd recommend giving this ticket a priority, at least the PG_HBA_TAIL part because that blocks the upgrade for higher version.

Is there a reason why PG_HBA_TAIL is set to md5 and not to scram-sha-256?


Clean US/MO validation errors

MO switched to epoch for edit date in their data sources:
$ cat coronadatascraper-cache/2020-4-27/9cd650122f1e65a5a95a77187448db0c.csv =
...
116,Kansas City,KANSAS CITY,491918,823366306.663086,346294.183204962,500,15,2,217,,,,,,,,,,0,,b1748cef-7631-46ba-a261-4791a44720fb,2020-03-24T20:48:38.049Z,mophep,2020-04-27T18:13:20.273Z,mophep,,,,,,,,,,,
Note the time before mophep at the end.
For the next date (2020-4-28) the same url:
116,Kansas City,KANSAS CITY,491918,823366306.663086,346294.183204962,508,16,2,217,,,,,,,,,,0,,b1748cef-7631-46ba-a261-4791a44720fb,1585082918049,mophep,1588100245140,mophep,,,,,,,,,,,
1588100245140 is epoch.  This is giving us a ton of validation errors:
 - Macon County, Missouri, US .publishedDate should match format "date-time"
which is noise.

Oh interesting, this closed when the PR was merged.  Well, we'll see how it goes.


Solve the scoring error

Scores are often displaying a total of zero while they should not
Investigation needed

This was solved by using the structured content of the google generative ai


How to check already applied datetime picker to input element

is there any way to check whether datetimepicker is already applied or not

Hi. Yes, you can check data('xdsoft_datetimepicker').
var alreadyHasDatetimepicker = $('#targetInput').data('xdsoft_datetimepicker') != null;


Incomplete assert with unresolved generic dependency

When having an unresolved dependency of generic type, zenject doesn't print out it's generic parameters:
ZenjectException: Unable to resolve type 'Foo1' while building object with type 'FooRequester'. `
While it should have printed
ZenjectException: Unable to resolve type 'Foo1[Bar]' while building object with type 'FooRequester'. `
You can fix this by changing context.MemberType.Name to context.MemberType in line 573 of DiContainer.cs
P.S. In case of issues like this how can I participate in making zenject better? Just making pull request? What are requirements for submitted code?
P.P.S. If I decide to implement pools, or any other greater improvement should I discuss design with you beforehand, or just somehow publish my code

Pull request is the right way to go. You can also use Gitter if you want a realtime-ish discussion before you make your PR.


ui: Fix configure Sticky policy form

Description
This PR fixes issue with configure Sticky Policy form in the Load Balancing Tab, where the form does not get submitted and also  resets the form fields when changing the stickiness method to prevent invalid arguments from being passed.

Types of changes

[ ] Breaking change (fix or feature that would cause existing functionality to change)
[ ] New feature (non-breaking change which adds functionality)
[X] Bug fix (non-breaking change which fixes an issue)
[ ] Enhancement (improves an existing feature and functionality)
[ ] Cleanup (Code refactoring and cleanup, that may add test cases)

Feature/Enhancement Scale or Bug Severity
Bug Severity

[ ] BLOCKER
[ ] Critical
[ ] Major
[X] Minor
[ ] Trivial

Screenshots (if appropriate):
How Has This Been Tested?

@blueorangutan ui

@shwstppr a Jenkins job has been kicked to build UI QA env. I'll keep you posted as I make progress.

UI build: :heavy_check_mark:
Live QA URL: http://qa.cloudstack.cloud:8080/client/pr/5814 (SL-JID-949)


Add preference to disable new mail sound

I think it would be a nice enhancement to be able to disable the sound.
Edit: this doesn't appear necessary since I just found that you can disable sound via System Preferences>Notifications. 😁

I was just typing that up to tell you.  Glad you figured it out!


About Configuration

Is it possible to configure google api vision with tika .If yes the please help what steps i need to follow.

Duplicate of https://github.com/chrismattmann/tika-python/issues/192


Time build components

This changes travis.yml so that we can have a better idea on what it taking to much time.
It looks that the problematic items are:

make lammps
make simphony
make simphony-openfoam
make test-kratos

@nathanfranklin is this ok to merge?

Just left one comment.  Otherwise, Looks good to me. :+1:


Minor fixes into generate mesh hierarchy

@amartinhuertas have a look to the changes to mpi tests, I only added an if statement but did not change the indentation (to keep the small change easily visible), I don't know what's the poilcy in these cases...

Ok, thanks! I have changed the base branch.

Hi @amartinhuertas ! Have a look to the simple modification of prun (and tests). I think this is what we discussed, is it?

Hi @amartinhuertas ! Have a look to the simple modification of prun (and tests). I think this is what we discussed, is it?

Yes. Thanks for your work.


Paths should fallback from dist to lib to src

Browser name: Chrome
Browser version: Version 56.0.2924.87 (64-bit)
OctoLinker version: d685d80a46238ba695d85210c8e451fbe9e1a5be
URL and line number where issue occurs: https://github.com/rauschma/enumify/blob/692021e4317b59b15e49090d1659e5c102004678/package.json#L4
Expected behavior: clicking on ./lib/enumify.js (which doesn't exist) should navigate to ./src/enumify.js
Actual behavior: unable to resolve the link

A common pattern in javascript projects is to store source code in either src/ or lib/, then publish compiled code in either lib/ or dist/. OctoLinker should try to assume this pattern is being used if it can't resolve a link to a file.

I ran across an edge case that I might try to fix later, so I'll reopen this. The problem here is that only the target path uses the fallback behavior, rather than the current file path joined with the target path.
https://github.com/jsdom/whatwg-url/blob/45ee04d40049c7a02ae3ad45e119dc49de14dc48/lib/public-api.js#L11


Remove backslashes before whitespaces in script build phases

Here you go, fixes #11.
Let me know if I need to adjust anything 👍

This has been released in version 0.4.4. Thanks again!


if send faied, why not disconnect?

if it does not disconnect, i think it will not try to connect nats again and send will always failed
i find in receivePackets it will disconnect when failed
code is http://rnd-github.huawei.com/ITPaas/yagnats/blob/master/connection.go#L131

Closing due to inactivity.


value JSON wrapping

I never understood the idea behind wrapping. Was it because of EXI serialization?
Anyhow, with the current TD valueType it should be removed, right?
Once we have the type system, it might be completely different, though, I guess...

some JSON parsers and also serializers have problems with value-only literals - hence the value-wrapping.
We specced that for the first WoT plugfest and it should prevail until we have a type system, which will force a redesign of those parts anyways

The issue is that JSON is specified as RFC and ECMA. Depending on the standard the text "hello" is valid JSON or not. I think we ought to take this into account. That said, the "safer" solution is to wrap values.
Mapping to other formats like XML (XML requires a root element also) is a related question but such a mapping is not yet defined.

We just need to cite the standard we want.
Since this value wrapping costs actual money in many deployments, I am in favor of using The JavaScript Object Notation (JSON) Data Interchange Format [RFC7159] to interchange data.

I am not sure if we can simply say use RFC7159  and we are fine. RFC7159 obsoletes RFC4627 which states in section 2
JSON-text = object / array
Hence, wrapping is required for numbers, strings and such!
Having said that, many implementations still implement the "old" RFC.
I don't think we should drop support for those...


Compileable in both Stable and Nightly Rust

may be stable rust is better?

I've added Rust Stable as a CI target, so now we at least attempt to test both Stable and Nightly.
However, I'm using the bench feature which isn't available in Stable, so the benchmark kind of require Nightly. Didn't figure out how to skip that for Stable in the ~5 minutes I had available, so reopening this issue until I (or someone else) figured out how to skip that file for Rust Stable but not Nightly.
error[E0554]: `#![feature]` may not be used on the stable release channel
 --> crates/dogoap/benches/long_plan.rs:1:1
  |
1 | #![feature(test)]
  | ^^^^^^^^^^^^^^^^^

For more information about this error, try `rustc --explain E0554`.


[fix][security] Upgrade MySQL client to 8.0.28 to get rid of CVE-2021-3711

Motivation
OWASP check fails due to
Error:  Failed to execute goal org.owasp:dependency-check-maven:6.1.6:aggregate (default) on project pulsar:
Error:
Error:  One or more dependencies were identified with vulnerabilities that have a CVSS score greater than or equal to '7.0':
Error:
Error:  mysql-connector-java-8.0.27.jar: CVE-2021-3711

Modifications

Upgrade MySQL client to 8.0.28. It's used only in debezium-mysql connector.

[x] no-need-doc

/pulsarbot rerun-failure-checks

/pulsarbot rerun-failure-checks

/pulsarbot rerun-failure-checks


[HUDI-2915] Fix field not found error for sparksql

Tips

Thank you very much for contributing to Apache Hudi.
Please review https://hudi.apache.org/contribute/how-to-contribute before opening a pull request.

What is the purpose of the pull request
bugfix field not found error when run update sql
links: HUDI-2915
Brief change log
(for example:)

Modify AnnotationLocation checkstyle rule in checkstyle.xml

Verify this pull request
(Please pick either of the following options)
This pull request is a trivial rework / code cleanup without any test coverage.
(or)
This pull request is already covered by existing tests, such as (please describe tests).
(or)
This change added tests and can be verified as follows:
(example:)

Added integration tests for end-to-end.
Added HoodieClientWriteTest to verify the change.
Manually verified the change by running a job locally.

Committer checklist

[ ] Has a corresponding JIRA in PR title & commit

[ ] Commit message is descriptive of the change

[ ] CI is green

[ ] Necessary doc changes done or have another open PR

[ ] For large changes, please consider breaking it into sub-tasks under an umbrella JIRA.

hi @leesf Do you have time to review this pr?

@leesf Would you like to have a double-check?

@XuQianJin-Stars You can use: @hudi-bot run azure to re-run the last Azure build.


D: Fix the bug in Petals Effect, make it responsive and remover horizontal and vertical scrolling

@VidhiBhatt01  assign me this

me


Initial stubs for a Typescript WOQL AST

This is but a stub of a new typescript WOQL implementation, as a base scaffolding of a structure. It originally assumed to use the original WOQL library for rendering out the WOQL but suggest that the old WOQL be brought into the structure as part of larger rewrite in Typescript.
Some goals with this:

Enable the ability to persist and manipulate WOQL, including supporting stable ID:s when serialising/deserialising.
Enable setting WOQL component id:s manually
Provide a fully typed experience with Typescript, and full usability with regular javascript
Include parsers and generators for the various WOQL language variants: Python, Javascript (with/without WOQL. prefix), WOQL JSON AST, terminusdb cli (prolog cli datalog).
Preferably write the WOQL handler in a language that enables WASM usage and language portability (AssemblyScript?)

There are probably more to it, and all comments are more than welcome. The most important item for me and that started it was the ability to use ID:s as part of serialising/deserialising WOQL, but getting a rewrite done with better readability should probably be done.
Probably this should be a branch to work on together.

coverage: 30.031%. remained the same when pulling 81b19f5a313adc3994c68f5614873a1e732677aa on hoijnet:issue/refactor-woql into 1d1140212082f2805d61e8a34b887464d7909999 on terminusdb:main.

There are some fundamentals that could be good to figure out before plunging in. One of them I have been thinking of is what WOQL is.
In my mind it is two things: both a formal language with a canonical WOQL JSON AST form, expressive in natural language constructs in Javascript and Python, where nested calls in each respective language can be used to build a WOQL JSON to send to the server side.
WOQL can also be seen as a few formal language dialects: Javascript with/without WOQL. prefix, Python, and Prolog. Each is possible to see as a string to be parsed into the WOQL JSON AST directly, taking JSON expressions and parsing manually from strings. Such representations are helpful to accept partial or full WOQL queries on the web without having to use eval expressions.
The latter will need some kind of parser generator like ANTLR or some other good idea to support. I think a first target needs to improve the code of the current client, and implement support for IDs in serialisation and deserialisation of, but full language support would be an amazing thing to help people express WOQL in their native languages (for example using a wasm compiled library).
Maybe we agree on a canonical form for a text-based WOQL that is simple to write, and that can be transformed to the other forms?  Maybe be realise it would be neat to have them all.
But, it would make sense to understand the priorities and tackle them in order!

Related: https://github.com/orgs/terminusdb/discussions/1996

I'm thinking of starting with a great WOQL AST API and build the rest from there. The existing woql is good enough for the moment, but a great AST experience in JS is a priority for me to start with.
Do you know of any delightful AST language APIs to review and get inspired by?

I'm closing this pull request here, this work went into the woql-ts-lib instead, at https://github.com/terminusdb-labs/woql-lib-ts


review and finalize intro and resources for configmap mission

https://github.com/openshiftio/appdev-documentation/blob/master/docs/topics/configmap-experience-intro.adoc
https://github.com/openshiftio/appdev-documentation/blob/master/docs/topics/configmap-experience-resources.adoc

@starksm64 do you mind taking this?

The relevant files are:

https://github.com/openshiftio/appdev-documentation/blob/master/docs/topics/configmap-mission-intro.adoc
https://github.com/openshiftio/appdev-documentation/blob/master/docs/topics/configmap-mission-resources.adoc

@cmoulliard mind taking this issue?

@rhoads-zach looks good to me.

Thank you @heiko-braun closing this issue


Implement RegExp dotAll flag (/s)

This PR implements the es2018 RegExp /s dotAll flag.
See proposal spec here: https://tc39.github.io/proposal-regexp-dotall-flag/
Notes:

I've given this the flag ES9RegExDotAll but I've made it default to enabled
When run with the ES6RegExPrototypeProperties this passes all relevant test262 tests, without that flag several test262 tests fail (hopefully that can be enabled soon)

fixes: #2787
cc: @mathiasbynens

@dilijev Can you take a look at this change?

@dilijev thanks for the review, I've addressed most of your points and updated to latest. I've held off on squashing for now in case you wish to check the new changes separately.
But I'm afraid I don't know how to address the SetRange point - see my comment above.

Thanks @dilijev
Any recent pain on ByteCode regens has likely been partly my fault considering I've got this one +  Object.fromEntries open and I also recently had merged Array.flat/flatMap.
Hopefully this is good to merge now (Note I've left the Bytecode regen as a separate commit so it can be easily dropped if there's another merge conflict - obviously either this or Object.fromEntries will have to have another regen...)


Extract tags from a field using DOM tagger

Hi,
I am splitting an HTML document using DOMSplitter with img selector to extract what is in  tags.  After that I am trying to get some attributes like "alt:" and "src:" from "content" field (where all extracted img tag is in) and split it to different fields.
DOMTagger and "fromField" seems to be doing that and I used it but I get a message: "class com.norconex.importer.handler.tagger.impl.DOMTagger handler does not apply to: "..image_id".
Also before that at debugger i get this message : "DEBUG [ContentTypeDetector] Detected "text/plain" content-type for: ... "
I suspect that DOMsplitter creates a document with "text/plain" content-type and then i can't run on that because of default restrictions if no matching to " CommonRestrictions.domContentTypes()"
I also noticed that when use "img" selector to the DOMsplitter it returns  tag int the "content" field but it does not contain the closing "/>" and that may be the reason that DOMspliter assings "text/plain" content type.
Can you suggest me a solution to this?
Thanks

When not explicitly provided (e.g., from the HTTP response), the content type is detected.  What you are using it on is no longer valid HTML at that stage (no , , etc.) so that is probably why.
The easiest would be to set your own restrictions.  You may want to add "text/plain".    Another option is to use the ReplaceTagger instead.
If none of these work for you, please share your config along with a sample document.

Thanks for you quick response. So
For example I use DOMsplitter to capture all images in html, example of img 👍

DOMsplitter creates many documents, one document for the above example has value "content":
"<img alt="Something"  src="/templates/somtething/images/something.gif" width="105" height="110" hspace="15" vspace="5" border="0"  "  without closure />
with content type : text/plain.
So I  want to capture "src" and "alt" attributes with DOMtagger
I am using those xml configurations for the preParseHandlers"

Can you tell my how to add text/plain to my own restrictions.
Or you can give me solution using ReplaceTagger because i also find it diffucult to comprehent.
Thanks again

When getting attributes, drop the square brackets.  I gave you an example that should work with text/plain.
  <tagger class="com.norconex.importer.handler.tagger.impl.DOMTagger" fromField="content">
      <dom selector="img" toField="alt" extract="attr(alt)" />
      <dom selector="img" toField="src" extract="attr(src)" />
      <restrictTo field="document.contentType">text/plain</restrictTo>
  </tagger>

You may also try adding parser="xml" to the tagger tag if the default (html) does not work.
For the Replace tagger, it could look like this:
  <tagger class="com.norconex.importer.handler.tagger.impl.ReplaceTagger">
      <replace fromField="content" toField="alt" regex="true" wholeMatch="true">
          <fromValue>.*alt="(.*?)".*</fromValue>
          <toValue>$1</toValue>
      </replace>
      <replace fromField="content" toField="src" regex="true" wholeMatch="true">
          <fromValue>.*src="(.*?)".*</fromValue>
          <toValue>$1</toValue>
      </replace>
  </tagger>

Hi Pascal,
Thanks for your answer. Actually I managed to use DOMtagger succesfully only after I removed "fromField" attribute. Norconex always gave me an error that content field was empty.

Is it possible you are mixing up the content of a document and a field called "content"?   The document content/body is not stored into a field (unless you make it so).  So by default, the DOMTagger will read the document content/body and not a field.  You should only use a fromField if you know your XML is stored in a field.
I am closing since you have a solution.


Why does my text input inside the route screen takes only one character and then automatically disables?

"react-native-tab-view": "^2.15.2",
"react-native-reanimated": "~1.13.0",
"react-native-gesture-handler": "~1.7.0",


perf: Allocate the AST on arenas

Doesn't give a huge performance increase since there are other things that still need improving. Still, the allocations were replaced are fundamental, so doing nothing would mean that eventually this would be necessary (for maximum performance).

bors r+


E2e

First implementation of to support e2e
-> use libolm 0.1.3
-> works only with the previous riot app
-> some unitary testes have been added to test it.

General
0. How far should we go in terms of defensive programming approach to prevent leaking critical data in the stack? (see MXCrypto)

magic string: "ed25519", possible candidate OlmAccount.JSON_KEY_FINGER_PRINT_KEY
magic string: "curve25519", possible candidate OlmAccount.JSON_KEY_IDENTITY_KEY
magic string: "curve25519",  possible candidate OlmAccount.JSON_KEY_ONE_TIME_KEY when appropiate

MXCrypto

startUploadKeysTimer() line 214:  magic number 5 (ex: ONE_TIME_KEY_GENERATION_MAX_NUMBER)
decryptEvent ():  where it is used, the return code is not checked (null can be returned)
decryptEvent () line 1017:  result could be null at this point..
uploadKeys () line 378:   oneTimeKeyCountsForAlgorithm() returns an int, so keyCount can be used directly
setEncryptionInRoom(): return code is never tested (ex: in encryptEventContent())
MXOlmDevice
signJSON ()  - typo:  JSONDictinary => JSONDictionary

CryptoApi

sendToDevice ():  random parameter may be it could be renamed in randomTransactionId? (transaction identifier is a particular access token. It only serves to identify new requests from retransmits)


Projectiles jitter in flight

Currently, all of the movement with the projectiles is done on the server with no client-side smoothing. Ideally, the arc segments should be networked then each client can simulate this movement on their own with the server handling the collision portion.

Turns out the jitter is from the camera movement trying to keep up rather than something with the networking being off.
https://user-images.githubusercontent.com/11802285/190034368-f52bf166-33f7-441c-8422-c54543d804a5.mp4


Let MediaProjection do the image scaling

It's a minor performance increase to let MediaProjection write to a 720p surface instead of resizing via OpenCV.

@reconman I've tested for MediaProjection, can you help test if the root mode still works after this change? Thanks.

Works perfectly.


Added lit docs

@ai
I added a section in the readme for the lit integration we have been talking about in #95. It only covers the most simple way to use it with the reactive controllers directly and I just used the example from the Solid integration above.
However, I don't think we should merge this just yet. The code is not published to npm (I don't think I can publish to the nanostores npm space?) and the lit integration repository is still private in the nanostores GitHub organization.

Looks good. Do you want to publish and make repo public?

I think I will need to be added to the npm organization before I can publish?

@emilbonnek sure! What is npm user name?

Same as on here "emilbonnek"

Done. I sent you an invitation. Ping when you accept it and release the first version of @nanostores/lit.

@ai I accepted the invitation and published it now.

Great! Are we ready to accept PR?

I think you can accept it now.


Rename all the things in preparation for a(nother) data model shift

References
FFS-1487
What's here

All sorts of renaming and rerouting to change out the notions we're using

Why
We want to rework the data model to support:

Jobs as the primary notion, with payments and expenses for each job
We will want to add some basic support for the nascent "multiple state idea" (though that's not reflected here yet)
We will add an area for personal details about a user

We want the data model to be something like this:
{
  "personalDetails": {
    ...tbdFields
  },
  "benefitsElections: {}.
  "jobs: [
    {
      ...detailsAsTheyAreNow,
      payments: [
        {
          ...detailsAsTheyAreNow
        }, { ... }
      ],
      expenses: [
        {
          ...detailsAsTheyAreNow
        }, { ... }
      ]
    }, {}
  ]
}

Notes for reviewers
This is largely a find-and-replace pull request. I've tested the flow locally and if the tests and lint pass remotely, this should be pretty straightforward.
The gnarly stuff will follow later this week. 😬

and i ran lint before i pushed 🙃 thanks


on Linux:NameError: name '_C' is not defined

I followed the instruction of the readme,but when  i try the first demo,i got the error: Failed to load custom C++ ops. Running on CPU mode Only!  and  NameError: name '_C' is not defined.
I install the torch,torchaudio,torchvision with pip.

getting a similar error, I believe it has to do with the cuda version, but not sure how to solve it. Running CUDA 12-2

get same error

I upgraded the torch version to 2.2.1, which resolved the issue. I hope this solution is beneficial to you all.I solved the problem by upgrading the torch version==2.2.1, hope this will help you guys.

I am getting the same error. I have installed using docker within an Ubuntu 20.04 WSL2 distribution.
nvcc --version returns release 11.6 (CUDA version)

This error is resulting due to a problem loading the custom C++ operations required by the GroundingDINO model. The warning message "Failed to load custom C++ ops. Running on CPU mode Only!" suggests that the necessary compiled C++ operations were not found or could not be loaded.
There are some other requirements and modules needed by GroundingDINO. These can be installed using the requirements.txt and setup.py files inside of the GroundingDINO directory. Navigate to it and run:
pip install -r requirements.txt and
python setup.py install
All necessary prerequisites should be now installed, navigate back to the parents directory and try running the demo again.

As a quick fix (or another solution that goes into a different direction) that I had to come up with because I had to make it work in an environment where I could not install CUDA tools, you can change the GroundingDINO ms_deform_attention.py code to use multi_scale_deformable_attn_pytorch.
The Grounding DINO code should work fine after that, but I have to admit that I did not test it thoroughly and that I am not sure whether the PyTorch implementation has any disadvantages over their CUDA build implementation in terms of runtime on a GPU. To be more precise:

In Grounded-Segment-Anything/GroundingDINO/groundingdino/models/GroundingDINO/ms_deform_attn.py, delete the code on lines 28 to 30, i.e.,

try:
    from groundingdino import _C
except:
    warnings.warn("Failed to load custom C++ ops. Running on CPU mode Only!")

Delete the MultiScaleDeformableAttnFunction implementation on lines 41 to  90 i.e.

lass MultiScaleDeformableAttnFunction(Function):
    @staticmethod
    def forward(
        ctx,
        value,
        value_spatial_shapes,
        value_level_start_index,
        sampling_locations,
        attention_weights,
        im2col_step,
    ):
        ctx.im2col_step = im2col_step
        output = _C.ms_deform_attn_forward(
            value,
            value_spatial_shapes,
            value_level_start_index,
            sampling_locations,
            attention_weights,
            ctx.im2col_step,
        )
        ctx.save_for_backward(
            value,
            value_spatial_shapes,
            value_level_start_index,
            sampling_locations,
            attention_weights,
        )
        return output

    @staticmethod
    @once_differentiable
    def backward(ctx, grad_output):
        (
            value,
            value_spatial_shapes,
            value_level_start_index,
            sampling_locations,
            attention_weights,
        ) = ctx.saved_tensors
        grad_value, grad_sampling_loc, grad_attn_weight = _C.ms_deform_attn_backward(
            value,
            value_spatial_shapes,
            value_level_start_index,
            sampling_locations,
            attention_weights,
            grad_output,
            ctx.im2col_step,
        )

        return grad_value, None, None, grad_sampling_loc, grad_attn_weight, None

Change the forward function of the MultiScaleDeformableAttention Module to use the pytorch implementation i.e. change on line 329 to 352 from

if torch.cuda.is_available() and value.is_cuda:
            halffloat = False
            if value.dtype == torch.float16:
                halffloat = True
                value = value.float()
                sampling_locations = sampling_locations.float()
                attention_weights = attention_weights.float()

            output = MultiScaleDeformableAttnFunction.apply(
                value,
                spatial_shapes,
                level_start_index,
                sampling_locations,
                attention_weights,
                self.im2col_step,
            )

            if halffloat:
                output = output.half()
        else:
            output = multi_scale_deformable_attn_pytorch(
                value, spatial_shapes, sampling_locations, attention_weights
            )

to
output = multi_scale_deformable_attn_pytorch(
            value, spatial_shapes, sampling_locations, attention_weights
        )

Note that you probably need to run pip uninstall and reinstall the library after that.

As a quick fix (or another solution that goes into a different direction) that I had to come up with because I had to make it work in an environment where I could not install CUDA tools, you can change the GroundingDINO ms_deform_attention.py code to use multi_scale_deformable_attn_pytorch.
The Grounding DINO code should work fine after that, but I have to admit that I did not test it thoroughly and that I am not sure whether the PyTorch implementation has any disadvantages over their CUDA build implementation in terms of runtime on a GPU. To be more precise:

In Grounded-Segment-Anything/GroundingDINO/groundingdino/models/GroundingDINO/ms_deform_attn.py, delete the code on lines 28 to 30, i.e.,

try:
    from groundingdino import _C
except:
    warnings.warn("Failed to load custom C++ ops. Running on CPU mode Only!")

Delete the MultiScaleDeformableAttnFunction implementation on lines 41 to  90 i.e.

lass MultiScaleDeformableAttnFunction(Function):
    @staticmethod
    def forward(
        ctx,
        value,
        value_spatial_shapes,
        value_level_start_index,
        sampling_locations,
        attention_weights,
        im2col_step,
    ):
        ctx.im2col_step = im2col_step
        output = _C.ms_deform_attn_forward(
            value,
            value_spatial_shapes,
            value_level_start_index,
            sampling_locations,
            attention_weights,
            ctx.im2col_step,
        )
        ctx.save_for_backward(
            value,
            value_spatial_shapes,
            value_level_start_index,
            sampling_locations,
            attention_weights,
        )
        return output

    @staticmethod
    @once_differentiable
    def backward(ctx, grad_output):
        (
            value,
            value_spatial_shapes,
            value_level_start_index,
            sampling_locations,
            attention_weights,
        ) = ctx.saved_tensors
        grad_value, grad_sampling_loc, grad_attn_weight = _C.ms_deform_attn_backward(
            value,
            value_spatial_shapes,
            value_level_start_index,
            sampling_locations,
            attention_weights,
            grad_output,
            ctx.im2col_step,
        )

        return grad_value, None, None, grad_sampling_loc, grad_attn_weight, None

Change the forward function of the MultiScaleDeformableAttention Module to use the pytorch implementation i.e. change on line 329 to 352 from

if torch.cuda.is_available() and value.is_cuda:
            halffloat = False
            if value.dtype == torch.float16:
                halffloat = True
                value = value.float()
                sampling_locations = sampling_locations.float()
                attention_weights = attention_weights.float()

            output = MultiScaleDeformableAttnFunction.apply(
                value,
                spatial_shapes,
                level_start_index,
                sampling_locations,
                attention_weights,
                self.im2col_step,
            )

            if halffloat:
                output = output.half()
        else:
            output = multi_scale_deformable_attn_pytorch(
                value, spatial_shapes, sampling_locations, attention_weights
            )

to
output = multi_scale_deformable_attn_pytorch(
            value, spatial_shapes, sampling_locations, attention_weights
        )

Note that you probably need to run pip uninstall and reinstall the library after that.

It works for me. Thanks!

I remove the "torch.cuda.is_available()" from line 80 in setup.py in GroundingDINO folder. Then
python setup.py build &&
python setup.py install


how to parse yAxis labels ?

I'm looking for YScales template equivalent, to be able to parse computed yAxis labels with moment humanized duration.
Is there something like a yAxis label callback ?

If my understanding of what you're asking is correct, this is possible.
Each axis has a callback that is called for each tick mark. You can return a string for the value. If you return null, the grid line is hidden.
options: {
  scales: {
    yAxes: [{
      ticks: {
        callback: function(tick, index, ticks) {}
     }
    }]
  }
}

great, thanks


CORS/Restrict external access

Hello again,
Is it possible it implement any access control to the service? Such as CORS?
For example only let requests from http://www.example.com execute conversions?
Access-Control-Allow-Origin: http://www.example.com
Bit of a Docker beginner...

{
service {
	....

	cors {
		allowed-origins = ["http://www.example.com"]
                     allowed-methods = ["POST"]
                     allowed-headers = []
                     exposed-headers = []
                     allow-credentials = []
                     max-age = 3600
                     options-passthrough = false
	}

             ....

}


Fresh go get -u failure

Have had this failure for a long time now.
% go get github.com/jeffail/leaps/cmd/...

% go get github.com/jeffail/leaps/cmd/...

% go get -u github.com/jeffail/leaps/cmd/...
package github.com/jeffail/leaps/vendor/github.com/elazarl/go-bindata-assetfs: /Users/fail/work/go/src/github.com/jeffail/leaps/vendor/github.com/elazarl/go-bindata-assetfs/.git exists but is not a directory
package github.com/jeffail/leaps/vendor/github.com/garyburd/redigo/redis: /Users/fail/work/go/src/github.com/jeffail/leaps/vendor/github.com/garyburd/redigo/.git exists but is not a directory
package github.com/jeffail/leaps/vendor/github.com/jeffail/util/log: /Users/fail/work/go/src/github.com/jeffail/leaps/vendor/github.com/jeffail/util/.git exists but is not a directory
package github.com/jeffail/leaps/vendor/github.com/go-sql-driver/mysql: /Users/fail/work/go/src/github.com/jeffail/leaps/vendor/github.com/go-sql-driver/mysql/.git exists but is not a directory
package github.com/jeffail/leaps/vendor/github.com/satori/go.uuid: /Users/fail/work/go/src/github.com/jeffail/leaps/vendor/github.com/satori/go.uuid/.git exists but is not a directory
package github.com/jeffail/leaps/vendor/github.com/lib/pq: /Users/fail/work/go/src/github.com/jeffail/leaps/vendor/github.com/lib/pq/.git exists but is not a directory
package github.com/jeffail/leaps/vendor/github.com/amir/raidman: /Users/fail/work/go/src/github.com/jeffail/leaps/vendor/github.com/amir/raidman/.git exists but is not a directory
package github.com/jeffail/leaps/vendor/github.com/jeffail/gabs: /Users/fail/work/go/src/github.com/jeffail/leaps/vendor/github.com/jeffail/gabs/.git exists but is not a directory

% ls -al /Users/fail/work/go/src/github.com/jeffail/leaps/vendor/github.com/elazarl/go-bindata-assetfs/.git
-rw-r--r--  1 fail  staff  -   78B Apr  9 17:37 /Users/fail/work/go/src/github.com/jeffail/leaps/vendor/github.com/elazarl/go-bindata-assetfs/.git

Seems it is one of my git hooks.

Seems it is related to this instead of my git hooks - https://github.com/golang/go/issues/17522

Closed? Is this not an issue? This is a bug for me that lets me not update.

Ah sorry @junkblocker I misunderstood. Could you try running git submodule update --init inside the leaps directory?

Same result. No change in behavior.

What if you delete the entire ./vendor directory first?

Subsequent go get -u github.com/jeffail/leaps/cmd/... continues to fail even with that.


Mark internal methods for typedoc

@BruceDai , please take a look. It fixes https://webmachinelearning.github.io/webnn-polyfill/docs/modules/nn_operation.html that exposes internal interfaces.

Thanks for review.


Update vizlab landing page

Get better description in viz.yaml

Up and running thanks to @ldecicco-USGS locally building:
ldecicco

FYI....I don't think the landing page works via Jenkins yet (unless you fixed it...I did not)
I've been building it locally and pushing it up by hand


Inline documentation

Inline documentation for drop function in frame.py file.

Codecov Report

Merging #222 into master will increase coverage by 0.33%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master     #222      +/-   ##
==========================================
+ Coverage   89.39%   89.73%   +0.33%
==========================================
  Files          31       31
  Lines        2650     2649       -1
==========================================
+ Hits         2369     2377       +8
+ Misses        281      272       -9

Impacted Files
Coverage Δ

databricks/koalas/frame.py
90.27% <ø> (+2.66%)
:arrow_up:

databricks/koalas/__init__.py
88.88% <0%> (-3.71%)
:arrow_down:

Continue to review full report at Codecov.

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

Hi @rxin , have a look at this.
I am working on the inline docs of other functions in frame.py file.
Happy to address any issues regarding my changes.

This looks great. For the next pull request, feel free to do more than one function.

@rxin I'll push the documentation of other functions as well in this PR itself.

Hi @rxin , I have added documentation for several functions in this PR.
I was keeping a track of documentation of functions left in frame.py. Issue #152
Unchecked ones are left.

[x] to_html
[x] isnull
[x] notnull
[x] toPandas
[ ] assign
[x] dropna
[x] drop
[x] get
[ ] pipe
[x] iteritems

Hi @HyukjinKwon,

Changed the docs for dropna, which only supports axis=0 at the moment.
Changed the docs for drop, which only supports axis=1 at the moment.
Changed from yields to returns in the documentation for iteritems.
Removed error parameter from the drop function.

Hi @HyukjinKwon, I think my PR contains a large number of commits.
Should I fork another branch from master and transfer the changes to a single commit?

It's ok when we merge into master we squash all commits into a single one.

Thanks. I've merged this in master.

Nice doc change. Thanks, @shril


Onset time of septic shock

Hello,
My name is Márcio Cruz. I am a Ph.D. student from Brazil and my research deals with Septic Shock prediction. I've been searching for a Database where I can identify the onset time of septic shock of the patients. Can I use the eICU-CRD to do that?
Thank you very much.
Best regards,
Márcio Freire Cruz

Septic shock can be identified using the charted data. This would involve (1) deciding on a definition of septic shock and (2) suitably approximating it with the available retrospective data.
The primary Sepsis-3 publication provides a reasonable set of criteria for septic shock: https://jamanetwork.com/journals/jama/article-abstract/2492881

Criteria for sepsis are: organ failure and suspected infection (usually implemented as SOFA >= 2 and proximal antibiotics/cultures).
Septic shock is a subset of sepsis
Patients with septic shock can be identified with a clinical construct of sepsis with persisting hypotension requiring vasopressors to maintain MAP ≥65 mm Hg and having a serum lactate level >2 mmol/L (18 mg/dL) despite adequate volume resuscitation.

Thanks. I will have this code done and send it to contribute with this repository, if you agree with that later.


Update manifests/t/Tencent/TencentVideo/11.68.8053.0/Tencent.TencentVideo.locale.en-US.yaml

Fixes an issue where this package has multiple different monikers
Microsoft Reviewers: Open in CodeFlow

[Policy] Reset Labels


Update package.json

I could not compile, as there was not a main entry point defined in your package.json.
Would be great if you could add it.

According to node docs

For new packages targeting the currently supported versions of Node.js, the "exports" field is recommended. For packages supporting Node.js 10 and below, the "main" field is required. If both "exports" and "main" are defined, the "exports" field takes precedence over "main" in supported versions of Node.js.

So I guess adding main is harmless since we already have exports.


Play 2.3 sample application based on example app of Supler

What is this?
Example app in Play 2.3.7 using JSON4S and Supler. It uses web assets from webjars and default sample theme from bootswatch.
It also uses Enumeration based transformer to support scala.Enumeration.
How do I run?
Read HOWTO.md file available in Play2Example root folder.

Hi,
Most of the changes suggested are pushed.
Would be happy to update anything which is still missing.

thanks, looks good! merging :)


Refactor Stress Master Bench

What changes are proposed in this pull request?
Extract some variables/functions from MasterBenchParameters into a new created MasterStressBenchBaseParameters class
Extract some variables/functions from MasterBenchTaskResult into a new created MasterBenchTaskResultBase class
Extract some variables/functions from StressMasterBench into a new created StressMasterBenchBase class
Why are the changes needed?
We are going to introduce a new type of MasterStressBench which allows running more than one operations (e.g. ListDir + CreateFile) at a certain ratio (e.g. 70% Read + 30% Write). To DRY the code, we refactor stress master bench related code first so that some code can be reused by the upcoming MultiOperationStressMasterBench.
Does this PR introduce any user facing changes?
N/A

alluxio-bot, merge this please


Possible Error in Shapiro-Wilk P-Value

Hi,
I tried out your Shapiro-Wilk implementation as I needed to calculate some values for a paper-submission. I did cross reference it with the Real-Statistics Excel Plugin (http://www.real-statistics.com/) as well as several online tools that allow use of Shapiro-Wilk.
If you run it with the following values:
488.0, 486.0, 492.0, 490.0, 489.0, 491.0, 488.0, 490.0, 496.0, 487.0, 487.0, 493.0
The results should be:
W -> 0.944486
P -> 0.55826969...
However the P value is
0.44173030948
The offending line is here:
https://github.com/datumbox/datumbox-framework/blob/957560901f3c87d3e9f6760263644a4d70b0a3b8/datumbox-framework-core/src/main/java/com/datumbox/framework/core/statistics/nonparametrics/onesample/ShapiroWilk.java#L257
It should actually be m-y
pw=ContinuousDistributions.gaussCdf((m-y)/s)

Hi Oliver,
Thanks for reporting. You are right. It's been a while since I wrote this so I did a few things to confirm the problem.
I tried your values using this online tool and it reports a p-value of 0.557475. Note that the discrepancy on the 3rd decimal can be attributed to the use of different approximations.
I also compared my implementation directly with the one of R:
shapiro.test(c(488.0, 486.0, 492.0, 490.0, 489.0, 491.0, 488.0, 490.0, 496.0, 487.0, 487.0, 493.0))
The result is p-value = 0.5583
After applying your patch, my implementation reports a p-value of 0.55826969.
I can patch it, but if you prefer send me a Pull-request and I'll merge it ASAP. I can also issue a hotfix if you want to unblock your work.

Hi Vasilis,
thanks for the quick reply and confirmation. Take your time, no hotfix necessary for me. I just wanted to notify you.

I patched it on the develop branch and also pushed a new snapshot version on the repo (0.8.2-SNAPSHOT). I'll probably take care of a few more minor improvements and release a stable version soon.
Thanks for the help!
Vasilis

Ok. I did a little deeper dive into this and I think the Bugfix I proposed just introduced another bug.
the ContinuousDistributions.gaussCdfcalculates the cumulative probability of a gaussian (normal) distribution right? In which case m would be the mean of the distribution an s would be the sigma.
In this case the original line pw=ContinuousDistributions.gaussCdf((y-m)/s); is CORRECT, but fails when the mean becomes negative (which it is for the provided example). When switching from y-m to m-y this is inadvertedly fixed as this moves the value to the "correct side" of the mean, as long as the mean is negative.
Unfortunately I haven't been able to produce any example where m becomes positive, so the fix may still apply, but the safer fix would be:
if (m < 0.0) {
  m *= -1.0;
  y *= -1.0;
}
pw=ContinuousDistributions.gaussCdf((y-m)/s);

I think I will need to investigate this more thoroughly to align the behaviour of the class with the original implementation. I will be investigating this later this week.
Cheers

Could you please check again the latest develop branch? I believe it's now patched.
The results agree with R for the following examples:

	Shapiro-Wilk normality test

data:  c(33.4, 33.3, 31, 31.4, 33.5, 34.4, 33.7, 36.2, 34.9, 37)
W = 0.95509, p-value = 0.7288

	Shapiro-Wilk normality test

data:  c(35, 45, 55, 58, 61, 63, 65, 68, 70, 72, 74, 86)
W = 0.97107, p-value = 0.9216

	Shapiro-Wilk normality test

data:  c(488, 486, 492, 490, 489, 491, 488, 490, 496, 487, 487, 493)
W = 0.94449, p-value = 0.5583

@oliver-krauss Did you manage by any chance to check the fix? It should be returning the right values now.

Hi, sorry for the delay was on a trip. I can confirm that this works with my own values as well, which I did cross reference with different tools as well.

Awesome thanks for reporting and for contributing to the fix. I will take care of a couple of remaining updates and issue a stable version soon. For now the latest 0.8.2-SNAPSHOT version contains the patch.


Merge qiskit-ibm-provider into qiskit-ibm-runtime

Summary
Since we are deprecating qiskit_ibm_provider soon we need to merge some files back into this repo
Reverting a lot of changes from #859
Details and comments
Fixes #1128

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

127 of 244 (52.05%)  changed or added relevant lines in 16 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage increased (+0.1%) to 46.129%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

qiskit_ibm_runtime/ibm_qubit_properties.py
7
11
63.64%

qiskit_ibm_runtime/proxies/configuration.py
26
43
60.47%

qiskit_ibm_runtime/utils/backend_decoder.py
28
61
45.9%

qiskit_ibm_runtime/utils/converters.py
39
102
38.24%

Totals

Change from base Build<PHONE_NUMBER>:
0.1%

Covered Lines:
2443

Relevant Lines:
5296

💛  - Coveralls

With this PR, qiskit-ibm-provider can be removed as a dependency right?

Almost - there are 2 more places qiskit-ibm-provider is imported
Importing Publisher here which I think we can either remove or copy into this repo - see Jake's comment
Importing Session here which will be taken care of in #1280 or I can just copy the file over for now


confusing (wrong?) description in mne.time_frequency.tfr_array_multitaper

The description of mne.time_frequency.tfr_array_multitaper is:

Compute time-frequency transforms using wavelets and multitaper windows.
Uses Morlet wavelets windowed with multiple DPSS tapers.

However it is not Morlet wavelet that are windowed by DPSS tapers. In _make_dpss, which is called in _compute_tfr, which is called in tfr_array_multitaper, there is:
        oscillation = np.exp(2.0 * 1j * np.pi * f * (t - t_win / 2.))

        # Get dpss tapers
        tapers, conc = dpss_windows(t.shape[0], time_bandwidth / 2.,
                                    n_taps)

        Wk = oscillation * tapers[m]

This is a DPSS taper multiplied by a complex exponential. A Morlet wavelet is a Gaussian multiplied by a complex exponential. There is no Gaussian and thus no Morlet wavelet in the code from what I can tell, unless I misunderstood something.

indeed it seems very wrong... at least the doc does not match the code...
what fix would you suggest?

Ideally would be great to have the actual mathematical formula. I feel it is often missing in the MNE documentation (I'm new to MNE). However, if one does not want to go into that, one could just write the same as for mne.time_frequency.tfr_multitaper

Compute Time-Frequency Representation (TFR) using DPSS tapers.

Since from what I understand these 2 functions do the same, but just have a different type of input. tfr_multitaper takes as input epochs whereas tfr_array_multitaper takes NumPy array. It would be helpful to specify that fact in the description (if that's actually the case).
The only difference is that tfr_multitaper has the argument zero_mean but tfr_array_multitaper doesn't. I wonder why that is? It seems to be present in tfr_morlet and tfr_array_morlet.
Best might be to have some consistency between the descriptions of:
tfr_multitaper vs tfr_array_multitaper
tfr_morlet vs tfr_array_morlet
tfr_stockwell vs tfr_array_stockwell
I'm new to all this code and MNE, so I don't have a comprehensive overview of the code at this point...

+1 on all you suggest.
so let's update the docstrings to match what the code actually does

The only difference is that tfr_multitaper has the argument zero_mean but
tfr_array_multitaper doesn't. I wonder why that is? It seems to be present
in tfr_morlet and tfr_array_morlet.

this is an API fix to do. Yes the idea is that tfr_ and tfr_array
functions are the same except
one works with mne objects and the other with numpy arrays
can you send us a PR?
thanks a lot for your help

I did a PR with updated doc.
Only remains is to update tfr_array_multitaper for it to have the option zero_mean for consistency.


Update sites.yml

Website (if applicable): https://adamchamberlin.info
This PR is:

[x] Adding a new domain
[ ] Updating existing domain
[ ] Changing domain name
[ ] Removing existing domain from list
[ ] Website code changes (darktheme.club site)
[ ] Other not listed

[ ] The following information is filled identical to the data file

I confirm that I have read the FAQ page, particularly the red section about inappropriate content, and I attest that this site is appropriate based on those criteria.

[x] Check to confirm

- domain: adamchamberlin.info
  url: https://adamchamberlin.info
  method: mediaquery
  last_checked: 2024-12-13

Thanks!


⚠ PassThePopcorn has degraded performance

In 0e93801, PassThePopcorn ($PTP) experienced degraded performance:

HTTP code: 502
Response time: 3608 ms

Resolved: PassThePopcorn performance has improved in 36298f1 after 21 minutes.


#40: When evaluating a pragma, skip over any block comments.

Current Coverage via 49b7651 is 74.33%

Merging better-pragmas into master will change coverage by +0.76%


rust: make zstd dependency optional

Nice to be able to compile without zstd for users that don't want to use it.

Do we want to make lz4 optional as well or just zstd?


openapi: Document send-invites and get-invites endpoints.

Testing plan:
GIFs or screenshots:

@timabbott Could you give this a look?

Closing, as I believe @Vector73 was able to complete this in #29327.


Simple nlu confidence evaluation

Description of Problem:
One goal of a chatbot is to understand the users uttered intention.
To be able to consistently identify whether the nlu interpreter understood or evt. misunderstood the uttered intention, the nlu confidence for correct predictions should be high and for incorrect predictions should be low.
The current nlu.test does not evaluate the predicted confidences.
In a similar fashion this issue was also adressed in:

forum: set-threshold-when-evaluation-a-rasa-nlu
feature request: 5988

Overview of the Solution:

It would be nice to have some visual evaluation of a single model performance and the impact of different nlu thresholds and ambigutiy thresholds (the nlu confidence histogram is not enough).
To be able to measure the performance of a nlu model not only the f1-score should be taken into account but also the separability of wrong predictions and correct predictions using the confidence results. Therefore a metric should be introduced. Such a metric would also help to perform hyperparameter optimization automatically.

Examples:

Visualization of the effect of different confidence thresholds: (To include the ambiguity threshold the nlu.test should output intent_ranking for errors and successes as well) For instance, several figures with different y-axis and line graphs:

x-axis is the nlu_threshold
One curve for each ambiguity_threshold to be tested.
y-axis could be:

version 1: P(fallback triggered=confidence < nlu_threshold OR ambiguous prediction)
version 2: P(correct prediction AND no fallback) + P(wrong prediction AND fallback triggered)

Version 1: example figure

Version 2: example figure

Confidence Metric

For the nlu-hyperopt project a loss function or evaluation metric was already introduced. I like the approach, however it requires to include a nlu threshold before training and does not take into account the ambiguity threshold.
A metric which is independent from the actual nlu_threshold and ambiguity_threshold would be the following:
Its goal is to compute how well the distribution of the confidence for all wrong predictions is different from the  distribution of the confidence for all correct predictions while of course confidence for correct predictions should be higher than for wrong predictions: 1) Compute the X%_percentile of the confidence for all wrong predictions and the Z%_percentile for all correct predictions for all X,Z in {5,10,....,90,95}. Then 2) count how many comparisons are true of X%_percentile < Z%_percentile for all X and Z. 3) Divide by all possible comparisons to normalize the result. Higher values indicate higher separability of wrong and correct predictions based by nlu confidence

Blockers (if relevant):

None are known

Future Ideas
If this feature is appreciated, it maybe should be provided for entities, responses (ResponseSelector) as well?
Definition of Done:

[ ] Visualization of the effect of different confidence thresholds added
[ ] At least one metric for the confidence distribution of correct and wrong nlu predictions are outputted by the nlu.test

in a file AND in in the log

[ ] Tests are added
[ ] Feature described the docs
[ ] Feature mentioned in the changelog

Thanks for submitting this feature request 🚀 @JustinaPetr will get back to you about it soon! ✨

hi @dsjaa,
I have appreciated the idea about hyperopt but i dont now how to integrate it in my docker-compose
version: '3.1'
services:
rasa:
image: ..........
container_name: rasa
networks: ['rasa-network']
ports:
- "5005:5005"
environment:
rasa_endpoint: "http://localhost:5005"
volumes:
- "./models:/app/models"
- "./config:/app/config"
command: "run --enable-api --debug --credentials /app/config/credentials.yml --endpoints /app/config/endpoints.yml"
action_server:
image: ..........
networks: ['rasa-network']
ports:
- "5055:5055"
depends_on:
- mongo
links:
- mongo
volumes:
- "./actions:/app/actions"
mongo:
image: mongo
restart: always
container_name: mongo
networks: ['rasa-network']
volumes:
- "mongodbdata:/data/db"
environment:
MONGODB_DATABASE: rasaprod
expose:
- "27017"
ports:
- 27017:27017
nlp-augmenter:
image: registry.openrainbow.org/rainbow/nlp-augmentation-service:0.0.1-SNAPSHOT
networks: ['rasa-network']
restart: always
ports:
- 50051:50051
volumes:
mongodbdata:
driver: local
networks: {rasa-network: {}}
any idea please ?


improving on-premise k8s uses.

supporting local-path-provisioner, for persistent storage.
local-path-provisioner seems not support 'subPath' for volumeMounts.

@litong01 could you review this PR, please.

@litong01 ok, I will explain it:
first, current minifabric uses persistent volumes, by use of "volumeMounts" in case of k8s environment.
on cloud managed k8s, each vendor provides its own dynamic persistent volume provisioner as its default service, like aws-ebs.  Those provisioner support subpath. so there are no problem in current code as far as managed k8s cases.
on the other hand, on-premise k8s, user needs to install open source dynamic persistent provisioner by himself to avoid specifying lots of PV and PVC entries in his k8s.
local-path-provisioner (https://github.com/rancher/local-path-provisioner ) is one of open source dynamic persistent volume provisioner. It is widely used by many onpremise k8s, because of config-less and easy use.
but unfortunately local-path-provisioner  seems not supporting 'subpath'.
So, at this moment,  user has to find out alternatives ( such as NFS based provisioner and configuring it), or give up using minifabric.
when I delete 'subpath' keyword and changed as this PR, minifabric could work with local-path-provisioner.
It's a small change in the code, but it's very kind to on-premises k8s users. That's the reason I post this PR.

@itaru2622 I understand the need for different storage cases. It seems to me that the PR is hard coded this and there seems no configurable parameters to indicate use or not use this feature.

@litong01 even after current code merged as it is, user can still use any type of storage class as user wishes, including aws-ebs in managed k8s case. so, I think there is no need configurable parameter. why you perfer to involve such parameter?

@itaru2622 the proposed PR will always create a volume sized to be 100Mi, and mounted to where the blockchain data will be saved, I am not seeing that as an optional thing. it will always do that, correct? I do not think every one will be happy that the data is restricted to be 100Mi, am I missing something here?

@litong01 you are misunderstanding my PR, I think.
It creates 5Gi data volume and 100Mi volumes for msp and tmp(/dataroot) folder.
/var/hyperledger/production is {{nodename}}-data and its storage is 5Gi.
100Mi for msp folder is enough, I think.
If you want more for msp and tmp, I will change their size to 1Gi.


Feature/parameter dependency

Updated maximization routine to accept constraints using the SLSQP optimizer. Added tests. This resolves issue #94.
It looks like the system will still guess outside of the constraints sometimes, but the updated sklearn_example, at least in my testing, showed that it mostly respects the constraints. The example shown for the maximize method still finds the global max, despite the constraint trying to restrict it to values above the 5000th index.

Codecov Report

Merging #95 into master will decrease coverage by 0.04%.
The diff coverage is 87.5%.

@@            Coverage Diff             @@
##           master      #95      +/-   ##
==========================================
- Coverage   82.87%   82.82%   -0.05%
==========================================
  Files           4        4
  Lines         292      297       +5
  Branches       35       38       +3
==========================================
+ Hits          242      246       +4
  Misses         45       45
- Partials        5        6       +1

Impacted Files
Coverage Δ

bayes_opt/bayesian_optimization.py
66.37% <100%> (+0.29%)
:arrow_up:

bayes_opt/helpers.py
89.41% <83.33%> (-0.72%)
:arrow_down:

Continue to review full report at Codecov.

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

I just realized that pull request #45 addresses this same issue. I believe our approaches are a bit different, so it may be worth looking in to both to see what you like best. Please merge one of these soon!

Thank you @Engineero , I will take a look at both. I'm a bit behind reviewing issues and PRs but will get around doing that soon.

My fear with implementing constraints on the acquisition function optimization is that the algorithm might get stuck probing the same edge points. Since the Gaussian Process is not constrained it may yield optimal points outside the allowed bounds, leading the acq_max function to return the same edge point over and over and the GP not being updated (since no new knowledge is gained), in a never ending loop.
In my mind reparametrizing the target function (embedding the constraints in the new parametrization) seems like a more robust solution. However that can be hard or even impossible at times. Alternatively I could see a very clever choice or kernel also being a solution to this problem.

Hello @fmfn / @Engineero ,
I'm new to this package and I'm using it to solve a constrained problem. I had a feeling that the acquisition function should also been changed as the original ac functions are no longer some type of uncertainty of the optimal solution. Is there any related workings since this post?
Thanks,
Yanhao

Closing this as we have a constrain model implemented now in #344


read in templates for scheduling of plugins

currently scheduling from templates doesn't do anything

no longer relevant


SEGGER_RTT.h: No such file or directory

I'm trying to compile an example
samples/subsys/logging/logger/
by adding below features in prj.conf
CONFIG_LOG=y
CONFIG_LOG_RUNTIME_FILTERING=y
CONFIG_LOG_BUFFER_SIZE=2048
CONFIG_LOG_PRINTK=y
CONFIG_LOG_PROCESS_TRIGGER_THRESHOLD=0
CONFIG_LOG_BACKEND_RTT=y
CONFIG_USE_SEGGER_RTT=y
CONFIG_COVERAGE=n
but getting error
[ 33%] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/logging/log_backend_rtt.c.obj
/home/hardik/practice/nrf52/fw-nrfconnect-zephyr/subsys/logging/log_backend_rtt.c:11:10: fatal error: SEGGER_RTT.h: No such file or directory
#include <SEGGER_RTT.h>
^~~~~~~~~~~~~~
compilation terminated.
I tried to find SEGGER_RTT.h in all over the code but there is no such file.

Hi,
SEGGER_RTT.h is located under modules/debug/segger/rtt/SEGGER_RTT.h
Did you use west tool to get the modules?

I got the modules/debug/segger/rtt/ directory using the west tool.
Thanks


Implement disk-based DataCache with no eviction

Description of change
Initial version of the data cache on disk.
We now write data to disk including some metadata to check we haven't mixed up blocks.
Related: #255
Does this change impact existing behavior?
No. This code is not yet adopted in main releases.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license and I agree to the terms of the Developer Certificate of Origin (DCO).

Just pushed a few changes based on some feedback, but still need to address tomorrow:

What to do about any versioning in path (v1 or PID or something else)
Look into comments on if we need base64 encoding, and to consider splitting on the first part of the directory
Identify path forward with macOS since it has a full path limit of 1024 (or maybe smaller), which is why the macOS unit tests are failing

Planning to update this PR as follows to have it in a state we're happy to merge and iterate later on:

Pull in the block data struct that we serialize to disk rather than just the bytes (w/ TODO for checksumming this struct). dannycjones/mountpoint-s3#15
Replace Base64 encoding of S3 key only with SHA256. Consider what we want to do about ETag and block numbers later.
Remove body of cached_block_indices and replace with todo!("implement or deprecate"). Less to review, since we are now considering removing this outright.

I'll merge this now. If there's any more feedback, please still add and I can follow up in another PR.


[feature]:

Is your feature request related to a problem? Please describe.

Describe the solution you'd like

Describe alternatives you've considered

Additional context

Not sure if this issue was opened involuntary, feel free to reopen it with a relevant title/body.


Improve testing for messages functionality

From commit message of 7fcab5c59941d8d26729a2bfc0b57687c976a09c in #196:

I was surprised to find that there were no existing tests for the request that ChatAPI makes when you call sendMessage, nor for DefaultMessages’s handling of messages received over a realtime channel, which meant that there wasn’t an obvious place to slot in the tests for the fixes introduced by this commit, nor did the mocks have any support for writing such tests. I’ve added tests for my fixes but, given my rush to get this fix done, the changes to the mocks aren’t great. Have created issue #195 for us come back and write the missing tests and tidy mine up.

┆Issue is synchronized with this Jira Task by Unito

Relates to #86


license?

Hi. Which license applies to this project?

Hi, I've just added a licence

Hi, I've just added a licence

Thank you!


Development Environment -- Eclipse

The development environment should suggest Eclipse Neon instead of Mars
Instead of

Eclipse Mars 2 for JEE developers

use

Eclipse Neon 3 for JEE developers.

Note that the hyperlink is ok; just change the title.

@dhvines the hyperlink seems to be wrong too. Updated it too


⚠ Spryr has degraded performance

In 9437337, Spryr (https://spryr.com) experienced degraded performance:

HTTP code: 200
Response time: 12940 ms

Resolved: Spryr performance has improved in c92c7b5 after 18 minutes.


lsif-java on master no longer indexes Spoon

As of 2de844423a3d94075b845b9d18b30b883b8b967c a commit introduced a regression that causes lsif-java to spin forever (>5 hours on GH action) when indexing the Spoon repository. Example. I've reverted the lsif-java-action to use the last known good commit for indexing Spoon, since it currently uses lsif-java in their CI: https://github.com/sourcegraph/lsif-java-action/commit/11dd91b4cba0f2a143914b14162d27d202f6726e. Context from spoon thread.
Since lsif-java is under development, I won't harp on this, but what is the current thinking on testing (to catch/avoid regressions) and in future, support stable versions (so we can revert to safe commit versions, in case of regressions)?

Since lsif-java is under development, I won't harp on this, but what is the current thinking on testing (to catch/avoid regressions) and in future, support stable versions (so we can revert to safe commit versions, in case of regressions)?

For the record, we've yet to have a stable version of lsif-java.

I'm aware that's why I qualified the question with in future :-) I'm just trying raise that previously working things are now no longer working, and that happened silently. That's all fine given the flux of the current state of things, but I thought it better to raise than... not say anything.

fwiw this can be fixed by bumping the Spoon version to beta-9 :)


wrong price on asset

Describe the bug
Reported by user
This asset has been published on polygon, but for some reason, the market is showing the wrong price on the asset.
Price:

It's not though. It's  price + fees. And currently opc fee is at 90%. maybe we need to prioritize more that fee component, a tooltip might be enough

@mihaisc Can we close this issue or is there any action we can take from this?


New Testcases for DashboardVisualizer and DslGraphqlSampler class

DashboardVisualizer - 2 test cases
DslGraphqlSampler - 4 test cases

Thank you for sending this PR!
I have already commented on provided tests in another PR, so I will not comment further here and wait for the response on that PR.
Regards


Minimal Rails engine

Background
https://citizensadvice.atlassian.net/browse/NP-1862
Goals
The goal of this pull request is to:

Add the skeleton structure of a Rails engine.
Include a couple of experimental components.
Include rspec tests and component previews for all experimental components.

Non-goals

Not published anywhere. The aim is for this pull request to be mergeable and installable as an experimental feature, but not included in any releases.
No integration with storybook. I'm not generating any example files for use in storybook here, that will come later.
I've not added any code to try and install the node module when installing the gem. I think this is the right call whilst this is in experimental mode, but we should consider doing this before we do a stable release.

Structure
This pull request introduces two new directories:

engine/ - This is the source for the Rails engine code, and is what gets required by apps.
demo/ - A companion Rails demo app used by the engine tests and as a way of viewing component previews.

Initial components
I've selected three components as good candidates for this initial iteration.

~PageReviewComponent - Selected because it's by far the smallest component we have and is a good test of date formatting and localisation within the engine.~ Removed this one as I reckon the date localisation needs a bit more thought as in the current version we accept a pre-formatted date string.
PaginationComponent - Selected because we already have a production ready view component version within public-website. This ports this over with the existing test suite and previews.
AssetHyperlinkComponent - Selected because it's also small but is used within Contentful renderer functions in public-website which is the main way the existing components are used.

How to review this pull request
There's a lot of code in this pull request but most of it Rails boilerplate for the demo/ app. I suggest:

Focussing on the engine/ code
Try running the rspec tests within engine/
Try running the demo Rails app and checking the component previews
Checkout https://github.com/citizensadvice/public-website/pull/1278 and try running public-website using this code

There are instructions in engine/README.md with details on how to get set up locally.

👏🏻 This is really great!

@davidsauntson Mind giving this one more review. Not much changed aside from:

Backed out the PageReviewComponent. I realised the current version accepts a pre-formatted but this version I had accepting a Date object. I think this is the right interface, but warrants a bit more review first.
Tidied up the set up documentation, particularly around the demo app


Story: Limit to show up to 1,000 activities

Note to fixer
On receive message, cap it to 1,000.

Duplicate of #355.


Create Account Without Friendbot Gives 400 Bad Request

ISSUE : Creating test net account giving 400 Bad Request error
Hi, I am using golang to create test net account. I checked documentation and also searched across the internet but coundn't find any example which demonstrates how to create account without using friend bot account.
Here is the code snippet that I am using:
func SignCreateAccountTransaction() {

	// sourceAccountAddress := "GBS7WPZB5TOSTTUM4NLO3U32GZJ7DAFOEWTRZSU3Z36T3RUQMDVPYILW"
	sourceAccountSeed := "SBFT6QGFLISD7PF35IG2ZHN4U3WS655ZXIY2WIIED6EWMMA5PRMBSXSI"
	newAccountAddress := "GCH2ODMRMSYYF3ZKVGQEBRF4J4VH6QGA3F2GGNUGQFUPXIGNFWJNG534"

	// Build Payment Transaction
	tx, err := build.Transaction(
		build.TestNetwork,
		build.SourceAccount{AddressOrSeed: sourceAccountSeed},
		build.Sequence{Sequence: 1},
		build.CreateAccount(
			build.Destination{AddressOrSeed: newAccountAddress},
			build.NativeAmount{Amount: "50"},
		),
	)
	if err != nil {
		return
	}

	// Sign the transaction to prove you are actually the person sending it
	txe, err := tx.Sign(sourceAccountSeed)
	if err != nil {
		return
	}

	txeB64, err := txe.Base64()
	if err != nil {
		return
	}

	// And finally, send it off to Stellar!
	response, err := horizon.DefaultTestNetClient.SubmitTransaction(txeB64)
	if err != nil {
		fmt.Println(err)   // <<< Here is gives 400 Bad Request Error >>>
		return
	}

	fmt.Println(response)
}

Can someone please help me identify what i am doing wrong here?

Sequence number is probably incorrect (not 1). For simple examples you can use build.AutoSequence(horizon.DefaultTestNetClient).
You can check this by checking err.(*horizon.Error).ResultCodes() and indeed result codes contain tx_bad_seq error.


The test about test_suit failed

Hi author，
Hello author,
As for the project I built, I tested the "Running tests" in the /build file and found that most of the test results failed. Could you please remind me where the problem occurred?
check_injection.py:67: YAMLLoadWarning: calling yaml.load() without Loader=... is deprecated, as the default Loader is unsafe. Please read https://msg.pyyaml.org/load for full details.
suite = yaml.load(f)
check_injection.py:16: YAMLLoadWarning: calling yaml.load() without Loader=... is deprecated, as the default Loader is unsafe. Please read https://msg.pyyaml.org/load for full details.
config_dict = yaml.load(inputyaml)
=============== Result ===============
./SoftwareFaults/BufferOverflow_API              FAIL: No ./llfi folder found!
./SoftwareFaults/BufferOverflowMalloc_Data               FAIL: No ./llfi folder found!
./SoftwareFaults/BufferOverflowMemmove_Data              FAIL: No ./llfi folder found!
./SoftwareFaults/BufferUnderflow_API             FAIL: No ./llfi folder found!
./SoftwareFaults/CPUHog_Res              FAIL: No ./llfi folder found!
./SoftwareFaults/DataCorruption_Data             FAIL: No ./llfi folder found!
./SoftwareFaults/Deadlock_Res            FAIL: No ./llfi folder found!
./SoftwareFaults/HighFrequentEvent_Timing                FAIL: No ./llfi folder found!
./SoftwareFaults/InappropriateClose_API                  FAIL: No ./llfi folder found!
./SoftwareFaults/IncorrectOutput_API             FAIL: No ./llfi folder found!
./SoftwareFaults/IncorrectOutput_Data            FAIL: No ./llfi folder found!
./SoftwareFaults/InvalidMessage_MPI              FAIL: No ./llfi folder found!
./SoftwareFaults/InvalidPointer_Res              FAIL: No ./llfi folder found!
./SoftwareFaults/InvalidSender_MPI               FAIL: No ./llfi folder found!
./SoftwareFaults/LowMemory_Res           FAIL: No ./llfi folder found!
./SoftwareFaults/MemoryExhaustion_Res            FAIL: No ./llfi folder found!
./SoftwareFaults/MemoryLeak_Res                  FAIL: No ./llfi folder found!
./SoftwareFaults/NoAck_MPI               FAIL: No ./llfi folder found!
./SoftwareFaults/NoClose_API             FAIL: No ./llfi folder found!
./SoftwareFaults/NoDrain_MPI             FAIL: No ./llfi folder found!
./SoftwareFaults/NoMessage_MPI           FAIL: No ./llfi folder found!
./SoftwareFaults/NoOpen_API              FAIL: No ./llfi folder found!
./SoftwareFaults/NoOutput_API            FAIL: No ./llfi folder found!
./SoftwareFaults/NoOutput_Data           FAIL: No ./llfi folder found!
./SoftwareFaults/PacketStorm_MPI                 FAIL: No ./llfi folder found!
./SoftwareFaults/RaceCondition_Timing            FAIL: No ./llfi folder found!
./SoftwareFaults/StalePointer_Res                FAIL: No ./llfi folder found!
./SoftwareFaults/ThreadKiller_Res                FAIL: No ./llfi folder found!
./SoftwareFaults/UnderAccumulator_Res            FAIL: No ./llfi folder found!
./SoftwareFaults/WrongAPI_API            FAIL: No ./llfi folder found!
./SoftwareFaults/WrongDestination_Data           FAIL: No ./llfi folder found!
./SoftwareFaults/WrongMode_API           FAIL: No ./llfi folder found!
./SoftwareFaults/WrongPointer_Data               FAIL: No ./llfi folder found!
./SoftwareFaults/WrongRetrievedAddress_IO                FAIL: No ./llfi folder found!
./SoftwareFaults/WrongRetrievedFormat_IO                 FAIL: No ./llfi folder found!
./SoftwareFaults/WrongSavedAddress_IO            FAIL: No ./llfi folder found!
./SoftwareFaults/WrongSavedFormat_IO             FAIL: No ./llfi folder found!
./SoftwareFaults/WrongSource_Data                FAIL: No ./llfi folder found!
./HardwareFaults/funcname                PASS
./HardwareFaults/insttype                PASS
./HardwareFaults/llfiindex               PASS
./HardwareFaults/random                  PASS
./HardwareFaults/tracing                 PASS
./HardwareFaults/multiplebits            PASS
./BatchMode/NoOpen_API_WrongMode_API_BufferUnderflow_API                 FAIL: No ./llfi folder found!
./BatchMode/SoftwareFailureAutoScan              Subdirectories for failure modes not found!

Hi @xuwaa,
We no longer support SoftwareFaults with LLTFI that's why you see "./SoftwareFaults/WrongSavedFormat_IO FAIL: No ./llfi folder found!" errors.
But, for HardwareFaults, the test suite passes correctly.

Hello,@uditagarwal97
I have seen your reply and thank you for your answer.


Suggest Restaurants around a location

Suggests restaurants around a location for any trip a user is planning for

@grace-omotoso We would like to work on this. Could you please assign it to us


Remove Dry::Types::Struct and Dry::Types::Value in favor of Dry::Struct

@solnic could you review this?

I think we should remove anything related to dry-struct and add struct-specific error handling to dry-struct itself. WDYT?

Yeah I agree @solnic. I'll followup with that

@solnic squeezed out the remaining Struct references

@solnic benchmarks removed

@solnic should be ready for another pass

@solnic ping

@backus thanks, could you update CHANGELOG in master?

@solnic done: https://github.com/dry-rb/dry-types/commit/18f8928d70c3583f601f044cea4e48f8e7518e09


runtime: arm64 bt in Delve get endless main.main after nil pointer dereference

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

$ go version
go version go1.20.10 linux/arm64

Does this issue reproduce with the latest release?
yes
What operating system and processor architecture are you using (go env)?
CentOS Linux release 7.9.2009 (AltArch)
go env Output
$ go env
[root@localhost demo]# go env
GO111MODULE="off"
GOARCH="arm64"
GOBIN=""
GOCACHE="/root/.cache/go-build"
GOENV="/root/.config/go/env"
GOEXE=""
GOEXPERIMENT=""
GOFLAGS=""
GOHOSTARCH="arm64"
GOHOSTOS="linux"
GOINSECURE=""
GOMODCACHE="/home/wsl/gopath/pkg/mod"
GONOPROXY=""
GONOSUMDB=""
GOOS="linux"
GOPATH="/home/wsl/gopath"
GOPRIVATE=""
GOPROXY="https://proxy.golang.org,direct"
GOROOT="/home/wsl/go/go1.20.10"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/home/wsl/go/go1.20.10/pkg/tool/linux_arm64"
GOVCS=""
GOVERSION="go1.20.10"
GCCGO="gccgo"
AR="ar"
CC="gcc"
CXX="g++"
CGO_ENABLED="1"
GOMOD=""
GOWORK=""
CGO_CFLAGS="-O2 -g"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-O2 -g"
CGO_FFLAGS="-O2 -g"
CGO_LDFLAGS="-O2 -g"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -pthread -Wl,--no-gc-sections -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build1165718654=/tmp/go-build -gno-record-gcc-switches"

What did you do?
package main

func main() {
        var p_value *int = nil
        *p_value = 1
}

Delve Debugger
Version: 1.21.1
Build: $Id: a358c02f24aa7047ecc562b0587dc2d08330b2cf $

[root@localhost demo]# /home/wsl/gopath/bin/dlv exec demo
Type 'help' for list of commands.
(dlv) break main.main
Breakpoint 1 set at 0x65230 for main.main() ./demo.go:5
(dlv) c
> main.main() ./demo.go:5 (hits goroutine(1):1 total:1) (PC: 0x65230)
Warning: debugging optimized function
     1: package main
     2:
     3: func main() {
     4:         var p_value *int = nil
=>   5:         *p_value = 1
     6: }
(dlv) regs
 PC = 0x0000000000065230
 SP = 0x0000004000160770
 X0 = 0x0000000000065230
...
X29 = 0x0000004000160768
X30 = 0x000000000003d9a0

(dlv) n
> [unrecovered-panic] runtime.fatalpanic() /home/wsl/go/go1.20.10/src/runtime/panic.go:1145 (hits goroutine(1):1 total:1) (PC: 0x3b680)
Warning: debugging optimized function
        runtime.curg._panic.arg: interface {}(string) "runtime error: invalid memory address or nil pointer dereference"
  1140: // fatalpanic implements an unrecoverable panic. It is like fatalthrow, except
  1141: // that if msgs != nil, fatalpanic also prints panic messages and decrements
  1142: // runningPanicDefers once main is blocked from exiting.
  1143: //
  1144: //go:nosplit
=>1145: func fatalpanic(msgs *_panic) {
  1146:         pc := getcallerpc()
  1147:         sp := getcallersp()
  1148:         gp := getg()
  1149:         var docrash bool
  1150:         // Switch to the system stack to avoid any stack growth, which
(dlv) bt
 0  0x000000000003b680 in runtime.fatalpanic
    at /home/wsl/go/go1.20.10/src/runtime/panic.go:1145
 1  0x000000000003afac in runtime.gopanic
    at /home/wsl/go/go1.20.10/src/runtime/panic.go:987
 2  0x0000000000039a78 in runtime.panicmem
    at /home/wsl/go/go1.20.10/src/runtime/panic.go:260
 3  0x000000000004fea4 in runtime.sigpanic
    at /home/wsl/go/go1.20.10/src/runtime/signal_unix.go:841
 4  0x0000000000065238 in main.main
    at ./demo.go:5
 5  0x0000000000065238 in main.main
    at ./demo.go:5
 6  0x0000000000065238 in main.main
    at ./demo.go:5
 7  0x0000000000065238 in main.main
    at ./demo.go:5
 8  0x0000000000065238 in main.main
    at ./demo.go:5
(dlv) frame 4
> [unrecovered-panic] runtime.fatalpanic() /home/wsl/go/go1.20.10/src/runtime/panic.go:1145 (hits goroutine(1):1 total:1) (PC: 0x3b680)
Warning: debugging optimized function
Frame 4: ./demo.go:5 (PC: 65238)
     1: package main
     2:
     3: func main() {
     4:         var p_value *int = nil
=>   5:         *p_value = 1
     6: }
(dlv) regs
 PC = 0x0000000000065238
 SP = 0x0000004000160760
X29 = 0x0000004000160768
X30 = 0x0000000000065238

(dlv) frame 5
> [unrecovered-panic] runtime.fatalpanic() /home/wsl/go/go1.20.10/src/runtime/panic.go:1145 (hits goroutine(1):1 total:1) (PC: 0x3b680)
Warning: debugging optimized function
Frame 5: ./demo.go:5 (PC: 65238)
     1: package main
     2:
     3: func main() {
     4:         var p_value *int = nil
=>   5:         *p_value = 1
     6: }
(dlv) regs
 PC = 0x0000000000065238
 SP = 0x0000004000160760
X29 = 0x0000004000160768
X30 = 0x0000000000065238

(dlv)

What did you expect to see?
After nil pointer dereference, bt can get the righe stack.
What did you see instead?
After nil pointer dereference, stack is endless main.main
Before nil pointer dereference happens, we get the SP, named SP_value_1 = 0x0000004000160770.
After nil pointer dereference happens, we get the SP again on the same frame, named SP_value_2 = 0x0000004000160760.
Two SP value for same function is different. This may be the cause of coredump endless main.main.
This problem does not reproduce using x86.

/cc @golang/compiler

CC @aarzilli @derekparker

There is already a Delve issue opened regarding this: https://github.com/go-delve/delve/issues/3545.
Haven't determined quite yet where the issue lies, so feel free to close this until we can definitively point to an upstream root cause.

@derekparker thanks for that -- will close this out for now.

Sorry for the whiplash, but I believe this may actually be a compiler bug.
The following is the .debug_frame information generated for the following architectures:
AMD64 (which is working):
0000c96c<PHONE_NUMBER>00001c 00000000 FDE cie=00000000 pc=00000000004575e0..00000000004575ea
     DW_CFA_def_cfa_offset_sf: 8
     DW_CFA_advance_loc: 9 to<PHONE_NUMBER>4575e9
     DW_CFA_nop
     DW_CFA_nop
     DW_CFA_nop
     DW_CFA_nop
     DW_CFA_nop

ARM64 (broken):
0000e05c<PHONE_NUMBER>00001c 00000000 FDE cie=00000000 pc=0000000000067720..0000000000067730
  DW_CFA_same_value: r30 (x30)
  DW_CFA_def_cfa_offset_sf: 0
  DW_CFA_advance_loc: 15 to<PHONE_NUMBER>06772f
  DW_CFA_nop
  DW_CFA_nop
  DW_CFA_nop

Notice in the ARM64 version we have DW_CFA_same_value: r30 (x30). It's reasonable the compiler would emit that because in this case main.main is a leaf function, so it's expected the return value would simply be stored in X30. However, runtime.sigpanic sets itself up so that it appears it is called directly by the function which generated the signal, so when Delve unwinds and follows the DWARF information it will endlessly loop thinking the value of X30 is correct as the return value for main.main.
If the program is modified such that main.main calls fmt.Println a few times we get:
00013ac4<PHONE_NUMBER>00002c 00000000 FDE cie=00000000 pc=000000000008b1f0..000000000008b410
  DW_CFA_same_value: r30 (x30)
  DW_CFA_def_cfa_offset_sf: 0
  DW_CFA_advance_loc: 20 to<PHONE_NUMBER>08b204
  DW_CFA_offset_extended_sf: r30 (x30) at cfa-192
  DW_CFA_def_cfa_offset_sf: 192
  DW_CFA_advance_loc2: 508 to<PHONE_NUMBER>08b400
  DW_CFA_same_value: r30 (x30)
  DW_CFA_def_cfa_offset_sf: 0
  DW_CFA_advance_loc: 15 to<PHONE_NUMBER>08b40f
  DW_CFA_nop
  DW_CFA_nop
  DW_CFA_nop
  DW_CFA_nop
  DW_CFA_nop
  DW_CFA_nop

Which now shows how we find the return value at cfa-192: DW_CFA_offset_extended_sf: r30 (x30) at cfa-192.
cc @thanm @mknyszek

To add onto the above, I'm not really sure what the compiler should generate in such a case. We could work around this in Delve, most likely, by special casing based on seeing runtime.sigpanic in the stack or something.

@derekparker Thanks for the investigation. Interesting. I agree that this is a tricky case, because the frame is not usually there, unless it panics and sigpanic injects a frame. In the runtime's unwinder we special case sigpanic https://cs.opensource.google/go/go/+/master:src/runtime/traceback.go;l=498-510 . If you have any suggestion for DWARF unwind info we should generate, that would be great. Otherwise I feel the best option is probably to have Delve do similar special case, if that is not too complex. Thanks.

@thanm (or anybody) do you know what C/C++ compiler do for frameless leave functions when -fnon-call-exceptions is enabled? What unwind information does it generate?


server hosting

i want to host on and acess it to local but our code does not seems working will like to fix on next update.

?


[TABLE] Expand / Collapse row icon

The chevron icon used in the Table component is the icon used by Carbon. This icon should be the expanded icon.

@amymillett to verify

Issue is complete as we have chevron in table component as seen on our storybook