GEODE-7296: Fix Geode release scripts

Detect SHA sum utility on Mac OS (shasum vs. sha512sum)

Authored-by: Jens Deppe<EMAIL_ADDRESS>Thank you for submitting a contribution to Apache Geode.
In order to streamline the review of the contribution we ask you
to ensure the following steps have been taken:
For all changes:

[ ] Is there a JIRA ticket associated with this PR? Is it referenced in the commit message?

[ ] Has your PR been rebased against the latest commit within the target branch (typically develop)?

[ ] Is your initial contribution a single, squashed commit?

[ ] Does gradlew build run cleanly?

[ ] Have you written or updated unit tests to verify your changes?

[ ] If adding new dependencies to the code, are these dependencies licensed in a way that is compatible for inclusion under ASF 2.0?

Note:
Please ensure that once the PR is submitted, check Concourse for build issues and
submit an update to your PR as soon as possible. If you need help, please send an
email to<EMAIL_ADDRESS>

feel free to include [skip ci] in the commit comment for this type of change, as running the full battery of Geode tests has no benefit...


Finding Largest Number in List (Max()) and Extracting Grouped Strings.

Below is a sample spotify list. How can I find the largest of the time data contained in "addedDate" using JsonPath? and what should I do to extract "trackName" from only "Legendary" album?
Edit: I'm using the "$..playlists[0:1]...*.artistName" function to extract albums, but I have no idea what to do to search by name.

Exm-Json.txt

Due to the absence of the "like" command, the supposedly powerful tool has no meaning. Now I understand why some questions were answered. I guess I just realized that the developer didn't have enough confidence to say 'This feature does not exist'.


Russian characters

All russian characters renders like Винни , looks like an encoding problem. On test pages UTF-8 is set as sharset.

Exactly !! #117 is the same issue


Add Agent Node Configuration

Signed-off-by: Sayali Gaikawad<EMAIL_ADDRESS>Description
Adds agent node configuration.
The code currently adds 2 agent nodes configurations AL2-X64 and AL2-ARM64 with 100gb EBS volume.
We can add windows, macos as an enhancement later. The number to executors (job run per instance) is 2 as of now. Let's discuss what we need to keep it as.
Issues Resolved
#23
Check List

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

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

@abhinavGupta16 Alternatively, would it be better to maybe write the groovy code as a groovy file and import it?
Values can then later be replaced as variables from the props. This would make the groovy code more readable and IDEs would also be able to parse it to verify for errors etc<
I did think about that, about using InitFile.fromAsset but how would we change the values once the file is created in the ec2? These files contain dynamic values like SG, subnet ids, etc. How should we replace that?

@abhinavGupta16 Alternatively, would it be better to maybe write the groovy code as a groovy file and import it?
Values can then later be replaced as variables from the props. This would make the groovy code more readable and IDEs would also be able to parse it to verify for errors etc

I did think about that, about using InitFile.fromAsset but how would we change the values once the file is created in the ec2 or even before it? These files contain dynamic values like SG, subnet ids, etc. How should we replace that? Will look into it if we can use Cfn:Fn:sub like I used it here

I would recommend not spending too many cycles here, while not ideal there is minimal functionality in that groovy code that is cannot be validated other than seeing a fresh main node spin up.  If we have more ideas lets consider making issues for them to resolve over time.

@abhinavGupta16 Alternatively, would it be better to maybe write the groovy code as a groovy file and import it?
Values can then later be replaced as variables from the props. This would make the groovy code more readable and IDEs would also be able to parse it to verify for errors etc

I did think about that, about using InitFile.fromAsset but how would we change the values once the file is created in the ec2 or even before it? These files contain dynamic values like SG, subnet ids, etc. How should we replace that? Will look into it if we can use Cfn:Fn:sub like I used it here

I would recommend not spending too many cycles here, while not ideal there is minimal functionality in that groovy code that is can be validated other than starting up a fresh main node and validating it. If we have more ideas lets consider making issues for them to resolve seperately.

@peternied - We can definitely create an issue and do it the separate cycle.
@gaiksaya - A few says I can think of is taking variables as a parameter to the script and running it. Alternatively, we can read the entire file as a string in the typescript code and replace the variable values. Another, not so nice method could be saving the file on EC2 and replace the values on the file using cmd.

Looking really good, should it move out of draft or did you have more changes in mind?

All tests are broken. And I missed one of your comments which will really clean things up

Can we pass in an AgentNode object with a method that produces these InitElement and adds them to the end of the list? It would reduce the amount of argument passing by a wide margin and reduce coupling
line 137:
CloudFormationInit.fromElements(...JenkinsMainNode.configElements(...),
...props.cloudAgent.configElements())

So still working on it.

@abhinavGupta16 Alternatively, would it be better to maybe write the groovy code as a groovy file and import it?
Values can then later be replaced as variables from the props. This would make the groovy code more readable and IDEs would also be able to parse it to verify for errors etc

I did think about that, about using InitFile.fromAsset but how would we change the values once the file is created in the ec2 or even before it? These files contain dynamic values like SG, subnet ids, etc. How should we replace that? Will look into it if we can use Cfn:Fn:sub like I used it here

I would recommend not spending too many cycles here, while not ideal there is minimal functionality in that groovy code that is can be validated other than starting up a fresh main node and validating it. If we have more ideas lets consider making issues for them to resolve seperately.

@peternied - We can definitely create an issue and do it the separate cycle. The reason I ask is because this would make our code more readable and maintainable.

Making the largest thread I can! For your consideration, readability and maintainability are features that have a time cost, sometimes we just need action (consider the effort and follow up tasks around docker generation) other times we need careful construction for long term payoff (consider our internal deployment system, its hardly even started and we are still planning it!) it is always important to ask how likely the time will return dividends.
Supporting groovy code in this project, as is, doesn't seem very fruitful to me; however, if we had a use case like DB is addressing in https://github.com/opensearch-project/opensearch-build/pull/924 a systemic problem that has hampered us many times.  We should always make sure we have a goal in mind and are aware of the constraints we place on what we build.

Opened up issue for loading groovy scripts from files: https://github.com/opensearch-project/opensearch-ci/issues/44
I have not added tests for agent-nodes specifically as methods are not static and need to instatiate the class which is causing me to run into
 There is already a Construct with name 'AgentNode-KeyPair' in CIStack [MyTestStack]

Not sure if tests are required for agent-nodes and they itself are dynamic.

@peternied Are you okay with me merging this PR? Any objection?

@gaiksaya I've already signed off you can merge whenever you'd like.
If you were open to changes, I'd recommend reverting the changes to package-lock.json

@gaiksaya I've already signed off you can merge whenever you'd like.
If you were open to changes, I'd recommend reverting the changes to package-lock.json

Is it just lockfileVersion? or entire package-lock.json?

@gaiksaya I've already signed off you can merge whenever you'd like.
If you were open to changes, I'd recommend reverting the changes to package-lock.json

Is it just lockfileVersion? or entire package-lock.json?

I don't think you revert the entire file since you have a change in package.json which should now reflect in package-lock.json

@gaiksaya I've already signed off you can merge whenever you'd like.
If you were open to changes, I'd recommend reverting the changes to package-lock.json

Is it just lockfileVersion? or entire package-lock.json?

Yeah since the file is auto generated concerned if I should change anything at all

@gaiksaya I've already signed off you can merge whenever you'd like.
If you were open to changes, I'd recommend reverting the changes to package-lock.json

Is it just lockfileVersion? or entire package-lock.json?

Yeah since the file is auto generated , I am concerned if I should change anything at all

Update: Reverted the package-lock.json changes and ran npm run build the project is still building. Merging this PR.
Thanks!


check-model-has-description in 2.0.6 does not ignore excluded files

Describe the bug
My .pre-commit-config.yml looks like:
fail_fast: true
repos:
- repo: https://github.com/dbt-checkpoint/dbt-checkpoint
  rev: v2.0.6
  hooks:
...
  - id: check-model-has-description
    exclude: (analysis/|snapshots/|macros/|.gitlab-ci.yml)

But the resulting error is:
Check the model has description..........................................Failed
- hook id: check-model-has-description
- exit code: 1
snapshots/snapshot_category_groups/snapshot_category_groups.sql: does not have defined description or properties file is missing.
...

To Reproduce

Create a snapshot sql file and some statement
Skip the yml for that snapshot
Run the above mentioned hook

Expected behavior
To ignore all files mentioned in exclude
Version:
v2.0.6
Additional context
Also looks like the performance of that hook significantly declined in v2.0.6 vs v2.0.4

Looking at the docs I think this is related to https://github.com/dbt-checkpoint/dbt-checkpoint?tab=readme-ov-file#general-exclude-and-per-hook-excluding. Might not be a bug thus, but I experience this as undesirable


Update with latest changes from develop

Documentation update on using the Experiment.run() methods
Build fixes

Looking into the build failure issue here.
Something else came up.
Something string is happening with the ERP vis

Trying to understand now...

ok I am going to rewrite plot_conditions and do a separate PR to develop as that function has always been a mess and needs tidying up

@JohnGriffiths I think we're good to merge this. Doc builds work now & we can fix typecheck afterwards


Unexpectedly parses

No end function
function f(p as Int) return Int
  return 0

main
  var a set to f(0)
end main

https://github.com/elan-language/IDE/blob/6b30fa560434a0e75cd1612b8e90ad376ebcd0ce/elan/src/test/compiler/T20_Functions.test.ts#L304

Having looked into this, I decided to remove the test because:

This situation should not ever arise
In general the parse (from source code) does not check for errors in the 'boiler plate' code added by a frame - it assumes they are all there and just removes them where expected (without checking that they were removed). It would be too big a change - and of no real value - to do this fully.  The deleted test probably predated (a clear understanding of) the frame-based model.


RCIdentity: fix another case of not-RC-identity-preserving casts.

When casting from existentials to class - and vice versa - it can happen that a cast is not RC identity preserving (because of potential bridging).
This also affects mayRelease() of such cast instructions.
For details see the comments in SILDynamicCastInst::isRCIdentityPreserving().
This change also includes some refactoring: I centralized the logic in SILDynamicCastInst::isRCIdentityPreserving().
rdar://problem/70454804

@swift-ci test

@swift-ci benchmark

Performance: -O

Regression
OLD
NEW
DELTA
RATIO

ReversedBidirectional
15581
17243
+10.7%
0.90x

Array2D
6688
7216
+7.9%
0.93x

Improvement
OLD
NEW
DELTA
RATIO

StringWordBuilderReservingCapacity
2470
2260
-8.5%
1.09x (?)

DropLastAnyCollection
12
11
-8.3%
1.09x (?)

StringWordBuilder
2500
2310
-7.6%
1.08x (?)

NSStringConversion.MutableCopy.Rebridge.Long
1254
1165
-7.1%
1.08x (?)

Code size: -O
Performance: -Osize

Regression
OLD
NEW
DELTA
RATIO

UTF8Decode_InitFromCustom_contiguous
256
355
+38.7%
0.72x

FlattenListLoop
1945
2501
+28.6%
0.78x (?)

StringFromLongWholeSubstring
4
5
+25.0%
0.80x

String.data.Medium
106
126
+18.9%
0.84x (?)

DropFirstSequenceLazy
58
68
+17.2%
0.85x (?)

FlattenListFlatMap
6104
6817
+11.7%
0.90x (?)

RandomShuffleLCG2
416
448
+7.7%
0.93x (?)

Improvement
OLD
NEW
DELTA
RATIO

DataAccessBytesMedium
97
88
-9.3%
1.10x

NSStringConversion.UTF8
1032
944
-8.5%
1.09x (?)

StringWordBuilder
2510
2310
-8.0%
1.09x (?)

NSStringConversion.MutableCopy.Medium
865
797
-7.9%
1.09x (?)

StringWordBuilderReservingCapacity
2460
2270
-7.7%
1.08x

NSStringConversion.MutableCopy.Rebridge.Medium
676
624
-7.7%
1.08x (?)

FloatingPointPrinting_Float_description_uniform
5800
5400
-6.9%
1.07x (?)

Code size: -Osize
Performance: -Onone

Regression
OLD
NEW
DELTA
RATIO

NSStringConversion.MutableCopy.Rebridge
1301
1435
+10.3%
0.91x (?)

ClassArrayGetter2
4540
4940
+8.8%
0.92x (?)

UTF8Decode_InitDecoding_ascii
320
347
+8.4%
0.92x (?)

StringUTF16SubstringBuilder
19680
21220
+7.8%
0.93x (?)

Improvement
OLD
NEW
DELTA
RATIO

DataToStringSmall
6750
5900
-12.6%
1.14x (?)

DictionaryBridgeToObjC_Access
1340
1224
-8.7%
1.09x (?)

UTF8Decode_InitFromData_ascii_as_ascii
808
750
-7.2%
1.08x (?)

Code size: -swiftlibs

How to read the data
The tables contain differences in performance which are larger than 8% and
differences in code size which are larger than 1%.
If you see any unexpected regressions, you should consider fixing the
regressions before you merge the PR.
Noise: Sometimes the performance results (not code size!) contain false
alarms. Unexpected regressions which are marked with '(?)' are probably noise.
If you see regressions which you cannot explain you can try to run the
benchmarks again. If regressions still show up, please consult with the
performance team (@eeckstein).

Hardware Overview
  Model Name: Mac Pro
  Model Identifier: MacPro6,1
  Processor Name: 12-Core Intel Xeon E5
  Processor Speed: 2.7 GHz
  Number of Processors: 1
  Total Number of Cores: 12
  L2 Cache (per Core): 256 KB
  L3 Cache: 30 MB
  Memory: 64 GB

@swift-ci smoke test

@atrick yes, it makes sense to also check the target to be trivial. I pushed a new version where I check if the source and target mismatch in "triviality".

@swift-ci smoke test

@swift-ci smoke test

@swift-ci smoke test

I tried testing this PR combined with my PR #33761 on Ubuntu 16.04 and it looks good so far.  (There was something strange with the merge, though, so it's possible I wasn't exactly testing what I hoped.)

@swift-ci smoke test and merge


Radio buttons: missing margin on error message when hidelegend is set to true

Description of the bug
When hideLegend={true} on Radio.Group, there is no spacing between the radio buttons and the error message.
Steps To Reproduce

Add a Radio.Group and set hideLegend to true
Set error prop on Radio.Group

Additional Information
No response

Here is a direct link to a story showing that the error message does not have spacing above it.
https://next.storybook.designsystemet.no/?path=/story/komponenter-radio-group--preview&args=error:Ein+error;hideLegend:!true&globals=theme:Dark
I can't seem to reproduce it where the spacing is removed between radio buttons as well.

We have planned a revision of CSS for Radio so we'll have a look at this when we do this.

Fixed by #2607


ARROW-11288: [Rust][DataFusion] Update hashbrown to 0.10

Nothing big has changed, has some small performance tweaks + keeps it up to date.

@alamb thanks for the heads up! Seems 0.10 was yanked on crates.io, I think because of a discovered bug. Let's wait to merge this once there is a new release.

@alamb thanks for the heads up! Seems 0.10 was yanked on crates.io, I think because of a discovered bug. Let's wait to merge this once there is a new release.

Closing this PR until the new hashbrown release is available (I am trying to reduce the backlog)


ADTRAN ONT

Has anyone got an Adtran 611 working?

it use same chip as ODI Stick, maybe get all OMCI Info and copy it over ODI Stick, it should work as usual

Could you offer some advice on how to get logged into the device? when I connect to the header port it only outputs the infomation above. I do not get a login box or terminal window

I have one of these also, Ive dumped the SPI too, Any tips or ticks to move forward, I also get the same shell output but cant input anything?

I have not had time to test. but I wonder if it needs the authkey generator running.


SEO Sitemaps unable to serve sitemaps on languages with custom web address

Replication Steps:
Change a language to use a custom web address.
For example uk for en-GB
Setup a /uk/sitemaps.xml sitemap
Run the scheduled job
While logged in to Episerver you can view this sitemap
Logout of CMS
Try to access sitemap
You will be redirected to /uk/ with a 302 redirect.
If you change the custom web address back to the default it will work on the default.
Seen in 2.0.8 and in latest version

We're not doing any redirects per se, we have only added routes for the different scenarios, see: https://github.com/Geta/SEO.Sitemaps/blob/master/src/Geta.SEO.Sitemaps/SitemapInitialization.cs#L29
Could there be something else in your code that kicks in and does the 302 redirect? You could try adding a specific route for it to the route table and see if that helps.

I disabled SEO Toolbox and cleared the rewrite file but was still getting the behaviour. We also have ADFS but that is not easily disabled.
Checking the class you highlighted it is using MapRoute which is not Episerver aware so will not be able to see the custom language routes in CMS. Will try a specific route to push to the controller.

I can make it work with a hard coded route to the controller.
Most routes we have use MapContentRoute to handle the custom language stems but there is no page to anchor it to in /uk/sitemap.xml so I get a null contentLink issue if I try to use that method.

Could not replicate in Alloy Tech.
So will look at other causes.


Use uv as python package manager instead of poetry in docker

Description
Uses uv to install python dependencies instead of poetry if "uv" is passed into install_python_dependencies.sh.
Uv's requirements.txt files are platform specific so this is just for the docker build as of now. Also, uv doesn't have dependencies groups like poetry for dev dependencies, so this installs all deps.
I can add requirements.txt files to support mac builds and only non-dev deps too if the bounty #32522 gets locked to me, but with this PR the CI speed up may be worth merging. Seeing setup-with-retry with no cache hits taking 4min from 7min.
Verification
Builds and passes tests in CI.

Here's my follow up to this: #32541

The 7min time was from my memory playing with setup-retry last week, actual speed up building image with no cache in gha:

uv 27s:  https://github.com/signed-long/openpilot/actions/runs/9245895114/job/25433013590#step:3:4871
poetry 59s: https://github.com/signed-long/openpilot/actions/runs/9245895114/job/25433013642#step:3:5078

Unfortunately, the locking has already become an issue. Our weekly lockfile CI job just ran, and a couple different things broke (https://github.com/commaai/openpilot/pull/32550). It would've been bad if those just randomly broke on master instead of that PR.
I'm closing it, but the bounty  is yours since all the work was done.


Fixed bug showing empty background at top…

… when changing focus while the keyboard was opened

Improved keyboard hiding by avoiding Page touchs in the meantime
Updated Xamarin.Forms to <IP_ADDRESS>

It works like a charm!! Great work @MarcosCobena !
@paulpatarinski merge this, please!

It works for me too thanks @MarcosCobena.
Waiting to get the merged nuget.


python311Packages.types-python-dateutil: <IP_ADDRESS> -> <IP_ADDRESS>

Description of changes

Things done

Built on platform(s)

[ ] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
23.11 Release Notes (or backporting 23.05 Release notes)

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

[ ] Fits CONTRIBUTING.md.

Result of nixpkgs-review pr 244901 run on x86_64-linux 1

12 packages built:

python310Packages.cirq
python310Packages.cirq-rigetti
python310Packages.cirq-rigetti.dist
python310Packages.cirq.dist
python310Packages.pyquil
python310Packages.pyquil.dist
python310Packages.types-python-dateutil
python310Packages.types-python-dateutil.dist
python311Packages.pyquil
python311Packages.pyquil.dist
python311Packages.types-python-dateutil
python311Packages.types-python-dateutil.dist


Adding proposed structure for docs

This is the branch we are developing the docs for the paper on. Please @jvivian  @arkal @hannes-ucsc  @cket  @JakeNarkizian commit directly to this branch.

Jenkins, test this please.

@benedictpaten — I've taken a first pass at all the sections assigned to me.  Let me know if there are any other sections you think we need or that I can do.

@benedictpaten are you force pushing?

@benedictpaten, ignore the previous comment. I'm trying to track down someone doing weird pushes.

Before this can be merged, the "Enforce venv on sphinx-build" commit needs to be annotated with the issue it resolves, i.e. #752.

@hannes-ucsc I'm getting errors now from conf.py, despite being in a venv.  Why is this extra check needed if the Makefile already checks for a virtualenv?

The check is in conf.py because that is the only file guaranteed to run before building the docs. The makefile is bypassed by RTD, for example, by calling Sphinx-build directly. Are you on campus? I will be in the lab in about 15 minutes and I can take a look at the errors then

@cket yup!

Found the problem — the Toil venv was active but it did not contain the Sphinx installation. Installing Sphinx inside the venv fixed the issue.

@cket, @jvivian I think we can avoid this confusion by making the exception message more informative. I commented on @cket's fbb35ed with details.

Why are the tests flappy?

Why are the tests flappy?

Hannes aborted the last build due some jenkins thing he's fixing I think.

Got it, thanks.
On Fri, Apr 8, 2016 at 6:18 PM, John Vivian<EMAIL_ADDRESS>wrote:

Why are the tests flappy?
Hannes aborted the last build due some jenkins thing he's fixing I think.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub
https://github.com/BD2KGenomics/toil/pull/742#issuecomment-207676532
--
You received this message because you are subscribed to the Google Groups
"cgloud-jenkins" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to<EMAIL_ADDRESS>To post to this group, send email to<EMAIL_ADDRESS>To view this discussion on the web visit
https://groups.google.com/d/msgid/cgloud-jenkins/BD2KGenomics/toil/pull/742/c207676532%40github.com
https://groups.google.com/d/msgid/cgloud-jenkins/BD2KGenomics/toil/pull/742/c207676532%40github.com?utm_medium=email&utm_source=footer
.
For more options, visit https://groups.google.com/d/optout.

I aborted this one earlier today but that wasn't for this PR.

Look at the test numbers too, they are changing in between builds. Is that expected? Maybe doctests are building only on the main branch?
Sent from my iPhone

On Apr 8, 2016, at 6:29 PM, Hannes Schmidt<EMAIL_ADDRESS>wrote:
I aborted this one earlier today but that wasn't for this PR.
—
You are receiving this because you commented.
Reply to this email directly or view it on GitHub
--
You received this message because you are subscribed to the Google Groups "cgloud-jenkins" group.
To unsubscribe from this group and stop receiving emails from it, send an email to<EMAIL_ADDRESS>To post to this group, send email to<EMAIL_ADDRESS>To view this discussion on the web visit https://groups.google.com/d/msgid/cgloud-jenkins/BD2KGenomics/toil/pull/742/c207677363%40github.com.
For more options, visit https://groups.google.com/d/optout.

Look at the test numbers too, they are changing in between builds. Is that expected?

The PR builder simulates a merge of the PR's source branch into the target branch and builds the resulting merge commit. If the merge fails, say, because of conflicts, the tip of the source branch is built instead. As long as there are no conflicts between source and target branch, you will observe changes on the target branch when the PR is built. When there are conflicts, those changes disappear again.

I am going through all the documentation now doing an editing pass. I'd like to have this all merged today. Hannes, what commits do you want squashed? I'd be happy with merging as is, but then I never look at commit histories ;)

@benedictpaten — Ping me if everything looks good after your pass, I already rendered most of the sections into their own PDF for the supplement and I'll have to rerender them if there are changes.

Okay, I'm done. I changed very little - I clarified the text on caching and
slightly edited the "features" section.
On Sat, Apr 9, 2016 at 9:48 AM, John Vivian<EMAIL_ADDRESS>wrote:

@benedictpaten https://github.com/benedictpaten — Ping me if everything
looks good after your pass, I already rendered most of the sections into
their own PDF for the supplement and I'll have to rerender them if there
are changes.
—
You are receiving this because you commented.
Reply to this email directly or view it on GitHub
https://github.com/BD2KGenomics/toil/pull/742#issuecomment-207817263
--
You received this message because you are subscribed to the Google Groups
"cgloud-jenkins" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to<EMAIL_ADDRESS>To post to this group, send email to<EMAIL_ADDRESS>To view this discussion on the web visit
https://groups.google.com/d/msgid/cgloud-jenkins/BD2KGenomics/toil/pull/742/c207817263%40github.com
https://groups.google.com/d/msgid/cgloud-jenkins/BD2KGenomics/toil/pull/742/c207817263%40github.com?utm_medium=email&utm_source=footer
.
For more options, visit https://groups.google.com/d/optout.

@hannes-ucsc unfortunately has to deal with merge conflicts, there's too much conflict between @JakeNarkizian 's documentation changes from master and this branch.

I'm taking off multi-author. Unless someone vetos until 4:00pm, I will be the owner of this branch and no one else is allowed to push to it. When I am done resolving the conflicts, we can open the branch up again for more commits or merge it.

Continued in #778, rebased, partially squashed and with conflicts resolved.


API endpoint for stargazers

Add the following endpoint:

GET repos/:owner/:reponame/stargazer: list a repo's stargazers.

LGTM

LGTM


Fix: code quality and docs

Description of Change

fixed code quality
added docs
added test cases

Checklist

[x] Added description of change
[x] Added file name matches File name guidelines
[x] Added tests and example, test must pass
[x] Added documentation so that the program is self-explanatory and educational - Doxygen guidelines
[x] Relevant documentation/comments is changed or added
[x] PR title follows semantic commit guidelines
[x] Search previous suggestions before making a new one, as yours may be a duplicate.
[x] I acknowledge that all my contributions will be made under the project's license.

Notes:

For future reference, give 48 hrs for some other admin to review as well.

For future reference, give 48 hrs for some other admin to review as well.

oh my bad luck i was confused between two PR's i was supposed to merge that other one but i merged this one. and that other one is still unmerged, sorry for this, well i had opened another PR in regard with this issue please review that one #931.

For future reference, give 48 hrs for some other admin to review as well.

oh my bad luck i was confused between two PR's i was supposed to merge that other one but i merged this one. and that other one is still unmerged, sorry for this, well i had opened another PR in regard with this issue please review that one #931.

ok. please be cautious next time :)


test: split e2e test file

Checklist

[ ] yarn test passes
[x] Tests are changed or added
[x] Pull request labels are added

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

The tests that are split are now passing.


Added gitattributes for EOL support

Several issues with cloning on Windows - gitattributes solves it.

I believe I need to do the following as well - will do as a separate PR
git add --renormalize .
git commit -m "Introduce end-of-line normalization"


for testing

login:

text
login logo
link to mdr
link to about

home:

remove dashboard? (slow)

Studies/Dataobject

rm dropbox in search (only title)

add study

public title  -> title
mark title as mandatory

add data object

title not mandatory

partially done, will make specific issue of remaining items


Receive location by distance and interval max time

Plugin version: 2.1.2
Platform: Android
Cordova version: 6.2.0
Cordova platform version: android 5.1.1
Plugin configuration options:
{desiredAccuracy: 10, stationaryRadius: 20, distanceFilter: 30, interval: 30 * 60 * 1000, url: 'http://xxxx.com'}

I'm trying to use the plugin for get user location every 30 minutes and every time that he moves 30 meters, Is that possible? Because with that config that i try i receive locations every minute if the user move 30 meteres...
Thanks in advance

For timed locations there is ANDROID_ACTIVITY_PROVIDER. For distance locations there is ANDROID_DISTANCE_FILTER_PROVIDER. But you cannot mix these two.

I'm yet a newbie in Android development ... so the option of implement it by my self is difficult...
I need to find the way to get the position of the user for know if he still on the place that I received the last location update or to know if he have the plugin working yet.


AttributeError: 'NoneType' object has no attribute 'find_all_next'

https://github.com/aws-samples/rds-extended-support-cost-estimator/blob/d6f4eca4f50c55a77c384448ce6b0aa634361991/scripts/utils/rds_mappings.py#L111
This url for the documentation that's being parsed here was updated recently, breaking the script entirely:
python find_rds_extended_support_instances.py -h

Traceback (most recent call last):
  File "/home/ec2-user/rds-extended-support-cost-estimator/scripts/find_rds_extended_support_instances.py", line 55, in <module>
    DB_INSTANCE_MAPPING = get_rds_instance_mapping()
  File "/home/ec2-user/rds-extended-support-cost-estimator/scripts/utils/rds_mappings.py", line 123, in get_rds_instance_mapping
    mappings_section_tables = mappings_section.find_all_next("table")
AttributeError: 'NoneType' object has no attribute 'find_all_next'

I was able to get around it by updating the url to an older version of the page, but the logic pulling the mappings here should probably be updated to something more immutable than HTML parsing.

This happened to me as well. After reading the code I also confirm that the reason is because of instead of static website, they now use drop-down, which makes the code unable to parse the HTML.

Perhaps these can be parsed now from URL https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Concepts.DBInstanceClass.Summary.html

Thanks for flagging this - i'll work on fixing the issue and update soon.

Temporarily pushed a fix - updated the URL and the HTML scrapping dom ID.
TODO - Fix the logic to get rds instance mapping in a more reliable way. The HTML of the AWS Documentation that was being scraped
previously has changed, causing the script to fail. There are 2 approaches to repalce the current HTML scrapping logic:
1/  either use a hard coded file with list of rds instances and vCPU mapping, as these mappings are static and do not change. Will need to handle the condition of new instance types/family/size getting added in future, for which see pt 2 below.
2/ Use the AWS Pricing API to retrive the vCPU details for an instance, and build a cache locally to avoid calling the API repeatedly. This can also be used in conjunction with pt 1 above. In case an instance type is not found in the hardcoded file, then call the pricing API and update the mappings file and write back for future usage.
AWS Pricing API CLI command example:
aws pricing get-products --service-code AmazonRDS --region us-east-1 --filters Type=TERM_MATCH,Field=UsageType,Value=USW2-InstanceUsage:db.m5.large Type=TERM_MATCH,Field=Operation,Value=CreateDBInstance:0002


App structure: add core.cljs for multipanel apps

I maybe wrong on this one.

Good point!  Thanks for your detailed review and many suggestions..


In Crop() image expecting ImageProvider insted of Image

Container(
child: Crop(
key: cropKey,
image: Image.file(_image),
aspectRatio: 1,
),
),
The argument type 'Image' can't be assigned to the parameter type 'ImageProvider'.dart(argument_type_not_assignable)

Hey,
just use FileImage instead of Image.file.
Source: https://api.flutter.dev/flutter/widgets/Image-class.html

Thanks👍
On Mon, 16 Mar, 2020, 7:07 PM Marcin Wróblewski<EMAIL_ADDRESS>wrote:

Hey,
just use FileImage instead of Image.file.
Source: https://api.flutter.dev/flutter/widgets/Image-class.html
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/lykhonis/image_crop/issues/46#issuecomment-599540545,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AH26VJPWXJVGSITM3EHBTRDRHYTSRANCNFSM4K7VUQHA
.


Cannot schedule circuits using AerSimulator and QasmSimulator

What is happening?
AerSimulator and QasmSimulator cannot transpile most gates (except for barrier and id) when using the parameter scheduling_method='asap'. The following error message is displayed:
qiskit.transpiler.exceptions.TranspilerError: 'Duration of x on qubits [0] is not found.'

This is because the node.op.duration for these gates is set to None, whereas barrier and id gates have a duration value of 0.
How can we reproduce the issue?
from qiskit.circuit import QuantumCircuit
from qiskit import transpile

qc = QuantumCircuit(1)
# qc.id(0)      # The value of node.op.duration is 0
# qc.barrier()  # The value of node.op.duration is 0
qc.x(0)         # The value of node.op.duration is None
qc.measure_all()# The value of node.op.duration is None

from qiskit_aer import AerSimulator, QasmSimulator
backend1 = AerSimulator() # Failed
# backend2 = QasmSimulator() # Failed

qc1 = transpile(qc, optimization_level=1, backend=backend1, scheduling_method='asap')

What should happen?
Assigning default values to all gates would be better.

The issue arises because the AerSimulator and QasmSimulator backends do not provide duration information for certain gates, leading to a TranspilerError when attempting to schedule a circuit with the scheduling_method='asap'. The InstructionDurations class is used to manage gate durations, and it requires duration information for all gates to schedule them correctly.
To address this issue, we can modify the InstructionDurations class to assign default duration values to gates that do not have specified durations. This will allow the transpiler to schedule circuits using the asap method without encountering errors. Here's a suggested approach:

Modify InstructionDurations class: Update the get method to return a default duration for gates that do not have a specified duration.

Add a default duration: Define a default duration value (e.g., 1 dt) for gates that do not have a specified duration.

Here's the proposed code change:
# In qiskit.transpiler.instruction_durations.py

class InstructionDurations:
    # Existing code...

    def __init__(
        self, instruction_durations: "InstructionDurationsType" | None = None, dt: float = None
    ):
        # Existing code...
        self.default_duration = 1  # Default duration in dt

    def get(
        self,
        inst: str | qiskit.circuit.Instruction,
        qubits: int | list[int],
        unit: str = "dt",
        parameters: list[float] | None = None,
    ) -> float:
        """Get the duration of the instruction with the name, qubits, and parameters.

        Some instructions may have a parameter dependent duration.

        Args:
            inst: An instruction or its name to be queried.
            qubits: Qubit indices that the instruction acts on.
            unit: The unit of duration to be returned. It must be 's' or 'dt'.
            parameters: The value of the parameters of the desired instruction.

        Returns:
            float|int: The duration of the instruction on the qubits.

        Raises:
            TranspilerError: No duration is defined for the instruction.
        """
        if isinstance(inst, Barrier):
            return 0
        elif isinstance(inst, Delay):
            return self._convert_unit(inst.duration, inst.unit, unit)

        if isinstance(inst, Instruction):
            inst_name = inst.name
        else:
            inst_name = inst

        if isinstance(qubits, int):
            qubits = [qubits]

        try:
            return self._get(inst_name, qubits, unit, parameters)
        except TranspilerError:
            # Return default duration if not found
            return self.default_duration if unit == "dt" else self._convert_unit(self.default_duration, "dt", unit)

    # Existing code...

Explanation:

Default Duration: A default duration of 1 dt is added to handle gates without specified durations.
Fallback Mechanism: In the get method, if a TranspilerError is raised (indicating no duration is found), the method will return the default duration instead.

This change should allow circuits to be scheduled using the asap method even if some gates do not have explicit duration values provided by the backend. Ensure that this change aligns with the design and requirements of the Qiskit project before implementing it in a production environment.

Since these are simulators and don't have a concept of gate durations, could fake backends be used to emulate a real device?

Yes, fake backends can be used to emulate real devices and provide gate duration information for simulators like AerSimulator and QasmSimulator. The fake backends in Qiskit are designed to mimic the behavior of real quantum devices, including gate durations, noise models, and other properties. This makes them useful for testing and development purposes.
 Qiskit provides a variety of fake backends with different configurations and properties.

Use the Fake Backend for Transpilation: Transpile your quantum circuit using the selected fake backend. This will ensure that the transpiler considers the gate durations and other properties of the fake backend during the transpilation process.

Run the Transpiled Circuit on a Simulator: After transpiling the circuit with the fake backend, you can run it on a simulator like AerSimulator or QasmSimulator. The simulator will use the transpiled circuit, which includes the gate durations and other considerations from the fake backend.

Here's an example of how you can use a fake backend for this purpose:
from qiskit import QuantumCircuit, transpile
from qiskit.providers.fake_provider import FakeVigo  # Import a specific fake backend
from qiskit_aer import AerSimulator

# Create a quantum circuit
qc = QuantumCircuit(2)
qc.h(0)
qc.cx(0, 1)
qc.measure_all()

# Select a fake backend
fake_backend = FakeVigo()

# Transpile the circuit for the fake backend
transpiled_circuit = transpile(qc, backend=fake_backend, scheduling_method='asap')

# Run the transpiled circuit on a simulator
simulator = AerSimulator()
job = simulator.run(transpiled_circuit)
result = job.result()
counts = result.get_counts()

# Print the result
print(counts)

Explanation:

FakeVigo: This is an example of a fake backend that emulates the IBM Vigo device. You can choose other fake backends based on your needs.
Transpilation: The circuit is transpiled using the fake backend, which includes gate durations and other properties.
Simulation: The transpiled circuit is then run on an AerSimulator, which does not inherently have gate durations, but the transpiled circuit includes this information from the fake backend.

By using fake backends, you can effectively emulate real device behavior for testing and development with simulators.


How to get root access in SageMaker Studio Lab

Hi, I am trying to install some libraries in Studio Lab which requires root privileges.
Below I have run whoami to check if I am root user. (I am not as it should print 'root' in case of root user)

Below you can see the error on running sudo: ->  bash: sudo: command not found

I followed this link to install sudo.
On running su - , It asks for the password, but we don't have any password for Studio Lab.

Can anyone tell how to get root access or a way to install libraries which require root access/(or packages which installs using sudo).
Please let me know if my query is not clear.

Thank you for trying Studio Lab. Now Studio Lab does not allow sudo (similar issue: https://github.com/aws/studio-lab-examples/issues/40#issuecomment-1005305538). You can use pip and conda instead. Please refer the following issue.
What software do you try to install? Some libraries will be available in conda-forge .

Thanks for the reply, I will try to explain the issue.
I am trying to run bipedal robot from Open-ai gym.
!pip install gym
!apt-get update
!apt-get -qq -y install xvfb freeglut3-dev ffmpeg> /dev/null
!apt-get install xvfb
!pip install pyvirtualdisplay
!pip -q install pyglet
!pip -q install pyopengl
!apt-get install swig
!pip install box2d box2d-kengz
!pip install pybullet

These are the libraries which I need to install for the code to work.
It works fine on google-colab: (screenshot below)

But it throws error when I run it on SageMaker Studio Lab: (screenshot below)

Error Log (I have made gym_install.sh file which installs everything described above, I am running it below.):
(AKR_env) studio-lab-user@default:~/sagemaker-studiolab-notebooks/GM_/ARS_src$ sh gym_install.sh
Requirement already satisfied: gym in /home/studio-lab-user/.conda/envs/AKR_env/lib/python3.10/site-packages (0.24.1)
Requirement already satisfied: gym-notices>=0.0.4 in /home/studio-lab-user/.conda/envs/AKR_env/lib/python3.10/site-packages (from gym) (0.0.7)
Requirement already satisfied: numpy>=1.18.0 in /home/studio-lab-user/.conda/envs/AKR_env/lib/python3.10/site-packages (from gym) (1.22.4)
Requirement already satisfied: cloudpickle>=1.2.0 in /home/studio-lab-user/.conda/envs/AKR_env/lib/python3.10/site-packages (from gym) (2.1.0)
Reading package lists... Done
E: List directory /var/lib/apt/lists/partial is missing. - Acquire (13: Permission denied)
E: Could not open lock file /var/lib/dpkg/lock-frontend - open (13: Permission denied)
E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), are you root?
E: Could not open lock file /var/lib/dpkg/lock-frontend - open (13: Permission denied)
E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), are you root?
Requirement already satisfied: pyvirtualdisplay in /home/studio-lab-user/.conda/envs/AKR_env/lib/python3.10/site-packages (3.0)
E: Could not open lock file /var/lib/dpkg/lock-frontend - open (13: Permission denied)
E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), are you root?
Collecting box2d
  Using cached Box2D-2.3.2.tar.gz (427 kB)
  Preparing metadata (setup.py) ... done
Collecting box2d-kengz
  Using cached Box2D-kengz-2.3.3.tar.gz (425 kB)
  Preparing metadata (setup.py) ... done
Building wheels for collected packages: box2d, box2d-kengz
  Building wheel for box2d (setup.py) ... error
  error: subprocess-exited-with-error

  × python setup.py bdist_wheel did not run successfully.
  │ exit code: 1
  ╰─> [16 lines of output]
      Using setuptools (version 62.3.3).
      running bdist_wheel
      running build
      running build_py
      creating build
      creating build/lib.linux-x86_64-cpython-310
      creating build/lib.linux-x86_64-cpython-310/Box2D
      copying library/Box2D/Box2D.py -> build/lib.linux-x86_64-cpython-310/Box2D
      copying library/Box2D/__init__.py -> build/lib.linux-x86_64-cpython-310/Box2D
      creating build/lib.linux-x86_64-cpython-310/Box2D/b2
      copying library/Box2D/b2/__init__.py -> build/lib.linux-x86_64-cpython-310/Box2D/b2
      running build_ext
      building 'Box2D._Box2D' extension
      swigging Box2D/Box2D.i to Box2D/Box2D_wrap.cpp
      swig -python -c++ -IBox2D -small -O -includeall -ignoremissing -w201 -globals b2Globals -outdir library/Box2D -keyword -w511 -D_SWIG_KWARGS -o Box2D/Box2D_wrap.cpp Box2D/Box2D.i
      error: command 'swig' failed: No such file or directory
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for box2d
  Running setup.py clean for box2d
  Building wheel for box2d-kengz (setup.py) ... error
  error: subprocess-exited-with-error

  × python setup.py bdist_wheel did not run successfully.
  │ exit code: 1
  ╰─> [16 lines of output]
      Using setuptools (version 62.3.3).
      running bdist_wheel
      running build
      running build_py
      creating build
      creating build/lib.linux-x86_64-cpython-310
      creating build/lib.linux-x86_64-cpython-310/Box2D
      copying library/Box2D/__init__.py -> build/lib.linux-x86_64-cpython-310/Box2D
      copying library/Box2D/Box2D.py -> build/lib.linux-x86_64-cpython-310/Box2D
      creating build/lib.linux-x86_64-cpython-310/Box2D/b2
      copying library/Box2D/b2/__init__.py -> build/lib.linux-x86_64-cpython-310/Box2D/b2
      running build_ext
      building 'Box2D._Box2D' extension
      swigging Box2D/Box2D.i to Box2D/Box2D_wrap.cpp
      swig -python -c++ -IBox2D -small -O -includeall -ignoremissing -w201 -globals b2Globals -outdir library/Box2D -keyword -w511 -D_SWIG_KWARGS -o Box2D/Box2D_wrap.cpp Box2D/Box2D.i
      error: command 'swig' failed: No such file or directory
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for box2d-kengz
  Running setup.py clean for box2d-kengz
Failed to build box2d box2d-kengz
Installing collected packages: box2d-kengz, box2d
  Running setup.py install for box2d-kengz ... error
  error: subprocess-exited-with-error

  × Running setup.py install for box2d-kengz did not run successfully.
  │ exit code: 1
  ╰─> [18 lines of output]
      Using setuptools (version 62.3.3).
      running install
      /home/studio-lab-user/.conda/envs/AKR_env/lib/python3.10/site-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
        warnings.warn(
      running build
      running build_py
      creating build
      creating build/lib.linux-x86_64-cpython-310
      creating build/lib.linux-x86_64-cpython-310/Box2D
      copying library/Box2D/__init__.py -> build/lib.linux-x86_64-cpython-310/Box2D
      copying library/Box2D/Box2D.py -> build/lib.linux-x86_64-cpython-310/Box2D
      creating build/lib.linux-x86_64-cpython-310/Box2D/b2
      copying library/Box2D/b2/__init__.py -> build/lib.linux-x86_64-cpython-310/Box2D/b2
      running build_ext
      building 'Box2D._Box2D' extension
      swigging Box2D/Box2D.i to Box2D/Box2D_wrap.cpp
      swig -python -c++ -IBox2D -small -O -includeall -ignoremissing -w201 -globals b2Globals -outdir library/Box2D -keyword -w511 -D_SWIG_KWARGS -o Box2D/Box2D_wrap.cpp Box2D/Box2D.i
      error: command 'swig' failed: No such file or directory
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: legacy-install-failure

× Encountered error while trying to install package.
╰─> box2d-kengz

note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.
Requirement already satisfied: pybullet in /home/studio-lab-user/.conda/envs/AKR_env/lib/python3.10/site-packages (3.2.5)
(AKR_env) studio-lab-user@default:~/sagemaker-studiolab-notebooks/GM_/ARS_src$

To be specific I am getting error in this line:
(AKR_env) studio-lab-user@default:~/sagemaker-studiolab-notebooks/GM_/ARS_src$ apt-get install xvfb
E: Could not open lock file /var/lib/dpkg/lock-frontend - open (13: Permission denied)
E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), are you root?

So as mentioned by you I tried to find xvfb in conda-forge, but couldn't find it.
There are wrapper xvfb on conda-forge installing them didn't help with the error.
(AKR_env) studio-lab-user@default:~/sagemaker-studiolab-notebooks/GM_/ARS_src$ python bipedal_baseline.py
Traceback (most recent call last):
  File "/home/studio-lab-user/sagemaker-studiolab-notebooks/GM_/ARS_src/bipedal_baseline.py", line 216, in <module>
    display = Display(visible=0, size=(1024, 768))
  File "/home/studio-lab-user/.conda/envs/AKR_env/lib/python3.10/site-packages/pyvirtualdisplay/display.py", line 54, in __init__
    self._obj = cls(
  File "/home/studio-lab-user/.conda/envs/AKR_env/lib/python3.10/site-packages/pyvirtualdisplay/xvfb.py", line 44, in __init__
    AbstractDisplay.__init__(
  File "/home/studio-lab-user/.conda/envs/AKR_env/lib/python3.10/site-packages/pyvirtualdisplay/abstractdisplay.py", line 85, in __init__
    helptext = get_helptext(program)
  File "/home/studio-lab-user/.conda/envs/AKR_env/lib/python3.10/site-packages/pyvirtualdisplay/util.py", line 13, in get_helptext
    p = subprocess.Popen(
  File "/home/studio-lab-user/.conda/envs/AKR_env/lib/python3.10/subprocess.py", line 966, in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
  File "/home/studio-lab-user/.conda/envs/AKR_env/lib/python3.10/subprocess.py", line 1842, in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'Xvfb'
(AKR_env) studio-lab-user@default:~/sagemaker-studiolab-notebooks/GM_/ARS_src$

Thank you for sharing the error message. Studio Lab does not allow apt install so that the gym_install.sh does not work straightly. We have to prepare the environment by conda and pip.
At first we can install swig from conda. We can not install xvfb from conda, is this necessary to run the code?

Basically I have to capture the video output using Display of pyvirtualdisplay library. Everything else works.
As you can see display = Display(visible=0, size=(1024, 768)) this line throws error  FileNotFoundError: [Errno 2] No such file or directory: 'Xvfb' , so I am trying to install Xvfb.
Thanks,

@ar8372 Sorry for the late reply. I raised the #124 to work OpenAI Gym in Studio Lab. Please comment to #124 if you have additional information. We need your insight to solve the issue. If you do not mind, please close this issue to suppress the duplication of issues.


x/leverage: Tracking Issue

A rough list of functional items that need to be completed for Umee's leveraging functionality to be considered "complete":

[x] The x/leverage module should contain a registry of supported tokens for users to borrow and lend
[x] The x/leverage module should be able to get price information of all tokens in the token registry via a price feed oracle
[x] A user should be able to lend a token that exists in the registry of allowed tokens
[x] A user should be able to enable or disable a lent token as collateral that contributes to the user's total borrowing power so long as that token is enabled to be used as collateral by the x/leverage module
[x] A user should be able to borrow a token from the registry of allowed tokens up to their total borrowing power
[ ] A user should accrue LP incentives for both borrowing and lending
[x] A user should be able to reclaim their lent tokens along with any interest and LP incentives accrued
[x] A user should be able to repay their borrow position along with any interest accrued
[x] Stakeholders should be able to update the token registry via governance

For Admin Use

[ ] Not duplicate issue
[ ] Appropriate labels applied
[ ] Appropriate contributors tagged
[ ] Contributor assigned/self-assigned

The only thing missing here is LP incentives, which we can track in a separate issue. Closing this 👍


Python module not found

I've attempted to benchmark the model using evaluate.lua script, but when I try to run the evaluate command, I get the error down below. I have installed all the libraries/packages as according to the links in the readme except opencv from VisionLabs (https://github.com/VisionLabs/torch-opencv) and lunatic python from OddSource (https://github.com/OddSource/lunatic-python). The lunatic python linked in the readme does not compile. Does anyone know what is going wrong?
/home/joacho/torch/install/bin/luajit: /home/joacho/torch/install/share/lua/5.1/trepl/init.lua:389: /home/joacho/torch/install/share/lua/5.1/trepl/init.lua:389: module 'python' not found:No LuaRocks module found for python
no field package.preload['python']
no file '../util/lua/python.lua'
no file '/home/joacho/.luarocks/share/lua/5.1/python.lua'
no file '/home/joacho/.luarocks/share/lua/5.1/python/init.lua'
no file '/home/joacho/torch/install/share/lua/5.1/python.lua'
no file '/home/joacho/torch/install/share/lua/5.1/python/init.lua'
no file './python.lua'
no file '/home/joacho/torch/install/share/luajit-2.1.0-beta1/python.lua'
no file '/usr/local/share/lua/5.1/python.lua'
no file '/usr/local/share/lua/5.1/python/init.lua'
no file '/home/joacho/.luarocks/lib/lua/5.1/python.so'
no file '/home/joacho/torch/install/lib/lua/5.1/python.so'
no file '/home/joacho/torch/install/lib/python.so'
no file './python.so'
no file '/usr/local/lib/lua/5.1/python.so'
no file '/usr/local/lib/lua/5.1/loadall.so'
stack traceback:
[C]: in function 'error'
/home/joacho/torch/install/share/lua/5.1/trepl/init.lua:389: in function 'require'
evaluate.lua:6: in main chunk
[C]: in function 'dofile'
...acho/torch/install/lib/luarocks/rocks/trepl/scm-1/bin/th:150: in main chunk
[C]: at 0x00405d50

I am not why lunatic-python doesn't work on your side. But I think one workaround is to comment out the "require python" statement in floorplan_utils.lua and change py.execute calls to some other ways of calling python in lua. I guess io.popen('python *.py') should work.
https://github.com/art-programmer/FloorplanTransformation/blob/144fcd4553b3b837d74c1ef617b2d662e8fb7b64/util/lua/floorplan_utils.lua#L4588

I have same problem

work on ubuntu 18.04

I encountered the same problem when running the loadModel, and I solved it with your method @art-programmer thank you

you can try it
requird ('python')
modify
requird ('lua -python')

To resolve this, after you executed pip install . inside the cloned https://github.com/OddSource/lunatic-python repository, search for the file lua-python.so inside your python installation's "site-packages" directory, then copy it to one of the Lua paths and rename to "python.so".


Sharing CORS config across all virtual_hosts

Short Description
I currently specify the same CORS config under each virtual_host. Is it possible to set the CORS config once and share it across all virtual_hosts?
Extended Description
I'm currently using Envoy to route requests to gRPC services based on the host header.
Here's the relevant part of my config, under static_resources.listeners[].filter_chains.filters['envoy.http_connection_manager'].config.route_config:
virtual_hosts:
  - name: server1
    domains:
      - $SERVER1_EXTERNAL_HOST
    routes:
      - match: { prefix: "/" }
        route:
          cluster: server1
          max_grpc_timeout: 0s
    cors:
      allow_origin_string_match:
        safe_regex:
          google_re2:
            max_program_size: 100
          regex: ".*"
      allow_methods: GET, PUT, DELETE, POST, OPTIONS
      allow_headers: keep-alive,user-agent,cache-control,content-type,content-transfer-encoding,authorization,x-accept-content-transfer-encoding,x-accept-response-streaming,x-user-agent,x-grpc-web,grpc-timeout
      max_age: "1728000"
      expose_headers: grpc-status,grpc-message
  - name: server2
    domains:
      - $SERVER2_EXTERNAL_HOST
    routes:
      - match: { prefix: "/" }
        route:
          cluster: server2
          max_grpc_timeout: 0s
    cors:
      allow_origin_string_match:
        safe_regex:
          google_re2:
            max_program_size: 100
          regex: ".*"
      allow_methods: GET, PUT, DELETE, POST, OPTIONS
      allow_headers: keep-alive,user-agent,cache-control,content-type,content-transfer-encoding,authorization,x-accept-content-transfer-encoding,x-accept-response-streaming,x-user-agent,x-grpc-web,grpc-timeout
      max_age: "1728000"
      expose_headers: grpc-status,grpc-message

I use the same CORS config for both services -- is it possible to specify that config once somewhere else and have it apply for all virtual_hosts?

cc @dschaller @derekargueta for comment.

This would be achievable by moving the CORS to per_filter_config, which could then be configured at the virtual host or route level.
My initial attempt if anyone wants to revive it, my plate is a little full at the moment: https://github.com/envoyproxy/envoy/pull/9324

I'm happy to give it a shot but not exactly sure what's going on. What needs to be done?

I ended up using YAML anchors.


scriptname typo

Hi, I was interested in using the BOINC script to contribute to the Seti@Home project.
Your setup instructions are pointing to:
https://raw.github.com/tdulcet/Distributed-Computing-Scripts/master/boinc.sh
But your scriptname is in fact bonic.sh.
Questions:
Does it work on Centos 7?
What URL should I provide for Seti@Home? This: https://setiathome.berkeley.edu/ ?
Regards Wim.

Thanks for pointing out the typo! I will fix that.
There are more detailed instructions for the script on the bottom of this page. Click on "Linux Instructions" under "World Community Grid". The instructions are for World Community Grid, but it also explains how to use the script with any project that uses BOINC.

Does it work on Centos 7?

No, it currently only works on Linux distributions that use the apt package manager. Centos 7 uses yum. The script is really designed for installing on a headless computer or server. If this is the case, then you can replace these two lines: https://github.com/tdulcet/Distributed-Computing-Scripts/blob/b0cb86fed54e5ac59153d1cd93061e185c3877ae/bonic.sh#L36-L37
with:
sudo yum -y update
sudo yum -y install boinc-client boinc-manager

and it should work, although I do not have a Centos 7 system to test it on.

What URL should I provide for Seti@Home? This: https://setiathome.berkeley.edu/ ?

Yes.

Thank you for the additional information.
The boinc-client and boinc-manager are available in the epel repo.
So I think it will work with changing the script as you suggested to:
sudo yum -y update
sudo yum -y install boinc-client boinc-manager
Thanks and regards Wim.

Typo has been fixed in https://github.com/tdulcet/Distributed-Computing-Scripts/commit/040255563bdc737ebae6f5b694aa748b882cdd2b.


python312Packages.flake8-bugbear: 24.10.31 -> 24.12.12

Automatic update generated by nixpkgs-update tools. This update was made based on information from passthru.updateScript.
meta.description for python312Packages.flake8-bugbear is: Plugin for Flake8 to find bugs and design problems
meta.homepage for python312Packages.flake8-bugbear is: https://github.com/PyCQA/flake8-bugbear
meta.changelog for python312Packages.flake8-bugbear is: https://github.com/PyCQA/flake8-bugbear/blob/24.12.12/README.rst#change-log
Updates performed

Ran passthru.UpdateScript

To inspect upstream changes
Impact
Checks done

built on NixOS
The tests defined in passthru.tests, if any, passed
found 24.12.12 with grep in /nix/store/ap2r1cc219lhd468x0m3v90jqml0zjkw-python3.12-flake8-bugbear-24.12.12
found 24.12.12 in filename of file in /nix/store/ap2r1cc219lhd468x0m3v90jqml0zjkw-python3.12-flake8-bugbear-24.12.12

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

3 total rebuild path(s)

3 package rebuild(s)

First fifty rebuilds by attrpath

python311Packages.flake8-bugbear
python312Packages.flake8-bugbear

Instructions to test this update (click to expand)

Either download from the cache:
nix-store -r /nix/store/ap2r1cc219lhd468x0m3v90jqml0zjkw-python3.12-flake8-bugbear-24.12.12 \
  --option binary-caches 'https://cache.nixos.org/ https://nixpkgs-update-cache.nix-community.org/' \
  --option trusted-public-keys '
  nixpkgs-update-cache.nix-community.org-1:U8d6wiQecHUPJFSqHN9GSSmNkmdiFW7GW7WNAnHW0SM=
  cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
  '

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

Or:
nix build github:r-ryantm/nixpkgs/2839c08b1a0c3cef09fd149b5116f582428fafef#python312Packages.flake8-bugbear

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/ap2r1cc219lhd468x0m3v90jqml0zjkw-python3.12-flake8-bugbear-24.12.12
ls -la /nix/store/ap2r1cc219lhd468x0m3v90jqml0zjkw-python3.12-flake8-bugbear-24.12.12/bin

Pre-merge build results
We have automatically built all packages that will get rebuilt due to
this change.
This gives evidence on whether the upgrade will break dependent packages.
Note sometimes packages show up as failed to build independent of the
change, simply because they are already broken on the target branch.
nixpkgs-review result
Generated using nixpkgs-review.
Command: nixpkgs-review

x86_64-linux

:white_check_mark: 4 packages built:

python311Packages.flake8-bugbear
python311Packages.flake8-bugbear.dist
python312Packages.flake8-bugbear
python312Packages.flake8-bugbear.dist

Maintainer pings
cc @newAM for testing.

[!TIP]
As a maintainer, if your package is located under pkgs/by-name/*, you can comment @NixOS/nixpkgs-merge-bot merge to automatically merge this update using the nixpkgs-merge-bot.

Add a :+1: reaction to pull requests you find important.

nixpkgs-review result
Generated using nixpkgs-review.
Command: nixpkgs-review pr 366406

x86_64-linux

:white_check_mark: 4 packages built:

python311Packages.flake8-bugbear
python311Packages.flake8-bugbear.dist
python312Packages.flake8-bugbear
python312Packages.flake8-bugbear.dist

nixpkgs-review result
Generated using nixpkgs-review.
Command: nixpkgs-review pr 366406

x86_64-linux

:white_check_mark: 4 packages built:

python311Packages.flake8-bugbear
python311Packages.flake8-bugbear.dist
python312Packages.flake8-bugbear
python312Packages.flake8-bugbear.dist

nixpkgs-review result
Generated using nixpkgs-review.
Command: nixpkgs-review pr 366406

aarch64-darwin

:white_check_mark: 4 packages built:

python311Packages.flake8-bugbear
python311Packages.flake8-bugbear.dist
python312Packages.flake8-bugbear
python312Packages.flake8-bugbear.dist


[#55] fix potential memory leak from end span

Issue
fix https://github.com/pinpoint-apm/pinpoint-go-agent/issues/55
Description
A potential infinite loop can cause a memory leak when the EndSpan called with SpanEvent stacks.

Thank you very much.


Disabling the Helm ES chart tests

By adding a false value to the elastic search value at the top file we can prevent the 3rd party Elasticsearch chart's test from running. The test for the chart doesn't truly test what we want from our Elasticsearch pod and requires 2 pods to be created to successfully run. Disabling it became necessary  for our custom helm tests to run  as the ES test was failing first causing all other tests to not run. This should now allow the command helm test <cfgov deployment nam> to run only the tests we make for our deployments.
Note that this value could be overridden at the /overrides/ directory in the  values file for any environment should we need to bring it back.

Additions

test: false

Changes

The ES chart tests will no longer run as a default

How to test this PR

Run the helm-install script to make sure your deployment is updated 2.
run the command helm test <your deployment name>
There should be only the smoke test pod running

Screenshots

Notes and todos

Checklist

[ ] PR has an informative and human-readable title

PR titles are used to generate the change log in releases; good ones make that easier to scan.
Consider prefixing, e.g., "Mega Menu: fix layout bug", or "Docs: Update Docker installation instructions".

[ ] Changes are limited to a single goal (no scope creep)
[ ] Code follows the standards laid out in the CFPB development guidelines
[ ] Future todos are captured in comments and/or tickets
[ ] Project documentation has been updated, potentially one or more of:

This repo’s docs (edit the files in the /docs folder) – for basic, close-to-the-code docs on working with this repo
CFGOV/platform wiki on GHE – for internal CFPB developer guidance
CFPB/hubcap wiki on GHE – for internal CFPB design and content guidance

Front-end testing

Browser testing
Visually tested in the following supported browsers:

[ ] Firefox
[ ] Chrome
[ ] Safari
[ ] Edge 18 (the last Edge prior to it switching to Chromium)
[ ] Internet Explorer 11 and 8 (via emulation in 11's dev tools)
[ ] Safari on iOS
[ ] Chrome on Android

Accessibility

[ ] Keyboard friendly (navigable with tab, space, enter, arrow keys, etc.)
[ ] Screen reader friendly
[ ] Does not introduce new errors or warnings in WAVE

Other

[ ] Is useable without CSS
[ ] Is useable without JS
[ ] Does not introduce new lint warnings
[ ] Flexible from small to large screens

Closing in favor of #7207


bugfix: should close logger at the end, otherwise, may lost log during close Mosn instance, fix #1554.

Issues associated with this PR
#1554
Solutions
Move the logger.CloseAll to the end, after stm.WaitFinish.
UT result
Passed.
Benchmark
The code does not involve the processing of every request, no need benchmark.
Code Style

Make sure Goimports has run
Show Golint result

#1654


chore: update jest usage stats on the website

Summary

Updates the jest usage stats on the website.
Fixes #8635
Test plan
N/A

cc @SimenB

Also, aren't contributors allowed to submit expenses on open-collective :thinking:

Also, aren't contributors allowed to submit expenses on open-collective :thinking:


feat(mui): add circular progress to

PR Checklist
Please check if your PR fulfills the following requirements:

[x] The commit message follows our guidelines: https://refine.dev/docs/guides-concepts/contributing/#commit-convention

Bugs / Features

[x] Related issue(s) linked
[ ] Tests for the changes have been added
[ ] Docs have been added / updated
[x] Changesets have been added https://refine.dev/docs/guides-concepts/contributing/#creating-a-changeset

What is the current behavior?
  in MUI doesn't show loading spinner
What is the new behavior?
Added loading spinner.
fixes #5668

Notes for reviewers

Hello. This is my first PR ever. I have added the  along with  to render a loading spinner. Should I add the possibility to pass props to these components?
Also, what color should they be?

Hello. What tests should I add for this change? Similar Antd component does not have any tests regarding the loading state. Should I update the documentation?


Expose SSH agent socket environment to Finch build command

Describe the bug
finch build --ssh default fails with the error message: "make sure SSH_AUTH_SOCK is set", even if the ssh agent is installed on the host machine. The environment variables are not passed to the VM.
Steps to reproduce
$ finch build --ssh default .
error: invalid empty ssh agent socket: make sure SSH_AUTH_SOCK is set
FATA[0000] no image was built
FATA[0000] exit status 1

Expected behavior
Build should be successful for build contexts that require ssh authentication.

Hi, @mharwani
If no one is working on this issue, could you please assign me ?
I would like to work on this issue and investigate how to build it using the --ssh option in finch.

Hi, @mharwani

Setting ssh forwardAgent to true in finch.yaml allows finch build to be run using the --ssh option.
ssh:
...
  forwardAgent: true

The following section details the procedure for setting forwardAgent to true in finch.yaml and executing finch build --ssh default. Following these steps, it is possible to authenticate to github.com using the host's private key. It can also be cloned source code from a private repository in creating a container image.

If forwardAgent is set to null, the following error is expected.
error: invalid empty ssh agent socket: make sure SSH_AUTH_SOCK is set
FATA[0000] no image was built
FATA[0000] exit status 1

Question
On the other hand, could you please let me know if any improvements are needed in that the error message when forwardAgent is set to null is difficult to understand ? We will consider whether it is possible to output error messages that improve usability.
How to build with --ssh option

 Details

How to run finch build --ssh default -t test .

Create the following Dockerfile.

haytok finch [main]
> cat Dockerfile
# syntax=docker/dockerfile:1
FROM alpine

RUN apk add --no-cache openssh-client git

RUN mkdir -p -m 0600 ~/.ssh && ssh-keyscan github.com >> ~/.ssh/known_hosts

RUN --mount=type=ssh ssh -q -T<EMAIL_ADDRESS>2>&1 | tee /hello
# "Welcome to GitLab, @GITLAB_USERNAME_ASSOCIATED_WITH_SSHKEY" should be printed here
# with the type of build progress is defined as `plain`

RUN --mount=type=ssh git clone git@github.com:haytok/my-private-repository.git my-private-repository

This Dockerfile is based on the following page.

https://docs.docker.com/engine/reference/commandline/buildx_build/#ssh

Also, github.com:haytok/my-private-repository.git is my private repository.

Checking the development environment

PC Information (MacBook Pro / Intel CPU)
haytok finch [main]
> uname -r
22.6.0

Working directory
haytok finch [main]
> pwd
/Users/haytok/finch

Changes to finch.yaml
haytok finch [main]
> cat finch.yaml | grep forwardAgent
  # forwardAgent: null
  forwardAgent: true

Build finch from source code by make (ref: CONTRIBUTING.md)

haytok finch [main]
> make -j $(nproc)
go build -ldflags "-X github.com/runfinch/finch/pkg/version.Version=9afc0b9a5e73.modified -X github.com/runfinch/finch/pkg/version.GitCommit=9afc0b9a5e73a3c261aeac87b977e44129b311bd.m" -o /Users/haytok/finch/_output/bin/finch github.com/runfinch/finch/cmd/finch
...
rm /Users/haytok/finch/_output/os/*.yaml.bak

The finch and limactl binaries are created as a result of the build.
haytok finch [main]
> ls _output/bin/
finch
haytok finch [main]
> ls _output/lima/bin/
limactl  qemu-img  qemu-system-x86_64

Run VM

haytok finch [main]
> /Users/haytok/finch/_output/bin/finch vm stop
FATA[0000] the instance "finch" does not exist
haytok finch [main]
> /Users/haytok/finch/_output/bin/finch vm remove
FATA[0000] the instance "finch" does not exist
haytok finch [main]
> /Users/haytok/finch/_output/bin/finch vm status
Nonexistent
haytok finch [main]
> /Users/haytok/finch/_output/bin/finch vm init
INFO[0000] binaries directory doesn't exist
INFO[0000] Requesting root access to finish network dependency configuration
Password:
INFO[0011] sudoers file not found: open /etc/sudoers.d/finch-lima: no such file or directory
INFO[0014] Initializing and starting Finch virtual machine...
INFO[0072] Finch virtual machine started successfully
haytok finch [main]
> /Users/haytok/finch/_output/bin/finch vm status
Running

Check if ssh-agent is running on VM

haytok finch [main]
> LIMA_HOME=/Users/haytok/finch/_output/lima/data/ /Users/haytok/finch/_output/lima/bin/limactl shell finch
[haytok@lima-finch finch]$ echo $SSH_AUTH_SOCK
/tmp/ssh-XXXXI2yIzh/agent.1227

Build Dockerfile using finch build --ssh default

haytok finch [main]
> set "DOCKER_BUILDKIT=1" && ./_output/bin/finch build --ssh default -t test .
[+] Building 7.8s (10/11)
[+] Building 8.0s (11/11) FINISHED
 => [internal] load build definition from Dockerfile                                                                                0.0s
 => => transferring dockerfile: 509B                                                                                0.0s
 => resolve image config for docker.io/docker/dockerfile:1                                                                                1.6s
 => CACHED docker-image://docker.io/docker/dockerfile:1@sha256:ac85f380a63b13dfcefa89046420e1781752bab202122f8f50032edf31be0021           0.0s
 => => resolve docker.io/docker/dockerfile:1@sha256:ac85f380a63b13dfcefa89046420e1781752bab202122f8f50032edf31be0021                      0.0s
 => [internal] load metadata for docker.io/library/alpine:latest                                                                          0.3s
 => [internal] load .dockerignore                                                                                0.0s
 => => transferring context: 2B                                                                                0.0s
 => [stage-0 1/5] FROM docker.io/library/alpine:latest@sha256:eece025e432126ce23f223450a0326fbebde39cdf496a85d8c016293fc851978            0.0s
 => => resolve docker.io/library/alpine:latest@sha256:eece025e432126ce23f223450a0326fbebde39cdf496a85d8c016293fc851978                    0.0s
 => CACHED [stage-0 2/5] RUN apk add --no-cache openssh-client git                                                                        0.0s
 => CACHED [stage-0 3/5] RUN mkdir -p -m 0600 ~/.ssh && ssh-keyscan github.com >> ~/.ssh/known_hosts                                      0.0s
 => CACHED [stage-0 4/5] RUN --mount=type=ssh ssh -q -T<EMAIL_ADDRESS>2>&1 | tee /hello                                                  0.0s
 => [stage-0 5/5] RUN --mount=type=ssh git clone git@github.com:haytok/my-private-repository.git my-private-repository                    3.5s
 => exporting to docker image format                                                                                1.9s
 => => exporting layers                                                                                1.3s
 => => exporting manifest sha256:898f1ed1861c2d1bf3b95054cafec8b853ef26007e1dd11c81d192b8511963fd                                         0.0s
 => => exporting config sha256:bc5177e76040fea118575b4f28ef46223360f4bb4c22ca460f83949c10fd4d4a                                           0.0s
 => => sending tarball                                                                                0.6s
Loaded image: docker.io/library/test:latest

Run a container from the built container image

haytok finch [main]
> /Users/haytok/finch/_output/bin/finch run --rm -it test sh
/ # ls
bin                    etc                    home                   media                  my-private-repository  proc                   run                    srv                    tmp                    var
dev                    hello                  lib                    mnt                    opt                    root                   sbin                   sys                    usr
/ # cat /hello
Hi haytok! You've successfully authenticated, but GitHub does not provide shell access.
/ # ls my-private-repository/
README.md
/ # cat my-private-repository/README.md
# my-private-repository

From the above, finch build can be executed using the --ssh option if ssh forwardAgent in finch.yaml is set to true. it can also be confirmed that the information obtained using the host's private key has been successfully created.

Fixed


Unable to index ILSpy

Reproduction steps:
git clone https://github.com/icsharpcode/ILSpy.git
cd ILSpy && git checkout d5cec0ab3
docker run -v $(pwd):/app sourcegraph/scip-dotnet:latest scip-dotnet index ILSpy.sln

scip-dotnet image hash: a4b074f00f73

There are a few different issues here:

The indexer shouldn't be running for over 10 minutes with no output after the dotnet restore timeout log line
The running dotnet restore command wasn't killed (it's still taking up 1 CPU). Assuming that the indexer is going to read files written by dotnet restore, this creates a race condition, so we should kill it if it times out.
There's only about 200k SLOC of C# in the repo, so it seems like 10 minutes is too long.

When I installed scip-dotnet v0.1.15 globally on Linux (the previous approach was using Docker on macOS), I was able to index ILSpy without issues.


Demo needed

Please add screenshots or gifs etc.

Related question: after I include the snippet in my book.json what kind of behavior should I expect? How should I use this plugin?
I'm not sure if anything is happening...


I need a help for creating a mock test bot with timer using react chatbotify

I need a help for creating a mock test bot with timer using react chatbotify. I am using a set of question with options and correct answer and timer.

Hey @ankitaivd! 😊 For your case, you'll want to use the transition attributes here: https://react-chatbotify.com/docs/api/attributes#transition
Specifically, you want to specify duration and set interruptable to true. Is this sufficient information for you to work with and if not, what other clarifications do you need?

I want to create a mock test with react-chatbotify . this mock-test has timer per question, if the timer is over then next question will show.

I want to create a mock test with react-chatbotify . this mock-test has timer per question, if the timer is over then next question will show.

This is a minimal example of the flow for your use case:
const flow={
    start: {
        message: "This is the first question",
        transition: {duration: 30000, interruptable: true},
        path: "second_question"
    },
    second_question: {
        message: "This is the second question",
        transition: {duration: 30000, interruptable: true},
        path: "third_question"
    }
 }

You can extend to more questions from this 😊

if,  I want add correct answer in a mocktest..Like this are mcq questions so the  flow.
const helpOptions = ["Pending Forms", "Finalized Forms", "Rejected forms", "All Forms Status"];
const actionformOptions = ["General", "Personnel", "Travel", "Grant/Duration", "Contract", "Payments", "Extra Comp", "All"];
const flow={
start: {
message: "This is the first question",
transition: {duration: 30000, interruptable: true},
options: helpOptions,
path: "second_question"
},
second_question: {
message: "This is the second question",
transition: {duration: 30000, interruptable: true},
options: actionformOptions,
path: "start"
}
} .
So, how can add correct answer  that will be show after user  will give his answer. Also
this question static .
How i can create dynamic  unlimited question flow ?
Also, I need audio input option for user input so, i use
audio: {
// Enable audio input
disabled: false,
inputPlaceholder: "Speak now...", // Placeholder text when audio input is enabled
},  as for settings, the audio icon is showing but it is not working. first it is showing audio off.

if, I want add correct answer in a mocktest..Like this are mcq questions so the flow. const helpOptions = ["Pending Forms", "Finalized Forms", "Rejected forms", "All Forms Status"]; const actionformOptions = ["General", "Personnel", "Travel", "Grant/Duration", "Contract", "Payments", "Extra Comp", "All"]; const flow={ start: { message: "This is the first question", transition: {duration: 30000, interruptable: true}, options: helpOptions, path: "second_question" }, second_question: { message: "This is the second question", transition: {duration: 30000, interruptable: true}, options: actionformOptions, path: "start" } } . So, how can add correct answer that will be show after user will give his answer. Also this question static .
How i can create dynamic unlimited question flow ?
Also, I need audio input option for user input so, i use audio: { // Enable audio input disabled: false, inputPlaceholder: "Speak now...", // Placeholder text when audio input is enabled }, as for settings, the audio icon is showing but it is not working. first it is showing audio off.

A little hard to read without formatting but if I'm understanding correctly, this is probably what you want (I left comments where you should fill in your own logic):
const flow = {
    start: {
        message: "This is the first question",
        transition: {
            duration: 30000,
            interruptable: true
        },
        function: (params) => {
            // todo: add logic for isCorrect
            if (isCorrect(params.userInput)) {
                params.injectMessage(params.userInput);
            }
        },
        options: helpOptions,
        path: "second_question"
    },
    second_question: {
        message: "This is the second question",
        transition: {
            duration: 30000,
            interruptable: true
        },
        function: (params) => {
            // todo: add logic for isCorrect
            if (isCorrect(params.userInput)) {
                params.injectMessage(params.userInput);
            }
        },
        options: actionformOptions,
        path: "start"
    }
}

Creation of dynamic unlimited question flow still requires questions to come from somewhere. Are you intending to pull questions from some backend service? If so, you can look here for how to call an API: https://react-chatbotify.com/docs/examples/smart_conversation
If you're looking to connect with a LLM instead, you can look here: https://react-chatbotify.com/docs/examples/llm_conversation
You may also find this helpful: https://react-chatbotify.com/docs/api/params

thank you, but i am using api calling . but  i want design flows like
const flow: any = {
start: {
  message: "Hi I'm your AI-Bot  ",
  transition: { duration: 1000 },
  chatDisabled: true,
  path: "show_options"
},
show_options: {
    message: "Please Enter student Id",

    path: "start_options"
  },

  start_options: {
    component: (params: any) => {
      const userInput: string = params.userInput;
      console.log(userInput);
      setuserid(userInput);

    },
    message: "Please Enter student Name",

    path: "end_options"
  },
  end_options: {
    component: (params: any) => {
      const userInput: string = params.userInput;
      console.log(userInput);
      setname(userInput);

    },

    message: "Please Select the Class",
    options: helpOptions,
      path: "question_options"
  },

  question_options: {
  component: (params: any) => {
    const userInput: string = params.userInput;
    return chatEndPointCallend(params);

},

};
here question_options call the api which will return  a question array  and this question array (where every question has a timer and correct answer)  will  showing in a loop  like
start: {
message: "This is the first question",
transition: {
duration: 30000,
interruptable: true
},
function: (params) => {
// todo: add logic for isCorrect
if (isCorrect(params.userInput)) {
params.injectMessage(params.userInput);
}
},
options: helpOptions,
path: "second_question"
},
second_question: {
message: "This is the second question",
transition: {
duration: 30000,
interruptable: true
},
function: (params) => {
// todo: add logic for isCorrect
if (isCorrect(params.userInput)) {
params.injectMessage(params.userInput);
}
},
options: actionformOptions,
path: "start"
}

Hey @ankitaivd, you probably want to loop question_options in your case. Something like this:
question_options: {
  options (params: Params) => {
    // do whatever else you want with the user input
    const userInput: string = params.userInput;
    // question is from the picked random question
    const question = ...
    // send the query to user
    params.injectMessage(result[0].query)
    // send the options
    return result[0].options
  },
  transition: {duration: result[0].timer, interruptable: true},
  function: () => {
    // logic to pick a random question after every answer
  },
  path: question_options,
}

Perhaps you can call your endpoint to fetch questions outside of the flow, assuming it always returns a finite set of dynamic questions. No point calling the endpoint each time. Though I'll be wary of including answers directly inside the return result, and consider validating answer server-side instead but that's not very relevant for the issue here.


Add start method to node

GW ! It compiles, but still too much commented out code. Do we really need to keep it in git ?

We won't need that commented out code once the refactoring is done but we do need to keep it for the time being and I wanted to pipe these changes in smaller PRs. LMK what's the right size we'd be comfortable with so I can adjust these so as not to merge too much deletable code.


This doc does not include Python SDK instructions

Would be great to have all the auth mechanisms centralized into a single doc.

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

ID: 791277a5-0623-57d1-3f3a-1424acc9cb6f
Version Independent ID: 682f3fa1-7c23-ca12-e79e-7cde1ee7dad2
Content: Use Microsoft Entra ID for authentication - Azure Database for PostgreSQL - Flexible Server
Content Source: articles/postgresql/flexible-server/how-to-configure-sign-in-azure-ad-authentication.md
Service: postgresql
Sub-service: flexible-server
GitHub Login: @kabharati
Microsoft Alias: kabharati

@ericthomas1
Thank you for bringing this to our attention.
I've delegated this to content author @kabharati, who will review it and offer their insightful opinions.

@kabharati
Please review it.

#please-close


How to configure gulp.js to get images to show

I'm feeling daft again.
I see that the gulp file points the images task to src(config.src.images). In my file, the value of config.src.images was originally './src/toolkit/assets/img/**/*'.
I do have such a directory set up, but I am not getting the images to render.
Any hints on what I might be doing wrong here?

Sorry to open this thread back up but I can't seem to get the images to work either. I've tried everything mentioned here. I've created a folder in src/toolkit/assets/images and placed my images there. I have not been able to get them to display properly. Any suggestion on what I am doing wrong?

are you seeing errors?

When I run npm run I do not see any errors.

I also had this problem, with no error given. After some investigation, I noticed the imagemin function did it. I commented it out in my project and all was working fine. I don't know the exact problem, still need to check out.
// images
gulp.task('images', ['favicon'], function () {
	return gulp.src(config.src.images)
		//.pipe(imagemin()) // This is causing issues with images!!! TODO: Check this!
		.pipe(gulp.dest(config.dest + '/toolkit/images'));
});

I can't reproduce this issue. I just started with a clean instance from master and it worked.
Are images dumping out to the dist folder? That is the webroot so reference files accordingly.
<img src="toolkit/images/chicken.jpg" alt="">

Luke, thanks for your reply. I am not 100% sure why it wasn't building the images folder, however, I recreated it and it seems to be working as expected.


Setting up an action for package cleaning

This task consists on migrating the ad-hoc script we have on one of our private repositories for cleaning up GH's package registry (ghcr.io). It should be relatively straightforward to set this up... Pinging @greschd for visibility so that he can keep track of completion status.

Starting to work on this =)

Hi  @greschd! Action has been merged to main. It is being used in PyGeometry already - and its working fine =)
See: https://github.com/pyansys/pygeometry/blob/main/.github/workflows/package_cleanup.yml
In our case we use the "except certain tags" version of the action. There is also an "untagged" version here: https://actions.docs.pyansys.com/dev/housekeeping-actions/index.html#package-cleanup-of-untagged-versions
Let me know if you have any questions!


Import profiler.proto into this project

As far as I can tell, profile.proto is a subset of profiler.proto. Can we drop profile.proto and instead vendor in profiler.proto instead?
/cc @aalexand

I don't think profile.proto, aka serialization format for the profiles is a subset of profiler.proto, aka Stackdriver Profiler API definition, am I missing something?
I thought the discussion in #16 was about avoiding having to have the RequestProfile structure which is basically a mirror of what's defined in the API proto.

I didn't take an exhaustive look, but the js/ts files I generated from profiler.proto seems to have quite a few definitions from profile.proto already. I'll take a deeper look today.

Nevermind. This was a result of typos on my part. My profiler.d.ts was actually profile.d.ts.

@ofrobots Yep, the names are unfortunately impractically similar...


Add assume_noise_free to usart configuration

Effectively setting cr3.onebit

bors r+

I made https://github.com/embassy-rs/stm32-data/pull/191 to fix the build error

stm32-metapac v8 released.
Also, USARTv1 doesn't have that bit, you'll have to cfg it out.

oh oops, you'll need to update stm32-metapac in Cargo.toml.
bors cancel
bors d+

@Dirbaio  there are now completely unrelated build errors, any ideas?

could you please do the fixups for the unrelated PAC changes? I know it's unrelated, sorry about that, but it's the way to get this unstuck :(

I already did - see #1485

bors r+

bors r+


relabelling: cache the result of relabeling functions

I think this can totally be a follow up, but relabel configs are pure functions meaning as long as relabel configs don’t change the produced labelset doesn’t change. Therefore for any given process we need to only relabel once and can from there cache the result.
Originally posted by @brancz in https://github.com/parca-dev/parca-agent/pull/887#pullrequestreview-1137015174
cc @maxbrunet

Excellent idea! Invalidation would need to happen on config reloads and on updates from the service discovery


Collections of Awesome Segment-anything Extensions/Apps (AutoLabel, instance&semantic seg, obj detection, generation, inpainting, tracking, anomaly detection, refer Segmentation, foreground removal, ...)

Hi! I established a project that extends Segment-anything for diverse applications and extensions (https://github.com/JerryX1110/awesome-segment-anything-extensions). Welcome for any discussion and contributions~ : )

Thanks for sharing!


Wrong info of an item

Hi, the author list of item 3 in Misc2024 is wrong.
Here is the paper https://arxiv.org/abs/2401.11535.
Meanwhile, we also have the updates on the title and the abstract.
Could you kindly update the info? Thanks!

Corrected authors and updated, sorry about that!


cmd/compile: :1: internal compiler error: dictionary for anyArr[go.shape.*uint8_0].Len should only use concrete types: go.shape.*uint8_0

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

$ go version
go version go1.18.10 linux/amd64

Does this issue reproduce with the latest release?
it happend only 1.18.
1.19,1.20 are normal.
What operating system and processor architecture are you using (go env)?
go env Output
$ go env
GO111MODULE=""
GOARCH="amd64"
GOBIN=""
GOCACHE="/root/.cache/go-build"
GOENV="/root/.config/go/env"
GOEXE=""
GOEXPERIMENT=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOINSECURE=""
GOMODCACHE="/go/pkg/mod"
GONOPROXY=""
GONOSUMDB=""
GOOS="linux"
GOPATH="/go"
GOPRIVATE=""
GOPROXY="https://goproxy.cn,direct"
GOROOT="/usr/local/go"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/usr/local/go/pkg/tool/linux_amd64"
GOVCS=""
GOVERSION="go1.18.10"
GCCGO="gccgo"
GOAMD64="v1"
AR="ar"
CC="gcc"
CXX="g++"
CGO_ENABLED="1"
GOMOD="/code/wp-go/go.mod"
GOWORK=""
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build3258465993=/tmp/go-build -gno-record-gcc-switches"

What did you do?

building exec binary with my code github.com/fthvgb1/wp-go
go build --race -o wgo -gcflags "all=-N -l" internal/cmd/main.go

What did you expect to see?
builded runnable binray
What did you see instead?

# github.com/fthvgb1/wp-go/internal/plugins
:1: internal compiler error: dictionary for anyArr[go.shape.*uint8_0].Len should only use concrete types: go.shape.*uint8_0

Please file a bug report including a short program that triggers the error.
https://go.dev/issue/new

go1.18 is end of support, and there is policy to not backport generic fixes.

ok, I get it.


Create kgemt.txt

@vkardin First stage of verification passed, official domain is kgemt.org.ua as far as I verified. This is just an informational note. Pull request is still in the review. I appreciate your patience while waiting for the final decision.

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


 The div represents a notification and on click I would like it to perform a redirect. The issue is that the click event bubbles through to the view header / modal header buttons when I would like to stop this happening. I can't work out how to prevent this behaviour. Any help would be very much appreciated. I have tried:
CSS:
 pointer-events: none !important;

JS:
Passing $event into the ng-click to try:
    $event.stopPropagation();
    $event.preventDefault();

I have also tried at the end of the ng-click function:
    return false;

HTML:
I have tried the ionic class:
 disable-pointer-events

and have also tried the ionic directive:
 data-tap-disabled="true"

I have reproduced this behaviour in a codepen, please resize the viewport in the pen to ensure that when the modal is opened it takes up the full viewport. The behaviour can be replicated by clicking on the notification above the underlying header buttons both with modal open and without.
Any help would be appreciated, I can't get my head around it.
pen: http://codepen.io/antonfire/pen/WwbMOW
Thanks

Hi there! So this has to do with how the modal view has pointer-events set to auto. This is to make sure that nothing else can be clicked if it is outside the modal, the exact opposite of what you want. For your case, you can add pointer-events: auto; to the notification bar element and it will behave as you expect. Events will not propagate into the model element.
http://codepen.io/mhartington/pen/VaYGGK?editors=1100

Thanks that's great, really appreciate the help.