sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: next.js
Issue: No way to subscribe to files unmounting in development
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 21.6.0: Mon Aug 22 20:20:05 PDT 2022; root:xnu-8020.140.49~2/RELEASE_ARM64_T8101
    Binaries:
      Node: 16.15.0
      npm: 8.5.5
      Yarn: N/A
      pnpm: 7.25.1
    Relevant packages:
      next: 12.3.0
      eslint-config-next: N/A
      react: 18.1.0
      react-dom: 18.1.0


### Which area(s) of Next.js are affected? (leave empty if unsure)

_No response_

### Link to the code that reproduces this issue

https://stackblitz.com/edit/vercel-next-js-jqfycd?file=server%2FBackendMock.ts

### To Reproduce

1. Create a singleton file which tracks its own initialization, then logs every 10s:
```
class Test {
    static hasInitialized = false;
    static init() {
        if (!this.hasInitialized) {
            this.hasInitialized = true;
            setInterval(() => console.log("Polling something"), 10000);
        }
    }
}
```
2. call this function from a getServersideProps() or API endpoint
3. Make a change to the API or one of its dependencies

### Describe the Bug

Related to https://github.com/vercel/next.js/issues/45204, unchanged files will be reloaded by nextjs if a different dependency of an API route (e.g.) is changed. While this alone seems to be a bug, the lack of a solution for "shutting down" files that get reloaded also seems to be an issue.

In particular, database connections or singleton handler classes, or anything polling, will not shut down when files are reloaded. This leads to redundant work being done, excessive memory consumption (eventually leading to OOMs), and pain in debugging things (multiple instances of singletons all living around at the same time).

One workaround is storing the instance in a global variable, and either shutting down any existing one if detected or just reusing the existing one. However, this is rather hacky and relies on abusing the global variable space to dump every singleton. Additionally the need to shutdown and restart database connections in these situations is rather painful, so I opt to reuse existing connections, but that prevents reloads of changes to initialization logic (would be nice if I could detect a reload due to change vs. reload due to other file changing)

### Expected Behavior

There should be a way (similar to hot module reloading's module.hot.*) to "subscribe" to a module being unloaded. When this happens, it could clear any intervals, and close any connections.

### Which browser are you using? (if relevant)

_No response_

### How are you deploying your application? (if relevant)

_No response_
Repository: go
Issue: runtime: TestWindowsStackMemory flakes on windows-386-2016
Labels: Testing,NeedsFix,compiler/runtime

```
#!watchflakes
post <- pkg == "runtime" && test == "TestWindowsStackMemory"
```

[2023-01-17T19:55:02-d4639ec/windows-386-2016](https://build.golang.org/log/bd3b911bcffe5f6fa276ee96c009c77ea9cfbe66)

```
--- FAIL: TestWindowsStackMemory (0.03s)
    crash_test.go:58: C:\Users\gopher\AppData\Local\Temp\1\go-build1812702813\testprog.exe StackMemory (27.351ms): ok
    syscall_windows_test.go:675: expected < 102400 bytes of memory per thread, got 103424
FAIL
FAIL	runtime	47.304s
```

Notes:
* This is on the [brand new](https://github.com/golang/go/issues/58007) `windows-386-2016` builder.
* The test computes the average assuming there are 100 threads. If there are actually 101 threads (the test doesn't consider sysmon...), then the average comes out to exactly 102400 bytes.

cc @mknyszek @golang/runtime @golang/windows
Repository: godot
Issue: StyleBoxTexture behaves oddly when content margins are smaller than texture margins
Labels: bug,regression,topic:gui

### Godot version

v4.0.rc2.official [d2699dc7a]

### System information

Windows 10, Vulkan

### Issue description

Since https://github.com/godotengine/godot/pull/72124 I have noted some weird behavior in my converted projects from Godot 3.5

The GUI System seems incapable of scaling the borders of a StyleBoxTexture beyond their native resolution. For the sake of demonstration, I have created a simple 9 patch texture to demonstrate this. The texture is 128x128 with each edge being 19 pixels wide.

When applied to a button, as shown, with -1 for each content margin, the margins default to 19 pixels as shown in the image below.

![Capture](https://user-images.githubusercontent.com/46550204/219510953-41e2a323-f494-48f1-87ad-6b8af7f9ac54.PNG)

This appears reasonable, but in some cases, you might not want such a large margin. When reducing the content margins to 8 pixels as shown in the image below, there is an obvious issue. The borders now overlap the center content.

![Screenshot 2023-02-16 175355](https://user-images.githubusercontent.com/46550204/219511797-5c1d6649-b01e-416d-9ee2-10efefd39988.png)

Reducing further, the borders will now even overlap with themselves, which is very jarring.

![Screenshot 2023-02-16 175454](https://user-images.githubusercontent.com/46550204/219512010-84396bd0-f1c2-45de-8afd-54c53e1e8567.png)

I haven't had this issue in Godot 3.5, where the borders tend to scale down as required. The pixel art example is fairly trivial, but in my case, I use high quality assets with a high resolution, and this new behavior now makes it impossible to use these assets properly in any context.

For my purposes, when converting to Godot 4, I will either have to recreate these assets so that the borders are sized correctly depending on the context while also reducing their fidelity, or I would have to use the expand margins which throws off the look and feel of my UI.

Ideally, I think, StyleBoxTextures would have better options that would allow for more control over how these borders are scaled, or alternatively, the borders will be scaled in a way that does not produce such jarring results.

Some related issues:  
#71913  
#72147

### Steps to reproduce

1. Open attached project  
2. Open "rainbow.tres"
3. Adjust content margins

### Minimal reproduction project

[StyleBoxTexture.zip](https://github.com/godotengine/godot/files/10761601/StyleBoxTexture.zip)
Repository: go
Issue: x/image/font/gofont/gosmallcapsitalic slope not set
Labels: NeedsInvestigation

https://go.dev/play/p/hdqggbWGFTX

### What did you expect to see?

sloping vector

### What did you see instead?

image.Point{X:0, Y:1}

all other italic fonts in gofont/ have the slope set.
Repository: pytorch
Issue: Custom operations in inductor
Labels: feature,triaged,oncall: pt2,module: inductor

### 🚀 The feature, motivation and pitch

I'm working on a backend for Dynamo/Inductor and I would like to "catch" modules at a higher level than the lowered inductor graph. Lowering a high-level operator to ATen primitives misses out on semantics that could be used for efficient backend implementations. A few examples:
* `nn.Dropout` is immediately lowered to Philox random + `aten.where`, which makes certain assumptions
* `nn.BatchNorm` is reduced to its core operations, which disallows calling something like cuDNN
* Higher-level modules from PyTorch extensions cannot always be compiled to a single graph, due to their use of Pythonic features

I would still want to use the awesome optimizations and inlining features that inductor does on the original GraphModule, just not on every operator.

Ideally, the solution would entail taking components in their `nn.Module` level and replacing them with custom lowered operations that can be used internally. Dynamo will, in turn, [optionally] skip trying to trace through the module so as to not crash because of missing Pythonic features [if shape/type inference is provided].

### Alternatives

I tried wrapping modules with specific types with some wrapper class, which diverges in the `forward` function based on `dynamo.is_compiling()`. While verbose (and forcing me to redo shape inference), this allows me to change some internal behavior.

Following this step, none of the approaches I tried work. I tried several things, including registering custom operations via `torch.fx` and `torch.ops` (as in the custom ops tutorial https://pytorch.org/tutorials/advanced/torch_script_custom_ops.html). torch.fx wrapped functions are ignored, custom ops are lowered to ATen on the C++ level, and the lowered inductor graph always ends up with the primitives.

It is worth mentioning that in the ONNX exporter this used to be possible via registering custom schemata.

Thanks in advance!

### Additional context

_No response_

cc @ezyang @msaroufim @wconstab @bdhirsh @anijain2305 @zou3519 @voznesenskym @penguinwu @EikanWang @jgong5 @Guobing-Chen @XiaobingSuper @zhuhaozhe @blzheng @wenzhe-nrv @jiayisunx @peterbell10 @ipiszy @yf225 @chenyang78 @kadeng @muchulee8 @aakhundov @ColinPeppler @soumith @ngimel @yanboliang @Xia-Weiwen @desertfire
Repository: PowerToys
Issue: [fancyzone feature request] option to add extra toggles to window bar for adjusting window to specific sizes
Labels: Needs-Triage

### Description of the new feature / enhancement

I would like to suggest a powerful feature I often use especially if I'm using a large monitor.
Currently I'm using a software that allows me to add extra toggles/buttons on the window bar near the minimize/restore/close buttons. see screenshot:
![image](https://user-images.githubusercontent.com/5653117/219526251-51a46280-b451-4be8-ab27-18940ea462df.png)
my current set up in those buttons are: resize window to 1440x900, 1920x1080, move all windows to main monitor, pin to top (which powertoys already has), and minimize to system tray.

What I only need, and what I'm requesting are similar to the first two. I want to just click something and it will resize to a specific window size.

Thank you for looking at it!

### Scenario when this would be used?

As a web designer, this is an essential function because I can view websites within specific window sizes.

### Supporting information

The app I'm using is DisplayFusion. But I'm trying to move to a different system and I don't want a lot of startup apps.
Repository: pytorch
Issue: [Inductor] [CPU] Torchbench model hf_T5 & hf_T5_large & hf_T5_base performance regression > 10% on ww07.4
Labels: triaged,module: inductor

### 🐛 Describe the bug

There is a performance regression on Torchbench models **hf_T5 & hf_T5_large & hf_T5_base** on ww07.4 [TorchInductor CPU Performance Dashboard](https://github.com/pytorch/pytorch/issues/93531#issuecomment-1434019397)  compare with ww07.2 as bellow:

|  |  ww07.4   |   |     |   |  ww07.2   |   |     |   | Comp  |     |   |
|  ---- |  ----  | ----  |  ----  | ----  |  ----  | ----  |  ----  | ----  | ----  |  ----  | ----  |
| name| batch_size  | speedup | inductor  | eager | batch_size  | speedup | inductor  | eager | speedup ratio | eager ratio  | inductor ratio 
| hf_T5	| 1	| 0.9775	| 0.0487881	| 0.047690368	| 1	| 1.3737	| 0.0351173	| 0.048240635	| 0.71	| 1.01	| 0.72
| hf_T5_base	| 1	| 0.7094	| 1.4970444	| 1.062003297	| 1	| 1.073	| 0.9889897	| 1.061185948	| 0.66	| 1	| 0.66
| hf_T5_large	| 1	| 1.1104	| 0.4428939	| 0.491789387	| 1	| 1.4794	| 0.3326359	| 0.49210155	| 0.75	| 1	| 0.75

Please find sw info from [TorchInductor CPU Performance Dashboard](https://github.com/pytorch/pytorch/issues/93531) 

Graph dump by cosim:

WW07.4:
[hf_T5 graph.txt](https://github.com/pytorch/pytorch/files/10765472/graph.txt)
[hf_T5_large graph.txt](https://github.com/pytorch/pytorch/files/10765455/graph.txt)
[hf_T5_base graph.txt](https://github.com/pytorch/pytorch/files/10765463/graph.txt)

WW07.2:
[hf_T5 graph.txt](https://github.com/pytorch/pytorch/files/10765474/graph.txt)
[hf_T5_large graph.txt](https://github.com/pytorch/pytorch/files/10765458/graph.txt)
[hf_T5_base graph.txt](https://github.com/pytorch/pytorch/files/10765465/graph.txt)

Repro:

```
python -m torch.backends.xeon.run_cpu --node_id 0 benchmarks/dynamo/torchbench.py --performance --float32 -dcpu -n50 --inductor  --no-skip --dashboard --only MODEL  --cold_start_latency

```

cc @soumith @voznesenskym @yanboliang @penguinwu @anijain2305 @EikanWang @jgong5 @Guobing-Chen @XiaobingSuper @zhuhaozhe @blzheng @Xia-Weiwen @wenzhe-nrv @jiayisunx @peterbell10 @desertfire
Repository: material-ui
Issue: Use same page index for both Pagination and TablePagination
Labels: discussion,breaking change,component: pagination,component: TablePagination

### Duplicates

- [X] I have searched the existing issues

### Latest version

- [X] I have tested the latest version

### Steps to reproduce 🕹

The [Table Pagination API](https://mui.com/material-ui/api/table-pagination/) is using a `zero-based index` page parameter which is `1-based index` page parameter in [Pagination API](https://mui.com/material-ui/api/pagination/).

We provide both `table view` and `grid view` for displaying data list to users, and we can't use same parameter for pagination while switch between these two views, some +1 or -1 work is needed.

Will it be better if changing these two APIs to use same type of `page` parameter?


### Current behavior 😯

_No response_

### Expected behavior 🤔

_No response_

### Context 🔦

_No response_

### Your environment 🌎

<details>
  <summary><code>npx @mui/envinfo</code></summary>

```
  Don't forget to mention which browser you used.
  Output from `npx @mui/envinfo` goes here.
```
</details>
Repository: godot
Issue: [4.0 RC2] Viewport rotation gizmo disappear randomly after "Reload Current Project" 
Labels: bug,topic:editor,topic:3d

### Godot version

4.0 rc2

### System information

Windows 10

### Issue description


Viewport rotation gizmo disappear randomly after "Reload Current Project" or fresh startup.
If it disappear, can't make it visual using editor setting.
![QQ截图20230217124914](https://user-images.githubusercontent.com/8831593/219554391-e57673b7-f2ba-4729-8fe4-cc4337be3400.png)


### Steps to reproduce

1. Open the test project using Godot 4.0 rc2
2. Reload Current Project  from  project Menu
3. Check  the Viewport rotation gizmo in the top right of the editor. It disappear randomly. If it is visual, Close the project and goto step 1

### Minimal reproduction project

[test.zip](https://github.com/godotengine/godot/files/10763357/test.zip)
Repository: godot
Issue: Container nesting visual bug
Labels: discussion,topic:gui

### Godot version

3.5.1.stable

### System information

Gentoo Linux x86_64, AMD RX580

### Issue description

Placing a container inside of another container makes it's placement not visualized.

### Steps to reproduce

Add a child Container node to the main Interface node,
Add a child Container node to the said container.

### Minimal reproduction project

[container_bug.zip](https://github.com/godotengine/godot/files/10763603/container_bug.zip)
Repository: godot
Issue: [Gd4.0] Error if baking VoxelGI while displaying VoxelGI debug modes in viewport
Labels: bug,topic:rendering,topic:editor,usability,topic:3d

### Godot version

4.0 RC2

### System information

Windows 11, Vulkan, Nvidia RTX 3080, Driver 528.49

### Issue description

Throws error if you're trying to bake VoxelGI while using one of the advanced VoxelGI debug views in the viewport (VoxelGI Lighting, VoxelGI Albedo, VoxelGI Emission).

drivers/vulkan/rendering_device_vulkan.cpp:8394 - Attempted to free invalid ID: 774477092750121

The bake seems to work OK as far as I can tell but does throw the error.

### Steps to reproduce

- Set up a VoxelGI node in the scene and set it up as per normal. Should be able to bake VoxelGI here without error.
- Access the top-left menu of the viewport and click on Display Advanced.
- Choose one of the VoxelGI modes in the pop-up menu (VoxelGI Lighting, VoxelGI Albedo, VoxelGI Emission).
- Try to bake VoxelGI.

### Minimal reproduction project

N/A
Repository: react-native
Issue: npx react-native run-ios results to error: Unable to load contents of file list: '/Target Support Files/Pods-<<ProjectName>>...'
Labels: Platform: iOS,Needs: Triage :mag:

### Description

I'm receiving following error while trying to run my old react-native project.

```
❌  error: Unable to load contents of file list: '/Target Support Files/Pods-<<ProjectName>>/Pods-<<ProjectName>>-frameworks-Debug-input-files.xcfilelist' (in target '<<ProjectName>>' from project '<<ProjectName>>')
```

Also tried to go into an iOS directory and run pod install. In this case I'm receiving invalid podfile.

```
[!] Invalid `Podfile` file: 
[!] Invalid `RNReanimated.podspec` file: undefined method `exists?' for File:Class.
```

![Screenshot 2023-02-17 at 11 07 26 AM](https://user-images.githubusercontent.com/6015870/219558536-8c5dc5ee-d8cf-4f00-bf8d-156816bbc605.png)




### Version

0.71.3

### Output of `npx react-native info`

 OS: macOS 13.1
    CPU: (8) arm64 Apple M1
    Memory: 69.19 MB / 8.00 GB
    Shell: 5.8.1 - /bin/zsh
  Binaries:
    Node: 18.14.0 - /usr/local/bin/node
    Yarn: 1.22.19 - /usr/local/bin/yarn
    npm: 9.5.0 - /usr/local/bin/npm
    Watchman: 2023.02.13.00 - /opt/homebrew/bin/watchman
  Managers:
    CocoaPods: 1.11.3 - /opt/homebrew/bin/pod
  SDKs:
    iOS SDK:
      Platforms: DriverKit 22.2, iOS 16.2, macOS 13.1, tvOS 16.1, watchOS 9.1
    Android SDK: Not Found
  IDEs:
    Android Studio: 2021.2 AI-212.5712.43.2112.8512546
    Xcode: 14.2/14C18 - /usr/bin/xcodebuild
  Languages:
    Java: Not Found
  npmPackages:
    @react-native-community/cli: Not Found
    react: 17.0.2 => 17.0.2 
    react-native: 0.71.0 => 0.71.0 
    react-native-macos: Not Found
  npmGlobalPackages:
    *react-native*: Not Found

### Steps to reproduce

1. It's a react-native CLI project.
2. `npm install` was not working, so ran `npm config set legacy-peer-deps true` to support legacy project. 
3. ran 'npm install' and it ran successful
4. receiving following error, so tried to upgrade react-native up to latest version- from 0.68.3 to 0.71.0.
`error Expected [\n\r] but end of input found.`
5. at last received the above error which I tried to resolve, but unfortunately unable to so. 

### Snack, code example, screenshot, or link to a repository

https://stackoverflow.com/questions/75470696/react-native-run-ios-results-to-error-unable-to-load-contents-of-file-list-t
Repository: opencv
Issue: Implementation of cv::cuda::resize interpolation=INTER_AREA
Labels: feature,category: gpu/cuda (contrib)

### Descripe the feature and motivation

Is it possible to add support for INTER_AREA in the cv::cuda::resize function?

### Additional context

_No response_
Repository: svelte
Issue: Expose generic type which extracts type of a store's underlying value.
Labels: types / typescript

### Describe the problem

In the same way that typescript offers `Awaited` to extract the type from a promise it would be nice if we could provide an easy way to get the type of the underlying value of a store.

The reason I came up with this is because I wanted to extract to type from the `page` store in sveltekit like below:

```typescript
import type { page } from '$app/stores';

type PageType = StoreValue<typeof page>;

function acceptsPageStoreValue(value: PageType): ArbitraryType {
    ...
}
```

Of course I could manually copy the actual type which is:
```typescript
Page<Record<string, string>, string | null>
```
But this is much less readable.

### Describe the proposed solution

Add the below type to [runtime/store/index.ts](https://github.com/sveltejs/svelte/blob/master/src/runtime/store/index.ts)

```typescript
  type StoreValue<T extends Readable<unknown>> = Parameters<Parameters<T['subscribe']>[0]>[0];
```

I'm not sure if `StoreValue` is a good name here. But if we decide on a good name I'd be happy to put in a PR. Especially as it's such a simple change.


### Alternatives considered

The alternative is not simply to not bother with this. Devs can trivially implement this type themselves if they want.

### Importance

nice to have
Repository: electron
Issue: [Bug]: Race condition with BrowserView.setBounds
Labels: platform/linux,blocked/need-info ❌,bug :beetle:,component/BrowserView,status/confirmed,has-repro-gist,23-x-y,26-x-y,27-x-y

### Preflight Checklist

- [X] I have read the [Contributing Guidelines](https://github.com/electron/electron/blob/main/CONTRIBUTING.md) for this project.
- [X] I agree to follow the [Code of Conduct](https://github.com/electron/electron/blob/main/CODE_OF_CONDUCT.md) that this project adheres to.
- [X] I have searched the [issue tracker](https://www.github.com/electron/electron/issues) for a bug report that matches the one I want to file, without success.

### Electron Version

23.1.0

### What operating system are you using?

Ubuntu

### Operating System Version

Linux alex-NUC11PAHi7 5.19.0-31-generic #32-Ubuntu SMP PREEMPT_DYNAMIC Fri Jan 20 15:20:08 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux

### What arch are you using?

x64

### Last Known Working Electron version

N/A

### Expected Behavior

`setBounds` sets the bounds

### Actual Behavior

Doesn't

### Testcase Gist URL

https://gist.github.com/ff8dcfa76e02bbaafbd098d8725ba8c7

### Additional Information

The literal example from https://www.electronjs.org/docs/latest/api/browser-view#class-browserview does not work. In the Fiddle I've added a `setTimeout` and for me it starts working at around 25ms. I went back until Electron 20 in Fiddle and none of the versions worked.

Additionally I'm also running into a version of https://github.com/electron/electron/issues/19536 in my app (just duplicating the identical `setBounds` makes it work). I'm still trying to make that work in isolation. But the bug I'm reporting here makes this less predictable and it might just mask the other bug (which is not fixed by `setTimeout`, as it already happens inside an async ipc call).
Repository: storybook
Issue: [Bug]: Jitter when changing args on Docs View
Labels: bug,help wanted,addon: docs,block: other

### Describe the bug

When changing arguments on docs view, the frame flashes. It seems as though there is moment of empty content and height is changing. See video. 

https://user-images.githubusercontent.com/15021119/219641791-efd3897c-39d7-40d1-b7d0-66bf5f63dec7.mov



### To Reproduce

Change arguments on docs view.

### System

_No response_

### Additional context

Using storybook/Vue
Repository: storybook
Issue: [Bug]: CLI templates for web-components are not actually using web components
Labels: bug,help wanted,cli,web-components,sev:S3

### Describe the bug

The CLI template are using functions that return lit html strings: 
https://github.com/storybookjs/storybook/blob/next/code/renderers/web-components/template/cli/js/Page.js

That is not a really common way to use lit and are not actual web components.

### To Reproduce

_No response_

### System

_No response_

### Additional context

_No response_
Repository: stable-diffusion-webui
Issue: [Feature Request]: Save full Settings of Text2IMG or IMG2IMG page (Input Image aswell)
Labels: enhancement

### Is there an existing issue for this?

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

### What would your feature do ?

 Save full Settings of Text2IMG or IMG2IMG page (Input Image aswell): so one can load them in like a Preset/save them if one finds good settings. Especially with the merging of Control Net-it would help alot to not get confused which Init Control Net image was used. At least the Image File NAME could be saved-but loading in the Preset file and having the init images load in too would be amazing for workflow!

Best wishes

### Proposed workflow

Similar like the Prompt Save Button-that it would be saved in an folder directory one choose. Then there would be a button like ''load in preset'' and one can choose from these files :)


### Additional information

_No response_