Provide clear instructions for implementing PSScriptAnalyzer in CI systems

Summary of the new feature
In microsoft/PowerShellForGitHub, we wanted to have PSScriptAnalyzer run in our CI system (we happen to be using Azure DevOps, but that's besides the point).  This project is great, but its output doesn't lend itself well to CI reporting systems.
I ended up putting together a script that will take the results from an Invoke-ScriptAnalyzer run, and output an NUnit-style XML result file that can then be used to display clear UT-style results in any CI system that supports that file format (which is most of them).
You can see the change as it was implemented here: microsoft/PowerShellForGitHub#211.
It was intentionally written generically to make it easy for anyone to re-use it in their own project.
It creates a test for every Rule, and makes them pass unless there was a failure in that rule, and then it adds a test failure within that rule for each actual test failure.  You can see an example build with a failure reported in the Tests tab here (but only if you have permission to the ms org for some reason).
My suggestion is to directly include that file along with some snippets of how to use it in various CI systems (I can easily include a snippet for using it in Azure DevOps, and I'm sure someone familiar with AppVeyor or other systems could adapt it to those systems too.
Proposed technical implementation details (optional)**
Example screenshots from build

What is the latest version of PSScriptAnalyzer at the point of writing
v1.19.0

The minimalistic way of using PSSA in CI is to use the -EnableExit switch, which will make it return a non-zero exit code, which CI providers will register as a failure. Details of the failure are then to be obtained from the command line log. Would it help if we described this in the main ReadMe of this repo? Get-Help Invoke-ScriptAnalyzer already mentions this switch and CI explicitly.
In terms of the ask for the fancy UI option: You are right that most CI providers accept NUnit style XML for visualisation of  test results. This has long been asked for, we already have #1296 and #672 to track that, in fact the -EnableExit switch was added as a minimum viable feature to use PSSA in CI instead of that due to time resourcing limitations.
I see you already found the Export-NUnitXml.psm1 module from @MathieuBuisson . This solution seems to work well already and I am not sure PSSA has to ship such functionality out of the box because external modules can adapt easier/quicker if for example the module were to break in a new PowerShell version. Therefore my suggestion as the next step would be for @MathieuBuisson to publish it to the PSGallery for easier sharing. Since his repo has an MIT licence, in fact anyone could fork and publish. I am not denying, that it would be nice to have an out of the box solution but in order for it to be more stable/robust and continue to work for all future PS versions, we would probably implement it in C#, but this has not got priority atm. We always welcome PRs but it has to be said though that serious work on PSSA v2 is about to start and this might be the first time that there could be breaking changes to the DiagnosticRecord API or that some of the PSSA concepts get a re-think....
Another alternative that I have seen people do is use Pester tests to loop over an artifical array of all files/rules and then have a test to check the results do not contain that specific rule/file. Since Pester ships with NUnit XML output support, it solves the output file problem and additionally it also means that you get green results as well instead of only red results when there are failures.

Thanks @bergmeister we can use #1296 to track the request for NUnit style XML.


fix(release): lowercase OS name

closes #112
Signed-off-by: Matthew Fisher<EMAIL_ADDRESS>

fixed


How do you specify the workspace folder as the location for the macro file?

I would like to have the macro file be part of the project. Is there a way to specify the workspace folder as the location for the macro file?
I have tried {workspaceFolder} as pointed out in the VSCode docs, but I think the docs are talking about using the variable from the user's point of view, not from the extension writer's point of view.
I tried this and it doesn't work:
  "vscodemacros.macroFilePath": "${workspaceFolder}/.vscode/openTerminals.js",

@gregveres
If you would like to use macros of workspace, you have to enter the path to your macro file in the Macro File Path of the Workspace settings.

The settings are stored in the *.code-workspace file.

Then you can run the workspace macro as follows.

Best regards,

Thank you. My problem was that I was trying to use a relative path from the workspace, but I was saving the settings in the user portion of the settings. Apparently when saving as the user settings, the path is relative to somewhere else.
saving in the workspace settings I was able to use the ".vscode/macros" directory.

@gregveres
Thank you for your reply.
I forgot to mention something important.
We are unable to use VSCode predefined variables such as ${workspaceFolder} for the macro file path in VSCode Macros extension because VSCode does not provide an API to expand predefined variables so far.
Please see issue #3 for details.
Best regards,

No problem at all. Just defining the value as ".vscode/macros/macro-file.js" worked great. I am not sure I would need to expand those variables.
BTW, this is a great extension. I was able to quickly write a macro to open up three terminals and start nx serve X in each of those terminals to get my monorepo based application building with a single command. I love it!


chore(main): release 0.8.8

:robot: I have created a release beep boop
0.8.8 (2023-12-08)
Bug Fixes

comment wrong implementation (9920310)

This PR was generated with Release Please. See documentation.

:robot: Release is at https://github.com/kevinah95/hacienda/releases/tag/v0.8.8 :sunflower:


Add contribution array to ValueObjectDescriptor root class

Since all ValueObjectDescriptors are sourced by some system or environment, i think it will be important to be able to represent that as a "contribution" concept (from SEPIO).
In ClinGen we use the following baseline structure for contribution(s)
"contribution": [{
    "activity_date": "2017-04-03",
    "agent": "http://dataexchange.clinicalgenome.org/terms/clinvar.submitter/506439",
    "agent_role": "SubmitterRole"
}]

Hey there, I am new to open source but i would love to contribute to this organization, so can I work on this issue, and would need some help regarding that.


uploadOnSave not working

I am unable to get this feature to work in recent versions of atom.

any chance this will be resolved for newer versions of atom?

I'll be working on this today after long leaving.

try upgrading to 0.6.0

awesome!


[Question] Is there support for MARL?

As per title: is there support for multi-agent learning environments, such as PettingZoo for instance?

Hi @smarianimore
It is a work in progress for the next release...
I programmed the environment wappers for PettingZoo and the DexterousHands (bi-dexhands: a multi-agent environment on top of Isaac Gym). Also, I have a first implementation of IPPO and MAPPO...
If you are interested in collaboration, I can create a separate branch for this feature... and we can work on it.
Let me know if it is the case


improve buttons

add color scheme
update changelog
add button styles

Pull Request Test Coverage Report for Build 33e2233901d21daa2846710b7bd556817f10a535-PR-342
Details

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 86.383%

Totals

Change from base Build 01a7f5ab21da7c79156b314522ad5bb230a5db6b:
0.0%

Covered Lines:
1586

Relevant Lines:
1836

💛  - Coveralls


sched/wqueue: There is no need to use sched_[un]lock

Summary
There is no need to use sched_[un]lock
Impact
Testing

@hujun260
Please describe which configurations and applications you tested in the description.
Also, please change the commit message to more specific ones.

purpose:
1 sched_lock is very time-consuming, and reducing its invocations can improve performance.
2 sched_lock is prone to misuse, and narrowing its scope of use is to prevent people from referencing incorrect code and using it
test:
We can use qemu for testing.
compiling
make distclean -j20; ./tools/configure.sh -l qemu-armv8a:nsh_smp ;make -j20
running
qemu-system-aarch64 -cpu cortex-a53 -smp 4 -nographic -machine virt,virtualization=on,gic-version=3 -net none -chardev stdio,id=con,mux=on -serial chardev:con -mon chardev=con,mode=readline -kernel ./nuttx
We have also tested this patch on other ARM hardware platforms.

@masayuki2009 please reply!

@hujun260
The commit log is still ambiguous.
Please change the commit log like the following.
sched: wqueue: Remove sched_[un]lock from kwork_inherit.c
...


[WIP] Allow fud steps to execute other stages

TODO

[ ] Remove Stage.run and define a nested executor for steps

@sampsyo: One big change with this PR is making the config object unavailable during a Stage's __init__ phase and instead moving it into the _define_steps function. Additionally, the PR makes it so that only the stages that are in the path call setup().
All this means two things:

Stages can only use config when they are actually involved in the execution. This means that they can require certain configuration options to be specified on the command-line whereas previously, they would have to provide defaults for all options.
The RemoteExecution stuff had to be changed a bit and I can't test it locally. Can you read it and make sure it looks sane?

Sure; I can give it a shot when I have a moment! (FWIW, an easy way to test remote execution stuff is to run things on havarti directly and configure it to SSH to localhost.)
Making the config somewhat lazier like that seems pretty reasonable to me.

Closing in favor of #887.


Adds toggle to image gallery to disable auto image update

This PR adds a toggle to the image gallery to disable automatically selecting newly generated images.
This is useful when generating large batches of images and you wish to inspect previous generations while doing so. It becomes increasingly annoying when the selected image changes by default when viewing older generations.

Feedback is absolutely welcome, I've not used redux in a hot minute so let me know if the state changes could be better named, located etc.
Thanks for taking the time to review <3

Great idea.
We have a gallery revamp coming in the imminent 2.1 release. Because your changes won't merge into the new component structure, I won't approve this PR. However, I will and implement this directly, as it is less effort than merging :)
Thanks for your contribution.

Thanks for the consideration, can't wait for it your branch to be merged!


Support for flipper web sdk

Howdy, thank you for all of your open source contributions. The react-native app I'm working on can't rely on flipper native react native package due to some very unique Podfile configurations but using flipper web sdk works pretty well and I even got your redux-flipper plugin to work after a couple of small changes.
So instead of forking this and installing a custom version I'd like to open a PR here to add support for flipper web sdk but wanted to check in first and see if this project is taking in contributions?

CC: @plwai @jk-gan

Hi @brianangulo , thanks for your interest in contributing to the repo!  Feel free to open a pull request to add Flipper web SDK support.


(PDB-3432) log elapsed time with command processing

Change command processing logging to include elapsed ms. This will be
useful to support for correlating slow processing to specific nodes.
Cherry pick of 494c3e6bd26e1f2e0743e9c61b162b769d676799
cf. PDB-3096

:+1: from me; tested locally too, works great. Will merge once the tests finish.

Test PASSed


Observing of "notify" arrays are not updating consuming templates (dom-repeat)

When defining an array property on a component and setting its "notify" to be true, if this property is being used in some dom-repeat template, the template would not get updated when a new element has been pushed to the array.
For the time being, a work around was to extend the current array using $.extend and .set the property to the new extended array, after pushing the new element to the extended array.

Are you using the Array mutation methods to mutate the array ?

Indeed.Push. Apologies if that was not clear from my initial post.

Can you please post a reproduction case that shows the issue you're having?
I made a simple example here based on what you described which works as expected.  Can you modify this to match your usage that is causing the problem?  http://jsbin.com/luwija/edit?html,output

How about this?
http://jsbin.com/fuyogonopa/edit?html,output

Oops, made a typo.  I will update again if I can create a repro.

OK I made a new demo that has an example of unexpected behavior with dom-repeat in it:
http://jsbin.com/zunimigadi/1/edit?html,output
Seems like PolymerElement.push doesn't cause computed properties or observers to fire properly.

:)

Observers/computing functions normally only run when their dependents/arguments change by === equality test.  For objects/arrays, this means the object/array reference, not sub-properties of it.  However, Polymer provides a handy wildcard syntax for arguments (e.g. array.*) that allow you to perform work when the reference or any sub-property change.
Take a look at the section in the docs on deep path observation, which covers the change record you get as the argument, which differs slightly from normal arguments.
I updated your example to work using this syntax.
http://jsbin.com/warufo/edit?html,output
Hope that helps!


I have a problem, I just noticed that the last 5 of my challenges have not been checked of as completed. I refreshed and have asked all chat rooms for help, and nobody responds to me. but when I refreshed, I got this error "Cannot GET /en/challenges/jquery/remove-an-element-using-jquery"

Challenge Remove an Element Using jQuery has an issue.
User Agent is: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.116 Safari/537.36.
Please describe how to reproduce this issue, and include links to screenshots if possible.
My code:

jQuery Playground

#left-well

        <button class="btn btn-default target" id="target1">#target1</button>
        <button class="btn btn-default target" id="target2">#target2</button>
        <button class="btn btn-default target" id="target3">#target3</button>

#right-well

        <button class="btn btn-default target" id="target4">#target4</button>
        <button class="btn btn-default target" id="target5">#target5</button>
        <button class="btn btn-default target" id="target6">#target6</button>

This was actually a real issue and the first reporting of it.
@Jenny1985 you were right to report it. It's impacting multiple people and has been re-reported here: https://github.com/FreeCodeCamp/FreeCodeCamp/issues/10670


AttributeError: 'BertJapaneseTokenizer' object has no attribute 'subword_tokenizer_type'

I'm tryna run the example.ipynb file and when i try running load model, I get the error:
AttributeError: 'BertJapaneseTokenizer' object has no attribute 'subword_tokenizer_type'
I have the directories set up from the quickstart guide for pretrained and bert-base-japanese-whole-word-masking

Hi Eric,
I suspect it might be due to an update in the transformer library from hugging face. May I check your transformer library verision? I am working on transformers==4.30.2 with this code base.
Thanks :)

Thanks for the help! Downgrading it to 4.30.2 got it to work!


Setup PRMerger bots in repo

These bots can auto-assign reviewers to PRs based on the author metadata of the affected files. EX: https://github.com/MicrosoftDocs/azure-docs/pull/33564 the authour is assigned along with labels

@officedocsbot assign @mypil

@nschonni - Thank you for engaging with the community here for the docs.
I know the product teams are always looking for user feedback on how to make Windows 10 better. They keep a close tab on user feedback and it would be awesome if you could add your voice via Feedback Hub
You might find others have made a similar request that you can add to, or you can open a new one. Let us know here if you do so we can up-vote your request.
Thank you for your contribution to make the docs better! Much appreciated!

This is more a suggestion to make contributions to the docs flow better. It isn't really a Windows 10 thing, but feedback as a contributor to a bunch of the MicrosoftDocs repos.

There are also the validation hooks that can be setup to catch some things https://docs.microsoft.com/en-us/contribute/validation-reference/
Might need to talk to @meganbradley about that though, since I'm not sure how that gets wired in

@mypil : This is a suggestion about bots like @officedocsbot, so maybe @msdocsprbot could be a useful name for a bot handling Pull Requests like Nick has suggested?

@nschonni - Perhaps it is best for you to raise this suggestion to the GitHub admins. Let me loop in @DaniHalfin @dstrome as they may be able to help with this.

Found the other bot I was looking for https://github.com/apps/docs-content-validation
This is used over on the dotnet/docs repo for those validation-reference checks I linked to above

hi @nschonni
Thanks for the feedback.  We evaluate the performance of the repo constantly and are considering several ways to improve the experience for contributors. PRMerger is among the options we're looking at, however, there are several considerations regarding whether it makes sense to enable it on a given repo.
I'd be interested in understanding what functions of the PRMerge bot you find most useful. Same question for the docs-content-validation bot. I'm familiar with the bots but would like a contributor's viewpoint on their benefits.
Thanks!
David.

what functions of the PRMerge bot you find most useful

Just speaking to the ones that do the assignment/sign-off parts, it means the PRs get routed to the author right away, rather than relying on an admin to assign them. That leaves the editors and admins to concentrate on the reviews and landing of PRs.

Same question for the docs-content-validation bot

It catches lots of easy to miss parts for contributors (and authors, but I'm not sure if it's used internally currently). I always believe it's better for a machine to complain to a developer/author, because it isn't taken personally. In the case of false positives, admins/editors can always override and land anyway.
I'll say i'm not the biggest fan of the OpenBuild setup, but that's mostly because the output is pretty verbose, and relys on review.docs.microsoft.com, which isn't accessible to outside contributors.

@dstrome - Do you have any updates on this?

No further updates. We'll definitely take the feedback and include it in our discussions around repo and content management. Thanks all!


webpack-dev-server-speedy

What is this dependency?
Why not use webpack-dev-server?

https://medium.com/@kenneth_chau/speeding-up-webpack-typescript-incremental-builds-by-7x-3912ba4c1d15

Could we remove the dependency on webpack-dev-server-speedy now?
From the linked article:

Update: the webpack-dev-server maintainers had accepted my patch! So, go ahead and use<EMAIL_ADDRESS>Personally, I have observed a slight 0.5s regression between 2.x release and the 3.x release, so we’re keeping the 2.x for now until we can move to using webpack-serve.

(The latest version of webpack-dev-server is now v3.1.4)

500ms is non trivial. Let’s try it out for ourselves. Can you submit a PR?

Agreed, 500ms is a lot. However, and I may have misunderstood, but I thought @kenotron meant they're using<EMAIL_ADDRESS>which is (was?) 500ms slower than the version used by razzle (webpack-dev-server-speedy@^3.1.1). That'd mean razzle already incurred this 500ms performance hit.
I'll put together a PR! 🙂


[FLINK-6395] [tests] Mark test bases as abstract

Not sure whether marking classes without abstract methods abstract makes sense. If we want to prevent instantiations of these classes we could make the constructor also protected.

As you can see in the UnaryOperatorTestBase the constructor is already protected. The thing is that junit complains since the classes contain junit annotations (@After, @Parameterized) class but can't be instantiated. When i run these test in IntelliJ they are marked as failed tests due to an initialization error.
Making the classes abstract makes it clear they aren't actually self-contained test classes.

Alright, now I understand. +1 for merging.


Feature/52129 Refactor price component

please compare colors with zeplin, for now I cen see wrong colors https://app.zeplin.io/project/59d7824828a80b524cc9de18/screen/5c7696bfdb2d7d520baba850


Fix docs CI

Description
Fix docs CI.
Todos

[x] Update .readthedocs.yaml file

Status

[ ] Ready to go

Codecov Report

Merging #57 (b26febc) into master (23fd0c4) will not change coverage.
The diff coverage is n/a.


Type assertion causes exported variables to no longer use exports.variable

Source
export let CodeMirror = 123;
let x = (CodeMirror as any).foo;

Generated
    exports.CodeMirror = 123;
    var x = CodeMirror.foo;

Expected
    exports.CodeMirror = 123;
    var x = exports.CodeMirror.foo;

PS Only happens with as style assertion :rose:

does not repro on the latest bits from master
export let CodeMirror = 123;
let x = (CodeMirror as any).foo;

produces
exports.CodeMirror = 123;
var x = exports.CodeMirror.foo;

can you check typescript@next to see if this issue still exists

Indeed, works fine in latest bits :rose:


Add a knob to limit the size of pod logs.

From kubectl :
--limit-bytes=0: Maximum bytes of logs to return. Defaults to no limit.

#65 fixes, closing.


Add ARM support

Can one of the admins verify this patch?

Can one of the admins verify this patch?

add to whitelist


Remove animate.css

Couldn't find this used anywhere, so I suppose it can go.

Haha, this isn't used in the old frontend either. :D Merged.


error in starting

[Enter steps to reproduce below:]

...
...

 I am noob in coffescript, so I have changed line 355 to this: if EditorView.querySelector('.scroll-view')?
_editorOffsetLeft = EditorView.querySelector('.scroll-view').offsetLeft
else
_editorOffsetLeft = 20;and other error to this:if EditorView.querySelector('.line')?
_lineOffsetLeft = EditorView.querySelector('.line').offsetLeft
else
_lineOffsetLeft = 20;`
and color-picker works again


can't connect node wallet

When i started novod, I have this error in debug.log file
2023-02-13 12:52:07 connect() to <IP_ADDRESS>:8666 failed after select(): Connection refused (111)

Visit the new GitHub, there was a Hard fork by the community to correct several issues and we did not have access to push updates here.
https://github.com/novochain/novo/releases/tag/v0.3.0


make wldbg installable

passes to $prefix/lib/wldbg and include too

fixed by last series of commits


textpad8-np: Add version 8.15.1

[x] I have read the Contributing Guide.

PS C:\Users\WDAGUtilityAccount\Desktop\bucket> scoop install .\textpad8-np.json
Installing 'textpad8-np' (8.15.1) [64bit]
Loading txpeng8151-64.zip from cache
Checking hash of txpeng8151-64.zip ... ok.
Extracting txpeng8151-64.zip ... done.
Running installer script...
Linking ~\scoop\apps\textpad8-np\current => ~\scoop\apps\textpad8-np\8.15.1
'textpad8-np' (8.15.1) was installed successfully!
PS C:\Users\WDAGUtilityAccount\Desktop\bucket> scoop uninstall textpad8-np
Uninstalling 'textpad8-np' (8.15.1).
Running uninstaller script...
Unlinking ~\scoop\apps\textpad8-np\current
'textpad8-np' was uninstalled.


Update weerlive API

See https://weerlive.nl/delen.php?p=beaufort API has been changed
Weerbulletin kleine meteo gave a 403, I don't now why, but fixed it by using a different source

Thx Eric!


A way to change a variable that's expanded in query in order to toggle flags

[x] I have read through the manual page (man fzf)
[x] I have the latest version of fzf
[x] I have searched through the existing issues

Info

OS

[x] Linux
[ ] Mac OS X
[ ] Windows
[ ] Etc.

Shell

[ ] bash
[x] zsh
[ ] fish

Problem / Steps to reproduce
I'm using fd to populate an fzf widget, very similar to the default Ctrl-t widget that's provided. fd has all kinds of flags of interest that could control how that list is populated: whether to show hidden files, ignored ones, whether to follow symlinks, and so on. It would be nice to have keybindings that toggle individual options. However, I dont' really see a way to do this in fzf. You can have bindings to change between different commands, but obviously there's a fair number of flags, so being able to toggle N flags lets you potentially have 2^N different queries, so this is much more robust.
It seems to me like this can be solved relatively easily if we had a way to modify shell variables. One would have query fd --color always $MAYBE_HIDDEN_FLAG $MAYBE_IGNORED_FLAG and so on. Individual keybindings would just be bound to "flip" the value of the variable, and then reload. The obvious place to look for something like this is execute, but since execute runs in a subshell, I can't seem to hang onto any state from it, unless I literally stored things in a file.
Is there a way to do this that I'm missing? Note that even to toggle between two behaviors, e.g. hidden or not, with a single shortcut, I found quite awkward. Or at least, the only way I can see to do it is to bind both of the commands you want to two different shortcuts, and then use unbind and rebind to swap the shortcuts between them. In this case, you're forced to bind a second shortcut even though you have no plans of using it (although, again, I could easily be missing something).

Edit: I think I do see how to do it, by basically using expect. I do think this is a lot more painful than it could be, it could be as easy as --bind 'ctrl-i:execute_in(flip_hidden_flag)+reload', unless I'm missing something. But I suppose if expect is the sanctioned way to do this and this is considered okay then I can close my issue.

unless I literally stored things in a file

I feel state management is a little beyond the scope of this interactive "grep" program, so using an external state store (file, database, API service, etc.) is the recommended way to do it.
echo space to pingpong | fzf --height '~10' --bind 'space:reload:
  if [ -f /tmp/ping ]; then
    rm -f /tmp/ping
    echo pong
  else
    touch /tmp/ping
    echo ping
  fi
'

You are probably better off using an external script yet this is just an example.

Would you implement something like this with temporary files over expect + loop? That seems to be the approach of extrakto, a tmux plugin. It has a single shortcut that cycles between types of filters. Just curious for your perspective.
Also: wanted to say thank you for fzf, it's been incredibly useful.

I'm not familiar with the project, but reload can be a better fit for the use case because we can avoid the flickering of the screen from fzf restarts. One thing to note is that reload is a relatively recent addition to fzf. It was added in November 2019, while --expect was added in 2015.

https://github.com/junegunn/fzf/commit/78da9287272a0bfa183498c5b2e9fde10a3663a0
https://github.com/junegunn/fzf/commit/2a167aa030b244060fc479d2b88fdb9b9171d026


Update use of module.run as current usage is deprecated

See: https://docs.saltstack.com/en/develop/topics/releases/2017.7.0.html#state-module-changes

Closing as module.run is not being deprecated


FYI chrome Plugin for React Developer Tools

If you didn't know about this already it's really handy:
https://chrome.google.com/webstore/detail/react-developer-tools/fmkadmapgofadopljbjfkapdkoienihi?utm_source=gmail

ping @rover2341 @xyan12345 @Tuyenho @drsmall @ramorga

Neat, I installed the plugin, but never saw the react at the top. was still useful. but with this its more useful.


Feature request: Exchange class spot_transfer

Hello! The Exchange class is missing spot_transfer functionality.
The purpose of the issue is both to bring to light that this functionality is missing, as well as provide a working example for those that need it.
I have implemented it as follows:
# This could be added into /hyperliquid/utils/signing.py
def sign_spot_transfer_action(wallet, action, is_mainnet):
    return sign_user_signed_action(
        wallet,
        action,
        [
            {"name": "hyperliquidChain", "type": "string"},
            {"name": "destination", "type": "string"},
            {"name": "token", "type": "string"},
            {"name": "amount", "type": "string"},
            {"name": "time", "type": "uint64"},
        ],
        "HyperliquidTransaction:SpotSend",
        is_mainnet,
    )

class Exchange(HL_Exchange):
    pass

    # This could be added into /hyperliquid/exchange.py
    def spot_transfer(self, amount: float, destination: str, token_name: str, token_id: str) -> Any:
        timestamp = get_timestamp_ms()
        action = {
            "destination": destination,
            "token": f"{token_name}:{token_id}",
            "amount": str(amount),
            "time": timestamp,
            "type": "spotSend"
        }
        is_mainnet = self.base_url == hl_constants.MAINNET_API_URL
        signature = sign_spot_transfer_action(self.wallet, action, is_mainnet)
        return self._post_action(
            action,
            signature,
            timestamp,
        )

Perhaps the spot_transfer function args could be improved, not sure what the best way to handle token_name and token_id are, whether they should be passed in separately or already joined by :.
Thanks very much!

Arch

This was added in https://github.com/hyperliquid-dex/hyperliquid-python-sdk/pull/51
the implementation takes in token which is already joined by :


Check the item size of DynamoDB

Feature Request:
There is a 400 KB limit on the item size in DynamoDB, it seems current DynamoDB implementation doesn't check the item size in put_item method.
Appreciate it if you are interested in implementing this feature!

@zzl0 @spulec This should be fixed now!

Closed with https://github.com/spulec/moto/pull/2455


Wait for shell when forwarding signals; shell package test coverage

This PR fixes #120.
The changes include:

Modifying the NewSignalsForwarder so that the signal forwarder waits for the command to finish. It is possible that multiple signals need to be passed the command. Additionally, this fixes a bug where the signal forwarder previously panicked by passed the *exec.Cmd, instead of os.Process, to the signal forwarder since os.Process is only allocated after the command starts running.
Adds test coverage for the shell package
Creates a GetExitCode function, the exit code logic in main.go was migrated into the shell package so it could be tested.

Thanks for the feedback! The requested changes are above.

Just published a new release: https://github.com/gruntwork-io/terragrunt/releases/tag/v0.10.3. If the build passes, the new binaries will be there in a few minutes.


Add API functions to support trade chat

Tests trade chat API functionality to resolve  haveno-dex/haveno#142.
The trade chat testing is added to the Can complete a trade test.  There is an additional sleep between message sends due to the async nature of the functions which was also required for the dispute chat test. I also discovered white space messages were trimmed from the notifications, but not from the daemon API.

The test is passing now. I may of had something in an old state.


Docs: update terminology in markdown files (SD-4059)

This PR is closely related to #2180.
@p0 - if you have time to check that I've made the right call on QL vs CodeQL in these files that would be great. There were a couple of places I've left "QL" where I wasn't entirely sure.
When we merge this, I suggest we revise the repository description to something like: "The standard libraries and queries that power LGTM.com, CodeQL, and other Semmle products".
Can we change the CONTRIBUTING.md file without requiring people to re-sign the CLA? If not, and if there are further changes expected to that file, I'll drop that change from this PR.
@shati-patel, @jf205, @sj - for information mostly, but do comment if you spot any errors.

@max-schaefer  has confirmed that it's safe to change that part of the CONTRIBUTING file.


Cant access response data

I am trying to access PSR 7 response object but wont give me access to any index
                $rxs = $response->getBody();
                var_dump($rxs);
                $headers = $response->getHeaders();
                foreach ($headers as $name => $values) {
                    echo $name . ": " . implode(", ", $values);
                }

Also tried using $response['encodedId'] or $response[0] or $response[0]['encodedId'] all return empty... from below response
Anyway I can return json?

How are you making the request? Can you paste a little bit more of the code?

Heres an example of what I think you were trying to do?
        $request = $provider->getAuthenticatedRequest(             'GET',             'https://api.fitbit.com/1/user/-/profile.json',             $accessToken         );         $response = $provider->getResponse($request);         echo $response['user']['encodedId'];

I tried the above but Im getting astring in front before a array... see below for the response I get using your code $response['user']['encodeId']
eyJhbGciOiJIUzI1NiJ9.eyJleHAiOjE0NjA3MDkwOTcsInNjb3BlcyI6InJ3ZWkgcnBybyByaHIgcmxvYyByc2xlIHJzZXQgcmFjdCByc29jIiwic3ViIjoiNEg4NU5WIiwiYXVkIjoiMjI3UUNXIiwiaXNzIjoiRml0Yml0IiwidHlwIjoiYWNjZXNzX3Rva2VuIiwiaWF0IjoxNDYwNzA1NDk3fQ.mwMBJPvZXES_Q0pkIFWXI-tsfJPa6zI9J9oMaGvz7vY 4881f112ccf70aceaf2bd1b3f067ac23ec0d140585820f85f5a400cd10340507<PHONE_NUMBER> not expired array ( 'encodedId' => '4HX5XX', 'displayName' => 'andrew', )4H85NV

Works


The new plugin mechnism for the Easegress

Backgroud
Our flagship product Easegress(EaseGateway) has many splendid features, it is fascinating, especially our pipeline/plugin mechanism which empower customers to achieve their specific goal with the Easegress customizing way
But the current pipeline/plugin mechanism still has too many barriers to use  If a user really wants to extend the Easegress he needs to conquer the following issues:

Master the Go language
Master and understand low level pipeline/plugin mechanism
Commit changes to the Easegress repository and rebuild the Easegress server
Deploy Easegress, need to reboot the  Easegress server

I think the last two of these barriers are the biggest obstacles for users to extend the  Easegress. So I think we need another pipeline/plugin mechanism for the EG customization.
Goal
Compare with other gateway productions, we can found they are all choosing a solution that is embedding a weak language to enhance the power of extensibility.  but there are serval cons in these implementations.

Weak language (general the embedded language is the Lua), it's difficult to solve complicated business logic in users' scenarios
Performance penalty, as the Lua is a lightweight interpreted programming language， although the Lua introduces the JIT mechanism, it can't be high performance.

If we want to provide a more flexible customization mechanism, we must solve the above disadvantages.
Proposal
After several days of study, I found we can leverage WebAssembly to solve the above problems.(被打脸了……), because the WebAssembly has the following feature:

Near-native performance.
Wasm expands to any language.
Wasm runs in an isolated VM and can dynamically update without EG restarts.
Eliminate the need to recompile and maintain a build of EG.

Golang has rich ecology, I found an open-source Golang WebAssembly runtime library at [1].

PS: I don't want to deprecate the current pipeline/plugin mechanism, but I think we need multiple customized abstraction, the different way to process the different scene.  This solution has been adopted by Envoy as its filter's extensibility [2].

[1] https://github.com/wasmerio/wasmer-go
[2] https://www.envoyproxy.io/docs/envoy/latest/start/sandboxes/wasm-cc

An interesting discussion which I looked into Envoy and Traefik ... before.  you guys can have some idea on
https://github.com/envoyproxy/envoy/issues/15152
as the comparison, no perfect solution.
WASM is good on isolation, but on performance.
Lua is the easy old way, but can not afford a complex logic or module.
Golang lib is somehow a middle ground solution, and further is good on total golang solution.
Anyway, if you guys can make a zero-cost import (no import, no cost), these three solutions can be used together:)

Why not consider Quickjs ?  which is used by pipy(an open source webgateway).

An interesting discussion which I looked into Envoy and Traefik ... before. you guys can have some idea on
envoyproxy/envoy#15152
as the comparison, no perfect solution.
WASM is good on isolation, but bad on performance. At least on current time.
Lua is the easy old way, but can not afford a complex logic or module.
Golang lib is somehow a middle ground solution, and further is good choice on total golang solution.
Anyway, if you guys can make a zero-cost import (no import, no cost), these three solutions can be used together like Traefki :)

Thanks for your suggestion, first, let me clarify are some background requirements here.

We want to be language independent so that users won't' have to be familiar with Golang.
We want to be infrastructure transparent so that users won't need to go into Easegress's implementation mechanic. (BTW, if users want to develop a customize filter/controller, then it's necessary. And that's another scenario :-)  )

So as far as I am concerned, WASM might be a more suitable choice for us, it is more isolated and efficient in this scenario. Speak of WASM's performance, let's compare it with the docker/VM type solution here. I think then we can have the conclusion that WASM has better performance. That's fairer to WASM. :-)

@bigangryrobot  Thx, bro. Feel good to be strongly agreed.  :metal:

Since we had mentioned the remoteFilter, let me add more description about it. It's compatible in bring users ' already exist microservice into the flow of the HTTP pipeline in Easegress. But it won't reduce the maintaining cost and the bandwidth wasted on transforming data between Easegress and user's microservices. Considering the converting a PNG pic to JPG example, I think it's more suitable by done locally inside Easegress. But this requires users to develop a customized filter by themself currently. (And they must be familiar withGolang and Easegress implementations)

What I hope WSAM can help here is that users can provide a simple business logic encapsulated into a WASM bytecode with the language they are familiar with. WASM community now is working on WASI[1], which is a quite powerful extension for allowing WASM to work beyond the browser environment. That makes me excited. I believe WASM has a very cool future. So maybe we should give it a try!

Reference
[1] https://wasi.dev


Update update_user_roles to remove empty groups

remove group entries from groups object when last role is removed
Fixes #4

Awesome, thank you! (and thank you for your thorough) bug reports too. Would you mind making this as a new migration file so that anyone who has already applied this template can seamlessly apply the new changes?


Raise on a 422

I often find myself returning a 422 when a request is valid, but cannot be carried out given the business logic. With this gem, I've been using a custom parser so that I can raise on a 422 and actually see the response body. I think it makes sense for the client to raise in such a situation as it generally cannot be remedied programmatically.

@chingor13 any thoughts on this?

I'll take the 422 part, but can you undo the rest of the formatting changes?

@chingor13 done

@chingor13 anything else you need from me?

Hey @chingor13 any chance you could cut a new version of the gem? I was updating a few projects and hoping to get this in.

I'm actually going to have to revert this. See: #219. It turns out it's not backwards compatible for many use cases as 422 is returned by default by many servers as a validation error.

This will be reconsidered in a major version change. As an alternative, you can add your own faraday middleware to your connection that essentially adds this functionality.

👍 makes sense. Maybe I'll throw together a PR to make it backwards compatible.


Docs error: the example about get_or_try_insert_with

error[E0433]: failed to resolve: use of undeclared crate or module `futures_util`
  --> src/main.rs:48:5
   |
48 |     futures_util::future::join_all(tasks).await;
   |     ^^^^^^^^^^^^ use of undeclared crate or module `futures_util`

For more information about this error, try `rustc --explain E0433`.
error: could not compile `hello-rust` due to previous error

May need to add comments about futures-util dependencies?

Thank you for reporting.

May need to add comments about futures-util dependencies?

You are right. This should be fixed by #97.


SDK info

What?
Add support for providing SDK information that gets translated into additional headers sent with requests.
Currently it's very simple and adds the headers to every request. It might be good to have an option to remove the headers for individual requests as I could see them getting in the way or being undesirable in some cases, e.g. in Chatkit we have requests that can go to the file storage service we use.
Why?
So we can have visibility of which SDK versions are being used
Example of usage: https://github.com/pusher/chatkit-swift/pull/65

CC @pusher/sigsdk

 Add Swift client library and version as request headers so that we know what SDKs our customers are using

Headers look good to me.


google.generativeai is not available as wheel/sdist or in Nixpkgs

Hey I'm trying to package this for NixOS but I'm running into an issue, it seems a dependency is not available at least on common repos.
error: builder for '/nix/store/acw9c43i76w3m4ywr69qw96ymimgqxqc-mach_nix_file.drv' failed with exit code 1;
       last 9 log lines:
       >
       > The Package 'google.generativeai' (build: ()) is not available from any of the selected providers ['nixpkgs', 'sdist', 'wheel']
       >  for the selected python version
       > The required package might just not (yet) be part of the dependency DB currently used.
       >
       For full logs, run 'nix log /nix/store/acw9c43i76w3m4ywr69qw96ymimgqxqc-mach_nix_file.drv'

I will try and see if I can package google.generativeai in Nixpkgs and attempt to rebuild this package.

Closing as it is completely unrelated to Nixpkgs, the package is available as a wheel as well. The tool mach-nix is deprecated and is causing this issue, sorry for the ping


Add SwiftSyntax to the SourceKit-LSP Build

As of apple/sourcekit-lsp#651 sourcekit-lsp  now
depends on SwiftSyntax for its internal representation of documents.

/azp run VS2022

The failures are related to codesigning, which is expected.  Thanks @CodaFi!


available checkpoint

Could you provide the checkpoint file of wav2vec trained by DSinger? I am very interested in your research.

Thank you for your interests on our work. I think we have already provided the checkpoints for audio-only ALT system based on wav2vec 2.0 trained on the DSing dataset at: https://github.com/guxm2021/MM_ALT/tree/main/DSing/ALT. This format is in accord with SpeechBrain.

My fault, I couldn't find it before. Thank you very much for the link.


Verify Murmur hash function and eventually switch to it

Verify Murmur hash function (http://sites.google.com/site/murmurhash/) standard
deviation of hash occurrences, and eventually use it.

Original issue reported on code.google.com by<EMAIL_ADDRESS>on 18 Sep 2010 at 4:32

Fixed: using murmur hash, a bit slower but with better standard deviation.

Original comment by<EMAIL_ADDRESS>on 18 Sep 2010 at 6:10

Changed state: Fixed


Fine Tuning Error

Hi,
i was trying to make fine tuning for the lstm file yet i got this error
Deserialize failed: /home/ibr/tesstutorial/aratrain/ara.2_Baran.exp0.lstmf read 0/81 pages
keep in mind that the path is correct so the error is Deserialize failed: not Deserialize header failed
and tesseract freezes after the error message and should press Ctrl C to stop it
i already used the same version of tesseract to tune for japanese, but for arabic i got the previous error
the command was
training/lstmtraining --model_output ~/tesstutorial/arabic_tuning/"arabic_tune" \   --continue_from ~/tesstutorial/extracted_aralstm/ara.lstm \   --train_listfile ~/tesstutorial/aratrain/ara.training_files.txt \   --max_iterations 100000
Thanks

i was able to tune Arabic ara.lstm with the same lstmf files, but the difference i made tuning against a different version of tesseract which is: 367-g5baa8c8. while the version that failed was: 547-g8c29e68
strangely that the version 547-g8c29e68 passed for Japanese tuning yet it failed for Arabic tuning, as for the version 367-g5baa8c8 i didn't try it for Japanese tuning, only for Arabic and it succeeded
NOTE: both versions are running on the same VMware, and with the same leptonica version which is Leptonica1.47.1

You need to create the lstmf files and then do finetuning with same version of tesseract. If there is a mismatch, it may not work since Ray made some changes in the lstmf files format.

actually all the LSTMFs (Arabic & Japanese) were created by the same version 547-g8c29e68  yet fine tuning at the version 547-g8c29e68  worked only for Japanese, but for Arabic (which was also created by the version 547-g8c29e68) its fine tuning worked at the version 367-g5baa8c8


command summarizePage add  auto Splitter content

Is your feature request related to a problem? Please describe.
新功能是否与解决某个问题相关, 请描述
command summarizePage add  auto Splitter content
Describe the solution you'd like
你期望的新功能实现方案
prompt
You are LongTextAnalyzerGPT.
I will submit you a long text divided in N parts.
Each part will start by Part X. After each part I submit, ask me for the next part. Don't do any analysis before all the parts are submitted.

Additional context
其他
Add any other context or screenshots about the feature request here.

This is usually meaningless, because the current submitted content is already controlled to the context length limit of the GPT-3.5 API. Using Langchain to build a custom backend will be more helpful in solving this problem

You are right, I am actually using ChatGPT Web, can this feature be used for web services?

I tried to use prompts like this in the 3.5 model to input summaries of long texts in segments, but it was not actually feasible . lol . After three or four segments, I had already forgotten the first one. Even when inputting the third segment, it started creating new content based on the content of that segment.

@Maddaxman
I saw another project that uses GPT-3.5 to handle extremely long texts by split long texts
And I have personally used another Chrome extension that is effective
extension: https://chrome.google.com/webstore/detail/split-long-text-for-chat/ninfbacppokhhaekjbgfhemhmlalfmmn
repo: https://github.com/easychen/gpt-bat
demo: https://gpt.level06.com/

ok, I think your demand should be the same as this issue #123


Optionally minimise FBAS to top tier

The current default is to shrink all input FBASs to the top tier before running both power index computations.
But as measurements show, this actually makes things much slower when approximating the scores given the exponential time complexity of finding minimal quorums.
Hence, we should only minimise the FBAS for approximations when explicitly asked to do so by the user.

we should only minimise the FBAS for approximations when explicitly asked to do so by the user.

Ditching this part. The top tier is not relevant when approximating.


macOS: renaming file to different case reports ADD, CHANGE

Describe the bug
Renaming a file to the same name with different casing reports as ADD and CHANGE, but not DELETE. This makes it impossible to detect this change as a rename operation.
Versions (please complete the following information):

Chokidar version 3.3.1
Node version 12.13.1
OS version: macOS 10.15

To Reproduce:
const chokidar = require('chokidar');

// One-liner for current directory
chokidar.watch('.').on('all', (event, path) => {
    console.log(event, path);
});

rename a file Foo.txt to foo.txt
the output is

change Foo.txt
add foo.txt

Expected behavior
I would expect this:
delete Foo.txt
add foo.txt

I am experiencing a similar issue when changing the case of a folder name.
Doing so will emit addDir twice.
This is probably related to https://github.com/paulmillr/chokidar/issues/927
Besides, the order in which the addDir events doesn't seem to always be the same as the raw moved events emitted for the same action.
We added some logic to treat two consecutive addDir events for the same inode as a movement but if the events are received in the wrong order, we detect the wrong movement.

The backlog is going to start from zero as a preparation for v4 release. v4 would bring massive rewrite to the table and drop most dependencies. All issues are being closed as preparation for v4 release.
In the future, only issues with enough community support would be considered.
See issue 1195 for more info. Thank you.


Error when running subliminal

Using the default installed Python on 10.11.6.
~ $ subliminal
Traceback (most recent call last):
  File "/usr/local/bin/subliminal", line 6, in <module>
    from pkg_resources import load_entry_point
  File "/usr/local/Cellar/subliminal/2.0.5/libexec/lib/python2.7/site-packages/pkg_resources/__init__.py", line 17, in <module>
    from __future__ import absolute_import
ImportError: No module named __future__
~ $ python
Python 2.7.10 (default, Oct 23 2015, 19:19:21)
[GCC 4.2.1 Compatible Apple LLVM 7.0.0 (clang-7<IP_ADDRESS>)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from __future__ import absolute_import
>>> ^D
~ $

brew doctor does not report any problems.

That's bizarre! It works for me. What happens if you run /usr/local/Cellar/subliminal/2.0.5/libexec/bin/python -c "from __future__ import absolute_import"?

After installing the brew supplied python, the issue was resolved. Even after I uninstalled the brew supplied python, the issue does not appear any more.


Case sensitivity

I see you don't have time to maintain this excellent tool anymore, but anyway here's one more for the heap.
It seems that MySQL is case insensitive by default, while SQLite is case sensitive by default.
Thus, when connecting to the newly created SQLite DB, INSERT IGNORE statements will yield different results when handling duplicates on UNIQUE columns compared to when using the original MySQL DB.

You're right my time is very limited and I prefer to rather not maintain it than to accept badly reviewed PRs. I should probably write about this in the readme at some point...
Still feel free to make suggestions and ideally a PR how to go about the case sensitivity issue (I didn't check whether it appears also when using the required dump options as described in readme).


unit tests

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Comparison is base (1976baa) 15.09% compared to head (cf4ee3a) 17.61%.

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.
Additional details and impacted files
@@            Coverage Diff             @@
##             main      #17      +/-   ##
==========================================
+ Coverage   15.09%   17.61%   +2.51%
==========================================
  Files           7        7
  Lines         477      477
==========================================
+ Hits           72       84      +12
+ Misses        398      386      -12
  Partials        7        7

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


Test Runner/Watcher

It would be really nice to have a test runner that watches our workspace while working to give real time feedback on tests rather than having to manually re-run mocha after each change.
Something like karma would be ideal: http://attackofzach.com/setting-up-a-project-using-karma-with-mocha-and-chai/
https://github.com/karma-runner/karma-mocha

Hmm, looks like a lot of setup for something that seems to merely replace the need for pressing "up" and "enter" in a terminal. Are you using WebStorm?

Not using webstorm.
The set up isn't bad. I might throw up a PR for it when I get some free time and you can decide then if the complication is worth it. I find that reducing the manual steps makes me run my tests more often.


Consider full true heuristic as dict of dicts vs dict of np arrays

Right now heuristic grid is dict of pos_b -> 2D np grid of distances for pos_a to pos_b.
Many of those grid values are walls, could instead do a dict of dicts to possibly recover some space.
Example ~480 open cells vs 624 in the current 24x26 grid, would be a 23% reduction in number of values stored.
Need to test that query time in dict of dict is >= dict of np array however.

Much larger and a bit slower with the default setup.
World Shape: (26, 24), 44 robots, 48 item zones, 24 stations
Building true heuristic
Built true heuristic grid in 488.44 ms
Dict with 116 keys,
Size: 20,942,176 bytes, one entry: 180480
Measured 20,942,176 bytes total
---
Testing true heuristic grid on 1000000 queries
Did 1000000 queries into true heuristic grid in 477.34 ms

20Mb stored vs the previous dict of np arrays at 300kb
World Shape: (26, 24), 44 robots, 48 item zones, 24 stations
Building true heuristic
Built true heuristic grid in 310.97 ms
Dict with 116 keys,
Size: 296,032 bytes, one entry: 2496
Measured 296,032 bytes total
---
Testing true heuristic grid on 1000000 queries
Did 1000000 queries into true heuristic grid in 304.69 ms

Even tried building a Z x N x M np array where Z is each zone index with a z_map mapping pos of a zone to idx into the array.
World Shape: (26, 24), 44 robots, 48 item zones, 24 stations
Building true heuristic
Built true heuristic grid in 217.59 ms
Dict with 116 keys,
Size: 579,072 bytes, one entry: 192
Measured 579,072 bytes total
---
Testing true heuristic grid on 1000000 queries
Did 1000000 queries into true heuristic grid in 458.71 ms

Takes up more space 580kb vs 300kb than the dict of np arrays, and is slower. Looks like we're in a reasonable local minima for now.

Noticed a minor speed improvement by building dict in one line


Update to Reset-PWSHSystemPath.ps1

PR Summary
During a code review I found a formatting issue in two spots
PR Context
Opened a PR to have formatting issues fixed
PR Checklist

[X] PR has a meaningful title

Use the present tense and imperative mood when describing your changes

[X] Summarized changes
[X] Make sure all .h, .cpp, .cs, .ps1 and .psm1 files have the correct copyright header
[X] This PR is ready to merge and is not Work in Progress.

If the PR is work in progress, please add the prefix WIP: or [ WIP ] to the beginning of the title (the WIP bot will keep its status check at Pending while the prefix is present) and remove the prefix when the PR is ready.

Breaking changes

[X] None
OR
[ ] Experimental feature(s) needed

[ ] Experimental feature name(s):

User-facing changes

[X] Not Applicable
OR
[ ] Documentation needed

[ ] Issue filed:

Testing - New and feature

[X] N/A or can only be tested interactively
OR
[ ] Make sure you've added a new test if existing tests do not effectively test the code changed

Tooling

[X] I have considered the user experience from a tooling perspective and don't believe tooling will be impacted.
OR
[ ] I have considered the user experience from a tooling perspective and enumerated concerns in the summary. This may include:

Impact on PowerShell Editor Services which is used in the PowerShell extension for VSCode (which runs in a different PS Host).
Impact on Completions (both in the console and in editors) - one of PowerShell's most powerful features.
Impact on PSScriptAnalyzer (which provides linting & formatting in the editor extensions).
Impact on EditorSyntax (which provides syntax highlighting with in VSCode, GitHub, and many other editors).

Hi @dgoldman-msft, the recommended process is to open a GitHub issue for the problem you found, so that we can understsand what's wrong. Then you can submit a PR to fix the issue. Can you please open an issue first? Thanks!

The two files I removed were pulled in to the PR for a previous PR I filed snd was checked in. This should only contain the one file. If you want to reject I can go your route?

Spoke to daxian-dbw, closing PR.


[WIP] GHC 8.4 compat:  TH upper bound 2.13 -> 2.14

Thanks! I've revised the upper version bounds accordingly on Hackage.


[Feature] Add 'Primitive' Resource

Added Primitive resource type, allows to use primitives (strings, ints, floats) to be included, just like arrays.
This will allow to optionally include primitive fields in the transformed data. Currently, only Items and Collections can be included in the transformed data.
Example :
<?php
use Book;

class MyTransformer extends TransformerAbstract
{
    $availableIncludes = ['price'];
    public function includePrice(Book $book)
    {
        return $this->primitive($book->price, function ($price) {
            return $price + 40; // This can get complex
        });
    }
}
?>

Scope::transformPrimitiveResource doesn't need to use a function that returns whatever is passed into it, why not just ignore the transformer part when $transformer = null and set $transformedData = $input?

Tested, works as intended. It even lets me get real null values, unlike $this->null() which will return "field: [],

@Dadibom 😃 Thanks for the input, changes made !


How do I monetize my content on SoundCloud with an Alby Page?

How do I monetize my content on SoundCloud with an Alby Page?
With your Alby Page, you can receive payments from your audience directly, instantly and without additional commissions.
Let them do it with the click of a button.
Here we explain to you how it works.

First, you need to get your Alby Page. If you don’t know how to do that, watch our video linked in the description, or click on the link in the upper right corner that you see now (add link https://www.youtube.com/watch?v=jQOhnyNisV4 ).
Go to your SoundCloud
Click on “Edit”
In “Your Links” add your Alby Page

“Link title” is left up to you, just make sure your audience understands what it’s for.
Click “Save changes”

You can now see it among other social links for your channel.
When your audience clicks on it, they are directed to your Alby page.
For those who have the Alby Browser Extension installed, it will activate as soon as they are on your page and they can send you sats while listening to your tracks or mixes - they no longer need to leave your page.
Do you also use YouTube or MixCloud? Both of those services now also have integration with Alby Page, so you can watch our videos via the link in the description or by clicking on the link in the top right corner you see now.
Stay tuned, subscribe to our channel, try out the extension yourself and let your audience know how they can support you.

@MoritzKa can we close this?

Yes


Bump Spark 3.4.1

Why are the changes needed?

https://spark.apache.org/releases/spark-release-3-4-1.html
How was this patch tested?

[ ] Add some test cases that check the changes thoroughly including negative and positive cases if possible

[ ] Add screenshots for manual tests if appropriate

[x] Run test locally before make a pull request

Codecov Report

Merging #4990 (68203b2) into master (056c5ef) will not change coverage.
The diff coverage is n/a.

@@          Coverage Diff           @@
##           master   #4990   +/-   ##
======================================
  Coverage    0.00%   0.00%
======================================
  Files         561     561
  Lines       30953   30953
  Branches     4063    4063
======================================
  Misses      30953   30953

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

Thanks, merged to master


initial specs

Overview
This PR consists of initial specifications, including details about the generic DA interface implementation for Celestia backend.
Checklist

[ ] New and updated code has appropriate documentation
[ ] New and updated code has new and/or updated testing
[ ] Required CI checks are passing
[ ] Visual proof for any user facing features like CLI or documentation updates
[ ] Linked issues closed with keywords

incredibly based

Updated to mention GetIDs in the spec.


Using createActions with sync and async results

Currently, the createActions method doesn't handle mixing up sync and async actions well. For example, it's very nice when I have all sync actions, like so:
var actions = Reflux.createActions([
  'persist',
  'get',
  'update',
  'someAction',
  'anotherAction'
])

However, as soon as I want to add an async action, this has to become an object, a bunch of the values of which are just empty objects themselves.
var actions = Reflux.createActions({
  'persist': {},
  'get': {},
  'update': {},
  'someAction': {},
  'anotherAction': {},
  'newAsyncAction': { asyncResult: true }
})

Ideally, I'd like to be able to do something like this instead:
var actions = Reflux.createActions([
  'persist',
  'get',
  'update',
  'someAction',
  'anotherAction',
  { 'newAsyncAction': {  asyncResult: true } }
])

Again, like I mentioned in #205, maybe I'm just using this wrong - if I am, please let me know the preferred way to set this up

+1, would be quite useful.

var createActions = function() {
  return Reflux.createActions(_.reduce(arguments, function(h, v) {
    return _.isString(v) ? h[v] = {} : _.extend(h, v);
  }));
};

var actions = createActions(
  'persist',
  'get',
  'update',
  'someAction',
  'anotherAction',
  { 'newAsyncAction': {  asyncResult: true } }
)

+1

+1

+1

This seems to work. Must have been implemented but not closed.


Clientconfig and babel

When following documentation about Babel there's a suggestion to make a gateway-plugin with a System event OnHandleRequest. (http://www.multilingual-modx.com/blog/2011/seo-friendly-multilingual-websites-with-modx-and-babel.html)
But when you work with clientconfig (version 2) then it's better to choose OnModxInit and give it a priority lower than clientconfig.

I do not understand this issue. Is this a question? Modmore has nothing to do with the website you linked to.

I asked @funkyduke to report this in case there is something we can do about it. The issue is that clientconfig's new context-aware settings don't work with the recommended babel gateway plugin because of the difference in when they are fired. Switching OnHandleRequest o OnMODXInit in the Babel gateway plugin fixes that.
Was hoping the recommended plugin code was in the RTFM or somewhere though, not sure how to go about getting that particular site updated... no idea who runs that.

For me this fix does not work? It looks like it 'sees' the correct amount of contexts but doesn't find the data. I set priority of clientconfig OnMODXInit event to 1 and  on gateway plugin switched OnHandleRequest to OnMODXInit and set priority to 0.
Modx 2.6.1
Any suggestions? This is a very cool feature I would love to use on my site with 4 languages!

@joyceDesignbase That does not look like the same issue reported here. I think you just need to make sure each of your contexts have a name set (and not just a key). If they do all have a name, please open a separate issue.

Thank you, that was it! Sorry I didn't know that you had to set a name.

I've slightly changed this in 2.3; it will now automatically run on both OnHandleRequest and OnMODXInit events. A little wasteful, because it really only should have to use one, but then I can finally close this and related issues. ;)


Fix tests breaking when new WorldQuery impls are added

Objective
I recently wanted to look at the possibility of adding Mutated and Unchanged query filters and was confronted with some seemingly unrelated broken tests.
These tests were written in such a way that changing the number of WorldQuery impls in the project would break them.
Fortunately, a very recent release of trybuild has made this unnecessary.
Solution
Replace hardcoded numbers in test output with $N placeholders.

bors r+


Fix sonarqube-lts SCC

Helm generates a wrong user entry in SCC that prefixes the specified service account name with Release.Name and does not matches the existing one
Example for serviceaccount default:
users:
- system:serviceaccount:namespace-x:sonarqube-lts-default

where the correct service account name is only default and not sonarqube-lts-default.
Expected:
users:
- system:serviceaccount:namespace-x:default

In sonarqube chart (non tls) seems already fixed in this defect fix (https://github.com/SonarSource/helm-chart-sonarqube/commit/fdd3e6d061387b01f4a36b0730f4d2578ea1afab)

@tobias-trabelsi-sonarsource this PR in place of #138

i will ask my PM if this defect justifies a LTS change. in the mean time please state your change in artifacthub.io/changes as well (Chart.yaml)

After discussing it with my PM he came back with the same message that i already gave you.
the workaround covers the serviceaccount that is created by the helm chart. if you want to use your own, this is not yet supported. you can benefit from DOCKER-19 if you are using the latest version of the chart/sonarqube.


Modernise auto-doc rendering on readthedocs.org

This PR updates the autodoc rendering on readthedocs.org towards a more modern style and format

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Comparison is base (2bfe8f8) 89.22% compared to head (eb0a547) 89.18%.

Additional details and impacted files
@@              Coverage Diff              @@
##           beta/v4.0     #740      +/-   ##
=============================================
- Coverage      89.22%   89.18%   -0.04%
=============================================
  Files            175      175
  Lines          17960    17960
=============================================
- Hits           16024    16017       -7
- Misses          1936     1943       +7

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


i took the mine and rock problem based ANN program from edureka and edited it to suit my need which is tripping the transformer for fault current. for training purpose i used a csv input in which i passed 6 featured input values, while passing one desirable output. Now the problem is i want the trained model to work for live values for which i don't have desired output ... i only want to predict the output with the help of trained model ... but it keeps giving an error at the Y input ... How can i make the program run without passing a desired output?

Please go to Stack Overflow for help and support:
https://stackoverflow.com/questions/tagged/tensorflow
If you open a GitHub issue, here is our policy:

It must be a bug, a feature request, or a significant problem with documentation (for small docs fixes please send a PR instead).
The form below must be filled out.
It shouldn't be a TensorBoard issue. Those go here.

Here's why we have that policy: TensorFlow developers respond to issues. We want to focus on work that benefits the whole community, e.g., fixing bugs and adding features. Support only helps individuals. GitHub also notifies thousands of people when issues are filed. We want them to see you communicating an interesting problem, rather than being redirected to Stack Overflow.

System information

Have I written custom code (as opposed to using a stock example script provided in TensorFlow):
OS Platform and Distribution (e.g., Linux Ubuntu 16.04):
TensorFlow installed from (source or binary):
TensorFlow version (use command below):
Python version:
Bazel version (if compiling from source):
GCC/Compiler version (if compiling from source):
CUDA/cuDNN version:
GPU model and memory:
Exact command to reproduce:

You can collect some of this information using our environment capture script:
https://github.com/tensorflow/tensorflow/tree/master/tools/tf_env_collect.sh
You can obtain the TensorFlow version with
python -c "import tensorflow as tf; print(tf.GIT_VERSION, tf.VERSION)"
Describe the problem
Describe the problem clearly here. Be sure to convey here why it's a bug in TensorFlow or a feature request.
Source code / logs
Include any logs or source code that would be helpful to diagnose the problem. If including tracebacks, please include the full traceback. Large logs and files should be attached. Try to provide a reproducible test case that is the bare minimum necessary to generate the problem.

I apologize, but I am having a hard time understanding what the problem is, where the problem is, and what version it affects. Please resubmit and pay attention to the issue template (https://github.com/tensorflow/tensorflow/issues/new). Please provide all the information it asks. Thank you.


Rework Tanium Threat Response collector to work with process name signature

Description
Initially, we decided to match the alerts we collect on the hostname and other properties.
Then, we moved on to matching the process name of the implant to be as precise as possible.
We forget to align this collector with the new mechanism, so it no longer works.

Blocked by https://github.com/OpenBAS-Platform/client-python/pull/68

We should just make it work as-is and not block it pending a pyobas refactoring


PMID:19571115

child of
FYPO:0000805 | abnormal endoplasmic reticulum organization
NTR abnormal cortical endoplasmic reticulum organization
NTR cortical endoplasmic reticulum detached from Plasma membrane fig 5a

abnormal cortical endoplasmic reticulum organization FYPO:0007571
cortical endoplasmic reticulum detached from plasma membrane FYPO:0007572

abnormal cortical endoplasmic reticulum organization FYPO:0007571
cortical endoplasmic reticulum detached from plasma membrane FYPO:0007572

cortical endoplasmic reticulum detached from plasma membrane FYPO:0007572
is_a
FYPO:0000805 | abnormal endoplasmic reticulum organization
did not get inferred.

cortical endoplasmic reticulum detached from plasma membrane FYPO:0007572
is_a
FYPO:0000805 | abnormal endoplasmic reticulum organization
did not get inferred.

FYPO:0007572 is a structure phenotype, so is_a FYPO:0000805 is not correct. There is a path via the link FYPO:0000354 output_of FYPO:0000805.

FYPO:0007572 is a structure phenotype, so is_a FYPO:0000805 is not correct. There is a path via the link FYPO:0000354 output_of FYPO:0000805.


Build bot not using julia-nightlies.spec from master?

Fedora Copr maintainers have notified me that the Julia nightlies were constantly failing for about a week.  If you look e.g. at the end of this file, you can see that the list of tests I removed in the commit is still present:
https://copr-be.cloud.fedoraproject.org/results/nalimilan/julia-nightlies/fedora-21-x86_64/julia-0.4.0-0.20150116.el7.centos/build.log
Any idea where this might come from?

Sorry I missed this.  Is this still an issue?

Looks like it's gone. Not sure what may have happened. Is there a delay for the bot to use the new commits?

Ah, It doesn't pull down the latest git repository automatically.  I'll add
a cron job to do that.
-E
On Wed, Feb 4, 2015 at 10:07 AM, Milan Bouchet-Valat <
<EMAIL_ADDRESS>wrote:

Looks like it's gone. Not sure what may have happened. Is there a delay
for the bot to use the new commits?
—
Reply to this email directly or view it on GitHub
https://github.com/staticfloat/julia-buildbot/issues/14#issuecomment-72906204
.

Thanks. BTW, do you think there could be a way to avoid running the builds more than once a day on Copr? I'm a bit concerned with the load we impose on their servers.

Sure, I'll change it to only run once every 24 hours.

Cool!

Looks like the cron job is still running many times a day, and the Copr maintainers complained about it again. Can you fix that?

(hopefully) fixed in cde999adf6c759481bf5d6201c86caa0342f78a2

Thanks, I'll tell you. But I don't think it was run every hour, it would have created much more activity.

It was only run if there was a change, so it was running about once every
3-4 hours.  You can see the activity here
http://buildbot.e.ip.saba.us:8010/builders/package_srpm.
-E
On Mon, Feb 23, 2015 at 2:50 PM, Milan Bouchet-Valat <
<EMAIL_ADDRESS>wrote:

Thanks, I'll tell you. But I don't think it was run every hour, it would
have created much more activity.
—
Reply to this email directly or view it on GitHub
https://github.com/staticfloat/julia-buildbot/issues/14#issuecomment-75655162
.

Ah, that explains everything.


support HTTP headers supported in bazel 7.1

ref: https://github.com/bazelbuild/bazel/pull/21503/files
Bazel 7.1.0 support passthrough HTTP headers to remote downloader. this PR extend FetchBlob and make sure those headers be handled correctly.

This looks good- thanks for the contribution, merged.


Rework limit push down optimizer

Description
Rework limit push down optimizer so that we don't remove LIMIT operator. Instead we just document skip and limit number and push them into other operators (DISTINCT for now).
Fixes # (issue)
Contributor agreement

[x] I have read and agree to the Contributor Agreement.

Can you also add a test case for distinct together with skip and limit?


Introduce Toolbar for MetadataEditor

We want to provide a dedicated toolbar for the metadata editor, to allow quick access to related tasks (e.g. adding entities such as authors, affiliations etc.)
The toolbar will include a mode switcher (right side) to be able to switch between editor, metadata editor and reader (=preview) modes.

Also see #610 for more UI/UX ideas including batch actions.

@Integral for the coming days.. could you do a first iteration on this:

[ ] Create a tool for the mode switcher (dropdown). At first let's just use the app toolbar as it is, but use fixed positioning to place it over the editor toolbar in the right upper corner (that's fine for a start i think)
[ ] Add tools in Metadata editor for adding a new Author, Editor, Keyword, Award, Reference, Group etc.

We have this now.


What language do you prefer?

I'm wondering what language you use VS code for.
This will help me make adjustments to the visual design.

html/css

javascript

php

python

ruby

go

java  о_О

С#  оО

vue

react

angular


Revert "refactor(projectuser): isolate handlers"

Reverts aiven/go-client-codegen#99

These endpoints belong to project. Shouldn't have isolated them.


feat(container): multiple ports and advanced config properties (#1110)

Backport
This will backport the following commits from k8s-24/main to k8s-23/main:

feat(container): multiple ports and advanced config properties (#1110)

Questions ?
Please refer to the Backport tool documentation

⚪ Backport skipped
The pull request was not backported as there were no branches to backport to. If this is a mistake, please apply the desired version labels or run the backport tool manually.
Manual backport
To create the backport manually run:
backport --pr 1112

Questions ?
Please refer to the Backport tool documentation


Serializing/Desrializing numpy arrays in Lambda layer arguments

When we use numpy arrays in arguments of Lambda layers, they cannot be serialized with model.save.
For example, running
from keras.layers import Input, Lambda
from keras.models import Model
import numpy as np

mean = np.zeros((2,2,1))
xi = Input(shape=(2,2,1), name="input")
p = Lambda(lambda image, mu: image - mu, arguments={'mu':mean})(xi)
model = Model(inputs=[xi], outputs=[p])

print("Arguments to save : {}".format(model.layers[1].arguments))
model.save("titi.h5")

fails with "ValueError: can only convert an array of size 1 to a Python scalar"
The issue comes from models.py:get_json_type which invokes obj.item in case of a numpy object but this fails if the object is indeed a numpy array.
This pull requests propose to handle specifically the case the serialized object is a ndarray by converting it into a list. Deserialization is done only in from_config of Lambda layers. This is a proposal, I do not master the API of Keras so guidelines for improving this PR are welcomed.

I would like to bring a more complete test script
from keras.layers import Input, Lambda
from keras.models import Model, load_model
import numpy as np
from numpy.testing import assert_allclose

mean = np.random.random((2,2,1))
std = np.random.random((2,2,1))
xi = Input(shape=(2,2,1), name="input")
p = Lambda(lambda image, mu, std: (image - mu)/std, arguments={'mu':mean, 'std': std})(xi)
model = Model(inputs=[xi], outputs=[p])
model.save("titi.h5")

del model

model = load_model("titi.h5")

assert_allclose(mean, model.layers[1].arguments['mu'])
assert_allclose(std, model.layers[1].arguments['std'])

LGTM


In 1.5.0 version, notificationPosition defaults to bottom in Web

After upgrading 1.4.0 -> 1.5.0, the notification position is by default to the bottom in web and making changes to notificationPosition doesn't work.
Reproducible Code
ElegantNotification.error(
    title: const Text(
      'Error',
      style: TextStyle(fontSize: 15, fontWeight: FontWeight.bold),
    ),
    description: Text(
      'Something is wrong',
      overflow: TextOverflow.ellipsis,
      maxLines: 3,
      style: const TextStyle(fontSize: 14),
    ),
    toastDuration: const Duration(milliseconds: 3500),
    width: 400,
    background: Colors.grey.shade50,
    animation: ANIMATION.fromRight,
  ).show(context);

Thanks for the feedback @DevyankShaw I will fix it

Thanks, @koukibadr for the fix. This package is very helpful!


🚀 Feature: Improve links by adding external link icons

🔖 Feature description
Links can be improved by adding external link icons to indicate when a link will open a new tab/page. Anytime that a link uses ..., an icon should appear with the link. This lets the reader know that the link won't open in the same tab or window, but rather in a new tab or window.
For example, this is what an external link icon (a square with an arrow) can look like:

Here's another example (just a simple arrow):

🎤 Context
It's a good accessibility practice to display an external link icon if a link opens a new tab/page. Some readers can get confused with the new windows or tabs if they are not expecting it.
✌ Possible Implementation
No response
👀 Have you spent some time to check if this feature request has been raised before?

[X] I checked and didn't find similar issue

🏢 Have you read the Code of Conduct?

[X] I have read the Code of Conduct

Are you willing to submit PR?
None

This seems like a good idea, we probably want to test this and and see how this works adding the external icon like the first example to the BackstageLink depending on how this looks we might want an opt-in behaviour.

Would this be resolved by https://github.com/backstage/backstage/pull/17679?


Remove babel-eslint and disable stage-1 support

Hi @kwelch. Thanks for the PR! I'm going to hold off on this since I'm trying to gauge people's opinion on removing stage-1 support. I'm hesitant to take something away that people are using. The only thing babel-eslint (and stage-1 support) are costing us in 1 extra dependency, so I want to gauge whether people think it's worth moving.

I just committed a similar change that included migrating to eslint-watch for enhanced command line output. That said, thanks for the PR Kyle!


Bundle Install failed due to 'failed to allocate memory'

--- ERROR REPORT TEMPLATE -------------------------------

What did you do?
I ran the command /QOpenSys/usr/bin/bundle install   on an IBM i (iSeries) from PASE in CALL QP2TERM.

What did you expect to happen?
I expected Bundler to install my new gems.

What happened instead?
Instead, I keep getting the 'NoMemoryError: failed to allocate memory' error.
I also get this error:
"[33mRetrying fetcher due to error (2/4): ThreadError can't create Thread: Resource temporarily unavailable [0m"

Here's part of my BUNDLE ENV:
 Bundler   1.12.0.rc
 Rubygems  2.2.5
 Ruby      2.1.9p490 (2016-03-30 revision 54437) [powerpc-aix6.1]
 Git       2.3.0

Bundler settings
no_install
Set for your local app (/www/RGLPORT/htdocs/RGLPORT/.bundle/config): "false"
orig_path
Set via BUNDLE_ORIG_PATH: "/QOpenSys/usr/bin:/usr/ccs/bin:/QOpenSys/usr/bin/X11:/usr/sbin:.:/usr/bin"
Thanks in advance!

Can you try with the latest bundler, version 1.14.6? Thanks!

I tried and got this:
gem install bundler
ERROR:  Could not find a valid gem 'bundler' (>= 0), here is why:
Unable to download data from https://rubygems.org/ - SSL_connect returned=1 errno=0 state=SSLv3 read server certificate
B: certificate verify failed (https://rubygems.org/latest_specs.4.8.gz)

I uninstalled bundler and tried to reinstall and got an error:
gem install bundler --version '1.14.6'
ERROR:  Could not find a valid gem 'bundler' (= 1.14.6), here is why:
Unable to download data from https://rubygems.org/ - SSL_connect returned=1 errno=0 state=SSLv3 read server certificate
B: certificate verify failed (https://rubygems.org/specs.4.8.gz)

I added a cert Global.pem file, and then tried to reinstall bundler and got this error:
gem install bundler --version '1.14.6'
ERROR:  While executing gem ... (OpenSSL::X509::StoreError)

"GlobalSignRootCA.pem" that is...

@regalbob did you follow the instructions from the ruby gems guide? http://guides.rubygems.org/ssl-certificate-update/

1.) Thank you, yes I did that but the instructions are inconsistent- the web site has "gem install --local C:\rubygems-update-2.6.10.gem" yet the downloaded folder has no file named "C:\rubygems-update-2.6.10.gem". It has "rubygems-2.6.11/bin/gem" and "rubygems-2.6.11/bin/update_rubygems".
2.) To further complicate matters, this install isn't on a Windows PC; it's on an IBM iSeries midrange business system. From their green screen command line I enter a PASE shell that is a UNIX environment. It works like a Windows Command Prompt Window.
Thanks again in advance! Can't wait to get RoR configured and start cranking out apps!

Sounds like you have downloaded the source code, use this url https://rubygems.org/gems/rubygems-update-2.6.11.gem to download the gem.
The installation instructions are the same across platforms except for the path usage. So the command to install the gem would be gem install --gem /path/to/rubygems.gem.

Thank you very much! That explains it. I'll try that monday when i ge t to work.

I got update-2.6.1.gem installed, but I still get error "OpenSSL::X509::StoreError" when trying to install bundler:
gem install bundler --version '1.14.6'
ERROR: While executing gem ... (OpenSSL::X509::StoreError)
FYi, I'm on an IBM i (iSereis, aka AS400) in their UNIX PASE shell.

Fyi, I've updated both GlobalSignCARoot.pem and AddTrustExternalCARoot.pem certs.

Hmm I can't think what else the problem would be.. Do you have a proxy that's intercepting your HTTP request? You'll probably get better support if create an issue over at https://github.com/rubygems/rubygems

Thanks! I found an existing issue that that may solve it: https://github.com/rubygems/rubygems/issues/1800.
On a related question, I've been reading some Rails books and they say some gems won't even work on Windows. Would Rails work on Linux Mint installed virtually on Windows? The challenge is our IBM i business system (iSeries or AS400) must host Rails as that is where the database is (DB2).

To answer your question, no proxy.

Running rails in Linux is well supported and documented.

I'm closing this for now. If you're still experiencing your original issue don't be afraid to re-open this ticket.