sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: material-ui
Issue: Improve Next.js support
Labels: umbrella,enhancement,nextjs

### Summary 💡

This issue will serve as an umbrella for all issues related to Next.js app router integration. It will be easier to have an overview of all the problems in one place.

### Done

- [x] Next.js 13 Hydration failed because the initial UI does not match what was rendered on the server [#34893](https://github.com/mui/material-ui/issues/34893)
- [x] Next.js 13 example with /app folder [#34898](https://github.com/mui/material-ui/issues/34898)
- [x] Next.js 13 compatibility (app directory/server components) [#34896](https://github.com/mui/material-ui/issues/34896)
- [x] Add use client directive to all components in a new build step [#37503](https://github.com/mui/material-ui/issues/37503)
- [x] Next.js 13 Error during SSR Rendering ReferenceError: defaultStyleFunctionMapping is not defined [#34910](https://github.com/mui/material-ui/issues/34910)
- [x] Next.js 13 global styles issue mui/material-ui#37935
- [x] Cover useId Next.js limitation mui/material-ui#38103
- [x] Make Next.js App Router example the default recommended over Next.js Page Router mui/material-ui#38204
- [x] Configure and document modularizeImports for icons mui/material-ui#35450 mui/material-ui#36218
- [x] Create an npm package to abstract APIs for Next.js, solving boilerplate issue mui/material-ui#34575
- [x] Simply the Next.js examples. It should be as simple as possible for developers to start a project and to pull in UI from other places, like from the templates. For example https://github.com/mui/tech-challenge-full-stack/issues/3#issuecomment-1743231738 mui/material-ui#40661
- [x] mui/material-ui#35993
- [x] Add docs on how to integrate the font with the theme https://github.com/mui/material-ui/issues/38082

### Opportunities to make it even better

- [ ] mui/material-ui#42750
- [ ] mui/material-ui#37934
- [ ] mui/material-ui#38966
- [ ] Migrate Link, remove `legacyBehavior={true}` https://github.com/mui/material-ui/issues/38092
- [ ] Flatten imports for faster dev server speed mui/material-ui#35840
- [ ] Create guide on how to configure CSP, it's missing in https://mui.com/material-ui/guides/content-security-policy/#how-does-one-implement-csp, related to mui/material-ui#36095
- [ ] Create a @mui/system-nextjs package, move the logic that has noting to do in `@mui/material-nextjs`
- [ ] Add support for loading indicator between pages when slow network.


https://github.com/mui/material-ui/blob/d37dd5cec56142a16451b9acb6e3d4cd70ac003e/docs/src/modules/components/AppFrame.js#L40-L46

- [ ] Full dark/light mode integration, see the features missing from https://github.com/pacocoursey/next-themes
Repository: stable-diffusion-webui
Issue: [Feature Request]: API Queuing (maybe v2 API?)
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 ?

Support queuing on API endpoints.

### Proposed workflow

When sending API (`/sdapi/v2/new` or something), the API must be responded before processing starts, and response must be some kind of id that can track it's status.

There will be another endpoint like `/sdapi/v2/status`, that can get information and result of process that started by `/sdapi/v2/new` by id.

### Additional information

By making this, it can implement progress API.

Also, the tunneling program used in google colab (`localtunnel`) has some timeout, and it returns `Gateway timeout` error when it reaches timeout that makes API unusable for generating many images in google colab.
API queuing can avoid it's restriction.
Repository: stable-diffusion-webui
Issue: [Feature Request]: Generate Forever would continue even if Gradio UI tab is closed in the browser
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 ?

Generate Forever would continue generating even if the tab with Gradio is closed. It seems currently the implementation relies on the Gradio tab still being open to continue generating. In this way, the only way to stop it would be to force stop the backend, or perhaps if there was a way to hook in Gradio again and reload parameters if the UI is opened back up in the browser, you could interrupt it there. 

### Proposed workflow

1. Go to any tab
2. Set parameters
3. Right-click "Generate" and press "Generate Forever"
4. Close the Gradio UI tab, and generating continues without it open


### Additional information

_No response_
Repository: storybook
Issue: [Bug]: Silent fail when building results with incomplete build
Labels: bug,needs reproduction,needs triage

### Describe the bug

In my case there was an issue with `*.md` being treated as mdx, so anything with `{ }` and without backtick, was failing with `Could not parse expression with acorn: Unexpected token` 

However whole build was not failing and completing with success. But as a result  there was missing files in `storybook-static` output dir. ( missing `iframe.html`  )

You can see those errors in logs from build, but it's very easy to miss, especially that build does not report error at all. 

### To Reproduce

```shell
Create mdx file that has incorrect text format inside.
```


### System

_No response_

### Additional context

_No response_
Repository: stable-diffusion-webui
Issue: Allow use of sampler name alias in API
Labels: enhancement

### Is there an existing issue for this?

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

### What happened?

API can't get the index of "k_euler", "k_dpm_2" and only works with the full name like "DDIM", "Euler a"

`sampler_to_index = lambda name: next(filter(lambda row: name.lower() == row[1].name.lower(), enumerate(all_samplers)), None)`

this gives None in this case.

### Steps to reproduce the problem

use "k_euler_a" with the api
get 404 error

### What should have happened?

well it should work without 404 error

### Commit where the problem happens

737eb28faca8be2bb996ee0930ec77d1f7ebd939

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

Windows

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

_No response_

### Command Line Arguments

_No response_

### Additional information, context and logs

_No response_
Repository: godot
Issue: [4.0] [Physics 3D] Rigidbody3D/MeshInstance3D act jittered on plane CollisionShape3D
Labels: bug,topic:physics,topic:3d

### Godot version

v4.0.beta3.official [01ae26d31]

### System information

Windows 11

### Issue description
Trying to create simple physics with plank object, I notice the physics make the objects sometimes very jittery. 

#### What I tried:
I tried almost every settings in RigidBody3D, and Physics in Project Settings, 

#### What I imagine: 
That my objects with physics are more “stable”. 

https://user-images.githubusercontent.com/4235617/198302173-f47b2120-6971-4f03-8e4f-5352111af161.mp4




### Steps to reproduce

**Create a ground:**
1. Add StaticBody3D.
2. Add as child to the body a MeshInstance3D, create a PlaneMesh3D for mesh property.
3. Add as child to the body a CollisionShape3D, create a WorldBoundaryShape3D for the shape property.

**Create object:**
1. Add a RigiBody3D
2. add as child a MeshInstance3D, create a cube with the size (0.2, 0.03, 1)
3. 2. add as child a CollisionShape3D, fit the size with the MeshInstance3D

### Minimal reproduction project

Please find the attached Godot project from the video above:
[PhysicsTest.zip](https://github.com/godotengine/godot/files/9879825/PhysicsTest.zip)

Controls:
**Mouse Click**: to add object
**Space**: remove all objects
Repository: TypeScript
Issue: Allow to emit sourcemaps when printing ast
Labels: Suggestion,Awaiting More Feedback

# Suggestion

Add `printFileWithSourceMaps` to printer.
<!--
  Please fill in each section completely. Thank you!
-->

## 🔍 Search Terms

<!--
  💡 Did you know? TypeScript has over 2,000 open suggestions!
  🔎 Please search thoroughly before logging new feature requests as most common ideas already have a proposal in progress.
  The "Common Feature Requests" section of the FAQ lists many popular requests: https://github.com/Microsoft/TypeScript/wiki/FAQ#common-feature-requests

  Replace the text below:
-->

Ast, print, printer, source maps, emit, sourcemaps.
## ✅ Viability Checklist

<!--
   Suggestions that don't meet all these criteria are very, very unlikely to be accepted.
   We always recommend reviewing the TypeScript design goals before investing time writing
   a proposal for ideas outside the scope of the project.
-->
My suggestion meets these guidelines:

* [x] This wouldn't be a breaking change in existing TypeScript/JavaScript code
* [x] This wouldn't change the runtime behavior of existing JavaScript code
* [x] This could be implemented without emitting different JS based on the types of the expressions
* [x] This isn't a runtime feature (e.g. library functionality, non-ECMAScript syntax with JavaScript output, new syntax sugar for JS, etc.)
* [x] This feature would agree with the rest of [TypeScript's Design Goals](https://github.com/Microsoft/TypeScript/wiki/TypeScript-Design-Goals).


## ⭐ Suggestion

Currently, when you construct AST with typescript api, you can print it by
```ts
const printer = ts.createPrinter(printerOptions)
const text = printer.printFile(sf)
```
Idea is to introduce `printFileWithSourceMaps`, which will return both source and sourcemap.

Implementation POC:
https://github.com/goloveychuk/TypeScript/commit/be0924a62423f60b876bf80506ce5babfc6ea33e

<!-- A summary of what you'd like to see added or changed -->

## 📃 Motivating Example

```ts
if (!origNode.source) {
     origNode.source = origNode.getSourceFile(); // it's used in printer, needed to support multiple source files.
}
ts.setSourceMapRange(node, origNode);
//.....
const printer = ts.createPrinter(printerOptions)
const {output, sourceMapText} = printer.printFileWithSourceMaps(sf, {outputDir: ...})
```

## 💻 Use Cases
Developers who uses typescript api to construct an AST and needs sourcemaps support.


## Alternative solution
Introduce `emitSourceMapPos` printer hook, or smth similar, and generate sourcemap in userland.
Repository: kubernetes
Issue: Should the KCM have a heartbeat (or should the APIServer be more proactive about disruptive extensions) ?
Labels: area/apiserver,sig/api-machinery,kind/feature,help wanted,lifecycle/stale,triage/accepted

I guess at one point or other we've all seen a black hole apiserver extension effect us in one way or other... What are the ways we should/can avoid such issues ?  And, have we considered making the apiserver better at detecting/returning 500s in case of these sorts of issues? 

(Am somewhat naive in this area so, please let me know if im missing something obvious)

### What would you like to be added?

Yesterday, I saw an environment wherein gatekeeper was not up, and thus, the kubernetes controller manager was failing at doing basic tasks, like, it couldnt even manage to get a lease from etcd.  When this happens, 

- basic things like deployments dont work, or worse, provide users with incorrect info about the state of the cluster
- theres no way for the APIServer to really convey this back, bc many objects that the KCP manages just... never get updated. 

I think in general, theres a problem we have w/ the APIServer where extensions and so on can bring it down.  Ive seen this in passing from time to time. 

# Suggestion

So, what im wondering is, in the same way that we cordon kubelets when they dont speak up after 10 minutes.... Should we have some way of raising a red flag (i.e. maybe at the `kubectl get` level) that sais something like:

```
$> kubectl get deployment blah -o yaml 

status:
  availableReplicas: 2
  conditions:
  - lastTransitionTime: "2022-10-17T02:48:28Z"
    lastUpdateTime: "2022-10-17T02:48:28Z"
    message: Kubernetes Controller Manager has not updated this object in 6 hours
    reason: ZombieMode
    status: "True"
    type: Unknown
```

As far as implementation, I dont know the best way, but likely the APIServer, itself , could just have a similar health checking heartbeat thing like we do w/ kubelets, so that a periodic checkin from a healthy controller was provided, and in cases where this hasnt happened in a while, on read, the apiserver could append a condition to objects (or do some other metadata operation that made it totally obvious that an objct has become scale) . 





### Why is this needed?

Without this, users experience kubernetes control plane issues migght thing:

- etcd is corrupt
- their entire cluster is broken and requires an upgrade
- they need to reboot their nodes or pods to clear out stale client caches
- their CNI, or APIServer endpoint, has become split brained

or any other manner of very tricky and time consuming to troubleshoot issues.   So, having a basic checkin expectation for controlplane components w/ a view that cascaded to commonly inspected objects (deployments, daemonsets, PVCs) for end users, would really make it easy to troubleshoot any issues related to apiserver black holes

# ALTERNATIVE

MAybe, we can just make the APIServer more capable of responding intelligently when it is being toxically blocked by an APIServer webhook
Repository: pytorch
Issue: RuntimeError: unable to mmap 29764 bytes from file </torch_10182_3020184674_63991>: Cannot allocate memory (12)
Labels: triaged,module: tensor creation

### 🐛 Describe the bug

    for _ in range(flags.num_buffers):
        for key in buffers:
            buffers[key].append(torch.zeros(**specs[key]).share_memory_())
    return buffers

Traceback (most recent call last):
  File "/home/cloudam/rl-baseline (copy)/monobeast.py", line 634, in <module>
  File "/home/cloudam/rl-baseline (copy)/monobeast.py", line 512, in train
  File "/home/cloudam/rl-baseline (copy)/monobeast.py", line 140, in create_buffers
  File "/home/cloudam/miniconda3/lib/python3.9/site-packages/torch/_tensor.py", line 619, in share_memory_
  File "/home/cloudam/miniconda3/lib/python3.9/site-packages/torch/storage.py", line 627, in share_memory_
  File "/home/cloudam/miniconda3/lib/python3.9/site-packages/torch/storage.py", line 208, in share_memory_
RuntimeError: unable to mmap 29764 bytes from file </torch_10182_3020184674_63991>: Cannot allocate memory (12)

### Versions

pytorch 10.0 cu116


cc @gchanan @mruberry
Repository: PowerToys
Issue: Add a feature to temporarily suspend a foreground task with a shortcut key
Labels: Idea-Enhancement,Needs-Triage

### Description of the new feature / enhancement

Press, for example ctrl + escape to suspend a task that is currently in foreground, press again to unfreeze it.
It can be also coded in a way, that if it has some suspended app, pressing the key once again resumes it, so there will be no need to take care of what is in the foreground (especially when windows likes to add "non responding" message in front of these programs)

### Scenario when this would be used?

When using some resource heavy apps / games, that cannot be paused, they can be minimized and paused, so they have a saved state (no need to load it to RAM again), but they don't consume any CPU / GPU power

### Supporting information

Windows resource monitor has the exact feature I want to implement, but the process needs to be found manually and then manually suspended, instead of simple shortcut action.
![image](https://user-images.githubusercontent.com/49353902/198341999-1604dd50-7bb2-4f7e-a4d5-a21313725742.png)
Repository: rust
Issue: ambiguous associated item accepted in item signature
Labels: A-resolve,T-lang

The following should not compile, but it does:
```rust
trait Test {
    type Variant;
    fn test(_: ());
}

enum Enum {
    Variant,
}

impl Test for <[Enum; 0] as IntoIterator>::Item { // <- Self is a projection
    type Variant = ();
    fn test(_: Self::Variant) { // <- this is accepted.
        //None::<Self::Variant>; // <- this is rejected.
    }
}
```

`Self::Variant` here is ambiguous and should be rejected for the same reason it's rejected in the fn body.

This bug is seemingly an unintended fallout from:
[<https://github.com/rust-lang/rust/blob/master/compiler/rustc_hir_analysis/src/collect.rs#L520>](https://github.com/rust-lang/rust/blob/0da281b6068a7d889ae89a9bd8991284cc9b7535/compiler/rustc_hir_analysis/src/collect.rs#L520-521)

@rustbot label T-lang A-resolve
Repository: TypeScript
Issue: Include documentation from an external file
Labels: Suggestion,Awaiting More Feedback

<!-- ⚠️⚠️ Do Not Delete This! feature_request_template ⚠️⚠️ -->
<!-- Please read our Rules of Conduct: https://opensource.microsoft.com/codeofconduct/ -->
<!-- Please search existing issues to avoid creating duplicates. -->

<!-- Describe the feature you'd like. -->

Hello vscode community !

I have a feature that I've been thinking about for a long time now. Whenever I try to document my code I want to be super efficient and not make my codebase too big. 

## Introduction

Let's take a quick example to introduce the issue. I will be using `javascript`.

```javascript
/**
 * Adds `a` and `b` together
 */
function sum(a, b) {
    return a + b;
}

/**
 * Adds `a` and `b` together
 */
function addition(a, b) {
    return sum(a,b)
}
```

Of course theres no logic to the code but please treat it as if there was a logic.

## Feature

The feature I would like to add is the including of documentation from an external file like below.
Here is the file structure : 
```
|
| -- index.js
| -- sumDoc.txt
```

In `index.js` I have the following : 
```javascript
/**
 * {@include ./sumDoc.txt}
 */
function sum(a, b) {
    return a + b;
}

/**
 * {@include ./sumDoc.txt}
 */
function addition(a, b) {
    return sum(a,b)
}
```

In `sumDoc.txt` I have the following : 
```
Adds `a` and `b` together
```

Of course when I hover the mouse over one of the two functions, `sum` and `addition`, I would like vscode to show me the documentation like it would show up in the very first example.
![image](https://user-images.githubusercontent.com/22567306/198252563-75802f90-38d0-4b26-8e96-072543c9cb2e.png)



## Why ?

If this feature was to be in production, 

- It would totally respect the [DRY](https://en.wikipedia.org/wiki/Don%27t_repeat_yourself) principle. Even if this principle mostly applies to programming paradigms in general, it would also perfectly suit documentation. When you change the documentation for multiple functions, you only need to change it in the `txt` file...
- When you have a long documentation in your codebase, you tend to get lost in your file and overuse your mouses scroll wheel.
- You could use these `txt` files seperatly from the codebase and use them elsewhere. For example inside a custom website.

## External features

- Adding a `.doc` extension for files. Because currently you can't get the nice linting when using the `@` prefix from vscode when creating a documentation file.
- Why not make the including of documentation a one line thing (instead of 3 in my examples)
  ```javascript
  // @include ./sumDoc.txt
  function sum(a, b) {
      return a + b;
  }
  
  // @include ./sumDoc.txt
  function addition(a, b) {
      return sum(a,b)
  }
  ```
  Maybe this feature is included by default in vscode ?

Thank you in advance for considering this feature !
Repository: opencv
Issue: cv2.getOptimalNewCameraMatrix did not give correct new camera intrinsics.
Labels: bug

### System Information

OpenCV python version: 4.4.0
Operating System / Platform: Ubuntu 18.04
Python version: 2.7
Camera: IMX219 120° fov

### Detailed description

I use ```cv2.initUndistortRectifyMap``` and ```cv2.remap``` to undistort an image, and get new camera intrinsics matrix by using ```cv2.getOptimalNewCameraMatrix```.
For 1920\*1080 picture, it works very well and I can get right results.
However when I tried 2560\*1920 picture, it shows:
raw image:
![image](https://user-images.githubusercontent.com/69149591/198340536-4baaa5fb-bc09-4614-9cac-ce06d2897319.png)
undistort image:
![image](https://user-images.githubusercontent.com/69149591/198340708-853d286e-db38-44e2-bf0a-7b0d5515d0c4.png)

It seems not a good result. Usually newCameraMatrix has a little difference to raw camera intrinsics matrix, so I tried to change
```mapx,mapy=cv2.initUndistortRectifyMap(mtx,dist,np.eye(3),newCameraMtx,(w_raw,h_raw),cv2.CV_32FC1)```
to 
```mapx,mapy=cv2.initUndistortRectifyMap(mtx,dist,np.eye(3),mtx,(w_raw,h_raw),cv2.CV_32FC1)```, just substitude newCameraMtx with raw mtx, it shows:
![image](https://user-images.githubusercontent.com/69149591/198342433-cda5d41a-79b9-4dc5-aaef-b4462cc115eb.png)
It is a right result, but not perfect.

So i checked mtx and newCameraMtx, as is shown below.
![image](https://user-images.githubusercontent.com/69149591/198342845-8c19b5ef-a1fa-4260-9f99-41462e891dbd.png)
and newCameraMtx is:
![image](https://user-images.githubusercontent.com/69149591/198342986-aa3feaf5-dbae-490d-9cb5-15d742be26c7.png)

They differ a lot. So I think there may exist a bug in function ```cv2.getOptimalNewCameraMatrix```. It didn't give the right new intrinsics.

I also tried ```cv2.undistort``` function. Both  ```cv2.initUndistortRectifyMap```&```cv2.remap``` and ```cv2.undistort``` function show the same result.

### Steps to reproduce

raw intrinsics and distort data
```python
#!/usr/bin/env python

import numpy as np
from cv2 import getOptimalNewCameraMatrix

w_raw,h_raw=2560,1920
mtx=np.array([[1297.7205271696403, 0.                , 1301.5176574433485],
              [ 0.               , 1294.8143867458055, 942.666784791149  ],
              [ 0.               , 0.                , 1.                ]])
dist=np.array([-0.07544984303748915, -0.02614946787547556, -0.000821489481899962, -0.0010805479663670492,0])

newCameraMtx,roi=getOptimalNewCameraMatrix(mtx,dist,(w_raw,h_raw),1,(w_raw,h_raw))
```

### Issue submission checklist

- [X] I report the issue, it's not a question
- [X] I checked the problem with documentation, FAQ, open issues, forum.opencv.org, Stack Overflow, etc and have not found any solution
- [ ] I updated to the latest OpenCV version and the issue is still there
- [X] There is reproducer code and related data files (videos, images, onnx, etc)
Repository: godot
Issue: macOS Safari 16.1 (latest version) - all HTML5 exports crash on loading (even empty projects with default settings)
Labels: bug,platform:web,platform:ios,platform:macos,topic:porting,confirmed,topic:thirdparty,high priority

___

***Bugsquad note:** This issue has been confirmed several times already. No need to confirm it further.*

___

### Godot version

3.5.1, 3.4.5

### System information

macOS Monterey 12.6.1, Safari 16.1

### Issue description

Since the update to Safari 16.1 on macOS (Macbook Pro early 2015, macOS 12.6.1), every Godot HTML5 export (GLES2 and GLES3) crashes on loading, even empty projects with no settings changed.

It looks exactly like in the video in this report: https://github.com/godotengine/godot/issues/62445 and might be a similar issue. I can not check it on iOS as I don't have a device capable of running the latest version.

This basically prevents any Godot game from running on a Mac with the latest Safari version.


### Steps to reproduce

- Export anything to HTML5
- run in Safari 16.1 on macOS
- crashes on load

### Minimal reproduction project

any project, even empty (main scene with one Node2D)
Repository: PowerToys
Issue: [GPO][BugReportTool] Add information about GPO scoop
Labels: Idea-Enhancement,Needs-Triage,Area-Bug Report Tool,Area-Enterprise

### Description of the new feature / enhancement

We should add an information about the GPO scoop (user vs computer) in the bug report information.

### Scenario when this would be used?

If users have issues/problems or need help with GPOs.

### Supporting information

_No response_