Winget url in Docs redirects to 404

Hello, the winget link is broken in this doc.
Solution:
Updated link: https://docs.microsoft.com/en-us/windows/package-manager/winget/

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

ID: d3cbeb9a-9e7c-f8f4-5c03-5d6262d2b440
Version Independent ID: eb575c79-5b2a-45f6-646f-9d41d5d223e8
Content: Windows Terminal Custom Prompt Setup
Content Source: TerminalDocs/tutorials/custom-prompt-setup.md
Product: dev-environment
Technology: windows-terminal
GitHub Login: @cinnamon-msft
Microsoft Alias: cinnamon

Fixed this link in: https://github.com/MicrosoftDocs/terminal/commit/a7a0eca79f21590877ca16a60bd1a51de8f8681c
Thank you for filing this issue @ramfattah!


feat: support toggle extent

#99

This pr still have a issue that i don't know how to fix :

When toggle the extent button , it can't immediate render

This is this PR's behavior
https://user-images.githubusercontent.com/76603360/207765493-a8b937d3-4067-46f2-b007-1092d7ed69b8.mov

@sudongyuer What will happen if you move the scope after the code cell has been moved out of it? Is the parent of the cell updated to the scope at the outer layer?

@sudongyuer What will happen if you move the scope after the code cell has been moved out of it? Is the parent of the cell updated to the scope at the outer layer?

https://user-images.githubusercontent.com/76603360/207772790-c79dd567-371c-485f-9e23-4770c4284563.mov

You can see more contexts in #99

The node's parent will not change , it will remain the relationship before

@sudongyuer yes, i saw the discussion in #99. Should we update the parent then? Otherwise, the code scoping is not correct.

@sudongyuer yes, i saw the discussion in #99. Should we update the parent then? Otherwise, the code scoping is not correct.

I just think this pr is to control the extent option in node , if you want to remove node's parent relationship , should be better add another feature  to support that . Also need some suggestions from @lihebi

Controlling only the "extent" option itself doesn't make a useful feature. We should implement the logic for updating node parent relations in this PR.

Screen.Recording.2022-12-16.at.13.20.56.mov

Thanks!
When you click the release button, the pod "jumps" out. It is because you updated its parent but didn't update its position (which is relative to the parent). We don't want that jump.

[xinyi] you should update nodesMap[id].level recursively as well
[forrest] Is recursive updating necessary?
[xinyi] It's always necessary to update the levels

Xinyi had explained it. Just an echo: Xinyi was talking about recursively updating the levels property of descendant nodes, which is missing in this PR.

[forrest] After a user clicks the "remove extent" button of a cell/scope, the cell/scope will move with the mouse.

To make things simple, we could just drop the node to ROOT scope when the release button is clicked. We probably want to show some indicators (e.g., a highlighted shadow) to mark it global. Then we can drag-n-drop to the location.

[xinyi] what will a collaborator see during the process of changing scope?

This will no longer be a problem if we adopt the "drop-to-ROOT-scope" approach above.

[xinyi] you should update nodesMap[id].level recursively as well
[forrest] Is recursive updating necessary?
[xinyi] It's always necessary to update the levels

Xinyi had explained it. Just an echo: Xinyi was talking about recursively updating the "levels" property of descendant nodes, which is missing in this PR.

[forrest] After a user clicks the "remove extent" button of a cell/scope, the cell/scope will move with the mouse.

To make things simple, we could just drop the node to ROOT scope when the release button is clicked. We probably want to show some indicators (e.g., a highlighted shadow) to mark it global. Then we can drag-n-drop to the location.

[xinyi] what will a collaborator see during the process of changing scope?

This will no longer be a problem if we adopt the "drop-to-ROOT-scope" approach above.

Thx xinyi ~


Split filesystem impl, fixes https://github.com/mozilla/thimble.webmaker.org/issues/1150

This was an attempt to move all the Blob URL caching into BracketsFiler, but it turns out to be impossible.  I've made a bunch of good changes though, so I want to take the rest of it.  A few of the things you'll find in it:

separation of Blob URL preloading into its own module (FileSystemCache)
removal of async versions of URL lookup
decoding of paths if you use BracketsFiler directly vs. via Brackets API
optional file consistency check on writes, so we don't hit https://github.com/mozilla/thimble.webmaker.org/issues/1150
I've made the rewriters to be properly async with setTimeout to yield control to the main thread more often.  Since almost none of the code is async, a really big web page could block the main thread for a long time.  This will do it in chunks.

a few questions, r=me with that!


Change "how internet works" video

I think the other one gives a better and little more detailed explanation about how internet works, in 5 minutes too.

Better to add this as another resource rather than replacing the existing one. Once that's done, should merge.


fix: Deep link - /a/hello loads twice when navigate via link

Details

Fixed Issues

$ https://github.com/Expensify/App/issues/34543
PROPOSAL: https://github.com/Expensify/App/issues/34543#issuecomment-1892922658
Tests

Navigate to https://staging.new.expensify.com/a/hello
while app is open
Verify that: When navigate to non-existing profile page isn't loaded twice

[x] Verify that no errors appear in the JS console

Offline tests

QA Steps

Navigate to https://staging.new.expensify.com/a/hello
while app is open
Verify that: When navigate to non-existing profile page isn't loaded twice

[x] Verify that no errors appear in the JS console

PR Author Checklist

[x] I linked the correct issue in the ### Fixed Issues section above
[x] I wrote clear testing steps that cover the changes made in this PR

[x] I added steps for local testing in the Tests section
[x] I added steps for the expected offline behavior in the Offline steps section
[x] I added steps for Staging and/or Production testing in the QA steps section
[x] I added steps to cover failure scenarios (i.e. verify an input displays the correct error message if the entered data is not correct)
[x] I turned off my network connection and tested it while offline to ensure it matches the expected behavior (i.e. verify the default avatar icon is displayed if app is offline)
[x] I tested this PR with a High Traffic account against the staging or production API to ensure there are no regressions (e.g. long loading states that impact usability).

[x] I included screenshots or videos for tests on all platforms
[x] I ran the tests on all platforms & verified they passed on:

[x] Android: Native
[x] Android: mWeb Chrome
[x] iOS: Native
[x] iOS: mWeb Safari
[x] MacOS: Chrome / Safari
[x] MacOS: Desktop

[x] I verified there are no console errors (if there's a console error not related to the PR, report it or open an issue for it to be fixed)
[x] I followed proper code patterns (see Reviewing the code)

[x] I verified that any callback methods that were added or modified are named for what the method does and never what callback they handle (i.e. toggleReport and not onIconClick)
[x] I verified that the left part of a conditional rendering a React component is a boolean and NOT a string, e.g. myBool && <MyComponent />.
[x] I verified that comments were added to code that is not self explanatory
[x] I verified that any new or modified comments were clear, correct English, and explained "why" the code was doing something instead of only explaining "what" the code was doing.
[x] I verified any copy / text shown in the product is localized by adding it to src/languages/* files and using the translation method

[x] If any non-english text was added/modified, I verified the translation was requested/reviewed in #expensify-open-source and it was approved by an internal Expensify engineer. Link to Slack message:

[x] I verified all numbers, amounts, dates and phone numbers shown in the product are using the localization methods
[x] I verified any copy / text that was added to the app is grammatically correct in English. It adheres to proper capitalization guidelines (note: only the first word of header/labels should be capitalized), and is either coming verbatim from figma or has been approved by marketing (in order to get marketing approval, ask the Bug Zero team member to add the Waiting for copy label to the issue)
[x] I verified proper file naming conventions were followed for any new files or renamed files. All non-platform specific files are named after what they export and are not named "index.js". All platform-specific files are named for the platform the code supports as outlined in the README.
[x] I verified the JSDocs style guidelines (in STYLE.md) were followed

[x] If a new code pattern is added I verified it was agreed to be used by multiple Expensify engineers
[x] I followed the guidelines as stated in the Review Guidelines
[x] I tested other components that can be impacted by my changes (i.e. if the PR modifies a shared library or component like Avatar, I verified the components using Avatar are working as expected)
[x] I verified all code is DRY (the PR doesn't include any logic written more than once, with the exception of tests)
[x] I verified any variables that can be defined as constants (ie. in CONST.js or at the top of the file that uses the constant) are defined as such
[x] I verified that if a function's arguments changed that all usages have also been updated correctly
[x] If any new file was added I verified that:

[x] The file has a description of what it does and/or why is needed at the top of the file if the code is not self explanatory

[x] If a new CSS style is added I verified that:

[x] A similar style doesn't already exist
[x] The style can't be created with an existing StyleUtils function (i.e. StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))

[x] If the PR modifies code that runs when editing or sending messages, I tested and verified there is no unexpected behavior for all supported markdown - URLs, single line code, code blocks, quotes, headings, bold, strikethrough, and italic.
[x] If the PR modifies a generic component, I tested and verified that those changes do not break usages of that component in the rest of the App (i.e. if a shared library or component like Avatar is modified, I verified that Avatar is working as expected in all cases)
[x] If the PR modifies a component related to any of the existing Storybook stories, I tested and verified all stories for that component are still working as expected.
[x] If the PR modifies a component or page that can be accessed by a direct deeplink, I verified that the code functions as expected when the deeplink is used - from a logged in and logged out account.
[x] If the PR modifies the UI (e.g. new buttons, new UI components, changing the padding/spacing/sizing, moving components, etc) or modifies the form input styles:

[x] I verified that all the inputs inside a form are aligned with each other.
[x] I added Design label and/or tagged @Expensify/design so the design team can review the changes.

[x] If a new page is added, I verified it's using the ScrollView component to make it scrollable when more elements are added to the page.
[x] If the main branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to the Test steps.

Screenshots/Videos

Android: Native

https://github.com/Expensify/App/assets/129500732/cdcef9ba-f9c7-480f-9933-f6b4cc873edb

Android: mWeb Chrome

https://github.com/Expensify/App/assets/129500732/18567557-fd53-4286-bec4-d8b6c84f2dfc

iOS: Native

https://github.com/Expensify/App/assets/129500732/03e6e376-0a0e-4a50-bb68-919c5d179708

iOS: mWeb Safari

https://github.com/Expensify/App/assets/129500732/4778685a-be26-4fe2-b736-34d775d621f4

MacOS: Chrome / Safari

https://github.com/Expensify/App/assets/129500732/2736c0be-772c-4ab6-9d8e-69360ad0c8a6

MacOS: Desktop

https://github.com/Expensify/App/assets/129500732/4863b250-9419-435b-b490-ead2f1757842

Reviewer Checklist

[x] I have verified the author checklist is complete (all boxes are checked off).
[x] I verified the correct issue is linked in the ### Fixed Issues section above
[x] I verified testing steps are clear and they cover the changes made in this PR

[x] I verified the steps for local testing are in the Tests section
[x] I verified the steps for Staging and/or Production testing are in the QA steps section
[x] I verified the steps cover any possible failure scenarios (i.e. verify an input displays the correct error message if the entered data is not correct)
[x] I turned off my network connection and tested it while offline to ensure it matches the expected behavior (i.e. verify the default avatar icon is displayed if app is offline)

[x] I checked that screenshots or videos are included for tests on all platforms
[x] I included screenshots or videos for tests on all platforms
[x] I verified tests pass on all platforms & I tested again on:

[x] Android: Native
[x] Android: mWeb Chrome
[x] iOS: Native
[x] iOS: mWeb Safari
[x] MacOS: Chrome / Safari
[x] MacOS: Desktop

[x] If there are any errors in the console that are unrelated to this PR, I either fixed them (preferred) or linked to where I reported them in Slack
[x] I verified proper code patterns were followed (see Reviewing the code)

[x] I verified that any callback methods that were added or modified are named for what the method does and never what callback they handle (i.e. toggleReport and not onIconClick).
[x] I verified that the left part of a conditional rendering a React component is a boolean and NOT a string, e.g. myBool && <MyComponent />.
[x] I verified that comments were added to code that is not self explanatory
[x] I verified that any new or modified comments were clear, correct English, and explained "why" the code was doing something instead of only explaining "what" the code was doing.
[x] I verified any copy / text shown in the product is localized by adding it to src/languages/* files and using the translation method
[x] I verified all numbers, amounts, dates and phone numbers shown in the product are using the localization methods
[x] I verified any copy / text that was added to the app is grammatically correct in English. It adheres to proper capitalization guidelines (note: only the first word of header/labels should be capitalized), and is either coming verbatim from figma or has been approved by marketing (in order to get marketing approval, ask the Bug Zero team member to add the Waiting for copy label to the issue)
[x] I verified proper file naming conventions were followed for any new files or renamed files. All non-platform specific files are named after what they export and are not named "index.js". All platform-specific files are named for the platform the code supports as outlined in the README.
[x] I verified the JSDocs style guidelines (in STYLE.md) were followed

[x] If a new code pattern is added I verified it was agreed to be used by multiple Expensify engineers
[x] I verified that this PR follows the guidelines as stated in the Review Guidelines
[x] I verified other components that can be impacted by these changes have been tested, and I retested again (i.e. if the PR modifies a shared library or component like Avatar, I verified the components using Avatar have been tested & I retested again)
[x] I verified all code is DRY (the PR doesn't include any logic written more than once, with the exception of tests)
[x] I verified any variables that can be defined as constants (ie. in CONST.js or at the top of the file that uses the constant) are defined as such
[x] If a new component is created I verified that:

[x] A similar component doesn't exist in the codebase
[x] All props are defined accurately and each prop has a /** comment above it */
[x] The file is named correctly
[x] The component has a clear name that is non-ambiguous and the purpose of the component can be inferred from the name alone
[x] The only data being stored in the state is data necessary for rendering and nothing else
[x] For Class Components, any internal methods passed to components event handlers are bound to this properly so there are no scoping issues (i.e. for onClick={this.submit} the method this.submit should be bound to this in the constructor)
[x] Any internal methods bound to this are necessary to be bound (i.e. avoid this.submit = this.submit.bind(this); if this.submit is never passed to a component event handler like onClick)
[x] All JSX used for rendering exists in the render method
[x] The component has the minimum amount of code necessary for its purpose, and it is broken down into smaller components in order to separate concerns and functions

[x] If any new file was added I verified that:

[x] The file has a description of what it does and/or why is needed at the top of the file if the code is not self explanatory

[x] If a new CSS style is added I verified that:

[x] A similar style doesn't already exist
[x] The style can't be created with an existing StyleUtils function (i.e. StyleUtils.getBackgroundAndBorderStyle(theme.componentBG)

[x] If the PR modifies code that runs when editing or sending messages, I tested and verified there is no unexpected behavior for all supported markdown - URLs, single line code, code blocks, quotes, headings, bold, strikethrough, and italic.
[x] If the PR modifies a generic component, I tested and verified that those changes do not break usages of that component in the rest of the App (i.e. if a shared library or component like Avatar is modified, I verified that Avatar is working as expected in all cases)
[x] If the PR modifies a component related to any of the existing Storybook stories, I tested and verified all stories for that component are still working as expected.
[x] If the PR modifies a component or page that can be accessed by a direct deeplink, I verified that the code functions as expected when the deeplink is used - from a logged in and logged out account.
[x] If the PR modifies the UI (e.g. new buttons, new UI components, changing the padding/spacing/sizing, moving components, etc) or modifies the form input styles:

[x] I verified that all the inputs inside a form are aligned with each other.
[x] I added Design label and/or tagged @Expensify/design so the design team can review the changes.

[x] If a new page is added, I verified it's using the ScrollView component to make it scrollable when more elements are added to the page.
[x] If the main branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to the Test steps.
[x] I have checked off every checkbox in the PR reviewer checklist, including those that don't apply to this PR.

Screenshots/Videos

Android: Native
https://github.com/Expensify/App/assets/4160319/84f6b633-ad77-4c1f-a2fd-6302ac7fdb9f

Android: mWeb Chrome
https://github.com/Expensify/App/assets/4160319/7903a5c1-25e7-4c61-aa09-a803579632dc

iOS: Native
https://github.com/Expensify/App/assets/4160319/83f59922-1f5f-4c42-9356-2c61c9eddfe8

iOS: mWeb Safari
https://github.com/Expensify/App/assets/4160319/a47bfe7f-b2e6-4a05-81b7-9f445cbc2562

MacOS: Chrome / Safari
https://github.com/Expensify/App/assets/4160319/c10e1671-9a09-4e38-92c8-058407e389bb

MacOS: Desktop

:hand: This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release.

🚀 Deployed to staging by https://github.com/MonilBhavsar in version: 1.4.77-0 🚀

platform
result

🤖 android 🤖
success ✅

🖥 desktop 🖥
success ✅

🍎 iOS 🍎
success ✅

🕸 web 🕸
success ✅

🚀 Deployed to production by https://github.com/puneetlath in version: 1.4.77-11 🚀

platform
result

🤖 android 🤖
failure ❌

🖥 desktop 🖥
success ✅

🍎 iOS 🍎
success ✅

🕸 web 🕸
success ✅

🚀 Deployed to production by https://github.com/puneetlath in version: 1.4.77-11 🚀

platform
result

🤖 android 🤖
success ✅

🖥 desktop 🖥
success ✅

🍎 iOS 🍎
success ✅

🕸 web 🕸
success ✅


trivial: cleanups

Followup to #39464.

@GrahamcOfBorg eval

Success on x86_64-linux (full log)
Attempted: clp, libcouchbase
Partial log (click to expand)
shrinking /nix/store/0122d02r9svw3l4c9wmnxs4nx5wd89xw-clp-1.16.11/lib/libClp.so.1.13.11
shrinking /nix/store/0122d02r9svw3l4c9wmnxs4nx5wd89xw-clp-1.16.11/lib/libCoinUtils.so.3.10.14
shrinking /nix/store/0122d02r9svw3l4c9wmnxs4nx5wd89xw-clp-1.16.11/lib/libOsiClp.so.1.13.11
shrinking /nix/store/0122d02r9svw3l4c9wmnxs4nx5wd89xw-clp-1.16.11/lib/libOsiCommonTests.so.1.12.9
shrinking /nix/store/0122d02r9svw3l4c9wmnxs4nx5wd89xw-clp-1.16.11/lib/libClpSolver.so.1.13.11
shrinking /nix/store/0122d02r9svw3l4c9wmnxs4nx5wd89xw-clp-1.16.11/lib/libOsi.so.1.12.9
strip is /nix/store/4qvrxzxa535y8304mk195x50b6p9607d-binutils-2.30/bin/strip
stripping (with command strip and flags -S) in /nix/store/0122d02r9svw3l4c9wmnxs4nx5wd89xw-clp-1.16.11/lib  /nix/store/0122d02r9svw3l4c9wmnxs4nx5wd89xw-clp-1.16.11/bin
patching script interpreter paths in /nix/store/0122d02r9svw3l4c9wmnxs4nx5wd89xw-clp-1.16.11
checking for references to /tmp/nix-build-clp-1.16.11.drv-0 in /nix/store/0122d02r9svw3l4c9wmnxs4nx5wd89xw-clp-1.16.11...

Success on aarch64-linux (full log)
Attempted: clp, libcouchbase
Partial log (click to expand)
shrinking /nix/store/i980j5h7sqkwcdqxi1njxp3f1cn7si37-clp-1.16.11/lib/libClp.so.1.13.11
shrinking /nix/store/i980j5h7sqkwcdqxi1njxp3f1cn7si37-clp-1.16.11/lib/libOsiCommonTests.so.1.12.9
shrinking /nix/store/i980j5h7sqkwcdqxi1njxp3f1cn7si37-clp-1.16.11/lib/libOsi.so.1.12.9
shrinking /nix/store/i980j5h7sqkwcdqxi1njxp3f1cn7si37-clp-1.16.11/lib/libCoinUtils.so.3.10.14
strip is /nix/store/0pjsgkxz0rp5baycq5sp2s72lrr5q9sg-binutils-2.30/bin/strip
stripping (with command strip and flags -S) in /nix/store/i980j5h7sqkwcdqxi1njxp3f1cn7si37-clp-1.16.11/lib  /nix/store/i980j5h7sqkwcdqxi1njxp3f1cn7si37-clp-1.16.11/bin
patching script interpreter paths in /nix/store/i980j5h7sqkwcdqxi1njxp3f1cn7si37-clp-1.16.11
checking for references to /build in /nix/store/i980j5h7sqkwcdqxi1njxp3f1cn7si37-clp-1.16.11...
/nix/store/i980j5h7sqkwcdqxi1njxp3f1cn7si37-clp-1.16.11
/nix/store/yyv8v1cbb650agcxv5l94537qpj3nmga-libcouchbase-2.9.2


[RFE] Add GRPC TLS/SSL authentication for an external provider to use

Is there an existing issue for this?

[X] I have searched the existing issues

Konveyor version
all
Priority
Major
Current Behavior
There is no authentication mechanism for the external providers
Expected Behavior
There must some option for enabling authentication
How Reproducible
Always (Default)
Steps To Reproduce
No response
Environment
No response
Anything else?
We own both server and client, we should enable the configuration in the provider settings and set this up for the users.
https://grpc.io/docs/guides/auth/#authentication-api
We will need:

Changes to the provider settings to configure the client
Changes to the server so that known flags can be used.
We should generate and configure this security mechanism by default when we start up the external providers internally
If the address but no auth, it should still work as well

I think that should happen after the external provider stuff is merged for the java provider.

Marking as completed with the docs PR merged


Dialog querystrings strip any mention of *width or *height

For example if I try to specify :image_width => '500' it'll become :image_&width
Or it will disappear completely.

This is because of this code


feat: additional columns for kubectl output

This should make it easier to debug configuration issues when things haven't initialised correctly.  At the moment ClusterSecretStore didn't really have any output displayed.
To the other types I've added the status field from the Ready condition, this will aid debugging when there are issues.

/ok-to-test sha=7753e73


refactor: clean up redundant handle

looks like flaky smoke test (i was hitting this earlier today as well 😢 )


Add: a mechanism for tracking contributions to the paper

To provide a mechanism for tracking contributions to the paper, we need to discuss and gather as much evidence as possible to fairly decide on contribution points and the order of authorship. This is currently a draft and not yet complete. The names and scores in the table are temporary placeholders. We hope to hear more ideas from everyone.

🤔 I think we can track the contributions of each one under this PR, and for special contributors we can also discuss here.

HumanevalPack: https://github.com/OpenDevin/OpenDevin/pull/1917

GAIA: https://github.com/OpenDevin/OpenDevin/pull/1911

SWE-bench: https://github.com/OpenDevin/OpenDevin/pull/1468
(Undoubtedly, it will receive more points!)

Closed as the paper is mostly finished, great work everyone!


Move CDN reference above local references

Closed in favor of https://github.com/HTBox/allReady/pull/1162 because apparently naming a branch head makes git grumpy.  :D


[BUG] ITSI bundle perdayvolume throughput ~1/3 compared to eventgen 5

Describe the bug
Throughput of ITSI data generation configure bundle (attached) on an aws i3.4xl host reduces from 350G(eventgen5 multiprocess) to 150G(eventgen latest 7.3 version, standalone server mode + multiprocess)
To Reproduce
apply the bundle, set payload_size=756K, interval=20, process_num = 20.
for eventgen latest, run "/usr/bin/python3.7 /usr/bin/splunk_eventgen service --role standalone&"
issue.tar.gz

How are you measuring the throughput? Are you measuring after one day? How are you setting up the receiving splunk instance? Also, perDayVolume sum in the conf is not 350. Are you setting the total volume to 350? Please provide the chain of api calls you invoked.

I have try two kind of builds in one container, here is the result on that bundle with the same settings:

eventgen latest build on python3.7(7.0.0):                800KB/s,   CPU:  13% usr  86% sys   0% nic   0% idle
eventgen build on python2-stable branch(6.5.2):   4.9MB/s,  CPU:  91% usr   7% sys   0% nic   0% idle

Looks like there are too many CPU usage on system level about eventgen python3 version.

This issue has been fixed. Close it.


Possible enhancement: catch #exec

Something I've not seen before tonight, but probably isn't the only time this has happened:
template ...

exec 's3cmd ...'

The user meant to use an execute resource, but instead they are calling Kernel#exec which bails out of chef. We could add a Recipe#exec that just raises an error or make it an alias for execute.

@lamont-granquist I'm I correct this issue can be closed with the merge of #2041?

think so


Remove('clickPick')

Hello,
I am trying to turn off the function that camera will move to the atom after clicking on the atom. I tried "stage.mouseControls.remove('clickPick')", but it failed.
How could I do that?

I am using the following stage.mouseControls.remove('clickPick-left', MouseActions.movePick);
(MouseActions is imported from the NGL module, but I think you can omit it all together)

thanks,
stage.mouseControls.remove('clickPick-left') is ok!


Make UCASSCF work with state_average

Currently, the following code (UCASSCF with state_average) does not work because make_rdm12s is missing in mcscf.addons.state_average. This pull request adds make_rdm12s in mcscf.addons.state_average and mcscf.addons.state_average_mix to allow this.
from pyscf import scf, gto, mcscf
import numpy as np
mol = gto.M(atom="F 0 0 0", basis='cc-pvdz-dk', verbose=3, spin=1)
mf = scf.UHF(mol).run(conv_tol=1e-14)
mc = mcscf.UCASSCF(mf, 4, (4, 3)).state_average_(np.ones(3) / 3.0).run()

A small test to cover the new code needs to be added


 We're not going to help you. Deal with it.

Toxic kids like you killed the fun of games that we had earlier. We're not going to help you. Deal with it. [x2]

You mentioned earlier that you were going to make your own version. go on then.


Document wildcard audits in the book

Wildcard audits (#353) are being implemented in #398, but have not yet been documented in the book. Once that patch lands, we should update our documentation in the book and elsewhere to also mention and explain this type of audit.
The book should also cover the new certify ux which we'll add in #402.

Added some new docs in #421 - @bholley do you think that'll be enough for 0.4?

I added #424 to make a few fixes, can close this with that.


Remove calculation of Content-Length.

mod_xsendfile unconditionally removes the Content-Length header as it
will always be recalculated when serving the passed file. Calculating it
in Django is a waste.
URL to where mod_xsendfile removes this header. See:
https://github.com/nmaier/mod_xsendfile/blob/1480b2dd27ebe08cc47e84f4666f6df2b28a79b5/mod_xsendfile.c#L396-L397

Does this work for Nginx and others as well?

I'm not sure. I don't use those backends nor have interest in them ATM.
I no longer use django-sendfile so I won't be developing or testing this PR further. If this is incorrect for those backends, please feel free to close without merging.

@jdufresne may I ask what you are using at the moment and stopped using django-sendfile?

To use mod_xsendfile the response simply requires a single header: X-SendFile. So I added a utility function to create a response with this header. (It also handles Content-Disposition.) The multiple backends and indirection of django-sendfile seemed overkill for my simple use.

Thanks @jdufresne for your info.


[Bug] In Azure AI Search Index, the embedding field is not marked as 'Retrievable'

Context / Scenario
I have checked my older projects where I used KM, and the embedding field in Azure AI Search index used to be retrievable in the index that was created by KM. However, this field is no longer being marked as retrievable by default. I have to manually turn this flag on in Azure portal.

What happened?
Embedding field in Azure AI Search index is not marked as Retrievable.
Importance
edge case
Platform, Language, Versions
.Net 9. KM version 0.75.240924.1
Relevant log output
No response

The index schema is more of an internal implementation detail, so I wouldn’t classify this as a bug. Since KM doesn’t require the “retrievability” flag for generating search results and answers, it’s not set by default. However, if you’re using the indexes for other applications, it’s totally fine to update the flag manually as you’ve done.


chore(ci): Mirror Aztec-nr

solution for:

https://github.com/AztecProtocol/aztec-packages/issues/2265
handles renaming noir-libs -> aztec-nr
renames what was aztec-nr to just aztec

aztec-nr lives here (with full history):

https://github.com/AztecProtocol/aztec-nr
once this is merged it can be made public and a nice readme put on it

Should the merging of this PR have updated the aztec-nr repo, @Maddiaa0? (Because it hasn't updated).

@iAmMichaelConnor It should have, however I forgot to give the bot write perms for the repo, it has them now so should run tonight


Identifying amplicon dropouts

During a CanCOGeN QC meeting, it was requested that a table or inclusion of amplicon dropouts in the summary report would be useful.  This could include information on SNPs found in primers.

This is now implemented


Test OS X App install on non-dev machines.

Looks like it's working :) Well done guys!

Tried 3 mbps in the morn - all worked fine - than we installed on 20 more and 10 couldn't smesh because of a silly drive traversal exception due to different volume layout - this was fixed in the latest .dmg.


issue-3775 : Allow configuration override of default kinesis endpoints

This change addresses the issue - https://github.com/snowplow/snowplow/issues/3775
:sparkles:
This commit enables an optional configuration in config.hocon for both 'scala-stream-collector' and 'stream-enrich' for overriding Kinesis endpoints.
Allowing an optional override on the calculated aws endpoints is useful while using local setup eg. localstack.

I am getting 2/4 build failures on Travis. The errors on these steps indicate environmental issues rather than test failure due to the code changes in this PR:
https://travis-ci.org/snowplow/snowplow/jobs/385498036#L1188
https://travis-ci.org/snowplow/snowplow/jobs/385498039#L1306

Thanks for your pull request. Is this your first contribution to a Snowplow open source project? Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).
:memo: Please visit https://github.com/snowplow/snowplow/wiki/CLA to learn more and sign.
Once you've signed, please reply here (e.g. I signed it!) and we'll verify. Thanks.

I signed it!

@BenFradet rearranged commits into two clean ones.

@arihantsurana has signed the Software Grant and Corporate Contributor License Agreement

Thanks a lot, merged :+1:


Add a Swarm Camel quickstart

This quickstart uses Swarm as Java lightweight container
The project can be launched locally using mvn wildfly-swarm:run goal or within Kubernetes/OpenShift platform

add to whitelist

ok to test

[merge]


E2E macOS flakiness tracking

This is a tracking issue for e2e macOS flakiness.
We'll close it after many successful runs and overall feel of stable CI.

https://github.com/metalbear-co/mirrord/runs/7839377929?check_suite_focus=true
In this run it seems that the agent creation took so long, I assume that the macOS machine can't really execute all tests at once but limiting to test threads doesn't really help for some reason.

Another error:

stdout pid 38563: 2022-08-15T15:27:32.148526Z ERROR kube_client::client::builder: failed with status 500 Internal Server Error

stderr 38563: thread '<unnamed>' panicked at 'failed to create agent: mirrord-layer: Kube failed with error `failed to upgrade to a WebSocket connection: failed to switch protocol: 500 Internal Server Error`!', mirrord-layer/src/lib.rs:101:13
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
fatal runtime error: failed to initiate panic, error 5

After increasing timeout we face an 500 error from the k8s API. I'm trying to increase the CPU/memory of the colima VM.

     tests::test_file_ops::agent_1
    tests::test_mirror_http_traffic::application_1::agent_1
    tests::test_mirror_http_traffic::application_2::agent_1
    tests::test_mirror_http_traffic::application_3::agent_1

failure after increasing colima vm size and increasing timeout.
Looking at the container logs, there seems to be k8s api errors + seeing only 2 containers starting logs, which leads me to believe that maybe the tests start running before k8s is even ready.


Need better solution for updating name in response to cell content changes

In #473, I introduced code that modifies the notebook document on save.
I recently ran into an issue where this makes it impossible to save the document, since the document modification itself makes the document need another save. In particular, it seems to happen to me in #564
I think we need a better solution for updating names based on content changes.
In the short-term, we should probably remove that code, so that people can save their documents properly.
cc @sourishkrout

We can probably fix/salvage the implementation using the onWillSaveTextDocument event instead. It appears it was introduced for the exact use case where changes need to be handled before saving.
https://github.com/microsoft/vscode/blob/main/src/vscode-dts/vscode.d.ts#L11776-L11796

@sourishkrout
I tried that, but I was unable to get the unsaved file contents the way you can for a text document. In particular, I couldn't get the associated NotebookData with the NotebookDocument, which would be necessary for serialization.
I honestly think the easiest solution is to just re-implement the name generation code from go into javascript - would you be okay with this as a short-term solution?

Let's earmark this to chat about in person this week.

@mxsdev this is fixed with the --index approach, no?

@sourishkrout
It unblocks the issue, but the --index approach is still not ideal since the generated command is not very legible or re-usable as the document changes.


Change the UI error for importing general category activities and triggers

When I export an app from Tibco Cloud Integration having general activity or trigger and import in 0.5.3 Flogo Web, error seen is -
"You need to install this ************* before you can use it in an app" Please see the attached screenshot.
However we do not have any way to install such things. We can only use activities and triggers which are a part of Flogo Web and opensource.
Expected Error should be: This *************** is not supported in Flogo Web.

Actually, the message is absolutely correct. You can install these activities and triggers provided you have access to the code to do so. In your case it seems you don’t have access to that code, but that doesn’t mean the error message is wrong.

The error message is valid, as @retgits said. Also refer to #218 for the suggested to change to imports.


Migrate CLI to Typer

Summary
Migrate the CLI to Typer in order to:

Make future development of the CLI easier
Allow growth in complexity
Improve user interaction via better formatting

Tests
I'll write them in future commits if the idea is approved
Output examples

@tommydangerous is this in line with the company's goals?

👀

@jlondonobo this is a good idea! you can proceed.

Hi @wangxiaoyou1993, could you look at this PR to ensure it is consistent with the current codebase?
Some changes that this PR introduces and might be worth discussing:

It drops the command test in favor of using the --test option with the run command (mage run [ARGS] --test)

Currently, run runs the same sequence as test. The only difference being that the latter also runs tests
test is not used in other parts of the codebase, so it felt safe to deprecate it.
If you think this is ok, we could consider renaming the option --test to --run-tests?

It moves printing responsibilities from the server-start function to the CLI

The objective is to separate responsibilities and allow better unit tests
The final goal could be to deprecate the use of server.py as a CLI (for example in docker-compose.yml) and instead assign the responsibility of starting a server exclusively to the CLI

Hi @wangxiaoyou1993, could you look at this PR to ensure it is consistent with the current codebase?
Some changes that this PR introduces and might be worth discussing:

It drops the command test in favor of using the --test option with the run command (mage run [ARGS] --test)

Currently, run runs the same sequence as test. The only difference being that the latter also runs tests
test is not used in other parts of the codebase, so it felt safe to deprecate it.
If you think this is ok, we could consider renaming the option --test to --run-tests?

It moves printing responsibilities from the server-start function to the CLI

The objective is to separate responsibilities and allow better unit tests
The final goal could be to deprecate the use of server.py as a CLI (for example in docker-compose.yml) and instead assign the responsibility of starting a server exclusively to the CLI

Thanks! Will review your PR today!

@wangxiaoyou1993 thanks for the feedback ! 🚀
I've just applied all your suggestions. Are there any other changes you'd like to see?
If you think it's good to go, I'd suggest squashing the PR as not all commits work.

@wangxiaoyou1993 could you help me merge it? I don't have permission


Adding taxonomy to nr database cost a lot

Thank you for your tool - it is very nice, fast and useful.
Previously I used already prepared mmseqs databases with taxonomy (like Uniprot) and everything works fine.
But now I have to use nr database. I used the instruction from the manual and have fasta and taxid file with blastdbcmd.
Next steps with mmseqs:
mmseqs createdb nr_20210908.fna nr_20210908_mmseqDB
mmseqs createtaxdb nr_20210908_mmseqDB tmp --ncbi-tax-dump /media/tertiary/database_nr/taxonomy/ --tax-mapping-file /media/tertiary/database_nr/nr_20210908.fna.taxidmapping
So this second step with adding taxonomy working now more than week and took 168G RAM (and it is still working!)
I use server to run the annotation with 12 threads, 62G RAM and 128G Swp (and it looks like a lot for the db preparing)
mmseqs output for now it is:
MMseqs Version:                 12.113e3
NCBI tax dump directory         /media/tertiary/database_nr/taxonomy/
Taxonomical mapping file        /media/tertiary/database_nr/nr_20210908.fna.taxidmapping
Threads                         12
Verbosity                       3

Maybe you have some ideas how to do it cheaper for computational resources?
Some memory limit or even another way get taxonomy annotation to nr database?
Thank you!

For the nr we have the specialized nrtotaxmapping module. You give it the accession2taxid files and the NR sequence database (from createdb) and it will create the correct _mapping file. It should be quite a bit cheaper than the awk command used in createtaxdb (see https://github.com/soedinglab/MMseqs2/blob/master/data/workflow/databases.sh#L415 on how it's used).
For that you have to upgrade to the latest MMseqs2 release though. The latest release also has the nr included in the databases downloader script, which utilizes this module internally.

We noticed one thing with the awk based script: Some linux distributions ship mawk as the default awk, which is generally very fast, but seems to be a lot slower for the purpose of joining two files (we use it for that purpose in the createtaxdb workflow).
You can install gawk and switch Ubuntu to use that by default with something like this: https://askubuntu.com/a/561626
gawk seems to be much much faster for this purpose.

nrtotaxmapping is slightly weird as it already requires the NCBI taxdb files to be present.
In the databases workflow, I create an empty _mapping file first, so createtaxdb will not try to create one, then call createtaxdb and then finally nrtotaxmapping.
I have to integrate nrtotaxmapping into createtaxdb eventually to clean this up I guess.


Update composer.json

Hey!
Any news on this update?

Hey!
Any news on this update?

I'm closing this since PHP 8.0 support was already added. Thanks anyway @Aliaxander


Remove reqwest as a dependency

We only use reqwest in one specific situation to handle synchronous requests. This was done before async/await when futures where a much bigger burden, with async await it's easier just to make the whole function async.

resolved in 5cfaa048a839a9043ae5b523717dd280e7620a99


Improving installation instructions (#735).

Codecov Report
Base: 84.11% // Head: 84.85% // Increases project coverage by +0.74% :tada:

Coverage data is based on head (335abb8) compared to base (7ba07f9).
 Consider uploading reports for the commit ebf7bea to get more accurate results

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #767      +/-   ##
==========================================
+ Coverage   84.11%   84.85%   +0.74%
==========================================
  Files         212       59     -153
  Lines       16917     2086   -14831
  Branches      447      447
==========================================
- Hits        14229     1770   -12459
+ Misses       2688      316    -2372

Flag
Coverage Δ

javascript
84.85% <ø> (ø)

python
?

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

Impacted Files
Coverage Δ

frequencies/apps.py

variants/tasks.py

clinvar_export/admin.py

importer/tasks.py

svs/plugins.py

clinvar_export/apps.py

cohorts/forms.py

importer/rules.py

cases/rules.py

geneinfo/views.py

... and 143 more

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

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


Console::time is not displayed when run in a test

🐛 Bug description
Running  the following test using wasm-pack test --headless --firefox does not display the timer.
#[wasm_bindgen_test]
async fn my_test() {
    console::time_with_label("abc");
    console::time_end_with_label("abc");
}

🤔 Expected Behavior
Similar to console.log, it would be handy if we can see the content of our timer when running the tests.
👟 Steps to reproduce
With a test:
#[wasm_bindgen_test]
async fn my_test() {
    console::time_with_label("abc");
    console::time_end_with_label("abc");
}

Run: wasm-pack test --headless --firefox
🌍 Your environment
Include the relevant details of your environment.
wasm-pack version: 0.8.1
rustc version: 1.40.0-nightly

Apparently #[bench] is available.
Sorry for missing that part.


feat: ValidateOpt to allow invalid FileCreationDate/Time

ACH Version: v1.18.6
What were you trying to do?
Having a FileCreationDate/Time of all zero's causes validation to fail.
What did you expect to see?
A ValidateOpt option to allow this field to be invalid.

@zbruhnke and I discovered the ACH file was invalid so the file creation date/time was in the wrong location. I'm going to leave this issue open so folks can comment if it's a needed feature, but removing it from the v1.19 milestone.


Use of printf seg faults in unit tests

This is due to an issue in newlib.cpp's putchar implementation.

Resolved by #293


Failed to access two mut components in one system with two querys

Hi,
I'm try to build a simple movement game to learn bevy, it almost work, but I met an error when do something in this way:
fn ai_system(
    mut monster_query: Query<(&Monster, &mut Speed, &Transform)>,
    mut hunter_query: Query<(&Hunter, &mut Speed, &Transform, &AI)>,
) {}

But below code works:
fn ai_system(
    monster_query: Query<(&Monster, &Transform)>,
    mut hunter_query: Query<(&Hunter, &mut Speed, &Transform, &AI)>,
) {}

The compile pass, but when I run the demo, it panic with:
 Running `target/debug/hunting`
thread 'main' panicked at 'Query<(&hunting::Hunter, &mut hunting::Speed, &bevy_transform::components::transform::Transform, &hunting::AI), ()> in system &hunting::ai_system accesses component(s) hunting::Speed in a way that conflicts with a previous system parameter. Allowing this would break Rust's mutability rules. Consider merging conflicting Queries into a QuerySet.', /home/chenhuiz/.cargo/registry/src/github.com-1ecc6299db9ec823/bevy_ecs-0.5.0/src/system/system_param.rs:147:5
stack backtrace:
   0: rust_begin_unwind
             at /rustc/9bc8c42bb2f19e745a63f3445f1ac248fb015e53/library/std/src/panicking.rs:493:5
   1: std::panicking::begin_panic_fmt
             at /rustc/9bc8c42bb2f19e745a63f3445f1ac248fb015e53/library/std/src/panicking.rs:435:5
   2: bevy_ecs::system::system_param::assert_component_access_compatibility
             at /home/chenhuiz/.cargo/registry/src/github.com-1ecc6299db9ec823/bevy_ecs-0.5.0/src/system/system_param.rs:147:5
   3: <bevy_ecs::query::state::QueryState<Q,F> as bevy_ecs::system::system_param::SystemParamState>::init
             at /home/chenhuiz/.cargo/registry/src/github.com-1ecc6299db9ec823/bevy_ecs-0.5.0/src/system/system_param.rs:86:9
   4: <(P0,P1) as bevy_ecs::system::system_param::SystemParamState>::init
             at /home/chenhuiz/.cargo/registry/src/github.com-1ecc6299db9ec823/bevy_ecs-0.5.0/src/system/system_param.rs:998:21
   5: <bevy_ecs::system::into_system::FunctionSystem<In,Out,Param,Marker,F> as bevy_ecs::system::system::System>::initialize
             at /home/chenhuiz/.cargo/registry/src/github.com-1ecc6299db9ec823/bevy_ecs-0.5.0/src/system/into_system.rs:166:33
   6: bevy_ecs::schedule::stage::SystemStage::initialize_systems
             at /home/chenhuiz/.cargo/registry/src/github.com-1ecc6299db9ec823/bevy_ecs-0.5.0/src/schedule/stage.rs:396:13
   7: <bevy_ecs::schedule::stage::SystemStage as bevy_ecs::schedule::stage::Stage>::run
             at /home/chenhuiz/.cargo/registry/src/github.com-1ecc6299db9ec823/bevy_ecs-0.5.0/src/schedule/stage.rs:751:13
   8: bevy_ecs::schedule::Schedule::run_once
             at /home/chenhuiz/.cargo/registry/src/github.com-1ecc6299db9ec823/bevy_ecs-0.5.0/src/schedule/mod.rs:201:13
   9: <bevy_ecs::schedule::Schedule as bevy_ecs::schedule::stage::Stage>::run
             at /home/chenhuiz/.cargo/registry/src/github.com-1ecc6299db9ec823/bevy_ecs-0.5.0/src/schedule/mod.rs:219:21
  10: bevy_app::app::App::update
             at /home/chenhuiz/.cargo/registry/src/github.com-1ecc6299db9ec823/bevy_app-0.5.0/src/app.rs:58:9
  11: bevy_winit::winit_runner_with::{{closure}}
             at /home/chenhuiz/.cargo/registry/src/github.com-1ecc6299db9ec823/bevy_winit-0.5.0/src/lib.rs:485:17
  12: winit::platform_impl::platform::sticky_exit_callback
             at /home/chenhuiz/.cargo/registry/src/github.com-1ecc6299db9ec823/winit-0.24.0/src/platform_impl/linux/mod.rs:736:5
  13: winit::platform_impl::platform::x11::EventLoop<T>::run_return
             at /home/chenhuiz/.cargo/registry/src/github.com-1ecc6299db9ec823/winit-0.24.0/src/platform_impl/linux/x11/mod.rs:303:17
  14: winit::platform_impl::platform::x11::EventLoop<T>::run
             at /home/chenhuiz/.cargo/registry/src/github.com-1ecc6299db9ec823/winit-0.24.0/src/platform_impl/linux/x11/mod.rs:398:9
  15: winit::platform_impl::platform::EventLoop<T>::run
             at /home/chenhuiz/.cargo/registry/src/github.com-1ecc6299db9ec823/winit-0.24.0/src/platform_impl/linux/mod.rs:652:56
  16: winit::event_loop::EventLoop<T>::run
             at /home/chenhuiz/.cargo/registry/src/github.com-1ecc6299db9ec823/winit-0.24.0/src/event_loop.rs:154:9
  17: bevy_winit::run
             at /home/chenhuiz/.cargo/registry/src/github.com-1ecc6299db9ec823/bevy_winit-0.5.0/src/lib.rs:171:5
  18: bevy_winit::winit_runner_with
             at /home/chenhuiz/.cargo/registry/src/github.com-1ecc6299db9ec823/bevy_winit-0.5.0/src/lib.rs:493:9
  19: bevy_winit::winit_runner
             at /home/chenhuiz/.cargo/registry/src/github.com-1ecc6299db9ec823/bevy_winit-0.5.0/src/lib.rs:211:5
  20: core::ops::function::Fn::call
             at /home/chenhuiz/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/ops/function.rs:70:5
  21: <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call
             at /home/chenhuiz/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/alloc/src/boxed.rs:1560:9
  22: bevy_app::app::App::run
             at /home/chenhuiz/.cargo/registry/src/github.com-1ecc6299db9ec823/bevy_app-0.5.0/src/app.rs:68:9
  23: bevy_app::app_builder::AppBuilder::run
             at /home/chenhuiz/.cargo/registry/src/github.com-1ecc6299db9ec823/bevy_app-0.5.0/src/app_builder.rs:49:9
  24: hunting::main
             at ./src/main.rs:145:5
  25: core::ops::function::FnOnce::call_once
             at /home/chenhuiz/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/ops/function.rs:227:5
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.

It seems Rust forbidden me to access both mut speed  in a same function? In setup system, I just spawn a monster and two hunters, all of them have a Speed component. I could move the monster speed to another system to update it, but I just would like to know why it failed? Thanks.
Best Regards,
Hermes

There is no way to ensure that you don't have an entity with the Monster, Hunter, Speed, Transform and AI components at the same time. Such an entity would result in both queries returning it. The &mut Speed in the result of both queries for this entity would alias, which would be UB and as such isn't allowed. Normally rustc would return a borrowck error for aliasing &mut T, but due to the way bevy_ecs works, this has to be checked at runtime instead.

Aha！Then it make sense, It will borrow twice if one entity has both Monster and Hunter. Thanks for quick answer.
BTW, is there some other solution to solve this in a better way? What I did is create another system to handle the Speed for Monster. just curious.

Personally, I have a policy of never using more than one query per system. Imho, it means that you want to do too many things in one system or have a bad architecture, which may lead to problems now or in the future (as demonstrated above). The architecture should be changed so that there is only one query needed.
Depending on what you want to achieve, this may mean that you will need an additional data structure and sort systems in a specific order. Sometimes, it's just rethinking a few components early on.
For example, you could have an EntityType component, which contains the differentiation between hunter and monster, and a Controller component instead of AI, which capsules AI. That way, one query would be enough. Also it would allow you to easily put a network solution in place instead of the AI, or just another keyboard input handler, and that way implement multiplayer. Or develop different kinds of AI agents, which you could use for debugging or on different levels or create different hunter types easily.

Making the queries disjoint (the solution @Ixentus posted above) is generally the right call. You can also use QuerySets, which allow multiple conflicting queries in the same system. However you are only allowed to access one at a time, which is enforced by rust's borrow checker:
https://bevy-cheatbook.github.io/programming/query-sets.html

Though querysets are a solution, often times I think minecrawler's advice is very good to keep in mind, and I would generally try to consider it first.

Hi all,
Thanks a lot for the help. Yes, all of above solutions are good to know and solve my problem. :)


[Search Pipelines] Add stats for search pipelines

Description
This adds statistics on executions and time spent on search pipeline operations, similar to the stats that are available for ingest pipelines.
Related Issues
Resolves #6723
Check List

[x] New functionality includes testing.

[x] All tests pass

[x] New functionality has been documented.

[x] New functionality has javadoc added

[x] Commits are signed per the DCO using --signoff
[x] Commit changes are listed out in CHANGELOG.md file (See: Changelog)

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.

@saratvemulapalli  -- Addressed your suggestions.
Windows precommit failed, but that seems to be a "Windows build server" thing and not a "this PR" thing.

@saratvemulapalli -- Addressed your suggestions.
Windows precommit failed, but that seems to be a "Windows build server" thing and not a "this PR" thing.

Thanks @msfroh. I've triggered a re-run of window precommit. I haven't seen failures just in Windows platform.
If the failure persists we can dig in.

Thanks, @saratvemulapalli!
I resolved the open conversations, so it looks like there are no immediate merge blockers.

Oh, the "Some checks were not successful" note seems to be there because the Mac OS precommit was canceled when the Windows precommit failed.

@msfroh needs manual backport if you want this in 2.x

I will help with the backport to 2.x

I totally get it that given current state of API isolation it is possible that any internal renaming is possibly a "breaking" change but hey ... it is. I do not know if it makes sense to establish a new rule about how the "breaking" label is applied but the fact is that change like this can cause compilation error somewhere else.

Oh, shoot. I didn't expect that.
I'm not sure what the best option is there. I'll aim to add the "breaking" label if I rename an existing method in future, at least.

@msfroh Do not feel sorry for this.
With 2.9.0 there was another breaking change that impacted me, see https://github.com/opensearch-project/OpenSearch/pull/7508#issuecomment-1658161236
I also do not know what is the solution here. We could introduce something like "internal_API_change" label which will not go to the change log but can be used on GitHub to filter tickets but it would have to be applied consistently and there is no way how to achieve this (except by increasing the work load).


:bug: backport "wait for ironic/bmo deployment becomes available"

/test-ubuntu-e2e-integration-release-1-4
/test-centos-e2e-integration-release-1-4

/cc @mboukhalfa

/retest

_ No description provided. _

Can you please link to the original commit ?

/retest


Update NXDrawKit.podspec to set Swift version to 4.0

Setting Swift version in podspec to 4.0 so that it will build properly until project is fully updated for Swift 4.2.

Thanks @adamsantos67


Recommend to use cpuutil over cpu

Issue
We have seen customers use the cpu metric when they should rather be using the cpuutil metric, because the current text does not make it obvious that there is a significant difference between both metrics.
Fix
Recommend to use cpuutil over cpu, citing the removal of the need to calculate the entitlement yourself.

278007


lnaddress error because description_hash

I get this error with v0.9.4 when I actually send sats to the address with WoS.
2022-10-10 14:09:45.99 | INFO | xxx.xxx.xxx.xxx:0 - "GET /.well-known/lnurlp/xxxxxxxx HTTP/1.1" 200
2022-10-10 14:10:05.33 | ERROR | handled error
2022-10-10 14:10:05.33 | ERROR | ERROR:
Traceback (most recent call last):
  File "/usr/local/lib/python3.9/site-packages/starlette/middleware/errors.py", line 162, in __call__
    await self.app(scope, receive, _send)
  File "/usr/local/lib/python3.9/site-packages/starlette/middleware/gzip.py", line 24, in __call__
    await responder(scope, receive, send)
  File "/usr/local/lib/python3.9/site-packages/starlette/middleware/gzip.py", line 43, in __call__
    await self.app(scope, receive, self.send_with_gzip)
  File "/usr/local/lib/python3.9/site-packages/starlette/middleware/cors.py", line 84, in __call__
    await self.app(scope, receive, send)
  File "/usr/local/lib/python3.9/site-packages/starlette/exceptions.py", line 93, in __call__
    raise exc
  File "/usr/local/lib/python3.9/site-packages/starlette/exceptions.py", line 82, in __call__
    await self.app(scope, receive, sender)
  File "/usr/local/lib/python3.9/site-packages/fastapi/middleware/asyncexitstack.py", line 21, in __call__
    raise e
  File "/usr/local/lib/python3.9/site-packages/fastapi/middleware/asyncexitstack.py", line 18, in __call__
    await self.app(scope, receive, send)
  File "/usr/local/lib/python3.9/site-packages/starlette/routing.py", line 670, in __call__
    await route.handle(scope, receive, send)
  File "/usr/local/lib/python3.9/site-packages/starlette/routing.py", line 266, in handle
    await self.app(scope, receive, send)
  File "/usr/local/lib/python3.9/site-packages/starlette/routing.py", line 65, in app
    response = await func(request)
  File "/usr/local/lib/python3.9/site-packages/fastapi/routing.py", line 227, in app
    raw_response = await run_endpoint_function(
  File "/usr/local/lib/python3.9/site-packages/fastapi/routing.py", line 160, in run_endpoint_function
    return await dependant.call(**values)
  File "/app/lnbits/extensions/lnaddress/lnurl.py", line 64, in lnurl_callback
    call = await client.post(
  File "/usr/local/lib/python3.9/site-packages/httpx/_client.py", line 1842, in post
    return await self.request(
  File "/usr/local/lib/python3.9/site-packages/httpx/_client.py", line 1514, in request
    request = self.build_request(
  File "/usr/local/lib/python3.9/site-packages/httpx/_client.py", line 356, in build_request
    return Request(
  File "/usr/local/lib/python3.9/site-packages/httpx/_models.py", line 336, in __init__
    headers, stream = encode_request(content, data, files, json)
  File "/usr/local/lib/python3.9/site-packages/httpx/_content.py", line 214, in encode_request
    return encode_json(json)
  File "/usr/local/lib/python3.9/site-packages/httpx/_content.py", line 177, in encode_json
    body = json_dumps(json).encode("utf-8")
  File "/usr/local/lib/python3.9/json/__init__.py", line 231, in dumps
    return _default_encoder.encode(obj)
  File "/usr/local/lib/python3.9/json/encoder.py", line 199, in encode
    chunks = self.iterencode(o, _one_shot=True)
  File "/usr/local/lib/python3.9/json/encoder.py", line 257, in iterencode
    return _iterencode(o, 0)
  File "/usr/local/lib/python3.9/json/encoder.py", line 179, in default
    raise TypeError(f'Object of type {o.__class__.__name__} '
TypeError: Object of type bytes is not JSON serializable
2022-10-10 14:10:05.33 | ERROR | Exception in ASGI application

2022-10-10 14:10:05.33 | INFO | xxx.xxx.xxx.xxx:0 - "GET /lnaddress/lnurl/cb/xxxxxxxxxx?amount=1000&nonce=xxxxxxxxxx HTTP/1.1" 500
2022-10-10 14:10:05.67 | ERROR | handled error
2022-10-10 14:10:05.67 | ERROR | ERROR:
Traceback (most recent call last):
  File "/usr/local/lib/python3.9/site-packages/starlette/middleware/errors.py", line 162, in __call__
    await self.app(scope, receive, _send)
  File "/usr/local/lib/python3.9/site-packages/starlette/middleware/gzip.py", line 24, in __call__
    await responder(scope, receive, send)
  File "/usr/local/lib/python3.9/site-packages/starlette/middleware/gzip.py", line 43, in __call__
    await self.app(scope, receive, self.send_with_gzip)
  File "/usr/local/lib/python3.9/site-packages/starlette/middleware/cors.py", line 84, in __call__
    await self.app(scope, receive, send)
  File "/usr/local/lib/python3.9/site-packages/starlette/exceptions.py", line 93, in __call__
    raise exc
  File "/usr/local/lib/python3.9/site-packages/starlette/exceptions.py", line 82, in __call__
    await self.app(scope, receive, sender)
  File "/usr/local/lib/python3.9/site-packages/fastapi/middleware/asyncexitstack.py", line 21, in __call__
    raise e
  File "/usr/local/lib/python3.9/site-packages/fastapi/middleware/asyncexitstack.py", line 18, in __call__
    await self.app(scope, receive, send)
  File "/usr/local/lib/python3.9/site-packages/starlette/routing.py", line 670, in __call__
    await route.handle(scope, receive, send)
  File "/usr/local/lib/python3.9/site-packages/starlette/routing.py", line 266, in handle
    await self.app(scope, receive, send)
  File "/usr/local/lib/python3.9/site-packages/starlette/routing.py", line 65, in app
    response = await func(request)
  File "/usr/local/lib/python3.9/site-packages/fastapi/routing.py", line 227, in app
    raw_response = await run_endpoint_function(
  File "/usr/local/lib/python3.9/site-packages/fastapi/routing.py", line 160, in run_endpoint_function
    return await dependant.call(**values)
  File "/app/lnbits/extensions/lnaddress/lnurl.py", line 64, in lnurl_callback
    call = await client.post(
  File "/usr/local/lib/python3.9/site-packages/httpx/_client.py", line 1842, in post
    return await self.request(
  File "/usr/local/lib/python3.9/site-packages/httpx/_client.py", line 1514, in request
    request = self.build_request(
  File "/usr/local/lib/python3.9/site-packages/httpx/_client.py", line 356, in build_request
    return Request(
  File "/usr/local/lib/python3.9/site-packages/httpx/_models.py", line 336, in __init__
    headers, stream = encode_request(content, data, files, json)
  File "/usr/local/lib/python3.9/site-packages/httpx/_content.py", line 214, in encode_request
    return encode_json(json)
  File "/usr/local/lib/python3.9/site-packages/httpx/_content.py", line 177, in encode_json
    body = json_dumps(json).encode("utf-8")
  File "/usr/local/lib/python3.9/json/__init__.py", line 231, in dumps
    return _default_encoder.encode(obj)
  File "/usr/local/lib/python3.9/json/encoder.py", line 199, in encode
    chunks = self.iterencode(o, _one_shot=True)
  File "/usr/local/lib/python3.9/json/encoder.py", line 257, in iterencode
    return _iterencode(o, 0)
  File "/usr/local/lib/python3.9/json/encoder.py", line 179, in default
    raise TypeError(f'Object of type {o.__class__.__name__} '
TypeError: Object of type bytes is not JSON serializable
2022-10-10 14:10:05.68 | ERROR | Exception in ASGI application

2022-10-10 14:10:05.68 | INFO | xxx.xxx.xxx.xxx:0 - "GET /lnaddress/lnurl/cb/xxxxxxxxxx?amount=1000&nonce=xxxxxxxxxx HTTP/1.1" 500

I debugged a little and it seems to come from the description_hash in the call.
Maybe broke with this refactoring:
https://github.com/lnbits/lnbits/commit/f1ec7e33f05a8c2c529683427a2a05b70dc2ba07

I just made a pull request that fixes it: https://github.com/lnbits/lnbits/pull/1060

I can verify the fix is working, thx. I will close this.


[MINOR][ML] update comment where is inconsistent with code in ml.regression.LinearRegression

What changes were proposed in this pull request?
In train method of ml.regression.LinearRegression when handling situation std(label) == 0
the code replace std(label) with mean(label) but the relative comment is inconsistent, I update it.
How was this patch tested?
N/A

Test build #62042 has started for PR 14121 at commit ab7452c.

Test build #62042 has finished for PR 14121 at commit ab7452c.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/62042/
Test PASSed.

Merged build finished. Test PASSed.

OK

Merged to master/2.0


Test branch

Remove sa-file as bug has been fixed. Better script output

Sorry, meant to open this again my fork


Clarify meaning of "Not modified" on dataset page

Changed the language to "Data never modified" and I think its clear. Feedback welcome.


e2e error at step NR. -1

Hi,
at step Nr1. (https://docs.angularjs.org/tutorial) on last sub step "Running End to End Tests"
I get an error on command "npm run protractor"
Finished in 12.909 seconds
7 tests, 11 assertions, 1 failure
Shutting down selenium standalone server.
[launcher] 0 instance(s) of WebDriver still running
[launcher] chrome #1 failed 1 test(s)
[launcher] overall: 1 failed spec(s)
[launcher] Process exited with error code 1
npm ERR! Windows_NT 10.0.10586
npm ERR! argv "C:\nodejs\node.exe" "C:\nodejs\node_modules\npm\bin\npm-cli.js" "run" "protractor"
npm ERR! node v4.4.3
npm ERR! npm  v2.15.1
npm ERR! code ELIFECYCLE
npm ERR<EMAIL_ADDRESS>protractor: protractor test/protractor-conf.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the<EMAIL_ADDRESS>protractor script 'protractor test/protractor-conf.js'.
npm ERR! This is most likely a problem with the angular-phonecat package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     protractor test/protractor-conf.js
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs angular-phonecat
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!
npm ERR!     npm owner ls angular-phonecat
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR!     C:\ProjectsGit\angular-phonecat\angular-phonecat\npm-debug.log
And the file " C:\ProjectsGit\angular-phonecat\angular-phonecat\npm-debug.log" does not get generated.
The first run of e2e tests was successful btw, but the 4 subsequent attempts yelded the same error.
PS. I do have the the latest java version and the cmd is being run in admin mode.
Help?

The exact error message :
...
...
Selenium standalone server started at http://<IP_ADDRESS>:62553/wd/hub
...F...
Failures:

PhoneCat App Phone list view should render phone specific links
Message:
Expected '/phones/motorola-xoom-with-wi-fi' to equal '/phones/nexus-s'.
Stacktrace:
Error: Expected '/phones/motorola-xoom-with-wi-fi' to equal '/phones/nexus-s'.
at new jasmine.ExpectationResult (C:\ProjectsGit\angular-phonecat\angular-phonecat\node_modules\protractor\node_modules\minijasminenode\lib\jasmine-1.3.1.js:137:32)
at [object Object]. (C:\ProjectsGit\angular-phonecat\angular-phonecat\node_modules\protractor\node_modules\minijasminenode\lib\jasmine-1.3.1.js:1349:29)
at [object Object].toEqual (C:\ProjectsGit\angular-phonecat\angular-phonecat\node_modules\protractor\node_modules\jasminewd\index.js:248:11)
at C:\ProjectsGit\angular-phonecat\angular-phonecat\test\e2e\scenarios.js:70:21
at Array.forEach (native)
at goog.async.run.processWorkQueue (C:\ProjectsGit\angular-phonecat\angular-phonecat\node_modules\protractor\node_modules\selenium-webdriver\lib\goog\async\run.js:130:15)

Finished in 12.909 seconds
7 tests, 11 assertions, 1 failure
...
...

I had  same issue. Try to update depending

All dependencies and tools have been updated recently (along with the tutorial itself) and this is hopefully not an issue any more.
If anyone is still having problems, please open a new issue.


Onclick, a parent and child class, cannot take effect

Onclick, a parent and child class, cannot take effect

I'm not sure what you're asking but there's far too little of information here. Butter Knife plays no part in the behavior of how Android dispatches click events, it just binds methods to callbacks automatically, no different than you would manually.
Without more information, there's no action to take here.

I solved the problem


VGG16 Tuning

I have an error. Please help

File "C:/Users/w024029h/PycharmProjects/keras_pretrained/vgg16_tuning.py", line 70, in
top_model.add(Conv2D(2622, (1, 1), padding='same'))
ValueError: Input 0 is incompatible with layer conv2d_16: expected ndim=4, found ndim=2

top_model = Sequential()
top_model.add(model)

top_model.add(ZeroPadding2D((1, 1), input_shape=(224,224,3)))
top_model.add(Conv2D(32, (3, 3), padding='same'))
top_model.add(ZeroPadding2D((1, 1)))
top_model.add(Conv2D(64, (3, 3), activation='relu', padding='same'))
top_model.add(MaxPooling2D((2, 2), strides=(2, 2)))

top_model.add(ZeroPadding2D((1, 1)))
top_model.add(Conv2D(128, (3, 3), activation='relu', padding='same'))
top_model.add(ZeroPadding2D((1, 1)))
top_model.add(Conv2D(128, (3, 3), activation='relu', padding='same'))
top_model.add(MaxPooling2D((2, 2), strides=(2, 2)))

top_model.add(ZeroPadding2D((1, 1)))
top_model.add(Conv2D(256, (3, 3), activation='relu', padding='same'))
top_model.add(ZeroPadding2D((1, 1)))
top_model.add(Conv2D(256, (3, 3), activation='relu', padding='same'))
top_model.add(ZeroPadding2D((1, 1)))
top_model.add(Conv2D(256, (3, 3), activation='relu', padding='same'))
top_model.add(MaxPooling2D((2, 2), strides=(2, 2)))

top_model.add(ZeroPadding2D((1, 1)))
top_model.add(Conv2D(512, (3, 3), activation='relu', padding='same'))
top_model.add(ZeroPadding2D((1, 1)))
top_model.add(Conv2D(512, (3, 3), activation='relu', padding='same'))
top_model.add(ZeroPadding2D((1, 1)))
top_model.add(Conv2D(512, (3, 3), activation='relu', padding='same'))
top_model.add(MaxPooling2D((2, 2), strides=(2, 2)))

top_model.add(ZeroPadding2D((1, 1)))
top_model.add(Conv2D(512, (3, 3), activation='relu', padding='same'))
top_model.add(ZeroPadding2D((1, 1)))
top_model.add(Conv2D(512, (3, 3), activation='relu', padding='same'))
top_model.add(ZeroPadding2D((1, 1)))
top_model.add(Conv2D(512, (3, 3), activation='relu', padding='same'))
top_model.add(MaxPooling2D((2, 2), strides=(2, 2)))

top_model.add(Conv2D(4096, (7, 7), activation='relu', padding='same'))
top_model.add(Dropout(0.5))
top_model.add(Conv2D(4096, (1, 1), activation='relu', padding='same'))
top_model.add(Dropout(0.5))
top_model.add(Flatten())
top_model.add(Conv2D(2622, (1, 1), padding='same'))
top_model.add(Activation('softmax'))

The last 3 layers of VGG-Face is convolution (Conv2D) layers whereas regular VGG for imagenet is fully connected layers (Dense). In other words, they are different models.
You put regular VGG into model variable and put VGG-Face into top_model variable.
1- You confuse the model with the following command. You must remove this first.
top_model.add(model)
2- Then, you can load weights of VGG-Face model.
top_model.load_weights(weights_path)
3- After then, you can add remove and add layers to VGG-Face. For example, I made a similar implementation in this repository. Please look at the code block 26, 27, 28.

Load a fine tune model in keras
Error when load a fine Tuned model of Dog Vs Cat
I am using keras version : 2.1.6
`import matplotlib.pyplot as plt
import keras
import numpy as np
from keras.models import Sequential
from keras.models import load_model
from keras.layers import Activation
from keras.layers.core import Dense, Flatten
from keras.optimizers import Adam
from keras.metrics import categorical_crossentropy
from keras.preprocessing.image import ImageDataGenerator
from keras.layers.normalization import BatchNormalization
from keras.layers.convolutional import *
from sklearn.metrics import confusion_matrix
import itertools
idg = ImageDataGenerator()
train_batch = idg.flow_from_directory('train', classes = ['cat', 'dog'], target_size = (224, 224), batch_size=10)
test_batch = idg.flow_from_directory('test', classes = ['cat', 'dog'], target_size = (224, 224), batch_size=2)
valid_batch = idg.flow_from_directory('valid', classes = ['cat', 'dog'], target_size = (224, 224), batch_size=2)
#Plot Images with labels
def plot(img, figsize = (12, 6), rows = 1, interp = False, titles = None):
if type(img) is np.ndarray :
img = np.array(img).astype(np.uint8)
if img.shape[-1] != 3 :
img = img.transpose((0, 2, 3, 1))
f = plt.figure(figsize = figsize)
cols = len(img)//rows if len(img)%2 == 0 else len(img)//rows + 1

for i in range(len(img)) :
    sp = f.add_subplot(rows, cols, i+1)
    sp.axis('off')
    if titles is not None :
        sp.set_title(titles[i], fontsize = 16)
    plt.imshow(img[i], interpolation = None if interp else 'none')

plt.show()

img, labels = next(train_batch)
plot(img, titles = labels)
Use of pretrained model i.e VGG16
vgg16_model = keras.applications.vgg16.VGG16()
vgg16_model.summary()
model_fineTune = Sequential()
for layer in vgg16_model.layers :
model_fineTune.add(layer)
model_fineTune.layers.pop()
for layer in model_fineTune.layers :
layer.trainable = False
model_fineTune.add(Dense(2, activation='softmax'))
model_fineTune.summary()
model_fineTune.compile('adam', 'categorical_crossentropy', metrics=['accuracy'])
model_fineTune.fit_generator(train_batch, steps_per_epoch=6, epochs=2,
verbose=2, validation_data = valid_batch, validation_steps=1)
predictions = model_fineTune.predict_generator(test_batch, steps=1)
test_imgs, test_labels = next(test_batch)
plot(test_imgs, titles=test_labels)
print(predictions)
model_fineTune.save("DogVsCat.h5")
trained_model = load_model("DogVsCat.h5")  # Here it shows error
`
**Error **
ValueError: Dimension 0 in both shapes must be equal, but are 4096 and 1000. Shapes are [4096,2] and [1000,2]. for 'Assign_62' (op: 'Assign') with input shapes: [4096,2], [1000,2].
I might think that I drop Dense output layer which has 1000 neurons in before and add Dense layer of 2 neurons.
I don't know how to solve this but I reallt want to save my trained model.

Hello @KafeelBasha,
As you tried "To tune the parameters like type of pooling in pre trained Inception model and optimizer in compile() method, with the help of KerasClassifier() and GridSearchCV()."
Same thing I am performing for pre trained Xception model. But, I am also having trouble getting the results. Will you found any solution to use GridSearchCV for pre trained models?

I was trying to tune the parameters like type of pooling in pre trained models and optimizer in compile() method, with the help of KerasClassifier() and GridSearchCV().
Since as per the documentation 'GridSearchCV' object has no attribute 'fit_generator'. Is there any way I can tune the parameters. Any reference will be helpful.
#InceptionV3 as base model
##Grid search
def keras_incep(pool='avg',opt='sgd'):
base_model=InceptionV3(include_top=False,pooling=pool,input_shape=(75,75,3))
#Stacking layers
x=base_model.output
#Fully connected layer
x=Dense(1024,activation="relu")(x)
#We have two classes
predictions=Dense(2,activation="sigmoid")(x)
#Training Model
model_class=Model(inputs=base_model.input,outputs=predictions)
#Freeze base layer
for layer in base_model.layers:
layer.trainable=False
from keras.metrics import binary_accuracy
model_class.compile(loss="binary_crossentropy",optimizer=opt,metrics=["binary_accuracy"])

##create model
from keras.wrappers.scikit_learn import KerasClassifier
model=KerasClassifier(build_fn=keras_incep,verbose=0,epochs=10,batch_size=500)
##Grid parameters definition
pool=['avg','max']
opt=['sgd','adam','adagrad']
param_grid={'pooling':pool,'optimizer':opt}
from sklearn.model_selection import GridSearchCV
grid=GridSearchCV(estimator=model,param_grid=param_grid)
grid_result=grid.fit_generator(gen_train,epochs=10,verbose=1,validation_data=gen_test,shuffle=False)

Hello @KafeelBasha,
As you tried "To tune the parameters like type of pooling in pre trained Inception model and optimizer in compile() method, with the help of KerasClassifier() and GridSearchCV()."
Same thing I am performing for pre trained Xception model. But, I am also having trouble getting the results. Will you found any solution to use GridSearchCV for pre trained models?
Please help me i am stuck.

@SaketChaturvedi
GridSearchCV() method doesn't seem to implement fit_generator() method, it only implements fit() and score(), this could be the reason for the error.

@KafeelBasha
I am getting an usual error:
"ValueError: Found input variables with inconsistent numbers of samples: [3206, 546]"
I am stuck here. Please help me to solve the problem. Thank you in advance!
Here is my code:
`def createmodel(): x = model.output x = Dropout(0.25)(x) x = Dense(1024, activation='relu')(x) predictions = Dense(7, activation='softmax')(x) model = Model(inputs=model.input, outputs=predictions) model.compile(optimizer='adam', loss='categoricalcrossentropy', metrics=['accuracy'])
return model
from keras.wrappers.scikitlearn import KerasClassifier from sklearn.modelselection import GridSearchCV
from time import time
start = time()
model = KerasClassifier(buildfn = Xception, verbose =1, epochs=40,batchsize=10)
optimizers = ['RMSprop','Adam','SGD','Adagrad','Adadelta']
epochs = [10,20,30,40,50]
batches = [5,10,20,30]
init = ['uniform','normal','zero','glorotuniform'] learnrate = [0.001,0.001,0.1,0.2,0.3]
momentum = [0.0,0.2,0.4,0.6,0.8,0.9]
dropoutrate = [0.1,0.2,0.3,0.4,0.5,0.6,0.7,0.8,0.9] paramgrid = dict(epochs=epochs,optimizers=optimizers,batchsize=batches,learnrate=learnrate,momentum=momentum,initmode=init,dropoutrate=dropoutrate)
grid = GridSearchCV(estimator=model,paramgrid=paramgrid)
gridresult = grid.fit(trainbatches,valid_batches)
`

As per the documentation, Keras wrapper doesn't support multi input network. Refer below thread
https://github.com/keras-team/keras/issues/2748
https://github.com/keras-team/keras/issues/6451

Dear, sir, will you found any solution to use GridSearchCV to implement fit_generator() method? @KafeelBasha

No, as GridSearchCV() only supports fit() and score().


HBASE-24967 The table.jsp cost long time to load if the table include…

… closed regions

:confetti_ball: +1 overall

Vote
Subsystem
Runtime
Comment

+0 :ok:
reexec
1m 11s
Docker mode activated.

_ Prechecks _

+1 :green_heart:
dupname
0m  0s
No case conflicting files found.

+0 :ok:
prototool
0m  0s
prototool was not available.

+1 :green_heart:
hbaseanti
0m  0s
Patch does not have any anti-patterns.

+1 :green_heart:
@author
0m  0s
The patch does not contain any @author tags.

_ branch-2 Compile Tests _

+0 :ok:
mvndep
0m 14s
Maven dependency ordering for branch

+1 :green_heart:
mvninstall
3m 50s
branch-2 passed

+1 :green_heart:
checkstyle
2m  2s
branch-2 passed

+1 :green_heart:
spotbugs
5m 54s
branch-2 passed

_ Patch Compile Tests _

+0 :ok:
mvndep
0m 12s
Maven dependency ordering for patch

+1 :green_heart:
mvninstall
3m 35s
the patch passed

+1 :green_heart:
checkstyle
2m  2s
the patch passed

+1 :green_heart:
whitespace
0m  0s
The patch has no whitespace issues.

+1 :green_heart:
hadoopcheck
12m 47s
Patch does not cause any errors with Hadoop 3.1.2 3.2.1.

+1 :green_heart:
hbaseprotoc
1m 53s
the patch passed

+1 :green_heart:
spotbugs
6m 25s
the patch passed

_ Other Tests _

+1 :green_heart:
asflicense
0m 32s
The patch does not generate ASF License warnings.

48m 55s

Subsystem
Report/Notes

Docker
ClientAPI=1.40 ServerAPI=1.40 base: https://ci-hadoop.apache.org/job/HBase/job/HBase-PreCommit-GitHub-PR/job/PR-2613/1/artifact/yetus-general-check/output/Dockerfile

GITHUB PR
https://github.com/apache/hbase/pull/2613

Optional Tests
dupname asflicense spotbugs hadoopcheck hbaseanti checkstyle cc hbaseprotoc prototool

uname
Linux 0641661a0565 4.15.0-112-generic #113-Ubuntu SMP Thu Jul 9 23:41:39 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux

Build tool
maven

Personality
dev-support/hbase-personality.sh

git revision
branch-2 / 1c7d472537

Max. process+thread count
84 (vs. ulimit of 12500)

modules
C: hbase-protocol-shaded hbase-client hbase-server U: .

Console output
https://ci-hadoop.apache.org/job/HBase/job/HBase-PreCommit-GitHub-PR/job/PR-2613/1/console

versions
git=2.17.1 maven=3.6.3 spotbugs=3.1.12

Powered by
Apache Yetus 0.12.0 https://yetus.apache.org

This message was automatically generated.

:confetti_ball: +1 overall

Vote
Subsystem
Runtime
Comment

+0 :ok:
reexec
0m 35s
Docker mode activated.

-0 :warning:
yetus
0m  6s
Unprocessed flag(s): --brief-report-file --spotbugs-strict-precheck --whitespace-eol-ignore-list --whitespace-tabs-ignore-list --quick-hadoopcheck

_ Prechecks _

_ branch-2 Compile Tests _

+0 :ok:
mvndep
0m 15s
Maven dependency ordering for branch

+1 :green_heart:
mvninstall
3m 36s
branch-2 passed

+1 :green_heart:
compile
2m  5s
branch-2 passed

+1 :green_heart:
shadedjars
5m 56s
branch has no errors when building our shaded downstream artifacts.

+1 :green_heart:
javadoc
1m 17s
branch-2 passed

_ Patch Compile Tests _

+0 :ok:
mvndep
0m 15s
Maven dependency ordering for patch

+1 :green_heart:
mvninstall
3m 20s
the patch passed

+1 :green_heart:
compile
2m  4s
the patch passed

+1 :green_heart:
javac
2m  4s
the patch passed

+1 :green_heart:
shadedjars
5m 57s
patch has no errors when building our shaded downstream artifacts.

+1 :green_heart:
javadoc
1m 15s
the patch passed

_ Other Tests _

+1 :green_heart:
unit
0m 40s
hbase-protocol-shaded in the patch passed.

+1 :green_heart:
unit
2m 20s
hbase-client in the patch passed.

+1 :green_heart:
unit
144m 15s
hbase-server in the patch passed.

176m 23s

Subsystem
Report/Notes

Docker
ClientAPI=1.40 ServerAPI=1.40 base: https://ci-hadoop.apache.org/job/HBase/job/HBase-PreCommit-GitHub-PR/job/PR-2613/1/artifact/yetus-jdk8-hadoop2-check/output/Dockerfile

GITHUB PR
https://github.com/apache/hbase/pull/2613

Optional Tests
javac javadoc unit shadedjars compile

uname
Linux d141bb5a6c3e 4.15.0-60-generic #67-Ubuntu SMP Thu Aug 22 16:55:30 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux

Build tool
maven

Personality
dev-support/hbase-personality.sh

git revision
branch-2 / 1c7d472537

Default Java
AdoptOpenJDK-1.8.0_232-b09

Test Results
https://ci-hadoop.apache.org/job/HBase/job/HBase-PreCommit-GitHub-PR/job/PR-2613/1/testReport/

Max. process+thread count
4368 (vs. ulimit of 12500)

modules
C: hbase-protocol-shaded hbase-client hbase-server U: .

Console output
https://ci-hadoop.apache.org/job/HBase/job/HBase-PreCommit-GitHub-PR/job/PR-2613/1/console

versions
git=2.17.1 maven=3.6.3

Powered by
Apache Yetus 0.12.0 https://yetus.apache.org

This message was automatically generated.

:confetti_ball: +1 overall

Vote
Subsystem
Runtime
Comment

+0 :ok:
reexec
1m 14s
Docker mode activated.

-0 :warning:
yetus
0m  7s
Unprocessed flag(s): --brief-report-file --spotbugs-strict-precheck --whitespace-eol-ignore-list --whitespace-tabs-ignore-list --quick-hadoopcheck

_ Prechecks _

_ branch-2 Compile Tests _

+0 :ok:
mvndep
0m 15s
Maven dependency ordering for branch

+1 :green_heart:
mvninstall
4m 43s
branch-2 passed

+1 :green_heart:
compile
2m 38s
branch-2 passed

+1 :green_heart:
shadedjars
7m 26s
branch has no errors when building our shaded downstream artifacts.

+1 :green_heart:
javadoc
1m 23s
branch-2 passed

_ Patch Compile Tests _

+0 :ok:
mvndep
0m 19s
Maven dependency ordering for patch

+1 :green_heart:
mvninstall
4m 23s
the patch passed

+1 :green_heart:
compile
2m 37s
the patch passed

+1 :green_heart:
javac
2m 37s
the patch passed

+1 :green_heart:
shadedjars
7m 19s
patch has no errors when building our shaded downstream artifacts.

+1 :green_heart:
javadoc
1m 21s
the patch passed

_ Other Tests _

+1 :green_heart:
unit
0m 53s
hbase-protocol-shaded in the patch passed.

+1 :green_heart:
unit
2m 42s
hbase-client in the patch passed.

+1 :green_heart:
unit
224m 44s
hbase-server in the patch passed.

265m 23s

Subsystem
Report/Notes

Docker
ClientAPI=1.40 ServerAPI=1.40 base: https://ci-hadoop.apache.org/job/HBase/job/HBase-PreCommit-GitHub-PR/job/PR-2613/1/artifact/yetus-jdk11-hadoop3-check/output/Dockerfile

GITHUB PR
https://github.com/apache/hbase/pull/2613

Optional Tests
javac javadoc unit shadedjars compile

uname
Linux 8a65c30ba819 4.15.0-112-generic #113-Ubuntu SMP Thu Jul 9 23:41:39 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux

Build tool
maven

Personality
dev-support/hbase-personality.sh

git revision
branch-2 / 1c7d472537

Default Java
AdoptOpenJDK-11.0.6+10

Test Results
https://ci-hadoop.apache.org/job/HBase/job/HBase-PreCommit-GitHub-PR/job/PR-2613/1/testReport/

Max. process+thread count
2602 (vs. ulimit of 12500)

modules
C: hbase-protocol-shaded hbase-client hbase-server U: .

Console output
https://ci-hadoop.apache.org/job/HBase/job/HBase-PreCommit-GitHub-PR/job/PR-2613/1/console

versions
git=2.17.1 maven=3.6.3

Powered by
Apache Yetus 0.12.0 https://yetus.apache.org

This message was automatically generated.

Thanks all.


dts: esp32_devkitc_wroom: Add led0 node

blinky sample fails to build for esp32_devkitc_wroom due to missing led0 DT node. Add it to the device tree.

@srinivas-aerlync I think esp32-devkitc-wroom has no LED attached to GPIO. https://docs.espressif.com/projects/esp-idf/en/stable/esp32/hw-reference/esp32/get-started-devkitc.html

@sylvioalves ,
I used https://envirementalb.com/esp32-devkit-v1-pinout board, which has LED integrated in board

@sylvioalves ,
I used https://envirementalb.com/esp32-devkit-v1-pinout board, which has Blue LED integrated in board

Hi @srinivas-aerlync, there are many non-Espressif ESP32 boards that are "similar" but not the same as official Espressif boards. We cannot support them all for several reasons. But if you need just to test the LED-blink example, I suggest using the esp_wrover_kit as a build target, connecting the actual LED to gpio 0,2 or 4.

Looks like this PR should be closed, right? @srinivas-aerlync are you good with @marekmatej's recommendation?

It seems like customized boards have the LED, but the board released espressif doesn't have the LED.


Enable HTML in ESA/MQM sourceText

With minor changes to ESA/MQM view we get multimodal support (resolves #160).
HTML for video (sourceText):
<video
    src="https://samplelib.com/lib/preview/mp4/sample-5s.mp4"
    controls
    disablepictureinpicture
    preload="auto"
    controlslist="nodownload"
></video>

HTML for audio (sourceText):
<audio
    src='https://samplelib.com/lib/preview/mp3/sample-3s.mp3'
    controls controlslist='nodownload'
></audio>

example_small.webm

Sure, added some light documentation.
Now I'm thinking if we shouldn't rename the task type to MQM+ESA instead of DirectMQM, especially since ESA will likely be more used in WMT/Appraise. What do you think @snukky?


Explicitly adding links for prebuilt images

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

Codecov Report
Base: 33.95% // Head: 33.95% // No change to project coverage :thumbsup:

Coverage data is based on head (d211201) compared to base (31ea9f2).
Patch has no changes to coverable lines.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #192   +/-   ##
=======================================
  Coverage   33.95%   33.95%
=======================================
  Files          43       43
  Lines        3873     3873
=======================================
  Hits         1315     1315
  Misses       2377     2377
  Partials      181      181

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

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


fix: add dark mode to documentations app

Added dark mode functionality except for the API section

Hey, @sambutracy. There is an error while compiling you might not have passed some boolean value to some component. Please fix that and then update your PR. The error
<html>
<body>
<!--StartFragment-->
/app/installation/page.tsx:28:10
--
12:20:37.555 | Type error: Property 'darkMode' is missing in type '{}' but required in type '{ darkMode: boolean; }'.
12:20:37.555 |
12:20:37.555 | 26 \|           install command:
12:20:37.555 | 27 \|         </p>
12:20:37.555 | > 28 \|         <InstallCommands />
12:20:37.555 | \|          ^
12:20:37.556 | 29 \|         <p className="mt-5">
12:20:37.556 | 30 \|           Before using the library, make sure to set up the required environment
12:20:37.556 | 31 \|           variables in the .env file. These variables include:
12:20:37.601 | Error: Command "npm run build" exited with 1

<!--EndFragment-->
</body>
</html>

Hey, @sambutracy to make it easier for newcomers I have migrated the docs app to a new repo. https://github.com/amosmachora/react-daraja-docs . Would you mind reopening the PR there?

Nice. Yeah I’ll open the pr there
On Sat, Feb 10, 2024 at 00:34, Amos Machora @.***>
wrote:

Hey, @sambutracy https://github.com/sambutracy to make it easier for
newcomers I have migrated the docs app to a new repo.
https://github.com/amosmachora/react-daraja-docs . Would you mind
reopening the PR there?
—
Reply to this email directly, view it on GitHub
https://github.com/amosmachora/react-daraja/pull/43#issuecomment-1936633974,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AQAXNLZWYYTMHZ62HZ53WT3YS2I6PAVCNFSM6AAAAABCV5LCG6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMZWGYZTGOJXGQ
.
You are receiving this because you were mentioned.Message ID:
@.***>


New coiled-runtime release

dask and distributed 2022.5.1 were released yesterday which contain a variety of stability improvements. I'd like to issue a new coiled-runtime=0.0.4 release this Friday which pins dask and distributed to their latest 2022.5.1 release.
cc @ncclementi @hayesgb @fjetter @dchudz @shughes-uk @ntabris for visibility

Should we wait until we can add xgboost too, currently not working on v2 but there is progress on a fix?

Do you have a sense for how long the fix should take to be released? Certainly open to other opinions, but I'm inclined to not delay releasing coiled-runtime for the xgboost fix. If the coiled-side fix gets in and we can merge https://github.com/coiled/coiled-runtime/pull/131 before releasing, that would be nice, but I getting a new runtime release out which contains a fix for https://github.com/dask/distributed/issues/5981 seems higher priority
Additionally, the next coiled-runtime release will drop support for Python 3.7 and add support for Python 3.10. I don't think the Python 3.10 part will be an issue, but I believe coiled still supports Python 3.7 -- so we'll need to address that. @dchudz @shughes-uk @ntabris does suggesting "If you're using Python 3.7, you need to use coiled-runtime=0.0.3" work from your perspective? If not, do you have other suggestions?

@jrbourbeau In that case I'd be ok not including xgboost for now. Once things are fixed on coiled, we can add it and test it accordingly. I agree that including https://github.com/dask/distributed/issues/5981 is much higher priority at the moment.

I know some new logic was recently added to coiled.Cluster to detect the version of coiled-runtime (if installed) and use the correct corresponding software environment (based off of coiled-runtime). Does coiled-runtime=0.0.4 dropping support for Python 3.7 cause any problems for that? I suspect not because users won't be able to install coiled-runtime=0.0.4 and Python 3.7 locally, but thought it was worth double-checking (cc @marcosmoyano)

I suspect not because users won't be able to install coiled-runtime=0.0.4 and Python 3.7 locally

I suspect the same thing :)

Closing as coiled-runtime=0.0.4 is out -- thanks all!


chore(master): release 0.84.0-alpha

:robot: I have created a release beep boop
0.84.0-alpha (2024-04-12)
Features

new (d26140b)

This PR was generated with Release Please. See documentation.

:robot: Release is at https://github.com/mafqla/yalis-blog/releases/tag/v0.84.0-alpha :sunflower:


Added Linear search #254

Added content about linear search in the docs as day 22 content.
closes #254

@subhadipbhowmik sir , please merge it.


authorizeWithCallbackURL does nothing with Uber

I execute the following but nothing happens:
    //UBER
    let REGISTER_URL = "https://login.uber.com/oauth/authorize"
    let CLIENT_KEY = "********************"
    let SERVER_TOKEN = "*********************"
    let CLIENT_SECRET = "**************************"
    let ACCESS_TOKEN_URL = "https://login.uber.com/oauth/token"
    let REDIRECT_URI = "myappname://callback/url"

    func registerWithUber() {
        let params = [String: String]()
        let url = NSURL(string: REDIRECT_URI)
        let oauthUber = OAuth2Swift(consumerKey: CLIENT_KEY, consumerSecret: CLIENT_SECRET, authorizeUrl: REGISTER_URL, responseType: "code")

        oauthUber.authorizeWithCallbackURL(url!, scope: "profile history", state: "", params: params, success: {
            credentials, parameters, response in
                println("Success")
                println(credentials.oauth_token) },

            failure: { (error: NSError) -> Void in
                println("Fail")
        })

    }

Shouldn't it launch the Safari browser to authenticate with Uber?

I've also tried reversing parameters with response in the success closure but it doesn't change anything. Nothing happens. Nothing in the debug window.

Further examination through the OAuthSwift method authorizeWithCallbackURL I found this does not happen here:
        if let queryURL = NSURL(string: urlString) {
            println("This happens")
           self.authorize_url_handler.handle(queryURL)
        }

I tried println(urlString) and it looks fine as a URL. I'm not sure why it's not getting converted to NSURL here.

The value of urlstring is?
Maybe encoded, maybe special character hidden

Ok I found the answer. The problem was that the scope was not being percent escaped. "profile history" had to be changed to "profile%20history". This could be fixed by updating that urlString to be percent escaped.
Now I'm getting an entirely different error from uber's page: Invalid Request Parameters

So maybe a fix needed to encode scope

Yes, this worked here:
        if let q = urlString.stringByAddingPercentEscapesUsingEncoding(NSUTF8StringEncoding) {
            println(q)
            if let queryURL = NSURL(string: q) {
                println("This happens too")
                self.authorize_url_handler.handle(queryURL)
            }
        }

However, I'm sure it could be written better.
I still get invalid request parameters though, so not sure what's up with that. This is the url it's sending to UBER:
https://login.uber.com/oauth/authorize?client_id=myclientiddisplayscorrectlyhere&redirect_uri=UGetMe://oauth&response_type=code&scope=profile history

I'm having the same issue with the GitHub example...authorizeWithCallbackURL currently does nothing.

See above, you'll have to make sure the url string is percent encoded before being passed to the handle method. This is found in OAuth2Swift.swift, I had to add the above lines.

I'm working with the Swift 2 branch actually and I'm presenting the login screen with a SFSafariViewController.  I was convinced I was using it incorrectly, but this did the trick.  Thank you.

Hi @sephethus @phimage @damianesteban
I Resolved Uber OAuth problem
https://github.com/dongri/OAuthSwift/pull/96/files
Thanks!

dongri, there is still an issue in the authorizeWithCallBackURL. Uber gets an Invalid Request Parameters if the callback url is included in the URL string. I have to comment out that line urlString += "&redirect_uri=\(callbackURL.absoluteString!)" just to fix it.


Add more MNT_ flags, especially on FreeBSD

r? @m-ou-se
(rust-highfive has picked a reviewer for you, use r? to override)

Thanks! @bors r+

:pushpin: Commit 0100b3799846e209191c7ac64ce396acc8a09b5b has been approved by JohnTitor

:hourglass: Testing commit 0100b3799846e209191c7ac64ce396acc8a09b5b with merge bca40927e71dabb97f5da16a67a60c9194efdcab...

:broken_heart: Test failed - checks-actions

Ugh: qemu-system-sparc64: terminating on signal 15 from pid 1533 (timeout)
@bors retry

:hourglass: Testing commit 0100b3799846e209191c7ac64ce396acc8a09b5b with merge 72da7a6a464a5a2a17993b94d94d2ab99bb87db6...

:sunny: Test successful - checks-actions, checks-cirrus-freebsd-11, checks-cirrus-freebsd-12, checks-cirrus-freebsd-13
Approved by: JohnTitor
Pushing 72da7a6a464a5a2a17993b94d94d2ab99bb87db6 to master...


fetch minters failed

how to solve the problem？

same issue

same

same

This is relelated to tokens deployed on V2. If you have this issue then your node is still running V1.
Go inside your cat-token-box folder and pull the latest changes (git pull)
Then build the project again (yarn install && yarn build)
The issue will be fixed

This is relelated to tokens deployed on V2. If you have this issue then your node is still running V1. Go inside your cat-token-box folder and pull the latest changes (git pull) Then build the project again (yarn install && yarn build)
The issue will be fixed

This works

thanks now it seems to go a step  ahead
$ node dist/main mint -i c468e99ac3b533e503eac5ccf4f0e3362772f80cead8b7f71d802305d02f73d0_0 10
now it tells me that token limit is exceeds but there are 30% less
The number of minted tokens exceeds the limit!

That is because the limit per mint is 3. You have input 10

thanks now it seems to go a step ahead
$ node dist/main mint -i c468e99ac3b533e503eac5ccf4f0e3362772f80cead8b7f71d802305d02f73d0_0 10
now it tells me that token limit is exceeds but there are 30% less The number of minted tokens exceeds the limit!

Dont enter the limit and it will auto mint at the limit.

That is because the limit per mint is 3. You have input 10

ahh i thought this is the repeat count , is there an mint repeat option ?

That is because the limit per mint is 3. You have input 10

ahh i thought this is the repeat count , is there an mint repeat option ?

No theres no option for repeat mint. Youll have to write a script to mint in a loop