Toggle between settings ?

Is it possible to switch between two different settings within either settings.json or workplace settings ?

Not sure what you are talking about - switch between two settings?

Change between two settings within either settings.json or workspace settings; with a keyboard short-cut.

I need you to be more specific, what does "change between two settings" mean?

@roblourens If I set one setting within the settings.json file or workspace settings; I want to be able to toggle between another similar setting, for example; the font used within code.

We don't have any builtin functionality like that but there are extensions, for example maybe https://marketplace.visualstudio.com/items?itemName=Ho-Wan.setting-toggle does what you want.


Roll engine 9cf13568e2aa..325f5b66dcc0 (9 commits)

https://github.com/flutter/engine/compare/9cf13568e2aa...325f5b66dcc0
git log 9cf13568e2aa1f9ab37445037e2ef54ecb5146f8..325f5b66dcc0d32ed344a3d8555572c2fb995dc1 --no-merges --oneline
325f5b66d Roll fuchsia/sdk/core/linux-amd64 from i5kNl7ZKu6X9AqpFLP4d5vDqQ4k9CtaQIk3x3WLVFxMC to 8TNm8LtekvIJNYrWK9JBsM3qONKGYnyHufXhidbBKWsC (flutter/engine#9967)
fe0ffc7f6 Roll fuchsia/sdk/core/linux-amd64 from LNYN3mEv2NJLUmZf6nGD5IWqOjDDiXpPeV2l4YWI0j8C to i5kNl7ZKu6X9AqpFLP4d5vDqQ4k9CtaQIk3x3WLVFxMC (flutter/engine#9966)
0ac94f75a Roll fuchsia/sdk/core/linux-amd64 from Hjo8G2HMO-S2RkQO8NOJNFH9t9QlspYq810NONDB8e0C to LNYN3mEv2NJLUmZf6nGD5IWqOjDDiXpPeV2l4YWI0j8C (flutter/engine#9964)
8fda1c99b Fix return type of assert function in gradient_test (flutter/engine#9961)
79bb7a583 Roll fuchsia/sdk/core/linux-amd64 from yCNSGMzcBMQzda_aHXqXWoW1cLSen0AL64orTFH-qHcC to Hjo8G2HMO-S2RkQO8NOJNFH9t9QlspYq810NONDB8e0C (flutter/engine#9960)
736c28b35 Update Dart engine tests to check for assertion failures only when running in debug mode (flutter/engine#9959)
b56e1ad79 Roll src/third_party/skia 4a13119a60e2..be91f062d70e (3 commits) (flutter/engine#9956)
61e2ba1db Roll src/third_party/dart 63120303a7...a089199b93 (flutter/engine#9951)
da0fcf828 Updates to the engine test runner script (flutter/engine#9934)
The AutoRoll server is located here: https://autoroll.skia.org/r/flutter-engine-flutter-autoroll
Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+/master/autoroll/README.md
If the roll is causing failures, please contact the current sheriff (aaclarke@google.com), and stop
the roller if necessary.

Auto-roller completed checks. About to merge.


script

there's some problem with this script or insttructions it does not offer to download the whisperfile, neither adds the scripts directory to $PATH, or runs correctly(i manually added the whisperfile path to the scripts)
.local/bin/wsi -w: cannot execute: required file not found
installation output
~/Projects/BlahST$ bash install-wsi

Checking for $HOME/.local/bin...
Copying the orchestrator script(s) to /home/user/.local/bin...
Speech processor scripts copied and made executable. $PATH updated.

Checking for sox...   OK

You can use a local whisper.cpp installation, or connect to a whisper.cpp server.
If you have a portable whisperfile instead of whisper.cpp, answer 'n' to the next question.
Do you want to use a local whisper.cpp preinstalled on this machine? [Y/n]:
n

Will be calling a network instance of whisper.cpp for transcription...
Checking for tools needed for network transcription...
Checking for curl...   OK
As a final step, please, set up the server and adjust its IP and port number in the CONFIGURATION block of wsi and/or wsiml.
Installation complete. Run the 'wsi' and/or 'wsiml' scripts from the command line first to verify correct operation.
~/Projects/BlahST$ $PATH
bash: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin: No such file or directory

i do have a different package wl-clipboard instead of wl-copy bc that's what's available on linux mint, but the output "a file is not found" is too vague

True, the install script is somewhat behind the extra features added over time. Will rework it when I have time.
For the time being, the logic is that if you select to not search for a compiled whisper.cpp, it is for now assumed that a whisperfile is available in the path (I could have used wget in the script to pull in a whsperfile, but that is a moving target and a matter of choice since there are many options). Check the Config section of each script that you are planning to use to set the correct filename (or complete path to it) of the whisperfile (e.g. whisper.tiny.en.llamafile) so that the script finds it in the PATH. You have to then use the script with -w flag to indicate that you will use the whisperfile, otherwise it will try to fallback to a local whisper.cpp installation that you do not have.
If you are using different Clipboard program, go into the script and replace the wl-copy call with the correct call to your specific program, but I think wl-clipboard is the parent package of wl-copy so you should be good. Test in the terminal to confirm wl-copy Hello clipboard and see if you can paste that text w ctrl+v.
Let me know if you need additional help.
QB

OK, nice, so assuming you have xsel (for the X11 clipboard) when you issue a command
wsi -c -w

what do you get?
Don't forget that you can partition the problem further, check your /dev/shm folder for example and see if you have a file called wfile . That is a wav file so you can use it to test your whisperfile installation:
whisper-small.llamafile -f /dev/shm/wfile

Btw don't run the script in a new shell, run it in the existing shell environment:
'/home/user/.local/bin/wsi -w -c'
(the c is to use the ctrl+v to paste)
It seems your program may be running OK if it is exiting (but it seems you have not set your hotkeys yet).
So set the mic level to such that the program will exit.
Then go to a window with a text input field and press ctrl+v. It should paste what you said.

Remember that this is made to work from the desktop , not in a terminal, i.e. you just press a global keyboard shortcut (hotkey), it transcribes in the background and either you paste the transcribed text anywhere, or it autopastes it.
The first run in the terminal is to check that it does not complain. If you would like, you can uncomment  some of the echo statements in the script to monitor the output in the terminal. Later , when all is good, comment them back.

Yes you can.
Please, read the Summary and Tips and Tricks sections in the README to get a better idea how it works and to adjust things.
Once you set the global keyboard shortcut for the stop recording command `pkill --signal 2 rec', the sensitivity won't matter since you will be stoping it when needed with the key press. Let me know if you need help setting the hotkeys, I don't have Cinnamon but it should be in the system keyboard settings menu.

The whisperfile is using basic, but universal CUDA BLASS implementation (tinyblass) so not as effective as compiled whisper.cpp. Best is compiled whisper.cpp server (I get ~90x real time transcription speed). You can read the whisperfile docs , I think they have a --recompile flag that will attempt to recompile CUDA support for the APE and will get a speedup potentially.

Once you are happy with the speed and optimizations, feel free to change AUTOPASTE=true in the CONFIG block to have the transcribed speech pasted automatically in any window that has the keyboard input focus as soon as it is transcribed (no need for ctrl+v).  Will require xdotool then.

Glad you like it, also try the wsiAI later, which will need a local llama.cpp or llamafile.
Let me know if you have any other issues or questions.
Cheers,
QB

Closing issue.


Use iOS AudioSession more sparingly to help with other clients

In particular, don't end an AudioSession upon deactivation. Leave it open in case other parts of the iOS client are actively playing audio

 Radiobrain stops playing when put in the background for non-audio apps


Zoomist library V2

The based library has been updated and a new version has been released https://github.com/cotton123236/zoomist/releases/tag/v2.0.10.
Should we update the add-on with the latest library version?
It's not clear if there're new features. The current version used in the add-on is 1.1.1.

Won't upgrade to Zoomist 2.0.10 for now. It has a bug in Firefox: "TouchEvent is not defined"

The based component has several updates. Latest version is 2.1.1. There's a fix  regarding TouchEvent but it mentions that it fixes the issue in Safari. Maybe we could give it another try?


"cursor: not-allowed;" doesn't appear on disabled buttons.

Not sure if bug or expected behavior...
Each of the following should have the "not-allowed" cursor on mouseover, but none do...
<button class="btn btn-default" type="submit" disabled="disabled">Button</button>

Button

Relevant CSS is here...
.btn.disabled, .btn[disabled], fieldset[disabled] .btn {
  pointer-events: none;
  cursor: not-allowed;
  filter: alpha(opacity=65);
  -webkit-box-shadow: none;
  box-shadow: none;
  opacity: .65;
}

If you remove the "pointer-events: none;" it works as expected.
Tested on XP in...
Chrome Version 40.0.2214.111 m
Firefox Version 35.0.1

This is expected—there should be no cursor on disabled buttons in browsers that allow pointer-events.


RT-1.14 BGP Long-Lived Graceful Restart

Hi,
This pull request is created to address  RT-1.14 BGP Long-Lived Graceful Restart.
This PR will resolve : https://github.com/openconfig/featureprofiles/issues/1583
Thanks,
Prabha

Pull Request Functional Test Report for #1819 / eeb646611cafa36abe672d414ba87c6371937c06
No tests identified for validation.
Help

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 47.655%

Totals

Change from base Build<PHONE_NUMBER>:
0.0%

Covered Lines:
1341

Relevant Lines:
2814

💛  - Coveralls


Possible improvmeents

Hi!
A few possible improvements (overall I got over 100x speed improvement over your vanilla code).
a) mapping all variable names to integers (internally). This depends, but for me it gave up to 10x speedup.
b) Changing a few things in the solvers. I copy an example of what I did. It's rather simple optimization of taking some of the repeated code out of the loops. Unless I missed it there, there are no dependencies there. (I checked the correctness of the code). This gives around 4x speedup
c) Switching from dicts to lists inside the solvers (havent done that yet). Seems its gonna be possible in a few places. At the moment dictionary copy method in "yield assignments.copy()" takes bulk of the time.
Hope it helps!
class OptimizedSolver(Solver):
"""
Problem solver with backtracking capabilities
Examples:

>>> result = [[('a', 1), ('b', 2)],
...           [('a', 1), ('b', 3)],
...           [('a', 2), ('b', 3)]]

>>> problem = Problem(BacktrackingSolver())
>>> problem.addVariables(["a", "b"], [1, 2, 3])
>>> problem.addConstraint(lambda a, b: b > a, ["a", "b"])

>>> solution = problem.getSolution()
>>> sorted(solution.items()) in result
True

>>> for solution in problem.getSolutionIter():
...     sorted(solution.items()) in result
True
True
True

>>> for solution in problem.getSolutions():
...     sorted(solution.items()) in result
True
True
True
"""

def __init__(self, forwardcheck=True):
    """
    @param forwardcheck: If false forward checking will not be requested
                         to constraints while looking for solutions
                         (default is true)
    @type  forwardcheck: bool
    """
    self._forwardcheck = forwardcheck

def getSolutionIter(self, domains, constraints, vconstraints, lst):
    forwardcheck = self._forwardcheck
    assignments = {}

    queue = []

    while True:

        # Mix the Degree and Minimum Remaing Values (MRV) heuristics
        for variable in lst:
            if variable not in assignments:
                # Found unassigned variable
                values = domains[variable][:]
                if forwardcheck:
                    pushdomains = [
                        domains[x]
                        for x in domains
                        if x not in assignments and x != variable
                    ]
                else:
                    pushdomains = None
                break
        else:
            # No unassigned variables. We've got a solution. Go back
            # to last variable, if there's one.
            yield assignments.copy()
            if not queue:
                return
            variable, values, pushdomains = queue.pop()
            if pushdomains:
                for domain in pushdomains:
                    domain.popState()

        while True:
            # We have a variable. Do we have any values left?
            if not values:
                # No. Go back to last variable, if there's one.
                del assignments[variable]
                while queue:
                    variable, values, pushdomains = queue.pop()
                    if pushdomains:
                        for domain in pushdomains:
                            domain.popState()
                    if values:
                        break
                    del assignments[variable]
                else:
                    return

            # Got a value. Check it.
            assignments[variable] = values.pop()

            if pushdomains:
                for domain in pushdomains:
                    domain.pushState()

            for constraint, variables in vconstraints[variable]:
                if not constraint(variables, domains, assignments, pushdomains):
                    # Value is not good.
                    break
            else:
                break

            if pushdomains:
                for domain in pushdomains:
                    domain.popState()

        # Push state before looking for next variable.
        queue.append((variable, values, pushdomains))

    raise RuntimeError("Can't happen")

def getSolutions(self, domains, constraints, vconstraints):
    lst = [
        (-len(vconstraints[variable]), len(domains[variable]), variable)
        for variable in domains
    ]
    lst.sort()
    return list(self.getSolutionIter(domains, constraints, vconstraints, [c for a,b,c in lst]))

Is this implemented?

Is this implemented?

I haven't had time yet to really dig into the code, but was wondering if the author of this issue had given any thought to cythonizing the code wherever possible?


Create "Open source subsidy program" proposal

Reasons for making this change

Related issues

Dear @epicfaace,
This proposal is also ready for review.
Thank you!

Thanks, taking a look!
--
Ashwin Ramaswami
On Sun, Feb 20, 2022 at 10:42 AM Serkan Holat @.***>
wrote:

Dear @epicfaace https://github.com/epicfaace,
This proposal is also ready for review.
Thank you!
—
Reply to this email directly, view it on GitHub
https://github.com/PlaintextGroup/oss-virtual-incubator/pull/13#issuecomment-1046264751,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAM4MX73ACEYSRSQEKABXRDU4EDUPANCNFSM5OHFZLFQ
.
You are receiving this because you were mentioned.Message ID:
@.***>


Create example demonstrating combining expression filters for Table queries

Library name
Azure.Data.Tables
Please describe the feature.
See example here https://github.com/Azure/azure-sdk-for-net/issues/24033#issuecomment-927378891
Here are a couple examples of how to optionally combine some expressions as in your initial example:
If you want to deal just with expressions:
// Create the base expression
Expression<Func<MyEntity, bool>> query = e => e.PartitionKey == Partition;

// Create a variable for the expression body
var queryBody = query.Body;

// Create a variable for the expression parameter (MyEntity)
ParameterExpression parameter = query.Parameters[0];

if (startDate.HasValue)
{
    // Create the startDate filter
    Expression<Func<MyEntity, bool>> withStart = e => e.CreatedDate >= startDate.Value;

    // Combine this with the current queryBody
    queryBody = Expression.AndAlso(queryBody, withStart.Body);
}

if (endDate.HasValue)
{
    // Create the endDate filter
    Expression<Func<MyEntity, bool>> withEnd = e => e.CreatedDate <= endDate.Value;

    // Combine this with the current queryBody
    queryBody = Expression.AndAlso(queryBody, withEnd.Body);
}

// Create a new lambda with the current queryBody and our parameter
var lambda = Expression.Lambda<Func<MyEntity, bool>>(queryBody, parameter);

// Give the lambda to the Query method
client.Query(lambda);

Or if you want to do a bit of string management and avoid the complexity of expression manipulation:
// Get the oData string filter for your initial expression
string filter = TableClient.CreateQueryFilter<MyEntity>(e => e.PartitionKey == Partition);

if (startDate.HasValue)
{
    // Get the oData string filter for the startDate expression
    string withStart = TableClient.CreateQueryFilter<MyEntity>(e => e.CreatedDate >= startDate.Value);

    // Combine the two strings with an 'and'
    filter = $"({filter}) and ({withStart})";
}

if (endDate.HasValue)
{
    // Get the oData string filter for the endDate expression
    string withEnd = TableClient.CreateQueryFilter<MyEntity>(e => e.CreatedDate <= endDate.Value);

    // Combine the two strings with an 'and'
    filter = $"({filter}) and ({withEnd})";
}

// Give the filter string to the Query method
client.Query(filter);

This was very helpful. Thank you!

@christothes should we include this in samples to make it more discoverable?

It's a pretty advanced scenario, so I think we should leave it here unless we get more feedback.


Add Operations API to customer-insights

This checklist is used to make sure that common issues in a pull request are addressed. This will expedite the process of getting your pull request merged and avoid extra work on your part to fix issues discovered during the review process.
PR information

[ ] The title of the PR is clear and informative.
[ ] There are a small number of commits, each of which have an informative message. This means that previously merged commits do not appear in the history of the PR. For information on cleaning up the commits in your pull request, see this page.
[ ] Except for special cases involving multiple contributors, the PR is started from a fork of the main repository, not a branch.
[ ] If applicable, the PR references the bug/issue that it fixes.
[ ] Swagger files are correctly named (e.g. the api-version in the path should match the api-version in the spec).

Quality of Swagger

[ ] I have read the contribution guidelines.
[ ] My spec meets the review criteria:

[ ] The spec conforms to the Swagger 2.0 specification.
[ ] The spec follows the guidelines described in the Swagger checklist document.
[ ] Validation tools were run on swagger spec(s) and have all been fixed in this PR.

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

No modification for AutorestCI/azure-sdk-for-ruby

No modification for AutorestCI/azure-sdk-for-python

No modification for AutorestCI/azure-sdk-for-node


The -multi option of the OCSP responder doesn't work in some environments

I’m using OpenSSL 1.1.1.k on ArchLinux. (But the problem is most likely not version- or distro-specific; it has been described on Stack Overflow last year, albeit in a completely different situation / configuration (OCSP client rather than server, IIUC).)
The error message:
fatal: error detaching from parent process group: Operation not permitted

A removal of the -multi 16 option circumnavigates the problem and the OCSP responder starts normally (but as a single process, of course).
The problem occurs (e.g.) when I start the responder from a systemd unit like this one:
[Unit]
Description=OCSP responder
After=syslog.target network-online.target

[Service]
Type=simple
User=ocsp
Group=ocsp
EnvironmentFile=/etc/conf.d/ocspd
ExecStart=/usr/bin/openssl ocsp -text -port $PORT -index $INDEX_FILE -CA $CACHAIN_FILE -rkey $OCSPKEY_FILE -rsigner $OCSPCERT_FILE -multi $MULTI

[Install]
WantedBy=multi-user.target

However, the strange behavior of the responder is a bit more complex and related to both the -multi option and systemd in strange ways:

-multiuserfrom systemdfrom interactive shell

16non-rootfails with the message aboveexits with status 1, no message
rootfails with the message aboveworks (×16)
not setnon-rootworks (×1)works (×1)
rootworks (×1)works (×1)

What special privileges does the OCSP responder need in order to run under systemd? Anyway, even if that could be fixed, there is still the glitch with using -multi as a non-root user…

Please note that in general the openssl utility with its commands is not targeted at production environments. If you wanted a proper OCSP responder it could be written with the help of the openssl library of course but it would require serious considerations about scaling, prevention of DoS attacks, etc. I do not think the openssl ocsp command is written in such way.

Marking as inactive, to be closed at the end of 3.4 dev barring further input

I had to set -index to /dev/null to circumnavigate yet another problem mentioned under #16204 (which renders the responder useless and was done only for the sake of confirming that the other problems (also) still exist).
That way I have been able to confirm that the wrong -multi behavior is still present. It looks like -multi misbehaves, overall, and attempts something that neither systemd in general nor a non-root session allows (as described above).
This is with OpenSSL 3.2.1. I’m happy to re-test with newer versions if there have been recent ocsp changes.


Support for props in Vue router

Which version are you using?
1.0.2
Are you using storybook-router with a react based project or a vue one?
Vue
Please describe the problem:
Passing props to a component through Vue router doesn't work in Storybook.
Please explain how to reproduce the issue or (better) provide an example to do it.
You can use the same example as in Vue router documentation for passing props - https://router.vuejs.org/guide/essentials/passing-props.html
In my case I'm using function mode, like so:
.addDecorator(StoryRouter({}, {
  routes: [{
    name: 'wizard',
    path: '/wizard/:id/:step',
    component: Wizard,
    props: route => {
      return {
        id: parseInt(route.params.id),
        step: parseInt(route.params.step),
      };
    },
  }],
}))

Using this, props are not sent to Wizard component when the story is opened.

Hi @pr1moz,
I'm sorry but I cannot reproduce the problem.
I expanded the router examples to pass properties to the wrapped component here and it works as expected.
Moreover, if you have a look at the implementation you can see the all the props passed to StoryRouter are passed as is to the wrapped VueRouter, so it shouldn't be any difference in that sense.
Am I missing something? Thanks!


Relation in dataset membership test

The PR enables the user to test whether a certain domain is part of the dataset. E.g.:
from lm_pub_quiz import Dataset

bear = Dataset.from_name("bear")

print("P6" in bear)  # True
print("P0" in bear)  # False

Close in favor of #4


Script to build docs for extensions individually or en masse.

The script build-docs has options to build docs for individual modules, or all modules, and the index file, and to copy the artifacts to a destination directory. This can be (or can be copied directly into) the docs/build/html/extensions directory in the pytket repo.

See https://github.com/CQCL-DEV/tket/actions/runs/621508381 for the nighly test execution

The mypy failures are due to the cirq update to 0.10. They are being addressed in https://github.com/CQCL/pytket-extensions/pull/23 ...

I'm not sure what the docssearchbox.html is for.
Placing this empty file in the templates directory has the effect of removing the search box on the index page. (This was the only method I found that worked.)


Move(d) Rename and Delete actions into Select menu

Summary

Attached rename and delete dialogs to every schedule in the scheduleNames array.
Created new on[Open|Close|Close] to manage propagation and props to the dialogs.
Added styling to the icons, also increasing the size of the Add Schedule button for consistency.
Added scheduleIndex as a prop to the assortment of "deleteSchedule" functions in Schedules.ts, AppStore.ts, AppStoreActions.ts. Previously scheduleIndex was based on this.currentScheduleIndex which would cause issues, for instance, when trying to delete Schedule 3 while having Schedule 2 selected.
Deleted  EditSchedule.tsx which contained the Rename and Delete dialogs previously. (For future reading clarity, the rename dialog is a part of ScheduleNameDialog.tsx, which also contains the Add Schedule dialog.

The new look:

Delete Demo:

Rename Demo:

Test Plan
Make sure all previous functionality is as intended:

Swapping between schedules
Deleting
Renaming
Making sure that schedule indices are not mangled up and the appropriate schedule is updated or swapped to

Issues
Closes #658
Misc
"only potential negative is [Fred] might just overwrite it if I change it [in #654] 💀"
TO-DO

[x] Refactor the deleteSchedule functions which still have remnants of their prior behavior (specifically always calling this or saying "the current schedule".)

LGTM! Definitely like this layout better than our current one. Only nitpick (that isn't even your fault but might as change it because it is so in proximity to your changes) is the delete schedule dialog shouldn't have the undo warning because deleting schedules can be undone. Another nitpick is that I think we should use rem/em instead of px for the padding because it keeps the styling more consistent across devices.

I'll get to changing that right now :)

I only adjusted px to rem for code that I changed in this PR, but lmk if you want me to also change previously existing code in these files to rem!

After having stared at this for a little while, I'm noticing that there is / there will be a visual overlap between this PR and the existing "clear schedule" button. Specifically, both clear schedule and delete schedule would now use the same icon, possibly creating confusion for users.

The solution would be to change either the delete schedule or the clear schedule icon (which would also impact #665's intended change)

I only adjusted px to rem for code that I changed in this PR, but lmk if you want me to also change previously existing code in these files to rem!

No need to touch extra parts of the code base IMO.
in regards to the icon maybe we could change the delete schedule icon to like the X (maybe make it red?) or something but I have no strong opinions. Alternatively maybe we could consult some actual design people.

I only adjusted px to rem for code that I changed in this PR, but lmk if you want me to also change previously existing code in these files to rem!

No need to touch extra parts of the code base IMO.
in regards to the icon maybe we could change the delete schedule icon to like the X (maybe make it red?) or something but I have no strong opinions. Alternatively maybe we could consult some actual design people.

@Voark After going through a few options and considering the available icons, I think that your idea to use a red Clear icon best balances making the most visual sense with affecting the existing user experience as little as possible.

I like the design decisions. I've only got nitpicks.
I think I prefer not coloring the X, i.e., leaving it the same color as the delete button. I don't feel that strongly about it, so do what you will.
Also, the schedule selection dropdown doesn't go from the button down but also goes above, which is visually annoying. I know it's been there before, but it'd be nice if you could change that here. It should just be a change of the location relative to the anchor.

Done! I'm also not of a super strong opinion regarding the red, and I think that since the X is within the schedule Select, along with the fact that a dialog will pop up if they decide to click the X, users will be able to either intuit the meaning or just figure it out by clicking

Considering how extensive this PR is getting and that I was going to redo it in my #654 maybe it is worth just implementing the changes I was going to make anyways here instead, the main change being making schedules reorderable.
Here's a reorderable list example I found for reference that I was thinking of turning the schedule selector into. @KevinWu098 do you want to add this to your PR? If not I'll just do it in mine after this gets merged.

Considering how extensive this PR is getting and that I was going to redo it in my #654 maybe it is worth just implementing the changes I was going to make anyways here instead, the main change being making schedules reorderable.
Here's a reorderable list example I found for reference that I was thinking of turning the schedule selector into. @KevinWu098 do you want to add this to your PR? If not I'll just do it in mine after this gets merged.

We love ever-expanding PR scopes :')! I think both plans have merit, but unless the ability to reorder schedules is tied to another feature in that other ever-expanding PR of yours ( /j ), I think it would be cool to tie in the reordering into this PR! @Voark

Considering how extensive this PR is getting and that I was going to redo it in my #654 maybe it is worth just implementing the changes I was going to make anyways here instead, the main change being making schedules reorderable.
Here's a reorderable list example I found for reference that I was thinking of turning the schedule selector into. @KevinWu098 do you want to add this to your PR? If not I'll just do it in mine after this gets merged.

Let's just get this merged as-is first. Drag-and-drop re-ordering is a whole ordeal with package installation and more shenanigans.

Considering how extensive this PR is getting and that I was going to redo it in my #654 maybe it is worth just implementing the changes I was going to make anyways here instead, the main change being making schedules reorderable.

Here's a reorderable list example I found for reference that I was thinking of turning the schedule selector into. @KevinWu098 do you want to add this to your PR? If not I'll just do it in mine after this gets merged.

Let's just get this merged as-is first. Drag-and-drop re-ordering is a whole ordeal with package installation and more shenanigans.

Sounds good to me!

Considering how extensive this PR is getting and that I was going to redo it in my #654 maybe it is worth just implementing the changes I was going to make anyways here instead, the main change being making schedules reorderable.

Here's a reorderable list example I found for reference that I was thinking of turning the schedule selector into. @KevinWu098 do you want to add this to your PR? If not I'll just do it in mine after this gets merged.

Let's just get this merged as-is first. Drag-and-drop re-ordering is a whole ordeal with package installation and more shenanigans.

Sounds good to me!

There's nothing in my PR that is required but I did want to add it because the term selector brings up the first schedule in said term so I wanted users to be able to change the schedule shown. I also just had the realization that some sort of star thing would be more intuitive and mean I don't have to overwrite all your new changes too.


riscv64: Refactor float-to-int trapping conversions

This commit refactors the fcvt_to_{s,u}int conversions in the riscv64
backend to build on the work in https://github.com/bytecodealliance/wasmtime/pull/7327. These two instructions currently
have multiple branches in them to check for traps when the float is out
of bounds. This is additionally signaled via the fflags CSR however so
this is an attempt to trim some branches/constants/etc and instead check
the fflags CSR after the operation. This requires clearing the CSR
just beforehand, however. This additionally doesn't work for 8/16-bit
types because the hardware doesn't set flags for those.

@afonso360 this is what I was thinking in terms of frobbing fflags around float-to-int conversions that need to trap. I'm not sure whether this is actually beneficial though in terms of perf, although it does look like a bit of a code size win. I'd be curious to test this on hardware you have in terms of perf, and I can try to whip up something later to test that.

Super curious to see how this pans out! I'm going to run sightglass to check if we see any difference there, but we might need something more targeted.

I'd be curious to test this on hardware you have in terms of perf, and I can try to whip up something later to test that.

Yes, that'd be helpful, I'm not too familiar with writing these sorts of things.

I'm not sure how representative it is, but another idea is bench.wasm.gz which is:
use criterion::{criterion_group, criterion_main, Criterion};
use std::hint::black_box;

fn fcvt_to_uint(c: &mut Criterion) {
    c.bench_function("f32->u32", |b| {
        b.iter(|| black_box(black_box(2.0f32) as u32))
    });
    c.bench_function("f32->u64", |b| {
        b.iter(|| black_box(black_box(2.0f32) as u64))
    });
    c.bench_function("f64->u32", |b| {
        b.iter(|| black_box(black_box(2.0f64) as u32))
    });
    c.bench_function("f64->u64", |b| {
        b.iter(|| black_box(black_box(2.0f64) as u64))
    });
}

fn fcvt_to_sint(c: &mut Criterion) {
    c.bench_function("f32->i32", |b| {
        b.iter(|| black_box(black_box(2.0f32) as i32))
    });
    c.bench_function("f32->i64", |b| {
        b.iter(|| black_box(black_box(2.0f32) as i64))
    });
    c.bench_function("f64->i32", |b| {
        b.iter(|| black_box(black_box(2.0f64) as i32))
    });
    c.bench_function("f64->i64", |b| {
        b.iter(|| black_box(black_box(2.0f64) as i64))
    });
}

criterion_group!(benches, fcvt_to_uint, fcvt_to_sint);
criterion_main!(benches);

I have some interesting results, and some confusing results.
I first ran sightglass with a smaller iteration count and got the results that main was faster than fflags by 3% in spidermonkey, which was surprising to me so I ran it again with the default iteration count and got the same result.

Sightglass Run 1
afonso@starfive:~/git/sightglass$ cargo run -- benchmark --processes 5 --iterations-per-process 5 --engine ./engine-ffla
gs.so --engine ./engine-main.so  -- ./benchmarks/blake3-scalar/benchmark.wasm  benchmarks/bz2/benchmark.wasm benchmarks/
regex/benchmark.wasm benchmarks/spidermonkey/benchmark.wasm

execution :: cycles :: benchmarks/spidermonkey/benchmark.wasm

  Δ = 611139.96 ± 69194.06 (confidence = 99%)

  main.so is 1.03x to 1.03x faster than fflags.so!

  [22003870 22177803.84 22296431] fflags.so
  [21400346 21566663.88 21700502] main.so

execution :: cycles :: ./benchmarks/blake3-scalar/benchmark.wasm

  No difference in performance.

  [6516 7450.52 14467] fflags.so
  [6500 6845.04 13012] main.so

instantiation :: cycles :: ./benchmarks/blake3-scalar/benchmark.wasm

  No difference in performance.

  [950 1073.44 1500] fflags.so
  [939 1039.24 1814] main.so

instantiation :: cycles :: benchmarks/bz2/benchmark.wasm

  No difference in performance.

  [991 1109.80 1603] fflags.so
  [1018 1129.44 1811] main.so

instantiation :: cycles :: benchmarks/spidermonkey/benchmark.wasm

  No difference in performance.

  [3600 4488.00 8483] fflags.so
  [3660 4418.44 9216] main.so

execution :: cycles :: benchmarks/bz2/benchmark.wasm

  No difference in performance.

  [1025843 1035182.96 1079490] fflags.so
  [1026383 1044678.80 1099227] main.so

instantiation :: cycles :: benchmarks/regex/benchmark.wasm

  No difference in performance.

  [2930 3202.92 3354] fflags.so
  [2983 3231.48 3832] main.so

compilation :: cycles :: benchmarks/regex/benchmark.wasm

  No difference in performance.

  [10667840 10819084.56 10947259] fflags.so
  [10725380 10845151.60 10951025] main.so

compilation :: cycles :: benchmarks/spidermonkey/benchmark.wasm

  No difference in performance.

  [111451448 113120311.48 115050440] fflags.so
  [111395436 112890160.52 115262339] main.so

compilation :: cycles :: benchmarks/bz2/benchmark.wasm

  No difference in performance.

  [2033630 2237015.88 2365106] fflags.so
  [2032061 2233455.48 2332395] main.so

execution :: cycles :: benchmarks/regex/benchmark.wasm

  No difference in performance.

  [3845964 3852698.64 3870163] fflags.so
  [3845116 3849177.08 3880686] main.so

compilation :: cycles :: ./benchmarks/blake3-scalar/benchmark.wasm

  No difference in performance.

  [2641545 2668781.48 2727010] fflags.so
  [2621339 2667785.92 2797660] main.so

Sightglass Run 2
afonso@starfive:~/git/sightglass$ cargo run -- benchmark --engine ./engine-fflags.so --engine ./engine-main.so  -- ./ben
chmarks/blake3-scalar/benchmark.wasm  benchmarks/bz2/benchmark.wasm benchmarks/regex/benchmark.wasm benchmarks/spidermon
key/benchmark.wasm
execution :: cycles :: benchmarks/spidermonkey/benchmark.wasm

  Δ = 528886.85 ± 30356.42 (confidence = 99%)

  main.so is 1.02x to 1.03x faster than fflags.so!

  [21985977 22155294.58 22282664] fflags.so
  [21399233 21626407.73 21778731] main.so

execution :: cycles :: benchmarks/regex/benchmark.wasm

  Δ = 4771.68 ± 2965.39 (confidence = 99%)

  main.so is 1.00x to 1.00x faster than fflags.so!

  [3847607 3856010.05 3909326] fflags.so
  [3845022 3851238.37 3912075] main.so

execution :: cycles :: ./benchmarks/blake3-scalar/benchmark.wasm

  No difference in performance.

  [6515 6877.80 14550] fflags.so
  [6489 7310.42 13787] main.so

instantiation :: cycles :: ./benchmarks/blake3-scalar/benchmark.wasm

  No difference in performance.

  [927 1029.46 1697] fflags.so
  [923 1067.02 2110] main.so

instantiation :: cycles :: benchmarks/spidermonkey/benchmark.wasm

  No difference in performance.

  [3555 4316.19 8421] fflags.so
  [3588 4375.00 8089] main.so

instantiation :: cycles :: benchmarks/regex/benchmark.wasm

  No difference in performance.

  [2981 3225.85 3511] fflags.so
  [2986 3242.21 3598] main.so

instantiation :: cycles :: benchmarks/bz2/benchmark.wasm

  No difference in performance.

  [990 1147.83 1970] fflags.so
  [1000 1153.04 2124] main.so

compilation :: cycles :: ./benchmarks/blake3-scalar/benchmark.wasm

  No difference in performance.

  [2607381 2665940.83 2808423] fflags.so
  [2599335 2655289.42 2750262] main.so

compilation :: cycles :: benchmarks/spidermonkey/benchmark.wasm

  No difference in performance.

  [111352544 113374288.89 115552774] fflags.so
  [111363591 113073838.73 115549133] main.so

execution :: cycles :: benchmarks/bz2/benchmark.wasm

  No difference in performance.

  [1024902 1040201.83 1092704] fflags.so
  [1025677 1041126.17 1101387] main.so

compilation :: cycles :: benchmarks/bz2/benchmark.wasm

  No difference in performance.

  [2020133 2223545.22 2354573] fflags.so
  [2067731 2224627.35 2372602] main.so

compilation :: cycles :: benchmarks/regex/benchmark.wasm

  No difference in performance.

  [10651375 10816177.71 10994312] fflags.so
  [10625726 10814925.59 11001537] main.so

I also tried to run the above benchmark via sightglass but couldn't get it to execute, so I ran it using a precompiled module using the wasmtime cli, but the results don't seem very significant. Do you have any suggestions on how I can do this better?
afonso@starfive:~$ hyperfine     --warmup 1000     --runs 5000     '~/wasmtime-main --allow-precompiled ~/bench-main.cwasm'     '~/wasmtime-fflags --allow-precompiled ~/bench-fflags.cwasm'
Benchmark 1: ~/wasmtime-main --allow-precompiled ~/bench-main.cwasm
  Time (mean ± σ):      24.5 ms ±   4.0 ms    [User: 13.3 ms, System: 9.9 ms]
  Range (min … max):    21.3 ms …  37.0 ms    5000 runs

  Warning: Statistical outliers were detected. Consider re-running this benchmark on a quiet system without any interferences from other programs. It might help to use the '--warmup' or '--prepare' options.

Benchmark 2: ~/wasmtime-fflags --allow-precompiled ~/bench-fflags.cwasm
  Time (mean ± σ):      23.8 ms ±   3.6 ms    [User: 13.3 ms, System: 9.2 ms]
  Range (min … max):    20.7 ms …  40.1 ms    5000 runs

  Warning: Statistical outliers were detected. Consider re-running this benchmark on a quiet system without any interferences from other programs. It might help to use the '--warmup' or '--prepare' options.

Summary
  ~/wasmtime-fflags --allow-precompiled ~/bench-fflags.cwasm ran
    1.03 ± 0.23 times faster than ~/wasmtime-main --allow-precompiled ~/bench-main.cwasm

Oh for the criterion program you'll need to pass --bench as an argument to get it to actually run benchmarks. In theory you should be able to do wasmtime --dir . ./foo.wasm --bench with a before-and-after wasmtime and criterion should self-report regressions/improvements between the two.
The sightglass run seems a bit damning though in that maybe it's not too useful to inspect the exception flags!

Oh, that makes much more sense! Weirdly none of these had significant performance differences.

Criterion output
afonso@starfive:~$ ./wasmtime-fflags --dir . ./bench.wasm --bench
f32->u32                time:   [23.730 ns 23.732 ns 23.734 ns]
                        change: [-0.2177% -0.1872% -0.1582%] (p = 0.00 < 0.05)
                        Change within noise threshold.
Found 10 outliers among 100 measurements (10.00%)
  1 (1.00%) low mild
  5 (5.00%) high mild
  4 (4.00%) high severe

f32->u64                time:   [23.731 ns 23.732 ns 23.734 ns]
                        change: [-0.0650% -0.0122% +0.0275%] (p = 0.68 > 0.05)
                        No change in performance detected.
Found 8 outliers among 100 measurements (8.00%)
  2 (2.00%) high mild
  6 (6.00%) high severe

f64->u32                time:   [25.399 ns 25.401 ns 25.403 ns]
                        change: [-0.0281% -0.0043% +0.0162%] (p = 0.72 > 0.05)
                        No change in performance detected.
Found 21 outliers among 100 measurements (21.00%)
  4 (4.00%) low mild
  9 (9.00%) high mild
  8 (8.00%) high severe

f64->u64                time:   [25.068 ns 25.069 ns 25.072 ns]
                        change: [-0.0540% -0.0158% +0.0182%] (p = 0.41 > 0.05)
                        No change in performance detected.
Found 13 outliers among 100 measurements (13.00%)
  1 (1.00%) low mild
  7 (7.00%) high mild
  5 (5.00%) high severe

f32->i32                time:   [30.727 ns 30.729 ns 30.732 ns]
                        change: [-0.0390% -0.0081% +0.0170%] (p = 0.60 > 0.05)
                        No change in performance detected.
Found 12 outliers among 100 measurements (12.00%)
  2 (2.00%) low mild
  4 (4.00%) high mild
  6 (6.00%) high severe

f32->i64                time:   [32.731 ns 32.734 ns 32.736 ns]
                        change: [-0.0523% -0.0069% +0.0358%] (p = 0.78 > 0.05)
                        No change in performance detected.
Found 10 outliers among 100 measurements (10.00%)
  1 (1.00%) low mild
  3 (3.00%) high mild
  6 (6.00%) high severe

f64->i32                time:   [34.740 ns 34.742 ns 34.745 ns]
                        change: [-0.0349% -0.0039% +0.0254%] (p = 0.81 > 0.05)
                        No change in performance detected.
Found 15 outliers among 100 measurements (15.00%)
  1 (1.00%) low mild
  6 (6.00%) high mild
  8 (8.00%) high severe

f64->i64                time:   [34.067 ns 34.070 ns 34.073 ns]
                        change: [-0.0274% -0.0002% +0.0312%] (p = 0.99 > 0.05)
                        No change in performance detected.
Found 12 outliers among 100 measurements (12.00%)
  1 (1.00%) low mild
  6 (6.00%) high mild
  5 (5.00%) high severe

Thanks for collecting those! Sounds like this isn't the best way to go at this time, so I'm going to close this.


Can not find inner child element by ID

Version
1.0.0-beta.31
Reproduction link
https://github.com/begueradj/test-vuetify-bug2
Steps to reproduce
Have a component with an icon which displays info text on hover:
<template>
  <v-container fill-height fluid>
    <v-card-text>
      <v-toolbar class="green--text">
        <v-app-bar-nav-icon v-if="tooltipText">
          <v-tooltip id="id1" bottom>
            <template id="id2" v-slot:activator="{ on }">
              <v-icon v-on="on" color="grey">
                help
              </v-icon>
            </template>
            <span id="id3">
              {{ tooltipText }}
            </span>
          </v-tooltip>
        </v-app-bar-nav-icon>
      </v-toolbar>
    </v-card-text>
  </v-container>
</template>

<script>
export default {
  props: {
    tooltipText: { type: String, default: '' }
  }
}
</script>

Try to access elements with id2 or id3, you will not be able to access them. But element with id1 is accessible:
import Vuetify from 'vuetify'
import { mount } from '@vue/test-utils'
import ComponentTwo from<EMAIL_ADDRESS>
const vuetify = new Vuetify()
let wrapper = null

beforeEach(() => {
  const app = document.createElement('div');
  app.setAttribute('data-app', true);
  document.body.append(app);
  wrapper = mount(ComponentTwo, {
    vuetify,
    propsData: {
      tooltipText: 'science'
    }
  })
})

afterEach(() => {
  wrapper.destroy()
})

describe('ComponentTwo.vue:', () => {
  it('1. Mounts properly', () => {
    expect(wrapper.isVueInstance()).toBe(true) // Ok
  })

  it('2. Access elements by ID', async () => {
    const icons = wrapper.findAll('.v-icon')
    expect(icons.length).toBe(1) // Ok

    const helpIcon = icons.at(0)
    expect(helpIcon.text()).toEqual('help') // Ok

    helpIcon.trigger('mouseenter')
    await wrapper.vm.$nextTick()

    const e1 = wrapper.find('#id2') // or id3
    console.log(e1) // undefined
  })
})

What is expected?
I expect to access element with id2 and id3
What is actually happening?
Vue test utils is able to find the child with id1, but not the children with id2 and id3

Hi! 👋
For #id2 I'm not sure you can set an id to a <template>. What about adding it to the <v-icon>? That appears to work.
For #id3,  I guess you should use the requestAnimationFrame as stated here:
    requestAnimationFrame(() => {
      const e1 = wrapper.find("#id3");
      console.log(e1); // not undefined anymore
      done();
    });

If these ideas fix your test, feel free to close up the issue 😄
Hope it helps!

I think you are right in both observations.
I will test your solution in the coming hours. Thank you very much for the feedback @afontcu

you welcome!
I'll go ahead and close the issue for now, feel free to ask additional questions in the Forum in the Chat 😄


⚠ Samsung has degraded performance

In 55853b1, Samsung (https://samsung.com) experienced degraded performance:

HTTP code: 200
Response time: 3100 ms

Resolved: Samsung performance has improved in f4ddc42.


Append date script to existing script, rather than overwriting

Allow existing organization script to still exist.  Fixes #30

Please do not merge this PR - re-created a clean version as #33


Use commas in passenv

This is causing https://ci-beam.apache.org/job/beam_Metrics_Report/159/console to fail with error: failed with pass_env values cannot contain whitespace, use comma to have multiple values in a single line, invalid values found 'WORKSPACE INFLUXDB_USER INFLUXDB_USER_PASSWORD'
This has been enforced since https://github.com/tox-dev/tox/issues/2658

Thank you for your contribution! Follow this checklist to help us incorporate your contribution quickly and easily:

[ ] Mention the appropriate issue in your description (for example: addresses #123), if applicable. This will automatically add a link to the pull request in the issue. If you would like the issue to automatically close on merging the pull request, comment fixes #<ISSUE NUMBER> instead.
[ ] Update CHANGES.md with noteworthy changes.
[ ] If this contribution is large, please file an Apache Individual Contributor License Agreement.

See the Contributor Guide for more tips on how to make review process smoother.
To check the build health, please visit https://github.com/apache/beam/blob/master/.test-infra/BUILD_STATUS.md
GitHub Actions Tests Status (on master branch)

See CI.md for more information about GitHub Actions CI or the workflows README to see a list of phrases to trigger workflows.

Run Seed Job

Run Metrics Report

This produced https://lists.apache.org/thread/jc88vf0vb6ch8mw9ok3f8dk2704llfjv

R: @abacn @liferoad


Add template and ci.

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

LGTM.


Add a test for the Generation and Label predicates

Description:
We recently added the GenerationChangedPredicate and LabelChangedPredicate event filters to the Kyma Controller, we should add a test to verify that the filters exist correctly.
ACs:

[ ] Create integration tests for the validation of filters

[x] If spec or labels change of KymaCR, KymaCR should be requeued immediately

New suite
Set requeue time to high amount
Check last CR has been updated based on spec and label (two different cases) within a certain threshold

[ ] Maybe possible to check filters of manager -> Check if filters have been set

[ ] If not easy possible, issue need to be re-refined and estimated

It's not possible to check if the filters have been set because the predicates field for the controller builder is private in the control runtime


Can not convert a publishing page to modern page using powershell

Thank you for reporting a bug. We appreciate your feedback - to help the team to understand your needs, please complete the below template to ensure we have the necessary details to assist you. Thanks!
Problem Area
[ ] Page Transformation: Error during the use of page transformation from PnP PowerShell
Expected or Desired Behavior
I am trying to convert classic publishing page to modern pages using ConvertTo-PnPPage command and page layout mapping file. I want to add a people webpart in the modern page based on the Publishing Contact field. The pusblishing page does not have the contact field webpart and people webpart is not supported in field "targetwebpart" property, i tried to add it in the fixed webpart section. But its giving below error
Observed Behavior
ConvertTo-PnPPage : Parameter PersonEmail was used but is not listed as a web part property that can be used.
Steps to Reproduce
Powershell command used (replaced actual values)
ConvertTo-PnPPage -PublishingPage -Identity "page.aspx" -Overwrite -TargetWebUrl targetsite -PageLayoutMapping filepath
Below is the page layout mapping

Below is the page layout mapping


Replaced vulnerable uglifyjs-webpack-plugin with terser-webpack-plugin

I've replaced uglifyjs-webpack-plugin with terser-webpack-plugin because uglifyjs is officially deprecated and there is a known XSS vulnerability in it. terser is currently supported and maintained and so it will receive security updates.
uglifyjs's official repo reccomends that all users update to terser: https://github.com/webpack-contrib/uglifyjs-webpack-plugin

Thanks for this, I manually merged due to the recent conflict!

I did a preview for this feature, please test: https://www.npmjs.com/package/oidc-client/v/1.11.0-beta.1


Cannot write text that contains the left curly brace {

Reproduction: https://github.com/illright/repro-cy-real-events-brace
Cypress's .type() command offers an escape sequence {{} that lets Cypress type the { character verbatim. It's useful when you want to write, for example, handlebars-style templates: {{ something }}.
This fails with cypress-real-events due to unrecognized character errors.

:tada: This issue has been resolved in version 1.11.0 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Preserve lowering config attribute during rematerialization.

Towards https://github.com/openxla/iree/issues/15091

Can you share how this differs from what is trying to be achieved above?
https://github.com/openxla/iree/blob/5962a515341e0a9cdc54a54b643fa7a30e2b1740/compiler/src/iree/compiler/Codegen/Common/RematerializeParallelOps.cpp#L53-L61
Perhaps an IR example or a test would make it clearer, but I'm trying to understand what kind of lowering config is still valid with a different number of loops.

Ah, sorry forgot to remove that. It was looking for lowering_config specifically, but this moves any attribute that it doesnt know about.

Can you share how this differs from what is trying to be achieved above?
https://github.com/openxla/iree/blob/5962a515341e0a9cdc54a54b643fa7a30e2b1740/compiler/src/iree/compiler/Codegen/Common/RematerializeParallelOps.cpp#L53-L61
Perhaps an IR example or a test would make it clearer, but I'm trying to understand what kind of lowering config is still valid with a different number of loops.

Ok, I missed the second part of your question. The number of loops doesnt change, since you only rematerialize elementwise parallel ops. By definition, the output is supposed to be a permutation, so after rematerialization, the fused op will have the same number of loops as the consumer.


Adding float to string kernel

This PR adds a kernel for casting float to string, to make spark-rapids produce closer results when doing such casting.
Supporting this is a necessary part of format_number kernel, so I split it out as a 'subtask'.
This PR uses Ryū: fast float-to-string conversion (PLDI'18) as the solution for casting float/double to string. The results differ from the output of Spark's in some cases: sometimes the output is shorter (which is arguably more accurate) and sometimes the output may differ in the precise digits output (e.g., see https://github.com/ulfjack/ryu/issues/83).
In most cases, the result will match Spark's results, and in the cases where it does not, the values will match when we cast them back to float. Tested in plugin PR below.
The logic part is based on ryu's C and Java implementation. I'm leaning towards keeping it consistent with ryu's codebase rather than making it more Cuda style to make it easier to apply upstream changes, but I'm not sure if that's a good practice.
Related plugin PR: https://github.com/NVIDIA/spark-rapids/pull/9470

build

build

@jlowe Thanks, added copyright and NOTICE.

build

build

build

build

build

Sorry I mistakenly review https://github.com/NVIDIA/spark-rapids-jni/pull/1572 first. Please address my comments for this PR (but pushed there).

Tested with compute-sanitizer and plugin integration tests, merging it. Thanks all for review!


[Feature Request] Top-K sampling support in mlx_lm.utils.generate_step

Hello,
Top-K sampling is a popular sampler for LLMs. We are seeing a request for this sampling feature https://github.com/lmstudio-ai/mlx-engine/issues/59

We can definitely add this!


Merge latest upstream; no changes to Drake styleguide content

This change is

It looks like this was a squash-merge (egads!).  My guess is that we'll probably have to force-push and rewrite history to resolve it.  @EricCousineau-TRI is going to open an issue where we can discuss and decide a plan.  We'll probably want to disable squash-merge in the Settings tab for this repository, also.  Stay tuned.

Filed issue: RobotLocomotion/drake#8638
On top of that, it wasn't a squash, so we'll want to make sure the instructions are clear as well - whether we keep up-to-date with no-squash merges, or truly want to stick to rebases to consolidate our changes but suffer from history rewrites for each update.


drop dsstore

Store usage analytics
Take user feedback for conversation (ui work required)
convert action creation to bulk
convert vector ingestion on import-swagger-file to bulk

closing in favor of https://github.com/openchatai/OpenCopilot/pull/501


Created issue template for #2405

Codecov Report

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

@@            Coverage Diff             @@
##           master    #2488      +/-   ##
==========================================
+ Coverage   79.98%   80.01%   +0.03%
==========================================
  Files          85       85
  Lines        9131     9131
  Branches     1948     1948
==========================================
+ Hits         7303     7306       +3
+ Misses       1547     1544       -3
  Partials      281      281

Impacted Files
Coverage Δ

webapp/graphite/render/hashing.py
93.39% <0%> (+2.83%)
:arrow_up:

Continue to review full report at Codecov.

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

Generic, but looks good. Thanks, @bigpythonimish !


Added Parameters to IChoiceProvider.Provider

Added 2 parameters to the IChoiceProvider.Provider method, and modified the RegisterCommands(IEnumerable<Type> types, ulong? guildId) method accordingly to pass the ulong? guildId down the chain into the IChoiceProvider.Provider.
There's most likely much better ways of achieving this, although I'm unsure how.

All UInt64s should be ulongs

Done


[utils] traverse_obj: Allow re.Match objects

IMPORTANT: PRs without the template will be CLOSED
Description of your pull request and other information

This PR implements traversal into re.Match objects and related tests.
These keys are supported:

...: returns match.groups()
function: gives groupno, value as parameters (group 0 is the whole match).
str/int: returns match.group(key). Supports casesense.

Template

Before submitting a pull request make sure you have:

[x] At least skimmed through contributing guidelines including yt-dlp coding conventions
[x] Searched the bugtracker for similar pull requests
[x] Checked the code with flake8 and ran relevant tests

In order to be accepted and merged into yt-dlp each piece of code must be in public domain or released under Unlicense. Check one of the following options:

[x] I am the original author of this code and I am willing to release it under Unlicense
[ ] I am not the original author of this code but it is in public domain or released under Unlicense (provide reliable evidence)

What is the purpose of your pull request?

[ ] Fix or improvement to an extractor (Make sure to add/update tests)
[ ] New extractor (Piracy websites will not be accepted)
[x] Core bug fix/improvement
[ ] New feature (It is strongly recommended to open an issue first)

You missed docs

Right, but also we have not noted what input objects we supported before as well...
I would add all supported objects into the docs as well as re.Match.

https://github.com/yt-dlp/yt-dlp/blob/776bb387719c474a8f7a87e6e01799fc4f8859e3/yt_dlp/utils.py#L5313
so far, this acts as a good-enough documentation
But sure, documenting it explicitly sounds good


Enable wiring in of DSL customisations

Description
Thanks for contributing this Pull Request. Make sure that you submit this Pull Request against the develop branch of this repository, add a brief description, and tag the relevant issue(s) and PR(s) below.

Relevant Issues : (compulsory)
Relevant PRs : (optional)
Type of change :

[X] New feature
[ ] Bug fix for existing feature
[ ] Code quality improvement
[ ] Addition or Improvement of tests
[ ] Addition or Improvement of documentation

@krmahadevan yes I've gone through the approach. I do think you need to read the thread I linked to in the discussion ref #1909

@ptrthomas - Yes I have skimmed through it. My intent was to only let me define my customisations and not have to deal with Java/JavaScript code snippets in my feature file and affect its readability.


Error thrown when a simple transclusion is mixed up with interpolation

TypeError: undefined is not a function
    at forEach.attr (https://ajax.googleapis.com/ajax/libs/angularjs/1.4.0-beta.5/angular.js:2943:15)
    at Object.JQLite.(anonymous function) [as attr] (https://ajax.googleapis.com/ajax/libs/angularjs/1.4.0-beta.5/angular.js:3042:9)
    at Object.$get.Attributes.$set (https://ajax.googleapis.com/ajax/libs/angularjs/1.4.0-beta.5/angular.js:6907:28)
    at interpolateFnWatchAction (https://ajax.googleapis.com/ajax/libs/angularjs/1.4.0-beta.5/angular.js:8187:28)
    at interpolateFnWatcher (https://ajax.googleapis.com/ajax/libs/angularjs/1.4.0-beta.5/angular.js:10370:26)
    at Object.watchGroupAction [as fn] (https://ajax.googleapis.com/ajax/libs/angularjs/1.4.0-beta.5/angular.js:14749:13)
    at Scope.$get.Scope.$digest (https://ajax.googleapis.com/ajax/libs/angularjs/1.4.0-beta.5/angular.js:15077:29)
    at Scope.$get.Scope.$apply (https://ajax.googleapis.com/ajax/libs/angularjs/1.4.0-beta.5/angular.js:15341:24)
    at bootstrapApply (https://ajax.googleapis.com/ajax/libs/angularjs/1.4.0-beta.5/angular.js:1517:15)
    at Object.invoke (https://ajax.googleapis.com/ajax/libs/angularjs/1.4.0-beta.5/angular.js:4260:17)

It took me a while to narrow down the conditions for the error I was seeing in the console.
        .directive("testDirective", [function () {
            return {
                restrict:"A",
                transclude:"element",
                link:function(scope, instanceElement, tAttrs, ctrl, transclusionFn){
                    transclusionFn(function(clone, scope){
                        instanceElement.after(clone);
                    });
                }
            };
        }]);

Here is the Fiddle
The bug seems to be caused by some logic which apparently attempts to set attributes on the comment element, produced as a result of the transclude:"element".

Looking at the source code for the ngIf directive, which acts in a similar way, I realized that one is using a high priority.
I was very surprised seeing that lifting the priority for my directive above 100 makes the error disappear. What's going on?!?

Since. 1.4.0-beta.6 jqlite now aborts when trying to set attr on comments, attributes and text nodes: https://github.com/angular/angular.js/commit/bb5bf7f8162d11610a53428e630b47030bdc38e5
I tested you fiddle with this version and there's no error anymore. Apart from the error thrown, was there another bug or did it work correctly?

No, that appeared to have been the only thing. Everything else works well.

Great, I will close this then!


[MB-6950] Added OTI segment and tests

Description
This PR adds the OTI segment and its validations as defined in this mapping doc.
Reviewer Notes

I added tests for Parse and StringArray that we don't seem to have in most other segments.  I'm getting 100% coverage (at least according to GoLand) where most of the other segments show 0% coverage.  That's perhaps a little misleading since we do test validations in all segments, but we aren't getting credit for those since those are are defined via struct tags.
The OTI segment has a Date and Time field, but I'm storing them as string rather than time.Time to match what the other date/time fields do in other segments.  I'm not sure it matters much for this since it's got to be converted to a string anyway to create the EDI.

Setup
There's no way to use this in the app yet, but make server_test will exercise the code.  Also, please verify the fields/validations against the mapping doc.
Code Review Verification Steps

[ ] Request review from a member of a different team.
[ ] Have the Jira acceptance criteria been met for this change?

References

Jira story for this change
Spreadsheet of mapped values
824 specification

Messages

:book:
:link: MB-6950

  Generated by :no_entry_sign: dangerJS against 97e79d42fbd0b279e508dc385fcdbea141381a79


hvac_mode is "heat", but hvac_action shows "cooling"

Issue: hvac_action incorrectly shows Cooling when in heat mode:

When hvac_mode is Cool, hvac_action is correctly displayed as Cooling.

Another issue is when I increase the setpoint, the hvac_mode toggles between idle and cooling on every setpoint change:

Same behaviour with Cool mode.
My setup is in #42.

I can see in your configuration that you are using same switch for heater and cooler. This is not correct and can create the issue reported by you. Try using 2 different switch.

You were totally right @ollo69 - this was the reason. I modified the config with two different switches and both problems were gone.  Thank you.
I do have a question, though.
My heating system is a geothermal heating pump, which produces warm liquid during the heating season and cold liquid during the cooling season.  That liquid is pumped to the pipes under the floor. This flow is controlled by one valve irrespective if it is the heating season or the cooling season. Therefore I had the same switch for heating and cooling initially.
I worked around this by creating a duplicate switch on the same GPIO of my ESP32, which controls the actuator of the valve. But now I have a problem that when the GPIO is ON, I have one switch showing it is on, and the other switch showing it is off. I am thinking maybe I could fix with the on_turn_on / on_turn_off actions in the ESPHome.
However - isn't my situation common and maybe the ha-dual-smart-thermostat could support the usage of one switch for heating and cooling?

This is a special case that cannot be managed with current integration behavior. It requires changes in the logic so that the meaning of the switch is related to current temperature. I think you should create a feature request detailing yours need.
For now I will create a PR to avoid wrong configuration having same entity for heater and cooler.

Thinking better about this, I think that the better (and simplest) solution is to define 2 template switch and a third switch helper (or any other kind of sensor) that just define summer / winter

switch 1 (heater) will use as value_template the status of GPIO and helper=winter
switch 2 (cooler) will use as value_template the status of GPIO and helper=summer

Then you can change the helper status based on 1 integration that change value based on the date, or just change it manually when needed.


convert puppeteer script to cluster script

I have the next script but when I run this script, the console stops to finish the script, I want run this script maybe 1000 or 2000 times at hour I think using puppeteer cluster I can do it
const puppeteer = require('puppeteer');
const URL = process.argv[2];

puppeteer.launch({ headless: true, args: ['--no-sandbox', '--disable-setuid-sandbox'] }).then(async browser => {

    const page = await browser.newPage();
    await page.setViewport({width: 1, height: 1});
    await page.setUserAgent('Mozilla/5.0 (iPhone; CPU iPhone OS 9_0_1 like Mac OS X) AppleWebKit/601.1.46 (KHTML, like Gecko) Version/9.0 Mobile/13A404 Safari/601.1');

    await page.goto(URL);
    console.error('found');
    await page.waitForSelector('body.blog');
    await browser.close();
    process.exit();

}).catch(function(error) {
    console.error('sucess');
    process.exit();
});

Closing this, as you have not even shown what you've tried so far...


our-svg default cache can't be overridden

If you set the SVG cache to be on in appsettings.config, and then wish to disable it on a specific tag instance then it is not possible.
Ideally InlineSvgTagHelper.Cache (https://github.com/umbraco-community/Our-Umbraco-TagHelpers/blob/main/Our.Umbraco.TagHelpers/InlineSvgTagHelper.cs#L72) would be nullable, and it would respect a true/false value before considering the appsettings.config value.

Hiya @drpeck
Would you be interested in doing the fix in a PR and perhaps update the unit test to ensure this scenario & the other issue with our-svg in #58 ?


Unable to find an environment with the specified identifier

HI I kept getting this error message on portainer
level=info msg="2022/04/25 08:19:34 [DEBUG] [chisel,monitoring] [endpoint_id: 16] [status: ACTIVE] [status_time_seconds: 22.276456] [message: environment tunnel monitoring]"
level=info msg="2022/04/25 08:19:36 http error: Unable to find an environment with the specified identifier inside the database (err=object not found inside the database) (code=404)"
level=info msg="2022/04/25 08:19:41 http error: Unable to find an environment with the specified identifier inside the database (err=object not found inside the database) (code=404)"

using Portainer 2.11.1 deploy in docker swarm
The endpoint_id 16 is normal docker host.
Everything can be access normally from web both for manager and endpoint.
Is this a problem? How to fix ?

@wiryonolau just out of curiosity, is it breaking anything? it's just an info level event, so if everything else is working then it's probably not  big deal.

Not sure at the moment, I think sometime it's not connected to that endpoint


UVI Request

--- UVI JSON ---
{
  "vendor_name": "Linux",
  "product_name": "Kernel",
  "product_version": "versions from v3.15 to before v5.4.128",
  "vulnerability_type": "unspecified",
  "affected_component": "unspecified",
  "attack_vector": "unspecified",
  "impact": "unspecified",
  "credit": "",
  "references": [
    "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=6af55ff52b02d492d45db88df3e461fa51a6f753",
    "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=19f88ca68ccf8771276a606765239b167654f84a"
  ],
  "extended_references": [
    {
      "type": "commit",
      "value": "6af55ff52b02d492d45db88df3e461fa51a6f753",
      "note": "introduced"
    },
    {
      "type": "commit",
      "value": "19f88ca68ccf8771276a606765239b167654f84a",
      "note": "fixed"
    }
  ],
  "reporter": "joshbressers",
  "reporter_id": 1692786,
  "notes": "",
  "description": "net: ethernet: fix potential use-after-free in ec_bhf_remove\n\nThis is an automated ID intended to aid in discovery of potential security vulnerabilities. The actual impact and attack plausibility have not yet been proven.\nThis ID is fixed in Linux Kernel version v5.4.128 by commit 19f88ca68ccf8771276a606765239b167654f84a, it was introduced in version v3.15 by commit 6af55ff52b02d492d45db88df3e461fa51a6f753. For more details please see the references link."
}
--- UVI JSON ---

This issue has been assigned UVI-2021-1000926


Not able to infer parameter type in a function thats inside a function param

Bug Report
🔎 Search Terms
infer function unknown
🕗 Version & Regression Information

This is a crash
This changed between versions ______ and _______
This is the behavior in every version I tried, and I reviewed the FAQ for entries about _________
I was unable to test this on prior versions because _______

Checked #48538, not sure if related.
Tested with nightly build v4.7.0-dev.20220415, which should have fixed #48538, still not bugged.
⏯ Playground Link
[Playground link with relevant code
](https://www.typescriptlang.org/play?ts=4.7.0-dev.20220415#code/JYOwLgpgTgZghgYwgAgApQPYAcDOAeAETjDgBpkAlCEAE2gD5kBvAKGWRuLgC5kiSA3G2QQAHmCiIwvABScSvfnACUyALyMqtaEPZRqdKAElIAW1nAzvLYdUbkIAK4AbZ0IC+LFjEcgEYYAwQZEgcMEIuckoDBmQZAH0sTFxedGx8JXIbBlVWPQgwRyhgp1cPL1CwGTyOLl4AbQBGUgAmUgBmUgAWAF1SYX1tYytkYHVGJmQAeinkABUAC2AcUZXfAGsQDAB3EGF8wuKHFzdhd372MQkpWX0cO0Y7+oAGPpZ3ZSEvGeQAWn--sgAEYQZw7VbIbYYKDrUAAcz+AIBXlAkFgiBQaVwLQiJCyMSgE2EV0k-lk8h4fC4D2iQ10yEGhhMEHMcUsLOsBJppVOnm8vn8gWClRxmXY2UJcUSyRwqRlositMM9FyAwKRRKJ3KLBF1TVQ2ZrLG9kmP0WywhTlMIKg+wZ6qOPPp52J4lJ0jiNOa70+XiAA)](https://www.typescriptlang.org/play?ts=4.7.0-dev.20220415&ssl=37&ssc=1&pln=1&pc=1#code/JYOwLgpgTgZghgYwgAgApQPYAcDOAeAETjDgBpkAlCEAE2gD5kBvAKGWRuLgC5kiSA3G2QQAHmCiIwvABScSvfnACUyALyMqtaEPZRqdKAElIAW1nAzvLYdUbkIAK4AbZ0IC+LFjEcgEYYAwQZBgQQi5ySgMGZBkAfSxMXF50bHwlchsGVVY9CDBHKGCnVw8vUJlcji5eAG0ARlIAJlIAZlIAFgBdUmF9bWMrZGB1RiZkAHoJ5AAVAAtgHGGl3wBrEAwAdxBhPIKihxc3YXde9jEJKVl9HDtGG9qABh6Wd2UhLynkAFpf3+QAEYQZxbZbITYYKCrUAAcx+fz+XlAkFgiBQqVwTXCJEy0SgY2EF0k-lk8h4fC4dyiA10yH6hhMEHMsUsTOseKpJWOnm8vn8gWCoSxGXYWXxsQSSRwKSlwoi1MM9ByfXyhWKRzK3hATUqKoGjOZI3s4y+80WYKcpiBUF2dNVBy5tNOhPExOksSpjVe7y8QA)
💻 Code

interface Props<Data, Render> {
  data: Data;
  extract: (data: Data) => Render;
  renderItem: (item: Render) => null;
}

function fn<Data,  Render> (_props: Props<Data, Render>) {
  return null;
}

fn({
  data: [1,2,3,4],
  renderItem: i => { // This is unknown
    return null;
  },
  extract: (res) => res[0],
});

// ----- below is working -------

interface Props2<Data, Render> {
  extract: (data: Data) => Render;
  renderItem: (item: Render) => null;
}

function fn2<Data,  Render> (_props: Props2<Data, Render>) {
  return null;
}

fn2({
  renderItem: i => { // This is number
    return null;
  },
  extract: () => 1,
});

🙁 Actual behavior
in function fn1, parameter -> renderItem(i),  " i " is inferred as unknown
🙂 Expected behavior
in function fn1, parameter -> renderItem(i),  " i " should be inferred as number, as in fn2

This logic is still order-sensitive; extract must come before renderItem for this to work

I see @RyanCavanaugh  Many Thanks


Link to block explorer for full transaction history.

The recent activity list will now be limited to the last 10 transactions associated with the user's address. On the off chance that they would want to view past that, it would be convenient to link them to a block explorer to see the full address history. Etherscan is perfect here, only hitch would be dynamically changing the link if network switching is implemented in the future.

[x] Add some sort of "view full history" button to the Home page, somewhere close to the transaction history
[x] Dynamically update the URL to reflect the selected network, if applicable

Resolved by 632e6bb


Huffman Coding

Objective: WAP to implement Huffman coding algorithm with O(N log N)time complexity and O(N) space complexity.

I can implement this can I get assigned to this

You're assigned!

Should I create a file in Greedy Algo. folder

Create your respective language folder if not exists

Its cpp that I am implementing it and it do exits
What I am doing is Code File and Add input/output , description, application and image in readme is that fine

Keep it simple and add just the code file

OK

Can check the pull req.

Also one more thing your recursion folder can many more examples like Josephus Problem, Staircase Problem
Can I create issue for that I would  like to add that problems also

Yes, you may if you want to :)


Correlated log-normally distributed random field

Is it possible to generate a correlated log-normally random field using GeoStatTools? If so would you please give me some hints?

Hi,
So you want to have a pair of two correlated fields whose distributions follow log-normal? Am I correct?
If so, I suggest you to apply co-kriging or co-simulation:

Take a log to your data, if any (Kriging works with normal distribution)
Generate one random field with Kriging - use GeostatsPy.krige (for a single model) or GeostatsPy.sgsim (for multiple models)
Generate another random field with co-kriging - also use GeostatsPy.krige or GeostatsPy.sgsim, but you need to define 2nd data (i.e., the result of step (2)) and the correlation coefficient
Take exponential to the both results

I also recommend to refer to Dr. Pyrcz's workflow: https://github.com/GeostatsGuy/GeostatsPy/blob/master/working/sgsim_alpha3.ipynb
Hope this will be helpful for you.

Hi,
Thanks for the prompt response.
No I just want to make one spatially correlated random field with log-normal distribution.
From your comment, I would guess I have to create a correlated normal field and then transform it to a lognormal one. The problem is that the new field (the log-normal one) will not have the specified correlation length. So the question is if there is a way than I can generate log-normally distributed random fields with a certain mean, variance and correlation length?
Cheers,
Hoda

Oh, my bad. So you want to have a (spatially) correlated field which should follow log-normal.
This is a really interesting question... I haven't thought about that before deeply.
Since 'kiging' and 'SGS' estimate the value in unknown location with a linear combination of known values, according to central limit theorem, it is mathematically sound for us to work with a variable which is normally distributed. If a random variable X follows log-normal then the logarithm of X is normally distributed. Therefore, we can generate a field of a new random variable Y (= log(X)) and then transform it back to log-normal distribution by taking exponential to Y at the end.
And let's say the mean and variance of X are 'X_mean' and 'X_var', respectively. Then Y_mean = log(X_mean/sqrt(1+X_var/X_mean^2)) and Y_var = log(1+X_var/X_mean^2). Therefore, we can set the mean and variance of Y using the above relation and if so, your final field will follow the specific mean and variance you set.
(Refer to https://en.wikipedia.org/wiki/Log-normal_distribution#Notation)
The correlation length is the maximum distance of correlation. If two variables (the values at different location) are only correlated within such distance, regardless of their distribution, I believe that their maximum correlation length should be same. Simply X_cor_length = Y_cor_length.
Thank you,
Best,
Honggeun

Hey there,
I think hoda is talking about random field Generation, which differs from kriging, since it's not an interpolation of given data. An option is given under the attached issue based on  GSTools:
https://github.com/GeoStat-Framework/GSTools/issues/26
Cheers and keep up the good work,
Sebastian

Thank you for clarifying Sebastian!
Yea, definitely with 'sequential Gaussian simulation (SGS)', we can generate multiple random fields. Basically SGS is based on kriging but it 1) sequentially generate values with Monte-Calro simulation and 2) the computed values are considered 'known' value for the next step. If you want to know more about this, check this link: https://youtu.be/3cLqK3lR56Y. This is a lecture from Dr. Pyrcz's geostatsitcs course.
I also wrote down workflow using geostatspy package. Here you can only change the 'mean_log'/'variance log' and 'Cor_length', as you wish.
import pandas as pd
import matplotlib.pyplot as plt
import geostatspy.geostats as geostats
import geostatspy.GSLIB as GSLIB
import numpy as np
import seaborn as sns

## Define the size of map:
# - nx / ny: number of grid cells in x and y direction
# - xsiz / ysiz : size of individual grid cell
nx = 100; ny = 100; xsiz = 1.0; ysiz = 1.0;

## Define statistics we goal:
# Cor_length : maximum distance where two values are correalated
# Mean_log/Var_log : mean and variance of a random variable (X) which follows log-normal dist.
# Mean_normal/Var_log : mean and varinace of a random variable (Y = log(X)) which follows normal dist.
Cor_length = 100;
Mean_log = 1; Var_log = 1
Mean_normal = np.log(Mean_log/(1+Var_log/Mean_log**2)**(1/2));
Var_normal = np.log(1+Var_log/Mean_log**2)

## Truncation of log-normal distribution:
ZMAX_log = 5
ZMIN_log = 0.01
zmin = np.log(ZMIN_log); zmax = np.log(ZMAX_log)

## Define variogram model based on the above statistics:
vario = GSLIB.make_variogram(nug=0.0,nst=1,it1=1,cc1=1,azi1=91.0,hmaj1=Cor_length,hmin1=Cor_length)

## Keep this default:
xmn = xsiz/2; ymn = ysiz/2;
nxdis = 1; nydis = 1
ndmin = 0; ndmax = 20; radius = Cor_length; ktype = 0; skmean = 0
tmin = -999; tmax = 999

## Feed first three variables from MCS:
df = {'X':[1,50,99],'Y':[1,50,99],'Value':np.random.normal(size= 3)}
df = pd.DataFrame(df)

## Sequntial Gaussian Simulation:
sim_normal = geostats.sgsim(df,'X','Y','Value',wcol=-1,scol=-1,tmin=tmin,tmax=tmax,itrans=1,ismooth=0,dftrans=0,tcol=0,twtcol=0,
            zmin= -1.5,zmax= 1.5,ltail=1,ltpar=0.3,utail=1,utpar=0.3,nsim=1,
            nx=nx,xmn=xmn,xsiz=xsiz,ny=ny,ymn=ymn,ysiz=ysiz,seed=73073,
            ndmin=ndmin,ndmax=ndmax,nodmax=20,mults=0,nmult=2,noct=-1,radius=radius,radius1=1,sang1=0,
            mxctx=10,mxcty=10,ktype=ktype,colocorr=0.0,sec_map=0,vario=vario)
sim_normal = (sim_normal-sim_normal.flatten().mean())/sim_normal.flatten().std()*Var_normal**(1/2)+Mean_normal
sim_log = np.exp(sim_normal)

## Visualize the results:
plt.imshow(sim_normal); plt.colorbar()  # Random field in normal
plt.imshow(sim_log); plt.colorbar()     # Random field in log-normal
sns.distplot(sim_normal.flatten())      # Histogram of normal field
sns.distplot(sim_log.flatten())         # Histogram of log-normal field

You may get the following results:

Log-normal field

Histogram of the log-normal field

And by changing the random seed in the function, you can easily generate a multiple cases.
Hope this may help you :)
Honggeun

I just refereed to Dr. Pyrcz code and only revised its scale and name of variables for you to understand better.

Thanks Honggeun. This is very helpful.


backport - move percona check to correct role

Being in the common role means that every node that doesn't have the percona-backup role will falsely alert on this.

retest


Increase the default number of merge threads.

You need as many merge threads as necessary to make sure that merges can keep up with indexing. But this number depends on the data that you are indexing: if you are only indexing stored fields, merges can copy compressed data directly and merges are only a small fraction of the total indexing+flushing+merging cost. But if you primary index knn vectors, merging N docs may require about as much work as flushing N docs. If you add the fact that documents typically go through multiple rounds of merging, the merging cost can end up being more than half of the total indexing+flushing+merging cost.
This change proposes to update the default number of merge threads assuming an intermediate scenario where merges perform about half of the total indexing+flushing+merging work, ie. it gives half the threads of the system to merges.
One goal of this change is to no longer have to configure a custom number of merge threads on nightly benchmarks, which run on a highly concurrent machine.

One goal of this change is to no longer have to configure a custom number of merge threads on nightly benchmarks, which run on a highly concurrent machine.

+1, that's be great to revert to Lucene's defaults for the nightly benchy.  Ideally the nightly benchy would be nearly 100% Lucene's defaults ...

Maybe in the future (after this change) we could think about a more adaptive approach that'd spin up additional merge threads if the merge cost/time is highish (many vectors, few stored fields).

Maybe in the future (after this change) we could think about a more adaptive approach that'd spin up additional merge threads if the merge cost/time is highish (many vectors, few stored fields).

I was wondering about the same. Maybe we could resurrect the auto-throttling mechanism, but at the CPU level rather than I/O.  E.g. we could track the number of queued merges over some recent period of time, and dynamically increase the number of merge threads if there are queued merges consistently, or decrease it if the queue is always empty.

I feel like dynamic thread pools never work well in java apps. I have to always set simple static fixedthreadpool everywhere for anyone's tomcat or jetty or anything else that I find, to avoid memory problems.


Help with configuration in SpaceVim

How do i configure lualine in spacevim?
I have installed it and it's up and running, but how do i change it's theme here?

I'm not interested in providing support for any special configuration system . Hope you can understand . I think general config example provided in README would work in frameworks too.


[BEAM-5534] Revert "Merge pull request #6411 from huygaa11/revert-6311-twsit"

Bring WikipediaTopSessionsIT back

Run Java PostCommit

Run Java PostCommit

Run Java PostCommit

Run Java PostCommit

r: @jasonkuster

LGTM.


chore: use stateChangeTypes namespace module internally instead of st…

This saves around 50 bytes in prod build, each internal reference to stateChangeTypes can be "inlined" by rollup as a simple variable - instead of being a property of a nested object.
While this isn't impressive I've made a test for another (sadly breaking change) - removing stateChangeTypes from the Downshift class entirely & exporting them from the root entry instead, like this:
import * as stateChangeTypes from './stateChangeTypes'
export { stateChangeTypes }

and this gives far better results:
   "dist/downshift.esm.js": {
-    "bundled": 88000,
-    "minified": 35472,
-    "gzipped": 10364,
+    "bundled": 88140,
+    "minified": 35481,
+    "gzipped": 10445,
     "treeshaked": {
       "rollup": {
-        "code": 22990,
+        "code": 22251,
         "import_statements": 37
       },
       "webpack": {
-        "code": 23997
+        "code": 23256
       }
     }
   }

and this is 741 bytes saved for webpack for the most common use case (not needing stateChangeTypes).
It would be even better than that to create a secondary entry point (import * as stateChangeTypes from 'downshift/state-change-types') so people wanting to use a single state change type wouldnt have to import all of them.
I've also done separate test which builds on top of this PR - I've replaced all stateChangeTypes with increasing integers and this allowed minifier to completely inline those numbers at each "usage site" which lead to nice savings:
   "dist/downshift.esm.js": {
-    "bundled": 88120,
-    "minified": 35508,
-    "gzipped": 10444,
+    "bundled": 87643,
+    "minified": 35031,
+    "gzipped": 10359,
     "treeshaked": {
       "rollup": {
-        "code": 22934,
+        "code": 22048,
         "import_statements": 37
       },
       "webpack": {
-        "code": 23941
+        "code": 23055
       }
     }
   }

those are independent from the previous test.
And obviously we can generate strings or numbers depending on NODE_ENV (with the help of macros)

What do u think about the two tests that I have made?

I like them, but we'll need to save the one for a breaking change. Let's do the other now though (via a macro I think). Thanks!


Fork, Commit, Merge - Easy Issue (NextJS)

Fork, Commit, Merge - Easy Issue (NextJS)
Create a sample product list with names and prices
Note: You don't have ask permission to start solving the issue or get assigned, since these issues are supposed to be always open for new contributors. The actions-user bot will reset the file back to previous state for the next contributor after your commit is merged. So you can just simply start working with the issue right away!
Description:

Your task  is to create at least three sample products inside of the sampleProducts array with names and prices for landing page of an imaginary online store. The landing page displays a welcome message, a brief description of the store, and the sample products.

Start by navigating inside of the directory used in this project with the command:
cd tasks/nextjs/easy/nextjs-easy`

Then run npm i to install NextJS, React and all the necessary dependencies for the project.
After installing the dependencies you can open the index.tsx file inside of src/pages directory, and start implementing your solution!

This project uses Tailwind for CSS and all the classes are already added to the components.
This project also uses TypeScript but you don't need to know any TypeScript to work with this issue. As soon as you add the sample products with names and prices, TypeScript will infer the types and all the errors present in the file will go away.
After you are done with the list, make sure you are in the tasks/nextjs/easy/nextjs-easy in your terminal and run npm run dev to start the NextJS server. Then, open "http://localhost:3000/" in your browser to check how the landing page looks.
If the product names and prices are showing up as they should, you are ready to make a pull request!

To work with this issue, you need to have npm and NodeJS installed to your local machine.
Check out README.md for more instructions of installing npm and NodeJS as well as how to make a pull request.

Feel free to ask any questions here if you have some problems!
Also, kindly give this project a star to enhance its visibility for new developers!

@nikohoffren I have started working on this one. I will be posting some feedback around it tomorrow morning, when I have some pull request ready and details about work done.

Sure, sounds good!


[ALLUXIO-2284]Mark class JmxSink as final in JmxSink.java

https://alluxio.atlassian.net/browse/ALLUXIO-2284
public class JmxSink implements Sink {
should be
public final class JmxSink implements Sink {
as this class is not expected to have subclasses

Can one of the admins verify this patch?

Jenkins, add to whitelist

ok to test

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Alluxio-Pull-Request-Builder/11943/
Test PASSed.


[D3D-2515] shadow ps must return 0 when unlighted

When a light is not ligthing a fragment we optimize by not computing
shadow (and avoid any acne shadow on those surface)
But we returned 1.0 which means "no shadow" which is not consistent
shadow receive function. (in fact it is "shadowed")

Did you check the rendering of shadow example with this code to validate there is no regression ?

yes, in "normal" light are unaffected.
It's only special light that make use of shadow values in spite of not being lighted that is impacted here


#135842531 effective user landing page ui

What does this PR do?
Changes the look and feel of landing page to minimalistic design
Description of Task to be completed?
Redesign the landing page for the game
How should this be manually tested?
Run the project to observe the landing page
Any background context you want to provide?
N/A
What are the relevant pivotal tracker stories?
135842531
Screenshots (if appropriate)

Questions:
N/A

@andela-cwekesa conflicts due to a merge. Please fix this.

Coverage remained the same at 30.655% when pulling beaeca8b85feaba2aac792cda5f3cec2310ee7d0 on Feature/135842531/effective-user-landing-page-UI into 8769d43594bace596057f3f72c02b578cc12f5ea on develop.


TestWatchReconnRequest: index out of range

via semaphore (https://semaphoreci.com/coreos/etcd/branches/master/builds/1057)
Probably due to receiving an error when an event is expected.
--- FAIL: TestWatchReconnRequest (0.33s)
panic: runtime error: index out of range [recovered]
        panic: runtime error: index out of range

goroutine 58239 [running]:
panic(0xfb3b20, 0xc420016140)
        /usr/local/golang/1.7.1/go/src/runtime/panic.go:500 +0x1ae
testing.tRunner.func1(0xc4233ac9c0)
        /usr/local/golang/1.7.1/go/src/testing/testing.go:579 +0x474
panic(0xfb3b20, 0xc420016140)
        /usr/local/golang/1.7.1/go/src/runtime/panic.go:458 +0x271
github.com/coreos/etcd/clientv3/integration.putAndWatch(0xc4233ac9c0, 0xc4219c59a0, 0x10c6328, 0x1, 0x10c6328, 0x1)
        /home/runner/workspace/src/github.com/coreos/etcd/gopath/src/github.com/coreos/etcd/clientv3/integration/watch_test.go:344 +0x5d2
github.com/coreos/etcd/clientv3/integration.testWatchReconnRequest(0xc4233ac9c0, 0xc4219c59a0)
        /home/runner/workspace/src/github.com/coreos/etcd/gopath/src/github.com/coreos/etcd/clientv3/integration/watch_test.go:223 +0x348
github.com/coreos/etcd/clientv3/integration.runWatchTest(0xc4233ac9c0, 0x1182f60)
        /home/runner/workspace/src/github.com/coreos/etcd/gopath/src/github.com/coreos/etcd/clientv3/integration/watch_test.go:67 +0x697
github.com/coreos/etcd/clientv3/integration.TestWatchReconnRequest(0xc4233ac9c0)
        /home/runner/workspace/src/github.com/coreos/etcd/gopath/src/github.com/coreos/etcd/clientv3/integration/watch_test.go:184 +0x45
testing.tRunner(0xc4233ac9c0, 0x1182ec8)
        /usr/local/golang/1.7.1/go/src/testing/testing.go:610 +0xca
created by testing.(*T).Run
        /usr/local/golang/1.7.1/go/src/testing/testing.go:646 +0x530
exit status 2

@gyuho Can you take a look?

Sure

@heyitsanthony Haven't been able to reproduce this, with over 1,500 rounds...
Only possibility that I can think of is that the popping the created event here https://github.com/coreos/etcd/blob/master/clientv3/watch.go#L589
if len(ws.buf) > 0 && ws.buf[0].Created {
	select {
	case ws.initReq.retc <- ws.outc:
		// send first creation event and only if requested
		if !ws.initReq.createdNotify {
			ws.buf = ws.buf[1:]
		}
	default:
	}
}

ws.initReq.retc <- ws.outc could block, and select falls through default case.
And the created event gets sent out, with 0 event in its response.
Why do we have default: here? Does it ever get blocked?
Thanks.

Yeah, this code sending too many create events.


Support delta feeds

Changes:

Append A-IM erquest header when either If-Modified-Since or If-None-Match headers are set.
Accept 226 IM Used as a pass condition.

Delta feeds (RFC3229+feed) only includes new entries added since the feed was fetched the last time. Saves bandwidth for feed servers and users alike. Means less processing as only new and modified entries are included in the feed.

Thanks! I didn't know about A-IM: feed, sounds worth supporting. There's a test failure that your change introduce, would you mind having a look? It's an assertion on HTTP requests being made to the outside world.

“All checks have passed” :tada:

@Aeyoun thanks!


use .pb  model with tensorflow-gpu in Desktop?

Hi , @junhwanjang 。Thanks for your nice job. I want to know how to use the .pb  model in  tensorflow-gpu,  I try  it but get some error like " can't  load the .pb  "   or 'not such file '
Can you give me some suggestions or some exmaples?  Thanks a lot.

OSError: SavedModel file does not exist at: ./pb_model/palm/{saved_model.pbtxt|saved_model.pb}

python```
def load_inference_graph(model_path):
# load frozen tensorflow model into memory
print("> ====== loading HAND frozen graph into memory")
graph = tf.Graph()
with graph.as_default():
od_graph_def = tf.GraphDef()
with tf.gfile.GFile(model_path, 'rb') as fid:
serialized_graph = fid.read()
od_graph_def.ParseFromString(serialized_graph)
tf.import_graph_def(od_graph_def, name='')
sess = tf.Session(graph=detection_graph)
print(">  ====== Hand Inference graph loaded.")
return graph, sess
did you try it?

Sorry for my  late reply !  Thank for your suggestions ,it works now.   I used it with a wrong method  before.


Zero coverage of process spawned by dogtail

Our team uses dogtail to GUI test our application but unfortunately we've never been able to get any coverage from these tests.
I've prepared a simple test demonstrating this scenario. (Create/download these files into the same directory.)

my_app.py -- a simple GTK Python application
test_my_app.py -- a dogtail script that launches the above GTK Python application
.coveragerc -- .coveragerc file.

Other steps I took to run the above scripts on Ubuntu LTS 22.04:

I created a sitecustomize.py module in my local site packages directory

#/home/Olumide/.local/lib/python3.10/site-packages/sitecustomize.py
import coverage
coverage.process_startup()

Create the COVERAGE_PROCESS_START environment variable as follows export COVERAGE_PROCESS_START="${PWD}"/.coveragerc
From the directory containing the files, attempt to get coverage on my_app.py when automated by the dogtail script which is launched by pytest as follows: coverage run --rcfile=.coveragerc -m pytest test_my_app.py. (The dogtail script automates UI actions.)
Get coverage report coverage report
Outcome (no coverage on my_app.py:

Name             Stmts   Miss  Cover
------------------------------------
my_app.py           17      0   100%
test_my_app.py       6      6     0%
------------------------------------
TOTAL               23      6    74%

I don't know if I am doing something wrong, or this is a missing feature or a bug.
dogtail is based on subprocess so I've added concurrency = multiprocessing to the .coveragerc file.

Here are some packages/steps that may be needed in order to setup GTK, GTK Python and dogtail (extracted from our pipeline)
- apt-get update && apt-get install dbus-x11 libcairo2-dev libgirepository1.0-dev libgtk-3-dev at-spi2-core python3-pyatspi python3-dogtail gnome-icon-theme gsettings-desktop-schemas -y
- pip install pycairo PyGObject

- eval $(dbus-launch --sh-syntax)
- gsettings set org.gnome.desktop.interface toolkit-accessibility true
# Poor man's fix. (pyatspi and dogtail install to dist-packages on Ubuntu. )
- ln -s /usr/lib/python3/dist-packages/pyatspi /usr/local/lib/python3.10/site-packages/pyatspi
- ln -s /usr/lib/python3/dist-packages/dogtail /usr/local/lib/python3.10/site-packages/dogtail

Caveat: Run on dogtail scripts on X-Windows. dogtail does not run well on Wayland.
(I posted a version of this question on stackflow just over a month ago but without a  working example. Hopefully a reproducible example will help make the problem clearer.)

my_app.py           17      0   100%

This seems to indicate you have 100% coverage of my_app.py?

my_app.py           17      0   100%

This seems to indicate you have 100% coverage of my_app.py?

That's a typo. I've just rerun the test and edited the OP with the correct stats.

Problem solved.
I was running the test with sudo, i.e.
sudo xvfb-run coverage run --rcfile=.coveragerc -m pytest test_my_app.py
As such the environment variable COVERAGE_PROCESS_START was not preserved.
sudo -E xvfb-run coverage run --rcfile=.coveragerc -m pytest test_my_app.py
Fixes the problem.


RSCONF_DB_REPLACE should work at component level

This causes an error:
postfix:
  RSCONF_DB_REPLACE: {}

  File "/root/src/radiasoft/rsconf/rsconf/pkcli/build.py", line 24, in __init__
    hdb=dbt.host_db(channel, host),
  File "/root/src/radiasoft/rsconf/rsconf/db.py", line 154, in host_db
    _assert_no_rsconf_db_values(res)
  File "/root/src/radiasoft/rsconf/rsconf/db.py", line 252, in _assert_no_rsconf_db_values
    _assert_no_rsconf_db_values(v)
  File "/root/src/radiasoft/rsconf/rsconf/db.py", line 251, in _assert_no_rsconf_db_values
    _assert_no_rsconf_db_values(k)
  File "/root/src/radiasoft/rsconf/rsconf/db.py", line 259, in _assert_no_rsconf_db_values
    'value={} must not begin with RSCONF_DB_'.format(value),
AssertionError: value=RSCONF_DB_REPLACE must not begin with RSCONF_DB_

Problem is the merge from secrets. Need to respect RSCONF_DB_REPLACE on the base not just the new values, because there are two merge passes. If there is a RSCONF_DB_REPLACE at the top level, not just one key (see merge_dict), will replace anyway.

fpc 43b9510cc8981a71a020d34c529e9a8ec482ce33


Adds spo group user remove command. Closes #2642

Add new command spo group user remove command for removing user from SharePoint Group.

Adds a new command spo group user remove command for removing user from SharePoint Group. Closes #2642

Linked Issue

Closes #2642

Awesome! We'll review it shortly

Thank you. Merged manually


Added property testing

This PR adds a couple of tests using proptest, a testing framework to test code invariants. See here or here for an introduction to the subject.
This framework is being used by the portable SIMD group, and in my opinion it makes a lot of sense here also, since we can rigorously declare and test the properties of our operations.

Failing MIRI is related to proptest using clib::getcwd, which is not supported in isolation mode. Question posed upstream.


logic change for selecting a particular trip

changed the data structure and logic for selecting a trip

LGTM 👍

LGTM :+1: