Make void a generic BindingIdentifier

The proposal currently only allows using void = … as a special form of the UsingDeclaration, adding a special case [+Using] void Initializer to the LexicalBinding production.
I think it would be more consistent to allow void in any place where a BindingIdentifier is allowed. This would allow a lot of useful patterns where currently _ is often used to indicate an unused variable (or _unused1, _unused2 if multiple bindings were to be declared):
const void = …;
let void = …;
var void = …;
using void = …;
for (const void of …) {…}
const {x: void, y: void, ...rest} = …;
const [void, void, ...rest] = …;
function …(void, second) {…}
onClick = (void) => {…};

This is a duplicate of #77, and I've already commented as to my position in that issue.


How to get stride length using kinect?

In an environment with multiple kinect installations
Q. Is there a way to measure stride length when a person walks in kinect range?

↑ refer to simulation picture

Just throw some ideas:

you can leverage body tracking SDK, and access the joints that can help you identify stride https://docs.microsoft.com/en-us/azure/Kinect-dk/body-joints (e.g. foot/ankle), then you can leverage the joints position  to find the stride length
or, you can use your own detection algorithm to find the foot in color image, and then leverage sensor sdk to get the 3d point for those interesting points and measure the distance from the 3d point of them to identify stride

hope it helps


account_group_id -> wallet

Closes #https://github.com/penumbra-zone/penumbra/issues/2997

One thing I don't think we settled on: up to this point, the "account group ID" has been a purely internal name, only used in internal code and datastructures. Adding a Bech32 prefix for it feels like making it in some sense user-facing (at least to a subset of users).
Did we want to align on terminology first? We'd talked about having a conceptual hierarchy of "wallet" / "account" / "address" for spend capability / logical account / payment capability that we currently call "account group" / "account" / "address". Should we commit to that?

@hdevalence I think that terminology makes sense! There also seemed to be consensus on the team meeting with it too. Changed all instances of account group id to wallet.

I hate to ask to redo everything, but I'm wondering if we could call it WalletId rather than Wallet. It seems kind of important to have the name clarify that it's just an identifier, it doesn't actually do anything itself -- if we call it "wallet", I think someone reading the code or API docs could easily get confused thinking that it was the thing that manages funds, rather than just being an identifier.

I wasn't sure if this struct would be something later down the line we'd extend. I had a hunch about Id though. Wasn't terribly hard to add.

@hdevalence thanks for the re-review 🙏


PixelGunCheat Some of the latest questions be sure to check out

When injecting into the game hall, all functions fail and crash directly. What is the problem? Is there any abnormality in the program? Please solve it and release the latest patch. I will give you a reward of $100 ，Please, I really need him！

im pretty sure the offsets arent correct

我很确定偏移量不正确

Can we solve the latest offset?

im pretty sure this should be resolved now, let me know if it still happens

im pretty sure this should be resolved now, let me know if it still happens

hey, with sig scanning you can make an auto updating offset feature

making sigs for il2cpp methods is a bit... special
we are on the 4th version of dumper because they keep patching it so i'd rather not make the way to get offsets public


Master Shapeshifter please do not "fix" it

This ability is owlcat's original, not from the tabletop, please do not "fix" it

anything I "fix" can be unfixed at will


How does Compact density work for controls other than TextBox ?

Grid level resources don't seem to change the density of the controls other than textbox.
When I asked about it, I was given this reply which show compact density is working. But the result I got is this:

You can see that up to the TextBox, all other control remained same in size. Am I missing something?
The code is here:
<Page
    x:Class="Test.MainPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:winui="using:Microsoft.UI.Xaml.Controls"
    Background="{ThemeResource ApplicationPageBackgroundThemeBrush}"
    mc:Ignorable="d">

    <winui:TwoPaneView Pane1Length="*" Pane2Length="*">
        <winui:TwoPaneView.Pane1>
            <Grid Margin="5">
                <Grid.RowDefinitions>
                    <RowDefinition Height="auto"/>
                    <RowDefinition Height="auto"/>
                    <RowDefinition Height="auto"/>
                    <RowDefinition Height="auto"/>
                    <RowDefinition Height="auto"/>
                    <RowDefinition />
                </Grid.RowDefinitions>
                <TextBlock
                    HorizontalAlignment="Center"
                    Style="{ThemeResource HeaderTextBlockStyle}"
                    Text="Normal density" />
                <CheckBox Content="Checkbox" Grid.Row="1"/>
                <Slider Header="Slider" Grid.Row="2" />
                <ToggleSwitch Header="Toggle switch" Grid.Row="3" />
                <TextBox Header="Textbox"  Grid.Row="4"/>
            </Grid>
        </winui:TwoPaneView.Pane1>
        <winui:TwoPaneView.Pane2>
            <Grid Margin="5">
                <Grid.RowDefinitions>
                    <RowDefinition Height="auto"/>
                    <RowDefinition Height="auto"/>
                    <RowDefinition Height="auto"/>
                    <RowDefinition Height="auto"/>
                    <RowDefinition Height="auto"/>
                    <RowDefinition />
                </Grid.RowDefinitions>
                <Grid.Resources>
                    <ResourceDictionary Source="ms-appx:///Microsoft.UI.Xaml/DensityStyles/Compact.xaml" />
                </Grid.Resources>
                <TextBlock
                    HorizontalAlignment="Center"
                    Style="{ThemeResource HeaderTextBlockStyle}"
                    Text="Compact density" />
                <CheckBox Content="Checkbox" Grid.Row="1"/>
                <Slider Header="Slider" Grid.Row="2" />
                <ToggleSwitch Header="Toggle switch" Grid.Row="3" />
                <TextBox Header="Textbox"  Grid.Row="4"/>
            </Grid>
        </winui:TwoPaneView.Pane2>
    </winui:TwoPaneView>
</Page>

@LucasHaines @licanhua @chrisglein  do you know what might be happening here.

I think it's expected.
For compact, it only applies to Controls like CombBox, TreeView, NavigationView. You can see the full list by compact.xaml. The ones you questioned is not in the list.
For 19H1(possible RS5) or above, we implemented 'density' in OS(a smaller size than rs5-).
To support down-level, we built it into WinUI.
For Slider and ToggleSwitch,  it's actually already in 'density'. And you can switch it back to not density by SliderPreContentMargin and other parameters which are described in CommonStylesPage.xaml
If you create a app with winui and another app without winui and run them in rs5- machines, then you can see the difference.

For compact, it only applies to Controls like CombBox, TreeView, NavigationView.

Is there any plan to extend compact into other controls?

For compact, it only applies to Controls like CombBox, TreeView, NavigationView.

Is there any plan to extend compact into other controls?

I think most controls fall into the 16px, 24px, and 32px categories - with controls that default to 40px being shrunk


[HOLD for payment 2023-03-31] [$1000] Typing emoji in CAPS doesn’t highlight the text on the emoji suggestion list

If you haven’t already, check out our contributing guidelines for onboarding and email<EMAIL_ADDRESS>to request to join our Slack channel!

Action Performed:

Open chrome web > Go to any chat
Type in :smile and see the recommendation where it highlights the recommendation in blue
Next type in :SMILE in Caps and notice that it doesn’t highlight the recommendation in blue
If followed the same process in Slack , even the text written in Caps highlights the recommendation that matches with the text

Expected Result:
Typing emoji in CAPS should highlight the text on the emoji suggestion list on matching texts like slack
Actual Result:
Emoji suggestion doesn’t highlights in blue when typed in Caps letters unlike slack
Workaround:
unknown
Platforms:

Which of our officially supported platforms is this issue occurring on?

[x] Android / native
[x] Android / Chrome
[x] iOS / native
[x] iOS / Safari
[x] MacOS / Chrome / Safari
[x] MacOS / Desktop

Version Number: 1.2.84-0
Reproducible in staging?: y
Reproducible in production?: y
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos:
https://user-images.githubusercontent.com/43996225/225042246-d7030053-c9c1-4a9b-9409-5f609d518f8c.mp4
https://user-images.githubusercontent.com/43996225/225042305-17db7b1b-ee21-4781-ae14-61135c53520b.mp4
Expensify/Expensify Issue URL:
Issue reported by: @avi-shek-jha
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1678775253685729
View all open jobs on GitHub
Upwork Automation - Do Not Edit

Upwork Job URL: https://www.upwork.com/jobs/~013812c4d2779d8015
Upwork Job ID:<PHONE_NUMBER>380026368
Last Price Increase: 2023-03-16

Triggered auto assignment to @lschurr (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.

Bug0 Triage Checklist (Main S/O)

[ ] This "bug" occurs on a supported platform (ensure Platforms in OP are ✅)
[ ] This bug is not a duplicate report (check E/App issues and #expensify-bugs)

If it is, comment with a link to the original report, close the issue and add any novel details to the original issue instead

[ ] This bug is reproducible using the reproduction steps in the OP. S/O

If the reproduction steps are clear and you're unable to reproduce the bug, check with the reporter and QA first, then close the issue.
If the reproduction steps aren't clear and you determine the correct steps, please update the OP.

[ ] This issue is filled out as thoroughly and clearly as possible

Pay special attention to the title, results, platforms where the bug occurs, and if the bug happens on staging/production.

[ ] I have reviewed and subscribed to the linked Slack conversation to ensure Slack/Github stay in sync

Triggered auto assignment to @MariaHCD (Engineering), see https://stackoverflow.com/c/expensify/questions/4319 for more details.

Yep, I reproduced this. Adding Eng to decide if this is Internal or External.

Job added to Upwork: https://www.upwork.com/jobs/~013812c4d2779d8015

Current assignee @lschurr is eligible for the External assigner, not assigning anyone new.

Triggered auto assignment to Contributor-plus team member for initial proposal review - @rushatgabhane (External)

Current assignee @MariaHCD is eligible for the External assigner, not assigning anyone new.

Not overdue, just marked as external

Proposal
Please re-state the problem that we are trying to solve in this issue.
Typing emoji in CAPS doesn’t highlight the text on the emoji suggestion list
What is the root cause of that problem?
The emoji prefix following the semicolon is currently case-sensitive.
https://github.com/Expensify/App/blob/ad1e244cacc5ae96f70f6fc42f2b0090efb9b294/src/pages/home/report/ReportActionCompose.js#L894
What changes do you think we should make in order to solve the problem?
"Case-insensitize" the emoji prefix, i.e. make it lowercase. There are 2 ways to accomplish it:

Make prefix props within EmojiSuggestions lowercase
Handle prefix argument of getStyledTextArray function by using a processed variable, prefixLowercase = prefix.toLowercase()  for example.

What alternative solutions did you explore? (Optional)
NA
Result
Screencast from 15-03-2023 11:43:15.webm

📣 @tienifr You have been assigned to this job by @MariaHCD!
Please apply to this job in Upwork and leave a comment on the Github issue letting us know when we can expect a PR to be ready for review 🧑💻
Keep in mind: Code of Conduct | Contributing 📖

@MariaHCD The PR is ready for review https://github.com/Expensify/App/pull/16068. Thanks

Regression Test Proposal
Bug: Typing emoji in CAPS doesn’t highlight the text on the emoji suggestion list
Proposed Test Steps:

Open App
Open any chat
Type in :SMILE or :SMI in Caps
Verify that it highlights the typed prefix in the emoji suggestion list

Do we :+1: or :-1:

Reviewing label has been removed, please complete the "BugZero Checklist".

The solution for this issue has been :rocket: deployed to production :rocket: in version 1.2.88-2 and is now subject to a 7-day regression period :calendar:. Here is the list of pull requests that resolve this issue:

https://github.com/Expensify/App/pull/16068

If no regressions arise, payment will be issued on 2023-03-31. :confetti_ball:
After the hold period is over and BZ checklist items are completed, please complete any of the applicable payments for this issue, and check them off once done.

[ ] External issue reporter
[ ] Contributor that fixed the issue
[ ] Contributor+ that helped on the issue and/or PR

As a reminder, here are the bonuses/penalties that should be applied for any External issue:

Merged PR within 3 business days of assignment - 50% bonus
Merged PR more than 9 business days after assignment - 50% penalty

BugZero Checklist: The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed:

[ ] [@rushatgabhane / @MariaHCD] The PR that introduced the bug has been identified. Link to the PR:
[ ] [@rushatgabhane / @MariaHCD] The offending PR has been commented on, pointing out the bug it caused and why, so the author and reviewers can learn from the mistake. Link to comment:
[ ] [@rushatgabhane / @MariaHCD] A discussion in #expensify-bugs has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner. Link to discussion:
[ ] [@lschurr] Determine if we should create a regression test for this bug.
[ ] [@rushatgabhane] If we decide to create a regression test for the bug, please propose the regression test steps to ensure the same bug will not reach production again.
[ ] [@lschurr] Link the GH issue for creating/updating the regression test once above steps have been agreed upon:

@lschurr applied, thanks!

All paid.

Anything else we need to do from that BZ checklist @MariaHCD @rushatgabhane?

Checked off the first three items on the BZ checklist. This was an improvement, not a bug so those items aren't applicable, in my opinion.

Great, good to close!


Mongo error and .env files

Hello! I am also trying to use the SVL simulator API but I can't start the server container like #1
When I access http://localhost:27017/ it appears: 'It looks like you are trying to access MongoDB over HTTP on the native driver port.'
In 'https://stackoverflow.com/questions/23446876/cannot-access-mongodb-through-browser-it-looks-like-you-are-trying-to-access-m' they say there is no HTTP access at the default port of 27017.
Also could you tell me where can I find '4.Create .env file for server and client following the template (should be same as template, change if you know what you are doing)' templates?
Ty!

Hi!
You should not be able to access http://localhost:27017/.
Only the server container can access MongoDB at sorasvl-mongo:27017
This is done through Docker network https://github.com/YuqiHuai/SORA-SVL/blob/125c5c985f75a600b6e22d5374a4b1c8529df0c8/docker-compose.yml#L46
The templates for the .env files are in the server and client directory named ".env.template".
You can basically rename it to .env and things should be working appropriately.

I tried to access it that way because I didn't know the way to do it :)
Just following step 4 and renaming those to .env works, ty!
Now I can communicate with your local server and start the API.

But when I run the python API and try to load a map (I tried some of them) it appears for example: SingleLaneRoad 0% and then this error

It is the script remote.py from the python API. Do you know why this could happen?

I tried to access like that because I didn't know how to do it :)
I renamed the files and it is working
Amazing work!


fix the module.export class names

Hi, the class UserTableSchema does not match the module.export also wont work then 🍡
i hope i made the pr right :d

Coverage remained the same at 97.578% when pulling b017d97104b1494c617c9ac0eb624c1e9e5af006 on cannap:fix-templates into e9b816e24b97edbac489983e5c91c9ac986ee5db on adonisjs:develop.


Fix typo in setup.py.tmpl

extra_requires should really be extras_require. See here.

I signed it!
On Tue, Aug 22, 2017 at 12:31 AM googlebot<EMAIL_ADDRESS>wrote:

Thanks for your pull request. It looks like this may be your first
contribution to a Google open source project. Before we can look at your
pull request, you'll need to sign a Contributor License Agreement (CLA).
📝 Please visit https://cla.developers.google.com/
https://cla.developers.google.com/ to sign.
Once you've signed, please reply here (e.g. I signed it!) and we'll
verify. Thanks.

If you've already signed a CLA, it's possible we don't have your
GitHub username or you're using a different email address. Check your
existing CLA data https://cla.developers.google.com/clas and verify
that your email is set on your git commits
https://help.github.com/articles/setting-your-email-in-git/.
If your company signed a CLA, they designated a Point of Contact who
decides which employees are authorized to participate. You may need to
contact the Point of Contact for your company and ask to be added to the
group of authorized contributors. If you don't know who your Point of
Contact is, direct the project maintainer to go/cla#troubleshoot.
In order to pass this check, please resolve this problem and have
the pull request author add another comment and the bot will run again.

—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/deepmind/sonnet/pull/60#issuecomment-323909552, or mute
the thread
https://github.com/notifications/unsubscribe-auth/ABhGr4TU20MZ4fJlrDFjTkoV951UgLvRks5sakuTgaJpZM4O-Eno
.

Hello @dekked, thanks for spotting this!
We will merge this internally and your name should be in the proper commit in the next version we push.

Merged in 72a5676e670d02f4025fbcfe64b855583ee82079.
Sorry for taking so long, but we had to delay version 1.11 to adapt the code for Tensorflow 1.3.


No Access to /@angular_cli/angular_cli/node_modules/async and others

OS

Windows 10 64-bit

Versions.

ng version: 1.0.0-beta.15 (I'm not sure why, I've just reinstall it so it should be the latest)
node: v6.6.0
os: win32 64x

Repro steps.

I was trying to get older project updated and fixed, when I copied repository I ran npm to install all dependencies. I tried to set the newest versions, then I ran it from top and changed the version that npm log was showing me

The log given by the failure.

npm ERR! Windows_NT 10.0.10586
npm ERR! argv "C:\Program Files\nodejs\node.exe" "C:\Users\grafc\AppData\Roaming\npm\node_modules\npm\bin\npm-cli.js" "install"
npm ERR! node v6.6.0
npm ERR! npm  v3.10.7
npm ERR! path C:\SERVER\htdocs\OliwkaFinal\node_modules@angular-cli\angular-cli\node_modules\async
npm ERR! code ENOENT
npm ERR! errno -4058
npm ERR! syscall access
npm ERR! enoent ENOENT: no such file or directory, access 'C:\SERVER\htdocs\OliwkaFinal\node_modules@angular-cli\angular-cli\node_modules\async'
npm ERR! enoent ENOENT: no such file or directory, access 'C:\SERVER\htdocs\OliwkaFinal\node_modules@angular-cli\angular-cli\node_modules\async'
npm ERR! enoent This is most likely not a problem with npm itself
npm ERR! enoent and is related to npm not being able to find a file.
npm ERR! enoent

Thank you.

I also did change the rights for whole node_modules folder from Read-Only to Read-Write


Is it possible to make docker pull for :latest images each time, before they start?

The gist of it: Before each service (re)starts, i need to "docker pull" for fresh :latest. How do I make it happen?

There is no way today, but it's a good enhancement request. :)

Actually, I thought about it some more.
When I first made it an enhancement request, I was thinking of Rancher (not RancherOS).
This

One way or another you'll be forced to have a similar option in cloud-config/services section:
refresh_on_restart: true

As an example and perhaps an incentive - CoreOS makes refreshing docker images on service restart really easy, it's a no brainer:
    - name: sync-yadisk.service
      enable: true
      command: start
      content: |
        [Service]
        TimeoutStartSec=0
        ExecStartPre=/usr/bin/docker pull voobscout/base-deb:yadisk
        ExecStartPre=/usr/bin/docker run -d -ti \
        --name sync-yadisk \
        -v /opt/exports_encrypted:/root/Yandex.Disk:rw \
        voobscout/base-deb:yadisk $UNAME_YANDEX $PASSWD_YANDEX
        ExecStart=/usr/bin/docker logs -f sync-yadisk
        ExecStop=/usr/bin/docker stop sync-yadisk
        ExecStop=/usr/bin/docker rm sync-yadisk
        Restart=always
        RestartSec=15s

I'm interested in this as well.

So, after about a year, there is still no mechanism to run a fresh copy of containers upon reboot or refresh a running copy?
What happens when there're hundreds rancherOS machines that need to maintain the latest version for some images?
I'm trying to understand the way to implement this small, but apparently quite essential (to me) piece of functionality. Any and all help or pointers are very much appreciated!

@voobscout I ended up solving this with an orchestration layer (AWS ECS in production).


General modeling workflow components

Let's discuss components required for modeling, including but not limited to:

Forcing components

Meteorological
Tidal
etc.

Bathymetry information
Meshing
Coupling
Manager

Thanks @SorooshMani-NOAA for pointing this out. Although there is an overlap with #3 , I would suggest to use this one to link the workflow components with corresponding developmental packages.
Thus, my take:
Forcing components

Meteorological
- Use any of the packages listed https://github.com/orgs/oceanmodeling/projects/4 or others that we don't know of.
- Do we have a need for a wrapper (similar to the meteo module of pyposeidon? Seaforce maybe?
Tidal
- Support FES, TPX, others? They are distributed as files. No API. How to deal with this?

Bathymetry information
- Merging of DEMs. I suggest a new package to deal with that. Could be wrapper around existing ones if available.
Meshing
- Seamesh will handle that.
Coupling
- This one deserves more consideration. Could be part of the manager but use cases are needed to have a better idea.
Manager
- Seamulate is envisioned to handle that. We have to define the scope of it.


Shader Materials don´t respect configured shader parameters if they are duplicated - Godot 4

Godot version
4.0 beta 4
System information
PopOs 22.04 LTS, RTX 2060, intel i7 9th gen, 16gb ram
Issue description
After duplicate a shader material, and modifying the shader parameters. The new parameters will be applied in the original material to. Reload the scene, or the engine won´t fix the issue.
In editor

Running the game

Editor after reloading the scene

Steps to reproduce

Create a new shader material A.
Add a new Shader to material A, and save it as a resource. The shader should have parameters to visualize the problem.
Apply the material A to a mesh, it should work as expected
Now duplicate the material, and change the shader parameters. When applying to a new mesh, It will appear to have worked as expected in editor
Running the game will show both meshes with the shadder behaving as if they have the same parameters.
After you reload the scene. The editor will have the same behavior as when running the game

Minimal reproduction project
godot-4-materials-test.zip

duplicate of https://github.com/godotengine/godot/issues/67206?

Yes! It looks like the same thing.

Can you try building the latest master branch, which includes a fix for https://github.com/godotengine/godot/issues/54774?

Tested with a build from the master branch and it is working as expected!

Duplicate of #54774


[Blazor dual mode] inject IHostEnvironment in the client project

hi guys, I actually have an architecture like the dual mode of daniel roth (https://github.com/danroth27/BlazorDualMode). In the server project, we can see he inject an IHostEnvironment in the startup to read the current environnement.
I need to do the same thing on the client project. But when i try to inject an IHostEnvironment, on the startup constructor, in the configure Method, or in a component, I have this following error "No service for type 'Microsoft.Extensions.Hosting.IHostEnvironment' has been registered"  (when i launch as client side)
So, how i can achieve this ? (just retrieve the current environment in my client project) ideally, it would be better to only change the environment variable in the server project, rather than have to change also the environment variable in the client project.
thanks !
Julien

There's no equivalent to the "host environment" concept for client-side Blazor. It's possible we might add something like it in the future, but currently it doesn't exist.
One of the reasons is that in general, client-side Blazor is only a set of static files served by the server (which doesn't have to be running .NET at all), so it's not really meaningful to talk about it being launched in different modes.
If you want, you can use the compilation configuration to switch between different behaviors, e.g.,
#if DEBUG
    Console.WriteLine("Debug version");
#else
    Console.WriteLine("Release version");
#endif

When compiling normally in development, the DEBUG flag should be set, whereas when publishing for production deployment it should not.


Remote load

I like this. Is there a way we could make it backwards compatible, in case there's code out there that specifies "folder" as a named parameter?

@ravimody Moving the discussion here.
I'd be fine with that. Is there an idiomatic way to do this in python? I can think of a couple ways but I don't think they're the cleanest.

We should tag this as a new release - especially because there's technically a backwards incompatibility (named parameter "folder" on load()).

@ravimody agreed, we'll get one out 👍🏻


[WIP] Add initial version of luasocket

Do not merge this yet, this is still WIP. I am now building with Lua 5.1, and it seems to work fine.

@sharkwouter my "AR-in-place-of-LD hack" is not very reliable with the latest toolchain. I can remember it worked every time about 3 months ago, and now it only works every other time. Can't figure out why it is doing this, and what the success depends on.
Also now I started thinking, why am I building it as a static library anyway? I should try to build prx instead and load it dynamically.

I'm going to need a bit more context for the "AR-in-place-of-LD hack" then I can help look into it. What is the problem you're running into?

You might want to rebase on the latest commit to main, then the automated build should work again.

The whole hack looks like this:
LDFLAGS_psp=$(LUALIB) && mv templib.a
LD_psp=psp-ar rcs templib.a

When building dynamic libraries, LD is fine with the last argument being the output file name. When building static libraries, the output file name must be the first argument to ar after rcs flags. So for every static library to be built, I create a temporary file, then move it to the correct file name, because mv accepts the target file name as the last argument.
The order of arguments is $(LD) $(OBJECTS) $(LDFLAGS) $(OUTFILE) which expands to gcc obj1.o obj2.o -llua -o libluasocket.so (when LD is gcc and LDFLAGS is -llua -o), but with the variables above it expands to ar rcs templib.a obj1.o obj2.o /path/to/lua.a && mv templib.a libluasocket.a. Ideally I'd like to just have ar rcs libluasocket.a obj1.o obj2.o /path/to/lua.a without the extra mv call, but it's not possible to implement without seriously rewriting the makefile.
Not sure why it was failing, but after updating, the reason is obvious: https://github.com/pspdev/pspsdk/pull/205 (I'll fix it).

Quick overview of the patch:

getaddrinfo
gethostname (just returns "psp", needs to be improved)
servent, protoent with related functions and hstrerror
sockaddr_un
sockaddr_storage (needs to be removed since https://github.com/pspdev/pspsdk/pull/205)
IPv6 support removed

The other patch just fixes the incorrect version number reported.

Here is a simple script that can simplify using AR-in-place-of-LD:
#!/bin/sh

for last; do true; done
args="$last $(echo $@ | sed 's@ '$last'$@@')"

psp-ar rcs $args

Alright, now it's somewhat usable. In order to use it, do this:
#include "luasocket.h"
#include "mime.h" // (optional)

// init Lua and load all libraries
lua_State *L = luaL_newstate();
luaL_openlibs(L);

// Load LuaSocket into Lua core
lua_getglobal(L, "package");
lua_getfield(L, -1, "preload");
lua_pushcfunction(L, luaopen_socket_core);
lua_setfield(L, -2, "socket.core");
lua_pushcfunction(L, luaopen_mime_core); // (optional)
lua_setfield(L, -2, "mime.core"); // (optional)
lua_pop(L, 2);

Then files copied from psp/share/lua/5.1 can be used from lua. A bit cumbersome, but I don't really know how can I make it any better at the moment.

Thanks for working on this. I'm mostly happy with this. I'm a little bit worried about the compat.h and mime.h files being in $PSPDEV/psp/include, though. Those are very generic names. Would it be possible to give them their own directory or give luasocket an own directory for now?

I'm a little bit worried about the compat.h and mime.h files being in $PSPDEV/psp/include, though. Those are very generic names. Would it be possible to give them their own directory or give luasocket an own directory for now?

Yes, I was also thinking about this. I don't really like the "compat" header, and it is only included, because it's referenced from luasocket.h, so maybe the two can be merged? mime.h can be renamed to luasocket_mime.h, maybe? Or just move all the headers to $PSPDEV/psp/include/luasocket. There's no standard way of handling this as far as I know, this library is only supposed to be compiled dynamically (which is really cool, and I want to do it, but unfortunately, there's no way to load dynamic libraries at runtime from Lua at the moment), however a handful of projects link luasocket statically and they all just invent their own way. I wish something like this actually went upstream, I might break my PSP support patch into smaller pieces, and submit them separately.

Such an odd library, I think putting it in lib/luasocket probably makes the most sense.

I am sure lib/libluasocket.a and include/luasocket.h (a single combined header) wouldn't collide with anything.

Yeah, that would be great

Thanks for the work on this, this was an impressive feat. You should probably update your pull request to upstream to have more information on what was changed. Maybe they'll look into it then.


Do we need to consider the chat template when doing DPO/KTO training?

Hi! I closely check the data processing in the KTO trainer and DPO trainer. I find that the chatting template is not considered when combining the prompt and its completion.
For DPOTrainer: full_tokenized = self.tokenizer(prompt + answer, add_special_tokens=False)
And for KTOTrainer: prompt_and_completion = [prompt + completion for prompt, completion in zip(batch["prompt"], batch["completion"])]
Do we need to consider the chat template when combining them, something like: [INST] + prompt + [\INST] + completion.

cc @kashif @kawine

let me check! Thanks for the report!

let me check! Thanks for the report!

Hi, didn't mean to chase you up, but do you have any updates on this question? Thanks!


fix: Missing attributes are set to null when requesting in xml

Description
The json parser and xml parser at see missing attributes differently. Currently json gives "null" when an attribute is missing where xml return empty string.
This pr changes the xml parser to return null instead of empty string.
References

Codecov Report

Merging #572 (b595cb1) into main (21978a1) will decrease coverage by 19.01%.
Report is 243 commits behind head on main.
The diff coverage is 43.89%.

@@             Coverage Diff             @@
##             main     #572       +/-   ##
===========================================
- Coverage   83.07%   64.07%   -19.01%
===========================================
  Files         456      350      -106
  Lines       10418     7499     -2919
===========================================
- Hits         8655     4805     -3850
- Misses       1438     2534     +1096
+ Partials      325      160      -165

Files
Coverage Δ

...ivedMessages/ArchivedMessageGetDocumentListener.cs
0.00% <ø> (ø)

source/Api/Common/HttpHeadersExtensions.cs
0.00% <ø> (ø)

...iddleware/Authentication/ActorForAuthentication.cs
0.00% <ø> (ø)

...ntication/Bearer/BearerAuthenticationMiddleware.cs
0.00% <ø> (ø)

...MarketActors/MarketActorAuthenticatorMiddleware.cs
0.00% <ø> (ø)

...ation/Middleware/Correlation/CorrelationContext.cs
0.00% <ø> (-66.67%)
:arrow_down:

.../Middleware/Correlation/CorrelationIdMiddleware.cs
0.00% <ø> (ø)

...iguration/Middleware/Correlation/UserProperties.cs
0.00% <ø> (ø)

...figuration/Middleware/FunctionContextExtensions.cs
0.00% <ø> (ø)

...rce/Api/Configuration/ServiceBusMessageMetadata.cs
0.00% <ø> (ø)

... and 80 more

... and 412 files with indirect coverage changes
:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more


NIFI-13630 Handle map Avro type in BigQuery writing

Summary
NIFI-13630
Tracking
Please complete the following tracking steps prior to pull request creation.
Issue Tracking

[X] Apache NiFi Jira issue created

Pull Request Tracking

[X] Pull Request title starts with Apache NiFi Jira issue number, such as NIFI-00000
[X] Pull Request commit message starts with Apache NiFi Jira issue number, as such NIFI-00000

Pull Request Formatting

[X] Pull Request based on current revision of the main branch
[X] Pull Request refers to a feature branch with one commit containing changes

Verification
Please indicate the verification steps performed prior to pull request creation.
Build

[X] Build completed using mvn clean install -P contrib-check

[X] JDK 21

Licensing

[ ] New dependencies are compatible with the Apache License 2.0 according to the License Policy
[ ] New dependencies are documented in applicable LICENSE and NOTICE files

Documentation

[X] Documentation formatting appears as expected in rendered files

Thanks @EndzeitBegins for the review, should be good now. Let me know if there are any other changes to make.

Made the changes @EndzeitBegins  & @dan-s1. Thanks for the reviews.


Add 'base64' download option

Add a link for each Icon to download as base64 for pasting as inline css

We do not really want to encourage this usage, the only real example of this is inlining the nrk-chevron-right icon as list-style. Maybe just add an example with this in the docs instead? :)

I’m not sure it’s up to us to encourage/discourage, but ok

Well, you're right - we do not want SVG primarily inlined, but it is nice to have some times. Let's add "Copy CSS" option, and use the logic from here https://github.com/yoksel/url-encoder/


Add ServiceModel.Proxies

Adds a new package that contains helper classes to create safe WCF clients

Tested the sample clients with NetTcpBinding as well, worked perfectly :)


There is some errors when migrate my harbor.

I use HTTP protocol to access my harbor  before migration.  And now I replace the harbor.cfg.  but appear errors.
Harbor.cfg:
ui_url_protocol = http
when I execute ./prepare script on Deploy directory, Follow logs:
Traceback (most recent call last):
File "./prepare", line 37, in
validate(rcp)
File "./prepare", line 22, in validate
if len(conf.get("configuration", "secret_key")) != 16:
File "/usr/lib64/python2.7/ConfigParser.py", line 340, in get
raise NoOptionError(option, section)
ConfigParser.NoOptionError: No option u'secret_key' in section: u'configuration'

How did you replace harbor.cfg?  with "git pull" ??
In the latest code of prepare and harbor.cfg on dev branch we removed secret_key

Manual backup  harbor.cfg  thar  old version .  and  I migrate harbor by refered to  the url (https://github.com/vmware/harbor/blob/master/docs/migration_guide.md)

If you are on "master" branch, the harbor.cfg should have "secret_key" parm, could you confirm with the previous version?

It's OK.   THANKS. @reasonerjt


Only process records in last cycle

The billing calculation takes all records in cache into account when processing usage. Instead it should only take records that were created since the last bill time and up to the current bill time.

Note that with the current code flow the billing period that process_metering() will be targeting is the period ending at the time recorded in the cache's next_bill_time entry.
If the adapter hasn't been able to successfully process metering requests for an extended period of time, this may not correspond to/overlap with the "current" billing period... This is something that we likely will want to address as part of #65.

Yep, agree :+1:

Ok closing this one as completed; re-open if needed.


feat: 🎸 bump versions to latest stable releases

Description
bump versions to latest stable releases
Breaking Changes
NA
JIRA Link
NA
Checklist

[ ] Updated the Readme.md (if required) ?

:tada: This PR is included in version 5.12.0-alpha.3 :tada:
The release is available on:

npm package (@alpha dist-tag)
GitHub release
v5.12.0-alpha.3
v5.12.0-alpha.3

Your semantic-release bot :package::rocket:

:tada: This PR is included in version 5.12.0 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release
v5.12.0
v5.12.0

Your semantic-release bot :package::rocket:


Update 03-generators.mdx

Describe this PR
Added Prisma Custom Models Generator

Thank you @omar-dulaimi !!

@tanberry I'm glad to having built yet another Prisma generator for the community :)


[3.0] Statement lambda can be replaced with expression lambda

Statement lambda can be replaced with expression lambda.

Codecov Report

Merging #8667 (3cd74b0) into 3.0 (ff39bf3) will decrease coverage by 0.15%.
The diff coverage is 0.00%.

@@             Coverage Diff              @@
##                3.0    #8667      +/-   ##
============================================
- Coverage     63.54%   63.39%   -0.16%
+ Complexity      312      310       -2
============================================
  Files          1138     1138
  Lines         47607    47605       -2
  Branches       7157     7135      -22
============================================
- Hits          30250    30177      -73
- Misses        14033    14089      +56
- Partials       3324     3339      +15

Impacted Files
Coverage Δ

...he/dubbo/registry/nacos/NacosServiceDiscovery.java
0.00% <0.00%> (ø)

...che/dubbo/rpc/protocol/tri/TripleRpcException.java
0.00% <0.00%> (-40.00%)
:arrow_down:

...rg/apache/dubbo/remoting/utils/PayloadDropper.java
76.92% <0.00%> (-15.39%)
:arrow_down:

...o/rpc/protocol/tri/TripleServerInboundHandler.java
85.71% <0.00%> (-14.29%)
:arrow_down:

...apache/dubbo/rpc/protocol/tri/Http2HeaderMeta.java
55.55% <0.00%> (-11.12%)
:arrow_down:

.../remoting/transport/netty4/NettyServerHandler.java
62.79% <0.00%> (-9.31%)
:arrow_down:

.../apache/dubbo/remoting/transport/AbstractPeer.java
58.69% <0.00%> (-8.70%)
:arrow_down:

...e/dubbo/remoting/transport/netty/NettyChannel.java
51.13% <0.00%> (-7.96%)
:arrow_down:

...ng/transport/dispatcher/all/AllChannelHandler.java
62.06% <0.00%> (-6.90%)
:arrow_down:

.../org/apache/dubbo/rpc/protocol/tri/GrpcStatus.java
44.87% <0.00%> (-6.42%)
:arrow_down:

... and 23 more

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 ff39bf3...3cd74b0. Read the comment docs.


Fix README.md typo: VIP_INTERFACE -> VIP_IFACE

Hey @df7cb , thank you for your pull request. :+1:
This environment variable is one of those that was changed with vip-manager 1.0 release, so now all references should be to the new flag (or key in the .yaml config file) interface or environment variable VIP_INTERFACE.
If you still use VIP_IFACE somewhere, you will be seeing an error like this:
[julian@fedora vip-manager]$ VIP_IFACE=eth0 vip-manager
2022/04/05 12:32:08 Parameter "VIP_IFACE" has been deprecated, please use "VIP_INTERFACE" instead

So I'm closing this as no longer applicable...

Thanks for pointing that out, here are some remarks:

README.md : that is a section referencing how to upgrade from the old config to new config, so it only serves as an illustration for the older ExecStart lines that were common.
vipconfig/config.go that is a comment explaining what has to be done to make sure that vip-manager can understand and complain that e.g. VIP_IFACE is a deprecated variable.
package/scripts/vip-manager - this is only applicable to SysVinit systems...I'm planning to get rid of this completely, as far as we can see there is really no reason to support it any more.
package/config/vip-manager.default - this either needs to be updated to bring it up to current expectations, or it needs to be dropped as well. I'd like the latter option, as I see little advantage in a file defining environment variables over a config file. But I also see that you are packaging this very file: https://salsa.debian.org/postgresql/vip-manager/-/blob/master/debian/rules#L20

What do you think, mainly on the last point?

Ack, that sounds right.

And would you be fine with changing the packaging (at some point) to use the YAML config file, instead of the environment variables defined in vip-manager.default ?

Cc: @mbanck


Fix issue with empty blocks

As per #40, querying table would fail, if table has empty partitions, e.g. Parquet table has empty files on disk. In this case Parquet file has 0 block metadata chunks, because there is no data. But in the code we explicitly check for ParquetFileStatus to have non-empty blocks, which correspond to block metadata chunks, which fails requirement for empty partitions.
This PR fixes the problem by removing check and updating ParquetIndexFilters to handle empty blocks. Current approach is returning Trivial(false) if empty blocks are provided, because file is empty so all predicates will be evaluated to false.

Coverage increased (+0.2%) to 95.179% when pulling 0ea036393a96a0313f0fce91724147126826b8c2 on empty-block-issue into 508665053e8cd235c067141a7e00c5cd8e60a1db on master.


Switch to persistence

This patch switches the value to persistence to follow the helm convention.
fixes: https://github.com/spiffe/helm-charts/issues/199

Probably should do the same on the tornjak PR then. To keep things consistent.


update Comet ML

newer video, better description

@aviadr1
Hey, can you just put the bold titles in the same line as the rest of the text to make it consistent with the others?
P.S you can check a preview of it here. Seems like the "Build better models faster" text should get an extra newline after it.

@aviadr1
Awaiting your response.

No response so I'm closing this. Feel free to reopen.


Playfair Cipher

🚀 Feature

Playfair Cipher

Have you read the Contributing Guidelines on Pull Requests?
Yes.
Motivation
To learn different kinds of Cipher algorithms
Pitch
Cryptography is an essential way of preventing that from happening. It secures information and communications using a set of rules that allows only those intended—and no one else—to receive the information to access and process it.
Assignees :

C :
CPP :
Python : @sharanya02
Java : @parjanyaacoder
C# :
JavaScript :
GO :

I would to like work on this issue in C++ and Python

I would like to take this in Java

would to like work on this issue in C

@parjanyaacoder @sharanya02 I am closing #519 . You can link your PR to this issue.

I would to like work on this issue in C++ and Python

Sure, you can take this issue in C++.
Don't forget to follow contribution guidelines and make sure that your previous PRs are merged successfully.

I would like to take this in Java

@ritvij14  Sorry, this issue is already assigned to someone else in Java. You may take up this issue in any other language you're comfortable with.

would to like work on this issue in C

@sahanabalappa You are assigned this issue in C.
Make sure you go through the contribution guidelines first.
Happy coding

Sorry, this issue is already assigned to someone else in Java. You may take up this issue in any other language you're comfortable with.
@atarax665 I would like to take this in Javascript then.

@ritvij14 Go ahead with JavaScript.

We are logging the scores for the Contributor's Hack 2020. If you have one or more than one PR merged during the program, make sure to fill this form

@GajjarMiten please remove my name from the issue description as I am unable to solve this issue.


dockerPreloader fails due to "read-only file system" error

Attempting to use the virtualisation.dockerPreloader feature on current master (6e38def213c9d3fc4f9cb7062c6ee580ef07f913) fails to start containers on the preloaded images. The existing test in nix-build nixos/tests/docker-preloader.nix reproduces the error.
Log message from running the tests on hydra:
docker# [   12.601197] dockerd[747]: time="2019-11-24T18:47:45.973722725Z" level=error msg="Handler for POST /v1.40/containers/create returned error: open /var/lib/docker/overlay2/bcc596043c9e8253025a4cfae4a12eafd168c13342898e60345669e7b453225f/committed: read-only file system"
docker# /nix/store/rbhcr27bx53hqwx72rjkgbj5pfn7jix3-docker-19.03.4/libexec/docker/docker: Error response from daemon: open /var/lib/docker/overlay2/bcc596043c9e8253025a4cfae4a12eafd168c13342898e60345669e7b453225f/committed: read-only file system.

Looking at recent builds, it looks like it's been failing consistently for a while.
cc @nlewo as the author of the module
Maintainer information:
module:
 - virtualisation/docker-preloader.nix

Wild speculation: https://github.com/moby/moby/commit/477bf1e413708076f9ed8cd316102765cc5bdb11 looks suspicious.

The feature is still present and the tests are still failing on hydra. Ideally we should fix the feature, but If the feature can't be supported any more we should remove it. Keeping the issue open until one of these things happens.


⚠ Turnos 24x7 has degraded performance

In ce00f55, Turnos 24x7 (https://reservas-dev.alternativasinteligentes.com/) experienced degraded performance:

HTTP code: 200
Response time: 1017 ms

Resolved: Turnos 24x7 performance has improved in 3cea341.


Wz2241

Optimize SQL for Duplicate Alias report generation. Since the version has been updated to 1.14.4-SNAPSHOT. Another pull request has been created in banjo to reflect this change. Please let me know if we should not change the version.
@scoen @shuangzhou @JonathanShaw @josephcurtis @sjacob @snezanam

@weijunnla looks great!


Update language about funding

Ticket: https://dfedigital.atlassian.net/browse/CPDNPQ-1361
Context
As DfE we want to use the same language for funding (currently in some places we use ‘pay for’ and in others ‘funding’) in order to reduce confusion for users, particularly around different types of eligibility (course and funding).

@pmanrubia @EmmaFrith I've tested all the funding outcome pages, they are all good.
So just the changes to the 'course payment page' mentioned in Slack.

@pmanrubia on the page /registration/funding-your-npq, which shows when the person isn't funded and for all courses except EHCO.
The heading and page title should be ‘How are you funding your course?’

@pmanrubia all looks good now. Thank you :)


License term

I noticed that the license term has been updated to Apache 2.0, which allows its commercial usages. In contrast, LICENSE.md still prohibits its commercial usages. I am wondering which one is the correct statement.

The Apache 2.0 license is the correct one. Commercial use is permitted. See https://github.com/chaidiscovery/chai-lab/pull/186


Consumer commits offset regardless of handler failures

https://github.com/oleksiyk/kafka/blob/067c48dfc7787788120dc2f983286aa9200df248/lib/base_consumer.js#L66-L73
It seems like the finally handler there is incrementing offsets regardless of handler success. This means that if the handler chooses not to commit offsets to kafka due to failures in the handler itself, the consumer will still continue to consume messages, leading to potential divergence in persisted offsets and processed offsets.
What is the recommended way of not advancing the offset on failure?
Moreover, if a batch of payloads fails some of the way through, a handler can commit the last successful offset. In this scenario, shouldn't the consumer continue from the offset after this last successful one until the handler commits a greater offset?

First of all this increment is not a Kafka offset commit, it is an increment of the requested offset position.
In case of handler failure, the other option would be to stop fetching because fetching with the same offset and hitting handler error again and again is pointless.
Suggested behaviour is to handle handler failures in the handler (your application) itself. The batch should be processed in order and not in parallel if you want to have a guarantee in case of the failure.

So I'm on board with the local position advancing automatically, as the Java API does the same.
However, the Java API provides a seek method that allows overriding the local position.
Sounds like you would recommend just retrying errors inside the handlers, blocking it's resolution, and thus pausing consumption for that topic+partition combination?

seek method is good idea.
At present you can just call subscribe again (without unsubscribing) with required offset:
subscribe('topic', [0], { offset: 300 }, handler)

Sounds like you would recommend just retrying errors inside the handlers, blocking it's resolution, and thus pausing consumption for that topic+partition combination?

Actually I can't think of any other way. The application has a choice: log the error and proceed or pause consumption of next messages (for this topic/partition pair) and retry processing the faulty one. I'm open for ideas.


glTF aircraft example different in IE

The Cesium Air example has black propellers in Chrome but white propellers in IE.
IE 11

Chrome

fixed


Create API Review step is failing in pipeline runs due to linker command failed with exit code 1107

Recent CI and nightly runs are failing with warnings and errors more frequently than before. One contributing factor is APIView related errors and warnings.

PowerShell exited with code '1'.
Build • Create API Review for azure-core • Create API Review for azure-core

For example:
https://dev.azure.com/azure-sdk/internal/_build/results?buildId=2139473&view=logs&j=a5b8631f-d2a8-5bf4-c5b7-ed5dd46e146c&t=e1b0a0cf-6330-5d90-93da-5076ba54d894

clang++: error: linker command failed with exit code 1107 (use -v to see invocation)
Exception details: StatusCode: 413, ReasonPhrase: 'Payload Too Large', Version: 1.1, Content: System.Net.Http.HttpConnectionResponseContent, Headers:

This isn't unique to Core. We see other errors for service SDKs, like Attestation:
https://dev.azure.com/azure-sdk/internal/_build/results?buildId=2139476&view=logs&j=a5b8631f-d2a8-5bf4-c5b7-ed5dd46e146c&t=e1b0a0cf-6330-5d90-93da-5076ba54d894&l=51

clang++ D:\a_work\1\s\sdk\attestation\azure-security-attestation\inc\ApiViewSettings.json D:\a_work\1\s\sdk\attestation\azure-...
clang++: error: linker command failed with exit code 1107 (use -v to see invocation)
Exception details: StatusCode: 524, ReasonPhrase: '', Version: 1.1, Content: System.Net.Http.HttpConnectionResponseContent, Headers:

It would be useful to output more diagnostic information to the console to debug reasons for such error conditions.
There is another warning in the Dump Package properties step:
https://dev.azure.com/azure-sdk/public/_build/results?buildId=2140048&view=logs&j=a5b8631f-d2a8-5bf4-c5b7-ed5dd46e146c&t=d7f7b61a-6ffa-5531-6b02-f2d4db7c9f77&l=15

##[warning]Failed to retrieve package version for 'core/perf'. No version file found.

Here are the recent public and internal cpp - core pipelines.
https://dev.azure.com/azure-sdk/public/_build?definitionId=1614&_a=summary

https://dev.azure.com/azure-sdk/internal/_build?definitionId=1615&_a=summary

@LarryOsterman, @danieljurek, @RickWinter

@ahsonkhan I have not seen this failure recently.  Is this still an issue or can this be closed?
/cc: @LarryOsterman

Yeah, seems like it has been fixed, looking at recent runs like these:
https://dev.azure.com/azure-sdk/internal/_build/results?buildId=2819764&view=logs&j=35d7e651-8a8e-56d5-4b64-d16694245812&t=faf6fff4-92e8-51af-9fb2-08b78942373f
I am not sure what fixed it though, maybe https://github.com/Azure/azure-sdk-for-cpp/pull/4521?


[DOC-8610] Document ISO 27001 and 27017 compliance

[DOC-8610] Document ISO 27001 and 27017 compliance

@mdlinville - there is one typo in the last sentence:
CockroachDB Dedicated meets the requirements of ISO 27001 and ISO 17017. Other than that LGTM

@mdlinville - there is one typo in the last sentence:
CockroachDB Dedicated meets the requirements of ISO 27001 and ISO 17017. Other than that LGTM

Done!


My fork will support Python3

BTW, I forked your repo and will keep it up to date for Python36 if anybody needs that.
If you have any further instructions on testing all the functionality, let me know. Currently I'm just running it and checking that the browser page works, but not much else.
Thanks

I'm working on it as well, how is it doing for you?


edge case, "object" parameter with no properties will get flattened to nothing

Describe the issue
Edge case, an "object" parameter with no properties will get flattened to nothing.
https://github.com/Azure/azure-rest-api-specs/blob/master/specification/resources/resource-manager/Microsoft.Resources/stable/2019-08-01/resources.json#L3977
"template" parameter is just an "object", with no properties.
After flatten:
      - schema: *ref_222
        flattened: true
        implementation: Method
        required: true
        extensions:
          x-ms-requestBody-name: template
        language:
          default:
            name: template
            description: The template provided to calculate hash.
        protocol:
          http:
            in: body
            style: json
      language:
        default:
          name: ''
          description: ''
      protocol:
        http:
          path: /providers/Microsoft.Resources/calculateTemplateHash
          method: post
          knownMediaType: json
          mediaTypes:
          - application/json
          uri: '{$host}'

This is found by accident. We did not set payload-flattening-threshold, and did not expect this json get flattened at all.
README.tmp.md is simply referring to this single json file (I escaped the ``` within):
# Resource
> see https://aka.ms/autorest
This is the AutoRest configuration file for Resource.
---
\``` yaml $(java)
input-file:
- Microsoft.Resources/stable/2019-08-01/resources.json
\```

It seems picking up the payload-flattening-threshold configure from a nearby README.java.md file. (Yes, we are working on Java extension)
https://github.com/Azure/azure-rest-api-specs/blob/master/specification/resources/resource-manager/readme.java.md
Would like to have a confirmation on the payload-flattening-threshold configure when called on markdown. Thanks.
** REQUIRED **
ModelerFour version: 4.4.158
AutoRest-core version: 3.0.6198
CommandLine : payload-flattening-threshold=1
OpenAPI/Swagger file: https://github.com/Azure/azure-rest-api-specs/blob/master/specification/resources/resource-manager/Microsoft.Resources/stable/2019-08-01/resources.json

Got it. Thanks.


"bearer_only" mode always tries to redirect

I'm trying to use bearer_only=yesto allow this plugin to function as just a means of introspection verifying tokens passing through with my OIDC provider.
My understanding is that with this option enabled, any request handled without a valid Authorization header should get rejected with a 401.
However, no matter what I try, this option seems to be ignored. it always tries to redirect
The kong.yml config for the service I'm testing out is:
...
- name: petstore
    url: http://petstore:8080/api
    plugins:
      - name: oidc
        config:
          client_id: client-1
          client_secret: client-1-secret
          bearer_only: yes
          introspection_endpoint: http://localhost:8000/hydra/oauth2/introspect
          discovery: http://localhost:8000/hydra/.well-known/openid-configuration
    routes:
      - name: petstore
        paths:
          - /petstore
...

I've tried without the discovery config as well, but then it just fails trying to load that.
Any thoughts? Am I missing something obvious somewhere? 🙏

This was because
bearer_only: yes

gets parsed, and its checking for the string "yes"

HI @ramirezd42 ,
I saw you set the introspection endpoint, it's mandatory for you ? to implement a flow "client credentials" without the redirect
My openid configuration doesn't provide this endpoint (Azure AD don't provide one)
Thanks for any help


Update Northstar to v1.14.1

Obligatory disclaimer that I did not test it. But there were only 2 changes in this update  and none of them are breaking in terms of Docker image so it should be fine™

Merging myself cause I have a release to make


protobuf 版本不可高于3.20.1，否则会运行错误

Describe the bug

A clear and concise description of what the bug is.

运行示例中的命名实体识别ner预测示例程序时，protobuf版本必须回退至3.20.1版本（默认安装版本比较高，源码中未配置其版本依赖），否则会报如下两个错误：
Traceback (most recent call last):
File "predict.py", line 1, in
from deepke.name_entity_re.standard import *
File "D:\NLP\vdeepke\lib\site-packages\deepke_init_.py", line 1, in
from .attribution_extraction import *
File "D:\NLP\vdeepke\lib\site-packages\deepke\attribution_extraction_init_.py", line 1, in
from .standard import *
File "D:\NLP\vdeepke\lib\site-packages\deepke\attribution_extraction\standard_init_.py", line 1, in
from .models import *
File "D:\NLP\vdeepke\lib\site-packages\deepke\attribution_extraction\standard\models_init_.py", line 7, in
from .LM import LM
File "D:\NLP\vdeepke\lib\site-packages\deepke\attribution_extraction\standard\models\LM.py", line 7, in
from transformers import BertModel
File "D:\NLP\vdeepke\lib\site-packages\transformers_init_.py", line 22, in
from .integrations import (  # isort:skip
File "D:\NLP\vdeepke\lib\site-packages\transformers\integrations.py", line 19, in
import wandb
File "D:\NLP\vdeepke\lib\site-packages\wandb_init_.py", line 32, in
from wandb import sdk as wandb_sdk
File "D:\NLP\vdeepke\lib\site-packages\wandb\sdk_init_.py", line 12, in
from .wandb_init import _attach, init  # noqa: F401
File "D:\NLP\vdeepke\lib\site-packages\wandb\sdk\wandb_init.py", line 35, in
from .backend.backend import Backend
File "D:\NLP\vdeepke\lib\site-packages\wandb\sdk\backend\backend.py", line 20, in
from ..interface.interface import InterfaceBase
File "D:\NLP\vdeepke\lib\site-packages\wandb\sdk\interface\interface.py", line 18, in
from wandb.proto import wandb_internal_pb2 as pb
File "D:\NLP\vdeepke\lib\site-packages\wandb\proto\wandb_internal_pb2.py", line 15, in
from wandb.proto import wandb_base_pb2 as wandb_dot_proto_dot_wandb__base__pb2
File "D:\NLP\vdeepke\lib\site-packages\wandb\proto\wandb_base_pb2.py", line 36, in
_descriptor.FieldDescriptor(
File "D:\NLP\vdeepke\lib\site-packages\google\protobuf\descriptor.py", line 560, in new
_message.Message._CheckCalledFromGeneratedFile()
TypeError: Descriptors cannot not be created directly.
If this call came from a _pb2.py file, your generated code is out of date and must be regenerated with protoc >= 3.19.0.
If you cannot immediately regenerate your protos, some other possible workarounds are:

Downgrade the protobuf package to 3.20.x or lower.
Set PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python (but this will use pure-Python parsing and will be much slower).

More information: https://developers.google.com/protocol-buffers/docs/news/2022-05-06#python-updates
或者：
Traceback (most recent call last):
File "C:\Program Files\Python38\lib\runpy.py", line 194, in _run_module_as_main
return run_code(code, main_globals, None,
File "C:\Program Files\Python38\lib\runpy.py", line 87, in run_code
exec(code, run_globals)
File "c:\Users\Administrator.vscode\extensions\ms-python.python-2022.12.0\pythonFiles\lib\python\debugpy\adapter/../..\debugpy\launcher/../..\debugpy_main.py", line 39, in
cli.main()
File "c:\Users\Administrator.vscode\extensions\ms-python.python-2022.12.0\pythonFiles\lib\python\debugpy\adapter/../..\debugpy\launcher/../..\debugpy/..\debugpy\server\cli.py", line 430, in main
run()
File "c:\Users\Administrator.vscode\extensions\ms-python.python-2022.12.0\pythonFiles\lib\python\debugpy\adapter/../..\debugpy\launcher/../..\debugpy/..\debugpy\server\cli.py", line 284, in run_file
runpy.run_path(target, run_name="main")
File "c:\Users\Administrator.vscode\extensions\ms-python.python-2022.12.0\pythonFiles\lib\python\debugpy_vendored\pydevd_pydevd_bundle\pydevd_runpy.py", line 321, in run_path
return run_module_code(code, init_globals, run_name,
File "c:\Users\Administrator.vscode\extensions\ms-python.python-2022.12.0\pythonFiles\lib\python\debugpy_vendored\pydevd_pydevd_bundle\pydevd_runpy.py", line 135, in run_module_code
run_code(code, mod_globals, init_globals,
File "c:\Users\Administrator.vscode\extensions\ms-python.python-2022.12.0\pythonFiles\lib\python\debugpy_vendored\pydevd_pydevd_bundle\pydevd_runpy.py", line 124, in run_code
exec(code, run_globals)
File "D:\NLP\DeepKE\DeepKE-main-6808f15/example/ner/standard/predict_test.py", line 1, in
from deepke.name_entity_re.standard import *
File "d:\NLP\DeepKE\DeepKE-main-6808f15\venv\lib\site-packages\deepke-2.0.5-py3.8.egg\deepke_init.py", line 1, in
from .attribution_extraction import *
File "d:\NLP\DeepKE\DeepKE-main-6808f15\venv\lib\site-packages\deepke-2.0.5-py3.8.egg\deepke\attribution_extraction_init.py", line 1, in
from .standard import *
File "d:\NLP\DeepKE\DeepKE-main-6808f15\venv\lib\site-packages\deepke-2.0.5-py3.8.egg\deepke\attribution_extraction\standard_init.py", line 1, in
from .models import *
File "d:\NLP\DeepKE\DeepKE-main-6808f15\venv\lib\site-packages\deepke-2.0.5-py3.8.egg\deepke\attribution_extraction\standard\models_init.py", line
7, in
from .LM import LM
File "d:\NLP\DeepKE\DeepKE-main-6808f15\venv\lib\site-packages\deepke-2.0.5-py3.8.egg\deepke\attribution_extraction\standard\models\LM.py", line 7, in

from transformers import BertModel
File "d:\NLP\DeepKE\DeepKE-main-6808f15\venv\lib\site-packages\transformers-3.4.0-py3.8.egg\transformers_init.py", line 135, in
from .pipelines import (
File "d:\NLP\DeepKE\DeepKE-main-6808f15\venv\lib\site-packages\transformers-3.4.0-py3.8.egg\transformers\pipelines.py", line 37, in
from .tokenization_auto import AutoTokenizer
File "d:\NLP\DeepKE\DeepKE-main-6808f15\venv\lib\site-packages\transformers-3.4.0-py3.8.egg\transformers\tokenization_auto.py", line 117, in
from .tokenization_albert_fast import AlbertTokenizerFast
File "d:\NLP\DeepKE\DeepKE-main-6808f15\venv\lib\site-packages\transformers-3.4.0-py3.8.egg\transformers\tokenization_albert_fast.py", line 23, in
from .tokenization_utils_fast import PreTrainedTokenizerFast
File "d:\NLP\DeepKE\DeepKE-main-6808f15\venv\lib\site-packages\transformers-3.4.0-py3.8.egg\transformers\tokenization_utils_fast.py", line 30, in
from .convert_slow_tokenizer import convert_slow_tokenizer
File "d:\NLP\DeepKE\DeepKE-main-6808f15\venv\lib\site-packages\transformers-3.4.0-py3.8.egg\transformers\convert_slow_tokenizer.py", line 27, in
from transformers.utils import sentencepiece_model_pb2 as model
File "d:\NLP\DeepKE\DeepKE-main-6808f15\venv\lib\site-packages\transformers-3.4.0-py3.8.egg\transformers\utils\sentencepiece_model_pb2.py", line 9, in

from google.protobuf import descriptor as _descriptor
ModuleNotFoundError: No module named 'google.protobuf'
Environment (please complete the following information):

OS:  Windows
Python Version 3.8.10

Screenshots

If applicable, add screenshots to help explain your problem.

Additional context

Add any other context about the problem here.

非常感谢您的关注，我们会尽快安排开发同学修复这一bug

非常感谢您的关注，我们会尽快安排开发同学修复这一bug

国内实体抽取、实体关系抽取这一块，DeepKE是个比较好的框架，其它的，除了OpenNRE，就是一些算法给的Demo了，算不上框架。DeepKE集成了非常多的模型进去，而且在中文上支持最好。希望你们团队能坚持做下去。
非常期待你们支持事件抽取的下一个版本发布@zxlzr。

非常感谢您的关注，我们会尽快安排开发同学修复这一bug

另外我有个调研，不知道你们是否愿意在DeepKE的实现中吸取一些目前高性能算法的实现经验？
如：

等。

您的这个建议非常好，我们会先调研一下


Port Bootstrap module to Java

https://github.com/CategoricalData/hydra/blob/main/hydra-haskell/src/main/haskell/Hydra/Dsl/Bootstrap.hs

Note: the DSL modules do not need to be ported in a 1:1 fashion to Java -- the DSLs are free to make use of any language features which makes it convenient and idiomatic to create models and transformations in that particular language, and parity between languages is not necessary here. In this case, since the source of truth for Hydra Core is in Haskell, the bootstrap module might only be needed in Haskell.


Content Type & multipart boundary ignored when using Request object

Hello!
I ran into this issue today where I was attempting to upload a file using isomorphic-fetch, which appears to use github/fetch polyfill.
Uploading with the following signature will result in a content type header with multipart boundary:
const headers = new Headers({ 'Accept': 'application/json' });
const body = new FormData();
body.append('myImageFile', file);
const options = { body, headers };
fetch(url, options);
// content-type:multipart/form-data; boundary=----WebKitFormBoundary5FPg0s6HB9BmL6m3

However, the following signature does create a Content-Type header at all:
const headers = new Headers({ 'Accept': 'application/json' });
const body = new FormData();
body.append('myImageFile', file);
const options = { body, headers };
const request = new Request(url, options);
fetch(request);

I'm not familiar with the fetch whatwg spec, but rather just presenting an observation I've seen when comparing to the fetch implementation in Chrome 56 where one can do fetch(request) and the content type header will be automatically set.
Edit: Using Version 1.0.0

We can't provide support for isomorphic-fetch, since that's a different project. Are you saying that this issue comes exclusively from our code? Are you able to replicate it if you load our own fetch.js on the page and not the isomorphic-fetch project? Which browser version are you able to replicate this on?

Apologies, I followed the trail here but was not able to reproduce using fetch.js from this repo as of today. Thank you for your time.


Stuck at "Fetching Access Logs..." for production site

Before opening, please confirm:

[X] I have checked to see if my question is addressed in the FAQ.
[X] I have searched for duplicate or closed issues.
[X] I have read the guide for submitting bug reports.
[X] I have done my best to include a minimal, self-contained set of instructions for consistently reproducing the issue.

App Id
d2d6ty1wlg8jch
Region
us-east-1
Amplify Console feature
Logging
Describe the bug
Trying to fetch access logs for our production site, but the thing is stuck at "Fetching access logs.." even when I try to limit timeframe.
Other (non-production, lower traffic) sites retrieve access logs fine.
Expected behavior
Should retrieve access logs
Reproduction steps

Try to retrieve access logs for domain source that has lots of traffic.

Build Settings
No response
Additional information
No response

#1004
@hisham are you able to use the CLI workaround to get access logs for shorter timeframes, i.e.
aws amplify generate-access-logs --app-id <appId> --domain-name 'example.com' --start-time 2021-01-13T14:00:00Z --end-time 2021-01-13T14:59:59Z

Yes that worked.

Ok, I'm closing this for now, please #1004 for this issue/fix


Usage with Native Torch

Hi there,
How do you integrate this torch toolbox with a native installation of Torch?
Do you have a documentation or something related?
Cloning to my existing Torch installation directory seem to work well for me. But I get a compilation error:
/home/lex/torch/install/bin/luajit: farnnConv.lua:256: attempt to call a boolean value
stack traceback:
    farnnConv.lua:256: in main chunk
    [C]: in function 'dofile'
    .../lex/torch/install/lib/luarocks/rocks/trepl/scm-1/bin/th:145: in main chunk
    [C]: at 0x00406670

The code section in question is:
mlp        = nn.Sequential();
input = 1    output = 1     HUs = 1;                   -- Hidden units in dynamic layer parameters
mlp:add(nn.Linear(input, HUs))
mlp:add(nn.ReLU())
--mlp:add(nn.Linear(HUs, output))
mlp:add(nn.SpatialConvolutionMM(3,4,5,5))

method = 'xavier'
mlp_x = require('weight-init')(mlp, method)

Thanks!

@lakehanne Each module in the toolbox is meant to work without extra installation. For the weight initialization, all you need is to copy weight-init.lua into your working directory.
I've tested the code block to replicate the error but I could not. And the error msg does not seem to be related to the weight initialization module. One more comment is that using Linear with SpatialConvolutionMM will not work due to the dimension mismatch.

I sent you an email. Please take a look at the code. Thanks!

please let me know if you need more help

@jhjin Hi! I copy weight-init.lua from https://github.com/e-lab/torch-toolbox/blob/master/Weight-init/weight-init.lua into my work dictionary, but the error still exists.
Could you help me if you know more reason?
Thank you very much!!!

@jhjin My related code is:
loadModel = false
if loadModel ~= true then
W = torch.load('c3d.t7')
local method = 'xavier'
model = require('weight-init')(model, method)


meson build

See #89, switching from deprecated numpy.distutils to meson should help fixing the pip installation problems and allow a new release.

I'm working on this now. A question @rc: would you want to rely on SWIG from PyPI (https://pypi.org/project/swig/), or do you prefer anyone who builds from source to install it with their system package manager? I don't have any experience with the PyPI package, so don't really know.

FWIW, I have always used the swig installed by a system package manager, and had not been aware that there is also a PyPi package.

Superseded by #91.


Request for Chrome Extension Support and Ad Blocker Recommendation

Dear Microsoft Edge Developers,
I hope this email finds you well. I am a loyal user of the Microsoft Edge browser on both desktop and mobile devices and I appreciate the effort you put into constantly improving the user experience.
I am writing to bring to your attention my desire to use Chrome extensions on the Edge mobile browser. As a user, I find it extremely convenient to have access to my favorite extensions on all my devices, and I believe this feature would greatly enhance the overall user experience on Edge mobile.
In addition, I would like to recommend the use of uBlock Origin as the preferred ad blocker on Edge mobile. While Adblock Plus is a great ad blocker, uBlock Origin is a more efficient and lightweight solution, which I believe would greatly improve the performance of the Edge mobile browser.
I appreciate your consideration and look forward to any updates regarding the integration of Chrome extensions and the recommendation of uBlock Origin as the preferred ad blocker on Edge mobile.
Thank you!

Thank you for reaching out. However this repository is specifically focused on DevTools (the web development tools that are embedded inside of Microsoft Edge). This repo isn't a place to provide feedback about the browser itself.
Here are two ways to send your feedback to the Edge development team:

In the Edge browser, on desktop, press Alt+Shift+I to open the feedback window.
Or, join the edgeinsiders forum to discuss with the community: https://techcommunity.microsoft.com/t5/microsoft-edge-insider/ct-p/MicrosoftEdgeInsider

Hope this useful.


BEEP, BLM-IT, TraceIT, Multi-IT and VeryfIT

Addition of different tasks in the context of Calamita2024

BEEP
BLM-IT split in 3 subgroups, each composed of 4 individual tasks

agr_tasks
od_tasks
caus_tasks

TraceIT
Multi-IT split in 2 subtasks

Multi-it-a
Multi-it-c

VeryfIT split in 3 subtasks

VeryfIT_full
VeryfIT_raw
VeryfIT_enriched

testing is needed at least for BLM-IT and Multi-IT.
BLM-IT required an alteration of the original dataset, as it was giving an error related to hf conversion. I can share this altered version or give instructions on how to make it.
For the VeryfIT and MultiIT datasets you can ask me.

 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.

I am new to this (this is my first pr ever) but how were this tests performed? blm-it, veryfIT and Multi-IT datasets are not publicly available.
blm-it and veryfIT expecially i am the only one having the datasets


[REQUEST] Please add support for Nature's Spirit woods to the Sawmill

Description:
Title
Reason:
More compatibility more betterer.

You can do this with a datapack.


[loc] [Query] Incorrect Hungarian translation of "Git: Delete Branch..."

In the command palette when working on a git project, the Hungarian translation of "Git: Delete Branch" is incorrect. The current one ("Git: Új ág létrehozása") means "Git: Create Branch", and is also used to translate "Git: Create Branch" in the command palette. The correct translation is "Git: Ág törlése".

VSCode Version: 1.24.1
OS Version: Ubuntu 18.04 LTS x86_64

Steps to Reproduce:

Install Hungarian translation
Open a git folder
Go into command palette and start typing "Git: Delete Branch"

Does this issue occur when all extensions are disabled?: Yes

@doczi-dominik , thank you for your feedback! Hungarian translation is a community localization project. Please visit http://aka.ms/vscodeloc for project info. And sign up Transifex free to fix the translation.
@qcz , FYI.

@doczi-dominik: Thank you very much for the bug report and the suggestion on Transifex. However it should have a triple ellipsis (...) at the end of the text. Update your translation and I'll vote for it, so it will be the selected translation.

Alright, I updated my translation. Thank you very much for your help!


Performance tracking issue

Performance is currently only beating linear (which is incredibly fast on modern processors) for exact search at > 1M features. This is probably beatable, but it will require some optimizations. Below is the list of optimizations and their issues that need to be made:

[x] Use packed_simd to speed up FeatureHeap::add
[ ] Implement more SIMD optimizations upstream in swar
[ ] Investigate if the search module can be sped up using SIMD or bit twiddling
[ ] Convert search module to use a hand-optimized iterator for each level of the tree

After closing #7 I am now getting the following:
neighbors/nearest_1_hwt_maxerr_0/16777216
                        time:   [17.479 ms 17.687 ms 17.849 ms]

This is a reasonable speedup over linear at 2^24 features.


Add linux USD variant

Add USD for linux, small fixes, updated dependencies.

Testing On Amla-Linux 9
when running the branch, it's always downloads Usd again, even if I just restart the Launcher.

Im running the launcher via poetry run python start.py --use-dev just so you know


chore: fix ci and cleanup leftovers

removed leftover feature flags
remove zip/extract apis which are not used anymore
removed leftoever scopes
removed leftover allowlist
updated the example api
moved updater config under bundle key and remove unneeded bits
removed handling of APPIMAGE_BUNDLE_XDG_OPEN env var in CLI, since the shell APIs are moved to its plugins. we either allow plugins to hook into the build pipeline or users specify it before building.

Questions

there is now a EventLoopMessage enum with 0 variants, not sure what to do about?
there is a process-relaunch-dangerous-allow-symlink-macos feature flag that existed, probably for the removed process.relaunch JS API, is it still needed?

What kind of change does this PR introduce?

[ ] Bugfix
[ ] Feature
[ ] Docs
[ ] New Binding issue #___
[ ] Code style update
[x] Refactor
[ ] Build-related changes
[ ] Other, please describe:

Does this PR introduce a breaking change?

[ ] Yes, and the changes were approved in issue #___
[ ] No

Checklist

[ ] When resolving issues, they are referenced in the PR's title (e.g fix: remove a typo, closes #___, #___)
[ ] A change file is added if any packages will require a version bump due to this PR per the instructions in the readme.
[ ] I have added a convincing reason for adding this feature, if necessary

Other information

EventLoopMessage should be removed.
process-relaunch-dangerous-allow-symlink-macos is still used in tauri-utils.


[examples /  integration ] Add Hugging Face transformers example

What does this PR do?
First of all, thanks for your great work building this library and method!
We are currently working to natively integrate inference using AWQ algorithm in Hugging Face transformers library to add its support in the next release. The PR can be found here: https://github.com/huggingface/transformers/pull/27045
In that PR we support two scenarios to load quantized models either from a local path or from the Hub.
1- Models that has been quantized using autoawq library
2- Models that has been quantized using llm-awq (this repository)
For the first scenario users can either refer to the documentation of autoawq, or load weights from @TheBloke repositories.
For the second scenario, users can use quantization scripts from this repository (I used chat_demo.ipynb on vicua-7b-1.5) and perform a simple change to push transformers-compatible quantized weights on the Hub, as demonstrated in the convert_to_hf.py script I exposed.
How to test this PR?
installation
You can install my branch of transformers
pip install -U git+https://github.com/younesbelkada/transformers.git@add-awq

And of course, install this library by building its kernels.
Quantization
1- Follow the exact same quantization procedure described in chat_demo.ipynb and test it on any model, for example lmsys/vicuna-7b-v1.5 and save it somewhere locally (git clone https://huggingface.co/lmsys/vicuna-7b-v1.5)
2- Connect to HF hub with huggingface-cli login
3- Go to examples/ and run: python3 convert_to_hf.py --model_path lmsys/vicuna-7b-v1.5 --quantized_model_path PATH_TO_LOCAL_QUANT_MODEL --quantized_model_hub_path HUB_PATH_TO_PUSH_QUANT_MODEL
Your model is now under your namespace on the Hub
Inference
Simply run the script below:
import torch
from transformers import AutoModelForCausalLM, AutoTokenizer

model_id = "ybelkada/vicuna-7b-1.5-awq"

tok = AutoTokenizer.from_pretrained(model_id)
tok.pad_token = tok.eos_token

model = AutoModelForCausalLM.from_pretrained(model_id).to(0)

print(model)

text = ["USER:\nShow me some attractions in Boston.\n\nASSISTANT:\n"]
input_ids = tok(text, return_tensors="pt", padding=True).to(0)

output = model.generate(**input_ids, max_new_tokens=40)
print(tok.batch_decode(output, skip_special_tokens=False))

Let me know what do you think!
cc @songhan @zhijian-liu @tonylins @casper-hansen @TheBloke @SunMarc
In case we want to merge this, let's do it after https://github.com/huggingface/transformers/pull/27045 being merged

Thanks for the efforts! Adding @kentang-mit @ys-2020 for visibility. We will take a deeper look into the implementation.
One question, though, is about the kernel implementation. Do you have any idea what kind of W4A16 kernel will be integrated? The kernel implementation will impact inference efficiency. We are looking to release a newer version recently.

Do you have any idea what kind of W4A16 kernel will be integrated

The GEMV kernel that llm-awq currently quantizes models with. For AutoAWQ, you can switch between GEMM and GEMV kernel. I will make sure to bring it up to the HF team when you @tonylins push a new kernel because we are all interested in as fast models as possible.

Thanks a lot @tonylins !
As you can see here: https://github.com/younesbelkada/transformers/blob/add-awq/src/transformers/integrations/awq.py#L40-L43 the corresponding linear layer class is directly inferred from the backend attribute of the config. We don't host any kernel on transformers and it is up to the user to install either llm-awq following the guildelines, or autoawq. So if the kernel is directly called through WQLinear I believe we don't have to do any modification on transformers side.
Note also that we don't support fusing (yet), for now I would say we will leave that to superusers, but if a lot of interest arises from community we will consider adding it in transformers directly.
Let me know if you have more questions or if you face into any issue

@younesbelkada @casper-hansen Thanks for the explanation!

Just realized the PR to transformers has not been merged lol (https://github.com/huggingface/transformers/pull/27045)
Is there a timeline to merge it? Otherwise, we may need to revert the news section @younesbelkada

hahah no worries, we plan to merge it sometime around next week hopefully therefore it should be aligned with the timeline specified on the README!


Add rule for approving vignettes in contributing

Need two sets of eyes before vignettes are approved.

addressed in cb81a20

Addressed in full (hopefully) in #69.


Configure antd theme

Description
I am trying to configure antd theme in react-boilerplate. I saw the issue 2027. This is exactly what I want but I tried the given configuration in the accepted answer and it doesn't work for me.
Steps to reproduce
In vanilla react-boilerplate repo, I installed antd.
In the HomePage (index.js), I added a button, checkbox as
<Button type="primary">Primary</Button>
<Checkbox onChange={onChange}>Checkbox</Checkbox>

My webpack.base.babel.js looks like
const path = require('path');
const fs = require('fs');
const lessToJs = require('less-vars-to-js');
const themeVariables = lessToJs(fs.readFileSync(path.join(__dirname, './../../app/theme.less'), 'utf8'));

and one of the rule is
      {
        test: /\.less$/,
        include: /node_modules/,
        use: [
          'style-loader',
          'css-loader',
          {
            loader: 'less-loader',
            options: {
              modifyVars: themeVariables,
            },
          },
        ],
      },

The theme.less file is
@ant-prefix: ant;

@primary-color: #ff0000;
@btn-primary-color: #ff0000;
@checkbox-color: #ff0000;
@checkbox-check-color: #ff0000;

I tried overriding any possible colour in Button or Checkbox but couldn't get the theme colour changed.
Is there something I am missing? I have been stuck at this point from a long time. Any suggestion would be of great help.
Versions

React-Boilerplate: 3.7.0
Node/NPM: >=8.10.0 (node)
Browser: Google Chrome 73

Hi Nitesh, I apologize but we can't help you. The issues section is specifically meant for pointing out defects inside the boilerplate itself and suggesting enhancements. Since your issue is a personal help request, please refer to Google or StackOverflow instead. Good luck!


Change target SDK to 10586 until 14267 is released

Currently only developers that have risked putting the preview SDK on their machines can load 14267 targeted projects.

Considering the redstone release will be soon, I close this issue and will wait for the final release.
FYI - For anyone reading this that can't install 14267 on their machine, you can simply edit the csproj directly. When the project loads, replace the referenced extension shims.


Adds interactive session scroller

Adds an interactive session plot that allows the user to scroll through the session, and zoom in and out with keyboard presses
example:

This looks great! We can also turn it to plotly and embed it in the streamlit app.

@hanhou This is ready for review (linting took forever!)

Are you planning to add a test function of it eventually?

Are you planning to add a test function of it eventually?

I wasn't going to. My thinking is that any test function would only check whether the plot is generated, and not whether the plot is accurate. It seemed like extra work without value. Open to being convinced otherwise if you think its valuable.

Okay fair enough.


Entangled-capture bug

If a capture occurs through another piece, the target square becomes superposed between two pieces. A measurement has to occur.

Solved with the new measurement engine


use 1.8.10-4.1 becsuse old version is gone from https://yum.oracle.co…

…m/repo/OracleLinux/OL9/developer/EPEL/x86_64/index_src.html certainly in aarch64 and maybe soon in amd64
Description

Related issues/PRs

Todos

[ ] Tests
[ ] Documentation
[ ] Release note

Release Note

TBD

Reminder for the reviewer
Make sure that this PR has the correct labels and milestone set.
Every PR needs one docs-* label.

docs-pr-required: This change requires a change to the documentation that has not been completed yet.
docs-completed: This change has all necessary documentation completed.
docs-not-required: This change has no user-facing impact and requires no docs.

Every PR needs one release-note-* label.

release-note-required: This PR has user-facing changes. Most PRs should have this label.
release-note-not-required: This PR has no user-facing changes.

Other optional labels:

cherry-pick-candidate: This PR should be cherry-picked to an earlier release. For bug fixes only.
needs-operator-pr: This PR is related to install and requires a corresponding change to the operator.

/sem-approve

/sem-approve


Improve code coverages using different technique in analyzers

The currently implemented package analyzers provide a limited coverage of the code when the payload is hiding in non setup/import phase
Suggesting to improve coverage with a best-effort approach to reflect and dynamically instantiate objects inside the package to increase the analysis coverage.
From my experience with this approach implemented in another similar project, I can share this is doable in a reasonable time for the following languages:
Javascript
Python
Java
Groovy
C#
Clojure
Scala
Kotlin
I'm planning to contribute it to this project, let me know WDYT

This sounds very cool! Of the languages you listed, we currently only have support for JavaScript and Python, but even for those two we would love to have your contribution!

Indeed, big +1 to this! This has been on our wishlist for a while.


MKL in Docker seems not working

Dear fellow coders,
Today I tried to get MKL working in the microsoft/aspnetcore:2.0 Docker.
For this I downloaded the compiled MKL from https://www.nuget.org/packages/MathNet.Numerics.MKL.Linux/ .
The setting MathNet.Numerics.Control.NativeProviderPath points to a directory where both the libiomp5.so as well as MathNet.Numerics.MKL.dll are located.
The first error I get is Unable to load DLL 'libdl.so'. This is solved by doing ln -s /lib/x86_64-linux-gnu/libdl.so.2 /lib/x86_64-linux-gnu/libdl.so as mentioned in https://github.com/dotnet/corefx/issues/25102 .
However when this error is fixed, calling MathNet.Numerics.Control.UseNativeMKL(); gives me the following error
System.NotSupportedException: MKL Native Provider not found. ---> System.DllNotFoundException: Unable to load DLL 'MathNet.Numerics.MKL.dll': The specified module or one of its dependencies could not be found.
container_1  |  (Exception from HRESULT: 0x8007007E)
container_1  |  at MathNet.Numerics.Providers.Common.Mkl.SafeNativeMethods.query_capability(Int32 capability)

Although this dll is present in the nativeproviderpath..
Does any of you have pointers how this could be solved, or how I can help to solve this?
Thank you in advance, the library is much appreciated!
Best regards,
Arthur

Ok, copying the files to a location as described in https://stackoverflow.com/questions/31351343/mono-mathnet-mkl-nativer-provider-not-found at least replaced the error by:
Could not load MKL: System.NotSupportedException: MKL Native Provider revision r9 is too old. Consider upgrading to a newer version. Revision r11 and newer are supported.

OK, perfect!, looking at the code it seems that only the fourier transform MKL will not be loaded but for linear algebra it will use the latest version; issue solved, thank you.
Although it might be relevant to one time have the latest MKL providers for Linux.

Could not load MKL: System.NotSupportedException: MKL Native Provider revision r9 is too old. Consider upgrading to a newer version. Revision r11 and newer are supported.
how resolve this issues?

@arthurvb
Could not load MKL: System.NotSupportedException: MKL Native Provider revision r9 is too old. Consider upgrading to a newer version. Revision r11 and newer are supported.
how resolve this issues?

@SarcoZ  This is probably way too late for you, but will hopefully be useful to anyone else searching for this error message.
If you're wanting to use Fourier Transforms, you're probably SOL, I can't see any way to make that work.
If all you want is the linear algebra, you probably got this error message by calling MathNet.Numerics.Control.UseNativeMKL(). Behind the scenes, this will then go call UseNativeMKL on both the linear algebra and the fourier transform controls, and the latter appears to not work on Linux.
If you instead call MathNet.Numerics.Providers.LinearAlgebra.LinearAlgebraControl.UseNativeMKL(), you should be good.


add invalid propose metrics

Signed-off-by: பாலாஜி ஜின்னா<EMAIL_ADDRESS>
What have you changed? (mandatory)
I've added metrics for invalid raft proposal
and also changed RaftMetrics to RefCell RaftMetrics
Please explain IN DETAIL what the changes are in this PR and why they are needed:

Summarize your change (mandatory)

  // Check store_id, make sure that the msg is dispatched to the right place.
        util::check_store_id(msg, self.store_id())?;
        if msg.has_status_request() {
            // For status commands, we handle it here directly.
            let resp = self.execute_status_command(msg)?;
            return Ok(Some(resp));
        }

        // Check whether the store has the right peer to handle the request.
        let peer = self.check_propose_peer(msg)?; //immutable borrow
        // peer_id must be the same as peer's.
        util::check_peer_id(msg, peer.peer_id())?;
        // Check whether the term is stale.
        util::check_term(msg, peer.term())?;

let peer = self.check_propose_peer(msg)?; immutable borrow happening here so I've changed into RefCell for interior mutablility
Please NOTE that:

Do not assume reviewers understand the original issue

What are the type of the changes? (mandatory)

Little bit refactoring and added invalid proposal metrics
Improvement (non-breaking change which is an improvement to an existing feature)

How has this PR been tested? (mandatory)
make dev
Does this PR affect documentation (docs/docs-cn) update? (mandatory)
no
Does this PR affect tidb-ansible update? (mandatory)
not sure
If there is a configuration or metrics change, please file a PR in tidb-ansible, and add the PR number here.
Refer to a related PR or issue link (optional)
#2613

I have updated the branch.

There is only one place to call check_propose_peer, why not pass mut self to it?

@siddontang
...
1503 |                 let sibling_region_id = self.find_sibling_region(peer.region());
     |                                         ^^^^ immutable borrow occurs here
...
1513 |     }
     |     - mutable borrow ends here

error[E0502]: cannot borrow `self.region_peers` as immutable because `*self` is also borrowed as mutable
    --> src/raftstore/store/fsm/peer.rs:1505:42
     |
1491 |         let peer = self.check_propose_peer(msg)?;
     |                    ---- mutable borrow occurs here
...
1505 |                     let sibling_region = self.region_peers[&sibling_region_id].region();

mutable borrow block is end of the function. can't able to do the immutable borrow in between.

@overvenus I have updated it. :)

PTAL @siddontang

@overvenus Please add metrics to tidb-ansible. Thanks!


hnswlib: 0.7.0 -> 0.8.0

Description of changes
Diff: https://github.com/nmslib/hnswlib/compare/refs/tags/v0.7.0...v0.8.0
Changelog: https://github.com/nmslib/hnswlib/releases/tag/refs/tags/v0.8.0

Things done

Built on platform(s)

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

For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)

[ ] sandbox = relaxed
[x] sandbox = true

[x] Tested, as applicable:

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

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

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

[x] Fits CONTRIBUTING.md.

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

Result of nixpkgs-review pr 275772 at ab7e23b0 run on aarch64-darwin 1

3 packages built successfully:

hnswlib
python310Packages.hnswlib
python311Packages.hnswlib


DTVF: Selecting the same time series entry twice causes issues

Originally reported by @msff2, it appears that after selecting a feature and viewing its time series data, selecting the same feature again causes issues in the time series chart.

.

This was due to a regex issue that needs to match the date strings before and after conversion to the Moment object format. It has been resolved via commit 52ac364f1bec2909973aea962a9cce14faf0d16f.


Setting environment variable DOCKER_CONTENT_TRUST

How do you set the DOCKER_CONTENT_TRUST environment variable in a d-m-p section to ensure that downloaded docker images are properly signed and not tampered with?
I can't even see how to set any docker environment variable so i guess I'm missing a piece of the puzzle.

f-m-p version : 0.22.1
Maven version (mvn -v) : 3.3.9

Did you accidently posted dmp issue on fmp(fmp includes dmp bdw :-) )? Anyways, please take a look at http://dmp.fabric8.io/#property-configuration and see if it helps :)


Did this project get abandoned lol

Finished != Abandoned

This project is ongoing but isn't a priority to me as I have other (modding) projects which are more important. Still open to PRs.


Local fallback for everything

[x] JQuery
[ ] Material Design Icons (http://google.github.io/material-design-icons/#icon-font-for-the-web)
[ ] JQuery.Lazy
[ ] Bootstrap

http://stackoverflow.com/questions/5257923/how-to-load-local-script-files-as-fallback-in-cases-where-cdn-are-blocked-unavai

since everything except fontawesome and litelement are offline, i think this no longer applies


SEAB-6360: download github event from s3

Description
This PR creates a module githubdelivery and adds a command download-event to return the github payload from s3 from its key.
Review Instructions
It was the easiest to run on CloudWatch.
Steps I used was

Install Java sudo yum install java-17-amazon-corretto
clone the repo
Build only the githubdelivery module by running ./mvnw install -pl githubdelivery -am
Configure your github-delivery.config for QA (template in templates folder)
Go to the module and run java -jar target/githubdelivery-1.16.0-SNAPSHOT.jar download-event -k "2024-05-15/004701ac-1307-11ef-94b7-6b9aec991740" and verify the payload is printed on the console.

Issue
https://ucsc-cgl.atlassian.net/browse/SEAB-6360
Security
If there are any concerns that require extra attention from the security team, highlight them here.
Please make sure that you've checked the following before submitting your pull request. Thanks!

[x] Check that you pass the basic style checks and unit tests by running mvn clean install in the project that you have modified (until https://ucsc-cgl.atlassian.net/browse/SEAB-5300 adds multi-module support properly)
[x] Ensure that the PR targets the correct branch. Check the milestone or fix version of the ticket.
[x] If you are changing dependencies, check with dependabot to ensure you are not introducing new high/critical vulnerabilities
[x] If this PR is for a user-facing feature, create and link a documentation ticket for this feature (usually in the same milestone as the linked issue). Style points if you create a documentation PR directly and link that instead.

It was the easiest to run on CloudWatch.

CloudShell :) Too may terms with "Cloud" in them...

2. clone the repo

3. Build only the `githubdelivery` module by running `./mvnw install -pl githubdelivery -am`

You could perform a release once this is merged to develop so the reviewer can just wget the JAR from artifactory

I created ticket https://ucsc-cgl.atlassian.net/browse/SEAB-6452 For followup


New query builder clause should have '=' operator

Storage Explorer Version: 1.29.0
Build Number: 20230421.4
Branch: rel/1.29.0
Platform/OS: Windows 10/Linux Ubuntu 22.04/MacOS Ventura 13.3.1 (Apple M1 Pro)
Architecture: ia32/x64/arm64
How Found: From running test case
Regression From: Previous release (1.28.1)
Steps to Reproduce

Expand one storage account -> Tables.
Create a table -> Add one entity.
Click 'Query' -> Click 'Add new clause'.
Check whether the default operator is '='.

Expected Experience
The default operator is '='.

Actual Experience
The default operator is '>='.

Additional Context
The default operator is '=' if reopen the table then click 'Query'.

This is more for consistency with the previous query builder implementation than an actual bug.

Verified this issue on the build main 20230422.8. Fixed.