sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: godot
Issue: Godot 4.0 RC3 `class_get_enum_constants` not working for `GlobalScope` enums
Labels: bug,topic:gdscript

### Godot version

v4.0.rc3.official [7e79aead9]

### System information

ALL

### Issue description

For my mock implementation, since Godot.RC3, I now require a concrete enum value as the default return value.

to build this return value i use the meta info getting by `ClassDB.class_get_method_list(clazz_name)`
and extract the enum class from
`var  method_descriptor["return"]["class_name"]`
e.g.  `Image.Format` or `Error`

Using `ClassDB.class_get_enum_constants()` works fine for all engine classes except for enums of `GlobalScope` and custom classes.
The result are empty.

### Steps to reproduce


```
class_name EnumTest
extends Control

enum CUSTOM {
	FOO,
	BAR
}

func _ready():
	# custom class
	prints(ClassDB.class_get_enum_constants("EnumTest", "CUSTOM"))
	# engine class
	prints(ClassDB.class_get_enum_constants("Image", "Format"))
	# GlobalScope
	prints(ClassDB.class_get_enum_constants("GlobalScope", "Error"))
```

I only shows the enums keys for `Image.Format` in this example

### Minimal reproduction project

N/A
Repository: pytorch
Issue: Parallel Associative Scan
Labels: feature,triaged,oncall: pt2,module: functorch,module: pt2-dispatcher

### 🚀 The feature, motivation and pitch

It would be great to have a general parallel prefix sum (associative scan) operation in PyTorch, something like [associative_scan](https://jax.readthedocs.io/en/latest/_autosummary/jax.lax.associative_scan.html) in JAX or [scan_associative](https://www.tensorflow.org/probability/api_docs/python/tfp/math/scan_associative) in TensorFlow Probability. This operation is key for the parallelization of some algorithms in CRFs, [filtering/smoothing in state space models](https://github.com/EEA-sensors/sequential-parallelization-examples/blob/main/python/temporal-parallelization-bayes-smoothers/parallel_kalman_jax.ipynb), etc.

### Alternatives

I found [this implementation](https://github.com/lxxue/prefix_sum) but it's only for computing the prefix sum and not for general associative binary operations. It would be great to have native support for arbitrary binary operators. 

### Additional context

_No response_

cc @ezyang @gchanan @zou3519 @soumith @msaroufim @wconstab @ngimel @bdhirsh @anijain2305 @Chillee @samdow @kshitij12345 @janeyx99
Repository: next.js
Issue: SWC Emotion css prop transform fails if object is spread into props and key prop is set
Labels: bug,SWC

### Verify canary release

- [X] I verified that the issue exists in the latest Next.js canary release

### Provide environment information

    Operating System:
      Platform: darwin
      Arch: x64
      Version: Darwin Kernel Version 22.3.0: Mon Jan 30 20:42:11 PST 2023; root:xnu-8792.81.3~2/RELEASE_X86_64
    Binaries:
      Node: 19.6.1
      npm: 9.4.0
      Yarn: 1.22.19
      pnpm: 7.27.0
    Relevant packages:
      next: 13.1.7-canary.32
      eslint-config-next: N/A
      react: 18.2.0
      react-dom: 18.2.0

### Which area(s) of Next.js are affected? (leave empty if unsure)

SWC transpilation

### Link to the code that reproduces this issue

https://github.com/GrantASL19/nextjs-emotion-css-prop-with-key-prop-bug-repo

### To Reproduce

* `npm run dev`
  * Note that “Should be red because headingOutsideStyles passed to css prop” text is blue (and `DemonstrationHeading` `className` prop is undefined), but if `{...{}}` and/or `key={1}` is commented out it turns red (and `className` prop is defined)
* Stop the Next server
* Rename `.babelrc-disabled` or `.babelrc` to opt in to Babel compiler (with Emotion [configured](https://github.com/vercel/next.js/blob/canary/examples/with-emotion/.babelrc) via `@emotion/babel-plugin`)
* `npm run dev`
  *  Note that “Should be red because headingOutsideStyles passed to css prop” text is red, and remains red if `{...{}}` and/or `key={1}` is commented out

### Describe the Bug

If an object is spread into a component’s props AND the `key` prop is set the SWC Emotion `css` prop transform will fail, causing the `css` prop to be passed as-is (as a `SerializedStyles` object) and the `className` prop to be undefined.

This applies to both intrinsic and custom components.

### Expected Behavior

The `css` prop (accepting `SerializedStyles` object) should be transformed to a `className` string regardless of the existence of object spreading and/or a `key` prop.

### Which browser are you using? (if relevant)

_No response_

### How are you deploying your application? (if relevant)

_No response_
Repository: godot
Issue: Instance Transform is not updated if changed in the original scene.
Labels: feature proposal,discussion,topic:core

### Godot version

v3.5.1.stable.official [6fed1ffa3]

### System information

Windows 11

### Issue description

Change of the root's Transform in the original scene is not propagated to its instance instanced in other scenes, if one of the transformations of the root is changed, for example, the position. 

Real-life example: It is not possible to change for example the scale of all instances of the scene by changing the scale of the root in its original scene.

Desired behavior is that if transformations in the Transform are presented as individual properties to a user and can be reset individually, should be also individually updated in instances.

### Steps to reproduce

1. Create a simple scene of object A with a root type that has Transform, for example, Spatial
2. Instantiate object A in another scene
3. Change any of the transformations on the instance of the object A, for example, position (like you would like to instantiate the object in your game level)
4. Now change the scale on the root node in the original scene of the object A. (like you would like to adjust the scale of all instances of this object in your whole game)
5. Instances are not updated, because of the changed position(transformations)
6. If you reset all transformations of the instance, it will be possible to update by changes in its original scene

### Minimal reproduction project

[RootTransformIssue.zip](https://github.com/godotengine/godot/files/10818589/RootTransformIssue.zip)
Repository: pytorch
Issue: DISABLED test_variant_consistency_jit_linalg_lstsq_cpu_complex64 (__main__.TestJitCPU)
Labels: triaged,module: flaky-tests,skipped,module: unknown

Platforms: win, windows, linux

This test was disabled because it is failing in CI. See [recent examples](https://hud.pytorch.org/flakytest?name=test_variant_consistency_jit_linalg_lstsq_cpu_complex64&suite=TestJitCPU) and the most recent trunk [workflow logs](https://github.com/pytorch/pytorch/runs/11557283803).

Over the past 3 hours, it has been determined flaky in 3 workflow(s) with 3 failures and 3 successes.

**Debugging instructions (after clicking on the recent samples link):**
DO NOT ASSUME THINGS ARE OKAY IF THE CI IS GREEN. We now shield flaky tests from developers so CI will thus be green but it will be harder to parse the logs.
To find relevant log snippets:
1. Click on the workflow logs linked above
2. Click on the Test step of the job so that it is expanded. Otherwise, the grepping will not work.
3. Grep for `test_variant_consistency_jit_linalg_lstsq_cpu_complex64`
4. There should be several instances run (as flaky tests are rerun in CI) from which you can study the logs.


Test file path: `test_ops_jit.py`
Repository: tauri
Issue: [feat] In app purchases for Mac OS
Labels: type: feature request

### Describe the problem

Is there a library to do in app purchases for Mac OS apps? I could not find any info anywhere for the same.
Electron has in-app purchases support - https://www.electronjs.org/docs/latest/tutorial/in-app-purchases


### Describe the solution you'd like

A library to support in-app purchases in Mac OS

### Alternatives considered

I am not sure there is any alternative or workaround to this right now. If anyone knows a solution please do share.
I want to try the cordovo plugin - https://github.com/j3k0/cordova-plugin-purchase but I am not sure if this will work. If it works then I will definitely share here.

### Additional context

_No response_
Repository: pytorch
Issue: PT2 Computes Multi Device Backward in a Single Thread
Labels: feature,low priority,triaged,oncall: pt2,module: inductor

### 🐛 Describe the bug

In PyTorch Eager when the backwards is invoked there is a separate thread per device that invokes nodes in the backward graph. However in PT2, this parallelism is lost as we will compile a backward with multiple devices into one single compiled function and invoked in one thread.



### Versions

master

cc @ezyang @msaroufim @wconstab @ngimel @bdhirsh @anijain2305 @voznesenskym @penguinwu @EikanWang @jgong5 @Guobing-Chen @XiaobingSuper @zhuhaozhe @blzheng @Xia-Weiwen @wenzhe-nrv @jiayisunx @peterbell10 @soumith
Repository: next.js
Issue: Error: Abort fetching component for route: "/[route]"
Labels: bug

### Verify canary release

- [X] I verified that the issue exists in the latest Next.js canary release

### Provide environment information

```
    Operating System:
      Platform: darwin
      Arch: arm64
      Version: Darwin Kernel Version 22.3.0: Mon Jan 30 20:39:35 PST 2023; root:xnu-8792.81.3~2/RELEASE_ARM64_T8103
    Binaries:
      Node: 16.19.0
      npm: 9.2.0
      Yarn: 1.22.19
      pnpm: N/A
    Relevant packages:
      next: 13.2.0
      eslint-config-next: 13.1.6
      react: 18.2.0
      react-dom: 18.2.0
```

### Which area(s) of Next.js are affected? (leave empty if unsure)

Routing (next/router, next/navigation, next/link)

### Link to the code that reproduces this issue

https://github.com/LucasLemanowicz/auth0-withclaimcheck-repro

### To Reproduce

1. Check out the project, `yarn`, and `yarn dev`
2. Open the Web Inspector window -> Network -> Throttling = Slow 3G
3. Click several times on the "Go to Unauthed Page" link
4. Error in console shows up

### Describe the Bug

When a visitor to your website clicks on links several times before the pages load, it triggers console errors about previous requests being aborted.

This shows up both during local dev, and when deployed in production.

There is no visitor-facing error, but it adds significant noise to any error logging tools.

The repro uses the latest release of NextJS, but my production environment is on NextJS v12.3.4

### Expected Behavior

I would expect no error in the console for cancelled/aborted requests.

### Which browser are you using? (if relevant)

_No response_

### How are you deploying your application? (if relevant)

_No response_
Repository: rust
Issue: Consider disabling LVI mitigations in the x86_64-fortanix-unknown-sgx target
Labels: O-x86_64,A-security,T-compiler,A-target-specs,O-SGX,A-target-feature

The x86_64-fortanix-unknown-sgx target currently has Load Value Injection (LVI) mitigations enabled by default. These mitigations were introduced by #72655.  At the time, these software mitigations were necessary on all Intel hardware to protect against the LVI vulnerability (CVE-2020-0551). Recent CPUs (such as Icelake and newer) now have hardware-level protections against LVI [^1], which makes the software-based mitigations unnecessary. 

Since LVI software mitigations can result in significant performance overheads (2x to 19x slowdown factor)[^2], it would be preferable to make these mitigations opt-in rather than enabled by default.

That being said the situation regarding speculative execution vulnerabilities is not simple. The LVI mitigations that we have enabled today might give us protection against other speculative attacks. So before removing the LVI mitigations, it's important to investigate whether we need software-based mitigations against other speculative execution attacks. For example, I saw that recent CPUs are vulnerable to Branch History Injection (BHI) and Intra-Mode BTI vulnerabilities[^3]. Those vulnerabilities are of the Spectre variant 2 kind. Those are usually mitigated with retpolines on x86 platforms, so we should consider using `target-feature=+retpoline`. Intel's technical documentation provides some recommendations[^4]. It's worth noting that retpolines are much lighter than LVI mitigations, typically resulting only in a 5-10% overhead[^5].

Thus, if we just need this mitigation on modern CPUs, this will already be a big performance win.

@jethrogb @raoulstrackx : what do you think ? 

[^1]: https://www.intel.com/content/www/us/en/developer/articles/technical/software-security-guidance/resources/processors-affected-load-value-injection.html
[^2]: https://www.phoronix.com/review/lvi-attack-perf
[^3]: https://www.intel.com/content/www/us/en/security-center/advisory/intel-sa-00598.html
[^4]: https://www.intel.com/content/www/us/en/developer/articles/technical/software-security-guidance/technical-documentation/branch-history-injection.html
[^5]: https://www.phoronix.com/news/LLVM-Retpoline-Added
Repository: vscode
Issue: A "tight layout" mode that reduces vertical spacing
Labels: feature-request,notebook-layout

A design with generous vertical spacing looks nice on big screens.

However, on a small Laptop screen, it's in my opinion better to have a tighter layout to fit more lines of code on the screen.
Therefore, it would be nice to have a "tight layout" mode, that reduces vertical spacing in a notebook.
I've made 4 screenshots from the same notebook to show how vertical spacing is varying from platform to platform (and VSCode wins the contest of largest white space areas):

1. from JupyterLab
2. from a Gist
3. from VS Code
4. from VS Code diff

All screenshots are made with default zoom setting and used this notebook https://gist.github.com/kolibril13/cdecff2da4f12dcbc5ffae449a5e9572
My machine is a MacBoc Air M1, Retina display, 13.3-inch (diagonal).

It would be amazing if vertical spacing was customizable in VS Code Jupyter!

1. JupyterLab
<img width="1680" alt="image" src="https://user-images.githubusercontent.com/44469195/221051382-5b73e99d-32ba-4efc-bfba-9785ebaa724d.png">



2. Gist on GitHub
<img width="1680" alt="image" src="https://user-images.githubusercontent.com/44469195/221051694-0d8ad211-d659-42b1-927e-2003296f48b0.png">

3. VSCode (note how the last cell output is not on the screen anymore)
<img width="1680" alt="image" src="https://user-images.githubusercontent.com/44469195/221051467-49db7569-6ec4-4be3-8aec-b363a6b9b665.png">

4. VSCode diff
<img width="1680" alt="image" src="https://user-images.githubusercontent.com/44469195/221053774-b17d96bf-003a-4a2c-8c16-2cc9b0c3c0e3.png">
Repository: PowerToys
Issue: Image resizer - show original image size at start & link dimensions 
Labels: Needs-Triage

### Description of the new feature / enhancement

Quickly:

![image](https://user-images.githubusercontent.com/12503478/221060228-5a3eb962-5a85-4399-99e0-ce30e3f162ec.png)

If using a unit of measure different from percentage, it would be nice to:
- load the original file dimensions in the input boxes (height, length) 
- show a lock proportions button
- show how much space will be occupied after resizing (in Mb or Kb, depending on size)

Another nice to have would be a preview box to check the result every resize type

### Scenario when this would be used?

Always, as without this feature one should go to read every image properties, and it's not very handy.
I'm using now the tool to resize an image in order to comply with some size limits.


### Supporting information

The website I'm uploading to accepts a max weight of  4Mb, so I need to resize & check the new value.
Other websites focus more on image dimensions, than weight.
Repository: stable-diffusion-webui
Issue: [Bug]: Embedding should use extra networks syntax
Labels: enhancement

### Is there an existing issue for this?

- [X] I have searched the existing issues and checked the recent builds/commits

### What happened?

Now that there is proper syntax for using extra networks, the embeddings support should probably be updated to use those, like `<embedding:xyz:1>`. I'm coming across cases where I have a wildcard file and some of the keywords in that file overlap with embedding names, so I get unwanted embedding applications

### Steps to reproduce the problem

N/A

### What should have happened?

Embeddings should use extra networks syntax (with legacy fallback option) so they don't conflict with bare keywords

### Commit where the problem happens

0cc0ee1bcb4c24a8c9715f66cede06601bfc00c8

### What platforms do you use to access the UI ?

Windows

### What browsers do you use to access the UI ?

Google Chrome

### Command Line Arguments

```Shell
N/A
```


### List of extensions

N/A

### Console logs

```Shell
N/A
```


### Additional information

_No response_
Repository: flutter
Issue: [Android] - Jank when panning a custom viewport
Labels: platform-android,framework,c: performance,f: scrolling,has reproducible steps,P2,found in release: 3.7,found in release: 3.8,team-android,triaged-android

I have a custom implementation of a pannable, zoomable viewport.

When displaying trivial content (`Container`s with gradients) and fling scrolling as quickly as possible, we consistently hit janky frames for reasons that seem unrelated to our code.

The recurring issues seem to be:

- `GPURasterizer::Draw`
- `SkiaUnrefQueue::Drain`
- `SkCanvas::Flush`
- Inexplicably long paint times for simple widgets

I've posted a minimal version of our page list viewport here:
https://github.com/Flutter-Bounty-Hunters/page_list_viewport

I've verified the jank problem on `stable` and `master`.

Here are some screenshots of various janky frames:

Jank 1:
<img width="1589" alt="Screen Shot 2023-02-23 at 4 14 05 PM" src="https://user-images.githubusercontent.com/7259036/221063127-4d8e2a30-c25e-453b-bef3-cd709a572f91.png">

Jank 2:
<img width="1589" alt="Screen Shot 2023-02-23 at 4 14 23 PM" src="https://user-images.githubusercontent.com/7259036/221063129-6947d28d-4c33-483a-bff0-dfff54e60f2d.png">

Jank 3:
<img width="1588" alt="Screen Shot 2023-02-23 at 4 14 39 PM" src="https://user-images.githubusercontent.com/7259036/221063135-c5260eed-22d5-43dd-a11b-a13d54ad8628.png">
<img width="1589" alt="Screen Shot 2023-02-23 at 4 14 49 PM" src="https://user-images.githubusercontent.com/7259036/221063138-a415930f-55ad-4362-a27f-02c17841da0c.png">

Jank 4:
<img width="1590" alt="Screen Shot 2023-02-23 at 4 15 02 PM" src="https://user-images.githubusercontent.com/7259036/221063141-896a91ee-4d4d-461f-ad3f-8aa0dbbc7a13.png">
<img width="1589" alt="Screen Shot 2023-02-23 at 4 15 12 PM" src="https://user-images.githubusercontent.com/7259036/221063146-1df24d66-ebb1-440a-9c17-312b66c4d76d.png">

Jank 5:
<img width="1588" alt="Screen Shot 2023-02-23 at 4 15 30 PM" src="https://user-images.githubusercontent.com/7259036/221063152-cf573c75-59a1-4be6-a95a-b12f66a8fde2.png">

Jank 6:
<img width="1589" alt="Screen Shot 2023-02-23 at 4 15 49 PM" src="https://user-images.githubusercontent.com/7259036/221063154-b238f2b8-5acb-4030-9b75-e0a0962bf0d4.png">

These issues were reproduced on two different tablets in profile mode. Here's one of the device profiles:
```
Samsung Galaxy Tab S6 Lite
SM-P610
One UI version: 5.0
Android version: 13
```

I think the other physical device was a Pixel C.

Flutter version:
```
Flutter 3.7.5 • channel stable • https://github.com/flutter/flutter.git
Framework • revision c07f788888 (25 hours ago) • 2023-02-22 17:52:33 -0600
Engine • revision 0f359063c4
Tools • Dart 2.19.2 • DevTools 2.20.1
```
Repository: godot
Issue: Missing C# defines when exporting with custom feature tags
Labels: enhancement,topic:dotnet

### Godot version

4.0.dev (2735ff7) (RC 4)

### System information

Linux - Pop!OS

### Issue description

When exporting a mono version, with a custom feature tag defined, the exported game doesn't have the C# pre-processor define associated with that tag. (Formerly `GODOT_<tag, caps>`).

In my case I am trying to have a "demo" tag on certain export presets, expecting `GODOT_DEMO` to be defined for those exports. But that is not the case. `OS.HasFeature` does work as expected when checking for "demo"


### Steps to reproduce

1. Make a Godot 4 RC 4 mono project. 
2. Add an export preset with a custom feature tag
3. Create a script that checks if that tag is defined
4. Export aforementioned preset.

### Minimal reproduction project

N/A
Repository: flutter
Issue: Using multiple "flutter apps" inside a page using Element Embedding
Labels: c: new feature,framework,engine,platform-web,customer: google,c: proposal,P3,team-web,triaged-web


## Use case

I'm currently writing a chart library for the company that I work for. After some research, we didn't find a good package that have the features that we want. So our decision was to write our own.

We have both an web app and app (React and Flutter). And with the `Element Embedding` feature we want to reuse this package for both platforms.

After some tests using the `master` branch, there was two things that I found that would be really cool to add/improve (don't actually know if it's on your roadmap already)

## Proposal / Questions

### I wasn't able to create two instances of the app. Is there or will be a way to create multiple instances of the app in a page? This is the code that I have used.

```dart
const initChart = (targetSelector) => {
  let target = document.querySelector(targetSelector);
  _flutter.loader.loadEntrypoint({
    onEntrypointLoaded: async function (engineInitializer) {
      let appRunner = await engineInitializer.initializeEngine({
        hostElement: target,
      });
      await appRunner.runApp();
    },
  });
}

window.addEventListener("load", function (ev) {
  initChart('#flutter_target');
  initChart('#flutter_target_2');
});
```

With this code, the first app is stopped and the second one works.

### Will be there a way to export single widgets instead of having to export the whole app?

Using the current way, it's possible to achieve what I want using a wrapper around the `_flutter.loader.loadEntrypoint` and calling the state methods to update the state. But will be there a better way to do that?
Repository: go
Issue: x/net/http2:  do not flush immediately after write headers
Labels: NeedsInvestigation

<!--
Our proposal process is documented here:
https://go.dev/s/proposal-process
-->

The http2 client flush immediately after write headers, so there have two TCP packets separated.

https://github.com/golang/net/blob/master/http2/transport.go#L1617

When a large number of requests, this may cause a performance loss.

So should combine the header and body packets, and do not flush immediately after write headers?